]> git.saurik.com Git - wxWidgets.git/blame - configure
don't rely on system snprintf() for the tests (patch 1532503)
[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.
dd8df4fc 4# Generated by GNU Autoconf 2.59 for wxWidgets 2.7.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'
dd8df4fc
VZ
273PACKAGE_VERSION='2.7.0'
274PACKAGE_STRING='wxWidgets 2.7.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"
8b6682b9 316ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CPP EGREP CXX CXXFLAGS ac_ct_CXX RANLIB ac_ct_RANLIB AR 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 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 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 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 GCC_PCH ICC_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_MAC_USE_GUI_1_WXUNIV_0 COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF COND_PLATFORM_MACOSX_1_TOOLKIT_X11 COND_PLATFORM_MACOSX_1_USE_GUI_1 COND_PLATFORM_MACOSX_1_USE_SOVERSION_1 COND_PLATFORM_MACOS_1 COND_PLATFORM_MAC_1 COND_PLATFORM_MSDOS_0 COND_PLATFORM_MSDOS_1 COND_PLATFORM_OS2_1 COND_PLATFORM_UNIX_0 COND_PLATFORM_UNIX_1 COND_PLATFORM_UNIX_1_USE_GUI_1 COND_PLATFORM_UNIX_1_USE_PLUGINS_0 COND_PLATFORM_WIN32_0 COND_PLATFORM_WIN32_1 COND_SHARED_0 COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0 COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0 COND_SHARED_0_TOOLKIT_PM_WXUNIV_0 COND_SHARED_0_USE_GUI_1_USE_OPENGL_1 COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN COND_SHARED_0_USE_XRC_1 COND_SHARED_0_WXUSE_EXPAT_BUILTIN COND_SHARED_0_WXUSE_ODBC_BUILTIN COND_SHARED_0_WXUSE_REGEX_BUILTIN COND_SHARED_0_WXUSE_ZLIB_BUILTIN COND_SHARED_1 COND_SHARED_1_USE_GUI_1_USE_OPENGL_1 COND_SHARED_1_USE_XRC_1 COND_TOOLKIT_ COND_TOOLKIT_COCOA COND_TOOLKIT_COCOA_USE_GUI_1 COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0 COND_TOOLKIT_GTK COND_TOOLKIT_GTK_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
789
790#
791# Report the --help message.
792#
793if test "$ac_init_help" = "long"; then
794 # Omit some internal or obsolete options to make the list less imposing.
795 # This message is too long to be a string in the A/UX 3.1 sh.
796 cat <<_ACEOF
dd8df4fc 797\`configure' configures wxWidgets 2.7.0 to adapt to many kinds of systems.
a848cd7e
SC
798
799Usage: $0 [OPTION]... [VAR=VALUE]...
800
801To assign environment variables (e.g., CC, CFLAGS...), specify them as
802VAR=VALUE. See below for descriptions of some of the useful variables.
803
804Defaults for the options are specified in brackets.
805
806Configuration:
807 -h, --help display this help and exit
808 --help=short display options specific to this package
809 --help=recursive display the short help of all the included packages
810 -V, --version display version information and exit
811 -q, --quiet, --silent do not print \`checking...' messages
812 --cache-file=FILE cache test results in FILE [disabled]
813 -C, --config-cache alias for \`--cache-file=config.cache'
814 -n, --no-create do not create output files
815 --srcdir=DIR find the sources in DIR [configure dir or \`..']
816
817_ACEOF
818
819 cat <<_ACEOF
820Installation directories:
821 --prefix=PREFIX install architecture-independent files in PREFIX
ac1cb8d3 822 [$ac_default_prefix]
a848cd7e 823 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
ac1cb8d3 824 [PREFIX]
a848cd7e
SC
825
826By default, \`make install' will install all the files in
827\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
828an installation prefix other than \`$ac_default_prefix' using \`--prefix',
829for instance \`--prefix=\$HOME'.
830
831For better control, use the options below.
832
833Fine tuning of the installation directories:
834 --bindir=DIR user executables [EPREFIX/bin]
835 --sbindir=DIR system admin executables [EPREFIX/sbin]
836 --libexecdir=DIR program executables [EPREFIX/libexec]
837 --datadir=DIR read-only architecture-independent data [PREFIX/share]
838 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
839 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
840 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
841 --libdir=DIR object code libraries [EPREFIX/lib]
842 --includedir=DIR C header files [PREFIX/include]
843 --oldincludedir=DIR C header files for non-gcc [/usr/include]
844 --infodir=DIR info documentation [PREFIX/info]
845 --mandir=DIR man documentation [PREFIX/man]
846_ACEOF
847
848 cat <<\_ACEOF
849
850X features:
851 --x-includes=DIR X include files are in DIR
852 --x-libraries=DIR X library files are in DIR
853
854System types:
855 --build=BUILD configure for building on BUILD [guessed]
856 --host=HOST cross-compile to build programs to run on HOST [BUILD]
857 --target=TARGET configure for building compilers for TARGET [HOST]
858_ACEOF
859fi
860
861if test -n "$ac_init_help"; then
862 case $ac_init_help in
dd8df4fc 863 short | recursive ) echo "Configuration of wxWidgets 2.7.0:";;
a848cd7e
SC
864 esac
865 cat <<\_ACEOF
866
867Optional Features:
868 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
869 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
870 --enable-gui use GUI classes
77ffb593
JS
871 --enable-monolithic build wxWidgets as single library
872 --enable-plugins build parts of wxWidgets as loadable components
873 --enable-universal use wxWidgets GUI controls instead of native ones
a848cd7e 874 --enable-nanox use NanoX
f34ca037 875 --disable-gtk2 use GTK+ 1.2 instead of 2.0
a848cd7e
SC
876 --enable-gpe use GNOME PDA Environment features if possible
877 --enable-shared create shared library code
878 --enable-optimise create optimised code
879 --enable-debug same as debug_flag and debug_info
880 --enable-stl use STL for containers
881 --enable-omf use OMF object format
882 --enable-debug_flag set __WXDEBUG__ flag (recommended for developers!)
883 --enable-debug_info create code with debugging information
884 --enable-debug_gdb create code with extra GDB debugging information
885 --enable-debug_cntxt use wxDebugContext
886 --enable-mem_tracing create code with memory tracing
887 --enable-profile create code with profiling information
888 --enable-no_rtti create code without RTTI information
889 --enable-no_exceptions create code without C++ exceptions handling
890 --enable-permissive compile code disregarding strict ANSI
891 --enable-no_deps create code without dependency information
95768535 892 --enable-universal_binary[=SDK] create Mac PowerPC and Intel Universal binary (not yet working)
dee1a63f
MB
893 --enable-compat24 enable wxWidgets 2.4 compatibility
894 --disable-compat26 disable wxWidgets 2.6 compatibility
ffa0583f 895 --disable-rpath disable use of rpath for uninstalled builds
a848cd7e
SC
896 --enable-intl use internationalization system
897 --enable-config use wxConfig (and derived) classes
898 --enable-protocols use wxProtocol and derived classes
899 --enable-ftp use wxFTP (requires wxProtocol
900 --enable-http use wxHTTP (requires wxProtocol
901 --enable-fileproto use wxFileProto class (requires wxProtocol
902 --enable-sockets use socket/network classes
903 --enable-ole use OLE classes (Win32 only)
904 --enable-dataobj use data object classes
905 --enable-ipc use interprocess communication (wxSocket etc.)
906 --enable-apple_ieee use the Apple IEEE codec
81f90336 907 --enable-arcstream use wxArchive streams
eaff0f0d 908 --enable-backtrace use wxStackWalker class for getting backtraces
36b6448c 909 --enable-catch_segvs catch signals in wxApp::OnFatalException (Unix only)
a848cd7e
SC
910 --enable-cmdline use wxCmdLineParser class
911 --enable-datetime use wxDateTime class
36b6448c 912 --enable-debugreport use wxDebugReport class
a848cd7e
SC
913 --enable-dialupman use dialup network classes
914 --enable-dynlib use wxLibrary class for DLL loading
915 --enable-dynamicloader use (new) wxDynamicLibrary class
916 --enable-exceptions build exception-safe library
917 --enable-ffile use wxFFile class
918 --enable-file use wxFile class
919 --enable-filesystem use virtual file systems classes
920 --enable-fontmap use font encodings conversion classes
921 --enable-fs_inet use virtual HTTP/FTP filesystems
922 --enable-fs_zip use virtual ZIP filesystems
923 --enable-geometry use geometry class
924 --enable-log use logging system
925 --enable-longlong use wxLongLong class
926 --enable-mimetype use wxMimeTypesManager
927 --enable-mslu use MS Layer for Unicode on Windows 9x (Win32 only)
928 --enable-snglinst use wxSingleInstanceChecker class
a848cd7e 929 --enable-std_iostreams use standard C++ stream classes
59746b65 930 --enable-std_string use standard C++ string classes
07158944 931 --enable-stdpaths use wxStandardPaths class
a848cd7e 932 --enable-stopwatch use wxStopWatch class
07158944 933 --enable-streams use wxStream etc classes
a848cd7e
SC
934 --enable-sysoptions use wxSystemOptions
935 --enable-textbuf use wxTextBuffer class
936 --enable-textfile use wxTextFile class
937 --enable-timer use wxTimer class
938 --enable-unicode compile wxString with Unicode support
939 --enable-sound use wxSound class
3b57de8b 940 --enable-mediactrl use wxMediaCtrl class
f10e38c4 941 --enable-gstreamer8 force GStreamer 0.8 instead of 0.10 with the wxMediaCtrl class on unix
8b6682b9 942 --enable-printfposparam use wxVsnprintf() which supports positional parameters
81f90336 943 --enable-zipstream use wxZip streams
a848cd7e
SC
944 --enable-url use wxURL class
945 --enable-protocol use wxProtocol class
946 --enable-protocol-http HTTP support in wxProtocol
947 --enable-protocol-ftp FTP support in wxProtocol
948 --enable-protocol-file FILE support in wxProtocol
949 --enable-threads use threads
950 --enable-docview use document view architecture
951 --enable-help use help subsystem
952 --enable-mshtmlhelp use MS HTML Help (win32)
953 --enable-html use wxHTML sub-library
954 --enable-htmlhelp use wxHTML-based help
9a8f0513 955 --enable-xrc use XRC resources sub-library
3f60522a 956 --enable-aui use AUI docking library
a848cd7e
SC
957 --enable-constraints use layout-constraints system
958 --enable-printarch use printing architecture
959 --enable-mdi use multiple document interface architecture
8a7b1113 960 --enable-mdidoc use docview architecture with MDI
a848cd7e
SC
961 --enable-loggui use standard GUI logger
962 --enable-logwin use wxLogWindow
963 --enable-logdialog use wxLogDialog
646b6ec1 964 --enable-webkit use wxWebKitCtrl (Mac)
91dea314 965 --enable-richtext use wxRichTextCtrl
a848cd7e
SC
966 --enable-postscript use wxPostscriptDC device context (default for gtk+)
967 --enable-prologio not available; see contrib
968 --enable-resources not available; see contrib
969 --enable-clipboard use wxClipboard class
970 --enable-dnd use Drag'n'Drop classes
971 --enable-metafile use win32 metafiles
972 --enable-controls use all usual controls
973 --enable-accel use accelerators
974 --enable-button use wxButton class
975 --enable-bmpbutton use wxBitmapButton class
976 --enable-calendar use wxCalendarCtrl class
977 --enable-caret use wxCaret class
978 --enable-checkbox use wxCheckBox class
979 --enable-checklst use wxCheckListBox (listbox with checkboxes) class
980 --enable-choice use wxChoice class
92bbdbcd 981 --enable-choicebook use wxChoicebook class
e9263684 982 --enable-colourpicker use wxColourPickerCtrl class
a848cd7e 983 --enable-combobox use wxComboBox class
a57d600f 984 --enable-comboctrl use wxComboCtrl class
da98e9be 985 --enable-datepick use wxDatePickerCtrl class
e9263684 986 --enable-dirpicker use wxDirPickerCtrl class
a848cd7e 987 --enable-display use wxDisplay class
e9263684
VZ
988 --enable-filepicker use wxFilePickerCtrl class
989 --enable-fontpicker use wxFontPickerCtrl class
a848cd7e
SC
990 --enable-gauge use wxGauge class
991 --enable-grid use wxGrid class
20e34ecc 992 --enable-dataviewctrl, use wxDataViewCtrl class
6954625c 993 --enable-hyperlink use wxHyperlinkCtrl class
a848cd7e
SC
994 --enable-imaglist use wxImageList class
995 --enable-listbook use wxListbook class
996 --enable-listbox use wxListBox class
997 --enable-listctrl use wxListCtrl class
998 --enable-notebook use wxNotebook class
a57d600f 999 --enable-odcombobox use wxOwnerDrawnComboBox class
a848cd7e
SC
1000 --enable-radiobox use wxRadioBox class
1001 --enable-radiobtn use wxRadioButton class
1002 --enable-sash use wxSashWindow class
1003 --enable-scrollbar use wxScrollBar class and scrollable windows
1004 --enable-slider use wxSlider class
1005 --enable-spinbtn use wxSpinButton class
1006 --enable-spinctrl use wxSpinCtrl class
1007 --enable-splitter use wxSplitterWindow class
1008 --enable-statbmp use wxStaticBitmap class
1009 --enable-statbox use wxStaticBox class
1010 --enable-statline use wxStaticLine class
1011 --enable-stattext use wxStaticText class
1012 --enable-statusbar use wxStatusBar class
1013 --enable-tabdialog use wxTabControl class
1014 --enable-textctrl use wxTextCtrl class
1015 --enable-togglebtn use wxToggleButton class
1016 --enable-toolbar use wxToolBar class
1017 --enable-tbarnative use native wxToolBar class
1018 --enable-tbarsmpl use wxToolBarSimple class
0093c2fc 1019 --enable-treebook use wxTreebook class
5ec3bc43 1020 --enable-toolbook use wxToolbook class
a848cd7e
SC
1021 --enable-treectrl use wxTreeCtrl class
1022 --enable-tipwindow use wxTipWindow class
1023 --enable-popupwin use wxPopUpWindow class
1024 --enable-commondlg use all common dialogs
1025 --enable-choicedlg use wxChoiceDialog
1026 --enable-coldlg use wxColourDialog
1027 --enable-filedlg use wxFileDialog
1028 --enable-finddlg use wxFindReplaceDialog
1029 --enable-fontdlg use wxFontDialog
1030 --enable-dirdlg use wxDirDialog
1031 --enable-msgdlg use wxMessageDialog
1032 --enable-numberdlg use wxNumberEntryDialog
1033 --enable-splash use wxSplashScreen
1034 --enable-textdlg use wxTextDialog
1035 --enable-tipdlg use startup tips
1036 --enable-progressdlg use wxProgressDialog
1037 --enable-wizarddlg use wxWizard
1038 --enable-menus use wxMenu/wxMenuBar/wxMenuItem classes
1039 --enable-miniframe use wxMiniFrame class
1040 --enable-tooltips use wxToolTip class
1041 --enable-splines use spline drawing code
fbe2ca43 1042 --enable-mousewheel use mousewheel
a848cd7e
SC
1043 --enable-validators use wxValidator and derived classes
1044 --enable-busyinfo use wxBusyInfo
4cb1d3da 1045 --enable-joystick use wxJoystick
38b4a946 1046 --enable-metafiles use wxMetaFile (Win32 only)
a848cd7e
SC
1047 --enable-dragimage use wxDragImage
1048 --enable-accessibility enable accessibility support
38b4a946 1049 --enable-dccache cache temporary wxDC objects (Win32 only)
a848cd7e
SC
1050 --enable-palette use wxPalette class
1051 --enable-image use wxImage class
1052 --enable-gif use gif images (GIF file format)
1053 --enable-pcx use pcx images (PCX file format)
1054 --enable-iff use iff images (IFF file format)
1055 --enable-pnm use pnm images (PNM file format)
1056 --enable-xpm use xpm images (XPM file format)
1057 --enable-icocur use Windows ICO and CUR formats
77ffb593 1058 --enable-official_build official build of wxWidgets (win32 DLL only)
a848cd7e
SC
1059 --enable-vendor=VENDOR vendor name (win32 DLL only)
1060 --disable-largefile omit support for large files
1061 --disable-gtktest do not try to compile and run a test GTK+ program
1062 --disable-gtktest Do not try to compile and run a test GTK program
1063 --disable-sdltest Do not try to compile and run a test SDL program
1064 --enable-omf use OMF object format (OS/2)
f10e38c4
VZ
1065 --disable-dependency-tracking
1066 don't use dependency tracking even if the compiler
1067 can
ebee3cd0
VS
1068 --disable-precomp-headers
1069 don't use precompiled headers even if compiler can
a848cd7e
SC
1070
1071Optional Packages:
1072 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1073 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1c14217d 1074 --without-subdirs don't generate makefiles for samples/demos/...
f34ca037 1075 --with-gtk[=VERSION] use GTK+, VERSION can be 2 (default), 1 or "any"
a848cd7e
SC
1076 --with-motif use Motif/Lesstif
1077 --with-mac use Mac OS X
1078 --with-cocoa use Cocoa
1079 --with-wine use Wine
1080 --with-msw use MS-Windows
1081 --with-pm use OS/2 Presentation Manager
1082 --with-mgl use SciTech MGL
1083 --with-microwin use MicroWindows
1084 --with-x11 use X11
1085 --with-libpng use libpng (PNG image format)
1086 --with-libjpeg use libjpeg (JPEG file format)
1087 --with-libtiff use libtiff (TIFF file format)
1088 --with-libxpm use libxpm (XPM file format)
1089 --with-libmspack use libmspack (CHM help files loading)
1090 --with-sdl use SDL for audio on Unix
2b850ae1
RR
1091 --with-gnomeprint use GNOME print for printing under GNOME
1092 --with-gnomevfs use GNOME VFS for associating MIME types
3565d135 1093 --with-hildon use Hildon framework for Nokia 770
a848cd7e
SC
1094 --with-opengl use OpenGL (or Mesa)
1095 --with-dmalloc use dmalloc library (http://dmalloc.com/)
1096 --with-regex enable support for wxRegEx class
1097 --with-zlib use zlib for LZW compression
1098 --with-odbc use the IODBC and wxODBC classes
1099 --with-expat enable XML support using expat parser
ceec2216 1100 --with-flavour=NAME specify a name to identify this build
a848cd7e
SC
1101 --with-gtk-prefix=PFX Prefix where GTK is installed (optional)
1102 --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional)
1103 --with-x use the X Window System
1104 --with-libiconv-prefix=DIR search for libiconv in DIR/include and DIR/lib
1105 --with-sdl-prefix=PFX Prefix where SDL is installed (optional)
1106 --with-sdl-exec-prefix=PFX Exec prefix where SDL is installed (optional)
1107 --with-cppunit-prefix=PFX Prefix where CppUnit is installed (optional)
1108 --with-cppunit-exec-prefix=PFX Exec prefix where CppUnit is installed (optional)
1109
1110Some influential environment variables:
dcc1b6ad
VS
1111 CC C compiler command
1112 CFLAGS C compiler flags
1113 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1114 nonstandard directory <lib dir>
1115 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1116 headers in a nonstandard directory <include dir>
1117 CPP C preprocessor
1118 CXX C++ compiler command
1119 CXXFLAGS C++ compiler flags
1120 CXXCPP C++ preprocessor
a848cd7e
SC
1121
1122Use these variables to override the choices made by `configure' or to help
1123it to find libraries and programs with nonstandard names/locations.
1124
77ffb593 1125Report bugs to <wx-dev@lists.wxwidgets.org>.
a848cd7e
SC
1126_ACEOF
1127fi
1128
1129if test "$ac_init_help" = "recursive"; then
1130 # If there are subdirs, report their specific --help.
1131 ac_popdir=`pwd`
1132 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1133 test -d $ac_dir || continue
1134 ac_builddir=.
1135
1136if test "$ac_dir" != .; then
1137 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1138 # A "../" for each directory in $ac_dir_suffix.
1139 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1140else
1141 ac_dir_suffix= ac_top_builddir=
1142fi
1143
1144case $srcdir in
1145 .) # No --srcdir option. We are building in place.
1146 ac_srcdir=.
1147 if test -z "$ac_top_builddir"; then
1148 ac_top_srcdir=.
1149 else
1150 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1151 fi ;;
1152 [\\/]* | ?:[\\/]* ) # Absolute path.
1153 ac_srcdir=$srcdir$ac_dir_suffix;
1154 ac_top_srcdir=$srcdir ;;
1155 *) # Relative path.
1156 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1157 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1158esac
ac1cb8d3
VS
1159
1160# Do not use `cd foo && pwd` to compute absolute paths, because
1161# the directories may not exist.
1162case `pwd` in
1163.) ac_abs_builddir="$ac_dir";;
1164*)
1165 case "$ac_dir" in
1166 .) ac_abs_builddir=`pwd`;;
1167 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1168 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1169 esac;;
1170esac
1171case $ac_abs_builddir in
1172.) ac_abs_top_builddir=${ac_top_builddir}.;;
1173*)
1174 case ${ac_top_builddir}. in
1175 .) ac_abs_top_builddir=$ac_abs_builddir;;
1176 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1177 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1178 esac;;
1179esac
1180case $ac_abs_builddir in
1181.) ac_abs_srcdir=$ac_srcdir;;
1182*)
1183 case $ac_srcdir in
1184 .) ac_abs_srcdir=$ac_abs_builddir;;
1185 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1186 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1187 esac;;
1188esac
1189case $ac_abs_builddir in
1190.) ac_abs_top_srcdir=$ac_top_srcdir;;
1191*)
1192 case $ac_top_srcdir in
1193 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1194 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1195 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1196 esac;;
1197esac
a848cd7e
SC
1198
1199 cd $ac_dir
1200 # Check for guested configure; otherwise get Cygnus style configure.
1201 if test -f $ac_srcdir/configure.gnu; then
1202 echo
1203 $SHELL $ac_srcdir/configure.gnu --help=recursive
1204 elif test -f $ac_srcdir/configure; then
1205 echo
1206 $SHELL $ac_srcdir/configure --help=recursive
1207 elif test -f $ac_srcdir/configure.ac ||
ac1cb8d3 1208 test -f $ac_srcdir/configure.in; then
a848cd7e
SC
1209 echo
1210 $ac_configure --help
1211 else
1212 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1213 fi
c9a66001 1214 cd "$ac_popdir"
a848cd7e
SC
1215 done
1216fi
1217
1218test -n "$ac_init_help" && exit 0
1219if $ac_init_version; then
1220 cat <<\_ACEOF
dd8df4fc 1221wxWidgets configure 2.7.0
ac1cb8d3 1222generated by GNU Autoconf 2.59
a848cd7e 1223
ac1cb8d3 1224Copyright (C) 2003 Free Software Foundation, Inc.
a848cd7e
SC
1225This configure script is free software; the Free Software Foundation
1226gives unlimited permission to copy, distribute and modify it.
1227_ACEOF
1228 exit 0
1229fi
1230exec 5>config.log
1231cat >&5 <<_ACEOF
1232This file contains any messages produced by compilers while
1233running configure, to aid debugging if configure makes a mistake.
1234
dd8df4fc 1235It was created by wxWidgets $as_me 2.7.0, which was
ac1cb8d3 1236generated by GNU Autoconf 2.59. Invocation command line was
a848cd7e
SC
1237
1238 $ $0 $@
1239
1240_ACEOF
1241{
1242cat <<_ASUNAME
1243## --------- ##
1244## Platform. ##
1245## --------- ##
1246
1247hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1248uname -m = `(uname -m) 2>/dev/null || echo unknown`
1249uname -r = `(uname -r) 2>/dev/null || echo unknown`
1250uname -s = `(uname -s) 2>/dev/null || echo unknown`
1251uname -v = `(uname -v) 2>/dev/null || echo unknown`
1252
1253/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1254/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1255
1256/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1257/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1258/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1259hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1260/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1261/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1262/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1263
1264_ASUNAME
1265
1266as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1267for as_dir in $PATH
1268do
1269 IFS=$as_save_IFS
1270 test -z "$as_dir" && as_dir=.
1271 echo "PATH: $as_dir"
1272done
1273
1274} >&5
1275
1276cat >&5 <<_ACEOF
1277
1278
1279## ----------- ##
1280## Core tests. ##
1281## ----------- ##
1282
1283_ACEOF
1284
1285
1286# Keep a trace of the command line.
1287# Strip out --no-create and --no-recursion so they do not pile up.
1288# Strip out --silent because we don't want to record it for future runs.
1289# Also quote any args containing shell meta-characters.
1290# Make two passes to allow for proper duplicate-argument suppression.
1291ac_configure_args=
1292ac_configure_args0=
1293ac_configure_args1=
1294ac_sep=
1295ac_must_keep_next=false
1296for ac_pass in 1 2
1297do
1298 for ac_arg
1299 do
1300 case $ac_arg in
1301 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1302 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1303 | -silent | --silent | --silen | --sile | --sil)
1304 continue ;;
1305 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1306 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1307 esac
1308 case $ac_pass in
1309 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1310 2)
1311 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1312 if test $ac_must_keep_next = true; then
ac1cb8d3 1313 ac_must_keep_next=false # Got value, back to normal.
a848cd7e 1314 else
ac1cb8d3
VS
1315 case $ac_arg in
1316 *=* | --config-cache | -C | -disable-* | --disable-* \
1317 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1318 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1319 | -with-* | --with-* | -without-* | --without-* | --x)
1320 case "$ac_configure_args0 " in
1321 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1322 esac
1323 ;;
1324 -* ) ac_must_keep_next=true ;;
1325 esac
a848cd7e
SC
1326 fi
1327 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1328 # Get rid of the leading space.
1329 ac_sep=" "
1330 ;;
1331 esac
1332 done
1333done
1334$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1335$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1336
1337# When interrupted or exit'd, cleanup temporary files, and complete
1338# config.log. We remove comments because anyway the quotes in there
1339# would cause problems or look ugly.
1340# WARNING: Be sure not to use single quotes in there, as some shells,
1341# such as our DU 5.0 friend, will then `close' the trap.
1342trap 'exit_status=$?
1343 # Save into config.log some information that might help in debugging.
1344 {
1345 echo
1346
1347 cat <<\_ASBOX
1348## ---------------- ##
1349## Cache variables. ##
1350## ---------------- ##
1351_ASBOX
1352 echo
1353 # The following way of writing the cache mishandles newlines in values,
1354{
1355 (set) 2>&1 |
1356 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1357 *ac_space=\ *)
1358 sed -n \
ac1cb8d3
VS
1359 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1360 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
a848cd7e
SC
1361 ;;
1362 *)
1363 sed -n \
ac1cb8d3 1364 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
a848cd7e
SC
1365 ;;
1366 esac;
1367}
1368 echo
1369
1370 cat <<\_ASBOX
1371## ----------------- ##
1372## Output variables. ##
1373## ----------------- ##
1374_ASBOX
1375 echo
1376 for ac_var in $ac_subst_vars
1377 do
1378 eval ac_val=$`echo $ac_var`
1379 echo "$ac_var='"'"'$ac_val'"'"'"
1380 done | sort
1381 echo
1382
1383 if test -n "$ac_subst_files"; then
1384 cat <<\_ASBOX
1385## ------------- ##
1386## Output files. ##
1387## ------------- ##
1388_ASBOX
1389 echo
1390 for ac_var in $ac_subst_files
1391 do
1392 eval ac_val=$`echo $ac_var`
ac1cb8d3 1393 echo "$ac_var='"'"'$ac_val'"'"'"
a848cd7e
SC
1394 done | sort
1395 echo
1396 fi
1397
1398 if test -s confdefs.h; then
1399 cat <<\_ASBOX
1400## ----------- ##
1401## confdefs.h. ##
1402## ----------- ##
1403_ASBOX
1404 echo
1405 sed "/^$/d" confdefs.h | sort
1406 echo
1407 fi
1408 test "$ac_signal" != 0 &&
1409 echo "$as_me: caught signal $ac_signal"
1410 echo "$as_me: exit $exit_status"
1411 } >&5
ac1cb8d3 1412 rm -f core *.core &&
a848cd7e
SC
1413 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1414 exit $exit_status
1415 ' 0
1416for ac_signal in 1 2 13 15; do
1417 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1418done
1419ac_signal=0
1420
1421# confdefs.h avoids OS command line length limits that DEFS can exceed.
1422rm -rf conftest* confdefs.h
1423# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1424echo >confdefs.h
1425
1426# Predefined preprocessor variables.
1427
1428cat >>confdefs.h <<_ACEOF
1429#define PACKAGE_NAME "$PACKAGE_NAME"
1430_ACEOF
1431
1432
1433cat >>confdefs.h <<_ACEOF
1434#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1435_ACEOF
1436
1437
1438cat >>confdefs.h <<_ACEOF
1439#define PACKAGE_VERSION "$PACKAGE_VERSION"
1440_ACEOF
1441
1442
1443cat >>confdefs.h <<_ACEOF
1444#define PACKAGE_STRING "$PACKAGE_STRING"
1445_ACEOF
1446
1447
1448cat >>confdefs.h <<_ACEOF
1449#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1450_ACEOF
1451
1452
1453# Let the site file select an alternate cache file if it wants to.
1454# Prefer explicitly selected file to automatically selected ones.
1455if test -z "$CONFIG_SITE"; then
1456 if test "x$prefix" != xNONE; then
1457 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1458 else
1459 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1460 fi
1461fi
1462for ac_site_file in $CONFIG_SITE; do
1463 if test -r "$ac_site_file"; then
1464 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1465echo "$as_me: loading site script $ac_site_file" >&6;}
1466 sed 's/^/| /' "$ac_site_file" >&5
1467 . "$ac_site_file"
1468 fi
1469done
1470
1471if test -r "$cache_file"; then
1472 # Some versions of bash will fail to source /dev/null (special
1473 # files actually), so we avoid doing that.
1474 if test -f "$cache_file"; then
1475 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1476echo "$as_me: loading cache $cache_file" >&6;}
1477 case $cache_file in
1478 [\\/]* | ?:[\\/]* ) . $cache_file;;
1479 *) . ./$cache_file;;
1480 esac
1481 fi
1482else
1483 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1484echo "$as_me: creating cache $cache_file" >&6;}
1485 >$cache_file
1486fi
1487
1488# Check that the precious variables saved in the cache have kept the same
1489# value.
1490ac_cache_corrupted=false
1491for ac_var in `(set) 2>&1 |
ac1cb8d3 1492 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
a848cd7e
SC
1493 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1494 eval ac_new_set=\$ac_env_${ac_var}_set
1495 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1496 eval ac_new_val="\$ac_env_${ac_var}_value"
1497 case $ac_old_set,$ac_new_set in
1498 set,)
1499 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1500echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1501 ac_cache_corrupted=: ;;
1502 ,set)
1503 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1504echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1505 ac_cache_corrupted=: ;;
1506 ,);;
1507 *)
1508 if test "x$ac_old_val" != "x$ac_new_val"; then
ac1cb8d3 1509 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
a848cd7e 1510echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
ac1cb8d3 1511 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
a848cd7e 1512echo "$as_me: former value: $ac_old_val" >&2;}
ac1cb8d3 1513 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
a848cd7e 1514echo "$as_me: current value: $ac_new_val" >&2;}
ac1cb8d3 1515 ac_cache_corrupted=:
a848cd7e
SC
1516 fi;;
1517 esac
1518 # Pass precious variables to config.status.
1519 if test "$ac_new_set" = set; then
1520 case $ac_new_val in
1521 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1522 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1523 *) ac_arg=$ac_var=$ac_new_val ;;
1524 esac
1525 case " $ac_configure_args " in
1526 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1527 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1528 esac
1529 fi
1530done
1531if $ac_cache_corrupted; then
1532 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1533echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1534 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1535echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1536 { (exit 1); exit 1; }; }
1537fi
1538
1539ac_ext=c
1540ac_cpp='$CPP $CPPFLAGS'
1541ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1542ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1543ac_compiler_gnu=$ac_cv_c_compiler_gnu
1544
1545
1546
1547
1548
1549
1550
1551
1552
1553
1554
1555
1556
1557
1558
1559
1560
1561
1562
1563
1564
1565
1566
1567
1568
1569
1570
1571
1572
1573
1574ac_aux_dir=
1575for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1576 if test -f $ac_dir/install-sh; then
1577 ac_aux_dir=$ac_dir
1578 ac_install_sh="$ac_aux_dir/install-sh -c"
1579 break
1580 elif test -f $ac_dir/install.sh; then
1581 ac_aux_dir=$ac_dir
1582 ac_install_sh="$ac_aux_dir/install.sh -c"
1583 break
1584 elif test -f $ac_dir/shtool; then
1585 ac_aux_dir=$ac_dir
1586 ac_install_sh="$ac_aux_dir/shtool install -c"
1587 break
1588 fi
1589done
1590if test -z "$ac_aux_dir"; then
1591 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1592echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1593 { (exit 1); exit 1; }; }
1594fi
1595ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1596ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1597ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1598
1599# Make sure we can run config.sub.
1600$ac_config_sub sun4 >/dev/null 2>&1 ||
1601 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1602echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1603 { (exit 1); exit 1; }; }
1604
1605echo "$as_me:$LINENO: checking build system type" >&5
1606echo $ECHO_N "checking build system type... $ECHO_C" >&6
1607if test "${ac_cv_build+set}" = set; then
1608 echo $ECHO_N "(cached) $ECHO_C" >&6
1609else
1610 ac_cv_build_alias=$build_alias
1611test -z "$ac_cv_build_alias" &&
1612 ac_cv_build_alias=`$ac_config_guess`
1613test -z "$ac_cv_build_alias" &&
1614 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1615echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1616 { (exit 1); exit 1; }; }
1617ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1618 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1619echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1620 { (exit 1); exit 1; }; }
1621
1622fi
1623echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1624echo "${ECHO_T}$ac_cv_build" >&6
1625build=$ac_cv_build
1626build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1627build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1628build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1629
1630
1631echo "$as_me:$LINENO: checking host system type" >&5
1632echo $ECHO_N "checking host system type... $ECHO_C" >&6
1633if test "${ac_cv_host+set}" = set; then
1634 echo $ECHO_N "(cached) $ECHO_C" >&6
1635else
1636 ac_cv_host_alias=$host_alias
1637test -z "$ac_cv_host_alias" &&
1638 ac_cv_host_alias=$ac_cv_build_alias
1639ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1640 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1641echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1642 { (exit 1); exit 1; }; }
1643
1644fi
1645echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1646echo "${ECHO_T}$ac_cv_host" >&6
1647host=$ac_cv_host
1648host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1649host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1650host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1651
1652
1653echo "$as_me:$LINENO: checking target system type" >&5
1654echo $ECHO_N "checking target system type... $ECHO_C" >&6
1655if test "${ac_cv_target+set}" = set; then
1656 echo $ECHO_N "(cached) $ECHO_C" >&6
1657else
1658 ac_cv_target_alias=$target_alias
1659test "x$ac_cv_target_alias" = "x" &&
1660 ac_cv_target_alias=$ac_cv_host_alias
1661ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1662 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1663echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1664 { (exit 1); exit 1; }; }
1665
1666fi
1667echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1668echo "${ECHO_T}$ac_cv_target" >&6
1669target=$ac_cv_target
1670target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1671target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1672target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1673
1674
1675# The aliases save the names the user supplied, while $host etc.
1676# will get canonicalized.
1677test -n "$target_alias" &&
1678 test "$program_prefix$program_suffix$program_transform_name" = \
1679 NONENONEs,x,x, &&
1680 program_prefix=${target_alias}-
1681
1682
1683
ceec2216 1684wx_major_version_number=2
dd8df4fc
VZ
1685wx_minor_version_number=7
1686wx_release_number=0
1687wx_subrelease_number=0
a848cd7e 1688
ceec2216
RL
1689WX_RELEASE=$wx_major_version_number.$wx_minor_version_number
1690WX_VERSION=$WX_RELEASE.$wx_release_number
1691WX_SUBVERSION=$WX_VERSION.$wx_subrelease_number
a848cd7e 1692
ceec2216 1693WX_MSW_VERSION=$wx_major_version_number$wx_minor_version_number$wx_release_number
a848cd7e 1694
a848cd7e
SC
1695
1696
1697
1698USE_UNIX=1
1699USE_OS2=0
1700USE_WIN32=0
1701USE_DOS=0
1702USE_BEOS=0
1703USE_MAC=0
1704
1705USE_AIX=
1706USE_BSD= USE_DARWIN= USE_FREEBSD=
1707USE_GNU= USE_HPUX=
1708USE_LINUX=
1709USE_NETBSD=
1710USE_OPENBSD=
1711USE_OSF= USE_SGI=
1712USE_SOLARIS= USE_SUN= USE_SUNOS= USE_SVR4= USE_SYSV= USE_VMS=
1713USE_ULTRIX=
1714USE_UNIXWARE=
1715
1716USE_ALPHA=
1717
1718NEEDS_D_REENTRANT_FOR_R_FUNCS=0
1719
1720ALL_TOOLKITS="COCOA GTK MAC MGL MICROWIN MOTIF MSW PM X11"
1721
1722DEFAULT_wxUSE_COCOA=0
1723DEFAULT_wxUSE_GTK=0
1724DEFAULT_wxUSE_MAC=0
1725DEFAULT_wxUSE_MGL=0
1726DEFAULT_wxUSE_MICROWIN=0
1727DEFAULT_wxUSE_MOTIF=0
1728DEFAULT_wxUSE_MSW=0
1729DEFAULT_wxUSE_PM=0
1730DEFAULT_wxUSE_X11=0
1731
1732DEFAULT_DEFAULT_wxUSE_COCOA=0
1733DEFAULT_DEFAULT_wxUSE_GTK=0
1734DEFAULT_DEFAULT_wxUSE_MAC=0
1735DEFAULT_DEFAULT_wxUSE_MGL=0
1736DEFAULT_DEFAULT_wxUSE_MICROWIN=0
1737DEFAULT_DEFAULT_wxUSE_MOTIF=0
1738DEFAULT_DEFAULT_wxUSE_MSW=0
1739DEFAULT_DEFAULT_wxUSE_PM=0
1740DEFAULT_DEFAULT_wxUSE_X11=0
1741
1742PROGRAM_EXT=
1743SO_SUFFIX=so
1744SAMPLES_RPATH_FLAG=
1745SAMPLES_RPATH_POSTLINK=
1746
a03b8b04
RD
1747DEFAULT_STD_FLAG=yes
1748
a848cd7e
SC
1749case "${host}" in
1750 *-hp-hpux* )
1751 USE_HPUX=1
1752 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1753 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
1754 SO_SUFFIX=sl
1755 cat >>confdefs.h <<\_ACEOF
1756#define __HPUX__ 1
1757_ACEOF
1758
2eef8513 1759
c92ad099 1760 CPPFLAGS="-D_HPUX_SOURCE $CPPFLAGS"
a848cd7e
SC
1761 ;;
1762 *-*-linux* )
1763 USE_LINUX=1
1764 cat >>confdefs.h <<\_ACEOF
1765#define __LINUX__ 1
1766_ACEOF
1767
1768 TMP=`uname -m`
1769 if test "x$TMP" = "xalpha"; then
1770 USE_ALPHA=1
1771 cat >>confdefs.h <<\_ACEOF
1772#define __ALPHA__ 1
1773_ACEOF
1774
1775 fi
1776 DEFAULT_DEFAULT_wxUSE_GTK=1
1777 ;;
1778 *-*-gnu* | *-*-k*bsd*-gnu )
1779 USE_GNU=1
1780 TMP=`uname -m`
1781 if test "x$TMP" = "xalpha"; then
1782 USE_ALPHA=1
1783 cat >>confdefs.h <<\_ACEOF
1784#define __ALPHA__ 1
1785_ACEOF
1786
1787 fi
1788 DEFAULT_DEFAULT_wxUSE_GTK=1
1789 ;;
1790 *-*-irix5* | *-*-irix6* )
1791 USE_SGI=1
1792 USE_SVR4=1
1793 cat >>confdefs.h <<\_ACEOF
1794#define __SGI__ 1
1795_ACEOF
1796
1797 cat >>confdefs.h <<\_ACEOF
1798#define __SVR4__ 1
1799_ACEOF
1800
1801 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1802 ;;
1803 *-*-solaris2* )
1804 USE_SUN=1
1805 USE_SOLARIS=1
1806 USE_SVR4=1
1807 cat >>confdefs.h <<\_ACEOF
1808#define __SUN__ 1
1809_ACEOF
1810
1811 cat >>confdefs.h <<\_ACEOF
1812#define __SOLARIS__ 1
1813_ACEOF
1814
1815 cat >>confdefs.h <<\_ACEOF
1816#define __SVR4__ 1
1817_ACEOF
1818
1819 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1820 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
1821 ;;
1822 *-*-sunos4* )
1823 USE_SUN=1
1824 USE_SUNOS=1
1825 USE_BSD=1
1826 cat >>confdefs.h <<\_ACEOF
1827#define __SUN__ 1
1828_ACEOF
1829
1830 cat >>confdefs.h <<\_ACEOF
1831#define __SUNOS__ 1
1832_ACEOF
1833
1834 cat >>confdefs.h <<\_ACEOF
1835#define __BSD__ 1
1836_ACEOF
1837
1838 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1839 ;;
1840 *-*-freebsd*)
1841 USE_BSD=1
1842 USE_FREEBSD=1
1843 cat >>confdefs.h <<\_ACEOF
1844#define __FREEBSD__ 1
1845_ACEOF
1846
1847 cat >>confdefs.h <<\_ACEOF
1848#define __BSD__ 1
1849_ACEOF
1850
1851 DEFAULT_DEFAULT_wxUSE_GTK=1
1852 ;;
c9a66001 1853 *-*-openbsd*|*-*-mirbsd*)
a848cd7e
SC
1854 USE_BSD=1
1855 USE_OPENBSD=1
1856 cat >>confdefs.h <<\_ACEOF
1857#define __OPENBSD__ 1
1858_ACEOF
1859
1860 cat >>confdefs.h <<\_ACEOF
1861#define __BSD__ 1
1862_ACEOF
1863
1864 DEFAULT_DEFAULT_wxUSE_GTK=1
1865 ;;
1866 *-*-netbsd*)
1867 USE_BSD=1
1868 USE_NETBSD=1
1869 cat >>confdefs.h <<\_ACEOF
1870#define __NETBSD__ 1
1871_ACEOF
1872
1873 cat >>confdefs.h <<\_ACEOF
1874#define __BSD__ 1
1875_ACEOF
1876
1877 DEFAULT_DEFAULT_wxUSE_GTK=1
728258f4 1878 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
def7c04a 1879
def7c04a 1880 CPPFLAGS="-D_NETBSD_SOURCE -D_LIBC $CPPFLAGS"
a848cd7e
SC
1881 ;;
1882 *-*-osf* )
1883 USE_ALPHA=1
1884 USE_OSF=1
1885 cat >>confdefs.h <<\_ACEOF
1886#define __ALPHA__ 1
1887_ACEOF
1888
1889 cat >>confdefs.h <<\_ACEOF
1890#define __OSF__ 1
1891_ACEOF
1892
1893 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1894 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
1895 ;;
1896 *-*-dgux5* )
1897 USE_ALPHA=1
1898 USE_SVR4=1
1899 cat >>confdefs.h <<\_ACEOF
1900#define __ALPHA__ 1
1901_ACEOF
1902
1903 cat >>confdefs.h <<\_ACEOF
1904#define __SVR4__ 1
1905_ACEOF
1906
1907 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1908 ;;
1909 *-*-sysv5* )
1910 USE_SYSV=1
1911 USE_SVR4=1
1912 cat >>confdefs.h <<\_ACEOF
1913#define __SYSV__ 1
1914_ACEOF
1915
1916 cat >>confdefs.h <<\_ACEOF
1917#define __SVR4__ 1
1918_ACEOF
1919
1920 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1921 ;;
1922 *-*-aix* )
1923 USE_AIX=1
1924 USE_SYSV=1
1925 USE_SVR4=1
1926 SO_SUFFIX=a
1927 cat >>confdefs.h <<\_ACEOF
1928#define __AIX__ 1
1929_ACEOF
1930
1931 cat >>confdefs.h <<\_ACEOF
1932#define __SYSV__ 1
1933_ACEOF
1934
1935 cat >>confdefs.h <<\_ACEOF
1936#define __SVR4__ 1
1937_ACEOF
1938
1939 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1940 ;;
1941
1942 *-*-*UnixWare*)
1943 USE_SYSV=1
1944 USE_SVR4=1
1945 USE_UNIXWARE=1
1946 cat >>confdefs.h <<\_ACEOF
1947#define __UNIXWARE__ 1
1948_ACEOF
1949
1950 ;;
1951
1952 *-*-cygwin* | *-*-mingw32* )
1953 SO_SUFFIX=dll
1954 PROGRAM_EXT=".exe"
a848cd7e 1955 DEFAULT_DEFAULT_wxUSE_MSW=1
a03b8b04 1956 DEFAULT_STD_FLAG=no
a848cd7e
SC
1957 ;;
1958
1959 *-pc-msdosdjgpp )
1960 USE_UNIX=0
1961 USE_DOS=1
1962 cat >>confdefs.h <<\_ACEOF
1963#define __DOS__ 1
1964_ACEOF
1965
1966 PROGRAM_EXT=".exe"
1967 DEFAULT_DEFAULT_wxUSE_MGL=1
a848cd7e
SC
1968 ;;
1969
1970 *-pc-os2_emx | *-pc-os2-emx )
1971 cat >>confdefs.h <<\_ACEOF
1972#define __EMX__ 1
1973_ACEOF
1974
1975 USE_OS2=1
1976 cat >>confdefs.h <<\_ACEOF
1977#define __OS2__ 1
1978_ACEOF
1979
1980 PROGRAM_EXT=".exe"
1981 DEFAULT_DEFAULT_wxUSE_PM=1
1982 CXX=gcc
1983 LDFLAGS="$LDFLAGS -Zcrtdll"
1984 ac_executable_extensions=".exe"
1985 export ac_executable_extensions
1986 ac_save_IFS="$IFS"
1987 IFS='\\'
1988 ac_TEMP_PATH=
1989 for ac_dir in $PATH; do
1990 IFS=$ac_save_IFS
1991 if test -z "$ac_TEMP_PATH"; then
1992 ac_TEMP_PATH="$ac_dir"
1993 else
1994 ac_TEMP_PATH="$ac_TEMP_PATH/$ac_dir"
1995 fi
1996 done
1997 export PATH="$ac_TEMP_PATH"
1998 unset ac_TEMP_PATH
a03b8b04 1999 DEFAULT_STD_FLAG=no
a848cd7e
SC
2000 ;;
2001
cfda0ea8 2002 *-*-darwin* )
a848cd7e
SC
2003 USE_BSD=1
2004 USE_DARWIN=1
2005 SO_SUFFIX=dylib
2006 cat >>confdefs.h <<\_ACEOF
2007#define __BSD__ 1
2008_ACEOF
2009
2010 cat >>confdefs.h <<\_ACEOF
2011#define __DARWIN__ 1
a848cd7e
SC
2012_ACEOF
2013
2014 cat >>confdefs.h <<\_ACEOF
2015#define TARGET_CARBON 1
2016_ACEOF
2017
2018 DEFAULT_DEFAULT_wxUSE_MAC=1
a03b8b04 2019 DEFAULT_STD_FLAG=no
a848cd7e 2020 ;;
1e9e8aba
DE
2021 powerpc-apple-macos* )
2022 USE_UNIX=0
2023 ac_cv_c_bigendian=yes
2024 SO_SUFFIX=shlib
2025 DEFAULT_DEFAULT_wxUSE_MAC=1
a03b8b04 2026 DEFAULT_STD_FLAG=no
1e9e8aba 2027 ;;
a848cd7e
SC
2028
2029 *-*-beos* )
2030 USE_BEOS=1
2031 cat >>confdefs.h <<\_ACEOF
2032#define __BEOS__ 1
2033_ACEOF
2034
2035 ;;
2036
2037 *)
c9a66001
VZ
2038 { echo "$as_me:$LINENO: WARNING: *** System type ${host} is unknown, assuming generic Unix and continuing nevertheless." >&5
2039echo "$as_me: WARNING: *** System type ${host} is unknown, assuming generic Unix and continuing nevertheless." >&2;}
2040 { echo "$as_me:$LINENO: WARNING: *** Please report the build results to wx-dev@lists.wxwidgets.org." >&5
2041echo "$as_me: WARNING: *** Please report the build results to wx-dev@lists.wxwidgets.org." >&2;}
a848cd7e
SC
2042esac
2043
2044
2045
2046
2047 wx_arg_cache_file="configarg.cache"
2048 echo "loading argument cache $wx_arg_cache_file"
2049 rm -f ${wx_arg_cache_file}.tmp
2050 touch ${wx_arg_cache_file}.tmp
2051 touch ${wx_arg_cache_file}
2052
2053
2054DEBUG_CONFIGURE=0
2055if test $DEBUG_CONFIGURE = 1; then
2056 DEFAULT_wxUSE_UNIVERSAL=no
2057 DEFAULT_wxUSE_STL=no
2058
2059 DEFAULT_wxUSE_NANOX=no
2060
2061 DEFAULT_wxUSE_THREADS=yes
2062
2063 DEFAULT_wxUSE_SHARED=yes
2064 DEFAULT_wxUSE_OPTIMISE=no
2065 DEFAULT_wxUSE_PROFILE=no
2066 DEFAULT_wxUSE_NO_DEPS=no
2067 DEFAULT_wxUSE_NO_RTTI=no
2068 DEFAULT_wxUSE_NO_EXCEPTIONS=no
7afc46ab 2069 DEFAULT_wxUSE_UNIVERSAL_BINARY=no
ffa0583f 2070 DEFAULT_wxUSE_RPATH=yes
a848cd7e
SC
2071 DEFAULT_wxUSE_PERMISSIVE=no
2072 DEFAULT_wxUSE_DEBUG_FLAG=yes
2073 DEFAULT_wxUSE_DEBUG_INFO=yes
2074 DEFAULT_wxUSE_DEBUG_GDB=yes
2075 DEFAULT_wxUSE_MEM_TRACING=no
2076 DEFAULT_wxUSE_DEBUG_CONTEXT=no
2077 DEFAULT_wxUSE_DMALLOC=no
2078 DEFAULT_wxUSE_APPLE_IEEE=no
2079
2080 DEFAULT_wxUSE_EXCEPTIONS=no
2081 DEFAULT_wxUSE_LOG=yes
2082 DEFAULT_wxUSE_LOGWINDOW=no
2083 DEFAULT_wxUSE_LOGGUI=no
2084 DEFAULT_wxUSE_LOGDIALOG=no
2085
2086 DEFAULT_wxUSE_GUI=yes
2087 DEFAULT_wxUSE_CONTROLS=no
2088
2089 DEFAULT_wxUSE_REGEX=no
2090 DEFAULT_wxUSE_XML=no
2091 DEFAULT_wxUSE_EXPAT=no
2092 DEFAULT_wxUSE_ZLIB=no
2093 DEFAULT_wxUSE_LIBPNG=no
2094 DEFAULT_wxUSE_LIBJPEG=no
2095 DEFAULT_wxUSE_LIBTIFF=no
2096 DEFAULT_wxUSE_LIBXPM=no
2097 DEFAULT_wxUSE_LIBMSPACK=no
2098 DEFAULT_wxUSE_LIBSDL=no
d1c38808 2099 DEFAULT_wxUSE_LIBGNOMEPRINT=no
2b850ae1 2100 DEFAULT_wxUSE_LIBGNOMEVFS=no
3565d135 2101 DEFAULT_wxUSE_LIBHILDON=no
a848cd7e
SC
2102 DEFAULT_wxUSE_ODBC=no
2103 DEFAULT_wxUSE_OPENGL=no
2104
2105 DEFAULT_wxUSE_ON_FATAL_EXCEPTION=no
eaff0f0d 2106 DEFAULT_wxUSE_STACKWALKER=no
36b6448c 2107 DEFAULT_wxUSE_DEBUGREPORT=no
a848cd7e
SC
2108 DEFAULT_wxUSE_SNGLINST_CHECKER=no
2109 DEFAULT_wxUSE_STD_IOSTREAM=no
59746b65 2110 DEFAULT_wxUSE_STD_STRING=no
a848cd7e
SC
2111 DEFAULT_wxUSE_CMDLINE_PARSER=no
2112 DEFAULT_wxUSE_DATETIME=no
2113 DEFAULT_wxUSE_TIMER=no
2114 DEFAULT_wxUSE_STOPWATCH=no
2115 DEFAULT_wxUSE_FILE=no
2116 DEFAULT_wxUSE_FFILE=no
07158944 2117 DEFAULT_wxUSE_STDPATHS=no
a848cd7e
SC
2118 DEFAULT_wxUSE_TEXTBUFFER=no
2119 DEFAULT_wxUSE_TEXTFILE=no
2120 DEFAULT_wxUSE_SOUND=no
3b57de8b 2121 DEFAULT_wxUSE_MEDIACTRL=no
f10e38c4 2122 DEFAULT_wxUSE_GSTREAMER8=no
8b6682b9 2123 DEFAULT_wxUSE_PRINTF_POS_PARAM=no
a848cd7e
SC
2124 DEFAULT_wxUSE_INTL=no
2125 DEFAULT_wxUSE_CONFIG=no
2126 DEFAULT_wxUSE_FONTMAP=no
2127 DEFAULT_wxUSE_STREAMS=no
2128 DEFAULT_wxUSE_SOCKETS=no
2129 DEFAULT_wxUSE_OLE=no
2130 DEFAULT_wxUSE_DATAOBJ=no
2131 DEFAULT_wxUSE_DIALUP_MANAGER=no
2132 DEFAULT_wxUSE_JOYSTICK=no
2133 DEFAULT_wxUSE_DYNLIB_CLASS=no
2134 DEFAULT_wxUSE_DYNAMIC_LOADER=no
2135 DEFAULT_wxUSE_LONGLONG=no
2136 DEFAULT_wxUSE_GEOMETRY=no
2137
2138 DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=no
2139 DEFAULT_wxUSE_NORMALIZED_PS_FONTS=no
2140 DEFAULT_wxUSE_POSTSCRIPT=no
2141
2142 DEFAULT_wxUSE_CLIPBOARD=no
2143 DEFAULT_wxUSE_TOOLTIPS=no
2144 DEFAULT_wxUSE_DRAG_AND_DROP=no
2145 DEFAULT_wxUSE_DRAGIMAGE=no
2146 DEFAULT_wxUSE_SPLINES=no
fbe2ca43 2147 DEFAULT_wxUSE_MOUSEWHEEL=no
a848cd7e 2148
8a7b1113 2149 DEFAULT_wxUSE_MDI=no
a848cd7e
SC
2150 DEFAULT_wxUSE_MDI_ARCHITECTURE=no
2151 DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=no
2152 DEFAULT_wxUSE_PRINTING_ARCHITECTURE=no
2153
2154 DEFAULT_wxUSE_RESOURCES=no
2155 DEFAULT_wxUSE_CONSTRAINTS=no
2156 DEFAULT_wxUSE_IPC=no
2157 DEFAULT_wxUSE_HELP=no
2158 DEFAULT_wxUSE_MS_HTML_HELP=no
2159 DEFAULT_wxUSE_WXHTML_HELP=no
2160 DEFAULT_wxUSE_TREELAYOUT=no
2161 DEFAULT_wxUSE_METAFILE=no
2162 DEFAULT_wxUSE_MIMETYPE=no
2163 DEFAULT_wxUSE_SYSTEM_OPTIONS=no
2164 DEFAULT_wxUSE_PROTOCOL=no
2165 DEFAULT_wxUSE_PROTOCOL_HTTP=no
2166 DEFAULT_wxUSE_PROTOCOL_FTP=no
2167 DEFAULT_wxUSE_PROTOCOL_FILE=no
2168 DEFAULT_wxUSE_URL=no
2169
2170 DEFAULT_wxUSE_COMMONDLGS=no
2171 DEFAULT_wxUSE_CHOICEDLG=no
2172 DEFAULT_wxUSE_COLOURDLG=no
2173 DEFAULT_wxUSE_DIRDLG=no
2174 DEFAULT_wxUSE_FILEDLG=no
2175 DEFAULT_wxUSE_FINDREPLDLG=no
2176 DEFAULT_wxUSE_FONTDLG=no
2177 DEFAULT_wxUSE_MSGDLG=no
2178 DEFAULT_wxUSE_NUMBERDLG=no
2179 DEFAULT_wxUSE_TEXTDLG=no
2180 DEFAULT_wxUSE_SPLASH=no
2181 DEFAULT_wxUSE_STARTUP_TIPS=no
2182 DEFAULT_wxUSE_PROGRESSDLG=no
2183 DEFAULT_wxUSE_WIZARDDLG=no
2184
2185 DEFAULT_wxUSE_MENUS=no
2186 DEFAULT_wxUSE_MINIFRAME=no
2187 DEFAULT_wxUSE_HTML=no
91dea314 2188 DEFAULT_wxUSE_RICHTEXT=no
9a8f0513 2189 DEFAULT_wxUSE_XRC=no
3f60522a 2190 DEFAULT_wxUSE_AUI=no
646b6ec1 2191 DEFAULT_wxUSE_WEBKIT=no
a848cd7e
SC
2192 DEFAULT_wxUSE_FILESYSTEM=no
2193 DEFAULT_wxUSE_FS_INET=no
2194 DEFAULT_wxUSE_FS_ZIP=no
2195 DEFAULT_wxUSE_BUSYINFO=no
9e8e867f 2196 DEFAULT_wxUSE_ARCHIVE_STREAMS=no
a848cd7e 2197 DEFAULT_wxUSE_ZIPSTREAM=no
a848cd7e
SC
2198 DEFAULT_wxUSE_VALIDATORS=no
2199
2200 DEFAULT_wxUSE_ACCEL=no
2201 DEFAULT_wxUSE_BUTTON=no
2202 DEFAULT_wxUSE_BMPBUTTON=no
2203 DEFAULT_wxUSE_CALCTRL=no
2204 DEFAULT_wxUSE_CARET=no
2205 DEFAULT_wxUSE_CHECKBOX=no
2206 DEFAULT_wxUSE_CHECKLST=no
2207 DEFAULT_wxUSE_CHOICE=no
92bbdbcd 2208 DEFAULT_wxUSE_CHOICEBOOK=no
e9263684 2209 DEFAULT_wxUSE_COLOURPICKERCTRL=no
a848cd7e 2210 DEFAULT_wxUSE_COMBOBOX=no
a57d600f 2211 DEFAULT_wxUSE_COMBOCTRL=no
da98e9be 2212 DEFAULT_wxUSE_DATEPICKCTRL=no
a848cd7e 2213 DEFAULT_wxUSE_DISPLAY=no
e9263684
VZ
2214 DEFAULT_wxUSE_DIRPICKERCTRL=no
2215 DEFAULT_wxUSE_FILEPICKERCTRL=no
2216 DEFAULT_wxUSE_FONTPICKERCTRL=no
a848cd7e
SC
2217 DEFAULT_wxUSE_GAUGE=no
2218 DEFAULT_wxUSE_GRID=no
6954625c 2219 DEFAULT_wxUSE_HYPERLINKCTRL=no
20e34ecc 2220 DEFAULT_wxUSE_DATAVIEWCTRL=no
a848cd7e
SC
2221 DEFAULT_wxUSE_IMAGLIST=no
2222 DEFAULT_wxUSE_LISTBOOK=no
2223 DEFAULT_wxUSE_LISTBOX=no
2224 DEFAULT_wxUSE_LISTCTRL=no
2225 DEFAULT_wxUSE_NOTEBOOK=no
a57d600f 2226 DEFAULT_wxUSE_ODCOMBOBOX=no
a848cd7e
SC
2227 DEFAULT_wxUSE_RADIOBOX=no
2228 DEFAULT_wxUSE_RADIOBTN=no
2229 DEFAULT_wxUSE_SASH=no
2230 DEFAULT_wxUSE_SCROLLBAR=no
2231 DEFAULT_wxUSE_SLIDER=no
2232 DEFAULT_wxUSE_SPINBTN=no
2233 DEFAULT_wxUSE_SPINCTRL=no
2234 DEFAULT_wxUSE_SPLITTER=no
2235 DEFAULT_wxUSE_STATBMP=no
2236 DEFAULT_wxUSE_STATBOX=no
2237 DEFAULT_wxUSE_STATLINE=no
2238 DEFAULT_wxUSE_STATTEXT=no
2239 DEFAULT_wxUSE_STATUSBAR=yes
f10e38c4 2240 DEFAULT_wxUSE_TAB_DIALOG=no
a848cd7e
SC
2241 DEFAULT_wxUSE_TEXTCTRL=no
2242 DEFAULT_wxUSE_TOGGLEBTN=no
2243 DEFAULT_wxUSE_TOOLBAR=no
2244 DEFAULT_wxUSE_TOOLBAR_NATIVE=no
2245 DEFAULT_wxUSE_TOOLBAR_SIMPLE=no
0093c2fc 2246 DEFAULT_wxUSE_TREEBOOK=no
5ec3bc43 2247 DEFAULT_wxUSE_TOOLBOOK=no
a848cd7e
SC
2248 DEFAULT_wxUSE_TREECTRL=no
2249 DEFAULT_wxUSE_POPUPWIN=no
2250 DEFAULT_wxUSE_TIPWINDOW=no
2251
2252 DEFAULT_wxUSE_UNICODE=no
2253 DEFAULT_wxUSE_UNICODE_MSLU=no
2254 DEFAULT_wxUSE_WCSRTOMBS=no
2255
2256 DEFAULT_wxUSE_PALETTE=no
2257 DEFAULT_wxUSE_IMAGE=no
2258 DEFAULT_wxUSE_GIF=no
2259 DEFAULT_wxUSE_PCX=no
2260 DEFAULT_wxUSE_PNM=no
2261 DEFAULT_wxUSE_IFF=no
2262 DEFAULT_wxUSE_XPM=no
2263 DEFAULT_wxUSE_ICO_CUR=no
2264 DEFAULT_wxUSE_ACCESSIBILITY=no
2265
2266 DEFAULT_wxUSE_MONOLITHIC=no
2267 DEFAULT_wxUSE_PLUGINS=no
2268 DEFAULT_wxUSE_OFFICIAL_BUILD=no
2269else
2270 DEFAULT_wxUSE_UNIVERSAL=no
2271 DEFAULT_wxUSE_STL=no
2272
2273 DEFAULT_wxUSE_NANOX=no
2274
2275 DEFAULT_wxUSE_THREADS=yes
2276
2277 DEFAULT_wxUSE_SHARED=yes
2278 DEFAULT_wxUSE_OPTIMISE=yes
2279 DEFAULT_wxUSE_PROFILE=no
2280 DEFAULT_wxUSE_NO_DEPS=no
2281 DEFAULT_wxUSE_NO_RTTI=no
2282 DEFAULT_wxUSE_NO_EXCEPTIONS=no
7afc46ab 2283 DEFAULT_wxUSE_UNIVERSAL_BINARY=no
ffa0583f 2284 DEFAULT_wxUSE_RPATH=yes
a848cd7e
SC
2285 DEFAULT_wxUSE_PERMISSIVE=no
2286 DEFAULT_wxUSE_DEBUG_FLAG=no
2287 DEFAULT_wxUSE_DEBUG_INFO=no
2288 DEFAULT_wxUSE_DEBUG_GDB=no
2289 DEFAULT_wxUSE_MEM_TRACING=no
2290 DEFAULT_wxUSE_DEBUG_CONTEXT=no
2291 DEFAULT_wxUSE_DMALLOC=no
2292 DEFAULT_wxUSE_APPLE_IEEE=yes
2293
2294 DEFAULT_wxUSE_EXCEPTIONS=yes
2295 DEFAULT_wxUSE_LOG=yes
2296 DEFAULT_wxUSE_LOGWINDOW=yes
2297 DEFAULT_wxUSE_LOGGUI=yes
2298 DEFAULT_wxUSE_LOGDIALOG=yes
2299
2300 DEFAULT_wxUSE_GUI=yes
2301
2302 DEFAULT_wxUSE_REGEX=yes
2303 DEFAULT_wxUSE_XML=yes
2304 DEFAULT_wxUSE_EXPAT=yes
2305 DEFAULT_wxUSE_ZLIB=yes
2306 DEFAULT_wxUSE_LIBPNG=yes
2307 DEFAULT_wxUSE_LIBJPEG=yes
2308 DEFAULT_wxUSE_LIBTIFF=yes
2309 DEFAULT_wxUSE_LIBXPM=yes
2310 DEFAULT_wxUSE_LIBMSPACK=yes
2311 DEFAULT_wxUSE_LIBSDL=no
a03b8b04 2312 DEFAULT_wxUSE_LIBGNOMEPRINT=no
2b850ae1 2313 DEFAULT_wxUSE_LIBGNOMEVFS=no
3565d135 2314 DEFAULT_wxUSE_LIBHILDON=no
a848cd7e 2315 DEFAULT_wxUSE_ODBC=no
52cb607e 2316 DEFAULT_wxUSE_OPENGL=no
a848cd7e
SC
2317
2318 DEFAULT_wxUSE_ON_FATAL_EXCEPTION=yes
eaff0f0d 2319 DEFAULT_wxUSE_STACKWALKER=yes
6671c68b 2320 DEFAULT_wxUSE_DEBUGREPORT=yes
a848cd7e 2321 DEFAULT_wxUSE_SNGLINST_CHECKER=yes
a03b8b04
RD
2322 DEFAULT_wxUSE_STD_IOSTREAM=$DEFAULT_STD_FLAG
2323 DEFAULT_wxUSE_STD_STRING=$DEFAULT_STD_FLAG
a848cd7e
SC
2324 DEFAULT_wxUSE_CMDLINE_PARSER=yes
2325 DEFAULT_wxUSE_DATETIME=yes
2326 DEFAULT_wxUSE_TIMER=yes
2327 DEFAULT_wxUSE_STOPWATCH=yes
2328 DEFAULT_wxUSE_FILE=yes
2329 DEFAULT_wxUSE_FFILE=yes
07158944 2330 DEFAULT_wxUSE_STDPATHS=yes
a848cd7e
SC
2331 DEFAULT_wxUSE_TEXTBUFFER=yes
2332 DEFAULT_wxUSE_TEXTFILE=yes
2333 DEFAULT_wxUSE_SOUND=yes
3b57de8b 2334 DEFAULT_wxUSE_MEDIACTRL=no
f10e38c4 2335 DEFAULT_wxUSE_GSTREAMER8=no
8b6682b9 2336 DEFAULT_wxUSE_PRINTF_POS_PARAM=yes
a848cd7e
SC
2337 DEFAULT_wxUSE_INTL=yes
2338 DEFAULT_wxUSE_CONFIG=yes
2339 DEFAULT_wxUSE_FONTMAP=yes
2340 DEFAULT_wxUSE_STREAMS=yes
2341 DEFAULT_wxUSE_SOCKETS=yes
2342 DEFAULT_wxUSE_OLE=yes
2343 DEFAULT_wxUSE_DATAOBJ=yes
2344 DEFAULT_wxUSE_DIALUP_MANAGER=yes
2345 DEFAULT_wxUSE_JOYSTICK=yes
2346 DEFAULT_wxUSE_DYNLIB_CLASS=yes
2347 DEFAULT_wxUSE_DYNAMIC_LOADER=yes
2348 DEFAULT_wxUSE_LONGLONG=yes
2349 DEFAULT_wxUSE_GEOMETRY=yes
2350
2351 DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=yes
2352 DEFAULT_wxUSE_NORMALIZED_PS_FONTS=yes
2353 DEFAULT_wxUSE_POSTSCRIPT=yes
2354
2355 DEFAULT_wxUSE_CLIPBOARD=yes
2356 DEFAULT_wxUSE_TOOLTIPS=yes
2357 DEFAULT_wxUSE_DRAG_AND_DROP=yes
2358 DEFAULT_wxUSE_DRAGIMAGE=yes
2359 DEFAULT_wxUSE_SPLINES=yes
fbe2ca43 2360 DEFAULT_wxUSE_MOUSEWHEEL=yes
a848cd7e 2361
8a7b1113 2362 DEFAULT_wxUSE_MDI=yes
a848cd7e
SC
2363 DEFAULT_wxUSE_MDI_ARCHITECTURE=yes
2364 DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=yes
2365 DEFAULT_wxUSE_PRINTING_ARCHITECTURE=yes
2366
2367 DEFAULT_wxUSE_RESOURCES=no
2368 DEFAULT_wxUSE_CONSTRAINTS=yes
2369 DEFAULT_wxUSE_IPC=yes
2370 DEFAULT_wxUSE_HELP=yes
2371 DEFAULT_wxUSE_MS_HTML_HELP=yes
2372 DEFAULT_wxUSE_WXHTML_HELP=yes
2373 DEFAULT_wxUSE_TREELAYOUT=yes
2374 DEFAULT_wxUSE_METAFILE=yes
2375 DEFAULT_wxUSE_MIMETYPE=yes
2376 DEFAULT_wxUSE_SYSTEM_OPTIONS=yes
2377 DEFAULT_wxUSE_PROTOCOL=yes
2378 DEFAULT_wxUSE_PROTOCOL_HTTP=yes
2379 DEFAULT_wxUSE_PROTOCOL_FTP=yes
2380 DEFAULT_wxUSE_PROTOCOL_FILE=yes
2381 DEFAULT_wxUSE_URL=yes
2382
2383 DEFAULT_wxUSE_COMMONDLGS=yes
2384 DEFAULT_wxUSE_CHOICEDLG=yes
2385 DEFAULT_wxUSE_COLOURDLG=yes
2386 DEFAULT_wxUSE_DIRDLG=yes
2387 DEFAULT_wxUSE_FILEDLG=yes
2388 DEFAULT_wxUSE_FINDREPLDLG=yes
2389 DEFAULT_wxUSE_FONTDLG=yes
2390 DEFAULT_wxUSE_MSGDLG=yes
2391 DEFAULT_wxUSE_NUMBERDLG=yes
2392 DEFAULT_wxUSE_TEXTDLG=yes
2393 DEFAULT_wxUSE_SPLASH=yes
2394 DEFAULT_wxUSE_STARTUP_TIPS=yes
2395 DEFAULT_wxUSE_PROGRESSDLG=yes
2396 DEFAULT_wxUSE_WIZARDDLG=yes
2397
2398 DEFAULT_wxUSE_MENUS=yes
2399 DEFAULT_wxUSE_MINIFRAME=yes
2400 DEFAULT_wxUSE_HTML=yes
91dea314 2401 DEFAULT_wxUSE_RICHTEXT=yes
9a8f0513 2402 DEFAULT_wxUSE_XRC=yes
3f60522a 2403 DEFAULT_wxUSE_AUI=yes
646b6ec1 2404 DEFAULT_wxUSE_WEBKIT=yes
a848cd7e
SC
2405 DEFAULT_wxUSE_FILESYSTEM=yes
2406 DEFAULT_wxUSE_FS_INET=yes
2407 DEFAULT_wxUSE_FS_ZIP=yes
2408 DEFAULT_wxUSE_BUSYINFO=yes
9e8e867f 2409 DEFAULT_wxUSE_ARCHIVE_STREAMS=yes
a848cd7e 2410 DEFAULT_wxUSE_ZIPSTREAM=yes
a848cd7e
SC
2411 DEFAULT_wxUSE_VALIDATORS=yes
2412
2413 DEFAULT_wxUSE_ACCEL=yes
2414 DEFAULT_wxUSE_BUTTON=yes
2415 DEFAULT_wxUSE_BMPBUTTON=yes
2416 DEFAULT_wxUSE_CALCTRL=yes
2417 DEFAULT_wxUSE_CARET=yes
2418 DEFAULT_wxUSE_CHECKBOX=yes
2419 DEFAULT_wxUSE_CHECKLST=yes
2420 DEFAULT_wxUSE_CHOICE=yes
92bbdbcd 2421 DEFAULT_wxUSE_CHOICEBOOK=yes
e9263684 2422 DEFAULT_wxUSE_COLOURPICKERCTRL=yes
a848cd7e 2423 DEFAULT_wxUSE_COMBOBOX=yes
a57d600f 2424 DEFAULT_wxUSE_COMBOCTRL=yes
da98e9be 2425 DEFAULT_wxUSE_DATEPICKCTRL=yes
a848cd7e 2426 DEFAULT_wxUSE_DISPLAY=yes
e9263684
VZ
2427 DEFAULT_wxUSE_DIRPICKERCTRL=yes
2428 DEFAULT_wxUSE_FILEPICKERCTRL=yes
2429 DEFAULT_wxUSE_FONTPICKERCTRL=yes
a848cd7e
SC
2430 DEFAULT_wxUSE_GAUGE=yes
2431 DEFAULT_wxUSE_GRID=yes
6954625c 2432 DEFAULT_wxUSE_HYPERLINKCTRL=yes
20e34ecc 2433 DEFAULT_wxUSE_DATAVIEWCTRL=no
a848cd7e
SC
2434 DEFAULT_wxUSE_IMAGLIST=yes
2435 DEFAULT_wxUSE_LISTBOOK=yes
2436 DEFAULT_wxUSE_LISTBOX=yes
2437 DEFAULT_wxUSE_LISTCTRL=yes
2438 DEFAULT_wxUSE_NOTEBOOK=yes
a57d600f 2439 DEFAULT_wxUSE_ODCOMBOBOX=yes
a848cd7e
SC
2440 DEFAULT_wxUSE_RADIOBOX=yes
2441 DEFAULT_wxUSE_RADIOBTN=yes
2442 DEFAULT_wxUSE_SASH=yes
2443 DEFAULT_wxUSE_SCROLLBAR=yes
2444 DEFAULT_wxUSE_SLIDER=yes
2445 DEFAULT_wxUSE_SPINBTN=yes
2446 DEFAULT_wxUSE_SPINCTRL=yes
2447 DEFAULT_wxUSE_SPLITTER=yes
2448 DEFAULT_wxUSE_STATBMP=yes
2449 DEFAULT_wxUSE_STATBOX=yes
2450 DEFAULT_wxUSE_STATLINE=yes
2451 DEFAULT_wxUSE_STATTEXT=yes
2452 DEFAULT_wxUSE_STATUSBAR=yes
f10e38c4 2453 DEFAULT_wxUSE_TAB_DIALOG=no
a848cd7e
SC
2454 DEFAULT_wxUSE_TEXTCTRL=yes
2455 DEFAULT_wxUSE_TOGGLEBTN=yes
2456 DEFAULT_wxUSE_TOOLBAR=yes
2457 DEFAULT_wxUSE_TOOLBAR_NATIVE=yes
2458 DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes
0093c2fc 2459 DEFAULT_wxUSE_TREEBOOK=yes
5ec3bc43 2460 DEFAULT_wxUSE_TOOLBOOK=yes
a848cd7e
SC
2461 DEFAULT_wxUSE_TREECTRL=yes
2462 DEFAULT_wxUSE_POPUPWIN=yes
2463 DEFAULT_wxUSE_TIPWINDOW=yes
2464
78de529b 2465 DEFAULT_wxUSE_UNICODE=no
a848cd7e
SC
2466 DEFAULT_wxUSE_UNICODE_MSLU=yes
2467 DEFAULT_wxUSE_WCSRTOMBS=no
2468
2469 DEFAULT_wxUSE_PALETTE=yes
2470 DEFAULT_wxUSE_IMAGE=yes
2471 DEFAULT_wxUSE_GIF=yes
2472 DEFAULT_wxUSE_PCX=yes
2473 DEFAULT_wxUSE_IFF=no
2474 DEFAULT_wxUSE_PNM=yes
2475 DEFAULT_wxUSE_XPM=yes
2476 DEFAULT_wxUSE_ICO_CUR=yes
2477 DEFAULT_wxUSE_ACCESSIBILITY=no
2478
2479 DEFAULT_wxUSE_MONOLITHIC=no
2480 DEFAULT_wxUSE_PLUGINS=no
2481 DEFAULT_wxUSE_OFFICIAL_BUILD=no
9f45f08e 2482
f34ca037 2483 DEFAULT_wxUSE_GTK2=yes
a848cd7e
SC
2484fi
2485
2486
2487
f34ca037 2488
a848cd7e
SC
2489for toolkit in `echo $ALL_TOOLKITS`; do
2490 LINE=`grep "wxUSE_$toolkit=" ${wx_arg_cache_file}`
2491 if test "x$LINE" != "x" ; then
2492 has_toolkit_in_cache=1
2493 eval "DEFAULT_$LINE"
2494 eval "CACHE_$toolkit=1"
f34ca037
MW
2495
2496 LINE=`grep "wx${toolkit}_VERSION=" ${wx_arg_cache_file}`
2497 if test "x$LINE" != "x" ; then
2498 eval "DEFAULT_$LINE"
2499 fi
a848cd7e
SC
2500 fi
2501done
2502
2503
2504
2505 enablestring=
2506 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gui" >&5
2507echo $ECHO_N "checking for --${enablestring:-enable}-gui... $ECHO_C" >&6
2508 no_cache=0
2509 # Check whether --enable-gui or --disable-gui was given.
2510if test "${enable_gui+set}" = set; then
2511 enableval="$enable_gui"
2512
2513 if test "$enableval" = yes; then
2514 ac_cv_use_gui='wxUSE_GUI=yes'
2515 else
2516 ac_cv_use_gui='wxUSE_GUI=no'
2517 fi
2518
2519else
2520
2521 LINE=`grep "wxUSE_GUI" ${wx_arg_cache_file}`
2522 if test "x$LINE" != x ; then
2523 eval "DEFAULT_$LINE"
2524 else
2525 no_cache=1
2526 fi
2527
2528 ac_cv_use_gui='wxUSE_GUI='$DEFAULT_wxUSE_GUI
2529
2530fi;
2531
2532 eval "$ac_cv_use_gui"
2533 if test "$no_cache" != 1; then
2534 echo $ac_cv_use_gui >> ${wx_arg_cache_file}.tmp
2535 fi
2536
2537 if test "$wxUSE_GUI" = yes; then
2538 echo "$as_me:$LINENO: result: yes" >&5
2539echo "${ECHO_T}yes" >&6
2540 else
2541 echo "$as_me:$LINENO: result: no" >&5
2542echo "${ECHO_T}no" >&6
2543 fi
2544
2545
2546 enablestring=
2547 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-monolithic" >&5
2548echo $ECHO_N "checking for --${enablestring:-enable}-monolithic... $ECHO_C" >&6
2549 no_cache=0
2550 # Check whether --enable-monolithic or --disable-monolithic was given.
2551if test "${enable_monolithic+set}" = set; then
2552 enableval="$enable_monolithic"
2553
2554 if test "$enableval" = yes; then
2555 ac_cv_use_monolithic='wxUSE_MONOLITHIC=yes'
2556 else
2557 ac_cv_use_monolithic='wxUSE_MONOLITHIC=no'
2558 fi
2559
2560else
2561
2562 LINE=`grep "wxUSE_MONOLITHIC" ${wx_arg_cache_file}`
2563 if test "x$LINE" != x ; then
2564 eval "DEFAULT_$LINE"
2565 else
2566 no_cache=1
2567 fi
2568
2569 ac_cv_use_monolithic='wxUSE_MONOLITHIC='$DEFAULT_wxUSE_MONOLITHIC
2570
2571fi;
2572
2573 eval "$ac_cv_use_monolithic"
2574 if test "$no_cache" != 1; then
2575 echo $ac_cv_use_monolithic >> ${wx_arg_cache_file}.tmp
2576 fi
2577
2578 if test "$wxUSE_MONOLITHIC" = yes; then
2579 echo "$as_me:$LINENO: result: yes" >&5
2580echo "${ECHO_T}yes" >&6
2581 else
2582 echo "$as_me:$LINENO: result: no" >&5
2583echo "${ECHO_T}no" >&6
2584 fi
2585
2586
2587 enablestring=
2588 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-plugins" >&5
2589echo $ECHO_N "checking for --${enablestring:-enable}-plugins... $ECHO_C" >&6
2590 no_cache=0
2591 # Check whether --enable-plugins or --disable-plugins was given.
2592if test "${enable_plugins+set}" = set; then
2593 enableval="$enable_plugins"
2594
2595 if test "$enableval" = yes; then
2596 ac_cv_use_plugins='wxUSE_PLUGINS=yes'
2597 else
2598 ac_cv_use_plugins='wxUSE_PLUGINS=no'
2599 fi
2600
2601else
2602
2603 LINE=`grep "wxUSE_PLUGINS" ${wx_arg_cache_file}`
2604 if test "x$LINE" != x ; then
2605 eval "DEFAULT_$LINE"
2606 else
2607 no_cache=1
2608 fi
2609
2610 ac_cv_use_plugins='wxUSE_PLUGINS='$DEFAULT_wxUSE_PLUGINS
2611
2612fi;
2613
2614 eval "$ac_cv_use_plugins"
2615 if test "$no_cache" != 1; then
2616 echo $ac_cv_use_plugins >> ${wx_arg_cache_file}.tmp
2617 fi
2618
2619 if test "$wxUSE_PLUGINS" = yes; then
2620 echo "$as_me:$LINENO: result: yes" >&5
2621echo "${ECHO_T}yes" >&6
2622 else
2623 echo "$as_me:$LINENO: result: no" >&5
2624echo "${ECHO_T}no" >&6
2625 fi
2626
2627
1c14217d
VZ
2628 withstring=without
2629 echo "$as_me:$LINENO: checking for --${withstring:-with}-subdirs" >&5
2630echo $ECHO_N "checking for --${withstring:-with}-subdirs... $ECHO_C" >&6
2631 no_cache=0
2632
2633# Check whether --with-subdirs or --without-subdirs was given.
2634if test "${with_subdirs+set}" = set; then
2635 withval="$with_subdirs"
2636
2637 if test "$withval" = yes; then
2638 ac_cv_use_subdirs='wxWITH_SUBDIRS=yes'
2639 else
2640 ac_cv_use_subdirs='wxWITH_SUBDIRS=no'
2641 fi
2642
2643else
2644
2645 LINE=`grep "wxWITH_SUBDIRS" ${wx_arg_cache_file}`
2646 if test "x$LINE" != x ; then
2647 eval "DEFAULT_$LINE"
2648 else
2649 no_cache=1
2650 fi
2651
2652 ac_cv_use_subdirs='wxWITH_SUBDIRS='$DEFAULT_wxWITH_SUBDIRS
2653
2654fi;
2655
2656 eval "$ac_cv_use_subdirs"
2657 if test "$no_cache" != 1; then
2658 echo $ac_cv_use_subdirs >> ${wx_arg_cache_file}.tmp
2659 fi
2660
2661 if test "$wxWITH_SUBDIRS" = yes; then
2662 echo "$as_me:$LINENO: result: yes" >&5
2663echo "${ECHO_T}yes" >&6
2664 else
2665 echo "$as_me:$LINENO: result: no" >&5
2666echo "${ECHO_T}no" >&6
2667 fi
2668
2669
a848cd7e
SC
2670if test "$wxUSE_GUI" = "yes"; then
2671
2672
2673 enablestring=
2674 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-universal" >&5
2675echo $ECHO_N "checking for --${enablestring:-enable}-universal... $ECHO_C" >&6
2676 no_cache=0
2677 # Check whether --enable-universal or --disable-universal was given.
2678if test "${enable_universal+set}" = set; then
2679 enableval="$enable_universal"
2680
2681 if test "$enableval" = yes; then
2682 ac_cv_use_universal='wxUSE_UNIVERSAL=yes'
2683 else
2684 ac_cv_use_universal='wxUSE_UNIVERSAL=no'
2685 fi
2686
2687else
2688
2689 LINE=`grep "wxUSE_UNIVERSAL" ${wx_arg_cache_file}`
2690 if test "x$LINE" != x ; then
2691 eval "DEFAULT_$LINE"
2692 else
2693 no_cache=1
2694 fi
2695
2696 ac_cv_use_universal='wxUSE_UNIVERSAL='$DEFAULT_wxUSE_UNIVERSAL
2697
2698fi;
2699
2700 eval "$ac_cv_use_universal"
2701 if test "$no_cache" != 1; then
2702 echo $ac_cv_use_universal >> ${wx_arg_cache_file}.tmp
2703 fi
2704
2705 if test "$wxUSE_UNIVERSAL" = yes; then
2706 echo "$as_me:$LINENO: result: yes" >&5
2707echo "${ECHO_T}yes" >&6
2708 else
2709 echo "$as_me:$LINENO: result: no" >&5
2710echo "${ECHO_T}no" >&6
2711 fi
2712
2713
2714# Check whether --with-gtk or --without-gtk was given.
2715if test "${with_gtk+set}" = set; then
2716 withval="$with_gtk"
2717 wxUSE_GTK="$withval" CACHE_GTK=1 TOOLKIT_GIVEN=1
2718fi;
2719
2720# Check whether --with-motif or --without-motif was given.
2721if test "${with_motif+set}" = set; then
2722 withval="$with_motif"
2723 wxUSE_MOTIF="$withval" CACHE_MOTIF=1 TOOLKIT_GIVEN=1
2724fi;
2725
2726# Check whether --with-mac or --without-mac was given.
2727if test "${with_mac+set}" = set; then
2728 withval="$with_mac"
c228d3a4 2729 wxUSE_MAC="$withval" CACHE_MAC=1 TOOLKIT_GIVEN=1
a848cd7e
SC
2730fi;
2731
2732# Check whether --with-cocoa or --without-cocoa was given.
2733if test "${with_cocoa+set}" = set; then
2734 withval="$with_cocoa"
c228d3a4 2735 wxUSE_COCOA="$withval" CACHE_COCOA=1 TOOLKIT_GIVEN=1
a848cd7e
SC
2736fi;
2737
2738# Check whether --with-wine or --without-wine was given.
2739if test "${with_wine+set}" = set; then
2740 withval="$with_wine"
2741 wxUSE_WINE="$withval" CACHE_WINE=1
2742fi;
2743
2744# Check whether --with-msw or --without-msw was given.
2745if test "${with_msw+set}" = set; then
2746 withval="$with_msw"
2747 wxUSE_MSW="$withval" CACHE_MSW=1 TOOLKIT_GIVEN=1
2748fi;
2749
2750# Check whether --with-pm or --without-pm was given.
2751if test "${with_pm+set}" = set; then
2752 withval="$with_pm"
2753 wxUSE_PM="$withval" CACHE_PM=1 TOOLKIT_GIVEN=1
2754fi;
2755
2756# Check whether --with-mgl or --without-mgl was given.
2757if test "${with_mgl+set}" = set; then
2758 withval="$with_mgl"
2759 wxUSE_MGL="$withval" wxUSE_UNIVERSAL="yes" CACHE_MGL=1 TOOLKIT_GIVEN=1
2760fi;
2761
2762# Check whether --with-microwin or --without-microwin was given.
2763if test "${with_microwin+set}" = set; then
2764 withval="$with_microwin"
2765 wxUSE_MICROWIN="$withval" CACHE_MICROWIN=1 TOOLKIT_GIVEN=1
2766fi;
2767
2768# Check whether --with-x11 or --without-x11 was given.
2769if test "${with_x11+set}" = set; then
2770 withval="$with_x11"
2771 wxUSE_X11="$withval" wxUSE_UNIVERSAL="yes" CACHE_X11=1 TOOLKIT_GIVEN=1
2772fi;
2773
2774 enablestring=
2775 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-nanox" >&5
2776echo $ECHO_N "checking for --${enablestring:-enable}-nanox... $ECHO_C" >&6
2777 no_cache=0
2778 # Check whether --enable-nanox or --disable-nanox was given.
2779if test "${enable_nanox+set}" = set; then
2780 enableval="$enable_nanox"
2781
2782 if test "$enableval" = yes; then
2783 ac_cv_use_nanox='wxUSE_NANOX=yes'
2784 else
2785 ac_cv_use_nanox='wxUSE_NANOX=no'
2786 fi
2787
2788else
2789
2790 LINE=`grep "wxUSE_NANOX" ${wx_arg_cache_file}`
2791 if test "x$LINE" != x ; then
2792 eval "DEFAULT_$LINE"
2793 else
2794 no_cache=1
2795 fi
2796
2797 ac_cv_use_nanox='wxUSE_NANOX='$DEFAULT_wxUSE_NANOX
2798
2799fi;
2800
2801 eval "$ac_cv_use_nanox"
2802 if test "$no_cache" != 1; then
2803 echo $ac_cv_use_nanox >> ${wx_arg_cache_file}.tmp
2804 fi
2805
2806 if test "$wxUSE_NANOX" = yes; then
2807 echo "$as_me:$LINENO: result: yes" >&5
2808echo "${ECHO_T}yes" >&6
2809 else
2810 echo "$as_me:$LINENO: result: no" >&5
2811echo "${ECHO_T}no" >&6
2812 fi
2813
2814
f34ca037
MW
2815# Check whether --enable-gtk2 or --disable-gtk2 was given.
2816if test "${enable_gtk2+set}" = set; then
2817 enableval="$enable_gtk2"
2818 wxUSE_GTK2="$enableval"
2819fi;
a848cd7e 2820
a848cd7e
SC
2821 enablestring=
2822 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gpe" >&5
2823echo $ECHO_N "checking for --${enablestring:-enable}-gpe... $ECHO_C" >&6
2824 no_cache=0
2825 # Check whether --enable-gpe or --disable-gpe was given.
2826if test "${enable_gpe+set}" = set; then
2827 enableval="$enable_gpe"
2828
2829 if test "$enableval" = yes; then
2830 ac_cv_use_gpe='wxUSE_GPE=yes'
2831 else
2832 ac_cv_use_gpe='wxUSE_GPE=no'
2833 fi
2834
2835else
2836
2837 LINE=`grep "wxUSE_GPE" ${wx_arg_cache_file}`
2838 if test "x$LINE" != x ; then
2839 eval "DEFAULT_$LINE"
2840 else
2841 no_cache=1
2842 fi
2843
2844 ac_cv_use_gpe='wxUSE_GPE='$DEFAULT_wxUSE_GPE
2845
2846fi;
2847
2848 eval "$ac_cv_use_gpe"
2849 if test "$no_cache" != 1; then
2850 echo $ac_cv_use_gpe >> ${wx_arg_cache_file}.tmp
2851 fi
2852
2853 if test "$wxUSE_GPE" = yes; then
2854 echo "$as_me:$LINENO: result: yes" >&5
2855echo "${ECHO_T}yes" >&6
2856 else
2857 echo "$as_me:$LINENO: result: no" >&5
2858echo "${ECHO_T}no" >&6
2859 fi
2860
2861
2862
2863 echo "$as_me:$LINENO: checking for --with-libpng" >&5
2864echo $ECHO_N "checking for --with-libpng... $ECHO_C" >&6
2865 no_cache=0
2866
2867# Check whether --with-libpng or --without-libpng was given.
2868if test "${with_libpng+set}" = set; then
2869 withval="$with_libpng"
2870
2871 if test "$withval" = yes; then
2872 ac_cv_use_libpng='wxUSE_LIBPNG=yes'
2873 elif test "$withval" = no; then
2874 ac_cv_use_libpng='wxUSE_LIBPNG=no'
2875 elif test "$withval" = sys; then
2876 ac_cv_use_libpng='wxUSE_LIBPNG=sys'
2877 elif test "$withval" = builtin; then
2878 ac_cv_use_libpng='wxUSE_LIBPNG=builtin'
2879 else
2880 { { echo "$as_me:$LINENO: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&5
2881echo "$as_me: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&2;}
2882 { (exit 1); exit 1; }; }
2883 fi
2884
2885else
2886
2887 LINE=`grep "wxUSE_LIBPNG" ${wx_arg_cache_file}`
2888 if test "x$LINE" != x ; then
2889 eval "DEFAULT_$LINE"
2890 else
2891 no_cache=1
2892 fi
2893
2894 ac_cv_use_libpng='wxUSE_LIBPNG='$DEFAULT_wxUSE_LIBPNG
2895
2896fi;
2897
2898 eval "$ac_cv_use_libpng"
2899 if test "$no_cache" != 1; then
2900 echo $ac_cv_use_libpng >> ${wx_arg_cache_file}.tmp
2901 fi
2902
2903 if test "$wxUSE_LIBPNG" = yes; then
2904 echo "$as_me:$LINENO: result: yes" >&5
2905echo "${ECHO_T}yes" >&6
2906 elif test "$wxUSE_LIBPNG" = no; then
2907 echo "$as_me:$LINENO: result: no" >&5
2908echo "${ECHO_T}no" >&6
2909 elif test "$wxUSE_LIBPNG" = sys; then
2910 echo "$as_me:$LINENO: result: system version" >&5
2911echo "${ECHO_T}system version" >&6
2912 elif test "$wxUSE_LIBPNG" = builtin; then
2913 echo "$as_me:$LINENO: result: builtin version" >&5
2914echo "${ECHO_T}builtin version" >&6
2915 else
2916 { { echo "$as_me:$LINENO: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&5
2917echo "$as_me: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&2;}
2918 { (exit 1); exit 1; }; }
2919 fi
2920
2921
2922 echo "$as_me:$LINENO: checking for --with-libjpeg" >&5
2923echo $ECHO_N "checking for --with-libjpeg... $ECHO_C" >&6
2924 no_cache=0
2925
2926# Check whether --with-libjpeg or --without-libjpeg was given.
2927if test "${with_libjpeg+set}" = set; then
2928 withval="$with_libjpeg"
2929
2930 if test "$withval" = yes; then
2931 ac_cv_use_libjpeg='wxUSE_LIBJPEG=yes'
2932 elif test "$withval" = no; then
2933 ac_cv_use_libjpeg='wxUSE_LIBJPEG=no'
2934 elif test "$withval" = sys; then
2935 ac_cv_use_libjpeg='wxUSE_LIBJPEG=sys'
2936 elif test "$withval" = builtin; then
2937 ac_cv_use_libjpeg='wxUSE_LIBJPEG=builtin'
2938 else
2939 { { echo "$as_me:$LINENO: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&5
2940echo "$as_me: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&2;}
2941 { (exit 1); exit 1; }; }
2942 fi
2943
2944else
2945
2946 LINE=`grep "wxUSE_LIBJPEG" ${wx_arg_cache_file}`
2947 if test "x$LINE" != x ; then
2948 eval "DEFAULT_$LINE"
2949 else
2950 no_cache=1
2951 fi
2952
2953 ac_cv_use_libjpeg='wxUSE_LIBJPEG='$DEFAULT_wxUSE_LIBJPEG
2954
2955fi;
2956
2957 eval "$ac_cv_use_libjpeg"
2958 if test "$no_cache" != 1; then
2959 echo $ac_cv_use_libjpeg >> ${wx_arg_cache_file}.tmp
2960 fi
2961
2962 if test "$wxUSE_LIBJPEG" = yes; then
2963 echo "$as_me:$LINENO: result: yes" >&5
2964echo "${ECHO_T}yes" >&6
2965 elif test "$wxUSE_LIBJPEG" = no; then
2966 echo "$as_me:$LINENO: result: no" >&5
2967echo "${ECHO_T}no" >&6
2968 elif test "$wxUSE_LIBJPEG" = sys; then
2969 echo "$as_me:$LINENO: result: system version" >&5
2970echo "${ECHO_T}system version" >&6
2971 elif test "$wxUSE_LIBJPEG" = builtin; then
2972 echo "$as_me:$LINENO: result: builtin version" >&5
2973echo "${ECHO_T}builtin version" >&6
2974 else
2975 { { echo "$as_me:$LINENO: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&5
2976echo "$as_me: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&2;}
2977 { (exit 1); exit 1; }; }
2978 fi
2979
2980
2981 echo "$as_me:$LINENO: checking for --with-libtiff" >&5
2982echo $ECHO_N "checking for --with-libtiff... $ECHO_C" >&6
2983 no_cache=0
2984
2985# Check whether --with-libtiff or --without-libtiff was given.
2986if test "${with_libtiff+set}" = set; then
2987 withval="$with_libtiff"
2988
2989 if test "$withval" = yes; then
2990 ac_cv_use_libtiff='wxUSE_LIBTIFF=yes'
2991 elif test "$withval" = no; then
2992 ac_cv_use_libtiff='wxUSE_LIBTIFF=no'
2993 elif test "$withval" = sys; then
2994 ac_cv_use_libtiff='wxUSE_LIBTIFF=sys'
2995 elif test "$withval" = builtin; then
2996 ac_cv_use_libtiff='wxUSE_LIBTIFF=builtin'
2997 else
2998 { { echo "$as_me:$LINENO: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&5
2999echo "$as_me: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&2;}
3000 { (exit 1); exit 1; }; }
3001 fi
3002
3003else
3004
3005 LINE=`grep "wxUSE_LIBTIFF" ${wx_arg_cache_file}`
3006 if test "x$LINE" != x ; then
3007 eval "DEFAULT_$LINE"
3008 else
3009 no_cache=1
3010 fi
3011
3012 ac_cv_use_libtiff='wxUSE_LIBTIFF='$DEFAULT_wxUSE_LIBTIFF
3013
3014fi;
3015
3016 eval "$ac_cv_use_libtiff"
3017 if test "$no_cache" != 1; then
3018 echo $ac_cv_use_libtiff >> ${wx_arg_cache_file}.tmp
3019 fi
3020
3021 if test "$wxUSE_LIBTIFF" = yes; then
3022 echo "$as_me:$LINENO: result: yes" >&5
3023echo "${ECHO_T}yes" >&6
3024 elif test "$wxUSE_LIBTIFF" = no; then
3025 echo "$as_me:$LINENO: result: no" >&5
3026echo "${ECHO_T}no" >&6
3027 elif test "$wxUSE_LIBTIFF" = sys; then
3028 echo "$as_me:$LINENO: result: system version" >&5
3029echo "${ECHO_T}system version" >&6
3030 elif test "$wxUSE_LIBTIFF" = builtin; then
3031 echo "$as_me:$LINENO: result: builtin version" >&5
3032echo "${ECHO_T}builtin version" >&6
3033 else
3034 { { echo "$as_me:$LINENO: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&5
3035echo "$as_me: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&2;}
3036 { (exit 1); exit 1; }; }
3037 fi
3038
3039
3040 echo "$as_me:$LINENO: checking for --with-libxpm" >&5
3041echo $ECHO_N "checking for --with-libxpm... $ECHO_C" >&6
3042 no_cache=0
3043
3044# Check whether --with-libxpm or --without-libxpm was given.
3045if test "${with_libxpm+set}" = set; then
3046 withval="$with_libxpm"
3047
3048 if test "$withval" = yes; then
3049 ac_cv_use_libxpm='wxUSE_LIBXPM=yes'
3050 elif test "$withval" = no; then
3051 ac_cv_use_libxpm='wxUSE_LIBXPM=no'
3052 elif test "$withval" = sys; then
3053 ac_cv_use_libxpm='wxUSE_LIBXPM=sys'
3054 elif test "$withval" = builtin; then
3055 ac_cv_use_libxpm='wxUSE_LIBXPM=builtin'
3056 else
3057 { { echo "$as_me:$LINENO: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&5
3058echo "$as_me: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&2;}
3059 { (exit 1); exit 1; }; }
3060 fi
3061
3062else
3063
3064 LINE=`grep "wxUSE_LIBXPM" ${wx_arg_cache_file}`
3065 if test "x$LINE" != x ; then
3066 eval "DEFAULT_$LINE"
3067 else
3068 no_cache=1
3069 fi
3070
3071 ac_cv_use_libxpm='wxUSE_LIBXPM='$DEFAULT_wxUSE_LIBXPM
3072
3073fi;
3074
3075 eval "$ac_cv_use_libxpm"
3076 if test "$no_cache" != 1; then
3077 echo $ac_cv_use_libxpm >> ${wx_arg_cache_file}.tmp
3078 fi
3079
3080 if test "$wxUSE_LIBXPM" = yes; then
3081 echo "$as_me:$LINENO: result: yes" >&5
3082echo "${ECHO_T}yes" >&6
3083 elif test "$wxUSE_LIBXPM" = no; then
3084 echo "$as_me:$LINENO: result: no" >&5
3085echo "${ECHO_T}no" >&6
3086 elif test "$wxUSE_LIBXPM" = sys; then
3087 echo "$as_me:$LINENO: result: system version" >&5
3088echo "${ECHO_T}system version" >&6
3089 elif test "$wxUSE_LIBXPM" = builtin; then
3090 echo "$as_me:$LINENO: result: builtin version" >&5
3091echo "${ECHO_T}builtin version" >&6
3092 else
3093 { { echo "$as_me:$LINENO: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&5
3094echo "$as_me: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&2;}
3095 { (exit 1); exit 1; }; }
3096 fi
3097
3098
1c14217d
VZ
3099 withstring=
3100 echo "$as_me:$LINENO: checking for --${withstring:-with}-libmspack" >&5
3101echo $ECHO_N "checking for --${withstring:-with}-libmspack... $ECHO_C" >&6
a848cd7e
SC
3102 no_cache=0
3103
3104# Check whether --with-libmspack or --without-libmspack was given.
3105if test "${with_libmspack+set}" = set; then
3106 withval="$with_libmspack"
3107
3108 if test "$withval" = yes; then
3109 ac_cv_use_libmspack='wxUSE_LIBMSPACK=yes'
3110 else
3111 ac_cv_use_libmspack='wxUSE_LIBMSPACK=no'
3112 fi
3113
3114else
3115
3116 LINE=`grep "wxUSE_LIBMSPACK" ${wx_arg_cache_file}`
3117 if test "x$LINE" != x ; then
3118 eval "DEFAULT_$LINE"
3119 else
3120 no_cache=1
3121 fi
3122
3123 ac_cv_use_libmspack='wxUSE_LIBMSPACK='$DEFAULT_wxUSE_LIBMSPACK
3124
3125fi;
3126
3127 eval "$ac_cv_use_libmspack"
3128 if test "$no_cache" != 1; then
3129 echo $ac_cv_use_libmspack >> ${wx_arg_cache_file}.tmp
3130 fi
3131
3132 if test "$wxUSE_LIBMSPACK" = yes; then
3133 echo "$as_me:$LINENO: result: yes" >&5
3134echo "${ECHO_T}yes" >&6
3135 else
3136 echo "$as_me:$LINENO: result: no" >&5
3137echo "${ECHO_T}no" >&6
3138 fi
3139
3140
1c14217d
VZ
3141 withstring=
3142 echo "$as_me:$LINENO: checking for --${withstring:-with}-sdl" >&5
3143echo $ECHO_N "checking for --${withstring:-with}-sdl... $ECHO_C" >&6
a848cd7e
SC
3144 no_cache=0
3145
3146# Check whether --with-sdl or --without-sdl was given.
3147if test "${with_sdl+set}" = set; then
3148 withval="$with_sdl"
3149
3150 if test "$withval" = yes; then
3151 ac_cv_use_sdl='wxUSE_LIBSDL=yes'
3152 else
3153 ac_cv_use_sdl='wxUSE_LIBSDL=no'
3154 fi
3155
3156else
3157
3158 LINE=`grep "wxUSE_LIBSDL" ${wx_arg_cache_file}`
3159 if test "x$LINE" != x ; then
3160 eval "DEFAULT_$LINE"
3161 else
3162 no_cache=1
3163 fi
3164
3165 ac_cv_use_sdl='wxUSE_LIBSDL='$DEFAULT_wxUSE_LIBSDL
3166
3167fi;
3168
3169 eval "$ac_cv_use_sdl"
3170 if test "$no_cache" != 1; then
3171 echo $ac_cv_use_sdl >> ${wx_arg_cache_file}.tmp
3172 fi
3173
3174 if test "$wxUSE_LIBSDL" = yes; then
3175 echo "$as_me:$LINENO: result: yes" >&5
3176echo "${ECHO_T}yes" >&6
3177 else
3178 echo "$as_me:$LINENO: result: no" >&5
3179echo "${ECHO_T}no" >&6
3180 fi
3181
3182
1c14217d
VZ
3183 withstring=
3184 echo "$as_me:$LINENO: checking for --${withstring:-with}-gnomeprint" >&5
3185echo $ECHO_N "checking for --${withstring:-with}-gnomeprint... $ECHO_C" >&6
d1c38808
VZ
3186 no_cache=0
3187
3188# Check whether --with-gnomeprint or --without-gnomeprint was given.
3189if test "${with_gnomeprint+set}" = set; then
3190 withval="$with_gnomeprint"
3191
3192 if test "$withval" = yes; then
3193 ac_cv_use_gnomeprint='wxUSE_LIBGNOMEPRINT=yes'
3194 else
3195 ac_cv_use_gnomeprint='wxUSE_LIBGNOMEPRINT=no'
3196 fi
3197
3198else
3199
3200 LINE=`grep "wxUSE_LIBGNOMEPRINT" ${wx_arg_cache_file}`
3201 if test "x$LINE" != x ; then
3202 eval "DEFAULT_$LINE"
3203 else
3204 no_cache=1
3205 fi
3206
3207 ac_cv_use_gnomeprint='wxUSE_LIBGNOMEPRINT='$DEFAULT_wxUSE_LIBGNOMEPRINT
3208
3209fi;
3210
3211 eval "$ac_cv_use_gnomeprint"
3212 if test "$no_cache" != 1; then
3213 echo $ac_cv_use_gnomeprint >> ${wx_arg_cache_file}.tmp
3214 fi
3215
3216 if test "$wxUSE_LIBGNOMEPRINT" = yes; then
3217 echo "$as_me:$LINENO: result: yes" >&5
3218echo "${ECHO_T}yes" >&6
3219 else
3220 echo "$as_me:$LINENO: result: no" >&5
3221echo "${ECHO_T}no" >&6
3222 fi
3223
3224
2b850ae1
RR
3225 withstring=
3226 echo "$as_me:$LINENO: checking for --${withstring:-with}-gnomevfs" >&5
3227echo $ECHO_N "checking for --${withstring:-with}-gnomevfs... $ECHO_C" >&6
3228 no_cache=0
3229
3230# Check whether --with-gnomevfs or --without-gnomevfs was given.
3231if test "${with_gnomevfs+set}" = set; then
3232 withval="$with_gnomevfs"
3233
3234 if test "$withval" = yes; then
3235 ac_cv_use_gnomevfs='wxUSE_LIBGNOMEVFS=yes'
3236 else
3237 ac_cv_use_gnomevfs='wxUSE_LIBGNOMEVFS=no'
3238 fi
3239
3240else
3241
3242 LINE=`grep "wxUSE_LIBGNOMEVFS" ${wx_arg_cache_file}`
3243 if test "x$LINE" != x ; then
3244 eval "DEFAULT_$LINE"
3245 else
3246 no_cache=1
3247 fi
3248
3249 ac_cv_use_gnomevfs='wxUSE_LIBGNOMEVFS='$DEFAULT_wxUSE_LIBGNOMEVFS
3250
3251fi;
3252
3253 eval "$ac_cv_use_gnomevfs"
3254 if test "$no_cache" != 1; then
3255 echo $ac_cv_use_gnomevfs >> ${wx_arg_cache_file}.tmp
3256 fi
3257
3258 if test "$wxUSE_LIBGNOMEVFS" = yes; then
3259 echo "$as_me:$LINENO: result: yes" >&5
3260echo "${ECHO_T}yes" >&6
3261 else
3262 echo "$as_me:$LINENO: result: no" >&5
3263echo "${ECHO_T}no" >&6
3264 fi
3265
3266
3565d135
RR
3267 withstring=
3268 echo "$as_me:$LINENO: checking for --${withstring:-with}-hildon" >&5
3269echo $ECHO_N "checking for --${withstring:-with}-hildon... $ECHO_C" >&6
3270 no_cache=0
3271
3272# Check whether --with-hildon or --without-hildon was given.
3273if test "${with_hildon+set}" = set; then
3274 withval="$with_hildon"
3275
3276 if test "$withval" = yes; then
3277 ac_cv_use_hildon='wxUSE_LIBHILDON=yes'
3278 else
3279 ac_cv_use_hildon='wxUSE_LIBHILDON=no'
3280 fi
3281
3282else
3283
3284 LINE=`grep "wxUSE_LIBHILDON" ${wx_arg_cache_file}`
3285 if test "x$LINE" != x ; then
3286 eval "DEFAULT_$LINE"
3287 else
3288 no_cache=1
3289 fi
3290
3291 ac_cv_use_hildon='wxUSE_LIBHILDON='$DEFAULT_wxUSE_LIBHILDON
3292
3293fi;
3294
3295 eval "$ac_cv_use_hildon"
3296 if test "$no_cache" != 1; then
3297 echo $ac_cv_use_hildon >> ${wx_arg_cache_file}.tmp
3298 fi
3299
3300 if test "$wxUSE_LIBHILDON" = yes; then
3301 echo "$as_me:$LINENO: result: yes" >&5
3302echo "${ECHO_T}yes" >&6
3303 else
3304 echo "$as_me:$LINENO: result: no" >&5
3305echo "${ECHO_T}no" >&6
3306 fi
3307
3308
1c14217d
VZ
3309 withstring=
3310 echo "$as_me:$LINENO: checking for --${withstring:-with}-opengl" >&5
3311echo $ECHO_N "checking for --${withstring:-with}-opengl... $ECHO_C" >&6
a848cd7e
SC
3312 no_cache=0
3313
3314# Check whether --with-opengl or --without-opengl was given.
3315if test "${with_opengl+set}" = set; then
3316 withval="$with_opengl"
3317
3318 if test "$withval" = yes; then
3319 ac_cv_use_opengl='wxUSE_OPENGL=yes'
3320 else
3321 ac_cv_use_opengl='wxUSE_OPENGL=no'
3322 fi
3323
3324else
3325
3326 LINE=`grep "wxUSE_OPENGL" ${wx_arg_cache_file}`
3327 if test "x$LINE" != x ; then
3328 eval "DEFAULT_$LINE"
3329 else
3330 no_cache=1
3331 fi
3332
3333 ac_cv_use_opengl='wxUSE_OPENGL='$DEFAULT_wxUSE_OPENGL
3334
3335fi;
3336
3337 eval "$ac_cv_use_opengl"
3338 if test "$no_cache" != 1; then
3339 echo $ac_cv_use_opengl >> ${wx_arg_cache_file}.tmp
3340 fi
3341
3342 if test "$wxUSE_OPENGL" = yes; then
3343 echo "$as_me:$LINENO: result: yes" >&5
3344echo "${ECHO_T}yes" >&6
3345 else
3346 echo "$as_me:$LINENO: result: no" >&5
3347echo "${ECHO_T}no" >&6
3348 fi
3349
3350
3351fi
3352
3353
1c14217d
VZ
3354 withstring=
3355 echo "$as_me:$LINENO: checking for --${withstring:-with}-dmalloc" >&5
3356echo $ECHO_N "checking for --${withstring:-with}-dmalloc... $ECHO_C" >&6
a848cd7e
SC
3357 no_cache=0
3358
3359# Check whether --with-dmalloc or --without-dmalloc was given.
3360if test "${with_dmalloc+set}" = set; then
3361 withval="$with_dmalloc"
3362
3363 if test "$withval" = yes; then
3364 ac_cv_use_dmalloc='wxUSE_DMALLOC=yes'
3365 else
3366 ac_cv_use_dmalloc='wxUSE_DMALLOC=no'
3367 fi
3368
3369else
3370
3371 LINE=`grep "wxUSE_DMALLOC" ${wx_arg_cache_file}`
3372 if test "x$LINE" != x ; then
3373 eval "DEFAULT_$LINE"
3374 else
3375 no_cache=1
3376 fi
3377
3378 ac_cv_use_dmalloc='wxUSE_DMALLOC='$DEFAULT_wxUSE_DMALLOC
3379
3380fi;
3381
3382 eval "$ac_cv_use_dmalloc"
3383 if test "$no_cache" != 1; then
3384 echo $ac_cv_use_dmalloc >> ${wx_arg_cache_file}.tmp
3385 fi
3386
3387 if test "$wxUSE_DMALLOC" = yes; then
3388 echo "$as_me:$LINENO: result: yes" >&5
3389echo "${ECHO_T}yes" >&6
3390 else
3391 echo "$as_me:$LINENO: result: no" >&5
3392echo "${ECHO_T}no" >&6
3393 fi
3394
3395
3396 echo "$as_me:$LINENO: checking for --with-regex" >&5
3397echo $ECHO_N "checking for --with-regex... $ECHO_C" >&6
3398 no_cache=0
3399
3400# Check whether --with-regex or --without-regex was given.
3401if test "${with_regex+set}" = set; then
3402 withval="$with_regex"
3403
3404 if test "$withval" = yes; then
3405 ac_cv_use_regex='wxUSE_REGEX=yes'
3406 elif test "$withval" = no; then
3407 ac_cv_use_regex='wxUSE_REGEX=no'
3408 elif test "$withval" = sys; then
3409 ac_cv_use_regex='wxUSE_REGEX=sys'
3410 elif test "$withval" = builtin; then
3411 ac_cv_use_regex='wxUSE_REGEX=builtin'
3412 else
3413 { { echo "$as_me:$LINENO: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&5
3414echo "$as_me: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&2;}
3415 { (exit 1); exit 1; }; }
3416 fi
3417
3418else
3419
3420 LINE=`grep "wxUSE_REGEX" ${wx_arg_cache_file}`
3421 if test "x$LINE" != x ; then
3422 eval "DEFAULT_$LINE"
3423 else
3424 no_cache=1
3425 fi
3426
3427 ac_cv_use_regex='wxUSE_REGEX='$DEFAULT_wxUSE_REGEX
3428
3429fi;
3430
3431 eval "$ac_cv_use_regex"
3432 if test "$no_cache" != 1; then
3433 echo $ac_cv_use_regex >> ${wx_arg_cache_file}.tmp
3434 fi
3435
3436 if test "$wxUSE_REGEX" = yes; then
3437 echo "$as_me:$LINENO: result: yes" >&5
3438echo "${ECHO_T}yes" >&6
3439 elif test "$wxUSE_REGEX" = no; then
3440 echo "$as_me:$LINENO: result: no" >&5
3441echo "${ECHO_T}no" >&6
3442 elif test "$wxUSE_REGEX" = sys; then
3443 echo "$as_me:$LINENO: result: system version" >&5
3444echo "${ECHO_T}system version" >&6
3445 elif test "$wxUSE_REGEX" = builtin; then
3446 echo "$as_me:$LINENO: result: builtin version" >&5
3447echo "${ECHO_T}builtin version" >&6
3448 else
3449 { { echo "$as_me:$LINENO: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&5
3450echo "$as_me: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&2;}
3451 { (exit 1); exit 1; }; }
3452 fi
3453
3454
3455 echo "$as_me:$LINENO: checking for --with-zlib" >&5
3456echo $ECHO_N "checking for --with-zlib... $ECHO_C" >&6
3457 no_cache=0
3458
3459# Check whether --with-zlib or --without-zlib was given.
3460if test "${with_zlib+set}" = set; then
3461 withval="$with_zlib"
3462
3463 if test "$withval" = yes; then
3464 ac_cv_use_zlib='wxUSE_ZLIB=yes'
3465 elif test "$withval" = no; then
3466 ac_cv_use_zlib='wxUSE_ZLIB=no'
3467 elif test "$withval" = sys; then
3468 ac_cv_use_zlib='wxUSE_ZLIB=sys'
3469 elif test "$withval" = builtin; then
3470 ac_cv_use_zlib='wxUSE_ZLIB=builtin'
3471 else
3472 { { echo "$as_me:$LINENO: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&5
3473echo "$as_me: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&2;}
3474 { (exit 1); exit 1; }; }
3475 fi
3476
3477else
3478
3479 LINE=`grep "wxUSE_ZLIB" ${wx_arg_cache_file}`
3480 if test "x$LINE" != x ; then
3481 eval "DEFAULT_$LINE"
3482 else
3483 no_cache=1
3484 fi
3485
3486 ac_cv_use_zlib='wxUSE_ZLIB='$DEFAULT_wxUSE_ZLIB
3487
3488fi;
3489
3490 eval "$ac_cv_use_zlib"
3491 if test "$no_cache" != 1; then
3492 echo $ac_cv_use_zlib >> ${wx_arg_cache_file}.tmp
3493 fi
3494
3495 if test "$wxUSE_ZLIB" = yes; then
3496 echo "$as_me:$LINENO: result: yes" >&5
3497echo "${ECHO_T}yes" >&6
3498 elif test "$wxUSE_ZLIB" = no; then
3499 echo "$as_me:$LINENO: result: no" >&5
3500echo "${ECHO_T}no" >&6
3501 elif test "$wxUSE_ZLIB" = sys; then
3502 echo "$as_me:$LINENO: result: system version" >&5
3503echo "${ECHO_T}system version" >&6
3504 elif test "$wxUSE_ZLIB" = builtin; then
3505 echo "$as_me:$LINENO: result: builtin version" >&5
3506echo "${ECHO_T}builtin version" >&6
3507 else
3508 { { echo "$as_me:$LINENO: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&5
3509echo "$as_me: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&2;}
3510 { (exit 1); exit 1; }; }
3511 fi
3512
3513
3514 echo "$as_me:$LINENO: checking for --with-odbc" >&5
3515echo $ECHO_N "checking for --with-odbc... $ECHO_C" >&6
3516 no_cache=0
3517
3518# Check whether --with-odbc or --without-odbc was given.
3519if test "${with_odbc+set}" = set; then
3520 withval="$with_odbc"
3521
3522 if test "$withval" = yes; then
3523 ac_cv_use_odbc='wxUSE_ODBC=yes'
3524 elif test "$withval" = no; then
3525 ac_cv_use_odbc='wxUSE_ODBC=no'
3526 elif test "$withval" = sys; then
3527 ac_cv_use_odbc='wxUSE_ODBC=sys'
3528 elif test "$withval" = builtin; then
3529 ac_cv_use_odbc='wxUSE_ODBC=builtin'
3530 else
3531 { { echo "$as_me:$LINENO: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&5
3532echo "$as_me: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&2;}
3533 { (exit 1); exit 1; }; }
3534 fi
3535
3536else
3537
3538 LINE=`grep "wxUSE_ODBC" ${wx_arg_cache_file}`
3539 if test "x$LINE" != x ; then
3540 eval "DEFAULT_$LINE"
3541 else
3542 no_cache=1
3543 fi
3544
3545 ac_cv_use_odbc='wxUSE_ODBC='$DEFAULT_wxUSE_ODBC
3546
3547fi;
3548
3549 eval "$ac_cv_use_odbc"
3550 if test "$no_cache" != 1; then
3551 echo $ac_cv_use_odbc >> ${wx_arg_cache_file}.tmp
3552 fi
3553
3554 if test "$wxUSE_ODBC" = yes; then
3555 echo "$as_me:$LINENO: result: yes" >&5
3556echo "${ECHO_T}yes" >&6
3557 elif test "$wxUSE_ODBC" = no; then
3558 echo "$as_me:$LINENO: result: no" >&5
3559echo "${ECHO_T}no" >&6
3560 elif test "$wxUSE_ODBC" = sys; then
3561 echo "$as_me:$LINENO: result: system version" >&5
3562echo "${ECHO_T}system version" >&6
3563 elif test "$wxUSE_ODBC" = builtin; then
3564 echo "$as_me:$LINENO: result: builtin version" >&5
3565echo "${ECHO_T}builtin version" >&6
3566 else
3567 { { echo "$as_me:$LINENO: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&5
3568echo "$as_me: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&2;}
3569 { (exit 1); exit 1; }; }
3570 fi
3571
3572
3573 echo "$as_me:$LINENO: checking for --with-expat" >&5
3574echo $ECHO_N "checking for --with-expat... $ECHO_C" >&6
3575 no_cache=0
3576
3577# Check whether --with-expat or --without-expat was given.
3578if test "${with_expat+set}" = set; then
3579 withval="$with_expat"
3580
3581 if test "$withval" = yes; then
3582 ac_cv_use_expat='wxUSE_EXPAT=yes'
3583 elif test "$withval" = no; then
3584 ac_cv_use_expat='wxUSE_EXPAT=no'
3585 elif test "$withval" = sys; then
3586 ac_cv_use_expat='wxUSE_EXPAT=sys'
3587 elif test "$withval" = builtin; then
3588 ac_cv_use_expat='wxUSE_EXPAT=builtin'
3589 else
3590 { { echo "$as_me:$LINENO: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&5
3591echo "$as_me: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&2;}
3592 { (exit 1); exit 1; }; }
3593 fi
3594
3595else
3596
3597 LINE=`grep "wxUSE_EXPAT" ${wx_arg_cache_file}`
3598 if test "x$LINE" != x ; then
3599 eval "DEFAULT_$LINE"
3600 else
3601 no_cache=1
3602 fi
3603
3604 ac_cv_use_expat='wxUSE_EXPAT='$DEFAULT_wxUSE_EXPAT
3605
3606fi;
3607
3608 eval "$ac_cv_use_expat"
3609 if test "$no_cache" != 1; then
3610 echo $ac_cv_use_expat >> ${wx_arg_cache_file}.tmp
3611 fi
3612
3613 if test "$wxUSE_EXPAT" = yes; then
3614 echo "$as_me:$LINENO: result: yes" >&5
3615echo "${ECHO_T}yes" >&6
3616 elif test "$wxUSE_EXPAT" = no; then
3617 echo "$as_me:$LINENO: result: no" >&5
3618echo "${ECHO_T}no" >&6
3619 elif test "$wxUSE_EXPAT" = sys; then
3620 echo "$as_me:$LINENO: result: system version" >&5
3621echo "${ECHO_T}system version" >&6
3622 elif test "$wxUSE_EXPAT" = builtin; then
3623 echo "$as_me:$LINENO: result: builtin version" >&5
3624echo "${ECHO_T}builtin version" >&6
3625 else
3626 { { echo "$as_me:$LINENO: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&5
3627echo "$as_me: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&2;}
3628 { (exit 1); exit 1; }; }
3629 fi
3630
3631
3632
3633
3634 enablestring=
3635 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-shared" >&5
3636echo $ECHO_N "checking for --${enablestring:-enable}-shared... $ECHO_C" >&6
3637 no_cache=0
3638 # Check whether --enable-shared or --disable-shared was given.
3639if test "${enable_shared+set}" = set; then
3640 enableval="$enable_shared"
3641
3642 if test "$enableval" = yes; then
3643 ac_cv_use_shared='wxUSE_SHARED=yes'
3644 else
3645 ac_cv_use_shared='wxUSE_SHARED=no'
3646 fi
3647
3648else
3649
3650 LINE=`grep "wxUSE_SHARED" ${wx_arg_cache_file}`
3651 if test "x$LINE" != x ; then
3652 eval "DEFAULT_$LINE"
3653 else
3654 no_cache=1
3655 fi
3656
3657 ac_cv_use_shared='wxUSE_SHARED='$DEFAULT_wxUSE_SHARED
3658
3659fi;
3660
3661 eval "$ac_cv_use_shared"
3662 if test "$no_cache" != 1; then
3663 echo $ac_cv_use_shared >> ${wx_arg_cache_file}.tmp
3664 fi
3665
3666 if test "$wxUSE_SHARED" = yes; then
3667 echo "$as_me:$LINENO: result: yes" >&5
3668echo "${ECHO_T}yes" >&6
3669 else
3670 echo "$as_me:$LINENO: result: no" >&5
3671echo "${ECHO_T}no" >&6
3672 fi
3673
3674
3675 enablestring=
3676 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-optimise" >&5
3677echo $ECHO_N "checking for --${enablestring:-enable}-optimise... $ECHO_C" >&6
3678 no_cache=0
3679 # Check whether --enable-optimise or --disable-optimise was given.
3680if test "${enable_optimise+set}" = set; then
3681 enableval="$enable_optimise"
3682
3683 if test "$enableval" = yes; then
3684 ac_cv_use_optimise='wxUSE_OPTIMISE=yes'
3685 else
3686 ac_cv_use_optimise='wxUSE_OPTIMISE=no'
3687 fi
3688
3689else
3690
3691 LINE=`grep "wxUSE_OPTIMISE" ${wx_arg_cache_file}`
3692 if test "x$LINE" != x ; then
3693 eval "DEFAULT_$LINE"
3694 else
3695 no_cache=1
3696 fi
3697
3698 ac_cv_use_optimise='wxUSE_OPTIMISE='$DEFAULT_wxUSE_OPTIMISE
3699
3700fi;
3701
3702 eval "$ac_cv_use_optimise"
3703 if test "$no_cache" != 1; then
3704 echo $ac_cv_use_optimise >> ${wx_arg_cache_file}.tmp
3705 fi
3706
3707 if test "$wxUSE_OPTIMISE" = yes; then
3708 echo "$as_me:$LINENO: result: yes" >&5
3709echo "${ECHO_T}yes" >&6
3710 else
3711 echo "$as_me:$LINENO: result: no" >&5
3712echo "${ECHO_T}no" >&6
3713 fi
3714
3715
3716 enablestring=
3717 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug" >&5
3718echo $ECHO_N "checking for --${enablestring:-enable}-debug... $ECHO_C" >&6
3719 no_cache=0
3720 # Check whether --enable-debug or --disable-debug was given.
3721if test "${enable_debug+set}" = set; then
3722 enableval="$enable_debug"
3723
3724 if test "$enableval" = yes; then
3725 ac_cv_use_debug='wxUSE_DEBUG=yes'
3726 else
3727 ac_cv_use_debug='wxUSE_DEBUG=no'
3728 fi
3729
3730else
3731
3732 LINE=`grep "wxUSE_DEBUG" ${wx_arg_cache_file}`
3733 if test "x$LINE" != x ; then
3734 eval "DEFAULT_$LINE"
3735 else
3736 no_cache=1
3737 fi
3738
3739 ac_cv_use_debug='wxUSE_DEBUG='$DEFAULT_wxUSE_DEBUG
3740
3741fi;
3742
3743 eval "$ac_cv_use_debug"
3744 if test "$no_cache" != 1; then
3745 echo $ac_cv_use_debug >> ${wx_arg_cache_file}.tmp
3746 fi
3747
3748 if test "$wxUSE_DEBUG" = yes; then
3749 echo "$as_me:$LINENO: result: yes" >&5
3750echo "${ECHO_T}yes" >&6
3751 else
3752 echo "$as_me:$LINENO: result: no" >&5
3753echo "${ECHO_T}no" >&6
3754 fi
3755
3756
3757 enablestring=
3758 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stl" >&5
3759echo $ECHO_N "checking for --${enablestring:-enable}-stl... $ECHO_C" >&6
3760 no_cache=0
3761 # Check whether --enable-stl or --disable-stl was given.
3762if test "${enable_stl+set}" = set; then
3763 enableval="$enable_stl"
3764
3765 if test "$enableval" = yes; then
3766 ac_cv_use_stl='wxUSE_STL=yes'
3767 else
3768 ac_cv_use_stl='wxUSE_STL=no'
3769 fi
3770
3771else
3772
3773 LINE=`grep "wxUSE_STL" ${wx_arg_cache_file}`
3774 if test "x$LINE" != x ; then
3775 eval "DEFAULT_$LINE"
3776 else
3777 no_cache=1
3778 fi
3779
3780 ac_cv_use_stl='wxUSE_STL='$DEFAULT_wxUSE_STL
3781
3782fi;
3783
3784 eval "$ac_cv_use_stl"
3785 if test "$no_cache" != 1; then
3786 echo $ac_cv_use_stl >> ${wx_arg_cache_file}.tmp
3787 fi
3788
3789 if test "$wxUSE_STL" = yes; then
3790 echo "$as_me:$LINENO: result: yes" >&5
3791echo "${ECHO_T}yes" >&6
3792 else
3793 echo "$as_me:$LINENO: result: no" >&5
3794echo "${ECHO_T}no" >&6
3795 fi
3796
3797if test "$USE_OS2" = "1"; then
69120ee4 3798 DEFAULT_wxUSE_OMF=no
a848cd7e
SC
3799
3800 enablestring=
3801 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-omf" >&5
3802echo $ECHO_N "checking for --${enablestring:-enable}-omf... $ECHO_C" >&6
3803 no_cache=0
3804 # Check whether --enable-omf or --disable-omf was given.
3805if test "${enable_omf+set}" = set; then
3806 enableval="$enable_omf"
3807
3808 if test "$enableval" = yes; then
3809 ac_cv_use_omf='wxUSE_OMF=yes'
3810 else
3811 ac_cv_use_omf='wxUSE_OMF=no'
3812 fi
3813
3814else
3815
3816 LINE=`grep "wxUSE_OMF" ${wx_arg_cache_file}`
3817 if test "x$LINE" != x ; then
3818 eval "DEFAULT_$LINE"
3819 else
3820 no_cache=1
3821 fi
3822
3823 ac_cv_use_omf='wxUSE_OMF='$DEFAULT_wxUSE_OMF
3824
3825fi;
3826
3827 eval "$ac_cv_use_omf"
3828 if test "$no_cache" != 1; then
3829 echo $ac_cv_use_omf >> ${wx_arg_cache_file}.tmp
3830 fi
3831
3832 if test "$wxUSE_OMF" = yes; then
3833 echo "$as_me:$LINENO: result: yes" >&5
3834echo "${ECHO_T}yes" >&6
3835 else
3836 echo "$as_me:$LINENO: result: no" >&5
3837echo "${ECHO_T}no" >&6
3838 fi
3839
3840fi
3841
3842if test "$wxUSE_DEBUG" = "yes"; then
3843 DEFAULT_wxUSE_DEBUG_FLAG=yes
3844 DEFAULT_wxUSE_DEBUG_INFO=yes
3845 BUILD=debug
3846elif test "$wxUSE_DEBUG" = "no"; then
3847 DEFAULT_wxUSE_DEBUG_FLAG=no
3848 DEFAULT_wxUSE_DEBUG_INFO=no
3849 BUILD=release
3850fi
3851
3852
3853 enablestring=
3854 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_flag" >&5
3855echo $ECHO_N "checking for --${enablestring:-enable}-debug_flag... $ECHO_C" >&6
3856 no_cache=0
3857 # Check whether --enable-debug_flag or --disable-debug_flag was given.
3858if test "${enable_debug_flag+set}" = set; then
3859 enableval="$enable_debug_flag"
3860
3861 if test "$enableval" = yes; then
3862 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=yes'
3863 else
3864 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=no'
3865 fi
3866
3867else
3868
3869 LINE=`grep "wxUSE_DEBUG_FLAG" ${wx_arg_cache_file}`
3870 if test "x$LINE" != x ; then
3871 eval "DEFAULT_$LINE"
3872 else
3873 no_cache=1
3874 fi
3875
3876 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG='$DEFAULT_wxUSE_DEBUG_FLAG
3877
3878fi;
3879
3880 eval "$ac_cv_use_debug_flag"
3881 if test "$no_cache" != 1; then
3882 echo $ac_cv_use_debug_flag >> ${wx_arg_cache_file}.tmp
3883 fi
3884
3885 if test "$wxUSE_DEBUG_FLAG" = yes; then
3886 echo "$as_me:$LINENO: result: yes" >&5
3887echo "${ECHO_T}yes" >&6
3888 else
3889 echo "$as_me:$LINENO: result: no" >&5
3890echo "${ECHO_T}no" >&6
3891 fi
3892
3893
3894 enablestring=
3895 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_info" >&5
3896echo $ECHO_N "checking for --${enablestring:-enable}-debug_info... $ECHO_C" >&6
3897 no_cache=0
3898 # Check whether --enable-debug_info or --disable-debug_info was given.
3899if test "${enable_debug_info+set}" = set; then
3900 enableval="$enable_debug_info"
3901
3902 if test "$enableval" = yes; then
3903 ac_cv_use_debug_info='wxUSE_DEBUG_INFO=yes'
3904 else
3905 ac_cv_use_debug_info='wxUSE_DEBUG_INFO=no'
3906 fi
3907
3908else
3909
3910 LINE=`grep "wxUSE_DEBUG_INFO" ${wx_arg_cache_file}`
3911 if test "x$LINE" != x ; then
3912 eval "DEFAULT_$LINE"
3913 else
3914 no_cache=1
3915 fi
3916
3917 ac_cv_use_debug_info='wxUSE_DEBUG_INFO='$DEFAULT_wxUSE_DEBUG_INFO
3918
3919fi;
3920
3921 eval "$ac_cv_use_debug_info"
3922 if test "$no_cache" != 1; then
3923 echo $ac_cv_use_debug_info >> ${wx_arg_cache_file}.tmp
3924 fi
3925
3926 if test "$wxUSE_DEBUG_INFO" = yes; then
3927 echo "$as_me:$LINENO: result: yes" >&5
3928echo "${ECHO_T}yes" >&6
3929 else
3930 echo "$as_me:$LINENO: result: no" >&5
3931echo "${ECHO_T}no" >&6
3932 fi
3933
3934
3935 enablestring=
3936 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_gdb" >&5
3937echo $ECHO_N "checking for --${enablestring:-enable}-debug_gdb... $ECHO_C" >&6
3938 no_cache=0
3939 # Check whether --enable-debug_gdb or --disable-debug_gdb was given.
3940if test "${enable_debug_gdb+set}" = set; then
3941 enableval="$enable_debug_gdb"
3942
3943 if test "$enableval" = yes; then
3944 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=yes'
3945 else
3946 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=no'
3947 fi
3948
3949else
3950
3951 LINE=`grep "wxUSE_DEBUG_GDB" ${wx_arg_cache_file}`
3952 if test "x$LINE" != x ; then
3953 eval "DEFAULT_$LINE"
3954 else
3955 no_cache=1
3956 fi
3957
3958 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB='$DEFAULT_wxUSE_DEBUG_GDB
3959
3960fi;
3961
3962 eval "$ac_cv_use_debug_gdb"
3963 if test "$no_cache" != 1; then
3964 echo $ac_cv_use_debug_gdb >> ${wx_arg_cache_file}.tmp
3965 fi
3966
3967 if test "$wxUSE_DEBUG_GDB" = yes; then
3968 echo "$as_me:$LINENO: result: yes" >&5
3969echo "${ECHO_T}yes" >&6
3970 else
3971 echo "$as_me:$LINENO: result: no" >&5
3972echo "${ECHO_T}no" >&6
3973 fi
3974
3975
3976 enablestring=
3977 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_cntxt" >&5
3978echo $ECHO_N "checking for --${enablestring:-enable}-debug_cntxt... $ECHO_C" >&6
3979 no_cache=0
3980 # Check whether --enable-debug_cntxt or --disable-debug_cntxt was given.
3981if test "${enable_debug_cntxt+set}" = set; then
3982 enableval="$enable_debug_cntxt"
3983
3984 if test "$enableval" = yes; then
3985 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=yes'
3986 else
3987 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=no'
3988 fi
3989
3990else
3991
3992 LINE=`grep "wxUSE_DEBUG_CONTEXT" ${wx_arg_cache_file}`
3993 if test "x$LINE" != x ; then
3994 eval "DEFAULT_$LINE"
3995 else
3996 no_cache=1
3997 fi
3998
3999 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT='$DEFAULT_wxUSE_DEBUG_CONTEXT
4000
4001fi;
4002
4003 eval "$ac_cv_use_debug_cntxt"
4004 if test "$no_cache" != 1; then
4005 echo $ac_cv_use_debug_cntxt >> ${wx_arg_cache_file}.tmp
4006 fi
4007
4008 if test "$wxUSE_DEBUG_CONTEXT" = yes; then
4009 echo "$as_me:$LINENO: result: yes" >&5
4010echo "${ECHO_T}yes" >&6
4011 else
4012 echo "$as_me:$LINENO: result: no" >&5
4013echo "${ECHO_T}no" >&6
4014 fi
4015
4016
4017 enablestring=
4018 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mem_tracing" >&5
4019echo $ECHO_N "checking for --${enablestring:-enable}-mem_tracing... $ECHO_C" >&6
4020 no_cache=0
4021 # Check whether --enable-mem_tracing or --disable-mem_tracing was given.
4022if test "${enable_mem_tracing+set}" = set; then
4023 enableval="$enable_mem_tracing"
4024
4025 if test "$enableval" = yes; then
4026 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=yes'
4027 else
4028 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=no'
4029 fi
4030
4031else
4032
4033 LINE=`grep "wxUSE_MEM_TRACING" ${wx_arg_cache_file}`
4034 if test "x$LINE" != x ; then
4035 eval "DEFAULT_$LINE"
4036 else
4037 no_cache=1
4038 fi
4039
4040 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING='$DEFAULT_wxUSE_MEM_TRACING
4041
4042fi;
4043
4044 eval "$ac_cv_use_mem_tracing"
4045 if test "$no_cache" != 1; then
4046 echo $ac_cv_use_mem_tracing >> ${wx_arg_cache_file}.tmp
4047 fi
4048
4049 if test "$wxUSE_MEM_TRACING" = yes; then
4050 echo "$as_me:$LINENO: result: yes" >&5
4051echo "${ECHO_T}yes" >&6
4052 else
4053 echo "$as_me:$LINENO: result: no" >&5
4054echo "${ECHO_T}no" >&6
4055 fi
4056
4057
4058 enablestring=
4059 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-profile" >&5
4060echo $ECHO_N "checking for --${enablestring:-enable}-profile... $ECHO_C" >&6
4061 no_cache=0
4062 # Check whether --enable-profile or --disable-profile was given.
4063if test "${enable_profile+set}" = set; then
4064 enableval="$enable_profile"
4065
4066 if test "$enableval" = yes; then
4067 ac_cv_use_profile='wxUSE_PROFILE=yes'
4068 else
4069 ac_cv_use_profile='wxUSE_PROFILE=no'
4070 fi
4071
4072else
4073
4074 LINE=`grep "wxUSE_PROFILE" ${wx_arg_cache_file}`
4075 if test "x$LINE" != x ; then
4076 eval "DEFAULT_$LINE"
4077 else
4078 no_cache=1
4079 fi
4080
4081 ac_cv_use_profile='wxUSE_PROFILE='$DEFAULT_wxUSE_PROFILE
4082
4083fi;
4084
4085 eval "$ac_cv_use_profile"
4086 if test "$no_cache" != 1; then
4087 echo $ac_cv_use_profile >> ${wx_arg_cache_file}.tmp
4088 fi
4089
4090 if test "$wxUSE_PROFILE" = yes; then
4091 echo "$as_me:$LINENO: result: yes" >&5
4092echo "${ECHO_T}yes" >&6
4093 else
4094 echo "$as_me:$LINENO: result: no" >&5
4095echo "${ECHO_T}no" >&6
4096 fi
4097
4098
4099 enablestring=
4100 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_rtti" >&5
4101echo $ECHO_N "checking for --${enablestring:-enable}-no_rtti... $ECHO_C" >&6
4102 no_cache=0
4103 # Check whether --enable-no_rtti or --disable-no_rtti was given.
4104if test "${enable_no_rtti+set}" = set; then
4105 enableval="$enable_no_rtti"
4106
4107 if test "$enableval" = yes; then
4108 ac_cv_use_no_rtti='wxUSE_NO_RTTI=yes'
4109 else
4110 ac_cv_use_no_rtti='wxUSE_NO_RTTI=no'
4111 fi
4112
4113else
4114
4115 LINE=`grep "wxUSE_NO_RTTI" ${wx_arg_cache_file}`
4116 if test "x$LINE" != x ; then
4117 eval "DEFAULT_$LINE"
4118 else
4119 no_cache=1
4120 fi
4121
4122 ac_cv_use_no_rtti='wxUSE_NO_RTTI='$DEFAULT_wxUSE_NO_RTTI
4123
4124fi;
4125
4126 eval "$ac_cv_use_no_rtti"
4127 if test "$no_cache" != 1; then
4128 echo $ac_cv_use_no_rtti >> ${wx_arg_cache_file}.tmp
4129 fi
4130
4131 if test "$wxUSE_NO_RTTI" = yes; then
4132 echo "$as_me:$LINENO: result: yes" >&5
4133echo "${ECHO_T}yes" >&6
4134 else
4135 echo "$as_me:$LINENO: result: no" >&5
4136echo "${ECHO_T}no" >&6
4137 fi
4138
4139
4140 enablestring=
4141 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_exceptions" >&5
4142echo $ECHO_N "checking for --${enablestring:-enable}-no_exceptions... $ECHO_C" >&6
4143 no_cache=0
4144 # Check whether --enable-no_exceptions or --disable-no_exceptions was given.
4145if test "${enable_no_exceptions+set}" = set; then
4146 enableval="$enable_no_exceptions"
4147
4148 if test "$enableval" = yes; then
4149 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=yes'
4150 else
4151 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=no'
4152 fi
4153
4154else
4155
4156 LINE=`grep "wxUSE_NO_EXCEPTIONS" ${wx_arg_cache_file}`
4157 if test "x$LINE" != x ; then
4158 eval "DEFAULT_$LINE"
4159 else
4160 no_cache=1
4161 fi
4162
4163 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS='$DEFAULT_wxUSE_NO_EXCEPTIONS
4164
4165fi;
4166
4167 eval "$ac_cv_use_no_exceptions"
4168 if test "$no_cache" != 1; then
4169 echo $ac_cv_use_no_exceptions >> ${wx_arg_cache_file}.tmp
4170 fi
4171
4172 if test "$wxUSE_NO_EXCEPTIONS" = yes; then
4173 echo "$as_me:$LINENO: result: yes" >&5
4174echo "${ECHO_T}yes" >&6
4175 else
4176 echo "$as_me:$LINENO: result: no" >&5
4177echo "${ECHO_T}no" >&6
4178 fi
4179
4180
4181 enablestring=
4182 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-permissive" >&5
4183echo $ECHO_N "checking for --${enablestring:-enable}-permissive... $ECHO_C" >&6
4184 no_cache=0
4185 # Check whether --enable-permissive or --disable-permissive was given.
4186if test "${enable_permissive+set}" = set; then
4187 enableval="$enable_permissive"
4188
4189 if test "$enableval" = yes; then
4190 ac_cv_use_permissive='wxUSE_PERMISSIVE=yes'
4191 else
4192 ac_cv_use_permissive='wxUSE_PERMISSIVE=no'
4193 fi
4194
4195else
4196
4197 LINE=`grep "wxUSE_PERMISSIVE" ${wx_arg_cache_file}`
4198 if test "x$LINE" != x ; then
4199 eval "DEFAULT_$LINE"
4200 else
4201 no_cache=1
4202 fi
4203
4204 ac_cv_use_permissive='wxUSE_PERMISSIVE='$DEFAULT_wxUSE_PERMISSIVE
4205
4206fi;
4207
4208 eval "$ac_cv_use_permissive"
4209 if test "$no_cache" != 1; then
4210 echo $ac_cv_use_permissive >> ${wx_arg_cache_file}.tmp
4211 fi
4212
4213 if test "$wxUSE_PERMISSIVE" = yes; then
4214 echo "$as_me:$LINENO: result: yes" >&5
4215echo "${ECHO_T}yes" >&6
4216 else
4217 echo "$as_me:$LINENO: result: no" >&5
4218echo "${ECHO_T}no" >&6
4219 fi
4220
4221
4222 enablestring=
4223 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_deps" >&5
4224echo $ECHO_N "checking for --${enablestring:-enable}-no_deps... $ECHO_C" >&6
4225 no_cache=0
4226 # Check whether --enable-no_deps or --disable-no_deps was given.
4227if test "${enable_no_deps+set}" = set; then
4228 enableval="$enable_no_deps"
4229
4230 if test "$enableval" = yes; then
4231 ac_cv_use_no_deps='wxUSE_NO_DEPS=yes'
4232 else
4233 ac_cv_use_no_deps='wxUSE_NO_DEPS=no'
4234 fi
4235
4236else
4237
4238 LINE=`grep "wxUSE_NO_DEPS" ${wx_arg_cache_file}`
4239 if test "x$LINE" != x ; then
4240 eval "DEFAULT_$LINE"
4241 else
4242 no_cache=1
4243 fi
4244
4245 ac_cv_use_no_deps='wxUSE_NO_DEPS='$DEFAULT_wxUSE_NO_DEPS
4246
4247fi;
4248
4249 eval "$ac_cv_use_no_deps"
4250 if test "$no_cache" != 1; then
4251 echo $ac_cv_use_no_deps >> ${wx_arg_cache_file}.tmp
4252 fi
4253
4254 if test "$wxUSE_NO_DEPS" = yes; then
4255 echo "$as_me:$LINENO: result: yes" >&5
4256echo "${ECHO_T}yes" >&6
4257 else
4258 echo "$as_me:$LINENO: result: no" >&5
4259echo "${ECHO_T}no" >&6
4260 fi
4261
4262
95768535 4263 enablestring=
7afc46ab
KO
4264 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-universal_binary" >&5
4265echo $ECHO_N "checking for --${enablestring:-enable}-universal_binary... $ECHO_C" >&6
4266 no_cache=0
4267 # Check whether --enable-universal_binary or --disable-universal_binary was given.
4268if test "${enable_universal_binary+set}" = set; then
4269 enableval="$enable_universal_binary"
4270
95768535 4271 wx_cv_use_universal_binary="wxUSE_UNIVERSAL_BINARY='$enableval'"
7afc46ab
KO
4272
4273else
4274
4275 LINE=`grep "wxUSE_UNIVERSAL_BINARY" ${wx_arg_cache_file}`
4276 if test "x$LINE" != x ; then
4277 eval "DEFAULT_$LINE"
95768535 4278 wx_cv_use_universal_binary='wxUSE_UNIVERSAL_BINARY='$DEFAULT_wxUSE_UNIVERSAL_BINARY
7afc46ab
KO
4279 else
4280 no_cache=1
95768535 4281 wx_cv_use_universal_binary="wxUSE_UNIVERSAL_BINARY=no"
7afc46ab
KO
4282 fi
4283
7afc46ab
KO
4284fi;
4285
95768535 4286 eval "$wx_cv_use_universal_binary"
7afc46ab 4287 if test "$no_cache" != 1; then
95768535 4288 echo $wx_cv_use_universal_binary >> ${wx_arg_cache_file}.tmp
7afc46ab
KO
4289 fi
4290
95768535
MW
4291 echo "$as_me:$LINENO: result: $wxUSE_UNIVERSAL_BINARY" >&5
4292echo "${ECHO_T}$wxUSE_UNIVERSAL_BINARY" >&6
7afc46ab
KO
4293
4294
a848cd7e 4295
dee1a63f
MB
4296 enablestring=enable
4297 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-compat24" >&5
4298echo $ECHO_N "checking for --${enablestring:-enable}-compat24... $ECHO_C" >&6
a848cd7e 4299 no_cache=0
dee1a63f
MB
4300 # Check whether --enable-compat24 or --disable-compat24 was given.
4301if test "${enable_compat24+set}" = set; then
4302 enableval="$enable_compat24"
a848cd7e
SC
4303
4304 if test "$enableval" = yes; then
dee1a63f 4305 ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4=yes'
a848cd7e 4306 else
dee1a63f 4307 ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4=no'
a848cd7e
SC
4308 fi
4309
4310else
4311
dee1a63f 4312 LINE=`grep "WXWIN_COMPATIBILITY_2_4" ${wx_arg_cache_file}`
a848cd7e
SC
4313 if test "x$LINE" != x ; then
4314 eval "DEFAULT_$LINE"
4315 else
4316 no_cache=1
4317 fi
4318
dee1a63f 4319 ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4='$DEFAULT_WXWIN_COMPATIBILITY_2_4
a848cd7e
SC
4320
4321fi;
4322
dee1a63f 4323 eval "$ac_cv_use_compat24"
a848cd7e 4324 if test "$no_cache" != 1; then
dee1a63f 4325 echo $ac_cv_use_compat24 >> ${wx_arg_cache_file}.tmp
a848cd7e
SC
4326 fi
4327
dee1a63f 4328 if test "$WXWIN_COMPATIBILITY_2_4" = yes; then
a848cd7e
SC
4329 echo "$as_me:$LINENO: result: yes" >&5
4330echo "${ECHO_T}yes" >&6
4331 else
4332 echo "$as_me:$LINENO: result: no" >&5
4333echo "${ECHO_T}no" >&6
4334 fi
4335
4336
4337 enablestring=disable
dee1a63f
MB
4338 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-compat26" >&5
4339echo $ECHO_N "checking for --${enablestring:-enable}-compat26... $ECHO_C" >&6
a848cd7e 4340 no_cache=0
dee1a63f
MB
4341 # Check whether --enable-compat26 or --disable-compat26 was given.
4342if test "${enable_compat26+set}" = set; then
4343 enableval="$enable_compat26"
a848cd7e
SC
4344
4345 if test "$enableval" = yes; then
dee1a63f 4346 ac_cv_use_compat26='WXWIN_COMPATIBILITY_2_6=yes'
a848cd7e 4347 else
dee1a63f 4348 ac_cv_use_compat26='WXWIN_COMPATIBILITY_2_6=no'
a848cd7e
SC
4349 fi
4350
4351else
4352
dee1a63f 4353 LINE=`grep "WXWIN_COMPATIBILITY_2_6" ${wx_arg_cache_file}`
a848cd7e
SC
4354 if test "x$LINE" != x ; then
4355 eval "DEFAULT_$LINE"
4356 else
4357 no_cache=1
4358 fi
4359
dee1a63f 4360 ac_cv_use_compat26='WXWIN_COMPATIBILITY_2_6='$DEFAULT_WXWIN_COMPATIBILITY_2_6
a848cd7e
SC
4361
4362fi;
4363
dee1a63f 4364 eval "$ac_cv_use_compat26"
a848cd7e 4365 if test "$no_cache" != 1; then
dee1a63f 4366 echo $ac_cv_use_compat26 >> ${wx_arg_cache_file}.tmp
a848cd7e
SC
4367 fi
4368
dee1a63f 4369 if test "$WXWIN_COMPATIBILITY_2_6" = yes; then
a848cd7e
SC
4370 echo "$as_me:$LINENO: result: yes" >&5
4371echo "${ECHO_T}yes" >&6
4372 else
4373 echo "$as_me:$LINENO: result: no" >&5
4374echo "${ECHO_T}no" >&6
4375 fi
4376
4377
ffa0583f
RL
4378
4379 enablestring=
4380 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-rpath" >&5
4381echo $ECHO_N "checking for --${enablestring:-enable}-rpath... $ECHO_C" >&6
4382 no_cache=0
4383 # Check whether --enable-rpath or --disable-rpath was given.
a848cd7e
SC
4384if test "${enable_rpath+set}" = set; then
4385 enableval="$enable_rpath"
ffa0583f
RL
4386
4387 if test "$enableval" = yes; then
4388 ac_cv_use_rpath='wxUSE_RPATH=yes'
4389 else
4390 ac_cv_use_rpath='wxUSE_RPATH=no'
4391 fi
4392
4393else
4394
4395 LINE=`grep "wxUSE_RPATH" ${wx_arg_cache_file}`
4396 if test "x$LINE" != x ; then
4397 eval "DEFAULT_$LINE"
4398 else
4399 no_cache=1
4400 fi
4401
4402 ac_cv_use_rpath='wxUSE_RPATH='$DEFAULT_wxUSE_RPATH
4403
a848cd7e
SC
4404fi;
4405
ffa0583f
RL
4406 eval "$ac_cv_use_rpath"
4407 if test "$no_cache" != 1; then
4408 echo $ac_cv_use_rpath >> ${wx_arg_cache_file}.tmp
4409 fi
4410
4411 if test "$wxUSE_RPATH" = yes; then
4412 echo "$as_me:$LINENO: result: yes" >&5
4413echo "${ECHO_T}yes" >&6
4414 else
4415 echo "$as_me:$LINENO: result: no" >&5
4416echo "${ECHO_T}no" >&6
4417 fi
4418
a848cd7e
SC
4419
4420
4421
4422
4423 enablestring=
4424 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-intl" >&5
4425echo $ECHO_N "checking for --${enablestring:-enable}-intl... $ECHO_C" >&6
4426 no_cache=0
4427 # Check whether --enable-intl or --disable-intl was given.
4428if test "${enable_intl+set}" = set; then
4429 enableval="$enable_intl"
4430
4431 if test "$enableval" = yes; then
4432 ac_cv_use_intl='wxUSE_INTL=yes'
4433 else
4434 ac_cv_use_intl='wxUSE_INTL=no'
4435 fi
4436
4437else
4438
4439 LINE=`grep "wxUSE_INTL" ${wx_arg_cache_file}`
4440 if test "x$LINE" != x ; then
4441 eval "DEFAULT_$LINE"
4442 else
4443 no_cache=1
4444 fi
4445
4446 ac_cv_use_intl='wxUSE_INTL='$DEFAULT_wxUSE_INTL
4447
4448fi;
4449
4450 eval "$ac_cv_use_intl"
4451 if test "$no_cache" != 1; then
4452 echo $ac_cv_use_intl >> ${wx_arg_cache_file}.tmp
4453 fi
4454
4455 if test "$wxUSE_INTL" = yes; then
4456 echo "$as_me:$LINENO: result: yes" >&5
4457echo "${ECHO_T}yes" >&6
4458 else
4459 echo "$as_me:$LINENO: result: no" >&5
4460echo "${ECHO_T}no" >&6
4461 fi
4462
4463
4464 enablestring=
4465 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-config" >&5
4466echo $ECHO_N "checking for --${enablestring:-enable}-config... $ECHO_C" >&6
4467 no_cache=0
4468 # Check whether --enable-config or --disable-config was given.
4469if test "${enable_config+set}" = set; then
4470 enableval="$enable_config"
4471
4472 if test "$enableval" = yes; then
4473 ac_cv_use_config='wxUSE_CONFIG=yes'
4474 else
4475 ac_cv_use_config='wxUSE_CONFIG=no'
4476 fi
4477
4478else
4479
4480 LINE=`grep "wxUSE_CONFIG" ${wx_arg_cache_file}`
4481 if test "x$LINE" != x ; then
4482 eval "DEFAULT_$LINE"
4483 else
4484 no_cache=1
4485 fi
4486
4487 ac_cv_use_config='wxUSE_CONFIG='$DEFAULT_wxUSE_CONFIG
4488
4489fi;
4490
4491 eval "$ac_cv_use_config"
4492 if test "$no_cache" != 1; then
4493 echo $ac_cv_use_config >> ${wx_arg_cache_file}.tmp
4494 fi
4495
4496 if test "$wxUSE_CONFIG" = yes; then
4497 echo "$as_me:$LINENO: result: yes" >&5
4498echo "${ECHO_T}yes" >&6
4499 else
4500 echo "$as_me:$LINENO: result: no" >&5
4501echo "${ECHO_T}no" >&6
4502 fi
4503
4504
4505
4506 enablestring=
4507 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocols" >&5
4508echo $ECHO_N "checking for --${enablestring:-enable}-protocols... $ECHO_C" >&6
4509 no_cache=0
4510 # Check whether --enable-protocols or --disable-protocols was given.
4511if test "${enable_protocols+set}" = set; then
4512 enableval="$enable_protocols"
4513
4514 if test "$enableval" = yes; then
4515 ac_cv_use_protocols='wxUSE_PROTOCOL=yes'
4516 else
4517 ac_cv_use_protocols='wxUSE_PROTOCOL=no'
4518 fi
4519
4520else
4521
4522 LINE=`grep "wxUSE_PROTOCOL" ${wx_arg_cache_file}`
4523 if test "x$LINE" != x ; then
4524 eval "DEFAULT_$LINE"
4525 else
4526 no_cache=1
4527 fi
4528
4529 ac_cv_use_protocols='wxUSE_PROTOCOL='$DEFAULT_wxUSE_PROTOCOL
4530
4531fi;
4532
4533 eval "$ac_cv_use_protocols"
4534 if test "$no_cache" != 1; then
4535 echo $ac_cv_use_protocols >> ${wx_arg_cache_file}.tmp
4536 fi
4537
4538 if test "$wxUSE_PROTOCOL" = yes; then
4539 echo "$as_me:$LINENO: result: yes" >&5
4540echo "${ECHO_T}yes" >&6
4541 else
4542 echo "$as_me:$LINENO: result: no" >&5
4543echo "${ECHO_T}no" >&6
4544 fi
4545
4546
4547 enablestring=
4548 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ftp" >&5
4549echo $ECHO_N "checking for --${enablestring:-enable}-ftp... $ECHO_C" >&6
4550 no_cache=0
4551 # Check whether --enable-ftp or --disable-ftp was given.
4552if test "${enable_ftp+set}" = set; then
4553 enableval="$enable_ftp"
4554
4555 if test "$enableval" = yes; then
4556 ac_cv_use_ftp='wxUSE_PROTOCOL_FTP=yes'
4557 else
4558 ac_cv_use_ftp='wxUSE_PROTOCOL_FTP=no'
4559 fi
4560
4561else
4562
4563 LINE=`grep "wxUSE_PROTOCOL_FTP" ${wx_arg_cache_file}`
4564 if test "x$LINE" != x ; then
4565 eval "DEFAULT_$LINE"
4566 else
4567 no_cache=1
4568 fi
4569
4570 ac_cv_use_ftp='wxUSE_PROTOCOL_FTP='$DEFAULT_wxUSE_PROTOCOL_FTP
4571
4572fi;
4573
4574 eval "$ac_cv_use_ftp"
4575 if test "$no_cache" != 1; then
4576 echo $ac_cv_use_ftp >> ${wx_arg_cache_file}.tmp
4577 fi
4578
4579 if test "$wxUSE_PROTOCOL_FTP" = yes; then
4580 echo "$as_me:$LINENO: result: yes" >&5
4581echo "${ECHO_T}yes" >&6
4582 else
4583 echo "$as_me:$LINENO: result: no" >&5
4584echo "${ECHO_T}no" >&6
4585 fi
4586
4587
4588 enablestring=
4589 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-http" >&5
4590echo $ECHO_N "checking for --${enablestring:-enable}-http... $ECHO_C" >&6
4591 no_cache=0
4592 # Check whether --enable-http or --disable-http was given.
4593if test "${enable_http+set}" = set; then
4594 enableval="$enable_http"
4595
4596 if test "$enableval" = yes; then
4597 ac_cv_use_http='wxUSE_PROTOCOL_HTTP=yes'
4598 else
4599 ac_cv_use_http='wxUSE_PROTOCOL_HTTP=no'
4600 fi
4601
4602else
4603
4604 LINE=`grep "wxUSE_PROTOCOL_HTTP" ${wx_arg_cache_file}`
4605 if test "x$LINE" != x ; then
4606 eval "DEFAULT_$LINE"
4607 else
4608 no_cache=1
4609 fi
4610
4611 ac_cv_use_http='wxUSE_PROTOCOL_HTTP='$DEFAULT_wxUSE_PROTOCOL_HTTP
4612
4613fi;
4614
4615 eval "$ac_cv_use_http"
4616 if test "$no_cache" != 1; then
4617 echo $ac_cv_use_http >> ${wx_arg_cache_file}.tmp
4618 fi
4619
4620 if test "$wxUSE_PROTOCOL_HTTP" = yes; then
4621 echo "$as_me:$LINENO: result: yes" >&5
4622echo "${ECHO_T}yes" >&6
4623 else
4624 echo "$as_me:$LINENO: result: no" >&5
4625echo "${ECHO_T}no" >&6
4626 fi
4627
4628
4629 enablestring=
4630 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fileproto" >&5
4631echo $ECHO_N "checking for --${enablestring:-enable}-fileproto... $ECHO_C" >&6
4632 no_cache=0
4633 # Check whether --enable-fileproto or --disable-fileproto was given.
4634if test "${enable_fileproto+set}" = set; then
4635 enableval="$enable_fileproto"
4636
4637 if test "$enableval" = yes; then
4638 ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE=yes'
4639 else
4640 ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE=no'
4641 fi
4642
4643else
4644
4645 LINE=`grep "wxUSE_PROTOCOL_FILE" ${wx_arg_cache_file}`
4646 if test "x$LINE" != x ; then
4647 eval "DEFAULT_$LINE"
4648 else
4649 no_cache=1
4650 fi
4651
4652 ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE='$DEFAULT_wxUSE_PROTOCOL_FILE
4653
4654fi;
4655
4656 eval "$ac_cv_use_fileproto"
4657 if test "$no_cache" != 1; then
4658 echo $ac_cv_use_fileproto >> ${wx_arg_cache_file}.tmp
4659 fi
4660
4661 if test "$wxUSE_PROTOCOL_FILE" = yes; then
4662 echo "$as_me:$LINENO: result: yes" >&5
4663echo "${ECHO_T}yes" >&6
4664 else
4665 echo "$as_me:$LINENO: result: no" >&5
4666echo "${ECHO_T}no" >&6
4667 fi
4668
4669
4670 enablestring=
4671 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sockets" >&5
4672echo $ECHO_N "checking for --${enablestring:-enable}-sockets... $ECHO_C" >&6
4673 no_cache=0
4674 # Check whether --enable-sockets or --disable-sockets was given.
4675if test "${enable_sockets+set}" = set; then
4676 enableval="$enable_sockets"
4677
4678 if test "$enableval" = yes; then
4679 ac_cv_use_sockets='wxUSE_SOCKETS=yes'
4680 else
4681 ac_cv_use_sockets='wxUSE_SOCKETS=no'
4682 fi
4683
4684else
4685
4686 LINE=`grep "wxUSE_SOCKETS" ${wx_arg_cache_file}`
4687 if test "x$LINE" != x ; then
4688 eval "DEFAULT_$LINE"
4689 else
4690 no_cache=1
4691 fi
4692
4693 ac_cv_use_sockets='wxUSE_SOCKETS='$DEFAULT_wxUSE_SOCKETS
4694
4695fi;
4696
4697 eval "$ac_cv_use_sockets"
4698 if test "$no_cache" != 1; then
4699 echo $ac_cv_use_sockets >> ${wx_arg_cache_file}.tmp
4700 fi
4701
4702 if test "$wxUSE_SOCKETS" = yes; then
4703 echo "$as_me:$LINENO: result: yes" >&5
4704echo "${ECHO_T}yes" >&6
4705 else
4706 echo "$as_me:$LINENO: result: no" >&5
4707echo "${ECHO_T}no" >&6
4708 fi
4709
4710
4711 enablestring=
4712 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ole" >&5
4713echo $ECHO_N "checking for --${enablestring:-enable}-ole... $ECHO_C" >&6
4714 no_cache=0
4715 # Check whether --enable-ole or --disable-ole was given.
4716if test "${enable_ole+set}" = set; then
4717 enableval="$enable_ole"
4718
4719 if test "$enableval" = yes; then
4720 ac_cv_use_ole='wxUSE_OLE=yes'
4721 else
4722 ac_cv_use_ole='wxUSE_OLE=no'
4723 fi
4724
4725else
4726
4727 LINE=`grep "wxUSE_OLE" ${wx_arg_cache_file}`
4728 if test "x$LINE" != x ; then
4729 eval "DEFAULT_$LINE"
4730 else
4731 no_cache=1
4732 fi
4733
4734 ac_cv_use_ole='wxUSE_OLE='$DEFAULT_wxUSE_OLE
4735
4736fi;
4737
4738 eval "$ac_cv_use_ole"
4739 if test "$no_cache" != 1; then
4740 echo $ac_cv_use_ole >> ${wx_arg_cache_file}.tmp
4741 fi
4742
4743 if test "$wxUSE_OLE" = yes; then
4744 echo "$as_me:$LINENO: result: yes" >&5
4745echo "${ECHO_T}yes" >&6
4746 else
4747 echo "$as_me:$LINENO: result: no" >&5
4748echo "${ECHO_T}no" >&6
4749 fi
4750
4751
4752 enablestring=
4753 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dataobj" >&5
4754echo $ECHO_N "checking for --${enablestring:-enable}-dataobj... $ECHO_C" >&6
4755 no_cache=0
4756 # Check whether --enable-dataobj or --disable-dataobj was given.
4757if test "${enable_dataobj+set}" = set; then
4758 enableval="$enable_dataobj"
4759
4760 if test "$enableval" = yes; then
4761 ac_cv_use_dataobj='wxUSE_DATAOBJ=yes'
4762 else
4763 ac_cv_use_dataobj='wxUSE_DATAOBJ=no'
4764 fi
4765
4766else
4767
4768 LINE=`grep "wxUSE_DATAOBJ" ${wx_arg_cache_file}`
4769 if test "x$LINE" != x ; then
4770 eval "DEFAULT_$LINE"
4771 else
4772 no_cache=1
4773 fi
4774
4775 ac_cv_use_dataobj='wxUSE_DATAOBJ='$DEFAULT_wxUSE_DATAOBJ
4776
4777fi;
4778
4779 eval "$ac_cv_use_dataobj"
4780 if test "$no_cache" != 1; then
4781 echo $ac_cv_use_dataobj >> ${wx_arg_cache_file}.tmp
4782 fi
4783
4784 if test "$wxUSE_DATAOBJ" = yes; then
4785 echo "$as_me:$LINENO: result: yes" >&5
4786echo "${ECHO_T}yes" >&6
4787 else
4788 echo "$as_me:$LINENO: result: no" >&5
4789echo "${ECHO_T}no" >&6
4790 fi
4791
4792
4793
4794 enablestring=
4795 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ipc" >&5
4796echo $ECHO_N "checking for --${enablestring:-enable}-ipc... $ECHO_C" >&6
4797 no_cache=0
4798 # Check whether --enable-ipc or --disable-ipc was given.
4799if test "${enable_ipc+set}" = set; then
4800 enableval="$enable_ipc"
4801
4802 if test "$enableval" = yes; then
4803 ac_cv_use_ipc='wxUSE_IPC=yes'
4804 else
4805 ac_cv_use_ipc='wxUSE_IPC=no'
4806 fi
4807
4808else
4809
4810 LINE=`grep "wxUSE_IPC" ${wx_arg_cache_file}`
4811 if test "x$LINE" != x ; then
4812 eval "DEFAULT_$LINE"
4813 else
4814 no_cache=1
4815 fi
4816
4817 ac_cv_use_ipc='wxUSE_IPC='$DEFAULT_wxUSE_IPC
4818
4819fi;
4820
4821 eval "$ac_cv_use_ipc"
4822 if test "$no_cache" != 1; then
4823 echo $ac_cv_use_ipc >> ${wx_arg_cache_file}.tmp
4824 fi
4825
4826 if test "$wxUSE_IPC" = yes; then
4827 echo "$as_me:$LINENO: result: yes" >&5
4828echo "${ECHO_T}yes" >&6
4829 else
4830 echo "$as_me:$LINENO: result: no" >&5
4831echo "${ECHO_T}no" >&6
4832 fi
4833
4834
4835
4836 enablestring=
4837 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-apple_ieee" >&5
4838echo $ECHO_N "checking for --${enablestring:-enable}-apple_ieee... $ECHO_C" >&6
4839 no_cache=0
4840 # Check whether --enable-apple_ieee or --disable-apple_ieee was given.
4841if test "${enable_apple_ieee+set}" = set; then
4842 enableval="$enable_apple_ieee"
4843
4844 if test "$enableval" = yes; then
4845 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=yes'
4846 else
4847 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=no'
4848 fi
4849
4850else
4851
4852 LINE=`grep "wxUSE_APPLE_IEEE" ${wx_arg_cache_file}`
4853 if test "x$LINE" != x ; then
4854 eval "DEFAULT_$LINE"
4855 else
4856 no_cache=1
4857 fi
4858
4859 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE='$DEFAULT_wxUSE_APPLE_IEEE
4860
4861fi;
4862
4863 eval "$ac_cv_use_apple_ieee"
4864 if test "$no_cache" != 1; then
4865 echo $ac_cv_use_apple_ieee >> ${wx_arg_cache_file}.tmp
4866 fi
4867
4868 if test "$wxUSE_APPLE_IEEE" = yes; then
4869 echo "$as_me:$LINENO: result: yes" >&5
4870echo "${ECHO_T}yes" >&6
4871 else
4872 echo "$as_me:$LINENO: result: no" >&5
4873echo "${ECHO_T}no" >&6
4874 fi
4875
4876
81f90336
MW
4877 enablestring=
4878 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-arcstream" >&5
4879echo $ECHO_N "checking for --${enablestring:-enable}-arcstream... $ECHO_C" >&6
4880 no_cache=0
4881 # Check whether --enable-arcstream or --disable-arcstream was given.
4882if test "${enable_arcstream+set}" = set; then
4883 enableval="$enable_arcstream"
4884
4885 if test "$enableval" = yes; then
9e8e867f 4886 ac_cv_use_arcstream='wxUSE_ARCHIVE_STREAMS=yes'
81f90336 4887 else
9e8e867f 4888 ac_cv_use_arcstream='wxUSE_ARCHIVE_STREAMS=no'
81f90336
MW
4889 fi
4890
4891else
4892
9e8e867f 4893 LINE=`grep "wxUSE_ARCHIVE_STREAMS" ${wx_arg_cache_file}`
81f90336
MW
4894 if test "x$LINE" != x ; then
4895 eval "DEFAULT_$LINE"
4896 else
4897 no_cache=1
4898 fi
4899
9e8e867f 4900 ac_cv_use_arcstream='wxUSE_ARCHIVE_STREAMS='$DEFAULT_wxUSE_ARCHIVE_STREAMS
81f90336
MW
4901
4902fi;
4903
4904 eval "$ac_cv_use_arcstream"
4905 if test "$no_cache" != 1; then
4906 echo $ac_cv_use_arcstream >> ${wx_arg_cache_file}.tmp
4907 fi
4908
9e8e867f 4909 if test "$wxUSE_ARCHIVE_STREAMS" = yes; then
81f90336
MW
4910 echo "$as_me:$LINENO: result: yes" >&5
4911echo "${ECHO_T}yes" >&6
4912 else
4913 echo "$as_me:$LINENO: result: no" >&5
4914echo "${ECHO_T}no" >&6
4915 fi
4916
4917
a848cd7e 4918 enablestring=
36b6448c
VZ
4919 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-backtrace" >&5
4920echo $ECHO_N "checking for --${enablestring:-enable}-backtrace... $ECHO_C" >&6
a848cd7e 4921 no_cache=0
36b6448c
VZ
4922 # Check whether --enable-backtrace or --disable-backtrace was given.
4923if test "${enable_backtrace+set}" = set; then
4924 enableval="$enable_backtrace"
a848cd7e
SC
4925
4926 if test "$enableval" = yes; then
36b6448c 4927 ac_cv_use_backtrace='wxUSE_STACKWALKER=yes'
a848cd7e 4928 else
36b6448c 4929 ac_cv_use_backtrace='wxUSE_STACKWALKER=no'
a848cd7e
SC
4930 fi
4931
4932else
4933
36b6448c 4934 LINE=`grep "wxUSE_STACKWALKER" ${wx_arg_cache_file}`
a848cd7e
SC
4935 if test "x$LINE" != x ; then
4936 eval "DEFAULT_$LINE"
4937 else
4938 no_cache=1
4939 fi
4940
36b6448c 4941 ac_cv_use_backtrace='wxUSE_STACKWALKER='$DEFAULT_wxUSE_STACKWALKER
a848cd7e
SC
4942
4943fi;
4944
36b6448c 4945 eval "$ac_cv_use_backtrace"
a848cd7e 4946 if test "$no_cache" != 1; then
36b6448c 4947 echo $ac_cv_use_backtrace >> ${wx_arg_cache_file}.tmp
a848cd7e
SC
4948 fi
4949
36b6448c 4950 if test "$wxUSE_STACKWALKER" = yes; then
a848cd7e
SC
4951 echo "$as_me:$LINENO: result: yes" >&5
4952echo "${ECHO_T}yes" >&6
4953 else
4954 echo "$as_me:$LINENO: result: no" >&5
4955echo "${ECHO_T}no" >&6
4956 fi
4957
4958
eaff0f0d 4959 enablestring=
36b6448c
VZ
4960 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-catch_segvs" >&5
4961echo $ECHO_N "checking for --${enablestring:-enable}-catch_segvs... $ECHO_C" >&6
eaff0f0d 4962 no_cache=0
36b6448c
VZ
4963 # Check whether --enable-catch_segvs or --disable-catch_segvs was given.
4964if test "${enable_catch_segvs+set}" = set; then
4965 enableval="$enable_catch_segvs"
eaff0f0d
VZ
4966
4967 if test "$enableval" = yes; then
36b6448c 4968 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=yes'
eaff0f0d 4969 else
36b6448c 4970 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=no'
eaff0f0d
VZ
4971 fi
4972
4973else
4974
36b6448c 4975 LINE=`grep "wxUSE_ON_FATAL_EXCEPTION" ${wx_arg_cache_file}`
eaff0f0d
VZ
4976 if test "x$LINE" != x ; then
4977 eval "DEFAULT_$LINE"
4978 else
4979 no_cache=1
4980 fi
4981
36b6448c 4982 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION='$DEFAULT_wxUSE_ON_FATAL_EXCEPTION
eaff0f0d
VZ
4983
4984fi;
4985
36b6448c 4986 eval "$ac_cv_use_catch_segvs"
eaff0f0d 4987 if test "$no_cache" != 1; then
36b6448c 4988 echo $ac_cv_use_catch_segvs >> ${wx_arg_cache_file}.tmp
eaff0f0d
VZ
4989 fi
4990
36b6448c 4991 if test "$wxUSE_ON_FATAL_EXCEPTION" = yes; then
eaff0f0d
VZ
4992 echo "$as_me:$LINENO: result: yes" >&5
4993echo "${ECHO_T}yes" >&6
4994 else
4995 echo "$as_me:$LINENO: result: no" >&5
4996echo "${ECHO_T}no" >&6
4997 fi
4998
4999
a848cd7e
SC
5000 enablestring=
5001 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-cmdline" >&5
5002echo $ECHO_N "checking for --${enablestring:-enable}-cmdline... $ECHO_C" >&6
5003 no_cache=0
5004 # Check whether --enable-cmdline or --disable-cmdline was given.
5005if test "${enable_cmdline+set}" = set; then
5006 enableval="$enable_cmdline"
5007
5008 if test "$enableval" = yes; then
5009 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=yes'
5010 else
5011 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=no'
5012 fi
5013
5014else
5015
5016 LINE=`grep "wxUSE_CMDLINE_PARSER" ${wx_arg_cache_file}`
5017 if test "x$LINE" != x ; then
5018 eval "DEFAULT_$LINE"
5019 else
5020 no_cache=1
5021 fi
5022
5023 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER='$DEFAULT_wxUSE_CMDLINE_PARSER
5024
5025fi;
5026
5027 eval "$ac_cv_use_cmdline"
5028 if test "$no_cache" != 1; then
5029 echo $ac_cv_use_cmdline >> ${wx_arg_cache_file}.tmp
5030 fi
5031
5032 if test "$wxUSE_CMDLINE_PARSER" = yes; then
5033 echo "$as_me:$LINENO: result: yes" >&5
5034echo "${ECHO_T}yes" >&6
5035 else
5036 echo "$as_me:$LINENO: result: no" >&5
5037echo "${ECHO_T}no" >&6
5038 fi
5039
5040
5041 enablestring=
5042 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-datetime" >&5
5043echo $ECHO_N "checking for --${enablestring:-enable}-datetime... $ECHO_C" >&6
5044 no_cache=0
5045 # Check whether --enable-datetime or --disable-datetime was given.
5046if test "${enable_datetime+set}" = set; then
5047 enableval="$enable_datetime"
5048
5049 if test "$enableval" = yes; then
5050 ac_cv_use_datetime='wxUSE_DATETIME=yes'
5051 else
5052 ac_cv_use_datetime='wxUSE_DATETIME=no'
5053 fi
5054
5055else
5056
5057 LINE=`grep "wxUSE_DATETIME" ${wx_arg_cache_file}`
5058 if test "x$LINE" != x ; then
5059 eval "DEFAULT_$LINE"
5060 else
5061 no_cache=1
5062 fi
5063
5064 ac_cv_use_datetime='wxUSE_DATETIME='$DEFAULT_wxUSE_DATETIME
5065
5066fi;
5067
5068 eval "$ac_cv_use_datetime"
5069 if test "$no_cache" != 1; then
5070 echo $ac_cv_use_datetime >> ${wx_arg_cache_file}.tmp
5071 fi
5072
5073 if test "$wxUSE_DATETIME" = yes; then
5074 echo "$as_me:$LINENO: result: yes" >&5
5075echo "${ECHO_T}yes" >&6
5076 else
5077 echo "$as_me:$LINENO: result: no" >&5
5078echo "${ECHO_T}no" >&6
5079 fi
5080
5081
36b6448c
VZ
5082 enablestring=
5083 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debugreport" >&5
5084echo $ECHO_N "checking for --${enablestring:-enable}-debugreport... $ECHO_C" >&6
5085 no_cache=0
5086 # Check whether --enable-debugreport or --disable-debugreport was given.
5087if test "${enable_debugreport+set}" = set; then
5088 enableval="$enable_debugreport"
5089
5090 if test "$enableval" = yes; then
5091 ac_cv_use_debugreport='wxUSE_DEBUGREPORT=yes'
5092 else
5093 ac_cv_use_debugreport='wxUSE_DEBUGREPORT=no'
5094 fi
5095
5096else
5097
5098 LINE=`grep "wxUSE_DEBUGREPORT" ${wx_arg_cache_file}`
5099 if test "x$LINE" != x ; then
5100 eval "DEFAULT_$LINE"
5101 else
5102 no_cache=1
5103 fi
5104
5105 ac_cv_use_debugreport='wxUSE_DEBUGREPORT='$DEFAULT_wxUSE_DEBUGREPORT
5106
5107fi;
5108
5109 eval "$ac_cv_use_debugreport"
5110 if test "$no_cache" != 1; then
5111 echo $ac_cv_use_debugreport >> ${wx_arg_cache_file}.tmp
5112 fi
5113
5114 if test "$wxUSE_DEBUGREPORT" = yes; then
5115 echo "$as_me:$LINENO: result: yes" >&5
5116echo "${ECHO_T}yes" >&6
5117 else
5118 echo "$as_me:$LINENO: result: no" >&5
5119echo "${ECHO_T}no" >&6
5120 fi
5121
5122
a848cd7e
SC
5123 enablestring=
5124 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dialupman" >&5
5125echo $ECHO_N "checking for --${enablestring:-enable}-dialupman... $ECHO_C" >&6
5126 no_cache=0
5127 # Check whether --enable-dialupman or --disable-dialupman was given.
5128if test "${enable_dialupman+set}" = set; then
5129 enableval="$enable_dialupman"
5130
5131 if test "$enableval" = yes; then
5132 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=yes'
5133 else
5134 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=no'
5135 fi
5136
5137else
5138
5139 LINE=`grep "wxUSE_DIALUP_MANAGER" ${wx_arg_cache_file}`
5140 if test "x$LINE" != x ; then
5141 eval "DEFAULT_$LINE"
5142 else
5143 no_cache=1
5144 fi
5145
5146 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER='$DEFAULT_wxUSE_DIALUP_MANAGER
5147
5148fi;
5149
5150 eval "$ac_cv_use_dialupman"
5151 if test "$no_cache" != 1; then
5152 echo $ac_cv_use_dialupman >> ${wx_arg_cache_file}.tmp
5153 fi
5154
5155 if test "$wxUSE_DIALUP_MANAGER" = yes; then
5156 echo "$as_me:$LINENO: result: yes" >&5
5157echo "${ECHO_T}yes" >&6
5158 else
5159 echo "$as_me:$LINENO: result: no" >&5
5160echo "${ECHO_T}no" >&6
5161 fi
5162
5163
5164 enablestring=
5165 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dynlib" >&5
5166echo $ECHO_N "checking for --${enablestring:-enable}-dynlib... $ECHO_C" >&6
5167 no_cache=0
5168 # Check whether --enable-dynlib or --disable-dynlib was given.
5169if test "${enable_dynlib+set}" = set; then
5170 enableval="$enable_dynlib"
5171
5172 if test "$enableval" = yes; then
5173 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=yes'
5174 else
5175 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=no'
5176 fi
5177
5178else
5179
5180 LINE=`grep "wxUSE_DYNLIB_CLASS" ${wx_arg_cache_file}`
5181 if test "x$LINE" != x ; then
5182 eval "DEFAULT_$LINE"
5183 else
5184 no_cache=1
5185 fi
5186
5187 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS='$DEFAULT_wxUSE_DYNLIB_CLASS
5188
5189fi;
5190
5191 eval "$ac_cv_use_dynlib"
5192 if test "$no_cache" != 1; then
5193 echo $ac_cv_use_dynlib >> ${wx_arg_cache_file}.tmp
5194 fi
5195
5196 if test "$wxUSE_DYNLIB_CLASS" = yes; then
5197 echo "$as_me:$LINENO: result: yes" >&5
5198echo "${ECHO_T}yes" >&6
5199 else
5200 echo "$as_me:$LINENO: result: no" >&5
5201echo "${ECHO_T}no" >&6
5202 fi
5203
5204
5205 enablestring=
5206 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dynamicloader" >&5
5207echo $ECHO_N "checking for --${enablestring:-enable}-dynamicloader... $ECHO_C" >&6
5208 no_cache=0
5209 # Check whether --enable-dynamicloader or --disable-dynamicloader was given.
5210if test "${enable_dynamicloader+set}" = set; then
5211 enableval="$enable_dynamicloader"
5212
5213 if test "$enableval" = yes; then
5214 ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=yes'
5215 else
5216 ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=no'
5217 fi
5218
5219else
5220
5221 LINE=`grep "wxUSE_DYNAMIC_LOADER" ${wx_arg_cache_file}`
5222 if test "x$LINE" != x ; then
5223 eval "DEFAULT_$LINE"
5224 else
5225 no_cache=1
5226 fi
5227
5228 ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER='$DEFAULT_wxUSE_DYNAMIC_LOADER
5229
5230fi;
5231
5232 eval "$ac_cv_use_dynamicloader"
5233 if test "$no_cache" != 1; then
5234 echo $ac_cv_use_dynamicloader >> ${wx_arg_cache_file}.tmp
5235 fi
5236
5237 if test "$wxUSE_DYNAMIC_LOADER" = yes; then
5238 echo "$as_me:$LINENO: result: yes" >&5
5239echo "${ECHO_T}yes" >&6
5240 else
5241 echo "$as_me:$LINENO: result: no" >&5
5242echo "${ECHO_T}no" >&6
5243 fi
5244
5245
5246 enablestring=
5247 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-exceptions" >&5
5248echo $ECHO_N "checking for --${enablestring:-enable}-exceptions... $ECHO_C" >&6
5249 no_cache=0
5250 # Check whether --enable-exceptions or --disable-exceptions was given.
5251if test "${enable_exceptions+set}" = set; then
5252 enableval="$enable_exceptions"
5253
5254 if test "$enableval" = yes; then
5255 ac_cv_use_exceptions='wxUSE_EXCEPTIONS=yes'
5256 else
5257 ac_cv_use_exceptions='wxUSE_EXCEPTIONS=no'
5258 fi
5259
5260else
5261
5262 LINE=`grep "wxUSE_EXCEPTIONS" ${wx_arg_cache_file}`
5263 if test "x$LINE" != x ; then
5264 eval "DEFAULT_$LINE"
5265 else
5266 no_cache=1
5267 fi
5268
5269 ac_cv_use_exceptions='wxUSE_EXCEPTIONS='$DEFAULT_wxUSE_EXCEPTIONS
5270
5271fi;
5272
5273 eval "$ac_cv_use_exceptions"
5274 if test "$no_cache" != 1; then
5275 echo $ac_cv_use_exceptions >> ${wx_arg_cache_file}.tmp
5276 fi
5277
5278 if test "$wxUSE_EXCEPTIONS" = yes; then
5279 echo "$as_me:$LINENO: result: yes" >&5
5280echo "${ECHO_T}yes" >&6
5281 else
5282 echo "$as_me:$LINENO: result: no" >&5
5283echo "${ECHO_T}no" >&6
5284 fi
5285
5286
5287 enablestring=
5288 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ffile" >&5
5289echo $ECHO_N "checking for --${enablestring:-enable}-ffile... $ECHO_C" >&6
5290 no_cache=0
5291 # Check whether --enable-ffile or --disable-ffile was given.
5292if test "${enable_ffile+set}" = set; then
5293 enableval="$enable_ffile"
5294
5295 if test "$enableval" = yes; then
5296 ac_cv_use_ffile='wxUSE_FFILE=yes'
5297 else
5298 ac_cv_use_ffile='wxUSE_FFILE=no'
5299 fi
5300
5301else
5302
5303 LINE=`grep "wxUSE_FFILE" ${wx_arg_cache_file}`
5304 if test "x$LINE" != x ; then
5305 eval "DEFAULT_$LINE"
5306 else
5307 no_cache=1
5308 fi
5309
5310 ac_cv_use_ffile='wxUSE_FFILE='$DEFAULT_wxUSE_FFILE
5311
5312fi;
5313
5314 eval "$ac_cv_use_ffile"
5315 if test "$no_cache" != 1; then
5316 echo $ac_cv_use_ffile >> ${wx_arg_cache_file}.tmp
5317 fi
5318
5319 if test "$wxUSE_FFILE" = yes; then
5320 echo "$as_me:$LINENO: result: yes" >&5
5321echo "${ECHO_T}yes" >&6
5322 else
5323 echo "$as_me:$LINENO: result: no" >&5
5324echo "${ECHO_T}no" >&6
5325 fi
5326
5327
5328 enablestring=
5329 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-file" >&5
5330echo $ECHO_N "checking for --${enablestring:-enable}-file... $ECHO_C" >&6
5331 no_cache=0
5332 # Check whether --enable-file or --disable-file was given.
5333if test "${enable_file+set}" = set; then
5334 enableval="$enable_file"
5335
5336 if test "$enableval" = yes; then
5337 ac_cv_use_file='wxUSE_FILE=yes'
5338 else
5339 ac_cv_use_file='wxUSE_FILE=no'
5340 fi
5341
5342else
5343
5344 LINE=`grep "wxUSE_FILE" ${wx_arg_cache_file}`
5345 if test "x$LINE" != x ; then
5346 eval "DEFAULT_$LINE"
5347 else
5348 no_cache=1
5349 fi
5350
5351 ac_cv_use_file='wxUSE_FILE='$DEFAULT_wxUSE_FILE
5352
5353fi;
5354
5355 eval "$ac_cv_use_file"
5356 if test "$no_cache" != 1; then
5357 echo $ac_cv_use_file >> ${wx_arg_cache_file}.tmp
5358 fi
5359
5360 if test "$wxUSE_FILE" = yes; then
5361 echo "$as_me:$LINENO: result: yes" >&5
5362echo "${ECHO_T}yes" >&6
5363 else
5364 echo "$as_me:$LINENO: result: no" >&5
5365echo "${ECHO_T}no" >&6
5366 fi
5367
5368
5369 enablestring=
5370 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-filesystem" >&5
5371echo $ECHO_N "checking for --${enablestring:-enable}-filesystem... $ECHO_C" >&6
5372 no_cache=0
5373 # Check whether --enable-filesystem or --disable-filesystem was given.
5374if test "${enable_filesystem+set}" = set; then
5375 enableval="$enable_filesystem"
5376
5377 if test "$enableval" = yes; then
5378 ac_cv_use_filesystem='wxUSE_FILESYSTEM=yes'
5379 else
5380 ac_cv_use_filesystem='wxUSE_FILESYSTEM=no'
5381 fi
5382
5383else
5384
5385 LINE=`grep "wxUSE_FILESYSTEM" ${wx_arg_cache_file}`
5386 if test "x$LINE" != x ; then
5387 eval "DEFAULT_$LINE"
5388 else
5389 no_cache=1
5390 fi
5391
5392 ac_cv_use_filesystem='wxUSE_FILESYSTEM='$DEFAULT_wxUSE_FILESYSTEM
5393
5394fi;
5395
5396 eval "$ac_cv_use_filesystem"
5397 if test "$no_cache" != 1; then
5398 echo $ac_cv_use_filesystem >> ${wx_arg_cache_file}.tmp
5399 fi
5400
5401 if test "$wxUSE_FILESYSTEM" = yes; then
5402 echo "$as_me:$LINENO: result: yes" >&5
5403echo "${ECHO_T}yes" >&6
5404 else
5405 echo "$as_me:$LINENO: result: no" >&5
5406echo "${ECHO_T}no" >&6
5407 fi
5408
5409
5410 enablestring=
5411 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fontmap" >&5
5412echo $ECHO_N "checking for --${enablestring:-enable}-fontmap... $ECHO_C" >&6
5413 no_cache=0
5414 # Check whether --enable-fontmap or --disable-fontmap was given.
5415if test "${enable_fontmap+set}" = set; then
5416 enableval="$enable_fontmap"
5417
5418 if test "$enableval" = yes; then
5419 ac_cv_use_fontmap='wxUSE_FONTMAP=yes'
5420 else
5421 ac_cv_use_fontmap='wxUSE_FONTMAP=no'
5422 fi
5423
5424else
5425
5426 LINE=`grep "wxUSE_FONTMAP" ${wx_arg_cache_file}`
5427 if test "x$LINE" != x ; then
5428 eval "DEFAULT_$LINE"
5429 else
5430 no_cache=1
5431 fi
5432
5433 ac_cv_use_fontmap='wxUSE_FONTMAP='$DEFAULT_wxUSE_FONTMAP
5434
5435fi;
5436
5437 eval "$ac_cv_use_fontmap"
5438 if test "$no_cache" != 1; then
5439 echo $ac_cv_use_fontmap >> ${wx_arg_cache_file}.tmp
5440 fi
5441
5442 if test "$wxUSE_FONTMAP" = yes; then
5443 echo "$as_me:$LINENO: result: yes" >&5
5444echo "${ECHO_T}yes" >&6
5445 else
5446 echo "$as_me:$LINENO: result: no" >&5
5447echo "${ECHO_T}no" >&6
5448 fi
5449
5450
5451 enablestring=
5452 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fs_inet" >&5
5453echo $ECHO_N "checking for --${enablestring:-enable}-fs_inet... $ECHO_C" >&6
5454 no_cache=0
5455 # Check whether --enable-fs_inet or --disable-fs_inet was given.
5456if test "${enable_fs_inet+set}" = set; then
5457 enableval="$enable_fs_inet"
5458
5459 if test "$enableval" = yes; then
5460 ac_cv_use_fs_inet='wxUSE_FS_INET=yes'
5461 else
5462 ac_cv_use_fs_inet='wxUSE_FS_INET=no'
5463 fi
5464
5465else
5466
5467 LINE=`grep "wxUSE_FS_INET" ${wx_arg_cache_file}`
5468 if test "x$LINE" != x ; then
5469 eval "DEFAULT_$LINE"
5470 else
5471 no_cache=1
5472 fi
5473
5474 ac_cv_use_fs_inet='wxUSE_FS_INET='$DEFAULT_wxUSE_FS_INET
5475
5476fi;
5477
5478 eval "$ac_cv_use_fs_inet"
5479 if test "$no_cache" != 1; then
5480 echo $ac_cv_use_fs_inet >> ${wx_arg_cache_file}.tmp
5481 fi
5482
5483 if test "$wxUSE_FS_INET" = yes; then
5484 echo "$as_me:$LINENO: result: yes" >&5
5485echo "${ECHO_T}yes" >&6
5486 else
5487 echo "$as_me:$LINENO: result: no" >&5
5488echo "${ECHO_T}no" >&6
5489 fi
5490
5491
5492 enablestring=
5493 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fs_zip" >&5
5494echo $ECHO_N "checking for --${enablestring:-enable}-fs_zip... $ECHO_C" >&6
5495 no_cache=0
5496 # Check whether --enable-fs_zip or --disable-fs_zip was given.
5497if test "${enable_fs_zip+set}" = set; then
5498 enableval="$enable_fs_zip"
5499
5500 if test "$enableval" = yes; then
5501 ac_cv_use_fs_zip='wxUSE_FS_ZIP=yes'
5502 else
5503 ac_cv_use_fs_zip='wxUSE_FS_ZIP=no'
5504 fi
5505
5506else
5507
5508 LINE=`grep "wxUSE_FS_ZIP" ${wx_arg_cache_file}`
5509 if test "x$LINE" != x ; then
5510 eval "DEFAULT_$LINE"
5511 else
5512 no_cache=1
5513 fi
5514
5515 ac_cv_use_fs_zip='wxUSE_FS_ZIP='$DEFAULT_wxUSE_FS_ZIP
5516
5517fi;
5518
5519 eval "$ac_cv_use_fs_zip"
5520 if test "$no_cache" != 1; then
5521 echo $ac_cv_use_fs_zip >> ${wx_arg_cache_file}.tmp
5522 fi
5523
5524 if test "$wxUSE_FS_ZIP" = yes; then
5525 echo "$as_me:$LINENO: result: yes" >&5
5526echo "${ECHO_T}yes" >&6
5527 else
5528 echo "$as_me:$LINENO: result: no" >&5
5529echo "${ECHO_T}no" >&6
5530 fi
5531
5532
5533 enablestring=
5534 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-geometry" >&5
5535echo $ECHO_N "checking for --${enablestring:-enable}-geometry... $ECHO_C" >&6
5536 no_cache=0
5537 # Check whether --enable-geometry or --disable-geometry was given.
5538if test "${enable_geometry+set}" = set; then
5539 enableval="$enable_geometry"
5540
5541 if test "$enableval" = yes; then
5542 ac_cv_use_geometry='wxUSE_GEOMETRY=yes'
5543 else
5544 ac_cv_use_geometry='wxUSE_GEOMETRY=no'
5545 fi
5546
5547else
5548
5549 LINE=`grep "wxUSE_GEOMETRY" ${wx_arg_cache_file}`
5550 if test "x$LINE" != x ; then
5551 eval "DEFAULT_$LINE"
5552 else
5553 no_cache=1
5554 fi
5555
5556 ac_cv_use_geometry='wxUSE_GEOMETRY='$DEFAULT_wxUSE_GEOMETRY
5557
5558fi;
5559
5560 eval "$ac_cv_use_geometry"
5561 if test "$no_cache" != 1; then
5562 echo $ac_cv_use_geometry >> ${wx_arg_cache_file}.tmp
5563 fi
5564
5565 if test "$wxUSE_GEOMETRY" = yes; then
5566 echo "$as_me:$LINENO: result: yes" >&5
5567echo "${ECHO_T}yes" >&6
5568 else
5569 echo "$as_me:$LINENO: result: no" >&5
5570echo "${ECHO_T}no" >&6
5571 fi
5572
5573
5574 enablestring=
5575 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-log" >&5
5576echo $ECHO_N "checking for --${enablestring:-enable}-log... $ECHO_C" >&6
5577 no_cache=0
5578 # Check whether --enable-log or --disable-log was given.
5579if test "${enable_log+set}" = set; then
5580 enableval="$enable_log"
5581
5582 if test "$enableval" = yes; then
5583 ac_cv_use_log='wxUSE_LOG=yes'
5584 else
5585 ac_cv_use_log='wxUSE_LOG=no'
5586 fi
5587
5588else
5589
5590 LINE=`grep "wxUSE_LOG" ${wx_arg_cache_file}`
5591 if test "x$LINE" != x ; then
5592 eval "DEFAULT_$LINE"
5593 else
5594 no_cache=1
5595 fi
5596
5597 ac_cv_use_log='wxUSE_LOG='$DEFAULT_wxUSE_LOG
5598
5599fi;
5600
5601 eval "$ac_cv_use_log"
5602 if test "$no_cache" != 1; then
5603 echo $ac_cv_use_log >> ${wx_arg_cache_file}.tmp
5604 fi
5605
5606 if test "$wxUSE_LOG" = yes; then
5607 echo "$as_me:$LINENO: result: yes" >&5
5608echo "${ECHO_T}yes" >&6
5609 else
5610 echo "$as_me:$LINENO: result: no" >&5
5611echo "${ECHO_T}no" >&6
5612 fi
5613
5614
5615 enablestring=
5616 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-longlong" >&5
5617echo $ECHO_N "checking for --${enablestring:-enable}-longlong... $ECHO_C" >&6
5618 no_cache=0
5619 # Check whether --enable-longlong or --disable-longlong was given.
5620if test "${enable_longlong+set}" = set; then
5621 enableval="$enable_longlong"
5622
5623 if test "$enableval" = yes; then
5624 ac_cv_use_longlong='wxUSE_LONGLONG=yes'
5625 else
5626 ac_cv_use_longlong='wxUSE_LONGLONG=no'
5627 fi
5628
5629else
5630
5631 LINE=`grep "wxUSE_LONGLONG" ${wx_arg_cache_file}`
5632 if test "x$LINE" != x ; then
5633 eval "DEFAULT_$LINE"
5634 else
5635 no_cache=1
5636 fi
5637
5638 ac_cv_use_longlong='wxUSE_LONGLONG='$DEFAULT_wxUSE_LONGLONG
5639
5640fi;
5641
5642 eval "$ac_cv_use_longlong"
5643 if test "$no_cache" != 1; then
5644 echo $ac_cv_use_longlong >> ${wx_arg_cache_file}.tmp
5645 fi
5646
5647 if test "$wxUSE_LONGLONG" = yes; then
5648 echo "$as_me:$LINENO: result: yes" >&5
5649echo "${ECHO_T}yes" >&6
5650 else
5651 echo "$as_me:$LINENO: result: no" >&5
5652echo "${ECHO_T}no" >&6
5653 fi
5654
5655
5656 enablestring=
5657 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mimetype" >&5
5658echo $ECHO_N "checking for --${enablestring:-enable}-mimetype... $ECHO_C" >&6
5659 no_cache=0
5660 # Check whether --enable-mimetype or --disable-mimetype was given.
5661if test "${enable_mimetype+set}" = set; then
5662 enableval="$enable_mimetype"
5663
5664 if test "$enableval" = yes; then
5665 ac_cv_use_mimetype='wxUSE_MIMETYPE=yes'
5666 else
5667 ac_cv_use_mimetype='wxUSE_MIMETYPE=no'
5668 fi
5669
5670else
5671
5672 LINE=`grep "wxUSE_MIMETYPE" ${wx_arg_cache_file}`
5673 if test "x$LINE" != x ; then
5674 eval "DEFAULT_$LINE"
5675 else
5676 no_cache=1
5677 fi
5678
5679 ac_cv_use_mimetype='wxUSE_MIMETYPE='$DEFAULT_wxUSE_MIMETYPE
5680
5681fi;
5682
5683 eval "$ac_cv_use_mimetype"
5684 if test "$no_cache" != 1; then
5685 echo $ac_cv_use_mimetype >> ${wx_arg_cache_file}.tmp
5686 fi
5687
5688 if test "$wxUSE_MIMETYPE" = yes; then
5689 echo "$as_me:$LINENO: result: yes" >&5
5690echo "${ECHO_T}yes" >&6
5691 else
5692 echo "$as_me:$LINENO: result: no" >&5
5693echo "${ECHO_T}no" >&6
5694 fi
5695
5696
5697 enablestring=
5698 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mslu" >&5
5699echo $ECHO_N "checking for --${enablestring:-enable}-mslu... $ECHO_C" >&6
5700 no_cache=0
5701 # Check whether --enable-mslu or --disable-mslu was given.
5702if test "${enable_mslu+set}" = set; then
5703 enableval="$enable_mslu"
5704
5705 if test "$enableval" = yes; then
5706 ac_cv_use_mslu='wxUSE_UNICODE_MSLU=yes'
5707 else
5708 ac_cv_use_mslu='wxUSE_UNICODE_MSLU=no'
5709 fi
5710
5711else
5712
5713 LINE=`grep "wxUSE_UNICODE_MSLU" ${wx_arg_cache_file}`
5714 if test "x$LINE" != x ; then
5715 eval "DEFAULT_$LINE"
5716 else
5717 no_cache=1
5718 fi
5719
5720 ac_cv_use_mslu='wxUSE_UNICODE_MSLU='$DEFAULT_wxUSE_UNICODE_MSLU
5721
5722fi;
5723
5724 eval "$ac_cv_use_mslu"
5725 if test "$no_cache" != 1; then
5726 echo $ac_cv_use_mslu >> ${wx_arg_cache_file}.tmp
5727 fi
5728
5729 if test "$wxUSE_UNICODE_MSLU" = yes; then
5730 echo "$as_me:$LINENO: result: yes" >&5
5731echo "${ECHO_T}yes" >&6
5732 else
5733 echo "$as_me:$LINENO: result: no" >&5
5734echo "${ECHO_T}no" >&6
5735 fi
5736
5737
5738 enablestring=
5739 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-snglinst" >&5
5740echo $ECHO_N "checking for --${enablestring:-enable}-snglinst... $ECHO_C" >&6
5741 no_cache=0
5742 # Check whether --enable-snglinst or --disable-snglinst was given.
5743if test "${enable_snglinst+set}" = set; then
5744 enableval="$enable_snglinst"
5745
5746 if test "$enableval" = yes; then
5747 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=yes'
5748 else
5749 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=no'
5750 fi
5751
5752else
5753
5754 LINE=`grep "wxUSE_SNGLINST_CHECKER" ${wx_arg_cache_file}`
5755 if test "x$LINE" != x ; then
5756 eval "DEFAULT_$LINE"
5757 else
5758 no_cache=1
5759 fi
5760
5761 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER='$DEFAULT_wxUSE_SNGLINST_CHECKER
5762
5763fi;
5764
5765 eval "$ac_cv_use_snglinst"
5766 if test "$no_cache" != 1; then
5767 echo $ac_cv_use_snglinst >> ${wx_arg_cache_file}.tmp
5768 fi
5769
5770 if test "$wxUSE_SNGLINST_CHECKER" = yes; then
5771 echo "$as_me:$LINENO: result: yes" >&5
5772echo "${ECHO_T}yes" >&6
5773 else
5774 echo "$as_me:$LINENO: result: no" >&5
5775echo "${ECHO_T}no" >&6
5776 fi
5777
5778
5779 enablestring=
07158944
VZ
5780 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-std_iostreams" >&5
5781echo $ECHO_N "checking for --${enablestring:-enable}-std_iostreams... $ECHO_C" >&6
a848cd7e 5782 no_cache=0
07158944
VZ
5783 # Check whether --enable-std_iostreams or --disable-std_iostreams was given.
5784if test "${enable_std_iostreams+set}" = set; then
5785 enableval="$enable_std_iostreams"
a848cd7e
SC
5786
5787 if test "$enableval" = yes; then
07158944 5788 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=yes'
a848cd7e 5789 else
07158944 5790 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=no'
a848cd7e
SC
5791 fi
5792
5793else
5794
07158944 5795 LINE=`grep "wxUSE_STD_IOSTREAM" ${wx_arg_cache_file}`
a848cd7e
SC
5796 if test "x$LINE" != x ; then
5797 eval "DEFAULT_$LINE"
5798 else
5799 no_cache=1
5800 fi
5801
07158944 5802 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM='$DEFAULT_wxUSE_STD_IOSTREAM
a848cd7e
SC
5803
5804fi;
5805
07158944 5806 eval "$ac_cv_use_std_iostreams"
a848cd7e 5807 if test "$no_cache" != 1; then
07158944 5808 echo $ac_cv_use_std_iostreams >> ${wx_arg_cache_file}.tmp
a848cd7e
SC
5809 fi
5810
07158944 5811 if test "$wxUSE_STD_IOSTREAM" = yes; then
a848cd7e
SC
5812 echo "$as_me:$LINENO: result: yes" >&5
5813echo "${ECHO_T}yes" >&6
5814 else
5815 echo "$as_me:$LINENO: result: no" >&5
5816echo "${ECHO_T}no" >&6
5817 fi
5818
5819
59746b65
MW
5820 enablestring=
5821 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-std_string" >&5
5822echo $ECHO_N "checking for --${enablestring:-enable}-std_string... $ECHO_C" >&6
5823 no_cache=0
5824 # Check whether --enable-std_string or --disable-std_string was given.
5825if test "${enable_std_string+set}" = set; then
5826 enableval="$enable_std_string"
5827
5828 if test "$enableval" = yes; then
5829 ac_cv_use_std_string='wxUSE_STD_STRING=yes'
5830 else
5831 ac_cv_use_std_string='wxUSE_STD_STRING=no'
5832 fi
5833
5834else
5835
5836 LINE=`grep "wxUSE_STD_STRING" ${wx_arg_cache_file}`
5837 if test "x$LINE" != x ; then
5838 eval "DEFAULT_$LINE"
5839 else
5840 no_cache=1
5841 fi
5842
5843 ac_cv_use_std_string='wxUSE_STD_STRING='$DEFAULT_wxUSE_STD_STRING
5844
5845fi;
5846
5847 eval "$ac_cv_use_std_string"
5848 if test "$no_cache" != 1; then
5849 echo $ac_cv_use_std_string >> ${wx_arg_cache_file}.tmp
5850 fi
5851
5852 if test "$wxUSE_STD_STRING" = yes; then
5853 echo "$as_me:$LINENO: result: yes" >&5
5854echo "${ECHO_T}yes" >&6
5855 else
5856 echo "$as_me:$LINENO: result: no" >&5
5857echo "${ECHO_T}no" >&6
5858 fi
5859
5860
a848cd7e 5861 enablestring=
07158944
VZ
5862 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stdpaths" >&5
5863echo $ECHO_N "checking for --${enablestring:-enable}-stdpaths... $ECHO_C" >&6
a848cd7e 5864 no_cache=0
07158944
VZ
5865 # Check whether --enable-stdpaths or --disable-stdpaths was given.
5866if test "${enable_stdpaths+set}" = set; then
5867 enableval="$enable_stdpaths"
a848cd7e
SC
5868
5869 if test "$enableval" = yes; then
07158944 5870 ac_cv_use_stdpaths='wxUSE_STDPATHS=yes'
a848cd7e 5871 else
07158944 5872 ac_cv_use_stdpaths='wxUSE_STDPATHS=no'
a848cd7e
SC
5873 fi
5874
5875else
5876
07158944 5877 LINE=`grep "wxUSE_STDPATHS" ${wx_arg_cache_file}`
a848cd7e
SC
5878 if test "x$LINE" != x ; then
5879 eval "DEFAULT_$LINE"
5880 else
5881 no_cache=1
5882 fi
5883
07158944 5884 ac_cv_use_stdpaths='wxUSE_STDPATHS='$DEFAULT_wxUSE_STDPATHS
a848cd7e
SC
5885
5886fi;
5887
07158944 5888 eval "$ac_cv_use_stdpaths"
a848cd7e 5889 if test "$no_cache" != 1; then
07158944 5890 echo $ac_cv_use_stdpaths >> ${wx_arg_cache_file}.tmp
a848cd7e
SC
5891 fi
5892
07158944 5893 if test "$wxUSE_STDPATHS" = yes; then
a848cd7e
SC
5894 echo "$as_me:$LINENO: result: yes" >&5
5895echo "${ECHO_T}yes" >&6
5896 else
5897 echo "$as_me:$LINENO: result: no" >&5
5898echo "${ECHO_T}no" >&6
5899 fi
5900
5901
5902 enablestring=
5903 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stopwatch" >&5
5904echo $ECHO_N "checking for --${enablestring:-enable}-stopwatch... $ECHO_C" >&6
5905 no_cache=0
5906 # Check whether --enable-stopwatch or --disable-stopwatch was given.
5907if test "${enable_stopwatch+set}" = set; then
5908 enableval="$enable_stopwatch"
5909
5910 if test "$enableval" = yes; then
5911 ac_cv_use_stopwatch='wxUSE_STOPWATCH=yes'
5912 else
5913 ac_cv_use_stopwatch='wxUSE_STOPWATCH=no'
5914 fi
5915
5916else
5917
5918 LINE=`grep "wxUSE_STOPWATCH" ${wx_arg_cache_file}`
5919 if test "x$LINE" != x ; then
5920 eval "DEFAULT_$LINE"
5921 else
5922 no_cache=1
5923 fi
5924
5925 ac_cv_use_stopwatch='wxUSE_STOPWATCH='$DEFAULT_wxUSE_STOPWATCH
5926
5927fi;
5928
5929 eval "$ac_cv_use_stopwatch"
5930 if test "$no_cache" != 1; then
5931 echo $ac_cv_use_stopwatch >> ${wx_arg_cache_file}.tmp
5932 fi
5933
5934 if test "$wxUSE_STOPWATCH" = yes; then
5935 echo "$as_me:$LINENO: result: yes" >&5
5936echo "${ECHO_T}yes" >&6
5937 else
5938 echo "$as_me:$LINENO: result: no" >&5
5939echo "${ECHO_T}no" >&6
5940 fi
5941
5942
07158944
VZ
5943 enablestring=
5944 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-streams" >&5
5945echo $ECHO_N "checking for --${enablestring:-enable}-streams... $ECHO_C" >&6
5946 no_cache=0
5947 # Check whether --enable-streams or --disable-streams was given.
5948if test "${enable_streams+set}" = set; then
5949 enableval="$enable_streams"
5950
5951 if test "$enableval" = yes; then
5952 ac_cv_use_streams='wxUSE_STREAMS=yes'
5953 else
5954 ac_cv_use_streams='wxUSE_STREAMS=no'
5955 fi
5956
5957else
5958
5959 LINE=`grep "wxUSE_STREAMS" ${wx_arg_cache_file}`
5960 if test "x$LINE" != x ; then
5961 eval "DEFAULT_$LINE"
5962 else
5963 no_cache=1
5964 fi
5965
5966 ac_cv_use_streams='wxUSE_STREAMS='$DEFAULT_wxUSE_STREAMS
5967
5968fi;
5969
5970 eval "$ac_cv_use_streams"
5971 if test "$no_cache" != 1; then
5972 echo $ac_cv_use_streams >> ${wx_arg_cache_file}.tmp
5973 fi
5974
5975 if test "$wxUSE_STREAMS" = yes; then
5976 echo "$as_me:$LINENO: result: yes" >&5
5977echo "${ECHO_T}yes" >&6
5978 else
5979 echo "$as_me:$LINENO: result: no" >&5
5980echo "${ECHO_T}no" >&6
5981 fi
5982
5983
a848cd7e
SC
5984 enablestring=
5985 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-system_options" >&5
5986echo $ECHO_N "checking for --${enablestring:-enable}-system_options... $ECHO_C" >&6
5987 no_cache=0
5988 # Check whether --enable-system_options or --disable-system_options was given.
5989if test "${enable_system_options+set}" = set; then
5990 enableval="$enable_system_options"
5991
5992 if test "$enableval" = yes; then
5993 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=yes'
5994 else
5995 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=no'
5996 fi
5997
5998else
5999
6000 LINE=`grep "wxUSE_SYSTEM_OPTIONS" ${wx_arg_cache_file}`
6001 if test "x$LINE" != x ; then
6002 eval "DEFAULT_$LINE"
6003 else
6004 no_cache=1
6005 fi
6006
6007 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS='$DEFAULT_wxUSE_SYSTEM_OPTIONS
6008
6009fi;
6010
6011 eval "$ac_cv_use_system_options"
6012 if test "$no_cache" != 1; then
6013 echo $ac_cv_use_system_options >> ${wx_arg_cache_file}.tmp
6014 fi
6015
6016 if test "$wxUSE_SYSTEM_OPTIONS" = yes; then
6017 echo "$as_me:$LINENO: result: yes" >&5
6018echo "${ECHO_T}yes" >&6
6019 else
6020 echo "$as_me:$LINENO: result: no" >&5
6021echo "${ECHO_T}no" >&6
6022 fi
6023
6024
6025 enablestring=
6026 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textbuf" >&5
6027echo $ECHO_N "checking for --${enablestring:-enable}-textbuf... $ECHO_C" >&6
6028 no_cache=0
6029 # Check whether --enable-textbuf or --disable-textbuf was given.
6030if test "${enable_textbuf+set}" = set; then
6031 enableval="$enable_textbuf"
6032
6033 if test "$enableval" = yes; then
6034 ac_cv_use_textbuf='wxUSE_TEXTBUFFER=yes'
6035 else
6036 ac_cv_use_textbuf='wxUSE_TEXTBUFFER=no'
6037 fi
6038
6039else
6040
6041 LINE=`grep "wxUSE_TEXTBUFFER" ${wx_arg_cache_file}`
6042 if test "x$LINE" != x ; then
6043 eval "DEFAULT_$LINE"
6044 else
6045 no_cache=1
6046 fi
6047
6048 ac_cv_use_textbuf='wxUSE_TEXTBUFFER='$DEFAULT_wxUSE_TEXTBUFFER
6049
6050fi;
6051
6052 eval "$ac_cv_use_textbuf"
6053 if test "$no_cache" != 1; then
6054 echo $ac_cv_use_textbuf >> ${wx_arg_cache_file}.tmp
6055 fi
6056
6057 if test "$wxUSE_TEXTBUFFER" = yes; then
6058 echo "$as_me:$LINENO: result: yes" >&5
6059echo "${ECHO_T}yes" >&6
6060 else
6061 echo "$as_me:$LINENO: result: no" >&5
6062echo "${ECHO_T}no" >&6
6063 fi
6064
6065
6066 enablestring=
6067 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textfile" >&5
6068echo $ECHO_N "checking for --${enablestring:-enable}-textfile... $ECHO_C" >&6
6069 no_cache=0
6070 # Check whether --enable-textfile or --disable-textfile was given.
6071if test "${enable_textfile+set}" = set; then
6072 enableval="$enable_textfile"
6073
6074 if test "$enableval" = yes; then
6075 ac_cv_use_textfile='wxUSE_TEXTFILE=yes'
6076 else
6077 ac_cv_use_textfile='wxUSE_TEXTFILE=no'
6078 fi
6079
6080else
6081
6082 LINE=`grep "wxUSE_TEXTFILE" ${wx_arg_cache_file}`
6083 if test "x$LINE" != x ; then
6084 eval "DEFAULT_$LINE"
6085 else
6086 no_cache=1
6087 fi
6088
6089 ac_cv_use_textfile='wxUSE_TEXTFILE='$DEFAULT_wxUSE_TEXTFILE
6090
6091fi;
6092
6093 eval "$ac_cv_use_textfile"
6094 if test "$no_cache" != 1; then
6095 echo $ac_cv_use_textfile >> ${wx_arg_cache_file}.tmp
6096 fi
6097
6098 if test "$wxUSE_TEXTFILE" = yes; then
6099 echo "$as_me:$LINENO: result: yes" >&5
6100echo "${ECHO_T}yes" >&6
6101 else
6102 echo "$as_me:$LINENO: result: no" >&5
6103echo "${ECHO_T}no" >&6
6104 fi
6105
6106
6107 enablestring=
6108 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-timer" >&5
6109echo $ECHO_N "checking for --${enablestring:-enable}-timer... $ECHO_C" >&6
6110 no_cache=0
6111 # Check whether --enable-timer or --disable-timer was given.
6112if test "${enable_timer+set}" = set; then
6113 enableval="$enable_timer"
6114
6115 if test "$enableval" = yes; then
6116 ac_cv_use_timer='wxUSE_TIMER=yes'
6117 else
6118 ac_cv_use_timer='wxUSE_TIMER=no'
6119 fi
6120
6121else
6122
6123 LINE=`grep "wxUSE_TIMER" ${wx_arg_cache_file}`
6124 if test "x$LINE" != x ; then
6125 eval "DEFAULT_$LINE"
6126 else
6127 no_cache=1
6128 fi
6129
6130 ac_cv_use_timer='wxUSE_TIMER='$DEFAULT_wxUSE_TIMER
6131
6132fi;
6133
6134 eval "$ac_cv_use_timer"
6135 if test "$no_cache" != 1; then
6136 echo $ac_cv_use_timer >> ${wx_arg_cache_file}.tmp
6137 fi
6138
6139 if test "$wxUSE_TIMER" = yes; then
6140 echo "$as_me:$LINENO: result: yes" >&5
6141echo "${ECHO_T}yes" >&6
6142 else
6143 echo "$as_me:$LINENO: result: no" >&5
6144echo "${ECHO_T}no" >&6
6145 fi
6146
6147
6148 enablestring=
6149 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-unicode" >&5
6150echo $ECHO_N "checking for --${enablestring:-enable}-unicode... $ECHO_C" >&6
6151 no_cache=0
6152 # Check whether --enable-unicode or --disable-unicode was given.
6153if test "${enable_unicode+set}" = set; then
6154 enableval="$enable_unicode"
6155
6156 if test "$enableval" = yes; then
6157 ac_cv_use_unicode='wxUSE_UNICODE=yes'
6158 else
6159 ac_cv_use_unicode='wxUSE_UNICODE=no'
6160 fi
6161
6162else
6163
6164 LINE=`grep "wxUSE_UNICODE" ${wx_arg_cache_file}`
6165 if test "x$LINE" != x ; then
6166 eval "DEFAULT_$LINE"
6167 else
6168 no_cache=1
6169 fi
6170
6171 ac_cv_use_unicode='wxUSE_UNICODE='$DEFAULT_wxUSE_UNICODE
6172
6173fi;
6174
6175 eval "$ac_cv_use_unicode"
6176 if test "$no_cache" != 1; then
6177 echo $ac_cv_use_unicode >> ${wx_arg_cache_file}.tmp
6178 fi
6179
6180 if test "$wxUSE_UNICODE" = yes; then
6181 echo "$as_me:$LINENO: result: yes" >&5
6182echo "${ECHO_T}yes" >&6
6183 else
6184 echo "$as_me:$LINENO: result: no" >&5
6185echo "${ECHO_T}no" >&6
6186 fi
6187
6188
6189 enablestring=
6190 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sound" >&5
6191echo $ECHO_N "checking for --${enablestring:-enable}-sound... $ECHO_C" >&6
6192 no_cache=0
6193 # Check whether --enable-sound or --disable-sound was given.
6194if test "${enable_sound+set}" = set; then
6195 enableval="$enable_sound"
6196
6197 if test "$enableval" = yes; then
6198 ac_cv_use_sound='wxUSE_SOUND=yes'
6199 else
6200 ac_cv_use_sound='wxUSE_SOUND=no'
6201 fi
6202
6203else
6204
6205 LINE=`grep "wxUSE_SOUND" ${wx_arg_cache_file}`
6206 if test "x$LINE" != x ; then
6207 eval "DEFAULT_$LINE"
6208 else
6209 no_cache=1
6210 fi
6211
6212 ac_cv_use_sound='wxUSE_SOUND='$DEFAULT_wxUSE_SOUND
6213
6214fi;
6215
6216 eval "$ac_cv_use_sound"
6217 if test "$no_cache" != 1; then
6218 echo $ac_cv_use_sound >> ${wx_arg_cache_file}.tmp
6219 fi
6220
6221 if test "$wxUSE_SOUND" = yes; then
6222 echo "$as_me:$LINENO: result: yes" >&5
6223echo "${ECHO_T}yes" >&6
6224 else
6225 echo "$as_me:$LINENO: result: no" >&5
6226echo "${ECHO_T}no" >&6
6227 fi
6228
6229
3b57de8b
RL
6230 enablestring=
6231 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mediactrl" >&5
6232echo $ECHO_N "checking for --${enablestring:-enable}-mediactrl... $ECHO_C" >&6
6233 no_cache=0
6234 # Check whether --enable-mediactrl or --disable-mediactrl was given.
6235if test "${enable_mediactrl+set}" = set; then
6236 enableval="$enable_mediactrl"
6237
6238 if test "$enableval" = yes; then
6239 ac_cv_use_mediactrl='wxUSE_MEDIACTRL=yes'
6240 else
6241 ac_cv_use_mediactrl='wxUSE_MEDIACTRL=no'
6242 fi
6243
6244else
6245
6246 LINE=`grep "wxUSE_MEDIACTRL" ${wx_arg_cache_file}`
6247 if test "x$LINE" != x ; then
6248 eval "DEFAULT_$LINE"
6249 else
6250 no_cache=1
6251 fi
6252
6253 ac_cv_use_mediactrl='wxUSE_MEDIACTRL='$DEFAULT_wxUSE_MEDIACTRL
6254
6255fi;
6256
6257 eval "$ac_cv_use_mediactrl"
6258 if test "$no_cache" != 1; then
6259 echo $ac_cv_use_mediactrl >> ${wx_arg_cache_file}.tmp
6260 fi
6261
6262 if test "$wxUSE_MEDIACTRL" = yes; then
6263 echo "$as_me:$LINENO: result: yes" >&5
6264echo "${ECHO_T}yes" >&6
6265 else
6266 echo "$as_me:$LINENO: result: no" >&5
6267echo "${ECHO_T}no" >&6
6268 fi
6269
6270
f10e38c4
VZ
6271 enablestring=
6272 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gstreamer8" >&5
6273echo $ECHO_N "checking for --${enablestring:-enable}-gstreamer8... $ECHO_C" >&6
6274 no_cache=0
6275 # Check whether --enable-gstreamer8 or --disable-gstreamer8 was given.
6276if test "${enable_gstreamer8+set}" = set; then
6277 enableval="$enable_gstreamer8"
6278
6279 if test "$enableval" = yes; then
6280 ac_cv_use_gstreamer8='wxUSE_GSTREAMER8=yes'
6281 else
6282 ac_cv_use_gstreamer8='wxUSE_GSTREAMER8=no'
6283 fi
6284
6285else
6286
6287 LINE=`grep "wxUSE_GSTREAMER8" ${wx_arg_cache_file}`
6288 if test "x$LINE" != x ; then
6289 eval "DEFAULT_$LINE"
6290 else
6291 no_cache=1
6292 fi
6293
6294 ac_cv_use_gstreamer8='wxUSE_GSTREAMER8='$DEFAULT_wxUSE_GSTREAMER8
6295
6296fi;
6297
6298 eval "$ac_cv_use_gstreamer8"
6299 if test "$no_cache" != 1; then
6300 echo $ac_cv_use_gstreamer8 >> ${wx_arg_cache_file}.tmp
6301 fi
6302
6303 if test "$wxUSE_GSTREAMER8" = yes; then
6304 echo "$as_me:$LINENO: result: yes" >&5
6305echo "${ECHO_T}yes" >&6
6306 else
6307 echo "$as_me:$LINENO: result: no" >&5
6308echo "${ECHO_T}no" >&6
6309 fi
6310
6311
a848cd7e 6312 enablestring=
8b6682b9
JS
6313 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-printfposparam" >&5
6314echo $ECHO_N "checking for --${enablestring:-enable}-printfposparam... $ECHO_C" >&6
a848cd7e 6315 no_cache=0
8b6682b9
JS
6316 # Check whether --enable-printfposparam or --disable-printfposparam was given.
6317if test "${enable_printfposparam+set}" = set; then
6318 enableval="$enable_printfposparam"
a848cd7e
SC
6319
6320 if test "$enableval" = yes; then
8b6682b9 6321 ac_cv_use_printfposparam='wxUSE_PRINTF_POS_PARAMS=yes'
a848cd7e 6322 else
8b6682b9 6323 ac_cv_use_printfposparam='wxUSE_PRINTF_POS_PARAMS=no'
a848cd7e
SC
6324 fi
6325
6326else
6327
8b6682b9 6328 LINE=`grep "wxUSE_PRINTF_POS_PARAMS" ${wx_arg_cache_file}`
a848cd7e
SC
6329 if test "x$LINE" != x ; then
6330 eval "DEFAULT_$LINE"
6331 else
6332 no_cache=1
6333 fi
6334
8b6682b9 6335 ac_cv_use_printfposparam='wxUSE_PRINTF_POS_PARAMS='$DEFAULT_wxUSE_PRINTF_POS_PARAMS
a848cd7e
SC
6336
6337fi;
6338
8b6682b9 6339 eval "$ac_cv_use_printfposparam"
a848cd7e 6340 if test "$no_cache" != 1; then
8b6682b9 6341 echo $ac_cv_use_printfposparam >> ${wx_arg_cache_file}.tmp
a848cd7e
SC
6342 fi
6343
8b6682b9 6344 if test "$wxUSE_PRINTF_POS_PARAMS" = yes; then
a848cd7e
SC
6345 echo "$as_me:$LINENO: result: yes" >&5
6346echo "${ECHO_T}yes" >&6
6347 else
6348 echo "$as_me:$LINENO: result: no" >&5
6349echo "${ECHO_T}no" >&6
6350 fi
6351
6352
6353 enablestring=
6354 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-zipstream" >&5
6355echo $ECHO_N "checking for --${enablestring:-enable}-zipstream... $ECHO_C" >&6
6356 no_cache=0
6357 # Check whether --enable-zipstream or --disable-zipstream was given.
6358if test "${enable_zipstream+set}" = set; then
6359 enableval="$enable_zipstream"
6360
6361 if test "$enableval" = yes; then
6362 ac_cv_use_zipstream='wxUSE_ZIPSTREAM=yes'
6363 else
6364 ac_cv_use_zipstream='wxUSE_ZIPSTREAM=no'
6365 fi
6366
6367else
6368
6369 LINE=`grep "wxUSE_ZIPSTREAM" ${wx_arg_cache_file}`
6370 if test "x$LINE" != x ; then
6371 eval "DEFAULT_$LINE"
6372 else
6373 no_cache=1
6374 fi
6375
6376 ac_cv_use_zipstream='wxUSE_ZIPSTREAM='$DEFAULT_wxUSE_ZIPSTREAM
6377
6378fi;
6379
6380 eval "$ac_cv_use_zipstream"
6381 if test "$no_cache" != 1; then
6382 echo $ac_cv_use_zipstream >> ${wx_arg_cache_file}.tmp
6383 fi
6384
6385 if test "$wxUSE_ZIPSTREAM" = yes; then
6386 echo "$as_me:$LINENO: result: yes" >&5
6387echo "${ECHO_T}yes" >&6
6388 else
6389 echo "$as_me:$LINENO: result: no" >&5
6390echo "${ECHO_T}no" >&6
6391 fi
6392
6393
a848cd7e
SC
6394
6395 enablestring=
6396 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-url" >&5
6397echo $ECHO_N "checking for --${enablestring:-enable}-url... $ECHO_C" >&6
6398 no_cache=0
6399 # Check whether --enable-url or --disable-url was given.
6400if test "${enable_url+set}" = set; then
6401 enableval="$enable_url"
6402
6403 if test "$enableval" = yes; then
6404 ac_cv_use_url='wxUSE_URL=yes'
6405 else
6406 ac_cv_use_url='wxUSE_URL=no'
6407 fi
6408
6409else
6410
6411 LINE=`grep "wxUSE_URL" ${wx_arg_cache_file}`
6412 if test "x$LINE" != x ; then
6413 eval "DEFAULT_$LINE"
6414 else
6415 no_cache=1
6416 fi
6417
6418 ac_cv_use_url='wxUSE_URL='$DEFAULT_wxUSE_URL
6419
6420fi;
6421
6422 eval "$ac_cv_use_url"
6423 if test "$no_cache" != 1; then
6424 echo $ac_cv_use_url >> ${wx_arg_cache_file}.tmp
6425 fi
6426
6427 if test "$wxUSE_URL" = yes; then
6428 echo "$as_me:$LINENO: result: yes" >&5
6429echo "${ECHO_T}yes" >&6
6430 else
6431 echo "$as_me:$LINENO: result: no" >&5
6432echo "${ECHO_T}no" >&6
6433 fi
6434
6435
6436 enablestring=
6437 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol" >&5
6438echo $ECHO_N "checking for --${enablestring:-enable}-protocol... $ECHO_C" >&6
6439 no_cache=0
6440 # Check whether --enable-protocol or --disable-protocol was given.
6441if test "${enable_protocol+set}" = set; then
6442 enableval="$enable_protocol"
6443
6444 if test "$enableval" = yes; then
6445 ac_cv_use_protocol='wxUSE_PROTOCOL=yes'
6446 else
6447 ac_cv_use_protocol='wxUSE_PROTOCOL=no'
6448 fi
6449
6450else
6451
6452 LINE=`grep "wxUSE_PROTOCOL" ${wx_arg_cache_file}`
6453 if test "x$LINE" != x ; then
6454 eval "DEFAULT_$LINE"
6455 else
6456 no_cache=1
6457 fi
6458
6459 ac_cv_use_protocol='wxUSE_PROTOCOL='$DEFAULT_wxUSE_PROTOCOL
6460
6461fi;
6462
6463 eval "$ac_cv_use_protocol"
6464 if test "$no_cache" != 1; then
6465 echo $ac_cv_use_protocol >> ${wx_arg_cache_file}.tmp
6466 fi
6467
6468 if test "$wxUSE_PROTOCOL" = yes; then
6469 echo "$as_me:$LINENO: result: yes" >&5
6470echo "${ECHO_T}yes" >&6
6471 else
6472 echo "$as_me:$LINENO: result: no" >&5
6473echo "${ECHO_T}no" >&6
6474 fi
6475
6476
6477 enablestring=
6478 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_http" >&5
6479echo $ECHO_N "checking for --${enablestring:-enable}-protocol_http... $ECHO_C" >&6
6480 no_cache=0
6481 # Check whether --enable-protocol_http or --disable-protocol_http was given.
6482if test "${enable_protocol_http+set}" = set; then
6483 enableval="$enable_protocol_http"
6484
6485 if test "$enableval" = yes; then
6486 ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=yes'
6487 else
6488 ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=no'
6489 fi
6490
6491else
6492
6493 LINE=`grep "wxUSE_PROTOCOL_HTTP" ${wx_arg_cache_file}`
6494 if test "x$LINE" != x ; then
6495 eval "DEFAULT_$LINE"
6496 else
6497 no_cache=1
6498 fi
6499
6500 ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP='$DEFAULT_wxUSE_PROTOCOL_HTTP
6501
6502fi;
6503
6504 eval "$ac_cv_use_protocol_http"
6505 if test "$no_cache" != 1; then
6506 echo $ac_cv_use_protocol_http >> ${wx_arg_cache_file}.tmp
6507 fi
6508
6509 if test "$wxUSE_PROTOCOL_HTTP" = yes; then
6510 echo "$as_me:$LINENO: result: yes" >&5
6511echo "${ECHO_T}yes" >&6
6512 else
6513 echo "$as_me:$LINENO: result: no" >&5
6514echo "${ECHO_T}no" >&6
6515 fi
6516
6517
6518 enablestring=
6519 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_ftp" >&5
6520echo $ECHO_N "checking for --${enablestring:-enable}-protocol_ftp... $ECHO_C" >&6
6521 no_cache=0
6522 # Check whether --enable-protocol_ftp or --disable-protocol_ftp was given.
6523if test "${enable_protocol_ftp+set}" = set; then
6524 enableval="$enable_protocol_ftp"
6525
6526 if test "$enableval" = yes; then
6527 ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=yes'
6528 else
6529 ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=no'
6530 fi
6531
6532else
6533
6534 LINE=`grep "wxUSE_PROTOCOL_FTP" ${wx_arg_cache_file}`
6535 if test "x$LINE" != x ; then
6536 eval "DEFAULT_$LINE"
6537 else
6538 no_cache=1
6539 fi
6540
6541 ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP='$DEFAULT_wxUSE_PROTOCOL_FTP
6542
6543fi;
6544
6545 eval "$ac_cv_use_protocol_ftp"
6546 if test "$no_cache" != 1; then
6547 echo $ac_cv_use_protocol_ftp >> ${wx_arg_cache_file}.tmp
6548 fi
6549
6550 if test "$wxUSE_PROTOCOL_FTP" = yes; then
6551 echo "$as_me:$LINENO: result: yes" >&5
6552echo "${ECHO_T}yes" >&6
6553 else
6554 echo "$as_me:$LINENO: result: no" >&5
6555echo "${ECHO_T}no" >&6
6556 fi
6557
6558
6559 enablestring=
6560 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_file" >&5
6561echo $ECHO_N "checking for --${enablestring:-enable}-protocol_file... $ECHO_C" >&6
6562 no_cache=0
6563 # Check whether --enable-protocol_file or --disable-protocol_file was given.
6564if test "${enable_protocol_file+set}" = set; then
6565 enableval="$enable_protocol_file"
6566
6567 if test "$enableval" = yes; then
6568 ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=yes'
6569 else
6570 ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=no'
6571 fi
6572
6573else
6574
6575 LINE=`grep "wxUSE_PROTOCOL_FILE" ${wx_arg_cache_file}`
6576 if test "x$LINE" != x ; then
6577 eval "DEFAULT_$LINE"
6578 else
6579 no_cache=1
6580 fi
6581
6582 ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE='$DEFAULT_wxUSE_PROTOCOL_FILE
6583
6584fi;
6585
6586 eval "$ac_cv_use_protocol_file"
6587 if test "$no_cache" != 1; then
6588 echo $ac_cv_use_protocol_file >> ${wx_arg_cache_file}.tmp
6589 fi
6590
6591 if test "$wxUSE_PROTOCOL_FILE" = yes; then
6592 echo "$as_me:$LINENO: result: yes" >&5
6593echo "${ECHO_T}yes" >&6
6594 else
6595 echo "$as_me:$LINENO: result: no" >&5
6596echo "${ECHO_T}no" >&6
6597 fi
6598
6599
6600
6601
6602
6603 enablestring=
6604 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-threads" >&5
6605echo $ECHO_N "checking for --${enablestring:-enable}-threads... $ECHO_C" >&6
6606 no_cache=0
6607 # Check whether --enable-threads or --disable-threads was given.
6608if test "${enable_threads+set}" = set; then
6609 enableval="$enable_threads"
6610
6611 if test "$enableval" = yes; then
6612 ac_cv_use_threads='wxUSE_THREADS=yes'
6613 else
6614 ac_cv_use_threads='wxUSE_THREADS=no'
6615 fi
6616
6617else
6618
6619 LINE=`grep "wxUSE_THREADS" ${wx_arg_cache_file}`
6620 if test "x$LINE" != x ; then
6621 eval "DEFAULT_$LINE"
6622 else
6623 no_cache=1
6624 fi
6625
6626 ac_cv_use_threads='wxUSE_THREADS='$DEFAULT_wxUSE_THREADS
6627
6628fi;
6629
6630 eval "$ac_cv_use_threads"
6631 if test "$no_cache" != 1; then
6632 echo $ac_cv_use_threads >> ${wx_arg_cache_file}.tmp
6633 fi
6634
6635 if test "$wxUSE_THREADS" = yes; then
6636 echo "$as_me:$LINENO: result: yes" >&5
6637echo "${ECHO_T}yes" >&6
6638 else
6639 echo "$as_me:$LINENO: result: no" >&5
6640echo "${ECHO_T}no" >&6
6641 fi
6642
6643
6644if test "$wxUSE_GUI" = "yes"; then
6645
6646
6647
6648 enablestring=
6649 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-docview" >&5
6650echo $ECHO_N "checking for --${enablestring:-enable}-docview... $ECHO_C" >&6
6651 no_cache=0
6652 # Check whether --enable-docview or --disable-docview was given.
6653if test "${enable_docview+set}" = set; then
6654 enableval="$enable_docview"
6655
6656 if test "$enableval" = yes; then
6657 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=yes'
6658 else
6659 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=no'
6660 fi
6661
6662else
6663
6664 LINE=`grep "wxUSE_DOC_VIEW_ARCHITECTURE" ${wx_arg_cache_file}`
6665 if test "x$LINE" != x ; then
6666 eval "DEFAULT_$LINE"
6667 else
6668 no_cache=1
6669 fi
6670
6671 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE='$DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE
6672
6673fi;
6674
6675 eval "$ac_cv_use_docview"
6676 if test "$no_cache" != 1; then
6677 echo $ac_cv_use_docview >> ${wx_arg_cache_file}.tmp
6678 fi
6679
6680 if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = yes; then
6681 echo "$as_me:$LINENO: result: yes" >&5
6682echo "${ECHO_T}yes" >&6
6683 else
6684 echo "$as_me:$LINENO: result: no" >&5
6685echo "${ECHO_T}no" >&6
6686 fi
6687
6688
6689 enablestring=
6690 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-help" >&5
6691echo $ECHO_N "checking for --${enablestring:-enable}-help... $ECHO_C" >&6
6692 no_cache=0
6693 # Check whether --enable-help or --disable-help was given.
6694if test "${enable_help+set}" = set; then
6695 enableval="$enable_help"
6696
6697 if test "$enableval" = yes; then
6698 ac_cv_use_help='wxUSE_HELP=yes'
6699 else
6700 ac_cv_use_help='wxUSE_HELP=no'
6701 fi
6702
6703else
6704
6705 LINE=`grep "wxUSE_HELP" ${wx_arg_cache_file}`
6706 if test "x$LINE" != x ; then
6707 eval "DEFAULT_$LINE"
6708 else
6709 no_cache=1
6710 fi
6711
6712 ac_cv_use_help='wxUSE_HELP='$DEFAULT_wxUSE_HELP
6713
6714fi;
6715
6716 eval "$ac_cv_use_help"
6717 if test "$no_cache" != 1; then
6718 echo $ac_cv_use_help >> ${wx_arg_cache_file}.tmp
6719 fi
6720
6721 if test "$wxUSE_HELP" = yes; then
6722 echo "$as_me:$LINENO: result: yes" >&5
6723echo "${ECHO_T}yes" >&6
6724 else
6725 echo "$as_me:$LINENO: result: no" >&5
6726echo "${ECHO_T}no" >&6
6727 fi
6728
6729
6730 enablestring=
6731 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mshtmlhelp" >&5
6732echo $ECHO_N "checking for --${enablestring:-enable}-mshtmlhelp... $ECHO_C" >&6
6733 no_cache=0
6734 # Check whether --enable-mshtmlhelp or --disable-mshtmlhelp was given.
6735if test "${enable_mshtmlhelp+set}" = set; then
6736 enableval="$enable_mshtmlhelp"
6737
6738 if test "$enableval" = yes; then
6739 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=yes'
6740 else
6741 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=no'
6742 fi
6743
6744else
6745
6746 LINE=`grep "wxUSE_MS_HTML_HELP" ${wx_arg_cache_file}`
6747 if test "x$LINE" != x ; then
6748 eval "DEFAULT_$LINE"
6749 else
6750 no_cache=1
6751 fi
6752
6753 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP='$DEFAULT_wxUSE_MS_HTML_HELP
6754
6755fi;
6756
6757 eval "$ac_cv_use_mshtmlhelp"
6758 if test "$no_cache" != 1; then
6759 echo $ac_cv_use_mshtmlhelp >> ${wx_arg_cache_file}.tmp
6760 fi
6761
6762 if test "$wxUSE_MS_HTML_HELP" = yes; then
6763 echo "$as_me:$LINENO: result: yes" >&5
6764echo "${ECHO_T}yes" >&6
6765 else
6766 echo "$as_me:$LINENO: result: no" >&5
6767echo "${ECHO_T}no" >&6
6768 fi
6769
6770
6771 enablestring=
6772 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-html" >&5
6773echo $ECHO_N "checking for --${enablestring:-enable}-html... $ECHO_C" >&6
6774 no_cache=0
6775 # Check whether --enable-html or --disable-html was given.
6776if test "${enable_html+set}" = set; then
6777 enableval="$enable_html"
6778
6779 if test "$enableval" = yes; then
6780 ac_cv_use_html='wxUSE_HTML=yes'
6781 else
6782 ac_cv_use_html='wxUSE_HTML=no'
6783 fi
6784
6785else
6786
6787 LINE=`grep "wxUSE_HTML" ${wx_arg_cache_file}`
6788 if test "x$LINE" != x ; then
6789 eval "DEFAULT_$LINE"
6790 else
6791 no_cache=1
6792 fi
6793
6794 ac_cv_use_html='wxUSE_HTML='$DEFAULT_wxUSE_HTML
6795
6796fi;
6797
6798 eval "$ac_cv_use_html"
6799 if test "$no_cache" != 1; then
6800 echo $ac_cv_use_html >> ${wx_arg_cache_file}.tmp
6801 fi
6802
6803 if test "$wxUSE_HTML" = yes; then
6804 echo "$as_me:$LINENO: result: yes" >&5
6805echo "${ECHO_T}yes" >&6
6806 else
6807 echo "$as_me:$LINENO: result: no" >&5
6808echo "${ECHO_T}no" >&6
6809 fi
6810
6811
6812 enablestring=
6813 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-htmlhelp" >&5
6814echo $ECHO_N "checking for --${enablestring:-enable}-htmlhelp... $ECHO_C" >&6
6815 no_cache=0
6816 # Check whether --enable-htmlhelp or --disable-htmlhelp was given.
6817if test "${enable_htmlhelp+set}" = set; then
6818 enableval="$enable_htmlhelp"
6819
6820 if test "$enableval" = yes; then
6821 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=yes'
6822 else
6823 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=no'
6824 fi
6825
6826else
6827
6828 LINE=`grep "wxUSE_WXHTML_HELP" ${wx_arg_cache_file}`
6829 if test "x$LINE" != x ; then
6830 eval "DEFAULT_$LINE"
6831 else
6832 no_cache=1
6833 fi
6834
6835 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP='$DEFAULT_wxUSE_WXHTML_HELP
6836
6837fi;
6838
6839 eval "$ac_cv_use_htmlhelp"
6840 if test "$no_cache" != 1; then
6841 echo $ac_cv_use_htmlhelp >> ${wx_arg_cache_file}.tmp
6842 fi
6843
6844 if test "$wxUSE_WXHTML_HELP" = yes; then
6845 echo "$as_me:$LINENO: result: yes" >&5
6846echo "${ECHO_T}yes" >&6
6847 else
6848 echo "$as_me:$LINENO: result: no" >&5
6849echo "${ECHO_T}no" >&6
6850 fi
6851
6852
9a8f0513
VS
6853 enablestring=
6854 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-xrc" >&5
6855echo $ECHO_N "checking for --${enablestring:-enable}-xrc... $ECHO_C" >&6
6856 no_cache=0
6857 # Check whether --enable-xrc or --disable-xrc was given.
6858if test "${enable_xrc+set}" = set; then
6859 enableval="$enable_xrc"
6860
6861 if test "$enableval" = yes; then
6862 ac_cv_use_xrc='wxUSE_XRC=yes'
6863 else
6864 ac_cv_use_xrc='wxUSE_XRC=no'
6865 fi
6866
6867else
6868
6869 LINE=`grep "wxUSE_XRC" ${wx_arg_cache_file}`
6870 if test "x$LINE" != x ; then
6871 eval "DEFAULT_$LINE"
6872 else
6873 no_cache=1
6874 fi
6875
6876 ac_cv_use_xrc='wxUSE_XRC='$DEFAULT_wxUSE_XRC
6877
6878fi;
6879
6880 eval "$ac_cv_use_xrc"
6881 if test "$no_cache" != 1; then
6882 echo $ac_cv_use_xrc >> ${wx_arg_cache_file}.tmp
6883 fi
6884
6885 if test "$wxUSE_XRC" = yes; then
6886 echo "$as_me:$LINENO: result: yes" >&5
6887echo "${ECHO_T}yes" >&6
6888 else
6889 echo "$as_me:$LINENO: result: no" >&5
6890echo "${ECHO_T}no" >&6
6891 fi
6892
6893
3f60522a
JS
6894 enablestring=
6895 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-aui" >&5
6896echo $ECHO_N "checking for --${enablestring:-enable}-aui... $ECHO_C" >&6
6897 no_cache=0
6898 # Check whether --enable-aui or --disable-aui was given.
6899if test "${enable_aui+set}" = set; then
6900 enableval="$enable_aui"
6901
6902 if test "$enableval" = yes; then
6903 ac_cv_use_aui='wxUSE_AUI=yes'
6904 else
6905 ac_cv_use_aui='wxUSE_AUI=no'
6906 fi
6907
6908else
6909
6910 LINE=`grep "wxUSE_AUI" ${wx_arg_cache_file}`
6911 if test "x$LINE" != x ; then
6912 eval "DEFAULT_$LINE"
6913 else
6914 no_cache=1
6915 fi
6916
6917 ac_cv_use_aui='wxUSE_AUI='$DEFAULT_wxUSE_AUI
6918
6919fi;
6920
6921 eval "$ac_cv_use_aui"
6922 if test "$no_cache" != 1; then
6923 echo $ac_cv_use_aui >> ${wx_arg_cache_file}.tmp
6924 fi
6925
6926 if test "$wxUSE_AUI" = yes; then
6927 echo "$as_me:$LINENO: result: yes" >&5
6928echo "${ECHO_T}yes" >&6
6929 else
6930 echo "$as_me:$LINENO: result: no" >&5
6931echo "${ECHO_T}no" >&6
6932 fi
6933
6934
a848cd7e
SC
6935 enablestring=
6936 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-constraints" >&5
6937echo $ECHO_N "checking for --${enablestring:-enable}-constraints... $ECHO_C" >&6
6938 no_cache=0
6939 # Check whether --enable-constraints or --disable-constraints was given.
6940if test "${enable_constraints+set}" = set; then
6941 enableval="$enable_constraints"
6942
6943 if test "$enableval" = yes; then
6944 ac_cv_use_constraints='wxUSE_CONSTRAINTS=yes'
6945 else
6946 ac_cv_use_constraints='wxUSE_CONSTRAINTS=no'
6947 fi
6948
6949else
6950
6951 LINE=`grep "wxUSE_CONSTRAINTS" ${wx_arg_cache_file}`
6952 if test "x$LINE" != x ; then
6953 eval "DEFAULT_$LINE"
6954 else
6955 no_cache=1
6956 fi
6957
6958 ac_cv_use_constraints='wxUSE_CONSTRAINTS='$DEFAULT_wxUSE_CONSTRAINTS
6959
6960fi;
6961
6962 eval "$ac_cv_use_constraints"
6963 if test "$no_cache" != 1; then
6964 echo $ac_cv_use_constraints >> ${wx_arg_cache_file}.tmp
6965 fi
6966
6967 if test "$wxUSE_CONSTRAINTS" = yes; then
6968 echo "$as_me:$LINENO: result: yes" >&5
6969echo "${ECHO_T}yes" >&6
6970 else
6971 echo "$as_me:$LINENO: result: no" >&5
6972echo "${ECHO_T}no" >&6
6973 fi
6974
6975
6976 enablestring=
6977 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-printarch" >&5
6978echo $ECHO_N "checking for --${enablestring:-enable}-printarch... $ECHO_C" >&6
6979 no_cache=0
6980 # Check whether --enable-printarch or --disable-printarch was given.
6981if test "${enable_printarch+set}" = set; then
6982 enableval="$enable_printarch"
6983
6984 if test "$enableval" = yes; then
6985 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=yes'
6986 else
6987 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=no'
6988 fi
6989
6990else
6991
6992 LINE=`grep "wxUSE_PRINTING_ARCHITECTURE" ${wx_arg_cache_file}`
6993 if test "x$LINE" != x ; then
6994 eval "DEFAULT_$LINE"
6995 else
6996 no_cache=1
6997 fi
6998
6999 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE='$DEFAULT_wxUSE_PRINTING_ARCHITECTURE
7000
7001fi;
7002
7003 eval "$ac_cv_use_printarch"
7004 if test "$no_cache" != 1; then
7005 echo $ac_cv_use_printarch >> ${wx_arg_cache_file}.tmp
7006 fi
7007
7008 if test "$wxUSE_PRINTING_ARCHITECTURE" = yes; then
7009 echo "$as_me:$LINENO: result: yes" >&5
7010echo "${ECHO_T}yes" >&6
7011 else
7012 echo "$as_me:$LINENO: result: no" >&5
7013echo "${ECHO_T}no" >&6
7014 fi
7015
7016
7017 enablestring=
7018 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mdi" >&5
7019echo $ECHO_N "checking for --${enablestring:-enable}-mdi... $ECHO_C" >&6
7020 no_cache=0
7021 # Check whether --enable-mdi or --disable-mdi was given.
7022if test "${enable_mdi+set}" = set; then
7023 enableval="$enable_mdi"
7024
7025 if test "$enableval" = yes; then
8a7b1113 7026 ac_cv_use_mdi='wxUSE_MDI=yes'
a848cd7e 7027 else
8a7b1113 7028 ac_cv_use_mdi='wxUSE_MDI=no'
a848cd7e
SC
7029 fi
7030
7031else
7032
8a7b1113 7033 LINE=`grep "wxUSE_MDI" ${wx_arg_cache_file}`
a848cd7e
SC
7034 if test "x$LINE" != x ; then
7035 eval "DEFAULT_$LINE"
7036 else
7037 no_cache=1
7038 fi
7039
8a7b1113 7040 ac_cv_use_mdi='wxUSE_MDI='$DEFAULT_wxUSE_MDI
a848cd7e
SC
7041
7042fi;
7043
7044 eval "$ac_cv_use_mdi"
7045 if test "$no_cache" != 1; then
7046 echo $ac_cv_use_mdi >> ${wx_arg_cache_file}.tmp
7047 fi
7048
8a7b1113
VZ
7049 if test "$wxUSE_MDI" = yes; then
7050 echo "$as_me:$LINENO: result: yes" >&5
7051echo "${ECHO_T}yes" >&6
7052 else
7053 echo "$as_me:$LINENO: result: no" >&5
7054echo "${ECHO_T}no" >&6
7055 fi
7056
7057
7058 enablestring=
7059 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mdidoc" >&5
7060echo $ECHO_N "checking for --${enablestring:-enable}-mdidoc... $ECHO_C" >&6
7061 no_cache=0
7062 # Check whether --enable-mdidoc or --disable-mdidoc was given.
7063if test "${enable_mdidoc+set}" = set; then
7064 enableval="$enable_mdidoc"
7065
7066 if test "$enableval" = yes; then
7067 ac_cv_use_mdidoc='wxUSE_MDI_ARCHITECTURE=yes'
7068 else
7069 ac_cv_use_mdidoc='wxUSE_MDI_ARCHITECTURE=no'
7070 fi
7071
7072else
7073
7074 LINE=`grep "wxUSE_MDI_ARCHITECTURE" ${wx_arg_cache_file}`
7075 if test "x$LINE" != x ; then
7076 eval "DEFAULT_$LINE"
7077 else
7078 no_cache=1
7079 fi
7080
7081 ac_cv_use_mdidoc='wxUSE_MDI_ARCHITECTURE='$DEFAULT_wxUSE_MDI_ARCHITECTURE
7082
7083fi;
7084
7085 eval "$ac_cv_use_mdidoc"
7086 if test "$no_cache" != 1; then
7087 echo $ac_cv_use_mdidoc >> ${wx_arg_cache_file}.tmp
7088 fi
7089
a848cd7e
SC
7090 if test "$wxUSE_MDI_ARCHITECTURE" = yes; then
7091 echo "$as_me:$LINENO: result: yes" >&5
7092echo "${ECHO_T}yes" >&6
7093 else
7094 echo "$as_me:$LINENO: result: no" >&5
7095echo "${ECHO_T}no" >&6
7096 fi
7097
7098
7099 enablestring=
7100 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-loggui" >&5
7101echo $ECHO_N "checking for --${enablestring:-enable}-loggui... $ECHO_C" >&6
7102 no_cache=0
7103 # Check whether --enable-loggui or --disable-loggui was given.
7104if test "${enable_loggui+set}" = set; then
7105 enableval="$enable_loggui"
7106
7107 if test "$enableval" = yes; then
7108 ac_cv_use_loggui='wxUSE_LOGGUI=yes'
7109 else
7110 ac_cv_use_loggui='wxUSE_LOGGUI=no'
7111 fi
7112
7113else
7114
7115 LINE=`grep "wxUSE_LOGGUI" ${wx_arg_cache_file}`
7116 if test "x$LINE" != x ; then
7117 eval "DEFAULT_$LINE"
7118 else
7119 no_cache=1
7120 fi
7121
7122 ac_cv_use_loggui='wxUSE_LOGGUI='$DEFAULT_wxUSE_LOGGUI
7123
7124fi;
7125
7126 eval "$ac_cv_use_loggui"
7127 if test "$no_cache" != 1; then
7128 echo $ac_cv_use_loggui >> ${wx_arg_cache_file}.tmp
7129 fi
7130
7131 if test "$wxUSE_LOGGUI" = yes; then
7132 echo "$as_me:$LINENO: result: yes" >&5
7133echo "${ECHO_T}yes" >&6
7134 else
7135 echo "$as_me:$LINENO: result: no" >&5
7136echo "${ECHO_T}no" >&6
7137 fi
7138
7139
7140 enablestring=
7141 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-logwin" >&5
7142echo $ECHO_N "checking for --${enablestring:-enable}-logwin... $ECHO_C" >&6
7143 no_cache=0
7144 # Check whether --enable-logwin or --disable-logwin was given.
7145if test "${enable_logwin+set}" = set; then
7146 enableval="$enable_logwin"
7147
7148 if test "$enableval" = yes; then
7149 ac_cv_use_logwin='wxUSE_LOGWINDOW=yes'
7150 else
7151 ac_cv_use_logwin='wxUSE_LOGWINDOW=no'
7152 fi
7153
7154else
7155
7156 LINE=`grep "wxUSE_LOGWINDOW" ${wx_arg_cache_file}`
7157 if test "x$LINE" != x ; then
7158 eval "DEFAULT_$LINE"
7159 else
7160 no_cache=1
7161 fi
7162
7163 ac_cv_use_logwin='wxUSE_LOGWINDOW='$DEFAULT_wxUSE_LOGWINDOW
7164
7165fi;
7166
7167 eval "$ac_cv_use_logwin"
7168 if test "$no_cache" != 1; then
7169 echo $ac_cv_use_logwin >> ${wx_arg_cache_file}.tmp
7170 fi
7171
7172 if test "$wxUSE_LOGWINDOW" = yes; then
7173 echo "$as_me:$LINENO: result: yes" >&5
7174echo "${ECHO_T}yes" >&6
7175 else
7176 echo "$as_me:$LINENO: result: no" >&5
7177echo "${ECHO_T}no" >&6
7178 fi
7179
7180
7181 enablestring=
7182 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-logdialog" >&5
7183echo $ECHO_N "checking for --${enablestring:-enable}-logdialog... $ECHO_C" >&6
7184 no_cache=0
7185 # Check whether --enable-logdialog or --disable-logdialog was given.
7186if test "${enable_logdialog+set}" = set; then
7187 enableval="$enable_logdialog"
7188
7189 if test "$enableval" = yes; then
7190 ac_cv_use_logdialog='wxUSE_LOGDIALOG=yes'
7191 else
7192 ac_cv_use_logdialog='wxUSE_LOGDIALOG=no'
7193 fi
7194
7195else
7196
7197 LINE=`grep "wxUSE_LOGDIALOG" ${wx_arg_cache_file}`
7198 if test "x$LINE" != x ; then
7199 eval "DEFAULT_$LINE"
7200 else
7201 no_cache=1
7202 fi
7203
7204 ac_cv_use_logdialog='wxUSE_LOGDIALOG='$DEFAULT_wxUSE_LOGDIALOG
7205
7206fi;
7207
7208 eval "$ac_cv_use_logdialog"
7209 if test "$no_cache" != 1; then
7210 echo $ac_cv_use_logdialog >> ${wx_arg_cache_file}.tmp
7211 fi
7212
7213 if test "$wxUSE_LOGDIALOG" = yes; then
7214 echo "$as_me:$LINENO: result: yes" >&5
7215echo "${ECHO_T}yes" >&6
7216 else
7217 echo "$as_me:$LINENO: result: no" >&5
7218echo "${ECHO_T}no" >&6
7219 fi
7220
7221
646b6ec1
VS
7222 enablestring=
7223 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-webkit" >&5
7224echo $ECHO_N "checking for --${enablestring:-enable}-webkit... $ECHO_C" >&6
7225 no_cache=0
7226 # Check whether --enable-webkit or --disable-webkit was given.
7227if test "${enable_webkit+set}" = set; then
7228 enableval="$enable_webkit"
7229
7230 if test "$enableval" = yes; then
7231 ac_cv_use_webkit='wxUSE_WEBKIT=yes'
7232 else
7233 ac_cv_use_webkit='wxUSE_WEBKIT=no'
7234 fi
7235
7236else
7237
7238 LINE=`grep "wxUSE_WEBKIT" ${wx_arg_cache_file}`
7239 if test "x$LINE" != x ; then
7240 eval "DEFAULT_$LINE"
7241 else
7242 no_cache=1
7243 fi
7244
7245 ac_cv_use_webkit='wxUSE_WEBKIT='$DEFAULT_wxUSE_WEBKIT
7246
7247fi;
7248
7249 eval "$ac_cv_use_webkit"
7250 if test "$no_cache" != 1; then
7251 echo $ac_cv_use_webkit >> ${wx_arg_cache_file}.tmp
7252 fi
7253
7254 if test "$wxUSE_WEBKIT" = yes; then
7255 echo "$as_me:$LINENO: result: yes" >&5
7256echo "${ECHO_T}yes" >&6
7257 else
7258 echo "$as_me:$LINENO: result: no" >&5
7259echo "${ECHO_T}no" >&6
7260 fi
7261
7262
91dea314
MW
7263 enablestring=
7264 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-html" >&5
7265echo $ECHO_N "checking for --${enablestring:-enable}-html... $ECHO_C" >&6
7266 no_cache=0
7267 # Check whether --enable-html or --disable-html was given.
7268if test "${enable_html+set}" = set; then
7269 enableval="$enable_html"
7270
7271 if test "$enableval" = yes; then
7272 ac_cv_use_html='wxUSE_RICHTEXT=yes'
7273 else
7274 ac_cv_use_html='wxUSE_RICHTEXT=no'
7275 fi
7276
7277else
7278
7279 LINE=`grep "wxUSE_RICHTEXT" ${wx_arg_cache_file}`
7280 if test "x$LINE" != x ; then
7281 eval "DEFAULT_$LINE"
7282 else
7283 no_cache=1
7284 fi
7285
7286 ac_cv_use_html='wxUSE_RICHTEXT='$DEFAULT_wxUSE_RICHTEXT
7287
7288fi;
7289
7290 eval "$ac_cv_use_html"
7291 if test "$no_cache" != 1; then
7292 echo $ac_cv_use_html >> ${wx_arg_cache_file}.tmp
7293 fi
7294
7295 if test "$wxUSE_RICHTEXT" = yes; then
7296 echo "$as_me:$LINENO: result: yes" >&5
7297echo "${ECHO_T}yes" >&6
7298 else
7299 echo "$as_me:$LINENO: result: no" >&5
7300echo "${ECHO_T}no" >&6
7301 fi
7302
7303
a848cd7e
SC
7304
7305 enablestring=
7306 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-postscript" >&5
7307echo $ECHO_N "checking for --${enablestring:-enable}-postscript... $ECHO_C" >&6
7308 no_cache=0
7309 # Check whether --enable-postscript or --disable-postscript was given.
7310if test "${enable_postscript+set}" = set; then
7311 enableval="$enable_postscript"
7312
7313 if test "$enableval" = yes; then
7314 ac_cv_use_postscript='wxUSE_POSTSCRIPT=yes'
7315 else
7316 ac_cv_use_postscript='wxUSE_POSTSCRIPT=no'
7317 fi
7318
7319else
7320
7321 LINE=`grep "wxUSE_POSTSCRIPT" ${wx_arg_cache_file}`
7322 if test "x$LINE" != x ; then
7323 eval "DEFAULT_$LINE"
7324 else
7325 no_cache=1
7326 fi
7327
7328 ac_cv_use_postscript='wxUSE_POSTSCRIPT='$DEFAULT_wxUSE_POSTSCRIPT
7329
7330fi;
7331
7332 eval "$ac_cv_use_postscript"
7333 if test "$no_cache" != 1; then
7334 echo $ac_cv_use_postscript >> ${wx_arg_cache_file}.tmp
7335 fi
7336
7337 if test "$wxUSE_POSTSCRIPT" = yes; then
7338 echo "$as_me:$LINENO: result: yes" >&5
7339echo "${ECHO_T}yes" >&6
7340 else
7341 echo "$as_me:$LINENO: result: no" >&5
7342echo "${ECHO_T}no" >&6
7343 fi
7344
7345
7346
7347
7348
7349 enablestring=
7350 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-prologio" >&5
7351echo $ECHO_N "checking for --${enablestring:-enable}-prologio... $ECHO_C" >&6
7352 no_cache=0
7353 # Check whether --enable-prologio or --disable-prologio was given.
7354if test "${enable_prologio+set}" = set; then
7355 enableval="$enable_prologio"
7356
7357 if test "$enableval" = yes; then
7358 ac_cv_use_prologio='wxUSE_PROLOGIO=yes'
7359 else
7360 ac_cv_use_prologio='wxUSE_PROLOGIO=no'
7361 fi
7362
7363else
7364
7365 LINE=`grep "wxUSE_PROLOGIO" ${wx_arg_cache_file}`
7366 if test "x$LINE" != x ; then
7367 eval "DEFAULT_$LINE"
7368 else
7369 no_cache=1
7370 fi
7371
7372 ac_cv_use_prologio='wxUSE_PROLOGIO='$DEFAULT_wxUSE_PROLOGIO
7373
7374fi;
7375
7376 eval "$ac_cv_use_prologio"
7377 if test "$no_cache" != 1; then
7378 echo $ac_cv_use_prologio >> ${wx_arg_cache_file}.tmp
7379 fi
7380
7381 if test "$wxUSE_PROLOGIO" = yes; then
7382 echo "$as_me:$LINENO: result: yes" >&5
7383echo "${ECHO_T}yes" >&6
7384 else
7385 echo "$as_me:$LINENO: result: no" >&5
7386echo "${ECHO_T}no" >&6
7387 fi
7388
7389
7390 enablestring=
7391 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-resources" >&5
7392echo $ECHO_N "checking for --${enablestring:-enable}-resources... $ECHO_C" >&6
7393 no_cache=0
7394 # Check whether --enable-resources or --disable-resources was given.
7395if test "${enable_resources+set}" = set; then
7396 enableval="$enable_resources"
7397
7398 if test "$enableval" = yes; then
7399 ac_cv_use_resources='wxUSE_RESOURCES=yes'
7400 else
7401 ac_cv_use_resources='wxUSE_RESOURCES=no'
7402 fi
7403
7404else
7405
7406 LINE=`grep "wxUSE_RESOURCES" ${wx_arg_cache_file}`
7407 if test "x$LINE" != x ; then
7408 eval "DEFAULT_$LINE"
7409 else
7410 no_cache=1
7411 fi
7412
7413 ac_cv_use_resources='wxUSE_RESOURCES='$DEFAULT_wxUSE_RESOURCES
7414
7415fi;
7416
7417 eval "$ac_cv_use_resources"
7418 if test "$no_cache" != 1; then
7419 echo $ac_cv_use_resources >> ${wx_arg_cache_file}.tmp
7420 fi
7421
7422 if test "$wxUSE_RESOURCES" = yes; then
7423 echo "$as_me:$LINENO: result: yes" >&5
7424echo "${ECHO_T}yes" >&6
7425 else
7426 echo "$as_me:$LINENO: result: no" >&5
7427echo "${ECHO_T}no" >&6
7428 fi
7429
7430
7431
7432
7433 enablestring=
7434 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-clipboard" >&5
7435echo $ECHO_N "checking for --${enablestring:-enable}-clipboard... $ECHO_C" >&6
7436 no_cache=0
7437 # Check whether --enable-clipboard or --disable-clipboard was given.
7438if test "${enable_clipboard+set}" = set; then
7439 enableval="$enable_clipboard"
7440
7441 if test "$enableval" = yes; then
7442 ac_cv_use_clipboard='wxUSE_CLIPBOARD=yes'
7443 else
7444 ac_cv_use_clipboard='wxUSE_CLIPBOARD=no'
7445 fi
7446
7447else
7448
7449 LINE=`grep "wxUSE_CLIPBOARD" ${wx_arg_cache_file}`
7450 if test "x$LINE" != x ; then
7451 eval "DEFAULT_$LINE"
7452 else
7453 no_cache=1
7454 fi
7455
7456 ac_cv_use_clipboard='wxUSE_CLIPBOARD='$DEFAULT_wxUSE_CLIPBOARD
7457
7458fi;
7459
7460 eval "$ac_cv_use_clipboard"
7461 if test "$no_cache" != 1; then
7462 echo $ac_cv_use_clipboard >> ${wx_arg_cache_file}.tmp
7463 fi
7464
7465 if test "$wxUSE_CLIPBOARD" = yes; then
7466 echo "$as_me:$LINENO: result: yes" >&5
7467echo "${ECHO_T}yes" >&6
7468 else
7469 echo "$as_me:$LINENO: result: no" >&5
7470echo "${ECHO_T}no" >&6
7471 fi
7472
7473
7474 enablestring=
7475 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dnd" >&5
7476echo $ECHO_N "checking for --${enablestring:-enable}-dnd... $ECHO_C" >&6
7477 no_cache=0
7478 # Check whether --enable-dnd or --disable-dnd was given.
7479if test "${enable_dnd+set}" = set; then
7480 enableval="$enable_dnd"
7481
7482 if test "$enableval" = yes; then
7483 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=yes'
7484 else
7485 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=no'
7486 fi
7487
7488else
7489
7490 LINE=`grep "wxUSE_DRAG_AND_DROP" ${wx_arg_cache_file}`
7491 if test "x$LINE" != x ; then
7492 eval "DEFAULT_$LINE"
7493 else
7494 no_cache=1
7495 fi
7496
7497 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP='$DEFAULT_wxUSE_DRAG_AND_DROP
7498
7499fi;
7500
7501 eval "$ac_cv_use_dnd"
7502 if test "$no_cache" != 1; then
7503 echo $ac_cv_use_dnd >> ${wx_arg_cache_file}.tmp
7504 fi
7505
7506 if test "$wxUSE_DRAG_AND_DROP" = yes; then
7507 echo "$as_me:$LINENO: result: yes" >&5
7508echo "${ECHO_T}yes" >&6
7509 else
7510 echo "$as_me:$LINENO: result: no" >&5
7511echo "${ECHO_T}no" >&6
7512 fi
7513
7514
7515 enablestring=
7516 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-metafile" >&5
7517echo $ECHO_N "checking for --${enablestring:-enable}-metafile... $ECHO_C" >&6
7518 no_cache=0
7519 # Check whether --enable-metafile or --disable-metafile was given.
7520if test "${enable_metafile+set}" = set; then
7521 enableval="$enable_metafile"
7522
7523 if test "$enableval" = yes; then
7524 ac_cv_use_metafile='wxUSE_METAFILE=yes'
7525 else
7526 ac_cv_use_metafile='wxUSE_METAFILE=no'
7527 fi
7528
7529else
7530
7531 LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}`
7532 if test "x$LINE" != x ; then
7533 eval "DEFAULT_$LINE"
7534 else
7535 no_cache=1
7536 fi
7537
7538 ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE
7539
7540fi;
7541
7542 eval "$ac_cv_use_metafile"
7543 if test "$no_cache" != 1; then
7544 echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp
7545 fi
7546
7547 if test "$wxUSE_METAFILE" = yes; then
7548 echo "$as_me:$LINENO: result: yes" >&5
7549echo "${ECHO_T}yes" >&6
7550 else
7551 echo "$as_me:$LINENO: result: no" >&5
7552echo "${ECHO_T}no" >&6
7553 fi
7554
7555
7556
7557
7558
7559 enablestring=
7560 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-controls" >&5
7561echo $ECHO_N "checking for --${enablestring:-enable}-controls... $ECHO_C" >&6
7562 no_cache=0
7563 # Check whether --enable-controls or --disable-controls was given.
7564if test "${enable_controls+set}" = set; then
7565 enableval="$enable_controls"
7566
7567 if test "$enableval" = yes; then
7568 ac_cv_use_controls='wxUSE_CONTROLS=yes'
7569 else
7570 ac_cv_use_controls='wxUSE_CONTROLS=no'
7571 fi
7572
7573else
7574
7575 LINE=`grep "wxUSE_CONTROLS" ${wx_arg_cache_file}`
7576 if test "x$LINE" != x ; then
7577 eval "DEFAULT_$LINE"
7578 else
7579 no_cache=1
7580 fi
7581
7582 ac_cv_use_controls='wxUSE_CONTROLS='$DEFAULT_wxUSE_CONTROLS
7583
7584fi;
7585
7586 eval "$ac_cv_use_controls"
7587 if test "$no_cache" != 1; then
7588 echo $ac_cv_use_controls >> ${wx_arg_cache_file}.tmp
7589 fi
7590
7591 if test "$wxUSE_CONTROLS" = yes; then
7592 echo "$as_me:$LINENO: result: yes" >&5
7593echo "${ECHO_T}yes" >&6
7594 else
7595 echo "$as_me:$LINENO: result: no" >&5
7596echo "${ECHO_T}no" >&6
7597 fi
7598
7599
7600if test "$wxUSE_CONTROLS" = "yes"; then
7601 DEFAULT_wxUSE_ACCEL=yes
7602 DEFAULT_wxUSE_BMPBUTTON=yes
7603 DEFAULT_wxUSE_BUTTON=yes
da98e9be 7604 DEFAULT_wxUSE_CALCTRL=yes
a848cd7e
SC
7605 DEFAULT_wxUSE_CARET=yes
7606 DEFAULT_wxUSE_COMBOBOX=yes
7607 DEFAULT_wxUSE_CHECKBOX=yes
7608 DEFAULT_wxUSE_CHECKLISTBOX=yes
7609 DEFAULT_wxUSE_CHOICE=yes
92bbdbcd 7610 DEFAULT_wxUSE_CHOICEBOOK=yes
e9263684
VZ
7611 DEFAULT_wxUSE_COLOURPICKERCTRL=yes
7612 DEFAULT_wxUSE_COMBOBOX=yes
da98e9be 7613 DEFAULT_wxUSE_DATEPICKCTRL=yes
e9263684
VZ
7614 DEFAULT_wxUSE_DISPLAY=yes
7615 DEFAULT_wxUSE_DIRPICKERCTRL=yes
7616 DEFAULT_wxUSE_FILEPICKERCTRL=yes
7617 DEFAULT_wxUSE_FONTPICKERCTRL=yes
a848cd7e
SC
7618 DEFAULT_wxUSE_GAUGE=yes
7619 DEFAULT_wxUSE_GRID=yes
6954625c 7620 DEFAULT_wxUSE_HYPERLINKCTRL=yes
20e34ecc 7621 DEFAULT_wxUSE_DATAVIEWCTRL=no
a848cd7e
SC
7622 DEFAULT_wxUSE_IMAGLIST=yes
7623 DEFAULT_wxUSE_LISTBOOK=yes
7624 DEFAULT_wxUSE_LISTBOX=yes
7625 DEFAULT_wxUSE_LISTCTRL=yes
7626 DEFAULT_wxUSE_NOTEBOOK=yes
7627 DEFAULT_wxUSE_RADIOBOX=yes
7628 DEFAULT_wxUSE_RADIOBTN=yes
7629 DEFAULT_wxUSE_SASH=yes
7630 DEFAULT_wxUSE_SCROLLBAR=yes
7631 DEFAULT_wxUSE_SLIDER=yes
7632 DEFAULT_wxUSE_SPINBTN=yes
7633 DEFAULT_wxUSE_SPINCTRL=yes
7634 DEFAULT_wxUSE_SPLITTER=yes
7635 DEFAULT_wxUSE_STATBMP=yes
7636 DEFAULT_wxUSE_STATBOX=yes
7637 DEFAULT_wxUSE_STATLINE=yes
7638 DEFAULT_wxUSE_STATUSBAR=yes
7639 DEFAULT_wxUSE_TAB_DIALOG=yes
7640 DEFAULT_wxUSE_TOGGLEBTN=yes
7641 DEFAULT_wxUSE_TOOLBAR=yes
7642 DEFAULT_wxUSE_TOOLBAR_NATIVE=yes
7643 DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes
7644 DEFAULT_wxUSE_TOOLTIPS=yes
0093c2fc 7645 DEFAULT_wxUSE_TREEBOOK=yes
5ec3bc43 7646 DEFAULT_wxUSE_TOOLBOOK=yes
a848cd7e
SC
7647 DEFAULT_wxUSE_TREECTRL=yes
7648 DEFAULT_wxUSE_POPUPWIN=yes
7649 DEFAULT_wxUSE_TIPWINDOW=yes
7650elif test "$wxUSE_CONTROLS" = "no"; then
7651 DEFAULT_wxUSE_ACCEL=no
7652 DEFAULT_wxUSE_BMPBUTTON=no
7653 DEFAULT_wxUSE_BUTTON=no
7654 DEFAULT_wxUSE_CALCTRL=no
7655 DEFAULT_wxUSE_CARET=no
7656 DEFAULT_wxUSE_COMBOBOX=no
7657 DEFAULT_wxUSE_CHECKBOX=no
7658 DEFAULT_wxUSE_CHECKLISTBOX=no
7659 DEFAULT_wxUSE_CHOICE=no
92bbdbcd 7660 DEFAULT_wxUSE_CHOICEBOOK=no
e9263684
VZ
7661 DEFAULT_wxUSE_COLOURPICKERCTRL=no
7662 DEFAULT_wxUSE_COMBOBOX=no
da98e9be 7663 DEFAULT_wxUSE_DATEPICKCTRL=no
e9263684
VZ
7664 DEFAULT_wxUSE_DISPLAY=no
7665 DEFAULT_wxUSE_DIRPICKERCTRL=no
7666 DEFAULT_wxUSE_FILEPICKERCTRL=no
7667 DEFAULT_wxUSE_FONTPICKERCTRL=no
a848cd7e
SC
7668 DEFAULT_wxUSE_GAUGE=no
7669 DEFAULT_wxUSE_GRID=no
6954625c 7670 DEFAULT_wxUSE_HYPERLINKCTRL=no
20e34ecc 7671 DEFAULT_wxUSE_DATAVIEWCTRL=no
a848cd7e
SC
7672 DEFAULT_wxUSE_IMAGLIST=no
7673 DEFAULT_wxUSE_LISTBOOK=no
7674 DEFAULT_wxUSE_LISTBOX=no
7675 DEFAULT_wxUSE_LISTCTRL=no
7676 DEFAULT_wxUSE_NOTEBOOK=no
7677 DEFAULT_wxUSE_RADIOBOX=no
7678 DEFAULT_wxUSE_RADIOBTN=no
7679 DEFAULT_wxUSE_SASH=no
7680 DEFAULT_wxUSE_SCROLLBAR=no
7681 DEFAULT_wxUSE_SLIDER=no
7682 DEFAULT_wxUSE_SPINBTN=no
7683 DEFAULT_wxUSE_SPINCTRL=no
7684 DEFAULT_wxUSE_SPLITTER=no
7685 DEFAULT_wxUSE_STATBMP=no
7686 DEFAULT_wxUSE_STATBOX=no
7687 DEFAULT_wxUSE_STATLINE=no
7688 DEFAULT_wxUSE_STATUSBAR=no
7689 DEFAULT_wxUSE_TAB_DIALOG=no
7690 DEFAULT_wxUSE_TOGGLEBTN=no
7691 DEFAULT_wxUSE_TOOLBAR=no
7692 DEFAULT_wxUSE_TOOLBAR_NATIVE=no
7693 DEFAULT_wxUSE_TOOLBAR_SIMPLE=no
7694 DEFAULT_wxUSE_TOOLTIPS=no
0093c2fc 7695 DEFAULT_wxUSE_TREEBOOK=no
5ec3bc43 7696 DEFAULT_wxUSE_TOOLBOOK=no
a848cd7e
SC
7697 DEFAULT_wxUSE_TREECTRL=no
7698 DEFAULT_wxUSE_POPUPWIN=no
7699 DEFAULT_wxUSE_TIPWINDOW=no
7700fi
7701
a848cd7e
SC
7702
7703 enablestring=
7704 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-accel" >&5
7705echo $ECHO_N "checking for --${enablestring:-enable}-accel... $ECHO_C" >&6
7706 no_cache=0
7707 # Check whether --enable-accel or --disable-accel was given.
7708if test "${enable_accel+set}" = set; then
7709 enableval="$enable_accel"
7710
7711 if test "$enableval" = yes; then
7712 ac_cv_use_accel='wxUSE_ACCEL=yes'
7713 else
7714 ac_cv_use_accel='wxUSE_ACCEL=no'
7715 fi
7716
7717else
7718
7719 LINE=`grep "wxUSE_ACCEL" ${wx_arg_cache_file}`
7720 if test "x$LINE" != x ; then
7721 eval "DEFAULT_$LINE"
7722 else
7723 no_cache=1
7724 fi
7725
7726 ac_cv_use_accel='wxUSE_ACCEL='$DEFAULT_wxUSE_ACCEL
7727
7728fi;
7729
7730 eval "$ac_cv_use_accel"
7731 if test "$no_cache" != 1; then
7732 echo $ac_cv_use_accel >> ${wx_arg_cache_file}.tmp
7733 fi
7734
7735 if test "$wxUSE_ACCEL" = yes; then
7736 echo "$as_me:$LINENO: result: yes" >&5
7737echo "${ECHO_T}yes" >&6
7738 else
7739 echo "$as_me:$LINENO: result: no" >&5
7740echo "${ECHO_T}no" >&6
7741 fi
7742
7743
7744 enablestring=
7745 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-button" >&5
7746echo $ECHO_N "checking for --${enablestring:-enable}-button... $ECHO_C" >&6
7747 no_cache=0
7748 # Check whether --enable-button or --disable-button was given.
7749if test "${enable_button+set}" = set; then
7750 enableval="$enable_button"
7751
7752 if test "$enableval" = yes; then
7753 ac_cv_use_button='wxUSE_BUTTON=yes'
7754 else
7755 ac_cv_use_button='wxUSE_BUTTON=no'
7756 fi
7757
7758else
7759
7760 LINE=`grep "wxUSE_BUTTON" ${wx_arg_cache_file}`
7761 if test "x$LINE" != x ; then
7762 eval "DEFAULT_$LINE"
7763 else
7764 no_cache=1
7765 fi
7766
7767 ac_cv_use_button='wxUSE_BUTTON='$DEFAULT_wxUSE_BUTTON
7768
7769fi;
7770
7771 eval "$ac_cv_use_button"
7772 if test "$no_cache" != 1; then
7773 echo $ac_cv_use_button >> ${wx_arg_cache_file}.tmp
7774 fi
7775
7776 if test "$wxUSE_BUTTON" = yes; then
7777 echo "$as_me:$LINENO: result: yes" >&5
7778echo "${ECHO_T}yes" >&6
7779 else
7780 echo "$as_me:$LINENO: result: no" >&5
7781echo "${ECHO_T}no" >&6
7782 fi
7783
7784
7785 enablestring=
7786 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-bmpbutton" >&5
7787echo $ECHO_N "checking for --${enablestring:-enable}-bmpbutton... $ECHO_C" >&6
7788 no_cache=0
7789 # Check whether --enable-bmpbutton or --disable-bmpbutton was given.
7790if test "${enable_bmpbutton+set}" = set; then
7791 enableval="$enable_bmpbutton"
7792
7793 if test "$enableval" = yes; then
7794 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=yes'
7795 else
7796 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=no'
7797 fi
7798
7799else
7800
7801 LINE=`grep "wxUSE_BMPBUTTON" ${wx_arg_cache_file}`
7802 if test "x$LINE" != x ; then
7803 eval "DEFAULT_$LINE"
7804 else
7805 no_cache=1
7806 fi
7807
7808 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON='$DEFAULT_wxUSE_BMPBUTTON
7809
7810fi;
7811
7812 eval "$ac_cv_use_bmpbutton"
7813 if test "$no_cache" != 1; then
7814 echo $ac_cv_use_bmpbutton >> ${wx_arg_cache_file}.tmp
7815 fi
7816
7817 if test "$wxUSE_BMPBUTTON" = yes; then
7818 echo "$as_me:$LINENO: result: yes" >&5
7819echo "${ECHO_T}yes" >&6
7820 else
7821 echo "$as_me:$LINENO: result: no" >&5
7822echo "${ECHO_T}no" >&6
7823 fi
7824
7825
7826 enablestring=
7827 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-calendar" >&5
7828echo $ECHO_N "checking for --${enablestring:-enable}-calendar... $ECHO_C" >&6
7829 no_cache=0
7830 # Check whether --enable-calendar or --disable-calendar was given.
7831if test "${enable_calendar+set}" = set; then
7832 enableval="$enable_calendar"
7833
7834 if test "$enableval" = yes; then
7835 ac_cv_use_calendar='wxUSE_CALCTRL=yes'
7836 else
7837 ac_cv_use_calendar='wxUSE_CALCTRL=no'
7838 fi
7839
7840else
7841
7842 LINE=`grep "wxUSE_CALCTRL" ${wx_arg_cache_file}`
7843 if test "x$LINE" != x ; then
7844 eval "DEFAULT_$LINE"
7845 else
7846 no_cache=1
7847 fi
7848
7849 ac_cv_use_calendar='wxUSE_CALCTRL='$DEFAULT_wxUSE_CALCTRL
7850
7851fi;
7852
7853 eval "$ac_cv_use_calendar"
7854 if test "$no_cache" != 1; then
7855 echo $ac_cv_use_calendar >> ${wx_arg_cache_file}.tmp
7856 fi
7857
7858 if test "$wxUSE_CALCTRL" = yes; then
7859 echo "$as_me:$LINENO: result: yes" >&5
7860echo "${ECHO_T}yes" >&6
7861 else
7862 echo "$as_me:$LINENO: result: no" >&5
7863echo "${ECHO_T}no" >&6
7864 fi
7865
7866
7867 enablestring=
7868 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-caret" >&5
7869echo $ECHO_N "checking for --${enablestring:-enable}-caret... $ECHO_C" >&6
7870 no_cache=0
7871 # Check whether --enable-caret or --disable-caret was given.
7872if test "${enable_caret+set}" = set; then
7873 enableval="$enable_caret"
7874
7875 if test "$enableval" = yes; then
7876 ac_cv_use_caret='wxUSE_CARET=yes'
7877 else
7878 ac_cv_use_caret='wxUSE_CARET=no'
7879 fi
7880
7881else
7882
7883 LINE=`grep "wxUSE_CARET" ${wx_arg_cache_file}`
7884 if test "x$LINE" != x ; then
7885 eval "DEFAULT_$LINE"
7886 else
7887 no_cache=1
7888 fi
7889
7890 ac_cv_use_caret='wxUSE_CARET='$DEFAULT_wxUSE_CARET
7891
7892fi;
7893
7894 eval "$ac_cv_use_caret"
7895 if test "$no_cache" != 1; then
7896 echo $ac_cv_use_caret >> ${wx_arg_cache_file}.tmp
7897 fi
7898
7899 if test "$wxUSE_CARET" = yes; then
7900 echo "$as_me:$LINENO: result: yes" >&5
7901echo "${ECHO_T}yes" >&6
7902 else
7903 echo "$as_me:$LINENO: result: no" >&5
7904echo "${ECHO_T}no" >&6
7905 fi
7906
7907
7908 enablestring=
7909 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-checkbox" >&5
7910echo $ECHO_N "checking for --${enablestring:-enable}-checkbox... $ECHO_C" >&6
7911 no_cache=0
7912 # Check whether --enable-checkbox or --disable-checkbox was given.
7913if test "${enable_checkbox+set}" = set; then
7914 enableval="$enable_checkbox"
7915
7916 if test "$enableval" = yes; then
7917 ac_cv_use_checkbox='wxUSE_CHECKBOX=yes'
7918 else
7919 ac_cv_use_checkbox='wxUSE_CHECKBOX=no'
7920 fi
7921
7922else
7923
7924 LINE=`grep "wxUSE_CHECKBOX" ${wx_arg_cache_file}`
7925 if test "x$LINE" != x ; then
7926 eval "DEFAULT_$LINE"
7927 else
7928 no_cache=1
7929 fi
7930
7931 ac_cv_use_checkbox='wxUSE_CHECKBOX='$DEFAULT_wxUSE_CHECKBOX
7932
7933fi;
7934
7935 eval "$ac_cv_use_checkbox"
7936 if test "$no_cache" != 1; then
7937 echo $ac_cv_use_checkbox >> ${wx_arg_cache_file}.tmp
7938 fi
7939
7940 if test "$wxUSE_CHECKBOX" = yes; then
7941 echo "$as_me:$LINENO: result: yes" >&5
7942echo "${ECHO_T}yes" >&6
7943 else
7944 echo "$as_me:$LINENO: result: no" >&5
7945echo "${ECHO_T}no" >&6
7946 fi
7947
7948
7949 enablestring=
7950 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-checklst" >&5
7951echo $ECHO_N "checking for --${enablestring:-enable}-checklst... $ECHO_C" >&6
7952 no_cache=0
7953 # Check whether --enable-checklst or --disable-checklst was given.
7954if test "${enable_checklst+set}" = set; then
7955 enableval="$enable_checklst"
7956
7957 if test "$enableval" = yes; then
7958 ac_cv_use_checklst='wxUSE_CHECKLST=yes'
7959 else
7960 ac_cv_use_checklst='wxUSE_CHECKLST=no'
7961 fi
7962
7963else
7964
7965 LINE=`grep "wxUSE_CHECKLST" ${wx_arg_cache_file}`
7966 if test "x$LINE" != x ; then
7967 eval "DEFAULT_$LINE"
7968 else
7969 no_cache=1
7970 fi
7971
7972 ac_cv_use_checklst='wxUSE_CHECKLST='$DEFAULT_wxUSE_CHECKLST
7973
7974fi;
7975
7976 eval "$ac_cv_use_checklst"
7977 if test "$no_cache" != 1; then
7978 echo $ac_cv_use_checklst >> ${wx_arg_cache_file}.tmp
7979 fi
7980
7981 if test "$wxUSE_CHECKLST" = yes; then
7982 echo "$as_me:$LINENO: result: yes" >&5
7983echo "${ECHO_T}yes" >&6
7984 else
7985 echo "$as_me:$LINENO: result: no" >&5
7986echo "${ECHO_T}no" >&6
7987 fi
7988
7989
7990 enablestring=
7991 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choice" >&5
7992echo $ECHO_N "checking for --${enablestring:-enable}-choice... $ECHO_C" >&6
7993 no_cache=0
7994 # Check whether --enable-choice or --disable-choice was given.
7995if test "${enable_choice+set}" = set; then
7996 enableval="$enable_choice"
7997
7998 if test "$enableval" = yes; then
7999 ac_cv_use_choice='wxUSE_CHOICE=yes'
8000 else
8001 ac_cv_use_choice='wxUSE_CHOICE=no'
8002 fi
8003
8004else
8005
8006 LINE=`grep "wxUSE_CHOICE" ${wx_arg_cache_file}`
8007 if test "x$LINE" != x ; then
8008 eval "DEFAULT_$LINE"
8009 else
8010 no_cache=1
8011 fi
8012
8013 ac_cv_use_choice='wxUSE_CHOICE='$DEFAULT_wxUSE_CHOICE
8014
8015fi;
8016
8017 eval "$ac_cv_use_choice"
8018 if test "$no_cache" != 1; then
8019 echo $ac_cv_use_choice >> ${wx_arg_cache_file}.tmp
8020 fi
8021
8022 if test "$wxUSE_CHOICE" = yes; then
8023 echo "$as_me:$LINENO: result: yes" >&5
8024echo "${ECHO_T}yes" >&6
8025 else
8026 echo "$as_me:$LINENO: result: no" >&5
8027echo "${ECHO_T}no" >&6
8028 fi
8029
8030
92bbdbcd
WS
8031 enablestring=
8032 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choicebook" >&5
8033echo $ECHO_N "checking for --${enablestring:-enable}-choicebook... $ECHO_C" >&6
8034 no_cache=0
8035 # Check whether --enable-choicebook or --disable-choicebook was given.
8036if test "${enable_choicebook+set}" = set; then
8037 enableval="$enable_choicebook"
8038
8039 if test "$enableval" = yes; then
8040 ac_cv_use_choicebook='wxUSE_CHOICEBOOK=yes'
8041 else
8042 ac_cv_use_choicebook='wxUSE_CHOICEBOOK=no'
8043 fi
8044
8045else
8046
8047 LINE=`grep "wxUSE_CHOICEBOOK" ${wx_arg_cache_file}`
8048 if test "x$LINE" != x ; then
8049 eval "DEFAULT_$LINE"
8050 else
8051 no_cache=1
8052 fi
8053
8054 ac_cv_use_choicebook='wxUSE_CHOICEBOOK='$DEFAULT_wxUSE_CHOICEBOOK
8055
8056fi;
8057
8058 eval "$ac_cv_use_choicebook"
8059 if test "$no_cache" != 1; then
8060 echo $ac_cv_use_choicebook >> ${wx_arg_cache_file}.tmp
8061 fi
8062
8063 if test "$wxUSE_CHOICEBOOK" = yes; then
8064 echo "$as_me:$LINENO: result: yes" >&5
8065echo "${ECHO_T}yes" >&6
8066 else
8067 echo "$as_me:$LINENO: result: no" >&5
8068echo "${ECHO_T}no" >&6
8069 fi
8070
8071
e9263684
VZ
8072 enablestring=
8073 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-colourpicker" >&5
8074echo $ECHO_N "checking for --${enablestring:-enable}-colourpicker... $ECHO_C" >&6
8075 no_cache=0
8076 # Check whether --enable-colourpicker or --disable-colourpicker was given.
8077if test "${enable_colourpicker+set}" = set; then
8078 enableval="$enable_colourpicker"
8079
8080 if test "$enableval" = yes; then
8081 ac_cv_use_colourpicker='wxUSE_COLOURPICKERCTRL=yes'
8082 else
8083 ac_cv_use_colourpicker='wxUSE_COLOURPICKERCTRL=no'
8084 fi
8085
8086else
8087
8088 LINE=`grep "wxUSE_COLOURPICKERCTRL" ${wx_arg_cache_file}`
8089 if test "x$LINE" != x ; then
8090 eval "DEFAULT_$LINE"
8091 else
8092 no_cache=1
8093 fi
8094
8095 ac_cv_use_colourpicker='wxUSE_COLOURPICKERCTRL='$DEFAULT_wxUSE_COLOURPICKERCTRL
8096
8097fi;
8098
8099 eval "$ac_cv_use_colourpicker"
8100 if test "$no_cache" != 1; then
8101 echo $ac_cv_use_colourpicker >> ${wx_arg_cache_file}.tmp
8102 fi
8103
8104 if test "$wxUSE_COLOURPICKERCTRL" = yes; then
8105 echo "$as_me:$LINENO: result: yes" >&5
8106echo "${ECHO_T}yes" >&6
8107 else
8108 echo "$as_me:$LINENO: result: no" >&5
8109echo "${ECHO_T}no" >&6
8110 fi
8111
8112
a848cd7e
SC
8113 enablestring=
8114 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-combobox" >&5
8115echo $ECHO_N "checking for --${enablestring:-enable}-combobox... $ECHO_C" >&6
8116 no_cache=0
8117 # Check whether --enable-combobox or --disable-combobox was given.
8118if test "${enable_combobox+set}" = set; then
8119 enableval="$enable_combobox"
8120
8121 if test "$enableval" = yes; then
8122 ac_cv_use_combobox='wxUSE_COMBOBOX=yes'
8123 else
8124 ac_cv_use_combobox='wxUSE_COMBOBOX=no'
8125 fi
8126
8127else
8128
8129 LINE=`grep "wxUSE_COMBOBOX" ${wx_arg_cache_file}`
8130 if test "x$LINE" != x ; then
8131 eval "DEFAULT_$LINE"
8132 else
8133 no_cache=1
8134 fi
8135
8136 ac_cv_use_combobox='wxUSE_COMBOBOX='$DEFAULT_wxUSE_COMBOBOX
8137
8138fi;
8139
8140 eval "$ac_cv_use_combobox"
8141 if test "$no_cache" != 1; then
8142 echo $ac_cv_use_combobox >> ${wx_arg_cache_file}.tmp
8143 fi
8144
8145 if test "$wxUSE_COMBOBOX" = yes; then
8146 echo "$as_me:$LINENO: result: yes" >&5
8147echo "${ECHO_T}yes" >&6
8148 else
8149 echo "$as_me:$LINENO: result: no" >&5
8150echo "${ECHO_T}no" >&6
8151 fi
8152
8153
642bcba9 8154 enablestring=
a57d600f
VZ
8155 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-comboctrl" >&5
8156echo $ECHO_N "checking for --${enablestring:-enable}-comboctrl... $ECHO_C" >&6
642bcba9 8157 no_cache=0
a57d600f
VZ
8158 # Check whether --enable-comboctrl or --disable-comboctrl was given.
8159if test "${enable_comboctrl+set}" = set; then
8160 enableval="$enable_comboctrl"
642bcba9
VZ
8161
8162 if test "$enableval" = yes; then
a57d600f 8163 ac_cv_use_comboctrl='wxUSE_COMBOCTRL=yes'
642bcba9 8164 else
a57d600f 8165 ac_cv_use_comboctrl='wxUSE_COMBOCTRL=no'
642bcba9
VZ
8166 fi
8167
8168else
8169
a57d600f 8170 LINE=`grep "wxUSE_COMBOCTRL" ${wx_arg_cache_file}`
642bcba9
VZ
8171 if test "x$LINE" != x ; then
8172 eval "DEFAULT_$LINE"
8173 else
8174 no_cache=1
8175 fi
8176
a57d600f 8177 ac_cv_use_comboctrl='wxUSE_COMBOCTRL='$DEFAULT_wxUSE_COMBOCTRL
642bcba9
VZ
8178
8179fi;
8180
a57d600f 8181 eval "$ac_cv_use_comboctrl"
642bcba9 8182 if test "$no_cache" != 1; then
a57d600f 8183 echo $ac_cv_use_comboctrl >> ${wx_arg_cache_file}.tmp
642bcba9
VZ
8184 fi
8185
a57d600f 8186 if test "$wxUSE_COMBOCTRL" = yes; then
642bcba9
VZ
8187 echo "$as_me:$LINENO: result: yes" >&5
8188echo "${ECHO_T}yes" >&6
8189 else
8190 echo "$as_me:$LINENO: result: no" >&5
8191echo "${ECHO_T}no" >&6
8192 fi
8193
8194
da98e9be
VZ
8195 enablestring=
8196 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-datepick" >&5
8197echo $ECHO_N "checking for --${enablestring:-enable}-datepick... $ECHO_C" >&6
8198 no_cache=0
8199 # Check whether --enable-datepick or --disable-datepick was given.
8200if test "${enable_datepick+set}" = set; then
8201 enableval="$enable_datepick"
8202
8203 if test "$enableval" = yes; then
8204 ac_cv_use_datepick='wxUSE_DATEPICKCTRL=yes'
8205 else
8206 ac_cv_use_datepick='wxUSE_DATEPICKCTRL=no'
8207 fi
8208
8209else
8210
8211 LINE=`grep "wxUSE_DATEPICKCTRL" ${wx_arg_cache_file}`
8212 if test "x$LINE" != x ; then
8213 eval "DEFAULT_$LINE"
8214 else
8215 no_cache=1
8216 fi
8217
8218 ac_cv_use_datepick='wxUSE_DATEPICKCTRL='$DEFAULT_wxUSE_DATEPICKCTRL
8219
8220fi;
8221
8222 eval "$ac_cv_use_datepick"
8223 if test "$no_cache" != 1; then
8224 echo $ac_cv_use_datepick >> ${wx_arg_cache_file}.tmp
8225 fi
8226
8227 if test "$wxUSE_DATEPICKCTRL" = yes; then
8228 echo "$as_me:$LINENO: result: yes" >&5
8229echo "${ECHO_T}yes" >&6
8230 else
8231 echo "$as_me:$LINENO: result: no" >&5
8232echo "${ECHO_T}no" >&6
8233 fi
8234
8235
e9263684
VZ
8236 enablestring=
8237 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dirpicker" >&5
8238echo $ECHO_N "checking for --${enablestring:-enable}-dirpicker... $ECHO_C" >&6
8239 no_cache=0
8240 # Check whether --enable-dirpicker or --disable-dirpicker was given.
8241if test "${enable_dirpicker+set}" = set; then
8242 enableval="$enable_dirpicker"
8243
8244 if test "$enableval" = yes; then
8245 ac_cv_use_dirpicker='wxUSE_DIRPICKERCTRL=yes'
8246 else
8247 ac_cv_use_dirpicker='wxUSE_DIRPICKERCTRL=no'
8248 fi
8249
8250else
8251
8252 LINE=`grep "wxUSE_DIRPICKERCTRL" ${wx_arg_cache_file}`
8253 if test "x$LINE" != x ; then
8254 eval "DEFAULT_$LINE"
8255 else
8256 no_cache=1
8257 fi
8258
8259 ac_cv_use_dirpicker='wxUSE_DIRPICKERCTRL='$DEFAULT_wxUSE_DIRPICKERCTRL
8260
8261fi;
8262
8263 eval "$ac_cv_use_dirpicker"
8264 if test "$no_cache" != 1; then
8265 echo $ac_cv_use_dirpicker >> ${wx_arg_cache_file}.tmp
8266 fi
8267
8268 if test "$wxUSE_DIRPICKERCTRL" = yes; then
8269 echo "$as_me:$LINENO: result: yes" >&5
8270echo "${ECHO_T}yes" >&6
8271 else
8272 echo "$as_me:$LINENO: result: no" >&5
8273echo "${ECHO_T}no" >&6
8274 fi
8275
8276
a848cd7e
SC
8277 enablestring=
8278 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-display" >&5
8279echo $ECHO_N "checking for --${enablestring:-enable}-display... $ECHO_C" >&6
8280 no_cache=0
8281 # Check whether --enable-display or --disable-display was given.
8282if test "${enable_display+set}" = set; then
8283 enableval="$enable_display"
8284
8285 if test "$enableval" = yes; then
8286 ac_cv_use_display='wxUSE_DISPLAY=yes'
8287 else
8288 ac_cv_use_display='wxUSE_DISPLAY=no'
8289 fi
8290
8291else
8292
8293 LINE=`grep "wxUSE_DISPLAY" ${wx_arg_cache_file}`
8294 if test "x$LINE" != x ; then
8295 eval "DEFAULT_$LINE"
8296 else
8297 no_cache=1
8298 fi
8299
8300 ac_cv_use_display='wxUSE_DISPLAY='$DEFAULT_wxUSE_DISPLAY
8301
8302fi;
8303
8304 eval "$ac_cv_use_display"
8305 if test "$no_cache" != 1; then
8306 echo $ac_cv_use_display >> ${wx_arg_cache_file}.tmp
8307 fi
8308
8309 if test "$wxUSE_DISPLAY" = yes; then
8310 echo "$as_me:$LINENO: result: yes" >&5
8311echo "${ECHO_T}yes" >&6
8312 else
8313 echo "$as_me:$LINENO: result: no" >&5
8314echo "${ECHO_T}no" >&6
8315 fi
8316
8317
e9263684
VZ
8318 enablestring=
8319 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-filepicker" >&5
8320echo $ECHO_N "checking for --${enablestring:-enable}-filepicker... $ECHO_C" >&6
8321 no_cache=0
8322 # Check whether --enable-filepicker or --disable-filepicker was given.
8323if test "${enable_filepicker+set}" = set; then
8324 enableval="$enable_filepicker"
8325
8326 if test "$enableval" = yes; then
8327 ac_cv_use_filepicker='wxUSE_FILEPICKERCTRL=yes'
8328 else
8329 ac_cv_use_filepicker='wxUSE_FILEPICKERCTRL=no'
8330 fi
8331
8332else
8333
8334 LINE=`grep "wxUSE_FILEPICKERCTRL" ${wx_arg_cache_file}`
8335 if test "x$LINE" != x ; then
8336 eval "DEFAULT_$LINE"
8337 else
8338 no_cache=1
8339 fi
8340
8341 ac_cv_use_filepicker='wxUSE_FILEPICKERCTRL='$DEFAULT_wxUSE_FILEPICKERCTRL
8342
8343fi;
8344
8345 eval "$ac_cv_use_filepicker"
8346 if test "$no_cache" != 1; then
8347 echo $ac_cv_use_filepicker >> ${wx_arg_cache_file}.tmp
8348 fi
8349
8350 if test "$wxUSE_FILEPICKERCTRL" = yes; then
8351 echo "$as_me:$LINENO: result: yes" >&5
8352echo "${ECHO_T}yes" >&6
8353 else
8354 echo "$as_me:$LINENO: result: no" >&5
8355echo "${ECHO_T}no" >&6
8356 fi
8357
8358
8359 enablestring=
8360 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fontpicker" >&5
8361echo $ECHO_N "checking for --${enablestring:-enable}-fontpicker... $ECHO_C" >&6
8362 no_cache=0
8363 # Check whether --enable-fontpicker or --disable-fontpicker was given.
8364if test "${enable_fontpicker+set}" = set; then
8365 enableval="$enable_fontpicker"
8366
8367 if test "$enableval" = yes; then
8368 ac_cv_use_fontpicker='wxUSE_FONTPICKERCTRL=yes'
8369 else
8370 ac_cv_use_fontpicker='wxUSE_FONTPICKERCTRL=no'
8371 fi
8372
8373else
8374
8375 LINE=`grep "wxUSE_FONTPICKERCTRL" ${wx_arg_cache_file}`
8376 if test "x$LINE" != x ; then
8377 eval "DEFAULT_$LINE"
8378 else
8379 no_cache=1
8380 fi
8381
8382 ac_cv_use_fontpicker='wxUSE_FONTPICKERCTRL='$DEFAULT_wxUSE_FONTPICKERCTRL
8383
8384fi;
8385
8386 eval "$ac_cv_use_fontpicker"
8387 if test "$no_cache" != 1; then
8388 echo $ac_cv_use_fontpicker >> ${wx_arg_cache_file}.tmp
8389 fi
8390
8391 if test "$wxUSE_FONTPICKERCTRL" = yes; then
8392 echo "$as_me:$LINENO: result: yes" >&5
8393echo "${ECHO_T}yes" >&6
8394 else
8395 echo "$as_me:$LINENO: result: no" >&5
8396echo "${ECHO_T}no" >&6
8397 fi
8398
8399
a848cd7e
SC
8400 enablestring=
8401 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gauge" >&5
8402echo $ECHO_N "checking for --${enablestring:-enable}-gauge... $ECHO_C" >&6
8403 no_cache=0
8404 # Check whether --enable-gauge or --disable-gauge was given.
8405if test "${enable_gauge+set}" = set; then
8406 enableval="$enable_gauge"
8407
8408 if test "$enableval" = yes; then
8409 ac_cv_use_gauge='wxUSE_GAUGE=yes'
8410 else
8411 ac_cv_use_gauge='wxUSE_GAUGE=no'
8412 fi
8413
8414else
8415
8416 LINE=`grep "wxUSE_GAUGE" ${wx_arg_cache_file}`
8417 if test "x$LINE" != x ; then
8418 eval "DEFAULT_$LINE"
8419 else
8420 no_cache=1
8421 fi
8422
8423 ac_cv_use_gauge='wxUSE_GAUGE='$DEFAULT_wxUSE_GAUGE
8424
8425fi;
8426
8427 eval "$ac_cv_use_gauge"
8428 if test "$no_cache" != 1; then
8429 echo $ac_cv_use_gauge >> ${wx_arg_cache_file}.tmp
8430 fi
8431
8432 if test "$wxUSE_GAUGE" = yes; then
8433 echo "$as_me:$LINENO: result: yes" >&5
8434echo "${ECHO_T}yes" >&6
8435 else
8436 echo "$as_me:$LINENO: result: no" >&5
8437echo "${ECHO_T}no" >&6
8438 fi
8439
8440
8441 enablestring=
8442 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-grid" >&5
8443echo $ECHO_N "checking for --${enablestring:-enable}-grid... $ECHO_C" >&6
8444 no_cache=0
8445 # Check whether --enable-grid or --disable-grid was given.
8446if test "${enable_grid+set}" = set; then
8447 enableval="$enable_grid"
8448
8449 if test "$enableval" = yes; then
8450 ac_cv_use_grid='wxUSE_GRID=yes'
8451 else
8452 ac_cv_use_grid='wxUSE_GRID=no'
8453 fi
8454
8455else
8456
8457 LINE=`grep "wxUSE_GRID" ${wx_arg_cache_file}`
8458 if test "x$LINE" != x ; then
8459 eval "DEFAULT_$LINE"
8460 else
8461 no_cache=1
8462 fi
8463
8464 ac_cv_use_grid='wxUSE_GRID='$DEFAULT_wxUSE_GRID
8465
8466fi;
8467
8468 eval "$ac_cv_use_grid"
8469 if test "$no_cache" != 1; then
8470 echo $ac_cv_use_grid >> ${wx_arg_cache_file}.tmp
8471 fi
8472
8473 if test "$wxUSE_GRID" = yes; then
8474 echo "$as_me:$LINENO: result: yes" >&5
8475echo "${ECHO_T}yes" >&6
8476 else
8477 echo "$as_me:$LINENO: result: no" >&5
8478echo "${ECHO_T}no" >&6
8479 fi
8480
8481
20e34ecc
RR
8482 enablestring=
8483 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dataviewctrl" >&5
8484echo $ECHO_N "checking for --${enablestring:-enable}-dataviewctrl... $ECHO_C" >&6
8485 no_cache=0
8486 # Check whether --enable-dataviewctrl or --disable-dataviewctrl was given.
8487if test "${enable_dataviewctrl+set}" = set; then
8488 enableval="$enable_dataviewctrl"
8489
8490 if test "$enableval" = yes; then
8491 ac_cv_use_dataviewctrl='wxUSE_DATAVIEWCTRL=yes'
8492 else
8493 ac_cv_use_dataviewctrl='wxUSE_DATAVIEWCTRL=no'
8494 fi
8495
8496else
8497
8498 LINE=`grep "wxUSE_DATAVIEWCTRL" ${wx_arg_cache_file}`
8499 if test "x$LINE" != x ; then
8500 eval "DEFAULT_$LINE"
8501 else
8502 no_cache=1
8503 fi
8504
8505 ac_cv_use_dataviewctrl='wxUSE_DATAVIEWCTRL='$DEFAULT_wxUSE_DATAVIEWCTRL
8506
8507fi;
8508
8509 eval "$ac_cv_use_dataviewctrl"
8510 if test "$no_cache" != 1; then
8511 echo $ac_cv_use_dataviewctrl >> ${wx_arg_cache_file}.tmp
8512 fi
8513
8514 if test "$wxUSE_DATAVIEWCTRL" = yes; then
8515 echo "$as_me:$LINENO: result: yes" >&5
8516echo "${ECHO_T}yes" >&6
8517 else
8518 echo "$as_me:$LINENO: result: no" >&5
8519echo "${ECHO_T}no" >&6
8520 fi
8521
8522
6954625c
VZ
8523 enablestring=
8524 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-hyperlink" >&5
8525echo $ECHO_N "checking for --${enablestring:-enable}-hyperlink... $ECHO_C" >&6
8526 no_cache=0
8527 # Check whether --enable-hyperlink or --disable-hyperlink was given.
8528if test "${enable_hyperlink+set}" = set; then
8529 enableval="$enable_hyperlink"
8530
8531 if test "$enableval" = yes; then
8532 ac_cv_use_hyperlink='wxUSE_HYPERLINKCTRL=yes'
8533 else
8534 ac_cv_use_hyperlink='wxUSE_HYPERLINKCTRL=no'
8535 fi
8536
8537else
8538
8539 LINE=`grep "wxUSE_HYPERLINKCTRL" ${wx_arg_cache_file}`
8540 if test "x$LINE" != x ; then
8541 eval "DEFAULT_$LINE"
8542 else
8543 no_cache=1
8544 fi
8545
8546 ac_cv_use_hyperlink='wxUSE_HYPERLINKCTRL='$DEFAULT_wxUSE_HYPERLINKCTRL
8547
8548fi;
8549
8550 eval "$ac_cv_use_hyperlink"
8551 if test "$no_cache" != 1; then
8552 echo $ac_cv_use_hyperlink >> ${wx_arg_cache_file}.tmp
8553 fi
8554
8555 if test "$wxUSE_HYPERLINKCTRL" = yes; then
8556 echo "$as_me:$LINENO: result: yes" >&5
8557echo "${ECHO_T}yes" >&6
8558 else
8559 echo "$as_me:$LINENO: result: no" >&5
8560echo "${ECHO_T}no" >&6
8561 fi
8562
8563
a848cd7e
SC
8564 enablestring=
8565 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-imaglist" >&5
8566echo $ECHO_N "checking for --${enablestring:-enable}-imaglist... $ECHO_C" >&6
8567 no_cache=0
8568 # Check whether --enable-imaglist or --disable-imaglist was given.
8569if test "${enable_imaglist+set}" = set; then
8570 enableval="$enable_imaglist"
8571
8572 if test "$enableval" = yes; then
8573 ac_cv_use_imaglist='wxUSE_IMAGLIST=yes'
8574 else
8575 ac_cv_use_imaglist='wxUSE_IMAGLIST=no'
8576 fi
8577
8578else
8579
8580 LINE=`grep "wxUSE_IMAGLIST" ${wx_arg_cache_file}`
8581 if test "x$LINE" != x ; then
8582 eval "DEFAULT_$LINE"
8583 else
8584 no_cache=1
8585 fi
8586
8587 ac_cv_use_imaglist='wxUSE_IMAGLIST='$DEFAULT_wxUSE_IMAGLIST
8588
8589fi;
8590
8591 eval "$ac_cv_use_imaglist"
8592 if test "$no_cache" != 1; then
8593 echo $ac_cv_use_imaglist >> ${wx_arg_cache_file}.tmp
8594 fi
8595
8596 if test "$wxUSE_IMAGLIST" = yes; then
8597 echo "$as_me:$LINENO: result: yes" >&5
8598echo "${ECHO_T}yes" >&6
8599 else
8600 echo "$as_me:$LINENO: result: no" >&5
8601echo "${ECHO_T}no" >&6
8602 fi
8603
8604
8605 enablestring=
8606 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listbook" >&5
8607echo $ECHO_N "checking for --${enablestring:-enable}-listbook... $ECHO_C" >&6
8608 no_cache=0
8609 # Check whether --enable-listbook or --disable-listbook was given.
8610if test "${enable_listbook+set}" = set; then
8611 enableval="$enable_listbook"
8612
8613 if test "$enableval" = yes; then
8614 ac_cv_use_listbook='wxUSE_LISTBOOK=yes'
8615 else
8616 ac_cv_use_listbook='wxUSE_LISTBOOK=no'
8617 fi
8618
8619else
8620
8621 LINE=`grep "wxUSE_LISTBOOK" ${wx_arg_cache_file}`
8622 if test "x$LINE" != x ; then
8623 eval "DEFAULT_$LINE"
8624 else
8625 no_cache=1
8626 fi
8627
8628 ac_cv_use_listbook='wxUSE_LISTBOOK='$DEFAULT_wxUSE_LISTBOOK
8629
8630fi;
8631
8632 eval "$ac_cv_use_listbook"
8633 if test "$no_cache" != 1; then
8634 echo $ac_cv_use_listbook >> ${wx_arg_cache_file}.tmp
8635 fi
8636
8637 if test "$wxUSE_LISTBOOK" = yes; then
8638 echo "$as_me:$LINENO: result: yes" >&5
8639echo "${ECHO_T}yes" >&6
8640 else
8641 echo "$as_me:$LINENO: result: no" >&5
8642echo "${ECHO_T}no" >&6
8643 fi
8644
8645
8646 enablestring=
8647 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listbox" >&5
8648echo $ECHO_N "checking for --${enablestring:-enable}-listbox... $ECHO_C" >&6
8649 no_cache=0
8650 # Check whether --enable-listbox or --disable-listbox was given.
8651if test "${enable_listbox+set}" = set; then
8652 enableval="$enable_listbox"
8653
8654 if test "$enableval" = yes; then
8655 ac_cv_use_listbox='wxUSE_LISTBOX=yes'
8656 else
8657 ac_cv_use_listbox='wxUSE_LISTBOX=no'
8658 fi
8659
8660else
8661
8662 LINE=`grep "wxUSE_LISTBOX" ${wx_arg_cache_file}`
8663 if test "x$LINE" != x ; then
8664 eval "DEFAULT_$LINE"
8665 else
8666 no_cache=1
8667 fi
8668
8669 ac_cv_use_listbox='wxUSE_LISTBOX='$DEFAULT_wxUSE_LISTBOX
8670
8671fi;
8672
8673 eval "$ac_cv_use_listbox"
8674 if test "$no_cache" != 1; then
8675 echo $ac_cv_use_listbox >> ${wx_arg_cache_file}.tmp
8676 fi
8677
8678 if test "$wxUSE_LISTBOX" = yes; then
8679 echo "$as_me:$LINENO: result: yes" >&5
8680echo "${ECHO_T}yes" >&6
8681 else
8682 echo "$as_me:$LINENO: result: no" >&5
8683echo "${ECHO_T}no" >&6
8684 fi
8685
8686
8687 enablestring=
8688 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listctrl" >&5
8689echo $ECHO_N "checking for --${enablestring:-enable}-listctrl... $ECHO_C" >&6
8690 no_cache=0
8691 # Check whether --enable-listctrl or --disable-listctrl was given.
8692if test "${enable_listctrl+set}" = set; then
8693 enableval="$enable_listctrl"
8694
8695 if test "$enableval" = yes; then
8696 ac_cv_use_listctrl='wxUSE_LISTCTRL=yes'
8697 else
8698 ac_cv_use_listctrl='wxUSE_LISTCTRL=no'
8699 fi
8700
8701else
8702
8703 LINE=`grep "wxUSE_LISTCTRL" ${wx_arg_cache_file}`
8704 if test "x$LINE" != x ; then
8705 eval "DEFAULT_$LINE"
8706 else
8707 no_cache=1
8708 fi
8709
8710 ac_cv_use_listctrl='wxUSE_LISTCTRL='$DEFAULT_wxUSE_LISTCTRL
8711
8712fi;
8713
8714 eval "$ac_cv_use_listctrl"
8715 if test "$no_cache" != 1; then
8716 echo $ac_cv_use_listctrl >> ${wx_arg_cache_file}.tmp
8717 fi
8718
8719 if test "$wxUSE_LISTCTRL" = yes; then
8720 echo "$as_me:$LINENO: result: yes" >&5
8721echo "${ECHO_T}yes" >&6
8722 else
8723 echo "$as_me:$LINENO: result: no" >&5
8724echo "${ECHO_T}no" >&6
8725 fi
8726
8727
8728 enablestring=
8729 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-notebook" >&5
8730echo $ECHO_N "checking for --${enablestring:-enable}-notebook... $ECHO_C" >&6
8731 no_cache=0
8732 # Check whether --enable-notebook or --disable-notebook was given.
8733if test "${enable_notebook+set}" = set; then
8734 enableval="$enable_notebook"
8735
8736 if test "$enableval" = yes; then
8737 ac_cv_use_notebook='wxUSE_NOTEBOOK=yes'
8738 else
8739 ac_cv_use_notebook='wxUSE_NOTEBOOK=no'
8740 fi
8741
8742else
8743
8744 LINE=`grep "wxUSE_NOTEBOOK" ${wx_arg_cache_file}`
8745 if test "x$LINE" != x ; then
8746 eval "DEFAULT_$LINE"
8747 else
8748 no_cache=1
8749 fi
8750
8751 ac_cv_use_notebook='wxUSE_NOTEBOOK='$DEFAULT_wxUSE_NOTEBOOK
8752
8753fi;
8754
8755 eval "$ac_cv_use_notebook"
8756 if test "$no_cache" != 1; then
8757 echo $ac_cv_use_notebook >> ${wx_arg_cache_file}.tmp
8758 fi
8759
8760 if test "$wxUSE_NOTEBOOK" = yes; then
8761 echo "$as_me:$LINENO: result: yes" >&5
8762echo "${ECHO_T}yes" >&6
8763 else
8764 echo "$as_me:$LINENO: result: no" >&5
8765echo "${ECHO_T}no" >&6
8766 fi
8767
8768
642bcba9 8769 enablestring=
a57d600f
VZ
8770 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-odcombobox" >&5
8771echo $ECHO_N "checking for --${enablestring:-enable}-odcombobox... $ECHO_C" >&6
642bcba9 8772 no_cache=0
a57d600f
VZ
8773 # Check whether --enable-odcombobox or --disable-odcombobox was given.
8774if test "${enable_odcombobox+set}" = set; then
8775 enableval="$enable_odcombobox"
642bcba9
VZ
8776
8777 if test "$enableval" = yes; then
a57d600f 8778 ac_cv_use_odcombobox='wxUSE_ODCOMBOBOX=yes'
642bcba9 8779 else
a57d600f 8780 ac_cv_use_odcombobox='wxUSE_ODCOMBOBOX=no'
642bcba9
VZ
8781 fi
8782
8783else
8784
a57d600f 8785 LINE=`grep "wxUSE_ODCOMBOBOX" ${wx_arg_cache_file}`
642bcba9
VZ
8786 if test "x$LINE" != x ; then
8787 eval "DEFAULT_$LINE"
8788 else
8789 no_cache=1
8790 fi
8791
a57d600f 8792 ac_cv_use_odcombobox='wxUSE_ODCOMBOBOX='$DEFAULT_wxUSE_ODCOMBOBOX
642bcba9
VZ
8793
8794fi;
8795
a57d600f 8796 eval "$ac_cv_use_odcombobox"
642bcba9 8797 if test "$no_cache" != 1; then
a57d600f 8798 echo $ac_cv_use_odcombobox >> ${wx_arg_cache_file}.tmp
642bcba9
VZ
8799 fi
8800
a57d600f 8801 if test "$wxUSE_ODCOMBOBOX" = yes; then
642bcba9
VZ
8802 echo "$as_me:$LINENO: result: yes" >&5
8803echo "${ECHO_T}yes" >&6
8804 else
8805 echo "$as_me:$LINENO: result: no" >&5
8806echo "${ECHO_T}no" >&6
8807 fi
8808
8809
a848cd7e
SC
8810 enablestring=
8811 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-radiobox" >&5
8812echo $ECHO_N "checking for --${enablestring:-enable}-radiobox... $ECHO_C" >&6
8813 no_cache=0
8814 # Check whether --enable-radiobox or --disable-radiobox was given.
8815if test "${enable_radiobox+set}" = set; then
8816 enableval="$enable_radiobox"
8817
8818 if test "$enableval" = yes; then
8819 ac_cv_use_radiobox='wxUSE_RADIOBOX=yes'
8820 else
8821 ac_cv_use_radiobox='wxUSE_RADIOBOX=no'
8822 fi
8823
8824else
8825
8826 LINE=`grep "wxUSE_RADIOBOX" ${wx_arg_cache_file}`
8827 if test "x$LINE" != x ; then
8828 eval "DEFAULT_$LINE"
8829 else
8830 no_cache=1
8831 fi
8832
8833 ac_cv_use_radiobox='wxUSE_RADIOBOX='$DEFAULT_wxUSE_RADIOBOX
8834
8835fi;
8836
8837 eval "$ac_cv_use_radiobox"
8838 if test "$no_cache" != 1; then
8839 echo $ac_cv_use_radiobox >> ${wx_arg_cache_file}.tmp
8840 fi
8841
8842 if test "$wxUSE_RADIOBOX" = yes; then
8843 echo "$as_me:$LINENO: result: yes" >&5
8844echo "${ECHO_T}yes" >&6
8845 else
8846 echo "$as_me:$LINENO: result: no" >&5
8847echo "${ECHO_T}no" >&6
8848 fi
8849
8850
8851 enablestring=
8852 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-radiobtn" >&5
8853echo $ECHO_N "checking for --${enablestring:-enable}-radiobtn... $ECHO_C" >&6
8854 no_cache=0
8855 # Check whether --enable-radiobtn or --disable-radiobtn was given.
8856if test "${enable_radiobtn+set}" = set; then
8857 enableval="$enable_radiobtn"
8858
8859 if test "$enableval" = yes; then
8860 ac_cv_use_radiobtn='wxUSE_RADIOBTN=yes'
8861 else
8862 ac_cv_use_radiobtn='wxUSE_RADIOBTN=no'
8863 fi
8864
8865else
8866
8867 LINE=`grep "wxUSE_RADIOBTN" ${wx_arg_cache_file}`
8868 if test "x$LINE" != x ; then
8869 eval "DEFAULT_$LINE"
8870 else
8871 no_cache=1
8872 fi
8873
8874 ac_cv_use_radiobtn='wxUSE_RADIOBTN='$DEFAULT_wxUSE_RADIOBTN
8875
8876fi;
8877
8878 eval "$ac_cv_use_radiobtn"
8879 if test "$no_cache" != 1; then
8880 echo $ac_cv_use_radiobtn >> ${wx_arg_cache_file}.tmp
8881 fi
8882
8883 if test "$wxUSE_RADIOBTN" = yes; then
8884 echo "$as_me:$LINENO: result: yes" >&5
8885echo "${ECHO_T}yes" >&6
8886 else
8887 echo "$as_me:$LINENO: result: no" >&5
8888echo "${ECHO_T}no" >&6
8889 fi
8890
8891
8892 enablestring=
8893 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sash" >&5
8894echo $ECHO_N "checking for --${enablestring:-enable}-sash... $ECHO_C" >&6
8895 no_cache=0
8896 # Check whether --enable-sash or --disable-sash was given.
8897if test "${enable_sash+set}" = set; then
8898 enableval="$enable_sash"
8899
8900 if test "$enableval" = yes; then
8901 ac_cv_use_sash='wxUSE_SASH=yes'
8902 else
8903 ac_cv_use_sash='wxUSE_SASH=no'
8904 fi
8905
8906else
8907
8908 LINE=`grep "wxUSE_SASH" ${wx_arg_cache_file}`
8909 if test "x$LINE" != x ; then
8910 eval "DEFAULT_$LINE"
8911 else
8912 no_cache=1
8913 fi
8914
8915 ac_cv_use_sash='wxUSE_SASH='$DEFAULT_wxUSE_SASH
8916
8917fi;
8918
8919 eval "$ac_cv_use_sash"
8920 if test "$no_cache" != 1; then
8921 echo $ac_cv_use_sash >> ${wx_arg_cache_file}.tmp
8922 fi
8923
8924 if test "$wxUSE_SASH" = yes; then
8925 echo "$as_me:$LINENO: result: yes" >&5
8926echo "${ECHO_T}yes" >&6
8927 else
8928 echo "$as_me:$LINENO: result: no" >&5
8929echo "${ECHO_T}no" >&6
8930 fi
8931
8932
8933 enablestring=
8934 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-scrollbar" >&5
8935echo $ECHO_N "checking for --${enablestring:-enable}-scrollbar... $ECHO_C" >&6
8936 no_cache=0
8937 # Check whether --enable-scrollbar or --disable-scrollbar was given.
8938if test "${enable_scrollbar+set}" = set; then
8939 enableval="$enable_scrollbar"
8940
8941 if test "$enableval" = yes; then
8942 ac_cv_use_scrollbar='wxUSE_SCROLLBAR=yes'
8943 else
8944 ac_cv_use_scrollbar='wxUSE_SCROLLBAR=no'
8945 fi
8946
8947else
8948
8949 LINE=`grep "wxUSE_SCROLLBAR" ${wx_arg_cache_file}`
8950 if test "x$LINE" != x ; then
8951 eval "DEFAULT_$LINE"
8952 else
8953 no_cache=1
8954 fi
8955
8956 ac_cv_use_scrollbar='wxUSE_SCROLLBAR='$DEFAULT_wxUSE_SCROLLBAR
8957
8958fi;
8959
8960 eval "$ac_cv_use_scrollbar"
8961 if test "$no_cache" != 1; then
8962 echo $ac_cv_use_scrollbar >> ${wx_arg_cache_file}.tmp
8963 fi
8964
8965 if test "$wxUSE_SCROLLBAR" = yes; then
8966 echo "$as_me:$LINENO: result: yes" >&5
8967echo "${ECHO_T}yes" >&6
8968 else
8969 echo "$as_me:$LINENO: result: no" >&5
8970echo "${ECHO_T}no" >&6
8971 fi
8972
8973
8974 enablestring=
8975 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-slider" >&5
8976echo $ECHO_N "checking for --${enablestring:-enable}-slider... $ECHO_C" >&6
8977 no_cache=0
8978 # Check whether --enable-slider or --disable-slider was given.
8979if test "${enable_slider+set}" = set; then
8980 enableval="$enable_slider"
8981
8982 if test "$enableval" = yes; then
8983 ac_cv_use_slider='wxUSE_SLIDER=yes'
8984 else
8985 ac_cv_use_slider='wxUSE_SLIDER=no'
8986 fi
8987
8988else
8989
8990 LINE=`grep "wxUSE_SLIDER" ${wx_arg_cache_file}`
8991 if test "x$LINE" != x ; then
8992 eval "DEFAULT_$LINE"
8993 else
8994 no_cache=1
8995 fi
8996
8997 ac_cv_use_slider='wxUSE_SLIDER='$DEFAULT_wxUSE_SLIDER
8998
8999fi;
9000
9001 eval "$ac_cv_use_slider"
9002 if test "$no_cache" != 1; then
9003 echo $ac_cv_use_slider >> ${wx_arg_cache_file}.tmp
9004 fi
9005
9006 if test "$wxUSE_SLIDER" = yes; then
9007 echo "$as_me:$LINENO: result: yes" >&5
9008echo "${ECHO_T}yes" >&6
9009 else
9010 echo "$as_me:$LINENO: result: no" >&5
9011echo "${ECHO_T}no" >&6
9012 fi
9013
9014
9015 enablestring=
9016 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-spinbtn" >&5
9017echo $ECHO_N "checking for --${enablestring:-enable}-spinbtn... $ECHO_C" >&6
9018 no_cache=0
9019 # Check whether --enable-spinbtn or --disable-spinbtn was given.
9020if test "${enable_spinbtn+set}" = set; then
9021 enableval="$enable_spinbtn"
9022
9023 if test "$enableval" = yes; then
9024 ac_cv_use_spinbtn='wxUSE_SPINBTN=yes'
9025 else
9026 ac_cv_use_spinbtn='wxUSE_SPINBTN=no'
9027 fi
9028
9029else
9030
9031 LINE=`grep "wxUSE_SPINBTN" ${wx_arg_cache_file}`
9032 if test "x$LINE" != x ; then
9033 eval "DEFAULT_$LINE"
9034 else
9035 no_cache=1
9036 fi
9037
9038 ac_cv_use_spinbtn='wxUSE_SPINBTN='$DEFAULT_wxUSE_SPINBTN
9039
9040fi;
9041
9042 eval "$ac_cv_use_spinbtn"
9043 if test "$no_cache" != 1; then
9044 echo $ac_cv_use_spinbtn >> ${wx_arg_cache_file}.tmp
9045 fi
9046
9047 if test "$wxUSE_SPINBTN" = yes; then
9048 echo "$as_me:$LINENO: result: yes" >&5
9049echo "${ECHO_T}yes" >&6
9050 else
9051 echo "$as_me:$LINENO: result: no" >&5
9052echo "${ECHO_T}no" >&6
9053 fi
9054
9055
9056 enablestring=
9057 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-spinctrl" >&5
9058echo $ECHO_N "checking for --${enablestring:-enable}-spinctrl... $ECHO_C" >&6
9059 no_cache=0
9060 # Check whether --enable-spinctrl or --disable-spinctrl was given.
9061if test "${enable_spinctrl+set}" = set; then
9062 enableval="$enable_spinctrl"
9063
9064 if test "$enableval" = yes; then
9065 ac_cv_use_spinctrl='wxUSE_SPINCTRL=yes'
9066 else
9067 ac_cv_use_spinctrl='wxUSE_SPINCTRL=no'
9068 fi
9069
9070else
9071
9072 LINE=`grep "wxUSE_SPINCTRL" ${wx_arg_cache_file}`
9073 if test "x$LINE" != x ; then
9074 eval "DEFAULT_$LINE"
9075 else
9076 no_cache=1
9077 fi
9078
9079 ac_cv_use_spinctrl='wxUSE_SPINCTRL='$DEFAULT_wxUSE_SPINCTRL
9080
9081fi;
9082
9083 eval "$ac_cv_use_spinctrl"
9084 if test "$no_cache" != 1; then
9085 echo $ac_cv_use_spinctrl >> ${wx_arg_cache_file}.tmp
9086 fi
9087
9088 if test "$wxUSE_SPINCTRL" = yes; then
9089 echo "$as_me:$LINENO: result: yes" >&5
9090echo "${ECHO_T}yes" >&6
9091 else
9092 echo "$as_me:$LINENO: result: no" >&5
9093echo "${ECHO_T}no" >&6
9094 fi
9095
9096
9097 enablestring=
9098 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splitter" >&5
9099echo $ECHO_N "checking for --${enablestring:-enable}-splitter... $ECHO_C" >&6
9100 no_cache=0
9101 # Check whether --enable-splitter or --disable-splitter was given.
9102if test "${enable_splitter+set}" = set; then
9103 enableval="$enable_splitter"
9104
9105 if test "$enableval" = yes; then
9106 ac_cv_use_splitter='wxUSE_SPLITTER=yes'
9107 else
9108 ac_cv_use_splitter='wxUSE_SPLITTER=no'
9109 fi
9110
9111else
9112
9113 LINE=`grep "wxUSE_SPLITTER" ${wx_arg_cache_file}`
9114 if test "x$LINE" != x ; then
9115 eval "DEFAULT_$LINE"
9116 else
9117 no_cache=1
9118 fi
9119
9120 ac_cv_use_splitter='wxUSE_SPLITTER='$DEFAULT_wxUSE_SPLITTER
9121
9122fi;
9123
9124 eval "$ac_cv_use_splitter"
9125 if test "$no_cache" != 1; then
9126 echo $ac_cv_use_splitter >> ${wx_arg_cache_file}.tmp
9127 fi
9128
9129 if test "$wxUSE_SPLITTER" = yes; then
9130 echo "$as_me:$LINENO: result: yes" >&5
9131echo "${ECHO_T}yes" >&6
9132 else
9133 echo "$as_me:$LINENO: result: no" >&5
9134echo "${ECHO_T}no" >&6
9135 fi
9136
9137
9138 enablestring=
9139 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statbmp" >&5
9140echo $ECHO_N "checking for --${enablestring:-enable}-statbmp... $ECHO_C" >&6
9141 no_cache=0
9142 # Check whether --enable-statbmp or --disable-statbmp was given.
9143if test "${enable_statbmp+set}" = set; then
9144 enableval="$enable_statbmp"
9145
9146 if test "$enableval" = yes; then
9147 ac_cv_use_statbmp='wxUSE_STATBMP=yes'
9148 else
9149 ac_cv_use_statbmp='wxUSE_STATBMP=no'
9150 fi
9151
9152else
9153
9154 LINE=`grep "wxUSE_STATBMP" ${wx_arg_cache_file}`
9155 if test "x$LINE" != x ; then
9156 eval "DEFAULT_$LINE"
9157 else
9158 no_cache=1
9159 fi
9160
9161 ac_cv_use_statbmp='wxUSE_STATBMP='$DEFAULT_wxUSE_STATBMP
9162
9163fi;
9164
9165 eval "$ac_cv_use_statbmp"
9166 if test "$no_cache" != 1; then
9167 echo $ac_cv_use_statbmp >> ${wx_arg_cache_file}.tmp
9168 fi
9169
9170 if test "$wxUSE_STATBMP" = yes; then
9171 echo "$as_me:$LINENO: result: yes" >&5
9172echo "${ECHO_T}yes" >&6
9173 else
9174 echo "$as_me:$LINENO: result: no" >&5
9175echo "${ECHO_T}no" >&6
9176 fi
9177
9178
9179 enablestring=
9180 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statbox" >&5
9181echo $ECHO_N "checking for --${enablestring:-enable}-statbox... $ECHO_C" >&6
9182 no_cache=0
9183 # Check whether --enable-statbox or --disable-statbox was given.
9184if test "${enable_statbox+set}" = set; then
9185 enableval="$enable_statbox"
9186
9187 if test "$enableval" = yes; then
9188 ac_cv_use_statbox='wxUSE_STATBOX=yes'
9189 else
9190 ac_cv_use_statbox='wxUSE_STATBOX=no'
9191 fi
9192
9193else
9194
9195 LINE=`grep "wxUSE_STATBOX" ${wx_arg_cache_file}`
9196 if test "x$LINE" != x ; then
9197 eval "DEFAULT_$LINE"
9198 else
9199 no_cache=1
9200 fi
9201
9202 ac_cv_use_statbox='wxUSE_STATBOX='$DEFAULT_wxUSE_STATBOX
9203
9204fi;
9205
9206 eval "$ac_cv_use_statbox"
9207 if test "$no_cache" != 1; then
9208 echo $ac_cv_use_statbox >> ${wx_arg_cache_file}.tmp
9209 fi
9210
9211 if test "$wxUSE_STATBOX" = yes; then
9212 echo "$as_me:$LINENO: result: yes" >&5
9213echo "${ECHO_T}yes" >&6
9214 else
9215 echo "$as_me:$LINENO: result: no" >&5
9216echo "${ECHO_T}no" >&6
9217 fi
9218
9219
9220 enablestring=
9221 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statline" >&5
9222echo $ECHO_N "checking for --${enablestring:-enable}-statline... $ECHO_C" >&6
9223 no_cache=0
9224 # Check whether --enable-statline or --disable-statline was given.
9225if test "${enable_statline+set}" = set; then
9226 enableval="$enable_statline"
9227
9228 if test "$enableval" = yes; then
9229 ac_cv_use_statline='wxUSE_STATLINE=yes'
9230 else
9231 ac_cv_use_statline='wxUSE_STATLINE=no'
9232 fi
9233
9234else
9235
9236 LINE=`grep "wxUSE_STATLINE" ${wx_arg_cache_file}`
9237 if test "x$LINE" != x ; then
9238 eval "DEFAULT_$LINE"
9239 else
9240 no_cache=1
9241 fi
9242
9243 ac_cv_use_statline='wxUSE_STATLINE='$DEFAULT_wxUSE_STATLINE
9244
9245fi;
9246
9247 eval "$ac_cv_use_statline"
9248 if test "$no_cache" != 1; then
9249 echo $ac_cv_use_statline >> ${wx_arg_cache_file}.tmp
9250 fi
9251
9252 if test "$wxUSE_STATLINE" = yes; then
9253 echo "$as_me:$LINENO: result: yes" >&5
9254echo "${ECHO_T}yes" >&6
9255 else
9256 echo "$as_me:$LINENO: result: no" >&5
9257echo "${ECHO_T}no" >&6
9258 fi
9259
9260
9261 enablestring=
9262 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stattext" >&5
9263echo $ECHO_N "checking for --${enablestring:-enable}-stattext... $ECHO_C" >&6
9264 no_cache=0
9265 # Check whether --enable-stattext or --disable-stattext was given.
9266if test "${enable_stattext+set}" = set; then
9267 enableval="$enable_stattext"
9268
9269 if test "$enableval" = yes; then
9270 ac_cv_use_stattext='wxUSE_STATTEXT=yes'
9271 else
9272 ac_cv_use_stattext='wxUSE_STATTEXT=no'
9273 fi
9274
9275else
9276
9277 LINE=`grep "wxUSE_STATTEXT" ${wx_arg_cache_file}`
9278 if test "x$LINE" != x ; then
9279 eval "DEFAULT_$LINE"
9280 else
9281 no_cache=1
9282 fi
9283
9284 ac_cv_use_stattext='wxUSE_STATTEXT='$DEFAULT_wxUSE_STATTEXT
9285
9286fi;
9287
9288 eval "$ac_cv_use_stattext"
9289 if test "$no_cache" != 1; then
9290 echo $ac_cv_use_stattext >> ${wx_arg_cache_file}.tmp
9291 fi
9292
9293 if test "$wxUSE_STATTEXT" = yes; then
9294 echo "$as_me:$LINENO: result: yes" >&5
9295echo "${ECHO_T}yes" >&6
9296 else
9297 echo "$as_me:$LINENO: result: no" >&5
9298echo "${ECHO_T}no" >&6
9299 fi
9300
9301
9302 enablestring=
9303 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statusbar" >&5
9304echo $ECHO_N "checking for --${enablestring:-enable}-statusbar... $ECHO_C" >&6
9305 no_cache=0
9306 # Check whether --enable-statusbar or --disable-statusbar was given.
9307if test "${enable_statusbar+set}" = set; then
9308 enableval="$enable_statusbar"
9309
9310 if test "$enableval" = yes; then
9311 ac_cv_use_statusbar='wxUSE_STATUSBAR=yes'
9312 else
9313 ac_cv_use_statusbar='wxUSE_STATUSBAR=no'
9314 fi
9315
9316else
9317
9318 LINE=`grep "wxUSE_STATUSBAR" ${wx_arg_cache_file}`
9319 if test "x$LINE" != x ; then
9320 eval "DEFAULT_$LINE"
9321 else
9322 no_cache=1
9323 fi
9324
9325 ac_cv_use_statusbar='wxUSE_STATUSBAR='$DEFAULT_wxUSE_STATUSBAR
9326
9327fi;
9328
9329 eval "$ac_cv_use_statusbar"
9330 if test "$no_cache" != 1; then
9331 echo $ac_cv_use_statusbar >> ${wx_arg_cache_file}.tmp
9332 fi
9333
9334 if test "$wxUSE_STATUSBAR" = yes; then
9335 echo "$as_me:$LINENO: result: yes" >&5
9336echo "${ECHO_T}yes" >&6
9337 else
9338 echo "$as_me:$LINENO: result: no" >&5
9339echo "${ECHO_T}no" >&6
9340 fi
9341
9342
9343 enablestring=
9344 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tabdialog" >&5
9345echo $ECHO_N "checking for --${enablestring:-enable}-tabdialog... $ECHO_C" >&6
9346 no_cache=0
9347 # Check whether --enable-tabdialog or --disable-tabdialog was given.
9348if test "${enable_tabdialog+set}" = set; then
9349 enableval="$enable_tabdialog"
9350
9351 if test "$enableval" = yes; then
f10e38c4 9352 ac_cv_use_tabdialog='wxUSE_TAB_DIALOG=yes'
a848cd7e 9353 else
f10e38c4 9354 ac_cv_use_tabdialog='wxUSE_TAB_DIALOG=no'
a848cd7e
SC
9355 fi
9356
9357else
9358
f10e38c4 9359 LINE=`grep "wxUSE_TAB_DIALOG" ${wx_arg_cache_file}`
a848cd7e
SC
9360 if test "x$LINE" != x ; then
9361 eval "DEFAULT_$LINE"
9362 else
9363 no_cache=1
9364 fi
9365
f10e38c4 9366 ac_cv_use_tabdialog='wxUSE_TAB_DIALOG='$DEFAULT_wxUSE_TAB_DIALOG
a848cd7e
SC
9367
9368fi;
9369
9370 eval "$ac_cv_use_tabdialog"
9371 if test "$no_cache" != 1; then
9372 echo $ac_cv_use_tabdialog >> ${wx_arg_cache_file}.tmp
9373 fi
9374
f10e38c4 9375 if test "$wxUSE_TAB_DIALOG" = yes; then
a848cd7e
SC
9376 echo "$as_me:$LINENO: result: yes" >&5
9377echo "${ECHO_T}yes" >&6
9378 else
9379 echo "$as_me:$LINENO: result: no" >&5
9380echo "${ECHO_T}no" >&6
9381 fi
9382
9383
9384 enablestring=
9385 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textctrl" >&5
9386echo $ECHO_N "checking for --${enablestring:-enable}-textctrl... $ECHO_C" >&6
9387 no_cache=0
9388 # Check whether --enable-textctrl or --disable-textctrl was given.
9389if test "${enable_textctrl+set}" = set; then
9390 enableval="$enable_textctrl"
9391
9392 if test "$enableval" = yes; then
9393 ac_cv_use_textctrl='wxUSE_TEXTCTRL=yes'
9394 else
9395 ac_cv_use_textctrl='wxUSE_TEXTCTRL=no'
9396 fi
9397
9398else
9399
9400 LINE=`grep "wxUSE_TEXTCTRL" ${wx_arg_cache_file}`
9401 if test "x$LINE" != x ; then
9402 eval "DEFAULT_$LINE"
9403 else
9404 no_cache=1
9405 fi
9406
9407 ac_cv_use_textctrl='wxUSE_TEXTCTRL='$DEFAULT_wxUSE_TEXTCTRL
9408
9409fi;
9410
9411 eval "$ac_cv_use_textctrl"
9412 if test "$no_cache" != 1; then
9413 echo $ac_cv_use_textctrl >> ${wx_arg_cache_file}.tmp
9414 fi
9415
9416 if test "$wxUSE_TEXTCTRL" = yes; then
9417 echo "$as_me:$LINENO: result: yes" >&5
9418echo "${ECHO_T}yes" >&6
9419 else
9420 echo "$as_me:$LINENO: result: no" >&5
9421echo "${ECHO_T}no" >&6
9422 fi
9423
9424
9425 enablestring=
9426 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-togglebtn" >&5
9427echo $ECHO_N "checking for --${enablestring:-enable}-togglebtn... $ECHO_C" >&6
9428 no_cache=0
9429 # Check whether --enable-togglebtn or --disable-togglebtn was given.
9430if test "${enable_togglebtn+set}" = set; then
9431 enableval="$enable_togglebtn"
9432
9433 if test "$enableval" = yes; then
9434 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=yes'
9435 else
9436 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=no'
9437 fi
9438
9439else
9440
9441 LINE=`grep "wxUSE_TOGGLEBTN" ${wx_arg_cache_file}`
9442 if test "x$LINE" != x ; then
9443 eval "DEFAULT_$LINE"
9444 else
9445 no_cache=1
9446 fi
9447
9448 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN='$DEFAULT_wxUSE_TOGGLEBTN
9449
9450fi;
9451
9452 eval "$ac_cv_use_togglebtn"
9453 if test "$no_cache" != 1; then
9454 echo $ac_cv_use_togglebtn >> ${wx_arg_cache_file}.tmp
9455 fi
9456
9457 if test "$wxUSE_TOGGLEBTN" = yes; then
9458 echo "$as_me:$LINENO: result: yes" >&5
9459echo "${ECHO_T}yes" >&6
9460 else
9461 echo "$as_me:$LINENO: result: no" >&5
9462echo "${ECHO_T}no" >&6
9463 fi
9464
9465
9466 enablestring=
9467 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-toolbar" >&5
9468echo $ECHO_N "checking for --${enablestring:-enable}-toolbar... $ECHO_C" >&6
9469 no_cache=0
9470 # Check whether --enable-toolbar or --disable-toolbar was given.
9471if test "${enable_toolbar+set}" = set; then
9472 enableval="$enable_toolbar"
9473
9474 if test "$enableval" = yes; then
9475 ac_cv_use_toolbar='wxUSE_TOOLBAR=yes'
9476 else
9477 ac_cv_use_toolbar='wxUSE_TOOLBAR=no'
9478 fi
9479
9480else
9481
9482 LINE=`grep "wxUSE_TOOLBAR" ${wx_arg_cache_file}`
9483 if test "x$LINE" != x ; then
9484 eval "DEFAULT_$LINE"
9485 else
9486 no_cache=1
9487 fi
9488
9489 ac_cv_use_toolbar='wxUSE_TOOLBAR='$DEFAULT_wxUSE_TOOLBAR
9490
9491fi;
9492
9493 eval "$ac_cv_use_toolbar"
9494 if test "$no_cache" != 1; then
9495 echo $ac_cv_use_toolbar >> ${wx_arg_cache_file}.tmp
9496 fi
9497
9498 if test "$wxUSE_TOOLBAR" = yes; then
9499 echo "$as_me:$LINENO: result: yes" >&5
9500echo "${ECHO_T}yes" >&6
9501 else
9502 echo "$as_me:$LINENO: result: no" >&5
9503echo "${ECHO_T}no" >&6
9504 fi
9505
9506
9507 enablestring=
9508 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tbarnative" >&5
9509echo $ECHO_N "checking for --${enablestring:-enable}-tbarnative... $ECHO_C" >&6
9510 no_cache=0
9511 # Check whether --enable-tbarnative or --disable-tbarnative was given.
9512if test "${enable_tbarnative+set}" = set; then
9513 enableval="$enable_tbarnative"
9514
9515 if test "$enableval" = yes; then
9516 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=yes'
9517 else
9518 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=no'
9519 fi
9520
9521else
9522
9523 LINE=`grep "wxUSE_TOOLBAR_NATIVE" ${wx_arg_cache_file}`
9524 if test "x$LINE" != x ; then
9525 eval "DEFAULT_$LINE"
9526 else
9527 no_cache=1
9528 fi
9529
9530 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE='$DEFAULT_wxUSE_TOOLBAR_NATIVE
9531
9532fi;
9533
9534 eval "$ac_cv_use_tbarnative"
9535 if test "$no_cache" != 1; then
9536 echo $ac_cv_use_tbarnative >> ${wx_arg_cache_file}.tmp
9537 fi
9538
9539 if test "$wxUSE_TOOLBAR_NATIVE" = yes; then
9540 echo "$as_me:$LINENO: result: yes" >&5
9541echo "${ECHO_T}yes" >&6
9542 else
9543 echo "$as_me:$LINENO: result: no" >&5
9544echo "${ECHO_T}no" >&6
9545 fi
9546
9547
9548 enablestring=
9549 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tbarsmpl" >&5
9550echo $ECHO_N "checking for --${enablestring:-enable}-tbarsmpl... $ECHO_C" >&6
9551 no_cache=0
9552 # Check whether --enable-tbarsmpl or --disable-tbarsmpl was given.
9553if test "${enable_tbarsmpl+set}" = set; then
9554 enableval="$enable_tbarsmpl"
9555
9556 if test "$enableval" = yes; then
9557 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=yes'
9558 else
9559 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=no'
9560 fi
9561
9562else
9563
9564 LINE=`grep "wxUSE_TOOLBAR_SIMPLE" ${wx_arg_cache_file}`
9565 if test "x$LINE" != x ; then
9566 eval "DEFAULT_$LINE"
9567 else
9568 no_cache=1
9569 fi
9570
9571 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE='$DEFAULT_wxUSE_TOOLBAR_SIMPLE
9572
9573fi;
9574
9575 eval "$ac_cv_use_tbarsmpl"
9576 if test "$no_cache" != 1; then
9577 echo $ac_cv_use_tbarsmpl >> ${wx_arg_cache_file}.tmp
9578 fi
9579
9580 if test "$wxUSE_TOOLBAR_SIMPLE" = yes; then
9581 echo "$as_me:$LINENO: result: yes" >&5
9582echo "${ECHO_T}yes" >&6
9583 else
9584 echo "$as_me:$LINENO: result: no" >&5
9585echo "${ECHO_T}no" >&6
9586 fi
9587
9588
0093c2fc
VZ
9589 enablestring=
9590 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-treebook" >&5
9591echo $ECHO_N "checking for --${enablestring:-enable}-treebook... $ECHO_C" >&6
9592 no_cache=0
9593 # Check whether --enable-treebook or --disable-treebook was given.
9594if test "${enable_treebook+set}" = set; then
9595 enableval="$enable_treebook"
9596
9597 if test "$enableval" = yes; then
9598 ac_cv_use_treebook='wxUSE_TREEBOOK=yes'
9599 else
9600 ac_cv_use_treebook='wxUSE_TREEBOOK=no'
9601 fi
9602
9603else
9604
9605 LINE=`grep "wxUSE_TREEBOOK" ${wx_arg_cache_file}`
9606 if test "x$LINE" != x ; then
9607 eval "DEFAULT_$LINE"
9608 else
9609 no_cache=1
9610 fi
9611
9612 ac_cv_use_treebook='wxUSE_TREEBOOK='$DEFAULT_wxUSE_TREEBOOK
9613
9614fi;
9615
9616 eval "$ac_cv_use_treebook"
9617 if test "$no_cache" != 1; then
9618 echo $ac_cv_use_treebook >> ${wx_arg_cache_file}.tmp
9619 fi
9620
9621 if test "$wxUSE_TREEBOOK" = yes; then
9622 echo "$as_me:$LINENO: result: yes" >&5
9623echo "${ECHO_T}yes" >&6
9624 else
9625 echo "$as_me:$LINENO: result: no" >&5
9626echo "${ECHO_T}no" >&6
9627 fi
9628
9629
5ec3bc43
JS
9630 enablestring=
9631 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-toolbook" >&5
9632echo $ECHO_N "checking for --${enablestring:-enable}-toolbook... $ECHO_C" >&6
9633 no_cache=0
9634 # Check whether --enable-toolbook or --disable-toolbook was given.
9635if test "${enable_toolbook+set}" = set; then
9636 enableval="$enable_toolbook"
9637
9638 if test "$enableval" = yes; then
9639 ac_cv_use_toolbook='wxUSE_TOOLBOOK=yes'
9640 else
9641 ac_cv_use_toolbook='wxUSE_TOOLBOOK=no'
9642 fi
9643
9644else
9645
9646 LINE=`grep "wxUSE_TOOLBOOK" ${wx_arg_cache_file}`
9647 if test "x$LINE" != x ; then
9648 eval "DEFAULT_$LINE"
9649 else
9650 no_cache=1
9651 fi
9652
9653 ac_cv_use_toolbook='wxUSE_TOOLBOOK='$DEFAULT_wxUSE_TOOLBOOK
9654
9655fi;
9656
9657 eval "$ac_cv_use_toolbook"
9658 if test "$no_cache" != 1; then
9659 echo $ac_cv_use_toolbook >> ${wx_arg_cache_file}.tmp
9660 fi
9661
9662 if test "$wxUSE_TOOLBOOK" = yes; then
9663 echo "$as_me:$LINENO: result: yes" >&5
9664echo "${ECHO_T}yes" >&6
9665 else
9666 echo "$as_me:$LINENO: result: no" >&5
9667echo "${ECHO_T}no" >&6
9668 fi
9669
9670
a848cd7e
SC
9671 enablestring=
9672 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-treectrl" >&5
9673echo $ECHO_N "checking for --${enablestring:-enable}-treectrl... $ECHO_C" >&6
9674 no_cache=0
9675 # Check whether --enable-treectrl or --disable-treectrl was given.
9676if test "${enable_treectrl+set}" = set; then
9677 enableval="$enable_treectrl"
9678
9679 if test "$enableval" = yes; then
9680 ac_cv_use_treectrl='wxUSE_TREECTRL=yes'
9681 else
9682 ac_cv_use_treectrl='wxUSE_TREECTRL=no'
9683 fi
9684
9685else
9686
9687 LINE=`grep "wxUSE_TREECTRL" ${wx_arg_cache_file}`
9688 if test "x$LINE" != x ; then
9689 eval "DEFAULT_$LINE"
9690 else
9691 no_cache=1
9692 fi
9693
9694 ac_cv_use_treectrl='wxUSE_TREECTRL='$DEFAULT_wxUSE_TREECTRL
9695
9696fi;
9697
9698 eval "$ac_cv_use_treectrl"
9699 if test "$no_cache" != 1; then
9700 echo $ac_cv_use_treectrl >> ${wx_arg_cache_file}.tmp
9701 fi
9702
9703 if test "$wxUSE_TREECTRL" = yes; then
9704 echo "$as_me:$LINENO: result: yes" >&5
9705echo "${ECHO_T}yes" >&6
9706 else
9707 echo "$as_me:$LINENO: result: no" >&5
9708echo "${ECHO_T}no" >&6
9709 fi
9710
9711
9712 enablestring=
9713 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tipwindow" >&5
9714echo $ECHO_N "checking for --${enablestring:-enable}-tipwindow... $ECHO_C" >&6
9715 no_cache=0
9716 # Check whether --enable-tipwindow or --disable-tipwindow was given.
9717if test "${enable_tipwindow+set}" = set; then
9718 enableval="$enable_tipwindow"
9719
9720 if test "$enableval" = yes; then
9721 ac_cv_use_tipwindow='wxUSE_TIPWINDOW=yes'
9722 else
9723 ac_cv_use_tipwindow='wxUSE_TIPWINDOW=no'
9724 fi
9725
9726else
9727
9728 LINE=`grep "wxUSE_TIPWINDOW" ${wx_arg_cache_file}`
9729 if test "x$LINE" != x ; then
9730 eval "DEFAULT_$LINE"
9731 else
9732 no_cache=1
9733 fi
9734
9735 ac_cv_use_tipwindow='wxUSE_TIPWINDOW='$DEFAULT_wxUSE_TIPWINDOW
9736
9737fi;
9738
9739 eval "$ac_cv_use_tipwindow"
9740 if test "$no_cache" != 1; then
9741 echo $ac_cv_use_tipwindow >> ${wx_arg_cache_file}.tmp
9742 fi
9743
9744 if test "$wxUSE_TIPWINDOW" = yes; then
9745 echo "$as_me:$LINENO: result: yes" >&5
9746echo "${ECHO_T}yes" >&6
9747 else
9748 echo "$as_me:$LINENO: result: no" >&5
9749echo "${ECHO_T}no" >&6
9750 fi
9751
9752
9753 enablestring=
9754 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-popupwin" >&5
9755echo $ECHO_N "checking for --${enablestring:-enable}-popupwin... $ECHO_C" >&6
9756 no_cache=0
9757 # Check whether --enable-popupwin or --disable-popupwin was given.
9758if test "${enable_popupwin+set}" = set; then
9759 enableval="$enable_popupwin"
9760
9761 if test "$enableval" = yes; then
9762 ac_cv_use_popupwin='wxUSE_POPUPWIN=yes'
9763 else
9764 ac_cv_use_popupwin='wxUSE_POPUPWIN=no'
9765 fi
9766
9767else
9768
9769 LINE=`grep "wxUSE_POPUPWIN" ${wx_arg_cache_file}`
9770 if test "x$LINE" != x ; then
9771 eval "DEFAULT_$LINE"
9772 else
9773 no_cache=1
9774 fi
9775
9776 ac_cv_use_popupwin='wxUSE_POPUPWIN='$DEFAULT_wxUSE_POPUPWIN
9777
9778fi;
9779
9780 eval "$ac_cv_use_popupwin"
9781 if test "$no_cache" != 1; then
9782 echo $ac_cv_use_popupwin >> ${wx_arg_cache_file}.tmp
9783 fi
9784
9785 if test "$wxUSE_POPUPWIN" = yes; then
9786 echo "$as_me:$LINENO: result: yes" >&5
9787echo "${ECHO_T}yes" >&6
9788 else
9789 echo "$as_me:$LINENO: result: no" >&5
9790echo "${ECHO_T}no" >&6
9791 fi
9792
9793
9794
9795
9796 enablestring=
9797 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-commondlg" >&5
9798echo $ECHO_N "checking for --${enablestring:-enable}-commondlg... $ECHO_C" >&6
9799 no_cache=0
9800 # Check whether --enable-commondlg or --disable-commondlg was given.
9801if test "${enable_commondlg+set}" = set; then
9802 enableval="$enable_commondlg"
9803
9804 if test "$enableval" = yes; then
9805 ac_cv_use_commondlg='wxUSE_COMMONDLGS=yes'
9806 else
9807 ac_cv_use_commondlg='wxUSE_COMMONDLGS=no'
9808 fi
9809
9810else
9811
9812 LINE=`grep "wxUSE_COMMONDLGS" ${wx_arg_cache_file}`
9813 if test "x$LINE" != x ; then
9814 eval "DEFAULT_$LINE"
9815 else
9816 no_cache=1
9817 fi
9818
9819 ac_cv_use_commondlg='wxUSE_COMMONDLGS='$DEFAULT_wxUSE_COMMONDLGS
9820
9821fi;
9822
9823 eval "$ac_cv_use_commondlg"
9824 if test "$no_cache" != 1; then
9825 echo $ac_cv_use_commondlg >> ${wx_arg_cache_file}.tmp
9826 fi
9827
9828 if test "$wxUSE_COMMONDLGS" = yes; then
9829 echo "$as_me:$LINENO: result: yes" >&5
9830echo "${ECHO_T}yes" >&6
9831 else
9832 echo "$as_me:$LINENO: result: no" >&5
9833echo "${ECHO_T}no" >&6
9834 fi
9835
9836
9837 enablestring=
9838 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choicedlg" >&5
9839echo $ECHO_N "checking for --${enablestring:-enable}-choicedlg... $ECHO_C" >&6
9840 no_cache=0
9841 # Check whether --enable-choicedlg or --disable-choicedlg was given.
9842if test "${enable_choicedlg+set}" = set; then
9843 enableval="$enable_choicedlg"
9844
9845 if test "$enableval" = yes; then
9846 ac_cv_use_choicedlg='wxUSE_CHOICEDLG=yes'
9847 else
9848 ac_cv_use_choicedlg='wxUSE_CHOICEDLG=no'
9849 fi
9850
9851else
9852
9853 LINE=`grep "wxUSE_CHOICEDLG" ${wx_arg_cache_file}`
9854 if test "x$LINE" != x ; then
9855 eval "DEFAULT_$LINE"
9856 else
9857 no_cache=1
9858 fi
9859
9860 ac_cv_use_choicedlg='wxUSE_CHOICEDLG='$DEFAULT_wxUSE_CHOICEDLG
9861
9862fi;
9863
9864 eval "$ac_cv_use_choicedlg"
9865 if test "$no_cache" != 1; then
9866 echo $ac_cv_use_choicedlg >> ${wx_arg_cache_file}.tmp
9867 fi
9868
9869 if test "$wxUSE_CHOICEDLG" = yes; then
9870 echo "$as_me:$LINENO: result: yes" >&5
9871echo "${ECHO_T}yes" >&6
9872 else
9873 echo "$as_me:$LINENO: result: no" >&5
9874echo "${ECHO_T}no" >&6
9875 fi
9876
9877
9878 enablestring=
9879 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-coldlg" >&5
9880echo $ECHO_N "checking for --${enablestring:-enable}-coldlg... $ECHO_C" >&6
9881 no_cache=0
9882 # Check whether --enable-coldlg or --disable-coldlg was given.
9883if test "${enable_coldlg+set}" = set; then
9884 enableval="$enable_coldlg"
9885
9886 if test "$enableval" = yes; then
9887 ac_cv_use_coldlg='wxUSE_COLOURDLG=yes'
9888 else
9889 ac_cv_use_coldlg='wxUSE_COLOURDLG=no'
9890 fi
9891
9892else
9893
9894 LINE=`grep "wxUSE_COLOURDLG" ${wx_arg_cache_file}`
9895 if test "x$LINE" != x ; then
9896 eval "DEFAULT_$LINE"
9897 else
9898 no_cache=1
9899 fi
9900
9901 ac_cv_use_coldlg='wxUSE_COLOURDLG='$DEFAULT_wxUSE_COLOURDLG
9902
9903fi;
9904
9905 eval "$ac_cv_use_coldlg"
9906 if test "$no_cache" != 1; then
9907 echo $ac_cv_use_coldlg >> ${wx_arg_cache_file}.tmp
9908 fi
9909
9910 if test "$wxUSE_COLOURDLG" = yes; then
9911 echo "$as_me:$LINENO: result: yes" >&5
9912echo "${ECHO_T}yes" >&6
9913 else
9914 echo "$as_me:$LINENO: result: no" >&5
9915echo "${ECHO_T}no" >&6
9916 fi
9917
9918
9919 enablestring=
9920 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-filedlg" >&5
9921echo $ECHO_N "checking for --${enablestring:-enable}-filedlg... $ECHO_C" >&6
9922 no_cache=0
9923 # Check whether --enable-filedlg or --disable-filedlg was given.
9924if test "${enable_filedlg+set}" = set; then
9925 enableval="$enable_filedlg"
9926
9927 if test "$enableval" = yes; then
9928 ac_cv_use_filedlg='wxUSE_FILEDLG=yes'
9929 else
9930 ac_cv_use_filedlg='wxUSE_FILEDLG=no'
9931 fi
9932
9933else
9934
9935 LINE=`grep "wxUSE_FILEDLG" ${wx_arg_cache_file}`
9936 if test "x$LINE" != x ; then
9937 eval "DEFAULT_$LINE"
9938 else
9939 no_cache=1
9940 fi
9941
9942 ac_cv_use_filedlg='wxUSE_FILEDLG='$DEFAULT_wxUSE_FILEDLG
9943
9944fi;
9945
9946 eval "$ac_cv_use_filedlg"
9947 if test "$no_cache" != 1; then
9948 echo $ac_cv_use_filedlg >> ${wx_arg_cache_file}.tmp
9949 fi
9950
9951 if test "$wxUSE_FILEDLG" = yes; then
9952 echo "$as_me:$LINENO: result: yes" >&5
9953echo "${ECHO_T}yes" >&6
9954 else
9955 echo "$as_me:$LINENO: result: no" >&5
9956echo "${ECHO_T}no" >&6
9957 fi
9958
9959
9960 enablestring=
9961 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-finddlg" >&5
9962echo $ECHO_N "checking for --${enablestring:-enable}-finddlg... $ECHO_C" >&6
9963 no_cache=0
9964 # Check whether --enable-finddlg or --disable-finddlg was given.
9965if test "${enable_finddlg+set}" = set; then
9966 enableval="$enable_finddlg"
9967
9968 if test "$enableval" = yes; then
9969 ac_cv_use_finddlg='wxUSE_FINDREPLDLG=yes'
9970 else
9971 ac_cv_use_finddlg='wxUSE_FINDREPLDLG=no'
9972 fi
9973
9974else
9975
9976 LINE=`grep "wxUSE_FINDREPLDLG" ${wx_arg_cache_file}`
9977 if test "x$LINE" != x ; then
9978 eval "DEFAULT_$LINE"
9979 else
9980 no_cache=1
9981 fi
9982
9983 ac_cv_use_finddlg='wxUSE_FINDREPLDLG='$DEFAULT_wxUSE_FINDREPLDLG
9984
9985fi;
9986
9987 eval "$ac_cv_use_finddlg"
9988 if test "$no_cache" != 1; then
9989 echo $ac_cv_use_finddlg >> ${wx_arg_cache_file}.tmp
9990 fi
9991
9992 if test "$wxUSE_FINDREPLDLG" = yes; then
9993 echo "$as_me:$LINENO: result: yes" >&5
9994echo "${ECHO_T}yes" >&6
9995 else
9996 echo "$as_me:$LINENO: result: no" >&5
9997echo "${ECHO_T}no" >&6
9998 fi
9999
10000
10001 enablestring=
10002 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fontdlg" >&5
10003echo $ECHO_N "checking for --${enablestring:-enable}-fontdlg... $ECHO_C" >&6
10004 no_cache=0
10005 # Check whether --enable-fontdlg or --disable-fontdlg was given.
10006if test "${enable_fontdlg+set}" = set; then
10007 enableval="$enable_fontdlg"
10008
10009 if test "$enableval" = yes; then
10010 ac_cv_use_fontdlg='wxUSE_FONTDLG=yes'
10011 else
10012 ac_cv_use_fontdlg='wxUSE_FONTDLG=no'
10013 fi
10014
10015else
10016
10017 LINE=`grep "wxUSE_FONTDLG" ${wx_arg_cache_file}`
10018 if test "x$LINE" != x ; then
10019 eval "DEFAULT_$LINE"
10020 else
10021 no_cache=1
10022 fi
10023
10024 ac_cv_use_fontdlg='wxUSE_FONTDLG='$DEFAULT_wxUSE_FONTDLG
10025
10026fi;
10027
10028 eval "$ac_cv_use_fontdlg"
10029 if test "$no_cache" != 1; then
10030 echo $ac_cv_use_fontdlg >> ${wx_arg_cache_file}.tmp
10031 fi
10032
10033 if test "$wxUSE_FONTDLG" = yes; then
10034 echo "$as_me:$LINENO: result: yes" >&5
10035echo "${ECHO_T}yes" >&6
10036 else
10037 echo "$as_me:$LINENO: result: no" >&5
10038echo "${ECHO_T}no" >&6
10039 fi
10040
10041
10042 enablestring=
10043 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dirdlg" >&5
10044echo $ECHO_N "checking for --${enablestring:-enable}-dirdlg... $ECHO_C" >&6
10045 no_cache=0
10046 # Check whether --enable-dirdlg or --disable-dirdlg was given.
10047if test "${enable_dirdlg+set}" = set; then
10048 enableval="$enable_dirdlg"
10049
10050 if test "$enableval" = yes; then
10051 ac_cv_use_dirdlg='wxUSE_DIRDLG=yes'
10052 else
10053 ac_cv_use_dirdlg='wxUSE_DIRDLG=no'
10054 fi
10055
10056else
10057
10058 LINE=`grep "wxUSE_DIRDLG" ${wx_arg_cache_file}`
10059 if test "x$LINE" != x ; then
10060 eval "DEFAULT_$LINE"
10061 else
10062 no_cache=1
10063 fi
10064
10065 ac_cv_use_dirdlg='wxUSE_DIRDLG='$DEFAULT_wxUSE_DIRDLG
10066
10067fi;
10068
10069 eval "$ac_cv_use_dirdlg"
10070 if test "$no_cache" != 1; then
10071 echo $ac_cv_use_dirdlg >> ${wx_arg_cache_file}.tmp
10072 fi
10073
10074 if test "$wxUSE_DIRDLG" = yes; then
10075 echo "$as_me:$LINENO: result: yes" >&5
10076echo "${ECHO_T}yes" >&6
10077 else
10078 echo "$as_me:$LINENO: result: no" >&5
10079echo "${ECHO_T}no" >&6
10080 fi
10081
10082
10083 enablestring=
10084 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-msgdlg" >&5
10085echo $ECHO_N "checking for --${enablestring:-enable}-msgdlg... $ECHO_C" >&6
10086 no_cache=0
10087 # Check whether --enable-msgdlg or --disable-msgdlg was given.
10088if test "${enable_msgdlg+set}" = set; then
10089 enableval="$enable_msgdlg"
10090
10091 if test "$enableval" = yes; then
10092 ac_cv_use_msgdlg='wxUSE_MSGDLG=yes'
10093 else
10094 ac_cv_use_msgdlg='wxUSE_MSGDLG=no'
10095 fi
10096
10097else
10098
10099 LINE=`grep "wxUSE_MSGDLG" ${wx_arg_cache_file}`
10100 if test "x$LINE" != x ; then
10101 eval "DEFAULT_$LINE"
10102 else
10103 no_cache=1
10104 fi
10105
10106 ac_cv_use_msgdlg='wxUSE_MSGDLG='$DEFAULT_wxUSE_MSGDLG
10107
10108fi;
10109
10110 eval "$ac_cv_use_msgdlg"
10111 if test "$no_cache" != 1; then
10112 echo $ac_cv_use_msgdlg >> ${wx_arg_cache_file}.tmp
10113 fi
10114
10115 if test "$wxUSE_MSGDLG" = yes; then
10116 echo "$as_me:$LINENO: result: yes" >&5
10117echo "${ECHO_T}yes" >&6
10118 else
10119 echo "$as_me:$LINENO: result: no" >&5
10120echo "${ECHO_T}no" >&6
10121 fi
10122
10123
10124 enablestring=
10125 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-numberdlg" >&5
10126echo $ECHO_N "checking for --${enablestring:-enable}-numberdlg... $ECHO_C" >&6
10127 no_cache=0
10128 # Check whether --enable-numberdlg or --disable-numberdlg was given.
10129if test "${enable_numberdlg+set}" = set; then
10130 enableval="$enable_numberdlg"
10131
10132 if test "$enableval" = yes; then
10133 ac_cv_use_numberdlg='wxUSE_NUMBERDLG=yes'
10134 else
10135 ac_cv_use_numberdlg='wxUSE_NUMBERDLG=no'
10136 fi
10137
10138else
10139
10140 LINE=`grep "wxUSE_NUMBERDLG" ${wx_arg_cache_file}`
10141 if test "x$LINE" != x ; then
10142 eval "DEFAULT_$LINE"
10143 else
10144 no_cache=1
10145 fi
10146
10147 ac_cv_use_numberdlg='wxUSE_NUMBERDLG='$DEFAULT_wxUSE_NUMBERDLG
10148
10149fi;
10150
10151 eval "$ac_cv_use_numberdlg"
10152 if test "$no_cache" != 1; then
10153 echo $ac_cv_use_numberdlg >> ${wx_arg_cache_file}.tmp
10154 fi
10155
10156 if test "$wxUSE_NUMBERDLG" = yes; then
10157 echo "$as_me:$LINENO: result: yes" >&5
10158echo "${ECHO_T}yes" >&6
10159 else
10160 echo "$as_me:$LINENO: result: no" >&5
10161echo "${ECHO_T}no" >&6
10162 fi
10163
10164
10165 enablestring=
10166 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splash" >&5
10167echo $ECHO_N "checking for --${enablestring:-enable}-splash... $ECHO_C" >&6
10168 no_cache=0
10169 # Check whether --enable-splash or --disable-splash was given.
10170if test "${enable_splash+set}" = set; then
10171 enableval="$enable_splash"
10172
10173 if test "$enableval" = yes; then
10174 ac_cv_use_splash='wxUSE_SPLASH=yes'
10175 else
10176 ac_cv_use_splash='wxUSE_SPLASH=no'
10177 fi
10178
10179else
10180
10181 LINE=`grep "wxUSE_SPLASH" ${wx_arg_cache_file}`
10182 if test "x$LINE" != x ; then
10183 eval "DEFAULT_$LINE"
10184 else
10185 no_cache=1
10186 fi
10187
10188 ac_cv_use_splash='wxUSE_SPLASH='$DEFAULT_wxUSE_SPLASH
10189
10190fi;
10191
10192 eval "$ac_cv_use_splash"
10193 if test "$no_cache" != 1; then
10194 echo $ac_cv_use_splash >> ${wx_arg_cache_file}.tmp
10195 fi
10196
10197 if test "$wxUSE_SPLASH" = yes; then
10198 echo "$as_me:$LINENO: result: yes" >&5
10199echo "${ECHO_T}yes" >&6
10200 else
10201 echo "$as_me:$LINENO: result: no" >&5
10202echo "${ECHO_T}no" >&6
10203 fi
10204
10205
10206 enablestring=
10207 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textdlg" >&5
10208echo $ECHO_N "checking for --${enablestring:-enable}-textdlg... $ECHO_C" >&6
10209 no_cache=0
10210 # Check whether --enable-textdlg or --disable-textdlg was given.
10211if test "${enable_textdlg+set}" = set; then
10212 enableval="$enable_textdlg"
10213
10214 if test "$enableval" = yes; then
10215 ac_cv_use_textdlg='wxUSE_TEXTDLG=yes'
10216 else
10217 ac_cv_use_textdlg='wxUSE_TEXTDLG=no'
10218 fi
10219
10220else
10221
10222 LINE=`grep "wxUSE_TEXTDLG" ${wx_arg_cache_file}`
10223 if test "x$LINE" != x ; then
10224 eval "DEFAULT_$LINE"
10225 else
10226 no_cache=1
10227 fi
10228
10229 ac_cv_use_textdlg='wxUSE_TEXTDLG='$DEFAULT_wxUSE_TEXTDLG
10230
10231fi;
10232
10233 eval "$ac_cv_use_textdlg"
10234 if test "$no_cache" != 1; then
10235 echo $ac_cv_use_textdlg >> ${wx_arg_cache_file}.tmp
10236 fi
10237
10238 if test "$wxUSE_TEXTDLG" = yes; then
10239 echo "$as_me:$LINENO: result: yes" >&5
10240echo "${ECHO_T}yes" >&6
10241 else
10242 echo "$as_me:$LINENO: result: no" >&5
10243echo "${ECHO_T}no" >&6
10244 fi
10245
10246
10247 enablestring=
10248 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tipdlg" >&5
10249echo $ECHO_N "checking for --${enablestring:-enable}-tipdlg... $ECHO_C" >&6
10250 no_cache=0
10251 # Check whether --enable-tipdlg or --disable-tipdlg was given.
10252if test "${enable_tipdlg+set}" = set; then
10253 enableval="$enable_tipdlg"
10254
10255 if test "$enableval" = yes; then
10256 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=yes'
10257 else
10258 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=no'
10259 fi
10260
10261else
10262
10263 LINE=`grep "wxUSE_STARTUP_TIPS" ${wx_arg_cache_file}`
10264 if test "x$LINE" != x ; then
10265 eval "DEFAULT_$LINE"
10266 else
10267 no_cache=1
10268 fi
10269
10270 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS='$DEFAULT_wxUSE_STARTUP_TIPS
10271
10272fi;
10273
10274 eval "$ac_cv_use_tipdlg"
10275 if test "$no_cache" != 1; then
10276 echo $ac_cv_use_tipdlg >> ${wx_arg_cache_file}.tmp
10277 fi
10278
10279 if test "$wxUSE_STARTUP_TIPS" = yes; then
10280 echo "$as_me:$LINENO: result: yes" >&5
10281echo "${ECHO_T}yes" >&6
10282 else
10283 echo "$as_me:$LINENO: result: no" >&5
10284echo "${ECHO_T}no" >&6
10285 fi
10286
10287
10288 enablestring=
10289 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-progressdlg" >&5
10290echo $ECHO_N "checking for --${enablestring:-enable}-progressdlg... $ECHO_C" >&6
10291 no_cache=0
10292 # Check whether --enable-progressdlg or --disable-progressdlg was given.
10293if test "${enable_progressdlg+set}" = set; then
10294 enableval="$enable_progressdlg"
10295
10296 if test "$enableval" = yes; then
10297 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=yes'
10298 else
10299 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=no'
10300 fi
10301
10302else
10303
10304 LINE=`grep "wxUSE_PROGRESSDLG" ${wx_arg_cache_file}`
10305 if test "x$LINE" != x ; then
10306 eval "DEFAULT_$LINE"
10307 else
10308 no_cache=1
10309 fi
10310
10311 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG='$DEFAULT_wxUSE_PROGRESSDLG
10312
10313fi;
10314
10315 eval "$ac_cv_use_progressdlg"
10316 if test "$no_cache" != 1; then
10317 echo $ac_cv_use_progressdlg >> ${wx_arg_cache_file}.tmp
10318 fi
10319
10320 if test "$wxUSE_PROGRESSDLG" = yes; then
10321 echo "$as_me:$LINENO: result: yes" >&5
10322echo "${ECHO_T}yes" >&6
10323 else
10324 echo "$as_me:$LINENO: result: no" >&5
10325echo "${ECHO_T}no" >&6
10326 fi
10327
10328
10329 enablestring=
10330 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-wizarddlg" >&5
10331echo $ECHO_N "checking for --${enablestring:-enable}-wizarddlg... $ECHO_C" >&6
10332 no_cache=0
10333 # Check whether --enable-wizarddlg or --disable-wizarddlg was given.
10334if test "${enable_wizarddlg+set}" = set; then
10335 enableval="$enable_wizarddlg"
10336
10337 if test "$enableval" = yes; then
10338 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=yes'
10339 else
10340 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=no'
10341 fi
10342
10343else
10344
10345 LINE=`grep "wxUSE_WIZARDDLG" ${wx_arg_cache_file}`
10346 if test "x$LINE" != x ; then
10347 eval "DEFAULT_$LINE"
10348 else
10349 no_cache=1
10350 fi
10351
10352 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG='$DEFAULT_wxUSE_WIZARDDLG
10353
10354fi;
10355
10356 eval "$ac_cv_use_wizarddlg"
10357 if test "$no_cache" != 1; then
10358 echo $ac_cv_use_wizarddlg >> ${wx_arg_cache_file}.tmp
10359 fi
10360
10361 if test "$wxUSE_WIZARDDLG" = yes; then
10362 echo "$as_me:$LINENO: result: yes" >&5
10363echo "${ECHO_T}yes" >&6
10364 else
10365 echo "$as_me:$LINENO: result: no" >&5
10366echo "${ECHO_T}no" >&6
10367 fi
10368
10369
10370
10371
10372 enablestring=
10373 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-menus" >&5
10374echo $ECHO_N "checking for --${enablestring:-enable}-menus... $ECHO_C" >&6
10375 no_cache=0
10376 # Check whether --enable-menus or --disable-menus was given.
10377if test "${enable_menus+set}" = set; then
10378 enableval="$enable_menus"
10379
10380 if test "$enableval" = yes; then
10381 ac_cv_use_menus='wxUSE_MENUS=yes'
10382 else
10383 ac_cv_use_menus='wxUSE_MENUS=no'
10384 fi
10385
10386else
10387
10388 LINE=`grep "wxUSE_MENUS" ${wx_arg_cache_file}`
10389 if test "x$LINE" != x ; then
10390 eval "DEFAULT_$LINE"
10391 else
10392 no_cache=1
10393 fi
10394
10395 ac_cv_use_menus='wxUSE_MENUS='$DEFAULT_wxUSE_MENUS
10396
10397fi;
10398
10399 eval "$ac_cv_use_menus"
10400 if test "$no_cache" != 1; then
10401 echo $ac_cv_use_menus >> ${wx_arg_cache_file}.tmp
10402 fi
10403
10404 if test "$wxUSE_MENUS" = yes; then
10405 echo "$as_me:$LINENO: result: yes" >&5
10406echo "${ECHO_T}yes" >&6
10407 else
10408 echo "$as_me:$LINENO: result: no" >&5
10409echo "${ECHO_T}no" >&6
10410 fi
10411
10412
10413 enablestring=
10414 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-miniframe" >&5
10415echo $ECHO_N "checking for --${enablestring:-enable}-miniframe... $ECHO_C" >&6
10416 no_cache=0
10417 # Check whether --enable-miniframe or --disable-miniframe was given.
10418if test "${enable_miniframe+set}" = set; then
10419 enableval="$enable_miniframe"
10420
10421 if test "$enableval" = yes; then
10422 ac_cv_use_miniframe='wxUSE_MINIFRAME=yes'
10423 else
10424 ac_cv_use_miniframe='wxUSE_MINIFRAME=no'
10425 fi
10426
10427else
10428
10429 LINE=`grep "wxUSE_MINIFRAME" ${wx_arg_cache_file}`
10430 if test "x$LINE" != x ; then
10431 eval "DEFAULT_$LINE"
10432 else
10433 no_cache=1
10434 fi
10435
10436 ac_cv_use_miniframe='wxUSE_MINIFRAME='$DEFAULT_wxUSE_MINIFRAME
10437
10438fi;
10439
10440 eval "$ac_cv_use_miniframe"
10441 if test "$no_cache" != 1; then
10442 echo $ac_cv_use_miniframe >> ${wx_arg_cache_file}.tmp
10443 fi
10444
10445 if test "$wxUSE_MINIFRAME" = yes; then
10446 echo "$as_me:$LINENO: result: yes" >&5
10447echo "${ECHO_T}yes" >&6
10448 else
10449 echo "$as_me:$LINENO: result: no" >&5
10450echo "${ECHO_T}no" >&6
10451 fi
10452
10453
10454 enablestring=
10455 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tooltips" >&5
10456echo $ECHO_N "checking for --${enablestring:-enable}-tooltips... $ECHO_C" >&6
10457 no_cache=0
10458 # Check whether --enable-tooltips or --disable-tooltips was given.
10459if test "${enable_tooltips+set}" = set; then
10460 enableval="$enable_tooltips"
10461
10462 if test "$enableval" = yes; then
10463 ac_cv_use_tooltips='wxUSE_TOOLTIPS=yes'
10464 else
10465 ac_cv_use_tooltips='wxUSE_TOOLTIPS=no'
10466 fi
10467
10468else
10469
10470 LINE=`grep "wxUSE_TOOLTIPS" ${wx_arg_cache_file}`
10471 if test "x$LINE" != x ; then
10472 eval "DEFAULT_$LINE"
10473 else
10474 no_cache=1
10475 fi
10476
10477 ac_cv_use_tooltips='wxUSE_TOOLTIPS='$DEFAULT_wxUSE_TOOLTIPS
10478
10479fi;
10480
10481 eval "$ac_cv_use_tooltips"
10482 if test "$no_cache" != 1; then
10483 echo $ac_cv_use_tooltips >> ${wx_arg_cache_file}.tmp
10484 fi
10485
10486 if test "$wxUSE_TOOLTIPS" = yes; then
10487 echo "$as_me:$LINENO: result: yes" >&5
10488echo "${ECHO_T}yes" >&6
10489 else
10490 echo "$as_me:$LINENO: result: no" >&5
10491echo "${ECHO_T}no" >&6
10492 fi
10493
10494
10495 enablestring=
10496 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splines" >&5
10497echo $ECHO_N "checking for --${enablestring:-enable}-splines... $ECHO_C" >&6
10498 no_cache=0
10499 # Check whether --enable-splines or --disable-splines was given.
10500if test "${enable_splines+set}" = set; then
10501 enableval="$enable_splines"
10502
10503 if test "$enableval" = yes; then
10504 ac_cv_use_splines='wxUSE_SPLINES=yes'
10505 else
10506 ac_cv_use_splines='wxUSE_SPLINES=no'
10507 fi
10508
10509else
10510
10511 LINE=`grep "wxUSE_SPLINES" ${wx_arg_cache_file}`
10512 if test "x$LINE" != x ; then
10513 eval "DEFAULT_$LINE"
10514 else
10515 no_cache=1
10516 fi
10517
10518 ac_cv_use_splines='wxUSE_SPLINES='$DEFAULT_wxUSE_SPLINES
10519
10520fi;
10521
10522 eval "$ac_cv_use_splines"
10523 if test "$no_cache" != 1; then
10524 echo $ac_cv_use_splines >> ${wx_arg_cache_file}.tmp
10525 fi
10526
10527 if test "$wxUSE_SPLINES" = yes; then
10528 echo "$as_me:$LINENO: result: yes" >&5
10529echo "${ECHO_T}yes" >&6
10530 else
10531 echo "$as_me:$LINENO: result: no" >&5
10532echo "${ECHO_T}no" >&6
10533 fi
10534
10535
fbe2ca43
SN
10536 enablestring=
10537 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mousewheel" >&5
10538echo $ECHO_N "checking for --${enablestring:-enable}-mousewheel... $ECHO_C" >&6
10539 no_cache=0
10540 # Check whether --enable-mousewheel or --disable-mousewheel was given.
10541if test "${enable_mousewheel+set}" = set; then
10542 enableval="$enable_mousewheel"
10543
10544 if test "$enableval" = yes; then
10545 ac_cv_use_mousewheel='wxUSE_MOUSEWHEEL=yes'
10546 else
10547 ac_cv_use_mousewheel='wxUSE_MOUSEWHEEL=no'
10548 fi
10549
10550else
10551
10552 LINE=`grep "wxUSE_MOUSEWHEEL" ${wx_arg_cache_file}`
10553 if test "x$LINE" != x ; then
10554 eval "DEFAULT_$LINE"
10555 else
10556 no_cache=1
10557 fi
10558
10559 ac_cv_use_mousewheel='wxUSE_MOUSEWHEEL='$DEFAULT_wxUSE_MOUSEWHEEL
10560
10561fi;
10562
10563 eval "$ac_cv_use_mousewheel"
10564 if test "$no_cache" != 1; then
10565 echo $ac_cv_use_mousewheel >> ${wx_arg_cache_file}.tmp
10566 fi
10567
10568 if test "$wxUSE_MOUSEWHEEL" = yes; then
10569 echo "$as_me:$LINENO: result: yes" >&5
10570echo "${ECHO_T}yes" >&6
10571 else
10572 echo "$as_me:$LINENO: result: no" >&5
10573echo "${ECHO_T}no" >&6
10574 fi
10575
10576
a848cd7e
SC
10577 enablestring=
10578 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-validators" >&5
10579echo $ECHO_N "checking for --${enablestring:-enable}-validators... $ECHO_C" >&6
10580 no_cache=0
10581 # Check whether --enable-validators or --disable-validators was given.
10582if test "${enable_validators+set}" = set; then
10583 enableval="$enable_validators"
10584
10585 if test "$enableval" = yes; then
10586 ac_cv_use_validators='wxUSE_VALIDATORS=yes'
10587 else
10588 ac_cv_use_validators='wxUSE_VALIDATORS=no'
10589 fi
10590
10591else
10592
10593 LINE=`grep "wxUSE_VALIDATORS" ${wx_arg_cache_file}`
10594 if test "x$LINE" != x ; then
10595 eval "DEFAULT_$LINE"
10596 else
10597 no_cache=1
10598 fi
10599
10600 ac_cv_use_validators='wxUSE_VALIDATORS='$DEFAULT_wxUSE_VALIDATORS
10601
10602fi;
10603
10604 eval "$ac_cv_use_validators"
10605 if test "$no_cache" != 1; then
10606 echo $ac_cv_use_validators >> ${wx_arg_cache_file}.tmp
10607 fi
10608
10609 if test "$wxUSE_VALIDATORS" = yes; then
10610 echo "$as_me:$LINENO: result: yes" >&5
10611echo "${ECHO_T}yes" >&6
10612 else
10613 echo "$as_me:$LINENO: result: no" >&5
10614echo "${ECHO_T}no" >&6
10615 fi
10616
10617
10618 enablestring=
10619 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-busyinfo" >&5
10620echo $ECHO_N "checking for --${enablestring:-enable}-busyinfo... $ECHO_C" >&6
10621 no_cache=0
10622 # Check whether --enable-busyinfo or --disable-busyinfo was given.
10623if test "${enable_busyinfo+set}" = set; then
10624 enableval="$enable_busyinfo"
10625
10626 if test "$enableval" = yes; then
10627 ac_cv_use_busyinfo='wxUSE_BUSYINFO=yes'
10628 else
10629 ac_cv_use_busyinfo='wxUSE_BUSYINFO=no'
10630 fi
10631
10632else
10633
10634 LINE=`grep "wxUSE_BUSYINFO" ${wx_arg_cache_file}`
10635 if test "x$LINE" != x ; then
10636 eval "DEFAULT_$LINE"
10637 else
10638 no_cache=1
10639 fi
10640
10641 ac_cv_use_busyinfo='wxUSE_BUSYINFO='$DEFAULT_wxUSE_BUSYINFO
10642
10643fi;
10644
10645 eval "$ac_cv_use_busyinfo"
10646 if test "$no_cache" != 1; then
10647 echo $ac_cv_use_busyinfo >> ${wx_arg_cache_file}.tmp
10648 fi
10649
10650 if test "$wxUSE_BUSYINFO" = yes; then
10651 echo "$as_me:$LINENO: result: yes" >&5
10652echo "${ECHO_T}yes" >&6
10653 else
10654 echo "$as_me:$LINENO: result: no" >&5
10655echo "${ECHO_T}no" >&6
10656 fi
10657
10658
10659 enablestring=
10660 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-joystick" >&5
10661echo $ECHO_N "checking for --${enablestring:-enable}-joystick... $ECHO_C" >&6
10662 no_cache=0
10663 # Check whether --enable-joystick or --disable-joystick was given.
10664if test "${enable_joystick+set}" = set; then
10665 enableval="$enable_joystick"
10666
10667 if test "$enableval" = yes; then
10668 ac_cv_use_joystick='wxUSE_JOYSTICK=yes'
10669 else
10670 ac_cv_use_joystick='wxUSE_JOYSTICK=no'
10671 fi
10672
10673else
10674
10675 LINE=`grep "wxUSE_JOYSTICK" ${wx_arg_cache_file}`
10676 if test "x$LINE" != x ; then
10677 eval "DEFAULT_$LINE"
10678 else
10679 no_cache=1
10680 fi
10681
10682 ac_cv_use_joystick='wxUSE_JOYSTICK='$DEFAULT_wxUSE_JOYSTICK
10683
10684fi;
10685
10686 eval "$ac_cv_use_joystick"
10687 if test "$no_cache" != 1; then
10688 echo $ac_cv_use_joystick >> ${wx_arg_cache_file}.tmp
10689 fi
10690
10691 if test "$wxUSE_JOYSTICK" = yes; then
10692 echo "$as_me:$LINENO: result: yes" >&5
10693echo "${ECHO_T}yes" >&6
10694 else
10695 echo "$as_me:$LINENO: result: no" >&5
10696echo "${ECHO_T}no" >&6
10697 fi
10698
10699
10700 enablestring=
10701 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-metafile" >&5
10702echo $ECHO_N "checking for --${enablestring:-enable}-metafile... $ECHO_C" >&6
10703 no_cache=0
10704 # Check whether --enable-metafile or --disable-metafile was given.
10705if test "${enable_metafile+set}" = set; then
10706 enableval="$enable_metafile"
10707
10708 if test "$enableval" = yes; then
10709 ac_cv_use_metafile='wxUSE_METAFILE=yes'
10710 else
10711 ac_cv_use_metafile='wxUSE_METAFILE=no'
10712 fi
10713
10714else
10715
10716 LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}`
10717 if test "x$LINE" != x ; then
10718 eval "DEFAULT_$LINE"
10719 else
10720 no_cache=1
10721 fi
10722
10723 ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE
10724
10725fi;
10726
10727 eval "$ac_cv_use_metafile"
10728 if test "$no_cache" != 1; then
10729 echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp
10730 fi
10731
10732 if test "$wxUSE_METAFILE" = yes; then
10733 echo "$as_me:$LINENO: result: yes" >&5
10734echo "${ECHO_T}yes" >&6
10735 else
10736 echo "$as_me:$LINENO: result: no" >&5
10737echo "${ECHO_T}no" >&6
10738 fi
10739
10740
10741 enablestring=
10742 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dragimage" >&5
10743echo $ECHO_N "checking for --${enablestring:-enable}-dragimage... $ECHO_C" >&6
10744 no_cache=0
10745 # Check whether --enable-dragimage or --disable-dragimage was given.
10746if test "${enable_dragimage+set}" = set; then
10747 enableval="$enable_dragimage"
10748
10749 if test "$enableval" = yes; then
10750 ac_cv_use_dragimage='wxUSE_DRAGIMAGE=yes'
10751 else
10752 ac_cv_use_dragimage='wxUSE_DRAGIMAGE=no'
10753 fi
10754
10755else
10756
10757 LINE=`grep "wxUSE_DRAGIMAGE" ${wx_arg_cache_file}`
10758 if test "x$LINE" != x ; then
10759 eval "DEFAULT_$LINE"
10760 else
10761 no_cache=1
10762 fi
10763
10764 ac_cv_use_dragimage='wxUSE_DRAGIMAGE='$DEFAULT_wxUSE_DRAGIMAGE
10765
10766fi;
10767
10768 eval "$ac_cv_use_dragimage"
10769 if test "$no_cache" != 1; then
10770 echo $ac_cv_use_dragimage >> ${wx_arg_cache_file}.tmp
10771 fi
10772
10773 if test "$wxUSE_DRAGIMAGE" = yes; then
10774 echo "$as_me:$LINENO: result: yes" >&5
10775echo "${ECHO_T}yes" >&6
10776 else
10777 echo "$as_me:$LINENO: result: no" >&5
10778echo "${ECHO_T}no" >&6
10779 fi
10780
10781
10782 enablestring=
10783 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-accessibility" >&5
10784echo $ECHO_N "checking for --${enablestring:-enable}-accessibility... $ECHO_C" >&6
10785 no_cache=0
10786 # Check whether --enable-accessibility or --disable-accessibility was given.
10787if test "${enable_accessibility+set}" = set; then
10788 enableval="$enable_accessibility"
10789
10790 if test "$enableval" = yes; then
10791 ac_cv_use_accessibility='wxUSE_ACCESSIBILITY=yes'
10792 else
10793 ac_cv_use_accessibility='wxUSE_ACCESSIBILITY=no'
10794 fi
10795
10796else
10797
10798 LINE=`grep "wxUSE_ACCESSIBILITY" ${wx_arg_cache_file}`
10799 if test "x$LINE" != x ; then
10800 eval "DEFAULT_$LINE"
10801 else
10802 no_cache=1
10803 fi
10804
10805 ac_cv_use_accessibility='wxUSE_ACCESSIBILITY='$DEFAULT_wxUSE_ACCESSIBILITY
10806
10807fi;
10808
10809 eval "$ac_cv_use_accessibility"
10810 if test "$no_cache" != 1; then
10811 echo $ac_cv_use_accessibility >> ${wx_arg_cache_file}.tmp
10812 fi
10813
10814 if test "$wxUSE_ACCESSIBILITY" = yes; then
10815 echo "$as_me:$LINENO: result: yes" >&5
10816echo "${ECHO_T}yes" >&6
10817 else
10818 echo "$as_me:$LINENO: result: no" >&5
10819echo "${ECHO_T}no" >&6
10820 fi
10821
10822
38b4a946
VZ
10823if test "$wxUSE_MSW" = "1"; then
10824
10825 enablestring=
10826 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dccache" >&5
10827echo $ECHO_N "checking for --${enablestring:-enable}-dccache... $ECHO_C" >&6
10828 no_cache=0
10829 # Check whether --enable-dccache or --disable-dccache was given.
10830if test "${enable_dccache+set}" = set; then
10831 enableval="$enable_dccache"
10832
10833 if test "$enableval" = yes; then
10834 ac_cv_use_dccache='wxUSE_DC_CACHEING=yes'
10835 else
10836 ac_cv_use_dccache='wxUSE_DC_CACHEING=no'
10837 fi
10838
10839else
10840
10841 LINE=`grep "wxUSE_DC_CACHEING" ${wx_arg_cache_file}`
10842 if test "x$LINE" != x ; then
10843 eval "DEFAULT_$LINE"
10844 else
10845 no_cache=1
10846 fi
10847
10848 ac_cv_use_dccache='wxUSE_DC_CACHEING='$DEFAULT_wxUSE_DC_CACHEING
10849
10850fi;
10851
10852 eval "$ac_cv_use_dccache"
10853 if test "$no_cache" != 1; then
10854 echo $ac_cv_use_dccache >> ${wx_arg_cache_file}.tmp
10855 fi
10856
10857 if test "$wxUSE_DC_CACHEING" = yes; then
10858 echo "$as_me:$LINENO: result: yes" >&5
10859echo "${ECHO_T}yes" >&6
10860 else
10861 echo "$as_me:$LINENO: result: no" >&5
10862echo "${ECHO_T}no" >&6
10863 fi
10864
10865fi
10866
a848cd7e
SC
10867
10868
10869 enablestring=
10870 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-palette" >&5
10871echo $ECHO_N "checking for --${enablestring:-enable}-palette... $ECHO_C" >&6
10872 no_cache=0
10873 # Check whether --enable-palette or --disable-palette was given.
10874if test "${enable_palette+set}" = set; then
10875 enableval="$enable_palette"
10876
10877 if test "$enableval" = yes; then
10878 ac_cv_use_palette='wxUSE_PALETTE=yes'
10879 else
10880 ac_cv_use_palette='wxUSE_PALETTE=no'
10881 fi
10882
10883else
10884
10885 LINE=`grep "wxUSE_PALETTE" ${wx_arg_cache_file}`
10886 if test "x$LINE" != x ; then
10887 eval "DEFAULT_$LINE"
10888 else
10889 no_cache=1
10890 fi
10891
10892 ac_cv_use_palette='wxUSE_PALETTE='$DEFAULT_wxUSE_PALETTE
10893
10894fi;
10895
10896 eval "$ac_cv_use_palette"
10897 if test "$no_cache" != 1; then
10898 echo $ac_cv_use_palette >> ${wx_arg_cache_file}.tmp
10899 fi
10900
10901 if test "$wxUSE_PALETTE" = yes; then
10902 echo "$as_me:$LINENO: result: yes" >&5
10903echo "${ECHO_T}yes" >&6
10904 else
10905 echo "$as_me:$LINENO: result: no" >&5
10906echo "${ECHO_T}no" >&6
10907 fi
10908
10909
10910 enablestring=
10911 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-image" >&5
10912echo $ECHO_N "checking for --${enablestring:-enable}-image... $ECHO_C" >&6
10913 no_cache=0
10914 # Check whether --enable-image or --disable-image was given.
10915if test "${enable_image+set}" = set; then
10916 enableval="$enable_image"
10917
10918 if test "$enableval" = yes; then
10919 ac_cv_use_image='wxUSE_IMAGE=yes'
10920 else
10921 ac_cv_use_image='wxUSE_IMAGE=no'
10922 fi
10923
10924else
10925
10926 LINE=`grep "wxUSE_IMAGE" ${wx_arg_cache_file}`
10927 if test "x$LINE" != x ; then
10928 eval "DEFAULT_$LINE"
10929 else
10930 no_cache=1
10931 fi
10932
10933 ac_cv_use_image='wxUSE_IMAGE='$DEFAULT_wxUSE_IMAGE
10934
10935fi;
10936
10937 eval "$ac_cv_use_image"
10938 if test "$no_cache" != 1; then
10939 echo $ac_cv_use_image >> ${wx_arg_cache_file}.tmp
10940 fi
10941
10942 if test "$wxUSE_IMAGE" = yes; then
10943 echo "$as_me:$LINENO: result: yes" >&5
10944echo "${ECHO_T}yes" >&6
10945 else
10946 echo "$as_me:$LINENO: result: no" >&5
10947echo "${ECHO_T}no" >&6
10948 fi
10949
10950
10951 enablestring=
10952 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gif" >&5
10953echo $ECHO_N "checking for --${enablestring:-enable}-gif... $ECHO_C" >&6
10954 no_cache=0
10955 # Check whether --enable-gif or --disable-gif was given.
10956if test "${enable_gif+set}" = set; then
10957 enableval="$enable_gif"
10958
10959 if test "$enableval" = yes; then
10960 ac_cv_use_gif='wxUSE_GIF=yes'
10961 else
10962 ac_cv_use_gif='wxUSE_GIF=no'
10963 fi
10964
10965else
10966
10967 LINE=`grep "wxUSE_GIF" ${wx_arg_cache_file}`
10968 if test "x$LINE" != x ; then
10969 eval "DEFAULT_$LINE"
10970 else
10971 no_cache=1
10972 fi
10973
10974 ac_cv_use_gif='wxUSE_GIF='$DEFAULT_wxUSE_GIF
10975
10976fi;
10977
10978 eval "$ac_cv_use_gif"
10979 if test "$no_cache" != 1; then
10980 echo $ac_cv_use_gif >> ${wx_arg_cache_file}.tmp
10981 fi
10982
10983 if test "$wxUSE_GIF" = yes; then
10984 echo "$as_me:$LINENO: result: yes" >&5
10985echo "${ECHO_T}yes" >&6
10986 else
10987 echo "$as_me:$LINENO: result: no" >&5
10988echo "${ECHO_T}no" >&6
10989 fi
10990
10991
10992 enablestring=
10993 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-pcx" >&5
10994echo $ECHO_N "checking for --${enablestring:-enable}-pcx... $ECHO_C" >&6
10995 no_cache=0
10996 # Check whether --enable-pcx or --disable-pcx was given.
10997if test "${enable_pcx+set}" = set; then
10998 enableval="$enable_pcx"
10999
11000 if test "$enableval" = yes; then
11001 ac_cv_use_pcx='wxUSE_PCX=yes'
11002 else
11003 ac_cv_use_pcx='wxUSE_PCX=no'
11004 fi
11005
11006else
11007
11008 LINE=`grep "wxUSE_PCX" ${wx_arg_cache_file}`
11009 if test "x$LINE" != x ; then
11010 eval "DEFAULT_$LINE"
11011 else
11012 no_cache=1
11013 fi
11014
11015 ac_cv_use_pcx='wxUSE_PCX='$DEFAULT_wxUSE_PCX
11016
11017fi;
11018
11019 eval "$ac_cv_use_pcx"
11020 if test "$no_cache" != 1; then
11021 echo $ac_cv_use_pcx >> ${wx_arg_cache_file}.tmp
11022 fi
11023
11024 if test "$wxUSE_PCX" = yes; then
11025 echo "$as_me:$LINENO: result: yes" >&5
11026echo "${ECHO_T}yes" >&6
11027 else
11028 echo "$as_me:$LINENO: result: no" >&5
11029echo "${ECHO_T}no" >&6
11030 fi
11031
11032
11033 enablestring=
11034 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-iff" >&5
11035echo $ECHO_N "checking for --${enablestring:-enable}-iff... $ECHO_C" >&6
11036 no_cache=0
11037 # Check whether --enable-iff or --disable-iff was given.
11038if test "${enable_iff+set}" = set; then
11039 enableval="$enable_iff"
11040
11041 if test "$enableval" = yes; then
11042 ac_cv_use_iff='wxUSE_IFF=yes'
11043 else
11044 ac_cv_use_iff='wxUSE_IFF=no'
11045 fi
11046
11047else
11048
11049 LINE=`grep "wxUSE_IFF" ${wx_arg_cache_file}`
11050 if test "x$LINE" != x ; then
11051 eval "DEFAULT_$LINE"
11052 else
11053 no_cache=1
11054 fi
11055
11056 ac_cv_use_iff='wxUSE_IFF='$DEFAULT_wxUSE_IFF
11057
11058fi;
11059
11060 eval "$ac_cv_use_iff"
11061 if test "$no_cache" != 1; then
11062 echo $ac_cv_use_iff >> ${wx_arg_cache_file}.tmp
11063 fi
11064
11065 if test "$wxUSE_IFF" = yes; then
11066 echo "$as_me:$LINENO: result: yes" >&5
11067echo "${ECHO_T}yes" >&6
11068 else
11069 echo "$as_me:$LINENO: result: no" >&5
11070echo "${ECHO_T}no" >&6
11071 fi
11072
11073
11074 enablestring=
11075 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-pnm" >&5
11076echo $ECHO_N "checking for --${enablestring:-enable}-pnm... $ECHO_C" >&6
11077 no_cache=0
11078 # Check whether --enable-pnm or --disable-pnm was given.
11079if test "${enable_pnm+set}" = set; then
11080 enableval="$enable_pnm"
11081
11082 if test "$enableval" = yes; then
11083 ac_cv_use_pnm='wxUSE_PNM=yes'
11084 else
11085 ac_cv_use_pnm='wxUSE_PNM=no'
11086 fi
11087
11088else
11089
11090 LINE=`grep "wxUSE_PNM" ${wx_arg_cache_file}`
11091 if test "x$LINE" != x ; then
11092 eval "DEFAULT_$LINE"
11093 else
11094 no_cache=1
11095 fi
11096
11097 ac_cv_use_pnm='wxUSE_PNM='$DEFAULT_wxUSE_PNM
11098
11099fi;
11100
11101 eval "$ac_cv_use_pnm"
11102 if test "$no_cache" != 1; then
11103 echo $ac_cv_use_pnm >> ${wx_arg_cache_file}.tmp
11104 fi
11105
11106 if test "$wxUSE_PNM" = yes; then
11107 echo "$as_me:$LINENO: result: yes" >&5
11108echo "${ECHO_T}yes" >&6
11109 else
11110 echo "$as_me:$LINENO: result: no" >&5
11111echo "${ECHO_T}no" >&6
11112 fi
11113
11114
11115 enablestring=
11116 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-xpm" >&5
11117echo $ECHO_N "checking for --${enablestring:-enable}-xpm... $ECHO_C" >&6
11118 no_cache=0
11119 # Check whether --enable-xpm or --disable-xpm was given.
11120if test "${enable_xpm+set}" = set; then
11121 enableval="$enable_xpm"
11122
11123 if test "$enableval" = yes; then
11124 ac_cv_use_xpm='wxUSE_XPM=yes'
11125 else
11126 ac_cv_use_xpm='wxUSE_XPM=no'
11127 fi
11128
11129else
11130
11131 LINE=`grep "wxUSE_XPM" ${wx_arg_cache_file}`
11132 if test "x$LINE" != x ; then
11133 eval "DEFAULT_$LINE"
11134 else
11135 no_cache=1
11136 fi
11137
11138 ac_cv_use_xpm='wxUSE_XPM='$DEFAULT_wxUSE_XPM
11139
11140fi;
11141
11142 eval "$ac_cv_use_xpm"
11143 if test "$no_cache" != 1; then
11144 echo $ac_cv_use_xpm >> ${wx_arg_cache_file}.tmp
11145 fi
11146
11147 if test "$wxUSE_XPM" = yes; then
11148 echo "$as_me:$LINENO: result: yes" >&5
11149echo "${ECHO_T}yes" >&6
11150 else
11151 echo "$as_me:$LINENO: result: no" >&5
11152echo "${ECHO_T}no" >&6
11153 fi
11154
11155
11156 enablestring=
11157 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ico_cur" >&5
11158echo $ECHO_N "checking for --${enablestring:-enable}-ico_cur... $ECHO_C" >&6
11159 no_cache=0
11160 # Check whether --enable-ico_cur or --disable-ico_cur was given.
11161if test "${enable_ico_cur+set}" = set; then
11162 enableval="$enable_ico_cur"
11163
11164 if test "$enableval" = yes; then
11165 ac_cv_use_ico_cur='wxUSE_ICO_CUR=yes'
11166 else
11167 ac_cv_use_ico_cur='wxUSE_ICO_CUR=no'
11168 fi
11169
11170else
11171
11172 LINE=`grep "wxUSE_ICO_CUR" ${wx_arg_cache_file}`
11173 if test "x$LINE" != x ; then
11174 eval "DEFAULT_$LINE"
11175 else
11176 no_cache=1
11177 fi
11178
11179 ac_cv_use_ico_cur='wxUSE_ICO_CUR='$DEFAULT_wxUSE_ICO_CUR
11180
11181fi;
11182
11183 eval "$ac_cv_use_ico_cur"
11184 if test "$no_cache" != 1; then
11185 echo $ac_cv_use_ico_cur >> ${wx_arg_cache_file}.tmp
11186 fi
11187
11188 if test "$wxUSE_ICO_CUR" = yes; then
11189 echo "$as_me:$LINENO: result: yes" >&5
11190echo "${ECHO_T}yes" >&6
11191 else
11192 echo "$as_me:$LINENO: result: no" >&5
11193echo "${ECHO_T}no" >&6
11194 fi
11195
11196
11197fi
11198
11199
11200
ceec2216
RL
11201# Check whether --with-flavour or --without-flavour was given.
11202if test "${with_flavour+set}" = set; then
11203 withval="$with_flavour"
11204 WX_FLAVOUR="$withval"
11205fi;
11206
11207
11208
a848cd7e
SC
11209 enablestring=
11210 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-official_build" >&5
11211echo $ECHO_N "checking for --${enablestring:-enable}-official_build... $ECHO_C" >&6
11212 no_cache=0
11213 # Check whether --enable-official_build or --disable-official_build was given.
11214if test "${enable_official_build+set}" = set; then
11215 enableval="$enable_official_build"
11216
11217 if test "$enableval" = yes; then
11218 ac_cv_use_official_build='wxUSE_OFFICIAL_BUILD=yes'
11219 else
11220 ac_cv_use_official_build='wxUSE_OFFICIAL_BUILD=no'
11221 fi
11222
11223else
11224
11225 LINE=`grep "wxUSE_OFFICIAL_BUILD" ${wx_arg_cache_file}`
11226 if test "x$LINE" != x ; then
11227 eval "DEFAULT_$LINE"
11228 else
11229 no_cache=1
11230 fi
11231
11232 ac_cv_use_official_build='wxUSE_OFFICIAL_BUILD='$DEFAULT_wxUSE_OFFICIAL_BUILD
11233
11234fi;
11235
11236 eval "$ac_cv_use_official_build"
11237 if test "$no_cache" != 1; then
11238 echo $ac_cv_use_official_build >> ${wx_arg_cache_file}.tmp
11239 fi
11240
11241 if test "$wxUSE_OFFICIAL_BUILD" = yes; then
11242 echo "$as_me:$LINENO: result: yes" >&5
11243echo "${ECHO_T}yes" >&6
11244 else
11245 echo "$as_me:$LINENO: result: no" >&5
11246echo "${ECHO_T}no" >&6
11247 fi
11248
11249# Check whether --enable-vendor or --disable-vendor was given.
11250if test "${enable_vendor+set}" = set; then
11251 enableval="$enable_vendor"
11252 VENDOR="$enableval"
11253fi;
11254if test "x$VENDOR" = "x"; then
11255 VENDOR="custom"
11256fi
11257
a848cd7e
SC
11258
11259
11260
11261 echo "saving argument cache $wx_arg_cache_file"
11262 mv ${wx_arg_cache_file}.tmp ${wx_arg_cache_file}
11263
11264
11265
11266echo "$as_me:$LINENO: checking for toolkit" >&5
11267echo $ECHO_N "checking for toolkit... $ECHO_C" >&6
11268
11269# In Wine, we need to default to MSW, not GTK or MOTIF
11270if test "$wxUSE_WINE" = "yes"; then
11271 DEFAULT_DEFAULT_wxUSE_GTK=0
11272 DEFAULT_DEFAULT_wxUSE_MOTIF=0
11273 DEFAULT_DEFAULT_wxUSE_MSW=1
11274 wxUSE_SHARED=no
11275fi
11276
f597b41c 11277
a848cd7e
SC
11278if test "$wxUSE_GUI" = "yes"; then
11279
11280 if test "$USE_BEOS" = 1; then
11281 { { echo "$as_me:$LINENO: error: BeOS GUI is not supported yet, use --disable-gui" >&5
11282echo "$as_me: error: BeOS GUI is not supported yet, use --disable-gui" >&2;}
11283 { (exit 1); exit 1; }; }
11284 fi
11285
11286 if test "$TOOLKIT_GIVEN" = 1; then
11287 for toolkit in `echo $ALL_TOOLKITS`; do
11288 var=wxUSE_$toolkit
11289 eval "value=\$${var}"
f34ca037
MW
11290 if test "x$value" = "xno"; then
11291 eval "$var=0"
11292 elif test "x$value" != "x"; then
11293 eval "$var=1"
11294 fi
11295
11296 if test "x$value" != "x" -a "x$value" != "xyes" -a "x$value" != "xno"; then
11297 eval "wx${toolkit}_VERSION=$value"
11298 fi
a848cd7e
SC
11299 done
11300 else
11301 for toolkit in `echo $ALL_TOOLKITS`; do
11302 if test "$has_toolkit_in_cache" != 1; then
11303 var=DEFAULT_DEFAULT_wxUSE_$toolkit
11304 else
11305 var=DEFAULT_wxUSE_$toolkit
f34ca037
MW
11306
11307 eval "version=\$DEFAULT_wx${toolkit}_VERSION"
11308 if test "x$version" != "x"; then
11309 eval "wx${toolkit}_VERSION=$version"
11310 fi
a848cd7e
SC
11311 fi
11312 eval "wxUSE_$toolkit=\$${var}"
11313 done
11314 fi
11315
11316 NUM_TOOLKITS=`expr ${wxUSE_COCOA:-0} + ${wxUSE_GTK:-0} + ${wxUSE_MAC:-0} \
11317 + ${wxUSE_MGL:-0} + ${wxUSE_MICROWIN:-0} \
11318 + ${wxUSE_MOTIF:-0} + ${wxUSE_MSW:-0} + ${wxUSE_X11:-0}`
11319
11320 case "${host}" in
11321 *-pc-os2_emx | *-pc-os2-emx )
11322 NUM_TOOLKITS=`expr ${NUM_TOOLKITS} + ${wxUSE_PM:-0}`
11323 esac
11324
11325 case "$NUM_TOOLKITS" in
11326 1)
11327 ;;
11328 0)
11329 { { echo "$as_me:$LINENO: error: Please specify a toolkit -- cannot determine the default for ${host}" >&5
11330echo "$as_me: error: Please specify a toolkit -- cannot determine the default for ${host}" >&2;}
11331 { (exit 1); exit 1; }; }
11332 ;;
11333 *)
11334 { { echo "$as_me:$LINENO: error: Please specify at most one toolkit (maybe some are cached in configarg.cache?)" >&5
11335echo "$as_me: error: Please specify at most one toolkit (maybe some are cached in configarg.cache?)" >&2;}
11336 { (exit 1); exit 1; }; }
11337 esac
11338
f34ca037
MW
11339 # to be removed when --disable-gtk2 isn't needed
11340 if test "x$wxUSE_GTK2" = "xyes"; then
11341 wxGTK_VERSION=2
11342 elif test "x$wxUSE_GTK2" = "xno"; then
11343 wxGTK_VERSION=1
11344 fi
11345
a848cd7e
SC
11346 for toolkit in `echo $ALL_TOOLKITS`; do
11347 var=wxUSE_$toolkit
11348 eval "value=\$${var}"
11349 if test "x$value" != x; then
11350 cache_var=CACHE_$toolkit
11351 eval "cache=\$${cache_var}"
11352 if test "$cache" = 1; then
11353 echo "$var=$value" >> ${wx_arg_cache_file}
f34ca037
MW
11354 eval "version=\$wx${toolkit}_VERSION"
11355 if test "x$version" != "x"; then
11356 echo "wx${toolkit}_VERSION=$version" >> ${wx_arg_cache_file}
11357 fi
a848cd7e
SC
11358 fi
11359 if test "$value" = 1; then
11360 toolkit_echo=`echo $toolkit | tr "[A-Z]" "[a-z]"`
11361 echo "$as_me:$LINENO: result: $toolkit_echo" >&5
11362echo "${ECHO_T}$toolkit_echo" >&6
11363 fi
11364 fi
11365 done
11366else
11367 if test "x$host_alias" != "x"; then
11368 echo "$as_me:$LINENO: result: base ($host_alias hosted) only" >&5
11369echo "${ECHO_T}base ($host_alias hosted) only" >&6
11370 else
11371 echo "$as_me:$LINENO: result: base only" >&5
11372echo "${ECHO_T}base only" >&6
11373 fi
11374fi
11375
11376wants_win32=0
11377doesnt_want_win32=0
11378case "${host}" in
11379 *-*-cygwin*)
11380 if test "$wxUSE_MSW" = 1 ; then
11381 wants_win32=1
7275146d 11382 BAKEFILE_FORCE_PLATFORM=win32
a848cd7e
SC
11383 else
11384 doesnt_want_win32=1
11385 fi
11386 ;;
11387 *-*-mingw*)
11388 wants_win32=1
11389 ;;
11390esac
11391
11392if test "$wxUSE_WINE" = "yes"; then
11393 wants_win32=1
11394 CC=winegcc
11395 CXX=wineg++
a848cd7e
SC
11396 LDFLAGS_GUI="-mwindows"
11397fi
11398
11399if test "$wants_win32" = 1 ; then
11400 USE_UNIX=0
11401 USE_WIN32=1
11402 cat >>confdefs.h <<\_ACEOF
11403#define __WIN32__ 1
11404_ACEOF
11405
11406 cat >>confdefs.h <<\_ACEOF
11407#define __WIN95__ 1
11408_ACEOF
11409
11410 cat >>confdefs.h <<\_ACEOF
11411#define __WINDOWS__ 1
11412_ACEOF
11413
11414 cat >>confdefs.h <<\_ACEOF
11415#define __GNUWIN32__ 1
11416_ACEOF
11417
11418 cat >>confdefs.h <<\_ACEOF
11419#define STRICT 1
11420_ACEOF
11421
11422 cat >>confdefs.h <<\_ACEOF
11423#define WINVER 0x0400
11424_ACEOF
11425
11426fi
11427if test "$doesnt_want_win32" = 1 ; then
11428 USE_UNIX=1
11429 USE_WIN32=0
11430fi
11431
11432if test "$USE_UNIX" = 1 ; then
11433 wxUSE_UNIX=yes
11434 cat >>confdefs.h <<\_ACEOF
11435#define __UNIX__ 1
11436_ACEOF
11437
11438fi
11439
11440
11441cat >confcache <<\_ACEOF
11442# This file is a shell script that caches the results of configure
11443# tests run on this system so they can be shared between configure
11444# scripts and configure runs, see configure's option --config-cache.
11445# It is not useful on other systems. If it contains results you don't
11446# want to keep, you may remove or edit it.
11447#
11448# config.status only pays attention to the cache file if you give it
11449# the --recheck option to rerun configure.
11450#
11451# `ac_cv_env_foo' variables (set or unset) will be overridden when
11452# loading this file, other *unset* `ac_cv_foo' will be assigned the
11453# following values.
11454
11455_ACEOF
11456
11457# The following way of writing the cache mishandles newlines in values,
11458# but we know of no workaround that is simple, portable, and efficient.
11459# So, don't put newlines in cache variables' values.
11460# Ultrix sh set writes to stderr and can't be redirected directly,
11461# and sets the high bit in the cache file unless we assign to the vars.
11462{
11463 (set) 2>&1 |
11464 case `(ac_space=' '; set | grep ac_space) 2>&1` in
11465 *ac_space=\ *)
11466 # `set' does not quote correctly, so add quotes (double-quote
11467 # substitution turns \\\\ into \\, and sed turns \\ into \).
11468 sed -n \
ac1cb8d3
VS
11469 "s/'/'\\\\''/g;
11470 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
a848cd7e
SC
11471 ;;
11472 *)
11473 # `set' quotes correctly as required by POSIX, so do not add quotes.
11474 sed -n \
ac1cb8d3 11475 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
a848cd7e
SC
11476 ;;
11477 esac;
11478} |
11479 sed '
11480 t clear
11481 : clear
11482 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
11483 t end
11484 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11485 : end' >>confcache
11486if diff $cache_file confcache >/dev/null 2>&1; then :; else
11487 if test -w $cache_file; then
11488 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
11489 cat confcache >$cache_file
11490 else
11491 echo "not updating unwritable cache $cache_file"
11492 fi
11493fi
11494rm -f confcache
11495
a848cd7e 11496CFLAGS=${CFLAGS:=}
6dcfc289
DE
11497
11498
3006edc0 11499
6dcfc289 11500 ac_ext=c
a848cd7e
SC
11501ac_cpp='$CPP $CPPFLAGS'
11502ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11503ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11504ac_compiler_gnu=$ac_cv_c_compiler_gnu
11505if test -n "$ac_tool_prefix"; then
11506 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
11507set dummy ${ac_tool_prefix}gcc; ac_word=$2
11508echo "$as_me:$LINENO: checking for $ac_word" >&5
11509echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11510if test "${ac_cv_prog_CC+set}" = set; then
11511 echo $ECHO_N "(cached) $ECHO_C" >&6
11512else
11513 if test -n "$CC"; then
11514 ac_cv_prog_CC="$CC" # Let the user override the test.
11515else
11516as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11517for as_dir in $PATH
11518do
11519 IFS=$as_save_IFS
11520 test -z "$as_dir" && as_dir=.
11521 for ac_exec_ext in '' $ac_executable_extensions; do
11522 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11523 ac_cv_prog_CC="${ac_tool_prefix}gcc"
11524 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11525 break 2
11526 fi
11527done
11528done
11529
11530fi
11531fi
11532CC=$ac_cv_prog_CC
11533if test -n "$CC"; then
11534 echo "$as_me:$LINENO: result: $CC" >&5
11535echo "${ECHO_T}$CC" >&6
11536else
11537 echo "$as_me:$LINENO: result: no" >&5
11538echo "${ECHO_T}no" >&6
11539fi
11540
11541fi
11542if test -z "$ac_cv_prog_CC"; then
11543 ac_ct_CC=$CC
11544 # Extract the first word of "gcc", so it can be a program name with args.
11545set dummy gcc; ac_word=$2
11546echo "$as_me:$LINENO: checking for $ac_word" >&5
11547echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11548if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
11549 echo $ECHO_N "(cached) $ECHO_C" >&6
11550else
11551 if test -n "$ac_ct_CC"; then
11552 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
11553else
11554as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11555for as_dir in $PATH
11556do
11557 IFS=$as_save_IFS
11558 test -z "$as_dir" && as_dir=.
11559 for ac_exec_ext in '' $ac_executable_extensions; do
11560 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11561 ac_cv_prog_ac_ct_CC="gcc"
11562 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11563 break 2
11564 fi
11565done
11566done
11567
11568fi
11569fi
11570ac_ct_CC=$ac_cv_prog_ac_ct_CC
11571if test -n "$ac_ct_CC"; then
11572 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
11573echo "${ECHO_T}$ac_ct_CC" >&6
11574else
11575 echo "$as_me:$LINENO: result: no" >&5
11576echo "${ECHO_T}no" >&6
11577fi
11578
11579 CC=$ac_ct_CC
11580else
11581 CC="$ac_cv_prog_CC"
11582fi
11583
11584if test -z "$CC"; then
11585 if test -n "$ac_tool_prefix"; then
11586 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
11587set dummy ${ac_tool_prefix}cc; ac_word=$2
11588echo "$as_me:$LINENO: checking for $ac_word" >&5
11589echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11590if test "${ac_cv_prog_CC+set}" = set; then
11591 echo $ECHO_N "(cached) $ECHO_C" >&6
11592else
11593 if test -n "$CC"; then
11594 ac_cv_prog_CC="$CC" # Let the user override the test.
11595else
11596as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11597for as_dir in $PATH
11598do
11599 IFS=$as_save_IFS
11600 test -z "$as_dir" && as_dir=.
11601 for ac_exec_ext in '' $ac_executable_extensions; do
11602 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11603 ac_cv_prog_CC="${ac_tool_prefix}cc"
11604 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11605 break 2
11606 fi
11607done
11608done
11609
11610fi
11611fi
11612CC=$ac_cv_prog_CC
11613if test -n "$CC"; then
11614 echo "$as_me:$LINENO: result: $CC" >&5
11615echo "${ECHO_T}$CC" >&6
11616else
11617 echo "$as_me:$LINENO: result: no" >&5
11618echo "${ECHO_T}no" >&6
11619fi
11620
11621fi
11622if test -z "$ac_cv_prog_CC"; then
11623 ac_ct_CC=$CC
11624 # Extract the first word of "cc", so it can be a program name with args.
11625set dummy cc; ac_word=$2
11626echo "$as_me:$LINENO: checking for $ac_word" >&5
11627echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11628if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
11629 echo $ECHO_N "(cached) $ECHO_C" >&6
11630else
11631 if test -n "$ac_ct_CC"; then
11632 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
11633else
11634as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11635for as_dir in $PATH
11636do
11637 IFS=$as_save_IFS
11638 test -z "$as_dir" && as_dir=.
11639 for ac_exec_ext in '' $ac_executable_extensions; do
11640 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11641 ac_cv_prog_ac_ct_CC="cc"
11642 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11643 break 2
11644 fi
11645done
11646done
11647
11648fi
11649fi
11650ac_ct_CC=$ac_cv_prog_ac_ct_CC
11651if test -n "$ac_ct_CC"; then
11652 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
11653echo "${ECHO_T}$ac_ct_CC" >&6
11654else
11655 echo "$as_me:$LINENO: result: no" >&5
11656echo "${ECHO_T}no" >&6
11657fi
11658
11659 CC=$ac_ct_CC
11660else
11661 CC="$ac_cv_prog_CC"
11662fi
11663
11664fi
11665if test -z "$CC"; then
11666 # Extract the first word of "cc", so it can be a program name with args.
11667set dummy cc; ac_word=$2
11668echo "$as_me:$LINENO: checking for $ac_word" >&5
11669echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11670if test "${ac_cv_prog_CC+set}" = set; then
11671 echo $ECHO_N "(cached) $ECHO_C" >&6
11672else
11673 if test -n "$CC"; then
11674 ac_cv_prog_CC="$CC" # Let the user override the test.
11675else
11676 ac_prog_rejected=no
11677as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11678for as_dir in $PATH
11679do
11680 IFS=$as_save_IFS
11681 test -z "$as_dir" && as_dir=.
11682 for ac_exec_ext in '' $ac_executable_extensions; do
11683 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11684 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
11685 ac_prog_rejected=yes
11686 continue
11687 fi
11688 ac_cv_prog_CC="cc"
11689 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11690 break 2
11691 fi
11692done
11693done
11694
11695if test $ac_prog_rejected = yes; then
11696 # We found a bogon in the path, so make sure we never use it.
11697 set dummy $ac_cv_prog_CC
11698 shift
11699 if test $# != 0; then
11700 # We chose a different compiler from the bogus one.
11701 # However, it has the same basename, so the bogon will be chosen
11702 # first if we set CC to just the basename; use the full file name.
11703 shift
11704 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
11705 fi
11706fi
11707fi
11708fi
11709CC=$ac_cv_prog_CC
11710if test -n "$CC"; then
11711 echo "$as_me:$LINENO: result: $CC" >&5
11712echo "${ECHO_T}$CC" >&6
11713else
11714 echo "$as_me:$LINENO: result: no" >&5
11715echo "${ECHO_T}no" >&6
11716fi
11717
11718fi
11719if test -z "$CC"; then
11720 if test -n "$ac_tool_prefix"; then
11721 for ac_prog in cl
11722 do
11723 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11724set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11725echo "$as_me:$LINENO: checking for $ac_word" >&5
11726echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11727if test "${ac_cv_prog_CC+set}" = set; then
11728 echo $ECHO_N "(cached) $ECHO_C" >&6
11729else
11730 if test -n "$CC"; then
11731 ac_cv_prog_CC="$CC" # Let the user override the test.
11732else
11733as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11734for as_dir in $PATH
11735do
11736 IFS=$as_save_IFS
11737 test -z "$as_dir" && as_dir=.
11738 for ac_exec_ext in '' $ac_executable_extensions; do
11739 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11740 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
11741 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11742 break 2
11743 fi
11744done
11745done
11746
11747fi
11748fi
11749CC=$ac_cv_prog_CC
11750if test -n "$CC"; then
11751 echo "$as_me:$LINENO: result: $CC" >&5
11752echo "${ECHO_T}$CC" >&6
11753else
11754 echo "$as_me:$LINENO: result: no" >&5
11755echo "${ECHO_T}no" >&6
11756fi
11757
11758 test -n "$CC" && break
11759 done
11760fi
11761if test -z "$CC"; then
11762 ac_ct_CC=$CC
11763 for ac_prog in cl
11764do
11765 # Extract the first word of "$ac_prog", so it can be a program name with args.
11766set dummy $ac_prog; ac_word=$2
11767echo "$as_me:$LINENO: checking for $ac_word" >&5
11768echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11769if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
11770 echo $ECHO_N "(cached) $ECHO_C" >&6
11771else
11772 if test -n "$ac_ct_CC"; then
11773 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
11774else
11775as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11776for as_dir in $PATH
11777do
11778 IFS=$as_save_IFS
11779 test -z "$as_dir" && as_dir=.
11780 for ac_exec_ext in '' $ac_executable_extensions; do
11781 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11782 ac_cv_prog_ac_ct_CC="$ac_prog"
11783 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11784 break 2
11785 fi
11786done
11787done
11788
11789fi
11790fi
11791ac_ct_CC=$ac_cv_prog_ac_ct_CC
11792if test -n "$ac_ct_CC"; then
11793 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
11794echo "${ECHO_T}$ac_ct_CC" >&6
11795else
11796 echo "$as_me:$LINENO: result: no" >&5
11797echo "${ECHO_T}no" >&6
11798fi
11799
11800 test -n "$ac_ct_CC" && break
11801done
11802
11803 CC=$ac_ct_CC
11804fi
11805
11806fi
11807
11808
11809test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
11810See \`config.log' for more details." >&5
11811echo "$as_me: error: no acceptable C compiler found in \$PATH
11812See \`config.log' for more details." >&2;}
11813 { (exit 1); exit 1; }; }
11814
11815# Provide some information about the compiler.
11816echo "$as_me:$LINENO:" \
11817 "checking for C compiler version" >&5
11818ac_compiler=`set X $ac_compile; echo $2`
11819{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
11820 (eval $ac_compiler --version </dev/null >&5) 2>&5
11821 ac_status=$?
11822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11823 (exit $ac_status); }
11824{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
11825 (eval $ac_compiler -v </dev/null >&5) 2>&5
11826 ac_status=$?
11827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11828 (exit $ac_status); }
11829{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
11830 (eval $ac_compiler -V </dev/null >&5) 2>&5
11831 ac_status=$?
11832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11833 (exit $ac_status); }
11834
11835cat >conftest.$ac_ext <<_ACEOF
11836/* confdefs.h. */
11837_ACEOF
11838cat confdefs.h >>conftest.$ac_ext
11839cat >>conftest.$ac_ext <<_ACEOF
11840/* end confdefs.h. */
11841
11842int
11843main ()
11844{
11845
11846 ;
11847 return 0;
11848}
11849_ACEOF
11850ac_clean_files_save=$ac_clean_files
11851ac_clean_files="$ac_clean_files a.out a.exe b.out"
11852# Try to create an executable without -o first, disregard a.out.
11853# It will help us diagnose broken compilers, and finding out an intuition
11854# of exeext.
ac1cb8d3
VS
11855echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
11856echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
a848cd7e
SC
11857ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
11858if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
11859 (eval $ac_link_default) 2>&5
11860 ac_status=$?
11861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11862 (exit $ac_status); }; then
11863 # Find the output, starting from the most likely. This scheme is
11864# not robust to junk in `.', hence go to wildcards (a.*) only as a last
11865# resort.
11866
11867# Be careful to initialize this variable, since it used to be cached.
11868# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
11869ac_cv_exeext=
11870# b.out is created by i960 compilers.
11871for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
11872do
11873 test -f "$ac_file" || continue
11874 case $ac_file in
11875 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
ac1cb8d3 11876 ;;
a848cd7e 11877 conftest.$ac_ext )
ac1cb8d3
VS
11878 # This is the source file.
11879 ;;
a848cd7e 11880 [ab].out )
ac1cb8d3
VS
11881 # We found the default executable, but exeext='' is most
11882 # certainly right.
11883 break;;
a848cd7e 11884 *.* )
ac1cb8d3
VS
11885 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
11886 # FIXME: I believe we export ac_cv_exeext for Libtool,
11887 # but it would be cool to find out if it's true. Does anybody
11888 # maintain Libtool? --akim.
11889 export ac_cv_exeext
11890 break;;
a848cd7e 11891 * )
ac1cb8d3 11892 break;;
a848cd7e
SC
11893 esac
11894done
11895else
11896 echo "$as_me: failed program was:" >&5
11897sed 's/^/| /' conftest.$ac_ext >&5
11898
11899{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
11900See \`config.log' for more details." >&5
11901echo "$as_me: error: C compiler cannot create executables
11902See \`config.log' for more details." >&2;}
11903 { (exit 77); exit 77; }; }
11904fi
11905
11906ac_exeext=$ac_cv_exeext
11907echo "$as_me:$LINENO: result: $ac_file" >&5
11908echo "${ECHO_T}$ac_file" >&6
11909
11910# Check the compiler produces executables we can run. If not, either
11911# the compiler is broken, or we cross compile.
11912echo "$as_me:$LINENO: checking whether the C compiler works" >&5
11913echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
11914# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
11915# If not cross compiling, check that we can run a simple program.
11916if test "$cross_compiling" != yes; then
11917 if { ac_try='./$ac_file'
11918 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11919 (eval $ac_try) 2>&5
11920 ac_status=$?
11921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11922 (exit $ac_status); }; }; then
11923 cross_compiling=no
11924 else
11925 if test "$cross_compiling" = maybe; then
11926 cross_compiling=yes
11927 else
11928 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
11929If you meant to cross compile, use \`--host'.
11930See \`config.log' for more details." >&5
11931echo "$as_me: error: cannot run C compiled programs.
11932If you meant to cross compile, use \`--host'.
11933See \`config.log' for more details." >&2;}
11934 { (exit 1); exit 1; }; }
11935 fi
11936 fi
11937fi
11938echo "$as_me:$LINENO: result: yes" >&5
11939echo "${ECHO_T}yes" >&6
11940
11941rm -f a.out a.exe conftest$ac_cv_exeext b.out
11942ac_clean_files=$ac_clean_files_save
11943# Check the compiler produces executables we can run. If not, either
11944# the compiler is broken, or we cross compile.
11945echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
11946echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
11947echo "$as_me:$LINENO: result: $cross_compiling" >&5
11948echo "${ECHO_T}$cross_compiling" >&6
11949
11950echo "$as_me:$LINENO: checking for suffix of executables" >&5
11951echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
11952if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11953 (eval $ac_link) 2>&5
11954 ac_status=$?
11955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11956 (exit $ac_status); }; then
11957 # If both `conftest.exe' and `conftest' are `present' (well, observable)
11958# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
11959# work properly (i.e., refer to `conftest.exe'), while it won't with
11960# `rm'.
11961for ac_file in conftest.exe conftest conftest.*; do
11962 test -f "$ac_file" || continue
11963 case $ac_file in
11964 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
11965 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
ac1cb8d3
VS
11966 export ac_cv_exeext
11967 break;;
a848cd7e
SC
11968 * ) break;;
11969 esac
11970done
11971else
11972 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
11973See \`config.log' for more details." >&5
11974echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
11975See \`config.log' for more details." >&2;}
11976 { (exit 1); exit 1; }; }
11977fi
11978
11979rm -f conftest$ac_cv_exeext
11980echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
11981echo "${ECHO_T}$ac_cv_exeext" >&6
11982
11983rm -f conftest.$ac_ext
11984EXEEXT=$ac_cv_exeext
11985ac_exeext=$EXEEXT
11986echo "$as_me:$LINENO: checking for suffix of object files" >&5
11987echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
11988if test "${ac_cv_objext+set}" = set; then
11989 echo $ECHO_N "(cached) $ECHO_C" >&6
11990else
11991 cat >conftest.$ac_ext <<_ACEOF
11992/* confdefs.h. */
11993_ACEOF
11994cat confdefs.h >>conftest.$ac_ext
11995cat >>conftest.$ac_ext <<_ACEOF
11996/* end confdefs.h. */
11997
11998int
11999main ()
12000{
12001
12002 ;
12003 return 0;
12004}
12005_ACEOF
12006rm -f conftest.o conftest.obj
12007if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12008 (eval $ac_compile) 2>&5
12009 ac_status=$?
12010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12011 (exit $ac_status); }; then
12012 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
12013 case $ac_file in
12014 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
12015 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
12016 break;;
12017 esac
12018done
12019else
12020 echo "$as_me: failed program was:" >&5
12021sed 's/^/| /' conftest.$ac_ext >&5
12022
12023{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
12024See \`config.log' for more details." >&5
12025echo "$as_me: error: cannot compute suffix of object files: cannot compile
12026See \`config.log' for more details." >&2;}
12027 { (exit 1); exit 1; }; }
12028fi
12029
12030rm -f conftest.$ac_cv_objext conftest.$ac_ext
12031fi
12032echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
12033echo "${ECHO_T}$ac_cv_objext" >&6
12034OBJEXT=$ac_cv_objext
12035ac_objext=$OBJEXT
12036echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
12037echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
12038if test "${ac_cv_c_compiler_gnu+set}" = set; then
12039 echo $ECHO_N "(cached) $ECHO_C" >&6
12040else
12041 cat >conftest.$ac_ext <<_ACEOF
12042/* confdefs.h. */
12043_ACEOF
12044cat confdefs.h >>conftest.$ac_ext
12045cat >>conftest.$ac_ext <<_ACEOF
12046/* end confdefs.h. */
12047
12048int
12049main ()
12050{
12051#ifndef __GNUC__
12052 choke me
12053#endif
12054
12055 ;
12056 return 0;
12057}
12058_ACEOF
12059rm -f conftest.$ac_objext
12060if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 12061 (eval $ac_compile) 2>conftest.er1
a848cd7e 12062 ac_status=$?
ac1cb8d3
VS
12063 grep -v '^ *+' conftest.er1 >conftest.err
12064 rm -f conftest.er1
12065 cat conftest.err >&5
a848cd7e
SC
12066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12067 (exit $ac_status); } &&
c9a66001 12068 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
12069 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12070 (eval $ac_try) 2>&5
12071 ac_status=$?
12072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12073 (exit $ac_status); }; } &&
12074 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
12075 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12076 (eval $ac_try) 2>&5
12077 ac_status=$?
12078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12079 (exit $ac_status); }; }; then
12080 ac_compiler_gnu=yes
12081else
12082 echo "$as_me: failed program was:" >&5
12083sed 's/^/| /' conftest.$ac_ext >&5
12084
12085ac_compiler_gnu=no
12086fi
ac1cb8d3 12087rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
12088ac_cv_c_compiler_gnu=$ac_compiler_gnu
12089
12090fi
12091echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
12092echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
12093GCC=`test $ac_compiler_gnu = yes && echo yes`
12094ac_test_CFLAGS=${CFLAGS+set}
12095ac_save_CFLAGS=$CFLAGS
8aeeb05c 12096CFLAGS="-g"
a848cd7e
SC
12097echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
12098echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
12099if test "${ac_cv_prog_cc_g+set}" = set; then
12100 echo $ECHO_N "(cached) $ECHO_C" >&6
12101else
12102 cat >conftest.$ac_ext <<_ACEOF
12103/* confdefs.h. */
12104_ACEOF
12105cat confdefs.h >>conftest.$ac_ext
12106cat >>conftest.$ac_ext <<_ACEOF
12107/* end confdefs.h. */
12108
12109int
12110main ()
12111{
12112
12113 ;
12114 return 0;
12115}
12116_ACEOF
12117rm -f conftest.$ac_objext
12118if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 12119 (eval $ac_compile) 2>conftest.er1
a848cd7e 12120 ac_status=$?
ac1cb8d3
VS
12121 grep -v '^ *+' conftest.er1 >conftest.err
12122 rm -f conftest.er1
12123 cat conftest.err >&5
a848cd7e
SC
12124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12125 (exit $ac_status); } &&
c9a66001 12126 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
12127 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12128 (eval $ac_try) 2>&5
12129 ac_status=$?
12130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12131 (exit $ac_status); }; } &&
12132 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
12133 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12134 (eval $ac_try) 2>&5
12135 ac_status=$?
12136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12137 (exit $ac_status); }; }; then
12138 ac_cv_prog_cc_g=yes
12139else
12140 echo "$as_me: failed program was:" >&5
12141sed 's/^/| /' conftest.$ac_ext >&5
12142
12143ac_cv_prog_cc_g=no
12144fi
ac1cb8d3 12145rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
12146fi
12147echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
12148echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
12149if test "$ac_test_CFLAGS" = set; then
12150 CFLAGS=$ac_save_CFLAGS
12151elif test $ac_cv_prog_cc_g = yes; then
12152 if test "$GCC" = yes; then
12153 CFLAGS="-g -O2"
12154 else
12155 CFLAGS="-g"
12156 fi
12157else
12158 if test "$GCC" = yes; then
12159 CFLAGS="-O2"
12160 else
12161 CFLAGS=
12162 fi
12163fi
12164echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
12165echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
12166if test "${ac_cv_prog_cc_stdc+set}" = set; then
12167 echo $ECHO_N "(cached) $ECHO_C" >&6
12168else
12169 ac_cv_prog_cc_stdc=no
12170ac_save_CC=$CC
12171cat >conftest.$ac_ext <<_ACEOF
12172/* confdefs.h. */
12173_ACEOF
12174cat confdefs.h >>conftest.$ac_ext
12175cat >>conftest.$ac_ext <<_ACEOF
12176/* end confdefs.h. */
12177#include <stdarg.h>
12178#include <stdio.h>
12179#include <sys/types.h>
12180#include <sys/stat.h>
12181/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
12182struct buf { int x; };
12183FILE * (*rcsopen) (struct buf *, struct stat *, int);
12184static char *e (p, i)
12185 char **p;
12186 int i;
12187{
12188 return p[i];
12189}
12190static char *f (char * (*g) (char **, int), char **p, ...)
12191{
12192 char *s;
12193 va_list v;
12194 va_start (v,p);
12195 s = g (p, va_arg (v,int));
12196 va_end (v);
12197 return s;
12198}
ac1cb8d3
VS
12199
12200/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
12201 function prototypes and stuff, but not '\xHH' hex character constants.
12202 These don't provoke an error unfortunately, instead are silently treated
12203 as 'x'. The following induces an error, until -std1 is added to get
12204 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
12205 array size at least. It's necessary to write '\x00'==0 to get something
12206 that's true only with -std1. */
12207int osf4_cc_array ['\x00' == 0 ? 1 : -1];
12208
a848cd7e
SC
12209int test (int i, double x);
12210struct s1 {int (*f) (int a);};
12211struct s2 {int (*f) (double a);};
12212int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
12213int argc;
12214char **argv;
12215int
12216main ()
12217{
12218return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
12219 ;
12220 return 0;
12221}
12222_ACEOF
12223# Don't try gcc -ansi; that turns off useful extensions and
12224# breaks some systems' header files.
12225# AIX -qlanglvl=ansi
12226# Ultrix and OSF/1 -std1
12227# HP-UX 10.20 and later -Ae
12228# HP-UX older versions -Aa -D_HPUX_SOURCE
12229# SVR4 -Xc -D__EXTENSIONS__
12230for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
12231do
12232 CC="$ac_save_CC $ac_arg"
12233 rm -f conftest.$ac_objext
12234if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 12235 (eval $ac_compile) 2>conftest.er1
a848cd7e 12236 ac_status=$?
ac1cb8d3
VS
12237 grep -v '^ *+' conftest.er1 >conftest.err
12238 rm -f conftest.er1
12239 cat conftest.err >&5
a848cd7e
SC
12240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12241 (exit $ac_status); } &&
c9a66001 12242 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
12243 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12244 (eval $ac_try) 2>&5
12245 ac_status=$?
12246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12247 (exit $ac_status); }; } &&
12248 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
12249 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12250 (eval $ac_try) 2>&5
12251 ac_status=$?
12252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12253 (exit $ac_status); }; }; then
12254 ac_cv_prog_cc_stdc=$ac_arg
12255break
12256else
12257 echo "$as_me: failed program was:" >&5
12258sed 's/^/| /' conftest.$ac_ext >&5
12259
12260fi
ac1cb8d3 12261rm -f conftest.err conftest.$ac_objext
a848cd7e
SC
12262done
12263rm -f conftest.$ac_ext conftest.$ac_objext
12264CC=$ac_save_CC
12265
12266fi
12267
12268case "x$ac_cv_prog_cc_stdc" in
12269 x|xno)
12270 echo "$as_me:$LINENO: result: none needed" >&5
12271echo "${ECHO_T}none needed" >&6 ;;
12272 *)
12273 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
12274echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
12275 CC="$CC $ac_cv_prog_cc_stdc" ;;
12276esac
12277
12278# Some people use a C++ compiler to compile C. Since we use `exit',
12279# in C++ we need to declare it. In case someone uses the same compiler
12280# for both compiling C and C++ we need to have the C++ compiler decide
12281# the declaration of exit, since it's the most demanding environment.
12282cat >conftest.$ac_ext <<_ACEOF
12283#ifndef __cplusplus
12284 choke me
12285#endif
12286_ACEOF
12287rm -f conftest.$ac_objext
12288if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 12289 (eval $ac_compile) 2>conftest.er1
a848cd7e 12290 ac_status=$?
ac1cb8d3
VS
12291 grep -v '^ *+' conftest.er1 >conftest.err
12292 rm -f conftest.er1
12293 cat conftest.err >&5
a848cd7e
SC
12294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12295 (exit $ac_status); } &&
c9a66001 12296 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
12297 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12298 (eval $ac_try) 2>&5
12299 ac_status=$?
12300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12301 (exit $ac_status); }; } &&
12302 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
12303 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12304 (eval $ac_try) 2>&5
12305 ac_status=$?
12306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12307 (exit $ac_status); }; }; then
12308 for ac_declaration in \
ac1cb8d3 12309 '' \
a848cd7e
SC
12310 'extern "C" void std::exit (int) throw (); using std::exit;' \
12311 'extern "C" void std::exit (int); using std::exit;' \
12312 'extern "C" void exit (int) throw ();' \
12313 'extern "C" void exit (int);' \
12314 'void exit (int);'
12315do
12316 cat >conftest.$ac_ext <<_ACEOF
12317/* confdefs.h. */
12318_ACEOF
12319cat confdefs.h >>conftest.$ac_ext
12320cat >>conftest.$ac_ext <<_ACEOF
12321/* end confdefs.h. */
de59c161 12322$ac_declaration
ac1cb8d3 12323#include <stdlib.h>
a848cd7e
SC
12324int
12325main ()
12326{
12327exit (42);
12328 ;
12329 return 0;
12330}
12331_ACEOF
12332rm -f conftest.$ac_objext
12333if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 12334 (eval $ac_compile) 2>conftest.er1
a848cd7e 12335 ac_status=$?
ac1cb8d3
VS
12336 grep -v '^ *+' conftest.er1 >conftest.err
12337 rm -f conftest.er1
12338 cat conftest.err >&5
a848cd7e
SC
12339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12340 (exit $ac_status); } &&
c9a66001 12341 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
12342 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12343 (eval $ac_try) 2>&5
12344 ac_status=$?
12345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12346 (exit $ac_status); }; } &&
12347 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
12348 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12349 (eval $ac_try) 2>&5
12350 ac_status=$?
12351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12352 (exit $ac_status); }; }; then
12353 :
12354else
12355 echo "$as_me: failed program was:" >&5
12356sed 's/^/| /' conftest.$ac_ext >&5
12357
12358continue
12359fi
ac1cb8d3 12360rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
12361 cat >conftest.$ac_ext <<_ACEOF
12362/* confdefs.h. */
12363_ACEOF
12364cat confdefs.h >>conftest.$ac_ext
12365cat >>conftest.$ac_ext <<_ACEOF
12366/* end confdefs.h. */
12367$ac_declaration
12368int
12369main ()
12370{
12371exit (42);
12372 ;
12373 return 0;
12374}
12375_ACEOF
12376rm -f conftest.$ac_objext
12377if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 12378 (eval $ac_compile) 2>conftest.er1
a848cd7e 12379 ac_status=$?
ac1cb8d3
VS
12380 grep -v '^ *+' conftest.er1 >conftest.err
12381 rm -f conftest.er1
12382 cat conftest.err >&5
a848cd7e
SC
12383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12384 (exit $ac_status); } &&
c9a66001 12385 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
12386 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12387 (eval $ac_try) 2>&5
12388 ac_status=$?
12389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12390 (exit $ac_status); }; } &&
12391 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
12392 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12393 (eval $ac_try) 2>&5
12394 ac_status=$?
12395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12396 (exit $ac_status); }; }; then
12397 break
12398else
12399 echo "$as_me: failed program was:" >&5
12400sed 's/^/| /' conftest.$ac_ext >&5
12401
12402fi
ac1cb8d3 12403rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
12404done
12405rm -f conftest*
12406if test -n "$ac_declaration"; then
12407 echo '#ifdef __cplusplus' >>confdefs.h
12408 echo $ac_declaration >>confdefs.h
12409 echo '#endif' >>confdefs.h
12410fi
12411
12412else
12413 echo "$as_me: failed program was:" >&5
12414sed 's/^/| /' conftest.$ac_ext >&5
12415
12416fi
ac1cb8d3 12417rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
12418ac_ext=c
12419ac_cpp='$CPP $CPPFLAGS'
12420ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12421ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12422ac_compiler_gnu=$ac_cv_c_compiler_gnu
12423
ab0ad5f1
VZ
12424
12425
12426 ac_ext=c
12427ac_cpp='$CPP $CPPFLAGS'
12428ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12429ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12430ac_compiler_gnu=$ac_cv_c_compiler_gnu
12431
12432 echo "$as_me:$LINENO: checking whether we are using the Intel C compiler" >&5
12433echo $ECHO_N "checking whether we are using the Intel C compiler... $ECHO_C" >&6
12434if test "${bakefile_cv_c_compiler___INTEL_COMPILER+set}" = set; then
12435 echo $ECHO_N "(cached) $ECHO_C" >&6
12436else
12437 cat >conftest.$ac_ext <<_ACEOF
12438/* confdefs.h. */
12439_ACEOF
12440cat confdefs.h >>conftest.$ac_ext
12441cat >>conftest.$ac_ext <<_ACEOF
12442/* end confdefs.h. */
12443
12444int
12445main ()
12446{
12447
12448 #ifndef __INTEL_COMPILER
12449 choke me
12450 #endif
12451
12452 ;
12453 return 0;
12454}
12455_ACEOF
12456rm -f conftest.$ac_objext
12457if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12458 (eval $ac_compile) 2>conftest.er1
12459 ac_status=$?
12460 grep -v '^ *+' conftest.er1 >conftest.err
12461 rm -f conftest.er1
12462 cat conftest.err >&5
12463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12464 (exit $ac_status); } &&
c9a66001 12465 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ab0ad5f1
VZ
12466 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12467 (eval $ac_try) 2>&5
12468 ac_status=$?
12469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12470 (exit $ac_status); }; } &&
12471 { ac_try='test -s conftest.$ac_objext'
12472 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12473 (eval $ac_try) 2>&5
12474 ac_status=$?
12475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12476 (exit $ac_status); }; }; then
12477 bakefile_cv_c_compiler___INTEL_COMPILER=yes
12478else
12479 echo "$as_me: failed program was:" >&5
12480sed 's/^/| /' conftest.$ac_ext >&5
12481
12482bakefile_cv_c_compiler___INTEL_COMPILER=no
12483
12484fi
12485rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12486
12487
12488fi
12489echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___INTEL_COMPILER" >&5
12490echo "${ECHO_T}$bakefile_cv_c_compiler___INTEL_COMPILER" >&6
12491 ac_ext=c
12492ac_cpp='$CPP $CPPFLAGS'
12493ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12494ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12495ac_compiler_gnu=$ac_cv_c_compiler_gnu
12496
12497 if test "x$bakefile_cv_c_compiler___INTEL_COMPILER" = "xyes"; then
12498 :; INTELCC=yes
12499 else
12500 :;
12501 fi
12502
12503
12504 if test "x$GCC" != "xyes"; then
3006edc0
VZ
12505 if test "xCC" = "xC"; then
12506 echo "$as_me:$LINENO: checking if the C compiler requires -ext o" >&5
480ccd21 12507echo $ECHO_N "checking if the C compiler requires -ext o... $ECHO_C" >&6
0093c2fc 12508if test "${bakefile_cv_c_exto+set}" = set; then
480ccd21
DE
12509 echo $ECHO_N "(cached) $ECHO_C" >&6
12510else
12511 cat >conftest.$ac_ext <<_ACEOF
12512/* confdefs.h. */
12513_ACEOF
12514cat confdefs.h >>conftest.$ac_ext
12515cat >>conftest.$ac_ext <<_ACEOF
12516/* end confdefs.h. */
12517
12518int
12519main ()
12520{
12521
12522 ;
12523 return 0;
12524}
12525_ACEOF
12526rm -f conftest.$ac_objext conftest.$ac_ext.o
12527if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12528 (eval $ac_compile) 2>&5
12529 ac_status=$?
12530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12531 (exit $ac_status); }; then
12532 for ac_file in `(ls conftest.* 2>/dev/null)`; do
12533 case $ac_file in
12534 conftest.$ac_ext.o)
0093c2fc 12535 bakefile_cv_c_exto="-ext o"
480ccd21
DE
12536 ;;
12537 *)
12538 ;;
12539 esac
12540done
12541else
12542 { { echo "$as_me:$LINENO: error: cannot figure out if compiler needs -ext o: cannot compile
12543See \`config.log' for more details." >&5
12544echo "$as_me: error: cannot figure out if compiler needs -ext o: cannot compile
12545See \`config.log' for more details." >&2;}
12546 { (exit 1); exit 1; }; }
12547
12548fi
12549
12550rm -f conftest.$ac_ext.o conftest.$ac_objext conftest.$ac_ext
12551
12552fi
0093c2fc
VZ
12553echo "$as_me:$LINENO: result: $bakefile_cv_c_exto" >&5
12554echo "${ECHO_T}$bakefile_cv_c_exto" >&6
12555if test "x$bakefile_cv_c_exto" '!=' "x"; then
480ccd21 12556 if test "c" = "c"; then
0093c2fc 12557 CFLAGS="$bakefile_cv_c_exto $CFLAGS"
480ccd21
DE
12558 fi
12559 if test "c" = "cxx"; then
0093c2fc 12560 CXXFLAGS="$bakefile_cv_c_exto $CXXFLAGS"
480ccd21
DE
12561 fi
12562fi
12563
0093c2fc 12564 if test "x$bakefile_cv_c_exto" '!=' "x"; then
3006edc0
VZ
12565 unset ac_cv_prog_cc_g
12566 ac_test_CFLAGS=${CFLAGS+set}
480ccd21 12567ac_save_CFLAGS=$CFLAGS
8aeeb05c 12568CFLAGS="-g"
480ccd21
DE
12569echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
12570echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
12571if test "${ac_cv_prog_cc_g+set}" = set; then
12572 echo $ECHO_N "(cached) $ECHO_C" >&6
12573else
12574 cat >conftest.$ac_ext <<_ACEOF
12575/* confdefs.h. */
12576_ACEOF
12577cat confdefs.h >>conftest.$ac_ext
12578cat >>conftest.$ac_ext <<_ACEOF
12579/* end confdefs.h. */
12580
12581int
12582main ()
12583{
12584
12585 ;
12586 return 0;
12587}
12588_ACEOF
12589rm -f conftest.$ac_objext
12590if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12591 (eval $ac_compile) 2>conftest.er1
12592 ac_status=$?
12593 grep -v '^ *+' conftest.er1 >conftest.err
12594 rm -f conftest.er1
12595 cat conftest.err >&5
12596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12597 (exit $ac_status); } &&
c9a66001 12598 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
480ccd21
DE
12599 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12600 (eval $ac_try) 2>&5
12601 ac_status=$?
12602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12603 (exit $ac_status); }; } &&
12604 { ac_try='test -s conftest.$ac_objext'
12605 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12606 (eval $ac_try) 2>&5
12607 ac_status=$?
12608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12609 (exit $ac_status); }; }; then
12610 ac_cv_prog_cc_g=yes
12611else
12612 echo "$as_me: failed program was:" >&5
12613sed 's/^/| /' conftest.$ac_ext >&5
12614
12615ac_cv_prog_cc_g=no
12616fi
12617rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12618fi
12619echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
12620echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
12621if test "$ac_test_CFLAGS" = set; then
12622 CFLAGS=$ac_save_CFLAGS
12623elif test $ac_cv_prog_cc_g = yes; then
12624 if test "$GCC" = yes; then
12625 CFLAGS="-g -O2"
12626 else
12627 CFLAGS="-g"
12628 fi
12629else
12630 if test "$GCC" = yes; then
12631 CFLAGS="-O2"
12632 else
12633 CFLAGS=
12634 fi
12635fi
3006edc0 12636 fi
ab0ad5f1 12637 fi
3006edc0
VZ
12638
12639 case `uname -s` in
12640 AIX*)
12641 ac_ext=c
12642ac_cpp='$CPP $CPPFLAGS'
12643ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12644ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12645ac_compiler_gnu=$ac_cv_c_compiler_gnu
12646
12647echo "$as_me:$LINENO: checking whether we are using the IBM xlC C compiler" >&5
12648echo $ECHO_N "checking whether we are using the IBM xlC C compiler... $ECHO_C" >&6
0093c2fc 12649if test "${bakefile_cv_c_compiler_xlc+set}" = set; then
3006edc0
VZ
12650 echo $ECHO_N "(cached) $ECHO_C" >&6
12651else
12652 cat >conftest.$ac_ext <<_ACEOF
12653/* confdefs.h. */
12654_ACEOF
12655cat confdefs.h >>conftest.$ac_ext
12656cat >>conftest.$ac_ext <<_ACEOF
12657/* end confdefs.h. */
12658
12659int
12660main ()
12661{
12662#ifndef __xlC__
12663 choke me
12664#endif
12665
12666 ;
12667 return 0;
12668}
12669_ACEOF
12670rm -f conftest.$ac_objext
12671if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12672 (eval $ac_compile) 2>conftest.er1
12673 ac_status=$?
12674 grep -v '^ *+' conftest.er1 >conftest.err
12675 rm -f conftest.er1
12676 cat conftest.err >&5
12677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12678 (exit $ac_status); } &&
c9a66001 12679 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3006edc0
VZ
12680 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12681 (eval $ac_try) 2>&5
12682 ac_status=$?
12683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12684 (exit $ac_status); }; } &&
12685 { ac_try='test -s conftest.$ac_objext'
12686 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12687 (eval $ac_try) 2>&5
12688 ac_status=$?
12689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12690 (exit $ac_status); }; }; then
0093c2fc 12691 bakefile_compiler_xlc=yes
3006edc0
VZ
12692else
12693 echo "$as_me: failed program was:" >&5
12694sed 's/^/| /' conftest.$ac_ext >&5
12695
0093c2fc 12696bakefile_compiler_xlc=no
3006edc0
VZ
12697fi
12698rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
0093c2fc 12699 bakefile_cv_c_compiler_xlc=$bakefile_compiler_xlc
3006edc0
VZ
12700
12701fi
0093c2fc
VZ
12702echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler_xlc" >&5
12703echo "${ECHO_T}$bakefile_cv_c_compiler_xlc" >&6
3006edc0 12704
0093c2fc 12705XLCC=`test $bakefile_cv_c_compiler_xlc = yes && echo yes`
3006edc0
VZ
12706ac_ext=c
12707ac_cpp='$CPP $CPPFLAGS'
12708ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12709ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12710ac_compiler_gnu=$ac_cv_c_compiler_gnu
12711
12712
12713 ;;
12714
12715 Darwin)
12716 ac_ext=c
95986553
DE
12717ac_cpp='$CPP $CPPFLAGS'
12718ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12719ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12720ac_compiler_gnu=$ac_cv_c_compiler_gnu
12721
12722echo "$as_me:$LINENO: checking whether we are using the Metrowerks C compiler" >&5
12723echo $ECHO_N "checking whether we are using the Metrowerks C compiler... $ECHO_C" >&6
12724if test "${bakefile_cv_c_compiler_mwerks+set}" = set; then
12725 echo $ECHO_N "(cached) $ECHO_C" >&6
12726else
12727 cat >conftest.$ac_ext <<_ACEOF
12728/* confdefs.h. */
12729_ACEOF
12730cat confdefs.h >>conftest.$ac_ext
12731cat >>conftest.$ac_ext <<_ACEOF
12732/* end confdefs.h. */
12733
12734int
12735main ()
12736{
12737#ifndef __MWERKS__
12738 choke me
12739#endif
12740
12741 ;
12742 return 0;
12743}
12744_ACEOF
12745rm -f conftest.$ac_objext
12746if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12747 (eval $ac_compile) 2>conftest.er1
12748 ac_status=$?
12749 grep -v '^ *+' conftest.er1 >conftest.err
12750 rm -f conftest.er1
12751 cat conftest.err >&5
12752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12753 (exit $ac_status); } &&
c9a66001 12754 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
95986553
DE
12755 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12756 (eval $ac_try) 2>&5
12757 ac_status=$?
12758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12759 (exit $ac_status); }; } &&
12760 { ac_try='test -s conftest.$ac_objext'
12761 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12762 (eval $ac_try) 2>&5
12763 ac_status=$?
12764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12765 (exit $ac_status); }; }; then
12766 bakefile_compiler_mwerks=yes
12767else
12768 echo "$as_me: failed program was:" >&5
12769sed 's/^/| /' conftest.$ac_ext >&5
12770
12771bakefile_compiler_mwerks=no
12772fi
12773rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12774 bakefile_cv_c_compiler_mwerks=$bakefile_compiler_mwerks
12775
12776fi
12777echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler_mwerks" >&5
12778echo "${ECHO_T}$bakefile_cv_c_compiler_mwerks" >&6
12779
0e6fa1d9 12780MWCC=`test $bakefile_cv_c_compiler_mwerks = yes && echo yes`
95986553
DE
12781ac_ext=c
12782ac_cpp='$CPP $CPPFLAGS'
12783ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12784ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12785ac_compiler_gnu=$ac_cv_c_compiler_gnu
12786
12787
3006edc0 12788 ac_ext=c
9273ffba
DE
12789ac_cpp='$CPP $CPPFLAGS'
12790ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12791ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12792ac_compiler_gnu=$ac_cv_c_compiler_gnu
12793
12794echo "$as_me:$LINENO: checking whether we are using the IBM xlC C compiler" >&5
12795echo $ECHO_N "checking whether we are using the IBM xlC C compiler... $ECHO_C" >&6
0093c2fc 12796if test "${bakefile_cv_c_compiler_xlc+set}" = set; then
9273ffba
DE
12797 echo $ECHO_N "(cached) $ECHO_C" >&6
12798else
12799 cat >conftest.$ac_ext <<_ACEOF
12800/* confdefs.h. */
12801_ACEOF
12802cat confdefs.h >>conftest.$ac_ext
12803cat >>conftest.$ac_ext <<_ACEOF
12804/* end confdefs.h. */
12805
12806int
12807main ()
12808{
12809#ifndef __xlC__
12810 choke me
12811#endif
12812
12813 ;
12814 return 0;
12815}
12816_ACEOF
12817rm -f conftest.$ac_objext
12818if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12819 (eval $ac_compile) 2>conftest.er1
12820 ac_status=$?
12821 grep -v '^ *+' conftest.er1 >conftest.err
12822 rm -f conftest.er1
12823 cat conftest.err >&5
12824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12825 (exit $ac_status); } &&
c9a66001 12826 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9273ffba
DE
12827 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12828 (eval $ac_try) 2>&5
12829 ac_status=$?
12830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12831 (exit $ac_status); }; } &&
12832 { ac_try='test -s conftest.$ac_objext'
12833 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12834 (eval $ac_try) 2>&5
12835 ac_status=$?
12836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12837 (exit $ac_status); }; }; then
0093c2fc 12838 bakefile_compiler_xlc=yes
9273ffba
DE
12839else
12840 echo "$as_me: failed program was:" >&5
12841sed 's/^/| /' conftest.$ac_ext >&5
12842
0093c2fc 12843bakefile_compiler_xlc=no
9273ffba
DE
12844fi
12845rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
0093c2fc 12846 bakefile_cv_c_compiler_xlc=$bakefile_compiler_xlc
9273ffba
DE
12847
12848fi
0093c2fc
VZ
12849echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler_xlc" >&5
12850echo "${ECHO_T}$bakefile_cv_c_compiler_xlc" >&6
9273ffba 12851
0093c2fc 12852XLCC=`test $bakefile_cv_c_compiler_xlc = yes && echo yes`
9273ffba
DE
12853ac_ext=c
12854ac_cpp='$CPP $CPPFLAGS'
12855ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12856ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12857ac_compiler_gnu=$ac_cv_c_compiler_gnu
12858
12859
3006edc0
VZ
12860 ;;
12861
12862 IRIX*)
a848cd7e 12863
6dcfc289 12864
0ad5d837
VZ
12865 ac_ext=c
12866ac_cpp='$CPP $CPPFLAGS'
12867ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12868ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12869ac_compiler_gnu=$ac_cv_c_compiler_gnu
12870
12871 echo "$as_me:$LINENO: checking whether we are using the SGI C compiler" >&5
12872echo $ECHO_N "checking whether we are using the SGI C compiler... $ECHO_C" >&6
12873if test "${bakefile_cv_c_compiler__SGI_COMPILER_VERSION+set}" = set; then
12874 echo $ECHO_N "(cached) $ECHO_C" >&6
12875else
12876 cat >conftest.$ac_ext <<_ACEOF
12877/* confdefs.h. */
12878_ACEOF
12879cat confdefs.h >>conftest.$ac_ext
12880cat >>conftest.$ac_ext <<_ACEOF
12881/* end confdefs.h. */
12882
12883int
12884main ()
12885{
12886
12887 #ifndef _SGI_COMPILER_VERSION
12888 choke me
12889 #endif
12890
12891 ;
12892 return 0;
12893}
12894_ACEOF
12895rm -f conftest.$ac_objext
12896if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12897 (eval $ac_compile) 2>conftest.er1
12898 ac_status=$?
12899 grep -v '^ *+' conftest.er1 >conftest.err
12900 rm -f conftest.er1
12901 cat conftest.err >&5
12902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12903 (exit $ac_status); } &&
c9a66001 12904 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
0ad5d837
VZ
12905 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12906 (eval $ac_try) 2>&5
12907 ac_status=$?
12908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12909 (exit $ac_status); }; } &&
12910 { ac_try='test -s conftest.$ac_objext'
12911 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12912 (eval $ac_try) 2>&5
12913 ac_status=$?
12914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12915 (exit $ac_status); }; }; then
12916 bakefile_cv_c_compiler__SGI_COMPILER_VERSION=yes
12917else
12918 echo "$as_me: failed program was:" >&5
12919sed 's/^/| /' conftest.$ac_ext >&5
12920
12921bakefile_cv_c_compiler__SGI_COMPILER_VERSION=no
12922
12923fi
12924rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12925
12926
12927fi
12928echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler__SGI_COMPILER_VERSION" >&5
12929echo "${ECHO_T}$bakefile_cv_c_compiler__SGI_COMPILER_VERSION" >&6
12930 ac_ext=c
12931ac_cpp='$CPP $CPPFLAGS'
12932ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12933ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12934ac_compiler_gnu=$ac_cv_c_compiler_gnu
12935
12936 if test "x$bakefile_cv_c_compiler__SGI_COMPILER_VERSION" = "xyes"; then
12937 :; SGICC=yes
12938 else
12939 :;
12940 fi
12941
12942
3006edc0
VZ
12943 ;;
12944
0093c2fc 12945 HP-UX*)
3006edc0
VZ
12946
12947
12948 ac_ext=c
12949ac_cpp='$CPP $CPPFLAGS'
12950ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12951ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12952ac_compiler_gnu=$ac_cv_c_compiler_gnu
12953
0093c2fc
VZ
12954 echo "$as_me:$LINENO: checking whether we are using the HP C compiler" >&5
12955echo $ECHO_N "checking whether we are using the HP C compiler... $ECHO_C" >&6
12956if test "${bakefile_cv_c_compiler___HP_cc+set}" = set; then
3006edc0
VZ
12957 echo $ECHO_N "(cached) $ECHO_C" >&6
12958else
12959 cat >conftest.$ac_ext <<_ACEOF
12960/* confdefs.h. */
12961_ACEOF
12962cat confdefs.h >>conftest.$ac_ext
12963cat >>conftest.$ac_ext <<_ACEOF
12964/* end confdefs.h. */
12965
12966int
12967main ()
12968{
12969
0093c2fc 12970 #ifndef __HP_cc
3006edc0
VZ
12971 choke me
12972 #endif
12973
12974 ;
12975 return 0;
12976}
12977_ACEOF
12978rm -f conftest.$ac_objext
12979if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12980 (eval $ac_compile) 2>conftest.er1
12981 ac_status=$?
12982 grep -v '^ *+' conftest.er1 >conftest.err
12983 rm -f conftest.er1
12984 cat conftest.err >&5
12985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12986 (exit $ac_status); } &&
c9a66001 12987 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3006edc0
VZ
12988 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12989 (eval $ac_try) 2>&5
12990 ac_status=$?
12991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12992 (exit $ac_status); }; } &&
12993 { ac_try='test -s conftest.$ac_objext'
12994 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12995 (eval $ac_try) 2>&5
12996 ac_status=$?
12997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12998 (exit $ac_status); }; }; then
0093c2fc 12999 bakefile_cv_c_compiler___HP_cc=yes
3006edc0
VZ
13000else
13001 echo "$as_me: failed program was:" >&5
13002sed 's/^/| /' conftest.$ac_ext >&5
13003
0093c2fc 13004bakefile_cv_c_compiler___HP_cc=no
3006edc0
VZ
13005
13006fi
13007rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13008
13009
13010fi
0093c2fc
VZ
13011echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___HP_cc" >&5
13012echo "${ECHO_T}$bakefile_cv_c_compiler___HP_cc" >&6
3006edc0
VZ
13013 ac_ext=c
13014ac_cpp='$CPP $CPPFLAGS'
13015ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13016ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13017ac_compiler_gnu=$ac_cv_c_compiler_gnu
13018
0093c2fc
VZ
13019 if test "x$bakefile_cv_c_compiler___HP_cc" = "xyes"; then
13020 :; HPCC=yes
a1aa0349
VZ
13021 else
13022 :;
13023 fi
13024
13025
13026 ;;
13027
0093c2fc 13028 OSF1)
a1aa0349
VZ
13029
13030
13031 ac_ext=c
13032ac_cpp='$CPP $CPPFLAGS'
13033ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13034ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13035ac_compiler_gnu=$ac_cv_c_compiler_gnu
13036
0093c2fc
VZ
13037 echo "$as_me:$LINENO: checking whether we are using the Compaq C compiler" >&5
13038echo $ECHO_N "checking whether we are using the Compaq C compiler... $ECHO_C" >&6
13039if test "${bakefile_cv_c_compiler___DECC+set}" = set; then
a1aa0349
VZ
13040 echo $ECHO_N "(cached) $ECHO_C" >&6
13041else
13042 cat >conftest.$ac_ext <<_ACEOF
13043/* confdefs.h. */
13044_ACEOF
13045cat confdefs.h >>conftest.$ac_ext
13046cat >>conftest.$ac_ext <<_ACEOF
13047/* end confdefs.h. */
13048
13049int
13050main ()
13051{
13052
0093c2fc 13053 #ifndef __DECC
a1aa0349
VZ
13054 choke me
13055 #endif
13056
13057 ;
13058 return 0;
13059}
13060_ACEOF
13061rm -f conftest.$ac_objext
13062if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13063 (eval $ac_compile) 2>conftest.er1
13064 ac_status=$?
13065 grep -v '^ *+' conftest.er1 >conftest.err
13066 rm -f conftest.er1
13067 cat conftest.err >&5
13068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13069 (exit $ac_status); } &&
c9a66001 13070 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
a1aa0349
VZ
13071 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13072 (eval $ac_try) 2>&5
13073 ac_status=$?
13074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13075 (exit $ac_status); }; } &&
13076 { ac_try='test -s conftest.$ac_objext'
13077 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13078 (eval $ac_try) 2>&5
13079 ac_status=$?
13080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13081 (exit $ac_status); }; }; then
0093c2fc 13082 bakefile_cv_c_compiler___DECC=yes
a1aa0349
VZ
13083else
13084 echo "$as_me: failed program was:" >&5
13085sed 's/^/| /' conftest.$ac_ext >&5
13086
0093c2fc 13087bakefile_cv_c_compiler___DECC=no
a1aa0349
VZ
13088
13089fi
13090rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13091
13092
13093fi
0093c2fc
VZ
13094echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___DECC" >&5
13095echo "${ECHO_T}$bakefile_cv_c_compiler___DECC" >&6
a1aa0349
VZ
13096 ac_ext=c
13097ac_cpp='$CPP $CPPFLAGS'
13098ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13099ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13100ac_compiler_gnu=$ac_cv_c_compiler_gnu
13101
0093c2fc
VZ
13102 if test "x$bakefile_cv_c_compiler___DECC" = "xyes"; then
13103 :; COMPAQCC=yes
13104 else
13105 :;
13106 fi
13107
13108
13109 ;;
13110
13111 SunOS)
13112
13113
13114 ac_ext=c
13115ac_cpp='$CPP $CPPFLAGS'
13116ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13117ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13118ac_compiler_gnu=$ac_cv_c_compiler_gnu
13119
13120 echo "$as_me:$LINENO: checking whether we are using the Sun C compiler" >&5
13121echo $ECHO_N "checking whether we are using the Sun C compiler... $ECHO_C" >&6
13122if test "${bakefile_cv_c_compiler___SUNPRO_C+set}" = set; then
13123 echo $ECHO_N "(cached) $ECHO_C" >&6
13124else
13125 cat >conftest.$ac_ext <<_ACEOF
13126/* confdefs.h. */
13127_ACEOF
13128cat confdefs.h >>conftest.$ac_ext
13129cat >>conftest.$ac_ext <<_ACEOF
13130/* end confdefs.h. */
13131
13132int
13133main ()
13134{
13135
13136 #ifndef __SUNPRO_C
13137 choke me
13138 #endif
13139
13140 ;
13141 return 0;
13142}
13143_ACEOF
13144rm -f conftest.$ac_objext
13145if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13146 (eval $ac_compile) 2>conftest.er1
13147 ac_status=$?
13148 grep -v '^ *+' conftest.er1 >conftest.err
13149 rm -f conftest.er1
13150 cat conftest.err >&5
13151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13152 (exit $ac_status); } &&
c9a66001 13153 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
0093c2fc
VZ
13154 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13155 (eval $ac_try) 2>&5
13156 ac_status=$?
13157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13158 (exit $ac_status); }; } &&
13159 { ac_try='test -s conftest.$ac_objext'
13160 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13161 (eval $ac_try) 2>&5
13162 ac_status=$?
13163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13164 (exit $ac_status); }; }; then
13165 bakefile_cv_c_compiler___SUNPRO_C=yes
13166else
13167 echo "$as_me: failed program was:" >&5
13168sed 's/^/| /' conftest.$ac_ext >&5
13169
13170bakefile_cv_c_compiler___SUNPRO_C=no
13171
13172fi
13173rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13174
13175
13176fi
13177echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___SUNPRO_C" >&5
13178echo "${ECHO_T}$bakefile_cv_c_compiler___SUNPRO_C" >&6
13179 ac_ext=c
13180ac_cpp='$CPP $CPPFLAGS'
13181ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13182ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13183ac_compiler_gnu=$ac_cv_c_compiler_gnu
13184
13185 if test "x$bakefile_cv_c_compiler___SUNPRO_C" = "xyes"; then
13186 :; SUNCC=yes
3006edc0
VZ
13187 else
13188 :;
13189 fi
13190
13191
13192 ;;
13193 esac
ab0ad5f1 13194 fi
a9e5b1f0
MW
13195
13196
3006edc0 13197
a848cd7e
SC
13198ac_ext=c
13199ac_cpp='$CPP $CPPFLAGS'
13200ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13201ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13202ac_compiler_gnu=$ac_cv_c_compiler_gnu
13203echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
13204echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
13205# On Suns, sometimes $CPP names a directory.
13206if test -n "$CPP" && test -d "$CPP"; then
13207 CPP=
13208fi
13209if test -z "$CPP"; then
13210 if test "${ac_cv_prog_CPP+set}" = set; then
13211 echo $ECHO_N "(cached) $ECHO_C" >&6
13212else
13213 # Double quotes because CPP needs to be expanded
13214 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
13215 do
13216 ac_preproc_ok=false
13217for ac_c_preproc_warn_flag in '' yes
13218do
13219 # Use a header file that comes with gcc, so configuring glibc
13220 # with a fresh cross-compiler works.
13221 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13222 # <limits.h> exists even on freestanding compilers.
13223 # On the NeXT, cc -E runs the code through the compiler's parser,
13224 # not just through cpp. "Syntax error" is here to catch this case.
13225 cat >conftest.$ac_ext <<_ACEOF
13226/* confdefs.h. */
13227_ACEOF
13228cat confdefs.h >>conftest.$ac_ext
13229cat >>conftest.$ac_ext <<_ACEOF
13230/* end confdefs.h. */
13231#ifdef __STDC__
13232# include <limits.h>
13233#else
13234# include <assert.h>
13235#endif
ac1cb8d3 13236 Syntax error
a848cd7e
SC
13237_ACEOF
13238if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13239 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13240 ac_status=$?
13241 grep -v '^ *+' conftest.er1 >conftest.err
13242 rm -f conftest.er1
13243 cat conftest.err >&5
13244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13245 (exit $ac_status); } >/dev/null; then
13246 if test -s conftest.err; then
13247 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 13248 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
13249 else
13250 ac_cpp_err=
13251 fi
13252else
13253 ac_cpp_err=yes
13254fi
13255if test -z "$ac_cpp_err"; then
13256 :
13257else
13258 echo "$as_me: failed program was:" >&5
13259sed 's/^/| /' conftest.$ac_ext >&5
13260
13261 # Broken: fails on valid input.
13262continue
13263fi
13264rm -f conftest.err conftest.$ac_ext
13265
13266 # OK, works on sane cases. Now check whether non-existent headers
13267 # can be detected and how.
13268 cat >conftest.$ac_ext <<_ACEOF
13269/* confdefs.h. */
13270_ACEOF
13271cat confdefs.h >>conftest.$ac_ext
13272cat >>conftest.$ac_ext <<_ACEOF
13273/* end confdefs.h. */
13274#include <ac_nonexistent.h>
13275_ACEOF
13276if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13277 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13278 ac_status=$?
13279 grep -v '^ *+' conftest.er1 >conftest.err
13280 rm -f conftest.er1
13281 cat conftest.err >&5
13282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13283 (exit $ac_status); } >/dev/null; then
13284 if test -s conftest.err; then
13285 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 13286 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
13287 else
13288 ac_cpp_err=
13289 fi
13290else
13291 ac_cpp_err=yes
13292fi
13293if test -z "$ac_cpp_err"; then
13294 # Broken: success on invalid input.
13295continue
13296else
13297 echo "$as_me: failed program was:" >&5
13298sed 's/^/| /' conftest.$ac_ext >&5
13299
13300 # Passes both tests.
13301ac_preproc_ok=:
13302break
13303fi
13304rm -f conftest.err conftest.$ac_ext
13305
13306done
13307# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13308rm -f conftest.err conftest.$ac_ext
13309if $ac_preproc_ok; then
13310 break
13311fi
13312
13313 done
13314 ac_cv_prog_CPP=$CPP
13315
13316fi
13317 CPP=$ac_cv_prog_CPP
13318else
13319 ac_cv_prog_CPP=$CPP
13320fi
13321echo "$as_me:$LINENO: result: $CPP" >&5
13322echo "${ECHO_T}$CPP" >&6
13323ac_preproc_ok=false
13324for ac_c_preproc_warn_flag in '' yes
13325do
13326 # Use a header file that comes with gcc, so configuring glibc
13327 # with a fresh cross-compiler works.
13328 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13329 # <limits.h> exists even on freestanding compilers.
13330 # On the NeXT, cc -E runs the code through the compiler's parser,
13331 # not just through cpp. "Syntax error" is here to catch this case.
13332 cat >conftest.$ac_ext <<_ACEOF
13333/* confdefs.h. */
13334_ACEOF
13335cat confdefs.h >>conftest.$ac_ext
13336cat >>conftest.$ac_ext <<_ACEOF
13337/* end confdefs.h. */
13338#ifdef __STDC__
13339# include <limits.h>
13340#else
13341# include <assert.h>
13342#endif
ac1cb8d3 13343 Syntax error
a848cd7e
SC
13344_ACEOF
13345if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13346 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13347 ac_status=$?
13348 grep -v '^ *+' conftest.er1 >conftest.err
13349 rm -f conftest.er1
13350 cat conftest.err >&5
13351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13352 (exit $ac_status); } >/dev/null; then
13353 if test -s conftest.err; then
13354 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 13355 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
13356 else
13357 ac_cpp_err=
13358 fi
13359else
13360 ac_cpp_err=yes
13361fi
13362if test -z "$ac_cpp_err"; then
13363 :
13364else
13365 echo "$as_me: failed program was:" >&5
13366sed 's/^/| /' conftest.$ac_ext >&5
13367
13368 # Broken: fails on valid input.
13369continue
13370fi
13371rm -f conftest.err conftest.$ac_ext
13372
13373 # OK, works on sane cases. Now check whether non-existent headers
13374 # can be detected and how.
13375 cat >conftest.$ac_ext <<_ACEOF
13376/* confdefs.h. */
13377_ACEOF
13378cat confdefs.h >>conftest.$ac_ext
13379cat >>conftest.$ac_ext <<_ACEOF
13380/* end confdefs.h. */
13381#include <ac_nonexistent.h>
13382_ACEOF
13383if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13384 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13385 ac_status=$?
13386 grep -v '^ *+' conftest.er1 >conftest.err
13387 rm -f conftest.er1
13388 cat conftest.err >&5
13389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13390 (exit $ac_status); } >/dev/null; then
13391 if test -s conftest.err; then
13392 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 13393 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
13394 else
13395 ac_cpp_err=
13396 fi
13397else
13398 ac_cpp_err=yes
13399fi
13400if test -z "$ac_cpp_err"; then
13401 # Broken: success on invalid input.
13402continue
13403else
13404 echo "$as_me: failed program was:" >&5
13405sed 's/^/| /' conftest.$ac_ext >&5
13406
13407 # Passes both tests.
13408ac_preproc_ok=:
13409break
13410fi
13411rm -f conftest.err conftest.$ac_ext
13412
13413done
13414# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13415rm -f conftest.err conftest.$ac_ext
13416if $ac_preproc_ok; then
13417 :
13418else
13419 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
13420See \`config.log' for more details." >&5
13421echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
13422See \`config.log' for more details." >&2;}
13423 { (exit 1); exit 1; }; }
13424fi
13425
13426ac_ext=c
13427ac_cpp='$CPP $CPPFLAGS'
13428ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13429ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13430ac_compiler_gnu=$ac_cv_c_compiler_gnu
13431
13432
13433echo "$as_me:$LINENO: checking for egrep" >&5
13434echo $ECHO_N "checking for egrep... $ECHO_C" >&6
13435if test "${ac_cv_prog_egrep+set}" = set; then
13436 echo $ECHO_N "(cached) $ECHO_C" >&6
13437else
13438 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
13439 then ac_cv_prog_egrep='grep -E'
13440 else ac_cv_prog_egrep='egrep'
13441 fi
13442fi
13443echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
13444echo "${ECHO_T}$ac_cv_prog_egrep" >&6
13445 EGREP=$ac_cv_prog_egrep
13446
13447
13448if test $ac_cv_c_compiler_gnu = yes; then
13449 echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
13450echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
13451if test "${ac_cv_prog_gcc_traditional+set}" = set; then
13452 echo $ECHO_N "(cached) $ECHO_C" >&6
13453else
13454 ac_pattern="Autoconf.*'x'"
13455 cat >conftest.$ac_ext <<_ACEOF
13456/* confdefs.h. */
13457_ACEOF
13458cat confdefs.h >>conftest.$ac_ext
13459cat >>conftest.$ac_ext <<_ACEOF
13460/* end confdefs.h. */
13461#include <sgtty.h>
13462Autoconf TIOCGETP
13463_ACEOF
13464if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13465 $EGREP "$ac_pattern" >/dev/null 2>&1; then
13466 ac_cv_prog_gcc_traditional=yes
13467else
13468 ac_cv_prog_gcc_traditional=no
13469fi
13470rm -f conftest*
13471
13472
13473 if test $ac_cv_prog_gcc_traditional = no; then
13474 cat >conftest.$ac_ext <<_ACEOF
13475/* confdefs.h. */
13476_ACEOF
13477cat confdefs.h >>conftest.$ac_ext
13478cat >>conftest.$ac_ext <<_ACEOF
13479/* end confdefs.h. */
13480#include <termio.h>
13481Autoconf TCGETA
13482_ACEOF
13483if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13484 $EGREP "$ac_pattern" >/dev/null 2>&1; then
13485 ac_cv_prog_gcc_traditional=yes
13486fi
13487rm -f conftest*
13488
13489 fi
13490fi
13491echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
13492echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
13493 if test $ac_cv_prog_gcc_traditional = yes; then
13494 CC="$CC -traditional"
13495 fi
13496fi
13497
13498
a848cd7e
SC
13499ac_ext=cc
13500ac_cpp='$CXXCPP $CPPFLAGS'
13501ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13502ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13503ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13504
13505
13506CXXFLAGS=${CXXFLAGS:=}
6dcfc289
DE
13507
13508
3006edc0 13509
6dcfc289 13510 ac_ext=cc
a848cd7e
SC
13511ac_cpp='$CXXCPP $CPPFLAGS'
13512ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13513ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13514ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13515if test -n "$ac_tool_prefix"; then
13516 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
13517 do
13518 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
13519set dummy $ac_tool_prefix$ac_prog; ac_word=$2
13520echo "$as_me:$LINENO: checking for $ac_word" >&5
13521echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13522if test "${ac_cv_prog_CXX+set}" = set; then
13523 echo $ECHO_N "(cached) $ECHO_C" >&6
13524else
13525 if test -n "$CXX"; then
13526 ac_cv_prog_CXX="$CXX" # Let the user override the test.
13527else
13528as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13529for as_dir in $PATH
13530do
13531 IFS=$as_save_IFS
13532 test -z "$as_dir" && as_dir=.
13533 for ac_exec_ext in '' $ac_executable_extensions; do
13534 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13535 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
13536 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13537 break 2
13538 fi
13539done
13540done
13541
13542fi
13543fi
13544CXX=$ac_cv_prog_CXX
13545if test -n "$CXX"; then
13546 echo "$as_me:$LINENO: result: $CXX" >&5
13547echo "${ECHO_T}$CXX" >&6
13548else
13549 echo "$as_me:$LINENO: result: no" >&5
13550echo "${ECHO_T}no" >&6
13551fi
13552
13553 test -n "$CXX" && break
13554 done
13555fi
13556if test -z "$CXX"; then
13557 ac_ct_CXX=$CXX
13558 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
13559do
13560 # Extract the first word of "$ac_prog", so it can be a program name with args.
13561set dummy $ac_prog; ac_word=$2
13562echo "$as_me:$LINENO: checking for $ac_word" >&5
13563echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13564if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
13565 echo $ECHO_N "(cached) $ECHO_C" >&6
13566else
13567 if test -n "$ac_ct_CXX"; then
13568 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
13569else
13570as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13571for as_dir in $PATH
13572do
13573 IFS=$as_save_IFS
13574 test -z "$as_dir" && as_dir=.
13575 for ac_exec_ext in '' $ac_executable_extensions; do
13576 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13577 ac_cv_prog_ac_ct_CXX="$ac_prog"
13578 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13579 break 2
13580 fi
13581done
13582done
13583
13584fi
13585fi
13586ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
13587if test -n "$ac_ct_CXX"; then
13588 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
13589echo "${ECHO_T}$ac_ct_CXX" >&6
13590else
13591 echo "$as_me:$LINENO: result: no" >&5
13592echo "${ECHO_T}no" >&6
13593fi
13594
13595 test -n "$ac_ct_CXX" && break
13596done
13597test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
13598
13599 CXX=$ac_ct_CXX
13600fi
13601
13602
13603# Provide some information about the compiler.
13604echo "$as_me:$LINENO:" \
13605 "checking for C++ compiler version" >&5
13606ac_compiler=`set X $ac_compile; echo $2`
13607{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
13608 (eval $ac_compiler --version </dev/null >&5) 2>&5
13609 ac_status=$?
13610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13611 (exit $ac_status); }
13612{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
13613 (eval $ac_compiler -v </dev/null >&5) 2>&5
13614 ac_status=$?
13615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13616 (exit $ac_status); }
13617{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
13618 (eval $ac_compiler -V </dev/null >&5) 2>&5
13619 ac_status=$?
13620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13621 (exit $ac_status); }
13622
13623echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
13624echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
13625if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
13626 echo $ECHO_N "(cached) $ECHO_C" >&6
13627else
13628 cat >conftest.$ac_ext <<_ACEOF
13629/* confdefs.h. */
13630_ACEOF
13631cat confdefs.h >>conftest.$ac_ext
13632cat >>conftest.$ac_ext <<_ACEOF
13633/* end confdefs.h. */
13634
13635int
13636main ()
13637{
13638#ifndef __GNUC__
13639 choke me
13640#endif
13641
13642 ;
13643 return 0;
13644}
13645_ACEOF
13646rm -f conftest.$ac_objext
13647if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 13648 (eval $ac_compile) 2>conftest.er1
a848cd7e 13649 ac_status=$?
ac1cb8d3
VS
13650 grep -v '^ *+' conftest.er1 >conftest.err
13651 rm -f conftest.er1
13652 cat conftest.err >&5
a848cd7e
SC
13653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13654 (exit $ac_status); } &&
c9a66001 13655 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
13656 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13657 (eval $ac_try) 2>&5
13658 ac_status=$?
13659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13660 (exit $ac_status); }; } &&
13661 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
13662 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13663 (eval $ac_try) 2>&5
13664 ac_status=$?
13665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13666 (exit $ac_status); }; }; then
13667 ac_compiler_gnu=yes
13668else
13669 echo "$as_me: failed program was:" >&5
13670sed 's/^/| /' conftest.$ac_ext >&5
13671
13672ac_compiler_gnu=no
13673fi
ac1cb8d3 13674rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
13675ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
13676
13677fi
13678echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
13679echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
13680GXX=`test $ac_compiler_gnu = yes && echo yes`
13681ac_test_CXXFLAGS=${CXXFLAGS+set}
13682ac_save_CXXFLAGS=$CXXFLAGS
13683CXXFLAGS="-g"
13684echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
13685echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
13686if test "${ac_cv_prog_cxx_g+set}" = set; then
13687 echo $ECHO_N "(cached) $ECHO_C" >&6
13688else
13689 cat >conftest.$ac_ext <<_ACEOF
13690/* confdefs.h. */
13691_ACEOF
13692cat confdefs.h >>conftest.$ac_ext
13693cat >>conftest.$ac_ext <<_ACEOF
13694/* end confdefs.h. */
13695
13696int
13697main ()
13698{
13699
13700 ;
13701 return 0;
13702}
13703_ACEOF
13704rm -f conftest.$ac_objext
13705if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 13706 (eval $ac_compile) 2>conftest.er1
a848cd7e 13707 ac_status=$?
ac1cb8d3
VS
13708 grep -v '^ *+' conftest.er1 >conftest.err
13709 rm -f conftest.er1
13710 cat conftest.err >&5
a848cd7e
SC
13711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13712 (exit $ac_status); } &&
c9a66001 13713 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
13714 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13715 (eval $ac_try) 2>&5
13716 ac_status=$?
13717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13718 (exit $ac_status); }; } &&
13719 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
13720 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13721 (eval $ac_try) 2>&5
13722 ac_status=$?
13723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13724 (exit $ac_status); }; }; then
13725 ac_cv_prog_cxx_g=yes
13726else
13727 echo "$as_me: failed program was:" >&5
13728sed 's/^/| /' conftest.$ac_ext >&5
13729
13730ac_cv_prog_cxx_g=no
13731fi
ac1cb8d3 13732rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
13733fi
13734echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
13735echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
13736if test "$ac_test_CXXFLAGS" = set; then
13737 CXXFLAGS=$ac_save_CXXFLAGS
13738elif test $ac_cv_prog_cxx_g = yes; then
13739 if test "$GXX" = yes; then
8aeeb05c 13740 CXXFLAGS="-g -O2"
a848cd7e 13741 else
8aeeb05c 13742 CXXFLAGS="-g"
a848cd7e
SC
13743 fi
13744else
13745 if test "$GXX" = yes; then
13746 CXXFLAGS="-O2"
13747 else
13748 CXXFLAGS=
13749 fi
13750fi
13751for ac_declaration in \
ac1cb8d3 13752 '' \
a848cd7e
SC
13753 'extern "C" void std::exit (int) throw (); using std::exit;' \
13754 'extern "C" void std::exit (int); using std::exit;' \
13755 'extern "C" void exit (int) throw ();' \
13756 'extern "C" void exit (int);' \
13757 'void exit (int);'
13758do
13759 cat >conftest.$ac_ext <<_ACEOF
13760/* confdefs.h. */
13761_ACEOF
13762cat confdefs.h >>conftest.$ac_ext
13763cat >>conftest.$ac_ext <<_ACEOF
13764/* end confdefs.h. */
de59c161 13765$ac_declaration
ac1cb8d3 13766#include <stdlib.h>
a848cd7e
SC
13767int
13768main ()
13769{
13770exit (42);
13771 ;
13772 return 0;
13773}
13774_ACEOF
13775rm -f conftest.$ac_objext
13776if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 13777 (eval $ac_compile) 2>conftest.er1
a848cd7e 13778 ac_status=$?
ac1cb8d3
VS
13779 grep -v '^ *+' conftest.er1 >conftest.err
13780 rm -f conftest.er1
13781 cat conftest.err >&5
a848cd7e
SC
13782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13783 (exit $ac_status); } &&
c9a66001 13784 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
13785 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13786 (eval $ac_try) 2>&5
13787 ac_status=$?
13788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13789 (exit $ac_status); }; } &&
13790 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
13791 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13792 (eval $ac_try) 2>&5
13793 ac_status=$?
13794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13795 (exit $ac_status); }; }; then
13796 :
13797else
13798 echo "$as_me: failed program was:" >&5
13799sed 's/^/| /' conftest.$ac_ext >&5
13800
13801continue
13802fi
ac1cb8d3 13803rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
13804 cat >conftest.$ac_ext <<_ACEOF
13805/* confdefs.h. */
13806_ACEOF
13807cat confdefs.h >>conftest.$ac_ext
13808cat >>conftest.$ac_ext <<_ACEOF
13809/* end confdefs.h. */
13810$ac_declaration
13811int
13812main ()
13813{
13814exit (42);
13815 ;
13816 return 0;
13817}
13818_ACEOF
13819rm -f conftest.$ac_objext
13820if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 13821 (eval $ac_compile) 2>conftest.er1
a848cd7e 13822 ac_status=$?
ac1cb8d3
VS
13823 grep -v '^ *+' conftest.er1 >conftest.err
13824 rm -f conftest.er1
13825 cat conftest.err >&5
a848cd7e
SC
13826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13827 (exit $ac_status); } &&
c9a66001 13828 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
13829 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13830 (eval $ac_try) 2>&5
13831 ac_status=$?
13832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13833 (exit $ac_status); }; } &&
13834 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
13835 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13836 (eval $ac_try) 2>&5
13837 ac_status=$?
13838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13839 (exit $ac_status); }; }; then
13840 break
13841else
13842 echo "$as_me: failed program was:" >&5
13843sed 's/^/| /' conftest.$ac_ext >&5
13844
13845fi
ac1cb8d3 13846rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
13847done
13848rm -f conftest*
13849if test -n "$ac_declaration"; then
13850 echo '#ifdef __cplusplus' >>confdefs.h
13851 echo $ac_declaration >>confdefs.h
13852 echo '#endif' >>confdefs.h
13853fi
13854
13855ac_ext=cc
13856ac_cpp='$CXXCPP $CPPFLAGS'
13857ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13858ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13859ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13860
ab0ad5f1
VZ
13861
13862
13863 ac_ext=cc
13864ac_cpp='$CXXCPP $CPPFLAGS'
13865ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13866ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13867ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13868
13869 echo "$as_me:$LINENO: checking whether we are using the Intel C++ compiler" >&5
13870echo $ECHO_N "checking whether we are using the Intel C++ compiler... $ECHO_C" >&6
13871if test "${bakefile_cv_cxx_compiler___INTEL_COMPILER+set}" = set; then
13872 echo $ECHO_N "(cached) $ECHO_C" >&6
13873else
13874 cat >conftest.$ac_ext <<_ACEOF
13875/* confdefs.h. */
13876_ACEOF
13877cat confdefs.h >>conftest.$ac_ext
13878cat >>conftest.$ac_ext <<_ACEOF
13879/* end confdefs.h. */
13880
13881int
13882main ()
13883{
13884
13885 #ifndef __INTEL_COMPILER
13886 choke me
13887 #endif
13888
13889 ;
13890 return 0;
13891}
13892_ACEOF
13893rm -f conftest.$ac_objext
13894if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13895 (eval $ac_compile) 2>conftest.er1
13896 ac_status=$?
13897 grep -v '^ *+' conftest.er1 >conftest.err
13898 rm -f conftest.er1
13899 cat conftest.err >&5
13900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13901 (exit $ac_status); } &&
c9a66001 13902 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ab0ad5f1
VZ
13903 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13904 (eval $ac_try) 2>&5
13905 ac_status=$?
13906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13907 (exit $ac_status); }; } &&
13908 { ac_try='test -s conftest.$ac_objext'
13909 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13910 (eval $ac_try) 2>&5
13911 ac_status=$?
13912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13913 (exit $ac_status); }; }; then
13914 bakefile_cv_cxx_compiler___INTEL_COMPILER=yes
13915else
13916 echo "$as_me: failed program was:" >&5
13917sed 's/^/| /' conftest.$ac_ext >&5
13918
13919bakefile_cv_cxx_compiler___INTEL_COMPILER=no
13920
13921fi
13922rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13923
13924
13925fi
13926echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___INTEL_COMPILER" >&5
13927echo "${ECHO_T}$bakefile_cv_cxx_compiler___INTEL_COMPILER" >&6
13928 ac_ext=cc
13929ac_cpp='$CXXCPP $CPPFLAGS'
13930ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13931ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13932ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13933
13934 if test "x$bakefile_cv_cxx_compiler___INTEL_COMPILER" = "xyes"; then
13935 :; INTELCXX=yes
13936 else
13937 :;
13938 fi
13939
13940
3006edc0
VZ
13941 if test "x$GCXX" != "xyes"; then
13942 if test "xCXX" = "xC"; then
13943 echo "$as_me:$LINENO: checking if the C++ compiler requires -ext o" >&5
480ccd21 13944echo $ECHO_N "checking if the C++ compiler requires -ext o... $ECHO_C" >&6
0093c2fc 13945if test "${bakefile_cv_cxx_exto+set}" = set; then
480ccd21
DE
13946 echo $ECHO_N "(cached) $ECHO_C" >&6
13947else
13948 cat >conftest.$ac_ext <<_ACEOF
13949/* confdefs.h. */
13950_ACEOF
13951cat confdefs.h >>conftest.$ac_ext
13952cat >>conftest.$ac_ext <<_ACEOF
13953/* end confdefs.h. */
13954
13955int
13956main ()
13957{
13958
13959 ;
13960 return 0;
13961}
13962_ACEOF
13963rm -f conftest.$ac_objext conftest.$ac_ext.o
13964if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13965 (eval $ac_compile) 2>&5
13966 ac_status=$?
13967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13968 (exit $ac_status); }; then
13969 for ac_file in `(ls conftest.* 2>/dev/null)`; do
13970 case $ac_file in
13971 conftest.$ac_ext.o)
0093c2fc 13972 bakefile_cv_cxx_exto="-ext o"
480ccd21
DE
13973 ;;
13974 *)
13975 ;;
13976 esac
13977done
13978else
13979 { { echo "$as_me:$LINENO: error: cannot figure out if compiler needs -ext o: cannot compile
13980See \`config.log' for more details." >&5
13981echo "$as_me: error: cannot figure out if compiler needs -ext o: cannot compile
13982See \`config.log' for more details." >&2;}
13983 { (exit 1); exit 1; }; }
13984
13985fi
13986
13987rm -f conftest.$ac_ext.o conftest.$ac_objext conftest.$ac_ext
13988
13989fi
0093c2fc
VZ
13990echo "$as_me:$LINENO: result: $bakefile_cv_cxx_exto" >&5
13991echo "${ECHO_T}$bakefile_cv_cxx_exto" >&6
13992if test "x$bakefile_cv_cxx_exto" '!=' "x"; then
480ccd21 13993 if test "cxx" = "c"; then
0093c2fc 13994 CFLAGS="$bakefile_cv_cxx_exto $CFLAGS"
480ccd21
DE
13995 fi
13996 if test "cxx" = "cxx"; then
0093c2fc 13997 CXXFLAGS="$bakefile_cv_cxx_exto $CXXFLAGS"
480ccd21
DE
13998 fi
13999fi
14000
0093c2fc 14001 if test "x$bakefile_cv_c_exto" '!=' "x"; then
3006edc0
VZ
14002 unset ac_cv_prog_cc_g
14003 ac_test_CFLAGS=${CFLAGS+set}
14004ac_save_CFLAGS=$CFLAGS
8aeeb05c 14005CFLAGS="-g"
3006edc0
VZ
14006echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
14007echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
14008if test "${ac_cv_prog_cc_g+set}" = set; then
480ccd21
DE
14009 echo $ECHO_N "(cached) $ECHO_C" >&6
14010else
14011 cat >conftest.$ac_ext <<_ACEOF
14012/* confdefs.h. */
14013_ACEOF
14014cat confdefs.h >>conftest.$ac_ext
14015cat >>conftest.$ac_ext <<_ACEOF
14016/* end confdefs.h. */
14017
14018int
14019main ()
14020{
14021
14022 ;
14023 return 0;
14024}
14025_ACEOF
14026rm -f conftest.$ac_objext
14027if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14028 (eval $ac_compile) 2>conftest.er1
14029 ac_status=$?
14030 grep -v '^ *+' conftest.er1 >conftest.err
14031 rm -f conftest.er1
14032 cat conftest.err >&5
14033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14034 (exit $ac_status); } &&
c9a66001 14035 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
480ccd21
DE
14036 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14037 (eval $ac_try) 2>&5
14038 ac_status=$?
14039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14040 (exit $ac_status); }; } &&
14041 { ac_try='test -s conftest.$ac_objext'
14042 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14043 (eval $ac_try) 2>&5
14044 ac_status=$?
14045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14046 (exit $ac_status); }; }; then
3006edc0 14047 ac_cv_prog_cc_g=yes
480ccd21
DE
14048else
14049 echo "$as_me: failed program was:" >&5
14050sed 's/^/| /' conftest.$ac_ext >&5
14051
3006edc0 14052ac_cv_prog_cc_g=no
480ccd21
DE
14053fi
14054rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14055fi
3006edc0
VZ
14056echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
14057echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
14058if test "$ac_test_CFLAGS" = set; then
14059 CFLAGS=$ac_save_CFLAGS
14060elif test $ac_cv_prog_cc_g = yes; then
14061 if test "$GCC" = yes; then
14062 CFLAGS="-g -O2"
480ccd21 14063 else
3006edc0 14064 CFLAGS="-g"
480ccd21
DE
14065 fi
14066else
3006edc0
VZ
14067 if test "$GCC" = yes; then
14068 CFLAGS="-O2"
480ccd21 14069 else
3006edc0 14070 CFLAGS=
480ccd21
DE
14071 fi
14072fi
3006edc0 14073 fi
ab0ad5f1 14074 fi
3006edc0
VZ
14075
14076 case `uname -s` in
14077 AIX*)
14078 ac_ext=cc
14079ac_cpp='$CXXCPP $CPPFLAGS'
14080ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14081ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14082ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14083
14084echo "$as_me:$LINENO: checking whether we are using the IBM xlC C++ compiler" >&5
14085echo $ECHO_N "checking whether we are using the IBM xlC C++ compiler... $ECHO_C" >&6
0093c2fc 14086if test "${bakefile_cv_cxx_compiler_xlc+set}" = set; then
3006edc0
VZ
14087 echo $ECHO_N "(cached) $ECHO_C" >&6
14088else
14089 cat >conftest.$ac_ext <<_ACEOF
14090/* confdefs.h. */
14091_ACEOF
14092cat confdefs.h >>conftest.$ac_ext
14093cat >>conftest.$ac_ext <<_ACEOF
14094/* end confdefs.h. */
14095
14096int
14097main ()
14098{
14099#ifndef __xlC__
14100 choke me
14101#endif
14102
14103 ;
14104 return 0;
14105}
14106_ACEOF
14107rm -f conftest.$ac_objext
14108if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14109 (eval $ac_compile) 2>conftest.er1
14110 ac_status=$?
14111 grep -v '^ *+' conftest.er1 >conftest.err
14112 rm -f conftest.er1
14113 cat conftest.err >&5
14114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14115 (exit $ac_status); } &&
c9a66001 14116 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3006edc0
VZ
14117 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14118 (eval $ac_try) 2>&5
14119 ac_status=$?
14120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14121 (exit $ac_status); }; } &&
14122 { ac_try='test -s conftest.$ac_objext'
14123 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14124 (eval $ac_try) 2>&5
14125 ac_status=$?
14126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14127 (exit $ac_status); }; }; then
0093c2fc 14128 bakefile_compiler_xlc=yes
3006edc0
VZ
14129else
14130 echo "$as_me: failed program was:" >&5
14131sed 's/^/| /' conftest.$ac_ext >&5
14132
0093c2fc 14133bakefile_compiler_xlc=no
3006edc0
VZ
14134fi
14135rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
0093c2fc 14136 bakefile_cv_cxx_compiler_xlc=$bakefile_compiler_xlc
3006edc0
VZ
14137
14138fi
0093c2fc
VZ
14139echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler_xlc" >&5
14140echo "${ECHO_T}$bakefile_cv_cxx_compiler_xlc" >&6
3006edc0 14141
0093c2fc 14142XLCXX=`test $bakefile_cv_cxx_compiler_xlc = yes && echo yes`
3006edc0
VZ
14143ac_ext=cc
14144ac_cpp='$CXXCPP $CPPFLAGS'
14145ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14146ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14147ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14148
14149
14150 ;;
14151
14152 Darwin)
14153 ac_ext=cc
95986553
DE
14154ac_cpp='$CXXCPP $CPPFLAGS'
14155ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14156ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14157ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14158
14159echo "$as_me:$LINENO: checking whether we are using the Metrowerks C++ compiler" >&5
14160echo $ECHO_N "checking whether we are using the Metrowerks C++ compiler... $ECHO_C" >&6
14161if test "${bakefile_cv_cxx_compiler_mwerks+set}" = set; then
14162 echo $ECHO_N "(cached) $ECHO_C" >&6
14163else
14164 cat >conftest.$ac_ext <<_ACEOF
14165/* confdefs.h. */
14166_ACEOF
14167cat confdefs.h >>conftest.$ac_ext
14168cat >>conftest.$ac_ext <<_ACEOF
14169/* end confdefs.h. */
14170
14171int
14172main ()
14173{
14174#ifndef __MWERKS__
14175 choke me
14176#endif
14177
14178 ;
14179 return 0;
14180}
14181_ACEOF
14182rm -f conftest.$ac_objext
14183if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14184 (eval $ac_compile) 2>conftest.er1
14185 ac_status=$?
14186 grep -v '^ *+' conftest.er1 >conftest.err
14187 rm -f conftest.er1
14188 cat conftest.err >&5
14189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14190 (exit $ac_status); } &&
c9a66001 14191 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
95986553
DE
14192 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14193 (eval $ac_try) 2>&5
14194 ac_status=$?
14195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14196 (exit $ac_status); }; } &&
14197 { ac_try='test -s conftest.$ac_objext'
14198 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14199 (eval $ac_try) 2>&5
14200 ac_status=$?
14201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14202 (exit $ac_status); }; }; then
14203 bakefile_compiler_mwerks=yes
14204else
14205 echo "$as_me: failed program was:" >&5
14206sed 's/^/| /' conftest.$ac_ext >&5
14207
14208bakefile_compiler_mwerks=no
14209fi
14210rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14211 bakefile_cv_cxx_compiler_mwerks=$bakefile_compiler_mwerks
14212
14213fi
14214echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler_mwerks" >&5
14215echo "${ECHO_T}$bakefile_cv_cxx_compiler_mwerks" >&6
14216
0e6fa1d9 14217MWCXX=`test $bakefile_cv_cxx_compiler_mwerks = yes && echo yes`
95986553
DE
14218ac_ext=cc
14219ac_cpp='$CXXCPP $CPPFLAGS'
14220ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14221ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14222ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14223
14224
3006edc0 14225 ac_ext=cc
9273ffba
DE
14226ac_cpp='$CXXCPP $CPPFLAGS'
14227ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14228ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14229ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14230
14231echo "$as_me:$LINENO: checking whether we are using the IBM xlC C++ compiler" >&5
14232echo $ECHO_N "checking whether we are using the IBM xlC C++ compiler... $ECHO_C" >&6
0093c2fc 14233if test "${bakefile_cv_cxx_compiler_xlc+set}" = set; then
9273ffba
DE
14234 echo $ECHO_N "(cached) $ECHO_C" >&6
14235else
14236 cat >conftest.$ac_ext <<_ACEOF
14237/* confdefs.h. */
14238_ACEOF
14239cat confdefs.h >>conftest.$ac_ext
14240cat >>conftest.$ac_ext <<_ACEOF
14241/* end confdefs.h. */
14242
14243int
14244main ()
14245{
14246#ifndef __xlC__
14247 choke me
14248#endif
14249
14250 ;
14251 return 0;
14252}
14253_ACEOF
14254rm -f conftest.$ac_objext
14255if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14256 (eval $ac_compile) 2>conftest.er1
14257 ac_status=$?
14258 grep -v '^ *+' conftest.er1 >conftest.err
14259 rm -f conftest.er1
14260 cat conftest.err >&5
14261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14262 (exit $ac_status); } &&
c9a66001 14263 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
9273ffba
DE
14264 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14265 (eval $ac_try) 2>&5
14266 ac_status=$?
14267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14268 (exit $ac_status); }; } &&
14269 { ac_try='test -s conftest.$ac_objext'
14270 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14271 (eval $ac_try) 2>&5
14272 ac_status=$?
14273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14274 (exit $ac_status); }; }; then
0093c2fc 14275 bakefile_compiler_xlc=yes
9273ffba
DE
14276else
14277 echo "$as_me: failed program was:" >&5
14278sed 's/^/| /' conftest.$ac_ext >&5
14279
0093c2fc 14280bakefile_compiler_xlc=no
9273ffba
DE
14281fi
14282rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
0093c2fc 14283 bakefile_cv_cxx_compiler_xlc=$bakefile_compiler_xlc
9273ffba
DE
14284
14285fi
0093c2fc
VZ
14286echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler_xlc" >&5
14287echo "${ECHO_T}$bakefile_cv_cxx_compiler_xlc" >&6
9273ffba 14288
0093c2fc 14289XLCXX=`test $bakefile_cv_cxx_compiler_xlc = yes && echo yes`
9273ffba
DE
14290ac_ext=cc
14291ac_cpp='$CXXCPP $CPPFLAGS'
14292ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14293ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14294ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14295
14296
3006edc0
VZ
14297 ;;
14298
14299 IRIX*)
95986553 14300
6dcfc289 14301
0ad5d837
VZ
14302 ac_ext=cc
14303ac_cpp='$CXXCPP $CPPFLAGS'
14304ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14305ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14306ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14307
14308 echo "$as_me:$LINENO: checking whether we are using the SGI C++ compiler" >&5
14309echo $ECHO_N "checking whether we are using the SGI C++ compiler... $ECHO_C" >&6
14310if test "${bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION+set}" = set; then
14311 echo $ECHO_N "(cached) $ECHO_C" >&6
14312else
14313 cat >conftest.$ac_ext <<_ACEOF
14314/* confdefs.h. */
14315_ACEOF
14316cat confdefs.h >>conftest.$ac_ext
14317cat >>conftest.$ac_ext <<_ACEOF
14318/* end confdefs.h. */
14319
14320int
14321main ()
14322{
14323
14324 #ifndef _SGI_COMPILER_VERSION
14325 choke me
14326 #endif
14327
14328 ;
14329 return 0;
14330}
14331_ACEOF
14332rm -f conftest.$ac_objext
14333if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14334 (eval $ac_compile) 2>conftest.er1
14335 ac_status=$?
14336 grep -v '^ *+' conftest.er1 >conftest.err
14337 rm -f conftest.er1
14338 cat conftest.err >&5
14339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14340 (exit $ac_status); } &&
c9a66001 14341 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
0ad5d837
VZ
14342 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14343 (eval $ac_try) 2>&5
14344 ac_status=$?
14345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14346 (exit $ac_status); }; } &&
14347 { ac_try='test -s conftest.$ac_objext'
14348 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14349 (eval $ac_try) 2>&5
14350 ac_status=$?
14351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14352 (exit $ac_status); }; }; then
14353 bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION=yes
14354else
14355 echo "$as_me: failed program was:" >&5
14356sed 's/^/| /' conftest.$ac_ext >&5
14357
14358bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION=no
14359
14360fi
14361rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14362
14363
14364fi
14365echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION" >&5
14366echo "${ECHO_T}$bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION" >&6
14367 ac_ext=cc
14368ac_cpp='$CXXCPP $CPPFLAGS'
14369ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14370ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14371ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14372
14373 if test "x$bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION" = "xyes"; then
14374 :; SGICXX=yes
14375 else
14376 :;
14377 fi
14378
14379
3006edc0
VZ
14380 ;;
14381
0093c2fc 14382 HP-UX*)
3006edc0
VZ
14383
14384
14385 ac_ext=cc
14386ac_cpp='$CXXCPP $CPPFLAGS'
14387ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14388ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14389ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14390
0093c2fc
VZ
14391 echo "$as_me:$LINENO: checking whether we are using the HP C++ compiler" >&5
14392echo $ECHO_N "checking whether we are using the HP C++ compiler... $ECHO_C" >&6
14393if test "${bakefile_cv_cxx_compiler___HP_aCC+set}" = set; then
3006edc0
VZ
14394 echo $ECHO_N "(cached) $ECHO_C" >&6
14395else
14396 cat >conftest.$ac_ext <<_ACEOF
14397/* confdefs.h. */
14398_ACEOF
14399cat confdefs.h >>conftest.$ac_ext
14400cat >>conftest.$ac_ext <<_ACEOF
14401/* end confdefs.h. */
14402
14403int
14404main ()
14405{
14406
0093c2fc 14407 #ifndef __HP_aCC
3006edc0
VZ
14408 choke me
14409 #endif
14410
14411 ;
14412 return 0;
14413}
14414_ACEOF
14415rm -f conftest.$ac_objext
14416if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14417 (eval $ac_compile) 2>conftest.er1
14418 ac_status=$?
14419 grep -v '^ *+' conftest.er1 >conftest.err
14420 rm -f conftest.er1
14421 cat conftest.err >&5
14422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14423 (exit $ac_status); } &&
c9a66001 14424 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3006edc0
VZ
14425 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14426 (eval $ac_try) 2>&5
14427 ac_status=$?
14428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14429 (exit $ac_status); }; } &&
14430 { ac_try='test -s conftest.$ac_objext'
14431 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14432 (eval $ac_try) 2>&5
14433 ac_status=$?
14434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14435 (exit $ac_status); }; }; then
0093c2fc 14436 bakefile_cv_cxx_compiler___HP_aCC=yes
3006edc0
VZ
14437else
14438 echo "$as_me: failed program was:" >&5
14439sed 's/^/| /' conftest.$ac_ext >&5
14440
0093c2fc 14441bakefile_cv_cxx_compiler___HP_aCC=no
3006edc0
VZ
14442
14443fi
14444rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14445
14446
14447fi
0093c2fc
VZ
14448echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___HP_aCC" >&5
14449echo "${ECHO_T}$bakefile_cv_cxx_compiler___HP_aCC" >&6
3006edc0
VZ
14450 ac_ext=cc
14451ac_cpp='$CXXCPP $CPPFLAGS'
14452ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14453ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14454ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14455
0093c2fc
VZ
14456 if test "x$bakefile_cv_cxx_compiler___HP_aCC" = "xyes"; then
14457 :; HPCXX=yes
a1aa0349
VZ
14458 else
14459 :;
14460 fi
14461
14462
14463 ;;
14464
0093c2fc 14465 OSF1)
a1aa0349
VZ
14466
14467
14468 ac_ext=cc
14469ac_cpp='$CXXCPP $CPPFLAGS'
14470ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14471ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14472ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14473
0093c2fc
VZ
14474 echo "$as_me:$LINENO: checking whether we are using the Compaq C++ compiler" >&5
14475echo $ECHO_N "checking whether we are using the Compaq C++ compiler... $ECHO_C" >&6
14476if test "${bakefile_cv_cxx_compiler___DECCXX+set}" = set; then
a1aa0349
VZ
14477 echo $ECHO_N "(cached) $ECHO_C" >&6
14478else
14479 cat >conftest.$ac_ext <<_ACEOF
14480/* confdefs.h. */
14481_ACEOF
14482cat confdefs.h >>conftest.$ac_ext
14483cat >>conftest.$ac_ext <<_ACEOF
14484/* end confdefs.h. */
14485
14486int
14487main ()
14488{
14489
0093c2fc 14490 #ifndef __DECCXX
a1aa0349
VZ
14491 choke me
14492 #endif
14493
14494 ;
14495 return 0;
14496}
14497_ACEOF
14498rm -f conftest.$ac_objext
14499if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14500 (eval $ac_compile) 2>conftest.er1
14501 ac_status=$?
14502 grep -v '^ *+' conftest.er1 >conftest.err
14503 rm -f conftest.er1
14504 cat conftest.err >&5
14505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14506 (exit $ac_status); } &&
c9a66001 14507 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
a1aa0349
VZ
14508 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14509 (eval $ac_try) 2>&5
14510 ac_status=$?
14511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14512 (exit $ac_status); }; } &&
14513 { ac_try='test -s conftest.$ac_objext'
14514 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14515 (eval $ac_try) 2>&5
14516 ac_status=$?
14517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14518 (exit $ac_status); }; }; then
0093c2fc 14519 bakefile_cv_cxx_compiler___DECCXX=yes
a1aa0349
VZ
14520else
14521 echo "$as_me: failed program was:" >&5
14522sed 's/^/| /' conftest.$ac_ext >&5
14523
0093c2fc 14524bakefile_cv_cxx_compiler___DECCXX=no
a1aa0349
VZ
14525
14526fi
14527rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14528
14529
14530fi
0093c2fc
VZ
14531echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___DECCXX" >&5
14532echo "${ECHO_T}$bakefile_cv_cxx_compiler___DECCXX" >&6
a1aa0349
VZ
14533 ac_ext=cc
14534ac_cpp='$CXXCPP $CPPFLAGS'
14535ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14536ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14537ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14538
0093c2fc
VZ
14539 if test "x$bakefile_cv_cxx_compiler___DECCXX" = "xyes"; then
14540 :; COMPAQCXX=yes
14541 else
14542 :;
14543 fi
14544
14545
14546 ;;
14547
14548 SunOS)
14549
14550
14551 ac_ext=cc
14552ac_cpp='$CXXCPP $CPPFLAGS'
14553ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14554ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14555ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14556
14557 echo "$as_me:$LINENO: checking whether we are using the Sun C++ compiler" >&5
14558echo $ECHO_N "checking whether we are using the Sun C++ compiler... $ECHO_C" >&6
14559if test "${bakefile_cv_cxx_compiler___SUNPRO_CC+set}" = set; then
14560 echo $ECHO_N "(cached) $ECHO_C" >&6
14561else
14562 cat >conftest.$ac_ext <<_ACEOF
14563/* confdefs.h. */
14564_ACEOF
14565cat confdefs.h >>conftest.$ac_ext
14566cat >>conftest.$ac_ext <<_ACEOF
14567/* end confdefs.h. */
14568
14569int
14570main ()
14571{
14572
14573 #ifndef __SUNPRO_CC
14574 choke me
14575 #endif
14576
14577 ;
14578 return 0;
14579}
14580_ACEOF
14581rm -f conftest.$ac_objext
14582if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14583 (eval $ac_compile) 2>conftest.er1
14584 ac_status=$?
14585 grep -v '^ *+' conftest.er1 >conftest.err
14586 rm -f conftest.er1
14587 cat conftest.err >&5
14588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14589 (exit $ac_status); } &&
c9a66001 14590 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
0093c2fc
VZ
14591 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14592 (eval $ac_try) 2>&5
14593 ac_status=$?
14594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14595 (exit $ac_status); }; } &&
14596 { ac_try='test -s conftest.$ac_objext'
14597 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14598 (eval $ac_try) 2>&5
14599 ac_status=$?
14600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14601 (exit $ac_status); }; }; then
14602 bakefile_cv_cxx_compiler___SUNPRO_CC=yes
14603else
14604 echo "$as_me: failed program was:" >&5
14605sed 's/^/| /' conftest.$ac_ext >&5
14606
14607bakefile_cv_cxx_compiler___SUNPRO_CC=no
14608
14609fi
14610rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14611
14612
14613fi
14614echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___SUNPRO_CC" >&5
14615echo "${ECHO_T}$bakefile_cv_cxx_compiler___SUNPRO_CC" >&6
14616 ac_ext=cc
14617ac_cpp='$CXXCPP $CPPFLAGS'
14618ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14619ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14620ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14621
14622 if test "x$bakefile_cv_cxx_compiler___SUNPRO_CC" = "xyes"; then
14623 :; SUNCXX=yes
3006edc0
VZ
14624 else
14625 :;
ab0ad5f1 14626 fi
a9e5b1f0
MW
14627
14628
3006edc0
VZ
14629 ;;
14630 esac
14631 fi
14632
14633
14634
a848cd7e
SC
14635if test -n "$ac_tool_prefix"; then
14636 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
14637set dummy ${ac_tool_prefix}ranlib; ac_word=$2
14638echo "$as_me:$LINENO: checking for $ac_word" >&5
14639echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14640if test "${ac_cv_prog_RANLIB+set}" = set; then
14641 echo $ECHO_N "(cached) $ECHO_C" >&6
14642else
14643 if test -n "$RANLIB"; then
14644 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
14645else
14646as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14647for as_dir in $PATH
14648do
14649 IFS=$as_save_IFS
14650 test -z "$as_dir" && as_dir=.
14651 for ac_exec_ext in '' $ac_executable_extensions; do
14652 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14653 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
14654 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14655 break 2
14656 fi
14657done
14658done
14659
14660fi
14661fi
14662RANLIB=$ac_cv_prog_RANLIB
14663if test -n "$RANLIB"; then
14664 echo "$as_me:$LINENO: result: $RANLIB" >&5
14665echo "${ECHO_T}$RANLIB" >&6
14666else
14667 echo "$as_me:$LINENO: result: no" >&5
14668echo "${ECHO_T}no" >&6
14669fi
14670
14671fi
14672if test -z "$ac_cv_prog_RANLIB"; then
14673 ac_ct_RANLIB=$RANLIB
14674 # Extract the first word of "ranlib", so it can be a program name with args.
14675set dummy ranlib; ac_word=$2
14676echo "$as_me:$LINENO: checking for $ac_word" >&5
14677echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14678if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
14679 echo $ECHO_N "(cached) $ECHO_C" >&6
14680else
14681 if test -n "$ac_ct_RANLIB"; then
14682 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
14683else
14684as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14685for as_dir in $PATH
14686do
14687 IFS=$as_save_IFS
14688 test -z "$as_dir" && as_dir=.
14689 for ac_exec_ext in '' $ac_executable_extensions; do
14690 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14691 ac_cv_prog_ac_ct_RANLIB="ranlib"
14692 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14693 break 2
14694 fi
14695done
14696done
14697
14698 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
14699fi
14700fi
14701ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
14702if test -n "$ac_ct_RANLIB"; then
14703 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
14704echo "${ECHO_T}$ac_ct_RANLIB" >&6
14705else
14706 echo "$as_me:$LINENO: result: no" >&5
14707echo "${ECHO_T}no" >&6
14708fi
14709
14710 RANLIB=$ac_ct_RANLIB
14711else
14712 RANLIB="$ac_cv_prog_RANLIB"
14713fi
14714
14715
8c80d384
DE
14716if test -n "$ac_tool_prefix"; then
14717 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
14718set dummy ${ac_tool_prefix}ar; ac_word=$2
a848cd7e
SC
14719echo "$as_me:$LINENO: checking for $ac_word" >&5
14720echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14721if test "${ac_cv_prog_AR+set}" = set; then
14722 echo $ECHO_N "(cached) $ECHO_C" >&6
14723else
14724 if test -n "$AR"; then
14725 ac_cv_prog_AR="$AR" # Let the user override the test.
14726else
14727as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14728for as_dir in $PATH
14729do
14730 IFS=$as_save_IFS
14731 test -z "$as_dir" && as_dir=.
14732 for ac_exec_ext in '' $ac_executable_extensions; do
14733 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8c80d384 14734 ac_cv_prog_AR="${ac_tool_prefix}ar"
a848cd7e
SC
14735 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14736 break 2
14737 fi
14738done
14739done
14740
14741fi
14742fi
14743AR=$ac_cv_prog_AR
14744if test -n "$AR"; then
14745 echo "$as_me:$LINENO: result: $AR" >&5
14746echo "${ECHO_T}$AR" >&6
14747else
14748 echo "$as_me:$LINENO: result: no" >&5
14749echo "${ECHO_T}no" >&6
14750fi
14751
8c80d384
DE
14752fi
14753if test -z "$ac_cv_prog_AR"; then
14754 ac_ct_AR=$AR
14755 # Extract the first word of "ar", so it can be a program name with args.
14756set dummy ar; ac_word=$2
14757echo "$as_me:$LINENO: checking for $ac_word" >&5
14758echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14759if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
14760 echo $ECHO_N "(cached) $ECHO_C" >&6
14761else
14762 if test -n "$ac_ct_AR"; then
14763 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
14764else
14765as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14766for as_dir in $PATH
14767do
14768 IFS=$as_save_IFS
14769 test -z "$as_dir" && as_dir=.
14770 for ac_exec_ext in '' $ac_executable_extensions; do
14771 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14772 ac_cv_prog_ac_ct_AR="ar"
14773 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14774 break 2
14775 fi
14776done
14777done
14778
14779fi
14780fi
14781ac_ct_AR=$ac_cv_prog_ac_ct_AR
14782if test -n "$ac_ct_AR"; then
14783 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
14784echo "${ECHO_T}$ac_ct_AR" >&6
14785else
14786 echo "$as_me:$LINENO: result: no" >&5
14787echo "${ECHO_T}no" >&6
14788fi
14789
14790 AR=$ac_ct_AR
14791else
14792 AR="$ac_cv_prog_AR"
14793fi
14794
a848cd7e 14795if test "x$AR" = "x" ; then
77ffb593
JS
14796 { { echo "$as_me:$LINENO: error: ar is needed to build wxWidgets" >&5
14797echo "$as_me: error: ar is needed to build wxWidgets" >&2;}
a848cd7e
SC
14798 { (exit 1); exit 1; }; }
14799fi
14800
14801# Find a good install program. We prefer a C program (faster),
14802# so one script is as good as another. But avoid the broken or
14803# incompatible versions:
14804# SysV /etc/install, /usr/sbin/install
14805# SunOS /usr/etc/install
14806# IRIX /sbin/install
14807# AIX /bin/install
14808# AmigaOS /C/install, which installs bootblocks on floppy discs
14809# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
14810# AFS /usr/afsws/bin/install, which mishandles nonexistent args
14811# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
ac1cb8d3 14812# OS/2's system install, which has a completely different semantic
a848cd7e
SC
14813# ./install, which can be erroneously created by make from ./install.sh.
14814echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
14815echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
14816if test -z "$INSTALL"; then
14817if test "${ac_cv_path_install+set}" = set; then
14818 echo $ECHO_N "(cached) $ECHO_C" >&6
14819else
14820 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14821for as_dir in $PATH
14822do
14823 IFS=$as_save_IFS
14824 test -z "$as_dir" && as_dir=.
14825 # Account for people who put trailing slashes in PATH elements.
14826case $as_dir/ in
14827 ./ | .// | /cC/* | \
14828 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
ac1cb8d3 14829 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
a848cd7e
SC
14830 /usr/ucb/* ) ;;
14831 *)
14832 # OSF1 and SCO ODT 3.0 have their own names for install.
14833 # Don't use installbsd from OSF since it installs stuff as root
14834 # by default.
14835 for ac_prog in ginstall scoinst install; do
14836 for ac_exec_ext in '' $ac_executable_extensions; do
ac1cb8d3
VS
14837 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
14838 if test $ac_prog = install &&
14839 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
14840 # AIX install. It has an incompatible calling convention.
14841 :
14842 elif test $ac_prog = install &&
14843 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
14844 # program-specific install script used by HP pwplus--don't use.
14845 :
14846 else
14847 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
14848 break 3
14849 fi
14850 fi
a848cd7e
SC
14851 done
14852 done
14853 ;;
14854esac
14855done
14856
14857
14858fi
14859 if test "${ac_cv_path_install+set}" = set; then
14860 INSTALL=$ac_cv_path_install
14861 else
14862 # As a last resort, use the slow shell script. We don't cache a
14863 # path for INSTALL within a source directory, because that will
14864 # break other packages using the cache if that directory is
14865 # removed, or if the path is relative.
14866 INSTALL=$ac_install_sh
14867 fi
14868fi
14869echo "$as_me:$LINENO: result: $INSTALL" >&5
14870echo "${ECHO_T}$INSTALL" >&6
14871
14872# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
14873# It thinks the first close brace ends the variable substitution.
14874test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
14875
14876test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
14877
14878test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
14879
14880
14881case ${INSTALL} in
14882 /* ) # Absolute
14883 ;;
14884 ?:* ) # Drive letter, considered as absolute.
14885 ;;
14886 *)
14887 INSTALL=`pwd`/${INSTALL} ;;
14888esac
14889
a848cd7e
SC
14890
14891case "${host}" in
14892
cfda0ea8 14893 *-*-darwin* )
a848cd7e
SC
14894 INSTALL_PROGRAM="cp -fp"
14895 INSTALL_DATA="cp -fp"
14896 ;;
14897 *)
14898 ;;
14899esac
14900
8c80d384
DE
14901if test -n "$ac_tool_prefix"; then
14902 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
14903set dummy ${ac_tool_prefix}strip; ac_word=$2
a848cd7e
SC
14904echo "$as_me:$LINENO: checking for $ac_word" >&5
14905echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14906if test "${ac_cv_prog_STRIP+set}" = set; then
14907 echo $ECHO_N "(cached) $ECHO_C" >&6
14908else
14909 if test -n "$STRIP"; then
14910 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
14911else
14912as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14913for as_dir in $PATH
14914do
14915 IFS=$as_save_IFS
14916 test -z "$as_dir" && as_dir=.
14917 for ac_exec_ext in '' $ac_executable_extensions; do
14918 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8c80d384 14919 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
a848cd7e
SC
14920 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14921 break 2
14922 fi
14923done
14924done
14925
a848cd7e
SC
14926fi
14927fi
14928STRIP=$ac_cv_prog_STRIP
14929if test -n "$STRIP"; then
14930 echo "$as_me:$LINENO: result: $STRIP" >&5
14931echo "${ECHO_T}$STRIP" >&6
14932else
14933 echo "$as_me:$LINENO: result: no" >&5
14934echo "${ECHO_T}no" >&6
14935fi
14936
8c80d384
DE
14937fi
14938if test -z "$ac_cv_prog_STRIP"; then
14939 ac_ct_STRIP=$STRIP
14940 # Extract the first word of "strip", so it can be a program name with args.
14941set dummy strip; ac_word=$2
14942echo "$as_me:$LINENO: checking for $ac_word" >&5
14943echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14944if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
14945 echo $ECHO_N "(cached) $ECHO_C" >&6
14946else
14947 if test -n "$ac_ct_STRIP"; then
14948 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
14949else
14950as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14951for as_dir in $PATH
14952do
14953 IFS=$as_save_IFS
14954 test -z "$as_dir" && as_dir=.
14955 for ac_exec_ext in '' $ac_executable_extensions; do
14956 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14957 ac_cv_prog_ac_ct_STRIP="strip"
14958 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14959 break 2
14960 fi
14961done
14962done
14963
14964 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP="true"
14965fi
14966fi
14967ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
14968if test -n "$ac_ct_STRIP"; then
14969 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
14970echo "${ECHO_T}$ac_ct_STRIP" >&6
14971else
14972 echo "$as_me:$LINENO: result: no" >&5
14973echo "${ECHO_T}no" >&6
14974fi
14975
14976 STRIP=$ac_ct_STRIP
14977else
14978 STRIP="$ac_cv_prog_STRIP"
14979fi
14980
14981
14982if test "$wxUSE_WINE" = "yes"; then
14983 if test -n "$ac_tool_prefix"; then
14984 # Extract the first word of "${ac_tool_prefix}wrc", so it can be a program name with args.
14985set dummy ${ac_tool_prefix}wrc; ac_word=$2
14986echo "$as_me:$LINENO: checking for $ac_word" >&5
14987echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8ced02f6 14988if test "${ac_cv_prog_WINDRES+set}" = set; then
8c80d384
DE
14989 echo $ECHO_N "(cached) $ECHO_C" >&6
14990else
8ced02f6
DE
14991 if test -n "$WINDRES"; then
14992 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
8c80d384
DE
14993else
14994as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14995for as_dir in $PATH
14996do
14997 IFS=$as_save_IFS
14998 test -z "$as_dir" && as_dir=.
14999 for ac_exec_ext in '' $ac_executable_extensions; do
15000 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8ced02f6 15001 ac_cv_prog_WINDRES="${ac_tool_prefix}wrc"
8c80d384
DE
15002 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15003 break 2
15004 fi
15005done
15006done
15007
15008fi
15009fi
8ced02f6
DE
15010WINDRES=$ac_cv_prog_WINDRES
15011if test -n "$WINDRES"; then
15012 echo "$as_me:$LINENO: result: $WINDRES" >&5
15013echo "${ECHO_T}$WINDRES" >&6
8c80d384
DE
15014else
15015 echo "$as_me:$LINENO: result: no" >&5
15016echo "${ECHO_T}no" >&6
15017fi
15018
15019fi
8ced02f6
DE
15020if test -z "$ac_cv_prog_WINDRES"; then
15021 ac_ct_WINDRES=$WINDRES
8c80d384
DE
15022 # Extract the first word of "wrc", so it can be a program name with args.
15023set dummy wrc; ac_word=$2
15024echo "$as_me:$LINENO: checking for $ac_word" >&5
15025echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8ced02f6 15026if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then
8c80d384
DE
15027 echo $ECHO_N "(cached) $ECHO_C" >&6
15028else
8ced02f6
DE
15029 if test -n "$ac_ct_WINDRES"; then
15030 ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
8c80d384
DE
15031else
15032as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15033for as_dir in $PATH
15034do
15035 IFS=$as_save_IFS
15036 test -z "$as_dir" && as_dir=.
15037 for ac_exec_ext in '' $ac_executable_extensions; do
15038 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8ced02f6 15039 ac_cv_prog_ac_ct_WINDRES="wrc"
8c80d384
DE
15040 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15041 break 2
15042 fi
15043done
15044done
15045
15046fi
15047fi
8ced02f6
DE
15048ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
15049if test -n "$ac_ct_WINDRES"; then
15050 echo "$as_me:$LINENO: result: $ac_ct_WINDRES" >&5
15051echo "${ECHO_T}$ac_ct_WINDRES" >&6
8c80d384
DE
15052else
15053 echo "$as_me:$LINENO: result: no" >&5
15054echo "${ECHO_T}no" >&6
15055fi
15056
8ced02f6 15057 WINDRES=$ac_ct_WINDRES
8c80d384 15058else
8ced02f6 15059 WINDRES="$ac_cv_prog_WINDRES"
8c80d384
DE
15060fi
15061
004ee6da 15062 RESCOMP="$WINDRES"
8c80d384
DE
15063else
15064 case "${host}" in
15065 *-*-cygwin* | *-*-mingw32* )
004ee6da
RL
15066 if test -n "$ac_tool_prefix"; then
15067 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
15068set dummy ${ac_tool_prefix}windres; ac_word=$2
15069echo "$as_me:$LINENO: checking for $ac_word" >&5
15070echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15071if test "${ac_cv_prog_WINDRES+set}" = set; then
15072 echo $ECHO_N "(cached) $ECHO_C" >&6
15073else
15074 if test -n "$WINDRES"; then
15075 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
15076else
15077as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15078for as_dir in $PATH
15079do
15080 IFS=$as_save_IFS
15081 test -z "$as_dir" && as_dir=.
15082 for ac_exec_ext in '' $ac_executable_extensions; do
15083 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15084 ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
15085 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15086 break 2
15087 fi
15088done
15089done
15090
15091fi
15092fi
15093WINDRES=$ac_cv_prog_WINDRES
15094if test -n "$WINDRES"; then
15095 echo "$as_me:$LINENO: result: $WINDRES" >&5
15096echo "${ECHO_T}$WINDRES" >&6
15097else
15098 echo "$as_me:$LINENO: result: no" >&5
15099echo "${ECHO_T}no" >&6
15100fi
15101
15102fi
15103if test -z "$ac_cv_prog_WINDRES"; then
15104 ac_ct_WINDRES=$WINDRES
15105 # Extract the first word of "windres", so it can be a program name with args.
15106set dummy windres; ac_word=$2
15107echo "$as_me:$LINENO: checking for $ac_word" >&5
15108echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15109if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then
15110 echo $ECHO_N "(cached) $ECHO_C" >&6
15111else
15112 if test -n "$ac_ct_WINDRES"; then
15113 ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
15114else
15115as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15116for as_dir in $PATH
15117do
15118 IFS=$as_save_IFS
15119 test -z "$as_dir" && as_dir=.
15120 for ac_exec_ext in '' $ac_executable_extensions; do
15121 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15122 ac_cv_prog_ac_ct_WINDRES="windres"
15123 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15124 break 2
15125 fi
15126done
15127done
15128
15129fi
15130fi
15131ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
15132if test -n "$ac_ct_WINDRES"; then
15133 echo "$as_me:$LINENO: result: $ac_ct_WINDRES" >&5
15134echo "${ECHO_T}$ac_ct_WINDRES" >&6
15135else
15136 echo "$as_me:$LINENO: result: no" >&5
15137echo "${ECHO_T}no" >&6
15138fi
15139
15140 WINDRES=$ac_ct_WINDRES
15141else
15142 WINDRES="$ac_cv_prog_WINDRES"
15143fi
15144
15145 RESCOMP="$WINDRES"
15146 if test -n "$ac_tool_prefix"; then
8c80d384
DE
15147 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
15148set dummy ${ac_tool_prefix}dlltool; ac_word=$2
15149echo "$as_me:$LINENO: checking for $ac_word" >&5
15150echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15151if test "${ac_cv_prog_DLLTOOL+set}" = set; then
15152 echo $ECHO_N "(cached) $ECHO_C" >&6
15153else
15154 if test -n "$DLLTOOL"; then
15155 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
15156else
15157as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15158for as_dir in $PATH
15159do
15160 IFS=$as_save_IFS
15161 test -z "$as_dir" && as_dir=.
15162 for ac_exec_ext in '' $ac_executable_extensions; do
15163 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15164 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
15165 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15166 break 2
15167 fi
15168done
15169done
15170
15171fi
15172fi
15173DLLTOOL=$ac_cv_prog_DLLTOOL
15174if test -n "$DLLTOOL"; then
15175 echo "$as_me:$LINENO: result: $DLLTOOL" >&5
15176echo "${ECHO_T}$DLLTOOL" >&6
15177else
15178 echo "$as_me:$LINENO: result: no" >&5
15179echo "${ECHO_T}no" >&6
15180fi
15181
15182fi
15183if test -z "$ac_cv_prog_DLLTOOL"; then
15184 ac_ct_DLLTOOL=$DLLTOOL
15185 # Extract the first word of "dlltool", so it can be a program name with args.
15186set dummy dlltool; ac_word=$2
15187echo "$as_me:$LINENO: checking for $ac_word" >&5
15188echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15189if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
15190 echo $ECHO_N "(cached) $ECHO_C" >&6
15191else
15192 if test -n "$ac_ct_DLLTOOL"; then
15193 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
15194else
15195as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15196for as_dir in $PATH
15197do
15198 IFS=$as_save_IFS
15199 test -z "$as_dir" && as_dir=.
15200 for ac_exec_ext in '' $ac_executable_extensions; do
15201 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15202 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
15203 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15204 break 2
15205 fi
15206done
15207done
15208
15209fi
15210fi
15211ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
15212if test -n "$ac_ct_DLLTOOL"; then
15213 echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
15214echo "${ECHO_T}$ac_ct_DLLTOOL" >&6
15215else
15216 echo "$as_me:$LINENO: result: no" >&5
15217echo "${ECHO_T}no" >&6
15218fi
15219
15220 DLLTOOL=$ac_ct_DLLTOOL
15221else
15222 DLLTOOL="$ac_cv_prog_DLLTOOL"
15223fi
15224
15225 ;;
15226 esac
15227fi
a848cd7e
SC
15228
15229echo "$as_me:$LINENO: checking if make is GNU make" >&5
15230echo $ECHO_N "checking if make is GNU make... $ECHO_C" >&6
15231if test "${wx_cv_prog_makeisgnu+set}" = set; then
15232 echo $ECHO_N "(cached) $ECHO_C" >&6
15233else
15234
15235 if ( ${SHELL-sh} -c "${MAKE-make} --version" 2> /dev/null |
15236 egrep -s GNU > /dev/null); then
15237 wx_cv_prog_makeisgnu="yes"
15238 else
15239 wx_cv_prog_makeisgnu="no"
15240 fi
15241
15242fi
15243echo "$as_me:$LINENO: result: $wx_cv_prog_makeisgnu" >&5
15244echo "${ECHO_T}$wx_cv_prog_makeisgnu" >&6
15245
15246if test "x$wx_cv_prog_makeisgnu" = "xyes"; then
15247 IF_GNU_MAKE=""
15248else
15249 IF_GNU_MAKE="#"
15250fi
15251
15252
15253
15254if test "x$wx_cv_prog_makeisgnu" != "xyes"; then
15255echo "$as_me:$LINENO: checking if make supports VPATH" >&5
15256echo $ECHO_N "checking if make supports VPATH... $ECHO_C" >&6
15257if test "${wx_cv_prog_makevpath+set}" = set; then
15258 echo $ECHO_N "(cached) $ECHO_C" >&6
15259else
15260
15261cat - << EOF > confMake
15262check : file
15263 cp \$? \$@
15264 cp \$? final_file
15265EOF
15266
15267if test ! -d sub ; then
15268 mkdir sub
15269fi
15270echo dummy > sub/file
15271${MAKE-make} -f confMake VPATH=sub 2>&5 > /dev/null
15272RESULT=$?
15273rm -f sub/file check final_file confMake
15274rmdir sub
15275if test "$RESULT" = 0; then
15276 wx_cv_prog_makevpath="yes"
15277else
15278 wx_cv_prog_makevpath="no"
15279fi
15280
15281fi
15282echo "$as_me:$LINENO: result: $wx_cv_prog_makevpath" >&5
15283echo "${ECHO_T}$wx_cv_prog_makevpath" >&6
15284
15285if test "x$wx_cv_prog_makevpath" != "xyes"; then
15286{ { echo "$as_me:$LINENO: error:
15287You need a make-utility that is able to use the variable
15288VPATH correctly.
15289If your version of make does not support VPATH correctly,
15290please install GNU-make (possibly as gmake), and start
15291configure with the following command:
15292export MAKE=gmake; ./configure for sh-type shells
15293setenv MAKE gmake; ./configure for csh-type shells
15294Also please do remember to use gmake in this case every time
15295you are trying to compile.
15296" >&5
15297echo "$as_me: error:
15298You need a make-utility that is able to use the variable
15299VPATH correctly.
15300If your version of make does not support VPATH correctly,
15301please install GNU-make (possibly as gmake), and start
15302configure with the following command:
15303export MAKE=gmake; ./configure for sh-type shells
15304setenv MAKE gmake; ./configure for csh-type shells
15305Also please do remember to use gmake in this case every time
15306you are trying to compile.
15307" >&2;}
15308 { (exit 1); exit 1; }; }
15309fi fi
15310echo "$as_me:$LINENO: checking whether ln -s works" >&5
15311echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
15312LN_S=$as_ln_s
15313if test "$LN_S" = "ln -s"; then
15314 echo "$as_me:$LINENO: result: yes" >&5
15315echo "${ECHO_T}yes" >&6
15316else
15317 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
15318echo "${ECHO_T}no, using $LN_S" >&6
15319fi
15320
15321
bcaab0f9 15322
a848cd7e 15323
2113bc77 15324if test "x$XLCXX" = "xyes" -a "x$USE_AIX" = "x1"; then
c92ad099 15325 CXXFLAGS="-qunique $CXXFLAGS"
9273ffba
DE
15326fi
15327
4d7ec9f1
DE
15328case "${host}" in
15329 powerpc-*-darwin* )
15330 echo "$as_me:$LINENO: checking if __POWERPC__ is already defined" >&5
15331echo $ECHO_N "checking if __POWERPC__ is already defined... $ECHO_C" >&6
15332 cat >conftest.$ac_ext <<_ACEOF
15333/* confdefs.h. */
15334_ACEOF
15335cat confdefs.h >>conftest.$ac_ext
15336cat >>conftest.$ac_ext <<_ACEOF
15337/* end confdefs.h. */
15338
15339int
15340main ()
15341{
15342#ifndef __POWERPC__
15343 choke me for lack of PowerPC
15344#endif
15345
15346 ;
15347 return 0;
15348}
15349_ACEOF
15350rm -f conftest.$ac_objext
15351if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15352 (eval $ac_compile) 2>conftest.er1
15353 ac_status=$?
15354 grep -v '^ *+' conftest.er1 >conftest.err
15355 rm -f conftest.er1
15356 cat conftest.err >&5
15357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15358 (exit $ac_status); } &&
c9a66001 15359 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
4d7ec9f1
DE
15360 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15361 (eval $ac_try) 2>&5
15362 ac_status=$?
15363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15364 (exit $ac_status); }; } &&
15365 { ac_try='test -s conftest.$ac_objext'
15366 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15367 (eval $ac_try) 2>&5
15368 ac_status=$?
15369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15370 (exit $ac_status); }; }; then
15371 echo "$as_me:$LINENO: result: yes" >&5
15372echo "${ECHO_T}yes" >&6
15373else
15374 echo "$as_me: failed program was:" >&5
15375sed 's/^/| /' conftest.$ac_ext >&5
15376
15377echo "$as_me:$LINENO: result: no" >&5
15378echo "${ECHO_T}no" >&6
15379 cat >>confdefs.h <<\_ACEOF
15380#define __POWERPC__ 1
15381_ACEOF
15382
15383
15384fi
15385rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
cfda0ea8
DE
15386 ;;
15387esac
15388
15389case "${host}" in
15390 *-*-darwin* )
4d7ec9f1
DE
15391 echo "$as_me:$LINENO: checking if CoreFoundation/CFBase.h is usable" >&5
15392echo $ECHO_N "checking if CoreFoundation/CFBase.h is usable... $ECHO_C" >&6
15393 cat >conftest.$ac_ext <<_ACEOF
15394/* confdefs.h. */
15395_ACEOF
15396cat confdefs.h >>conftest.$ac_ext
15397cat >>conftest.$ac_ext <<_ACEOF
15398/* end confdefs.h. */
15399#include <CoreFoundation/CFBase.h>
15400
15401int
15402main ()
15403{
15404
15405 ;
15406 return 0;
15407}
15408_ACEOF
15409rm -f conftest.$ac_objext
15410if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15411 (eval $ac_compile) 2>conftest.er1
15412 ac_status=$?
15413 grep -v '^ *+' conftest.er1 >conftest.err
15414 rm -f conftest.er1
15415 cat conftest.err >&5
15416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15417 (exit $ac_status); } &&
c9a66001 15418 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
4d7ec9f1
DE
15419 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15420 (eval $ac_try) 2>&5
15421 ac_status=$?
15422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15423 (exit $ac_status); }; } &&
15424 { ac_try='test -s conftest.$ac_objext'
15425 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15426 (eval $ac_try) 2>&5
15427 ac_status=$?
15428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15429 (exit $ac_status); }; }; then
15430 echo "$as_me:$LINENO: result: yes" >&5
15431echo "${ECHO_T}yes" >&6
15432else
15433 echo "$as_me: failed program was:" >&5
15434sed 's/^/| /' conftest.$ac_ext >&5
15435
15436echo "$as_me:$LINENO: result: no" >&5
15437echo "${ECHO_T}no" >&6
15438 echo "$as_me:$LINENO: checking if __CF_USE_FRAMEWORK_INCLUDES__ is required" >&5
15439echo $ECHO_N "checking if __CF_USE_FRAMEWORK_INCLUDES__ is required... $ECHO_C" >&6
15440 cat >conftest.$ac_ext <<_ACEOF
15441/* confdefs.h. */
15442_ACEOF
15443cat confdefs.h >>conftest.$ac_ext
15444cat >>conftest.$ac_ext <<_ACEOF
15445/* end confdefs.h. */
15446#define __CF_USE_FRAMEWORK_INCLUDES__
15447#include <CoreFoundation/CFBase.h>
15448
15449int
15450main ()
15451{
15452
15453 ;
15454 return 0;
15455}
15456_ACEOF
15457rm -f conftest.$ac_objext
15458if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15459 (eval $ac_compile) 2>conftest.er1
15460 ac_status=$?
15461 grep -v '^ *+' conftest.er1 >conftest.err
15462 rm -f conftest.er1
15463 cat conftest.err >&5
15464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15465 (exit $ac_status); } &&
c9a66001 15466 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
4d7ec9f1
DE
15467 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15468 (eval $ac_try) 2>&5
15469 ac_status=$?
15470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15471 (exit $ac_status); }; } &&
15472 { ac_try='test -s conftest.$ac_objext'
15473 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15474 (eval $ac_try) 2>&5
15475 ac_status=$?
15476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15477 (exit $ac_status); }; }; then
15478 echo "$as_me:$LINENO: result: yes" >&5
15479echo "${ECHO_T}yes" >&6
c92ad099 15480 CPPFLAGS="-D__CF_USE_FRAMEWORK_INCLUDES__ $CPPFLAGS"
4d7ec9f1
DE
15481else
15482 echo "$as_me: failed program was:" >&5
15483sed 's/^/| /' conftest.$ac_ext >&5
15484
15485{ { echo "$as_me:$LINENO: error: no. CoreFoundation not available.
15486See \`config.log' for more details." >&5
15487echo "$as_me: error: no. CoreFoundation not available.
15488See \`config.log' for more details." >&2;}
15489 { (exit 1); exit 1; }; }
15490
15491fi
15492rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15493
15494
15495fi
15496rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15497 ;;
15498esac
15499
a848cd7e
SC
15500case "${host}" in
15501 *-pc-os2_emx | *-pc-os2-emx )
6ba87b06
SN
15502 ac_ext=c
15503ac_cpp='$CPP $CPPFLAGS'
15504ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15505ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15506ac_compiler_gnu=$ac_cv_c_compiler_gnu
15507
15508 if test "$wxUSE_MOTIF" = 1 -o "$wxUSE_GTK" = 1 -o "$wxUSE_X11" = 1; then
a848cd7e
SC
15509 echo "$as_me:$LINENO: checking for drand48 in -lcExt" >&5
15510echo $ECHO_N "checking for drand48 in -lcExt... $ECHO_C" >&6
15511if test "${ac_cv_lib_cExt_drand48+set}" = set; then
15512 echo $ECHO_N "(cached) $ECHO_C" >&6
15513else
15514 ac_check_lib_save_LIBS=$LIBS
15515LIBS="-lcExt $LIBS"
15516cat >conftest.$ac_ext <<_ACEOF
15517/* confdefs.h. */
15518_ACEOF
15519cat confdefs.h >>conftest.$ac_ext
15520cat >>conftest.$ac_ext <<_ACEOF
15521/* end confdefs.h. */
15522
15523/* Override any gcc2 internal prototype to avoid an error. */
15524#ifdef __cplusplus
15525extern "C"
15526#endif
15527/* We use char because int might match the return type of a gcc2
15528 builtin and then its argument prototype would still apply. */
15529char drand48 ();
15530int
15531main ()
15532{
15533drand48 ();
15534 ;
15535 return 0;
15536}
15537_ACEOF
15538rm -f conftest.$ac_objext conftest$ac_exeext
15539if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 15540 (eval $ac_link) 2>conftest.er1
a848cd7e 15541 ac_status=$?
ac1cb8d3
VS
15542 grep -v '^ *+' conftest.er1 >conftest.err
15543 rm -f conftest.er1
15544 cat conftest.err >&5
a848cd7e
SC
15545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15546 (exit $ac_status); } &&
c9a66001 15547 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
15548 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15549 (eval $ac_try) 2>&5
15550 ac_status=$?
15551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15552 (exit $ac_status); }; } &&
15553 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
15554 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15555 (eval $ac_try) 2>&5
15556 ac_status=$?
15557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15558 (exit $ac_status); }; }; then
15559 ac_cv_lib_cExt_drand48=yes
15560else
15561 echo "$as_me: failed program was:" >&5
15562sed 's/^/| /' conftest.$ac_ext >&5
15563
15564ac_cv_lib_cExt_drand48=no
15565fi
ac1cb8d3
VS
15566rm -f conftest.err conftest.$ac_objext \
15567 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
15568LIBS=$ac_check_lib_save_LIBS
15569fi
15570echo "$as_me:$LINENO: result: $ac_cv_lib_cExt_drand48" >&5
15571echo "${ECHO_T}$ac_cv_lib_cExt_drand48" >&6
15572if test $ac_cv_lib_cExt_drand48 = yes; then
15573 LIBS="$LIBS -lcExt"
15574fi
15575
15576 else
15577 RESPROGRAMOBJ="\${top_srcdir}/include/wx/os2/wx.res"
15578 fi
69120ee4
VZ
15579 echo "$as_me:$LINENO: checking for gcc/libc version" >&5
15580echo $ECHO_N "checking for gcc/libc version... $ECHO_C" >&6
a848cd7e
SC
15581if test "${wx_cv_gccversion+set}" = set; then
15582 echo $ECHO_N "(cached) $ECHO_C" >&6
15583else
15584
391a765e
VS
15585 if test "$cross_compiling" = yes; then
15586 wx_cv_gccversion="EMX2"
15587
15588else
15589 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
15590/* confdefs.h. */
15591_ACEOF
15592cat confdefs.h >>conftest.$ac_ext
15593cat >>conftest.$ac_ext <<_ACEOF
15594/* end confdefs.h. */
15595
391a765e 15596 #include <stdio.h>
a848cd7e 15597
391a765e
VS
15598 int main()
15599 {
15600 FILE *f=fopen("conftestval", "w");
15601 if (!f) exit(1);
15602 fprintf(f,
a848cd7e 15603 #if (__GNUC__ < 3)
391a765e
VS
15604 "EMX2"
15605 #elif (__GNUC__==3) && ((__GNUC_MINOR__ < 2) || ((__GNUC_MINOR__==2) && (__GNUC_PATCHLEVEL__<2)))
15606 "EMX3"
15607 #elif (__GNUC__==3) && (__GNUC_MINOR__==2) && (__GNUC_PATCHLEVEL__==2)
15608 "Innotek5"
15609 #else
15610 "Innotek6"
a848cd7e 15611 #endif
391a765e
VS
15612 );
15613 exit(0);
15614 }
a848cd7e 15615
a848cd7e 15616_ACEOF
391a765e
VS
15617rm -f conftest$ac_exeext
15618if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15619 (eval $ac_link) 2>&5
ac1cb8d3
VS
15620 ac_status=$?
15621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
391a765e 15622 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
a848cd7e
SC
15623 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15624 (eval $ac_try) 2>&5
15625 ac_status=$?
15626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15627 (exit $ac_status); }; }; then
391a765e 15628 wx_cv_gccversion=`cat conftestval`
a848cd7e 15629else
391a765e
VS
15630 echo "$as_me: program exited with status $ac_status" >&5
15631echo "$as_me: failed program was:" >&5
a848cd7e
SC
15632sed 's/^/| /' conftest.$ac_ext >&5
15633
391a765e
VS
15634( exit $ac_status )
15635wx_cv_gccversion="EMX2"
a848cd7e 15636fi
391a765e 15637rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e 15638fi
a848cd7e
SC
15639
15640fi
15641echo "$as_me:$LINENO: result: $wx_cv_gccversion" >&5
15642echo "${ECHO_T}$wx_cv_gccversion" >&6
6ba87b06
SN
15643 ac_ext=cc
15644ac_cpp='$CXXCPP $CPPFLAGS'
15645ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15646ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15647ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15648
391a765e 15649 if test "$wx_cv_gccversion" = "EMX2"; then
a848cd7e
SC
15650 LIBS="$LIBS -lstdcpp"
15651 LDFLAGS="$LDFLAGS -Zsysv-signals"
15652 else
391a765e 15653 if test "$wx_cv_gccversion" = "EMX3"; then
ddd14b14 15654 LIBS="$LIBS -lstdcxx -lgcc"
a848cd7e
SC
15655 LDFLAGS="$LDFLAGS -Zsysv-signals"
15656 else
15657 LIBS="$LIBS -lstdc++"
15658 fi
15659 fi
94acd38e
DE
15660 if test "$wxUSE_SHARED" = "yes" -a "$wxUSE_OMF" = "no"; then
15661 { echo "$as_me:$LINENO: WARNING: Building DLLs requires OMF mode, enabled" >&5
15662echo "$as_me: WARNING: Building DLLs requires OMF mode, enabled" >&2;}
15663 wxUSE_OMF=yes
2da0c077 15664 enable_omf=yes
a848cd7e
SC
15665 fi
15666 ;;
15667 *)
15668
95986553 15669 echo "$as_me:$LINENO: checking for strcasecmp() in string.h" >&5
a848cd7e
SC
15670echo $ECHO_N "checking for strcasecmp() in string.h... $ECHO_C" >&6
15671if test "${ac_cv_string_strcasecmp+set}" = set; then
15672 echo $ECHO_N "(cached) $ECHO_C" >&6
15673else
15674
15675 cat >conftest.$ac_ext <<_ACEOF
15676/* confdefs.h. */
15677_ACEOF
15678cat confdefs.h >>conftest.$ac_ext
15679cat >>conftest.$ac_ext <<_ACEOF
15680/* end confdefs.h. */
15681
15682 #include <string.h>
15683
15684int
15685main ()
15686{
15687
15688 strcasecmp("foo", "bar");
15689
15690 ;
15691 return 0;
15692}
15693_ACEOF
15694rm -f conftest.$ac_objext conftest$ac_exeext
15695if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 15696 (eval $ac_link) 2>conftest.er1
a848cd7e 15697 ac_status=$?
ac1cb8d3
VS
15698 grep -v '^ *+' conftest.er1 >conftest.err
15699 rm -f conftest.er1
15700 cat conftest.err >&5
a848cd7e
SC
15701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15702 (exit $ac_status); } &&
c9a66001 15703 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
15704 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15705 (eval $ac_try) 2>&5
15706 ac_status=$?
15707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15708 (exit $ac_status); }; } &&
15709 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
15710 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15711 (eval $ac_try) 2>&5
15712 ac_status=$?
15713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15714 (exit $ac_status); }; }; then
15715 ac_cv_string_strcasecmp=yes
15716else
15717 echo "$as_me: failed program was:" >&5
15718sed 's/^/| /' conftest.$ac_ext >&5
15719
15720ac_cv_string_strcasecmp=no
15721
15722fi
ac1cb8d3
VS
15723rm -f conftest.err conftest.$ac_objext \
15724 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
15725
15726fi
15727echo "$as_me:$LINENO: result: $ac_cv_string_strcasecmp" >&5
15728echo "${ECHO_T}$ac_cv_string_strcasecmp" >&6
15729
15730 if test x"$ac_cv_string_strcasecmp" = "xyes"; then
15731 cat >>confdefs.h <<\_ACEOF
15732#define HAVE_STRCASECMP_IN_STRING_H 1
15733_ACEOF
15734
15735 else
15736 echo "$as_me:$LINENO: checking for strcasecmp() in strings.h" >&5
15737echo $ECHO_N "checking for strcasecmp() in strings.h... $ECHO_C" >&6
15738if test "${ac_cv_strings_strcasecmp+set}" = set; then
15739 echo $ECHO_N "(cached) $ECHO_C" >&6
15740else
15741
15742 cat >conftest.$ac_ext <<_ACEOF
15743/* confdefs.h. */
15744_ACEOF
15745cat confdefs.h >>conftest.$ac_ext
15746cat >>conftest.$ac_ext <<_ACEOF
15747/* end confdefs.h. */
15748
15749 #include <strings.h>
15750
15751int
15752main ()
15753{
15754
15755 strcasecmp("foo", "bar");
15756
15757 ;
15758 return 0;
15759}
15760_ACEOF
15761rm -f conftest.$ac_objext conftest$ac_exeext
15762if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 15763 (eval $ac_link) 2>conftest.er1
a848cd7e 15764 ac_status=$?
ac1cb8d3
VS
15765 grep -v '^ *+' conftest.er1 >conftest.err
15766 rm -f conftest.er1
15767 cat conftest.err >&5
a848cd7e
SC
15768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15769 (exit $ac_status); } &&
c9a66001 15770 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
15771 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15772 (eval $ac_try) 2>&5
15773 ac_status=$?
15774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15775 (exit $ac_status); }; } &&
15776 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
15777 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15778 (eval $ac_try) 2>&5
15779 ac_status=$?
15780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15781 (exit $ac_status); }; }; then
15782 ac_cv_strings_strcasecmp=yes
15783else
15784 echo "$as_me: failed program was:" >&5
15785sed 's/^/| /' conftest.$ac_ext >&5
15786
15787ac_cv_strings_strcasecmp=no
15788
15789fi
ac1cb8d3
VS
15790rm -f conftest.err conftest.$ac_objext \
15791 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
15792
15793fi
15794echo "$as_me:$LINENO: result: $ac_cv_strings_strcasecmp" >&5
15795echo "${ECHO_T}$ac_cv_strings_strcasecmp" >&6
15796
0c3c69fc 15797 if test x"$ac_cv_strings_strcasecmp" = "xyes"; then
a848cd7e
SC
15798 cat >>confdefs.h <<\_ACEOF
15799#define HAVE_STRCASECMP_IN_STRINGS_H 1
15800_ACEOF
15801
15802 else
15803 { { echo "$as_me:$LINENO: error: No case-insensitive string comparison function found." >&5
15804echo "$as_me: error: No case-insensitive string comparison function found." >&2;}
15805 { (exit 1); exit 1; }; }
15806 fi
15807 fi
15808
a848cd7e
SC
15809 ;;
15810esac
15811
15812
5d7b7554
VZ
15813ac_ext=cc
15814ac_cpp='$CXXCPP $CPPFLAGS'
15815ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15816ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15817ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15818echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
15819echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
15820if test -z "$CXXCPP"; then
15821 if test "${ac_cv_prog_CXXCPP+set}" = set; then
15822 echo $ECHO_N "(cached) $ECHO_C" >&6
15823else
15824 # Double quotes because CXXCPP needs to be expanded
15825 for CXXCPP in "$CXX -E" "/lib/cpp"
15826 do
15827 ac_preproc_ok=false
15828for ac_cxx_preproc_warn_flag in '' yes
15829do
15830 # Use a header file that comes with gcc, so configuring glibc
15831 # with a fresh cross-compiler works.
15832 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15833 # <limits.h> exists even on freestanding compilers.
15834 # On the NeXT, cc -E runs the code through the compiler's parser,
15835 # not just through cpp. "Syntax error" is here to catch this case.
15836 cat >conftest.$ac_ext <<_ACEOF
15837/* confdefs.h. */
15838_ACEOF
15839cat confdefs.h >>conftest.$ac_ext
15840cat >>conftest.$ac_ext <<_ACEOF
15841/* end confdefs.h. */
15842#ifdef __STDC__
15843# include <limits.h>
15844#else
15845# include <assert.h>
15846#endif
15847 Syntax error
15848_ACEOF
15849if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15850 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15851 ac_status=$?
15852 grep -v '^ *+' conftest.er1 >conftest.err
15853 rm -f conftest.er1
15854 cat conftest.err >&5
15855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15856 (exit $ac_status); } >/dev/null; then
15857 if test -s conftest.err; then
15858 ac_cpp_err=$ac_cxx_preproc_warn_flag
15859 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
15860 else
15861 ac_cpp_err=
15862 fi
15863else
15864 ac_cpp_err=yes
15865fi
15866if test -z "$ac_cpp_err"; then
15867 :
15868else
15869 echo "$as_me: failed program was:" >&5
15870sed 's/^/| /' conftest.$ac_ext >&5
15871
15872 # Broken: fails on valid input.
15873continue
15874fi
15875rm -f conftest.err conftest.$ac_ext
15876
15877 # OK, works on sane cases. Now check whether non-existent headers
15878 # can be detected and how.
15879 cat >conftest.$ac_ext <<_ACEOF
15880/* confdefs.h. */
15881_ACEOF
15882cat confdefs.h >>conftest.$ac_ext
15883cat >>conftest.$ac_ext <<_ACEOF
15884/* end confdefs.h. */
15885#include <ac_nonexistent.h>
15886_ACEOF
15887if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15888 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15889 ac_status=$?
15890 grep -v '^ *+' conftest.er1 >conftest.err
15891 rm -f conftest.er1
15892 cat conftest.err >&5
15893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15894 (exit $ac_status); } >/dev/null; then
15895 if test -s conftest.err; then
15896 ac_cpp_err=$ac_cxx_preproc_warn_flag
15897 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
15898 else
15899 ac_cpp_err=
15900 fi
15901else
15902 ac_cpp_err=yes
15903fi
15904if test -z "$ac_cpp_err"; then
15905 # Broken: success on invalid input.
15906continue
15907else
15908 echo "$as_me: failed program was:" >&5
15909sed 's/^/| /' conftest.$ac_ext >&5
15910
15911 # Passes both tests.
15912ac_preproc_ok=:
15913break
15914fi
15915rm -f conftest.err conftest.$ac_ext
15916
15917done
15918# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
15919rm -f conftest.err conftest.$ac_ext
15920if $ac_preproc_ok; then
15921 break
15922fi
15923
15924 done
15925 ac_cv_prog_CXXCPP=$CXXCPP
15926
15927fi
15928 CXXCPP=$ac_cv_prog_CXXCPP
15929else
15930 ac_cv_prog_CXXCPP=$CXXCPP
15931fi
15932echo "$as_me:$LINENO: result: $CXXCPP" >&5
15933echo "${ECHO_T}$CXXCPP" >&6
15934ac_preproc_ok=false
15935for ac_cxx_preproc_warn_flag in '' yes
15936do
15937 # Use a header file that comes with gcc, so configuring glibc
15938 # with a fresh cross-compiler works.
15939 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15940 # <limits.h> exists even on freestanding compilers.
15941 # On the NeXT, cc -E runs the code through the compiler's parser,
15942 # not just through cpp. "Syntax error" is here to catch this case.
15943 cat >conftest.$ac_ext <<_ACEOF
15944/* confdefs.h. */
15945_ACEOF
15946cat confdefs.h >>conftest.$ac_ext
15947cat >>conftest.$ac_ext <<_ACEOF
15948/* end confdefs.h. */
15949#ifdef __STDC__
15950# include <limits.h>
15951#else
15952# include <assert.h>
15953#endif
15954 Syntax error
15955_ACEOF
15956if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15957 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15958 ac_status=$?
15959 grep -v '^ *+' conftest.er1 >conftest.err
15960 rm -f conftest.er1
15961 cat conftest.err >&5
15962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15963 (exit $ac_status); } >/dev/null; then
15964 if test -s conftest.err; then
15965 ac_cpp_err=$ac_cxx_preproc_warn_flag
15966 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
15967 else
15968 ac_cpp_err=
15969 fi
15970else
15971 ac_cpp_err=yes
15972fi
15973if test -z "$ac_cpp_err"; then
15974 :
15975else
15976 echo "$as_me: failed program was:" >&5
15977sed 's/^/| /' conftest.$ac_ext >&5
15978
15979 # Broken: fails on valid input.
15980continue
15981fi
15982rm -f conftest.err conftest.$ac_ext
15983
15984 # OK, works on sane cases. Now check whether non-existent headers
15985 # can be detected and how.
15986 cat >conftest.$ac_ext <<_ACEOF
15987/* confdefs.h. */
15988_ACEOF
15989cat confdefs.h >>conftest.$ac_ext
15990cat >>conftest.$ac_ext <<_ACEOF
15991/* end confdefs.h. */
15992#include <ac_nonexistent.h>
15993_ACEOF
15994if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15995 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15996 ac_status=$?
15997 grep -v '^ *+' conftest.er1 >conftest.err
15998 rm -f conftest.er1
15999 cat conftest.err >&5
16000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16001 (exit $ac_status); } >/dev/null; then
16002 if test -s conftest.err; then
16003 ac_cpp_err=$ac_cxx_preproc_warn_flag
16004 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
16005 else
16006 ac_cpp_err=
16007 fi
16008else
16009 ac_cpp_err=yes
16010fi
16011if test -z "$ac_cpp_err"; then
16012 # Broken: success on invalid input.
16013continue
16014else
16015 echo "$as_me: failed program was:" >&5
16016sed 's/^/| /' conftest.$ac_ext >&5
16017
16018 # Passes both tests.
16019ac_preproc_ok=:
16020break
16021fi
16022rm -f conftest.err conftest.$ac_ext
16023
16024done
16025# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
16026rm -f conftest.err conftest.$ac_ext
16027if $ac_preproc_ok; then
16028 :
16029else
16030 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
16031See \`config.log' for more details." >&5
16032echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
16033See \`config.log' for more details." >&2;}
16034 { (exit 1); exit 1; }; }
16035fi
16036
16037ac_ext=cc
16038ac_cpp='$CXXCPP $CPPFLAGS'
16039ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16040ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16041ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16042
16043
a848cd7e
SC
16044echo "$as_me:$LINENO: checking for ANSI C header files" >&5
16045echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
16046if test "${ac_cv_header_stdc+set}" = set; then
16047 echo $ECHO_N "(cached) $ECHO_C" >&6
16048else
16049 cat >conftest.$ac_ext <<_ACEOF
16050/* confdefs.h. */
16051_ACEOF
16052cat confdefs.h >>conftest.$ac_ext
16053cat >>conftest.$ac_ext <<_ACEOF
16054/* end confdefs.h. */
16055#include <stdlib.h>
16056#include <stdarg.h>
16057#include <string.h>
16058#include <float.h>
16059
16060int
16061main ()
16062{
16063
16064 ;
16065 return 0;
16066}
16067_ACEOF
16068rm -f conftest.$ac_objext
16069if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16070 (eval $ac_compile) 2>conftest.er1
a848cd7e 16071 ac_status=$?
ac1cb8d3
VS
16072 grep -v '^ *+' conftest.er1 >conftest.err
16073 rm -f conftest.er1
16074 cat conftest.err >&5
a848cd7e
SC
16075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16076 (exit $ac_status); } &&
c9a66001 16077 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16078 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16079 (eval $ac_try) 2>&5
16080 ac_status=$?
16081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16082 (exit $ac_status); }; } &&
16083 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16084 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16085 (eval $ac_try) 2>&5
16086 ac_status=$?
16087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16088 (exit $ac_status); }; }; then
16089 ac_cv_header_stdc=yes
16090else
16091 echo "$as_me: failed program was:" >&5
16092sed 's/^/| /' conftest.$ac_ext >&5
16093
16094ac_cv_header_stdc=no
16095fi
ac1cb8d3 16096rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16097
16098if test $ac_cv_header_stdc = yes; then
16099 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
16100 cat >conftest.$ac_ext <<_ACEOF
16101/* confdefs.h. */
16102_ACEOF
16103cat confdefs.h >>conftest.$ac_ext
16104cat >>conftest.$ac_ext <<_ACEOF
16105/* end confdefs.h. */
16106#include <string.h>
16107
16108_ACEOF
16109if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16110 $EGREP "memchr" >/dev/null 2>&1; then
16111 :
16112else
16113 ac_cv_header_stdc=no
16114fi
16115rm -f conftest*
16116
16117fi
16118
16119if test $ac_cv_header_stdc = yes; then
16120 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
16121 cat >conftest.$ac_ext <<_ACEOF
16122/* confdefs.h. */
16123_ACEOF
16124cat confdefs.h >>conftest.$ac_ext
16125cat >>conftest.$ac_ext <<_ACEOF
16126/* end confdefs.h. */
16127#include <stdlib.h>
16128
16129_ACEOF
16130if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16131 $EGREP "free" >/dev/null 2>&1; then
16132 :
16133else
16134 ac_cv_header_stdc=no
16135fi
16136rm -f conftest*
16137
16138fi
16139
16140if test $ac_cv_header_stdc = yes; then
16141 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
16142 if test "$cross_compiling" = yes; then
16143 :
16144else
16145 cat >conftest.$ac_ext <<_ACEOF
16146/* confdefs.h. */
16147_ACEOF
16148cat confdefs.h >>conftest.$ac_ext
16149cat >>conftest.$ac_ext <<_ACEOF
16150/* end confdefs.h. */
16151#include <ctype.h>
16152#if ((' ' & 0x0FF) == 0x020)
16153# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
16154# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
16155#else
16156# define ISLOWER(c) \
ac1cb8d3
VS
16157 (('a' <= (c) && (c) <= 'i') \
16158 || ('j' <= (c) && (c) <= 'r') \
16159 || ('s' <= (c) && (c) <= 'z'))
a848cd7e
SC
16160# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
16161#endif
16162
16163#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
16164int
16165main ()
16166{
16167 int i;
16168 for (i = 0; i < 256; i++)
16169 if (XOR (islower (i), ISLOWER (i))
ac1cb8d3 16170 || toupper (i) != TOUPPER (i))
a848cd7e
SC
16171 exit(2);
16172 exit (0);
16173}
16174_ACEOF
16175rm -f conftest$ac_exeext
16176if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16177 (eval $ac_link) 2>&5
16178 ac_status=$?
16179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16180 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16181 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16182 (eval $ac_try) 2>&5
16183 ac_status=$?
16184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16185 (exit $ac_status); }; }; then
16186 :
16187else
16188 echo "$as_me: program exited with status $ac_status" >&5
16189echo "$as_me: failed program was:" >&5
16190sed 's/^/| /' conftest.$ac_ext >&5
16191
16192( exit $ac_status )
16193ac_cv_header_stdc=no
16194fi
ac1cb8d3 16195rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16196fi
16197fi
16198fi
16199echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
16200echo "${ECHO_T}$ac_cv_header_stdc" >&6
16201if test $ac_cv_header_stdc = yes; then
16202
16203cat >>confdefs.h <<\_ACEOF
16204#define STDC_HEADERS 1
16205_ACEOF
16206
16207fi
16208
16209# On IRIX 5.3, sys/types and inttypes.h are conflicting.
16210
16211
16212
16213
16214
16215
16216
16217
16218
16219for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
ac1cb8d3 16220 inttypes.h stdint.h unistd.h
a848cd7e
SC
16221do
16222as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16223echo "$as_me:$LINENO: checking for $ac_header" >&5
16224echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16225if eval "test \"\${$as_ac_Header+set}\" = set"; then
16226 echo $ECHO_N "(cached) $ECHO_C" >&6
16227else
16228 cat >conftest.$ac_ext <<_ACEOF
16229/* confdefs.h. */
16230_ACEOF
16231cat confdefs.h >>conftest.$ac_ext
16232cat >>conftest.$ac_ext <<_ACEOF
16233/* end confdefs.h. */
16234$ac_includes_default
16235
16236#include <$ac_header>
16237_ACEOF
16238rm -f conftest.$ac_objext
16239if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16240 (eval $ac_compile) 2>conftest.er1
a848cd7e 16241 ac_status=$?
ac1cb8d3
VS
16242 grep -v '^ *+' conftest.er1 >conftest.err
16243 rm -f conftest.er1
16244 cat conftest.err >&5
a848cd7e
SC
16245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16246 (exit $ac_status); } &&
c9a66001 16247 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16248 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16249 (eval $ac_try) 2>&5
16250 ac_status=$?
16251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16252 (exit $ac_status); }; } &&
16253 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16254 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16255 (eval $ac_try) 2>&5
16256 ac_status=$?
16257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16258 (exit $ac_status); }; }; then
16259 eval "$as_ac_Header=yes"
16260else
16261 echo "$as_me: failed program was:" >&5
16262sed 's/^/| /' conftest.$ac_ext >&5
16263
16264eval "$as_ac_Header=no"
16265fi
ac1cb8d3 16266rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16267fi
16268echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16269echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16270if test `eval echo '${'$as_ac_Header'}'` = yes; then
16271 cat >>confdefs.h <<_ACEOF
16272#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16273_ACEOF
16274
16275fi
16276
16277done
16278
16279
16280
16281for ac_header in stdlib.h
16282do
16283as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16284if eval "test \"\${$as_ac_Header+set}\" = set"; then
16285 echo "$as_me:$LINENO: checking for $ac_header" >&5
16286echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16287if eval "test \"\${$as_ac_Header+set}\" = set"; then
16288 echo $ECHO_N "(cached) $ECHO_C" >&6
16289fi
16290echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16291echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16292else
16293 # Is the header compilable?
16294echo "$as_me:$LINENO: checking $ac_header usability" >&5
16295echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16296cat >conftest.$ac_ext <<_ACEOF
16297/* confdefs.h. */
16298_ACEOF
16299cat confdefs.h >>conftest.$ac_ext
16300cat >>conftest.$ac_ext <<_ACEOF
16301/* end confdefs.h. */
16302$ac_includes_default
16303#include <$ac_header>
16304_ACEOF
16305rm -f conftest.$ac_objext
16306if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16307 (eval $ac_compile) 2>conftest.er1
a848cd7e 16308 ac_status=$?
ac1cb8d3
VS
16309 grep -v '^ *+' conftest.er1 >conftest.err
16310 rm -f conftest.er1
16311 cat conftest.err >&5
a848cd7e
SC
16312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16313 (exit $ac_status); } &&
c9a66001 16314 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16315 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16316 (eval $ac_try) 2>&5
16317 ac_status=$?
16318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16319 (exit $ac_status); }; } &&
16320 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16321 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16322 (eval $ac_try) 2>&5
16323 ac_status=$?
16324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16325 (exit $ac_status); }; }; then
16326 ac_header_compiler=yes
16327else
16328 echo "$as_me: failed program was:" >&5
16329sed 's/^/| /' conftest.$ac_ext >&5
16330
16331ac_header_compiler=no
16332fi
ac1cb8d3 16333rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16334echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16335echo "${ECHO_T}$ac_header_compiler" >&6
16336
16337# Is the header present?
16338echo "$as_me:$LINENO: checking $ac_header presence" >&5
16339echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16340cat >conftest.$ac_ext <<_ACEOF
16341/* confdefs.h. */
16342_ACEOF
16343cat confdefs.h >>conftest.$ac_ext
16344cat >>conftest.$ac_ext <<_ACEOF
16345/* end confdefs.h. */
16346#include <$ac_header>
16347_ACEOF
16348if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16349 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16350 ac_status=$?
16351 grep -v '^ *+' conftest.er1 >conftest.err
16352 rm -f conftest.er1
16353 cat conftest.err >&5
16354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16355 (exit $ac_status); } >/dev/null; then
16356 if test -s conftest.err; then
5d7b7554
VZ
16357 ac_cpp_err=$ac_cxx_preproc_warn_flag
16358 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
16359 else
16360 ac_cpp_err=
16361 fi
16362else
16363 ac_cpp_err=yes
16364fi
16365if test -z "$ac_cpp_err"; then
16366 ac_header_preproc=yes
16367else
16368 echo "$as_me: failed program was:" >&5
16369sed 's/^/| /' conftest.$ac_ext >&5
16370
16371 ac_header_preproc=no
16372fi
16373rm -f conftest.err conftest.$ac_ext
16374echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16375echo "${ECHO_T}$ac_header_preproc" >&6
16376
16377# So? What about this header?
5d7b7554 16378case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
ac1cb8d3 16379 yes:no: )
a848cd7e
SC
16380 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16381echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
16382 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16383echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16384 ac_header_preproc=yes
a848cd7e 16385 ;;
ac1cb8d3 16386 no:yes:* )
a848cd7e
SC
16387 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16388echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
16389 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16390echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16391 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16392echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16393 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16394echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
16395 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16396echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
16397 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16398echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
16399 (
16400 cat <<\_ASBOX
ac1cb8d3
VS
16401## ----------------------------------------- ##
16402## Report this to wx-dev@lists.wxwidgets.org ##
16403## ----------------------------------------- ##
a848cd7e
SC
16404_ASBOX
16405 ) |
16406 sed "s/^/$as_me: WARNING: /" >&2
16407 ;;
16408esac
16409echo "$as_me:$LINENO: checking for $ac_header" >&5
16410echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16411if eval "test \"\${$as_ac_Header+set}\" = set"; then
16412 echo $ECHO_N "(cached) $ECHO_C" >&6
16413else
ac1cb8d3 16414 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
16415fi
16416echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16417echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16418
16419fi
16420if test `eval echo '${'$as_ac_Header'}'` = yes; then
16421 cat >>confdefs.h <<_ACEOF
16422#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16423_ACEOF
16424
16425fi
16426
16427done
16428
16429
16430for ac_header in malloc.h
16431do
16432as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16433if eval "test \"\${$as_ac_Header+set}\" = set"; then
16434 echo "$as_me:$LINENO: checking for $ac_header" >&5
16435echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16436if eval "test \"\${$as_ac_Header+set}\" = set"; then
16437 echo $ECHO_N "(cached) $ECHO_C" >&6
16438fi
16439echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16440echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16441else
16442 # Is the header compilable?
16443echo "$as_me:$LINENO: checking $ac_header usability" >&5
16444echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16445cat >conftest.$ac_ext <<_ACEOF
16446/* confdefs.h. */
16447_ACEOF
16448cat confdefs.h >>conftest.$ac_ext
16449cat >>conftest.$ac_ext <<_ACEOF
16450/* end confdefs.h. */
16451$ac_includes_default
16452#include <$ac_header>
16453_ACEOF
16454rm -f conftest.$ac_objext
16455if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16456 (eval $ac_compile) 2>conftest.er1
a848cd7e 16457 ac_status=$?
ac1cb8d3
VS
16458 grep -v '^ *+' conftest.er1 >conftest.err
16459 rm -f conftest.er1
16460 cat conftest.err >&5
a848cd7e
SC
16461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16462 (exit $ac_status); } &&
c9a66001 16463 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16464 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16465 (eval $ac_try) 2>&5
16466 ac_status=$?
16467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16468 (exit $ac_status); }; } &&
16469 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16470 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16471 (eval $ac_try) 2>&5
16472 ac_status=$?
16473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16474 (exit $ac_status); }; }; then
16475 ac_header_compiler=yes
16476else
16477 echo "$as_me: failed program was:" >&5
16478sed 's/^/| /' conftest.$ac_ext >&5
16479
16480ac_header_compiler=no
16481fi
ac1cb8d3 16482rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16483echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16484echo "${ECHO_T}$ac_header_compiler" >&6
16485
16486# Is the header present?
16487echo "$as_me:$LINENO: checking $ac_header presence" >&5
16488echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16489cat >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 <$ac_header>
16496_ACEOF
16497if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16498 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16499 ac_status=$?
16500 grep -v '^ *+' conftest.er1 >conftest.err
16501 rm -f conftest.er1
16502 cat conftest.err >&5
16503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16504 (exit $ac_status); } >/dev/null; then
16505 if test -s conftest.err; then
5d7b7554
VZ
16506 ac_cpp_err=$ac_cxx_preproc_warn_flag
16507 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
16508 else
16509 ac_cpp_err=
16510 fi
16511else
16512 ac_cpp_err=yes
16513fi
16514if test -z "$ac_cpp_err"; then
16515 ac_header_preproc=yes
16516else
16517 echo "$as_me: failed program was:" >&5
16518sed 's/^/| /' conftest.$ac_ext >&5
16519
16520 ac_header_preproc=no
16521fi
16522rm -f conftest.err conftest.$ac_ext
16523echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16524echo "${ECHO_T}$ac_header_preproc" >&6
16525
16526# So? What about this header?
5d7b7554 16527case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
ac1cb8d3 16528 yes:no: )
a848cd7e
SC
16529 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16530echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
16531 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16532echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16533 ac_header_preproc=yes
a848cd7e 16534 ;;
ac1cb8d3 16535 no:yes:* )
a848cd7e
SC
16536 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16537echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
16538 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16539echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16540 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16541echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16542 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16543echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
16544 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16545echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
16546 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16547echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
16548 (
16549 cat <<\_ASBOX
ac1cb8d3
VS
16550## ----------------------------------------- ##
16551## Report this to wx-dev@lists.wxwidgets.org ##
16552## ----------------------------------------- ##
a848cd7e
SC
16553_ASBOX
16554 ) |
16555 sed "s/^/$as_me: WARNING: /" >&2
16556 ;;
16557esac
16558echo "$as_me:$LINENO: checking for $ac_header" >&5
16559echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16560if eval "test \"\${$as_ac_Header+set}\" = set"; then
16561 echo $ECHO_N "(cached) $ECHO_C" >&6
16562else
ac1cb8d3 16563 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
16564fi
16565echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16566echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16567
16568fi
16569if test `eval echo '${'$as_ac_Header'}'` = yes; then
16570 cat >>confdefs.h <<_ACEOF
16571#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16572_ACEOF
16573
16574fi
16575
16576done
16577
16578
16579for ac_header in unistd.h
16580do
16581as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16582if eval "test \"\${$as_ac_Header+set}\" = set"; then
16583 echo "$as_me:$LINENO: checking for $ac_header" >&5
16584echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16585if eval "test \"\${$as_ac_Header+set}\" = set"; then
16586 echo $ECHO_N "(cached) $ECHO_C" >&6
16587fi
16588echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16589echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16590else
16591 # Is the header compilable?
16592echo "$as_me:$LINENO: checking $ac_header usability" >&5
16593echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16594cat >conftest.$ac_ext <<_ACEOF
16595/* confdefs.h. */
16596_ACEOF
16597cat confdefs.h >>conftest.$ac_ext
16598cat >>conftest.$ac_ext <<_ACEOF
16599/* end confdefs.h. */
16600$ac_includes_default
16601#include <$ac_header>
16602_ACEOF
16603rm -f conftest.$ac_objext
16604if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16605 (eval $ac_compile) 2>conftest.er1
a848cd7e 16606 ac_status=$?
ac1cb8d3
VS
16607 grep -v '^ *+' conftest.er1 >conftest.err
16608 rm -f conftest.er1
16609 cat conftest.err >&5
a848cd7e
SC
16610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16611 (exit $ac_status); } &&
c9a66001 16612 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16613 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16614 (eval $ac_try) 2>&5
16615 ac_status=$?
16616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16617 (exit $ac_status); }; } &&
16618 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16619 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16620 (eval $ac_try) 2>&5
16621 ac_status=$?
16622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16623 (exit $ac_status); }; }; then
16624 ac_header_compiler=yes
16625else
16626 echo "$as_me: failed program was:" >&5
16627sed 's/^/| /' conftest.$ac_ext >&5
16628
16629ac_header_compiler=no
16630fi
ac1cb8d3 16631rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16632echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16633echo "${ECHO_T}$ac_header_compiler" >&6
16634
16635# Is the header present?
16636echo "$as_me:$LINENO: checking $ac_header presence" >&5
16637echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16638cat >conftest.$ac_ext <<_ACEOF
16639/* confdefs.h. */
16640_ACEOF
16641cat confdefs.h >>conftest.$ac_ext
16642cat >>conftest.$ac_ext <<_ACEOF
16643/* end confdefs.h. */
16644#include <$ac_header>
16645_ACEOF
16646if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16647 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16648 ac_status=$?
16649 grep -v '^ *+' conftest.er1 >conftest.err
16650 rm -f conftest.er1
16651 cat conftest.err >&5
16652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16653 (exit $ac_status); } >/dev/null; then
16654 if test -s conftest.err; then
5d7b7554
VZ
16655 ac_cpp_err=$ac_cxx_preproc_warn_flag
16656 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
16657 else
16658 ac_cpp_err=
16659 fi
16660else
16661 ac_cpp_err=yes
16662fi
16663if test -z "$ac_cpp_err"; then
16664 ac_header_preproc=yes
16665else
16666 echo "$as_me: failed program was:" >&5
16667sed 's/^/| /' conftest.$ac_ext >&5
16668
16669 ac_header_preproc=no
16670fi
16671rm -f conftest.err conftest.$ac_ext
16672echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16673echo "${ECHO_T}$ac_header_preproc" >&6
16674
16675# So? What about this header?
5d7b7554 16676case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
ac1cb8d3 16677 yes:no: )
a848cd7e
SC
16678 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16679echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
16680 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16681echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16682 ac_header_preproc=yes
a848cd7e 16683 ;;
ac1cb8d3 16684 no:yes:* )
a848cd7e
SC
16685 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16686echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
16687 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16688echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16689 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16690echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16691 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16692echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
16693 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16694echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
16695 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16696echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
16697 (
16698 cat <<\_ASBOX
ac1cb8d3
VS
16699## ----------------------------------------- ##
16700## Report this to wx-dev@lists.wxwidgets.org ##
16701## ----------------------------------------- ##
a848cd7e
SC
16702_ASBOX
16703 ) |
16704 sed "s/^/$as_me: WARNING: /" >&2
16705 ;;
16706esac
16707echo "$as_me:$LINENO: checking for $ac_header" >&5
16708echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16709if eval "test \"\${$as_ac_Header+set}\" = set"; then
16710 echo $ECHO_N "(cached) $ECHO_C" >&6
16711else
ac1cb8d3 16712 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
16713fi
16714echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16715echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16716
16717fi
16718if test `eval echo '${'$as_ac_Header'}'` = yes; then
16719 cat >>confdefs.h <<_ACEOF
16720#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16721_ACEOF
16722
16723fi
16724
16725done
16726
16727
16728for ac_header in wchar.h
16729do
16730as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16731if eval "test \"\${$as_ac_Header+set}\" = set"; then
16732 echo "$as_me:$LINENO: checking for $ac_header" >&5
16733echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16734if eval "test \"\${$as_ac_Header+set}\" = set"; then
16735 echo $ECHO_N "(cached) $ECHO_C" >&6
16736fi
16737echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16738echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16739else
16740 # Is the header compilable?
16741echo "$as_me:$LINENO: checking $ac_header usability" >&5
16742echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16743cat >conftest.$ac_ext <<_ACEOF
16744/* confdefs.h. */
16745_ACEOF
16746cat confdefs.h >>conftest.$ac_ext
16747cat >>conftest.$ac_ext <<_ACEOF
16748/* end confdefs.h. */
16749$ac_includes_default
16750#include <$ac_header>
16751_ACEOF
16752rm -f conftest.$ac_objext
16753if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16754 (eval $ac_compile) 2>conftest.er1
a848cd7e 16755 ac_status=$?
ac1cb8d3
VS
16756 grep -v '^ *+' conftest.er1 >conftest.err
16757 rm -f conftest.er1
16758 cat conftest.err >&5
a848cd7e
SC
16759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16760 (exit $ac_status); } &&
c9a66001 16761 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16762 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16763 (eval $ac_try) 2>&5
16764 ac_status=$?
16765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16766 (exit $ac_status); }; } &&
16767 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16768 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16769 (eval $ac_try) 2>&5
16770 ac_status=$?
16771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16772 (exit $ac_status); }; }; then
16773 ac_header_compiler=yes
16774else
16775 echo "$as_me: failed program was:" >&5
16776sed 's/^/| /' conftest.$ac_ext >&5
16777
16778ac_header_compiler=no
16779fi
ac1cb8d3 16780rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16781echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16782echo "${ECHO_T}$ac_header_compiler" >&6
16783
16784# Is the header present?
16785echo "$as_me:$LINENO: checking $ac_header presence" >&5
16786echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16787cat >conftest.$ac_ext <<_ACEOF
16788/* confdefs.h. */
16789_ACEOF
16790cat confdefs.h >>conftest.$ac_ext
16791cat >>conftest.$ac_ext <<_ACEOF
16792/* end confdefs.h. */
16793#include <$ac_header>
16794_ACEOF
16795if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16796 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16797 ac_status=$?
16798 grep -v '^ *+' conftest.er1 >conftest.err
16799 rm -f conftest.er1
16800 cat conftest.err >&5
16801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16802 (exit $ac_status); } >/dev/null; then
16803 if test -s conftest.err; then
5d7b7554
VZ
16804 ac_cpp_err=$ac_cxx_preproc_warn_flag
16805 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
16806 else
16807 ac_cpp_err=
16808 fi
16809else
16810 ac_cpp_err=yes
16811fi
16812if test -z "$ac_cpp_err"; then
16813 ac_header_preproc=yes
16814else
16815 echo "$as_me: failed program was:" >&5
16816sed 's/^/| /' conftest.$ac_ext >&5
16817
16818 ac_header_preproc=no
16819fi
16820rm -f conftest.err conftest.$ac_ext
16821echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16822echo "${ECHO_T}$ac_header_preproc" >&6
16823
16824# So? What about this header?
5d7b7554 16825case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
ac1cb8d3 16826 yes:no: )
a848cd7e
SC
16827 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16828echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
16829 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16830echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16831 ac_header_preproc=yes
a848cd7e 16832 ;;
ac1cb8d3 16833 no:yes:* )
a848cd7e
SC
16834 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16835echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
16836 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16837echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16838 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16839echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16840 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16841echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
16842 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16843echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
16844 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16845echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
16846 (
16847 cat <<\_ASBOX
ac1cb8d3
VS
16848## ----------------------------------------- ##
16849## Report this to wx-dev@lists.wxwidgets.org ##
16850## ----------------------------------------- ##
a848cd7e
SC
16851_ASBOX
16852 ) |
16853 sed "s/^/$as_me: WARNING: /" >&2
16854 ;;
16855esac
16856echo "$as_me:$LINENO: checking for $ac_header" >&5
16857echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16858if eval "test \"\${$as_ac_Header+set}\" = set"; then
16859 echo $ECHO_N "(cached) $ECHO_C" >&6
16860else
ac1cb8d3 16861 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
16862fi
16863echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16864echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16865
16866fi
16867if test `eval echo '${'$as_ac_Header'}'` = yes; then
16868 cat >>confdefs.h <<_ACEOF
16869#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16870_ACEOF
16871
16872fi
16873
16874done
16875
16876
16877if test "$ac_cv_header_wchar_h" != "yes"; then
16878
16879for ac_header in wcstr.h
16880do
16881as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16882if eval "test \"\${$as_ac_Header+set}\" = set"; then
16883 echo "$as_me:$LINENO: checking for $ac_header" >&5
16884echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16885if eval "test \"\${$as_ac_Header+set}\" = set"; then
16886 echo $ECHO_N "(cached) $ECHO_C" >&6
16887fi
16888echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16889echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16890else
16891 # Is the header compilable?
16892echo "$as_me:$LINENO: checking $ac_header usability" >&5
16893echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16894cat >conftest.$ac_ext <<_ACEOF
16895/* confdefs.h. */
16896_ACEOF
16897cat confdefs.h >>conftest.$ac_ext
16898cat >>conftest.$ac_ext <<_ACEOF
16899/* end confdefs.h. */
16900$ac_includes_default
16901#include <$ac_header>
16902_ACEOF
16903rm -f conftest.$ac_objext
16904if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16905 (eval $ac_compile) 2>conftest.er1
a848cd7e 16906 ac_status=$?
ac1cb8d3
VS
16907 grep -v '^ *+' conftest.er1 >conftest.err
16908 rm -f conftest.er1
16909 cat conftest.err >&5
a848cd7e
SC
16910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16911 (exit $ac_status); } &&
c9a66001 16912 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16913 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16914 (eval $ac_try) 2>&5
16915 ac_status=$?
16916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16917 (exit $ac_status); }; } &&
16918 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16919 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16920 (eval $ac_try) 2>&5
16921 ac_status=$?
16922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16923 (exit $ac_status); }; }; then
16924 ac_header_compiler=yes
16925else
16926 echo "$as_me: failed program was:" >&5
16927sed 's/^/| /' conftest.$ac_ext >&5
16928
16929ac_header_compiler=no
16930fi
ac1cb8d3 16931rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16932echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16933echo "${ECHO_T}$ac_header_compiler" >&6
16934
16935# Is the header present?
16936echo "$as_me:$LINENO: checking $ac_header presence" >&5
16937echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16938cat >conftest.$ac_ext <<_ACEOF
16939/* confdefs.h. */
16940_ACEOF
16941cat confdefs.h >>conftest.$ac_ext
16942cat >>conftest.$ac_ext <<_ACEOF
16943/* end confdefs.h. */
16944#include <$ac_header>
16945_ACEOF
16946if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16947 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16948 ac_status=$?
16949 grep -v '^ *+' conftest.er1 >conftest.err
16950 rm -f conftest.er1
16951 cat conftest.err >&5
16952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16953 (exit $ac_status); } >/dev/null; then
16954 if test -s conftest.err; then
5d7b7554
VZ
16955 ac_cpp_err=$ac_cxx_preproc_warn_flag
16956 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
16957 else
16958 ac_cpp_err=
16959 fi
16960else
16961 ac_cpp_err=yes
16962fi
16963if test -z "$ac_cpp_err"; then
16964 ac_header_preproc=yes
16965else
16966 echo "$as_me: failed program was:" >&5
16967sed 's/^/| /' conftest.$ac_ext >&5
16968
16969 ac_header_preproc=no
16970fi
16971rm -f conftest.err conftest.$ac_ext
16972echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16973echo "${ECHO_T}$ac_header_preproc" >&6
16974
16975# So? What about this header?
5d7b7554 16976case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
ac1cb8d3 16977 yes:no: )
a848cd7e
SC
16978 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16979echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
16980 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16981echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16982 ac_header_preproc=yes
a848cd7e 16983 ;;
ac1cb8d3 16984 no:yes:* )
a848cd7e
SC
16985 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16986echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
16987 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16988echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16989 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16990echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16991 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16992echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
16993 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16994echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
16995 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16996echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
16997 (
16998 cat <<\_ASBOX
ac1cb8d3
VS
16999## ----------------------------------------- ##
17000## Report this to wx-dev@lists.wxwidgets.org ##
17001## ----------------------------------------- ##
a848cd7e
SC
17002_ASBOX
17003 ) |
17004 sed "s/^/$as_me: WARNING: /" >&2
17005 ;;
17006esac
17007echo "$as_me:$LINENO: checking for $ac_header" >&5
17008echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17009if eval "test \"\${$as_ac_Header+set}\" = set"; then
17010 echo $ECHO_N "(cached) $ECHO_C" >&6
17011else
ac1cb8d3 17012 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
17013fi
17014echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17015echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17016
17017fi
17018if test `eval echo '${'$as_ac_Header'}'` = yes; then
17019 cat >>confdefs.h <<_ACEOF
17020#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17021_ACEOF
17022
17023fi
17024
17025done
17026
17027fi
17028
17029
17030for ac_header in fnmatch.h
17031do
17032as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17033if eval "test \"\${$as_ac_Header+set}\" = set"; then
17034 echo "$as_me:$LINENO: checking for $ac_header" >&5
17035echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17036if eval "test \"\${$as_ac_Header+set}\" = set"; then
17037 echo $ECHO_N "(cached) $ECHO_C" >&6
17038fi
17039echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17040echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17041else
17042 # Is the header compilable?
17043echo "$as_me:$LINENO: checking $ac_header usability" >&5
17044echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
17045cat >conftest.$ac_ext <<_ACEOF
17046/* confdefs.h. */
17047_ACEOF
17048cat confdefs.h >>conftest.$ac_ext
17049cat >>conftest.$ac_ext <<_ACEOF
17050/* end confdefs.h. */
17051$ac_includes_default
17052#include <$ac_header>
17053_ACEOF
17054rm -f conftest.$ac_objext
17055if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17056 (eval $ac_compile) 2>conftest.er1
a848cd7e 17057 ac_status=$?
ac1cb8d3
VS
17058 grep -v '^ *+' conftest.er1 >conftest.err
17059 rm -f conftest.er1
17060 cat conftest.err >&5
a848cd7e
SC
17061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17062 (exit $ac_status); } &&
c9a66001 17063 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17064 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17065 (eval $ac_try) 2>&5
17066 ac_status=$?
17067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17068 (exit $ac_status); }; } &&
17069 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17070 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17071 (eval $ac_try) 2>&5
17072 ac_status=$?
17073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17074 (exit $ac_status); }; }; then
17075 ac_header_compiler=yes
17076else
17077 echo "$as_me: failed program was:" >&5
17078sed 's/^/| /' conftest.$ac_ext >&5
17079
17080ac_header_compiler=no
17081fi
ac1cb8d3 17082rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17083echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17084echo "${ECHO_T}$ac_header_compiler" >&6
17085
17086# Is the header present?
17087echo "$as_me:$LINENO: checking $ac_header presence" >&5
17088echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
17089cat >conftest.$ac_ext <<_ACEOF
17090/* confdefs.h. */
17091_ACEOF
17092cat confdefs.h >>conftest.$ac_ext
17093cat >>conftest.$ac_ext <<_ACEOF
17094/* end confdefs.h. */
17095#include <$ac_header>
17096_ACEOF
17097if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17098 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17099 ac_status=$?
17100 grep -v '^ *+' conftest.er1 >conftest.err
17101 rm -f conftest.er1
17102 cat conftest.err >&5
17103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17104 (exit $ac_status); } >/dev/null; then
17105 if test -s conftest.err; then
5d7b7554
VZ
17106 ac_cpp_err=$ac_cxx_preproc_warn_flag
17107 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
17108 else
17109 ac_cpp_err=
17110 fi
17111else
17112 ac_cpp_err=yes
17113fi
17114if test -z "$ac_cpp_err"; then
17115 ac_header_preproc=yes
17116else
17117 echo "$as_me: failed program was:" >&5
17118sed 's/^/| /' conftest.$ac_ext >&5
17119
17120 ac_header_preproc=no
17121fi
17122rm -f conftest.err conftest.$ac_ext
17123echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17124echo "${ECHO_T}$ac_header_preproc" >&6
17125
17126# So? What about this header?
5d7b7554 17127case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
ac1cb8d3 17128 yes:no: )
a848cd7e
SC
17129 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17130echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
17131 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17132echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17133 ac_header_preproc=yes
a848cd7e 17134 ;;
ac1cb8d3 17135 no:yes:* )
a848cd7e
SC
17136 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17137echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
17138 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17139echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17140 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17141echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17142 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17143echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
17144 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17145echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
17146 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17147echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
17148 (
17149 cat <<\_ASBOX
ac1cb8d3
VS
17150## ----------------------------------------- ##
17151## Report this to wx-dev@lists.wxwidgets.org ##
17152## ----------------------------------------- ##
a848cd7e
SC
17153_ASBOX
17154 ) |
17155 sed "s/^/$as_me: WARNING: /" >&2
17156 ;;
17157esac
17158echo "$as_me:$LINENO: checking for $ac_header" >&5
17159echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17160if eval "test \"\${$as_ac_Header+set}\" = set"; then
17161 echo $ECHO_N "(cached) $ECHO_C" >&6
17162else
ac1cb8d3 17163 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
17164fi
17165echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17166echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17167
17168fi
17169if test `eval echo '${'$as_ac_Header'}'` = yes; then
17170 cat >>confdefs.h <<_ACEOF
17171#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17172_ACEOF
17173
17174fi
17175
17176done
17177
17178
a848cd7e
SC
17179
17180for ac_header in langinfo.h
17181do
17182as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17183if eval "test \"\${$as_ac_Header+set}\" = set"; then
17184 echo "$as_me:$LINENO: checking for $ac_header" >&5
17185echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17186if eval "test \"\${$as_ac_Header+set}\" = set"; then
17187 echo $ECHO_N "(cached) $ECHO_C" >&6
17188fi
17189echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17190echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17191else
17192 # Is the header compilable?
17193echo "$as_me:$LINENO: checking $ac_header usability" >&5
17194echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
17195cat >conftest.$ac_ext <<_ACEOF
17196/* confdefs.h. */
17197_ACEOF
17198cat confdefs.h >>conftest.$ac_ext
17199cat >>conftest.$ac_ext <<_ACEOF
17200/* end confdefs.h. */
17201$ac_includes_default
17202#include <$ac_header>
17203_ACEOF
17204rm -f conftest.$ac_objext
17205if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17206 (eval $ac_compile) 2>conftest.er1
a848cd7e 17207 ac_status=$?
ac1cb8d3
VS
17208 grep -v '^ *+' conftest.er1 >conftest.err
17209 rm -f conftest.er1
17210 cat conftest.err >&5
a848cd7e
SC
17211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17212 (exit $ac_status); } &&
c9a66001 17213 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17214 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17215 (eval $ac_try) 2>&5
17216 ac_status=$?
17217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17218 (exit $ac_status); }; } &&
17219 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17220 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17221 (eval $ac_try) 2>&5
17222 ac_status=$?
17223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17224 (exit $ac_status); }; }; then
17225 ac_header_compiler=yes
17226else
17227 echo "$as_me: failed program was:" >&5
17228sed 's/^/| /' conftest.$ac_ext >&5
17229
17230ac_header_compiler=no
17231fi
ac1cb8d3 17232rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17233echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17234echo "${ECHO_T}$ac_header_compiler" >&6
17235
17236# Is the header present?
17237echo "$as_me:$LINENO: checking $ac_header presence" >&5
17238echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
17239cat >conftest.$ac_ext <<_ACEOF
17240/* confdefs.h. */
17241_ACEOF
17242cat confdefs.h >>conftest.$ac_ext
17243cat >>conftest.$ac_ext <<_ACEOF
17244/* end confdefs.h. */
17245#include <$ac_header>
17246_ACEOF
17247if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17248 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17249 ac_status=$?
17250 grep -v '^ *+' conftest.er1 >conftest.err
17251 rm -f conftest.er1
17252 cat conftest.err >&5
17253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17254 (exit $ac_status); } >/dev/null; then
17255 if test -s conftest.err; then
5d7b7554
VZ
17256 ac_cpp_err=$ac_cxx_preproc_warn_flag
17257 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
17258 else
17259 ac_cpp_err=
17260 fi
17261else
17262 ac_cpp_err=yes
17263fi
17264if test -z "$ac_cpp_err"; then
17265 ac_header_preproc=yes
17266else
17267 echo "$as_me: failed program was:" >&5
17268sed 's/^/| /' conftest.$ac_ext >&5
17269
17270 ac_header_preproc=no
17271fi
17272rm -f conftest.err conftest.$ac_ext
17273echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17274echo "${ECHO_T}$ac_header_preproc" >&6
17275
17276# So? What about this header?
5d7b7554 17277case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
ac1cb8d3 17278 yes:no: )
a848cd7e
SC
17279 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17280echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
17281 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17282echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17283 ac_header_preproc=yes
a848cd7e 17284 ;;
ac1cb8d3 17285 no:yes:* )
a848cd7e
SC
17286 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17287echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
17288 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17289echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17290 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17291echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17292 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17293echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
17294 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17295echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
17296 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17297echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
17298 (
17299 cat <<\_ASBOX
ac1cb8d3
VS
17300## ----------------------------------------- ##
17301## Report this to wx-dev@lists.wxwidgets.org ##
17302## ----------------------------------------- ##
a848cd7e
SC
17303_ASBOX
17304 ) |
17305 sed "s/^/$as_me: WARNING: /" >&2
17306 ;;
17307esac
17308echo "$as_me:$LINENO: checking for $ac_header" >&5
17309echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17310if eval "test \"\${$as_ac_Header+set}\" = set"; then
17311 echo $ECHO_N "(cached) $ECHO_C" >&6
17312else
ac1cb8d3 17313 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
17314fi
17315echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17316echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17317
17318fi
17319if test `eval echo '${'$as_ac_Header'}'` = yes; then
17320 cat >>confdefs.h <<_ACEOF
17321#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17322_ACEOF
17323
17324fi
17325
17326done
17327
17328
17329case "${host}" in
17330 *-pc-os2_emx | *-pc-os2-emx )
391a765e
VS
17331 if test $ac_cv_header_langinfo_h = "yes" \
17332 -a \( "$wx_cv_gccversion" = "EMX2" \
17333 -o "$wx_cv_gccversion" = "EMX3" \
17334 -o "$wx_cv_gccversion" = "Innotek5" \); then
a848cd7e
SC
17335 LIBS="$LIBS -lintl"
17336 fi
17337 ;;
17338esac
17339
bc023abb
MW
17340if test "$USE_UNIX" = 1 ; then
17341
17342for ac_header in sys/select.h
17343do
17344as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17345if eval "test \"\${$as_ac_Header+set}\" = set"; then
17346 echo "$as_me:$LINENO: checking for $ac_header" >&5
17347echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17348if eval "test \"\${$as_ac_Header+set}\" = set"; then
17349 echo $ECHO_N "(cached) $ECHO_C" >&6
17350fi
17351echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17352echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17353else
17354 # Is the header compilable?
17355echo "$as_me:$LINENO: checking $ac_header usability" >&5
17356echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
17357cat >conftest.$ac_ext <<_ACEOF
17358/* confdefs.h. */
17359_ACEOF
17360cat confdefs.h >>conftest.$ac_ext
17361cat >>conftest.$ac_ext <<_ACEOF
17362/* end confdefs.h. */
17363$ac_includes_default
17364#include <$ac_header>
17365_ACEOF
17366rm -f conftest.$ac_objext
17367if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17368 (eval $ac_compile) 2>conftest.er1
17369 ac_status=$?
17370 grep -v '^ *+' conftest.er1 >conftest.err
17371 rm -f conftest.er1
17372 cat conftest.err >&5
17373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17374 (exit $ac_status); } &&
17375 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
17376 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17377 (eval $ac_try) 2>&5
17378 ac_status=$?
17379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17380 (exit $ac_status); }; } &&
17381 { ac_try='test -s conftest.$ac_objext'
17382 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17383 (eval $ac_try) 2>&5
17384 ac_status=$?
17385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17386 (exit $ac_status); }; }; then
17387 ac_header_compiler=yes
17388else
17389 echo "$as_me: failed program was:" >&5
17390sed 's/^/| /' conftest.$ac_ext >&5
17391
17392ac_header_compiler=no
17393fi
17394rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17395echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17396echo "${ECHO_T}$ac_header_compiler" >&6
17397
17398# Is the header present?
17399echo "$as_me:$LINENO: checking $ac_header presence" >&5
17400echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
17401cat >conftest.$ac_ext <<_ACEOF
17402/* confdefs.h. */
17403_ACEOF
17404cat confdefs.h >>conftest.$ac_ext
17405cat >>conftest.$ac_ext <<_ACEOF
17406/* end confdefs.h. */
17407#include <$ac_header>
17408_ACEOF
17409if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17410 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17411 ac_status=$?
17412 grep -v '^ *+' conftest.er1 >conftest.err
17413 rm -f conftest.er1
17414 cat conftest.err >&5
17415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17416 (exit $ac_status); } >/dev/null; then
17417 if test -s conftest.err; then
17418 ac_cpp_err=$ac_cxx_preproc_warn_flag
17419 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
17420 else
17421 ac_cpp_err=
17422 fi
17423else
17424 ac_cpp_err=yes
17425fi
17426if test -z "$ac_cpp_err"; then
17427 ac_header_preproc=yes
17428else
17429 echo "$as_me: failed program was:" >&5
17430sed 's/^/| /' conftest.$ac_ext >&5
17431
17432 ac_header_preproc=no
17433fi
17434rm -f conftest.err conftest.$ac_ext
17435echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17436echo "${ECHO_T}$ac_header_preproc" >&6
17437
17438# So? What about this header?
17439case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
17440 yes:no: )
17441 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17442echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17443 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17444echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17445 ac_header_preproc=yes
17446 ;;
17447 no:yes:* )
17448 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17449echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17450 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17451echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17452 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17453echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17454 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17455echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17456 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17457echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17458 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17459echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17460 (
17461 cat <<\_ASBOX
17462## ----------------------------------------- ##
17463## Report this to wx-dev@lists.wxwidgets.org ##
17464## ----------------------------------------- ##
17465_ASBOX
17466 ) |
17467 sed "s/^/$as_me: WARNING: /" >&2
17468 ;;
17469esac
17470echo "$as_me:$LINENO: checking for $ac_header" >&5
17471echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17472if eval "test \"\${$as_ac_Header+set}\" = set"; then
17473 echo $ECHO_N "(cached) $ECHO_C" >&6
17474else
17475 eval "$as_ac_Header=\$ac_header_preproc"
17476fi
17477echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17478echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17479
17480fi
17481if test `eval echo '${'$as_ac_Header'}'` = yes; then
17482 cat >>confdefs.h <<_ACEOF
17483#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17484_ACEOF
17485
17486fi
17487
17488done
17489
17490fi
17491
a848cd7e
SC
17492
17493echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
17494echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
17495if test "${ac_cv_c_const+set}" = set; then
17496 echo $ECHO_N "(cached) $ECHO_C" >&6
17497else
17498 cat >conftest.$ac_ext <<_ACEOF
17499/* confdefs.h. */
17500_ACEOF
17501cat confdefs.h >>conftest.$ac_ext
17502cat >>conftest.$ac_ext <<_ACEOF
17503/* end confdefs.h. */
17504
17505int
17506main ()
17507{
17508/* FIXME: Include the comments suggested by Paul. */
17509#ifndef __cplusplus
17510 /* Ultrix mips cc rejects this. */
17511 typedef int charset[2];
17512 const charset x;
17513 /* SunOS 4.1.1 cc rejects this. */
17514 char const *const *ccp;
17515 char **p;
17516 /* NEC SVR4.0.2 mips cc rejects this. */
17517 struct point {int x, y;};
17518 static struct point const zero = {0,0};
17519 /* AIX XL C 1.02.0.0 rejects this.
17520 It does not let you subtract one const X* pointer from another in
17521 an arm of an if-expression whose if-part is not a constant
17522 expression */
17523 const char *g = "string";
17524 ccp = &g + (g ? g-g : 0);
17525 /* HPUX 7.0 cc rejects these. */
17526 ++ccp;
17527 p = (char**) ccp;
17528 ccp = (char const *const *) p;
17529 { /* SCO 3.2v4 cc rejects this. */
17530 char *t;
17531 char const *s = 0 ? (char *) 0 : (char const *) 0;
17532
17533 *t++ = 0;
17534 }
17535 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
17536 int x[] = {25, 17};
17537 const int *foo = &x[0];
17538 ++foo;
17539 }
17540 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
17541 typedef const int *iptr;
17542 iptr p = 0;
17543 ++p;
17544 }
17545 { /* AIX XL C 1.02.0.0 rejects this saying
17546 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
17547 struct s { int j; const int *ap[3]; };
17548 struct s *b; b->j = 5;
17549 }
17550 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
17551 const int foo = 10;
17552 }
17553#endif
17554
17555 ;
17556 return 0;
17557}
17558_ACEOF
17559rm -f conftest.$ac_objext
17560if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17561 (eval $ac_compile) 2>conftest.er1
a848cd7e 17562 ac_status=$?
ac1cb8d3
VS
17563 grep -v '^ *+' conftest.er1 >conftest.err
17564 rm -f conftest.er1
17565 cat conftest.err >&5
a848cd7e
SC
17566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17567 (exit $ac_status); } &&
c9a66001 17568 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17569 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17570 (eval $ac_try) 2>&5
17571 ac_status=$?
17572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17573 (exit $ac_status); }; } &&
17574 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17575 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17576 (eval $ac_try) 2>&5
17577 ac_status=$?
17578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17579 (exit $ac_status); }; }; then
17580 ac_cv_c_const=yes
17581else
17582 echo "$as_me: failed program was:" >&5
17583sed 's/^/| /' conftest.$ac_ext >&5
17584
17585ac_cv_c_const=no
17586fi
ac1cb8d3 17587rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17588fi
17589echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
17590echo "${ECHO_T}$ac_cv_c_const" >&6
17591if test $ac_cv_c_const = no; then
17592
17593cat >>confdefs.h <<\_ACEOF
17594#define const
17595_ACEOF
17596
17597fi
17598
17599echo "$as_me:$LINENO: checking for inline" >&5
17600echo $ECHO_N "checking for inline... $ECHO_C" >&6
17601if test "${ac_cv_c_inline+set}" = set; then
17602 echo $ECHO_N "(cached) $ECHO_C" >&6
17603else
17604 ac_cv_c_inline=no
17605for ac_kw in inline __inline__ __inline; do
17606 cat >conftest.$ac_ext <<_ACEOF
17607/* confdefs.h. */
17608_ACEOF
17609cat confdefs.h >>conftest.$ac_ext
17610cat >>conftest.$ac_ext <<_ACEOF
17611/* end confdefs.h. */
17612#ifndef __cplusplus
17613typedef int foo_t;
17614static $ac_kw foo_t static_foo () {return 0; }
17615$ac_kw foo_t foo () {return 0; }
17616#endif
17617
17618_ACEOF
17619rm -f conftest.$ac_objext
17620if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17621 (eval $ac_compile) 2>conftest.er1
a848cd7e 17622 ac_status=$?
ac1cb8d3
VS
17623 grep -v '^ *+' conftest.er1 >conftest.err
17624 rm -f conftest.er1
17625 cat conftest.err >&5
a848cd7e
SC
17626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17627 (exit $ac_status); } &&
c9a66001 17628 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17629 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17630 (eval $ac_try) 2>&5
17631 ac_status=$?
17632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17633 (exit $ac_status); }; } &&
17634 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17635 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17636 (eval $ac_try) 2>&5
17637 ac_status=$?
17638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17639 (exit $ac_status); }; }; then
17640 ac_cv_c_inline=$ac_kw; break
17641else
17642 echo "$as_me: failed program was:" >&5
17643sed 's/^/| /' conftest.$ac_ext >&5
17644
17645fi
ac1cb8d3 17646rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17647done
17648
17649fi
17650echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
17651echo "${ECHO_T}$ac_cv_c_inline" >&6
ac1cb8d3
VS
17652
17653
a848cd7e
SC
17654case $ac_cv_c_inline in
17655 inline | yes) ;;
ac1cb8d3
VS
17656 *)
17657 case $ac_cv_c_inline in
17658 no) ac_val=;;
17659 *) ac_val=$ac_cv_c_inline;;
17660 esac
17661 cat >>confdefs.h <<_ACEOF
17662#ifndef __cplusplus
17663#define inline $ac_val
17664#endif
de59c161 17665_ACEOF
ac1cb8d3 17666 ;;
a848cd7e
SC
17667esac
17668
17669
17670echo "$as_me:$LINENO: checking for char" >&5
17671echo $ECHO_N "checking for char... $ECHO_C" >&6
17672if test "${ac_cv_type_char+set}" = set; then
17673 echo $ECHO_N "(cached) $ECHO_C" >&6
17674else
17675 cat >conftest.$ac_ext <<_ACEOF
17676/* confdefs.h. */
17677_ACEOF
17678cat confdefs.h >>conftest.$ac_ext
17679cat >>conftest.$ac_ext <<_ACEOF
17680/* end confdefs.h. */
17681$ac_includes_default
17682int
17683main ()
17684{
17685if ((char *) 0)
17686 return 0;
17687if (sizeof (char))
17688 return 0;
17689 ;
17690 return 0;
17691}
17692_ACEOF
17693rm -f conftest.$ac_objext
17694if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17695 (eval $ac_compile) 2>conftest.er1
a848cd7e 17696 ac_status=$?
ac1cb8d3
VS
17697 grep -v '^ *+' conftest.er1 >conftest.err
17698 rm -f conftest.er1
17699 cat conftest.err >&5
a848cd7e
SC
17700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17701 (exit $ac_status); } &&
c9a66001 17702 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17703 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17704 (eval $ac_try) 2>&5
17705 ac_status=$?
17706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17707 (exit $ac_status); }; } &&
17708 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17709 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17710 (eval $ac_try) 2>&5
17711 ac_status=$?
17712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17713 (exit $ac_status); }; }; then
17714 ac_cv_type_char=yes
17715else
17716 echo "$as_me: failed program was:" >&5
17717sed 's/^/| /' conftest.$ac_ext >&5
17718
17719ac_cv_type_char=no
17720fi
ac1cb8d3 17721rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17722fi
17723echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
17724echo "${ECHO_T}$ac_cv_type_char" >&6
17725
17726echo "$as_me:$LINENO: checking size of char" >&5
17727echo $ECHO_N "checking size of char... $ECHO_C" >&6
17728if test "${ac_cv_sizeof_char+set}" = set; then
17729 echo $ECHO_N "(cached) $ECHO_C" >&6
17730else
17731 if test "$ac_cv_type_char" = yes; then
17732 # The cast to unsigned long works around a bug in the HP C Compiler
17733 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
17734 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
17735 # This bug is HP SR number 8606223364.
17736 if test "$cross_compiling" = yes; then
17737 # Depending upon the size, compute the lo and hi bounds.
17738cat >conftest.$ac_ext <<_ACEOF
17739/* confdefs.h. */
17740_ACEOF
17741cat confdefs.h >>conftest.$ac_ext
17742cat >>conftest.$ac_ext <<_ACEOF
17743/* end confdefs.h. */
17744$ac_includes_default
17745int
17746main ()
17747{
17748static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)];
17749test_array [0] = 0
17750
17751 ;
17752 return 0;
17753}
17754_ACEOF
17755rm -f conftest.$ac_objext
17756if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17757 (eval $ac_compile) 2>conftest.er1
a848cd7e 17758 ac_status=$?
ac1cb8d3
VS
17759 grep -v '^ *+' conftest.er1 >conftest.err
17760 rm -f conftest.er1
17761 cat conftest.err >&5
a848cd7e
SC
17762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17763 (exit $ac_status); } &&
c9a66001 17764 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17765 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17766 (eval $ac_try) 2>&5
17767 ac_status=$?
17768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17769 (exit $ac_status); }; } &&
17770 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17771 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17772 (eval $ac_try) 2>&5
17773 ac_status=$?
17774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17775 (exit $ac_status); }; }; then
17776 ac_lo=0 ac_mid=0
17777 while :; do
17778 cat >conftest.$ac_ext <<_ACEOF
17779/* confdefs.h. */
17780_ACEOF
17781cat confdefs.h >>conftest.$ac_ext
17782cat >>conftest.$ac_ext <<_ACEOF
17783/* end confdefs.h. */
17784$ac_includes_default
17785int
17786main ()
17787{
17788static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
17789test_array [0] = 0
17790
17791 ;
17792 return 0;
17793}
17794_ACEOF
17795rm -f conftest.$ac_objext
17796if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17797 (eval $ac_compile) 2>conftest.er1
a848cd7e 17798 ac_status=$?
ac1cb8d3
VS
17799 grep -v '^ *+' conftest.er1 >conftest.err
17800 rm -f conftest.er1
17801 cat conftest.err >&5
a848cd7e
SC
17802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17803 (exit $ac_status); } &&
c9a66001 17804 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17805 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17806 (eval $ac_try) 2>&5
17807 ac_status=$?
17808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17809 (exit $ac_status); }; } &&
17810 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17811 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17812 (eval $ac_try) 2>&5
17813 ac_status=$?
17814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17815 (exit $ac_status); }; }; then
17816 ac_hi=$ac_mid; break
17817else
17818 echo "$as_me: failed program was:" >&5
17819sed 's/^/| /' conftest.$ac_ext >&5
17820
17821ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
17822 if test $ac_lo -le $ac_mid; then
17823 ac_lo= ac_hi=
17824 break
17825 fi
17826 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 17827fi
ac1cb8d3 17828rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17829 done
17830else
17831 echo "$as_me: failed program was:" >&5
17832sed 's/^/| /' conftest.$ac_ext >&5
17833
17834cat >conftest.$ac_ext <<_ACEOF
17835/* confdefs.h. */
17836_ACEOF
17837cat confdefs.h >>conftest.$ac_ext
17838cat >>conftest.$ac_ext <<_ACEOF
17839/* end confdefs.h. */
17840$ac_includes_default
17841int
17842main ()
17843{
17844static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)];
17845test_array [0] = 0
17846
17847 ;
17848 return 0;
17849}
17850_ACEOF
17851rm -f conftest.$ac_objext
17852if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17853 (eval $ac_compile) 2>conftest.er1
a848cd7e 17854 ac_status=$?
ac1cb8d3
VS
17855 grep -v '^ *+' conftest.er1 >conftest.err
17856 rm -f conftest.er1
17857 cat conftest.err >&5
a848cd7e
SC
17858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17859 (exit $ac_status); } &&
c9a66001 17860 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17861 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17862 (eval $ac_try) 2>&5
17863 ac_status=$?
17864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17865 (exit $ac_status); }; } &&
17866 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17867 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17868 (eval $ac_try) 2>&5
17869 ac_status=$?
17870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17871 (exit $ac_status); }; }; then
17872 ac_hi=-1 ac_mid=-1
17873 while :; do
17874 cat >conftest.$ac_ext <<_ACEOF
17875/* confdefs.h. */
17876_ACEOF
17877cat confdefs.h >>conftest.$ac_ext
17878cat >>conftest.$ac_ext <<_ACEOF
17879/* end confdefs.h. */
17880$ac_includes_default
17881int
17882main ()
17883{
17884static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)];
17885test_array [0] = 0
17886
17887 ;
17888 return 0;
17889}
17890_ACEOF
17891rm -f conftest.$ac_objext
17892if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17893 (eval $ac_compile) 2>conftest.er1
a848cd7e 17894 ac_status=$?
ac1cb8d3
VS
17895 grep -v '^ *+' conftest.er1 >conftest.err
17896 rm -f conftest.er1
17897 cat conftest.err >&5
a848cd7e
SC
17898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17899 (exit $ac_status); } &&
c9a66001 17900 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17901 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17902 (eval $ac_try) 2>&5
17903 ac_status=$?
17904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17905 (exit $ac_status); }; } &&
17906 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17907 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17908 (eval $ac_try) 2>&5
17909 ac_status=$?
17910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17911 (exit $ac_status); }; }; then
17912 ac_lo=$ac_mid; break
17913else
17914 echo "$as_me: failed program was:" >&5
17915sed 's/^/| /' conftest.$ac_ext >&5
17916
17917ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
17918 if test $ac_mid -le $ac_hi; then
17919 ac_lo= ac_hi=
17920 break
17921 fi
17922 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 17923fi
ac1cb8d3 17924rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17925 done
17926else
17927 echo "$as_me: failed program was:" >&5
17928sed 's/^/| /' conftest.$ac_ext >&5
17929
17930ac_lo= ac_hi=
17931fi
ac1cb8d3 17932rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 17933fi
ac1cb8d3 17934rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17935# Binary search between lo and hi bounds.
17936while test "x$ac_lo" != "x$ac_hi"; do
17937 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
17938 cat >conftest.$ac_ext <<_ACEOF
17939/* confdefs.h. */
17940_ACEOF
17941cat confdefs.h >>conftest.$ac_ext
17942cat >>conftest.$ac_ext <<_ACEOF
17943/* end confdefs.h. */
17944$ac_includes_default
17945int
17946main ()
17947{
17948static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
17949test_array [0] = 0
17950
17951 ;
17952 return 0;
17953}
17954_ACEOF
17955rm -f conftest.$ac_objext
17956if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17957 (eval $ac_compile) 2>conftest.er1
a848cd7e 17958 ac_status=$?
ac1cb8d3
VS
17959 grep -v '^ *+' conftest.er1 >conftest.err
17960 rm -f conftest.er1
17961 cat conftest.err >&5
a848cd7e
SC
17962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17963 (exit $ac_status); } &&
c9a66001 17964 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17965 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17966 (eval $ac_try) 2>&5
17967 ac_status=$?
17968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17969 (exit $ac_status); }; } &&
17970 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17971 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17972 (eval $ac_try) 2>&5
17973 ac_status=$?
17974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17975 (exit $ac_status); }; }; then
17976 ac_hi=$ac_mid
17977else
17978 echo "$as_me: failed program was:" >&5
17979sed 's/^/| /' conftest.$ac_ext >&5
17980
17981ac_lo=`expr '(' $ac_mid ')' + 1`
17982fi
ac1cb8d3 17983rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17984done
17985case $ac_lo in
17986?*) ac_cv_sizeof_char=$ac_lo;;
17987'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
17988See \`config.log' for more details." >&5
17989echo "$as_me: error: cannot compute sizeof (char), 77
17990See \`config.log' for more details." >&2;}
17991 { (exit 1); exit 1; }; } ;;
17992esac
17993else
17994 if test "$cross_compiling" = yes; then
c9a66001
VZ
17995 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
17996echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
a848cd7e
SC
17997 { (exit 1); exit 1; }; }
17998else
17999 cat >conftest.$ac_ext <<_ACEOF
18000/* confdefs.h. */
18001_ACEOF
18002cat confdefs.h >>conftest.$ac_ext
18003cat >>conftest.$ac_ext <<_ACEOF
18004/* end confdefs.h. */
18005$ac_includes_default
18006long longval () { return (long) (sizeof (char)); }
18007unsigned long ulongval () { return (long) (sizeof (char)); }
18008#include <stdio.h>
18009#include <stdlib.h>
18010int
18011main ()
18012{
18013
18014 FILE *f = fopen ("conftest.val", "w");
18015 if (! f)
18016 exit (1);
18017 if (((long) (sizeof (char))) < 0)
18018 {
18019 long i = longval ();
18020 if (i != ((long) (sizeof (char))))
18021 exit (1);
18022 fprintf (f, "%ld\n", i);
18023 }
18024 else
18025 {
18026 unsigned long i = ulongval ();
18027 if (i != ((long) (sizeof (char))))
18028 exit (1);
18029 fprintf (f, "%lu\n", i);
18030 }
18031 exit (ferror (f) || fclose (f) != 0);
18032
18033 ;
18034 return 0;
18035}
18036_ACEOF
18037rm -f conftest$ac_exeext
18038if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18039 (eval $ac_link) 2>&5
18040 ac_status=$?
18041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18042 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18043 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18044 (eval $ac_try) 2>&5
18045 ac_status=$?
18046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18047 (exit $ac_status); }; }; then
18048 ac_cv_sizeof_char=`cat conftest.val`
18049else
18050 echo "$as_me: program exited with status $ac_status" >&5
18051echo "$as_me: failed program was:" >&5
18052sed 's/^/| /' conftest.$ac_ext >&5
18053
18054( exit $ac_status )
18055{ { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
18056See \`config.log' for more details." >&5
18057echo "$as_me: error: cannot compute sizeof (char), 77
18058See \`config.log' for more details." >&2;}
18059 { (exit 1); exit 1; }; }
18060fi
ac1cb8d3 18061rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18062fi
18063fi
18064rm -f conftest.val
18065else
18066 ac_cv_sizeof_char=0
18067fi
18068fi
18069echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
18070echo "${ECHO_T}$ac_cv_sizeof_char" >&6
18071cat >>confdefs.h <<_ACEOF
18072#define SIZEOF_CHAR $ac_cv_sizeof_char
18073_ACEOF
18074
18075
18076echo "$as_me:$LINENO: checking for short" >&5
18077echo $ECHO_N "checking for short... $ECHO_C" >&6
18078if test "${ac_cv_type_short+set}" = set; then
18079 echo $ECHO_N "(cached) $ECHO_C" >&6
18080else
18081 cat >conftest.$ac_ext <<_ACEOF
18082/* confdefs.h. */
18083_ACEOF
18084cat confdefs.h >>conftest.$ac_ext
18085cat >>conftest.$ac_ext <<_ACEOF
18086/* end confdefs.h. */
18087$ac_includes_default
18088int
18089main ()
18090{
18091if ((short *) 0)
18092 return 0;
18093if (sizeof (short))
18094 return 0;
18095 ;
18096 return 0;
18097}
18098_ACEOF
18099rm -f conftest.$ac_objext
18100if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18101 (eval $ac_compile) 2>conftest.er1
a848cd7e 18102 ac_status=$?
ac1cb8d3
VS
18103 grep -v '^ *+' conftest.er1 >conftest.err
18104 rm -f conftest.er1
18105 cat conftest.err >&5
a848cd7e
SC
18106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18107 (exit $ac_status); } &&
c9a66001 18108 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18109 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18110 (eval $ac_try) 2>&5
18111 ac_status=$?
18112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18113 (exit $ac_status); }; } &&
18114 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18115 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18116 (eval $ac_try) 2>&5
18117 ac_status=$?
18118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18119 (exit $ac_status); }; }; then
18120 ac_cv_type_short=yes
18121else
18122 echo "$as_me: failed program was:" >&5
18123sed 's/^/| /' conftest.$ac_ext >&5
18124
18125ac_cv_type_short=no
18126fi
ac1cb8d3 18127rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18128fi
18129echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
18130echo "${ECHO_T}$ac_cv_type_short" >&6
18131
18132echo "$as_me:$LINENO: checking size of short" >&5
18133echo $ECHO_N "checking size of short... $ECHO_C" >&6
18134if test "${ac_cv_sizeof_short+set}" = set; then
18135 echo $ECHO_N "(cached) $ECHO_C" >&6
18136else
18137 if test "$ac_cv_type_short" = yes; then
18138 # The cast to unsigned long works around a bug in the HP C Compiler
18139 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
18140 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
18141 # This bug is HP SR number 8606223364.
18142 if test "$cross_compiling" = yes; then
18143 # Depending upon the size, compute the lo and hi bounds.
18144cat >conftest.$ac_ext <<_ACEOF
18145/* confdefs.h. */
18146_ACEOF
18147cat confdefs.h >>conftest.$ac_ext
18148cat >>conftest.$ac_ext <<_ACEOF
18149/* end confdefs.h. */
18150$ac_includes_default
18151int
18152main ()
18153{
18154static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
18155test_array [0] = 0
18156
18157 ;
18158 return 0;
18159}
18160_ACEOF
18161rm -f conftest.$ac_objext
18162if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18163 (eval $ac_compile) 2>conftest.er1
a848cd7e 18164 ac_status=$?
ac1cb8d3
VS
18165 grep -v '^ *+' conftest.er1 >conftest.err
18166 rm -f conftest.er1
18167 cat conftest.err >&5
a848cd7e
SC
18168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18169 (exit $ac_status); } &&
c9a66001 18170 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18171 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18172 (eval $ac_try) 2>&5
18173 ac_status=$?
18174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18175 (exit $ac_status); }; } &&
18176 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18177 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18178 (eval $ac_try) 2>&5
18179 ac_status=$?
18180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18181 (exit $ac_status); }; }; then
18182 ac_lo=0 ac_mid=0
18183 while :; do
18184 cat >conftest.$ac_ext <<_ACEOF
18185/* confdefs.h. */
18186_ACEOF
18187cat confdefs.h >>conftest.$ac_ext
18188cat >>conftest.$ac_ext <<_ACEOF
18189/* end confdefs.h. */
18190$ac_includes_default
18191int
18192main ()
18193{
18194static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
18195test_array [0] = 0
18196
18197 ;
18198 return 0;
18199}
18200_ACEOF
18201rm -f conftest.$ac_objext
18202if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18203 (eval $ac_compile) 2>conftest.er1
a848cd7e 18204 ac_status=$?
ac1cb8d3
VS
18205 grep -v '^ *+' conftest.er1 >conftest.err
18206 rm -f conftest.er1
18207 cat conftest.err >&5
a848cd7e
SC
18208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18209 (exit $ac_status); } &&
c9a66001 18210 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18211 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18212 (eval $ac_try) 2>&5
18213 ac_status=$?
18214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18215 (exit $ac_status); }; } &&
18216 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18217 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18218 (eval $ac_try) 2>&5
18219 ac_status=$?
18220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18221 (exit $ac_status); }; }; then
18222 ac_hi=$ac_mid; break
18223else
18224 echo "$as_me: failed program was:" >&5
18225sed 's/^/| /' conftest.$ac_ext >&5
18226
18227ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
18228 if test $ac_lo -le $ac_mid; then
18229 ac_lo= ac_hi=
18230 break
18231 fi
18232 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 18233fi
ac1cb8d3 18234rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18235 done
18236else
18237 echo "$as_me: failed program was:" >&5
18238sed 's/^/| /' conftest.$ac_ext >&5
18239
18240cat >conftest.$ac_ext <<_ACEOF
18241/* confdefs.h. */
18242_ACEOF
18243cat confdefs.h >>conftest.$ac_ext
18244cat >>conftest.$ac_ext <<_ACEOF
18245/* end confdefs.h. */
18246$ac_includes_default
18247int
18248main ()
18249{
18250static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
18251test_array [0] = 0
18252
18253 ;
18254 return 0;
18255}
18256_ACEOF
18257rm -f conftest.$ac_objext
18258if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18259 (eval $ac_compile) 2>conftest.er1
a848cd7e 18260 ac_status=$?
ac1cb8d3
VS
18261 grep -v '^ *+' conftest.er1 >conftest.err
18262 rm -f conftest.er1
18263 cat conftest.err >&5
a848cd7e
SC
18264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18265 (exit $ac_status); } &&
c9a66001 18266 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18267 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18268 (eval $ac_try) 2>&5
18269 ac_status=$?
18270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18271 (exit $ac_status); }; } &&
18272 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18273 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18274 (eval $ac_try) 2>&5
18275 ac_status=$?
18276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18277 (exit $ac_status); }; }; then
18278 ac_hi=-1 ac_mid=-1
18279 while :; do
18280 cat >conftest.$ac_ext <<_ACEOF
18281/* confdefs.h. */
18282_ACEOF
18283cat confdefs.h >>conftest.$ac_ext
18284cat >>conftest.$ac_ext <<_ACEOF
18285/* end confdefs.h. */
18286$ac_includes_default
18287int
18288main ()
18289{
18290static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
18291test_array [0] = 0
18292
18293 ;
18294 return 0;
18295}
18296_ACEOF
18297rm -f conftest.$ac_objext
18298if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18299 (eval $ac_compile) 2>conftest.er1
a848cd7e 18300 ac_status=$?
ac1cb8d3
VS
18301 grep -v '^ *+' conftest.er1 >conftest.err
18302 rm -f conftest.er1
18303 cat conftest.err >&5
a848cd7e
SC
18304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18305 (exit $ac_status); } &&
c9a66001 18306 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18307 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18308 (eval $ac_try) 2>&5
18309 ac_status=$?
18310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18311 (exit $ac_status); }; } &&
18312 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18313 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18314 (eval $ac_try) 2>&5
18315 ac_status=$?
18316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18317 (exit $ac_status); }; }; then
18318 ac_lo=$ac_mid; break
18319else
18320 echo "$as_me: failed program was:" >&5
18321sed 's/^/| /' conftest.$ac_ext >&5
18322
18323ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
18324 if test $ac_mid -le $ac_hi; then
18325 ac_lo= ac_hi=
18326 break
18327 fi
18328 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 18329fi
ac1cb8d3 18330rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18331 done
18332else
18333 echo "$as_me: failed program was:" >&5
18334sed 's/^/| /' conftest.$ac_ext >&5
18335
18336ac_lo= ac_hi=
18337fi
ac1cb8d3 18338rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 18339fi
ac1cb8d3 18340rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18341# Binary search between lo and hi bounds.
18342while test "x$ac_lo" != "x$ac_hi"; do
18343 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
18344 cat >conftest.$ac_ext <<_ACEOF
18345/* confdefs.h. */
18346_ACEOF
18347cat confdefs.h >>conftest.$ac_ext
18348cat >>conftest.$ac_ext <<_ACEOF
18349/* end confdefs.h. */
18350$ac_includes_default
18351int
18352main ()
18353{
18354static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
18355test_array [0] = 0
18356
18357 ;
18358 return 0;
18359}
18360_ACEOF
18361rm -f conftest.$ac_objext
18362if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18363 (eval $ac_compile) 2>conftest.er1
a848cd7e 18364 ac_status=$?
ac1cb8d3
VS
18365 grep -v '^ *+' conftest.er1 >conftest.err
18366 rm -f conftest.er1
18367 cat conftest.err >&5
a848cd7e
SC
18368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18369 (exit $ac_status); } &&
c9a66001 18370 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18371 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18372 (eval $ac_try) 2>&5
18373 ac_status=$?
18374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18375 (exit $ac_status); }; } &&
18376 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18377 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18378 (eval $ac_try) 2>&5
18379 ac_status=$?
18380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18381 (exit $ac_status); }; }; then
18382 ac_hi=$ac_mid
18383else
18384 echo "$as_me: failed program was:" >&5
18385sed 's/^/| /' conftest.$ac_ext >&5
18386
18387ac_lo=`expr '(' $ac_mid ')' + 1`
18388fi
ac1cb8d3 18389rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18390done
18391case $ac_lo in
18392?*) ac_cv_sizeof_short=$ac_lo;;
18393'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
18394See \`config.log' for more details." >&5
18395echo "$as_me: error: cannot compute sizeof (short), 77
18396See \`config.log' for more details." >&2;}
18397 { (exit 1); exit 1; }; } ;;
18398esac
18399else
18400 if test "$cross_compiling" = yes; then
c9a66001
VZ
18401 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
18402echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
a848cd7e
SC
18403 { (exit 1); exit 1; }; }
18404else
18405 cat >conftest.$ac_ext <<_ACEOF
18406/* confdefs.h. */
18407_ACEOF
18408cat confdefs.h >>conftest.$ac_ext
18409cat >>conftest.$ac_ext <<_ACEOF
18410/* end confdefs.h. */
18411$ac_includes_default
18412long longval () { return (long) (sizeof (short)); }
18413unsigned long ulongval () { return (long) (sizeof (short)); }
18414#include <stdio.h>
18415#include <stdlib.h>
18416int
18417main ()
18418{
18419
18420 FILE *f = fopen ("conftest.val", "w");
18421 if (! f)
18422 exit (1);
18423 if (((long) (sizeof (short))) < 0)
18424 {
18425 long i = longval ();
18426 if (i != ((long) (sizeof (short))))
18427 exit (1);
18428 fprintf (f, "%ld\n", i);
18429 }
18430 else
18431 {
18432 unsigned long i = ulongval ();
18433 if (i != ((long) (sizeof (short))))
18434 exit (1);
18435 fprintf (f, "%lu\n", i);
18436 }
18437 exit (ferror (f) || fclose (f) != 0);
18438
18439 ;
18440 return 0;
18441}
18442_ACEOF
18443rm -f conftest$ac_exeext
18444if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18445 (eval $ac_link) 2>&5
18446 ac_status=$?
18447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18448 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18449 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18450 (eval $ac_try) 2>&5
18451 ac_status=$?
18452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18453 (exit $ac_status); }; }; then
18454 ac_cv_sizeof_short=`cat conftest.val`
18455else
18456 echo "$as_me: program exited with status $ac_status" >&5
18457echo "$as_me: failed program was:" >&5
18458sed 's/^/| /' conftest.$ac_ext >&5
18459
18460( exit $ac_status )
18461{ { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
18462See \`config.log' for more details." >&5
18463echo "$as_me: error: cannot compute sizeof (short), 77
18464See \`config.log' for more details." >&2;}
18465 { (exit 1); exit 1; }; }
18466fi
ac1cb8d3 18467rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18468fi
18469fi
18470rm -f conftest.val
18471else
18472 ac_cv_sizeof_short=0
18473fi
18474fi
18475echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
18476echo "${ECHO_T}$ac_cv_sizeof_short" >&6
18477cat >>confdefs.h <<_ACEOF
18478#define SIZEOF_SHORT $ac_cv_sizeof_short
18479_ACEOF
18480
18481
18482echo "$as_me:$LINENO: checking for void *" >&5
18483echo $ECHO_N "checking for void *... $ECHO_C" >&6
18484if test "${ac_cv_type_void_p+set}" = set; then
18485 echo $ECHO_N "(cached) $ECHO_C" >&6
18486else
18487 cat >conftest.$ac_ext <<_ACEOF
18488/* confdefs.h. */
18489_ACEOF
18490cat confdefs.h >>conftest.$ac_ext
18491cat >>conftest.$ac_ext <<_ACEOF
18492/* end confdefs.h. */
18493$ac_includes_default
18494int
18495main ()
18496{
18497if ((void * *) 0)
18498 return 0;
18499if (sizeof (void *))
18500 return 0;
18501 ;
18502 return 0;
18503}
18504_ACEOF
18505rm -f conftest.$ac_objext
18506if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18507 (eval $ac_compile) 2>conftest.er1
a848cd7e 18508 ac_status=$?
ac1cb8d3
VS
18509 grep -v '^ *+' conftest.er1 >conftest.err
18510 rm -f conftest.er1
18511 cat conftest.err >&5
a848cd7e
SC
18512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18513 (exit $ac_status); } &&
c9a66001 18514 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18515 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18516 (eval $ac_try) 2>&5
18517 ac_status=$?
18518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18519 (exit $ac_status); }; } &&
18520 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18521 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18522 (eval $ac_try) 2>&5
18523 ac_status=$?
18524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18525 (exit $ac_status); }; }; then
18526 ac_cv_type_void_p=yes
18527else
18528 echo "$as_me: failed program was:" >&5
18529sed 's/^/| /' conftest.$ac_ext >&5
18530
18531ac_cv_type_void_p=no
18532fi
ac1cb8d3 18533rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18534fi
18535echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
18536echo "${ECHO_T}$ac_cv_type_void_p" >&6
18537
18538echo "$as_me:$LINENO: checking size of void *" >&5
18539echo $ECHO_N "checking size of void *... $ECHO_C" >&6
18540if test "${ac_cv_sizeof_void_p+set}" = set; then
18541 echo $ECHO_N "(cached) $ECHO_C" >&6
18542else
18543 if test "$ac_cv_type_void_p" = yes; then
18544 # The cast to unsigned long works around a bug in the HP C Compiler
18545 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
18546 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
18547 # This bug is HP SR number 8606223364.
18548 if test "$cross_compiling" = yes; then
18549 # Depending upon the size, compute the lo and hi bounds.
18550cat >conftest.$ac_ext <<_ACEOF
18551/* confdefs.h. */
18552_ACEOF
18553cat confdefs.h >>conftest.$ac_ext
18554cat >>conftest.$ac_ext <<_ACEOF
18555/* end confdefs.h. */
18556$ac_includes_default
18557int
18558main ()
18559{
18560static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)];
18561test_array [0] = 0
18562
18563 ;
18564 return 0;
18565}
18566_ACEOF
18567rm -f conftest.$ac_objext
18568if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18569 (eval $ac_compile) 2>conftest.er1
a848cd7e 18570 ac_status=$?
ac1cb8d3
VS
18571 grep -v '^ *+' conftest.er1 >conftest.err
18572 rm -f conftest.er1
18573 cat conftest.err >&5
a848cd7e
SC
18574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18575 (exit $ac_status); } &&
c9a66001 18576 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18577 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18578 (eval $ac_try) 2>&5
18579 ac_status=$?
18580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18581 (exit $ac_status); }; } &&
18582 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18583 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18584 (eval $ac_try) 2>&5
18585 ac_status=$?
18586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18587 (exit $ac_status); }; }; then
18588 ac_lo=0 ac_mid=0
18589 while :; do
18590 cat >conftest.$ac_ext <<_ACEOF
18591/* confdefs.h. */
18592_ACEOF
18593cat confdefs.h >>conftest.$ac_ext
18594cat >>conftest.$ac_ext <<_ACEOF
18595/* end confdefs.h. */
18596$ac_includes_default
18597int
18598main ()
18599{
18600static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
18601test_array [0] = 0
18602
18603 ;
18604 return 0;
18605}
18606_ACEOF
18607rm -f conftest.$ac_objext
18608if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18609 (eval $ac_compile) 2>conftest.er1
a848cd7e 18610 ac_status=$?
ac1cb8d3
VS
18611 grep -v '^ *+' conftest.er1 >conftest.err
18612 rm -f conftest.er1
18613 cat conftest.err >&5
a848cd7e
SC
18614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18615 (exit $ac_status); } &&
c9a66001 18616 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18617 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18618 (eval $ac_try) 2>&5
18619 ac_status=$?
18620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18621 (exit $ac_status); }; } &&
18622 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18623 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18624 (eval $ac_try) 2>&5
18625 ac_status=$?
18626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18627 (exit $ac_status); }; }; then
18628 ac_hi=$ac_mid; break
18629else
18630 echo "$as_me: failed program was:" >&5
18631sed 's/^/| /' conftest.$ac_ext >&5
18632
18633ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
18634 if test $ac_lo -le $ac_mid; then
18635 ac_lo= ac_hi=
18636 break
18637 fi
18638 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 18639fi
ac1cb8d3 18640rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18641 done
18642else
18643 echo "$as_me: failed program was:" >&5
18644sed 's/^/| /' conftest.$ac_ext >&5
18645
18646cat >conftest.$ac_ext <<_ACEOF
18647/* confdefs.h. */
18648_ACEOF
18649cat confdefs.h >>conftest.$ac_ext
18650cat >>conftest.$ac_ext <<_ACEOF
18651/* end confdefs.h. */
18652$ac_includes_default
18653int
18654main ()
18655{
18656static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)];
18657test_array [0] = 0
18658
18659 ;
18660 return 0;
18661}
18662_ACEOF
18663rm -f conftest.$ac_objext
18664if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18665 (eval $ac_compile) 2>conftest.er1
a848cd7e 18666 ac_status=$?
ac1cb8d3
VS
18667 grep -v '^ *+' conftest.er1 >conftest.err
18668 rm -f conftest.er1
18669 cat conftest.err >&5
a848cd7e
SC
18670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18671 (exit $ac_status); } &&
c9a66001 18672 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18673 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18674 (eval $ac_try) 2>&5
18675 ac_status=$?
18676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18677 (exit $ac_status); }; } &&
18678 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18679 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18680 (eval $ac_try) 2>&5
18681 ac_status=$?
18682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18683 (exit $ac_status); }; }; then
18684 ac_hi=-1 ac_mid=-1
18685 while :; do
18686 cat >conftest.$ac_ext <<_ACEOF
18687/* confdefs.h. */
18688_ACEOF
18689cat confdefs.h >>conftest.$ac_ext
18690cat >>conftest.$ac_ext <<_ACEOF
18691/* end confdefs.h. */
18692$ac_includes_default
18693int
18694main ()
18695{
18696static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)];
18697test_array [0] = 0
18698
18699 ;
18700 return 0;
18701}
18702_ACEOF
18703rm -f conftest.$ac_objext
18704if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18705 (eval $ac_compile) 2>conftest.er1
a848cd7e 18706 ac_status=$?
ac1cb8d3
VS
18707 grep -v '^ *+' conftest.er1 >conftest.err
18708 rm -f conftest.er1
18709 cat conftest.err >&5
a848cd7e
SC
18710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18711 (exit $ac_status); } &&
c9a66001 18712 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18713 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18714 (eval $ac_try) 2>&5
18715 ac_status=$?
18716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18717 (exit $ac_status); }; } &&
18718 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18719 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18720 (eval $ac_try) 2>&5
18721 ac_status=$?
18722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18723 (exit $ac_status); }; }; then
18724 ac_lo=$ac_mid; break
18725else
18726 echo "$as_me: failed program was:" >&5
18727sed 's/^/| /' conftest.$ac_ext >&5
18728
18729ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
18730 if test $ac_mid -le $ac_hi; then
18731 ac_lo= ac_hi=
18732 break
18733 fi
18734 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 18735fi
ac1cb8d3 18736rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18737 done
18738else
18739 echo "$as_me: failed program was:" >&5
18740sed 's/^/| /' conftest.$ac_ext >&5
18741
18742ac_lo= ac_hi=
18743fi
ac1cb8d3 18744rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 18745fi
ac1cb8d3 18746rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18747# Binary search between lo and hi bounds.
18748while test "x$ac_lo" != "x$ac_hi"; do
18749 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
18750 cat >conftest.$ac_ext <<_ACEOF
18751/* confdefs.h. */
18752_ACEOF
18753cat confdefs.h >>conftest.$ac_ext
18754cat >>conftest.$ac_ext <<_ACEOF
18755/* end confdefs.h. */
18756$ac_includes_default
18757int
18758main ()
18759{
18760static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
18761test_array [0] = 0
18762
18763 ;
18764 return 0;
18765}
18766_ACEOF
18767rm -f conftest.$ac_objext
18768if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18769 (eval $ac_compile) 2>conftest.er1
a848cd7e 18770 ac_status=$?
ac1cb8d3
VS
18771 grep -v '^ *+' conftest.er1 >conftest.err
18772 rm -f conftest.er1
18773 cat conftest.err >&5
a848cd7e
SC
18774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18775 (exit $ac_status); } &&
c9a66001 18776 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18777 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18778 (eval $ac_try) 2>&5
18779 ac_status=$?
18780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18781 (exit $ac_status); }; } &&
18782 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18783 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18784 (eval $ac_try) 2>&5
18785 ac_status=$?
18786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18787 (exit $ac_status); }; }; then
18788 ac_hi=$ac_mid
18789else
18790 echo "$as_me: failed program was:" >&5
18791sed 's/^/| /' conftest.$ac_ext >&5
18792
18793ac_lo=`expr '(' $ac_mid ')' + 1`
18794fi
ac1cb8d3 18795rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18796done
18797case $ac_lo in
18798?*) ac_cv_sizeof_void_p=$ac_lo;;
18799'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
18800See \`config.log' for more details." >&5
18801echo "$as_me: error: cannot compute sizeof (void *), 77
18802See \`config.log' for more details." >&2;}
18803 { (exit 1); exit 1; }; } ;;
18804esac
18805else
18806 if test "$cross_compiling" = yes; then
c9a66001
VZ
18807 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
18808echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
a848cd7e
SC
18809 { (exit 1); exit 1; }; }
18810else
18811 cat >conftest.$ac_ext <<_ACEOF
18812/* confdefs.h. */
18813_ACEOF
18814cat confdefs.h >>conftest.$ac_ext
18815cat >>conftest.$ac_ext <<_ACEOF
18816/* end confdefs.h. */
18817$ac_includes_default
18818long longval () { return (long) (sizeof (void *)); }
18819unsigned long ulongval () { return (long) (sizeof (void *)); }
18820#include <stdio.h>
18821#include <stdlib.h>
18822int
18823main ()
18824{
18825
18826 FILE *f = fopen ("conftest.val", "w");
18827 if (! f)
18828 exit (1);
18829 if (((long) (sizeof (void *))) < 0)
18830 {
18831 long i = longval ();
18832 if (i != ((long) (sizeof (void *))))
18833 exit (1);
18834 fprintf (f, "%ld\n", i);
18835 }
18836 else
18837 {
18838 unsigned long i = ulongval ();
18839 if (i != ((long) (sizeof (void *))))
18840 exit (1);
18841 fprintf (f, "%lu\n", i);
18842 }
18843 exit (ferror (f) || fclose (f) != 0);
18844
18845 ;
18846 return 0;
18847}
18848_ACEOF
18849rm -f conftest$ac_exeext
18850if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18851 (eval $ac_link) 2>&5
18852 ac_status=$?
18853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18854 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18855 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18856 (eval $ac_try) 2>&5
18857 ac_status=$?
18858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18859 (exit $ac_status); }; }; then
18860 ac_cv_sizeof_void_p=`cat conftest.val`
18861else
18862 echo "$as_me: program exited with status $ac_status" >&5
18863echo "$as_me: failed program was:" >&5
18864sed 's/^/| /' conftest.$ac_ext >&5
18865
18866( exit $ac_status )
18867{ { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
18868See \`config.log' for more details." >&5
18869echo "$as_me: error: cannot compute sizeof (void *), 77
18870See \`config.log' for more details." >&2;}
18871 { (exit 1); exit 1; }; }
18872fi
ac1cb8d3 18873rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18874fi
18875fi
18876rm -f conftest.val
18877else
18878 ac_cv_sizeof_void_p=0
18879fi
18880fi
18881echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
18882echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
18883cat >>confdefs.h <<_ACEOF
18884#define SIZEOF_VOID_P $ac_cv_sizeof_void_p
18885_ACEOF
18886
18887
18888echo "$as_me:$LINENO: checking for int" >&5
18889echo $ECHO_N "checking for int... $ECHO_C" >&6
18890if test "${ac_cv_type_int+set}" = set; then
18891 echo $ECHO_N "(cached) $ECHO_C" >&6
18892else
18893 cat >conftest.$ac_ext <<_ACEOF
18894/* confdefs.h. */
18895_ACEOF
18896cat confdefs.h >>conftest.$ac_ext
18897cat >>conftest.$ac_ext <<_ACEOF
18898/* end confdefs.h. */
18899$ac_includes_default
18900int
18901main ()
18902{
18903if ((int *) 0)
18904 return 0;
18905if (sizeof (int))
18906 return 0;
18907 ;
18908 return 0;
18909}
18910_ACEOF
18911rm -f conftest.$ac_objext
18912if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18913 (eval $ac_compile) 2>conftest.er1
a848cd7e 18914 ac_status=$?
ac1cb8d3
VS
18915 grep -v '^ *+' conftest.er1 >conftest.err
18916 rm -f conftest.er1
18917 cat conftest.err >&5
a848cd7e
SC
18918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18919 (exit $ac_status); } &&
c9a66001 18920 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18921 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18922 (eval $ac_try) 2>&5
18923 ac_status=$?
18924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18925 (exit $ac_status); }; } &&
18926 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18927 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18928 (eval $ac_try) 2>&5
18929 ac_status=$?
18930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18931 (exit $ac_status); }; }; then
18932 ac_cv_type_int=yes
18933else
18934 echo "$as_me: failed program was:" >&5
18935sed 's/^/| /' conftest.$ac_ext >&5
18936
18937ac_cv_type_int=no
18938fi
ac1cb8d3 18939rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18940fi
18941echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
18942echo "${ECHO_T}$ac_cv_type_int" >&6
18943
18944echo "$as_me:$LINENO: checking size of int" >&5
18945echo $ECHO_N "checking size of int... $ECHO_C" >&6
18946if test "${ac_cv_sizeof_int+set}" = set; then
18947 echo $ECHO_N "(cached) $ECHO_C" >&6
18948else
18949 if test "$ac_cv_type_int" = yes; then
18950 # The cast to unsigned long works around a bug in the HP C Compiler
18951 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
18952 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
18953 # This bug is HP SR number 8606223364.
18954 if test "$cross_compiling" = yes; then
18955 # Depending upon the size, compute the lo and hi bounds.
18956cat >conftest.$ac_ext <<_ACEOF
18957/* confdefs.h. */
18958_ACEOF
18959cat confdefs.h >>conftest.$ac_ext
18960cat >>conftest.$ac_ext <<_ACEOF
18961/* end confdefs.h. */
18962$ac_includes_default
18963int
18964main ()
18965{
18966static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
18967test_array [0] = 0
18968
18969 ;
18970 return 0;
18971}
18972_ACEOF
18973rm -f conftest.$ac_objext
18974if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18975 (eval $ac_compile) 2>conftest.er1
a848cd7e 18976 ac_status=$?
ac1cb8d3
VS
18977 grep -v '^ *+' conftest.er1 >conftest.err
18978 rm -f conftest.er1
18979 cat conftest.err >&5
a848cd7e
SC
18980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18981 (exit $ac_status); } &&
c9a66001 18982 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18983 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18984 (eval $ac_try) 2>&5
18985 ac_status=$?
18986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18987 (exit $ac_status); }; } &&
18988 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18989 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18990 (eval $ac_try) 2>&5
18991 ac_status=$?
18992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18993 (exit $ac_status); }; }; then
18994 ac_lo=0 ac_mid=0
18995 while :; do
18996 cat >conftest.$ac_ext <<_ACEOF
18997/* confdefs.h. */
18998_ACEOF
18999cat confdefs.h >>conftest.$ac_ext
19000cat >>conftest.$ac_ext <<_ACEOF
19001/* end confdefs.h. */
19002$ac_includes_default
19003int
19004main ()
19005{
19006static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
19007test_array [0] = 0
19008
19009 ;
19010 return 0;
19011}
19012_ACEOF
19013rm -f conftest.$ac_objext
19014if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19015 (eval $ac_compile) 2>conftest.er1
a848cd7e 19016 ac_status=$?
ac1cb8d3
VS
19017 grep -v '^ *+' conftest.er1 >conftest.err
19018 rm -f conftest.er1
19019 cat conftest.err >&5
a848cd7e
SC
19020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19021 (exit $ac_status); } &&
c9a66001 19022 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19023 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19024 (eval $ac_try) 2>&5
19025 ac_status=$?
19026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19027 (exit $ac_status); }; } &&
19028 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19029 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19030 (eval $ac_try) 2>&5
19031 ac_status=$?
19032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19033 (exit $ac_status); }; }; then
19034 ac_hi=$ac_mid; break
19035else
19036 echo "$as_me: failed program was:" >&5
19037sed 's/^/| /' conftest.$ac_ext >&5
19038
19039ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
19040 if test $ac_lo -le $ac_mid; then
19041 ac_lo= ac_hi=
19042 break
19043 fi
19044 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 19045fi
ac1cb8d3 19046rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19047 done
19048else
19049 echo "$as_me: failed program was:" >&5
19050sed 's/^/| /' conftest.$ac_ext >&5
19051
19052cat >conftest.$ac_ext <<_ACEOF
19053/* confdefs.h. */
19054_ACEOF
19055cat confdefs.h >>conftest.$ac_ext
19056cat >>conftest.$ac_ext <<_ACEOF
19057/* end confdefs.h. */
19058$ac_includes_default
19059int
19060main ()
19061{
19062static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
19063test_array [0] = 0
19064
19065 ;
19066 return 0;
19067}
19068_ACEOF
19069rm -f conftest.$ac_objext
19070if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19071 (eval $ac_compile) 2>conftest.er1
a848cd7e 19072 ac_status=$?
ac1cb8d3
VS
19073 grep -v '^ *+' conftest.er1 >conftest.err
19074 rm -f conftest.er1
19075 cat conftest.err >&5
a848cd7e
SC
19076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19077 (exit $ac_status); } &&
c9a66001 19078 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19079 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19080 (eval $ac_try) 2>&5
19081 ac_status=$?
19082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19083 (exit $ac_status); }; } &&
19084 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19085 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19086 (eval $ac_try) 2>&5
19087 ac_status=$?
19088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19089 (exit $ac_status); }; }; then
19090 ac_hi=-1 ac_mid=-1
19091 while :; do
19092 cat >conftest.$ac_ext <<_ACEOF
19093/* confdefs.h. */
19094_ACEOF
19095cat confdefs.h >>conftest.$ac_ext
19096cat >>conftest.$ac_ext <<_ACEOF
19097/* end confdefs.h. */
19098$ac_includes_default
19099int
19100main ()
19101{
19102static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
19103test_array [0] = 0
19104
19105 ;
19106 return 0;
19107}
19108_ACEOF
19109rm -f conftest.$ac_objext
19110if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19111 (eval $ac_compile) 2>conftest.er1
a848cd7e 19112 ac_status=$?
ac1cb8d3
VS
19113 grep -v '^ *+' conftest.er1 >conftest.err
19114 rm -f conftest.er1
19115 cat conftest.err >&5
a848cd7e
SC
19116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19117 (exit $ac_status); } &&
c9a66001 19118 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19119 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19120 (eval $ac_try) 2>&5
19121 ac_status=$?
19122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19123 (exit $ac_status); }; } &&
19124 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19125 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19126 (eval $ac_try) 2>&5
19127 ac_status=$?
19128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19129 (exit $ac_status); }; }; then
19130 ac_lo=$ac_mid; break
19131else
19132 echo "$as_me: failed program was:" >&5
19133sed 's/^/| /' conftest.$ac_ext >&5
19134
19135ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
19136 if test $ac_mid -le $ac_hi; then
19137 ac_lo= ac_hi=
19138 break
19139 fi
19140 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 19141fi
ac1cb8d3 19142rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19143 done
19144else
19145 echo "$as_me: failed program was:" >&5
19146sed 's/^/| /' conftest.$ac_ext >&5
19147
19148ac_lo= ac_hi=
19149fi
ac1cb8d3 19150rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 19151fi
ac1cb8d3 19152rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19153# Binary search between lo and hi bounds.
19154while test "x$ac_lo" != "x$ac_hi"; do
19155 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
19156 cat >conftest.$ac_ext <<_ACEOF
19157/* confdefs.h. */
19158_ACEOF
19159cat confdefs.h >>conftest.$ac_ext
19160cat >>conftest.$ac_ext <<_ACEOF
19161/* end confdefs.h. */
19162$ac_includes_default
19163int
19164main ()
19165{
19166static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
19167test_array [0] = 0
19168
19169 ;
19170 return 0;
19171}
19172_ACEOF
19173rm -f conftest.$ac_objext
19174if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19175 (eval $ac_compile) 2>conftest.er1
a848cd7e 19176 ac_status=$?
ac1cb8d3
VS
19177 grep -v '^ *+' conftest.er1 >conftest.err
19178 rm -f conftest.er1
19179 cat conftest.err >&5
a848cd7e
SC
19180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19181 (exit $ac_status); } &&
c9a66001 19182 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19183 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19184 (eval $ac_try) 2>&5
19185 ac_status=$?
19186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19187 (exit $ac_status); }; } &&
19188 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19189 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19190 (eval $ac_try) 2>&5
19191 ac_status=$?
19192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19193 (exit $ac_status); }; }; then
19194 ac_hi=$ac_mid
19195else
19196 echo "$as_me: failed program was:" >&5
19197sed 's/^/| /' conftest.$ac_ext >&5
19198
19199ac_lo=`expr '(' $ac_mid ')' + 1`
19200fi
ac1cb8d3 19201rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19202done
19203case $ac_lo in
19204?*) ac_cv_sizeof_int=$ac_lo;;
19205'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
19206See \`config.log' for more details." >&5
19207echo "$as_me: error: cannot compute sizeof (int), 77
19208See \`config.log' for more details." >&2;}
19209 { (exit 1); exit 1; }; } ;;
19210esac
19211else
19212 if test "$cross_compiling" = yes; then
c9a66001
VZ
19213 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
19214echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
a848cd7e
SC
19215 { (exit 1); exit 1; }; }
19216else
19217 cat >conftest.$ac_ext <<_ACEOF
19218/* confdefs.h. */
19219_ACEOF
19220cat confdefs.h >>conftest.$ac_ext
19221cat >>conftest.$ac_ext <<_ACEOF
19222/* end confdefs.h. */
19223$ac_includes_default
19224long longval () { return (long) (sizeof (int)); }
19225unsigned long ulongval () { return (long) (sizeof (int)); }
19226#include <stdio.h>
19227#include <stdlib.h>
19228int
19229main ()
19230{
19231
19232 FILE *f = fopen ("conftest.val", "w");
19233 if (! f)
19234 exit (1);
19235 if (((long) (sizeof (int))) < 0)
19236 {
19237 long i = longval ();
19238 if (i != ((long) (sizeof (int))))
19239 exit (1);
19240 fprintf (f, "%ld\n", i);
19241 }
19242 else
19243 {
19244 unsigned long i = ulongval ();
19245 if (i != ((long) (sizeof (int))))
19246 exit (1);
19247 fprintf (f, "%lu\n", i);
19248 }
19249 exit (ferror (f) || fclose (f) != 0);
19250
19251 ;
19252 return 0;
19253}
19254_ACEOF
19255rm -f conftest$ac_exeext
19256if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19257 (eval $ac_link) 2>&5
19258 ac_status=$?
19259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19260 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19261 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19262 (eval $ac_try) 2>&5
19263 ac_status=$?
19264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19265 (exit $ac_status); }; }; then
19266 ac_cv_sizeof_int=`cat conftest.val`
19267else
19268 echo "$as_me: program exited with status $ac_status" >&5
19269echo "$as_me: failed program was:" >&5
19270sed 's/^/| /' conftest.$ac_ext >&5
19271
19272( exit $ac_status )
19273{ { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
19274See \`config.log' for more details." >&5
19275echo "$as_me: error: cannot compute sizeof (int), 77
19276See \`config.log' for more details." >&2;}
19277 { (exit 1); exit 1; }; }
19278fi
ac1cb8d3 19279rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19280fi
19281fi
19282rm -f conftest.val
19283else
19284 ac_cv_sizeof_int=0
19285fi
19286fi
19287echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
19288echo "${ECHO_T}$ac_cv_sizeof_int" >&6
19289cat >>confdefs.h <<_ACEOF
19290#define SIZEOF_INT $ac_cv_sizeof_int
19291_ACEOF
19292
19293
19294echo "$as_me:$LINENO: checking for long" >&5
19295echo $ECHO_N "checking for long... $ECHO_C" >&6
19296if test "${ac_cv_type_long+set}" = set; then
19297 echo $ECHO_N "(cached) $ECHO_C" >&6
19298else
19299 cat >conftest.$ac_ext <<_ACEOF
19300/* confdefs.h. */
19301_ACEOF
19302cat confdefs.h >>conftest.$ac_ext
19303cat >>conftest.$ac_ext <<_ACEOF
19304/* end confdefs.h. */
19305$ac_includes_default
19306int
19307main ()
19308{
19309if ((long *) 0)
19310 return 0;
19311if (sizeof (long))
19312 return 0;
19313 ;
19314 return 0;
19315}
19316_ACEOF
19317rm -f conftest.$ac_objext
19318if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19319 (eval $ac_compile) 2>conftest.er1
a848cd7e 19320 ac_status=$?
ac1cb8d3
VS
19321 grep -v '^ *+' conftest.er1 >conftest.err
19322 rm -f conftest.er1
19323 cat conftest.err >&5
a848cd7e
SC
19324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19325 (exit $ac_status); } &&
c9a66001 19326 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19327 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19328 (eval $ac_try) 2>&5
19329 ac_status=$?
19330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19331 (exit $ac_status); }; } &&
19332 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19333 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19334 (eval $ac_try) 2>&5
19335 ac_status=$?
19336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19337 (exit $ac_status); }; }; then
19338 ac_cv_type_long=yes
19339else
19340 echo "$as_me: failed program was:" >&5
19341sed 's/^/| /' conftest.$ac_ext >&5
19342
19343ac_cv_type_long=no
19344fi
ac1cb8d3 19345rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19346fi
19347echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
19348echo "${ECHO_T}$ac_cv_type_long" >&6
19349
19350echo "$as_me:$LINENO: checking size of long" >&5
19351echo $ECHO_N "checking size of long... $ECHO_C" >&6
19352if test "${ac_cv_sizeof_long+set}" = set; then
19353 echo $ECHO_N "(cached) $ECHO_C" >&6
19354else
19355 if test "$ac_cv_type_long" = yes; then
19356 # The cast to unsigned long works around a bug in the HP C Compiler
19357 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
19358 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
19359 # This bug is HP SR number 8606223364.
19360 if test "$cross_compiling" = yes; then
19361 # Depending upon the size, compute the lo and hi bounds.
19362cat >conftest.$ac_ext <<_ACEOF
19363/* confdefs.h. */
19364_ACEOF
19365cat confdefs.h >>conftest.$ac_ext
19366cat >>conftest.$ac_ext <<_ACEOF
19367/* end confdefs.h. */
19368$ac_includes_default
19369int
19370main ()
19371{
19372static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
19373test_array [0] = 0
19374
19375 ;
19376 return 0;
19377}
19378_ACEOF
19379rm -f conftest.$ac_objext
19380if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19381 (eval $ac_compile) 2>conftest.er1
a848cd7e 19382 ac_status=$?
ac1cb8d3
VS
19383 grep -v '^ *+' conftest.er1 >conftest.err
19384 rm -f conftest.er1
19385 cat conftest.err >&5
a848cd7e
SC
19386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19387 (exit $ac_status); } &&
c9a66001 19388 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19389 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19390 (eval $ac_try) 2>&5
19391 ac_status=$?
19392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19393 (exit $ac_status); }; } &&
19394 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19395 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19396 (eval $ac_try) 2>&5
19397 ac_status=$?
19398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19399 (exit $ac_status); }; }; then
19400 ac_lo=0 ac_mid=0
19401 while :; do
19402 cat >conftest.$ac_ext <<_ACEOF
19403/* confdefs.h. */
19404_ACEOF
19405cat confdefs.h >>conftest.$ac_ext
19406cat >>conftest.$ac_ext <<_ACEOF
19407/* end confdefs.h. */
19408$ac_includes_default
19409int
19410main ()
19411{
19412static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
19413test_array [0] = 0
19414
19415 ;
19416 return 0;
19417}
19418_ACEOF
19419rm -f conftest.$ac_objext
19420if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19421 (eval $ac_compile) 2>conftest.er1
a848cd7e 19422 ac_status=$?
ac1cb8d3
VS
19423 grep -v '^ *+' conftest.er1 >conftest.err
19424 rm -f conftest.er1
19425 cat conftest.err >&5
a848cd7e
SC
19426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19427 (exit $ac_status); } &&
c9a66001 19428 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19429 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19430 (eval $ac_try) 2>&5
19431 ac_status=$?
19432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19433 (exit $ac_status); }; } &&
19434 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19435 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19436 (eval $ac_try) 2>&5
19437 ac_status=$?
19438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19439 (exit $ac_status); }; }; then
19440 ac_hi=$ac_mid; break
19441else
19442 echo "$as_me: failed program was:" >&5
19443sed 's/^/| /' conftest.$ac_ext >&5
19444
19445ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
19446 if test $ac_lo -le $ac_mid; then
19447 ac_lo= ac_hi=
19448 break
19449 fi
19450 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 19451fi
ac1cb8d3 19452rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19453 done
19454else
19455 echo "$as_me: failed program was:" >&5
19456sed 's/^/| /' conftest.$ac_ext >&5
19457
19458cat >conftest.$ac_ext <<_ACEOF
19459/* confdefs.h. */
19460_ACEOF
19461cat confdefs.h >>conftest.$ac_ext
19462cat >>conftest.$ac_ext <<_ACEOF
19463/* end confdefs.h. */
19464$ac_includes_default
19465int
19466main ()
19467{
19468static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
19469test_array [0] = 0
19470
19471 ;
19472 return 0;
19473}
19474_ACEOF
19475rm -f conftest.$ac_objext
19476if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19477 (eval $ac_compile) 2>conftest.er1
a848cd7e 19478 ac_status=$?
ac1cb8d3
VS
19479 grep -v '^ *+' conftest.er1 >conftest.err
19480 rm -f conftest.er1
19481 cat conftest.err >&5
a848cd7e
SC
19482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19483 (exit $ac_status); } &&
c9a66001 19484 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19485 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19486 (eval $ac_try) 2>&5
19487 ac_status=$?
19488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19489 (exit $ac_status); }; } &&
19490 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19491 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19492 (eval $ac_try) 2>&5
19493 ac_status=$?
19494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19495 (exit $ac_status); }; }; then
19496 ac_hi=-1 ac_mid=-1
19497 while :; do
19498 cat >conftest.$ac_ext <<_ACEOF
19499/* confdefs.h. */
19500_ACEOF
19501cat confdefs.h >>conftest.$ac_ext
19502cat >>conftest.$ac_ext <<_ACEOF
19503/* end confdefs.h. */
19504$ac_includes_default
19505int
19506main ()
19507{
19508static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
19509test_array [0] = 0
19510
19511 ;
19512 return 0;
19513}
19514_ACEOF
19515rm -f conftest.$ac_objext
19516if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19517 (eval $ac_compile) 2>conftest.er1
a848cd7e 19518 ac_status=$?
ac1cb8d3
VS
19519 grep -v '^ *+' conftest.er1 >conftest.err
19520 rm -f conftest.er1
19521 cat conftest.err >&5
a848cd7e
SC
19522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19523 (exit $ac_status); } &&
c9a66001 19524 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19525 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19526 (eval $ac_try) 2>&5
19527 ac_status=$?
19528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19529 (exit $ac_status); }; } &&
19530 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19531 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19532 (eval $ac_try) 2>&5
19533 ac_status=$?
19534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19535 (exit $ac_status); }; }; then
19536 ac_lo=$ac_mid; break
19537else
19538 echo "$as_me: failed program was:" >&5
19539sed 's/^/| /' conftest.$ac_ext >&5
19540
19541ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
19542 if test $ac_mid -le $ac_hi; then
19543 ac_lo= ac_hi=
19544 break
19545 fi
19546 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 19547fi
ac1cb8d3 19548rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19549 done
19550else
19551 echo "$as_me: failed program was:" >&5
19552sed 's/^/| /' conftest.$ac_ext >&5
19553
19554ac_lo= ac_hi=
19555fi
ac1cb8d3 19556rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 19557fi
ac1cb8d3 19558rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19559# Binary search between lo and hi bounds.
19560while test "x$ac_lo" != "x$ac_hi"; do
19561 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
19562 cat >conftest.$ac_ext <<_ACEOF
19563/* confdefs.h. */
19564_ACEOF
19565cat confdefs.h >>conftest.$ac_ext
19566cat >>conftest.$ac_ext <<_ACEOF
19567/* end confdefs.h. */
19568$ac_includes_default
19569int
19570main ()
19571{
19572static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
19573test_array [0] = 0
19574
19575 ;
19576 return 0;
19577}
19578_ACEOF
19579rm -f conftest.$ac_objext
19580if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19581 (eval $ac_compile) 2>conftest.er1
a848cd7e 19582 ac_status=$?
ac1cb8d3
VS
19583 grep -v '^ *+' conftest.er1 >conftest.err
19584 rm -f conftest.er1
19585 cat conftest.err >&5
a848cd7e
SC
19586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19587 (exit $ac_status); } &&
c9a66001 19588 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19589 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19590 (eval $ac_try) 2>&5
19591 ac_status=$?
19592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19593 (exit $ac_status); }; } &&
19594 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19595 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19596 (eval $ac_try) 2>&5
19597 ac_status=$?
19598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19599 (exit $ac_status); }; }; then
19600 ac_hi=$ac_mid
19601else
19602 echo "$as_me: failed program was:" >&5
19603sed 's/^/| /' conftest.$ac_ext >&5
19604
19605ac_lo=`expr '(' $ac_mid ')' + 1`
19606fi
ac1cb8d3 19607rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19608done
19609case $ac_lo in
19610?*) ac_cv_sizeof_long=$ac_lo;;
19611'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
19612See \`config.log' for more details." >&5
19613echo "$as_me: error: cannot compute sizeof (long), 77
19614See \`config.log' for more details." >&2;}
19615 { (exit 1); exit 1; }; } ;;
19616esac
19617else
19618 if test "$cross_compiling" = yes; then
c9a66001
VZ
19619 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
19620echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
a848cd7e
SC
19621 { (exit 1); exit 1; }; }
19622else
19623 cat >conftest.$ac_ext <<_ACEOF
19624/* confdefs.h. */
19625_ACEOF
19626cat confdefs.h >>conftest.$ac_ext
19627cat >>conftest.$ac_ext <<_ACEOF
19628/* end confdefs.h. */
19629$ac_includes_default
19630long longval () { return (long) (sizeof (long)); }
19631unsigned long ulongval () { return (long) (sizeof (long)); }
19632#include <stdio.h>
19633#include <stdlib.h>
19634int
19635main ()
19636{
19637
19638 FILE *f = fopen ("conftest.val", "w");
19639 if (! f)
19640 exit (1);
19641 if (((long) (sizeof (long))) < 0)
19642 {
19643 long i = longval ();
19644 if (i != ((long) (sizeof (long))))
19645 exit (1);
19646 fprintf (f, "%ld\n", i);
19647 }
19648 else
19649 {
19650 unsigned long i = ulongval ();
19651 if (i != ((long) (sizeof (long))))
19652 exit (1);
19653 fprintf (f, "%lu\n", i);
19654 }
19655 exit (ferror (f) || fclose (f) != 0);
19656
19657 ;
19658 return 0;
19659}
19660_ACEOF
19661rm -f conftest$ac_exeext
19662if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19663 (eval $ac_link) 2>&5
19664 ac_status=$?
19665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19666 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19667 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19668 (eval $ac_try) 2>&5
19669 ac_status=$?
19670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19671 (exit $ac_status); }; }; then
19672 ac_cv_sizeof_long=`cat conftest.val`
19673else
19674 echo "$as_me: program exited with status $ac_status" >&5
19675echo "$as_me: failed program was:" >&5
19676sed 's/^/| /' conftest.$ac_ext >&5
19677
19678( exit $ac_status )
19679{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
19680See \`config.log' for more details." >&5
19681echo "$as_me: error: cannot compute sizeof (long), 77
19682See \`config.log' for more details." >&2;}
19683 { (exit 1); exit 1; }; }
19684fi
ac1cb8d3 19685rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19686fi
19687fi
19688rm -f conftest.val
19689else
19690 ac_cv_sizeof_long=0
19691fi
19692fi
19693echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
19694echo "${ECHO_T}$ac_cv_sizeof_long" >&6
19695cat >>confdefs.h <<_ACEOF
19696#define SIZEOF_LONG $ac_cv_sizeof_long
19697_ACEOF
19698
19699
19700echo "$as_me:$LINENO: checking for size_t" >&5
19701echo $ECHO_N "checking for size_t... $ECHO_C" >&6
19702if test "${ac_cv_type_size_t+set}" = set; then
19703 echo $ECHO_N "(cached) $ECHO_C" >&6
19704else
19705 cat >conftest.$ac_ext <<_ACEOF
19706/* confdefs.h. */
19707_ACEOF
19708cat confdefs.h >>conftest.$ac_ext
19709cat >>conftest.$ac_ext <<_ACEOF
19710/* end confdefs.h. */
19711$ac_includes_default
19712int
19713main ()
19714{
19715if ((size_t *) 0)
19716 return 0;
19717if (sizeof (size_t))
19718 return 0;
19719 ;
19720 return 0;
19721}
19722_ACEOF
19723rm -f conftest.$ac_objext
19724if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19725 (eval $ac_compile) 2>conftest.er1
a848cd7e 19726 ac_status=$?
ac1cb8d3
VS
19727 grep -v '^ *+' conftest.er1 >conftest.err
19728 rm -f conftest.er1
19729 cat conftest.err >&5
a848cd7e
SC
19730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19731 (exit $ac_status); } &&
c9a66001 19732 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19733 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19734 (eval $ac_try) 2>&5
19735 ac_status=$?
19736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19737 (exit $ac_status); }; } &&
19738 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19739 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19740 (eval $ac_try) 2>&5
19741 ac_status=$?
19742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19743 (exit $ac_status); }; }; then
19744 ac_cv_type_size_t=yes
19745else
19746 echo "$as_me: failed program was:" >&5
19747sed 's/^/| /' conftest.$ac_ext >&5
19748
19749ac_cv_type_size_t=no
19750fi
ac1cb8d3 19751rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19752fi
19753echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
19754echo "${ECHO_T}$ac_cv_type_size_t" >&6
19755
19756echo "$as_me:$LINENO: checking size of size_t" >&5
19757echo $ECHO_N "checking size of size_t... $ECHO_C" >&6
19758if test "${ac_cv_sizeof_size_t+set}" = set; then
19759 echo $ECHO_N "(cached) $ECHO_C" >&6
19760else
19761 if test "$ac_cv_type_size_t" = yes; then
19762 # The cast to unsigned long works around a bug in the HP C Compiler
19763 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
19764 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
19765 # This bug is HP SR number 8606223364.
19766 if test "$cross_compiling" = yes; then
19767 # Depending upon the size, compute the lo and hi bounds.
19768cat >conftest.$ac_ext <<_ACEOF
19769/* confdefs.h. */
19770_ACEOF
19771cat confdefs.h >>conftest.$ac_ext
19772cat >>conftest.$ac_ext <<_ACEOF
19773/* end confdefs.h. */
19774$ac_includes_default
19775int
19776main ()
19777{
19778static int test_array [1 - 2 * !(((long) (sizeof (size_t))) >= 0)];
19779test_array [0] = 0
19780
19781 ;
19782 return 0;
19783}
19784_ACEOF
19785rm -f conftest.$ac_objext
19786if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19787 (eval $ac_compile) 2>conftest.er1
a848cd7e 19788 ac_status=$?
ac1cb8d3
VS
19789 grep -v '^ *+' conftest.er1 >conftest.err
19790 rm -f conftest.er1
19791 cat conftest.err >&5
a848cd7e
SC
19792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19793 (exit $ac_status); } &&
c9a66001 19794 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19795 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19796 (eval $ac_try) 2>&5
19797 ac_status=$?
19798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19799 (exit $ac_status); }; } &&
19800 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19801 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19802 (eval $ac_try) 2>&5
19803 ac_status=$?
19804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19805 (exit $ac_status); }; }; then
19806 ac_lo=0 ac_mid=0
19807 while :; do
19808 cat >conftest.$ac_ext <<_ACEOF
19809/* confdefs.h. */
19810_ACEOF
19811cat confdefs.h >>conftest.$ac_ext
19812cat >>conftest.$ac_ext <<_ACEOF
19813/* end confdefs.h. */
19814$ac_includes_default
19815int
19816main ()
19817{
19818static int test_array [1 - 2 * !(((long) (sizeof (size_t))) <= $ac_mid)];
19819test_array [0] = 0
19820
19821 ;
19822 return 0;
19823}
19824_ACEOF
19825rm -f conftest.$ac_objext
19826if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19827 (eval $ac_compile) 2>conftest.er1
a848cd7e 19828 ac_status=$?
ac1cb8d3
VS
19829 grep -v '^ *+' conftest.er1 >conftest.err
19830 rm -f conftest.er1
19831 cat conftest.err >&5
a848cd7e
SC
19832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19833 (exit $ac_status); } &&
c9a66001 19834 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19835 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19836 (eval $ac_try) 2>&5
19837 ac_status=$?
19838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19839 (exit $ac_status); }; } &&
19840 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19841 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19842 (eval $ac_try) 2>&5
19843 ac_status=$?
19844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19845 (exit $ac_status); }; }; then
19846 ac_hi=$ac_mid; break
19847else
19848 echo "$as_me: failed program was:" >&5
19849sed 's/^/| /' conftest.$ac_ext >&5
19850
19851ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
19852 if test $ac_lo -le $ac_mid; then
19853 ac_lo= ac_hi=
19854 break
19855 fi
19856 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 19857fi
ac1cb8d3 19858rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19859 done
19860else
19861 echo "$as_me: failed program was:" >&5
19862sed 's/^/| /' conftest.$ac_ext >&5
19863
19864cat >conftest.$ac_ext <<_ACEOF
19865/* confdefs.h. */
19866_ACEOF
19867cat confdefs.h >>conftest.$ac_ext
19868cat >>conftest.$ac_ext <<_ACEOF
19869/* end confdefs.h. */
19870$ac_includes_default
19871int
19872main ()
19873{
19874static int test_array [1 - 2 * !(((long) (sizeof (size_t))) < 0)];
19875test_array [0] = 0
19876
19877 ;
19878 return 0;
19879}
19880_ACEOF
19881rm -f conftest.$ac_objext
19882if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19883 (eval $ac_compile) 2>conftest.er1
a848cd7e 19884 ac_status=$?
ac1cb8d3
VS
19885 grep -v '^ *+' conftest.er1 >conftest.err
19886 rm -f conftest.er1
19887 cat conftest.err >&5
a848cd7e
SC
19888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19889 (exit $ac_status); } &&
c9a66001 19890 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19891 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19892 (eval $ac_try) 2>&5
19893 ac_status=$?
19894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19895 (exit $ac_status); }; } &&
19896 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19897 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19898 (eval $ac_try) 2>&5
19899 ac_status=$?
19900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19901 (exit $ac_status); }; }; then
19902 ac_hi=-1 ac_mid=-1
19903 while :; do
19904 cat >conftest.$ac_ext <<_ACEOF
19905/* confdefs.h. */
19906_ACEOF
19907cat confdefs.h >>conftest.$ac_ext
19908cat >>conftest.$ac_ext <<_ACEOF
19909/* end confdefs.h. */
19910$ac_includes_default
19911int
19912main ()
19913{
19914static int test_array [1 - 2 * !(((long) (sizeof (size_t))) >= $ac_mid)];
19915test_array [0] = 0
19916
19917 ;
19918 return 0;
19919}
19920_ACEOF
19921rm -f conftest.$ac_objext
19922if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19923 (eval $ac_compile) 2>conftest.er1
a848cd7e 19924 ac_status=$?
ac1cb8d3
VS
19925 grep -v '^ *+' conftest.er1 >conftest.err
19926 rm -f conftest.er1
19927 cat conftest.err >&5
a848cd7e
SC
19928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19929 (exit $ac_status); } &&
c9a66001 19930 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19931 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19932 (eval $ac_try) 2>&5
19933 ac_status=$?
19934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19935 (exit $ac_status); }; } &&
19936 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19937 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19938 (eval $ac_try) 2>&5
19939 ac_status=$?
19940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19941 (exit $ac_status); }; }; then
19942 ac_lo=$ac_mid; break
19943else
19944 echo "$as_me: failed program was:" >&5
19945sed 's/^/| /' conftest.$ac_ext >&5
19946
19947ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
19948 if test $ac_mid -le $ac_hi; then
19949 ac_lo= ac_hi=
19950 break
19951 fi
19952 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 19953fi
ac1cb8d3 19954rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19955 done
19956else
19957 echo "$as_me: failed program was:" >&5
19958sed 's/^/| /' conftest.$ac_ext >&5
19959
19960ac_lo= ac_hi=
19961fi
ac1cb8d3 19962rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 19963fi
ac1cb8d3 19964rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19965# Binary search between lo and hi bounds.
19966while test "x$ac_lo" != "x$ac_hi"; do
19967 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
19968 cat >conftest.$ac_ext <<_ACEOF
19969/* confdefs.h. */
19970_ACEOF
19971cat confdefs.h >>conftest.$ac_ext
19972cat >>conftest.$ac_ext <<_ACEOF
19973/* end confdefs.h. */
19974$ac_includes_default
19975int
19976main ()
19977{
19978static int test_array [1 - 2 * !(((long) (sizeof (size_t))) <= $ac_mid)];
19979test_array [0] = 0
19980
19981 ;
19982 return 0;
19983}
19984_ACEOF
19985rm -f conftest.$ac_objext
19986if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19987 (eval $ac_compile) 2>conftest.er1
a848cd7e 19988 ac_status=$?
ac1cb8d3
VS
19989 grep -v '^ *+' conftest.er1 >conftest.err
19990 rm -f conftest.er1
19991 cat conftest.err >&5
a848cd7e
SC
19992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19993 (exit $ac_status); } &&
c9a66001 19994 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19995 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19996 (eval $ac_try) 2>&5
19997 ac_status=$?
19998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19999 (exit $ac_status); }; } &&
20000 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20001 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20002 (eval $ac_try) 2>&5
20003 ac_status=$?
20004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20005 (exit $ac_status); }; }; then
20006 ac_hi=$ac_mid
20007else
20008 echo "$as_me: failed program was:" >&5
20009sed 's/^/| /' conftest.$ac_ext >&5
20010
20011ac_lo=`expr '(' $ac_mid ')' + 1`
20012fi
ac1cb8d3 20013rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20014done
20015case $ac_lo in
20016?*) ac_cv_sizeof_size_t=$ac_lo;;
20017'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t), 77
20018See \`config.log' for more details." >&5
20019echo "$as_me: error: cannot compute sizeof (size_t), 77
20020See \`config.log' for more details." >&2;}
20021 { (exit 1); exit 1; }; } ;;
20022esac
20023else
20024 if test "$cross_compiling" = yes; then
c9a66001
VZ
20025 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
20026echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
a848cd7e
SC
20027 { (exit 1); exit 1; }; }
20028else
20029 cat >conftest.$ac_ext <<_ACEOF
20030/* confdefs.h. */
20031_ACEOF
20032cat confdefs.h >>conftest.$ac_ext
20033cat >>conftest.$ac_ext <<_ACEOF
20034/* end confdefs.h. */
20035$ac_includes_default
20036long longval () { return (long) (sizeof (size_t)); }
20037unsigned long ulongval () { return (long) (sizeof (size_t)); }
20038#include <stdio.h>
20039#include <stdlib.h>
20040int
20041main ()
20042{
20043
20044 FILE *f = fopen ("conftest.val", "w");
20045 if (! f)
20046 exit (1);
20047 if (((long) (sizeof (size_t))) < 0)
20048 {
20049 long i = longval ();
20050 if (i != ((long) (sizeof (size_t))))
20051 exit (1);
20052 fprintf (f, "%ld\n", i);
20053 }
20054 else
20055 {
20056 unsigned long i = ulongval ();
20057 if (i != ((long) (sizeof (size_t))))
20058 exit (1);
20059 fprintf (f, "%lu\n", i);
20060 }
20061 exit (ferror (f) || fclose (f) != 0);
20062
20063 ;
20064 return 0;
20065}
20066_ACEOF
20067rm -f conftest$ac_exeext
20068if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20069 (eval $ac_link) 2>&5
20070 ac_status=$?
20071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20072 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20073 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20074 (eval $ac_try) 2>&5
20075 ac_status=$?
20076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20077 (exit $ac_status); }; }; then
20078 ac_cv_sizeof_size_t=`cat conftest.val`
20079else
20080 echo "$as_me: program exited with status $ac_status" >&5
20081echo "$as_me: failed program was:" >&5
20082sed 's/^/| /' conftest.$ac_ext >&5
20083
20084( exit $ac_status )
20085{ { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t), 77
20086See \`config.log' for more details." >&5
20087echo "$as_me: error: cannot compute sizeof (size_t), 77
20088See \`config.log' for more details." >&2;}
20089 { (exit 1); exit 1; }; }
20090fi
ac1cb8d3 20091rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20092fi
20093fi
20094rm -f conftest.val
20095else
20096 ac_cv_sizeof_size_t=0
20097fi
20098fi
20099echo "$as_me:$LINENO: result: $ac_cv_sizeof_size_t" >&5
20100echo "${ECHO_T}$ac_cv_sizeof_size_t" >&6
20101cat >>confdefs.h <<_ACEOF
20102#define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
20103_ACEOF
20104
20105
20106
20107case "${host}" in
20108 arm-*-linux* )
20109 echo "$as_me:$LINENO: checking for long long" >&5
20110echo $ECHO_N "checking for long long... $ECHO_C" >&6
20111if test "${ac_cv_type_long_long+set}" = set; then
20112 echo $ECHO_N "(cached) $ECHO_C" >&6
20113else
20114 cat >conftest.$ac_ext <<_ACEOF
20115/* confdefs.h. */
20116_ACEOF
20117cat confdefs.h >>conftest.$ac_ext
20118cat >>conftest.$ac_ext <<_ACEOF
20119/* end confdefs.h. */
20120$ac_includes_default
20121int
20122main ()
20123{
20124if ((long long *) 0)
20125 return 0;
20126if (sizeof (long long))
20127 return 0;
20128 ;
20129 return 0;
20130}
20131_ACEOF
20132rm -f conftest.$ac_objext
20133if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20134 (eval $ac_compile) 2>conftest.er1
a848cd7e 20135 ac_status=$?
ac1cb8d3
VS
20136 grep -v '^ *+' conftest.er1 >conftest.err
20137 rm -f conftest.er1
20138 cat conftest.err >&5
a848cd7e
SC
20139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20140 (exit $ac_status); } &&
c9a66001 20141 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
20142 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20143 (eval $ac_try) 2>&5
20144 ac_status=$?
20145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20146 (exit $ac_status); }; } &&
20147 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20148 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20149 (eval $ac_try) 2>&5
20150 ac_status=$?
20151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20152 (exit $ac_status); }; }; then
20153 ac_cv_type_long_long=yes
20154else
20155 echo "$as_me: failed program was:" >&5
20156sed 's/^/| /' conftest.$ac_ext >&5
20157
20158ac_cv_type_long_long=no
20159fi
ac1cb8d3 20160rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20161fi
20162echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
20163echo "${ECHO_T}$ac_cv_type_long_long" >&6
20164
20165echo "$as_me:$LINENO: checking size of long long" >&5
20166echo $ECHO_N "checking size of long long... $ECHO_C" >&6
20167if test "${ac_cv_sizeof_long_long+set}" = set; then
20168 echo $ECHO_N "(cached) $ECHO_C" >&6
20169else
20170 if test "$ac_cv_type_long_long" = yes; then
20171 # The cast to unsigned long works around a bug in the HP C Compiler
20172 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
20173 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
20174 # This bug is HP SR number 8606223364.
20175 if test "$cross_compiling" = yes; then
20176 # Depending upon the size, compute the lo and hi bounds.
20177cat >conftest.$ac_ext <<_ACEOF
20178/* confdefs.h. */
20179_ACEOF
20180cat confdefs.h >>conftest.$ac_ext
20181cat >>conftest.$ac_ext <<_ACEOF
20182/* end confdefs.h. */
20183$ac_includes_default
20184int
20185main ()
20186{
20187static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
20188test_array [0] = 0
20189
20190 ;
20191 return 0;
20192}
20193_ACEOF
20194rm -f conftest.$ac_objext
20195if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20196 (eval $ac_compile) 2>conftest.er1
a848cd7e 20197 ac_status=$?
ac1cb8d3
VS
20198 grep -v '^ *+' conftest.er1 >conftest.err
20199 rm -f conftest.er1
20200 cat conftest.err >&5
a848cd7e
SC
20201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20202 (exit $ac_status); } &&
c9a66001 20203 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
20204 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20205 (eval $ac_try) 2>&5
20206 ac_status=$?
20207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20208 (exit $ac_status); }; } &&
20209 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20210 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20211 (eval $ac_try) 2>&5
20212 ac_status=$?
20213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20214 (exit $ac_status); }; }; then
20215 ac_lo=0 ac_mid=0
20216 while :; do
20217 cat >conftest.$ac_ext <<_ACEOF
20218/* confdefs.h. */
20219_ACEOF
20220cat confdefs.h >>conftest.$ac_ext
20221cat >>conftest.$ac_ext <<_ACEOF
20222/* end confdefs.h. */
20223$ac_includes_default
20224int
20225main ()
20226{
20227static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
20228test_array [0] = 0
20229
20230 ;
20231 return 0;
20232}
20233_ACEOF
20234rm -f conftest.$ac_objext
20235if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20236 (eval $ac_compile) 2>conftest.er1
a848cd7e 20237 ac_status=$?
ac1cb8d3
VS
20238 grep -v '^ *+' conftest.er1 >conftest.err
20239 rm -f conftest.er1
20240 cat conftest.err >&5
a848cd7e
SC
20241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20242 (exit $ac_status); } &&
c9a66001 20243 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
20244 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20245 (eval $ac_try) 2>&5
20246 ac_status=$?
20247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20248 (exit $ac_status); }; } &&
20249 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20250 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20251 (eval $ac_try) 2>&5
20252 ac_status=$?
20253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20254 (exit $ac_status); }; }; then
20255 ac_hi=$ac_mid; break
20256else
20257 echo "$as_me: failed program was:" >&5
20258sed 's/^/| /' conftest.$ac_ext >&5
20259
20260ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
20261 if test $ac_lo -le $ac_mid; then
20262 ac_lo= ac_hi=
20263 break
20264 fi
20265 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 20266fi
ac1cb8d3 20267rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20268 done
20269else
20270 echo "$as_me: failed program was:" >&5
20271sed 's/^/| /' conftest.$ac_ext >&5
20272
20273cat >conftest.$ac_ext <<_ACEOF
20274/* confdefs.h. */
20275_ACEOF
20276cat confdefs.h >>conftest.$ac_ext
20277cat >>conftest.$ac_ext <<_ACEOF
20278/* end confdefs.h. */
20279$ac_includes_default
20280int
20281main ()
20282{
20283static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
20284test_array [0] = 0
20285
20286 ;
20287 return 0;
20288}
20289_ACEOF
20290rm -f conftest.$ac_objext
20291if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20292 (eval $ac_compile) 2>conftest.er1
a848cd7e 20293 ac_status=$?
ac1cb8d3
VS
20294 grep -v '^ *+' conftest.er1 >conftest.err
20295 rm -f conftest.er1
20296 cat conftest.err >&5
a848cd7e
SC
20297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20298 (exit $ac_status); } &&
c9a66001 20299 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
20300 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20301 (eval $ac_try) 2>&5
20302 ac_status=$?
20303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20304 (exit $ac_status); }; } &&
20305 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20306 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20307 (eval $ac_try) 2>&5
20308 ac_status=$?
20309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20310 (exit $ac_status); }; }; then
20311 ac_hi=-1 ac_mid=-1
20312 while :; do
20313 cat >conftest.$ac_ext <<_ACEOF
20314/* confdefs.h. */
20315_ACEOF
20316cat confdefs.h >>conftest.$ac_ext
20317cat >>conftest.$ac_ext <<_ACEOF
20318/* end confdefs.h. */
20319$ac_includes_default
20320int
20321main ()
20322{
20323static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
20324test_array [0] = 0
20325
20326 ;
20327 return 0;
20328}
20329_ACEOF
20330rm -f conftest.$ac_objext
20331if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20332 (eval $ac_compile) 2>conftest.er1
a848cd7e 20333 ac_status=$?
ac1cb8d3
VS
20334 grep -v '^ *+' conftest.er1 >conftest.err
20335 rm -f conftest.er1
20336 cat conftest.err >&5
a848cd7e
SC
20337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20338 (exit $ac_status); } &&
c9a66001 20339 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
20340 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20341 (eval $ac_try) 2>&5
20342 ac_status=$?
20343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20344 (exit $ac_status); }; } &&
20345 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20346 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20347 (eval $ac_try) 2>&5
20348 ac_status=$?
20349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20350 (exit $ac_status); }; }; then
20351 ac_lo=$ac_mid; break
20352else
20353 echo "$as_me: failed program was:" >&5
20354sed 's/^/| /' conftest.$ac_ext >&5
20355
20356ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
20357 if test $ac_mid -le $ac_hi; then
20358 ac_lo= ac_hi=
20359 break
20360 fi
20361 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 20362fi
ac1cb8d3 20363rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20364 done
20365else
20366 echo "$as_me: failed program was:" >&5
20367sed 's/^/| /' conftest.$ac_ext >&5
20368
20369ac_lo= ac_hi=
20370fi
ac1cb8d3 20371rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 20372fi
ac1cb8d3 20373rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20374# Binary search between lo and hi bounds.
20375while test "x$ac_lo" != "x$ac_hi"; do
20376 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
20377 cat >conftest.$ac_ext <<_ACEOF
20378/* confdefs.h. */
20379_ACEOF
20380cat confdefs.h >>conftest.$ac_ext
20381cat >>conftest.$ac_ext <<_ACEOF
20382/* end confdefs.h. */
20383$ac_includes_default
20384int
20385main ()
20386{
20387static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
20388test_array [0] = 0
20389
20390 ;
20391 return 0;
20392}
20393_ACEOF
20394rm -f conftest.$ac_objext
20395if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20396 (eval $ac_compile) 2>conftest.er1
a848cd7e 20397 ac_status=$?
ac1cb8d3
VS
20398 grep -v '^ *+' conftest.er1 >conftest.err
20399 rm -f conftest.er1
20400 cat conftest.err >&5
a848cd7e
SC
20401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20402 (exit $ac_status); } &&
c9a66001 20403 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
20404 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20405 (eval $ac_try) 2>&5
20406 ac_status=$?
20407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20408 (exit $ac_status); }; } &&
20409 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20410 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20411 (eval $ac_try) 2>&5
20412 ac_status=$?
20413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20414 (exit $ac_status); }; }; then
20415 ac_hi=$ac_mid
20416else
20417 echo "$as_me: failed program was:" >&5
20418sed 's/^/| /' conftest.$ac_ext >&5
20419
20420ac_lo=`expr '(' $ac_mid ')' + 1`
20421fi
ac1cb8d3 20422rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20423done
20424case $ac_lo in
20425?*) ac_cv_sizeof_long_long=$ac_lo;;
20426'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
20427See \`config.log' for more details." >&5
20428echo "$as_me: error: cannot compute sizeof (long long), 77
20429See \`config.log' for more details." >&2;}
20430 { (exit 1); exit 1; }; } ;;
20431esac
20432else
20433 if test "$cross_compiling" = yes; then
c9a66001
VZ
20434 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
20435echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
a848cd7e
SC
20436 { (exit 1); exit 1; }; }
20437else
20438 cat >conftest.$ac_ext <<_ACEOF
20439/* confdefs.h. */
20440_ACEOF
20441cat confdefs.h >>conftest.$ac_ext
20442cat >>conftest.$ac_ext <<_ACEOF
20443/* end confdefs.h. */
20444$ac_includes_default
20445long longval () { return (long) (sizeof (long long)); }
20446unsigned long ulongval () { return (long) (sizeof (long long)); }
20447#include <stdio.h>
20448#include <stdlib.h>
20449int
20450main ()
20451{
20452
20453 FILE *f = fopen ("conftest.val", "w");
20454 if (! f)
20455 exit (1);
20456 if (((long) (sizeof (long long))) < 0)
20457 {
20458 long i = longval ();
20459 if (i != ((long) (sizeof (long long))))
20460 exit (1);
20461 fprintf (f, "%ld\n", i);
20462 }
20463 else
20464 {
20465 unsigned long i = ulongval ();
20466 if (i != ((long) (sizeof (long long))))
20467 exit (1);
20468 fprintf (f, "%lu\n", i);
20469 }
20470 exit (ferror (f) || fclose (f) != 0);
20471
20472 ;
20473 return 0;
20474}
20475_ACEOF
20476rm -f conftest$ac_exeext
20477if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20478 (eval $ac_link) 2>&5
20479 ac_status=$?
20480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20481 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20482 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20483 (eval $ac_try) 2>&5
20484 ac_status=$?
20485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20486 (exit $ac_status); }; }; then
20487 ac_cv_sizeof_long_long=`cat conftest.val`
20488else
20489 echo "$as_me: program exited with status $ac_status" >&5
20490echo "$as_me: failed program was:" >&5
20491sed 's/^/| /' conftest.$ac_ext >&5
20492
20493( exit $ac_status )
20494{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
20495See \`config.log' for more details." >&5
20496echo "$as_me: error: cannot compute sizeof (long long), 77
20497See \`config.log' for more details." >&2;}
20498 { (exit 1); exit 1; }; }
20499fi
ac1cb8d3 20500rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20501fi
20502fi
20503rm -f conftest.val
20504else
20505 ac_cv_sizeof_long_long=0
20506fi
20507fi
20508echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
20509echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
20510cat >>confdefs.h <<_ACEOF
20511#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
20512_ACEOF
20513
20514
20515 ;;
20516 *-hp-hpux* )
20517 echo "$as_me:$LINENO: checking for long long" >&5
20518echo $ECHO_N "checking for long long... $ECHO_C" >&6
20519if test "${ac_cv_type_long_long+set}" = set; then
20520 echo $ECHO_N "(cached) $ECHO_C" >&6
20521else
20522 cat >conftest.$ac_ext <<_ACEOF
20523/* confdefs.h. */
20524_ACEOF
20525cat confdefs.h >>conftest.$ac_ext
20526cat >>conftest.$ac_ext <<_ACEOF
20527/* end confdefs.h. */
20528$ac_includes_default
20529int
20530main ()
20531{
20532if ((long long *) 0)
20533 return 0;
20534if (sizeof (long long))
20535 return 0;
20536 ;
20537 return 0;
20538}
20539_ACEOF
20540rm -f conftest.$ac_objext
20541if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20542 (eval $ac_compile) 2>conftest.er1
a848cd7e 20543 ac_status=$?
ac1cb8d3
VS
20544 grep -v '^ *+' conftest.er1 >conftest.err
20545 rm -f conftest.er1
20546 cat conftest.err >&5
a848cd7e
SC
20547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20548 (exit $ac_status); } &&
c9a66001 20549 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
20550 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20551 (eval $ac_try) 2>&5
20552 ac_status=$?
20553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20554 (exit $ac_status); }; } &&
20555 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20556 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20557 (eval $ac_try) 2>&5
20558 ac_status=$?
20559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20560 (exit $ac_status); }; }; then
20561 ac_cv_type_long_long=yes
20562else
20563 echo "$as_me: failed program was:" >&5
20564sed 's/^/| /' conftest.$ac_ext >&5
20565
20566ac_cv_type_long_long=no
20567fi
ac1cb8d3 20568rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20569fi
20570echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
20571echo "${ECHO_T}$ac_cv_type_long_long" >&6
20572
20573echo "$as_me:$LINENO: checking size of long long" >&5
20574echo $ECHO_N "checking size of long long... $ECHO_C" >&6
20575if test "${ac_cv_sizeof_long_long+set}" = set; then
20576 echo $ECHO_N "(cached) $ECHO_C" >&6
20577else
20578 if test "$ac_cv_type_long_long" = yes; then
20579 # The cast to unsigned long works around a bug in the HP C Compiler
20580 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
20581 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
20582 # This bug is HP SR number 8606223364.
20583 if test "$cross_compiling" = yes; then
20584 # Depending upon the size, compute the lo and hi bounds.
20585cat >conftest.$ac_ext <<_ACEOF
20586/* confdefs.h. */
20587_ACEOF
20588cat confdefs.h >>conftest.$ac_ext
20589cat >>conftest.$ac_ext <<_ACEOF
20590/* end confdefs.h. */
20591$ac_includes_default
20592int
20593main ()
20594{
20595static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
20596test_array [0] = 0
20597
20598 ;
20599 return 0;
20600}
20601_ACEOF
20602rm -f conftest.$ac_objext
20603if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20604 (eval $ac_compile) 2>conftest.er1
a848cd7e 20605 ac_status=$?
ac1cb8d3
VS
20606 grep -v '^ *+' conftest.er1 >conftest.err
20607 rm -f conftest.er1
20608 cat conftest.err >&5
a848cd7e
SC
20609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20610 (exit $ac_status); } &&
c9a66001 20611 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
20612 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20613 (eval $ac_try) 2>&5
20614 ac_status=$?
20615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20616 (exit $ac_status); }; } &&
20617 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20618 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20619 (eval $ac_try) 2>&5
20620 ac_status=$?
20621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20622 (exit $ac_status); }; }; then
20623 ac_lo=0 ac_mid=0
20624 while :; do
20625 cat >conftest.$ac_ext <<_ACEOF
20626/* confdefs.h. */
20627_ACEOF
20628cat confdefs.h >>conftest.$ac_ext
20629cat >>conftest.$ac_ext <<_ACEOF
20630/* end confdefs.h. */
20631$ac_includes_default
20632int
20633main ()
20634{
20635static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
20636test_array [0] = 0
20637
20638 ;
20639 return 0;
20640}
20641_ACEOF
20642rm -f conftest.$ac_objext
20643if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20644 (eval $ac_compile) 2>conftest.er1
a848cd7e 20645 ac_status=$?
ac1cb8d3
VS
20646 grep -v '^ *+' conftest.er1 >conftest.err
20647 rm -f conftest.er1
20648 cat conftest.err >&5
a848cd7e
SC
20649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20650 (exit $ac_status); } &&
c9a66001 20651 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
20652 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20653 (eval $ac_try) 2>&5
20654 ac_status=$?
20655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20656 (exit $ac_status); }; } &&
20657 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20658 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20659 (eval $ac_try) 2>&5
20660 ac_status=$?
20661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20662 (exit $ac_status); }; }; then
20663 ac_hi=$ac_mid; break
20664else
20665 echo "$as_me: failed program was:" >&5
20666sed 's/^/| /' conftest.$ac_ext >&5
20667
20668ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
20669 if test $ac_lo -le $ac_mid; then
20670 ac_lo= ac_hi=
20671 break
20672 fi
20673 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 20674fi
ac1cb8d3 20675rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20676 done
20677else
20678 echo "$as_me: failed program was:" >&5
20679sed 's/^/| /' conftest.$ac_ext >&5
20680
20681cat >conftest.$ac_ext <<_ACEOF
20682/* confdefs.h. */
20683_ACEOF
20684cat confdefs.h >>conftest.$ac_ext
20685cat >>conftest.$ac_ext <<_ACEOF
20686/* end confdefs.h. */
20687$ac_includes_default
20688int
20689main ()
20690{
20691static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
20692test_array [0] = 0
20693
20694 ;
20695 return 0;
20696}
20697_ACEOF
20698rm -f conftest.$ac_objext
20699if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20700 (eval $ac_compile) 2>conftest.er1
a848cd7e 20701 ac_status=$?
ac1cb8d3
VS
20702 grep -v '^ *+' conftest.er1 >conftest.err
20703 rm -f conftest.er1
20704 cat conftest.err >&5
a848cd7e
SC
20705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20706 (exit $ac_status); } &&
c9a66001 20707 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
20708 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20709 (eval $ac_try) 2>&5
20710 ac_status=$?
20711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20712 (exit $ac_status); }; } &&
20713 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20714 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20715 (eval $ac_try) 2>&5
20716 ac_status=$?
20717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20718 (exit $ac_status); }; }; then
20719 ac_hi=-1 ac_mid=-1
20720 while :; do
20721 cat >conftest.$ac_ext <<_ACEOF
20722/* confdefs.h. */
20723_ACEOF
20724cat confdefs.h >>conftest.$ac_ext
20725cat >>conftest.$ac_ext <<_ACEOF
20726/* end confdefs.h. */
20727$ac_includes_default
20728int
20729main ()
20730{
20731static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
20732test_array [0] = 0
20733
20734 ;
20735 return 0;
20736}
20737_ACEOF
20738rm -f conftest.$ac_objext
20739if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20740 (eval $ac_compile) 2>conftest.er1
a848cd7e 20741 ac_status=$?
ac1cb8d3
VS
20742 grep -v '^ *+' conftest.er1 >conftest.err
20743 rm -f conftest.er1
20744 cat conftest.err >&5
a848cd7e
SC
20745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20746 (exit $ac_status); } &&
c9a66001 20747 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
20748 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20749 (eval $ac_try) 2>&5
20750 ac_status=$?
20751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20752 (exit $ac_status); }; } &&
20753 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20754 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20755 (eval $ac_try) 2>&5
20756 ac_status=$?
20757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20758 (exit $ac_status); }; }; then
20759 ac_lo=$ac_mid; break
20760else
20761 echo "$as_me: failed program was:" >&5
20762sed 's/^/| /' conftest.$ac_ext >&5
20763
20764ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
20765 if test $ac_mid -le $ac_hi; then
20766 ac_lo= ac_hi=
20767 break
20768 fi
20769 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 20770fi
ac1cb8d3 20771rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20772 done
20773else
20774 echo "$as_me: failed program was:" >&5
20775sed 's/^/| /' conftest.$ac_ext >&5
20776
20777ac_lo= ac_hi=
20778fi
ac1cb8d3 20779rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 20780fi
ac1cb8d3 20781rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20782# Binary search between lo and hi bounds.
20783while test "x$ac_lo" != "x$ac_hi"; do
20784 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
20785 cat >conftest.$ac_ext <<_ACEOF
20786/* confdefs.h. */
20787_ACEOF
20788cat confdefs.h >>conftest.$ac_ext
20789cat >>conftest.$ac_ext <<_ACEOF
20790/* end confdefs.h. */
20791$ac_includes_default
20792int
20793main ()
20794{
20795static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
20796test_array [0] = 0
20797
20798 ;
20799 return 0;
20800}
20801_ACEOF
20802rm -f conftest.$ac_objext
20803if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20804 (eval $ac_compile) 2>conftest.er1
a848cd7e 20805 ac_status=$?
ac1cb8d3
VS
20806 grep -v '^ *+' conftest.er1 >conftest.err
20807 rm -f conftest.er1
20808 cat conftest.err >&5
a848cd7e
SC
20809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20810 (exit $ac_status); } &&
c9a66001 20811 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
20812 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20813 (eval $ac_try) 2>&5
20814 ac_status=$?
20815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20816 (exit $ac_status); }; } &&
20817 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20818 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20819 (eval $ac_try) 2>&5
20820 ac_status=$?
20821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20822 (exit $ac_status); }; }; then
20823 ac_hi=$ac_mid
20824else
20825 echo "$as_me: failed program was:" >&5
20826sed 's/^/| /' conftest.$ac_ext >&5
20827
20828ac_lo=`expr '(' $ac_mid ')' + 1`
20829fi
ac1cb8d3 20830rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20831done
20832case $ac_lo in
20833?*) ac_cv_sizeof_long_long=$ac_lo;;
20834'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
20835See \`config.log' for more details." >&5
20836echo "$as_me: error: cannot compute sizeof (long long), 77
20837See \`config.log' for more details." >&2;}
20838 { (exit 1); exit 1; }; } ;;
20839esac
20840else
20841 if test "$cross_compiling" = yes; then
c9a66001
VZ
20842 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
20843echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
a848cd7e
SC
20844 { (exit 1); exit 1; }; }
20845else
20846 cat >conftest.$ac_ext <<_ACEOF
20847/* confdefs.h. */
20848_ACEOF
20849cat confdefs.h >>conftest.$ac_ext
20850cat >>conftest.$ac_ext <<_ACEOF
20851/* end confdefs.h. */
20852$ac_includes_default
20853long longval () { return (long) (sizeof (long long)); }
20854unsigned long ulongval () { return (long) (sizeof (long long)); }
20855#include <stdio.h>
20856#include <stdlib.h>
20857int
20858main ()
20859{
20860
20861 FILE *f = fopen ("conftest.val", "w");
20862 if (! f)
20863 exit (1);
20864 if (((long) (sizeof (long long))) < 0)
20865 {
20866 long i = longval ();
20867 if (i != ((long) (sizeof (long long))))
20868 exit (1);
20869 fprintf (f, "%ld\n", i);
20870 }
20871 else
20872 {
20873 unsigned long i = ulongval ();
20874 if (i != ((long) (sizeof (long long))))
20875 exit (1);
20876 fprintf (f, "%lu\n", i);
20877 }
20878 exit (ferror (f) || fclose (f) != 0);
20879
20880 ;
20881 return 0;
20882}
20883_ACEOF
20884rm -f conftest$ac_exeext
20885if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20886 (eval $ac_link) 2>&5
20887 ac_status=$?
20888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20889 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20890 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20891 (eval $ac_try) 2>&5
20892 ac_status=$?
20893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20894 (exit $ac_status); }; }; then
20895 ac_cv_sizeof_long_long=`cat conftest.val`
20896else
20897 echo "$as_me: program exited with status $ac_status" >&5
20898echo "$as_me: failed program was:" >&5
20899sed 's/^/| /' conftest.$ac_ext >&5
20900
20901( exit $ac_status )
20902{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
20903See \`config.log' for more details." >&5
20904echo "$as_me: error: cannot compute sizeof (long long), 77
20905See \`config.log' for more details." >&2;}
20906 { (exit 1); exit 1; }; }
20907fi
ac1cb8d3 20908rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20909fi
20910fi
20911rm -f conftest.val
20912else
20913 ac_cv_sizeof_long_long=0
20914fi
20915fi
20916echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
20917echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
20918cat >>confdefs.h <<_ACEOF
20919#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
20920_ACEOF
20921
20922
20923 if test "$ac_cv_sizeof_long_long" != "0"; then
c92ad099 20924 CPPFLAGS="-D_INCLUDE_LONGLONG $CPPFLAGS"
a848cd7e
SC
20925 fi
20926 ;;
20927 * )
20928 echo "$as_me:$LINENO: checking for long long" >&5
20929echo $ECHO_N "checking for long long... $ECHO_C" >&6
20930if test "${ac_cv_type_long_long+set}" = set; then
20931 echo $ECHO_N "(cached) $ECHO_C" >&6
20932else
20933 cat >conftest.$ac_ext <<_ACEOF
20934/* confdefs.h. */
20935_ACEOF
20936cat confdefs.h >>conftest.$ac_ext
20937cat >>conftest.$ac_ext <<_ACEOF
20938/* end confdefs.h. */
20939$ac_includes_default
20940int
20941main ()
20942{
20943if ((long long *) 0)
20944 return 0;
20945if (sizeof (long long))
20946 return 0;
20947 ;
20948 return 0;
20949}
20950_ACEOF
20951rm -f conftest.$ac_objext
20952if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20953 (eval $ac_compile) 2>conftest.er1
a848cd7e 20954 ac_status=$?
ac1cb8d3
VS
20955 grep -v '^ *+' conftest.er1 >conftest.err
20956 rm -f conftest.er1
20957 cat conftest.err >&5
a848cd7e
SC
20958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20959 (exit $ac_status); } &&
c9a66001 20960 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
20961 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20962 (eval $ac_try) 2>&5
20963 ac_status=$?
20964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20965 (exit $ac_status); }; } &&
20966 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20967 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20968 (eval $ac_try) 2>&5
20969 ac_status=$?
20970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20971 (exit $ac_status); }; }; then
20972 ac_cv_type_long_long=yes
20973else
20974 echo "$as_me: failed program was:" >&5
20975sed 's/^/| /' conftest.$ac_ext >&5
20976
20977ac_cv_type_long_long=no
20978fi
ac1cb8d3 20979rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20980fi
20981echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
20982echo "${ECHO_T}$ac_cv_type_long_long" >&6
20983
20984echo "$as_me:$LINENO: checking size of long long" >&5
20985echo $ECHO_N "checking size of long long... $ECHO_C" >&6
20986if test "${ac_cv_sizeof_long_long+set}" = set; then
20987 echo $ECHO_N "(cached) $ECHO_C" >&6
20988else
20989 if test "$ac_cv_type_long_long" = yes; then
20990 # The cast to unsigned long works around a bug in the HP C Compiler
20991 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
20992 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
20993 # This bug is HP SR number 8606223364.
20994 if test "$cross_compiling" = yes; then
20995 # Depending upon the size, compute the lo and hi bounds.
20996cat >conftest.$ac_ext <<_ACEOF
20997/* confdefs.h. */
20998_ACEOF
20999cat confdefs.h >>conftest.$ac_ext
21000cat >>conftest.$ac_ext <<_ACEOF
21001/* end confdefs.h. */
21002$ac_includes_default
21003int
21004main ()
21005{
21006static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
21007test_array [0] = 0
21008
21009 ;
21010 return 0;
21011}
21012_ACEOF
21013rm -f conftest.$ac_objext
21014if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21015 (eval $ac_compile) 2>conftest.er1
a848cd7e 21016 ac_status=$?
ac1cb8d3
VS
21017 grep -v '^ *+' conftest.er1 >conftest.err
21018 rm -f conftest.er1
21019 cat conftest.err >&5
a848cd7e
SC
21020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21021 (exit $ac_status); } &&
c9a66001 21022 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
21023 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21024 (eval $ac_try) 2>&5
21025 ac_status=$?
21026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21027 (exit $ac_status); }; } &&
21028 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
21029 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21030 (eval $ac_try) 2>&5
21031 ac_status=$?
21032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21033 (exit $ac_status); }; }; then
21034 ac_lo=0 ac_mid=0
21035 while :; do
21036 cat >conftest.$ac_ext <<_ACEOF
21037/* confdefs.h. */
21038_ACEOF
21039cat confdefs.h >>conftest.$ac_ext
21040cat >>conftest.$ac_ext <<_ACEOF
21041/* end confdefs.h. */
21042$ac_includes_default
21043int
21044main ()
21045{
21046static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
21047test_array [0] = 0
21048
21049 ;
21050 return 0;
21051}
21052_ACEOF
21053rm -f conftest.$ac_objext
21054if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21055 (eval $ac_compile) 2>conftest.er1
a848cd7e 21056 ac_status=$?
ac1cb8d3
VS
21057 grep -v '^ *+' conftest.er1 >conftest.err
21058 rm -f conftest.er1
21059 cat conftest.err >&5
a848cd7e
SC
21060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21061 (exit $ac_status); } &&
c9a66001 21062 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
21063 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21064 (eval $ac_try) 2>&5
21065 ac_status=$?
21066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21067 (exit $ac_status); }; } &&
21068 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
21069 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21070 (eval $ac_try) 2>&5
21071 ac_status=$?
21072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21073 (exit $ac_status); }; }; then
21074 ac_hi=$ac_mid; break
21075else
21076 echo "$as_me: failed program was:" >&5
21077sed 's/^/| /' conftest.$ac_ext >&5
21078
21079ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
21080 if test $ac_lo -le $ac_mid; then
21081 ac_lo= ac_hi=
21082 break
21083 fi
21084 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 21085fi
ac1cb8d3 21086rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
21087 done
21088else
21089 echo "$as_me: failed program was:" >&5
21090sed 's/^/| /' conftest.$ac_ext >&5
21091
21092cat >conftest.$ac_ext <<_ACEOF
21093/* confdefs.h. */
21094_ACEOF
21095cat confdefs.h >>conftest.$ac_ext
21096cat >>conftest.$ac_ext <<_ACEOF
21097/* end confdefs.h. */
21098$ac_includes_default
21099int
21100main ()
21101{
21102static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
21103test_array [0] = 0
21104
21105 ;
21106 return 0;
21107}
21108_ACEOF
21109rm -f conftest.$ac_objext
21110if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21111 (eval $ac_compile) 2>conftest.er1
a848cd7e 21112 ac_status=$?
ac1cb8d3
VS
21113 grep -v '^ *+' conftest.er1 >conftest.err
21114 rm -f conftest.er1
21115 cat conftest.err >&5
a848cd7e
SC
21116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21117 (exit $ac_status); } &&
c9a66001 21118 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
21119 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21120 (eval $ac_try) 2>&5
21121 ac_status=$?
21122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21123 (exit $ac_status); }; } &&
21124 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
21125 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21126 (eval $ac_try) 2>&5
21127 ac_status=$?
21128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21129 (exit $ac_status); }; }; then
21130 ac_hi=-1 ac_mid=-1
21131 while :; do
21132 cat >conftest.$ac_ext <<_ACEOF
21133/* confdefs.h. */
21134_ACEOF
21135cat confdefs.h >>conftest.$ac_ext
21136cat >>conftest.$ac_ext <<_ACEOF
21137/* end confdefs.h. */
21138$ac_includes_default
21139int
21140main ()
21141{
21142static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
21143test_array [0] = 0
21144
21145 ;
21146 return 0;
21147}
21148_ACEOF
21149rm -f conftest.$ac_objext
21150if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21151 (eval $ac_compile) 2>conftest.er1
a848cd7e 21152 ac_status=$?
ac1cb8d3
VS
21153 grep -v '^ *+' conftest.er1 >conftest.err
21154 rm -f conftest.er1
21155 cat conftest.err >&5
a848cd7e
SC
21156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21157 (exit $ac_status); } &&
c9a66001 21158 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
21159 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21160 (eval $ac_try) 2>&5
21161 ac_status=$?
21162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21163 (exit $ac_status); }; } &&
21164 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
21165 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21166 (eval $ac_try) 2>&5
21167 ac_status=$?
21168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21169 (exit $ac_status); }; }; then
21170 ac_lo=$ac_mid; break
21171else
21172 echo "$as_me: failed program was:" >&5
21173sed 's/^/| /' conftest.$ac_ext >&5
21174
21175ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
21176 if test $ac_mid -le $ac_hi; then
21177 ac_lo= ac_hi=
21178 break
21179 fi
21180 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 21181fi
ac1cb8d3 21182rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
21183 done
21184else
21185 echo "$as_me: failed program was:" >&5
21186sed 's/^/| /' conftest.$ac_ext >&5
21187
21188ac_lo= ac_hi=
21189fi
ac1cb8d3 21190rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 21191fi
ac1cb8d3 21192rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
21193# Binary search between lo and hi bounds.
21194while test "x$ac_lo" != "x$ac_hi"; do
21195 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
21196 cat >conftest.$ac_ext <<_ACEOF
21197/* confdefs.h. */
21198_ACEOF
21199cat confdefs.h >>conftest.$ac_ext
21200cat >>conftest.$ac_ext <<_ACEOF
21201/* end confdefs.h. */
21202$ac_includes_default
21203int
21204main ()
21205{
21206static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
21207test_array [0] = 0
21208
21209 ;
21210 return 0;
21211}
21212_ACEOF
21213rm -f conftest.$ac_objext
21214if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21215 (eval $ac_compile) 2>conftest.er1
a848cd7e 21216 ac_status=$?
ac1cb8d3
VS
21217 grep -v '^ *+' conftest.er1 >conftest.err
21218 rm -f conftest.er1
21219 cat conftest.err >&5
a848cd7e
SC
21220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21221 (exit $ac_status); } &&
c9a66001 21222 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
21223 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21224 (eval $ac_try) 2>&5
21225 ac_status=$?
21226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21227 (exit $ac_status); }; } &&
21228 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
21229 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21230 (eval $ac_try) 2>&5
21231 ac_status=$?
21232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21233 (exit $ac_status); }; }; then
21234 ac_hi=$ac_mid
21235else
21236 echo "$as_me: failed program was:" >&5
21237sed 's/^/| /' conftest.$ac_ext >&5
21238
21239ac_lo=`expr '(' $ac_mid ')' + 1`
21240fi
ac1cb8d3 21241rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
21242done
21243case $ac_lo in
21244?*) ac_cv_sizeof_long_long=$ac_lo;;
21245'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
21246See \`config.log' for more details." >&5
21247echo "$as_me: error: cannot compute sizeof (long long), 77
21248See \`config.log' for more details." >&2;}
21249 { (exit 1); exit 1; }; } ;;
21250esac
21251else
21252 if test "$cross_compiling" = yes; then
c9a66001
VZ
21253 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
21254echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
a848cd7e
SC
21255 { (exit 1); exit 1; }; }
21256else
21257 cat >conftest.$ac_ext <<_ACEOF
21258/* confdefs.h. */
21259_ACEOF
21260cat confdefs.h >>conftest.$ac_ext
21261cat >>conftest.$ac_ext <<_ACEOF
21262/* end confdefs.h. */
21263$ac_includes_default
21264long longval () { return (long) (sizeof (long long)); }
21265unsigned long ulongval () { return (long) (sizeof (long long)); }
21266#include <stdio.h>
21267#include <stdlib.h>
21268int
21269main ()
21270{
21271
21272 FILE *f = fopen ("conftest.val", "w");
21273 if (! f)
21274 exit (1);
21275 if (((long) (sizeof (long long))) < 0)
21276 {
21277 long i = longval ();
21278 if (i != ((long) (sizeof (long long))))
21279 exit (1);
21280 fprintf (f, "%ld\n", i);
21281 }
21282 else
21283 {
21284 unsigned long i = ulongval ();
21285 if (i != ((long) (sizeof (long long))))
21286 exit (1);
21287 fprintf (f, "%lu\n", i);
21288 }
21289 exit (ferror (f) || fclose (f) != 0);
21290
21291 ;
21292 return 0;
21293}
21294_ACEOF
21295rm -f conftest$ac_exeext
21296if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21297 (eval $ac_link) 2>&5
21298 ac_status=$?
21299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21300 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21301 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21302 (eval $ac_try) 2>&5
21303 ac_status=$?
21304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21305 (exit $ac_status); }; }; then
21306 ac_cv_sizeof_long_long=`cat conftest.val`
21307else
21308 echo "$as_me: program exited with status $ac_status" >&5
21309echo "$as_me: failed program was:" >&5
21310sed 's/^/| /' conftest.$ac_ext >&5
21311
21312( exit $ac_status )
21313{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
21314See \`config.log' for more details." >&5
21315echo "$as_me: error: cannot compute sizeof (long long), 77
21316See \`config.log' for more details." >&2;}
21317 { (exit 1); exit 1; }; }
21318fi
ac1cb8d3 21319rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
21320fi
21321fi
21322rm -f conftest.val
21323else
21324 ac_cv_sizeof_long_long=0
21325fi
21326fi
21327echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
21328echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
21329cat >>confdefs.h <<_ACEOF
21330#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
21331_ACEOF
21332
21333
21334esac
21335
238ecede
MW
21336echo "$as_me:$LINENO: checking for wchar_t" >&5
21337echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6
21338if test "${ac_cv_type_wchar_t+set}" = set; then
21339 echo $ECHO_N "(cached) $ECHO_C" >&6
21340else
21341 cat >conftest.$ac_ext <<_ACEOF
21342/* confdefs.h. */
21343_ACEOF
21344cat confdefs.h >>conftest.$ac_ext
21345cat >>conftest.$ac_ext <<_ACEOF
21346/* end confdefs.h. */
21347
83d8eb47
MW
21348 /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
21349 #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
238ecede
MW
21350 # error "fake wchar_t"
21351 #endif
21352 #ifdef HAVE_WCHAR_H
21353 # ifdef __CYGWIN__
21354 # include <stddef.h>
21355 # endif
21356 # include <wchar.h>
21357 #endif
21358 #ifdef HAVE_STDLIB_H
21359 # include <stdlib.h>
21360 #endif
21361 #include <stdio.h>
21362
21363
21364
21365int
21366main ()
21367{
21368if ((wchar_t *) 0)
21369 return 0;
21370if (sizeof (wchar_t))
21371 return 0;
21372 ;
21373 return 0;
21374}
21375_ACEOF
21376rm -f conftest.$ac_objext
21377if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21378 (eval $ac_compile) 2>conftest.er1
21379 ac_status=$?
21380 grep -v '^ *+' conftest.er1 >conftest.err
21381 rm -f conftest.er1
21382 cat conftest.err >&5
21383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21384 (exit $ac_status); } &&
c9a66001 21385 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
238ecede
MW
21386 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21387 (eval $ac_try) 2>&5
21388 ac_status=$?
21389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21390 (exit $ac_status); }; } &&
21391 { ac_try='test -s conftest.$ac_objext'
21392 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21393 (eval $ac_try) 2>&5
21394 ac_status=$?
21395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21396 (exit $ac_status); }; }; then
21397 ac_cv_type_wchar_t=yes
21398else
21399 echo "$as_me: failed program was:" >&5
21400sed 's/^/| /' conftest.$ac_ext >&5
21401
21402ac_cv_type_wchar_t=no
21403fi
21404rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21405fi
21406echo "$as_me:$LINENO: result: $ac_cv_type_wchar_t" >&5
21407echo "${ECHO_T}$ac_cv_type_wchar_t" >&6
21408
a848cd7e
SC
21409echo "$as_me:$LINENO: checking size of wchar_t" >&5
21410echo $ECHO_N "checking size of wchar_t... $ECHO_C" >&6
238ecede 21411if test "${ac_cv_sizeof_wchar_t+set}" = set; then
a848cd7e
SC
21412 echo $ECHO_N "(cached) $ECHO_C" >&6
21413else
238ecede
MW
21414 if test "$ac_cv_type_wchar_t" = yes; then
21415 # The cast to unsigned long works around a bug in the HP C Compiler
21416 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21417 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21418 # This bug is HP SR number 8606223364.
21419 if test "$cross_compiling" = yes; then
21420 # Depending upon the size, compute the lo and hi bounds.
21421cat >conftest.$ac_ext <<_ACEOF
21422/* confdefs.h. */
21423_ACEOF
21424cat confdefs.h >>conftest.$ac_ext
21425cat >>conftest.$ac_ext <<_ACEOF
21426/* end confdefs.h. */
21427
83d8eb47
MW
21428 /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
21429 #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
238ecede
MW
21430 # error "fake wchar_t"
21431 #endif
21432 #ifdef HAVE_WCHAR_H
21433 # ifdef __CYGWIN__
21434 # include <stddef.h>
21435 # endif
21436 # include <wchar.h>
21437 #endif
21438 #ifdef HAVE_STDLIB_H
21439 # include <stdlib.h>
21440 #endif
21441 #include <stdio.h>
21442
21443
21444
21445int
21446main ()
21447{
21448static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) >= 0)];
21449test_array [0] = 0
21450
21451 ;
21452 return 0;
21453}
21454_ACEOF
21455rm -f conftest.$ac_objext
21456if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21457 (eval $ac_compile) 2>conftest.er1
21458 ac_status=$?
21459 grep -v '^ *+' conftest.er1 >conftest.err
21460 rm -f conftest.er1
21461 cat conftest.err >&5
21462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21463 (exit $ac_status); } &&
c9a66001 21464 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
238ecede
MW
21465 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21466 (eval $ac_try) 2>&5
21467 ac_status=$?
21468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21469 (exit $ac_status); }; } &&
21470 { ac_try='test -s conftest.$ac_objext'
21471 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21472 (eval $ac_try) 2>&5
21473 ac_status=$?
21474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21475 (exit $ac_status); }; }; then
21476 ac_lo=0 ac_mid=0
21477 while :; do
21478 cat >conftest.$ac_ext <<_ACEOF
21479/* confdefs.h. */
21480_ACEOF
21481cat confdefs.h >>conftest.$ac_ext
21482cat >>conftest.$ac_ext <<_ACEOF
21483/* end confdefs.h. */
21484
83d8eb47
MW
21485 /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
21486 #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
238ecede
MW
21487 # error "fake wchar_t"
21488 #endif
21489 #ifdef HAVE_WCHAR_H
21490 # ifdef __CYGWIN__
21491 # include <stddef.h>
21492 # endif
21493 # include <wchar.h>
21494 #endif
21495 #ifdef HAVE_STDLIB_H
21496 # include <stdlib.h>
21497 #endif
21498 #include <stdio.h>
21499
21500
21501
21502int
21503main ()
21504{
21505static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) <= $ac_mid)];
21506test_array [0] = 0
21507
21508 ;
21509 return 0;
21510}
21511_ACEOF
21512rm -f conftest.$ac_objext
21513if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21514 (eval $ac_compile) 2>conftest.er1
21515 ac_status=$?
21516 grep -v '^ *+' conftest.er1 >conftest.err
21517 rm -f conftest.er1
21518 cat conftest.err >&5
21519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21520 (exit $ac_status); } &&
c9a66001 21521 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
238ecede
MW
21522 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21523 (eval $ac_try) 2>&5
21524 ac_status=$?
21525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21526 (exit $ac_status); }; } &&
21527 { ac_try='test -s conftest.$ac_objext'
21528 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21529 (eval $ac_try) 2>&5
21530 ac_status=$?
21531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21532 (exit $ac_status); }; }; then
21533 ac_hi=$ac_mid; break
21534else
21535 echo "$as_me: failed program was:" >&5
21536sed 's/^/| /' conftest.$ac_ext >&5
21537
21538ac_lo=`expr $ac_mid + 1`
21539 if test $ac_lo -le $ac_mid; then
21540 ac_lo= ac_hi=
21541 break
21542 fi
21543 ac_mid=`expr 2 '*' $ac_mid + 1`
21544fi
21545rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21546 done
21547else
21548 echo "$as_me: failed program was:" >&5
21549sed 's/^/| /' conftest.$ac_ext >&5
21550
21551cat >conftest.$ac_ext <<_ACEOF
21552/* confdefs.h. */
21553_ACEOF
21554cat confdefs.h >>conftest.$ac_ext
21555cat >>conftest.$ac_ext <<_ACEOF
21556/* end confdefs.h. */
21557
83d8eb47
MW
21558 /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
21559 #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
238ecede
MW
21560 # error "fake wchar_t"
21561 #endif
21562 #ifdef HAVE_WCHAR_H
21563 # ifdef __CYGWIN__
21564 # include <stddef.h>
21565 # endif
21566 # include <wchar.h>
21567 #endif
21568 #ifdef HAVE_STDLIB_H
21569 # include <stdlib.h>
21570 #endif
21571 #include <stdio.h>
21572
21573
21574
21575int
21576main ()
21577{
21578static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) < 0)];
21579test_array [0] = 0
21580
21581 ;
21582 return 0;
21583}
21584_ACEOF
21585rm -f conftest.$ac_objext
21586if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21587 (eval $ac_compile) 2>conftest.er1
21588 ac_status=$?
21589 grep -v '^ *+' conftest.er1 >conftest.err
21590 rm -f conftest.er1
21591 cat conftest.err >&5
21592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21593 (exit $ac_status); } &&
c9a66001 21594 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
238ecede
MW
21595 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21596 (eval $ac_try) 2>&5
21597 ac_status=$?
21598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21599 (exit $ac_status); }; } &&
21600 { ac_try='test -s conftest.$ac_objext'
21601 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21602 (eval $ac_try) 2>&5
21603 ac_status=$?
21604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21605 (exit $ac_status); }; }; then
21606 ac_hi=-1 ac_mid=-1
21607 while :; do
21608 cat >conftest.$ac_ext <<_ACEOF
21609/* confdefs.h. */
21610_ACEOF
21611cat confdefs.h >>conftest.$ac_ext
21612cat >>conftest.$ac_ext <<_ACEOF
21613/* end confdefs.h. */
21614
83d8eb47
MW
21615 /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
21616 #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
238ecede
MW
21617 # error "fake wchar_t"
21618 #endif
21619 #ifdef HAVE_WCHAR_H
21620 # ifdef __CYGWIN__
21621 # include <stddef.h>
21622 # endif
21623 # include <wchar.h>
21624 #endif
21625 #ifdef HAVE_STDLIB_H
21626 # include <stdlib.h>
21627 #endif
21628 #include <stdio.h>
21629
21630
21631
21632int
21633main ()
21634{
21635static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) >= $ac_mid)];
21636test_array [0] = 0
21637
21638 ;
21639 return 0;
21640}
21641_ACEOF
21642rm -f conftest.$ac_objext
21643if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21644 (eval $ac_compile) 2>conftest.er1
21645 ac_status=$?
21646 grep -v '^ *+' conftest.er1 >conftest.err
21647 rm -f conftest.er1
21648 cat conftest.err >&5
21649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21650 (exit $ac_status); } &&
c9a66001 21651 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
238ecede
MW
21652 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21653 (eval $ac_try) 2>&5
21654 ac_status=$?
21655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21656 (exit $ac_status); }; } &&
21657 { ac_try='test -s conftest.$ac_objext'
21658 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21659 (eval $ac_try) 2>&5
21660 ac_status=$?
21661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21662 (exit $ac_status); }; }; then
21663 ac_lo=$ac_mid; break
21664else
21665 echo "$as_me: failed program was:" >&5
21666sed 's/^/| /' conftest.$ac_ext >&5
21667
21668ac_hi=`expr '(' $ac_mid ')' - 1`
21669 if test $ac_mid -le $ac_hi; then
21670 ac_lo= ac_hi=
21671 break
21672 fi
21673 ac_mid=`expr 2 '*' $ac_mid`
21674fi
21675rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21676 done
21677else
21678 echo "$as_me: failed program was:" >&5
21679sed 's/^/| /' conftest.$ac_ext >&5
21680
21681ac_lo= ac_hi=
21682fi
21683rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21684fi
21685rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21686# Binary search between lo and hi bounds.
21687while test "x$ac_lo" != "x$ac_hi"; do
21688 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
21689 cat >conftest.$ac_ext <<_ACEOF
21690/* confdefs.h. */
21691_ACEOF
21692cat confdefs.h >>conftest.$ac_ext
21693cat >>conftest.$ac_ext <<_ACEOF
21694/* end confdefs.h. */
21695
83d8eb47
MW
21696 /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
21697 #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
238ecede
MW
21698 # error "fake wchar_t"
21699 #endif
21700 #ifdef HAVE_WCHAR_H
21701 # ifdef __CYGWIN__
21702 # include <stddef.h>
21703 # endif
21704 # include <wchar.h>
21705 #endif
21706 #ifdef HAVE_STDLIB_H
21707 # include <stdlib.h>
21708 #endif
21709 #include <stdio.h>
a848cd7e 21710
a848cd7e 21711
a848cd7e 21712
238ecede
MW
21713int
21714main ()
21715{
21716static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) <= $ac_mid)];
21717test_array [0] = 0
a848cd7e 21718
238ecede
MW
21719 ;
21720 return 0;
21721}
21722_ACEOF
21723rm -f conftest.$ac_objext
21724if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21725 (eval $ac_compile) 2>conftest.er1
21726 ac_status=$?
21727 grep -v '^ *+' conftest.er1 >conftest.err
21728 rm -f conftest.er1
21729 cat conftest.err >&5
21730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21731 (exit $ac_status); } &&
c9a66001 21732 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
238ecede
MW
21733 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21734 (eval $ac_try) 2>&5
21735 ac_status=$?
21736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21737 (exit $ac_status); }; } &&
21738 { ac_try='test -s conftest.$ac_objext'
21739 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21740 (eval $ac_try) 2>&5
21741 ac_status=$?
21742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21743 (exit $ac_status); }; }; then
21744 ac_hi=$ac_mid
21745else
21746 echo "$as_me: failed program was:" >&5
21747sed 's/^/| /' conftest.$ac_ext >&5
21748
21749ac_lo=`expr '(' $ac_mid ')' + 1`
21750fi
21751rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21752done
21753case $ac_lo in
21754?*) ac_cv_sizeof_wchar_t=$ac_lo;;
21755'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t), 77
21756See \`config.log' for more details." >&5
21757echo "$as_me: error: cannot compute sizeof (wchar_t), 77
21758See \`config.log' for more details." >&2;}
21759 { (exit 1); exit 1; }; } ;;
21760esac
21761else
21762 if test "$cross_compiling" = yes; then
c9a66001
VZ
21763 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
21764echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
238ecede 21765 { (exit 1); exit 1; }; }
a848cd7e
SC
21766else
21767 cat >conftest.$ac_ext <<_ACEOF
21768/* confdefs.h. */
21769_ACEOF
21770cat confdefs.h >>conftest.$ac_ext
21771cat >>conftest.$ac_ext <<_ACEOF
21772/* end confdefs.h. */
21773
83d8eb47
MW
21774 /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
21775 #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
238ecede
MW
21776 # error "fake wchar_t"
21777 #endif
21778 #ifdef HAVE_WCHAR_H
21779 # ifdef __CYGWIN__
21780 # include <stddef.h>
21781 # endif
21782 # include <wchar.h>
21783 #endif
21784 #ifdef HAVE_STDLIB_H
21785 # include <stdlib.h>
21786 #endif
21787 #include <stdio.h>
21788
21789
21790
21791long longval () { return (long) (sizeof (wchar_t)); }
21792unsigned long ulongval () { return (long) (sizeof (wchar_t)); }
21793#include <stdio.h>
21794#include <stdlib.h>
21795int
21796main ()
21797{
a848cd7e 21798
238ecede
MW
21799 FILE *f = fopen ("conftest.val", "w");
21800 if (! f)
21801 exit (1);
21802 if (((long) (sizeof (wchar_t))) < 0)
21803 {
21804 long i = longval ();
21805 if (i != ((long) (sizeof (wchar_t))))
21806 exit (1);
21807 fprintf (f, "%ld\n", i);
21808 }
21809 else
21810 {
21811 unsigned long i = ulongval ();
21812 if (i != ((long) (sizeof (wchar_t))))
21813 exit (1);
21814 fprintf (f, "%lu\n", i);
21815 }
21816 exit (ferror (f) || fclose (f) != 0);
21817
21818 ;
21819 return 0;
21820}
a848cd7e
SC
21821_ACEOF
21822rm -f conftest$ac_exeext
21823if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21824 (eval $ac_link) 2>&5
21825 ac_status=$?
21826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21827 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21828 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21829 (eval $ac_try) 2>&5
21830 ac_status=$?
21831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21832 (exit $ac_status); }; }; then
238ecede 21833 ac_cv_sizeof_wchar_t=`cat conftest.val`
a848cd7e
SC
21834else
21835 echo "$as_me: program exited with status $ac_status" >&5
21836echo "$as_me: failed program was:" >&5
21837sed 's/^/| /' conftest.$ac_ext >&5
21838
21839( exit $ac_status )
238ecede
MW
21840{ { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t), 77
21841See \`config.log' for more details." >&5
21842echo "$as_me: error: cannot compute sizeof (wchar_t), 77
21843See \`config.log' for more details." >&2;}
21844 { (exit 1); exit 1; }; }
a848cd7e 21845fi
ac1cb8d3 21846rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e 21847fi
a848cd7e 21848fi
238ecede
MW
21849rm -f conftest.val
21850else
21851 ac_cv_sizeof_wchar_t=0
21852fi
21853fi
21854echo "$as_me:$LINENO: result: $ac_cv_sizeof_wchar_t" >&5
21855echo "${ECHO_T}$ac_cv_sizeof_wchar_t" >&6
a848cd7e 21856cat >>confdefs.h <<_ACEOF
238ecede 21857#define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t
a848cd7e
SC
21858_ACEOF
21859
21860
47a7e797
MW
21861if test "$ac_cv_sizeof_wchar_t" != "0"; then
21862 wxUSE_WCHAR_T=yes
21863else
21864 wxUSE_WCHAR_T=no
21865fi
238ecede 21866
ba3d13e1
VZ
21867echo "$as_me:$LINENO: checking for va_copy" >&5
21868echo $ECHO_N "checking for va_copy... $ECHO_C" >&6
21869if test "${wx_cv_func_va_copy+set}" = set; then
21870 echo $ECHO_N "(cached) $ECHO_C" >&6
21871else
21872
21873 cat >conftest.$ac_ext <<_ACEOF
21874
21875 #include <stdarg.h>
21876 void foo(char *f, ...)
21877 {
21878 va_list ap1, ap2;
21879 va_start(ap1, f);
21880 va_copy(ap2, ap1);
21881 va_end(ap2);
21882 va_end(ap1);
21883 }
5886b072
VZ
21884 int main()
21885 {
b902e639
VZ
21886 foo("hi", 17);
21887 return 0;
5886b072 21888 }
ba3d13e1
VZ
21889_ACEOF
21890rm -f conftest.$ac_objext conftest$ac_exeext
21891if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21892 (eval $ac_link) 2>conftest.er1
21893 ac_status=$?
21894 grep -v '^ *+' conftest.er1 >conftest.err
21895 rm -f conftest.er1
21896 cat conftest.err >&5
21897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21898 (exit $ac_status); } &&
c9a66001 21899 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ba3d13e1
VZ
21900 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21901 (eval $ac_try) 2>&5
21902 ac_status=$?
21903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21904 (exit $ac_status); }; } &&
21905 { ac_try='test -s conftest$ac_exeext'
21906 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21907 (eval $ac_try) 2>&5
21908 ac_status=$?
21909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21910 (exit $ac_status); }; }; then
21911 wx_cv_func_va_copy=yes
21912else
21913 echo "$as_me: failed program was:" >&5
21914sed 's/^/| /' conftest.$ac_ext >&5
21915
21916wx_cv_func_va_copy=no
21917
21918fi
21919rm -f conftest.err conftest.$ac_objext \
21920 conftest$ac_exeext conftest.$ac_ext
21921
21922
21923fi
21924echo "$as_me:$LINENO: result: $wx_cv_func_va_copy" >&5
21925echo "${ECHO_T}$wx_cv_func_va_copy" >&6
21926
21927if test $wx_cv_func_va_copy = "yes"; then
21928 cat >>confdefs.h <<\_ACEOF
21929#define HAVE_VA_COPY 1
21930_ACEOF
21931
21932else
21933 echo "$as_me:$LINENO: checking if va_list can be copied by value" >&5
21934echo $ECHO_N "checking if va_list can be copied by value... $ECHO_C" >&6
21935if test "${wx_cv_type_va_list_lvalue+set}" = set; then
21936 echo $ECHO_N "(cached) $ECHO_C" >&6
21937else
21938
21939 if test "$cross_compiling" = yes; then
21940 wx_cv_type_va_list_lvalue=yes
21941
21942else
21943 cat >conftest.$ac_ext <<_ACEOF
21944
21945 #include <stdarg.h>
21946 int foo(char *f, ...)
21947 {
21948 va_list ap1, ap2;
21949 va_start(ap1, f);
21950 ap2 = ap1;
21951 if ( va_arg(ap1, int) != 17 || va_arg(ap2, int) != 17 )
21952 return 1;
21953 va_end(ap2);
21954 va_end(ap1);
21955 return 0;
21956 }
21957 int main()
21958 {
21959 return foo("hi", 17);
21960 }
21961_ACEOF
21962rm -f conftest$ac_exeext
21963if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21964 (eval $ac_link) 2>&5
21965 ac_status=$?
21966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21967 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21968 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21969 (eval $ac_try) 2>&5
21970 ac_status=$?
21971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21972 (exit $ac_status); }; }; then
21973 wx_cv_type_va_list_lvalue=yes
21974else
21975 echo "$as_me: program exited with status $ac_status" >&5
21976echo "$as_me: failed program was:" >&5
21977sed 's/^/| /' conftest.$ac_ext >&5
21978
21979( exit $ac_status )
21980wx_cv_type_va_list_lvalue=no
21981fi
21982rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21983fi
21984
21985
21986fi
21987echo "$as_me:$LINENO: result: $wx_cv_type_va_list_lvalue" >&5
21988echo "${ECHO_T}$wx_cv_type_va_list_lvalue" >&6
21989
21990 if test $wx_cv_type_va_list_lvalue != "yes"; then
21991 cat >>confdefs.h <<\_ACEOF
21992#define VA_LIST_IS_ARRAY 1
21993_ACEOF
21994
21995 fi
21996fi
21997
a848cd7e
SC
21998# Check whether --enable-largefile or --disable-largefile was given.
21999if test "${enable_largefile+set}" = set; then
22000 enableval="$enable_largefile"
22001
22002fi;
22003if test "$enable_largefile" != no; then
22004 wx_largefile=no
22005
22006 echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
22007echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
22008if test "${ac_cv_sys_file_offset_bits+set}" = set; then
22009 echo $ECHO_N "(cached) $ECHO_C" >&6
22010else
22011
22012 cat >conftest.$ac_ext <<_ACEOF
22013/* confdefs.h. */
22014_ACEOF
22015cat confdefs.h >>conftest.$ac_ext
22016cat >>conftest.$ac_ext <<_ACEOF
22017/* end confdefs.h. */
22018#define _FILE_OFFSET_BITS 64
22019 #include <sys/types.h>
22020int
22021main ()
22022{
22023typedef struct {
22024 unsigned int field: sizeof(off_t) == 8;
22025} wxlf;
22026
22027 ;
22028 return 0;
22029}
22030_ACEOF
22031rm -f conftest.$ac_objext
22032if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 22033 (eval $ac_compile) 2>conftest.er1
a848cd7e 22034 ac_status=$?
ac1cb8d3
VS
22035 grep -v '^ *+' conftest.er1 >conftest.err
22036 rm -f conftest.er1
22037 cat conftest.err >&5
a848cd7e
SC
22038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22039 (exit $ac_status); } &&
c9a66001 22040 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
22041 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22042 (eval $ac_try) 2>&5
22043 ac_status=$?
22044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22045 (exit $ac_status); }; } &&
22046 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
22047 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22048 (eval $ac_try) 2>&5
22049 ac_status=$?
22050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22051 (exit $ac_status); }; }; then
22052 ac_cv_sys_file_offset_bits=64
22053else
22054 echo "$as_me: failed program was:" >&5
22055sed 's/^/| /' conftest.$ac_ext >&5
22056
22057ac_cv_sys_file_offset_bits=no
22058fi
ac1cb8d3 22059rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
22060
22061
22062fi
22063echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
22064echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
22065
22066 if test "$ac_cv_sys_file_offset_bits" != no; then
22067 wx_largefile=yes
22068 cat >>confdefs.h <<_ACEOF
22069#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
22070_ACEOF
22071
22072 fi
22073
22074 if test "x$wx_largefile" != "xyes"; then
22075
22076 echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
22077echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
22078if test "${ac_cv_sys_large_files+set}" = set; then
22079 echo $ECHO_N "(cached) $ECHO_C" >&6
22080else
22081
22082 cat >conftest.$ac_ext <<_ACEOF
22083/* confdefs.h. */
22084_ACEOF
22085cat confdefs.h >>conftest.$ac_ext
22086cat >>conftest.$ac_ext <<_ACEOF
22087/* end confdefs.h. */
22088#define _LARGE_FILES 1
22089 #include <sys/types.h>
22090int
22091main ()
22092{
22093typedef struct {
22094 unsigned int field: sizeof(off_t) == 8;
22095} wxlf;
22096
22097 ;
22098 return 0;
22099}
22100_ACEOF
22101rm -f conftest.$ac_objext
22102if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 22103 (eval $ac_compile) 2>conftest.er1
a848cd7e 22104 ac_status=$?
ac1cb8d3
VS
22105 grep -v '^ *+' conftest.er1 >conftest.err
22106 rm -f conftest.er1
22107 cat conftest.err >&5
a848cd7e
SC
22108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22109 (exit $ac_status); } &&
c9a66001 22110 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
22111 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22112 (eval $ac_try) 2>&5
22113 ac_status=$?
22114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22115 (exit $ac_status); }; } &&
22116 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
22117 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22118 (eval $ac_try) 2>&5
22119 ac_status=$?
22120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22121 (exit $ac_status); }; }; then
22122 ac_cv_sys_large_files=1
22123else
22124 echo "$as_me: failed program was:" >&5
22125sed 's/^/| /' conftest.$ac_ext >&5
22126
22127ac_cv_sys_large_files=no
22128fi
ac1cb8d3 22129rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
22130
22131
22132fi
22133echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
22134echo "${ECHO_T}$ac_cv_sys_large_files" >&6
22135
22136 if test "$ac_cv_sys_large_files" != no; then
22137 wx_largefile=yes
22138 cat >>confdefs.h <<_ACEOF
22139#define _LARGE_FILES $ac_cv_sys_large_files
22140_ACEOF
22141
22142 fi
22143
22144 fi
22145
22146 echo "$as_me:$LINENO: checking if large file support is available" >&5
22147echo $ECHO_N "checking if large file support is available... $ECHO_C" >&6
22148 if test "x$wx_largefile" = "xyes"; then
22149 cat >>confdefs.h <<\_ACEOF
22150#define HAVE_LARGEFILE_SUPPORT 1
22151_ACEOF
22152
22153 fi
22154 echo "$as_me:$LINENO: result: $wx_largefile" >&5
22155echo "${ECHO_T}$wx_largefile" >&6
22156fi
22157
5b674b9d
DE
22158
22159if test "x$wx_largefile" = "xyes"; then
22160 if test "x$ac_cv_sys_file_offset_bits" = "x64"; then
5ff751d6 22161 WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES"
00421666
MW
22162
22163 if test "$USE_HPUX" = 1 -a "$GXX" = "yes"; then
22164 echo "$as_me:$LINENO: checking if -D__STDC_EXT__ is required" >&5
22165echo $ECHO_N "checking if -D__STDC_EXT__ is required... $ECHO_C" >&6
22166if test "${wx_cv_STDC_EXT_required+set}" = set; then
22167 echo $ECHO_N "(cached) $ECHO_C" >&6
22168else
22169
00421666
MW
22170 cat >conftest.$ac_ext <<_ACEOF
22171/* confdefs.h. */
22172_ACEOF
22173cat confdefs.h >>conftest.$ac_ext
22174cat >>conftest.$ac_ext <<_ACEOF
22175/* end confdefs.h. */
22176
22177int
22178main ()
22179{
22180
22181 #ifndef __STDC_EXT__
22182 choke me
22183 #endif
22184
22185 ;
22186 return 0;
22187}
22188_ACEOF
22189rm -f conftest.$ac_objext
22190if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22191 (eval $ac_compile) 2>conftest.er1
22192 ac_status=$?
22193 grep -v '^ *+' conftest.er1 >conftest.err
22194 rm -f conftest.er1
22195 cat conftest.err >&5
22196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22197 (exit $ac_status); } &&
c9a66001 22198 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
00421666
MW
22199 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22200 (eval $ac_try) 2>&5
22201 ac_status=$?
22202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22203 (exit $ac_status); }; } &&
22204 { ac_try='test -s conftest.$ac_objext'
22205 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22206 (eval $ac_try) 2>&5
22207 ac_status=$?
22208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22209 (exit $ac_status); }; }; then
22210 wx_cv_STDC_EXT_required=no
22211else
22212 echo "$as_me: failed program was:" >&5
22213sed 's/^/| /' conftest.$ac_ext >&5
22214
22215wx_cv_STDC_EXT_required=yes
22216
22217fi
22218rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
00421666
MW
22219
22220
22221fi
22222echo "$as_me:$LINENO: result: $wx_cv_STDC_EXT_required" >&5
22223echo "${ECHO_T}$wx_cv_STDC_EXT_required" >&6
22224 if test "x$wx_cv_STDC_EXT_required" = "xyes"; then
5ff751d6 22225 WXCONFIG_CXXFLAGS="$WXCONFIG_CXXFLAGS -D__STDC_EXT__"
00421666
MW
22226 fi
22227 fi
5b674b9d 22228 else
5ff751d6 22229 WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS -D_LARGE_FILES"
5b674b9d
DE
22230 fi
22231 echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
5294a27e
VZ
22232echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6
22233if test "${ac_cv_sys_largefile_source+set}" = set; then
22234 echo $ECHO_N "(cached) $ECHO_C" >&6
22235else
22236 while :; do
22237 ac_cv_sys_largefile_source=no
22238 cat >conftest.$ac_ext <<_ACEOF
22239/* confdefs.h. */
22240_ACEOF
22241cat confdefs.h >>conftest.$ac_ext
22242cat >>conftest.$ac_ext <<_ACEOF
22243/* end confdefs.h. */
22244#include <stdio.h>
22245int
22246main ()
22247{
22248return !fseeko;
22249 ;
22250 return 0;
22251}
22252_ACEOF
22253rm -f conftest.$ac_objext
22254if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22255 (eval $ac_compile) 2>conftest.er1
22256 ac_status=$?
22257 grep -v '^ *+' conftest.er1 >conftest.err
22258 rm -f conftest.er1
22259 cat conftest.err >&5
22260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22261 (exit $ac_status); } &&
c9a66001 22262 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5294a27e
VZ
22263 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22264 (eval $ac_try) 2>&5
22265 ac_status=$?
22266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22267 (exit $ac_status); }; } &&
22268 { ac_try='test -s conftest.$ac_objext'
22269 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22270 (eval $ac_try) 2>&5
22271 ac_status=$?
22272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22273 (exit $ac_status); }; }; then
22274 break
22275else
22276 echo "$as_me: failed program was:" >&5
22277sed 's/^/| /' conftest.$ac_ext >&5
22278
22279fi
22280rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22281 cat >conftest.$ac_ext <<_ACEOF
22282/* confdefs.h. */
22283_ACEOF
22284cat confdefs.h >>conftest.$ac_ext
22285cat >>conftest.$ac_ext <<_ACEOF
22286/* end confdefs.h. */
22287#define _LARGEFILE_SOURCE 1
22288#include <stdio.h>
22289int
22290main ()
22291{
22292return !fseeko;
22293 ;
22294 return 0;
22295}
22296_ACEOF
22297rm -f conftest.$ac_objext
22298if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22299 (eval $ac_compile) 2>conftest.er1
22300 ac_status=$?
22301 grep -v '^ *+' conftest.er1 >conftest.err
22302 rm -f conftest.er1
22303 cat conftest.err >&5
22304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22305 (exit $ac_status); } &&
c9a66001 22306 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5294a27e
VZ
22307 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22308 (eval $ac_try) 2>&5
22309 ac_status=$?
22310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22311 (exit $ac_status); }; } &&
22312 { ac_try='test -s conftest.$ac_objext'
22313 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22314 (eval $ac_try) 2>&5
22315 ac_status=$?
22316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22317 (exit $ac_status); }; }; then
22318 ac_cv_sys_largefile_source=1; break
22319else
22320 echo "$as_me: failed program was:" >&5
22321sed 's/^/| /' conftest.$ac_ext >&5
22322
22323fi
22324rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22325 break
22326done
22327fi
22328echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
22329echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6
22330if test "$ac_cv_sys_largefile_source" != no; then
22331
22332cat >>confdefs.h <<_ACEOF
22333#define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
22334_ACEOF
22335
22336fi
22337rm -f conftest*
22338
22339# We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
22340# in glibc 2.1.3, but that breaks too many other things.
22341# If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
22342echo "$as_me:$LINENO: checking for fseeko" >&5
22343echo $ECHO_N "checking for fseeko... $ECHO_C" >&6
22344if test "${ac_cv_func_fseeko+set}" = set; then
22345 echo $ECHO_N "(cached) $ECHO_C" >&6
22346else
22347 cat >conftest.$ac_ext <<_ACEOF
22348/* confdefs.h. */
22349_ACEOF
22350cat confdefs.h >>conftest.$ac_ext
22351cat >>conftest.$ac_ext <<_ACEOF
22352/* end confdefs.h. */
22353#include <stdio.h>
22354int
22355main ()
22356{
22357return fseeko && fseeko (stdin, 0, 0);
22358 ;
22359 return 0;
22360}
22361_ACEOF
22362rm -f conftest.$ac_objext conftest$ac_exeext
22363if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22364 (eval $ac_link) 2>conftest.er1
22365 ac_status=$?
22366 grep -v '^ *+' conftest.er1 >conftest.err
22367 rm -f conftest.er1
22368 cat conftest.err >&5
22369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22370 (exit $ac_status); } &&
c9a66001 22371 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5294a27e
VZ
22372 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22373 (eval $ac_try) 2>&5
22374 ac_status=$?
22375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22376 (exit $ac_status); }; } &&
22377 { ac_try='test -s conftest$ac_exeext'
22378 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22379 (eval $ac_try) 2>&5
22380 ac_status=$?
22381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22382 (exit $ac_status); }; }; then
22383 ac_cv_func_fseeko=yes
22384else
22385 echo "$as_me: failed program was:" >&5
22386sed 's/^/| /' conftest.$ac_ext >&5
22387
22388ac_cv_func_fseeko=no
22389fi
22390rm -f conftest.err conftest.$ac_objext \
22391 conftest$ac_exeext conftest.$ac_ext
22392fi
22393echo "$as_me:$LINENO: result: $ac_cv_func_fseeko" >&5
22394echo "${ECHO_T}$ac_cv_func_fseeko" >&6
22395if test $ac_cv_func_fseeko = yes; then
22396
22397cat >>confdefs.h <<\_ACEOF
22398#define HAVE_FSEEKO 1
22399_ACEOF
22400
22401fi
22402
5b674b9d 22403 if test "$ac_cv_sys_largefile_source" != no; then
5ff751d6 22404 WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS -D_LARGEFILE_SOURCE=$ac_cv_sys_largefile_source"
a848cd7e 22405 fi
a848cd7e
SC
22406fi
22407
22408echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
22409echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
22410if test "${ac_cv_c_bigendian+set}" = set; then
22411 echo $ECHO_N "(cached) $ECHO_C" >&6
22412else
22413 ac_cv_c_bigendian=unknown
22414# See if sys/param.h defines the BYTE_ORDER macro.
22415cat >conftest.$ac_ext <<_ACEOF
22416/* confdefs.h. */
22417_ACEOF
22418cat confdefs.h >>conftest.$ac_ext
22419cat >>conftest.$ac_ext <<_ACEOF
22420/* end confdefs.h. */
22421#include <sys/types.h>
22422#include <sys/param.h>
22423int
22424main ()
22425{
22426
22427#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
22428 bogus endian macros
22429#endif
22430 ;
22431 return 0;
22432}
22433_ACEOF
22434rm -f conftest.$ac_objext
22435if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 22436 (eval $ac_compile) 2>conftest.er1
a848cd7e 22437 ac_status=$?
ac1cb8d3
VS
22438 grep -v '^ *+' conftest.er1 >conftest.err
22439 rm -f conftest.er1
22440 cat conftest.err >&5
a848cd7e
SC
22441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22442 (exit $ac_status); } &&
c9a66001 22443 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
22444 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22445 (eval $ac_try) 2>&5
22446 ac_status=$?
22447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22448 (exit $ac_status); }; } &&
22449 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
22450 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22451 (eval $ac_try) 2>&5
22452 ac_status=$?
22453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22454 (exit $ac_status); }; }; then
22455 # It does; now see whether it defined to BIG_ENDIAN or not.
22456cat >conftest.$ac_ext <<_ACEOF
22457/* confdefs.h. */
22458_ACEOF
22459cat confdefs.h >>conftest.$ac_ext
22460cat >>conftest.$ac_ext <<_ACEOF
22461/* end confdefs.h. */
22462#include <sys/types.h>
22463#include <sys/param.h>
22464int
22465main ()
22466{
22467
22468#if BYTE_ORDER != BIG_ENDIAN
22469 not big endian
22470#endif
22471 ;
22472 return 0;
22473}
22474_ACEOF
22475rm -f conftest.$ac_objext
22476if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 22477 (eval $ac_compile) 2>conftest.er1
a848cd7e 22478 ac_status=$?
ac1cb8d3
VS
22479 grep -v '^ *+' conftest.er1 >conftest.err
22480 rm -f conftest.er1
22481 cat conftest.err >&5
a848cd7e
SC
22482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22483 (exit $ac_status); } &&
c9a66001 22484 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
22485 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22486 (eval $ac_try) 2>&5
22487 ac_status=$?
22488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22489 (exit $ac_status); }; } &&
22490 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
22491 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22492 (eval $ac_try) 2>&5
22493 ac_status=$?
22494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22495 (exit $ac_status); }; }; then
22496 ac_cv_c_bigendian=yes
22497else
22498 echo "$as_me: failed program was:" >&5
22499sed 's/^/| /' conftest.$ac_ext >&5
22500
22501ac_cv_c_bigendian=no
22502fi
ac1cb8d3 22503rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
22504else
22505 echo "$as_me: failed program was:" >&5
22506sed 's/^/| /' conftest.$ac_ext >&5
22507
22508fi
ac1cb8d3 22509rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
22510if test $ac_cv_c_bigendian = unknown; then
22511if test "$cross_compiling" = yes; then
22512 ac_cv_c_bigendian=unknown
22513else
22514 cat >conftest.$ac_ext <<_ACEOF
22515/* confdefs.h. */
22516_ACEOF
22517cat confdefs.h >>conftest.$ac_ext
22518cat >>conftest.$ac_ext <<_ACEOF
22519/* end confdefs.h. */
22520main () {
22521 /* Are we little or big endian? From Harbison&Steele. */
22522 union
22523 {
22524 long l;
22525 char c[sizeof (long)];
22526 } u;
22527 u.l = 1;
22528 exit (u.c[sizeof (long) - 1] == 1);
22529}
22530_ACEOF
22531rm -f conftest$ac_exeext
22532if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22533 (eval $ac_link) 2>&5
22534 ac_status=$?
22535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22536 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22537 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22538 (eval $ac_try) 2>&5
22539 ac_status=$?
22540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22541 (exit $ac_status); }; }; then
22542 ac_cv_c_bigendian=no
22543else
22544 echo "$as_me: program exited with status $ac_status" >&5
22545echo "$as_me: failed program was:" >&5
22546sed 's/^/| /' conftest.$ac_ext >&5
22547
22548( exit $ac_status )
22549ac_cv_c_bigendian=yes
22550fi
ac1cb8d3 22551rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
22552fi
22553fi
22554fi
22555echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
22556echo "${ECHO_T}$ac_cv_c_bigendian" >&6
22557if test $ac_cv_c_bigendian = unknown; then
22558 { 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
22559echo "$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;}
22560fi
22561if test $ac_cv_c_bigendian = yes; then
22562 cat >>confdefs.h <<\_ACEOF
22563#define WORDS_BIGENDIAN 1
22564_ACEOF
22565
22566fi
22567
22568
a848cd7e
SC
22569
22570
22571
22572 ac_ext=cc
22573ac_cpp='$CXXCPP $CPPFLAGS'
22574ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22575ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22576ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22577
22578
22579
22580for ac_header in iostream
22581do
22582as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22583if eval "test \"\${$as_ac_Header+set}\" = set"; then
22584 echo "$as_me:$LINENO: checking for $ac_header" >&5
22585echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
22586if eval "test \"\${$as_ac_Header+set}\" = set"; then
22587 echo $ECHO_N "(cached) $ECHO_C" >&6
22588fi
22589echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
22590echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
22591else
22592 # Is the header compilable?
22593echo "$as_me:$LINENO: checking $ac_header usability" >&5
22594echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
22595cat >conftest.$ac_ext <<_ACEOF
22596/* confdefs.h. */
22597_ACEOF
22598cat confdefs.h >>conftest.$ac_ext
22599cat >>conftest.$ac_ext <<_ACEOF
22600/* end confdefs.h. */
22601$ac_includes_default
22602#include <$ac_header>
22603_ACEOF
22604rm -f conftest.$ac_objext
22605if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 22606 (eval $ac_compile) 2>conftest.er1
a848cd7e 22607 ac_status=$?
ac1cb8d3
VS
22608 grep -v '^ *+' conftest.er1 >conftest.err
22609 rm -f conftest.er1
22610 cat conftest.err >&5
a848cd7e
SC
22611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22612 (exit $ac_status); } &&
c9a66001 22613 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
22614 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22615 (eval $ac_try) 2>&5
22616 ac_status=$?
22617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22618 (exit $ac_status); }; } &&
22619 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
22620 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22621 (eval $ac_try) 2>&5
22622 ac_status=$?
22623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22624 (exit $ac_status); }; }; then
22625 ac_header_compiler=yes
22626else
22627 echo "$as_me: failed program was:" >&5
22628sed 's/^/| /' conftest.$ac_ext >&5
22629
22630ac_header_compiler=no
22631fi
ac1cb8d3 22632rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
22633echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22634echo "${ECHO_T}$ac_header_compiler" >&6
22635
22636# Is the header present?
22637echo "$as_me:$LINENO: checking $ac_header presence" >&5
22638echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
22639cat >conftest.$ac_ext <<_ACEOF
22640/* confdefs.h. */
22641_ACEOF
22642cat confdefs.h >>conftest.$ac_ext
22643cat >>conftest.$ac_ext <<_ACEOF
22644/* end confdefs.h. */
22645#include <$ac_header>
22646_ACEOF
22647if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22648 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
22649 ac_status=$?
22650 grep -v '^ *+' conftest.er1 >conftest.err
22651 rm -f conftest.er1
22652 cat conftest.err >&5
22653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22654 (exit $ac_status); } >/dev/null; then
22655 if test -s conftest.err; then
22656 ac_cpp_err=$ac_cxx_preproc_warn_flag
ac1cb8d3 22657 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
22658 else
22659 ac_cpp_err=
22660 fi
22661else
22662 ac_cpp_err=yes
22663fi
22664if test -z "$ac_cpp_err"; then
22665 ac_header_preproc=yes
22666else
22667 echo "$as_me: failed program was:" >&5
22668sed 's/^/| /' conftest.$ac_ext >&5
22669
22670 ac_header_preproc=no
22671fi
22672rm -f conftest.err conftest.$ac_ext
22673echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22674echo "${ECHO_T}$ac_header_preproc" >&6
22675
22676# So? What about this header?
ac1cb8d3
VS
22677case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
22678 yes:no: )
a848cd7e
SC
22679 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22680echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
22681 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22682echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22683 ac_header_preproc=yes
a848cd7e 22684 ;;
ac1cb8d3 22685 no:yes:* )
a848cd7e
SC
22686 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22687echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
22688 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22689echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22690 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22691echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22692 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22693echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
22694 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22695echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
22696 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22697echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
22698 (
22699 cat <<\_ASBOX
ac1cb8d3
VS
22700## ----------------------------------------- ##
22701## Report this to wx-dev@lists.wxwidgets.org ##
22702## ----------------------------------------- ##
a848cd7e
SC
22703_ASBOX
22704 ) |
22705 sed "s/^/$as_me: WARNING: /" >&2
22706 ;;
22707esac
22708echo "$as_me:$LINENO: checking for $ac_header" >&5
22709echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
22710if eval "test \"\${$as_ac_Header+set}\" = set"; then
22711 echo $ECHO_N "(cached) $ECHO_C" >&6
22712else
ac1cb8d3 22713 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
22714fi
22715echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
22716echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
22717
22718fi
22719if test `eval echo '${'$as_ac_Header'}'` = yes; then
22720 cat >>confdefs.h <<_ACEOF
22721#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22722_ACEOF
22723
22724fi
22725
22726done
22727
22728
22729 if test "$ac_cv_header_iostream" = "yes" ; then
22730 :
22731 else
22732 cat >>confdefs.h <<\_ACEOF
22733#define wxUSE_IOSTREAMH 1
22734_ACEOF
22735
22736 fi
22737
5d7b7554
VZ
22738 ac_ext=cc
22739ac_cpp='$CXXCPP $CPPFLAGS'
22740ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22741ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22742ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
a848cd7e
SC
22743
22744
22745
22746
22747 echo "$as_me:$LINENO: checking if C++ compiler supports bool" >&5
22748echo $ECHO_N "checking if C++ compiler supports bool... $ECHO_C" >&6
22749if test "${wx_cv_cpp_bool+set}" = set; then
22750 echo $ECHO_N "(cached) $ECHO_C" >&6
22751else
22752
22753
22754
22755 ac_ext=cc
22756ac_cpp='$CXXCPP $CPPFLAGS'
22757ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22758ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22759ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22760
22761
22762 cat >conftest.$ac_ext <<_ACEOF
22763/* confdefs.h. */
22764_ACEOF
22765cat confdefs.h >>conftest.$ac_ext
22766cat >>conftest.$ac_ext <<_ACEOF
22767/* end confdefs.h. */
22768
22769
22770int
22771main ()
22772{
22773
22774 bool b = true;
22775
22776 return 0;
22777
22778 ;
22779 return 0;
22780}
22781_ACEOF
22782rm -f conftest.$ac_objext
22783if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 22784 (eval $ac_compile) 2>conftest.er1
a848cd7e 22785 ac_status=$?
ac1cb8d3
VS
22786 grep -v '^ *+' conftest.er1 >conftest.err
22787 rm -f conftest.er1
22788 cat conftest.err >&5
a848cd7e
SC
22789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22790 (exit $ac_status); } &&
c9a66001 22791 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
22792 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22793 (eval $ac_try) 2>&5
22794 ac_status=$?
22795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22796 (exit $ac_status); }; } &&
22797 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
22798 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22799 (eval $ac_try) 2>&5
22800 ac_status=$?
22801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22802 (exit $ac_status); }; }; then
22803
22804 wx_cv_cpp_bool=yes
22805
22806else
22807 echo "$as_me: failed program was:" >&5
22808sed 's/^/| /' conftest.$ac_ext >&5
22809
22810
22811 wx_cv_cpp_bool=no
22812
22813
22814fi
ac1cb8d3 22815rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 22816
5d7b7554
VZ
22817 ac_ext=cc
22818ac_cpp='$CXXCPP $CPPFLAGS'
22819ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22820ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22821ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
a848cd7e
SC
22822
22823
22824fi
22825echo "$as_me:$LINENO: result: $wx_cv_cpp_bool" >&5
22826echo "${ECHO_T}$wx_cv_cpp_bool" >&6
22827
22828 if test "$wx_cv_cpp_bool" = "yes"; then
22829 cat >>confdefs.h <<\_ACEOF
22830#define HAVE_BOOL 1
22831_ACEOF
22832
22833 fi
22834
22835
22836
22837 echo "$as_me:$LINENO: checking if C++ compiler supports the explicit keyword" >&5
22838echo $ECHO_N "checking if C++ compiler supports the explicit keyword... $ECHO_C" >&6
22839if test "${wx_cv_explicit+set}" = set; then
22840 echo $ECHO_N "(cached) $ECHO_C" >&6
22841else
22842
22843
22844
22845 ac_ext=cc
22846ac_cpp='$CXXCPP $CPPFLAGS'
22847ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22848ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22849ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22850
22851
22852 cat >conftest.$ac_ext <<_ACEOF
22853/* confdefs.h. */
22854_ACEOF
22855cat confdefs.h >>conftest.$ac_ext
22856cat >>conftest.$ac_ext <<_ACEOF
22857/* end confdefs.h. */
22858
22859 class Foo { public: explicit Foo(int) {} };
22860
22861int
22862main ()
22863{
22864
22865 return 0;
22866
22867 ;
22868 return 0;
22869}
22870_ACEOF
22871rm -f conftest.$ac_objext
22872if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 22873 (eval $ac_compile) 2>conftest.er1
a848cd7e 22874 ac_status=$?
ac1cb8d3
VS
22875 grep -v '^ *+' conftest.er1 >conftest.err
22876 rm -f conftest.er1
22877 cat conftest.err >&5
a848cd7e
SC
22878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22879 (exit $ac_status); } &&
c9a66001 22880 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
22881 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22882 (eval $ac_try) 2>&5
22883 ac_status=$?
22884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22885 (exit $ac_status); }; } &&
22886 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
22887 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22888 (eval $ac_try) 2>&5
22889 ac_status=$?
22890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22891 (exit $ac_status); }; }; then
22892
22893 cat >conftest.$ac_ext <<_ACEOF
22894/* confdefs.h. */
22895_ACEOF
22896cat confdefs.h >>conftest.$ac_ext
22897cat >>conftest.$ac_ext <<_ACEOF
22898/* end confdefs.h. */
22899
22900 class Foo { public: explicit Foo(int) {} };
22901 static void TakeFoo(const Foo& foo) { }
22902
22903int
22904main ()
22905{
22906
22907 TakeFoo(17);
22908 return 0;
22909
22910 ;
22911 return 0;
22912}
22913_ACEOF
22914rm -f conftest.$ac_objext
22915if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 22916 (eval $ac_compile) 2>conftest.er1
a848cd7e 22917 ac_status=$?
ac1cb8d3
VS
22918 grep -v '^ *+' conftest.er1 >conftest.err
22919 rm -f conftest.er1
22920 cat conftest.err >&5
a848cd7e
SC
22921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22922 (exit $ac_status); } &&
c9a66001 22923 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
22924 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22925 (eval $ac_try) 2>&5
22926 ac_status=$?
22927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22928 (exit $ac_status); }; } &&
22929 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
22930 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22931 (eval $ac_try) 2>&5
22932 ac_status=$?
22933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22934 (exit $ac_status); }; }; then
22935 wx_cv_explicit=no
22936else
22937 echo "$as_me: failed program was:" >&5
22938sed 's/^/| /' conftest.$ac_ext >&5
22939
22940wx_cv_explicit=yes
22941
22942fi
ac1cb8d3 22943rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
22944
22945else
22946 echo "$as_me: failed program was:" >&5
22947sed 's/^/| /' conftest.$ac_ext >&5
22948
22949wx_cv_explicit=no
22950
22951fi
ac1cb8d3 22952rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 22953
5d7b7554
VZ
22954 ac_ext=cc
22955ac_cpp='$CXXCPP $CPPFLAGS'
22956ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22957ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22958ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
a848cd7e
SC
22959
22960
22961fi
22962echo "$as_me:$LINENO: result: $wx_cv_explicit" >&5
22963echo "${ECHO_T}$wx_cv_explicit" >&6
22964
22965 if test "$wx_cv_explicit" = "yes"; then
22966 cat >>confdefs.h <<\_ACEOF
22967#define HAVE_EXPLICIT 1
22968_ACEOF
22969
22970 fi
22971
22972
22973echo "$as_me:$LINENO: checking whether the compiler supports const_cast<>" >&5
22974echo $ECHO_N "checking whether the compiler supports const_cast<>... $ECHO_C" >&6
22975if test "${ac_cv_cxx_const_cast+set}" = set; then
22976 echo $ECHO_N "(cached) $ECHO_C" >&6
22977else
22978
22979
22980 ac_ext=cc
22981ac_cpp='$CXXCPP $CPPFLAGS'
22982ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22983ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22984ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22985
22986 cat >conftest.$ac_ext <<_ACEOF
22987/* confdefs.h. */
22988_ACEOF
22989cat confdefs.h >>conftest.$ac_ext
22990cat >>conftest.$ac_ext <<_ACEOF
22991/* end confdefs.h. */
22992
22993int
22994main ()
22995{
22996int x = 0;const int& y = x;int& z = const_cast<int&>(y);return z;
22997 ;
22998 return 0;
22999}
23000_ACEOF
23001rm -f conftest.$ac_objext
23002if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 23003 (eval $ac_compile) 2>conftest.er1
a848cd7e 23004 ac_status=$?
ac1cb8d3
VS
23005 grep -v '^ *+' conftest.er1 >conftest.err
23006 rm -f conftest.er1
23007 cat conftest.err >&5
a848cd7e
SC
23008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23009 (exit $ac_status); } &&
c9a66001 23010 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
23011 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23012 (eval $ac_try) 2>&5
23013 ac_status=$?
23014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23015 (exit $ac_status); }; } &&
23016 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
23017 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23018 (eval $ac_try) 2>&5
23019 ac_status=$?
23020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23021 (exit $ac_status); }; }; then
23022 ac_cv_cxx_const_cast=yes
23023else
23024 echo "$as_me: failed program was:" >&5
23025sed 's/^/| /' conftest.$ac_ext >&5
23026
23027ac_cv_cxx_const_cast=no
23028fi
ac1cb8d3 23029rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5d7b7554
VZ
23030 ac_ext=cc
23031ac_cpp='$CXXCPP $CPPFLAGS'
23032ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23033ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23034ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
a848cd7e
SC
23035
23036
23037fi
23038echo "$as_me:$LINENO: result: $ac_cv_cxx_const_cast" >&5
23039echo "${ECHO_T}$ac_cv_cxx_const_cast" >&6
23040if test "$ac_cv_cxx_const_cast" = yes; then
23041
23042cat >>confdefs.h <<\_ACEOF
23043#define HAVE_CONST_CAST
23044_ACEOF
23045
23046fi
23047
7714864e
RL
23048echo "$as_me:$LINENO: checking whether the compiler supports reinterpret_cast<>" >&5
23049echo $ECHO_N "checking whether the compiler supports reinterpret_cast<>... $ECHO_C" >&6
23050if test "${ac_cv_cxx_reinterpret_cast+set}" = set; then
23051 echo $ECHO_N "(cached) $ECHO_C" >&6
23052else
23053
23054
23055 ac_ext=cc
23056ac_cpp='$CXXCPP $CPPFLAGS'
23057ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23058ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23059ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23060
23061 cat >conftest.$ac_ext <<_ACEOF
23062/* confdefs.h. */
23063_ACEOF
23064cat confdefs.h >>conftest.$ac_ext
23065cat >>conftest.$ac_ext <<_ACEOF
23066/* end confdefs.h. */
23067#include <typeinfo>
23068class Base { public : Base () {} virtual void f () = 0;};
23069class Derived : public Base { public : Derived () {} virtual void f () {} };
23070class Unrelated { public : Unrelated () {} };
23071int g (Unrelated&) { return 0; }
23072int
23073main ()
23074{
23075
23076Derived d;Base& b=d;Unrelated& e=reinterpret_cast<Unrelated&>(b);return g(e);
23077 ;
23078 return 0;
23079}
23080_ACEOF
23081rm -f conftest.$ac_objext
23082if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23083 (eval $ac_compile) 2>conftest.er1
23084 ac_status=$?
23085 grep -v '^ *+' conftest.er1 >conftest.err
23086 rm -f conftest.er1
23087 cat conftest.err >&5
23088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23089 (exit $ac_status); } &&
c9a66001 23090 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
7714864e
RL
23091 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23092 (eval $ac_try) 2>&5
23093 ac_status=$?
23094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23095 (exit $ac_status); }; } &&
23096 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
23102 ac_cv_cxx_reinterpret_cast=yes
23103else
23104 echo "$as_me: failed program was:" >&5
23105sed 's/^/| /' conftest.$ac_ext >&5
23106
23107ac_cv_cxx_reinterpret_cast=no
23108fi
23109rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5d7b7554
VZ
23110 ac_ext=cc
23111ac_cpp='$CXXCPP $CPPFLAGS'
23112ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23113ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23114ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7714864e
RL
23115
23116
23117fi
23118echo "$as_me:$LINENO: result: $ac_cv_cxx_reinterpret_cast" >&5
23119echo "${ECHO_T}$ac_cv_cxx_reinterpret_cast" >&6
23120if test "$ac_cv_cxx_reinterpret_cast" = yes; then
23121
23122cat >>confdefs.h <<\_ACEOF
23123#define HAVE_REINTERPRET_CAST
23124_ACEOF
23125
23126fi
23127
a848cd7e
SC
23128echo "$as_me:$LINENO: checking whether the compiler supports static_cast<>" >&5
23129echo $ECHO_N "checking whether the compiler supports static_cast<>... $ECHO_C" >&6
23130if test "${ac_cv_cxx_static_cast+set}" = set; then
23131 echo $ECHO_N "(cached) $ECHO_C" >&6
23132else
23133
23134
23135 ac_ext=cc
23136ac_cpp='$CXXCPP $CPPFLAGS'
23137ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23138ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23139ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23140
23141 cat >conftest.$ac_ext <<_ACEOF
23142/* confdefs.h. */
23143_ACEOF
23144cat confdefs.h >>conftest.$ac_ext
23145cat >>conftest.$ac_ext <<_ACEOF
23146/* end confdefs.h. */
23147#include <typeinfo>
23148class Base { public : Base () {} virtual void f () = 0; };
23149class Derived : public Base { public : Derived () {} virtual void f () {} };
23150int g (Derived&) { return 0; }
23151int
23152main ()
23153{
23154
23155Derived d; Base& b = d; Derived& s = static_cast<Derived&> (b); return g (s);
23156 ;
23157 return 0;
23158}
23159_ACEOF
23160rm -f conftest.$ac_objext
23161if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 23162 (eval $ac_compile) 2>conftest.er1
a848cd7e 23163 ac_status=$?
ac1cb8d3
VS
23164 grep -v '^ *+' conftest.er1 >conftest.err
23165 rm -f conftest.er1
23166 cat conftest.err >&5
a848cd7e
SC
23167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23168 (exit $ac_status); } &&
c9a66001 23169 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
23170 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23171 (eval $ac_try) 2>&5
23172 ac_status=$?
23173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23174 (exit $ac_status); }; } &&
23175 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
23176 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23177 (eval $ac_try) 2>&5
23178 ac_status=$?
23179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23180 (exit $ac_status); }; }; then
23181 ac_cv_cxx_static_cast=yes
23182else
23183 echo "$as_me: failed program was:" >&5
23184sed 's/^/| /' conftest.$ac_ext >&5
23185
23186ac_cv_cxx_static_cast=no
23187fi
ac1cb8d3 23188rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5d7b7554
VZ
23189 ac_ext=cc
23190ac_cpp='$CXXCPP $CPPFLAGS'
23191ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23192ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23193ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
a848cd7e
SC
23194
23195
23196fi
23197echo "$as_me:$LINENO: result: $ac_cv_cxx_static_cast" >&5
23198echo "${ECHO_T}$ac_cv_cxx_static_cast" >&6
23199if test "$ac_cv_cxx_static_cast" = yes; then
23200
23201cat >>confdefs.h <<\_ACEOF
23202#define HAVE_STATIC_CAST
23203_ACEOF
23204
23205fi
23206
23207
3c28b7cb 23208if test "x$SUNCXX" = xyes; then
c92ad099 23209 CXXFLAGS="-features=tmplife $CXXFLAGS"
3c28b7cb
MW
23210fi
23211
9122d155 23212if test "x$SUNCC" = xyes; then
c92ad099 23213 CFLAGS="-erroff=E_NO_EXPLICIT_TYPE_GIVEN $CFLAGS"
9122d155
VZ
23214fi
23215
0ad5d837 23216if test "x$SGICC" = "xyes"; then
c92ad099 23217 CFLAGS="-woff 3970 $CFLAGS"
0ad5d837
VZ
23218fi
23219if test "x$SGICXX" = "xyes"; then
c92ad099 23220 CXXFLAGS="-woff 3970 $CXXFLAGS"
0ad5d837
VZ
23221fi
23222
2eef8513 23223if test "x$HPCC" = "xyes"; then
c92ad099 23224 CFLAGS="+W 2011,2450 $CFLAGS"
2eef8513
VZ
23225fi
23226if test "x$HPCXX" = "xyes"; then
c92ad099 23227 CXXFLAGS="+W 2340 $CXXFLAGS"
2eef8513
VZ
23228fi
23229
23230if test "x$COMPAQCXX" = "xyes"; then
23231 CXXFLAGS="-w0 -msg_disable basclsnondto,unrimpret,intconlosbit"
23232fi
23233
f56c22b4 23234if test "$wxUSE_STD_STRING" = "yes" -o "$wxUSE_STL" = "yes"; then
f56c22b4
MW
23235 if test "$wxUSE_UNICODE" = "yes"; then
23236 std_string="std::wstring"
23237 char_type="wchar_t"
23238 else
23239 std_string="std::string"
23240 char_type="char"
23241 fi
23242
23243 echo "$as_me:$LINENO: checking for $std_string in <string>" >&5
23244echo $ECHO_N "checking for $std_string in <string>... $ECHO_C" >&6
a848cd7e
SC
23245 cat >conftest.$ac_ext <<_ACEOF
23246/* confdefs.h. */
23247_ACEOF
23248cat confdefs.h >>conftest.$ac_ext
23249cat >>conftest.$ac_ext <<_ACEOF
23250/* end confdefs.h. */
23251#include <string>
a848cd7e
SC
23252int
23253main ()
23254{
f56c22b4 23255$std_string foo;
a848cd7e
SC
23256 ;
23257 return 0;
23258}
23259_ACEOF
23260rm -f conftest.$ac_objext
23261if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 23262 (eval $ac_compile) 2>conftest.er1
a848cd7e 23263 ac_status=$?
ac1cb8d3
VS
23264 grep -v '^ *+' conftest.er1 >conftest.err
23265 rm -f conftest.er1
23266 cat conftest.err >&5
a848cd7e
SC
23267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23268 (exit $ac_status); } &&
c9a66001 23269 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
23270 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23271 (eval $ac_try) 2>&5
23272 ac_status=$?
23273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23274 (exit $ac_status); }; } &&
23275 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
23276 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23277 (eval $ac_try) 2>&5
23278 ac_status=$?
23279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23280 (exit $ac_status); }; }; then
23281 echo "$as_me:$LINENO: result: yes" >&5
23282echo "${ECHO_T}yes" >&6
0a08f02a
MB
23283 cat >>confdefs.h <<\_ACEOF
23284#define HAVE_STD_WSTRING 1
23285_ACEOF
23286
a848cd7e
SC
23287else
23288 echo "$as_me: failed program was:" >&5
23289sed 's/^/| /' conftest.$ac_ext >&5
23290
23291echo "$as_me:$LINENO: result: no" >&5
23292echo "${ECHO_T}no" >&6
f56c22b4
MW
23293 echo "$as_me:$LINENO: checking if std::basic_string<$char_type> works" >&5
23294echo $ECHO_N "checking if std::basic_string<$char_type> works... $ECHO_C" >&6
0a08f02a
MB
23295 cat >conftest.$ac_ext <<_ACEOF
23296/* confdefs.h. */
23297_ACEOF
23298cat confdefs.h >>conftest.$ac_ext
23299cat >>conftest.$ac_ext <<_ACEOF
23300/* end confdefs.h. */
23301
23302 #ifdef HAVE_WCHAR_H
23303 # ifdef __CYGWIN__
23304 # include <stddef.h>
23305 # endif
23306 # include <wchar.h>
23307 #endif
23308 #ifdef HAVE_STDLIB_H
23309 # include <stdlib.h>
23310 #endif
23311 #include <stdio.h>
23312 #include <string>
23313
23314int
23315main ()
23316{
f56c22b4
MW
23317std::basic_string<$char_type> foo;
23318 const $char_type* dummy = foo.c_str();
0a08f02a
MB
23319 ;
23320 return 0;
23321}
23322_ACEOF
23323rm -f conftest.$ac_objext
23324if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23325 (eval $ac_compile) 2>conftest.er1
23326 ac_status=$?
23327 grep -v '^ *+' conftest.er1 >conftest.err
23328 rm -f conftest.er1
23329 cat conftest.err >&5
23330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23331 (exit $ac_status); } &&
c9a66001 23332 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
0a08f02a
MB
23333 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23334 (eval $ac_try) 2>&5
23335 ac_status=$?
23336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23337 (exit $ac_status); }; } &&
23338 { ac_try='test -s conftest.$ac_objext'
23339 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23340 (eval $ac_try) 2>&5
23341 ac_status=$?
23342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23343 (exit $ac_status); }; }; then
23344 echo "$as_me:$LINENO: result: yes" >&5
23345echo "${ECHO_T}yes" >&6
23346else
23347 echo "$as_me: failed program was:" >&5
23348sed 's/^/| /' conftest.$ac_ext >&5
23349
23350echo "$as_me:$LINENO: result: no" >&5
23351echo "${ECHO_T}no" >&6
f56c22b4 23352 if test "$wxUSE_STL" = "yes"; then
4b9918c5
MW
23353 { { echo "$as_me:$LINENO: error: Can't use --enable-stl without $std_string or std::basic_string<$char_type>" >&5
23354echo "$as_me: error: Can't use --enable-stl without $std_string or std::basic_string<$char_type>" >&2;}
23355 { (exit 1); exit 1; }; }
23356 elif grep wxUSE_STD_STRING $wx_arg_cache_file >/dev/null; then
23357 { { echo "$as_me:$LINENO: error: Can't use --enable-std_string without $std_string or std::basic_string<$char_type>" >&5
23358echo "$as_me: error: Can't use --enable-std_string without $std_string or std::basic_string<$char_type>" >&2;}
a848cd7e 23359 { (exit 1); exit 1; }; }
f56c22b4
MW
23360 else
23361 { echo "$as_me:$LINENO: WARNING: No $std_string or std::basic_string<$char_type>, switching to --disable-std_string" >&5
23362echo "$as_me: WARNING: No $std_string or std::basic_string<$char_type>, switching to --disable-std_string" >&2;}
23363 wxUSE_STD_STRING=no
23364 fi
23365
0a08f02a 23366
a848cd7e 23367fi
ac1cb8d3 23368rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 23369
0a08f02a
MB
23370fi
23371rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
f56c22b4
MW
23372fi
23373
23374if test "$wxUSE_STD_IOSTREAM" = "yes"; then
f56c22b4
MW
23375 echo "$as_me:$LINENO: checking for std::istream" >&5
23376echo $ECHO_N "checking for std::istream... $ECHO_C" >&6
23377if test "${ac_cv_type_std__istream+set}" = set; then
23378 echo $ECHO_N "(cached) $ECHO_C" >&6
23379else
23380 cat >conftest.$ac_ext <<_ACEOF
23381/* confdefs.h. */
23382_ACEOF
23383cat confdefs.h >>conftest.$ac_ext
23384cat >>conftest.$ac_ext <<_ACEOF
23385/* end confdefs.h. */
23386#include <iostream>
23387
23388int
23389main ()
23390{
23391if ((std::istream *) 0)
23392 return 0;
23393if (sizeof (std::istream))
23394 return 0;
23395 ;
23396 return 0;
23397}
23398_ACEOF
23399rm -f conftest.$ac_objext
23400if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23401 (eval $ac_compile) 2>conftest.er1
23402 ac_status=$?
23403 grep -v '^ *+' conftest.er1 >conftest.err
23404 rm -f conftest.er1
23405 cat conftest.err >&5
23406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23407 (exit $ac_status); } &&
c9a66001 23408 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
f56c22b4
MW
23409 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23410 (eval $ac_try) 2>&5
23411 ac_status=$?
23412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23413 (exit $ac_status); }; } &&
23414 { ac_try='test -s conftest.$ac_objext'
23415 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23416 (eval $ac_try) 2>&5
23417 ac_status=$?
23418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23419 (exit $ac_status); }; }; then
23420 ac_cv_type_std__istream=yes
23421else
23422 echo "$as_me: failed program was:" >&5
23423sed 's/^/| /' conftest.$ac_ext >&5
23424
23425ac_cv_type_std__istream=no
23426fi
23427rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23428fi
23429echo "$as_me:$LINENO: result: $ac_cv_type_std__istream" >&5
23430echo "${ECHO_T}$ac_cv_type_std__istream" >&6
23431if test $ac_cv_type_std__istream = yes; then
23432
23433cat >>confdefs.h <<_ACEOF
23434#define HAVE_STD__ISTREAM 1
23435_ACEOF
23436
23437
23438else
23439 wxUSE_STD_IOSTREAM=no
23440fi
23441echo "$as_me:$LINENO: checking for std::ostream" >&5
23442echo $ECHO_N "checking for std::ostream... $ECHO_C" >&6
23443if test "${ac_cv_type_std__ostream+set}" = set; then
23444 echo $ECHO_N "(cached) $ECHO_C" >&6
23445else
23446 cat >conftest.$ac_ext <<_ACEOF
23447/* confdefs.h. */
23448_ACEOF
23449cat confdefs.h >>conftest.$ac_ext
23450cat >>conftest.$ac_ext <<_ACEOF
23451/* end confdefs.h. */
23452#include <iostream>
23453
23454int
23455main ()
23456{
23457if ((std::ostream *) 0)
23458 return 0;
23459if (sizeof (std::ostream))
23460 return 0;
23461 ;
23462 return 0;
23463}
23464_ACEOF
23465rm -f conftest.$ac_objext
23466if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23467 (eval $ac_compile) 2>conftest.er1
23468 ac_status=$?
23469 grep -v '^ *+' conftest.er1 >conftest.err
23470 rm -f conftest.er1
23471 cat conftest.err >&5
23472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23473 (exit $ac_status); } &&
c9a66001 23474 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
f56c22b4
MW
23475 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23476 (eval $ac_try) 2>&5
23477 ac_status=$?
23478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23479 (exit $ac_status); }; } &&
23480 { ac_try='test -s conftest.$ac_objext'
23481 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23482 (eval $ac_try) 2>&5
23483 ac_status=$?
23484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23485 (exit $ac_status); }; }; then
23486 ac_cv_type_std__ostream=yes
23487else
23488 echo "$as_me: failed program was:" >&5
23489sed 's/^/| /' conftest.$ac_ext >&5
23490
23491ac_cv_type_std__ostream=no
23492fi
23493rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23494fi
23495echo "$as_me:$LINENO: result: $ac_cv_type_std__ostream" >&5
23496echo "${ECHO_T}$ac_cv_type_std__ostream" >&6
23497if test $ac_cv_type_std__ostream = yes; then
23498
23499cat >>confdefs.h <<_ACEOF
23500#define HAVE_STD__OSTREAM 1
23501_ACEOF
23502
23503
23504else
23505 wxUSE_STD_IOSTREAM=no
23506fi
23507
23508
23509 if test "$wxUSE_STD_IOSTREAM" != "yes"; then
4b9918c5
MW
23510 if grep wxUSE_STD_IOSTREAM $wx_arg_cache_file >/dev/null; then
23511 { { echo "$as_me:$LINENO: error: Can't use --enable-std_iostreams without std::istream and std::ostream" >&5
23512echo "$as_me: error: Can't use --enable-std_iostreams without std::istream and std::ostream" >&2;}
23513 { (exit 1); exit 1; }; }
23514 else
23515 { echo "$as_me:$LINENO: WARNING: No std::iostreams, switching to --disable-std_iostreams" >&5
f56c22b4 23516echo "$as_me: WARNING: No std::iostreams, switching to --disable-std_iostreams" >&2;}
4b9918c5 23517 fi
f56c22b4 23518 fi
0a08f02a
MB
23519fi
23520
23521if test "$wxUSE_STL" = "yes"; then
0a08f02a
MB
23522 echo "$as_me:$LINENO: checking for basic STL functionality" >&5
23523echo $ECHO_N "checking for basic STL functionality... $ECHO_C" >&6
a848cd7e
SC
23524 cat >conftest.$ac_ext <<_ACEOF
23525/* confdefs.h. */
23526_ACEOF
23527cat confdefs.h >>conftest.$ac_ext
23528cat >>conftest.$ac_ext <<_ACEOF
23529/* end confdefs.h. */
23530#include <string>
0a08f02a
MB
23531 #include <functional>
23532 #include <algorithm>
23533 #include <vector>
23534 #include <list>
a848cd7e
SC
23535int
23536main ()
23537{
0a08f02a
MB
23538std::vector<int> moo;
23539 std::list<int> foo;
23540 std::vector<int>::iterator it =
23541 std::find_if(moo.begin(), moo.end(),
23542 std::bind2nd(std::less<int>(), 3));
a848cd7e
SC
23543 ;
23544 return 0;
23545}
23546_ACEOF
23547rm -f conftest.$ac_objext
23548if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 23549 (eval $ac_compile) 2>conftest.er1
a848cd7e 23550 ac_status=$?
ac1cb8d3
VS
23551 grep -v '^ *+' conftest.er1 >conftest.err
23552 rm -f conftest.er1
23553 cat conftest.err >&5
a848cd7e
SC
23554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23555 (exit $ac_status); } &&
c9a66001 23556 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
23557 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23558 (eval $ac_try) 2>&5
23559 ac_status=$?
23560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23561 (exit $ac_status); }; } &&
23562 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
23563 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23564 (eval $ac_try) 2>&5
23565 ac_status=$?
23566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23567 (exit $ac_status); }; }; then
23568 echo "$as_me:$LINENO: result: yes" >&5
23569echo "${ECHO_T}yes" >&6
a848cd7e
SC
23570else
23571 echo "$as_me: failed program was:" >&5
23572sed 's/^/| /' conftest.$ac_ext >&5
23573
23574echo "$as_me:$LINENO: result: no" >&5
23575echo "${ECHO_T}no" >&6
0a08f02a
MB
23576 { { echo "$as_me:$LINENO: error: Basic STL functionality missing" >&5
23577echo "$as_me: error: Basic STL functionality missing" >&2;}
23578 { (exit 1); exit 1; }; }
a848cd7e 23579fi
ac1cb8d3 23580rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
23581
23582 echo "$as_me:$LINENO: checking for compliant std::string::compare" >&5
23583echo $ECHO_N "checking for compliant std::string::compare... $ECHO_C" >&6
23584 cat >conftest.$ac_ext <<_ACEOF
23585/* confdefs.h. */
23586_ACEOF
23587cat confdefs.h >>conftest.$ac_ext
23588cat >>conftest.$ac_ext <<_ACEOF
23589/* end confdefs.h. */
23590#include <string>
23591int
23592main ()
23593{
23594std::string foo, bar;
23595 foo.compare(bar);
23596 foo.compare(1, 1, bar);
23597 foo.compare(1, 1, bar, 1, 1);
23598 foo.compare("");
23599 foo.compare(1, 1, "");
23600 foo.compare(1, 1, "", 2);
23601 ;
23602 return 0;
23603}
23604_ACEOF
23605rm -f conftest.$ac_objext
23606if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 23607 (eval $ac_compile) 2>conftest.er1
a848cd7e 23608 ac_status=$?
ac1cb8d3
VS
23609 grep -v '^ *+' conftest.er1 >conftest.err
23610 rm -f conftest.er1
23611 cat conftest.err >&5
a848cd7e
SC
23612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23613 (exit $ac_status); } &&
c9a66001 23614 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
23615 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23616 (eval $ac_try) 2>&5
23617 ac_status=$?
23618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23619 (exit $ac_status); }; } &&
23620 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
23621 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23622 (eval $ac_try) 2>&5
23623 ac_status=$?
23624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23625 (exit $ac_status); }; }; then
23626 echo "$as_me:$LINENO: result: yes" >&5
23627echo "${ECHO_T}yes" >&6
23628 cat >>confdefs.h <<\_ACEOF
23629#define HAVE_STD_STRING_COMPARE 1
23630_ACEOF
23631
23632else
23633 echo "$as_me: failed program was:" >&5
23634sed 's/^/| /' conftest.$ac_ext >&5
23635
23636echo "$as_me:$LINENO: result: no" >&5
23637echo "${ECHO_T}no" >&6
23638fi
ac1cb8d3 23639rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bdcade0a
MB
23640
23641 if test "${ac_cv_header_hash_map+set}" = set; then
23642 echo "$as_me:$LINENO: checking for hash_map" >&5
23643echo $ECHO_N "checking for hash_map... $ECHO_C" >&6
23644if test "${ac_cv_header_hash_map+set}" = set; then
23645 echo $ECHO_N "(cached) $ECHO_C" >&6
23646fi
23647echo "$as_me:$LINENO: result: $ac_cv_header_hash_map" >&5
23648echo "${ECHO_T}$ac_cv_header_hash_map" >&6
23649else
23650 # Is the header compilable?
23651echo "$as_me:$LINENO: checking hash_map usability" >&5
23652echo $ECHO_N "checking hash_map usability... $ECHO_C" >&6
23653cat >conftest.$ac_ext <<_ACEOF
23654/* confdefs.h. */
23655_ACEOF
23656cat confdefs.h >>conftest.$ac_ext
23657cat >>conftest.$ac_ext <<_ACEOF
23658/* end confdefs.h. */
23659$ac_includes_default
23660#include <hash_map>
23661_ACEOF
23662rm -f conftest.$ac_objext
23663if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 23664 (eval $ac_compile) 2>conftest.er1
bdcade0a 23665 ac_status=$?
ac1cb8d3
VS
23666 grep -v '^ *+' conftest.er1 >conftest.err
23667 rm -f conftest.er1
23668 cat conftest.err >&5
bdcade0a
MB
23669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23670 (exit $ac_status); } &&
c9a66001 23671 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
23672 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23673 (eval $ac_try) 2>&5
23674 ac_status=$?
23675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23676 (exit $ac_status); }; } &&
23677 { ac_try='test -s conftest.$ac_objext'
bdcade0a
MB
23678 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23679 (eval $ac_try) 2>&5
23680 ac_status=$?
23681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23682 (exit $ac_status); }; }; then
23683 ac_header_compiler=yes
23684else
23685 echo "$as_me: failed program was:" >&5
23686sed 's/^/| /' conftest.$ac_ext >&5
23687
23688ac_header_compiler=no
23689fi
ac1cb8d3 23690rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bdcade0a
MB
23691echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23692echo "${ECHO_T}$ac_header_compiler" >&6
23693
23694# Is the header present?
23695echo "$as_me:$LINENO: checking hash_map presence" >&5
23696echo $ECHO_N "checking hash_map presence... $ECHO_C" >&6
23697cat >conftest.$ac_ext <<_ACEOF
23698/* confdefs.h. */
23699_ACEOF
23700cat confdefs.h >>conftest.$ac_ext
23701cat >>conftest.$ac_ext <<_ACEOF
23702/* end confdefs.h. */
23703#include <hash_map>
23704_ACEOF
23705if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
23706 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
23707 ac_status=$?
23708 grep -v '^ *+' conftest.er1 >conftest.err
23709 rm -f conftest.er1
23710 cat conftest.err >&5
23711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23712 (exit $ac_status); } >/dev/null; then
23713 if test -s conftest.err; then
23714 ac_cpp_err=$ac_cxx_preproc_warn_flag
ac1cb8d3 23715 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
bdcade0a
MB
23716 else
23717 ac_cpp_err=
23718 fi
23719else
23720 ac_cpp_err=yes
23721fi
23722if test -z "$ac_cpp_err"; then
23723 ac_header_preproc=yes
23724else
23725 echo "$as_me: failed program was:" >&5
23726sed 's/^/| /' conftest.$ac_ext >&5
23727
23728 ac_header_preproc=no
23729fi
23730rm -f conftest.err conftest.$ac_ext
23731echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23732echo "${ECHO_T}$ac_header_preproc" >&6
23733
23734# So? What about this header?
ac1cb8d3
VS
23735case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
23736 yes:no: )
bdcade0a
MB
23737 { echo "$as_me:$LINENO: WARNING: hash_map: accepted by the compiler, rejected by the preprocessor!" >&5
23738echo "$as_me: WARNING: hash_map: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
23739 { echo "$as_me:$LINENO: WARNING: hash_map: proceeding with the compiler's result" >&5
23740echo "$as_me: WARNING: hash_map: proceeding with the compiler's result" >&2;}
23741 ac_header_preproc=yes
bdcade0a 23742 ;;
ac1cb8d3 23743 no:yes:* )
bdcade0a
MB
23744 { echo "$as_me:$LINENO: WARNING: hash_map: present but cannot be compiled" >&5
23745echo "$as_me: WARNING: hash_map: present but cannot be compiled" >&2;}
ac1cb8d3
VS
23746 { echo "$as_me:$LINENO: WARNING: hash_map: check for missing prerequisite headers?" >&5
23747echo "$as_me: WARNING: hash_map: check for missing prerequisite headers?" >&2;}
23748 { echo "$as_me:$LINENO: WARNING: hash_map: see the Autoconf documentation" >&5
23749echo "$as_me: WARNING: hash_map: see the Autoconf documentation" >&2;}
23750 { echo "$as_me:$LINENO: WARNING: hash_map: section \"Present But Cannot Be Compiled\"" >&5
23751echo "$as_me: WARNING: hash_map: section \"Present But Cannot Be Compiled\"" >&2;}
bdcade0a
MB
23752 { echo "$as_me:$LINENO: WARNING: hash_map: proceeding with the preprocessor's result" >&5
23753echo "$as_me: WARNING: hash_map: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
23754 { echo "$as_me:$LINENO: WARNING: hash_map: in the future, the compiler will take precedence" >&5
23755echo "$as_me: WARNING: hash_map: in the future, the compiler will take precedence" >&2;}
bdcade0a
MB
23756 (
23757 cat <<\_ASBOX
ac1cb8d3
VS
23758## ----------------------------------------- ##
23759## Report this to wx-dev@lists.wxwidgets.org ##
23760## ----------------------------------------- ##
bdcade0a
MB
23761_ASBOX
23762 ) |
23763 sed "s/^/$as_me: WARNING: /" >&2
23764 ;;
23765esac
23766echo "$as_me:$LINENO: checking for hash_map" >&5
23767echo $ECHO_N "checking for hash_map... $ECHO_C" >&6
23768if test "${ac_cv_header_hash_map+set}" = set; then
23769 echo $ECHO_N "(cached) $ECHO_C" >&6
23770else
23771 ac_cv_header_hash_map=$ac_header_preproc
23772fi
23773echo "$as_me:$LINENO: result: $ac_cv_header_hash_map" >&5
23774echo "${ECHO_T}$ac_cv_header_hash_map" >&6
23775
23776fi
23777if test $ac_cv_header_hash_map = yes; then
23778 echo "$as_me:$LINENO: checking for hash_map and hash_set" >&5
23779echo $ECHO_N "checking for hash_map and hash_set... $ECHO_C" >&6
23780 cat >conftest.$ac_ext <<_ACEOF
23781/* confdefs.h. */
23782_ACEOF
23783cat confdefs.h >>conftest.$ac_ext
23784cat >>conftest.$ac_ext <<_ACEOF
23785/* end confdefs.h. */
23786#include <hash_map>
23787 #include <hash_set>
23788int
23789main ()
23790{
23791std::hash_map<double*, char*, std::hash<double*>, std::equal_to<double*> > test1;
23792 std::hash_set<char*, std::hash<char*>, std::equal_to<char*> > test2;
23793 ;
23794 return 0;
23795}
23796_ACEOF
23797rm -f conftest.$ac_objext
23798if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 23799 (eval $ac_compile) 2>conftest.er1
bdcade0a 23800 ac_status=$?
ac1cb8d3
VS
23801 grep -v '^ *+' conftest.er1 >conftest.err
23802 rm -f conftest.er1
23803 cat conftest.err >&5
bdcade0a
MB
23804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23805 (exit $ac_status); } &&
c9a66001 23806 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
23807 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23808 (eval $ac_try) 2>&5
23809 ac_status=$?
23810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23811 (exit $ac_status); }; } &&
23812 { ac_try='test -s conftest.$ac_objext'
bdcade0a
MB
23813 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23814 (eval $ac_try) 2>&5
23815 ac_status=$?
23816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23817 (exit $ac_status); }; }; then
23818 echo "$as_me:$LINENO: result: yes" >&5
23819echo "${ECHO_T}yes" >&6
23820 cat >>confdefs.h <<\_ACEOF
23821#define HAVE_HASH_MAP 1
23822_ACEOF
23823
23824 cat >>confdefs.h <<\_ACEOF
23825#define HAVE_STD_HASH_MAP 1
23826_ACEOF
23827
23828else
23829 echo "$as_me: failed program was:" >&5
23830sed 's/^/| /' conftest.$ac_ext >&5
23831
23832echo "$as_me:$LINENO: result: no" >&5
23833echo "${ECHO_T}no" >&6
23834fi
ac1cb8d3 23835rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bdcade0a
MB
23836
23837fi
23838
23839
23840
23841 if test "${ac_cv_header_ext_hash_map+set}" = set; then
23842 echo "$as_me:$LINENO: checking for ext/hash_map" >&5
23843echo $ECHO_N "checking for ext/hash_map... $ECHO_C" >&6
23844if test "${ac_cv_header_ext_hash_map+set}" = set; then
23845 echo $ECHO_N "(cached) $ECHO_C" >&6
23846fi
23847echo "$as_me:$LINENO: result: $ac_cv_header_ext_hash_map" >&5
23848echo "${ECHO_T}$ac_cv_header_ext_hash_map" >&6
23849else
23850 # Is the header compilable?
23851echo "$as_me:$LINENO: checking ext/hash_map usability" >&5
23852echo $ECHO_N "checking ext/hash_map usability... $ECHO_C" >&6
23853cat >conftest.$ac_ext <<_ACEOF
23854/* confdefs.h. */
23855_ACEOF
23856cat confdefs.h >>conftest.$ac_ext
23857cat >>conftest.$ac_ext <<_ACEOF
23858/* end confdefs.h. */
23859$ac_includes_default
23860#include <ext/hash_map>
23861_ACEOF
23862rm -f conftest.$ac_objext
23863if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 23864 (eval $ac_compile) 2>conftest.er1
bdcade0a 23865 ac_status=$?
ac1cb8d3
VS
23866 grep -v '^ *+' conftest.er1 >conftest.err
23867 rm -f conftest.er1
23868 cat conftest.err >&5
bdcade0a
MB
23869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23870 (exit $ac_status); } &&
c9a66001 23871 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
23872 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23873 (eval $ac_try) 2>&5
23874 ac_status=$?
23875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23876 (exit $ac_status); }; } &&
23877 { ac_try='test -s conftest.$ac_objext'
bdcade0a
MB
23878 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23879 (eval $ac_try) 2>&5
23880 ac_status=$?
23881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23882 (exit $ac_status); }; }; then
23883 ac_header_compiler=yes
23884else
23885 echo "$as_me: failed program was:" >&5
23886sed 's/^/| /' conftest.$ac_ext >&5
23887
23888ac_header_compiler=no
23889fi
ac1cb8d3 23890rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bdcade0a
MB
23891echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23892echo "${ECHO_T}$ac_header_compiler" >&6
23893
23894# Is the header present?
23895echo "$as_me:$LINENO: checking ext/hash_map presence" >&5
23896echo $ECHO_N "checking ext/hash_map presence... $ECHO_C" >&6
23897cat >conftest.$ac_ext <<_ACEOF
23898/* confdefs.h. */
23899_ACEOF
23900cat confdefs.h >>conftest.$ac_ext
23901cat >>conftest.$ac_ext <<_ACEOF
23902/* end confdefs.h. */
23903#include <ext/hash_map>
23904_ACEOF
23905if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
23906 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
23907 ac_status=$?
23908 grep -v '^ *+' conftest.er1 >conftest.err
23909 rm -f conftest.er1
23910 cat conftest.err >&5
23911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23912 (exit $ac_status); } >/dev/null; then
23913 if test -s conftest.err; then
23914 ac_cpp_err=$ac_cxx_preproc_warn_flag
ac1cb8d3 23915 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
bdcade0a
MB
23916 else
23917 ac_cpp_err=
23918 fi
23919else
23920 ac_cpp_err=yes
23921fi
23922if test -z "$ac_cpp_err"; then
23923 ac_header_preproc=yes
23924else
23925 echo "$as_me: failed program was:" >&5
23926sed 's/^/| /' conftest.$ac_ext >&5
23927
23928 ac_header_preproc=no
23929fi
23930rm -f conftest.err conftest.$ac_ext
23931echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23932echo "${ECHO_T}$ac_header_preproc" >&6
23933
23934# So? What about this header?
ac1cb8d3
VS
23935case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
23936 yes:no: )
bdcade0a
MB
23937 { echo "$as_me:$LINENO: WARNING: ext/hash_map: accepted by the compiler, rejected by the preprocessor!" >&5
23938echo "$as_me: WARNING: ext/hash_map: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
23939 { echo "$as_me:$LINENO: WARNING: ext/hash_map: proceeding with the compiler's result" >&5
23940echo "$as_me: WARNING: ext/hash_map: proceeding with the compiler's result" >&2;}
23941 ac_header_preproc=yes
bdcade0a 23942 ;;
ac1cb8d3 23943 no:yes:* )
bdcade0a
MB
23944 { echo "$as_me:$LINENO: WARNING: ext/hash_map: present but cannot be compiled" >&5
23945echo "$as_me: WARNING: ext/hash_map: present but cannot be compiled" >&2;}
ac1cb8d3
VS
23946 { echo "$as_me:$LINENO: WARNING: ext/hash_map: check for missing prerequisite headers?" >&5
23947echo "$as_me: WARNING: ext/hash_map: check for missing prerequisite headers?" >&2;}
23948 { echo "$as_me:$LINENO: WARNING: ext/hash_map: see the Autoconf documentation" >&5
23949echo "$as_me: WARNING: ext/hash_map: see the Autoconf documentation" >&2;}
23950 { echo "$as_me:$LINENO: WARNING: ext/hash_map: section \"Present But Cannot Be Compiled\"" >&5
23951echo "$as_me: WARNING: ext/hash_map: section \"Present But Cannot Be Compiled\"" >&2;}
bdcade0a
MB
23952 { echo "$as_me:$LINENO: WARNING: ext/hash_map: proceeding with the preprocessor's result" >&5
23953echo "$as_me: WARNING: ext/hash_map: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
23954 { echo "$as_me:$LINENO: WARNING: ext/hash_map: in the future, the compiler will take precedence" >&5
23955echo "$as_me: WARNING: ext/hash_map: in the future, the compiler will take precedence" >&2;}
bdcade0a
MB
23956 (
23957 cat <<\_ASBOX
ac1cb8d3
VS
23958## ----------------------------------------- ##
23959## Report this to wx-dev@lists.wxwidgets.org ##
23960## ----------------------------------------- ##
bdcade0a
MB
23961_ASBOX
23962 ) |
23963 sed "s/^/$as_me: WARNING: /" >&2
23964 ;;
23965esac
23966echo "$as_me:$LINENO: checking for ext/hash_map" >&5
23967echo $ECHO_N "checking for ext/hash_map... $ECHO_C" >&6
23968if test "${ac_cv_header_ext_hash_map+set}" = set; then
23969 echo $ECHO_N "(cached) $ECHO_C" >&6
23970else
23971 ac_cv_header_ext_hash_map=$ac_header_preproc
23972fi
23973echo "$as_me:$LINENO: result: $ac_cv_header_ext_hash_map" >&5
23974echo "${ECHO_T}$ac_cv_header_ext_hash_map" >&6
23975
23976fi
23977if test $ac_cv_header_ext_hash_map = yes; then
23978 echo "$as_me:$LINENO: checking for hash_map and hash_set" >&5
23979echo $ECHO_N "checking for hash_map and hash_set... $ECHO_C" >&6
23980 cat >conftest.$ac_ext <<_ACEOF
23981/* confdefs.h. */
23982_ACEOF
23983cat confdefs.h >>conftest.$ac_ext
23984cat >>conftest.$ac_ext <<_ACEOF
23985/* end confdefs.h. */
23986#include <ext/hash_map>
23987 #include <ext/hash_set>
23988int
23989main ()
23990{
23991__gnu_cxx::hash_map<double*, char*, __gnu_cxx::hash<double*>, std::equal_to<double*> > test1;
23992 __gnu_cxx::hash_set<char*, __gnu_cxx::hash<char*>, std::equal_to<char*> > test2;
23993 ;
23994 return 0;
23995}
23996_ACEOF
23997rm -f conftest.$ac_objext
23998if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 23999 (eval $ac_compile) 2>conftest.er1
bdcade0a 24000 ac_status=$?
ac1cb8d3
VS
24001 grep -v '^ *+' conftest.er1 >conftest.err
24002 rm -f conftest.er1
24003 cat conftest.err >&5
bdcade0a
MB
24004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24005 (exit $ac_status); } &&
c9a66001 24006 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
24007 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24008 (eval $ac_try) 2>&5
24009 ac_status=$?
24010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24011 (exit $ac_status); }; } &&
24012 { ac_try='test -s conftest.$ac_objext'
bdcade0a
MB
24013 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24014 (eval $ac_try) 2>&5
24015 ac_status=$?
24016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24017 (exit $ac_status); }; }; then
24018 echo "$as_me:$LINENO: result: yes" >&5
24019echo "${ECHO_T}yes" >&6
24020 cat >>confdefs.h <<\_ACEOF
24021#define HAVE_EXT_HASH_MAP 1
24022_ACEOF
24023
24024 cat >>confdefs.h <<\_ACEOF
24025#define HAVE_GNU_CXX_HASH_MAP 1
24026_ACEOF
24027
24028else
24029 echo "$as_me: failed program was:" >&5
24030sed 's/^/| /' conftest.$ac_ext >&5
24031
24032echo "$as_me:$LINENO: result: no" >&5
24033echo "${ECHO_T}no" >&6
24034fi
ac1cb8d3 24035rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bdcade0a
MB
24036
24037fi
24038
24039
a848cd7e
SC
24040fi
24041
24042
24043SEARCH_INCLUDE="\
24044 /usr/local/include \
24045 \
24046 /usr/Motif-2.1/include \
24047 /usr/Motif-1.2/include \
24048 /usr/include/Motif1.2 \
a848cd7e
SC
24049 \
24050 /usr/dt/include \
24051 /usr/openwin/include \
24052 \
24053 /usr/include/Xm \
24054 \
24055 /usr/X11R6/include \
24056 /usr/X11R6.4/include \
24057 /usr/X11R5/include \
24058 /usr/X11R4/include \
24059 \
24060 /usr/include/X11R6 \
24061 /usr/include/X11R5 \
24062 /usr/include/X11R4 \
24063 \
24064 /usr/local/X11R6/include \
24065 /usr/local/X11R5/include \
24066 /usr/local/X11R4/include \
24067 \
24068 /usr/local/include/X11R6 \
24069 /usr/local/include/X11R5 \
24070 /usr/local/include/X11R4 \
24071 \
24072 /usr/X11/include \
24073 /usr/include/X11 \
24074 /usr/local/X11/include \
24075 /usr/local/include/X11 \
24076 \
a848cd7e 24077 /usr/XFree86/include/X11 \
e051b34e
MW
24078 /usr/pkg/include \
24079 \
a848cd7e
SC
24080 /usr/openwin/share/include"
24081
6f9cf1e6 24082echo "$as_me:$LINENO: checking for libraries directory" >&5
0ad5d837 24083echo $ECHO_N "checking for libraries directory... $ECHO_C" >&6
6f9cf1e6
MW
24084
24085case "${host}" in
24086 *-*-irix6* )
24087 if test "${wx_cv_std_libpath+set}" = set; then
0ad5d837
VZ
24088 echo $ECHO_N "(cached) $ECHO_C" >&6
24089else
24090
c687b303
VZ
24091 for d in /usr/lib /usr/lib32 /usr/lib/64 /usr/lib64; do
24092 for e in a so sl dylib dll.a; do
24093 libc="$d/libc.$e"
24094 if test -f $libc; then
24095 save_LIBS="$LIBS"
24096 LIBS="$libc"
24097 cat >conftest.$ac_ext <<_ACEOF
0ad5d837
VZ
24098int main() { return 0; }
24099_ACEOF
24100rm -f conftest.$ac_objext conftest$ac_exeext
24101if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24102 (eval $ac_link) 2>conftest.er1
24103 ac_status=$?
24104 grep -v '^ *+' conftest.er1 >conftest.err
24105 rm -f conftest.er1
24106 cat conftest.err >&5
24107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24108 (exit $ac_status); } &&
c9a66001 24109 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
0ad5d837
VZ
24110 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24111 (eval $ac_try) 2>&5
24112 ac_status=$?
24113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24114 (exit $ac_status); }; } &&
24115 { ac_try='test -s conftest$ac_exeext'
24116 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24117 (eval $ac_try) 2>&5
24118 ac_status=$?
24119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24120 (exit $ac_status); }; }; then
24121 wx_cv_std_libpath=`echo $d | sed s@/usr/@@`
24122else
24123 echo "$as_me: failed program was:" >&5
24124sed 's/^/| /' conftest.$ac_ext >&5
24125
24126fi
24127rm -f conftest.err conftest.$ac_objext \
24128 conftest$ac_exeext conftest.$ac_ext
c687b303
VZ
24129 LIBS="$save_LIBS"
24130 if test "x$wx_cv_std_libpath" != "x"; then
24131 break 2
24132 fi
24133 fi
24134 done
24135 done
24136 if test "x$wx_cv_std_libpath" = "x"; then
24137 wx_cv_std_libpath="lib"
0ad5d837 24138 fi
0ad5d837
VZ
24139
24140
24141fi
6f9cf1e6
MW
24142
24143 ;;
24144
24145 *-*-solaris2* )
24146 if test "$ac_cv_sizeof_void_p" = 8 -a -d "/usr/lib/64"; then
24147 wx_cv_std_libpath="lib/64"
24148 else
24149 wx_cv_std_libpath="lib"
24150 fi
24151 ;;
24152
24153 *-*-linux* )
24154 if test "$ac_cv_sizeof_void_p" = 8 -a \
24155 -d "/usr/lib64" -a ! -h "/usr/lib64"; then
24156 wx_cv_std_libpath="lib64"
24157 else
24158 wx_cv_std_libpath="lib"
24159 fi
c687b303
VZ
24160 ;;
24161
24162 *)
24163 wx_cv_std_libpath="lib";
24164 ;;
24165esac
0ad5d837 24166
6f9cf1e6
MW
24167echo "$as_me:$LINENO: result: $wx_cv_std_libpath" >&5
24168echo "${ECHO_T}$wx_cv_std_libpath" >&6
24169
24170SEARCH_LIB="`echo "$SEARCH_INCLUDE" | sed s@include@$wx_cv_std_libpath@g` /usr/$wx_cv_std_libpath"
a848cd7e 24171
3eca31dc
MW
24172if test "$build" != "$host" -a "$GCC" = yes; then
24173 if cross_root=`$CC -print-prog-name=ld 2>/dev/null`; then
24174 cross_root=`dirname $cross_root`
24175 cross_root=`dirname $cross_root`
24176
24177 SEARCH_LIB=`for x in $SEARCH_LIB; do echo $x; done | sed -ne "s|^/usr|$cross_root|p"`
24178 SEARCH_INCLUDE=`for x in $SEARCH_INCLUDE; do echo $x; done | sed -ne "s|^/usr|$cross_root|p"`
5c60e845 24179 SEARCH_INCLUDE="$SEARCH_INCLUDE $cross_root/include"
3eca31dc
MW
24180
24181 if test -z "$PKG_CONFIG_PATH"; then
24182 PKG_CONFIG_PATH="$cross_root/local/lib/pkgconfig:$cross_root/lib/pkgconfig"
24183 export PKG_CONFIG_PATH
24184 fi
24185
24186 if test -z "$x_includes" -o "$x_includes" = NONE; then
24187
24188ac_find_includes=
24189for ac_dir in $SEARCH_INCLUDE /usr/include;
24190 do
24191 if test -f "$ac_dir/X11/Intrinsic.h"; then
24192 ac_find_includes=$ac_dir
24193 break
24194 fi
24195 done
24196
24197 x_includes=$ac_find_includes
24198 fi
24199 if test -z "$x_libraries" -o "$x_libraries" = NONE; then
24200
0ad5d837
VZ
24201 ac_find_libraries=
24202 for ac_dir in $SEARCH_LIB;
3eca31dc
MW
24203 do
24204 for ac_extension in a so sl dylib dll.a; do
24205 if test -f "$ac_dir/libXt.$ac_extension"; then
24206 ac_find_libraries=$ac_dir
24207 break 2
24208 fi
24209 done
24210 done
24211
24212 x_libraries=$ac_find_libraries
24213 fi
24214 fi
24215fi
24216
a848cd7e
SC
24217
24218cat >confcache <<\_ACEOF
24219# This file is a shell script that caches the results of configure
24220# tests run on this system so they can be shared between configure
24221# scripts and configure runs, see configure's option --config-cache.
24222# It is not useful on other systems. If it contains results you don't
24223# want to keep, you may remove or edit it.
24224#
24225# config.status only pays attention to the cache file if you give it
24226# the --recheck option to rerun configure.
24227#
24228# `ac_cv_env_foo' variables (set or unset) will be overridden when
24229# loading this file, other *unset* `ac_cv_foo' will be assigned the
24230# following values.
24231
24232_ACEOF
24233
24234# The following way of writing the cache mishandles newlines in values,
24235# but we know of no workaround that is simple, portable, and efficient.
24236# So, don't put newlines in cache variables' values.
24237# Ultrix sh set writes to stderr and can't be redirected directly,
24238# and sets the high bit in the cache file unless we assign to the vars.
24239{
24240 (set) 2>&1 |
24241 case `(ac_space=' '; set | grep ac_space) 2>&1` in
24242 *ac_space=\ *)
24243 # `set' does not quote correctly, so add quotes (double-quote
24244 # substitution turns \\\\ into \\, and sed turns \\ into \).
24245 sed -n \
ac1cb8d3
VS
24246 "s/'/'\\\\''/g;
24247 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
a848cd7e
SC
24248 ;;
24249 *)
24250 # `set' quotes correctly as required by POSIX, so do not add quotes.
24251 sed -n \
ac1cb8d3 24252 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
a848cd7e
SC
24253 ;;
24254 esac;
24255} |
24256 sed '
24257 t clear
24258 : clear
24259 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
24260 t end
24261 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
24262 : end' >>confcache
24263if diff $cache_file confcache >/dev/null 2>&1; then :; else
24264 if test -w $cache_file; then
24265 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
24266 cat confcache >$cache_file
24267 else
24268 echo "not updating unwritable cache $cache_file"
24269 fi
24270fi
24271rm -f confcache
24272
24273if test "$USE_LINUX" = 1 -o "$USE_GNU" = 1; then
24274 echo "$as_me:$LINENO: checking for glibc 2.1 or later" >&5
24275echo $ECHO_N "checking for glibc 2.1 or later... $ECHO_C" >&6
24276if test "${wx_cv_lib_glibc21+set}" = set; then
24277 echo $ECHO_N "(cached) $ECHO_C" >&6
24278else
24279
24280 cat >conftest.$ac_ext <<_ACEOF
24281/* confdefs.h. */
24282_ACEOF
24283cat confdefs.h >>conftest.$ac_ext
24284cat >>conftest.$ac_ext <<_ACEOF
24285/* end confdefs.h. */
24286#include <features.h>
24287int
24288main ()
24289{
24290
24291 #if (__GLIBC__ < 2) || (__GLIBC_MINOR__ < 1)
04e525a0 24292 not glibc 2.1
a848cd7e
SC
24293 #endif
24294
24295 ;
24296 return 0;
24297}
24298_ACEOF
24299rm -f conftest.$ac_objext
24300if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 24301 (eval $ac_compile) 2>conftest.er1
a848cd7e 24302 ac_status=$?
ac1cb8d3
VS
24303 grep -v '^ *+' conftest.er1 >conftest.err
24304 rm -f conftest.er1
24305 cat conftest.err >&5
a848cd7e
SC
24306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24307 (exit $ac_status); } &&
c9a66001 24308 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
24309 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24310 (eval $ac_try) 2>&5
24311 ac_status=$?
24312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24313 (exit $ac_status); }; } &&
24314 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
24315 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24316 (eval $ac_try) 2>&5
24317 ac_status=$?
24318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24319 (exit $ac_status); }; }; then
24320
24321 wx_cv_lib_glibc21=yes
24322
24323else
24324 echo "$as_me: failed program was:" >&5
24325sed 's/^/| /' conftest.$ac_ext >&5
24326
24327
24328 wx_cv_lib_glibc21=no
24329
24330
24331fi
ac1cb8d3 24332rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
24333
24334fi
24335echo "$as_me:$LINENO: result: $wx_cv_lib_glibc21" >&5
24336echo "${ECHO_T}$wx_cv_lib_glibc21" >&6
24337 if test "$wx_cv_lib_glibc21" = "yes"; then
24338 cat >>confdefs.h <<\_ACEOF
24339#define wxHAVE_GLIBC2 1
24340_ACEOF
24341
24342 fi
24343fi
24344
24345if test "x$wx_cv_lib_glibc21" = "xyes"; then
24346 if test "$wxUSE_UNICODE" = "yes" -o "$wxUSE_THREADS" = "yes"; then
24347 cat >>confdefs.h <<\_ACEOF
24348#define _GNU_SOURCE 1
24349_ACEOF
24350
24351 fi
24352fi
24353
5d7b7554
VZ
24354have_cos=0
24355have_floor=0
a848cd7e 24356
5d7b7554
VZ
24357for ac_func in cos
24358do
24359as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24360echo "$as_me:$LINENO: checking for $ac_func" >&5
24361echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
24362if eval "test \"\${$as_ac_var+set}\" = set"; then
a848cd7e 24363 echo $ECHO_N "(cached) $ECHO_C" >&6
a848cd7e 24364else
5d7b7554 24365 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
24366/* confdefs.h. */
24367_ACEOF
24368cat confdefs.h >>conftest.$ac_ext
24369cat >>conftest.$ac_ext <<_ACEOF
24370/* end confdefs.h. */
5d7b7554
VZ
24371/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24372 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24373#define $ac_func innocuous_$ac_func
24374
24375/* System header to define __stub macros and hopefully few prototypes,
24376 which can conflict with char $ac_func (); below.
24377 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24378 <limits.h> exists even on freestanding compilers. */
24379
24380#ifdef __STDC__
24381# include <limits.h>
24382#else
24383# include <assert.h>
24384#endif
24385
24386#undef $ac_func
24387
24388/* Override any gcc2 internal prototype to avoid an error. */
24389#ifdef __cplusplus
24390extern "C"
24391{
24392#endif
24393/* We use char because int might match the return type of a gcc2
24394 builtin and then its argument prototype would still apply. */
24395char $ac_func ();
24396/* The GNU C library defines this for functions which it implements
24397 to always fail with ENOSYS. Some functions are actually named
24398 something starting with __ and the normal name is an alias. */
24399#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
24400choke me
24401#else
24402char (*f) () = $ac_func;
24403#endif
24404#ifdef __cplusplus
24405}
24406#endif
24407
24408int
24409main ()
24410{
24411return f != $ac_func;
24412 ;
24413 return 0;
24414}
a848cd7e 24415_ACEOF
5d7b7554
VZ
24416rm -f conftest.$ac_objext conftest$ac_exeext
24417if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24418 (eval $ac_link) 2>conftest.er1
a848cd7e 24419 ac_status=$?
ac1cb8d3
VS
24420 grep -v '^ *+' conftest.er1 >conftest.err
24421 rm -f conftest.er1
24422 cat conftest.err >&5
a848cd7e
SC
24423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24424 (exit $ac_status); } &&
c9a66001 24425 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
24426 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24427 (eval $ac_try) 2>&5
24428 ac_status=$?
24429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24430 (exit $ac_status); }; } &&
5d7b7554 24431 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
24432 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24433 (eval $ac_try) 2>&5
24434 ac_status=$?
24435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24436 (exit $ac_status); }; }; then
5d7b7554 24437 eval "$as_ac_var=yes"
a848cd7e
SC
24438else
24439 echo "$as_me: failed program was:" >&5
24440sed 's/^/| /' conftest.$ac_ext >&5
24441
5d7b7554 24442eval "$as_ac_var=no"
a848cd7e 24443fi
5d7b7554
VZ
24444rm -f conftest.err conftest.$ac_objext \
24445 conftest$ac_exeext conftest.$ac_ext
a848cd7e 24446fi
5d7b7554
VZ
24447echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
24448echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
24449if test `eval echo '${'$as_ac_var'}'` = yes; then
24450 cat >>confdefs.h <<_ACEOF
24451#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24452_ACEOF
24453 have_cos=1
a848cd7e 24454fi
5d7b7554 24455done
a848cd7e 24456
ab0f0edd 24457
5d7b7554 24458for ac_func in floor
a848cd7e
SC
24459do
24460as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24461echo "$as_me:$LINENO: checking for $ac_func" >&5
24462echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
24463if eval "test \"\${$as_ac_var+set}\" = set"; then
24464 echo $ECHO_N "(cached) $ECHO_C" >&6
24465else
24466 cat >conftest.$ac_ext <<_ACEOF
24467/* confdefs.h. */
24468_ACEOF
24469cat confdefs.h >>conftest.$ac_ext
24470cat >>conftest.$ac_ext <<_ACEOF
24471/* end confdefs.h. */
ac1cb8d3
VS
24472/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24473 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24474#define $ac_func innocuous_$ac_func
24475
a848cd7e
SC
24476/* System header to define __stub macros and hopefully few prototypes,
24477 which can conflict with char $ac_func (); below.
24478 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24479 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 24480
a848cd7e
SC
24481#ifdef __STDC__
24482# include <limits.h>
24483#else
24484# include <assert.h>
24485#endif
ac1cb8d3
VS
24486
24487#undef $ac_func
24488
a848cd7e
SC
24489/* Override any gcc2 internal prototype to avoid an error. */
24490#ifdef __cplusplus
24491extern "C"
24492{
24493#endif
24494/* We use char because int might match the return type of a gcc2
24495 builtin and then its argument prototype would still apply. */
24496char $ac_func ();
24497/* The GNU C library defines this for functions which it implements
24498 to always fail with ENOSYS. Some functions are actually named
24499 something starting with __ and the normal name is an alias. */
24500#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
24501choke me
24502#else
24503char (*f) () = $ac_func;
24504#endif
24505#ifdef __cplusplus
24506}
24507#endif
24508
24509int
24510main ()
24511{
24512return f != $ac_func;
24513 ;
24514 return 0;
24515}
24516_ACEOF
24517rm -f conftest.$ac_objext conftest$ac_exeext
24518if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 24519 (eval $ac_link) 2>conftest.er1
a848cd7e 24520 ac_status=$?
ac1cb8d3
VS
24521 grep -v '^ *+' conftest.er1 >conftest.err
24522 rm -f conftest.er1
24523 cat conftest.err >&5
a848cd7e
SC
24524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24525 (exit $ac_status); } &&
c9a66001 24526 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5d7b7554
VZ
24527 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24528 (eval $ac_try) 2>&5
24529 ac_status=$?
24530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24531 (exit $ac_status); }; } &&
24532 { ac_try='test -s conftest$ac_exeext'
24533 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24534 (eval $ac_try) 2>&5
24535 ac_status=$?
24536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24537 (exit $ac_status); }; }; then
24538 eval "$as_ac_var=yes"
24539else
24540 echo "$as_me: failed program was:" >&5
24541sed 's/^/| /' conftest.$ac_ext >&5
24542
24543eval "$as_ac_var=no"
24544fi
24545rm -f conftest.err conftest.$ac_objext \
24546 conftest$ac_exeext conftest.$ac_ext
24547fi
24548echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
24549echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
24550if test `eval echo '${'$as_ac_var'}'` = yes; then
24551 cat >>confdefs.h <<_ACEOF
24552#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24553_ACEOF
24554 have_floor=1
24555fi
24556done
24557
24558echo "$as_me:$LINENO: checking if floating point functions link without -lm" >&5
24559echo $ECHO_N "checking if floating point functions link without -lm... $ECHO_C" >&6
24560if test "$have_cos" = 1 -a "$have_floor" = 1; then
24561 echo "$as_me:$LINENO: result: yes" >&5
24562echo "${ECHO_T}yes" >&6
24563else
24564 echo "$as_me:$LINENO: result: no" >&5
24565echo "${ECHO_T}no" >&6
24566 LIBS="$LIBS -lm"
24567 # use different functions to avoid configure caching
24568 have_sin=0
24569 have_ceil=0
24570
24571for ac_func in sin
24572do
24573as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24574echo "$as_me:$LINENO: checking for $ac_func" >&5
24575echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
24576if eval "test \"\${$as_ac_var+set}\" = set"; then
24577 echo $ECHO_N "(cached) $ECHO_C" >&6
24578else
24579 cat >conftest.$ac_ext <<_ACEOF
24580/* confdefs.h. */
24581_ACEOF
24582cat confdefs.h >>conftest.$ac_ext
24583cat >>conftest.$ac_ext <<_ACEOF
24584/* end confdefs.h. */
24585/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24586 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24587#define $ac_func innocuous_$ac_func
24588
24589/* System header to define __stub macros and hopefully few prototypes,
24590 which can conflict with char $ac_func (); below.
24591 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24592 <limits.h> exists even on freestanding compilers. */
24593
24594#ifdef __STDC__
24595# include <limits.h>
24596#else
24597# include <assert.h>
24598#endif
24599
24600#undef $ac_func
24601
24602/* Override any gcc2 internal prototype to avoid an error. */
24603#ifdef __cplusplus
24604extern "C"
24605{
24606#endif
24607/* We use char because int might match the return type of a gcc2
24608 builtin and then its argument prototype would still apply. */
24609char $ac_func ();
24610/* The GNU C library defines this for functions which it implements
24611 to always fail with ENOSYS. Some functions are actually named
24612 something starting with __ and the normal name is an alias. */
24613#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
24614choke me
24615#else
24616char (*f) () = $ac_func;
24617#endif
24618#ifdef __cplusplus
24619}
24620#endif
24621
24622int
24623main ()
24624{
24625return f != $ac_func;
24626 ;
24627 return 0;
24628}
24629_ACEOF
24630rm -f conftest.$ac_objext conftest$ac_exeext
24631if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24632 (eval $ac_link) 2>conftest.er1
24633 ac_status=$?
24634 grep -v '^ *+' conftest.er1 >conftest.err
24635 rm -f conftest.er1
24636 cat conftest.err >&5
24637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24638 (exit $ac_status); } &&
c9a66001 24639 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5d7b7554
VZ
24640 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24641 (eval $ac_try) 2>&5
24642 ac_status=$?
24643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24644 (exit $ac_status); }; } &&
24645 { ac_try='test -s conftest$ac_exeext'
24646 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24647 (eval $ac_try) 2>&5
24648 ac_status=$?
24649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24650 (exit $ac_status); }; }; then
24651 eval "$as_ac_var=yes"
24652else
24653 echo "$as_me: failed program was:" >&5
24654sed 's/^/| /' conftest.$ac_ext >&5
24655
24656eval "$as_ac_var=no"
24657fi
24658rm -f conftest.err conftest.$ac_objext \
24659 conftest$ac_exeext conftest.$ac_ext
24660fi
24661echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
24662echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
24663if test `eval echo '${'$as_ac_var'}'` = yes; then
24664 cat >>confdefs.h <<_ACEOF
24665#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24666_ACEOF
24667 have_sin=1
24668fi
24669done
24670
24671
24672for ac_func in ceil
24673do
24674as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24675echo "$as_me:$LINENO: checking for $ac_func" >&5
24676echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
24677if eval "test \"\${$as_ac_var+set}\" = set"; then
24678 echo $ECHO_N "(cached) $ECHO_C" >&6
24679else
24680 cat >conftest.$ac_ext <<_ACEOF
24681/* confdefs.h. */
24682_ACEOF
24683cat confdefs.h >>conftest.$ac_ext
24684cat >>conftest.$ac_ext <<_ACEOF
24685/* end confdefs.h. */
24686/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24687 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24688#define $ac_func innocuous_$ac_func
24689
24690/* System header to define __stub macros and hopefully few prototypes,
24691 which can conflict with char $ac_func (); below.
24692 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24693 <limits.h> exists even on freestanding compilers. */
24694
24695#ifdef __STDC__
24696# include <limits.h>
24697#else
24698# include <assert.h>
24699#endif
24700
24701#undef $ac_func
24702
24703/* Override any gcc2 internal prototype to avoid an error. */
24704#ifdef __cplusplus
24705extern "C"
24706{
24707#endif
24708/* We use char because int might match the return type of a gcc2
24709 builtin and then its argument prototype would still apply. */
24710char $ac_func ();
24711/* The GNU C library defines this for functions which it implements
24712 to always fail with ENOSYS. Some functions are actually named
24713 something starting with __ and the normal name is an alias. */
24714#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
24715choke me
24716#else
24717char (*f) () = $ac_func;
24718#endif
24719#ifdef __cplusplus
24720}
24721#endif
24722
24723int
24724main ()
24725{
24726return f != $ac_func;
24727 ;
24728 return 0;
24729}
24730_ACEOF
24731rm -f conftest.$ac_objext conftest$ac_exeext
24732if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24733 (eval $ac_link) 2>conftest.er1
24734 ac_status=$?
24735 grep -v '^ *+' conftest.er1 >conftest.err
24736 rm -f conftest.er1
24737 cat conftest.err >&5
24738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24739 (exit $ac_status); } &&
c9a66001 24740 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5d7b7554
VZ
24741 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24742 (eval $ac_try) 2>&5
24743 ac_status=$?
24744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24745 (exit $ac_status); }; } &&
24746 { ac_try='test -s conftest$ac_exeext'
24747 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24748 (eval $ac_try) 2>&5
24749 ac_status=$?
24750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24751 (exit $ac_status); }; }; then
24752 eval "$as_ac_var=yes"
24753else
24754 echo "$as_me: failed program was:" >&5
24755sed 's/^/| /' conftest.$ac_ext >&5
24756
24757eval "$as_ac_var=no"
24758fi
24759rm -f conftest.err conftest.$ac_objext \
24760 conftest$ac_exeext conftest.$ac_ext
24761fi
24762echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
24763echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
24764if test `eval echo '${'$as_ac_var'}'` = yes; then
24765 cat >>confdefs.h <<_ACEOF
24766#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24767_ACEOF
24768 have_ceil=1
24769fi
24770done
24771
24772 echo "$as_me:$LINENO: checking if floating point functions link with -lm" >&5
24773echo $ECHO_N "checking if floating point functions link with -lm... $ECHO_C" >&6
24774 if test "$have_sin" = 1 -a "$have_ceil" = 1; then
24775 echo "$as_me:$LINENO: result: yes" >&5
24776echo "${ECHO_T}yes" >&6
24777 else
24778 echo "$as_me:$LINENO: result: no" >&5
24779echo "${ECHO_T}no" >&6
24780 # not sure we should warn the user, crash, etc.
24781 fi
24782fi
24783
24784
24785
24786if test "$wxUSE_REGEX" != "no"; then
24787 cat >>confdefs.h <<\_ACEOF
24788#define wxUSE_REGEX 1
24789_ACEOF
24790
24791
24792 if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_REGEX" = "yes"; then
24793 { echo "$as_me:$LINENO: WARNING: Defaulting to the the builtin regex library for Unicode build." >&5
24794echo "$as_me: WARNING: Defaulting to the the builtin regex library for Unicode build." >&2;}
24795 wxUSE_REGEX=builtin
24796 fi
24797
24798 if test "$wxUSE_REGEX" = "sys" -o "$wxUSE_REGEX" = "yes" ; then
24799 if test "${ac_cv_header_regex_h+set}" = set; then
24800 echo "$as_me:$LINENO: checking for regex.h" >&5
24801echo $ECHO_N "checking for regex.h... $ECHO_C" >&6
24802if test "${ac_cv_header_regex_h+set}" = set; then
24803 echo $ECHO_N "(cached) $ECHO_C" >&6
24804fi
24805echo "$as_me:$LINENO: result: $ac_cv_header_regex_h" >&5
24806echo "${ECHO_T}$ac_cv_header_regex_h" >&6
24807else
24808 # Is the header compilable?
24809echo "$as_me:$LINENO: checking regex.h usability" >&5
24810echo $ECHO_N "checking regex.h usability... $ECHO_C" >&6
24811cat >conftest.$ac_ext <<_ACEOF
24812/* confdefs.h. */
24813_ACEOF
24814cat confdefs.h >>conftest.$ac_ext
24815cat >>conftest.$ac_ext <<_ACEOF
24816/* end confdefs.h. */
24817$ac_includes_default
24818#include <regex.h>
24819_ACEOF
24820rm -f conftest.$ac_objext
24821if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24822 (eval $ac_compile) 2>conftest.er1
24823 ac_status=$?
24824 grep -v '^ *+' conftest.er1 >conftest.err
24825 rm -f conftest.er1
24826 cat conftest.err >&5
24827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24828 (exit $ac_status); } &&
c9a66001 24829 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5d7b7554
VZ
24830 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24831 (eval $ac_try) 2>&5
24832 ac_status=$?
24833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24834 (exit $ac_status); }; } &&
24835 { ac_try='test -s conftest.$ac_objext'
24836 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24837 (eval $ac_try) 2>&5
24838 ac_status=$?
24839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24840 (exit $ac_status); }; }; then
24841 ac_header_compiler=yes
24842else
24843 echo "$as_me: failed program was:" >&5
24844sed 's/^/| /' conftest.$ac_ext >&5
24845
24846ac_header_compiler=no
24847fi
24848rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24849echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24850echo "${ECHO_T}$ac_header_compiler" >&6
24851
24852# Is the header present?
24853echo "$as_me:$LINENO: checking regex.h presence" >&5
24854echo $ECHO_N "checking regex.h presence... $ECHO_C" >&6
24855cat >conftest.$ac_ext <<_ACEOF
24856/* confdefs.h. */
24857_ACEOF
24858cat confdefs.h >>conftest.$ac_ext
24859cat >>conftest.$ac_ext <<_ACEOF
24860/* end confdefs.h. */
24861#include <regex.h>
24862_ACEOF
24863if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
24864 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
24865 ac_status=$?
24866 grep -v '^ *+' conftest.er1 >conftest.err
24867 rm -f conftest.er1
24868 cat conftest.err >&5
24869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24870 (exit $ac_status); } >/dev/null; then
24871 if test -s conftest.err; then
24872 ac_cpp_err=$ac_cxx_preproc_warn_flag
24873 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
24874 else
24875 ac_cpp_err=
24876 fi
24877else
24878 ac_cpp_err=yes
24879fi
24880if test -z "$ac_cpp_err"; then
24881 ac_header_preproc=yes
24882else
24883 echo "$as_me: failed program was:" >&5
24884sed 's/^/| /' conftest.$ac_ext >&5
24885
24886 ac_header_preproc=no
24887fi
24888rm -f conftest.err conftest.$ac_ext
24889echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24890echo "${ECHO_T}$ac_header_preproc" >&6
24891
24892# So? What about this header?
24893case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
24894 yes:no: )
24895 { echo "$as_me:$LINENO: WARNING: regex.h: accepted by the compiler, rejected by the preprocessor!" >&5
24896echo "$as_me: WARNING: regex.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
24897 { echo "$as_me:$LINENO: WARNING: regex.h: proceeding with the compiler's result" >&5
24898echo "$as_me: WARNING: regex.h: proceeding with the compiler's result" >&2;}
24899 ac_header_preproc=yes
24900 ;;
24901 no:yes:* )
24902 { echo "$as_me:$LINENO: WARNING: regex.h: present but cannot be compiled" >&5
24903echo "$as_me: WARNING: regex.h: present but cannot be compiled" >&2;}
24904 { echo "$as_me:$LINENO: WARNING: regex.h: check for missing prerequisite headers?" >&5
24905echo "$as_me: WARNING: regex.h: check for missing prerequisite headers?" >&2;}
24906 { echo "$as_me:$LINENO: WARNING: regex.h: see the Autoconf documentation" >&5
24907echo "$as_me: WARNING: regex.h: see the Autoconf documentation" >&2;}
24908 { echo "$as_me:$LINENO: WARNING: regex.h: section \"Present But Cannot Be Compiled\"" >&5
24909echo "$as_me: WARNING: regex.h: section \"Present But Cannot Be Compiled\"" >&2;}
24910 { echo "$as_me:$LINENO: WARNING: regex.h: proceeding with the preprocessor's result" >&5
24911echo "$as_me: WARNING: regex.h: proceeding with the preprocessor's result" >&2;}
24912 { echo "$as_me:$LINENO: WARNING: regex.h: in the future, the compiler will take precedence" >&5
24913echo "$as_me: WARNING: regex.h: in the future, the compiler will take precedence" >&2;}
24914 (
24915 cat <<\_ASBOX
24916## ----------------------------------------- ##
24917## Report this to wx-dev@lists.wxwidgets.org ##
24918## ----------------------------------------- ##
24919_ASBOX
24920 ) |
24921 sed "s/^/$as_me: WARNING: /" >&2
24922 ;;
24923esac
24924echo "$as_me:$LINENO: checking for regex.h" >&5
24925echo $ECHO_N "checking for regex.h... $ECHO_C" >&6
24926if test "${ac_cv_header_regex_h+set}" = set; then
24927 echo $ECHO_N "(cached) $ECHO_C" >&6
24928else
24929 ac_cv_header_regex_h=$ac_header_preproc
24930fi
24931echo "$as_me:$LINENO: result: $ac_cv_header_regex_h" >&5
24932echo "${ECHO_T}$ac_cv_header_regex_h" >&6
24933
24934fi
24935if test $ac_cv_header_regex_h = yes; then
24936
24937
24938for ac_func in regcomp re_search
24939do
24940as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24941echo "$as_me:$LINENO: checking for $ac_func" >&5
24942echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
24943if eval "test \"\${$as_ac_var+set}\" = set"; then
24944 echo $ECHO_N "(cached) $ECHO_C" >&6
24945else
24946 cat >conftest.$ac_ext <<_ACEOF
24947/* confdefs.h. */
24948_ACEOF
24949cat confdefs.h >>conftest.$ac_ext
24950cat >>conftest.$ac_ext <<_ACEOF
24951/* end confdefs.h. */
24952/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24953 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24954#define $ac_func innocuous_$ac_func
24955
24956/* System header to define __stub macros and hopefully few prototypes,
24957 which can conflict with char $ac_func (); below.
24958 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24959 <limits.h> exists even on freestanding compilers. */
24960
24961#ifdef __STDC__
24962# include <limits.h>
24963#else
24964# include <assert.h>
24965#endif
24966
24967#undef $ac_func
24968
24969/* Override any gcc2 internal prototype to avoid an error. */
24970#ifdef __cplusplus
24971extern "C"
24972{
24973#endif
24974/* We use char because int might match the return type of a gcc2
24975 builtin and then its argument prototype would still apply. */
24976char $ac_func ();
24977/* The GNU C library defines this for functions which it implements
24978 to always fail with ENOSYS. Some functions are actually named
24979 something starting with __ and the normal name is an alias. */
24980#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
24981choke me
24982#else
24983char (*f) () = $ac_func;
24984#endif
24985#ifdef __cplusplus
24986}
24987#endif
24988
24989int
24990main ()
24991{
24992return f != $ac_func;
24993 ;
24994 return 0;
24995}
24996_ACEOF
24997rm -f conftest.$ac_objext conftest$ac_exeext
24998if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24999 (eval $ac_link) 2>conftest.er1
25000 ac_status=$?
25001 grep -v '^ *+' conftest.er1 >conftest.err
25002 rm -f conftest.er1
25003 cat conftest.err >&5
25004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25005 (exit $ac_status); } &&
c9a66001 25006 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
25007 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25008 (eval $ac_try) 2>&5
25009 ac_status=$?
25010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25011 (exit $ac_status); }; } &&
25012 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
25013 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25014 (eval $ac_try) 2>&5
25015 ac_status=$?
25016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25017 (exit $ac_status); }; }; then
25018 eval "$as_ac_var=yes"
25019else
25020 echo "$as_me: failed program was:" >&5
25021sed 's/^/| /' conftest.$ac_ext >&5
25022
25023eval "$as_ac_var=no"
25024fi
ac1cb8d3
VS
25025rm -f conftest.err conftest.$ac_objext \
25026 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
25027fi
25028echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
25029echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
25030if test `eval echo '${'$as_ac_var'}'` = yes; then
25031 cat >>confdefs.h <<_ACEOF
25032#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25033_ACEOF
25034
25035fi
25036done
25037
25038fi
25039
25040
25041
25042 if test "x$ac_cv_func_regcomp" != "xyes"; then
25043 if test "$wxUSE_REGEX" = "sys" ; then
25044 { { echo "$as_me:$LINENO: error: system regex library not found! Use --with-regex to use built-in version" >&5
25045echo "$as_me: error: system regex library not found! Use --with-regex to use built-in version" >&2;}
25046 { (exit 1); exit 1; }; }
25047 else
25048 { echo "$as_me:$LINENO: WARNING: system regex library not found, will use built-in instead" >&5
25049echo "$as_me: WARNING: system regex library not found, will use built-in instead" >&2;}
25050 wxUSE_REGEX=builtin
25051 fi
25052 else
25053 wxUSE_REGEX=sys
25054 cat >>confdefs.h <<\_ACEOF
25055#define WX_NO_REGEX_ADVANCED 1
25056_ACEOF
25057
25058 fi
25059 fi
25060fi
25061
25062
25063ZLIB_LINK=
25064if test "$wxUSE_ZLIB" != "no" ; then
25065 cat >>confdefs.h <<\_ACEOF
25066#define wxUSE_ZLIB 1
25067_ACEOF
25068
25069
25070 if test "$wxUSE_ZLIB" = "sys" -o "$wxUSE_ZLIB" = "yes" ; then
25071 if test "$USE_DARWIN" = 1; then
25072 system_zlib_h_ok="yes"
25073 else
25074 echo "$as_me:$LINENO: checking for zlib.h >= 1.1.4" >&5
25075echo $ECHO_N "checking for zlib.h >= 1.1.4... $ECHO_C" >&6
25076if test "${ac_cv_header_zlib_h+set}" = set; then
25077 echo $ECHO_N "(cached) $ECHO_C" >&6
25078else
25079 if test "$cross_compiling" = yes; then
25080 unset ac_cv_header_zlib_h
25081
25082else
25083 cat >conftest.$ac_ext <<_ACEOF
25084/* confdefs.h. */
25085_ACEOF
25086cat confdefs.h >>conftest.$ac_ext
25087cat >>conftest.$ac_ext <<_ACEOF
25088/* end confdefs.h. */
25089
25090 #include <zlib.h>
25091 #include <stdio.h>
25092
25093 int main()
25094 {
25095 FILE *f=fopen("conftestval", "w");
25096 if (!f) exit(1);
25097 fprintf(f, "%s",
25098 ZLIB_VERSION[0] == '1' &&
25099 (ZLIB_VERSION[2] > '1' ||
25100 (ZLIB_VERSION[2] == '1' &&
25101 ZLIB_VERSION[4] >= '4')) ? "yes" : "no");
25102 exit(0);
25103 }
25104
25105_ACEOF
25106rm -f conftest$ac_exeext
25107if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25108 (eval $ac_link) 2>&5
25109 ac_status=$?
25110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25111 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25112 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25113 (eval $ac_try) 2>&5
25114 ac_status=$?
25115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25116 (exit $ac_status); }; }; then
25117 ac_cv_header_zlib_h=`cat conftestval`
25118else
25119 echo "$as_me: program exited with status $ac_status" >&5
25120echo "$as_me: failed program was:" >&5
25121sed 's/^/| /' conftest.$ac_ext >&5
25122
25123( exit $ac_status )
25124ac_cv_header_zlib_h=no
25125fi
ac1cb8d3 25126rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
25127fi
25128
25129fi
25130echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
25131echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
25132 if test "${ac_cv_header_zlib_h+set}" = set; then
25133 echo "$as_me:$LINENO: checking for zlib.h" >&5
25134echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6
25135if test "${ac_cv_header_zlib_h+set}" = set; then
25136 echo $ECHO_N "(cached) $ECHO_C" >&6
25137fi
25138echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
25139echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
25140else
25141 # Is the header compilable?
25142echo "$as_me:$LINENO: checking zlib.h usability" >&5
25143echo $ECHO_N "checking zlib.h usability... $ECHO_C" >&6
25144cat >conftest.$ac_ext <<_ACEOF
25145/* confdefs.h. */
25146_ACEOF
25147cat confdefs.h >>conftest.$ac_ext
25148cat >>conftest.$ac_ext <<_ACEOF
25149/* end confdefs.h. */
25150$ac_includes_default
25151#include <zlib.h>
25152_ACEOF
25153rm -f conftest.$ac_objext
25154if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 25155 (eval $ac_compile) 2>conftest.er1
a848cd7e 25156 ac_status=$?
ac1cb8d3
VS
25157 grep -v '^ *+' conftest.er1 >conftest.err
25158 rm -f conftest.er1
25159 cat conftest.err >&5
a848cd7e
SC
25160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25161 (exit $ac_status); } &&
c9a66001 25162 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
25163 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25164 (eval $ac_try) 2>&5
25165 ac_status=$?
25166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25167 (exit $ac_status); }; } &&
25168 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
25169 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25170 (eval $ac_try) 2>&5
25171 ac_status=$?
25172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25173 (exit $ac_status); }; }; then
25174 ac_header_compiler=yes
25175else
25176 echo "$as_me: failed program was:" >&5
25177sed 's/^/| /' conftest.$ac_ext >&5
25178
25179ac_header_compiler=no
25180fi
ac1cb8d3 25181rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
25182echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25183echo "${ECHO_T}$ac_header_compiler" >&6
25184
25185# Is the header present?
25186echo "$as_me:$LINENO: checking zlib.h presence" >&5
25187echo $ECHO_N "checking zlib.h presence... $ECHO_C" >&6
25188cat >conftest.$ac_ext <<_ACEOF
25189/* confdefs.h. */
25190_ACEOF
25191cat confdefs.h >>conftest.$ac_ext
25192cat >>conftest.$ac_ext <<_ACEOF
25193/* end confdefs.h. */
25194#include <zlib.h>
25195_ACEOF
25196if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25197 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25198 ac_status=$?
25199 grep -v '^ *+' conftest.er1 >conftest.err
25200 rm -f conftest.er1
25201 cat conftest.err >&5
25202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25203 (exit $ac_status); } >/dev/null; then
25204 if test -s conftest.err; then
5d7b7554
VZ
25205 ac_cpp_err=$ac_cxx_preproc_warn_flag
25206 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
25207 else
25208 ac_cpp_err=
25209 fi
25210else
25211 ac_cpp_err=yes
25212fi
25213if test -z "$ac_cpp_err"; then
25214 ac_header_preproc=yes
25215else
25216 echo "$as_me: failed program was:" >&5
25217sed 's/^/| /' conftest.$ac_ext >&5
25218
25219 ac_header_preproc=no
25220fi
25221rm -f conftest.err conftest.$ac_ext
25222echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25223echo "${ECHO_T}$ac_header_preproc" >&6
25224
25225# So? What about this header?
5d7b7554 25226case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
ac1cb8d3 25227 yes:no: )
a848cd7e
SC
25228 { echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
25229echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
25230 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the compiler's result" >&5
25231echo "$as_me: WARNING: zlib.h: proceeding with the compiler's result" >&2;}
25232 ac_header_preproc=yes
a848cd7e 25233 ;;
ac1cb8d3 25234 no:yes:* )
a848cd7e
SC
25235 { echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5
25236echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
25237 { echo "$as_me:$LINENO: WARNING: zlib.h: check for missing prerequisite headers?" >&5
25238echo "$as_me: WARNING: zlib.h: check for missing prerequisite headers?" >&2;}
25239 { echo "$as_me:$LINENO: WARNING: zlib.h: see the Autoconf documentation" >&5
25240echo "$as_me: WARNING: zlib.h: see the Autoconf documentation" >&2;}
25241 { echo "$as_me:$LINENO: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&5
25242echo "$as_me: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
25243 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
25244echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
25245 { echo "$as_me:$LINENO: WARNING: zlib.h: in the future, the compiler will take precedence" >&5
25246echo "$as_me: WARNING: zlib.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
25247 (
25248 cat <<\_ASBOX
ac1cb8d3
VS
25249## ----------------------------------------- ##
25250## Report this to wx-dev@lists.wxwidgets.org ##
25251## ----------------------------------------- ##
a848cd7e
SC
25252_ASBOX
25253 ) |
25254 sed "s/^/$as_me: WARNING: /" >&2
25255 ;;
25256esac
25257echo "$as_me:$LINENO: checking for zlib.h" >&5
25258echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6
25259if test "${ac_cv_header_zlib_h+set}" = set; then
25260 echo $ECHO_N "(cached) $ECHO_C" >&6
25261else
25262 ac_cv_header_zlib_h=$ac_header_preproc
25263fi
25264echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
25265echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
25266
25267fi
25268
25269
25270
25271 system_zlib_h_ok=$ac_cv_header_zlib_h
25272 fi
25273
25274 if test "$system_zlib_h_ok" = "yes"; then
25275 echo "$as_me:$LINENO: checking for deflate in -lz" >&5
25276echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6
25277if test "${ac_cv_lib_z_deflate+set}" = set; then
25278 echo $ECHO_N "(cached) $ECHO_C" >&6
25279else
25280 ac_check_lib_save_LIBS=$LIBS
25281LIBS="-lz $LIBS"
25282cat >conftest.$ac_ext <<_ACEOF
25283/* confdefs.h. */
25284_ACEOF
25285cat confdefs.h >>conftest.$ac_ext
25286cat >>conftest.$ac_ext <<_ACEOF
25287/* end confdefs.h. */
25288
25289/* Override any gcc2 internal prototype to avoid an error. */
25290#ifdef __cplusplus
25291extern "C"
25292#endif
25293/* We use char because int might match the return type of a gcc2
25294 builtin and then its argument prototype would still apply. */
25295char deflate ();
25296int
25297main ()
25298{
25299deflate ();
25300 ;
25301 return 0;
25302}
25303_ACEOF
25304rm -f conftest.$ac_objext conftest$ac_exeext
25305if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 25306 (eval $ac_link) 2>conftest.er1
a848cd7e 25307 ac_status=$?
ac1cb8d3
VS
25308 grep -v '^ *+' conftest.er1 >conftest.err
25309 rm -f conftest.er1
25310 cat conftest.err >&5
a848cd7e
SC
25311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25312 (exit $ac_status); } &&
c9a66001 25313 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
25314 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25315 (eval $ac_try) 2>&5
25316 ac_status=$?
25317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25318 (exit $ac_status); }; } &&
25319 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
25320 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25321 (eval $ac_try) 2>&5
25322 ac_status=$?
25323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25324 (exit $ac_status); }; }; then
25325 ac_cv_lib_z_deflate=yes
25326else
25327 echo "$as_me: failed program was:" >&5
25328sed 's/^/| /' conftest.$ac_ext >&5
25329
25330ac_cv_lib_z_deflate=no
25331fi
ac1cb8d3
VS
25332rm -f conftest.err conftest.$ac_objext \
25333 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
25334LIBS=$ac_check_lib_save_LIBS
25335fi
25336echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
25337echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6
25338if test $ac_cv_lib_z_deflate = yes; then
25339 ZLIB_LINK=" -lz"
25340fi
25341
25342 fi
25343
25344 if test "x$ZLIB_LINK" = "x" ; then
25345 if test "$wxUSE_ZLIB" = "sys" ; then
25346 { { echo "$as_me:$LINENO: error: zlib library not found or too old! Use --with-zlib=builtin to use built-in version" >&5
25347echo "$as_me: error: zlib library not found or too old! Use --with-zlib=builtin to use built-in version" >&2;}
25348 { (exit 1); exit 1; }; }
25349 else
25350 { echo "$as_me:$LINENO: WARNING: zlib library not found or too old, will use built-in instead" >&5
25351echo "$as_me: WARNING: zlib library not found or too old, will use built-in instead" >&2;}
25352 wxUSE_ZLIB=builtin
25353 fi
25354 else
25355 wxUSE_ZLIB=sys
25356 fi
25357 fi
25358fi
25359
25360
25361PNG_LINK=
25362if test "$wxUSE_LIBPNG" != "no" ; then
25363 cat >>confdefs.h <<\_ACEOF
25364#define wxUSE_LIBPNG 1
25365_ACEOF
25366
25367
25368 if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBPNG" = "builtin" ; then
25369 { echo "$as_me:$LINENO: WARNING: wxMGL doesn't work with builtin png library, will use MGL one instead" >&5
25370echo "$as_me: WARNING: wxMGL doesn't work with builtin png library, will use MGL one instead" >&2;}
25371 wxUSE_LIBPNG=sys
25372 fi
25373
25374 if test "$wxUSE_MGL" != 1 -a "$wxUSE_LIBPNG" = "sys" -a "$wxUSE_ZLIB" != "sys" ; then
25375 { echo "$as_me:$LINENO: WARNING: system png library doesn't work without system zlib, will use built-in instead" >&5
25376echo "$as_me: WARNING: system png library doesn't work without system zlib, will use built-in instead" >&2;}
25377 wxUSE_LIBPNG=builtin
25378 fi
25379
25380 if test "$wxUSE_MGL" != 1 ; then
25381 if test "$wxUSE_LIBPNG" = "sys" -o "$wxUSE_LIBPNG" = "yes" ; then
25382 echo "$as_me:$LINENO: checking for png.h > 0.90" >&5
25383echo $ECHO_N "checking for png.h > 0.90... $ECHO_C" >&6
25384if test "${ac_cv_header_png_h+set}" = set; then
25385 echo $ECHO_N "(cached) $ECHO_C" >&6
25386else
25387 if test "$cross_compiling" = yes; then
25388 unset ac_cv_header_png_h
25389
25390else
25391 cat >conftest.$ac_ext <<_ACEOF
25392/* confdefs.h. */
25393_ACEOF
25394cat confdefs.h >>conftest.$ac_ext
25395cat >>conftest.$ac_ext <<_ACEOF
25396/* end confdefs.h. */
25397
25398 #include <png.h>
25399 #include <stdio.h>
25400
25401 int main()
25402 {
25403 FILE *f=fopen("conftestval", "w");
25404 if (!f) exit(1);
25405 fprintf(f, "%s",
25406 PNG_LIBPNG_VER > 90 ? "yes" : "no");
25407 exit(0);
25408 }
25409
25410_ACEOF
25411rm -f conftest$ac_exeext
25412if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25413 (eval $ac_link) 2>&5
25414 ac_status=$?
25415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25416 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25417 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25418 (eval $ac_try) 2>&5
25419 ac_status=$?
25420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25421 (exit $ac_status); }; }; then
25422 ac_cv_header_png_h=`cat conftestval`
25423else
25424 echo "$as_me: program exited with status $ac_status" >&5
25425echo "$as_me: failed program was:" >&5
25426sed 's/^/| /' conftest.$ac_ext >&5
25427
25428( exit $ac_status )
25429ac_cv_header_png_h=no
25430fi
ac1cb8d3 25431rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
25432fi
25433
25434fi
25435echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
25436echo "${ECHO_T}$ac_cv_header_png_h" >&6
25437 if test "${ac_cv_header_png_h+set}" = set; then
25438 echo "$as_me:$LINENO: checking for png.h" >&5
25439echo $ECHO_N "checking for png.h... $ECHO_C" >&6
25440if test "${ac_cv_header_png_h+set}" = set; then
25441 echo $ECHO_N "(cached) $ECHO_C" >&6
25442fi
25443echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
25444echo "${ECHO_T}$ac_cv_header_png_h" >&6
25445else
25446 # Is the header compilable?
25447echo "$as_me:$LINENO: checking png.h usability" >&5
25448echo $ECHO_N "checking png.h usability... $ECHO_C" >&6
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$ac_includes_default
25456#include <png.h>
25457_ACEOF
25458rm -f conftest.$ac_objext
25459if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 25460 (eval $ac_compile) 2>conftest.er1
a848cd7e 25461 ac_status=$?
ac1cb8d3
VS
25462 grep -v '^ *+' conftest.er1 >conftest.err
25463 rm -f conftest.er1
25464 cat conftest.err >&5
a848cd7e
SC
25465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25466 (exit $ac_status); } &&
c9a66001 25467 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
25468 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25469 (eval $ac_try) 2>&5
25470 ac_status=$?
25471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25472 (exit $ac_status); }; } &&
25473 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
25474 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25475 (eval $ac_try) 2>&5
25476 ac_status=$?
25477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25478 (exit $ac_status); }; }; then
25479 ac_header_compiler=yes
25480else
25481 echo "$as_me: failed program was:" >&5
25482sed 's/^/| /' conftest.$ac_ext >&5
25483
25484ac_header_compiler=no
25485fi
ac1cb8d3 25486rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
25487echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25488echo "${ECHO_T}$ac_header_compiler" >&6
25489
25490# Is the header present?
25491echo "$as_me:$LINENO: checking png.h presence" >&5
25492echo $ECHO_N "checking png.h presence... $ECHO_C" >&6
25493cat >conftest.$ac_ext <<_ACEOF
25494/* confdefs.h. */
25495_ACEOF
25496cat confdefs.h >>conftest.$ac_ext
25497cat >>conftest.$ac_ext <<_ACEOF
25498/* end confdefs.h. */
25499#include <png.h>
25500_ACEOF
25501if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25502 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25503 ac_status=$?
25504 grep -v '^ *+' conftest.er1 >conftest.err
25505 rm -f conftest.er1
25506 cat conftest.err >&5
25507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25508 (exit $ac_status); } >/dev/null; then
25509 if test -s conftest.err; then
5d7b7554
VZ
25510 ac_cpp_err=$ac_cxx_preproc_warn_flag
25511 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
25512 else
25513 ac_cpp_err=
25514 fi
25515else
25516 ac_cpp_err=yes
25517fi
25518if test -z "$ac_cpp_err"; then
25519 ac_header_preproc=yes
25520else
25521 echo "$as_me: failed program was:" >&5
25522sed 's/^/| /' conftest.$ac_ext >&5
25523
25524 ac_header_preproc=no
25525fi
25526rm -f conftest.err conftest.$ac_ext
25527echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25528echo "${ECHO_T}$ac_header_preproc" >&6
25529
25530# So? What about this header?
5d7b7554 25531case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
ac1cb8d3 25532 yes:no: )
a848cd7e
SC
25533 { echo "$as_me:$LINENO: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&5
25534echo "$as_me: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
25535 { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the compiler's result" >&5
25536echo "$as_me: WARNING: png.h: proceeding with the compiler's result" >&2;}
25537 ac_header_preproc=yes
a848cd7e 25538 ;;
ac1cb8d3 25539 no:yes:* )
a848cd7e
SC
25540 { echo "$as_me:$LINENO: WARNING: png.h: present but cannot be compiled" >&5
25541echo "$as_me: WARNING: png.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
25542 { echo "$as_me:$LINENO: WARNING: png.h: check for missing prerequisite headers?" >&5
25543echo "$as_me: WARNING: png.h: check for missing prerequisite headers?" >&2;}
25544 { echo "$as_me:$LINENO: WARNING: png.h: see the Autoconf documentation" >&5
25545echo "$as_me: WARNING: png.h: see the Autoconf documentation" >&2;}
25546 { echo "$as_me:$LINENO: WARNING: png.h: section \"Present But Cannot Be Compiled\"" >&5
25547echo "$as_me: WARNING: png.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
25548 { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the preprocessor's result" >&5
25549echo "$as_me: WARNING: png.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
25550 { echo "$as_me:$LINENO: WARNING: png.h: in the future, the compiler will take precedence" >&5
25551echo "$as_me: WARNING: png.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
25552 (
25553 cat <<\_ASBOX
ac1cb8d3
VS
25554## ----------------------------------------- ##
25555## Report this to wx-dev@lists.wxwidgets.org ##
25556## ----------------------------------------- ##
a848cd7e
SC
25557_ASBOX
25558 ) |
25559 sed "s/^/$as_me: WARNING: /" >&2
25560 ;;
25561esac
25562echo "$as_me:$LINENO: checking for png.h" >&5
25563echo $ECHO_N "checking for png.h... $ECHO_C" >&6
25564if test "${ac_cv_header_png_h+set}" = set; then
25565 echo $ECHO_N "(cached) $ECHO_C" >&6
25566else
25567 ac_cv_header_png_h=$ac_header_preproc
25568fi
25569echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
25570echo "${ECHO_T}$ac_cv_header_png_h" >&6
25571
25572fi
25573
25574
25575
25576 if test "$ac_cv_header_png_h" = "yes"; then
25577 echo "$as_me:$LINENO: checking for png_check_sig in -lpng" >&5
25578echo $ECHO_N "checking for png_check_sig in -lpng... $ECHO_C" >&6
25579if test "${ac_cv_lib_png_png_check_sig+set}" = set; then
25580 echo $ECHO_N "(cached) $ECHO_C" >&6
25581else
25582 ac_check_lib_save_LIBS=$LIBS
25583LIBS="-lpng -lz -lm $LIBS"
25584cat >conftest.$ac_ext <<_ACEOF
25585/* confdefs.h. */
25586_ACEOF
25587cat confdefs.h >>conftest.$ac_ext
25588cat >>conftest.$ac_ext <<_ACEOF
25589/* end confdefs.h. */
25590
25591/* Override any gcc2 internal prototype to avoid an error. */
25592#ifdef __cplusplus
25593extern "C"
25594#endif
25595/* We use char because int might match the return type of a gcc2
25596 builtin and then its argument prototype would still apply. */
25597char png_check_sig ();
25598int
25599main ()
25600{
25601png_check_sig ();
25602 ;
25603 return 0;
25604}
25605_ACEOF
25606rm -f conftest.$ac_objext conftest$ac_exeext
25607if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 25608 (eval $ac_link) 2>conftest.er1
a848cd7e 25609 ac_status=$?
ac1cb8d3
VS
25610 grep -v '^ *+' conftest.er1 >conftest.err
25611 rm -f conftest.er1
25612 cat conftest.err >&5
a848cd7e
SC
25613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25614 (exit $ac_status); } &&
c9a66001 25615 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
25616 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25617 (eval $ac_try) 2>&5
25618 ac_status=$?
25619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25620 (exit $ac_status); }; } &&
25621 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
25622 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25623 (eval $ac_try) 2>&5
25624 ac_status=$?
25625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25626 (exit $ac_status); }; }; then
25627 ac_cv_lib_png_png_check_sig=yes
25628else
25629 echo "$as_me: failed program was:" >&5
25630sed 's/^/| /' conftest.$ac_ext >&5
25631
25632ac_cv_lib_png_png_check_sig=no
25633fi
ac1cb8d3
VS
25634rm -f conftest.err conftest.$ac_objext \
25635 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
25636LIBS=$ac_check_lib_save_LIBS
25637fi
25638echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_check_sig" >&5
25639echo "${ECHO_T}$ac_cv_lib_png_png_check_sig" >&6
25640if test $ac_cv_lib_png_png_check_sig = yes; then
25641 PNG_LINK=" -lpng -lz"
25642fi
25643
25644 fi
25645
25646 if test "x$PNG_LINK" = "x" ; then
25647 if test "$wxUSE_LIBPNG" = "sys" ; then
25648 { { echo "$as_me:$LINENO: error: system png library not found or too old! Use --with-libpng=builtin to use built-in version" >&5
25649echo "$as_me: error: system png library not found or too old! Use --with-libpng=builtin to use built-in version" >&2;}
25650 { (exit 1); exit 1; }; }
25651 else
25652 { echo "$as_me:$LINENO: WARNING: system png library not found or too old, will use built-in instead" >&5
25653echo "$as_me: WARNING: system png library not found or too old, will use built-in instead" >&2;}
25654 wxUSE_LIBPNG=builtin
25655 fi
25656 else
25657 wxUSE_LIBPNG=sys
25658 fi
25659 fi
25660 fi
25661
25662 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS png"
25663fi
25664
25665
25666JPEG_LINK=
25667if test "$wxUSE_LIBJPEG" != "no" ; then
25668 cat >>confdefs.h <<\_ACEOF
25669#define wxUSE_LIBJPEG 1
25670_ACEOF
25671
25672
25673 if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBJPEG" = "builtin" ; then
25674 { echo "$as_me:$LINENO: WARNING: wxMGL doesn't work with builtin jpeg library, will use MGL one instead" >&5
25675echo "$as_me: WARNING: wxMGL doesn't work with builtin jpeg library, will use MGL one instead" >&2;}
25676 wxUSE_LIBJPEG=sys
25677 fi
25678
25679 if test "$wxUSE_MGL" != 1 ; then
25680 if test "$wxUSE_LIBJPEG" = "sys" -o "$wxUSE_LIBJPEG" = "yes" ; then
25681 echo "$as_me:$LINENO: checking for jpeglib.h" >&5
25682echo $ECHO_N "checking for jpeglib.h... $ECHO_C" >&6
25683 if test "${ac_cv_header_jpeglib_h+set}" = set; then
25684 echo $ECHO_N "(cached) $ECHO_C" >&6
25685else
25686 cat >conftest.$ac_ext <<_ACEOF
25687/* confdefs.h. */
25688_ACEOF
25689cat confdefs.h >>conftest.$ac_ext
25690cat >>conftest.$ac_ext <<_ACEOF
25691/* end confdefs.h. */
25692
25693 #undef HAVE_STDLIB_H
25694 #include <stdio.h>
25695 #include <jpeglib.h>
25696
25697int
25698main ()
25699{
25700
25701
25702 ;
25703 return 0;
25704}
25705_ACEOF
25706rm -f conftest.$ac_objext
25707if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 25708 (eval $ac_compile) 2>conftest.er1
a848cd7e 25709 ac_status=$?
ac1cb8d3
VS
25710 grep -v '^ *+' conftest.er1 >conftest.err
25711 rm -f conftest.er1
25712 cat conftest.err >&5
a848cd7e
SC
25713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25714 (exit $ac_status); } &&
c9a66001 25715 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
25716 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25717 (eval $ac_try) 2>&5
25718 ac_status=$?
25719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25720 (exit $ac_status); }; } &&
25721 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
25722 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25723 (eval $ac_try) 2>&5
25724 ac_status=$?
25725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25726 (exit $ac_status); }; }; then
25727 ac_cv_header_jpeglib_h=yes
25728else
25729 echo "$as_me: failed program was:" >&5
25730sed 's/^/| /' conftest.$ac_ext >&5
25731
25732ac_cv_header_jpeglib_h=no
25733
25734fi
ac1cb8d3 25735rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
25736
25737fi
25738
25739 echo "$as_me:$LINENO: result: $ac_cv_header_jpeglib_h" >&5
25740echo "${ECHO_T}$ac_cv_header_jpeglib_h" >&6
25741
25742 if test "$ac_cv_header_jpeglib_h" = "yes"; then
25743 echo "$as_me:$LINENO: checking for jpeg_read_header in -ljpeg" >&5
25744echo $ECHO_N "checking for jpeg_read_header in -ljpeg... $ECHO_C" >&6
25745if test "${ac_cv_lib_jpeg_jpeg_read_header+set}" = set; then
25746 echo $ECHO_N "(cached) $ECHO_C" >&6
25747else
25748 ac_check_lib_save_LIBS=$LIBS
25749LIBS="-ljpeg $LIBS"
25750cat >conftest.$ac_ext <<_ACEOF
25751/* confdefs.h. */
25752_ACEOF
25753cat confdefs.h >>conftest.$ac_ext
25754cat >>conftest.$ac_ext <<_ACEOF
25755/* end confdefs.h. */
25756
25757/* Override any gcc2 internal prototype to avoid an error. */
25758#ifdef __cplusplus
25759extern "C"
25760#endif
25761/* We use char because int might match the return type of a gcc2
25762 builtin and then its argument prototype would still apply. */
25763char jpeg_read_header ();
25764int
25765main ()
25766{
25767jpeg_read_header ();
25768 ;
25769 return 0;
25770}
25771_ACEOF
25772rm -f conftest.$ac_objext conftest$ac_exeext
25773if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 25774 (eval $ac_link) 2>conftest.er1
a848cd7e 25775 ac_status=$?
ac1cb8d3
VS
25776 grep -v '^ *+' conftest.er1 >conftest.err
25777 rm -f conftest.er1
25778 cat conftest.err >&5
a848cd7e
SC
25779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25780 (exit $ac_status); } &&
c9a66001 25781 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
25782 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25783 (eval $ac_try) 2>&5
25784 ac_status=$?
25785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25786 (exit $ac_status); }; } &&
25787 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
25788 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25789 (eval $ac_try) 2>&5
25790 ac_status=$?
25791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25792 (exit $ac_status); }; }; then
25793 ac_cv_lib_jpeg_jpeg_read_header=yes
25794else
25795 echo "$as_me: failed program was:" >&5
25796sed 's/^/| /' conftest.$ac_ext >&5
25797
25798ac_cv_lib_jpeg_jpeg_read_header=no
25799fi
ac1cb8d3
VS
25800rm -f conftest.err conftest.$ac_objext \
25801 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
25802LIBS=$ac_check_lib_save_LIBS
25803fi
25804echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_read_header" >&5
25805echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_read_header" >&6
25806if test $ac_cv_lib_jpeg_jpeg_read_header = yes; then
25807 JPEG_LINK=" -ljpeg"
25808fi
25809
25810 fi
25811
25812 if test "x$JPEG_LINK" = "x" ; then
25813 if test "$wxUSE_LIBJPEG" = "sys" ; then
25814 { { echo "$as_me:$LINENO: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" >&5
25815echo "$as_me: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" >&2;}
25816 { (exit 1); exit 1; }; }
25817 else
25818 { echo "$as_me:$LINENO: WARNING: system jpeg library not found, will use built-in instead" >&5
25819echo "$as_me: WARNING: system jpeg library not found, will use built-in instead" >&2;}
25820 wxUSE_LIBJPEG=builtin
25821 fi
25822 else
25823 wxUSE_LIBJPEG=sys
25824 fi
25825 fi
25826 fi
25827fi
25828
25829
25830TIFF_LINK=
25831TIFF_PREREQ_LINKS=-lm
25832if test "$wxUSE_LIBTIFF" != "no" ; then
25833 cat >>confdefs.h <<\_ACEOF
25834#define wxUSE_LIBTIFF 1
25835_ACEOF
25836
25837
25838 if test "$wxUSE_LIBTIFF" = "sys" -o "$wxUSE_LIBTIFF" = "yes" ; then
25839 if test "$wxUSE_LIBJPEG" = "sys"; then
25840 TIFF_PREREQ_LINKS="$TIFF_PREREQ_LINKS $JPEG_LINK"
25841 fi
25842 if test "$wxUSE_ZLIB" = "sys"; then
25843 TIFF_PREREQ_LINKS="$TIFF_PREREQ_LINKS $ZLIB_LINK"
25844 fi
25845 if test "${ac_cv_header_tiffio_h+set}" = set; then
25846 echo "$as_me:$LINENO: checking for tiffio.h" >&5
25847echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
25848if test "${ac_cv_header_tiffio_h+set}" = set; then
25849 echo $ECHO_N "(cached) $ECHO_C" >&6
25850fi
25851echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
25852echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
25853else
25854 # Is the header compilable?
25855echo "$as_me:$LINENO: checking tiffio.h usability" >&5
25856echo $ECHO_N "checking tiffio.h usability... $ECHO_C" >&6
25857cat >conftest.$ac_ext <<_ACEOF
25858/* confdefs.h. */
25859_ACEOF
25860cat confdefs.h >>conftest.$ac_ext
25861cat >>conftest.$ac_ext <<_ACEOF
25862/* end confdefs.h. */
25863$ac_includes_default
25864#include <tiffio.h>
25865_ACEOF
25866rm -f conftest.$ac_objext
25867if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 25868 (eval $ac_compile) 2>conftest.er1
a848cd7e 25869 ac_status=$?
ac1cb8d3
VS
25870 grep -v '^ *+' conftest.er1 >conftest.err
25871 rm -f conftest.er1
25872 cat conftest.err >&5
a848cd7e
SC
25873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25874 (exit $ac_status); } &&
c9a66001 25875 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
25876 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25877 (eval $ac_try) 2>&5
25878 ac_status=$?
25879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25880 (exit $ac_status); }; } &&
25881 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
25882 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25883 (eval $ac_try) 2>&5
25884 ac_status=$?
25885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25886 (exit $ac_status); }; }; then
25887 ac_header_compiler=yes
25888else
25889 echo "$as_me: failed program was:" >&5
25890sed 's/^/| /' conftest.$ac_ext >&5
25891
25892ac_header_compiler=no
25893fi
ac1cb8d3 25894rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
25895echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25896echo "${ECHO_T}$ac_header_compiler" >&6
25897
25898# Is the header present?
25899echo "$as_me:$LINENO: checking tiffio.h presence" >&5
25900echo $ECHO_N "checking tiffio.h presence... $ECHO_C" >&6
25901cat >conftest.$ac_ext <<_ACEOF
25902/* confdefs.h. */
25903_ACEOF
25904cat confdefs.h >>conftest.$ac_ext
25905cat >>conftest.$ac_ext <<_ACEOF
25906/* end confdefs.h. */
25907#include <tiffio.h>
25908_ACEOF
25909if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25910 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25911 ac_status=$?
25912 grep -v '^ *+' conftest.er1 >conftest.err
25913 rm -f conftest.er1
25914 cat conftest.err >&5
25915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25916 (exit $ac_status); } >/dev/null; then
25917 if test -s conftest.err; then
5d7b7554
VZ
25918 ac_cpp_err=$ac_cxx_preproc_warn_flag
25919 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
25920 else
25921 ac_cpp_err=
25922 fi
25923else
25924 ac_cpp_err=yes
25925fi
25926if test -z "$ac_cpp_err"; then
25927 ac_header_preproc=yes
25928else
25929 echo "$as_me: failed program was:" >&5
25930sed 's/^/| /' conftest.$ac_ext >&5
25931
25932 ac_header_preproc=no
25933fi
25934rm -f conftest.err conftest.$ac_ext
25935echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25936echo "${ECHO_T}$ac_header_preproc" >&6
25937
25938# So? What about this header?
5d7b7554 25939case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
ac1cb8d3 25940 yes:no: )
a848cd7e
SC
25941 { echo "$as_me:$LINENO: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&5
25942echo "$as_me: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
25943 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the compiler's result" >&5
25944echo "$as_me: WARNING: tiffio.h: proceeding with the compiler's result" >&2;}
25945 ac_header_preproc=yes
a848cd7e 25946 ;;
ac1cb8d3 25947 no:yes:* )
a848cd7e
SC
25948 { echo "$as_me:$LINENO: WARNING: tiffio.h: present but cannot be compiled" >&5
25949echo "$as_me: WARNING: tiffio.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
25950 { echo "$as_me:$LINENO: WARNING: tiffio.h: check for missing prerequisite headers?" >&5
25951echo "$as_me: WARNING: tiffio.h: check for missing prerequisite headers?" >&2;}
25952 { echo "$as_me:$LINENO: WARNING: tiffio.h: see the Autoconf documentation" >&5
25953echo "$as_me: WARNING: tiffio.h: see the Autoconf documentation" >&2;}
25954 { echo "$as_me:$LINENO: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&5
25955echo "$as_me: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
25956 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result" >&5
25957echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
25958 { echo "$as_me:$LINENO: WARNING: tiffio.h: in the future, the compiler will take precedence" >&5
25959echo "$as_me: WARNING: tiffio.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
25960 (
25961 cat <<\_ASBOX
ac1cb8d3
VS
25962## ----------------------------------------- ##
25963## Report this to wx-dev@lists.wxwidgets.org ##
25964## ----------------------------------------- ##
a848cd7e
SC
25965_ASBOX
25966 ) |
25967 sed "s/^/$as_me: WARNING: /" >&2
25968 ;;
25969esac
25970echo "$as_me:$LINENO: checking for tiffio.h" >&5
25971echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
25972if test "${ac_cv_header_tiffio_h+set}" = set; then
25973 echo $ECHO_N "(cached) $ECHO_C" >&6
25974else
25975 ac_cv_header_tiffio_h=$ac_header_preproc
25976fi
25977echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
25978echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
25979
25980fi
25981if test $ac_cv_header_tiffio_h = yes; then
25982
25983 echo "$as_me:$LINENO: checking for TIFFError in -ltiff" >&5
25984echo $ECHO_N "checking for TIFFError in -ltiff... $ECHO_C" >&6
25985if test "${ac_cv_lib_tiff_TIFFError+set}" = set; then
25986 echo $ECHO_N "(cached) $ECHO_C" >&6
25987else
25988 ac_check_lib_save_LIBS=$LIBS
25989LIBS="-ltiff $TIFF_PREREQ_LINKS $LIBS"
25990cat >conftest.$ac_ext <<_ACEOF
25991/* confdefs.h. */
25992_ACEOF
25993cat confdefs.h >>conftest.$ac_ext
25994cat >>conftest.$ac_ext <<_ACEOF
25995/* end confdefs.h. */
25996
25997/* Override any gcc2 internal prototype to avoid an error. */
25998#ifdef __cplusplus
25999extern "C"
26000#endif
26001/* We use char because int might match the return type of a gcc2
26002 builtin and then its argument prototype would still apply. */
26003char TIFFError ();
26004int
26005main ()
26006{
26007TIFFError ();
26008 ;
26009 return 0;
26010}
26011_ACEOF
26012rm -f conftest.$ac_objext conftest$ac_exeext
26013if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 26014 (eval $ac_link) 2>conftest.er1
a848cd7e 26015 ac_status=$?
ac1cb8d3
VS
26016 grep -v '^ *+' conftest.er1 >conftest.err
26017 rm -f conftest.er1
26018 cat conftest.err >&5
a848cd7e
SC
26019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26020 (exit $ac_status); } &&
c9a66001 26021 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
26022 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26023 (eval $ac_try) 2>&5
26024 ac_status=$?
26025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26026 (exit $ac_status); }; } &&
26027 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
26028 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26029 (eval $ac_try) 2>&5
26030 ac_status=$?
26031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26032 (exit $ac_status); }; }; then
26033 ac_cv_lib_tiff_TIFFError=yes
26034else
26035 echo "$as_me: failed program was:" >&5
26036sed 's/^/| /' conftest.$ac_ext >&5
26037
26038ac_cv_lib_tiff_TIFFError=no
26039fi
ac1cb8d3
VS
26040rm -f conftest.err conftest.$ac_objext \
26041 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
26042LIBS=$ac_check_lib_save_LIBS
26043fi
26044echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFError" >&5
26045echo "${ECHO_T}$ac_cv_lib_tiff_TIFFError" >&6
26046if test $ac_cv_lib_tiff_TIFFError = yes; then
26047 TIFF_LINK=" -ltiff"
26048fi
26049
26050
26051
26052fi
26053
26054
26055
26056 if test "x$TIFF_LINK" = "x" ; then
26057 if test "$wxUSE_LIBTIFF" = "sys" ; then
26058 { { echo "$as_me:$LINENO: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" >&5
26059echo "$as_me: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" >&2;}
26060 { (exit 1); exit 1; }; }
26061 else
26062 { echo "$as_me:$LINENO: WARNING: system tiff library not found, will use built-in instead" >&5
26063echo "$as_me: WARNING: system tiff library not found, will use built-in instead" >&2;}
26064 wxUSE_LIBTIFF=builtin
26065 fi
26066 else
26067 wxUSE_LIBTIFF=sys
26068 fi
26069 fi
26070fi
26071
26072
47a7e797
MW
26073if test "$wxUSE_WCHAR_T" != "yes"; then
26074 if test "$wxUSE_EXPAT" != "no"; then
26075 { echo "$as_me:$LINENO: WARNING: wxWidgets requires wchar_t to use expat, disabling" >&5
26076echo "$as_me: WARNING: wxWidgets requires wchar_t to use expat, disabling" >&2;}
26077 wxUSE_EXPAT=no
26078 fi
26079 if test "$wxUSE_XML" != "no"; then
26080 { echo "$as_me:$LINENO: WARNING: wxWidgets requires wchar_t to use xml, disabling" >&5
26081echo "$as_me: WARNING: wxWidgets requires wchar_t to use xml, disabling" >&2;}
26082 wxUSE_XML=no
26083 fi
26084fi
26085
a848cd7e
SC
26086if test "$wxUSE_EXPAT" != "no"; then
26087 wxUSE_XML=yes
26088 cat >>confdefs.h <<\_ACEOF
26089#define wxUSE_EXPAT 1
26090_ACEOF
26091
26092 cat >>confdefs.h <<\_ACEOF
26093#define wxUSE_XML 1
26094_ACEOF
26095
26096
26097 if test "$wxUSE_EXPAT" = "sys" -o "$wxUSE_EXPAT" = "yes" ; then
26098 if test "${ac_cv_header_expat_h+set}" = set; then
26099 echo "$as_me:$LINENO: checking for expat.h" >&5
26100echo $ECHO_N "checking for expat.h... $ECHO_C" >&6
26101if test "${ac_cv_header_expat_h+set}" = set; then
26102 echo $ECHO_N "(cached) $ECHO_C" >&6
26103fi
26104echo "$as_me:$LINENO: result: $ac_cv_header_expat_h" >&5
26105echo "${ECHO_T}$ac_cv_header_expat_h" >&6
26106else
26107 # Is the header compilable?
26108echo "$as_me:$LINENO: checking expat.h usability" >&5
26109echo $ECHO_N "checking expat.h usability... $ECHO_C" >&6
26110cat >conftest.$ac_ext <<_ACEOF
26111/* confdefs.h. */
26112_ACEOF
26113cat confdefs.h >>conftest.$ac_ext
26114cat >>conftest.$ac_ext <<_ACEOF
26115/* end confdefs.h. */
26116$ac_includes_default
26117#include <expat.h>
26118_ACEOF
26119rm -f conftest.$ac_objext
26120if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 26121 (eval $ac_compile) 2>conftest.er1
a848cd7e 26122 ac_status=$?
ac1cb8d3
VS
26123 grep -v '^ *+' conftest.er1 >conftest.err
26124 rm -f conftest.er1
26125 cat conftest.err >&5
a848cd7e
SC
26126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26127 (exit $ac_status); } &&
c9a66001 26128 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
26129 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26130 (eval $ac_try) 2>&5
26131 ac_status=$?
26132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26133 (exit $ac_status); }; } &&
26134 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
26135 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26136 (eval $ac_try) 2>&5
26137 ac_status=$?
26138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26139 (exit $ac_status); }; }; then
26140 ac_header_compiler=yes
26141else
26142 echo "$as_me: failed program was:" >&5
26143sed 's/^/| /' conftest.$ac_ext >&5
26144
26145ac_header_compiler=no
26146fi
ac1cb8d3 26147rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
26148echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26149echo "${ECHO_T}$ac_header_compiler" >&6
26150
26151# Is the header present?
26152echo "$as_me:$LINENO: checking expat.h presence" >&5
26153echo $ECHO_N "checking expat.h presence... $ECHO_C" >&6
26154cat >conftest.$ac_ext <<_ACEOF
26155/* confdefs.h. */
26156_ACEOF
26157cat confdefs.h >>conftest.$ac_ext
26158cat >>conftest.$ac_ext <<_ACEOF
26159/* end confdefs.h. */
26160#include <expat.h>
26161_ACEOF
26162if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26163 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26164 ac_status=$?
26165 grep -v '^ *+' conftest.er1 >conftest.err
26166 rm -f conftest.er1
26167 cat conftest.err >&5
26168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26169 (exit $ac_status); } >/dev/null; then
26170 if test -s conftest.err; then
5d7b7554
VZ
26171 ac_cpp_err=$ac_cxx_preproc_warn_flag
26172 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
26173 else
26174 ac_cpp_err=
26175 fi
26176else
26177 ac_cpp_err=yes
26178fi
26179if test -z "$ac_cpp_err"; then
26180 ac_header_preproc=yes
26181else
26182 echo "$as_me: failed program was:" >&5
26183sed 's/^/| /' conftest.$ac_ext >&5
26184
26185 ac_header_preproc=no
26186fi
26187rm -f conftest.err conftest.$ac_ext
26188echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26189echo "${ECHO_T}$ac_header_preproc" >&6
26190
26191# So? What about this header?
5d7b7554 26192case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
ac1cb8d3 26193 yes:no: )
a848cd7e
SC
26194 { echo "$as_me:$LINENO: WARNING: expat.h: accepted by the compiler, rejected by the preprocessor!" >&5
26195echo "$as_me: WARNING: expat.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
26196 { echo "$as_me:$LINENO: WARNING: expat.h: proceeding with the compiler's result" >&5
26197echo "$as_me: WARNING: expat.h: proceeding with the compiler's result" >&2;}
26198 ac_header_preproc=yes
a848cd7e 26199 ;;
ac1cb8d3 26200 no:yes:* )
a848cd7e
SC
26201 { echo "$as_me:$LINENO: WARNING: expat.h: present but cannot be compiled" >&5
26202echo "$as_me: WARNING: expat.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
26203 { echo "$as_me:$LINENO: WARNING: expat.h: check for missing prerequisite headers?" >&5
26204echo "$as_me: WARNING: expat.h: check for missing prerequisite headers?" >&2;}
26205 { echo "$as_me:$LINENO: WARNING: expat.h: see the Autoconf documentation" >&5
26206echo "$as_me: WARNING: expat.h: see the Autoconf documentation" >&2;}
26207 { echo "$as_me:$LINENO: WARNING: expat.h: section \"Present But Cannot Be Compiled\"" >&5
26208echo "$as_me: WARNING: expat.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
26209 { echo "$as_me:$LINENO: WARNING: expat.h: proceeding with the preprocessor's result" >&5
26210echo "$as_me: WARNING: expat.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
26211 { echo "$as_me:$LINENO: WARNING: expat.h: in the future, the compiler will take precedence" >&5
26212echo "$as_me: WARNING: expat.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
26213 (
26214 cat <<\_ASBOX
ac1cb8d3
VS
26215## ----------------------------------------- ##
26216## Report this to wx-dev@lists.wxwidgets.org ##
26217## ----------------------------------------- ##
a848cd7e
SC
26218_ASBOX
26219 ) |
26220 sed "s/^/$as_me: WARNING: /" >&2
26221 ;;
26222esac
26223echo "$as_me:$LINENO: checking for expat.h" >&5
26224echo $ECHO_N "checking for expat.h... $ECHO_C" >&6
26225if test "${ac_cv_header_expat_h+set}" = set; then
26226 echo $ECHO_N "(cached) $ECHO_C" >&6
26227else
26228 ac_cv_header_expat_h=$ac_header_preproc
26229fi
26230echo "$as_me:$LINENO: result: $ac_cv_header_expat_h" >&5
26231echo "${ECHO_T}$ac_cv_header_expat_h" >&6
26232
26233fi
26234if test $ac_cv_header_expat_h = yes; then
26235 found_expat_h=1
26236fi
26237
26238
26239 if test "x$found_expat_h" = "x1"; then
26240 echo "$as_me:$LINENO: checking if expat.h is valid C++ header" >&5
26241echo $ECHO_N "checking if expat.h is valid C++ header... $ECHO_C" >&6
26242if test "${wx_cv_expat_is_not_broken+set}" = set; then
26243 echo $ECHO_N "(cached) $ECHO_C" >&6
26244else
26245
a848cd7e
SC
26246 cat >conftest.$ac_ext <<_ACEOF
26247/* confdefs.h. */
26248_ACEOF
26249cat confdefs.h >>conftest.$ac_ext
26250cat >>conftest.$ac_ext <<_ACEOF
26251/* end confdefs.h. */
26252#include <expat.h>
26253int
26254main ()
26255{
26256
26257 ;
26258 return 0;
26259}
26260_ACEOF
26261rm -f conftest.$ac_objext
26262if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 26263 (eval $ac_compile) 2>conftest.er1
a848cd7e 26264 ac_status=$?
ac1cb8d3
VS
26265 grep -v '^ *+' conftest.er1 >conftest.err
26266 rm -f conftest.er1
26267 cat conftest.err >&5
a848cd7e
SC
26268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26269 (exit $ac_status); } &&
c9a66001 26270 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
26271 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26272 (eval $ac_try) 2>&5
26273 ac_status=$?
26274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26275 (exit $ac_status); }; } &&
26276 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
26277 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26278 (eval $ac_try) 2>&5
26279 ac_status=$?
26280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26281 (exit $ac_status); }; }; then
26282 wx_cv_expat_is_not_broken=yes
26283else
26284 echo "$as_me: failed program was:" >&5
26285sed 's/^/| /' conftest.$ac_ext >&5
26286
26287wx_cv_expat_is_not_broken=no
26288
26289fi
ac1cb8d3 26290rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
26291
26292
26293fi
26294echo "$as_me:$LINENO: result: $wx_cv_expat_is_not_broken" >&5
26295echo "${ECHO_T}$wx_cv_expat_is_not_broken" >&6
26296 if test "$wx_cv_expat_is_not_broken" = "yes" ; then
26297 echo "$as_me:$LINENO: checking for XML_ParserCreate in -lexpat" >&5
26298echo $ECHO_N "checking for XML_ParserCreate in -lexpat... $ECHO_C" >&6
26299if test "${ac_cv_lib_expat_XML_ParserCreate+set}" = set; then
26300 echo $ECHO_N "(cached) $ECHO_C" >&6
26301else
26302 ac_check_lib_save_LIBS=$LIBS
26303LIBS="-lexpat $LIBS"
26304cat >conftest.$ac_ext <<_ACEOF
26305/* confdefs.h. */
26306_ACEOF
26307cat confdefs.h >>conftest.$ac_ext
26308cat >>conftest.$ac_ext <<_ACEOF
26309/* end confdefs.h. */
26310
26311/* Override any gcc2 internal prototype to avoid an error. */
26312#ifdef __cplusplus
26313extern "C"
26314#endif
26315/* We use char because int might match the return type of a gcc2
26316 builtin and then its argument prototype would still apply. */
26317char XML_ParserCreate ();
26318int
26319main ()
26320{
26321XML_ParserCreate ();
26322 ;
26323 return 0;
26324}
26325_ACEOF
26326rm -f conftest.$ac_objext conftest$ac_exeext
26327if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 26328 (eval $ac_link) 2>conftest.er1
a848cd7e 26329 ac_status=$?
ac1cb8d3
VS
26330 grep -v '^ *+' conftest.er1 >conftest.err
26331 rm -f conftest.er1
26332 cat conftest.err >&5
a848cd7e
SC
26333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26334 (exit $ac_status); } &&
c9a66001 26335 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
26336 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26337 (eval $ac_try) 2>&5
26338 ac_status=$?
26339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26340 (exit $ac_status); }; } &&
26341 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
26342 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26343 (eval $ac_try) 2>&5
26344 ac_status=$?
26345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26346 (exit $ac_status); }; }; then
26347 ac_cv_lib_expat_XML_ParserCreate=yes
26348else
26349 echo "$as_me: failed program was:" >&5
26350sed 's/^/| /' conftest.$ac_ext >&5
26351
26352ac_cv_lib_expat_XML_ParserCreate=no
26353fi
ac1cb8d3
VS
26354rm -f conftest.err conftest.$ac_objext \
26355 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
26356LIBS=$ac_check_lib_save_LIBS
26357fi
26358echo "$as_me:$LINENO: result: $ac_cv_lib_expat_XML_ParserCreate" >&5
26359echo "${ECHO_T}$ac_cv_lib_expat_XML_ParserCreate" >&6
26360if test $ac_cv_lib_expat_XML_ParserCreate = yes; then
26361 EXPAT_LINK=" -lexpat"
26362fi
26363
26364 fi
26365 fi
26366 if test "x$EXPAT_LINK" = "x" ; then
26367 if test "$wxUSE_EXPAT" = "sys" ; then
26368 { { echo "$as_me:$LINENO: error: system expat library not found! Use --with-expat=builtin to use built-in version" >&5
26369echo "$as_me: error: system expat library not found! Use --with-expat=builtin to use built-in version" >&2;}
26370 { (exit 1); exit 1; }; }
26371 else
26372 { echo "$as_me:$LINENO: WARNING: system expat library not found, will use built-in instead" >&5
26373echo "$as_me: WARNING: system expat library not found, will use built-in instead" >&2;}
26374 wxUSE_EXPAT=builtin
26375 fi
26376 else
26377 wxUSE_EXPAT=sys
26378 fi
26379 fi
26380 if test "$wxUSE_EXPAT" = "builtin" ; then
26381
26382
26383subdirs="$subdirs src/expat"
26384
26385 fi
26386fi
26387
26388
26389
26390if test "$wxUSE_LIBMSPACK" != "no"; then
a848cd7e
SC
26391 if test "${ac_cv_header_mspack_h+set}" = set; then
26392 echo "$as_me:$LINENO: checking for mspack.h" >&5
26393echo $ECHO_N "checking for mspack.h... $ECHO_C" >&6
26394if test "${ac_cv_header_mspack_h+set}" = set; then
26395 echo $ECHO_N "(cached) $ECHO_C" >&6
26396fi
26397echo "$as_me:$LINENO: result: $ac_cv_header_mspack_h" >&5
26398echo "${ECHO_T}$ac_cv_header_mspack_h" >&6
26399else
26400 # Is the header compilable?
26401echo "$as_me:$LINENO: checking mspack.h usability" >&5
26402echo $ECHO_N "checking mspack.h usability... $ECHO_C" >&6
26403cat >conftest.$ac_ext <<_ACEOF
26404/* confdefs.h. */
26405_ACEOF
26406cat confdefs.h >>conftest.$ac_ext
26407cat >>conftest.$ac_ext <<_ACEOF
26408/* end confdefs.h. */
26409$ac_includes_default
26410#include <mspack.h>
26411_ACEOF
26412rm -f conftest.$ac_objext
26413if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 26414 (eval $ac_compile) 2>conftest.er1
a848cd7e 26415 ac_status=$?
ac1cb8d3
VS
26416 grep -v '^ *+' conftest.er1 >conftest.err
26417 rm -f conftest.er1
26418 cat conftest.err >&5
a848cd7e
SC
26419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26420 (exit $ac_status); } &&
c9a66001 26421 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
26422 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26423 (eval $ac_try) 2>&5
26424 ac_status=$?
26425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26426 (exit $ac_status); }; } &&
26427 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
26428 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26429 (eval $ac_try) 2>&5
26430 ac_status=$?
26431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26432 (exit $ac_status); }; }; then
26433 ac_header_compiler=yes
26434else
26435 echo "$as_me: failed program was:" >&5
26436sed 's/^/| /' conftest.$ac_ext >&5
26437
26438ac_header_compiler=no
26439fi
ac1cb8d3 26440rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
26441echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26442echo "${ECHO_T}$ac_header_compiler" >&6
26443
26444# Is the header present?
26445echo "$as_me:$LINENO: checking mspack.h presence" >&5
26446echo $ECHO_N "checking mspack.h presence... $ECHO_C" >&6
26447cat >conftest.$ac_ext <<_ACEOF
26448/* confdefs.h. */
26449_ACEOF
26450cat confdefs.h >>conftest.$ac_ext
26451cat >>conftest.$ac_ext <<_ACEOF
26452/* end confdefs.h. */
26453#include <mspack.h>
26454_ACEOF
26455if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26456 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26457 ac_status=$?
26458 grep -v '^ *+' conftest.er1 >conftest.err
26459 rm -f conftest.er1
26460 cat conftest.err >&5
26461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26462 (exit $ac_status); } >/dev/null; then
26463 if test -s conftest.err; then
5d7b7554
VZ
26464 ac_cpp_err=$ac_cxx_preproc_warn_flag
26465 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
26466 else
26467 ac_cpp_err=
26468 fi
26469else
26470 ac_cpp_err=yes
26471fi
26472if test -z "$ac_cpp_err"; then
26473 ac_header_preproc=yes
26474else
26475 echo "$as_me: failed program was:" >&5
26476sed 's/^/| /' conftest.$ac_ext >&5
26477
26478 ac_header_preproc=no
26479fi
26480rm -f conftest.err conftest.$ac_ext
26481echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26482echo "${ECHO_T}$ac_header_preproc" >&6
26483
26484# So? What about this header?
5d7b7554 26485case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
ac1cb8d3 26486 yes:no: )
a848cd7e
SC
26487 { echo "$as_me:$LINENO: WARNING: mspack.h: accepted by the compiler, rejected by the preprocessor!" >&5
26488echo "$as_me: WARNING: mspack.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
26489 { echo "$as_me:$LINENO: WARNING: mspack.h: proceeding with the compiler's result" >&5
26490echo "$as_me: WARNING: mspack.h: proceeding with the compiler's result" >&2;}
26491 ac_header_preproc=yes
a848cd7e 26492 ;;
ac1cb8d3 26493 no:yes:* )
a848cd7e
SC
26494 { echo "$as_me:$LINENO: WARNING: mspack.h: present but cannot be compiled" >&5
26495echo "$as_me: WARNING: mspack.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
26496 { echo "$as_me:$LINENO: WARNING: mspack.h: check for missing prerequisite headers?" >&5
26497echo "$as_me: WARNING: mspack.h: check for missing prerequisite headers?" >&2;}
26498 { echo "$as_me:$LINENO: WARNING: mspack.h: see the Autoconf documentation" >&5
26499echo "$as_me: WARNING: mspack.h: see the Autoconf documentation" >&2;}
26500 { echo "$as_me:$LINENO: WARNING: mspack.h: section \"Present But Cannot Be Compiled\"" >&5
26501echo "$as_me: WARNING: mspack.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
26502 { echo "$as_me:$LINENO: WARNING: mspack.h: proceeding with the preprocessor's result" >&5
26503echo "$as_me: WARNING: mspack.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
26504 { echo "$as_me:$LINENO: WARNING: mspack.h: in the future, the compiler will take precedence" >&5
26505echo "$as_me: WARNING: mspack.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
26506 (
26507 cat <<\_ASBOX
ac1cb8d3
VS
26508## ----------------------------------------- ##
26509## Report this to wx-dev@lists.wxwidgets.org ##
26510## ----------------------------------------- ##
a848cd7e
SC
26511_ASBOX
26512 ) |
26513 sed "s/^/$as_me: WARNING: /" >&2
26514 ;;
26515esac
26516echo "$as_me:$LINENO: checking for mspack.h" >&5
26517echo $ECHO_N "checking for mspack.h... $ECHO_C" >&6
26518if test "${ac_cv_header_mspack_h+set}" = set; then
26519 echo $ECHO_N "(cached) $ECHO_C" >&6
26520else
26521 ac_cv_header_mspack_h=$ac_header_preproc
26522fi
26523echo "$as_me:$LINENO: result: $ac_cv_header_mspack_h" >&5
26524echo "${ECHO_T}$ac_cv_header_mspack_h" >&6
26525
26526fi
26527if test $ac_cv_header_mspack_h = yes; then
26528 found_mspack_h=1
26529fi
26530
26531
26532 if test "x$found_mspack_h" = "x1"; then
26533 echo "$as_me:$LINENO: checking for mspack_create_chm_decompressor in -lmspack" >&5
26534echo $ECHO_N "checking for mspack_create_chm_decompressor in -lmspack... $ECHO_C" >&6
26535if test "${ac_cv_lib_mspack_mspack_create_chm_decompressor+set}" = set; then
26536 echo $ECHO_N "(cached) $ECHO_C" >&6
26537else
26538 ac_check_lib_save_LIBS=$LIBS
26539LIBS="-lmspack $LIBS"
26540cat >conftest.$ac_ext <<_ACEOF
26541/* confdefs.h. */
26542_ACEOF
26543cat confdefs.h >>conftest.$ac_ext
26544cat >>conftest.$ac_ext <<_ACEOF
26545/* end confdefs.h. */
26546
26547/* Override any gcc2 internal prototype to avoid an error. */
26548#ifdef __cplusplus
26549extern "C"
26550#endif
26551/* We use char because int might match the return type of a gcc2
26552 builtin and then its argument prototype would still apply. */
26553char mspack_create_chm_decompressor ();
26554int
26555main ()
26556{
26557mspack_create_chm_decompressor ();
26558 ;
26559 return 0;
26560}
26561_ACEOF
26562rm -f conftest.$ac_objext conftest$ac_exeext
26563if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 26564 (eval $ac_link) 2>conftest.er1
a848cd7e 26565 ac_status=$?
ac1cb8d3
VS
26566 grep -v '^ *+' conftest.er1 >conftest.err
26567 rm -f conftest.er1
26568 cat conftest.err >&5
a848cd7e
SC
26569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26570 (exit $ac_status); } &&
c9a66001 26571 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
26572 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26573 (eval $ac_try) 2>&5
26574 ac_status=$?
26575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26576 (exit $ac_status); }; } &&
26577 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
26578 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26579 (eval $ac_try) 2>&5
26580 ac_status=$?
26581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26582 (exit $ac_status); }; }; then
26583 ac_cv_lib_mspack_mspack_create_chm_decompressor=yes
26584else
26585 echo "$as_me: failed program was:" >&5
26586sed 's/^/| /' conftest.$ac_ext >&5
26587
26588ac_cv_lib_mspack_mspack_create_chm_decompressor=no
26589fi
ac1cb8d3
VS
26590rm -f conftest.err conftest.$ac_objext \
26591 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
26592LIBS=$ac_check_lib_save_LIBS
26593fi
26594echo "$as_me:$LINENO: result: $ac_cv_lib_mspack_mspack_create_chm_decompressor" >&5
26595echo "${ECHO_T}$ac_cv_lib_mspack_mspack_create_chm_decompressor" >&6
26596if test $ac_cv_lib_mspack_mspack_create_chm_decompressor = yes; then
26597 MSPACK_LINK=" -lmspack"
26598fi
26599
26600 fi
26601 if test "x$MSPACK_LINK" = "x" ; then
26602 wxUSE_LIBMSPACK=no
dd3a2d96
VZ
26603 fi
26604fi
26605
26606if test "$wxUSE_LIBMSPACK" != "no"; then
26607 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
26608#define wxUSE_LIBMSPACK 1
26609_ACEOF
26610
a848cd7e
SC
26611fi
26612
26613
26614
26615AFMINSTALL=
26616WIN32INSTALL=
26617
26618TOOLKIT=
26619TOOLKIT_INCLUDE=
26620WIDGET_SET=
26621
26622if test "$USE_WIN32" = 1 ; then
26623
26624for ac_header in w32api.h
26625do
26626as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26627if eval "test \"\${$as_ac_Header+set}\" = set"; then
26628 echo "$as_me:$LINENO: checking for $ac_header" >&5
26629echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26630if eval "test \"\${$as_ac_Header+set}\" = set"; then
26631 echo $ECHO_N "(cached) $ECHO_C" >&6
26632fi
26633echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26634echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26635else
26636 # Is the header compilable?
26637echo "$as_me:$LINENO: checking $ac_header usability" >&5
26638echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26639cat >conftest.$ac_ext <<_ACEOF
26640/* confdefs.h. */
26641_ACEOF
26642cat confdefs.h >>conftest.$ac_ext
26643cat >>conftest.$ac_ext <<_ACEOF
26644/* end confdefs.h. */
26645$ac_includes_default
26646#include <$ac_header>
26647_ACEOF
26648rm -f conftest.$ac_objext
26649if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 26650 (eval $ac_compile) 2>conftest.er1
a848cd7e 26651 ac_status=$?
ac1cb8d3
VS
26652 grep -v '^ *+' conftest.er1 >conftest.err
26653 rm -f conftest.er1
26654 cat conftest.err >&5
a848cd7e
SC
26655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26656 (exit $ac_status); } &&
c9a66001 26657 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
26658 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26659 (eval $ac_try) 2>&5
26660 ac_status=$?
26661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26662 (exit $ac_status); }; } &&
26663 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
26664 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26665 (eval $ac_try) 2>&5
26666 ac_status=$?
26667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26668 (exit $ac_status); }; }; then
26669 ac_header_compiler=yes
26670else
26671 echo "$as_me: failed program was:" >&5
26672sed 's/^/| /' conftest.$ac_ext >&5
26673
26674ac_header_compiler=no
26675fi
ac1cb8d3 26676rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
26677echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26678echo "${ECHO_T}$ac_header_compiler" >&6
26679
26680# Is the header present?
26681echo "$as_me:$LINENO: checking $ac_header presence" >&5
26682echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26683cat >conftest.$ac_ext <<_ACEOF
26684/* confdefs.h. */
26685_ACEOF
26686cat confdefs.h >>conftest.$ac_ext
26687cat >>conftest.$ac_ext <<_ACEOF
26688/* end confdefs.h. */
26689#include <$ac_header>
26690_ACEOF
26691if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26692 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26693 ac_status=$?
26694 grep -v '^ *+' conftest.er1 >conftest.err
26695 rm -f conftest.er1
26696 cat conftest.err >&5
26697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26698 (exit $ac_status); } >/dev/null; then
26699 if test -s conftest.err; then
5d7b7554
VZ
26700 ac_cpp_err=$ac_cxx_preproc_warn_flag
26701 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
26702 else
26703 ac_cpp_err=
26704 fi
26705else
26706 ac_cpp_err=yes
26707fi
26708if test -z "$ac_cpp_err"; then
26709 ac_header_preproc=yes
26710else
26711 echo "$as_me: failed program was:" >&5
26712sed 's/^/| /' conftest.$ac_ext >&5
26713
26714 ac_header_preproc=no
26715fi
26716rm -f conftest.err conftest.$ac_ext
26717echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26718echo "${ECHO_T}$ac_header_preproc" >&6
26719
26720# So? What about this header?
5d7b7554 26721case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
ac1cb8d3 26722 yes:no: )
a848cd7e
SC
26723 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26724echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
26725 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26726echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26727 ac_header_preproc=yes
a848cd7e 26728 ;;
ac1cb8d3 26729 no:yes:* )
a848cd7e
SC
26730 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26731echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
26732 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
26733echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
26734 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26735echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26736 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
26737echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
26738 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26739echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
26740 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26741echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
26742 (
26743 cat <<\_ASBOX
ac1cb8d3
VS
26744## ----------------------------------------- ##
26745## Report this to wx-dev@lists.wxwidgets.org ##
26746## ----------------------------------------- ##
a848cd7e
SC
26747_ASBOX
26748 ) |
26749 sed "s/^/$as_me: WARNING: /" >&2
26750 ;;
26751esac
26752echo "$as_me:$LINENO: checking for $ac_header" >&5
26753echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26754if eval "test \"\${$as_ac_Header+set}\" = set"; then
26755 echo $ECHO_N "(cached) $ECHO_C" >&6
26756else
ac1cb8d3 26757 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
26758fi
26759echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26760echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26761
26762fi
26763if test `eval echo '${'$as_ac_Header'}'` = yes; then
26764 cat >>confdefs.h <<_ACEOF
26765#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26766_ACEOF
26767
26768fi
26769
26770done
26771
26772 if test "${ac_cv_header_windows_h+set}" = set; then
26773 echo "$as_me:$LINENO: checking for windows.h" >&5
26774echo $ECHO_N "checking for windows.h... $ECHO_C" >&6
26775if test "${ac_cv_header_windows_h+set}" = set; then
26776 echo $ECHO_N "(cached) $ECHO_C" >&6
26777fi
26778echo "$as_me:$LINENO: result: $ac_cv_header_windows_h" >&5
26779echo "${ECHO_T}$ac_cv_header_windows_h" >&6
26780else
26781 # Is the header compilable?
26782echo "$as_me:$LINENO: checking windows.h usability" >&5
26783echo $ECHO_N "checking windows.h usability... $ECHO_C" >&6
26784cat >conftest.$ac_ext <<_ACEOF
26785/* confdefs.h. */
26786_ACEOF
26787cat confdefs.h >>conftest.$ac_ext
26788cat >>conftest.$ac_ext <<_ACEOF
26789/* end confdefs.h. */
26790$ac_includes_default
26791#include <windows.h>
26792_ACEOF
26793rm -f conftest.$ac_objext
26794if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 26795 (eval $ac_compile) 2>conftest.er1
a848cd7e 26796 ac_status=$?
ac1cb8d3
VS
26797 grep -v '^ *+' conftest.er1 >conftest.err
26798 rm -f conftest.er1
26799 cat conftest.err >&5
a848cd7e
SC
26800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26801 (exit $ac_status); } &&
c9a66001 26802 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
26803 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26804 (eval $ac_try) 2>&5
26805 ac_status=$?
26806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26807 (exit $ac_status); }; } &&
26808 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
26809 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26810 (eval $ac_try) 2>&5
26811 ac_status=$?
26812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26813 (exit $ac_status); }; }; then
26814 ac_header_compiler=yes
26815else
26816 echo "$as_me: failed program was:" >&5
26817sed 's/^/| /' conftest.$ac_ext >&5
26818
26819ac_header_compiler=no
26820fi
ac1cb8d3 26821rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
26822echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26823echo "${ECHO_T}$ac_header_compiler" >&6
26824
26825# Is the header present?
26826echo "$as_me:$LINENO: checking windows.h presence" >&5
26827echo $ECHO_N "checking windows.h presence... $ECHO_C" >&6
26828cat >conftest.$ac_ext <<_ACEOF
26829/* confdefs.h. */
26830_ACEOF
26831cat confdefs.h >>conftest.$ac_ext
26832cat >>conftest.$ac_ext <<_ACEOF
26833/* end confdefs.h. */
26834#include <windows.h>
26835_ACEOF
26836if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26837 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26838 ac_status=$?
26839 grep -v '^ *+' conftest.er1 >conftest.err
26840 rm -f conftest.er1
26841 cat conftest.err >&5
26842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26843 (exit $ac_status); } >/dev/null; then
26844 if test -s conftest.err; then
5d7b7554
VZ
26845 ac_cpp_err=$ac_cxx_preproc_warn_flag
26846 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
26847 else
26848 ac_cpp_err=
26849 fi
26850else
26851 ac_cpp_err=yes
26852fi
26853if test -z "$ac_cpp_err"; then
26854 ac_header_preproc=yes
26855else
26856 echo "$as_me: failed program was:" >&5
26857sed 's/^/| /' conftest.$ac_ext >&5
26858
26859 ac_header_preproc=no
26860fi
26861rm -f conftest.err conftest.$ac_ext
26862echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26863echo "${ECHO_T}$ac_header_preproc" >&6
26864
26865# So? What about this header?
5d7b7554 26866case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
ac1cb8d3 26867 yes:no: )
a848cd7e
SC
26868 { echo "$as_me:$LINENO: WARNING: windows.h: accepted by the compiler, rejected by the preprocessor!" >&5
26869echo "$as_me: WARNING: windows.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
26870 { echo "$as_me:$LINENO: WARNING: windows.h: proceeding with the compiler's result" >&5
26871echo "$as_me: WARNING: windows.h: proceeding with the compiler's result" >&2;}
26872 ac_header_preproc=yes
a848cd7e 26873 ;;
ac1cb8d3 26874 no:yes:* )
a848cd7e
SC
26875 { echo "$as_me:$LINENO: WARNING: windows.h: present but cannot be compiled" >&5
26876echo "$as_me: WARNING: windows.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
26877 { echo "$as_me:$LINENO: WARNING: windows.h: check for missing prerequisite headers?" >&5
26878echo "$as_me: WARNING: windows.h: check for missing prerequisite headers?" >&2;}
26879 { echo "$as_me:$LINENO: WARNING: windows.h: see the Autoconf documentation" >&5
26880echo "$as_me: WARNING: windows.h: see the Autoconf documentation" >&2;}
26881 { echo "$as_me:$LINENO: WARNING: windows.h: section \"Present But Cannot Be Compiled\"" >&5
26882echo "$as_me: WARNING: windows.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
26883 { echo "$as_me:$LINENO: WARNING: windows.h: proceeding with the preprocessor's result" >&5
26884echo "$as_me: WARNING: windows.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
26885 { echo "$as_me:$LINENO: WARNING: windows.h: in the future, the compiler will take precedence" >&5
26886echo "$as_me: WARNING: windows.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
26887 (
26888 cat <<\_ASBOX
ac1cb8d3
VS
26889## ----------------------------------------- ##
26890## Report this to wx-dev@lists.wxwidgets.org ##
26891## ----------------------------------------- ##
a848cd7e
SC
26892_ASBOX
26893 ) |
26894 sed "s/^/$as_me: WARNING: /" >&2
26895 ;;
26896esac
26897echo "$as_me:$LINENO: checking for windows.h" >&5
26898echo $ECHO_N "checking for windows.h... $ECHO_C" >&6
26899if test "${ac_cv_header_windows_h+set}" = set; then
26900 echo $ECHO_N "(cached) $ECHO_C" >&6
26901else
26902 ac_cv_header_windows_h=$ac_header_preproc
26903fi
26904echo "$as_me:$LINENO: result: $ac_cv_header_windows_h" >&5
26905echo "${ECHO_T}$ac_cv_header_windows_h" >&6
26906
26907fi
26908if test $ac_cv_header_windows_h = yes; then
26909 :
26910else
26911
26912 { { echo "$as_me:$LINENO: error: please set CFLAGS to contain the location of windows.h" >&5
26913echo "$as_me: error: please set CFLAGS to contain the location of windows.h" >&2;}
26914 { (exit 1); exit 1; }; }
26915
26916fi
26917
26918
26919
26920 LIBS="$LIBS -lwinspool -lwinmm -lshell32 -lcomctl32 -lcomdlg32 -lctl3d32 -ladvapi32 -lwsock32 -lgdi32"
26921
26922 if test "$wxUSE_ACCESSIBILITY" = "yes" ; then
26923 LIBS="$LIBS -loleacc"
26924 fi
26925
26926 case "${host}" in
26927 *-*-cygwin* )
26928 LIBS="$LIBS -lkernel32 -luser32"
a848cd7e
SC
26929 esac
26930
26931 if test "$wxUSE_ODBC" = "sys" ; then
26932 wxUSE_ODBC = "yes"
26933 fi
26934 if test "$wxUSE_ODBC" = "yes" ; then
26935 LIBS=" -lodbc32 -lole32 -loleaut32 $LIBS"
26936 cat >>confdefs.h <<\_ACEOF
26937#define wxUSE_ODBC 1
26938_ACEOF
26939
26940 fi
26941
370d2fd7 26942 RESFLAGS="--include-dir \$(top_srcdir)/include --include-dir \$(top_srcdir)/\$(program_dir) --define __WIN32__ --define __WIN95__ --define __GNUWIN32__"
a848cd7e
SC
26943 RESPROGRAMOBJ="\$(PROGRAM)_resources.o"
26944
004ee6da 26945 WXCONFIG_RESFLAGS="--define __WIN32__ --define __WIN95__ --define __GNUWIN32__"
370d2fd7 26946
a848cd7e
SC
26947 WIN32INSTALL=win32install
26948fi
26949
26950if test "$wxUSE_GUI" = "yes"; then
26951 USE_GUI=1
26952
26953 GUI_TK_LIBRARY=
26954
26955 WXGTK12=
26956 WXGTK127=
26957 WXGTK20=
26958 WXGPE=
26959
207bc66c
RN
26960 if test "$wxUSE_COCOA" = 1 ; then
26961 if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes"; then
26962 { echo "$as_me:$LINENO: WARNING: Printing not supported under wxCocoa yet, disabled" >&5
26963echo "$as_me: WARNING: Printing not supported under wxCocoa yet, disabled" >&2;}
26964 wxUSE_PRINTING_ARCHITECTURE=no
26965 fi
26966 if test "$wxUSE_DRAG_AND_DROP" = "yes"; then
26967 { echo "$as_me:$LINENO: WARNING: Drag and Drop not supported under wxCocoa yet, disabled" >&5
26968echo "$as_me: WARNING: Drag and Drop not supported under wxCocoa yet, disabled" >&2;}
26969 wxUSE_DRAG_AND_DROP=no
26970 fi
26971 if test "$wxUSE_DRAGIMAGE" = "yes"; then
26972 { echo "$as_me:$LINENO: WARNING: Drag Image and DandD not supported under wxCocoa yet, disabled" >&5
26973echo "$as_me: WARNING: Drag Image and DandD not supported under wxCocoa yet, disabled" >&2;}
26974 wxUSE_DRAGIMAGE=no
26975 fi
26976 fi
26977
a848cd7e
SC
26978 if test "$wxUSE_MSW" = 1 ; then
26979 TOOLKIT=MSW
26980 GUIDIST=MSW_DIST
26981
ceec2216 26982 case "${host}" in
a848cd7e
SC
26983 *-*-mingw32* )
26984 WXCONFIG_LDFLAGS_GUI="$LDFLAGS -Wl,--subsystem,windows -mwindows"
26985 esac
26986 fi
26987
26988 if test "$wxUSE_GTK" = 1; then
5d7b7554
VZ
26989 ac_ext=c
26990ac_cpp='$CPP $CPPFLAGS'
26991ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26992ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26993ac_compiler_gnu=$ac_cv_c_compiler_gnu
26994
26995
a848cd7e
SC
26996 echo "$as_me:$LINENO: checking for GTK+ version" >&5
26997echo $ECHO_N "checking for GTK+ version... $ECHO_C" >&6
26998
26999 gtk_version_cached=1
27000 if test "${wx_cv_lib_gtk+set}" = set; then
27001 echo $ECHO_N "(cached) $ECHO_C" >&6
27002else
27003
27004 gtk_version_cached=0
27005 echo "$as_me:$LINENO: result: " >&5
27006echo "${ECHO_T}" >&6
27007
27008 GTK_MODULES=
27009 if test "$wxUSE_THREADS" = "yes"; then
27010 GTK_MODULES=gthread
27011 fi
27012
f597b41c 27013 wx_cv_lib_gtk=
5001df0d
MW
27014 if test "x$wxGTK_VERSION" != "x1"
27015 then
27016 case "${host}" in
27017 *-*-solaris2* )
27018 if test "$wxUSE_THREADS" = "yes" -a "$GCC" = yes; then
5ff751d6 27019 enable_gtktest=no
5001df0d
MW
27020 fi
27021 esac
27022
a848cd7e
SC
27023 # Check whether --enable-gtktest or --disable-gtktest was given.
27024if test "${enable_gtktest+set}" = set; then
27025 enableval="$enable_gtktest"
27026
27027else
27028 enable_gtktest=yes
27029fi;
27030
27031 pkg_config_args=gtk+-2.0
27032 for module in . $GTK_MODULES
27033 do
27034 case "$module" in
27035 gthread)
27036 pkg_config_args="$pkg_config_args gthread-2.0"
27037 ;;
27038 esac
27039 done
27040
27041 no_gtk=""
27042
27043 # Extract the first word of "pkg-config", so it can be a program name with args.
27044set dummy pkg-config; ac_word=$2
27045echo "$as_me:$LINENO: checking for $ac_word" >&5
27046echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
27047if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
27048 echo $ECHO_N "(cached) $ECHO_C" >&6
27049else
27050 case $PKG_CONFIG in
27051 [\\/]* | ?:[\\/]*)
27052 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
27053 ;;
27054 *)
27055 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27056for as_dir in $PATH
27057do
27058 IFS=$as_save_IFS
27059 test -z "$as_dir" && as_dir=.
27060 for ac_exec_ext in '' $ac_executable_extensions; do
27061 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
27062 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
27063 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
27064 break 2
27065 fi
27066done
27067done
27068
27069 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
27070 ;;
27071esac
27072fi
27073PKG_CONFIG=$ac_cv_path_PKG_CONFIG
27074
27075if test -n "$PKG_CONFIG"; then
27076 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
27077echo "${ECHO_T}$PKG_CONFIG" >&6
27078else
27079 echo "$as_me:$LINENO: result: no" >&5
27080echo "${ECHO_T}no" >&6
27081fi
27082
27083
27084 if test x$PKG_CONFIG != xno ; then
27085 if pkg-config --atleast-pkgconfig-version 0.7 ; then
27086 :
27087 else
c2218763 27088 echo "*** pkg-config too old; version 0.7 or better required."
a848cd7e
SC
27089 no_gtk=yes
27090 PKG_CONFIG=no
27091 fi
27092 else
27093 no_gtk=yes
27094 fi
27095
27096 min_gtk_version=2.0.0
27097 echo "$as_me:$LINENO: checking for GTK+ - version >= $min_gtk_version" >&5
27098echo $ECHO_N "checking for GTK+ - version >= $min_gtk_version... $ECHO_C" >&6
27099
27100 if test x$PKG_CONFIG != xno ; then
27101 ## don't try to run the test against uninstalled libtool libs
27102 if $PKG_CONFIG --uninstalled $pkg_config_args; then
27103 echo "Will use uninstalled version of GTK+ found in PKG_CONFIG_PATH"
27104 enable_gtktest=no
27105 fi
27106
27107 if $PKG_CONFIG --atleast-version $min_gtk_version $pkg_config_args; then
27108 :
27109 else
27110 no_gtk=yes
27111 fi
27112 fi
27113
27114 if test x"$no_gtk" = x ; then
27115 GTK_CFLAGS=`$PKG_CONFIG $pkg_config_args --cflags`
27116 GTK_LIBS=`$PKG_CONFIG $pkg_config_args --libs`
27117 gtk_config_major_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
27118 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
27119 gtk_config_minor_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
27120 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
27121 gtk_config_micro_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
27122 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
27123 if test "x$enable_gtktest" = "xyes" ; then
27124 ac_save_CFLAGS="$CFLAGS"
27125 ac_save_LIBS="$LIBS"
27126 CFLAGS="$CFLAGS $GTK_CFLAGS"
27127 LIBS="$GTK_LIBS $LIBS"
27128 rm -f conf.gtktest
27129 if test "$cross_compiling" = yes; then
27130 echo $ac_n "cross compiling; assumed OK... $ac_c"
27131else
27132 cat >conftest.$ac_ext <<_ACEOF
27133/* confdefs.h. */
27134_ACEOF
27135cat confdefs.h >>conftest.$ac_ext
27136cat >>conftest.$ac_ext <<_ACEOF
27137/* end confdefs.h. */
27138
27139#include <gtk/gtk.h>
27140#include <stdio.h>
27141#include <stdlib.h>
27142
27143int
27144main ()
27145{
27146 int major, minor, micro;
27147 char *tmp_version;
27148
27149 system ("touch conf.gtktest");
27150
27151 /* HP/UX 9 (%@#!) writes to sscanf strings */
27152 tmp_version = g_strdup("$min_gtk_version");
27153 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
27154 printf("%s, bad version string\n", "$min_gtk_version");
27155 exit(1);
27156 }
27157
27158 if ((gtk_major_version != $gtk_config_major_version) ||
27159 (gtk_minor_version != $gtk_config_minor_version) ||
27160 (gtk_micro_version != $gtk_config_micro_version))
27161 {
27162 printf("\n*** 'pkg-config --modversion gtk+-2.0' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
27163 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
27164 gtk_major_version, gtk_minor_version, gtk_micro_version);
27165 printf ("*** was found! If pkg-config was correct, then it is best\n");
27166 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
27167 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
27168 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
27169 printf("*** required on your system.\n");
27170 printf("*** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH\n");
27171 printf("*** to point to the correct configuration files\n");
27172 }
27173 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
27174 (gtk_minor_version != GTK_MINOR_VERSION) ||
27175 (gtk_micro_version != GTK_MICRO_VERSION))
27176 {
27177 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
27178 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
27179 printf("*** library (version %d.%d.%d)\n",
27180 gtk_major_version, gtk_minor_version, gtk_micro_version);
27181 }
27182 else
27183 {
27184 if ((gtk_major_version > major) ||
27185 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
27186 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
27187 {
27188 return 0;
27189 }
27190 else
27191 {
27192 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
27193 gtk_major_version, gtk_minor_version, gtk_micro_version);
27194 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
27195 major, minor, micro);
27196 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
27197 printf("***\n");
27198 printf("*** If you have already installed a sufficiently new version, this error\n");
27199 printf("*** probably means that the wrong copy of the pkg-config shell script is\n");
27200 printf("*** being found. The easiest way to fix this is to remove the old version\n");
27201 printf("*** of GTK+, but you can also set the PKG_CONFIG environment to point to the\n");
27202 printf("*** correct copy of pkg-config. (In this case, you will have to\n");
27203 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
27204 printf("*** so that the correct libraries are found at run-time))\n");
27205 }
27206 }
27207 return 1;
27208}
27209
27210_ACEOF
27211rm -f conftest$ac_exeext
27212if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27213 (eval $ac_link) 2>&5
27214 ac_status=$?
27215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27216 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27217 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27218 (eval $ac_try) 2>&5
27219 ac_status=$?
27220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27221 (exit $ac_status); }; }; then
27222 :
27223else
27224 echo "$as_me: program exited with status $ac_status" >&5
27225echo "$as_me: failed program was:" >&5
27226sed 's/^/| /' conftest.$ac_ext >&5
27227
27228( exit $ac_status )
27229no_gtk=yes
27230fi
ac1cb8d3 27231rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
27232fi
27233 CFLAGS="$ac_save_CFLAGS"
27234 LIBS="$ac_save_LIBS"
27235 fi
27236 fi
27237 if test "x$no_gtk" = x ; then
27238 echo "$as_me:$LINENO: result: yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&5
27239echo "${ECHO_T}yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&6
27240 wx_cv_lib_gtk=2.0
27241 else
27242 echo "$as_me:$LINENO: result: no" >&5
27243echo "${ECHO_T}no" >&6
27244 if test "$PKG_CONFIG" = "no" ; then
27245 echo "*** A new enough version of pkg-config was not found."
27246 echo "*** See http://pkgconfig.sourceforge.net"
27247 else
27248 if test -f conf.gtktest ; then
27249 :
27250 else
27251 echo "*** Could not run GTK+ test program, checking why..."
27252 ac_save_CFLAGS="$CFLAGS"
27253 ac_save_LIBS="$LIBS"
27254 CFLAGS="$CFLAGS $GTK_CFLAGS"
27255 LIBS="$LIBS $GTK_LIBS"
27256 cat >conftest.$ac_ext <<_ACEOF
27257/* confdefs.h. */
27258_ACEOF
27259cat confdefs.h >>conftest.$ac_ext
27260cat >>conftest.$ac_ext <<_ACEOF
27261/* end confdefs.h. */
27262
27263#include <gtk/gtk.h>
27264#include <stdio.h>
27265
27266int
27267main ()
27268{
27269 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
27270 ;
27271 return 0;
27272}
27273_ACEOF
27274rm -f conftest.$ac_objext conftest$ac_exeext
27275if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 27276 (eval $ac_link) 2>conftest.er1
a848cd7e 27277 ac_status=$?
ac1cb8d3
VS
27278 grep -v '^ *+' conftest.er1 >conftest.err
27279 rm -f conftest.er1
27280 cat conftest.err >&5
a848cd7e
SC
27281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27282 (exit $ac_status); } &&
c9a66001 27283 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
27284 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27285 (eval $ac_try) 2>&5
27286 ac_status=$?
27287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27288 (exit $ac_status); }; } &&
27289 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
27290 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27291 (eval $ac_try) 2>&5
27292 ac_status=$?
27293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27294 (exit $ac_status); }; }; then
27295 echo "*** The test program compiled, but did not run. This usually means"
27296 echo "*** that the run-time linker is not finding GTK+ or finding the wrong"
27297 echo "*** version of GTK+. If it is not finding GTK+, you'll need to set your"
27298 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
27299 echo "*** to the installed location Also, make sure you have run ldconfig if that"
27300 echo "*** is required on your system"
27301 echo "***"
27302 echo "*** If you have an old version installed, it is best to remove it, although"
27303 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
27304else
27305 echo "$as_me: failed program was:" >&5
27306sed 's/^/| /' conftest.$ac_ext >&5
27307
27308 echo "*** The test program failed to compile or link. See the file config.log for the"
27309 echo "*** exact error that occured. This usually means GTK+ is incorrectly installed."
27310fi
ac1cb8d3
VS
27311rm -f conftest.err conftest.$ac_objext \
27312 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
27313 CFLAGS="$ac_save_CFLAGS"
27314 LIBS="$ac_save_LIBS"
27315 fi
27316 fi
27317 GTK_CFLAGS=""
27318 GTK_LIBS=""
27319 :
27320 fi
27321
27322
27323 rm -f conf.gtktest
27324
5001df0d
MW
27325
27326 case "${host}" in
27327 *-*-solaris2* )
27328 if test "$wxUSE_THREADS" = "yes" -a "$GCC" = yes; then
27329 GTK_CFLAGS=`echo $GTK_CFLAGS | sed 's/-mt//'`
27330 GTK_LIBS=`echo $GTK_LIBS | sed 's/-mt//'`
27331 fi
27332 if test "$wxUSE_SHARED" != "yes"; then
27333 GTK_LIBS="$GTK_LIBS -lX11"
27334 fi
27335 esac
f597b41c
MW
27336 fi
27337
f34ca037
MW
27338 if test -z "$wx_cv_lib_gtk"; then
27339 if test "x$wxGTK_VERSION" = "x1" -o "x$wxGTK_VERSION" = "xany" ; then
a848cd7e
SC
27340
27341# Check whether --with-gtk-prefix or --without-gtk-prefix was given.
27342if test "${with_gtk_prefix+set}" = set; then
27343 withval="$with_gtk_prefix"
27344 gtk_config_prefix="$withval"
27345else
27346 gtk_config_prefix=""
27347fi;
27348
27349# Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
27350if test "${with_gtk_exec_prefix+set}" = set; then
27351 withval="$with_gtk_exec_prefix"
27352 gtk_config_exec_prefix="$withval"
27353else
27354 gtk_config_exec_prefix=""
27355fi;
27356# Check whether --enable-gtktest or --disable-gtktest was given.
27357if test "${enable_gtktest+set}" = set; then
27358 enableval="$enable_gtktest"
27359
27360else
27361 enable_gtktest=yes
27362fi;
27363
27364 for module in . $GTK_MODULES
27365 do
27366 case "$module" in
27367 gthread)
27368 gtk_config_args="$gtk_config_args gthread"
27369 ;;
27370 esac
27371 done
27372
27373 if test x$gtk_config_exec_prefix != x ; then
27374 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
27375 if test x${GTK_CONFIG+set} != xset ; then
27376 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
27377 fi
27378 fi
27379 if test x$gtk_config_prefix != x ; then
27380 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
27381 if test x${GTK_CONFIG+set} != xset ; then
27382 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
27383 fi
27384 fi
27385
27386 # Extract the first word of "gtk-config", so it can be a program name with args.
27387set dummy gtk-config; ac_word=$2
27388echo "$as_me:$LINENO: checking for $ac_word" >&5
27389echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
27390if test "${ac_cv_path_GTK_CONFIG+set}" = set; then
27391 echo $ECHO_N "(cached) $ECHO_C" >&6
27392else
27393 case $GTK_CONFIG in
27394 [\\/]* | ?:[\\/]*)
27395 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
27396 ;;
27397 *)
27398 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27399for as_dir in $PATH
27400do
27401 IFS=$as_save_IFS
27402 test -z "$as_dir" && as_dir=.
27403 for ac_exec_ext in '' $ac_executable_extensions; do
27404 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
27405 ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext"
27406 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
27407 break 2
27408 fi
27409done
27410done
27411
27412 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
27413 ;;
27414esac
27415fi
27416GTK_CONFIG=$ac_cv_path_GTK_CONFIG
27417
27418if test -n "$GTK_CONFIG"; then
27419 echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5
27420echo "${ECHO_T}$GTK_CONFIG" >&6
27421else
27422 echo "$as_me:$LINENO: result: no" >&5
27423echo "${ECHO_T}no" >&6
27424fi
27425
27426 min_gtk_version=1.2.7
27427 echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5
27428echo $ECHO_N "checking for GTK - version >= $min_gtk_version... $ECHO_C" >&6
27429 no_gtk=""
27430 if test "$GTK_CONFIG" = "no" ; then
27431 no_gtk=yes
27432 else
27433 GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
27434 GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
27435 gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
27436 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
27437 gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
27438 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
27439 gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
27440 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
27441 if test "x$enable_gtktest" = "xyes" ; then
27442 ac_save_CFLAGS="$CFLAGS"
27443 ac_save_LIBS="$LIBS"
27444 CFLAGS="$CFLAGS $GTK_CFLAGS"
27445 LIBS="$GTK_LIBS $LIBS"
27446 rm -f conf.gtktest
27447 if test "$cross_compiling" = yes; then
27448 echo $ac_n "cross compiling; assumed OK... $ac_c"
27449else
27450 cat >conftest.$ac_ext <<_ACEOF
27451/* confdefs.h. */
27452_ACEOF
27453cat confdefs.h >>conftest.$ac_ext
27454cat >>conftest.$ac_ext <<_ACEOF
27455/* end confdefs.h. */
27456
27457#include <gtk/gtk.h>
27458#include <stdio.h>
27459#include <stdlib.h>
27460
27461int
27462main ()
27463{
27464 int major, minor, micro;
27465 char *tmp_version;
27466
27467 system ("touch conf.gtktest");
27468
27469 /* HP/UX 9 (%@#!) writes to sscanf strings */
27470 tmp_version = g_strdup("$min_gtk_version");
27471 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
27472 printf("%s, bad version string\n", "$min_gtk_version");
27473 exit(1);
27474 }
27475
27476 if ((gtk_major_version != $gtk_config_major_version) ||
27477 (gtk_minor_version != $gtk_config_minor_version) ||
27478 (gtk_micro_version != $gtk_config_micro_version))
27479 {
27480 printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
27481 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
27482 gtk_major_version, gtk_minor_version, gtk_micro_version);
27483 printf ("*** was found! If gtk-config was correct, then it is best\n");
27484 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
27485 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
27486 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
27487 printf("*** required on your system.\n");
27488 printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
27489 printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
27490 printf("*** before re-running configure\n");
27491 }
27492#if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
27493 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
27494 (gtk_minor_version != GTK_MINOR_VERSION) ||
27495 (gtk_micro_version != GTK_MICRO_VERSION))
27496 {
27497 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
27498 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
27499 printf("*** library (version %d.%d.%d)\n",
27500 gtk_major_version, gtk_minor_version, gtk_micro_version);
27501 }
27502#endif /* defined (GTK_MAJOR_VERSION) ... */
27503 else
27504 {
27505 if ((gtk_major_version > major) ||
27506 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
27507 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
27508 {
27509 return 0;
27510 }
27511 else
27512 {
27513 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
27514 gtk_major_version, gtk_minor_version, gtk_micro_version);
27515 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
27516 major, minor, micro);
27517 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
27518 printf("***\n");
27519 printf("*** If you have already installed a sufficiently new version, this error\n");
27520 printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
27521 printf("*** being found. The easiest way to fix this is to remove the old version\n");
27522 printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
27523 printf("*** correct copy of gtk-config. (In this case, you will have to\n");
27524 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
27525 printf("*** so that the correct libraries are found at run-time))\n");
27526 }
27527 }
27528 return 1;
27529}
27530
27531_ACEOF
27532rm -f conftest$ac_exeext
27533if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27534 (eval $ac_link) 2>&5
27535 ac_status=$?
27536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27537 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27538 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27539 (eval $ac_try) 2>&5
27540 ac_status=$?
27541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27542 (exit $ac_status); }; }; then
27543 :
27544else
27545 echo "$as_me: program exited with status $ac_status" >&5
27546echo "$as_me: failed program was:" >&5
27547sed 's/^/| /' conftest.$ac_ext >&5
27548
27549( exit $ac_status )
27550no_gtk=yes
27551fi
ac1cb8d3 27552rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
27553fi
27554 CFLAGS="$ac_save_CFLAGS"
27555 LIBS="$ac_save_LIBS"
27556 fi
27557 fi
27558 if test "x$no_gtk" = x ; then
27559 echo "$as_me:$LINENO: result: yes" >&5
27560echo "${ECHO_T}yes" >&6
27561 wx_cv_lib_gtk=1.2.7
27562 else
27563 echo "$as_me:$LINENO: result: no" >&5
27564echo "${ECHO_T}no" >&6
27565 if test "$GTK_CONFIG" = "no" ; then
27566 echo "*** The gtk-config script installed by GTK could not be found"
27567 echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
27568 echo "*** your path, or set the GTK_CONFIG environment variable to the"
27569 echo "*** full path to gtk-config."
27570 else
27571 if test -f conf.gtktest ; then
27572 :
27573 else
27574 echo "*** Could not run GTK test program, checking why..."
27575 CFLAGS="$CFLAGS $GTK_CFLAGS"
27576 LIBS="$LIBS $GTK_LIBS"
27577 cat >conftest.$ac_ext <<_ACEOF
27578/* confdefs.h. */
27579_ACEOF
27580cat confdefs.h >>conftest.$ac_ext
27581cat >>conftest.$ac_ext <<_ACEOF
27582/* end confdefs.h. */
27583
27584#include <gtk/gtk.h>
27585#include <stdio.h>
27586
27587int
27588main ()
27589{
27590 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
27591 ;
27592 return 0;
27593}
27594_ACEOF
27595rm -f conftest.$ac_objext conftest$ac_exeext
27596if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 27597 (eval $ac_link) 2>conftest.er1
a848cd7e 27598 ac_status=$?
ac1cb8d3
VS
27599 grep -v '^ *+' conftest.er1 >conftest.err
27600 rm -f conftest.er1
27601 cat conftest.err >&5
a848cd7e
SC
27602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27603 (exit $ac_status); } &&
c9a66001 27604 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
27605 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27606 (eval $ac_try) 2>&5
27607 ac_status=$?
27608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27609 (exit $ac_status); }; } &&
27610 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
27611 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27612 (eval $ac_try) 2>&5
27613 ac_status=$?
27614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27615 (exit $ac_status); }; }; then
27616 echo "*** The test program compiled, but did not run. This usually means"
27617 echo "*** that the run-time linker is not finding GTK or finding the wrong"
27618 echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
27619 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
27620 echo "*** to the installed location Also, make sure you have run ldconfig if that"
27621 echo "*** is required on your system"
27622 echo "***"
27623 echo "*** If you have an old version installed, it is best to remove it, although"
27624 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
27625 echo "***"
27626 echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
27627 echo "*** came with the system with the command"
27628 echo "***"
27629 echo "*** rpm --erase --nodeps gtk gtk-devel"
27630else
27631 echo "$as_me: failed program was:" >&5
27632sed 's/^/| /' conftest.$ac_ext >&5
27633
27634 echo "*** The test program failed to compile or link. See the file config.log for the"
27635 echo "*** exact error that occured. This usually means GTK was incorrectly installed"
27636 echo "*** or that you have moved GTK since it was installed. In the latter case, you"
27637 echo "*** may want to edit the gtk-config script: $GTK_CONFIG"
27638fi
ac1cb8d3
VS
27639rm -f conftest.err conftest.$ac_objext \
27640 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
27641 CFLAGS="$ac_save_CFLAGS"
27642 LIBS="$ac_save_LIBS"
27643 fi
27644 fi
27645 GTK_CFLAGS=""
27646 GTK_LIBS=""
27647 :
27648 fi
27649
27650
27651 rm -f conf.gtktest
27652
27653
f34ca037 27654 if test -z "$wx_cv_lib_gtk"; then
a848cd7e
SC
27655
27656# Check whether --with-gtk-prefix or --without-gtk-prefix was given.
27657if test "${with_gtk_prefix+set}" = set; then
27658 withval="$with_gtk_prefix"
27659 gtk_config_prefix="$withval"
27660else
27661 gtk_config_prefix=""
27662fi;
27663
27664# Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
27665if test "${with_gtk_exec_prefix+set}" = set; then
27666 withval="$with_gtk_exec_prefix"
27667 gtk_config_exec_prefix="$withval"
27668else
27669 gtk_config_exec_prefix=""
27670fi;
27671# Check whether --enable-gtktest or --disable-gtktest was given.
27672if test "${enable_gtktest+set}" = set; then
27673 enableval="$enable_gtktest"
27674
27675else
27676 enable_gtktest=yes
27677fi;
27678
27679 for module in . $GTK_MODULES
27680 do
27681 case "$module" in
27682 gthread)
27683 gtk_config_args="$gtk_config_args gthread"
27684 ;;
27685 esac
27686 done
27687
27688 if test x$gtk_config_exec_prefix != x ; then
27689 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
27690 if test x${GTK_CONFIG+set} != xset ; then
27691 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
27692 fi
27693 fi
27694 if test x$gtk_config_prefix != x ; then
27695 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
27696 if test x${GTK_CONFIG+set} != xset ; then
27697 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
27698 fi
27699 fi
27700
27701 # Extract the first word of "gtk-config", so it can be a program name with args.
27702set dummy gtk-config; ac_word=$2
27703echo "$as_me:$LINENO: checking for $ac_word" >&5
27704echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
27705if test "${ac_cv_path_GTK_CONFIG+set}" = set; then
27706 echo $ECHO_N "(cached) $ECHO_C" >&6
27707else
27708 case $GTK_CONFIG in
27709 [\\/]* | ?:[\\/]*)
27710 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
27711 ;;
27712 *)
27713 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27714for as_dir in $PATH
27715do
27716 IFS=$as_save_IFS
27717 test -z "$as_dir" && as_dir=.
27718 for ac_exec_ext in '' $ac_executable_extensions; do
27719 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
27720 ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext"
27721 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
27722 break 2
27723 fi
27724done
27725done
27726
27727 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
27728 ;;
27729esac
27730fi
27731GTK_CONFIG=$ac_cv_path_GTK_CONFIG
27732
27733if test -n "$GTK_CONFIG"; then
27734 echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5
27735echo "${ECHO_T}$GTK_CONFIG" >&6
27736else
27737 echo "$as_me:$LINENO: result: no" >&5
27738echo "${ECHO_T}no" >&6
27739fi
27740
27741 min_gtk_version=1.2.3
27742 echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5
27743echo $ECHO_N "checking for GTK - version >= $min_gtk_version... $ECHO_C" >&6
27744 no_gtk=""
27745 if test "$GTK_CONFIG" = "no" ; then
27746 no_gtk=yes
27747 else
27748 GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
27749 GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
27750 gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
27751 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
27752 gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
27753 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
27754 gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
27755 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
27756 if test "x$enable_gtktest" = "xyes" ; then
27757 ac_save_CFLAGS="$CFLAGS"
27758 ac_save_LIBS="$LIBS"
27759 CFLAGS="$CFLAGS $GTK_CFLAGS"
27760 LIBS="$GTK_LIBS $LIBS"
27761 rm -f conf.gtktest
27762 if test "$cross_compiling" = yes; then
27763 echo $ac_n "cross compiling; assumed OK... $ac_c"
27764else
27765 cat >conftest.$ac_ext <<_ACEOF
27766/* confdefs.h. */
27767_ACEOF
27768cat confdefs.h >>conftest.$ac_ext
27769cat >>conftest.$ac_ext <<_ACEOF
27770/* end confdefs.h. */
27771
27772#include <gtk/gtk.h>
27773#include <stdio.h>
27774#include <stdlib.h>
27775
27776int
27777main ()
27778{
27779 int major, minor, micro;
27780 char *tmp_version;
27781
27782 system ("touch conf.gtktest");
27783
27784 /* HP/UX 9 (%@#!) writes to sscanf strings */
27785 tmp_version = g_strdup("$min_gtk_version");
27786 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
27787 printf("%s, bad version string\n", "$min_gtk_version");
27788 exit(1);
27789 }
27790
27791 if ((gtk_major_version != $gtk_config_major_version) ||
27792 (gtk_minor_version != $gtk_config_minor_version) ||
27793 (gtk_micro_version != $gtk_config_micro_version))
27794 {
27795 printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
27796 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
27797 gtk_major_version, gtk_minor_version, gtk_micro_version);
27798 printf ("*** was found! If gtk-config was correct, then it is best\n");
27799 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
27800 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
27801 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
27802 printf("*** required on your system.\n");
27803 printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
27804 printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
27805 printf("*** before re-running configure\n");
27806 }
27807#if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
27808 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
27809 (gtk_minor_version != GTK_MINOR_VERSION) ||
27810 (gtk_micro_version != GTK_MICRO_VERSION))
27811 {
27812 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
27813 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
27814 printf("*** library (version %d.%d.%d)\n",
27815 gtk_major_version, gtk_minor_version, gtk_micro_version);
27816 }
27817#endif /* defined (GTK_MAJOR_VERSION) ... */
27818 else
27819 {
27820 if ((gtk_major_version > major) ||
27821 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
27822 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
27823 {
27824 return 0;
27825 }
27826 else
27827 {
27828 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
27829 gtk_major_version, gtk_minor_version, gtk_micro_version);
27830 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
27831 major, minor, micro);
27832 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
27833 printf("***\n");
27834 printf("*** If you have already installed a sufficiently new version, this error\n");
27835 printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
27836 printf("*** being found. The easiest way to fix this is to remove the old version\n");
27837 printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
27838 printf("*** correct copy of gtk-config. (In this case, you will have to\n");
27839 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
27840 printf("*** so that the correct libraries are found at run-time))\n");
27841 }
27842 }
27843 return 1;
27844}
27845
27846_ACEOF
27847rm -f conftest$ac_exeext
27848if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27849 (eval $ac_link) 2>&5
27850 ac_status=$?
27851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27852 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27853 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27854 (eval $ac_try) 2>&5
27855 ac_status=$?
27856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27857 (exit $ac_status); }; }; then
27858 :
27859else
27860 echo "$as_me: program exited with status $ac_status" >&5
27861echo "$as_me: failed program was:" >&5
27862sed 's/^/| /' conftest.$ac_ext >&5
27863
27864( exit $ac_status )
27865no_gtk=yes
27866fi
ac1cb8d3 27867rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
27868fi
27869 CFLAGS="$ac_save_CFLAGS"
27870 LIBS="$ac_save_LIBS"
27871 fi
27872 fi
27873 if test "x$no_gtk" = x ; then
27874 echo "$as_me:$LINENO: result: yes" >&5
27875echo "${ECHO_T}yes" >&6
27876 wx_cv_lib_gtk=1.2.3
27877 else
27878 echo "$as_me:$LINENO: result: no" >&5
27879echo "${ECHO_T}no" >&6
27880 if test "$GTK_CONFIG" = "no" ; then
27881 echo "*** The gtk-config script installed by GTK could not be found"
27882 echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
27883 echo "*** your path, or set the GTK_CONFIG environment variable to the"
27884 echo "*** full path to gtk-config."
27885 else
27886 if test -f conf.gtktest ; then
27887 :
27888 else
27889 echo "*** Could not run GTK test program, checking why..."
27890 CFLAGS="$CFLAGS $GTK_CFLAGS"
27891 LIBS="$LIBS $GTK_LIBS"
27892 cat >conftest.$ac_ext <<_ACEOF
27893/* confdefs.h. */
27894_ACEOF
27895cat confdefs.h >>conftest.$ac_ext
27896cat >>conftest.$ac_ext <<_ACEOF
27897/* end confdefs.h. */
27898
27899#include <gtk/gtk.h>
27900#include <stdio.h>
27901
27902int
27903main ()
27904{
27905 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
27906 ;
27907 return 0;
27908}
27909_ACEOF
27910rm -f conftest.$ac_objext conftest$ac_exeext
27911if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 27912 (eval $ac_link) 2>conftest.er1
a848cd7e 27913 ac_status=$?
ac1cb8d3
VS
27914 grep -v '^ *+' conftest.er1 >conftest.err
27915 rm -f conftest.er1
27916 cat conftest.err >&5
a848cd7e
SC
27917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27918 (exit $ac_status); } &&
c9a66001 27919 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
27920 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27921 (eval $ac_try) 2>&5
27922 ac_status=$?
27923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27924 (exit $ac_status); }; } &&
27925 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
27926 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27927 (eval $ac_try) 2>&5
27928 ac_status=$?
27929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27930 (exit $ac_status); }; }; then
27931 echo "*** The test program compiled, but did not run. This usually means"
27932 echo "*** that the run-time linker is not finding GTK or finding the wrong"
27933 echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
27934 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
27935 echo "*** to the installed location Also, make sure you have run ldconfig if that"
27936 echo "*** is required on your system"
27937 echo "***"
27938 echo "*** If you have an old version installed, it is best to remove it, although"
27939 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
27940 echo "***"
27941 echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
27942 echo "*** came with the system with the command"
27943 echo "***"
27944 echo "*** rpm --erase --nodeps gtk gtk-devel"
27945else
27946 echo "$as_me: failed program was:" >&5
27947sed 's/^/| /' conftest.$ac_ext >&5
27948
27949 echo "*** The test program failed to compile or link. See the file config.log for the"
27950 echo "*** exact error that occured. This usually means GTK was incorrectly installed"
27951 echo "*** or that you have moved GTK since it was installed. In the latter case, you"
27952 echo "*** may want to edit the gtk-config script: $GTK_CONFIG"
27953fi
ac1cb8d3
VS
27954rm -f conftest.err conftest.$ac_objext \
27955 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
27956 CFLAGS="$ac_save_CFLAGS"
27957 LIBS="$ac_save_LIBS"
27958 fi
27959 fi
27960 GTK_CFLAGS=""
27961 GTK_LIBS=""
27962 :
27963 fi
27964
27965
27966 rm -f conf.gtktest
27967
f34ca037 27968 fi
a848cd7e
SC
27969 fi
27970 fi
27971
27972 if test -z "$wx_cv_lib_gtk"; then
27973 wx_cv_lib_gtk=none
27974 else
27975 wx_cv_cflags_gtk=$GTK_CFLAGS
d2822091 27976 wx_cv_libs_gtk=`echo $GTK_LIBS | sed -e 's/ -l[^ ]*cairo[^ ]*//g'`
a848cd7e
SC
27977 fi
27978
27979
27980fi
27981
27982
27983 if test "$gtk_version_cached" = 1; then
27984 echo "$as_me:$LINENO: result: $wx_cv_lib_gtk" >&5
27985echo "${ECHO_T}$wx_cv_lib_gtk" >&6
27986 fi
27987
27988 case "$wx_cv_lib_gtk" in
27989 2.0) WXGTK20=1
27990 TOOLKIT_VERSION=2
27991 ;;
27992 1.2.7) WXGTK127=1
27993 WXGTK12=1
27994 ;;
27995 1.2.3) WXGTK12=1
27996 ;;
27997 *) { { echo "$as_me:$LINENO: error:
f597b41c
MW
27998The development files for GTK+ were not found. For GTK+ 2, please
27999ensure that pkg-config is in the path and that gtk+-2.0.pc is
28000installed. For GTK+ 1.2 please check that gtk-config is in the path,
28001and that the version is 1.2.3 or above. Also check that the
28002libraries returned by 'pkg-config gtk+-2.0 --libs' or 'gtk-config
28003--libs' are in the LD_LIBRARY_PATH or equivalent.
a848cd7e
SC
28004 " >&5
28005echo "$as_me: error:
f597b41c
MW
28006The development files for GTK+ were not found. For GTK+ 2, please
28007ensure that pkg-config is in the path and that gtk+-2.0.pc is
28008installed. For GTK+ 1.2 please check that gtk-config is in the path,
28009and that the version is 1.2.3 or above. Also check that the
28010libraries returned by 'pkg-config gtk+-2.0 --libs' or 'gtk-config
28011--libs' are in the LD_LIBRARY_PATH or equivalent.
a848cd7e
SC
28012 " >&2;}
28013 { (exit 1); exit 1; }; }
28014 ;;
28015 esac
28016
28017 if test "$WXGTK20" = 1; then
6954625c 28018 save_CFLAGS="$CFLAGS"
304205f1 28019 save_LIBS="$LIBS"
6954625c 28020 CFLAGS="$wx_cv_cflags_gtk $CFLAGS"
abc736fd 28021 LIBS="$LIBS $wx_cv_libs_gtk"
304205f1 28022
d12aef51
VZ
28023 echo "$as_me:$LINENO: checking if gtk_icon_size_lookup is missing" >&5
28024echo $ECHO_N "checking if gtk_icon_size_lookup is missing... $ECHO_C" >&6
28025 cat >conftest.$ac_ext <<_ACEOF
304205f1
VS
28026/* confdefs.h. */
28027_ACEOF
28028cat confdefs.h >>conftest.$ac_ext
28029cat >>conftest.$ac_ext <<_ACEOF
28030/* end confdefs.h. */
304205f1 28031
d12aef51 28032 #include <gtk/gtk.h>
304205f1 28033
d12aef51
VZ
28034int
28035main ()
28036{
304205f1 28037
d12aef51 28038 void *f = gtk_icon_size_lookup;
abc736fd
MW
28039
28040 ;
28041 return 0;
28042}
28043_ACEOF
28044rm -f conftest.$ac_objext
28045if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28046 (eval $ac_compile) 2>conftest.er1
28047 ac_status=$?
28048 grep -v '^ *+' conftest.er1 >conftest.err
28049 rm -f conftest.er1
28050 cat conftest.err >&5
28051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28052 (exit $ac_status); } &&
c9a66001 28053 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
abc736fd
MW
28054 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28055 (eval $ac_try) 2>&5
28056 ac_status=$?
28057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28058 (exit $ac_status); }; } &&
28059 { ac_try='test -s conftest.$ac_objext'
28060 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28061 (eval $ac_try) 2>&5
28062 ac_status=$?
28063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28064 (exit $ac_status); }; }; then
28065
28066 echo "$as_me:$LINENO: result: no" >&5
28067echo "${ECHO_T}no" >&6
28068
28069else
28070 echo "$as_me: failed program was:" >&5
28071sed 's/^/| /' conftest.$ac_ext >&5
28072
28073
28074 cat >>confdefs.h <<\_ACEOF
28075#define NEED_GTK_ICON_SIZE_LOOKUP 1
28076_ACEOF
28077
28078 echo "$as_me:$LINENO: result: yes" >&5
28079echo "${ECHO_T}yes" >&6
28080
28081fi
28082rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28083
e9263684
VZ
28084 echo "$as_me:$LINENO: checking if GTK+ is version >= 2.6" >&5
28085echo $ECHO_N "checking if GTK+ is version >= 2.6... $ECHO_C" >&6
28086 cat >conftest.$ac_ext <<_ACEOF
28087/* confdefs.h. */
28088_ACEOF
28089cat confdefs.h >>conftest.$ac_ext
28090cat >>conftest.$ac_ext <<_ACEOF
28091/* end confdefs.h. */
28092
28093 #include <gtk/gtk.h>
28094
28095int
28096main ()
28097{
28098
28099 #if !GTK_CHECK_VERSION(2,6,0)
28100 Not GTK+ 2.6
28101 #endif
28102
28103 ;
28104 return 0;
28105}
28106_ACEOF
28107rm -f conftest.$ac_objext
28108if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28109 (eval $ac_compile) 2>conftest.er1
28110 ac_status=$?
28111 grep -v '^ *+' conftest.er1 >conftest.err
28112 rm -f conftest.er1
28113 cat conftest.err >&5
28114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28115 (exit $ac_status); } &&
c9a66001 28116 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
e9263684
VZ
28117 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28118 (eval $ac_try) 2>&5
28119 ac_status=$?
28120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28121 (exit $ac_status); }; } &&
28122 { ac_try='test -s conftest.$ac_objext'
28123 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28124 (eval $ac_try) 2>&5
28125 ac_status=$?
28126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28127 (exit $ac_status); }; }; then
28128
28129 cat >>confdefs.h <<\_ACEOF
28130#define __WXGTK26__ 1
28131_ACEOF
28132
28133 cat >>confdefs.h <<\_ACEOF
28134#define __WXGTK24__ 1
28135_ACEOF
28136
28137 echo "$as_me:$LINENO: result: yes" >&5
28138echo "${ECHO_T}yes" >&6
28139 ac_wxgtk26=1
28140
28141else
28142 echo "$as_me: failed program was:" >&5
28143sed 's/^/| /' conftest.$ac_ext >&5
28144
28145
28146 echo "$as_me:$LINENO: result: no" >&5
28147echo "${ECHO_T}no" >&6
28148 ac_wxgtk26=0
28149
28150fi
28151rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28152
28153 if test "$ac_wxgtk26" = 0; then
9755e73b
VS
28154 echo "$as_me:$LINENO: checking if GTK+ is version >= 2.4" >&5
28155echo $ECHO_N "checking if GTK+ is version >= 2.4... $ECHO_C" >&6
28156 cat >conftest.$ac_ext <<_ACEOF
28157/* confdefs.h. */
28158_ACEOF
28159cat confdefs.h >>conftest.$ac_ext
28160cat >>conftest.$ac_ext <<_ACEOF
28161/* end confdefs.h. */
28162
28163 #include <gtk/gtk.h>
28164
28165int
28166main ()
28167{
28168
28169 #if !GTK_CHECK_VERSION(2,4,0)
04e525a0 28170 Not GTK+ 2.4
9755e73b
VS
28171 #endif
28172
28173 ;
28174 return 0;
28175}
28176_ACEOF
28177rm -f conftest.$ac_objext
28178if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28179 (eval $ac_compile) 2>conftest.er1
28180 ac_status=$?
28181 grep -v '^ *+' conftest.er1 >conftest.err
28182 rm -f conftest.er1
28183 cat conftest.err >&5
28184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28185 (exit $ac_status); } &&
c9a66001 28186 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9755e73b
VS
28187 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28188 (eval $ac_try) 2>&5
28189 ac_status=$?
28190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28191 (exit $ac_status); }; } &&
28192 { ac_try='test -s conftest.$ac_objext'
28193 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28194 (eval $ac_try) 2>&5
28195 ac_status=$?
28196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28197 (exit $ac_status); }; }; then
28198
28199 cat >>confdefs.h <<\_ACEOF
28200#define __WXGTK24__ 1
28201_ACEOF
28202
28203 echo "$as_me:$LINENO: result: yes" >&5
28204echo "${ECHO_T}yes" >&6
28205
28206else
28207 echo "$as_me: failed program was:" >&5
28208sed 's/^/| /' conftest.$ac_ext >&5
28209
28210
28211 echo "$as_me:$LINENO: result: no" >&5
28212echo "${ECHO_T}no" >&6
28213
28214fi
28215rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e9263684 28216 fi
9755e73b 28217
6954625c 28218 CFLAGS="$save_CFLAGS"
304205f1 28219 LIBS="$save_LIBS"
a848cd7e
SC
28220 else
28221 if test "$wxUSE_UNICODE" = "yes"; then
28222 { echo "$as_me:$LINENO: WARNING: Unicode configuration not supported with GTK+ 1.x" >&5
28223echo "$as_me: WARNING: Unicode configuration not supported with GTK+ 1.x" >&2;}
28224 wxUSE_UNICODE=no
28225 fi
28226 fi
28227
e56f4f9e
VZ
28228 ac_ext=cc
28229ac_cpp='$CXXCPP $CPPFLAGS'
28230ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28231ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28232ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28233
28234
a848cd7e
SC
28235 if test "$USE_DARWIN" != 1; then
28236
28237for ac_func in poll
28238do
28239as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28240echo "$as_me:$LINENO: checking for $ac_func" >&5
28241echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
28242if eval "test \"\${$as_ac_var+set}\" = set"; then
28243 echo $ECHO_N "(cached) $ECHO_C" >&6
28244else
28245 cat >conftest.$ac_ext <<_ACEOF
28246/* confdefs.h. */
28247_ACEOF
28248cat confdefs.h >>conftest.$ac_ext
28249cat >>conftest.$ac_ext <<_ACEOF
28250/* end confdefs.h. */
ac1cb8d3
VS
28251/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28252 For example, HP-UX 11i <limits.h> declares gettimeofday. */
28253#define $ac_func innocuous_$ac_func
28254
a848cd7e
SC
28255/* System header to define __stub macros and hopefully few prototypes,
28256 which can conflict with char $ac_func (); below.
28257 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28258 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 28259
a848cd7e
SC
28260#ifdef __STDC__
28261# include <limits.h>
28262#else
28263# include <assert.h>
28264#endif
ac1cb8d3
VS
28265
28266#undef $ac_func
28267
a848cd7e
SC
28268/* Override any gcc2 internal prototype to avoid an error. */
28269#ifdef __cplusplus
28270extern "C"
28271{
28272#endif
28273/* We use char because int might match the return type of a gcc2
28274 builtin and then its argument prototype would still apply. */
28275char $ac_func ();
28276/* The GNU C library defines this for functions which it implements
28277 to always fail with ENOSYS. Some functions are actually named
28278 something starting with __ and the normal name is an alias. */
28279#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
28280choke me
28281#else
28282char (*f) () = $ac_func;
28283#endif
28284#ifdef __cplusplus
28285}
28286#endif
28287
28288int
28289main ()
28290{
28291return f != $ac_func;
28292 ;
28293 return 0;
28294}
28295_ACEOF
28296rm -f conftest.$ac_objext conftest$ac_exeext
28297if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 28298 (eval $ac_link) 2>conftest.er1
a848cd7e 28299 ac_status=$?
ac1cb8d3
VS
28300 grep -v '^ *+' conftest.er1 >conftest.err
28301 rm -f conftest.er1
28302 cat conftest.err >&5
a848cd7e
SC
28303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28304 (exit $ac_status); } &&
c9a66001 28305 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
28306 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28307 (eval $ac_try) 2>&5
28308 ac_status=$?
28309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28310 (exit $ac_status); }; } &&
28311 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
28312 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28313 (eval $ac_try) 2>&5
28314 ac_status=$?
28315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28316 (exit $ac_status); }; }; then
28317 eval "$as_ac_var=yes"
28318else
28319 echo "$as_me: failed program was:" >&5
28320sed 's/^/| /' conftest.$ac_ext >&5
28321
28322eval "$as_ac_var=no"
28323fi
ac1cb8d3
VS
28324rm -f conftest.err conftest.$ac_objext \
28325 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
28326fi
28327echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28328echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28329if test `eval echo '${'$as_ac_var'}'` = yes; then
28330 cat >>confdefs.h <<_ACEOF
28331#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28332_ACEOF
28333
28334fi
28335done
28336
28337 fi
28338
28339 TOOLKIT_INCLUDE="$wx_cv_cflags_gtk"
28340 GUI_TK_LIBRARY="$wx_cv_libs_gtk $GUI_TK_LIBRARY"
28341
28342 AFMINSTALL=afminstall
28343 TOOLKIT=GTK
28344 GUIDIST=GTK_DIST
28345
28346 echo "$as_me:$LINENO: checking for gdk_im_open in -lgdk" >&5
28347echo $ECHO_N "checking for gdk_im_open in -lgdk... $ECHO_C" >&6
28348if test "${ac_cv_lib_gdk_gdk_im_open+set}" = set; then
28349 echo $ECHO_N "(cached) $ECHO_C" >&6
28350else
28351 ac_check_lib_save_LIBS=$LIBS
28352LIBS="-lgdk $LIBS"
28353cat >conftest.$ac_ext <<_ACEOF
28354/* confdefs.h. */
28355_ACEOF
28356cat confdefs.h >>conftest.$ac_ext
28357cat >>conftest.$ac_ext <<_ACEOF
28358/* end confdefs.h. */
28359
28360/* Override any gcc2 internal prototype to avoid an error. */
28361#ifdef __cplusplus
28362extern "C"
28363#endif
28364/* We use char because int might match the return type of a gcc2
28365 builtin and then its argument prototype would still apply. */
28366char gdk_im_open ();
28367int
28368main ()
28369{
28370gdk_im_open ();
28371 ;
28372 return 0;
28373}
28374_ACEOF
28375rm -f conftest.$ac_objext conftest$ac_exeext
28376if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 28377 (eval $ac_link) 2>conftest.er1
a848cd7e 28378 ac_status=$?
ac1cb8d3
VS
28379 grep -v '^ *+' conftest.er1 >conftest.err
28380 rm -f conftest.er1
28381 cat conftest.err >&5
a848cd7e
SC
28382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28383 (exit $ac_status); } &&
c9a66001 28384 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
28385 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28386 (eval $ac_try) 2>&5
28387 ac_status=$?
28388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28389 (exit $ac_status); }; } &&
28390 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
28391 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28392 (eval $ac_try) 2>&5
28393 ac_status=$?
28394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28395 (exit $ac_status); }; }; then
28396 ac_cv_lib_gdk_gdk_im_open=yes
28397else
28398 echo "$as_me: failed program was:" >&5
28399sed 's/^/| /' conftest.$ac_ext >&5
28400
28401ac_cv_lib_gdk_gdk_im_open=no
28402fi
ac1cb8d3
VS
28403rm -f conftest.err conftest.$ac_objext \
28404 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
28405LIBS=$ac_check_lib_save_LIBS
28406fi
28407echo "$as_me:$LINENO: result: $ac_cv_lib_gdk_gdk_im_open" >&5
28408echo "${ECHO_T}$ac_cv_lib_gdk_gdk_im_open" >&6
28409if test $ac_cv_lib_gdk_gdk_im_open = yes; then
28410 cat >>confdefs.h <<\_ACEOF
28411#define HAVE_XIM 1
28412_ACEOF
28413
28414fi
28415
28416
28417
28418 if test "$wxUSE_GPE" = "yes"; then
28419 echo "$as_me:$LINENO: checking for gpewidget library" >&5
28420echo $ECHO_N "checking for gpewidget library... $ECHO_C" >&6
28421
0ad5d837
VZ
28422 ac_find_libraries=
28423 for ac_dir in $SEARCH_LIB;
a848cd7e 28424 do
3eca31dc 28425 for ac_extension in a so sl dylib dll.a; do
a848cd7e
SC
28426 if test -f "$ac_dir/libgpewidget.$ac_extension"; then
28427 ac_find_libraries=$ac_dir
28428 break 2
28429 fi
28430 done
28431 done
28432
28433 if test "$ac_find_libraries" != "" ; then
28434
0ad5d837 28435 if test "$ac_find_libraries" = "default location"; then
a848cd7e
SC
28436 ac_path_to_link=""
28437 else
0ad5d837
VZ
28438 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
28439 result=$?
28440 if test $result = 0; then
28441 ac_path_to_link=""
28442 else
28443 ac_path_to_link=" -L$ac_find_libraries"
28444 fi
a848cd7e
SC
28445 fi
28446
28447 GUI_TK_LIBRARY="-L${prefix}/lib -lgpewidget $GUI_TK_LIBRARY"
28448 WXGPE=1
0ad5d837
VZ
28449 echo "$as_me:$LINENO: result: found in $ac_find_libraries" >&5
28450echo "${ECHO_T}found in $ac_find_libraries" >&6
a848cd7e
SC
28451 else
28452 echo "$as_me:$LINENO: result: not found" >&5
28453echo "${ECHO_T}not found" >&6
28454 fi
28455
28456 fi
28457 fi
28458
28459 if test "$wxUSE_MGL" = 1; then
28460 echo "$as_me:$LINENO: checking for SciTech MGL library" >&5
28461echo $ECHO_N "checking for SciTech MGL library... $ECHO_C" >&6
28462 if test "x$MGL_ROOT" = x ; then
28463 echo "$as_me:$LINENO: result: not found" >&5
28464echo "${ECHO_T}not found" >&6
28465 { { echo "$as_me:$LINENO: error: Cannot find MGL library. Make sure MGL_ROOT is set." >&5
28466echo "$as_me: error: Cannot find MGL library. Make sure MGL_ROOT is set." >&2;}
28467 { (exit 1); exit 1; }; }
28468 else
28469 echo "$as_me:$LINENO: result: $MGL_ROOT" >&5
28470echo "${ECHO_T}$MGL_ROOT" >&6
28471 fi
28472
28473 echo "$as_me:$LINENO: checking for libmgl location" >&5
28474echo $ECHO_N "checking for libmgl location... $ECHO_C" >&6
28475 case "${host}" in
28476 *-*-linux* )
28477 if test "x$wxUSE_SHARED" = xyes ; then
28478 mgl_os_candidates="linux/gcc/x86/so linux/gcc/x86/a linux/gcc/glibc.so linux/gcc/glibc"
28479 else
28480 mgl_os_candidates="linux/gcc/x86/a linux/gcc/x86/so linux/gcc/glibc linux/gcc/glibc.so"
28481 fi
28482 ;;
28483 *-pc-msdosdjgpp )
28484 mgl_os_candidates="dos32/dj2"
28485 ;;
28486 *)
28487 { { echo "$as_me:$LINENO: error: This system type ${host} is not yet supported by wxMGL." >&5
28488echo "$as_me: error: This system type ${host} is not yet supported by wxMGL." >&2;}
28489 { (exit 1); exit 1; }; }
28490 esac
28491
28492 mgl_lib_type=""
28493 mgl_os=""
28494
28495 for mgl_os_i in $mgl_os_candidates ; do
28496 if test "x$mgl_os" = x ; then
28497 if test "$wxUSE_DEBUG_FLAG" = yes ; then
28498 if test -f $MGL_ROOT/lib/debug/$mgl_os_i/libmgl.a -o \
28499 -f $MGL_ROOT/lib/debug/$mgl_os_i/libmgl.so; then
28500 mgl_lib_type=debug
28501 mgl_os=$mgl_os_i
28502 fi
28503 fi
28504 if test "x$mgl_lib_type" = x ; then
28505 if test -f $MGL_ROOT/lib/release/$mgl_os_i/libmgl.a -o \
28506 -f $MGL_ROOT/lib/release/$mgl_os_i/libmgl.so; then
28507 mgl_lib_type=release
28508 mgl_os=$mgl_os_i
28509 fi
28510 fi
28511 fi
28512 done
28513
28514 if test "x$mgl_os" = x ; then
28515 echo "$as_me:$LINENO: result: not found" >&5
28516echo "${ECHO_T}not found" >&6
28517 { { echo "$as_me:$LINENO: error: Cannot find MGL libraries, make sure they are compiled." >&5
28518echo "$as_me: error: Cannot find MGL libraries, make sure they are compiled." >&2;}
28519 { (exit 1); exit 1; }; }
28520 fi
28521 echo "$as_me:$LINENO: result: \"$MGL_ROOT/lib/$mgl_lib_type/$mgl_os\"" >&5
28522echo "${ECHO_T}\"$MGL_ROOT/lib/$mgl_lib_type/$mgl_os\"" >&6
28523
28524 wxUSE_UNIVERSAL="yes"
28525
28526 TOOLKIT_INCLUDE="-I$MGL_ROOT/include"
28527 GUI_TK_LIBRARY="-L$MGL_ROOT/lib/$mgl_lib_type/$mgl_os -lmgl -lmglcpp -lpm"
28528
28529 AFMINSTALL=afminstall
28530 TOOLKIT=MGL
28531 GUIDIST=MGL_DIST
28532 fi
28533
28534 if test "$wxUSE_MICROWIN" = 1; then
28535 echo "$as_me:$LINENO: checking for MicroWindows" >&5
28536echo $ECHO_N "checking for MicroWindows... $ECHO_C" >&6
28537 if test "x$MICROWINDOWS" = x ; then
28538 echo "$as_me:$LINENO: result: not found" >&5
28539echo "${ECHO_T}not found" >&6
28540 { { echo "$as_me:$LINENO: error: Cannot find MicroWindows library. Make sure MICROWINDOWS is set." >&5
28541echo "$as_me: error: Cannot find MicroWindows library. Make sure MICROWINDOWS is set." >&2;}
28542 { (exit 1); exit 1; }; }
28543 else
28544 echo "$as_me:$LINENO: result: $MICROWINDOWS" >&5
28545echo "${ECHO_T}$MICROWINDOWS" >&6
28546 fi
28547
28548 if test -f $MICROWINDOWS/lib/libmwin.a; then
28549 echo "$as_me:$LINENO: result: MicroWindows' libraries found." >&5
28550echo "${ECHO_T}MicroWindows' libraries found." >&6
28551 else
28552 { { echo "$as_me:$LINENO: error: Cannot find MicroWindows libraries, make sure they are compiled." >&5
28553echo "$as_me: error: Cannot find MicroWindows libraries, make sure they are compiled." >&2;}
28554 { (exit 1); exit 1; }; }
28555 fi
28556
28557 TOOLKIT_INCLUDE="-I$MICROWINDOWS/include"
28558 GUI_TK_LIBRARY="-L$MICROWINDOWS/lib -lmwin -lmwengine -mwfonts -mwdrivers -mwinlib"
28559
28560 wxUSE_UNIVERSAL="yes"
28561
28562 AFMINSTALL=afminstall
28563 TOOLKIT=MICROWIN
28564 GUIDIST=MICROWIN_DIST
28565
28566 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXMSW__ -D__WIN95__ -D__WIN32__ -DMWIN -DMICROWIN_NOCONTROLS -DMICROWIN_TODO=1"
28567 fi
28568
74b84332 28569 if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then
c9a66001
VZ
28570
28571if test "x$ac_path_x_has_been_run" != xyes; then
28572 echo "$as_me:$LINENO: checking for X" >&5
a848cd7e
SC
28573echo $ECHO_N "checking for X... $ECHO_C" >&6
28574
c9a66001 28575ac_path_x_has_been_run=yes
a848cd7e
SC
28576
28577# Check whether --with-x or --without-x was given.
28578if test "${with_x+set}" = set; then
28579 withval="$with_x"
28580
28581fi;
28582# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
28583if test "x$with_x" = xno; then
28584 # The user explicitly disabled X.
28585 have_x=disabled
28586else
28587 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
28588 # Both variables are already set.
28589 have_x=yes
28590 else
28591 if test "${ac_cv_have_x+set}" = set; then
28592 echo $ECHO_N "(cached) $ECHO_C" >&6
28593else
28594 # One or both of the vars are not set, and there is no cached value.
28595ac_x_includes=no ac_x_libraries=no
28596rm -fr conftest.dir
28597if mkdir conftest.dir; then
28598 cd conftest.dir
28599 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
28600 cat >Imakefile <<'_ACEOF'
28601acfindx:
28602 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
28603_ACEOF
28604 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
28605 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
28606 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
28607 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
28608 for ac_extension in a so sl; do
28609 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
ac1cb8d3
VS
28610 test -f $ac_im_libdir/libX11.$ac_extension; then
28611 ac_im_usrlibdir=$ac_im_libdir; break
a848cd7e
SC
28612 fi
28613 done
28614 # Screen out bogus values from the imake configuration. They are
28615 # bogus both because they are the default anyway, and because
28616 # using them would break gcc on systems where it needs fixed includes.
28617 case $ac_im_incroot in
28618 /usr/include) ;;
28619 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
28620 esac
28621 case $ac_im_usrlibdir in
28622 /usr/lib | /lib) ;;
28623 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
28624 esac
28625 fi
28626 cd ..
28627 rm -fr conftest.dir
28628fi
28629
28630# Standard set of common directories for X headers.
28631# Check X11 before X11Rn because it is often a symlink to the current release.
28632ac_x_header_dirs='
28633/usr/X11/include
28634/usr/X11R6/include
28635/usr/X11R5/include
28636/usr/X11R4/include
28637
28638/usr/include/X11
28639/usr/include/X11R6
28640/usr/include/X11R5
28641/usr/include/X11R4
28642
28643/usr/local/X11/include
28644/usr/local/X11R6/include
28645/usr/local/X11R5/include
28646/usr/local/X11R4/include
28647
28648/usr/local/include/X11
28649/usr/local/include/X11R6
28650/usr/local/include/X11R5
28651/usr/local/include/X11R4
28652
28653/usr/X386/include
28654/usr/x386/include
28655/usr/XFree86/include/X11
28656
28657/usr/include
28658/usr/local/include
28659/usr/unsupported/include
28660/usr/athena/include
28661/usr/local/x11r5/include
28662/usr/lpp/Xamples/include
28663
28664/usr/openwin/include
28665/usr/openwin/share/include'
28666
28667if test "$ac_x_includes" = no; then
c9a66001 28668 # Guess where to find include files, by looking for a specified header file.
a848cd7e
SC
28669 # First, try using that file with no special directory specified.
28670 cat >conftest.$ac_ext <<_ACEOF
28671/* confdefs.h. */
28672_ACEOF
28673cat confdefs.h >>conftest.$ac_ext
28674cat >>conftest.$ac_ext <<_ACEOF
28675/* end confdefs.h. */
bc023abb 28676#include <X11/Intrinsic.h>
a848cd7e
SC
28677_ACEOF
28678if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
28679 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
28680 ac_status=$?
28681 grep -v '^ *+' conftest.er1 >conftest.err
28682 rm -f conftest.er1
28683 cat conftest.err >&5
28684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28685 (exit $ac_status); } >/dev/null; then
28686 if test -s conftest.err; then
5d7b7554
VZ
28687 ac_cpp_err=$ac_cxx_preproc_warn_flag
28688 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
28689 else
28690 ac_cpp_err=
28691 fi
28692else
28693 ac_cpp_err=yes
28694fi
28695if test -z "$ac_cpp_err"; then
28696 # We can compile using X headers with no special include directory.
28697ac_x_includes=
28698else
28699 echo "$as_me: failed program was:" >&5
28700sed 's/^/| /' conftest.$ac_ext >&5
28701
28702 for ac_dir in $ac_x_header_dirs; do
bc023abb 28703 if test -r "$ac_dir/X11/Intrinsic.h"; then
a848cd7e
SC
28704 ac_x_includes=$ac_dir
28705 break
28706 fi
28707done
28708fi
28709rm -f conftest.err conftest.$ac_ext
28710fi # $ac_x_includes = no
28711
28712if test "$ac_x_libraries" = no; then
28713 # Check for the libraries.
28714 # See if we find them without any special options.
28715 # Don't add to $LIBS permanently.
28716 ac_save_LIBS=$LIBS
bc023abb 28717 LIBS="-lXt $LIBS"
a848cd7e
SC
28718 cat >conftest.$ac_ext <<_ACEOF
28719/* confdefs.h. */
28720_ACEOF
28721cat confdefs.h >>conftest.$ac_ext
28722cat >>conftest.$ac_ext <<_ACEOF
28723/* end confdefs.h. */
bc023abb 28724#include <X11/Intrinsic.h>
a848cd7e
SC
28725int
28726main ()
28727{
bc023abb 28728XtMalloc (0)
a848cd7e
SC
28729 ;
28730 return 0;
28731}
28732_ACEOF
28733rm -f conftest.$ac_objext conftest$ac_exeext
28734if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 28735 (eval $ac_link) 2>conftest.er1
a848cd7e 28736 ac_status=$?
ac1cb8d3
VS
28737 grep -v '^ *+' conftest.er1 >conftest.err
28738 rm -f conftest.er1
28739 cat conftest.err >&5
a848cd7e
SC
28740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28741 (exit $ac_status); } &&
c9a66001 28742 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
28743 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28744 (eval $ac_try) 2>&5
28745 ac_status=$?
28746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28747 (exit $ac_status); }; } &&
28748 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
28749 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28750 (eval $ac_try) 2>&5
28751 ac_status=$?
28752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28753 (exit $ac_status); }; }; then
28754 LIBS=$ac_save_LIBS
28755# We can link X programs with no special library path.
28756ac_x_libraries=
28757else
28758 echo "$as_me: failed program was:" >&5
28759sed 's/^/| /' conftest.$ac_ext >&5
28760
28761LIBS=$ac_save_LIBS
28762for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
28763do
28764 # Don't even attempt the hair of trying to link an X program!
28765 for ac_extension in a so sl; do
bc023abb 28766 if test -r $ac_dir/libXt.$ac_extension; then
a848cd7e
SC
28767 ac_x_libraries=$ac_dir
28768 break 2
28769 fi
28770 done
28771done
28772fi
ac1cb8d3
VS
28773rm -f conftest.err conftest.$ac_objext \
28774 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
28775fi # $ac_x_libraries = no
28776
28777if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
28778 # Didn't find X anywhere. Cache the known absence of X.
28779 ac_cv_have_x="have_x=no"
28780else
28781 # Record where we found X for the cache.
28782 ac_cv_have_x="have_x=yes \
ac1cb8d3 28783 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
a848cd7e
SC
28784fi
28785fi
28786
28787 fi
28788 eval "$ac_cv_have_x"
28789fi # $with_x != no
28790
28791if test "$have_x" != yes; then
28792 echo "$as_me:$LINENO: result: $have_x" >&5
28793echo "${ECHO_T}$have_x" >&6
28794 no_x=yes
28795else
28796 # If each of the values was on the command line, it overrides each guess.
28797 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
28798 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
28799 # Update the cache value to reflect the command line values.
28800 ac_cv_have_x="have_x=yes \
28801 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
c9a66001
VZ
28802 # It might be that x_includes is empty (headers are found in the
28803 # standard search path. Then output the corresponding message
28804 ac_out_x_includes=$x_includes
28805 test "x$x_includes" = x && ac_out_x_includes="in standard search path"
28806 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $ac_out_x_includes" >&5
28807echo "${ECHO_T}libraries $x_libraries, headers $ac_out_x_includes" >&6
a848cd7e
SC
28808fi
28809
c9a66001 28810fi
a848cd7e
SC
28811if test "$no_x" = yes; then
28812 # Not all programs may use this symbol, but it does not hurt to define it.
28813
28814cat >>confdefs.h <<\_ACEOF
28815#define X_DISPLAY_MISSING 1
28816_ACEOF
28817
28818 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
28819else
28820 if test -n "$x_includes"; then
28821 X_CFLAGS="$X_CFLAGS -I$x_includes"
28822 fi
28823
28824 # It would also be nice to do this for all -L options, not just this one.
28825 if test -n "$x_libraries"; then
28826 X_LIBS="$X_LIBS -L$x_libraries"
28827 # For Solaris; some versions of Sun CC require a space after -R and
28828 # others require no space. Words are not sufficient . . . .
28829 case `(uname -sr) 2>/dev/null` in
28830 "SunOS 5"*)
28831 echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
28832echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
28833 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
28834 cat >conftest.$ac_ext <<_ACEOF
28835/* confdefs.h. */
28836_ACEOF
28837cat confdefs.h >>conftest.$ac_ext
28838cat >>conftest.$ac_ext <<_ACEOF
28839/* end confdefs.h. */
28840
28841int
28842main ()
28843{
28844
28845 ;
28846 return 0;
28847}
28848_ACEOF
28849rm -f conftest.$ac_objext conftest$ac_exeext
28850if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 28851 (eval $ac_link) 2>conftest.er1
a848cd7e 28852 ac_status=$?
ac1cb8d3
VS
28853 grep -v '^ *+' conftest.er1 >conftest.err
28854 rm -f conftest.er1
28855 cat conftest.err >&5
a848cd7e
SC
28856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28857 (exit $ac_status); } &&
c9a66001 28858 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
28859 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28860 (eval $ac_try) 2>&5
28861 ac_status=$?
28862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28863 (exit $ac_status); }; } &&
28864 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
28865 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28866 (eval $ac_try) 2>&5
28867 ac_status=$?
28868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28869 (exit $ac_status); }; }; then
28870 ac_R_nospace=yes
28871else
28872 echo "$as_me: failed program was:" >&5
28873sed 's/^/| /' conftest.$ac_ext >&5
28874
28875ac_R_nospace=no
28876fi
ac1cb8d3
VS
28877rm -f conftest.err conftest.$ac_objext \
28878 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
28879 if test $ac_R_nospace = yes; then
28880 echo "$as_me:$LINENO: result: no" >&5
28881echo "${ECHO_T}no" >&6
28882 X_LIBS="$X_LIBS -R$x_libraries"
28883 else
28884 LIBS="$ac_xsave_LIBS -R $x_libraries"
28885 cat >conftest.$ac_ext <<_ACEOF
28886/* confdefs.h. */
28887_ACEOF
28888cat confdefs.h >>conftest.$ac_ext
28889cat >>conftest.$ac_ext <<_ACEOF
28890/* end confdefs.h. */
28891
28892int
28893main ()
28894{
28895
28896 ;
28897 return 0;
28898}
28899_ACEOF
28900rm -f conftest.$ac_objext conftest$ac_exeext
28901if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 28902 (eval $ac_link) 2>conftest.er1
a848cd7e 28903 ac_status=$?
ac1cb8d3
VS
28904 grep -v '^ *+' conftest.er1 >conftest.err
28905 rm -f conftest.er1
28906 cat conftest.err >&5
a848cd7e
SC
28907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28908 (exit $ac_status); } &&
c9a66001 28909 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
28910 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28911 (eval $ac_try) 2>&5
28912 ac_status=$?
28913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28914 (exit $ac_status); }; } &&
28915 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
28916 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28917 (eval $ac_try) 2>&5
28918 ac_status=$?
28919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28920 (exit $ac_status); }; }; then
28921 ac_R_space=yes
28922else
28923 echo "$as_me: failed program was:" >&5
28924sed 's/^/| /' conftest.$ac_ext >&5
28925
28926ac_R_space=no
28927fi
ac1cb8d3
VS
28928rm -f conftest.err conftest.$ac_objext \
28929 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
28930 if test $ac_R_space = yes; then
28931 echo "$as_me:$LINENO: result: yes" >&5
28932echo "${ECHO_T}yes" >&6
28933 X_LIBS="$X_LIBS -R $x_libraries"
28934 else
28935 echo "$as_me:$LINENO: result: neither works" >&5
28936echo "${ECHO_T}neither works" >&6
28937 fi
28938 fi
28939 LIBS=$ac_xsave_LIBS
28940 esac
28941 fi
28942
28943 # Check for system-dependent libraries X programs must link with.
28944 # Do this before checking for the system-independent R6 libraries
28945 # (-lICE), since we may need -lsocket or whatever for X linking.
28946
28947 if test "$ISC" = yes; then
28948 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
28949 else
28950 # Martyn Johnson says this is needed for Ultrix, if the X
28951 # libraries were built with DECnet support. And Karl Berry says
28952 # the Alpha needs dnet_stub (dnet does not exist).
28953 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
28954 cat >conftest.$ac_ext <<_ACEOF
28955/* confdefs.h. */
28956_ACEOF
28957cat confdefs.h >>conftest.$ac_ext
28958cat >>conftest.$ac_ext <<_ACEOF
28959/* end confdefs.h. */
28960
28961/* Override any gcc2 internal prototype to avoid an error. */
28962#ifdef __cplusplus
28963extern "C"
28964#endif
28965/* We use char because int might match the return type of a gcc2
28966 builtin and then its argument prototype would still apply. */
28967char XOpenDisplay ();
28968int
28969main ()
28970{
28971XOpenDisplay ();
28972 ;
28973 return 0;
28974}
28975_ACEOF
28976rm -f conftest.$ac_objext conftest$ac_exeext
28977if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 28978 (eval $ac_link) 2>conftest.er1
a848cd7e 28979 ac_status=$?
ac1cb8d3
VS
28980 grep -v '^ *+' conftest.er1 >conftest.err
28981 rm -f conftest.er1
28982 cat conftest.err >&5
a848cd7e
SC
28983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28984 (exit $ac_status); } &&
c9a66001 28985 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
28986 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28987 (eval $ac_try) 2>&5
28988 ac_status=$?
28989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28990 (exit $ac_status); }; } &&
28991 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
28992 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28993 (eval $ac_try) 2>&5
28994 ac_status=$?
28995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28996 (exit $ac_status); }; }; then
28997 :
28998else
28999 echo "$as_me: failed program was:" >&5
29000sed 's/^/| /' conftest.$ac_ext >&5
29001
29002echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
29003echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
29004if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
29005 echo $ECHO_N "(cached) $ECHO_C" >&6
29006else
29007 ac_check_lib_save_LIBS=$LIBS
29008LIBS="-ldnet $LIBS"
29009cat >conftest.$ac_ext <<_ACEOF
29010/* confdefs.h. */
29011_ACEOF
29012cat confdefs.h >>conftest.$ac_ext
29013cat >>conftest.$ac_ext <<_ACEOF
29014/* end confdefs.h. */
29015
29016/* Override any gcc2 internal prototype to avoid an error. */
29017#ifdef __cplusplus
29018extern "C"
29019#endif
29020/* We use char because int might match the return type of a gcc2
29021 builtin and then its argument prototype would still apply. */
29022char dnet_ntoa ();
29023int
29024main ()
29025{
29026dnet_ntoa ();
29027 ;
29028 return 0;
29029}
29030_ACEOF
29031rm -f conftest.$ac_objext conftest$ac_exeext
29032if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 29033 (eval $ac_link) 2>conftest.er1
a848cd7e 29034 ac_status=$?
ac1cb8d3
VS
29035 grep -v '^ *+' conftest.er1 >conftest.err
29036 rm -f conftest.er1
29037 cat conftest.err >&5
a848cd7e
SC
29038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29039 (exit $ac_status); } &&
c9a66001 29040 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
29041 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29042 (eval $ac_try) 2>&5
29043 ac_status=$?
29044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29045 (exit $ac_status); }; } &&
29046 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
29047 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29048 (eval $ac_try) 2>&5
29049 ac_status=$?
29050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29051 (exit $ac_status); }; }; then
29052 ac_cv_lib_dnet_dnet_ntoa=yes
29053else
29054 echo "$as_me: failed program was:" >&5
29055sed 's/^/| /' conftest.$ac_ext >&5
29056
29057ac_cv_lib_dnet_dnet_ntoa=no
29058fi
ac1cb8d3
VS
29059rm -f conftest.err conftest.$ac_objext \
29060 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
29061LIBS=$ac_check_lib_save_LIBS
29062fi
29063echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
29064echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
29065if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
29066 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
29067fi
29068
29069 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
29070 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
29071echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
29072if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
29073 echo $ECHO_N "(cached) $ECHO_C" >&6
29074else
29075 ac_check_lib_save_LIBS=$LIBS
29076LIBS="-ldnet_stub $LIBS"
29077cat >conftest.$ac_ext <<_ACEOF
29078/* confdefs.h. */
29079_ACEOF
29080cat confdefs.h >>conftest.$ac_ext
29081cat >>conftest.$ac_ext <<_ACEOF
29082/* end confdefs.h. */
29083
29084/* Override any gcc2 internal prototype to avoid an error. */
29085#ifdef __cplusplus
29086extern "C"
29087#endif
29088/* We use char because int might match the return type of a gcc2
29089 builtin and then its argument prototype would still apply. */
29090char dnet_ntoa ();
29091int
29092main ()
29093{
29094dnet_ntoa ();
29095 ;
29096 return 0;
29097}
29098_ACEOF
29099rm -f conftest.$ac_objext conftest$ac_exeext
29100if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 29101 (eval $ac_link) 2>conftest.er1
a848cd7e 29102 ac_status=$?
ac1cb8d3
VS
29103 grep -v '^ *+' conftest.er1 >conftest.err
29104 rm -f conftest.er1
29105 cat conftest.err >&5
a848cd7e
SC
29106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29107 (exit $ac_status); } &&
c9a66001 29108 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
29109 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29110 (eval $ac_try) 2>&5
29111 ac_status=$?
29112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29113 (exit $ac_status); }; } &&
29114 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
29115 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29116 (eval $ac_try) 2>&5
29117 ac_status=$?
29118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29119 (exit $ac_status); }; }; then
29120 ac_cv_lib_dnet_stub_dnet_ntoa=yes
29121else
29122 echo "$as_me: failed program was:" >&5
29123sed 's/^/| /' conftest.$ac_ext >&5
29124
29125ac_cv_lib_dnet_stub_dnet_ntoa=no
29126fi
ac1cb8d3
VS
29127rm -f conftest.err conftest.$ac_objext \
29128 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
29129LIBS=$ac_check_lib_save_LIBS
29130fi
29131echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
29132echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
29133if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
29134 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
29135fi
29136
29137 fi
29138fi
ac1cb8d3
VS
29139rm -f conftest.err conftest.$ac_objext \
29140 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
29141 LIBS="$ac_xsave_LIBS"
29142
29143 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
29144 # to get the SysV transport functions.
29145 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
29146 # needs -lnsl.
29147 # The nsl library prevents programs from opening the X display
29148 # on Irix 5.2, according to T.E. Dickey.
29149 # The functions gethostbyname, getservbyname, and inet_addr are
29150 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
29151 echo "$as_me:$LINENO: checking for gethostbyname" >&5
29152echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
29153if test "${ac_cv_func_gethostbyname+set}" = set; then
29154 echo $ECHO_N "(cached) $ECHO_C" >&6
29155else
29156 cat >conftest.$ac_ext <<_ACEOF
29157/* confdefs.h. */
29158_ACEOF
29159cat confdefs.h >>conftest.$ac_ext
29160cat >>conftest.$ac_ext <<_ACEOF
29161/* end confdefs.h. */
ac1cb8d3
VS
29162/* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
29163 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29164#define gethostbyname innocuous_gethostbyname
29165
a848cd7e
SC
29166/* System header to define __stub macros and hopefully few prototypes,
29167 which can conflict with char gethostbyname (); below.
29168 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29169 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 29170
a848cd7e
SC
29171#ifdef __STDC__
29172# include <limits.h>
29173#else
29174# include <assert.h>
29175#endif
ac1cb8d3
VS
29176
29177#undef gethostbyname
29178
a848cd7e
SC
29179/* Override any gcc2 internal prototype to avoid an error. */
29180#ifdef __cplusplus
29181extern "C"
29182{
29183#endif
29184/* We use char because int might match the return type of a gcc2
29185 builtin and then its argument prototype would still apply. */
29186char gethostbyname ();
29187/* The GNU C library defines this for functions which it implements
29188 to always fail with ENOSYS. Some functions are actually named
29189 something starting with __ and the normal name is an alias. */
29190#if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
29191choke me
29192#else
29193char (*f) () = gethostbyname;
29194#endif
29195#ifdef __cplusplus
29196}
29197#endif
29198
29199int
29200main ()
29201{
29202return f != gethostbyname;
29203 ;
29204 return 0;
29205}
29206_ACEOF
29207rm -f conftest.$ac_objext conftest$ac_exeext
29208if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 29209 (eval $ac_link) 2>conftest.er1
a848cd7e 29210 ac_status=$?
ac1cb8d3
VS
29211 grep -v '^ *+' conftest.er1 >conftest.err
29212 rm -f conftest.er1
29213 cat conftest.err >&5
a848cd7e
SC
29214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29215 (exit $ac_status); } &&
c9a66001 29216 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
29217 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29218 (eval $ac_try) 2>&5
29219 ac_status=$?
29220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29221 (exit $ac_status); }; } &&
29222 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
29223 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29224 (eval $ac_try) 2>&5
29225 ac_status=$?
29226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29227 (exit $ac_status); }; }; then
29228 ac_cv_func_gethostbyname=yes
29229else
29230 echo "$as_me: failed program was:" >&5
29231sed 's/^/| /' conftest.$ac_ext >&5
29232
29233ac_cv_func_gethostbyname=no
29234fi
ac1cb8d3
VS
29235rm -f conftest.err conftest.$ac_objext \
29236 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
29237fi
29238echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
29239echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
29240
29241 if test $ac_cv_func_gethostbyname = no; then
29242 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
29243echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
29244if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
29245 echo $ECHO_N "(cached) $ECHO_C" >&6
29246else
29247 ac_check_lib_save_LIBS=$LIBS
29248LIBS="-lnsl $LIBS"
29249cat >conftest.$ac_ext <<_ACEOF
29250/* confdefs.h. */
29251_ACEOF
29252cat confdefs.h >>conftest.$ac_ext
29253cat >>conftest.$ac_ext <<_ACEOF
29254/* end confdefs.h. */
29255
29256/* Override any gcc2 internal prototype to avoid an error. */
29257#ifdef __cplusplus
29258extern "C"
29259#endif
29260/* We use char because int might match the return type of a gcc2
29261 builtin and then its argument prototype would still apply. */
29262char gethostbyname ();
29263int
29264main ()
29265{
29266gethostbyname ();
29267 ;
29268 return 0;
29269}
29270_ACEOF
29271rm -f conftest.$ac_objext conftest$ac_exeext
29272if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3
VS
29273 (eval $ac_link) 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); } &&
c9a66001 29280 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
29281 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29282 (eval $ac_try) 2>&5
29283 ac_status=$?
29284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29285 (exit $ac_status); }; } &&
29286 { ac_try='test -s conftest$ac_exeext'
29287 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29288 (eval $ac_try) 2>&5
29289 ac_status=$?
29290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29291 (exit $ac_status); }; }; then
29292 ac_cv_lib_nsl_gethostbyname=yes
29293else
29294 echo "$as_me: failed program was:" >&5
29295sed 's/^/| /' conftest.$ac_ext >&5
29296
29297ac_cv_lib_nsl_gethostbyname=no
29298fi
29299rm -f conftest.err conftest.$ac_objext \
29300 conftest$ac_exeext conftest.$ac_ext
29301LIBS=$ac_check_lib_save_LIBS
29302fi
29303echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
29304echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
29305if test $ac_cv_lib_nsl_gethostbyname = yes; then
29306 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
29307fi
29308
29309 if test $ac_cv_lib_nsl_gethostbyname = no; then
29310 echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
29311echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
29312if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
29313 echo $ECHO_N "(cached) $ECHO_C" >&6
29314else
29315 ac_check_lib_save_LIBS=$LIBS
29316LIBS="-lbsd $LIBS"
29317cat >conftest.$ac_ext <<_ACEOF
29318/* confdefs.h. */
29319_ACEOF
29320cat confdefs.h >>conftest.$ac_ext
29321cat >>conftest.$ac_ext <<_ACEOF
29322/* end confdefs.h. */
29323
29324/* Override any gcc2 internal prototype to avoid an error. */
29325#ifdef __cplusplus
29326extern "C"
29327#endif
29328/* We use char because int might match the return type of a gcc2
29329 builtin and then its argument prototype would still apply. */
29330char gethostbyname ();
29331int
29332main ()
29333{
29334gethostbyname ();
29335 ;
29336 return 0;
29337}
29338_ACEOF
29339rm -f conftest.$ac_objext conftest$ac_exeext
29340if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29341 (eval $ac_link) 2>conftest.er1
a848cd7e 29342 ac_status=$?
ac1cb8d3
VS
29343 grep -v '^ *+' conftest.er1 >conftest.err
29344 rm -f conftest.er1
29345 cat conftest.err >&5
a848cd7e
SC
29346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29347 (exit $ac_status); } &&
c9a66001 29348 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
a848cd7e
SC
29349 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29350 (eval $ac_try) 2>&5
29351 ac_status=$?
29352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
ac1cb8d3
VS
29353 (exit $ac_status); }; } &&
29354 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
29355 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29356 (eval $ac_try) 2>&5
29357 ac_status=$?
29358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29359 (exit $ac_status); }; }; then
29360 ac_cv_lib_bsd_gethostbyname=yes
29361else
29362 echo "$as_me: failed program was:" >&5
29363sed 's/^/| /' conftest.$ac_ext >&5
29364
29365ac_cv_lib_bsd_gethostbyname=no
29366fi
ac1cb8d3
VS
29367rm -f conftest.err conftest.$ac_objext \
29368 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
29369LIBS=$ac_check_lib_save_LIBS
29370fi
29371echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
29372echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
29373if test $ac_cv_lib_bsd_gethostbyname = yes; then
29374 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
29375fi
29376
29377 fi
29378 fi
29379
29380 # lieder@skyler.mavd.honeywell.com says without -lsocket,
29381 # socket/setsockopt and other routines are undefined under SCO ODT
29382 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
29383 # on later versions), says Simon Leinen: it contains gethostby*
29384 # variants that don't use the name server (or something). -lsocket
29385 # must be given before -lnsl if both are needed. We assume that
29386 # if connect needs -lnsl, so does gethostbyname.
29387 echo "$as_me:$LINENO: checking for connect" >&5
29388echo $ECHO_N "checking for connect... $ECHO_C" >&6
29389if test "${ac_cv_func_connect+set}" = set; then
29390 echo $ECHO_N "(cached) $ECHO_C" >&6
29391else
29392 cat >conftest.$ac_ext <<_ACEOF
29393/* confdefs.h. */
29394_ACEOF
29395cat confdefs.h >>conftest.$ac_ext
29396cat >>conftest.$ac_ext <<_ACEOF
29397/* end confdefs.h. */
ac1cb8d3
VS
29398/* Define connect to an innocuous variant, in case <limits.h> declares connect.
29399 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29400#define connect innocuous_connect
29401
a848cd7e
SC
29402/* System header to define __stub macros and hopefully few prototypes,
29403 which can conflict with char connect (); below.
29404 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29405 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 29406
a848cd7e
SC
29407#ifdef __STDC__
29408# include <limits.h>
29409#else
29410# include <assert.h>
29411#endif
ac1cb8d3
VS
29412
29413#undef connect
29414
a848cd7e
SC
29415/* Override any gcc2 internal prototype to avoid an error. */
29416#ifdef __cplusplus
29417extern "C"
29418{
29419#endif
29420/* We use char because int might match the return type of a gcc2
29421 builtin and then its argument prototype would still apply. */
29422char connect ();
29423/* The GNU C library defines this for functions which it implements
29424 to always fail with ENOSYS. Some functions are actually named
29425 something starting with __ and the normal name is an alias. */
29426#if defined (__stub_connect) || defined (__stub___connect)
29427choke me
29428#else
29429char (*f) () = connect;
29430#endif
29431#ifdef __cplusplus
29432}
29433#endif
29434
29435int
29436main ()
29437{
29438return f != connect;
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); } &&
c9a66001 29452 { ac_try='test -z "$ac_cxx_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_cv_func_connect=yes
29465else
29466 echo "$as_me: failed program was:" >&5
29467sed 's/^/| /' conftest.$ac_ext >&5
29468
29469ac_cv_func_connect=no
29470fi
ac1cb8d3
VS
29471rm -f conftest.err conftest.$ac_objext \
29472 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
29473fi
29474echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
29475echo "${ECHO_T}$ac_cv_func_connect" >&6
29476
29477 if test $ac_cv_func_connect = no; then
29478 echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
29479echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
29480if test "${ac_cv_lib_socket_connect+set}" = set; then
29481 echo $ECHO_N "(cached) $ECHO_C" >&6
29482else
29483 ac_check_lib_save_LIBS=$LIBS
29484LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
29485cat >conftest.$ac_ext <<_ACEOF
29486/* confdefs.h. */
29487_ACEOF
29488cat confdefs.h >>conftest.$ac_ext
29489cat >>conftest.$ac_ext <<_ACEOF
29490/* end confdefs.h. */
29491
29492/* Override any gcc2 internal prototype to avoid an error. */
29493#ifdef __cplusplus
29494extern "C"
29495#endif
29496/* We use char because int might match the return type of a gcc2
29497 builtin and then its argument prototype would still apply. */
29498char connect ();
29499int
29500main ()
29501{
29502connect ();
29503 ;
29504 return 0;
29505}
29506_ACEOF
29507rm -f conftest.$ac_objext conftest$ac_exeext
29508if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 29509 (eval $ac_link) 2>conftest.er1
a848cd7e 29510 ac_status=$?
ac1cb8d3
VS
29511 grep -v '^ *+' conftest.er1 >conftest.err
29512 rm -f conftest.er1
29513 cat conftest.err >&5
a848cd7e
SC
29514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29515 (exit $ac_status); } &&
c9a66001 29516 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
29517 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29518 (eval $ac_try) 2>&5
29519 ac_status=$?
29520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29521 (exit $ac_status); }; } &&
29522 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
29523 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29524 (eval $ac_try) 2>&5
29525 ac_status=$?
29526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29527 (exit $ac_status); }; }; then
29528 ac_cv_lib_socket_connect=yes
29529else
29530 echo "$as_me: failed program was:" >&5
29531sed 's/^/| /' conftest.$ac_ext >&5
29532
29533ac_cv_lib_socket_connect=no
29534fi
ac1cb8d3
VS
29535rm -f conftest.err conftest.$ac_objext \
29536 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
29537LIBS=$ac_check_lib_save_LIBS
29538fi
29539echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
29540echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
29541if test $ac_cv_lib_socket_connect = yes; then
29542 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
29543fi
29544
29545 fi
29546
29547 # Guillermo Gomez says -lposix is necessary on A/UX.
29548 echo "$as_me:$LINENO: checking for remove" >&5
29549echo $ECHO_N "checking for remove... $ECHO_C" >&6
29550if test "${ac_cv_func_remove+set}" = set; then
29551 echo $ECHO_N "(cached) $ECHO_C" >&6
29552else
29553 cat >conftest.$ac_ext <<_ACEOF
29554/* confdefs.h. */
29555_ACEOF
29556cat confdefs.h >>conftest.$ac_ext
29557cat >>conftest.$ac_ext <<_ACEOF
29558/* end confdefs.h. */
ac1cb8d3
VS
29559/* Define remove to an innocuous variant, in case <limits.h> declares remove.
29560 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29561#define remove innocuous_remove
29562
a848cd7e
SC
29563/* System header to define __stub macros and hopefully few prototypes,
29564 which can conflict with char remove (); below.
29565 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29566 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 29567
a848cd7e
SC
29568#ifdef __STDC__
29569# include <limits.h>
29570#else
29571# include <assert.h>
29572#endif
ac1cb8d3
VS
29573
29574#undef remove
29575
a848cd7e
SC
29576/* Override any gcc2 internal prototype to avoid an error. */
29577#ifdef __cplusplus
29578extern "C"
29579{
29580#endif
29581/* We use char because int might match the return type of a gcc2
29582 builtin and then its argument prototype would still apply. */
29583char remove ();
29584/* The GNU C library defines this for functions which it implements
29585 to always fail with ENOSYS. Some functions are actually named
29586 something starting with __ and the normal name is an alias. */
29587#if defined (__stub_remove) || defined (__stub___remove)
29588choke me
29589#else
29590char (*f) () = remove;
29591#endif
29592#ifdef __cplusplus
29593}
29594#endif
29595
29596int
29597main ()
29598{
29599return f != remove;
29600 ;
29601 return 0;
29602}
29603_ACEOF
29604rm -f conftest.$ac_objext conftest$ac_exeext
29605if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 29606 (eval $ac_link) 2>conftest.er1
a848cd7e 29607 ac_status=$?
ac1cb8d3
VS
29608 grep -v '^ *+' conftest.er1 >conftest.err
29609 rm -f conftest.er1
29610 cat conftest.err >&5
a848cd7e
SC
29611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29612 (exit $ac_status); } &&
c9a66001 29613 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
29614 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29615 (eval $ac_try) 2>&5
29616 ac_status=$?
29617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29618 (exit $ac_status); }; } &&
29619 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
29620 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29621 (eval $ac_try) 2>&5
29622 ac_status=$?
29623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29624 (exit $ac_status); }; }; then
29625 ac_cv_func_remove=yes
29626else
29627 echo "$as_me: failed program was:" >&5
29628sed 's/^/| /' conftest.$ac_ext >&5
29629
29630ac_cv_func_remove=no
29631fi
ac1cb8d3
VS
29632rm -f conftest.err conftest.$ac_objext \
29633 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
29634fi
29635echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
29636echo "${ECHO_T}$ac_cv_func_remove" >&6
29637
29638 if test $ac_cv_func_remove = no; then
29639 echo "$as_me:$LINENO: checking for remove in -lposix" >&5
29640echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
29641if test "${ac_cv_lib_posix_remove+set}" = set; then
29642 echo $ECHO_N "(cached) $ECHO_C" >&6
29643else
29644 ac_check_lib_save_LIBS=$LIBS
29645LIBS="-lposix $LIBS"
29646cat >conftest.$ac_ext <<_ACEOF
29647/* confdefs.h. */
29648_ACEOF
29649cat confdefs.h >>conftest.$ac_ext
29650cat >>conftest.$ac_ext <<_ACEOF
29651/* end confdefs.h. */
29652
29653/* Override any gcc2 internal prototype to avoid an error. */
29654#ifdef __cplusplus
29655extern "C"
29656#endif
29657/* We use char because int might match the return type of a gcc2
29658 builtin and then its argument prototype would still apply. */
29659char remove ();
29660int
29661main ()
29662{
29663remove ();
29664 ;
29665 return 0;
29666}
29667_ACEOF
29668rm -f conftest.$ac_objext conftest$ac_exeext
29669if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 29670 (eval $ac_link) 2>conftest.er1
a848cd7e 29671 ac_status=$?
ac1cb8d3
VS
29672 grep -v '^ *+' conftest.er1 >conftest.err
29673 rm -f conftest.er1
29674 cat conftest.err >&5
a848cd7e
SC
29675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29676 (exit $ac_status); } &&
c9a66001 29677 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
29678 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29679 (eval $ac_try) 2>&5
29680 ac_status=$?
29681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29682 (exit $ac_status); }; } &&
29683 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
29684 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29685 (eval $ac_try) 2>&5
29686 ac_status=$?
29687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29688 (exit $ac_status); }; }; then
29689 ac_cv_lib_posix_remove=yes
29690else
29691 echo "$as_me: failed program was:" >&5
29692sed 's/^/| /' conftest.$ac_ext >&5
29693
29694ac_cv_lib_posix_remove=no
29695fi
ac1cb8d3
VS
29696rm -f conftest.err conftest.$ac_objext \
29697 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
29698LIBS=$ac_check_lib_save_LIBS
29699fi
29700echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
29701echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
29702if test $ac_cv_lib_posix_remove = yes; then
29703 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
29704fi
29705
29706 fi
29707
29708 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
29709 echo "$as_me:$LINENO: checking for shmat" >&5
29710echo $ECHO_N "checking for shmat... $ECHO_C" >&6
29711if test "${ac_cv_func_shmat+set}" = set; then
29712 echo $ECHO_N "(cached) $ECHO_C" >&6
29713else
29714 cat >conftest.$ac_ext <<_ACEOF
29715/* confdefs.h. */
29716_ACEOF
29717cat confdefs.h >>conftest.$ac_ext
29718cat >>conftest.$ac_ext <<_ACEOF
29719/* end confdefs.h. */
ac1cb8d3
VS
29720/* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
29721 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29722#define shmat innocuous_shmat
29723
a848cd7e
SC
29724/* System header to define __stub macros and hopefully few prototypes,
29725 which can conflict with char shmat (); below.
29726 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29727 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 29728
a848cd7e
SC
29729#ifdef __STDC__
29730# include <limits.h>
29731#else
29732# include <assert.h>
29733#endif
ac1cb8d3
VS
29734
29735#undef shmat
29736
a848cd7e
SC
29737/* Override any gcc2 internal prototype to avoid an error. */
29738#ifdef __cplusplus
29739extern "C"
29740{
29741#endif
29742/* We use char because int might match the return type of a gcc2
29743 builtin and then its argument prototype would still apply. */
29744char shmat ();
29745/* The GNU C library defines this for functions which it implements
29746 to always fail with ENOSYS. Some functions are actually named
29747 something starting with __ and the normal name is an alias. */
29748#if defined (__stub_shmat) || defined (__stub___shmat)
29749choke me
29750#else
29751char (*f) () = shmat;
29752#endif
29753#ifdef __cplusplus
29754}
29755#endif
29756
29757int
29758main ()
29759{
29760return f != shmat;
29761 ;
29762 return 0;
29763}
29764_ACEOF
29765rm -f conftest.$ac_objext conftest$ac_exeext
29766if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 29767 (eval $ac_link) 2>conftest.er1
a848cd7e 29768 ac_status=$?
ac1cb8d3
VS
29769 grep -v '^ *+' conftest.er1 >conftest.err
29770 rm -f conftest.er1
29771 cat conftest.err >&5
a848cd7e
SC
29772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29773 (exit $ac_status); } &&
c9a66001 29774 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
29775 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29776 (eval $ac_try) 2>&5
29777 ac_status=$?
29778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29779 (exit $ac_status); }; } &&
29780 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
29781 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29782 (eval $ac_try) 2>&5
29783 ac_status=$?
29784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29785 (exit $ac_status); }; }; then
29786 ac_cv_func_shmat=yes
29787else
29788 echo "$as_me: failed program was:" >&5
29789sed 's/^/| /' conftest.$ac_ext >&5
29790
29791ac_cv_func_shmat=no
29792fi
ac1cb8d3
VS
29793rm -f conftest.err conftest.$ac_objext \
29794 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
29795fi
29796echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
29797echo "${ECHO_T}$ac_cv_func_shmat" >&6
29798
29799 if test $ac_cv_func_shmat = no; then
29800 echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
29801echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
29802if test "${ac_cv_lib_ipc_shmat+set}" = set; then
29803 echo $ECHO_N "(cached) $ECHO_C" >&6
29804else
29805 ac_check_lib_save_LIBS=$LIBS
29806LIBS="-lipc $LIBS"
29807cat >conftest.$ac_ext <<_ACEOF
29808/* confdefs.h. */
29809_ACEOF
29810cat confdefs.h >>conftest.$ac_ext
29811cat >>conftest.$ac_ext <<_ACEOF
29812/* end confdefs.h. */
29813
29814/* Override any gcc2 internal prototype to avoid an error. */
29815#ifdef __cplusplus
29816extern "C"
29817#endif
29818/* We use char because int might match the return type of a gcc2
29819 builtin and then its argument prototype would still apply. */
29820char shmat ();
29821int
29822main ()
29823{
29824shmat ();
29825 ;
29826 return 0;
29827}
29828_ACEOF
29829rm -f conftest.$ac_objext conftest$ac_exeext
29830if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 29831 (eval $ac_link) 2>conftest.er1
a848cd7e 29832 ac_status=$?
ac1cb8d3
VS
29833 grep -v '^ *+' conftest.er1 >conftest.err
29834 rm -f conftest.er1
29835 cat conftest.err >&5
a848cd7e
SC
29836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29837 (exit $ac_status); } &&
c9a66001 29838 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
29839 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29840 (eval $ac_try) 2>&5
29841 ac_status=$?
29842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29843 (exit $ac_status); }; } &&
29844 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
29845 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29846 (eval $ac_try) 2>&5
29847 ac_status=$?
29848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29849 (exit $ac_status); }; }; then
29850 ac_cv_lib_ipc_shmat=yes
29851else
29852 echo "$as_me: failed program was:" >&5
29853sed 's/^/| /' conftest.$ac_ext >&5
29854
29855ac_cv_lib_ipc_shmat=no
29856fi
ac1cb8d3
VS
29857rm -f conftest.err conftest.$ac_objext \
29858 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
29859LIBS=$ac_check_lib_save_LIBS
29860fi
29861echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
29862echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
29863if test $ac_cv_lib_ipc_shmat = yes; then
29864 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
29865fi
29866
29867 fi
29868 fi
29869
29870 # Check for libraries that X11R6 Xt/Xaw programs need.
29871 ac_save_LDFLAGS=$LDFLAGS
29872 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
29873 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
29874 # check for ICE first), but we must link in the order -lSM -lICE or
29875 # we get undefined symbols. So assume we have SM if we have ICE.
29876 # These have to be linked with before -lX11, unlike the other
29877 # libraries we check for below, so use a different variable.
29878 # John Interrante, Karl Berry
29879 echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
29880echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
29881if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
29882 echo $ECHO_N "(cached) $ECHO_C" >&6
29883else
29884 ac_check_lib_save_LIBS=$LIBS
29885LIBS="-lICE $X_EXTRA_LIBS $LIBS"
29886cat >conftest.$ac_ext <<_ACEOF
29887/* confdefs.h. */
29888_ACEOF
29889cat confdefs.h >>conftest.$ac_ext
29890cat >>conftest.$ac_ext <<_ACEOF
29891/* end confdefs.h. */
29892
29893/* Override any gcc2 internal prototype to avoid an error. */
29894#ifdef __cplusplus
29895extern "C"
29896#endif
29897/* We use char because int might match the return type of a gcc2
29898 builtin and then its argument prototype would still apply. */
29899char IceConnectionNumber ();
29900int
29901main ()
29902{
29903IceConnectionNumber ();
29904 ;
29905 return 0;
29906}
29907_ACEOF
29908rm -f conftest.$ac_objext conftest$ac_exeext
29909if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 29910 (eval $ac_link) 2>conftest.er1
a848cd7e 29911 ac_status=$?
ac1cb8d3
VS
29912 grep -v '^ *+' conftest.er1 >conftest.err
29913 rm -f conftest.er1
29914 cat conftest.err >&5
a848cd7e
SC
29915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29916 (exit $ac_status); } &&
c9a66001 29917 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
29918 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29919 (eval $ac_try) 2>&5
29920 ac_status=$?
29921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29922 (exit $ac_status); }; } &&
29923 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
29924 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29925 (eval $ac_try) 2>&5
29926 ac_status=$?
29927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29928 (exit $ac_status); }; }; then
29929 ac_cv_lib_ICE_IceConnectionNumber=yes
29930else
29931 echo "$as_me: failed program was:" >&5
29932sed 's/^/| /' conftest.$ac_ext >&5
29933
29934ac_cv_lib_ICE_IceConnectionNumber=no
29935fi
ac1cb8d3
VS
29936rm -f conftest.err conftest.$ac_objext \
29937 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
29938LIBS=$ac_check_lib_save_LIBS
29939fi
29940echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
29941echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
29942if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
29943 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
29944fi
29945
29946 LDFLAGS=$ac_save_LDFLAGS
29947
29948fi
29949
29950
29951 if test "$no_x" = "yes"; then
89d90d6d
VZ
29952 { { echo "$as_me:$LINENO: error: X11 not found, please use --x-includes and/or --x-libraries options (see config.log for details)" >&5
29953echo "$as_me: error: X11 not found, please use --x-includes and/or --x-libraries options (see config.log for details)" >&2;}
29954 { (exit 1); exit 1; }; }
a848cd7e
SC
29955 fi
29956
74b84332
VS
29957 GUI_TK_LIBRARY=`echo $X_LIBS | sed 's/ -LNONE//' | sed 's/ -RNONE//'`
29958 TOOLKIT_INCLUDE=`echo $X_CFLAGS | sed 's/ -INONE//'`
a848cd7e
SC
29959 AFMINSTALL=afminstall
29960 COMPILED_X_PROGRAM=0
29961
74b84332
VS
29962 fi
29963
29964 if test "$wxUSE_X11" = 1; then
a848cd7e
SC
29965 if test "$wxUSE_NANOX" = "yes"; then
29966 echo "$as_me:$LINENO: checking for MicroWindows/NanoX distribution" >&5
29967echo $ECHO_N "checking for MicroWindows/NanoX distribution... $ECHO_C" >&6
29968 if test "x$MICROWIN" = x ; then
29969 echo "$as_me:$LINENO: result: not found" >&5
29970echo "${ECHO_T}not found" >&6
29971 { { echo "$as_me:$LINENO: error: Cannot find MicroWindows library. Make sure MICROWIN is set." >&5
29972echo "$as_me: error: Cannot find MicroWindows library. Make sure MICROWIN is set." >&2;}
29973 { (exit 1); exit 1; }; }
29974 else
29975 echo "$as_me:$LINENO: result: $MICROWIN" >&5
29976echo "${ECHO_T}$MICROWIN" >&6
29977 cat >>confdefs.h <<\_ACEOF
29978#define wxUSE_NANOX 1
29979_ACEOF
29980
29981 fi
29982 fi
29983
29984 if test "$wxUSE_UNICODE" = "yes"; then
29985
29986 succeeded=no
29987
29988 if test -z "$PKG_CONFIG"; then
29989 # Extract the first word of "pkg-config", so it can be a program name with args.
29990set dummy pkg-config; ac_word=$2
29991echo "$as_me:$LINENO: checking for $ac_word" >&5
29992echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
29993if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
29994 echo $ECHO_N "(cached) $ECHO_C" >&6
29995else
29996 case $PKG_CONFIG in
29997 [\\/]* | ?:[\\/]*)
29998 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
29999 ;;
30000 *)
30001 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30002for as_dir in $PATH
30003do
30004 IFS=$as_save_IFS
30005 test -z "$as_dir" && as_dir=.
30006 for ac_exec_ext in '' $ac_executable_extensions; do
30007 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
30008 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
30009 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
30010 break 2
30011 fi
30012done
30013done
30014
30015 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
30016 ;;
30017esac
30018fi
30019PKG_CONFIG=$ac_cv_path_PKG_CONFIG
30020
30021if test -n "$PKG_CONFIG"; then
30022 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
30023echo "${ECHO_T}$PKG_CONFIG" >&6
30024else
30025 echo "$as_me:$LINENO: result: no" >&5
30026echo "${ECHO_T}no" >&6
30027fi
30028
30029 fi
30030
30031 if test "$PKG_CONFIG" = "no" ; then
30032 echo "*** The pkg-config script could not be found. Make sure it is"
30033 echo "*** in your path, or set the PKG_CONFIG environment variable"
30034 echo "*** to the full path to pkg-config."
30035 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
30036 else
30037 PKG_CONFIG_MIN_VERSION=0.9.0
30038 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
30039 echo "$as_me:$LINENO: checking for pangox" >&5
30040echo $ECHO_N "checking for pangox... $ECHO_C" >&6
30041
30042 if $PKG_CONFIG --exists "pangox" ; then
30043 echo "$as_me:$LINENO: result: yes" >&5
30044echo "${ECHO_T}yes" >&6
30045 succeeded=yes
30046
30047 echo "$as_me:$LINENO: checking PANGOX_CFLAGS" >&5
30048echo $ECHO_N "checking PANGOX_CFLAGS... $ECHO_C" >&6
30049 PANGOX_CFLAGS=`$PKG_CONFIG --cflags "pangox"`
30050 echo "$as_me:$LINENO: result: $PANGOX_CFLAGS" >&5
30051echo "${ECHO_T}$PANGOX_CFLAGS" >&6
30052
30053 echo "$as_me:$LINENO: checking PANGOX_LIBS" >&5
30054echo $ECHO_N "checking PANGOX_LIBS... $ECHO_C" >&6
30055 PANGOX_LIBS=`$PKG_CONFIG --libs "pangox"`
30056 echo "$as_me:$LINENO: result: $PANGOX_LIBS" >&5
30057echo "${ECHO_T}$PANGOX_LIBS" >&6
30058 else
30059 PANGOX_CFLAGS=""
30060 PANGOX_LIBS=""
30061 ## If we have a custom action on failure, don't print errors, but
30062 ## do set a variable so people can do so.
30063 PANGOX_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangox"`
30064
30065 fi
30066
30067
30068
30069 else
30070 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
30071 echo "*** See http://www.freedesktop.org/software/pkgconfig"
30072 fi
30073 fi
30074
30075 if test $succeeded = yes; then
30076
c92ad099 30077 CXXFLAGS="$PANGOX_CFLAGS $CXXFLAGS"
a848cd7e
SC
30078 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOX_LIBS"
30079
30080 else
30081
30082 { { echo "$as_me:$LINENO: error: pangox library not found, library cannot be compiled in Unicode mode" >&5
30083echo "$as_me: error: pangox library not found, library cannot be compiled in Unicode mode" >&2;}
30084 { (exit 1); exit 1; }; }
30085
30086
30087 fi
30088
30089
30090 succeeded=no
30091
30092 if test -z "$PKG_CONFIG"; then
30093 # Extract the first word of "pkg-config", so it can be a program name with args.
30094set dummy pkg-config; ac_word=$2
30095echo "$as_me:$LINENO: checking for $ac_word" >&5
30096echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
30097if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
30098 echo $ECHO_N "(cached) $ECHO_C" >&6
30099else
30100 case $PKG_CONFIG in
30101 [\\/]* | ?:[\\/]*)
30102 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
30103 ;;
30104 *)
30105 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30106for as_dir in $PATH
30107do
30108 IFS=$as_save_IFS
30109 test -z "$as_dir" && as_dir=.
30110 for ac_exec_ext in '' $ac_executable_extensions; do
30111 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
30112 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
30113 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
30114 break 2
30115 fi
30116done
30117done
30118
30119 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
30120 ;;
30121esac
30122fi
30123PKG_CONFIG=$ac_cv_path_PKG_CONFIG
30124
30125if test -n "$PKG_CONFIG"; then
30126 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
30127echo "${ECHO_T}$PKG_CONFIG" >&6
30128else
30129 echo "$as_me:$LINENO: result: no" >&5
30130echo "${ECHO_T}no" >&6
30131fi
30132
30133 fi
30134
30135 if test "$PKG_CONFIG" = "no" ; then
30136 echo "*** The pkg-config script could not be found. Make sure it is"
30137 echo "*** in your path, or set the PKG_CONFIG environment variable"
30138 echo "*** to the full path to pkg-config."
30139 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
30140 else
30141 PKG_CONFIG_MIN_VERSION=0.9.0
30142 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
30143 echo "$as_me:$LINENO: checking for pangoft2" >&5
30144echo $ECHO_N "checking for pangoft2... $ECHO_C" >&6
30145
30146 if $PKG_CONFIG --exists "pangoft2" ; then
30147 echo "$as_me:$LINENO: result: yes" >&5
30148echo "${ECHO_T}yes" >&6
30149 succeeded=yes
30150
30151 echo "$as_me:$LINENO: checking PANGOFT2_CFLAGS" >&5
30152echo $ECHO_N "checking PANGOFT2_CFLAGS... $ECHO_C" >&6
30153 PANGOFT2_CFLAGS=`$PKG_CONFIG --cflags "pangoft2"`
30154 echo "$as_me:$LINENO: result: $PANGOFT2_CFLAGS" >&5
30155echo "${ECHO_T}$PANGOFT2_CFLAGS" >&6
30156
30157 echo "$as_me:$LINENO: checking PANGOFT2_LIBS" >&5
30158echo $ECHO_N "checking PANGOFT2_LIBS... $ECHO_C" >&6
30159 PANGOFT2_LIBS=`$PKG_CONFIG --libs "pangoft2"`
30160 echo "$as_me:$LINENO: result: $PANGOFT2_LIBS" >&5
30161echo "${ECHO_T}$PANGOFT2_LIBS" >&6
30162 else
30163 PANGOFT2_CFLAGS=""
30164 PANGOFT2_LIBS=""
30165 ## If we have a custom action on failure, don't print errors, but
30166 ## do set a variable so people can do so.
30167 PANGOFT2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoft2"`
30168
30169 fi
30170
30171
30172
30173 else
30174 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
30175 echo "*** See http://www.freedesktop.org/software/pkgconfig"
30176 fi
30177 fi
30178
30179 if test $succeeded = yes; then
30180
c92ad099 30181 CXXFLAGS="$PANGOFT2_CFLAGS $CXXFLAGS"
a848cd7e
SC
30182 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOFT2_LIBS"
30183
30184 else
30185
30186 { echo "$as_me:$LINENO: WARNING: pangoft2 library not found, library will be compiled without printing support" >&5
30187echo "$as_me: WARNING: pangoft2 library not found, library will be compiled without printing support" >&2;}
30188 wxUSE_PRINTING_ARCHITECTURE="no"
30189
30190
30191 fi
30192
30193
30194 succeeded=no
30195
30196 if test -z "$PKG_CONFIG"; then
30197 # Extract the first word of "pkg-config", so it can be a program name with args.
30198set dummy pkg-config; ac_word=$2
30199echo "$as_me:$LINENO: checking for $ac_word" >&5
30200echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
30201if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
30202 echo $ECHO_N "(cached) $ECHO_C" >&6
30203else
30204 case $PKG_CONFIG in
30205 [\\/]* | ?:[\\/]*)
30206 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
30207 ;;
30208 *)
30209 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30210for as_dir in $PATH
30211do
30212 IFS=$as_save_IFS
30213 test -z "$as_dir" && as_dir=.
30214 for ac_exec_ext in '' $ac_executable_extensions; do
30215 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
30216 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
30217 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
30218 break 2
30219 fi
30220done
30221done
30222
30223 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
30224 ;;
30225esac
30226fi
30227PKG_CONFIG=$ac_cv_path_PKG_CONFIG
30228
30229if test -n "$PKG_CONFIG"; then
30230 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
30231echo "${ECHO_T}$PKG_CONFIG" >&6
30232else
30233 echo "$as_me:$LINENO: result: no" >&5
30234echo "${ECHO_T}no" >&6
30235fi
30236
30237 fi
30238
30239 if test "$PKG_CONFIG" = "no" ; then
30240 echo "*** The pkg-config script could not be found. Make sure it is"
30241 echo "*** in your path, or set the PKG_CONFIG environment variable"
30242 echo "*** to the full path to pkg-config."
30243 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
30244 else
30245 PKG_CONFIG_MIN_VERSION=0.9.0
30246 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
30247 echo "$as_me:$LINENO: checking for pangoxft" >&5
30248echo $ECHO_N "checking for pangoxft... $ECHO_C" >&6
30249
30250 if $PKG_CONFIG --exists "pangoxft" ; then
30251 echo "$as_me:$LINENO: result: yes" >&5
30252echo "${ECHO_T}yes" >&6
30253 succeeded=yes
30254
30255 echo "$as_me:$LINENO: checking PANGOXFT_CFLAGS" >&5
30256echo $ECHO_N "checking PANGOXFT_CFLAGS... $ECHO_C" >&6
30257 PANGOXFT_CFLAGS=`$PKG_CONFIG --cflags "pangoxft"`
30258 echo "$as_me:$LINENO: result: $PANGOXFT_CFLAGS" >&5
30259echo "${ECHO_T}$PANGOXFT_CFLAGS" >&6
30260
30261 echo "$as_me:$LINENO: checking PANGOXFT_LIBS" >&5
30262echo $ECHO_N "checking PANGOXFT_LIBS... $ECHO_C" >&6
30263 PANGOXFT_LIBS=`$PKG_CONFIG --libs "pangoxft"`
30264 echo "$as_me:$LINENO: result: $PANGOXFT_LIBS" >&5
30265echo "${ECHO_T}$PANGOXFT_LIBS" >&6
30266 else
30267 PANGOXFT_CFLAGS=""
30268 PANGOXFT_LIBS=""
30269 ## If we have a custom action on failure, don't print errors, but
30270 ## do set a variable so people can do so.
30271 PANGOXFT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoxft"`
30272
30273 fi
30274
30275
30276
30277 else
30278 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
30279 echo "*** See http://www.freedesktop.org/software/pkgconfig"
30280 fi
30281 fi
30282
30283 if test $succeeded = yes; then
30284
4ae1af05
MB
30285 cat >>confdefs.h <<\_ACEOF
30286#define HAVE_PANGO_XFT 1
30287_ACEOF
30288
c92ad099 30289 CXXFLAGS="$PANGOXFT_CFLAGS $CXXFLAGS"
a848cd7e
SC
30290 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOXFT_LIBS"
30291
30292 else
30293
30294 { echo "$as_me:$LINENO: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&5
30295echo "$as_me: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&2;}
30296
30297
30298 fi
30299
e56f4f9e 30300 save_CXXFLAGS="$CXXFLAGS"
304205f1 30301 save_LIBS="$LIBS"
e56f4f9e 30302 CXXFLAGS="$PANGOX_CFLAGS $CXXFLAGS"
304205f1
VS
30303 LIBS="$LIBS $PANGOX_LIBS"
30304
30305for ac_func in pango_font_family_is_monospace
30306do
30307as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30308echo "$as_me:$LINENO: checking for $ac_func" >&5
30309echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
30310if eval "test \"\${$as_ac_var+set}\" = set"; then
30311 echo $ECHO_N "(cached) $ECHO_C" >&6
30312else
30313 cat >conftest.$ac_ext <<_ACEOF
30314/* confdefs.h. */
30315_ACEOF
30316cat confdefs.h >>conftest.$ac_ext
30317cat >>conftest.$ac_ext <<_ACEOF
30318/* end confdefs.h. */
30319/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30320 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30321#define $ac_func innocuous_$ac_func
30322
30323/* System header to define __stub macros and hopefully few prototypes,
30324 which can conflict with char $ac_func (); below.
30325 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30326 <limits.h> exists even on freestanding compilers. */
30327
30328#ifdef __STDC__
30329# include <limits.h>
30330#else
30331# include <assert.h>
30332#endif
30333
30334#undef $ac_func
30335
30336/* Override any gcc2 internal prototype to avoid an error. */
30337#ifdef __cplusplus
30338extern "C"
30339{
30340#endif
30341/* We use char because int might match the return type of a gcc2
30342 builtin and then its argument prototype would still apply. */
30343char $ac_func ();
30344/* The GNU C library defines this for functions which it implements
30345 to always fail with ENOSYS. Some functions are actually named
30346 something starting with __ and the normal name is an alias. */
30347#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
30348choke me
30349#else
30350char (*f) () = $ac_func;
30351#endif
30352#ifdef __cplusplus
30353}
30354#endif
30355
30356int
30357main ()
30358{
30359return f != $ac_func;
30360 ;
30361 return 0;
30362}
30363_ACEOF
30364rm -f conftest.$ac_objext conftest$ac_exeext
30365if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30366 (eval $ac_link) 2>conftest.er1
30367 ac_status=$?
30368 grep -v '^ *+' conftest.er1 >conftest.err
30369 rm -f conftest.er1
30370 cat conftest.err >&5
30371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30372 (exit $ac_status); } &&
c9a66001 30373 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
304205f1
VS
30374 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30375 (eval $ac_try) 2>&5
30376 ac_status=$?
30377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30378 (exit $ac_status); }; } &&
30379 { ac_try='test -s conftest$ac_exeext'
30380 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30381 (eval $ac_try) 2>&5
30382 ac_status=$?
30383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30384 (exit $ac_status); }; }; then
30385 eval "$as_ac_var=yes"
30386else
30387 echo "$as_me: failed program was:" >&5
30388sed 's/^/| /' conftest.$ac_ext >&5
30389
30390eval "$as_ac_var=no"
30391fi
30392rm -f conftest.err conftest.$ac_objext \
30393 conftest$ac_exeext conftest.$ac_ext
30394fi
30395echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
30396echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
30397if test `eval echo '${'$as_ac_var'}'` = yes; then
30398 cat >>confdefs.h <<_ACEOF
30399#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30400_ACEOF
30401
30402fi
30403done
30404
e56f4f9e 30405 CXXFLAGS="$save_CXXFLAGS"
304205f1 30406 LIBS="$save_LIBS"
a848cd7e
SC
30407 fi
30408
30409 wxUSE_UNIVERSAL="yes"
30410
30411 if test "$wxUSE_NANOX" = "yes"; then
30412 TOOLKIT_INCLUDE="-I\$(top_srcdir)/include/wx/x11/nanox -I\$(MICROWIN)/src/include $TOOLKIT_INCLUDE"
30413 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"
30414 GUI_TK_LIBRARY="$GUI_TK_LIBRARY \$(MICROWIN)/src/lib/libnano-X.a"
30415 else
30416 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lX11"
30417 fi
30418
a848cd7e
SC
30419 TOOLKIT=X11
30420 GUIDIST=X11_DIST
30421 fi
30422
30423 if test "$wxUSE_MOTIF" = 1; then
0a08f02a
MB
30424 if test "$wxUSE_UNICODE" = "yes"; then
30425 { { echo "$as_me:$LINENO: error: Unicode configuration not supported with Motif" >&5
30426echo "$as_me: error: Unicode configuration not supported with Motif" >&2;}
30427 { (exit 1); exit 1; }; }
30428 fi
30429
74b84332
VS
30430 echo "$as_me:$LINENO: checking for Motif/Lesstif headers" >&5
30431echo $ECHO_N "checking for Motif/Lesstif headers... $ECHO_C" >&6
a848cd7e 30432
74b84332
VS
30433ac_find_includes=
30434for ac_dir in $SEARCH_INCLUDE /usr/include;
30435 do
30436 if test -f "$ac_dir/Xm/Xm.h"; then
30437 ac_find_includes=$ac_dir
30438 break
30439 fi
30440 done
a848cd7e 30441
74b84332
VS
30442 if test "$ac_find_includes" != "" ; then
30443 echo "$as_me:$LINENO: result: found in $ac_find_includes" >&5
30444echo "${ECHO_T}found in $ac_find_includes" >&6
30445
30446 if test "x$ac_find_includes" = "x/usr/include"; then
30447 ac_path_to_include=""
30448 else
30449 echo "$TOOLKIT_INCLUDE" | grep "\-I$ac_find_includes" > /dev/null
30450 result=$?
30451 if test $result = 0; then
30452 ac_path_to_include=""
30453 else
30454 ac_path_to_include=" -I$ac_find_includes"
30455 fi
a848cd7e
SC
30456 fi
30457
74b84332
VS
30458 TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE$ac_path_to_include"
30459 else
e56f4f9e
VZ
30460 save_CXXFLAGS=$CXXFLAGS
30461 CXXFLAGS="$TOOLKIT_INCLUDE $CXXFLAGS"
e051b34e 30462
74b84332 30463 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
30464/* confdefs.h. */
30465_ACEOF
30466cat confdefs.h >>conftest.$ac_ext
30467cat >>conftest.$ac_ext <<_ACEOF
30468/* end confdefs.h. */
30469
74b84332
VS
30470 #include <Xm/Xm.h>
30471
a848cd7e
SC
30472int
30473main ()
30474{
30475
74b84332
VS
30476 int version;
30477 version = xmUseVersion;
30478
a848cd7e
SC
30479 ;
30480 return 0;
30481}
30482_ACEOF
74b84332
VS
30483rm -f conftest.$ac_objext
30484if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30485 (eval $ac_compile) 2>conftest.er1
a848cd7e 30486 ac_status=$?
ac1cb8d3
VS
30487 grep -v '^ *+' conftest.er1 >conftest.err
30488 rm -f conftest.er1
30489 cat conftest.err >&5
a848cd7e
SC
30490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30491 (exit $ac_status); } &&
c9a66001 30492 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
30493 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30494 (eval $ac_try) 2>&5
30495 ac_status=$?
30496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30497 (exit $ac_status); }; } &&
74b84332 30498 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
30499 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30500 (eval $ac_try) 2>&5
30501 ac_status=$?
30502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30503 (exit $ac_status); }; }; then
74b84332
VS
30504
30505 echo "$as_me:$LINENO: result: found in default search path" >&5
30506echo "${ECHO_T}found in default search path" >&6
30507 COMPILED_X_PROGRAM=1
30508
a848cd7e
SC
30509else
30510 echo "$as_me: failed program was:" >&5
30511sed 's/^/| /' conftest.$ac_ext >&5
30512
a848cd7e 30513
74b84332
VS
30514 echo "$as_me:$LINENO: result: no" >&5
30515echo "${ECHO_T}no" >&6
e051b34e
MW
30516 { { echo "$as_me:$LINENO: error: please set CPPFLAGS to contain the location of Xm/Xm.h" >&5
30517echo "$as_me: error: please set CPPFLAGS to contain the location of Xm/Xm.h" >&2;}
74b84332 30518 { (exit 1); exit 1; }; }
a848cd7e 30519
a848cd7e 30520
a848cd7e 30521fi
74b84332 30522rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e051b34e 30523
e56f4f9e 30524 CXXFLAGS=$save_CXXFLAGS
74b84332
VS
30525 fi
30526
0ad5d837
VZ
30527
30528 echo "$as_me:$LINENO: checking for Motif/Lesstif library" >&5
74b84332
VS
30529echo $ECHO_N "checking for Motif/Lesstif library... $ECHO_C" >&6
30530
0ad5d837
VZ
30531 ac_find_libraries=
30532 for ac_dir in $SEARCH_LIB;
74b84332 30533 do
3eca31dc 30534 for ac_extension in a so sl dylib dll.a; do
74b84332
VS
30535 if test -f "$ac_dir/libXm.$ac_extension"; then
30536 ac_find_libraries=$ac_dir
30537 break 2
a848cd7e 30538 fi
74b84332
VS
30539 done
30540 done
a848cd7e 30541
0ad5d837
VZ
30542
30543 if test "x$ac_find_libraries" != "x" ; then
30544 echo "$as_me:$LINENO: result: found in $ac_find_libraries" >&5
30545echo "${ECHO_T}found in $ac_find_libraries" >&6
a848cd7e 30546
74b84332 30547
0ad5d837 30548 if test "$ac_find_libraries" = "default location"; then
74b84332 30549 ac_path_to_link=""
a848cd7e 30550 else
0ad5d837
VZ
30551 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
30552 result=$?
30553 if test $result = 0; then
30554 ac_path_to_link=""
30555 else
30556 ac_path_to_link=" -L$ac_find_libraries"
30557 fi
74b84332
VS
30558 fi
30559
0ad5d837
VZ
30560 GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
30561 else
e56f4f9e
VZ
30562 save_CXXFLAGS=$CXXFLAGS
30563 CXXFLAGS="$TOOLKIT_INCLUDE $CXXFLAGS"
6f9cf1e6
MW
30564 save_LIBS="$LIBS"
30565 LIBS="$GUI_TK_LIBRARY -lXm -lXmu -lXext -lX11"
74b84332 30566
0ad5d837 30567 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
30568/* confdefs.h. */
30569_ACEOF
30570cat confdefs.h >>conftest.$ac_ext
30571cat >>conftest.$ac_ext <<_ACEOF
30572/* end confdefs.h. */
30573
0ad5d837 30574 #include <Xm/Xm.h>
74b84332 30575
a848cd7e
SC
30576int
30577main ()
30578{
74b84332 30579
0ad5d837
VZ
30580 int version;
30581 version = xmUseVersion;
74b84332 30582
a848cd7e
SC
30583 ;
30584 return 0;
30585}
30586_ACEOF
0ad5d837
VZ
30587rm -f conftest.$ac_objext conftest$ac_exeext
30588if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30589 (eval $ac_link) 2>conftest.er1
a848cd7e 30590 ac_status=$?
ac1cb8d3
VS
30591 grep -v '^ *+' conftest.er1 >conftest.err
30592 rm -f conftest.er1
30593 cat conftest.err >&5
a848cd7e
SC
30594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30595 (exit $ac_status); } &&
c9a66001 30596 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
30597 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30598 (eval $ac_try) 2>&5
30599 ac_status=$?
30600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30601 (exit $ac_status); }; } &&
0ad5d837 30602 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
30603 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30604 (eval $ac_try) 2>&5
30605 ac_status=$?
30606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30607 (exit $ac_status); }; }; then
74b84332 30608
0ad5d837 30609 echo "$as_me:$LINENO: result: found in default search path" >&5
74b84332 30610echo "${ECHO_T}found in default search path" >&6
0ad5d837 30611 COMPILED_X_PROGRAM=1
74b84332 30612
a848cd7e
SC
30613else
30614 echo "$as_me: failed program was:" >&5
30615sed 's/^/| /' conftest.$ac_ext >&5
30616
74b84332 30617
6f9cf1e6 30618 echo "$as_me:$LINENO: result: no" >&5
74b84332 30619echo "${ECHO_T}no" >&6
6f9cf1e6 30620 { { echo "$as_me:$LINENO: error: please set LDFLAGS to contain the location of libXm" >&5
74b84332
VS
30621echo "$as_me: error: please set LDFLAGS to contain the location of libXm" >&2;}
30622 { (exit 1); exit 1; }; }
30623
30624
30625fi
0ad5d837
VZ
30626rm -f conftest.err conftest.$ac_objext \
30627 conftest$ac_exeext conftest.$ac_ext
74b84332 30628
e56f4f9e 30629 CXXFLAGS=$save_CXXFLAGS
6f9cf1e6 30630 LIBS="$save_LIBS"
74b84332
VS
30631 fi
30632
30633 echo "$as_me:$LINENO: checking if we need -lXp and/or -lSM -lICE" >&5
30634echo $ECHO_N "checking if we need -lXp and/or -lSM -lICE... $ECHO_C" >&6
30635 libp_link=""
30636 libsm_ice_link=""
30637 libs_found=0
30638 for libp in "" " -lXp"; do
30639 if test "$libs_found" = "0"; then
30640 for libsm_ice in "" " -lSM -lICE"; do
30641 if test "$libs_found" = "0"; then
30642 save_LIBS="$LIBS"
30643 LIBS="$GUI_TK_LIBRARY -lXm ${libp} -lXmu -lXext -lXt${libsm_ice} -lX11"
e56f4f9e
VZ
30644 save_CXXFLAGS=$CXXFLAGS
30645 CXXFLAGS="$TOOLKIT_INCLUDE $CXXFLAGS"
74b84332
VS
30646
30647 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
30648/* confdefs.h. */
30649_ACEOF
30650cat confdefs.h >>conftest.$ac_ext
30651cat >>conftest.$ac_ext <<_ACEOF
30652/* end confdefs.h. */
30653
74b84332
VS
30654 #include <Xm/Xm.h>
30655 #include <Xm/List.h>
30656
a848cd7e
SC
30657int
30658main ()
30659{
74b84332
VS
30660
30661 XmString string = NULL;
30662 Widget w = NULL;
30663 int position = 0;
30664 XmListAddItem(w, string, position);
30665
a848cd7e
SC
30666 ;
30667 return 0;
30668}
30669_ACEOF
30670rm -f conftest.$ac_objext conftest$ac_exeext
30671if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 30672 (eval $ac_link) 2>conftest.er1
a848cd7e 30673 ac_status=$?
ac1cb8d3
VS
30674 grep -v '^ *+' conftest.er1 >conftest.err
30675 rm -f conftest.er1
30676 cat conftest.err >&5
a848cd7e
SC
30677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30678 (exit $ac_status); } &&
c9a66001 30679 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
30680 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30681 (eval $ac_try) 2>&5
30682 ac_status=$?
30683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30684 (exit $ac_status); }; } &&
30685 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
30686 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30687 (eval $ac_try) 2>&5
30688 ac_status=$?
30689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30690 (exit $ac_status); }; }; then
30691
30692 libp_link="$libp"
30693 libsm_ice_link="$libsm_ice"
30694 echo "$as_me:$LINENO: result: need${libp_link}${libsm_ice_link}" >&5
30695echo "${ECHO_T}need${libp_link}${libsm_ice_link}" >&6
30696 libs_found=1
30697
30698else
30699 echo "$as_me: failed program was:" >&5
30700sed 's/^/| /' conftest.$ac_ext >&5
30701
30702
30703
30704fi
ac1cb8d3
VS
30705rm -f conftest.err conftest.$ac_objext \
30706 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
30707
30708 LIBS="$save_LIBS"
e56f4f9e 30709 CXXFLAGS=$save_CXXFLAGS
a848cd7e
SC
30710 fi
30711 done
30712 fi
30713 done
30714
30715 if test "$libs_found" = "0"; then
30716 echo "$as_me:$LINENO: result: can't find the right libraries" >&5
30717echo "${ECHO_T}can't find the right libraries" >&6
30718 { { echo "$as_me:$LINENO: error: can't link a simple motif program" >&5
30719echo "$as_me: error: can't link a simple motif program" >&2;}
30720 { (exit 1); exit 1; }; }
30721 fi
30722
62fa8b3a
MW
30723 echo "$as_me:$LINENO: checking for SgCreateList in -lSgm" >&5
30724echo $ECHO_N "checking for SgCreateList in -lSgm... $ECHO_C" >&6
30725if test "${ac_cv_lib_Sgm_SgCreateList+set}" = set; then
30726 echo $ECHO_N "(cached) $ECHO_C" >&6
30727else
30728 ac_check_lib_save_LIBS=$LIBS
30729LIBS="-lSgm $LIBS"
30730cat >conftest.$ac_ext <<_ACEOF
30731/* confdefs.h. */
30732_ACEOF
30733cat confdefs.h >>conftest.$ac_ext
30734cat >>conftest.$ac_ext <<_ACEOF
30735/* end confdefs.h. */
30736
30737/* Override any gcc2 internal prototype to avoid an error. */
30738#ifdef __cplusplus
30739extern "C"
30740#endif
30741/* We use char because int might match the return type of a gcc2
30742 builtin and then its argument prototype would still apply. */
30743char SgCreateList ();
30744int
30745main ()
30746{
30747SgCreateList ();
30748 ;
30749 return 0;
30750}
30751_ACEOF
30752rm -f conftest.$ac_objext conftest$ac_exeext
30753if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30754 (eval $ac_link) 2>conftest.er1
30755 ac_status=$?
30756 grep -v '^ *+' conftest.er1 >conftest.err
30757 rm -f conftest.er1
30758 cat conftest.err >&5
30759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30760 (exit $ac_status); } &&
c9a66001 30761 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
62fa8b3a
MW
30762 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30763 (eval $ac_try) 2>&5
30764 ac_status=$?
30765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30766 (exit $ac_status); }; } &&
30767 { ac_try='test -s conftest$ac_exeext'
30768 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30769 (eval $ac_try) 2>&5
30770 ac_status=$?
30771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30772 (exit $ac_status); }; }; then
30773 ac_cv_lib_Sgm_SgCreateList=yes
30774else
30775 echo "$as_me: failed program was:" >&5
30776sed 's/^/| /' conftest.$ac_ext >&5
30777
30778ac_cv_lib_Sgm_SgCreateList=no
30779fi
30780rm -f conftest.err conftest.$ac_objext \
30781 conftest$ac_exeext conftest.$ac_ext
30782LIBS=$ac_check_lib_save_LIBS
30783fi
30784echo "$as_me:$LINENO: result: $ac_cv_lib_Sgm_SgCreateList" >&5
30785echo "${ECHO_T}$ac_cv_lib_Sgm_SgCreateList" >&6
30786if test $ac_cv_lib_Sgm_SgCreateList = yes; then
30787 libsgm_link=" -lSgm"
30788fi
30789
30790
e56f4f9e
VZ
30791 save_CXXFLAGS=$CXXFLAGS
30792 CXXFLAGS="$TOOLKIT_INCLUDE $CXXFLAGS"
0ad5d837 30793
a848cd7e
SC
30794 echo "$as_me:$LINENO: checking for Motif 2" >&5
30795echo $ECHO_N "checking for Motif 2... $ECHO_C" >&6
0ad5d837
VZ
30796if test "${wx_cv_lib_motif2+set}" = set; then
30797 echo $ECHO_N "(cached) $ECHO_C" >&6
30798else
30799 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
30800/* confdefs.h. */
30801_ACEOF
30802cat confdefs.h >>conftest.$ac_ext
30803cat >>conftest.$ac_ext <<_ACEOF
30804/* end confdefs.h. */
30805
0ad5d837 30806 #include <Xm/Xm.h>
a848cd7e
SC
30807
30808int
30809main ()
30810{
30811
0ad5d837
VZ
30812 #if XmVersion < 2000
30813 Not Motif 2
30814 #endif
a848cd7e
SC
30815
30816 ;
30817 return 0;
30818}
30819_ACEOF
30820rm -f conftest.$ac_objext
30821if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 30822 (eval $ac_compile) 2>conftest.er1
a848cd7e 30823 ac_status=$?
ac1cb8d3
VS
30824 grep -v '^ *+' conftest.er1 >conftest.err
30825 rm -f conftest.er1
30826 cat conftest.err >&5
a848cd7e
SC
30827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30828 (exit $ac_status); } &&
c9a66001 30829 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
30830 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30831 (eval $ac_try) 2>&5
30832 ac_status=$?
30833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30834 (exit $ac_status); }; } &&
30835 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
30836 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30837 (eval $ac_try) 2>&5
30838 ac_status=$?
30839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30840 (exit $ac_status); }; }; then
0ad5d837 30841 wx_cv_lib_motif2="yes"
a848cd7e
SC
30842else
30843 echo "$as_me: failed program was:" >&5
30844sed 's/^/| /' conftest.$ac_ext >&5
30845
0ad5d837
VZ
30846wx_cv_lib_motif2="no"
30847fi
30848rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30849fi
30850echo "$as_me:$LINENO: result: $wx_cv_lib_motif2" >&5
30851echo "${ECHO_T}$wx_cv_lib_motif2" >&6
30852 if test "$wx_cv_lib_motif2" = "yes"; then
30853 cat >>confdefs.h <<\_ACEOF
30854#define __WXMOTIF20__ 1
30855_ACEOF
a848cd7e 30856
0ad5d837
VZ
30857 else
30858 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
30859#define __WXMOTIF20__ 0
30860_ACEOF
30861
0ad5d837 30862 fi
2113bc77
MW
30863
30864 echo "$as_me:$LINENO: checking whether Motif is Lesstif" >&5
30865echo $ECHO_N "checking whether Motif is Lesstif... $ECHO_C" >&6
0ad5d837
VZ
30866if test "${wx_cv_lib_lesstif+set}" = set; then
30867 echo $ECHO_N "(cached) $ECHO_C" >&6
30868else
30869 cat >conftest.$ac_ext <<_ACEOF
2113bc77
MW
30870/* confdefs.h. */
30871_ACEOF
30872cat confdefs.h >>conftest.$ac_ext
30873cat >>conftest.$ac_ext <<_ACEOF
30874/* end confdefs.h. */
30875
0ad5d837 30876 #include <Xm/Xm.h>
2113bc77
MW
30877
30878int
30879main ()
30880{
30881
0ad5d837
VZ
30882 #if !defined(LesstifVersion) || LesstifVersion <= 0
30883 Not Lesstif
30884 #endif
2113bc77
MW
30885
30886 ;
30887 return 0;
30888}
30889_ACEOF
30890rm -f conftest.$ac_objext
30891if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30892 (eval $ac_compile) 2>conftest.er1
30893 ac_status=$?
30894 grep -v '^ *+' conftest.er1 >conftest.err
30895 rm -f conftest.er1
30896 cat conftest.err >&5
30897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30898 (exit $ac_status); } &&
c9a66001 30899 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
2113bc77
MW
30900 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30901 (eval $ac_try) 2>&5
30902 ac_status=$?
30903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30904 (exit $ac_status); }; } &&
30905 { ac_try='test -s conftest.$ac_objext'
30906 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30907 (eval $ac_try) 2>&5
30908 ac_status=$?
30909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30910 (exit $ac_status); }; }; then
0ad5d837 30911 wx_cv_lib_lesstif="yes"
2113bc77
MW
30912else
30913 echo "$as_me: failed program was:" >&5
30914sed 's/^/| /' conftest.$ac_ext >&5
30915
0ad5d837
VZ
30916wx_cv_lib_lesstif="no"
30917fi
30918rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2113bc77 30919
0ad5d837
VZ
30920fi
30921echo "$as_me:$LINENO: result: $wx_cv_lib_lesstif" >&5
30922echo "${ECHO_T}$wx_cv_lib_lesstif" >&6
30923 if test "$wx_cv_lib_lesstif" = "yes"; then
30924 cat >>confdefs.h <<\_ACEOF
30925#define __WXLESSTIF__ 1
30926_ACEOF
30927
30928 else
30929 cat >>confdefs.h <<\_ACEOF
2113bc77
MW
30930#define __WXLESSTIF__ 0
30931_ACEOF
30932
0ad5d837 30933 fi
2113bc77 30934
e56f4f9e 30935 CXXFLAGS=$save_CXXFLAGS
a848cd7e 30936
62fa8b3a 30937 GUI_TK_LIBRARY="$GUI_TK_LIBRARY${libsgm_link} -lXm${libp_link} -lXmu -lXext -lXt${libsm_ice_link} -lX11"
a848cd7e
SC
30938 TOOLKIT=MOTIF
30939 GUIDIST=MOTIF_DIST
30940 fi
30941
74b84332 30942 if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then
a848cd7e
SC
30943 if test "$wxUSE_LIBXPM" = "sys"; then
30944 echo "$as_me:$LINENO: checking for Xpm library" >&5
30945echo $ECHO_N "checking for Xpm library... $ECHO_C" >&6
30946
0ad5d837
VZ
30947 ac_find_libraries=
30948 for ac_dir in $SEARCH_LIB;
a848cd7e 30949 do
3eca31dc 30950 for ac_extension in a so sl dylib dll.a; do
a848cd7e
SC
30951 if test -f "$ac_dir/libXpm.$ac_extension"; then
30952 ac_find_libraries=$ac_dir
30953 break 2
30954 fi
30955 done
30956 done
30957
30958 if test "$ac_find_libraries" != "" ; then
30959
0ad5d837 30960 if test "$ac_find_libraries" = "default location"; then
a848cd7e
SC
30961 ac_path_to_link=""
30962 else
0ad5d837
VZ
30963 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
30964 result=$?
30965 if test $result = 0; then
30966 ac_path_to_link=""
30967 else
30968 ac_path_to_link=" -L$ac_find_libraries"
30969 fi
a848cd7e
SC
30970 fi
30971
30972 GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
0ad5d837
VZ
30973 echo "$as_me:$LINENO: result: found in $ac_find_libraries" >&5
30974echo "${ECHO_T}found in $ac_find_libraries" >&6
a848cd7e
SC
30975
30976 echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
30977echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6
30978if test "${wx_cv_x11_xpm_h+set}" = set; then
30979 echo $ECHO_N "(cached) $ECHO_C" >&6
30980else
30981
e56f4f9e
VZ
30982 save_CXXFLAGS=$CXXFLAGS
30983 CXXFLAGS="$TOOLKIT_INCLUDE $CXXFLAGS"
a848cd7e
SC
30984
30985 cat >conftest.$ac_ext <<_ACEOF
30986/* confdefs.h. */
30987_ACEOF
30988cat confdefs.h >>conftest.$ac_ext
30989cat >>conftest.$ac_ext <<_ACEOF
30990/* end confdefs.h. */
30991
30992 #include <X11/xpm.h>
30993
30994int
30995main ()
30996{
30997
30998 int version;
30999 version = XpmLibraryVersion();
31000
31001 ;
31002 return 0;
31003}
31004_ACEOF
31005rm -f conftest.$ac_objext
31006if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 31007 (eval $ac_compile) 2>conftest.er1
a848cd7e 31008 ac_status=$?
ac1cb8d3
VS
31009 grep -v '^ *+' conftest.er1 >conftest.err
31010 rm -f conftest.er1
31011 cat conftest.err >&5
a848cd7e
SC
31012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31013 (exit $ac_status); } &&
c9a66001 31014 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
31015 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31016 (eval $ac_try) 2>&5
31017 ac_status=$?
31018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31019 (exit $ac_status); }; } &&
31020 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
31021 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31022 (eval $ac_try) 2>&5
31023 ac_status=$?
31024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31025 (exit $ac_status); }; }; then
31026 wx_cv_x11_xpm_h=yes
31027else
31028 echo "$as_me: failed program was:" >&5
31029sed 's/^/| /' conftest.$ac_ext >&5
31030
31031wx_cv_x11_xpm_h=no
31032
31033fi
ac1cb8d3 31034rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 31035
e56f4f9e 31036 CXXFLAGS=$save_CXXFLAGS
a848cd7e
SC
31037
31038
31039fi
31040echo "$as_me:$LINENO: result: $wx_cv_x11_xpm_h" >&5
31041echo "${ECHO_T}$wx_cv_x11_xpm_h" >&6
31042
31043 if test $wx_cv_x11_xpm_h = "yes"; then
31044 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXpm"
31045 cat >>confdefs.h <<\_ACEOF
31046#define wxHAVE_LIB_XPM 1
31047_ACEOF
31048
31049 else
31050 { echo "$as_me:$LINENO: WARNING: built-in less efficient XPM decoder will be used" >&5
31051echo "$as_me: WARNING: built-in less efficient XPM decoder will be used" >&2;}
31052 fi
31053 fi
31054
31055 fi
31056
31057 echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
31058echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6
31059if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
31060 echo $ECHO_N "(cached) $ECHO_C" >&6
31061else
31062 ac_check_lib_save_LIBS=$LIBS
31063LIBS="-lXext $GUI_TK_LIBRARY -lX11 $LIBS"
31064cat >conftest.$ac_ext <<_ACEOF
31065/* confdefs.h. */
31066_ACEOF
31067cat confdefs.h >>conftest.$ac_ext
31068cat >>conftest.$ac_ext <<_ACEOF
31069/* end confdefs.h. */
31070
31071/* Override any gcc2 internal prototype to avoid an error. */
31072#ifdef __cplusplus
31073extern "C"
31074#endif
31075/* We use char because int might match the return type of a gcc2
31076 builtin and then its argument prototype would still apply. */
31077char XShapeQueryExtension ();
31078int
31079main ()
31080{
31081XShapeQueryExtension ();
31082 ;
31083 return 0;
31084}
31085_ACEOF
31086rm -f conftest.$ac_objext conftest$ac_exeext
31087if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 31088 (eval $ac_link) 2>conftest.er1
a848cd7e 31089 ac_status=$?
ac1cb8d3
VS
31090 grep -v '^ *+' conftest.er1 >conftest.err
31091 rm -f conftest.er1
31092 cat conftest.err >&5
a848cd7e
SC
31093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31094 (exit $ac_status); } &&
c9a66001 31095 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
31096 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31097 (eval $ac_try) 2>&5
31098 ac_status=$?
31099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31100 (exit $ac_status); }; } &&
31101 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
31102 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31103 (eval $ac_try) 2>&5
31104 ac_status=$?
31105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31106 (exit $ac_status); }; }; then
31107 ac_cv_lib_Xext_XShapeQueryExtension=yes
31108else
31109 echo "$as_me: failed program was:" >&5
31110sed 's/^/| /' conftest.$ac_ext >&5
31111
31112ac_cv_lib_Xext_XShapeQueryExtension=no
31113fi
ac1cb8d3
VS
31114rm -f conftest.err conftest.$ac_objext \
31115 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
31116LIBS=$ac_check_lib_save_LIBS
31117fi
31118echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
31119echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6
31120if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
31121
31122 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXext"
31123 wxHAVE_XEXT_LIB=1
31124
31125fi
31126
31127
31128 if test "$wxHAVE_XEXT_LIB" = 1; then
e56f4f9e
VZ
31129 save_CXXFLAGS="$CXXFLAGS"
31130 CXXFLAGS="$TOOLKIT_INCLUDE $CXXFLAGS"
a848cd7e
SC
31131
31132 echo "$as_me:$LINENO: checking for X11/extensions/shape.h" >&5
31133echo $ECHO_N "checking for X11/extensions/shape.h... $ECHO_C" >&6
31134 cat >conftest.$ac_ext <<_ACEOF
31135/* confdefs.h. */
31136_ACEOF
31137cat confdefs.h >>conftest.$ac_ext
31138cat >>conftest.$ac_ext <<_ACEOF
31139/* end confdefs.h. */
31140
31141 #include <X11/Xlib.h>
31142 #include <X11/extensions/shape.h>
31143
31144int
31145main ()
31146{
31147
31148 int dummy1, dummy2;
31149 XShapeQueryExtension((Display*)NULL,
31150 (int*)NULL, (int*)NULL);
31151
31152 ;
31153 return 0;
31154}
31155_ACEOF
31156rm -f conftest.$ac_objext
31157if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 31158 (eval $ac_compile) 2>conftest.er1
a848cd7e 31159 ac_status=$?
ac1cb8d3
VS
31160 grep -v '^ *+' conftest.er1 >conftest.err
31161 rm -f conftest.er1
31162 cat conftest.err >&5
a848cd7e
SC
31163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31164 (exit $ac_status); } &&
c9a66001 31165 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
31166 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31167 (eval $ac_try) 2>&5
31168 ac_status=$?
31169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31170 (exit $ac_status); }; } &&
31171 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
31172 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31173 (eval $ac_try) 2>&5
31174 ac_status=$?
31175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31176 (exit $ac_status); }; }; then
31177
31178 cat >>confdefs.h <<\_ACEOF
31179#define HAVE_XSHAPE 1
31180_ACEOF
31181
31182 echo "$as_me:$LINENO: result: found" >&5
31183echo "${ECHO_T}found" >&6
31184
31185else
31186 echo "$as_me: failed program was:" >&5
31187sed 's/^/| /' conftest.$ac_ext >&5
31188
31189
31190 echo "$as_me:$LINENO: result: not found" >&5
31191echo "${ECHO_T}not found" >&6
31192
31193fi
ac1cb8d3 31194rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e56f4f9e 31195 CXXFLAGS="$save_CXXFLAGS"
a848cd7e
SC
31196
31197 fi
31198 fi
31199
31200 if test "$wxUSE_MAC" = 1; then
31201 echo "$as_me:$LINENO: checking for compiler syntax to enable Pascal strings" >&5
31202echo $ECHO_N "checking for compiler syntax to enable Pascal strings... $ECHO_C" >&6
31203 if test "$GCC" = yes; then
31204 echo "$as_me:$LINENO: result: gcc" >&5
31205echo "${ECHO_T}gcc" >&6
31206 CPPFLAGS_PASCAL="-fpascal-strings"
31207 elif test "`echo $CXX | sed -e 's@.*/@@'`" = "xlC"; then
31208 echo "$as_me:$LINENO: result: xlc" >&5
31209echo "${ECHO_T}xlc" >&6
31210 CPPFLAGS_PASCAL="-qmacpstr"
31211 else
31212 echo "$as_me:$LINENO: result: none" >&5
31213echo "${ECHO_T}none" >&6
31214 fi
31215
1e9e8aba 31216 if test "x$wxUSE_UNIX" = "xyes"; then
c92ad099 31217 CPPFLAGS="$CPPFLAGS_PASCAL -I\${top_srcdir}/src/mac/carbon/morefilex -I/Developer/Headers/FlatCarbon $CPPFLAGS"
1e9e8aba 31218 else
c92ad099 31219 CPPFLAGS="$CPPFLAGS_PASCAL -I\${top_srcdir}/src/mac/carbon/morefilex -DTARGET_CARBON $CPPFLAGS"
1e9e8aba 31220 fi
a848cd7e 31221
a848cd7e
SC
31222 TOOLKIT=MAC
31223 GUIDIST=MACX_DIST
dd21ced8 31224 WXBASEPORT="_carbon"
a848cd7e
SC
31225 fi
31226
31227 if test "$wxUSE_COCOA" = 1; then
a848cd7e
SC
31228 TOOLKIT=COCOA
31229 GUIDIST=COCOA_DIST
31230 fi
31231
31232 if test "$wxUSE_PM" = 1; then
31233 TOOLKIT=PM
de59c161
RD
31234 GUIDIST=PM_DIST
31235 echo "$as_me:$LINENO: checking for type SPBCDATA" >&5
31236echo $ECHO_N "checking for type SPBCDATA... $ECHO_C" >&6
31237if test "${wx_cv_spbcdata+set}" = set; then
31238 echo $ECHO_N "(cached) $ECHO_C" >&6
31239else
31240
31241 cat >conftest.$ac_ext <<_ACEOF
de59c161
RD
31242/* confdefs.h. */
31243_ACEOF
31244cat confdefs.h >>conftest.$ac_ext
31245cat >>conftest.$ac_ext <<_ACEOF
31246/* end confdefs.h. */
31247
31248 #define INCL_PM
31249 #include <os2.h>
31250
31251int
31252main ()
31253{
31254
31255 SPBCDATA test;
31256
31257 ;
31258 return 0;
31259}
31260_ACEOF
31261rm -f conftest.$ac_objext
31262if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 31263 (eval $ac_compile) 2>conftest.er1
de59c161 31264 ac_status=$?
ac1cb8d3
VS
31265 grep -v '^ *+' conftest.er1 >conftest.err
31266 rm -f conftest.er1
31267 cat conftest.err >&5
de59c161
RD
31268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31269 (exit $ac_status); } &&
c9a66001 31270 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
31271 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31272 (eval $ac_try) 2>&5
31273 ac_status=$?
31274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31275 (exit $ac_status); }; } &&
31276 { ac_try='test -s conftest.$ac_objext'
de59c161
RD
31277 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31278 (eval $ac_try) 2>&5
31279 ac_status=$?
31280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31281 (exit $ac_status); }; }; then
31282 wx_cv_spbcdata=yes
31283else
31284 echo "$as_me: failed program was:" >&5
31285sed 's/^/| /' conftest.$ac_ext >&5
31286
31287wx_cv_spbcdata=no
31288
31289fi
ac1cb8d3 31290rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
de59c161
RD
31291
31292
31293fi
31294echo "$as_me:$LINENO: result: $wx_cv_spbcdata" >&5
31295echo "${ECHO_T}$wx_cv_spbcdata" >&6
31296
31297 if test $wx_cv_spbcdata = "yes"; then
31298 cat >>confdefs.h <<\_ACEOF
31299#define HAVE_SPBCDATA 1
31300_ACEOF
31301
31302 fi
a848cd7e
SC
31303 fi
31304
31305 if test "$TOOLKIT" = "PM" ; then
31306 TOOLKIT_DIR="os2"
31307 else
31308 TOOLKIT_DIR=`echo ${TOOLKIT} | tr "[A-Z]" "[a-z]"`
31309 fi
31310
a848cd7e 31311 if test "$wxUSE_UNIVERSAL" = "yes"; then
a848cd7e
SC
31312 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXUNIVERSAL__"
31313 WIDGET_SET=univ
a848cd7e
SC
31314 fi
31315
31316 GUIDIST="${GUIDIST} SAMPLES_DIST DEMOS_DIST UTILS_DIST MISC_DIST"
31317 DISTDIR="wx\$(TOOLKIT)"
31318else
31319 USE_GUI=0
31320
31321 TOOLKIT_DIR="base"
31322
31323 if test "$USE_WIN32" = 1 ; then
a848cd7e 31324 TOOLKIT="MSW"
a848cd7e
SC
31325 fi
31326
a848cd7e
SC
31327 GUIDIST="BASE_DIST"
31328 DISTDIR="wxBase"
31329fi
31330
31331
d12aef51
VZ
31332if test "$wxUSE_GUI" = "yes"; then
31333 if test "$wxUSE_UNIX" = "yes" -a "$wxUSE_PM" != 1; then
31334
31335for ac_header in X11/Xlib.h
31336do
31337as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
31338if eval "test \"\${$as_ac_Header+set}\" = set"; then
31339 echo "$as_me:$LINENO: checking for $ac_header" >&5
31340echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
31341if eval "test \"\${$as_ac_Header+set}\" = set"; then
31342 echo $ECHO_N "(cached) $ECHO_C" >&6
31343fi
31344echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
31345echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
31346else
31347 # Is the header compilable?
31348echo "$as_me:$LINENO: checking $ac_header usability" >&5
31349echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
31350cat >conftest.$ac_ext <<_ACEOF
31351/* confdefs.h. */
31352_ACEOF
31353cat confdefs.h >>conftest.$ac_ext
31354cat >>conftest.$ac_ext <<_ACEOF
31355/* end confdefs.h. */
31356$ac_includes_default
31357#include <$ac_header>
31358_ACEOF
31359rm -f conftest.$ac_objext
31360if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31361 (eval $ac_compile) 2>conftest.er1
31362 ac_status=$?
31363 grep -v '^ *+' conftest.er1 >conftest.err
31364 rm -f conftest.er1
31365 cat conftest.err >&5
31366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31367 (exit $ac_status); } &&
c9a66001 31368 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
d12aef51
VZ
31369 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31370 (eval $ac_try) 2>&5
31371 ac_status=$?
31372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31373 (exit $ac_status); }; } &&
31374 { ac_try='test -s conftest.$ac_objext'
31375 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31376 (eval $ac_try) 2>&5
31377 ac_status=$?
31378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31379 (exit $ac_status); }; }; then
31380 ac_header_compiler=yes
31381else
31382 echo "$as_me: failed program was:" >&5
31383sed 's/^/| /' conftest.$ac_ext >&5
31384
31385ac_header_compiler=no
31386fi
31387rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
31388echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31389echo "${ECHO_T}$ac_header_compiler" >&6
31390
31391# Is the header present?
31392echo "$as_me:$LINENO: checking $ac_header presence" >&5
31393echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
31394cat >conftest.$ac_ext <<_ACEOF
31395/* confdefs.h. */
31396_ACEOF
31397cat confdefs.h >>conftest.$ac_ext
31398cat >>conftest.$ac_ext <<_ACEOF
31399/* end confdefs.h. */
31400#include <$ac_header>
31401_ACEOF
31402if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
31403 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
31404 ac_status=$?
31405 grep -v '^ *+' conftest.er1 >conftest.err
31406 rm -f conftest.er1
31407 cat conftest.err >&5
31408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31409 (exit $ac_status); } >/dev/null; then
31410 if test -s conftest.err; then
5d7b7554
VZ
31411 ac_cpp_err=$ac_cxx_preproc_warn_flag
31412 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
d12aef51
VZ
31413 else
31414 ac_cpp_err=
31415 fi
31416else
31417 ac_cpp_err=yes
31418fi
31419if test -z "$ac_cpp_err"; then
31420 ac_header_preproc=yes
31421else
31422 echo "$as_me: failed program was:" >&5
31423sed 's/^/| /' conftest.$ac_ext >&5
31424
31425 ac_header_preproc=no
31426fi
31427rm -f conftest.err conftest.$ac_ext
31428echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31429echo "${ECHO_T}$ac_header_preproc" >&6
31430
31431# So? What about this header?
5d7b7554 31432case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
d12aef51
VZ
31433 yes:no: )
31434 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
31435echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
31436 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
31437echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
31438 ac_header_preproc=yes
31439 ;;
31440 no:yes:* )
31441 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
31442echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
31443 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
31444echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
31445 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
31446echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
31447 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
31448echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
31449 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
31450echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
31451 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
31452echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
31453 (
31454 cat <<\_ASBOX
31455## ----------------------------------------- ##
31456## Report this to wx-dev@lists.wxwidgets.org ##
31457## ----------------------------------------- ##
31458_ASBOX
31459 ) |
31460 sed "s/^/$as_me: WARNING: /" >&2
31461 ;;
31462esac
31463echo "$as_me:$LINENO: checking for $ac_header" >&5
31464echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
31465if eval "test \"\${$as_ac_Header+set}\" = set"; then
31466 echo $ECHO_N "(cached) $ECHO_C" >&6
31467else
31468 eval "$as_ac_Header=\$ac_header_preproc"
31469fi
31470echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
31471echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
31472
31473fi
31474if test `eval echo '${'$as_ac_Header'}'` = yes; then
31475 cat >>confdefs.h <<_ACEOF
31476#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
31477_ACEOF
31478
31479fi
31480
31481done
31482
31483
31484for ac_header in X11/XKBlib.h
31485do
31486as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
31487echo "$as_me:$LINENO: checking for $ac_header" >&5
31488echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
31489if eval "test \"\${$as_ac_Header+set}\" = set"; then
31490 echo $ECHO_N "(cached) $ECHO_C" >&6
31491else
31492 cat >conftest.$ac_ext <<_ACEOF
31493/* confdefs.h. */
31494_ACEOF
31495cat confdefs.h >>conftest.$ac_ext
31496cat >>conftest.$ac_ext <<_ACEOF
31497/* end confdefs.h. */
31498
31499 #if HAVE_X11_XLIB_H
31500 #include <X11/Xlib.h>
31501 #endif
31502
31503
31504#include <$ac_header>
31505_ACEOF
31506rm -f conftest.$ac_objext
31507if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31508 (eval $ac_compile) 2>conftest.er1
31509 ac_status=$?
31510 grep -v '^ *+' conftest.er1 >conftest.err
31511 rm -f conftest.er1
31512 cat conftest.err >&5
31513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31514 (exit $ac_status); } &&
c9a66001 31515 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
d12aef51
VZ
31516 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31517 (eval $ac_try) 2>&5
31518 ac_status=$?
31519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31520 (exit $ac_status); }; } &&
31521 { ac_try='test -s conftest.$ac_objext'
31522 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31523 (eval $ac_try) 2>&5
31524 ac_status=$?
31525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31526 (exit $ac_status); }; }; then
31527 eval "$as_ac_Header=yes"
31528else
31529 echo "$as_me: failed program was:" >&5
31530sed 's/^/| /' conftest.$ac_ext >&5
31531
31532eval "$as_ac_Header=no"
31533fi
31534rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
31535fi
31536echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
31537echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
31538if test `eval echo '${'$as_ac_Header'}'` = yes; then
31539 cat >>confdefs.h <<_ACEOF
31540#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
31541_ACEOF
31542
31543fi
31544
31545done
31546
31547 fi
31548fi
31549
a848cd7e
SC
31550
31551
31552IODBC_C_SRC=""
31553
31554
31555if test "$TOOLKIT" != "MSW" ; then
31556
31557 if test "$wxUSE_ODBC" = "sys" -o "$wxUSE_ODBC" = "yes" ; then
31558
31559 if test "${ac_cv_header_sql_h+set}" = set; then
31560 echo "$as_me:$LINENO: checking for sql.h" >&5
31561echo $ECHO_N "checking for sql.h... $ECHO_C" >&6
31562if test "${ac_cv_header_sql_h+set}" = set; then
31563 echo $ECHO_N "(cached) $ECHO_C" >&6
31564fi
31565echo "$as_me:$LINENO: result: $ac_cv_header_sql_h" >&5
31566echo "${ECHO_T}$ac_cv_header_sql_h" >&6
31567else
31568 # Is the header compilable?
31569echo "$as_me:$LINENO: checking sql.h usability" >&5
31570echo $ECHO_N "checking sql.h usability... $ECHO_C" >&6
31571cat >conftest.$ac_ext <<_ACEOF
31572/* confdefs.h. */
31573_ACEOF
31574cat confdefs.h >>conftest.$ac_ext
31575cat >>conftest.$ac_ext <<_ACEOF
31576/* end confdefs.h. */
31577$ac_includes_default
31578#include <sql.h>
31579_ACEOF
31580rm -f conftest.$ac_objext
31581if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 31582 (eval $ac_compile) 2>conftest.er1
a848cd7e 31583 ac_status=$?
ac1cb8d3
VS
31584 grep -v '^ *+' conftest.er1 >conftest.err
31585 rm -f conftest.er1
31586 cat conftest.err >&5
a848cd7e
SC
31587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31588 (exit $ac_status); } &&
c9a66001 31589 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
31590 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31591 (eval $ac_try) 2>&5
31592 ac_status=$?
31593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31594 (exit $ac_status); }; } &&
31595 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
31596 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31597 (eval $ac_try) 2>&5
31598 ac_status=$?
31599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31600 (exit $ac_status); }; }; then
31601 ac_header_compiler=yes
31602else
31603 echo "$as_me: failed program was:" >&5
31604sed 's/^/| /' conftest.$ac_ext >&5
31605
31606ac_header_compiler=no
31607fi
ac1cb8d3 31608rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
31609echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31610echo "${ECHO_T}$ac_header_compiler" >&6
31611
31612# Is the header present?
31613echo "$as_me:$LINENO: checking sql.h presence" >&5
31614echo $ECHO_N "checking sql.h presence... $ECHO_C" >&6
31615cat >conftest.$ac_ext <<_ACEOF
31616/* confdefs.h. */
31617_ACEOF
31618cat confdefs.h >>conftest.$ac_ext
31619cat >>conftest.$ac_ext <<_ACEOF
31620/* end confdefs.h. */
31621#include <sql.h>
31622_ACEOF
31623if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
31624 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
31625 ac_status=$?
31626 grep -v '^ *+' conftest.er1 >conftest.err
31627 rm -f conftest.er1
31628 cat conftest.err >&5
31629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31630 (exit $ac_status); } >/dev/null; then
31631 if test -s conftest.err; then
5d7b7554
VZ
31632 ac_cpp_err=$ac_cxx_preproc_warn_flag
31633 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
31634 else
31635 ac_cpp_err=
31636 fi
31637else
31638 ac_cpp_err=yes
31639fi
31640if test -z "$ac_cpp_err"; then
31641 ac_header_preproc=yes
31642else
31643 echo "$as_me: failed program was:" >&5
31644sed 's/^/| /' conftest.$ac_ext >&5
31645
31646 ac_header_preproc=no
31647fi
31648rm -f conftest.err conftest.$ac_ext
31649echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31650echo "${ECHO_T}$ac_header_preproc" >&6
31651
31652# So? What about this header?
5d7b7554 31653case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
ac1cb8d3 31654 yes:no: )
a848cd7e
SC
31655 { echo "$as_me:$LINENO: WARNING: sql.h: accepted by the compiler, rejected by the preprocessor!" >&5
31656echo "$as_me: WARNING: sql.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
31657 { echo "$as_me:$LINENO: WARNING: sql.h: proceeding with the compiler's result" >&5
31658echo "$as_me: WARNING: sql.h: proceeding with the compiler's result" >&2;}
31659 ac_header_preproc=yes
a848cd7e 31660 ;;
ac1cb8d3 31661 no:yes:* )
a848cd7e
SC
31662 { echo "$as_me:$LINENO: WARNING: sql.h: present but cannot be compiled" >&5
31663echo "$as_me: WARNING: sql.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
31664 { echo "$as_me:$LINENO: WARNING: sql.h: check for missing prerequisite headers?" >&5
31665echo "$as_me: WARNING: sql.h: check for missing prerequisite headers?" >&2;}
31666 { echo "$as_me:$LINENO: WARNING: sql.h: see the Autoconf documentation" >&5
31667echo "$as_me: WARNING: sql.h: see the Autoconf documentation" >&2;}
31668 { echo "$as_me:$LINENO: WARNING: sql.h: section \"Present But Cannot Be Compiled\"" >&5
31669echo "$as_me: WARNING: sql.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
31670 { echo "$as_me:$LINENO: WARNING: sql.h: proceeding with the preprocessor's result" >&5
31671echo "$as_me: WARNING: sql.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
31672 { echo "$as_me:$LINENO: WARNING: sql.h: in the future, the compiler will take precedence" >&5
31673echo "$as_me: WARNING: sql.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
31674 (
31675 cat <<\_ASBOX
ac1cb8d3
VS
31676## ----------------------------------------- ##
31677## Report this to wx-dev@lists.wxwidgets.org ##
31678## ----------------------------------------- ##
a848cd7e
SC
31679_ASBOX
31680 ) |
31681 sed "s/^/$as_me: WARNING: /" >&2
31682 ;;
31683esac
31684echo "$as_me:$LINENO: checking for sql.h" >&5
31685echo $ECHO_N "checking for sql.h... $ECHO_C" >&6
31686if test "${ac_cv_header_sql_h+set}" = set; then
31687 echo $ECHO_N "(cached) $ECHO_C" >&6
31688else
31689 ac_cv_header_sql_h=$ac_header_preproc
31690fi
31691echo "$as_me:$LINENO: result: $ac_cv_header_sql_h" >&5
31692echo "${ECHO_T}$ac_cv_header_sql_h" >&6
31693
31694fi
31695if test $ac_cv_header_sql_h = yes; then
31696 found_sql_h=1
31697fi
31698
31699
31700 if test "x$found_sql_h" = "x1" ; then
31701 echo "$as_me:$LINENO: checking for SQLAllocEnv in -liodbc" >&5
31702echo $ECHO_N "checking for SQLAllocEnv in -liodbc... $ECHO_C" >&6
31703if test "${ac_cv_lib_iodbc_SQLAllocEnv+set}" = set; then
31704 echo $ECHO_N "(cached) $ECHO_C" >&6
31705else
31706 ac_check_lib_save_LIBS=$LIBS
31707LIBS="-liodbc $LIBS"
31708cat >conftest.$ac_ext <<_ACEOF
31709/* confdefs.h. */
31710_ACEOF
31711cat confdefs.h >>conftest.$ac_ext
31712cat >>conftest.$ac_ext <<_ACEOF
31713/* end confdefs.h. */
31714
31715/* Override any gcc2 internal prototype to avoid an error. */
31716#ifdef __cplusplus
31717extern "C"
31718#endif
31719/* We use char because int might match the return type of a gcc2
31720 builtin and then its argument prototype would still apply. */
31721char SQLAllocEnv ();
31722int
31723main ()
31724{
31725SQLAllocEnv ();
31726 ;
31727 return 0;
31728}
31729_ACEOF
31730rm -f conftest.$ac_objext conftest$ac_exeext
31731if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 31732 (eval $ac_link) 2>conftest.er1
a848cd7e 31733 ac_status=$?
ac1cb8d3
VS
31734 grep -v '^ *+' conftest.er1 >conftest.err
31735 rm -f conftest.er1
31736 cat conftest.err >&5
a848cd7e
SC
31737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31738 (exit $ac_status); } &&
c9a66001 31739 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
31740 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31741 (eval $ac_try) 2>&5
31742 ac_status=$?
31743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31744 (exit $ac_status); }; } &&
31745 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
31746 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31747 (eval $ac_try) 2>&5
31748 ac_status=$?
31749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31750 (exit $ac_status); }; }; then
31751 ac_cv_lib_iodbc_SQLAllocEnv=yes
31752else
31753 echo "$as_me: failed program was:" >&5
31754sed 's/^/| /' conftest.$ac_ext >&5
31755
31756ac_cv_lib_iodbc_SQLAllocEnv=no
31757fi
ac1cb8d3
VS
31758rm -f conftest.err conftest.$ac_objext \
31759 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
31760LIBS=$ac_check_lib_save_LIBS
31761fi
31762echo "$as_me:$LINENO: result: $ac_cv_lib_iodbc_SQLAllocEnv" >&5
31763echo "${ECHO_T}$ac_cv_lib_iodbc_SQLAllocEnv" >&6
31764if test $ac_cv_lib_iodbc_SQLAllocEnv = yes; then
31765 ODBC_LINK=" -liodbc"
31766else
31767
31768 echo "$as_me:$LINENO: checking for SQLAllocEnv in -lunixodbc" >&5
31769echo $ECHO_N "checking for SQLAllocEnv in -lunixodbc... $ECHO_C" >&6
31770if test "${ac_cv_lib_unixodbc_SQLAllocEnv+set}" = set; then
31771 echo $ECHO_N "(cached) $ECHO_C" >&6
31772else
31773 ac_check_lib_save_LIBS=$LIBS
31774LIBS="-lunixodbc $LIBS"
31775cat >conftest.$ac_ext <<_ACEOF
31776/* confdefs.h. */
31777_ACEOF
31778cat confdefs.h >>conftest.$ac_ext
31779cat >>conftest.$ac_ext <<_ACEOF
31780/* end confdefs.h. */
31781
31782/* Override any gcc2 internal prototype to avoid an error. */
31783#ifdef __cplusplus
31784extern "C"
31785#endif
31786/* We use char because int might match the return type of a gcc2
31787 builtin and then its argument prototype would still apply. */
31788char SQLAllocEnv ();
31789int
31790main ()
31791{
31792SQLAllocEnv ();
31793 ;
31794 return 0;
31795}
31796_ACEOF
31797rm -f conftest.$ac_objext conftest$ac_exeext
31798if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 31799 (eval $ac_link) 2>conftest.er1
a848cd7e 31800 ac_status=$?
ac1cb8d3
VS
31801 grep -v '^ *+' conftest.er1 >conftest.err
31802 rm -f conftest.er1
31803 cat conftest.err >&5
a848cd7e
SC
31804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31805 (exit $ac_status); } &&
c9a66001 31806 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
31807 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31808 (eval $ac_try) 2>&5
31809 ac_status=$?
31810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31811 (exit $ac_status); }; } &&
31812 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
31813 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31814 (eval $ac_try) 2>&5
31815 ac_status=$?
31816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31817 (exit $ac_status); }; }; then
31818 ac_cv_lib_unixodbc_SQLAllocEnv=yes
31819else
31820 echo "$as_me: failed program was:" >&5
31821sed 's/^/| /' conftest.$ac_ext >&5
31822
31823ac_cv_lib_unixodbc_SQLAllocEnv=no
31824fi
ac1cb8d3
VS
31825rm -f conftest.err conftest.$ac_objext \
31826 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
31827LIBS=$ac_check_lib_save_LIBS
31828fi
31829echo "$as_me:$LINENO: result: $ac_cv_lib_unixodbc_SQLAllocEnv" >&5
31830echo "${ECHO_T}$ac_cv_lib_unixodbc_SQLAllocEnv" >&6
31831if test $ac_cv_lib_unixodbc_SQLAllocEnv = yes; then
31832 ODBC_LINK=" -lunixodbc"
31833else
31834
31835 echo "$as_me:$LINENO: checking for SQLAllocEnv in -lodbc" >&5
31836echo $ECHO_N "checking for SQLAllocEnv in -lodbc... $ECHO_C" >&6
31837if test "${ac_cv_lib_odbc_SQLAllocEnv+set}" = set; then
31838 echo $ECHO_N "(cached) $ECHO_C" >&6
31839else
31840 ac_check_lib_save_LIBS=$LIBS
31841LIBS="-lodbc $LIBS"
31842cat >conftest.$ac_ext <<_ACEOF
31843/* confdefs.h. */
31844_ACEOF
31845cat confdefs.h >>conftest.$ac_ext
31846cat >>conftest.$ac_ext <<_ACEOF
31847/* end confdefs.h. */
31848
31849/* Override any gcc2 internal prototype to avoid an error. */
31850#ifdef __cplusplus
31851extern "C"
31852#endif
31853/* We use char because int might match the return type of a gcc2
31854 builtin and then its argument prototype would still apply. */
31855char SQLAllocEnv ();
31856int
31857main ()
31858{
31859SQLAllocEnv ();
31860 ;
31861 return 0;
31862}
31863_ACEOF
31864rm -f conftest.$ac_objext conftest$ac_exeext
31865if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 31866 (eval $ac_link) 2>conftest.er1
a848cd7e 31867 ac_status=$?
ac1cb8d3
VS
31868 grep -v '^ *+' conftest.er1 >conftest.err
31869 rm -f conftest.er1
31870 cat conftest.err >&5
a848cd7e
SC
31871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31872 (exit $ac_status); } &&
c9a66001 31873 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
31874 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31875 (eval $ac_try) 2>&5
31876 ac_status=$?
31877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31878 (exit $ac_status); }; } &&
31879 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
31880 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31881 (eval $ac_try) 2>&5
31882 ac_status=$?
31883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31884 (exit $ac_status); }; }; then
31885 ac_cv_lib_odbc_SQLAllocEnv=yes
31886else
31887 echo "$as_me: failed program was:" >&5
31888sed 's/^/| /' conftest.$ac_ext >&5
31889
31890ac_cv_lib_odbc_SQLAllocEnv=no
31891fi
ac1cb8d3
VS
31892rm -f conftest.err conftest.$ac_objext \
31893 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
31894LIBS=$ac_check_lib_save_LIBS
31895fi
31896echo "$as_me:$LINENO: result: $ac_cv_lib_odbc_SQLAllocEnv" >&5
31897echo "${ECHO_T}$ac_cv_lib_odbc_SQLAllocEnv" >&6
31898if test $ac_cv_lib_odbc_SQLAllocEnv = yes; then
31899 ODBC_LINK=" -lodbc"
31900fi
31901
31902
31903fi
31904
31905
31906fi
31907
31908 fi
31909 if test "x$ODBC_LINK" = "x" ; then
31910 if test "$wxUSE_ODBC" = "sys" ; then
31911 { { echo "$as_me:$LINENO: error: system ODBC library not found! Use --with-odbc=builtin to use built-in version" >&5
31912echo "$as_me: error: system ODBC library not found! Use --with-odbc=builtin to use built-in version" >&2;}
31913 { (exit 1); exit 1; }; }
31914 else
31915 { echo "$as_me:$LINENO: WARNING: system ODBC library not found, will use built-in instead" >&5
31916echo "$as_me: WARNING: system ODBC library not found, will use built-in instead" >&2;}
31917 wxUSE_ODBC=builtin
31918 fi
31919 else
31920 wxUSE_ODBC=sys
31921 fi
31922 fi
a848cd7e 31923
2da0c077
RD
31924 if test "$wxUSE_ODBC" = "builtin" ; then
31925 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
31926#define wxUSE_BUILTIN_IODBC 1
31927_ACEOF
31928
a848cd7e
SC
31929 fi
31930fi
31931
2da0c077
RD
31932if test "$wxUSE_ODBC" != "no" ; then
31933 cat >>confdefs.h <<\_ACEOF
31934#define wxUSE_ODBC 1
31935_ACEOF
31936
31937 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS db"
31938
5ff751d6 31939 WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS -D_IODBC_"
2da0c077 31940fi
a848cd7e 31941
01cb68df 31942
a848cd7e 31943if test "$wxUSE_DISPLAY" = "yes"; then
2a5d7a98 31944 if test "$wxUSE_UNIX" = "yes" -a "$wxUSE_MAC" != 1 -a "$wxUSE_COCOA" != 1; then
a848cd7e
SC
31945 echo "$as_me:$LINENO: checking for Xinerama" >&5
31946echo $ECHO_N "checking for Xinerama... $ECHO_C" >&6
31947
0ad5d837
VZ
31948 ac_find_libraries=
31949 for ac_dir in $SEARCH_LIB;
31950 do
31951 for ac_extension in a so sl dylib dll.a; do
31952 if test -f "$ac_dir/libXinerama.$ac_extension"; then
31953 ac_find_libraries=$ac_dir
31954 break 2
31955 fi
31956 done
31957 done
31958
a848cd7e
SC
31959 if test "$ac_find_libraries" != "" ; then
31960
0ad5d837 31961 if test "$ac_find_libraries" = "default location"; then
a848cd7e
SC
31962 ac_path_to_link=""
31963 else
0ad5d837
VZ
31964 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
31965 result=$?
31966 if test $result = 0; then
31967 ac_path_to_link=""
31968 else
31969 ac_path_to_link=" -L$ac_find_libraries"
31970 fi
a848cd7e
SC
31971 fi
31972
31973 if test "$ac_path_to_link" != " -L/usr/lib" ; then
31974 LDFLAGS="$LDFLAGS $ac_path_to_link"
31975 fi
31976 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXinerama"
31977 echo "$as_me:$LINENO: result: yes" >&5
31978echo "${ECHO_T}yes" >&6
31979
31980 echo "$as_me:$LINENO: checking for Xxf86vm extension" >&5
31981echo $ECHO_N "checking for Xxf86vm extension... $ECHO_C" >&6
31982
0ad5d837
VZ
31983 ac_find_libraries=
31984 for ac_dir in $SEARCH_LIB;
a848cd7e 31985 do
3eca31dc 31986 for ac_extension in a so sl dylib dll.a; do
a848cd7e
SC
31987 if test -f "$ac_dir/libXxf86vm.$ac_extension"; then
31988 ac_find_libraries=$ac_dir
31989 break 2
31990 fi
31991 done
31992 done
31993
31994 if test "$ac_find_libraries" != "" ; then
31995 echo "$as_me:$LINENO: result: yes" >&5
31996echo "${ECHO_T}yes" >&6
31997
31998for ac_header in X11/extensions/xf86vmode.h
31999do
32000as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
32001echo "$as_me:$LINENO: checking for $ac_header" >&5
32002echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
32003if eval "test \"\${$as_ac_Header+set}\" = set"; then
32004 echo $ECHO_N "(cached) $ECHO_C" >&6
32005else
32006 cat >conftest.$ac_ext <<_ACEOF
32007/* confdefs.h. */
32008_ACEOF
32009cat confdefs.h >>conftest.$ac_ext
32010cat >>conftest.$ac_ext <<_ACEOF
32011/* end confdefs.h. */
32012
32013 #if HAVE_X11_XLIB_H
32014 #include <X11/Xlib.h>
32015 #endif
32016
32017
32018#include <$ac_header>
32019_ACEOF
32020rm -f conftest.$ac_objext
32021if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 32022 (eval $ac_compile) 2>conftest.er1
a848cd7e 32023 ac_status=$?
ac1cb8d3
VS
32024 grep -v '^ *+' conftest.er1 >conftest.err
32025 rm -f conftest.er1
32026 cat conftest.err >&5
a848cd7e
SC
32027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32028 (exit $ac_status); } &&
c9a66001 32029 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
32030 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32031 (eval $ac_try) 2>&5
32032 ac_status=$?
32033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32034 (exit $ac_status); }; } &&
32035 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
32036 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32037 (eval $ac_try) 2>&5
32038 ac_status=$?
32039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32040 (exit $ac_status); }; }; then
32041 eval "$as_ac_Header=yes"
32042else
32043 echo "$as_me: failed program was:" >&5
32044sed 's/^/| /' conftest.$ac_ext >&5
32045
32046eval "$as_ac_Header=no"
32047fi
ac1cb8d3 32048rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
32049fi
32050echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
32051echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
32052if test `eval echo '${'$as_ac_Header'}'` = yes; then
32053 cat >>confdefs.h <<_ACEOF
32054#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
32055_ACEOF
32056
32057 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXxf86vm"
32058
32059fi
32060
32061done
32062
32063 else
32064 echo "$as_me:$LINENO: result: no" >&5
32065echo "${ECHO_T}no" >&6
32066 fi
32067
32068 else
32069 echo "$as_me:$LINENO: result: no" >&5
32070echo "${ECHO_T}no" >&6
dcc1b6ad
VS
32071 { echo "$as_me:$LINENO: WARNING: Xinerama not found; disabling wxDisplay" >&5
32072echo "$as_me: WARNING: Xinerama not found; disabling wxDisplay" >&2;}
a848cd7e
SC
32073 wxUSE_DISPLAY="no"
32074 fi
01cb68df
RG
32075 elif test "$wxUSE_MSW" = 1; then
32076
e5efa97e 32077for ac_header in ddraw.h
01cb68df
RG
32078do
32079as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5294a27e 32080echo "$as_me:$LINENO: checking for $ac_header" >&5
01cb68df
RG
32081echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
32082if eval "test \"\${$as_ac_Header+set}\" = set"; then
32083 echo $ECHO_N "(cached) $ECHO_C" >&6
01cb68df 32084else
5294a27e 32085 cat >conftest.$ac_ext <<_ACEOF
01cb68df
RG
32086/* confdefs.h. */
32087_ACEOF
32088cat confdefs.h >>conftest.$ac_ext
32089cat >>conftest.$ac_ext <<_ACEOF
32090/* end confdefs.h. */
5294a27e
VZ
32091#include <windows.h>
32092
01cb68df
RG
32093#include <$ac_header>
32094_ACEOF
32095rm -f conftest.$ac_objext
32096if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 32097 (eval $ac_compile) 2>conftest.er1
01cb68df 32098 ac_status=$?
ac1cb8d3
VS
32099 grep -v '^ *+' conftest.er1 >conftest.err
32100 rm -f conftest.er1
32101 cat conftest.err >&5
01cb68df
RG
32102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32103 (exit $ac_status); } &&
c9a66001 32104 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
32105 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32106 (eval $ac_try) 2>&5
32107 ac_status=$?
32108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32109 (exit $ac_status); }; } &&
32110 { ac_try='test -s conftest.$ac_objext'
01cb68df
RG
32111 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32112 (eval $ac_try) 2>&5
32113 ac_status=$?
32114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32115 (exit $ac_status); }; }; then
5294a27e 32116 eval "$as_ac_Header=yes"
01cb68df
RG
32117else
32118 echo "$as_me: failed program was:" >&5
32119sed 's/^/| /' conftest.$ac_ext >&5
32120
5294a27e 32121eval "$as_ac_Header=no"
01cb68df 32122fi
ac1cb8d3 32123rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
01cb68df
RG
32124fi
32125echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
32126echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
01cb68df
RG
32127if test `eval echo '${'$as_ac_Header'}'` = yes; then
32128 cat >>confdefs.h <<_ACEOF
32129#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
32130_ACEOF
32131
01cb68df
RG
32132fi
32133
32134done
32135
a848cd7e
SC
32136 fi
32137fi
32138
32139
32140USE_OPENGL=0
32141if test "$wxUSE_OPENGL" = "yes"; then
32142 if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = "1"; then
32143 OPENGL_LIBS="-framework OpenGL -framework AGL"
32144 elif test "$wxUSE_MSW" = 1; then
32145 OPENGL_LIBS="-lopengl32 -lglu32"
32146 else
32147
32148
32149ac_find_includes=
32150for ac_dir in $SEARCH_INCLUDE /usr/include;
32151 do
32152 if test -f "$ac_dir/GL/gl.h"; then
32153 ac_find_includes=$ac_dir
32154 break
32155 fi
32156 done
32157
32158 if test "$ac_find_includes" != "" ; then
32159 echo "$as_me:$LINENO: result: found in $ac_find_includes" >&5
32160echo "${ECHO_T}found in $ac_find_includes" >&6
32161
32162 if test "x$ac_find_includes" = "x/usr/include"; then
32163 ac_path_to_include=""
32164 else
32165 echo "$CPPFLAGS" | grep "\-I$ac_find_includes" > /dev/null
32166 result=$?
32167 if test $result = 0; then
32168 ac_path_to_include=""
32169 else
32170 ac_path_to_include=" -I$ac_find_includes"
32171 fi
32172 fi
32173
c92ad099 32174 CPPFLAGS="$ac_path_to_include $CPPFLAGS"
a848cd7e
SC
32175 fi
32176
32177 if test "${ac_cv_header_GL_gl_h+set}" = set; then
32178 echo "$as_me:$LINENO: checking for GL/gl.h" >&5
32179echo $ECHO_N "checking for GL/gl.h... $ECHO_C" >&6
32180if test "${ac_cv_header_GL_gl_h+set}" = set; then
32181 echo $ECHO_N "(cached) $ECHO_C" >&6
32182fi
32183echo "$as_me:$LINENO: result: $ac_cv_header_GL_gl_h" >&5
32184echo "${ECHO_T}$ac_cv_header_GL_gl_h" >&6
32185else
32186 # Is the header compilable?
32187echo "$as_me:$LINENO: checking GL/gl.h usability" >&5
32188echo $ECHO_N "checking GL/gl.h usability... $ECHO_C" >&6
32189cat >conftest.$ac_ext <<_ACEOF
32190/* confdefs.h. */
32191_ACEOF
32192cat confdefs.h >>conftest.$ac_ext
32193cat >>conftest.$ac_ext <<_ACEOF
32194/* end confdefs.h. */
32195$ac_includes_default
32196#include <GL/gl.h>
32197_ACEOF
32198rm -f conftest.$ac_objext
32199if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 32200 (eval $ac_compile) 2>conftest.er1
a848cd7e 32201 ac_status=$?
ac1cb8d3
VS
32202 grep -v '^ *+' conftest.er1 >conftest.err
32203 rm -f conftest.er1
32204 cat conftest.err >&5
a848cd7e
SC
32205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32206 (exit $ac_status); } &&
c9a66001 32207 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
32208 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32209 (eval $ac_try) 2>&5
32210 ac_status=$?
32211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32212 (exit $ac_status); }; } &&
32213 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
32214 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32215 (eval $ac_try) 2>&5
32216 ac_status=$?
32217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32218 (exit $ac_status); }; }; then
32219 ac_header_compiler=yes
32220else
32221 echo "$as_me: failed program was:" >&5
32222sed 's/^/| /' conftest.$ac_ext >&5
32223
32224ac_header_compiler=no
32225fi
ac1cb8d3 32226rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
32227echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
32228echo "${ECHO_T}$ac_header_compiler" >&6
32229
32230# Is the header present?
32231echo "$as_me:$LINENO: checking GL/gl.h presence" >&5
32232echo $ECHO_N "checking GL/gl.h presence... $ECHO_C" >&6
32233cat >conftest.$ac_ext <<_ACEOF
32234/* confdefs.h. */
32235_ACEOF
32236cat confdefs.h >>conftest.$ac_ext
32237cat >>conftest.$ac_ext <<_ACEOF
32238/* end confdefs.h. */
32239#include <GL/gl.h>
32240_ACEOF
32241if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
32242 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
32243 ac_status=$?
32244 grep -v '^ *+' conftest.er1 >conftest.err
32245 rm -f conftest.er1
32246 cat conftest.err >&5
32247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32248 (exit $ac_status); } >/dev/null; then
32249 if test -s conftest.err; then
5d7b7554
VZ
32250 ac_cpp_err=$ac_cxx_preproc_warn_flag
32251 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
32252 else
32253 ac_cpp_err=
32254 fi
32255else
32256 ac_cpp_err=yes
32257fi
32258if test -z "$ac_cpp_err"; then
32259 ac_header_preproc=yes
32260else
32261 echo "$as_me: failed program was:" >&5
32262sed 's/^/| /' conftest.$ac_ext >&5
32263
32264 ac_header_preproc=no
32265fi
32266rm -f conftest.err conftest.$ac_ext
32267echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
32268echo "${ECHO_T}$ac_header_preproc" >&6
32269
32270# So? What about this header?
5d7b7554 32271case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
ac1cb8d3 32272 yes:no: )
a848cd7e
SC
32273 { echo "$as_me:$LINENO: WARNING: GL/gl.h: accepted by the compiler, rejected by the preprocessor!" >&5
32274echo "$as_me: WARNING: GL/gl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
32275 { echo "$as_me:$LINENO: WARNING: GL/gl.h: proceeding with the compiler's result" >&5
32276echo "$as_me: WARNING: GL/gl.h: proceeding with the compiler's result" >&2;}
32277 ac_header_preproc=yes
a848cd7e 32278 ;;
ac1cb8d3 32279 no:yes:* )
a848cd7e
SC
32280 { echo "$as_me:$LINENO: WARNING: GL/gl.h: present but cannot be compiled" >&5
32281echo "$as_me: WARNING: GL/gl.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
32282 { echo "$as_me:$LINENO: WARNING: GL/gl.h: check for missing prerequisite headers?" >&5
32283echo "$as_me: WARNING: GL/gl.h: check for missing prerequisite headers?" >&2;}
32284 { echo "$as_me:$LINENO: WARNING: GL/gl.h: see the Autoconf documentation" >&5
32285echo "$as_me: WARNING: GL/gl.h: see the Autoconf documentation" >&2;}
32286 { echo "$as_me:$LINENO: WARNING: GL/gl.h: section \"Present But Cannot Be Compiled\"" >&5
32287echo "$as_me: WARNING: GL/gl.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
32288 { echo "$as_me:$LINENO: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&5
32289echo "$as_me: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
32290 { echo "$as_me:$LINENO: WARNING: GL/gl.h: in the future, the compiler will take precedence" >&5
32291echo "$as_me: WARNING: GL/gl.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
32292 (
32293 cat <<\_ASBOX
ac1cb8d3
VS
32294## ----------------------------------------- ##
32295## Report this to wx-dev@lists.wxwidgets.org ##
32296## ----------------------------------------- ##
a848cd7e
SC
32297_ASBOX
32298 ) |
32299 sed "s/^/$as_me: WARNING: /" >&2
32300 ;;
32301esac
32302echo "$as_me:$LINENO: checking for GL/gl.h" >&5
32303echo $ECHO_N "checking for GL/gl.h... $ECHO_C" >&6
32304if test "${ac_cv_header_GL_gl_h+set}" = set; then
32305 echo $ECHO_N "(cached) $ECHO_C" >&6
32306else
32307 ac_cv_header_GL_gl_h=$ac_header_preproc
32308fi
32309echo "$as_me:$LINENO: result: $ac_cv_header_GL_gl_h" >&5
32310echo "${ECHO_T}$ac_cv_header_GL_gl_h" >&6
32311
32312fi
32313if test $ac_cv_header_GL_gl_h = yes; then
32314
32315 found_gl=0
32316
32317 echo "$as_me:$LINENO: checking for -lGL" >&5
32318echo $ECHO_N "checking for -lGL... $ECHO_C" >&6
32319
0ad5d837
VZ
32320 ac_find_libraries=
32321 for ac_dir in $SEARCH_LIB;
a848cd7e 32322 do
3eca31dc 32323 for ac_extension in a so sl dylib dll.a; do
a848cd7e
SC
32324 if test -f "$ac_dir/libGL.$ac_extension"; then
32325 ac_find_libraries=$ac_dir
32326 break 2
32327 fi
32328 done
32329 done
32330
32331 if test "$ac_find_libraries" != "" ; then
69120ee4
VZ
32332 echo "$as_me:$LINENO: result: yes" >&5
32333echo "${ECHO_T}yes" >&6
32334
a848cd7e 32335
0ad5d837 32336 if test "$ac_find_libraries" = "default location"; then
a848cd7e
SC
32337 ac_path_to_link=""
32338 else
0ad5d837
VZ
32339 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
32340 result=$?
32341 if test $result = 0; then
32342 ac_path_to_link=""
32343 else
32344 ac_path_to_link=" -L$ac_find_libraries"
32345 fi
a848cd7e
SC
32346 fi
32347
32348 if test "$ac_path_to_link" != " -L/usr/lib" ; then
32349 LDFLAGS_GL="$ac_path_to_link"
32350 fi
32351
69120ee4
VZ
32352 echo "$as_me:$LINENO: checking for -lGLU" >&5
32353echo $ECHO_N "checking for -lGLU... $ECHO_C" >&6
a848cd7e 32354
0ad5d837
VZ
32355 ac_find_libraries=
32356 for ac_dir in $SEARCH_LIB;
32357 do
32358 for ac_extension in a so sl dylib dll.a; do
32359 if test -f "$ac_dir/libGLU.$ac_extension"; then
32360 ac_find_libraries=$ac_dir
32361 break 2
32362 fi
32363 done
32364 done
32365
a848cd7e
SC
32366 if test "$ac_find_libraries" != "" ; then
32367
0ad5d837 32368 if test "$ac_find_libraries" = "default location"; then
a848cd7e
SC
32369 ac_path_to_link=""
32370 else
0ad5d837
VZ
32371 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
32372 result=$?
32373 if test $result = 0; then
32374 ac_path_to_link=""
32375 else
32376 ac_path_to_link=" -L$ac_find_libraries"
32377 fi
a848cd7e
SC
32378 fi
32379
32380 if test "$ac_path_to_link" != " -L/usr/lib" -a \
32381 "$ac_path_to_link" != "$LDFLAGS_GL"; then
32382 LDFLAGS_GL="$LDFLAGS_GL$ac_path_to_link"
32383 fi
32384
32385 found_gl=1
32386 OPENGL_LIBS="-lGL -lGLU"
32387 echo "$as_me:$LINENO: result: yes" >&5
32388echo "${ECHO_T}yes" >&6
69120ee4
VZ
32389 else
32390 echo "$as_me:$LINENO: result: no" >&5
32391echo "${ECHO_T}no" >&6
a848cd7e 32392 fi
69120ee4
VZ
32393 else
32394 echo "$as_me:$LINENO: result: no" >&5
32395echo "${ECHO_T}no" >&6
a848cd7e
SC
32396 fi
32397
32398 if test "$found_gl" != 1; then
a848cd7e
SC
32399 echo "$as_me:$LINENO: checking for -lMesaGL" >&5
32400echo $ECHO_N "checking for -lMesaGL... $ECHO_C" >&6
32401
0ad5d837
VZ
32402 ac_find_libraries=
32403 for ac_dir in $SEARCH_LIB;
a848cd7e 32404 do
3eca31dc 32405 for ac_extension in a so sl dylib dll.a; do
a848cd7e
SC
32406 if test -f "$ac_dir/libMesaGL.$ac_extension"; then
32407 ac_find_libraries=$ac_dir
32408 break 2
32409 fi
32410 done
32411 done
32412
32413 if test "$ac_find_libraries" != "" ; then
32414
0ad5d837 32415 if test "$ac_find_libraries" = "default location"; then
a848cd7e
SC
32416 ac_path_to_link=""
32417 else
0ad5d837
VZ
32418 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
32419 result=$?
32420 if test $result = 0; then
32421 ac_path_to_link=""
32422 else
32423 ac_path_to_link=" -L$ac_find_libraries"
32424 fi
a848cd7e
SC
32425 fi
32426
32427 LDFLAGS_GL="$LDFLAGS$ac_path_to_link"
32428 OPENGL_LIBS="-lMesaGL -lMesaGLU"
32429 echo "$as_me:$LINENO: result: yes" >&5
32430echo "${ECHO_T}yes" >&6
32431 else
32432 echo "$as_me:$LINENO: result: no" >&5
32433echo "${ECHO_T}no" >&6
32434 fi
32435 fi
32436
32437fi
32438
32439
32440
32441 if test "x$OPENGL_LIBS" = "x"; then
32442 { { echo "$as_me:$LINENO: error: OpenGL libraries not available" >&5
32443echo "$as_me: error: OpenGL libraries not available" >&2;}
32444 { (exit 1); exit 1; }; }
32445 fi
32446 fi
32447
32448 if test "$wxUSE_OPENGL" = "yes"; then
32449 USE_OPENGL=1
32450 cat >>confdefs.h <<\_ACEOF
32451#define wxUSE_OPENGL 1
32452_ACEOF
32453
32454 cat >>confdefs.h <<\_ACEOF
32455#define wxUSE_GLCANVAS 1
32456_ACEOF
32457
32458 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS opengl opengl/cube opengl/penguin opengl/isosurf"
32459 fi
32460fi
32461
a848cd7e
SC
32462
32463if test -n "$TOOLKIT" ; then
32464 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WX${TOOLKIT}__"
32465fi
32466
a848cd7e
SC
32467
32468
32469if test "$wxUSE_SHARED" = "yes"; then
32470 case "${host}" in
32471 *-pc-msdosdjgpp )
32472 wxUSE_SHARED=no
32473 { echo "$as_me:$LINENO: WARNING: Host system doesn't support shared libraries, disabling" >&5
32474echo "$as_me: WARNING: Host system doesn't support shared libraries, disabling" >&2;}
32475 ;;
32476 esac
32477fi
32478
a848cd7e 32479if test "$wxUSE_SHARED" = "yes"; then
a848cd7e
SC
32480
32481
32482 found_versioning=no
32483
32484
32485 if test $found_versioning = no ; then
32486 echo "$as_me:$LINENO: checking if the linker accepts --version-script" >&5
32487echo $ECHO_N "checking if the linker accepts --version-script... $ECHO_C" >&6
32488if test "${wx_cv_version_script+set}" = set; then
32489 echo $ECHO_N "(cached) $ECHO_C" >&6
32490else
32491
32492 echo "VER_1 { *; };" >conftest.sym
32493 echo "int main() { return 0; }" >conftest.cpp
32494
32495 if { ac_try='
32496 $CXX -o conftest.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp
32497 -Wl,--version-script,conftest.sym >/dev/null 2>conftest.stderr'
32498 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32499 (eval $ac_try) 2>&5
32500 ac_status=$?
32501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32502 (exit $ac_status); }; } ; then
32503 if test -s conftest.stderr ; then
32504 wx_cv_version_script=no
32505 else
32506 wx_cv_version_script=yes
32507 fi
32508 else
32509 wx_cv_version_script=no
32510 fi
e5d4b470
MW
32511
32512 if test $wx_cv_version_script = yes
32513 then
32514 echo "struct B { virtual ~B() { } }; \
32515 struct D : public B { }; \
32516 void F() { D d; }" > conftest.cpp
32517
32518 if { ac_try='
32519 $CXX -shared -fPIC -o conftest1.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp
32520 -Wl,--version-script,conftest.sym >/dev/null 2>/dev/null'
32521 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32522 (eval $ac_try) 2>&5
32523 ac_status=$?
32524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32525 (exit $ac_status); }; } &&
32526 { ac_try='
32527 $CXX -shared -fPIC -o conftest2.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp
32528 -Wl,--version-script,conftest.sym conftest1.output >/dev/null 2>/dev/null'
32529 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32530 (eval $ac_try) 2>&5
32531 ac_status=$?
32532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32533 (exit $ac_status); }; }
32534 then
32535 if { ac_try='
32536 $CXX -shared -fPIC -o conftest3.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp
32537 -Wl,--version-script,conftest.sym conftest2.output conftest1.output >/dev/null 2>/dev/null'
32538 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32539 (eval $ac_try) 2>&5
32540 ac_status=$?
32541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32542 (exit $ac_status); }; }
32543 then
32544 wx_cv_version_script=yes
32545 else
32546 wx_cv_version_script=no
32547 fi
32548 fi
32549 fi
32550
a848cd7e 32551 rm -f conftest.output conftest.stderr conftest.sym conftest.cpp
e5d4b470 32552 rm -f conftest1.output conftest2.output conftest3.output
a848cd7e
SC
32553
32554fi
32555echo "$as_me:$LINENO: result: $wx_cv_version_script" >&5
32556echo "${ECHO_T}$wx_cv_version_script" >&6
32557 if test $wx_cv_version_script = yes ; then
32558 LDFLAGS_VERSIONING="-Wl,--version-script,\$(top_builddir)version-script"
32559 fi
32560 fi
32561
32562
32563 case "${host}" in
32564 *-*-linux* | *-*-gnu* )
32565 SAMPLES_RPATH_FLAG="-Wl,-rpath,\$(top_builddir)lib"
ffa0583f 32566 WXCONFIG_RPATH="-Wl,-rpath,\$libdir"
6ebeb4c7 32567 ;;
a848cd7e
SC
32568
32569 *-*-solaris2* )
32570 if test "$GCC" = yes ; then
c92ad099 32571 CPPFLAGS="-isystem /usr/openwin/include $CPPFLAGS"
a848cd7e
SC
32572
32573 saveLdflags="$LDFLAGS"
32574 LDFLAGS="$saveLdflags -Wl,-rpath,/"
32575 echo "$as_me:$LINENO: checking if the linker accepts -rpath" >&5
32576echo $ECHO_N "checking if the linker accepts -rpath... $ECHO_C" >&6
32577 cat >conftest.$ac_ext <<_ACEOF
32578/* confdefs.h. */
32579_ACEOF
32580cat confdefs.h >>conftest.$ac_ext
32581cat >>conftest.$ac_ext <<_ACEOF
32582/* end confdefs.h. */
32583
32584int
32585main ()
32586{
32587
32588 ;
32589 return 0;
32590}
32591_ACEOF
32592rm -f conftest.$ac_objext conftest$ac_exeext
32593if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 32594 (eval $ac_link) 2>conftest.er1
a848cd7e 32595 ac_status=$?
ac1cb8d3
VS
32596 grep -v '^ *+' conftest.er1 >conftest.err
32597 rm -f conftest.er1
32598 cat conftest.err >&5
a848cd7e
SC
32599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32600 (exit $ac_status); } &&
c9a66001 32601 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
32602 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32603 (eval $ac_try) 2>&5
32604 ac_status=$?
32605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32606 (exit $ac_status); }; } &&
32607 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
32608 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32609 (eval $ac_try) 2>&5
32610 ac_status=$?
32611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32612 (exit $ac_status); }; }; then
32613
32614 echo "$as_me:$LINENO: result: yes" >&5
32615echo "${ECHO_T}yes" >&6
32616 SAMPLES_RPATH_FLAG="-Wl,-rpath,\$(top_builddir)lib"
ffa0583f 32617 WXCONFIG_RPATH="-Wl,-rpath,\$libdir"
a848cd7e
SC
32618
32619else
32620 echo "$as_me: failed program was:" >&5
32621sed 's/^/| /' conftest.$ac_ext >&5
32622
32623
32624 echo "$as_me:$LINENO: result: no" >&5
32625echo "${ECHO_T}no" >&6
32626 echo "$as_me:$LINENO: checking if the linker accepts -R" >&5
32627echo $ECHO_N "checking if the linker accepts -R... $ECHO_C" >&6
32628 LDFLAGS="$saveLdflags -Wl,-R,/"
32629 cat >conftest.$ac_ext <<_ACEOF
32630/* confdefs.h. */
32631_ACEOF
32632cat confdefs.h >>conftest.$ac_ext
32633cat >>conftest.$ac_ext <<_ACEOF
32634/* end confdefs.h. */
32635
32636int
32637main ()
32638{
32639
32640 ;
32641 return 0;
32642}
32643_ACEOF
32644rm -f conftest.$ac_objext conftest$ac_exeext
32645if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 32646 (eval $ac_link) 2>conftest.er1
a848cd7e 32647 ac_status=$?
ac1cb8d3
VS
32648 grep -v '^ *+' conftest.er1 >conftest.err
32649 rm -f conftest.er1
32650 cat conftest.err >&5
a848cd7e
SC
32651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32652 (exit $ac_status); } &&
c9a66001 32653 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
32654 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32655 (eval $ac_try) 2>&5
32656 ac_status=$?
32657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32658 (exit $ac_status); }; } &&
32659 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
32660 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32661 (eval $ac_try) 2>&5
32662 ac_status=$?
32663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32664 (exit $ac_status); }; }; then
32665
ffa0583f 32666 echo "$as_me:$LINENO: result: yes" >&5
a848cd7e 32667echo "${ECHO_T}yes" >&6
ffa0583f
RL
32668 SAMPLES_RPATH_FLAG="-Wl,-R,\$(top_builddir)lib"
32669 WXCONFIG_RPATH="-Wl,-R,\$libdir"
32670
a848cd7e
SC
32671else
32672 echo "$as_me: failed program was:" >&5
32673sed 's/^/| /' conftest.$ac_ext >&5
32674
32675
32676 echo "$as_me:$LINENO: result: no" >&5
32677echo "${ECHO_T}no" >&6
32678
32679fi
ac1cb8d3
VS
32680rm -f conftest.err conftest.$ac_objext \
32681 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
32682
32683fi
ac1cb8d3
VS
32684rm -f conftest.err conftest.$ac_objext \
32685 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
32686 LDFLAGS="$saveLdflags"
32687 else
a848cd7e 32688 SAMPLES_RPATH_FLAG="-R\$(top_builddir)lib"
ffa0583f 32689 WXCONFIG_RPATH="-R\$libdir"
a848cd7e
SC
32690 fi
32691 ;;
32692
cfda0ea8 32693 *-*-darwin* )
0caebc27
MW
32694 install_name_tool=`which install_name_tool`
32695 if test "$install_name_tool" -a -x "$install_name_tool"; then
32696 SAMPLES_RPATH_POSTLINK="\$(top_builddir)change-install-names \$(LIBDIRNAME) \$(prefix) \$@"
32697 cat <<EOF >change-install-names
a848cd7e
SC
32698#!/bin/sh
32699libnames=\`cd \${1} ; ls -1 | grep '\.[0-9][0-9]*\.dylib\$'\`
32700inst_cmd="install_name_tool "
32701for i in \${libnames} ; do
32702 inst_cmd="\${inst_cmd} -change \${2}/lib/\${i} \${1}/\${i}"
32703done
32704\${inst_cmd} \${3}
32705EOF
0caebc27
MW
32706 chmod +x change-install-names
32707 fi
a848cd7e
SC
32708 ;;
32709
32710 *-*-cygwin* | *-*-mingw32* )
5ff751d6
VZ
32711 WXCONFIG_ONLY_CPPFLAGS="$WXCONFIG_ONLY_CPPFLAGS -DWXUSINGDLL"
32712 ;;
a848cd7e 32713
81f90336
MW
32714 *-*-hpux* )
32715 SAMPLES_RPATH_FLAG="-Wl,+b,\$(top_builddir)lib"
32716 WXCONFIG_RPATH="-Wl,+b,\$libdir"
5ff751d6 32717 ;;
81f90336 32718
a848cd7e 32719 esac
ceec2216 32720
ffa0583f
RL
32721 if test $wxUSE_RPATH = "no"; then
32722 SAMPLES_RPATH_FLAG=''
32723 SAMPLES_RPATH_POSTLINK=''
32724 WXCONFIG_RPATH=''
32725 fi
32726
32727 SHARED=1
32728
32729else
32730
ceec2216
RL
32731 config_linkage_component="-static"
32732 SHARED=0
ffa0583f 32733
ceec2216 32734fi
a848cd7e 32735
a848cd7e 32736
ceec2216
RL
32737UNICODE=0
32738lib_unicode_suffix=
32739WX_CHARTYPE="ansi"
32740if test "$wxUSE_UNICODE" = "yes"; then
32741 lib_unicode_suffix=u
32742 WX_CHARTYPE="unicode"
32743 UNICODE=1
a848cd7e
SC
32744fi
32745
ceec2216
RL
32746lib_debug_suffix=
32747WX_DEBUGTYPE="release"
32748DEBUG_FLAG=0
32749if test "$wxUSE_DEBUG_FLAG" = "yes"; then
32750 lib_debug_suffix=d
32751 WX_DEBUGTYPE="debug"
32752 DEBUG_FLAG=1
32753fi
a848cd7e 32754
ceec2216
RL
32755WX_FLAVOUR=${WX_FLAVOUR:+-$WX_FLAVOUR}
32756WX_LIB_FLAVOUR=`echo $WX_FLAVOUR | tr '-' '_'`
a848cd7e 32757
ceec2216
RL
32758DEBUG_INFO=0
32759if test "$wxUSE_DEBUG_INFO" = "yes"; then
32760 DEBUG_INFO=1
32761fi
a848cd7e 32762
ceec2216 32763WX_VERSION_TAG=`echo WX${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}_${WX_RELEASE} | tr "[a-z]" "[A-Z]"`
a848cd7e 32764
ceec2216 32765TOOLCHAIN_NAME="${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}-${WX_RELEASE}"
a848cd7e 32766
ceec2216 32767TOOLCHAIN_FULLNAME="${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}-${WX_CHARTYPE}-${WX_DEBUGTYPE}${config_linkage_component}-${WX_RELEASE}${WX_FLAVOUR}"
a848cd7e 32768
ceec2216
RL
32769if test "$cross_compiling" = "yes"; then
32770 HOST_SUFFIX="-$host_alias"
32771 TOOLCHAIN_NAME="$TOOLCHAIN_NAME$HOST_SUFFIX"
32772 TOOLCHAIN_FULLNAME="${host_alias}-$TOOLCHAIN_FULLNAME"
a848cd7e
SC
32773fi
32774
dd21ced8 32775WX_LIBRARY_BASENAME_NOGUI="wx_base${WXBASEPORT}${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}"
abc736fd
MW
32776if test "${TOOLKIT_DIR}" = "os2"; then
32777 WX_LIBRARY_BASENAME_GUI="wx_pm${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}"
32778else
32779 WX_LIBRARY_BASENAME_GUI="wx_${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}"
32780fi
ceec2216
RL
32781
32782
32783
1d1af5ea
DE
32784if test "$wxUSE_COCOA" = 1; then
32785
32786
32787 ac_ext=c
32788ac_cpp='$CPP $CPPFLAGS'
32789ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32790ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32791ac_compiler_gnu=$ac_cv_c_compiler_gnu
32792
32793ac_ext=m
32794
32795 echo "$as_me:$LINENO: checking if AppKit/NSEvent.h conflicts with CoreFoundation" >&5
32796echo $ECHO_N "checking if AppKit/NSEvent.h conflicts with CoreFoundation... $ECHO_C" >&6
32797 cat >conftest.$ac_ext <<_ACEOF
32798/* confdefs.h. */
32799_ACEOF
32800cat confdefs.h >>conftest.$ac_ext
32801cat >>conftest.$ac_ext <<_ACEOF
32802/* end confdefs.h. */
32803#include <AppKit/NSEvent.h>
32804#include <CoreFoundation/CoreFoundation.h>
32805
32806int
32807main ()
32808{
32809
32810 ;
32811 return 0;
32812}
32813_ACEOF
32814rm -f conftest.$ac_objext
32815if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32816 (eval $ac_compile) 2>conftest.er1
32817 ac_status=$?
32818 grep -v '^ *+' conftest.er1 >conftest.err
32819 rm -f conftest.er1
32820 cat conftest.err >&5
32821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32822 (exit $ac_status); } &&
c9a66001 32823 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
1d1af5ea
DE
32824 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32825 (eval $ac_try) 2>&5
32826 ac_status=$?
32827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32828 (exit $ac_status); }; } &&
32829 { ac_try='test -s conftest.$ac_objext'
32830 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32831 (eval $ac_try) 2>&5
32832 ac_status=$?
32833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32834 (exit $ac_status); }; }; then
32835 echo "$as_me:$LINENO: result: no" >&5
32836echo "${ECHO_T}no" >&6
32837else
32838 echo "$as_me: failed program was:" >&5
32839sed 's/^/| /' conftest.$ac_ext >&5
32840
32841echo "$as_me:$LINENO: result: yes" >&5
32842echo "${ECHO_T}yes" >&6
32843 echo "$as_me:$LINENO: checking if defining __Point__ will fix it" >&5
32844echo $ECHO_N "checking if defining __Point__ will fix it... $ECHO_C" >&6
32845 cat >conftest.$ac_ext <<_ACEOF
32846/* confdefs.h. */
32847_ACEOF
32848cat confdefs.h >>conftest.$ac_ext
32849cat >>conftest.$ac_ext <<_ACEOF
32850/* end confdefs.h. */
32851#define __Point__ 1
32852#include <AppKit/NSEvent.h>
32853#include <CoreFoundation/CoreFoundation.h>
32854
32855int
32856main ()
32857{
32858
32859 ;
32860 return 0;
32861}
32862_ACEOF
32863rm -f conftest.$ac_objext
32864if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32865 (eval $ac_compile) 2>conftest.er1
32866 ac_status=$?
32867 grep -v '^ *+' conftest.er1 >conftest.err
32868 rm -f conftest.er1
32869 cat conftest.err >&5
32870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32871 (exit $ac_status); } &&
c9a66001 32872 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
1d1af5ea
DE
32873 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32874 (eval $ac_try) 2>&5
32875 ac_status=$?
32876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32877 (exit $ac_status); }; } &&
32878 { ac_try='test -s conftest.$ac_objext'
32879 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32880 (eval $ac_try) 2>&5
32881 ac_status=$?
32882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32883 (exit $ac_status); }; }; then
32884 echo "$as_me:$LINENO: result: yes" >&5
32885echo "${ECHO_T}yes" >&6
32886 cat >>confdefs.h <<\_ACEOF
32887#define __Point__ 1
32888_ACEOF
32889
32890
32891else
32892 echo "$as_me: failed program was:" >&5
32893sed 's/^/| /' conftest.$ac_ext >&5
32894
32895{ { echo "$as_me:$LINENO: error: no
32896See \`config.log' for more details." >&5
32897echo "$as_me: error: no
32898See \`config.log' for more details." >&2;}
32899 { (exit 1); exit 1; }; }
32900
32901fi
32902rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32903
32904fi
32905rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5d7b7554
VZ
32906 ac_ext=cc
32907ac_cpp='$CXXCPP $CPPFLAGS'
32908ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32909ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32910ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
1d1af5ea
DE
32911
32912fi
32913
a848cd7e 32914if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1; then
abb9aae7
VZ
32915 WX_RESOURCES_MACOSX_ASCII="libwx_${TOOLCHAIN_NAME}.${wx_release_number}.r"
32916 WX_RESOURCES_MACOSX_DATA="libwx_${TOOLCHAIN_NAME}.${wx_release_number}.rsrc"
ceec2216 32917
a848cd7e 32918 LIBWXMACRES="\$(top_builddir)lib/${WX_RESOURCES_MACOSX_ASCII}"
a848cd7e
SC
32919
32920 # Extract the first word of "Rez", so it can be a program name with args.
32921set dummy Rez; ac_word=$2
32922echo "$as_me:$LINENO: checking for $ac_word" >&5
32923echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8ced02f6 32924if test "${ac_cv_prog_REZ+set}" = set; then
a848cd7e
SC
32925 echo $ECHO_N "(cached) $ECHO_C" >&6
32926else
8ced02f6
DE
32927 if test -n "$REZ"; then
32928 ac_cv_prog_REZ="$REZ" # Let the user override the test.
a848cd7e
SC
32929else
32930as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32931for as_dir in $PATH
32932do
32933 IFS=$as_save_IFS
32934 test -z "$as_dir" && as_dir=.
32935 for ac_exec_ext in '' $ac_executable_extensions; do
32936 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8ced02f6 32937 ac_cv_prog_REZ="Rez"
a848cd7e
SC
32938 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
32939 break 2
32940 fi
32941done
32942done
32943
8ced02f6 32944 test -z "$ac_cv_prog_REZ" && ac_cv_prog_REZ="/Developer/Tools/Rez"
a848cd7e
SC
32945fi
32946fi
8ced02f6
DE
32947REZ=$ac_cv_prog_REZ
32948if test -n "$REZ"; then
32949 echo "$as_me:$LINENO: result: $REZ" >&5
32950echo "${ECHO_T}$REZ" >&6
a848cd7e
SC
32951else
32952 echo "$as_me:$LINENO: result: no" >&5
32953echo "${ECHO_T}no" >&6
32954fi
32955
32956 # Extract the first word of "DeRez", so it can be a program name with args.
32957set dummy DeRez; ac_word=$2
32958echo "$as_me:$LINENO: checking for $ac_word" >&5
32959echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
32960if test "${ac_cv_prog_DEREZ+set}" = set; then
32961 echo $ECHO_N "(cached) $ECHO_C" >&6
32962else
32963 if test -n "$DEREZ"; then
32964 ac_cv_prog_DEREZ="$DEREZ" # Let the user override the test.
32965else
32966as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32967for as_dir in $PATH
32968do
32969 IFS=$as_save_IFS
32970 test -z "$as_dir" && as_dir=.
32971 for ac_exec_ext in '' $ac_executable_extensions; do
32972 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
32973 ac_cv_prog_DEREZ="DeRez"
32974 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
32975 break 2
32976 fi
32977done
32978done
32979
32980 test -z "$ac_cv_prog_DEREZ" && ac_cv_prog_DEREZ="/Developer/Tools/DeRez"
32981fi
32982fi
32983DEREZ=$ac_cv_prog_DEREZ
32984if test -n "$DEREZ"; then
32985 echo "$as_me:$LINENO: result: $DEREZ" >&5
32986echo "${ECHO_T}$DEREZ" >&6
32987else
32988 echo "$as_me:$LINENO: result: no" >&5
32989echo "${ECHO_T}no" >&6
32990fi
32991
32992 # Extract the first word of "SetFile", so it can be a program name with args.
32993set dummy SetFile; ac_word=$2
32994echo "$as_me:$LINENO: checking for $ac_word" >&5
32995echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
32996if test "${ac_cv_prog_SETFILE+set}" = set; then
32997 echo $ECHO_N "(cached) $ECHO_C" >&6
32998else
32999 if test -n "$SETFILE"; then
33000 ac_cv_prog_SETFILE="$SETFILE" # Let the user override the test.
33001else
33002as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33003for as_dir in $PATH
33004do
33005 IFS=$as_save_IFS
33006 test -z "$as_dir" && as_dir=.
33007 for ac_exec_ext in '' $ac_executable_extensions; do
33008 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
33009 ac_cv_prog_SETFILE="SetFile"
33010 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
33011 break 2
33012 fi
33013done
33014done
33015
33016 test -z "$ac_cv_prog_SETFILE" && ac_cv_prog_SETFILE="/Developer/Tools/SetFile"
33017fi
33018fi
33019SETFILE=$ac_cv_prog_SETFILE
33020if test -n "$SETFILE"; then
33021 echo "$as_me:$LINENO: result: $SETFILE" >&5
33022echo "${ECHO_T}$SETFILE" >&6
33023else
33024 echo "$as_me:$LINENO: result: no" >&5
33025echo "${ECHO_T}no" >&6
33026fi
33027
33028
33029 MACSETFILE="\$(SETFILE)"
33030
33031 if test "$wxUSE_MAC" = 1; then
8ced02f6 33032 POSTLINK_COMMAND="\$(REZ) -d __DARWIN__ -t APPL Carbon.r -o"
004ee6da
RL
33033 RESCOMP="$REZ"
33034 WXCONFIG_RESFLAGS="-d __DARWIN__ -t APPL Carbon.r -o"
a848cd7e 33035 else
004ee6da
RL
33036 POSTLINK_COMMAND="echo -n | \$(REZ) -d __DARWIN__ -t APPL ${LIBWXMACRES}"
33037 RESCOMP="echo -n \| $REZ"
33038 WXCONFIG_RESFLAGS="-d __DARWIN__ -t APPL \$libdir/$WX_RESOURCES_MACOSX_ASCII"
a848cd7e 33039 fi
004ee6da 33040
a848cd7e 33041else
ffa0583f 33042 MACSETFILE="@true"
a848cd7e 33043
8ced02f6 33044 if test "$wxUSE_PM" = 1; then
004ee6da
RL
33045 RESCOMP="emxbind"
33046 WXCONFIG_RESFLAGS="-ep"
33047
33048 POSTLINK_COMMAND="$RESCOMP $WXCONFIG_RESFLAGS"
a848cd7e 33049 else
8ced02f6 33050 POSTLINK_COMMAND="@true"
a848cd7e 33051 fi
004ee6da 33052
a848cd7e
SC
33053fi
33054
33055
33056
33057echo "$as_me:$LINENO: checking for mode_t" >&5
33058echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
33059if test "${ac_cv_type_mode_t+set}" = set; then
33060 echo $ECHO_N "(cached) $ECHO_C" >&6
33061else
33062 cat >conftest.$ac_ext <<_ACEOF
33063/* confdefs.h. */
33064_ACEOF
33065cat confdefs.h >>conftest.$ac_ext
33066cat >>conftest.$ac_ext <<_ACEOF
33067/* end confdefs.h. */
33068$ac_includes_default
33069int
33070main ()
33071{
33072if ((mode_t *) 0)
33073 return 0;
33074if (sizeof (mode_t))
33075 return 0;
33076 ;
33077 return 0;
33078}
33079_ACEOF
33080rm -f conftest.$ac_objext
33081if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 33082 (eval $ac_compile) 2>conftest.er1
a848cd7e 33083 ac_status=$?
ac1cb8d3
VS
33084 grep -v '^ *+' conftest.er1 >conftest.err
33085 rm -f conftest.er1
33086 cat conftest.err >&5
a848cd7e
SC
33087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33088 (exit $ac_status); } &&
c9a66001 33089 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
33090 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33091 (eval $ac_try) 2>&5
33092 ac_status=$?
33093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33094 (exit $ac_status); }; } &&
33095 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
33096 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33097 (eval $ac_try) 2>&5
33098 ac_status=$?
33099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33100 (exit $ac_status); }; }; then
33101 ac_cv_type_mode_t=yes
33102else
33103 echo "$as_me: failed program was:" >&5
33104sed 's/^/| /' conftest.$ac_ext >&5
33105
33106ac_cv_type_mode_t=no
33107fi
ac1cb8d3 33108rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
33109fi
33110echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
33111echo "${ECHO_T}$ac_cv_type_mode_t" >&6
33112if test $ac_cv_type_mode_t = yes; then
33113 :
33114else
33115
33116cat >>confdefs.h <<_ACEOF
33117#define mode_t int
33118_ACEOF
33119
33120fi
33121
33122echo "$as_me:$LINENO: checking for off_t" >&5
33123echo $ECHO_N "checking for off_t... $ECHO_C" >&6
33124if test "${ac_cv_type_off_t+set}" = set; then
33125 echo $ECHO_N "(cached) $ECHO_C" >&6
33126else
33127 cat >conftest.$ac_ext <<_ACEOF
33128/* confdefs.h. */
33129_ACEOF
33130cat confdefs.h >>conftest.$ac_ext
33131cat >>conftest.$ac_ext <<_ACEOF
33132/* end confdefs.h. */
33133$ac_includes_default
33134int
33135main ()
33136{
33137if ((off_t *) 0)
33138 return 0;
33139if (sizeof (off_t))
33140 return 0;
33141 ;
33142 return 0;
33143}
33144_ACEOF
33145rm -f conftest.$ac_objext
33146if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 33147 (eval $ac_compile) 2>conftest.er1
a848cd7e 33148 ac_status=$?
ac1cb8d3
VS
33149 grep -v '^ *+' conftest.er1 >conftest.err
33150 rm -f conftest.er1
33151 cat conftest.err >&5
a848cd7e
SC
33152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33153 (exit $ac_status); } &&
c9a66001 33154 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
33155 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33156 (eval $ac_try) 2>&5
33157 ac_status=$?
33158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33159 (exit $ac_status); }; } &&
33160 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
33161 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33162 (eval $ac_try) 2>&5
33163 ac_status=$?
33164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33165 (exit $ac_status); }; }; then
33166 ac_cv_type_off_t=yes
33167else
33168 echo "$as_me: failed program was:" >&5
33169sed 's/^/| /' conftest.$ac_ext >&5
33170
33171ac_cv_type_off_t=no
33172fi
ac1cb8d3 33173rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
33174fi
33175echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
33176echo "${ECHO_T}$ac_cv_type_off_t" >&6
33177if test $ac_cv_type_off_t = yes; then
33178 :
33179else
33180
33181cat >>confdefs.h <<_ACEOF
33182#define off_t long
33183_ACEOF
33184
33185fi
33186
33187echo "$as_me:$LINENO: checking for pid_t" >&5
33188echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
33189if test "${ac_cv_type_pid_t+set}" = set; then
33190 echo $ECHO_N "(cached) $ECHO_C" >&6
33191else
33192 cat >conftest.$ac_ext <<_ACEOF
33193/* confdefs.h. */
33194_ACEOF
33195cat confdefs.h >>conftest.$ac_ext
33196cat >>conftest.$ac_ext <<_ACEOF
33197/* end confdefs.h. */
33198$ac_includes_default
33199int
33200main ()
33201{
33202if ((pid_t *) 0)
33203 return 0;
33204if (sizeof (pid_t))
33205 return 0;
33206 ;
33207 return 0;
33208}
33209_ACEOF
33210rm -f conftest.$ac_objext
33211if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 33212 (eval $ac_compile) 2>conftest.er1
a848cd7e 33213 ac_status=$?
ac1cb8d3
VS
33214 grep -v '^ *+' conftest.er1 >conftest.err
33215 rm -f conftest.er1
33216 cat conftest.err >&5
a848cd7e
SC
33217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33218 (exit $ac_status); } &&
c9a66001 33219 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
33220 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33221 (eval $ac_try) 2>&5
33222 ac_status=$?
33223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33224 (exit $ac_status); }; } &&
33225 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
33226 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33227 (eval $ac_try) 2>&5
33228 ac_status=$?
33229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33230 (exit $ac_status); }; }; then
33231 ac_cv_type_pid_t=yes
33232else
33233 echo "$as_me: failed program was:" >&5
33234sed 's/^/| /' conftest.$ac_ext >&5
33235
33236ac_cv_type_pid_t=no
33237fi
ac1cb8d3 33238rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
33239fi
33240echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
33241echo "${ECHO_T}$ac_cv_type_pid_t" >&6
33242if test $ac_cv_type_pid_t = yes; then
33243 :
33244else
33245
33246cat >>confdefs.h <<_ACEOF
33247#define pid_t int
33248_ACEOF
33249
33250fi
33251
33252echo "$as_me:$LINENO: checking for size_t" >&5
33253echo $ECHO_N "checking for size_t... $ECHO_C" >&6
33254if test "${ac_cv_type_size_t+set}" = set; then
33255 echo $ECHO_N "(cached) $ECHO_C" >&6
33256else
33257 cat >conftest.$ac_ext <<_ACEOF
33258/* confdefs.h. */
33259_ACEOF
33260cat confdefs.h >>conftest.$ac_ext
33261cat >>conftest.$ac_ext <<_ACEOF
33262/* end confdefs.h. */
33263$ac_includes_default
33264int
33265main ()
33266{
33267if ((size_t *) 0)
33268 return 0;
33269if (sizeof (size_t))
33270 return 0;
33271 ;
33272 return 0;
33273}
33274_ACEOF
33275rm -f conftest.$ac_objext
33276if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 33277 (eval $ac_compile) 2>conftest.er1
a848cd7e 33278 ac_status=$?
ac1cb8d3
VS
33279 grep -v '^ *+' conftest.er1 >conftest.err
33280 rm -f conftest.er1
33281 cat conftest.err >&5
a848cd7e
SC
33282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33283 (exit $ac_status); } &&
c9a66001 33284 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
33285 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33286 (eval $ac_try) 2>&5
33287 ac_status=$?
33288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33289 (exit $ac_status); }; } &&
33290 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
33291 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33292 (eval $ac_try) 2>&5
33293 ac_status=$?
33294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33295 (exit $ac_status); }; }; then
33296 ac_cv_type_size_t=yes
33297else
33298 echo "$as_me: failed program was:" >&5
33299sed 's/^/| /' conftest.$ac_ext >&5
33300
33301ac_cv_type_size_t=no
33302fi
ac1cb8d3 33303rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
33304fi
33305echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
33306echo "${ECHO_T}$ac_cv_type_size_t" >&6
33307if test $ac_cv_type_size_t = yes; then
33308 :
33309else
33310
33311cat >>confdefs.h <<_ACEOF
33312#define size_t unsigned
33313_ACEOF
33314
33315fi
33316
33317echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
33318echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
33319if test "${ac_cv_type_uid_t+set}" = set; then
33320 echo $ECHO_N "(cached) $ECHO_C" >&6
33321else
33322 cat >conftest.$ac_ext <<_ACEOF
33323/* confdefs.h. */
33324_ACEOF
33325cat confdefs.h >>conftest.$ac_ext
33326cat >>conftest.$ac_ext <<_ACEOF
33327/* end confdefs.h. */
33328#include <sys/types.h>
33329
33330_ACEOF
33331if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
33332 $EGREP "uid_t" >/dev/null 2>&1; then
33333 ac_cv_type_uid_t=yes
33334else
33335 ac_cv_type_uid_t=no
33336fi
33337rm -f conftest*
33338
33339fi
33340echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
33341echo "${ECHO_T}$ac_cv_type_uid_t" >&6
33342if test $ac_cv_type_uid_t = no; then
33343
33344cat >>confdefs.h <<\_ACEOF
33345#define uid_t int
33346_ACEOF
33347
33348
33349cat >>confdefs.h <<\_ACEOF
33350#define gid_t int
33351_ACEOF
33352
33353fi
33354
33355
d51253e8
RL
33356echo "$as_me:$LINENO: checking for ssize_t" >&5
33357echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
33358if test "${ac_cv_type_ssize_t+set}" = set; then
33359 echo $ECHO_N "(cached) $ECHO_C" >&6
33360else
33361 cat >conftest.$ac_ext <<_ACEOF
33362/* confdefs.h. */
33363_ACEOF
33364cat confdefs.h >>conftest.$ac_ext
33365cat >>conftest.$ac_ext <<_ACEOF
33366/* end confdefs.h. */
33367$ac_includes_default
33368int
33369main ()
33370{
33371if ((ssize_t *) 0)
33372 return 0;
33373if (sizeof (ssize_t))
33374 return 0;
33375 ;
33376 return 0;
33377}
33378_ACEOF
33379rm -f conftest.$ac_objext
33380if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33381 (eval $ac_compile) 2>conftest.er1
33382 ac_status=$?
33383 grep -v '^ *+' conftest.er1 >conftest.err
33384 rm -f conftest.er1
33385 cat conftest.err >&5
33386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33387 (exit $ac_status); } &&
c9a66001 33388 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
d51253e8
RL
33389 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33390 (eval $ac_try) 2>&5
33391 ac_status=$?
33392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33393 (exit $ac_status); }; } &&
33394 { ac_try='test -s conftest.$ac_objext'
33395 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33396 (eval $ac_try) 2>&5
33397 ac_status=$?
33398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33399 (exit $ac_status); }; }; then
33400 ac_cv_type_ssize_t=yes
33401else
33402 echo "$as_me: failed program was:" >&5
33403sed 's/^/| /' conftest.$ac_ext >&5
33404
33405ac_cv_type_ssize_t=no
33406fi
33407rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33408fi
33409echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
33410echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
33411if test $ac_cv_type_ssize_t = yes; then
33412
33413cat >>confdefs.h <<_ACEOF
33414#define HAVE_SSIZE_T 1
33415_ACEOF
33416
33417
33418fi
33419
33420
a848cd7e
SC
33421echo "$as_me:$LINENO: checking if size_t is unsigned int" >&5
33422echo $ECHO_N "checking if size_t is unsigned int... $ECHO_C" >&6
33423if test "${wx_cv_size_t_is_uint+set}" = set; then
33424 echo $ECHO_N "(cached) $ECHO_C" >&6
33425else
33426
33427 cat >conftest.$ac_ext <<_ACEOF
33428/* confdefs.h. */
33429_ACEOF
33430cat confdefs.h >>conftest.$ac_ext
33431cat >>conftest.$ac_ext <<_ACEOF
33432/* end confdefs.h. */
33433#include <stddef.h>
33434int
33435main ()
33436{
33437
33438 return 0; }
33439
33440 struct Foo { void foo(size_t); void foo(unsigned int); };
33441
33442 int bar() {
33443
33444 ;
33445 return 0;
33446}
33447_ACEOF
33448rm -f conftest.$ac_objext
33449if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 33450 (eval $ac_compile) 2>conftest.er1
a848cd7e 33451 ac_status=$?
ac1cb8d3
VS
33452 grep -v '^ *+' conftest.er1 >conftest.err
33453 rm -f conftest.er1
33454 cat conftest.err >&5
a848cd7e
SC
33455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33456 (exit $ac_status); } &&
c9a66001 33457 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
33458 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33459 (eval $ac_try) 2>&5
33460 ac_status=$?
33461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33462 (exit $ac_status); }; } &&
33463 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
33464 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33465 (eval $ac_try) 2>&5
33466 ac_status=$?
33467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33468 (exit $ac_status); }; }; then
33469 wx_cv_size_t_is_uint=no
33470else
33471 echo "$as_me: failed program was:" >&5
33472sed 's/^/| /' conftest.$ac_ext >&5
33473
33474wx_cv_size_t_is_uint=yes
33475
33476fi
ac1cb8d3 33477rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
33478
33479
33480fi
33481echo "$as_me:$LINENO: result: $wx_cv_size_t_is_uint" >&5
33482echo "${ECHO_T}$wx_cv_size_t_is_uint" >&6
33483
33484if test "$wx_cv_size_t_is_uint" = "yes"; then
33485 cat >>confdefs.h <<\_ACEOF
33486#define wxSIZE_T_IS_UINT 1
33487_ACEOF
33488
33489else
33490 echo "$as_me:$LINENO: checking if size_t is unsigned long" >&5
33491echo $ECHO_N "checking if size_t is unsigned long... $ECHO_C" >&6
33492if test "${wx_cv_size_t_is_ulong+set}" = set; then
33493 echo $ECHO_N "(cached) $ECHO_C" >&6
33494else
33495 cat >conftest.$ac_ext <<_ACEOF
33496/* confdefs.h. */
33497_ACEOF
33498cat confdefs.h >>conftest.$ac_ext
33499cat >>conftest.$ac_ext <<_ACEOF
33500/* end confdefs.h. */
33501#include <stddef.h>
33502int
33503main ()
33504{
33505
33506 return 0; }
33507
33508 struct Foo { void foo(size_t); void foo(unsigned long); };
33509
33510 int bar() {
33511
33512 ;
33513 return 0;
33514}
33515_ACEOF
33516rm -f conftest.$ac_objext
33517if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 33518 (eval $ac_compile) 2>conftest.er1
a848cd7e 33519 ac_status=$?
ac1cb8d3
VS
33520 grep -v '^ *+' conftest.er1 >conftest.err
33521 rm -f conftest.er1
33522 cat conftest.err >&5
a848cd7e
SC
33523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33524 (exit $ac_status); } &&
c9a66001 33525 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
33526 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33527 (eval $ac_try) 2>&5
33528 ac_status=$?
33529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33530 (exit $ac_status); }; } &&
33531 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
33532 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33533 (eval $ac_try) 2>&5
33534 ac_status=$?
33535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33536 (exit $ac_status); }; }; then
33537 wx_cv_size_t_is_ulong=no
33538else
33539 echo "$as_me: failed program was:" >&5
33540sed 's/^/| /' conftest.$ac_ext >&5
33541
33542wx_cv_size_t_is_ulong=yes
33543
33544fi
ac1cb8d3 33545rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
33546
33547fi
33548echo "$as_me:$LINENO: result: $wx_cv_size_t_is_ulong" >&5
33549echo "${ECHO_T}$wx_cv_size_t_is_ulong" >&6
33550
33551 if test "$wx_cv_size_t_is_ulong" = "yes"; then
33552 cat >>confdefs.h <<\_ACEOF
33553#define wxSIZE_T_IS_ULONG 1
33554_ACEOF
33555
33556 fi
33557fi
33558
a848cd7e
SC
33559
33560echo "$as_me:$LINENO: checking for pw_gecos in struct passwd" >&5
33561echo $ECHO_N "checking for pw_gecos in struct passwd... $ECHO_C" >&6
33562if test "${wx_cv_struct_pw_gecos+set}" = set; then
33563 echo $ECHO_N "(cached) $ECHO_C" >&6
33564else
33565
33566 cat >conftest.$ac_ext <<_ACEOF
33567/* confdefs.h. */
33568_ACEOF
33569cat confdefs.h >>conftest.$ac_ext
33570cat >>conftest.$ac_ext <<_ACEOF
33571/* end confdefs.h. */
33572#include <pwd.h>
33573int
33574main ()
33575{
33576
33577 char *p;
33578 struct passwd *pw;
33579 p = pw->pw_gecos;
33580
33581 ;
33582 return 0;
33583}
33584_ACEOF
33585rm -f conftest.$ac_objext
33586if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 33587 (eval $ac_compile) 2>conftest.er1
a848cd7e 33588 ac_status=$?
ac1cb8d3
VS
33589 grep -v '^ *+' conftest.er1 >conftest.err
33590 rm -f conftest.er1
33591 cat conftest.err >&5
a848cd7e
SC
33592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33593 (exit $ac_status); } &&
c9a66001 33594 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
33595 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33596 (eval $ac_try) 2>&5
33597 ac_status=$?
33598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33599 (exit $ac_status); }; } &&
33600 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
33601 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33602 (eval $ac_try) 2>&5
33603 ac_status=$?
33604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33605 (exit $ac_status); }; }; then
33606
33607 wx_cv_struct_pw_gecos=yes
33608
33609else
33610 echo "$as_me: failed program was:" >&5
33611sed 's/^/| /' conftest.$ac_ext >&5
33612
33613
33614 wx_cv_struct_pw_gecos=no
33615
33616
33617fi
ac1cb8d3 33618rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
33619
33620
33621fi
33622echo "$as_me:$LINENO: result: $wx_cv_struct_pw_gecos" >&5
33623echo "${ECHO_T}$wx_cv_struct_pw_gecos" >&6
33624
33625if test "$wx_cv_struct_pw_gecos" = "yes"; then
33626 cat >>confdefs.h <<\_ACEOF
33627#define HAVE_PW_GECOS 1
33628_ACEOF
33629
33630fi
33631
33632
47a7e797 33633if test "$wxUSE_WCHAR_T" = "yes"; then
a848cd7e
SC
33634 cat >>confdefs.h <<\_ACEOF
33635#define wxUSE_WCHAR_T 1
33636_ACEOF
33637
33638
33639 WCSLEN_FOUND=0
33640 WCHAR_LINK=
33641
33642for ac_func in wcslen
33643do
33644as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33645echo "$as_me:$LINENO: checking for $ac_func" >&5
33646echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
33647if eval "test \"\${$as_ac_var+set}\" = set"; then
33648 echo $ECHO_N "(cached) $ECHO_C" >&6
33649else
33650 cat >conftest.$ac_ext <<_ACEOF
33651/* confdefs.h. */
33652_ACEOF
33653cat confdefs.h >>conftest.$ac_ext
33654cat >>conftest.$ac_ext <<_ACEOF
33655/* end confdefs.h. */
ac1cb8d3
VS
33656/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33657 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33658#define $ac_func innocuous_$ac_func
33659
a848cd7e
SC
33660/* System header to define __stub macros and hopefully few prototypes,
33661 which can conflict with char $ac_func (); below.
33662 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33663 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 33664
a848cd7e
SC
33665#ifdef __STDC__
33666# include <limits.h>
33667#else
33668# include <assert.h>
33669#endif
ac1cb8d3
VS
33670
33671#undef $ac_func
33672
a848cd7e
SC
33673/* Override any gcc2 internal prototype to avoid an error. */
33674#ifdef __cplusplus
33675extern "C"
33676{
33677#endif
33678/* We use char because int might match the return type of a gcc2
33679 builtin and then its argument prototype would still apply. */
33680char $ac_func ();
33681/* The GNU C library defines this for functions which it implements
33682 to always fail with ENOSYS. Some functions are actually named
33683 something starting with __ and the normal name is an alias. */
33684#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
33685choke me
33686#else
33687char (*f) () = $ac_func;
33688#endif
33689#ifdef __cplusplus
33690}
33691#endif
33692
33693int
33694main ()
33695{
33696return f != $ac_func;
33697 ;
33698 return 0;
33699}
33700_ACEOF
33701rm -f conftest.$ac_objext conftest$ac_exeext
33702if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 33703 (eval $ac_link) 2>conftest.er1
a848cd7e 33704 ac_status=$?
ac1cb8d3
VS
33705 grep -v '^ *+' conftest.er1 >conftest.err
33706 rm -f conftest.er1
33707 cat conftest.err >&5
a848cd7e
SC
33708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33709 (exit $ac_status); } &&
c9a66001 33710 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
33711 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33712 (eval $ac_try) 2>&5
33713 ac_status=$?
33714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33715 (exit $ac_status); }; } &&
33716 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
33717 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33718 (eval $ac_try) 2>&5
33719 ac_status=$?
33720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33721 (exit $ac_status); }; }; then
33722 eval "$as_ac_var=yes"
33723else
33724 echo "$as_me: failed program was:" >&5
33725sed 's/^/| /' conftest.$ac_ext >&5
33726
33727eval "$as_ac_var=no"
33728fi
ac1cb8d3
VS
33729rm -f conftest.err conftest.$ac_objext \
33730 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
33731fi
33732echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
33733echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
33734if test `eval echo '${'$as_ac_var'}'` = yes; then
33735 cat >>confdefs.h <<_ACEOF
33736#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33737_ACEOF
33738 WCSLEN_FOUND=1
33739fi
33740done
33741
33742
33743 if test "$WCSLEN_FOUND" = 0; then
33744 if test "$TOOLKIT" = "MSW"; then
33745 echo "$as_me:$LINENO: checking for wcslen in -lmsvcrt" >&5
33746echo $ECHO_N "checking for wcslen in -lmsvcrt... $ECHO_C" >&6
33747if test "${ac_cv_lib_msvcrt_wcslen+set}" = set; then
33748 echo $ECHO_N "(cached) $ECHO_C" >&6
33749else
33750 ac_check_lib_save_LIBS=$LIBS
33751LIBS="-lmsvcrt $LIBS"
33752cat >conftest.$ac_ext <<_ACEOF
33753/* confdefs.h. */
33754_ACEOF
33755cat confdefs.h >>conftest.$ac_ext
33756cat >>conftest.$ac_ext <<_ACEOF
33757/* end confdefs.h. */
33758
33759/* Override any gcc2 internal prototype to avoid an error. */
33760#ifdef __cplusplus
33761extern "C"
33762#endif
33763/* We use char because int might match the return type of a gcc2
33764 builtin and then its argument prototype would still apply. */
33765char wcslen ();
33766int
33767main ()
33768{
33769wcslen ();
33770 ;
33771 return 0;
33772}
33773_ACEOF
33774rm -f conftest.$ac_objext conftest$ac_exeext
33775if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 33776 (eval $ac_link) 2>conftest.er1
a848cd7e 33777 ac_status=$?
ac1cb8d3
VS
33778 grep -v '^ *+' conftest.er1 >conftest.err
33779 rm -f conftest.er1
33780 cat conftest.err >&5
a848cd7e
SC
33781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33782 (exit $ac_status); } &&
c9a66001 33783 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
33784 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33785 (eval $ac_try) 2>&5
33786 ac_status=$?
33787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33788 (exit $ac_status); }; } &&
33789 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
33790 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33791 (eval $ac_try) 2>&5
33792 ac_status=$?
33793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33794 (exit $ac_status); }; }; then
33795 ac_cv_lib_msvcrt_wcslen=yes
33796else
33797 echo "$as_me: failed program was:" >&5
33798sed 's/^/| /' conftest.$ac_ext >&5
33799
33800ac_cv_lib_msvcrt_wcslen=no
33801fi
ac1cb8d3
VS
33802rm -f conftest.err conftest.$ac_objext \
33803 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
33804LIBS=$ac_check_lib_save_LIBS
33805fi
33806echo "$as_me:$LINENO: result: $ac_cv_lib_msvcrt_wcslen" >&5
33807echo "${ECHO_T}$ac_cv_lib_msvcrt_wcslen" >&6
33808if test $ac_cv_lib_msvcrt_wcslen = yes; then
33809 WCHAR_OK=1
33810fi
33811
33812 else
33813 echo "$as_me:$LINENO: checking for wcslen in -lw" >&5
33814echo $ECHO_N "checking for wcslen in -lw... $ECHO_C" >&6
33815if test "${ac_cv_lib_w_wcslen+set}" = set; then
33816 echo $ECHO_N "(cached) $ECHO_C" >&6
33817else
33818 ac_check_lib_save_LIBS=$LIBS
33819LIBS="-lw $LIBS"
33820cat >conftest.$ac_ext <<_ACEOF
33821/* confdefs.h. */
33822_ACEOF
33823cat confdefs.h >>conftest.$ac_ext
33824cat >>conftest.$ac_ext <<_ACEOF
33825/* end confdefs.h. */
33826
33827/* Override any gcc2 internal prototype to avoid an error. */
33828#ifdef __cplusplus
33829extern "C"
33830#endif
33831/* We use char because int might match the return type of a gcc2
33832 builtin and then its argument prototype would still apply. */
33833char wcslen ();
33834int
33835main ()
33836{
33837wcslen ();
33838 ;
33839 return 0;
33840}
33841_ACEOF
33842rm -f conftest.$ac_objext conftest$ac_exeext
33843if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 33844 (eval $ac_link) 2>conftest.er1
a848cd7e 33845 ac_status=$?
ac1cb8d3
VS
33846 grep -v '^ *+' conftest.er1 >conftest.err
33847 rm -f conftest.er1
33848 cat conftest.err >&5
a848cd7e
SC
33849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33850 (exit $ac_status); } &&
c9a66001 33851 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
33852 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33853 (eval $ac_try) 2>&5
33854 ac_status=$?
33855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33856 (exit $ac_status); }; } &&
33857 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
33858 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33859 (eval $ac_try) 2>&5
33860 ac_status=$?
33861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33862 (exit $ac_status); }; }; then
33863 ac_cv_lib_w_wcslen=yes
33864else
33865 echo "$as_me: failed program was:" >&5
33866sed 's/^/| /' conftest.$ac_ext >&5
33867
33868ac_cv_lib_w_wcslen=no
33869fi
ac1cb8d3
VS
33870rm -f conftest.err conftest.$ac_objext \
33871 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
33872LIBS=$ac_check_lib_save_LIBS
33873fi
33874echo "$as_me:$LINENO: result: $ac_cv_lib_w_wcslen" >&5
33875echo "${ECHO_T}$ac_cv_lib_w_wcslen" >&6
33876if test $ac_cv_lib_w_wcslen = yes; then
33877
33878 WCHAR_LINK=" -lw"
33879 WCSLEN_FOUND=1
33880
33881fi
33882
33883 fi
33884 fi
33885
33886 if test "$WCSLEN_FOUND" = 1; then
33887 cat >>confdefs.h <<\_ACEOF
33888#define HAVE_WCSLEN 1
33889_ACEOF
33890
33891 fi
33892
efdf6afe 33893 if test "$USE_HPUX" = 1 -a "$GCC" != "yes"; then
c92ad099 33894 CPPFLAGS="-D_INCLUDE__STDC_A1_SOURCE $CPPFLAGS"
473276a9
VS
33895 fi
33896
efdf6afe
VZ
33897 echo "$as_me:$LINENO: checking for mbstate_t" >&5
33898echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6
33899if test "${ac_cv_type_mbstate_t+set}" = set; then
33900 echo $ECHO_N "(cached) $ECHO_C" >&6
33901else
33902 cat >conftest.$ac_ext <<_ACEOF
33903/* confdefs.h. */
33904_ACEOF
33905cat confdefs.h >>conftest.$ac_ext
33906cat >>conftest.$ac_ext <<_ACEOF
33907/* end confdefs.h. */
33908#include <wchar.h>
33909
33910int
33911main ()
33912{
33913if ((mbstate_t *) 0)
33914 return 0;
33915if (sizeof (mbstate_t))
33916 return 0;
33917 ;
33918 return 0;
33919}
33920_ACEOF
33921rm -f conftest.$ac_objext
33922if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33923 (eval $ac_compile) 2>conftest.er1
33924 ac_status=$?
33925 grep -v '^ *+' conftest.er1 >conftest.err
33926 rm -f conftest.er1
33927 cat conftest.err >&5
33928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33929 (exit $ac_status); } &&
c9a66001 33930 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
efdf6afe
VZ
33931 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33932 (eval $ac_try) 2>&5
33933 ac_status=$?
33934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33935 (exit $ac_status); }; } &&
33936 { ac_try='test -s conftest.$ac_objext'
33937 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33938 (eval $ac_try) 2>&5
33939 ac_status=$?
33940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33941 (exit $ac_status); }; }; then
33942 ac_cv_type_mbstate_t=yes
33943else
33944 echo "$as_me: failed program was:" >&5
33945sed 's/^/| /' conftest.$ac_ext >&5
33946
33947ac_cv_type_mbstate_t=no
33948fi
33949rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33950fi
33951echo "$as_me:$LINENO: result: $ac_cv_type_mbstate_t" >&5
33952echo "${ECHO_T}$ac_cv_type_mbstate_t" >&6
33953if test $ac_cv_type_mbstate_t = yes; then
33954
33955cat >>confdefs.h <<_ACEOF
33956#define HAVE_MBSTATE_T 1
33957_ACEOF
33958
a848cd7e
SC
33959
33960for ac_func in wcsrtombs
33961do
33962as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33963echo "$as_me:$LINENO: checking for $ac_func" >&5
33964echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
33965if eval "test \"\${$as_ac_var+set}\" = set"; then
33966 echo $ECHO_N "(cached) $ECHO_C" >&6
33967else
33968 cat >conftest.$ac_ext <<_ACEOF
33969/* confdefs.h. */
33970_ACEOF
33971cat confdefs.h >>conftest.$ac_ext
33972cat >>conftest.$ac_ext <<_ACEOF
33973/* end confdefs.h. */
ac1cb8d3
VS
33974/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33975 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33976#define $ac_func innocuous_$ac_func
33977
a848cd7e
SC
33978/* System header to define __stub macros and hopefully few prototypes,
33979 which can conflict with char $ac_func (); below.
33980 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33981 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 33982
a848cd7e
SC
33983#ifdef __STDC__
33984# include <limits.h>
33985#else
33986# include <assert.h>
33987#endif
ac1cb8d3
VS
33988
33989#undef $ac_func
33990
a848cd7e
SC
33991/* Override any gcc2 internal prototype to avoid an error. */
33992#ifdef __cplusplus
33993extern "C"
33994{
33995#endif
33996/* We use char because int might match the return type of a gcc2
33997 builtin and then its argument prototype would still apply. */
33998char $ac_func ();
33999/* The GNU C library defines this for functions which it implements
34000 to always fail with ENOSYS. Some functions are actually named
34001 something starting with __ and the normal name is an alias. */
34002#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
34003choke me
34004#else
34005char (*f) () = $ac_func;
34006#endif
34007#ifdef __cplusplus
34008}
34009#endif
34010
34011int
34012main ()
34013{
34014return f != $ac_func;
34015 ;
34016 return 0;
34017}
34018_ACEOF
34019rm -f conftest.$ac_objext conftest$ac_exeext
34020if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 34021 (eval $ac_link) 2>conftest.er1
a848cd7e 34022 ac_status=$?
ac1cb8d3
VS
34023 grep -v '^ *+' conftest.er1 >conftest.err
34024 rm -f conftest.er1
34025 cat conftest.err >&5
a848cd7e
SC
34026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34027 (exit $ac_status); } &&
c9a66001 34028 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
34029 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34030 (eval $ac_try) 2>&5
34031 ac_status=$?
34032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34033 (exit $ac_status); }; } &&
34034 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
34035 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34036 (eval $ac_try) 2>&5
34037 ac_status=$?
34038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34039 (exit $ac_status); }; }; then
34040 eval "$as_ac_var=yes"
34041else
34042 echo "$as_me: failed program was:" >&5
34043sed 's/^/| /' conftest.$ac_ext >&5
34044
34045eval "$as_ac_var=no"
34046fi
ac1cb8d3
VS
34047rm -f conftest.err conftest.$ac_objext \
34048 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
34049fi
34050echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
34051echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
34052if test `eval echo '${'$as_ac_var'}'` = yes; then
34053 cat >>confdefs.h <<_ACEOF
34054#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34055_ACEOF
34056
34057fi
34058done
34059
efdf6afe
VZ
34060fi
34061
a848cd7e
SC
34062else
34063 { echo "$as_me:$LINENO: WARNING: Wide character support is unavailable" >&5
34064echo "$as_me: WARNING: Wide character support is unavailable" >&2;}
34065fi
34066
a848cd7e 34067
4a767dd5
VZ
34068
34069for ac_func in snprintf vsnprintf
a848cd7e
SC
34070do
34071as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34072echo "$as_me:$LINENO: checking for $ac_func" >&5
34073echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
34074if eval "test \"\${$as_ac_var+set}\" = set"; then
34075 echo $ECHO_N "(cached) $ECHO_C" >&6
34076else
34077 cat >conftest.$ac_ext <<_ACEOF
34078/* confdefs.h. */
34079_ACEOF
34080cat confdefs.h >>conftest.$ac_ext
34081cat >>conftest.$ac_ext <<_ACEOF
34082/* end confdefs.h. */
ac1cb8d3
VS
34083/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34084 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34085#define $ac_func innocuous_$ac_func
34086
a848cd7e
SC
34087/* System header to define __stub macros and hopefully few prototypes,
34088 which can conflict with char $ac_func (); below.
34089 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34090 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 34091
a848cd7e
SC
34092#ifdef __STDC__
34093# include <limits.h>
34094#else
34095# include <assert.h>
34096#endif
ac1cb8d3
VS
34097
34098#undef $ac_func
34099
a848cd7e
SC
34100/* Override any gcc2 internal prototype to avoid an error. */
34101#ifdef __cplusplus
34102extern "C"
34103{
34104#endif
34105/* We use char because int might match the return type of a gcc2
34106 builtin and then its argument prototype would still apply. */
34107char $ac_func ();
34108/* The GNU C library defines this for functions which it implements
34109 to always fail with ENOSYS. Some functions are actually named
34110 something starting with __ and the normal name is an alias. */
34111#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
34112choke me
34113#else
34114char (*f) () = $ac_func;
34115#endif
34116#ifdef __cplusplus
34117}
34118#endif
34119
34120int
34121main ()
34122{
34123return f != $ac_func;
34124 ;
34125 return 0;
34126}
34127_ACEOF
34128rm -f conftest.$ac_objext conftest$ac_exeext
34129if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 34130 (eval $ac_link) 2>conftest.er1
a848cd7e 34131 ac_status=$?
ac1cb8d3
VS
34132 grep -v '^ *+' conftest.er1 >conftest.err
34133 rm -f conftest.er1
34134 cat conftest.err >&5
a848cd7e
SC
34135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34136 (exit $ac_status); } &&
c9a66001 34137 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
34138 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34139 (eval $ac_try) 2>&5
34140 ac_status=$?
34141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34142 (exit $ac_status); }; } &&
34143 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
34144 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34145 (eval $ac_try) 2>&5
34146 ac_status=$?
34147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34148 (exit $ac_status); }; }; then
34149 eval "$as_ac_var=yes"
34150else
34151 echo "$as_me: failed program was:" >&5
34152sed 's/^/| /' conftest.$ac_ext >&5
34153
34154eval "$as_ac_var=no"
34155fi
ac1cb8d3
VS
34156rm -f conftest.err conftest.$ac_objext \
34157 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
34158fi
34159echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
34160echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
34161if test `eval echo '${'$as_ac_var'}'` = yes; then
34162 cat >>confdefs.h <<_ACEOF
34163#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34164_ACEOF
34165
34166fi
34167done
34168
34169
34170if test "$ac_cv_func_vsnprintf" = "yes"; then
34171 echo "$as_me:$LINENO: checking for vsnprintf declaration" >&5
34172echo $ECHO_N "checking for vsnprintf declaration... $ECHO_C" >&6
34173if test "${wx_cv_func_vsnprintf_decl+set}" = set; then
34174 echo $ECHO_N "(cached) $ECHO_C" >&6
34175else
34176
efdf6afe 34177 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
34178/* confdefs.h. */
34179_ACEOF
34180cat confdefs.h >>conftest.$ac_ext
34181cat >>conftest.$ac_ext <<_ACEOF
34182/* end confdefs.h. */
34183
34184 #include <stdio.h>
34185 #include <stdarg.h>
efdf6afe
VZ
34186 #ifdef __MSL__
34187 #if __MSL__ >= 0x6000
34188 namespace std {}
34189 using namespace std;
34190 #endif
34191 #endif
a848cd7e
SC
34192
34193int
34194main ()
34195{
34196
34197 char *buf;
34198 va_list ap;
62fa8b3a 34199 vsnprintf(buf, 10u, "%s", ap);
c122b164
DE
34200
34201 ;
34202 return 0;
34203}
34204_ACEOF
34205rm -f conftest.$ac_objext
34206if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34207 (eval $ac_compile) 2>conftest.er1
34208 ac_status=$?
34209 grep -v '^ *+' conftest.er1 >conftest.err
34210 rm -f conftest.er1
34211 cat conftest.err >&5
34212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34213 (exit $ac_status); } &&
c9a66001 34214 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
c122b164
DE
34215 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34216 (eval $ac_try) 2>&5
34217 ac_status=$?
34218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34219 (exit $ac_status); }; } &&
34220 { ac_try='test -s conftest.$ac_objext'
34221 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34222 (eval $ac_try) 2>&5
34223 ac_status=$?
34224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34225 (exit $ac_status); }; }; then
34226 wx_cv_func_vsnprintf_decl=yes
34227else
34228 echo "$as_me: failed program was:" >&5
34229sed 's/^/| /' conftest.$ac_ext >&5
34230
a848cd7e
SC
34231wx_cv_func_vsnprintf_decl=no
34232
34233fi
ac1cb8d3 34234rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
34235
34236
34237fi
34238echo "$as_me:$LINENO: result: $wx_cv_func_vsnprintf_decl" >&5
34239echo "${ECHO_T}$wx_cv_func_vsnprintf_decl" >&6
34240
34241 if test "$wx_cv_func_vsnprintf_decl" = "yes"; then
34242 cat >>confdefs.h <<\_ACEOF
34243#define HAVE_VSNPRINTF_DECL 1
34244_ACEOF
34245
62fa8b3a
MW
34246
34247 echo "$as_me:$LINENO: checking if vsnprintf declaration is broken" >&5
34248echo $ECHO_N "checking if vsnprintf declaration is broken... $ECHO_C" >&6
34249if test "${wx_cv_func_broken_vsnprintf_decl+set}" = set; then
34250 echo $ECHO_N "(cached) $ECHO_C" >&6
34251else
34252
34253 cat >conftest.$ac_ext <<_ACEOF
34254/* confdefs.h. */
34255_ACEOF
34256cat confdefs.h >>conftest.$ac_ext
34257cat >>conftest.$ac_ext <<_ACEOF
34258/* end confdefs.h. */
34259
34260 #include <stdio.h>
34261 #include <stdarg.h>
34262 #ifdef __MSL__
34263 #if __MSL__ >= 0x6000
34264 namespace std {}
34265 using namespace std;
34266 #endif
34267 #endif
34268
34269int
34270main ()
34271{
34272
34273 char *buf;
34274 va_list ap;
34275 const char *fmt = "%s";
34276 vsnprintf(buf, 10u, fmt, ap);
34277
34278 ;
34279 return 0;
34280}
34281_ACEOF
34282rm -f conftest.$ac_objext
34283if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34284 (eval $ac_compile) 2>conftest.er1
34285 ac_status=$?
34286 grep -v '^ *+' conftest.er1 >conftest.err
34287 rm -f conftest.er1
34288 cat conftest.err >&5
34289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34290 (exit $ac_status); } &&
c9a66001 34291 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
62fa8b3a
MW
34292 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34293 (eval $ac_try) 2>&5
34294 ac_status=$?
34295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34296 (exit $ac_status); }; } &&
34297 { ac_try='test -s conftest.$ac_objext'
34298 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34299 (eval $ac_try) 2>&5
34300 ac_status=$?
34301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34302 (exit $ac_status); }; }; then
34303 wx_cv_func_broken_vsnprintf_decl=no
34304else
34305 echo "$as_me: failed program was:" >&5
34306sed 's/^/| /' conftest.$ac_ext >&5
34307
34308wx_cv_func_broken_vsnprintf_decl=yes
34309
34310fi
34311rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34312
34313
34314fi
34315echo "$as_me:$LINENO: result: $wx_cv_func_broken_vsnprintf_decl" >&5
34316echo "${ECHO_T}$wx_cv_func_broken_vsnprintf_decl" >&6
34317
34318 if test "$wx_cv_func_broken_vsnprintf_decl" = "yes"; then
34319 cat >>confdefs.h <<\_ACEOF
34320#define HAVE_BROKEN_VSNPRINTF_DECL 1
34321_ACEOF
34322
34323 fi
a848cd7e
SC
34324 fi
34325fi
34326
4a767dd5
VZ
34327if test "$ac_cv_func_snprintf" = "yes"; then
34328 echo "$as_me:$LINENO: checking for snprintf declaration" >&5
34329echo $ECHO_N "checking for snprintf declaration... $ECHO_C" >&6
34330if test "${wx_cv_func_snprintf_decl+set}" = set; then
34331 echo $ECHO_N "(cached) $ECHO_C" >&6
34332else
34333
34334 cat >conftest.$ac_ext <<_ACEOF
34335/* confdefs.h. */
34336_ACEOF
34337cat confdefs.h >>conftest.$ac_ext
34338cat >>conftest.$ac_ext <<_ACEOF
34339/* end confdefs.h. */
34340
34341 #include <stdio.h>
34342 #include <stdarg.h>
34343 #ifdef __MSL__
34344 #if __MSL__ >= 0x6000
34345 namespace std {}
34346 using namespace std;
34347 #endif
34348 #endif
34349
34350int
34351main ()
34352{
34353
34354 char *buf;
62fa8b3a 34355 snprintf(buf, 10u, "%s", "wx");
4a767dd5
VZ
34356
34357 ;
34358 return 0;
34359}
34360_ACEOF
34361rm -f conftest.$ac_objext
34362if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34363 (eval $ac_compile) 2>conftest.er1
34364 ac_status=$?
34365 grep -v '^ *+' conftest.er1 >conftest.err
34366 rm -f conftest.er1
34367 cat conftest.err >&5
34368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34369 (exit $ac_status); } &&
c9a66001 34370 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
4a767dd5
VZ
34371 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34372 (eval $ac_try) 2>&5
34373 ac_status=$?
34374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34375 (exit $ac_status); }; } &&
34376 { ac_try='test -s conftest.$ac_objext'
34377 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34378 (eval $ac_try) 2>&5
34379 ac_status=$?
34380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34381 (exit $ac_status); }; }; then
34382 wx_cv_func_snprintf_decl=yes
34383else
34384 echo "$as_me: failed program was:" >&5
34385sed 's/^/| /' conftest.$ac_ext >&5
34386
34387wx_cv_func_snprintf_decl=no
34388
34389fi
34390rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34391
34392
34393fi
34394echo "$as_me:$LINENO: result: $wx_cv_func_snprintf_decl" >&5
34395echo "${ECHO_T}$wx_cv_func_snprintf_decl" >&6
34396
34397 if test "$wx_cv_func_snprintf_decl" = "yes"; then
34398 cat >>confdefs.h <<\_ACEOF
34399#define HAVE_SNPRINTF_DECL 1
34400_ACEOF
34401
62fa8b3a
MW
34402
34403 echo "$as_me:$LINENO: checking if snprintf declaration is broken" >&5
34404echo $ECHO_N "checking if snprintf declaration is broken... $ECHO_C" >&6
34405if test "${wx_cv_func_broken_snprintf_decl+set}" = set; then
34406 echo $ECHO_N "(cached) $ECHO_C" >&6
34407else
34408
34409 cat >conftest.$ac_ext <<_ACEOF
34410/* confdefs.h. */
34411_ACEOF
34412cat confdefs.h >>conftest.$ac_ext
34413cat >>conftest.$ac_ext <<_ACEOF
34414/* end confdefs.h. */
34415
34416 #include <stdio.h>
34417 #include <stdarg.h>
34418 #ifdef __MSL__
34419 #if __MSL__ >= 0x6000
34420 namespace std {}
34421 using namespace std;
34422 #endif
34423 #endif
34424
34425int
34426main ()
34427{
34428
34429 char *buf;
34430 const char *fmt = "%s";
34431 snprintf(buf, 10u, fmt, "wx");
34432
34433 ;
34434 return 0;
34435}
34436_ACEOF
34437rm -f conftest.$ac_objext
34438if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34439 (eval $ac_compile) 2>conftest.er1
34440 ac_status=$?
34441 grep -v '^ *+' conftest.er1 >conftest.err
34442 rm -f conftest.er1
34443 cat conftest.err >&5
34444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34445 (exit $ac_status); } &&
c9a66001 34446 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
62fa8b3a
MW
34447 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34448 (eval $ac_try) 2>&5
34449 ac_status=$?
34450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34451 (exit $ac_status); }; } &&
34452 { ac_try='test -s conftest.$ac_objext'
34453 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34454 (eval $ac_try) 2>&5
34455 ac_status=$?
34456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34457 (exit $ac_status); }; }; then
34458 wx_cv_func_broken_snprintf_decl=no
34459else
34460 echo "$as_me: failed program was:" >&5
34461sed 's/^/| /' conftest.$ac_ext >&5
34462
34463wx_cv_func_broken_snprintf_decl=yes
34464
34465fi
34466rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34467
34468
34469fi
34470echo "$as_me:$LINENO: result: $wx_cv_func_broken_snprintf_decl" >&5
34471echo "${ECHO_T}$wx_cv_func_broken_snprintf_decl" >&6
34472
34473 if test "$wx_cv_func_broken_snprintf_decl" = "yes"; then
34474 cat >>confdefs.h <<\_ACEOF
34475#define HAVE_BROKEN_SNPRINTF_DECL 1
8b6682b9
JS
34476_ACEOF
34477
34478 fi
34479 fi
34480
34481 if test "$wxUSE_PRINTF_POS_PARAMS" = "yes"; then
34482
34483 echo "$as_me:$LINENO: checking if snprintf supports positional arguments" >&5
34484echo $ECHO_N "checking if snprintf supports positional arguments... $ECHO_C" >&6
34485if test "${wx_cv_func_snprintf_pos_params+set}" = set; then
34486 echo $ECHO_N "(cached) $ECHO_C" >&6
34487else
34488
34489 if test "$cross_compiling" = yes; then
34490 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
34491See \`config.log' for more details." >&5
34492echo "$as_me: error: cannot run test program while cross compiling
34493See \`config.log' for more details." >&2;}
34494 { (exit 1); exit 1; }; }
34495else
34496 cat >conftest.$ac_ext <<_ACEOF
34497/* confdefs.h. */
34498_ACEOF
34499cat confdefs.h >>conftest.$ac_ext
34500cat >>conftest.$ac_ext <<_ACEOF
34501/* end confdefs.h. */
34502
34503 #include <stdio.h>
34504
34505 int main (void)
34506 {
34507 char buffer[128];
34508 snprintf (buffer, 128, "%2\$d %3\$d %1\$d", 1, 2, 3);
34509 if (strcmp ("2 3 1", buffer) == 0)
34510 exit (0);
34511 exit (1);
34512 }
34513
34514_ACEOF
34515rm -f conftest$ac_exeext
34516if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34517 (eval $ac_link) 2>&5
34518 ac_status=$?
34519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34520 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
34521 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34522 (eval $ac_try) 2>&5
34523 ac_status=$?
34524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34525 (exit $ac_status); }; }; then
34526 wx_cv_func_snprintf_pos_params=no
34527else
34528 echo "$as_me: program exited with status $ac_status" >&5
34529echo "$as_me: failed program was:" >&5
34530sed 's/^/| /' conftest.$ac_ext >&5
34531
34532( exit $ac_status )
34533wx_cv_func_snprintf_pos_params=yes
34534
34535fi
34536rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
34537fi
34538
34539
34540fi
34541echo "$as_me:$LINENO: result: $wx_cv_func_snprintf_pos_params" >&5
34542echo "${ECHO_T}$wx_cv_func_snprintf_pos_params" >&6
34543
34544 if test "$wx_cv_func_snprintf_pos_params" = "yes"; then
34545 cat >>confdefs.h <<\_ACEOF
34546#define HAVE_UNIX98_PRINTF 1
62fa8b3a
MW
34547_ACEOF
34548
34549 fi
4a767dd5
VZ
34550 fi
34551fi
34552
8b6682b9 34553
a848cd7e
SC
34554if test "$wxUSE_UNICODE" = yes; then
34555
34556
34557
fbe47c7b
VS
34558
34559
34560
34561for ac_func in wputc wputchar putws fputws wprintf vswprintf
a848cd7e
SC
34562do
34563as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34564echo "$as_me:$LINENO: checking for $ac_func" >&5
34565echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
34566if eval "test \"\${$as_ac_var+set}\" = set"; then
34567 echo $ECHO_N "(cached) $ECHO_C" >&6
34568else
34569 cat >conftest.$ac_ext <<_ACEOF
34570/* confdefs.h. */
34571_ACEOF
34572cat confdefs.h >>conftest.$ac_ext
34573cat >>conftest.$ac_ext <<_ACEOF
34574/* end confdefs.h. */
ac1cb8d3
VS
34575/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34576 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34577#define $ac_func innocuous_$ac_func
34578
a848cd7e
SC
34579/* System header to define __stub macros and hopefully few prototypes,
34580 which can conflict with char $ac_func (); below.
34581 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34582 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 34583
a848cd7e
SC
34584#ifdef __STDC__
34585# include <limits.h>
34586#else
34587# include <assert.h>
34588#endif
ac1cb8d3
VS
34589
34590#undef $ac_func
34591
a848cd7e
SC
34592/* Override any gcc2 internal prototype to avoid an error. */
34593#ifdef __cplusplus
34594extern "C"
34595{
34596#endif
34597/* We use char because int might match the return type of a gcc2
34598 builtin and then its argument prototype would still apply. */
34599char $ac_func ();
34600/* The GNU C library defines this for functions which it implements
34601 to always fail with ENOSYS. Some functions are actually named
34602 something starting with __ and the normal name is an alias. */
34603#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
34604choke me
34605#else
34606char (*f) () = $ac_func;
34607#endif
34608#ifdef __cplusplus
34609}
34610#endif
34611
34612int
34613main ()
34614{
34615return f != $ac_func;
34616 ;
34617 return 0;
34618}
34619_ACEOF
34620rm -f conftest.$ac_objext conftest$ac_exeext
34621if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 34622 (eval $ac_link) 2>conftest.er1
a848cd7e 34623 ac_status=$?
ac1cb8d3
VS
34624 grep -v '^ *+' conftest.er1 >conftest.err
34625 rm -f conftest.er1
34626 cat conftest.err >&5
a848cd7e
SC
34627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34628 (exit $ac_status); } &&
c9a66001 34629 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
34630 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34631 (eval $ac_try) 2>&5
34632 ac_status=$?
34633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34634 (exit $ac_status); }; } &&
34635 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
34636 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34637 (eval $ac_try) 2>&5
34638 ac_status=$?
34639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34640 (exit $ac_status); }; }; then
34641 eval "$as_ac_var=yes"
34642else
34643 echo "$as_me: failed program was:" >&5
34644sed 's/^/| /' conftest.$ac_ext >&5
34645
34646eval "$as_ac_var=no"
34647fi
ac1cb8d3
VS
34648rm -f conftest.err conftest.$ac_objext \
34649 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
34650fi
34651echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
34652echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
34653if test `eval echo '${'$as_ac_var'}'` = yes; then
34654 cat >>confdefs.h <<_ACEOF
34655#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34656_ACEOF
34657
34658fi
34659done
34660
34661
34662 echo "$as_me:$LINENO: checking for _vsnwprintf" >&5
34663echo $ECHO_N "checking for _vsnwprintf... $ECHO_C" >&6
34664 cat >conftest.$ac_ext <<_ACEOF
34665/* confdefs.h. */
34666_ACEOF
34667cat confdefs.h >>conftest.$ac_ext
34668cat >>conftest.$ac_ext <<_ACEOF
34669/* end confdefs.h. */
34670#include <wchar.h>
34671int
34672main ()
34673{
34674&_vsnwprintf;
34675 ;
34676 return 0;
34677}
34678_ACEOF
34679rm -f conftest.$ac_objext
34680if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 34681 (eval $ac_compile) 2>conftest.er1
a848cd7e 34682 ac_status=$?
ac1cb8d3
VS
34683 grep -v '^ *+' conftest.er1 >conftest.err
34684 rm -f conftest.er1
34685 cat conftest.err >&5
a848cd7e
SC
34686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34687 (exit $ac_status); } &&
c9a66001 34688 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
34689 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34690 (eval $ac_try) 2>&5
34691 ac_status=$?
34692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34693 (exit $ac_status); }; } &&
34694 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
34695 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34696 (eval $ac_try) 2>&5
34697 ac_status=$?
34698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34699 (exit $ac_status); }; }; then
34700 echo "$as_me:$LINENO: result: yes" >&5
34701echo "${ECHO_T}yes" >&6
34702 cat >>confdefs.h <<\_ACEOF
34703#define HAVE__VSNWPRINTF 1
34704_ACEOF
34705
34706else
34707 echo "$as_me: failed program was:" >&5
34708sed 's/^/| /' conftest.$ac_ext >&5
34709
34710echo "$as_me:$LINENO: result: no" >&5
34711echo "${ECHO_T}no" >&6
34712fi
ac1cb8d3 34713rm -f conftest.err conftest.$ac_objext conftest.$ac_ext;
a848cd7e
SC
34714fi
34715
6ebeb4c7
VZ
34716if test "x$ac_cv_header_fnmatch_h" = "xyes"; then
34717
34718for ac_func in fnmatch
34719do
34720as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34721echo "$as_me:$LINENO: checking for $ac_func" >&5
34722echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
34723if eval "test \"\${$as_ac_var+set}\" = set"; then
34724 echo $ECHO_N "(cached) $ECHO_C" >&6
34725else
34726 cat >conftest.$ac_ext <<_ACEOF
34727/* confdefs.h. */
34728_ACEOF
34729cat confdefs.h >>conftest.$ac_ext
34730cat >>conftest.$ac_ext <<_ACEOF
34731/* end confdefs.h. */
34732/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34733 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34734#define $ac_func innocuous_$ac_func
34735
34736/* System header to define __stub macros and hopefully few prototypes,
34737 which can conflict with char $ac_func (); below.
34738 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34739 <limits.h> exists even on freestanding compilers. */
34740
34741#ifdef __STDC__
34742# include <limits.h>
34743#else
34744# include <assert.h>
34745#endif
34746
34747#undef $ac_func
34748
34749/* Override any gcc2 internal prototype to avoid an error. */
34750#ifdef __cplusplus
34751extern "C"
34752{
34753#endif
34754/* We use char because int might match the return type of a gcc2
34755 builtin and then its argument prototype would still apply. */
34756char $ac_func ();
34757/* The GNU C library defines this for functions which it implements
34758 to always fail with ENOSYS. Some functions are actually named
34759 something starting with __ and the normal name is an alias. */
34760#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
34761choke me
34762#else
34763char (*f) () = $ac_func;
34764#endif
34765#ifdef __cplusplus
34766}
34767#endif
34768
34769int
34770main ()
34771{
34772return f != $ac_func;
34773 ;
34774 return 0;
34775}
34776_ACEOF
34777rm -f conftest.$ac_objext conftest$ac_exeext
34778if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34779 (eval $ac_link) 2>conftest.er1
34780 ac_status=$?
34781 grep -v '^ *+' conftest.er1 >conftest.err
34782 rm -f conftest.er1
34783 cat conftest.err >&5
34784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34785 (exit $ac_status); } &&
c9a66001 34786 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6ebeb4c7
VZ
34787 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34788 (eval $ac_try) 2>&5
34789 ac_status=$?
34790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34791 (exit $ac_status); }; } &&
34792 { ac_try='test -s conftest$ac_exeext'
34793 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34794 (eval $ac_try) 2>&5
34795 ac_status=$?
34796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34797 (exit $ac_status); }; }; then
34798 eval "$as_ac_var=yes"
34799else
34800 echo "$as_me: failed program was:" >&5
34801sed 's/^/| /' conftest.$ac_ext >&5
34802
34803eval "$as_ac_var=no"
34804fi
34805rm -f conftest.err conftest.$ac_objext \
34806 conftest$ac_exeext conftest.$ac_ext
34807fi
34808echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
34809echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
34810if test `eval echo '${'$as_ac_var'}'` = yes; then
34811 cat >>confdefs.h <<_ACEOF
34812#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34813_ACEOF
34814
34815fi
34816done
34817
34818fi
34819
34820if test "$wxUSE_FILE" = "yes"; then
34821
34822for ac_func in fsync
34823do
34824as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34825echo "$as_me:$LINENO: checking for $ac_func" >&5
34826echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
34827if eval "test \"\${$as_ac_var+set}\" = set"; then
34828 echo $ECHO_N "(cached) $ECHO_C" >&6
34829else
34830 cat >conftest.$ac_ext <<_ACEOF
34831/* confdefs.h. */
34832_ACEOF
34833cat confdefs.h >>conftest.$ac_ext
34834cat >>conftest.$ac_ext <<_ACEOF
34835/* end confdefs.h. */
34836/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34837 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34838#define $ac_func innocuous_$ac_func
34839
34840/* System header to define __stub macros and hopefully few prototypes,
34841 which can conflict with char $ac_func (); below.
34842 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34843 <limits.h> exists even on freestanding compilers. */
34844
34845#ifdef __STDC__
34846# include <limits.h>
34847#else
34848# include <assert.h>
34849#endif
34850
34851#undef $ac_func
34852
34853/* Override any gcc2 internal prototype to avoid an error. */
34854#ifdef __cplusplus
34855extern "C"
34856{
34857#endif
34858/* We use char because int might match the return type of a gcc2
34859 builtin and then its argument prototype would still apply. */
34860char $ac_func ();
34861/* The GNU C library defines this for functions which it implements
34862 to always fail with ENOSYS. Some functions are actually named
34863 something starting with __ and the normal name is an alias. */
34864#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
34865choke me
34866#else
34867char (*f) () = $ac_func;
34868#endif
34869#ifdef __cplusplus
34870}
34871#endif
34872
34873int
34874main ()
34875{
34876return f != $ac_func;
34877 ;
34878 return 0;
34879}
34880_ACEOF
34881rm -f conftest.$ac_objext conftest$ac_exeext
34882if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34883 (eval $ac_link) 2>conftest.er1
34884 ac_status=$?
34885 grep -v '^ *+' conftest.er1 >conftest.err
34886 rm -f conftest.er1
34887 cat conftest.err >&5
34888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34889 (exit $ac_status); } &&
c9a66001 34890 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6ebeb4c7
VZ
34891 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34892 (eval $ac_try) 2>&5
34893 ac_status=$?
34894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34895 (exit $ac_status); }; } &&
34896 { ac_try='test -s conftest$ac_exeext'
34897 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34898 (eval $ac_try) 2>&5
34899 ac_status=$?
34900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34901 (exit $ac_status); }; }; then
34902 eval "$as_ac_var=yes"
34903else
34904 echo "$as_me: failed program was:" >&5
34905sed 's/^/| /' conftest.$ac_ext >&5
34906
34907eval "$as_ac_var=no"
34908fi
34909rm -f conftest.err conftest.$ac_objext \
34910 conftest$ac_exeext conftest.$ac_ext
34911fi
34912echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
34913echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
34914if test `eval echo '${'$as_ac_var'}'` = yes; then
34915 cat >>confdefs.h <<_ACEOF
34916#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34917_ACEOF
34918
34919fi
34920done
34921
34922fi
a848cd7e
SC
34923
34924
34925if test "$TOOLKIT" != "MSW"; then
34926
34927
a848cd7e
SC
34928
34929
34930
34931# Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
34932if test "${with_libiconv_prefix+set}" = set; then
34933 withval="$with_libiconv_prefix"
34934
34935 for dir in `echo "$withval" | tr : ' '`; do
34936 if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi
34937 if test -d $dir/lib; then LDFLAGS="$LDFLAGS -L$dir/lib"; fi
34938 done
34939
34940fi;
34941
34942 echo "$as_me:$LINENO: checking for iconv" >&5
34943echo $ECHO_N "checking for iconv... $ECHO_C" >&6
34944if test "${am_cv_func_iconv+set}" = set; then
34945 echo $ECHO_N "(cached) $ECHO_C" >&6
34946else
34947
34948 am_cv_func_iconv="no, consider installing GNU libiconv"
34949 am_cv_lib_iconv=no
34950 cat >conftest.$ac_ext <<_ACEOF
34951/* confdefs.h. */
34952_ACEOF
34953cat confdefs.h >>conftest.$ac_ext
34954cat >>conftest.$ac_ext <<_ACEOF
34955/* end confdefs.h. */
34956#include <stdlib.h>
34957#include <iconv.h>
34958int
34959main ()
34960{
34961iconv_t cd = iconv_open("","");
34962 iconv(cd,NULL,NULL,NULL,NULL);
34963 iconv_close(cd);
34964 ;
34965 return 0;
34966}
34967_ACEOF
34968rm -f conftest.$ac_objext conftest$ac_exeext
34969if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 34970 (eval $ac_link) 2>conftest.er1
a848cd7e 34971 ac_status=$?
ac1cb8d3
VS
34972 grep -v '^ *+' conftest.er1 >conftest.err
34973 rm -f conftest.er1
34974 cat conftest.err >&5
a848cd7e
SC
34975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34976 (exit $ac_status); } &&
c9a66001 34977 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
34978 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34979 (eval $ac_try) 2>&5
34980 ac_status=$?
34981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34982 (exit $ac_status); }; } &&
34983 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
34984 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34985 (eval $ac_try) 2>&5
34986 ac_status=$?
34987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34988 (exit $ac_status); }; }; then
34989 am_cv_func_iconv=yes
34990else
34991 echo "$as_me: failed program was:" >&5
34992sed 's/^/| /' conftest.$ac_ext >&5
34993
34994fi
ac1cb8d3
VS
34995rm -f conftest.err conftest.$ac_objext \
34996 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
34997 if test "$am_cv_func_iconv" != yes; then
34998 am_save_LIBS="$LIBS"
34999 LIBS="$LIBS -liconv"
35000 cat >conftest.$ac_ext <<_ACEOF
35001/* confdefs.h. */
35002_ACEOF
35003cat confdefs.h >>conftest.$ac_ext
35004cat >>conftest.$ac_ext <<_ACEOF
35005/* end confdefs.h. */
35006#include <stdlib.h>
35007#include <iconv.h>
35008int
35009main ()
35010{
35011iconv_t cd = iconv_open("","");
35012 iconv(cd,NULL,NULL,NULL,NULL);
35013 iconv_close(cd);
35014 ;
35015 return 0;
35016}
35017_ACEOF
35018rm -f conftest.$ac_objext conftest$ac_exeext
35019if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 35020 (eval $ac_link) 2>conftest.er1
a848cd7e 35021 ac_status=$?
ac1cb8d3
VS
35022 grep -v '^ *+' conftest.er1 >conftest.err
35023 rm -f conftest.er1
35024 cat conftest.err >&5
a848cd7e
SC
35025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35026 (exit $ac_status); } &&
c9a66001 35027 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
35028 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35029 (eval $ac_try) 2>&5
35030 ac_status=$?
35031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35032 (exit $ac_status); }; } &&
35033 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
35034 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35035 (eval $ac_try) 2>&5
35036 ac_status=$?
35037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35038 (exit $ac_status); }; }; then
35039 am_cv_lib_iconv=yes
35040 am_cv_func_iconv=yes
35041else
35042 echo "$as_me: failed program was:" >&5
35043sed 's/^/| /' conftest.$ac_ext >&5
35044
35045fi
ac1cb8d3
VS
35046rm -f conftest.err conftest.$ac_objext \
35047 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
35048 LIBS="$am_save_LIBS"
35049 fi
35050
35051fi
35052echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
35053echo "${ECHO_T}$am_cv_func_iconv" >&6
35054 if test "$am_cv_func_iconv" = yes; then
35055
35056cat >>confdefs.h <<\_ACEOF
35057#define HAVE_ICONV 1
35058_ACEOF
35059
35060 echo "$as_me:$LINENO: checking if iconv needs const" >&5
35061echo $ECHO_N "checking if iconv needs const... $ECHO_C" >&6
35062if test "${wx_cv_func_iconv_const+set}" = set; then
35063 echo $ECHO_N "(cached) $ECHO_C" >&6
35064else
35065 cat >conftest.$ac_ext <<_ACEOF
35066/* confdefs.h. */
35067_ACEOF
35068cat confdefs.h >>conftest.$ac_ext
35069cat >>conftest.$ac_ext <<_ACEOF
35070/* end confdefs.h. */
35071
35072#include <stdlib.h>
35073#include <iconv.h>
35074extern
35075#ifdef __cplusplus
35076"C"
35077#endif
35078#if defined(__STDC__) || defined(__cplusplus)
35079size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
35080#else
35081size_t iconv();
35082#endif
35083
35084int
35085main ()
35086{
35087
35088 ;
35089 return 0;
35090}
35091_ACEOF
35092rm -f conftest.$ac_objext
35093if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 35094 (eval $ac_compile) 2>conftest.er1
a848cd7e 35095 ac_status=$?
ac1cb8d3
VS
35096 grep -v '^ *+' conftest.er1 >conftest.err
35097 rm -f conftest.er1
35098 cat conftest.err >&5
a848cd7e
SC
35099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35100 (exit $ac_status); } &&
c9a66001 35101 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
35102 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35103 (eval $ac_try) 2>&5
35104 ac_status=$?
35105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35106 (exit $ac_status); }; } &&
35107 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
35108 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35109 (eval $ac_try) 2>&5
35110 ac_status=$?
35111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35112 (exit $ac_status); }; }; then
35113 wx_cv_func_iconv_const="no"
35114else
35115 echo "$as_me: failed program was:" >&5
35116sed 's/^/| /' conftest.$ac_ext >&5
35117
35118wx_cv_func_iconv_const="yes"
35119
35120fi
ac1cb8d3 35121rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
35122
35123fi
35124echo "$as_me:$LINENO: result: $wx_cv_func_iconv_const" >&5
35125echo "${ECHO_T}$wx_cv_func_iconv_const" >&6
35126
35127 iconv_const=
35128 if test "x$wx_cv_func_iconv_const" = "xyes"; then
35129 iconv_const="const"
35130 fi
35131
35132
35133cat >>confdefs.h <<_ACEOF
35134#define ICONV_CONST $iconv_const
35135_ACEOF
35136
35137 fi
35138 LIBICONV=
35139 if test "$am_cv_lib_iconv" = yes; then
35140 LIBICONV="-liconv"
35141 fi
35142
35143
35144LIBS="$LIBICONV $LIBS"
a848cd7e
SC
35145
35146if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes" -a "$wxUSE_UNIX" = "yes"; then
35147
35148for ac_func in sigaction
35149do
35150as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35151echo "$as_me:$LINENO: checking for $ac_func" >&5
35152echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
35153if eval "test \"\${$as_ac_var+set}\" = set"; then
35154 echo $ECHO_N "(cached) $ECHO_C" >&6
35155else
35156 cat >conftest.$ac_ext <<_ACEOF
35157/* confdefs.h. */
35158_ACEOF
35159cat confdefs.h >>conftest.$ac_ext
35160cat >>conftest.$ac_ext <<_ACEOF
35161/* end confdefs.h. */
ac1cb8d3
VS
35162/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
35163 For example, HP-UX 11i <limits.h> declares gettimeofday. */
35164#define $ac_func innocuous_$ac_func
35165
a848cd7e
SC
35166/* System header to define __stub macros and hopefully few prototypes,
35167 which can conflict with char $ac_func (); below.
35168 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35169 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 35170
a848cd7e
SC
35171#ifdef __STDC__
35172# include <limits.h>
35173#else
35174# include <assert.h>
35175#endif
ac1cb8d3
VS
35176
35177#undef $ac_func
35178
a848cd7e
SC
35179/* Override any gcc2 internal prototype to avoid an error. */
35180#ifdef __cplusplus
35181extern "C"
35182{
35183#endif
35184/* We use char because int might match the return type of a gcc2
35185 builtin and then its argument prototype would still apply. */
35186char $ac_func ();
35187/* The GNU C library defines this for functions which it implements
35188 to always fail with ENOSYS. Some functions are actually named
35189 something starting with __ and the normal name is an alias. */
35190#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
35191choke me
35192#else
35193char (*f) () = $ac_func;
35194#endif
35195#ifdef __cplusplus
35196}
35197#endif
35198
35199int
35200main ()
35201{
35202return f != $ac_func;
35203 ;
35204 return 0;
35205}
35206_ACEOF
35207rm -f conftest.$ac_objext conftest$ac_exeext
35208if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 35209 (eval $ac_link) 2>conftest.er1
a848cd7e 35210 ac_status=$?
ac1cb8d3
VS
35211 grep -v '^ *+' conftest.er1 >conftest.err
35212 rm -f conftest.er1
35213 cat conftest.err >&5
a848cd7e
SC
35214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35215 (exit $ac_status); } &&
c9a66001 35216 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
35217 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35218 (eval $ac_try) 2>&5
35219 ac_status=$?
35220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35221 (exit $ac_status); }; } &&
35222 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
35223 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35224 (eval $ac_try) 2>&5
35225 ac_status=$?
35226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35227 (exit $ac_status); }; }; then
35228 eval "$as_ac_var=yes"
35229else
35230 echo "$as_me: failed program was:" >&5
35231sed 's/^/| /' conftest.$ac_ext >&5
35232
35233eval "$as_ac_var=no"
35234fi
ac1cb8d3
VS
35235rm -f conftest.err conftest.$ac_objext \
35236 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
35237fi
35238echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
35239echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
35240if test `eval echo '${'$as_ac_var'}'` = yes; then
35241 cat >>confdefs.h <<_ACEOF
35242#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35243_ACEOF
35244
35245fi
35246done
35247
35248
35249 if test "$ac_cv_func_sigaction" = "no"; then
35250 { echo "$as_me:$LINENO: WARNING: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" >&5
35251echo "$as_me: WARNING: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" >&2;}
35252 wxUSE_ON_FATAL_EXCEPTION=no
35253 fi
35254
35255 if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
a848cd7e
SC
35256 echo "$as_me:$LINENO: checking for sa_handler type" >&5
35257echo $ECHO_N "checking for sa_handler type... $ECHO_C" >&6
35258if test "${wx_cv_type_sa_handler+set}" = set; then
35259 echo $ECHO_N "(cached) $ECHO_C" >&6
35260else
35261
35262 cat >conftest.$ac_ext <<_ACEOF
35263/* confdefs.h. */
35264_ACEOF
35265cat confdefs.h >>conftest.$ac_ext
35266cat >>conftest.$ac_ext <<_ACEOF
35267/* end confdefs.h. */
35268#include <signal.h>
35269int
35270main ()
35271{
35272
35273 extern void testSigHandler(int);
35274
35275 struct sigaction sa;
35276 sa.sa_handler = testSigHandler;
35277
35278 ;
35279 return 0;
35280}
35281_ACEOF
35282rm -f conftest.$ac_objext
35283if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 35284 (eval $ac_compile) 2>conftest.er1
a848cd7e 35285 ac_status=$?
ac1cb8d3
VS
35286 grep -v '^ *+' conftest.er1 >conftest.err
35287 rm -f conftest.er1
35288 cat conftest.err >&5
a848cd7e
SC
35289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35290 (exit $ac_status); } &&
c9a66001 35291 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
35292 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35293 (eval $ac_try) 2>&5
35294 ac_status=$?
35295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35296 (exit $ac_status); }; } &&
35297 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
35298 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35299 (eval $ac_try) 2>&5
35300 ac_status=$?
35301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35302 (exit $ac_status); }; }; then
35303
35304 wx_cv_type_sa_handler=int
35305
35306else
35307 echo "$as_me: failed program was:" >&5
35308sed 's/^/| /' conftest.$ac_ext >&5
35309
35310
35311 wx_cv_type_sa_handler=void
35312
35313fi
ac1cb8d3 35314rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
35315
35316fi
35317echo "$as_me:$LINENO: result: $wx_cv_type_sa_handler" >&5
35318echo "${ECHO_T}$wx_cv_type_sa_handler" >&6
35319
a848cd7e
SC
35320 cat >>confdefs.h <<_ACEOF
35321#define wxTYPE_SA_HANDLER $wx_cv_type_sa_handler
35322_ACEOF
35323
35324 fi
35325fi
35326
eaff0f0d 35327if test "$wxUSE_STACKWALKER" = "yes" -a "$wxUSE_UNIX" = "yes"; then
eaff0f0d
VZ
35328 echo "$as_me:$LINENO: checking for backtrace() in <execinfo.h>" >&5
35329echo $ECHO_N "checking for backtrace() in <execinfo.h>... $ECHO_C" >&6
35330if test "${wx_cv_func_backtrace+set}" = set; then
35331 echo $ECHO_N "(cached) $ECHO_C" >&6
35332else
35333
35334 cat >conftest.$ac_ext <<_ACEOF
35335/* confdefs.h. */
35336_ACEOF
35337cat confdefs.h >>conftest.$ac_ext
35338cat >>conftest.$ac_ext <<_ACEOF
35339/* end confdefs.h. */
35340#include <execinfo.h>
35341int
35342main ()
35343{
35344
35345 void *trace[1];
35346 char **messages;
35347
35348 backtrace(trace, 1);
35349 messages = backtrace_symbols(trace, 1);
35350
35351 ;
35352 return 0;
35353}
35354_ACEOF
35355rm -f conftest.$ac_objext
35356if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35357 (eval $ac_compile) 2>conftest.er1
35358 ac_status=$?
35359 grep -v '^ *+' conftest.er1 >conftest.err
35360 rm -f conftest.er1
35361 cat conftest.err >&5
35362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35363 (exit $ac_status); } &&
c9a66001 35364 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
eaff0f0d
VZ
35365 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35366 (eval $ac_try) 2>&5
35367 ac_status=$?
35368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35369 (exit $ac_status); }; } &&
35370 { ac_try='test -s conftest.$ac_objext'
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_backtrace=yes
35377else
35378 echo "$as_me: failed program was:" >&5
35379sed 's/^/| /' conftest.$ac_ext >&5
35380
35381wx_cv_func_backtrace=no
35382
35383fi
35384rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35385
35386
35387fi
35388echo "$as_me:$LINENO: result: $wx_cv_func_backtrace" >&5
35389echo "${ECHO_T}$wx_cv_func_backtrace" >&6
35390
35391
35392 if test "$wx_cv_func_backtrace" = "no"; then
35393 { echo "$as_me:$LINENO: WARNING: backtrace() is not available, wxStackWalker will not be available" >&5
35394echo "$as_me: WARNING: backtrace() is not available, wxStackWalker will not be available" >&2;}
35395 wxUSE_STACKWALKER=no
35396 else
35397 echo "$as_me:$LINENO: checking for __cxa_demangle() in <cxxabi.h>" >&5
35398echo $ECHO_N "checking for __cxa_demangle() in <cxxabi.h>... $ECHO_C" >&6
35399if test "${wx_cv_func_cxa_demangle+set}" = set; then
35400 echo $ECHO_N "(cached) $ECHO_C" >&6
35401else
35402
35403 cat >conftest.$ac_ext <<_ACEOF
35404/* confdefs.h. */
35405_ACEOF
35406cat confdefs.h >>conftest.$ac_ext
35407cat >>conftest.$ac_ext <<_ACEOF
35408/* end confdefs.h. */
35409#include <cxxabi.h>
35410int
35411main ()
35412{
35413
35414 int rc;
35415 __cxxabiv1::__cxa_demangle("foo", 0, 0, &rc);
35416
35417 ;
35418 return 0;
35419}
35420_ACEOF
dfe0c803
JS
35421rm -f conftest.$ac_objext conftest$ac_exeext
35422if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35423 (eval $ac_link) 2>conftest.er1
eaff0f0d
VZ
35424 ac_status=$?
35425 grep -v '^ *+' conftest.er1 >conftest.err
35426 rm -f conftest.er1
35427 cat conftest.err >&5
35428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35429 (exit $ac_status); } &&
c9a66001 35430 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
eaff0f0d
VZ
35431 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35432 (eval $ac_try) 2>&5
35433 ac_status=$?
35434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35435 (exit $ac_status); }; } &&
dfe0c803 35436 { ac_try='test -s conftest$ac_exeext'
eaff0f0d
VZ
35437 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35438 (eval $ac_try) 2>&5
35439 ac_status=$?
35440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35441 (exit $ac_status); }; }; then
35442 wx_cv_func_cxa_demangle=yes
35443else
35444 echo "$as_me: failed program was:" >&5
35445sed 's/^/| /' conftest.$ac_ext >&5
35446
35447wx_cv_func_cxa_demangle=no
35448
35449fi
dfe0c803
JS
35450rm -f conftest.err conftest.$ac_objext \
35451 conftest$ac_exeext conftest.$ac_ext
eaff0f0d
VZ
35452
35453
35454fi
35455echo "$as_me:$LINENO: result: $wx_cv_func_cxa_demangle" >&5
35456echo "${ECHO_T}$wx_cv_func_cxa_demangle" >&6
35457
35458 if test "$wx_cv_func_cxa_demangle" = "yes"; then
35459 cat >>confdefs.h <<\_ACEOF
35460#define HAVE_CXA_DEMANGLE 1
35461_ACEOF
35462
35463 fi
35464 fi
eaff0f0d
VZ
35465fi
35466
898beab1
DE
35467if test "$wxUSE_STACKWALKER" = "yes" -a "$USE_WIN32" != "1" -a "$USE_UNIX" != "1"; then
35468 { echo "$as_me:$LINENO: WARNING: wxStackWalker is only available on Win32 and UNIX... disabled" >&5
35469echo "$as_me: WARNING: wxStackWalker is only available on Win32 and UNIX... disabled" >&2;}
35470 wxUSE_STACKWALKER=no
35471fi
35472
35473
a848cd7e
SC
35474
35475
35476for ac_func in mkstemp mktemp
35477do
35478as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35479echo "$as_me:$LINENO: checking for $ac_func" >&5
35480echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
35481if eval "test \"\${$as_ac_var+set}\" = set"; then
35482 echo $ECHO_N "(cached) $ECHO_C" >&6
35483else
35484 cat >conftest.$ac_ext <<_ACEOF
35485/* confdefs.h. */
35486_ACEOF
35487cat confdefs.h >>conftest.$ac_ext
35488cat >>conftest.$ac_ext <<_ACEOF
35489/* end confdefs.h. */
ac1cb8d3
VS
35490/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
35491 For example, HP-UX 11i <limits.h> declares gettimeofday. */
35492#define $ac_func innocuous_$ac_func
35493
a848cd7e
SC
35494/* System header to define __stub macros and hopefully few prototypes,
35495 which can conflict with char $ac_func (); below.
35496 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35497 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 35498
a848cd7e
SC
35499#ifdef __STDC__
35500# include <limits.h>
35501#else
35502# include <assert.h>
35503#endif
ac1cb8d3
VS
35504
35505#undef $ac_func
35506
a848cd7e
SC
35507/* Override any gcc2 internal prototype to avoid an error. */
35508#ifdef __cplusplus
35509extern "C"
35510{
35511#endif
35512/* We use char because int might match the return type of a gcc2
35513 builtin and then its argument prototype would still apply. */
35514char $ac_func ();
35515/* The GNU C library defines this for functions which it implements
35516 to always fail with ENOSYS. Some functions are actually named
35517 something starting with __ and the normal name is an alias. */
35518#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
35519choke me
35520#else
35521char (*f) () = $ac_func;
35522#endif
35523#ifdef __cplusplus
35524}
35525#endif
35526
35527int
35528main ()
35529{
35530return f != $ac_func;
35531 ;
35532 return 0;
35533}
35534_ACEOF
35535rm -f conftest.$ac_objext conftest$ac_exeext
35536if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 35537 (eval $ac_link) 2>conftest.er1
a848cd7e 35538 ac_status=$?
ac1cb8d3
VS
35539 grep -v '^ *+' conftest.er1 >conftest.err
35540 rm -f conftest.er1
35541 cat conftest.err >&5
a848cd7e
SC
35542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35543 (exit $ac_status); } &&
c9a66001 35544 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
35545 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35546 (eval $ac_try) 2>&5
35547 ac_status=$?
35548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35549 (exit $ac_status); }; } &&
35550 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
35551 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35552 (eval $ac_try) 2>&5
35553 ac_status=$?
35554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35555 (exit $ac_status); }; }; then
35556 eval "$as_ac_var=yes"
35557else
35558 echo "$as_me: failed program was:" >&5
35559sed 's/^/| /' conftest.$ac_ext >&5
35560
35561eval "$as_ac_var=no"
35562fi
ac1cb8d3
VS
35563rm -f conftest.err conftest.$ac_objext \
35564 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
35565fi
35566echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
35567echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
35568if test `eval echo '${'$as_ac_var'}'` = yes; then
35569 cat >>confdefs.h <<_ACEOF
35570#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35571_ACEOF
35572 break
35573fi
35574done
35575
35576
35577echo "$as_me:$LINENO: checking for statfs" >&5
35578echo $ECHO_N "checking for statfs... $ECHO_C" >&6
35579if test "${wx_cv_func_statfs+set}" = set; then
35580 echo $ECHO_N "(cached) $ECHO_C" >&6
35581else
35582 cat >conftest.$ac_ext <<_ACEOF
35583/* confdefs.h. */
35584_ACEOF
35585cat confdefs.h >>conftest.$ac_ext
35586cat >>conftest.$ac_ext <<_ACEOF
35587/* end confdefs.h. */
35588
35589 #if defined(__BSD__)
84ae7ca4
VZ
35590 #include <sys/param.h>
35591 #include <sys/mount.h>
a848cd7e 35592 #else
84ae7ca4 35593 #include <sys/vfs.h>
a848cd7e
SC
35594 #endif
35595
35596int
35597main ()
35598{
35599
35600 long l;
35601 struct statfs fs;
35602 statfs("/", &fs);
35603 l = fs.f_bsize;
35604 l += fs.f_blocks;
35605 l += fs.f_bavail;
35606
35607 ;
35608 return 0;
35609}
35610_ACEOF
35611rm -f conftest.$ac_objext
35612if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 35613 (eval $ac_compile) 2>conftest.er1
a848cd7e 35614 ac_status=$?
ac1cb8d3
VS
35615 grep -v '^ *+' conftest.er1 >conftest.err
35616 rm -f conftest.er1
35617 cat conftest.err >&5
a848cd7e
SC
35618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35619 (exit $ac_status); } &&
c9a66001 35620 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
35621 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35622 (eval $ac_try) 2>&5
35623 ac_status=$?
35624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35625 (exit $ac_status); }; } &&
35626 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
35627 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35628 (eval $ac_try) 2>&5
35629 ac_status=$?
35630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35631 (exit $ac_status); }; }; then
84ae7ca4 35632 wx_cv_func_statfs=yes
a848cd7e
SC
35633else
35634 echo "$as_me: failed program was:" >&5
35635sed 's/^/| /' conftest.$ac_ext >&5
35636
84ae7ca4 35637wx_cv_func_statfs=no
a848cd7e
SC
35638
35639fi
ac1cb8d3 35640rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
35641
35642fi
35643echo "$as_me:$LINENO: result: $wx_cv_func_statfs" >&5
35644echo "${ECHO_T}$wx_cv_func_statfs" >&6
35645
35646if test "$wx_cv_func_statfs" = "yes"; then
5d7b7554 35647 echo "$as_me:$LINENO: checking for statfs declaration" >&5
84ae7ca4
VZ
35648echo $ECHO_N "checking for statfs declaration... $ECHO_C" >&6
35649if test "${wx_cv_func_statfs_decl+set}" = set; then
35650 echo $ECHO_N "(cached) $ECHO_C" >&6
35651else
0683aca6
VZ
35652 cat >conftest.$ac_ext <<_ACEOF
35653/* confdefs.h. */
35654_ACEOF
35655cat confdefs.h >>conftest.$ac_ext
35656cat >>conftest.$ac_ext <<_ACEOF
35657/* end confdefs.h. */
84ae7ca4 35658
0683aca6
VZ
35659 #if defined(__BSD__)
35660 #include <sys/param.h>
35661 #include <sys/mount.h>
35662 #else
35663 #include <sys/vfs.h>
35664 #endif
35665
35666int
35667main ()
35668{
35669
35670 struct statfs fs;
35671 statfs("", &fs);
35672
35673 ;
35674 return 0;
35675}
35676_ACEOF
35677rm -f conftest.$ac_objext
35678if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35679 (eval $ac_compile) 2>conftest.er1
35680 ac_status=$?
35681 grep -v '^ *+' conftest.er1 >conftest.err
35682 rm -f conftest.er1
35683 cat conftest.err >&5
35684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35685 (exit $ac_status); } &&
c9a66001 35686 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
0683aca6
VZ
35687 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35688 (eval $ac_try) 2>&5
35689 ac_status=$?
35690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35691 (exit $ac_status); }; } &&
35692 { ac_try='test -s conftest.$ac_objext'
35693 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35694 (eval $ac_try) 2>&5
35695 ac_status=$?
35696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35697 (exit $ac_status); }; }; then
35698 wx_cv_func_statfs_decl=yes
35699else
35700 echo "$as_me: failed program was:" >&5
35701sed 's/^/| /' conftest.$ac_ext >&5
35702
35703wx_cv_func_statfs_decl=no
35704
35705fi
35706rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
84ae7ca4
VZ
35707
35708fi
35709echo "$as_me:$LINENO: result: $wx_cv_func_statfs_decl" >&5
35710echo "${ECHO_T}$wx_cv_func_statfs_decl" >&6
84ae7ca4
VZ
35711
35712 if test "$wx_cv_func_statfs_decl" = "yes"; then
35713 cat >>confdefs.h <<\_ACEOF
35714#define HAVE_STATFS_DECL 1
35715_ACEOF
35716
35717 fi
35718
a848cd7e
SC
35719 wx_cv_type_statvfs_t="struct statfs"
35720 cat >>confdefs.h <<\_ACEOF
35721#define HAVE_STATFS 1
35722_ACEOF
35723
35724else
35725 echo "$as_me:$LINENO: checking for statvfs" >&5
35726echo $ECHO_N "checking for statvfs... $ECHO_C" >&6
35727if test "${wx_cv_func_statvfs+set}" = set; then
35728 echo $ECHO_N "(cached) $ECHO_C" >&6
35729else
35730 cat >conftest.$ac_ext <<_ACEOF
35731/* confdefs.h. */
35732_ACEOF
35733cat confdefs.h >>conftest.$ac_ext
35734cat >>conftest.$ac_ext <<_ACEOF
35735/* end confdefs.h. */
35736
35737 #include <stddef.h>
35738 #include <sys/statvfs.h>
35739
35740int
35741main ()
35742{
35743
35744 statvfs("/", NULL);
35745
35746 ;
35747 return 0;
35748}
35749_ACEOF
35750rm -f conftest.$ac_objext
35751if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 35752 (eval $ac_compile) 2>conftest.er1
a848cd7e 35753 ac_status=$?
ac1cb8d3
VS
35754 grep -v '^ *+' conftest.er1 >conftest.err
35755 rm -f conftest.er1
35756 cat conftest.err >&5
a848cd7e
SC
35757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35758 (exit $ac_status); } &&
c9a66001 35759 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
35760 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35761 (eval $ac_try) 2>&5
35762 ac_status=$?
35763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35764 (exit $ac_status); }; } &&
35765 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
35766 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35767 (eval $ac_try) 2>&5
35768 ac_status=$?
35769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35770 (exit $ac_status); }; }; then
35771 wx_cv_func_statvfs=yes
35772else
35773 echo "$as_me: failed program was:" >&5
35774sed 's/^/| /' conftest.$ac_ext >&5
35775
35776wx_cv_func_statvfs=no
35777
35778fi
ac1cb8d3 35779rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
35780
35781fi
35782echo "$as_me:$LINENO: result: $wx_cv_func_statvfs" >&5
35783echo "${ECHO_T}$wx_cv_func_statvfs" >&6
35784
35785 if test "$wx_cv_func_statvfs" = "yes"; then
5d7b7554 35786 echo "$as_me:$LINENO: checking for statvfs argument type" >&5
a848cd7e
SC
35787echo $ECHO_N "checking for statvfs argument type... $ECHO_C" >&6
35788if test "${wx_cv_type_statvfs_t+set}" = set; then
35789 echo $ECHO_N "(cached) $ECHO_C" >&6
35790else
35791 cat >conftest.$ac_ext <<_ACEOF
35792/* confdefs.h. */
35793_ACEOF
35794cat confdefs.h >>conftest.$ac_ext
35795cat >>conftest.$ac_ext <<_ACEOF
35796/* end confdefs.h. */
35797
35798 #include <sys/statvfs.h>
35799
35800int
35801main ()
35802{
35803
35804 long l;
35805 statvfs_t fs;
35806 statvfs("/", &fs);
35807 l = fs.f_bsize;
35808 l += fs.f_blocks;
35809 l += fs.f_bavail;
35810
35811 ;
35812 return 0;
35813}
35814_ACEOF
35815rm -f conftest.$ac_objext
35816if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 35817 (eval $ac_compile) 2>conftest.er1
a848cd7e 35818 ac_status=$?
ac1cb8d3
VS
35819 grep -v '^ *+' conftest.er1 >conftest.err
35820 rm -f conftest.er1
35821 cat conftest.err >&5
a848cd7e
SC
35822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35823 (exit $ac_status); } &&
c9a66001 35824 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
35825 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35826 (eval $ac_try) 2>&5
35827 ac_status=$?
35828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35829 (exit $ac_status); }; } &&
35830 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
35831 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35832 (eval $ac_try) 2>&5
35833 ac_status=$?
35834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35835 (exit $ac_status); }; }; then
35836 wx_cv_type_statvfs_t=statvfs_t
35837else
35838 echo "$as_me: failed program was:" >&5
35839sed 's/^/| /' conftest.$ac_ext >&5
35840
35841
35842 cat >conftest.$ac_ext <<_ACEOF
35843/* confdefs.h. */
35844_ACEOF
35845cat confdefs.h >>conftest.$ac_ext
35846cat >>conftest.$ac_ext <<_ACEOF
35847/* end confdefs.h. */
35848
35849 #include <sys/statvfs.h>
35850
35851int
35852main ()
35853{
35854
35855 long l;
35856 struct statvfs fs;
35857 statvfs("/", &fs);
35858 l = fs.f_bsize;
35859 l += fs.f_blocks;
35860 l += fs.f_bavail;
35861
35862 ;
35863 return 0;
35864}
35865_ACEOF
35866rm -f conftest.$ac_objext
35867if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 35868 (eval $ac_compile) 2>conftest.er1
a848cd7e 35869 ac_status=$?
ac1cb8d3
VS
35870 grep -v '^ *+' conftest.er1 >conftest.err
35871 rm -f conftest.er1
35872 cat conftest.err >&5
a848cd7e
SC
35873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35874 (exit $ac_status); } &&
c9a66001 35875 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
35876 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35877 (eval $ac_try) 2>&5
35878 ac_status=$?
35879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35880 (exit $ac_status); }; } &&
35881 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
35882 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35883 (eval $ac_try) 2>&5
35884 ac_status=$?
35885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35886 (exit $ac_status); }; }; then
35887 wx_cv_type_statvfs_t="struct statvfs"
35888else
35889 echo "$as_me: failed program was:" >&5
35890sed 's/^/| /' conftest.$ac_ext >&5
35891
35892wx_cv_type_statvfs_t="unknown"
35893
35894fi
ac1cb8d3 35895rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
35896
35897
35898fi
ac1cb8d3 35899rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
35900
35901fi
35902echo "$as_me:$LINENO: result: $wx_cv_type_statvfs_t" >&5
35903echo "${ECHO_T}$wx_cv_type_statvfs_t" >&6
35904
a848cd7e
SC
35905 if test "$wx_cv_type_statvfs_t" != "unknown"; then
35906 cat >>confdefs.h <<\_ACEOF
35907#define HAVE_STATVFS 1
35908_ACEOF
35909
35910 fi
35911 else
35912 wx_cv_type_statvfs_t="unknown"
35913 fi
35914fi
35915
35916if test "$wx_cv_type_statvfs_t" != "unknown"; then
35917 cat >>confdefs.h <<_ACEOF
35918#define WX_STATFS_T $wx_cv_type_statvfs_t
35919_ACEOF
35920
35921else
35922 { echo "$as_me:$LINENO: WARNING: wxGetDiskSpace() function won't work without statfs()" >&5
35923echo "$as_me: WARNING: wxGetDiskSpace() function won't work without statfs()" >&2;}
35924fi
35925
35926if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
35927
35928
35929for ac_func in fcntl flock
35930do
35931as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35932echo "$as_me:$LINENO: checking for $ac_func" >&5
35933echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
35934if eval "test \"\${$as_ac_var+set}\" = set"; then
35935 echo $ECHO_N "(cached) $ECHO_C" >&6
35936else
35937 cat >conftest.$ac_ext <<_ACEOF
35938/* confdefs.h. */
35939_ACEOF
35940cat confdefs.h >>conftest.$ac_ext
35941cat >>conftest.$ac_ext <<_ACEOF
35942/* end confdefs.h. */
ac1cb8d3
VS
35943/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
35944 For example, HP-UX 11i <limits.h> declares gettimeofday. */
35945#define $ac_func innocuous_$ac_func
35946
a848cd7e
SC
35947/* System header to define __stub macros and hopefully few prototypes,
35948 which can conflict with char $ac_func (); below.
35949 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35950 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 35951
a848cd7e
SC
35952#ifdef __STDC__
35953# include <limits.h>
35954#else
35955# include <assert.h>
35956#endif
ac1cb8d3
VS
35957
35958#undef $ac_func
35959
a848cd7e
SC
35960/* Override any gcc2 internal prototype to avoid an error. */
35961#ifdef __cplusplus
35962extern "C"
35963{
35964#endif
35965/* We use char because int might match the return type of a gcc2
35966 builtin and then its argument prototype would still apply. */
35967char $ac_func ();
35968/* The GNU C library defines this for functions which it implements
35969 to always fail with ENOSYS. Some functions are actually named
35970 something starting with __ and the normal name is an alias. */
35971#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
35972choke me
35973#else
35974char (*f) () = $ac_func;
35975#endif
35976#ifdef __cplusplus
35977}
35978#endif
35979
35980int
35981main ()
35982{
35983return f != $ac_func;
35984 ;
35985 return 0;
35986}
35987_ACEOF
35988rm -f conftest.$ac_objext conftest$ac_exeext
35989if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 35990 (eval $ac_link) 2>conftest.er1
a848cd7e 35991 ac_status=$?
ac1cb8d3
VS
35992 grep -v '^ *+' conftest.er1 >conftest.err
35993 rm -f conftest.er1
35994 cat conftest.err >&5
a848cd7e
SC
35995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35996 (exit $ac_status); } &&
c9a66001 35997 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
35998 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35999 (eval $ac_try) 2>&5
36000 ac_status=$?
36001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36002 (exit $ac_status); }; } &&
36003 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
36004 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36005 (eval $ac_try) 2>&5
36006 ac_status=$?
36007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36008 (exit $ac_status); }; }; then
36009 eval "$as_ac_var=yes"
36010else
36011 echo "$as_me: failed program was:" >&5
36012sed 's/^/| /' conftest.$ac_ext >&5
36013
36014eval "$as_ac_var=no"
36015fi
ac1cb8d3
VS
36016rm -f conftest.err conftest.$ac_objext \
36017 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
36018fi
36019echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
36020echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
36021if test `eval echo '${'$as_ac_var'}'` = yes; then
36022 cat >>confdefs.h <<_ACEOF
36023#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36024_ACEOF
36025 break
36026fi
36027done
36028
36029
36030 if test "$ac_cv_func_fcntl" != "yes" -a "$ac_cv_func_flock" != "yes"; then
36031 { echo "$as_me:$LINENO: WARNING: wxSingleInstanceChecker not available" >&5
36032echo "$as_me: WARNING: wxSingleInstanceChecker not available" >&2;}
36033 wxUSE_SNGLINST_CHECKER=no
36034 fi
36035fi
36036
36037
36038for ac_func in timegm
36039do
36040as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36041echo "$as_me:$LINENO: checking for $ac_func" >&5
36042echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
36043if eval "test \"\${$as_ac_var+set}\" = set"; then
36044 echo $ECHO_N "(cached) $ECHO_C" >&6
36045else
36046 cat >conftest.$ac_ext <<_ACEOF
36047/* confdefs.h. */
36048_ACEOF
36049cat confdefs.h >>conftest.$ac_ext
36050cat >>conftest.$ac_ext <<_ACEOF
36051/* end confdefs.h. */
ac1cb8d3
VS
36052/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
36053 For example, HP-UX 11i <limits.h> declares gettimeofday. */
36054#define $ac_func innocuous_$ac_func
36055
a848cd7e
SC
36056/* System header to define __stub macros and hopefully few prototypes,
36057 which can conflict with char $ac_func (); below.
36058 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36059 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 36060
a848cd7e
SC
36061#ifdef __STDC__
36062# include <limits.h>
36063#else
36064# include <assert.h>
36065#endif
ac1cb8d3
VS
36066
36067#undef $ac_func
36068
a848cd7e
SC
36069/* Override any gcc2 internal prototype to avoid an error. */
36070#ifdef __cplusplus
36071extern "C"
36072{
36073#endif
36074/* We use char because int might match the return type of a gcc2
36075 builtin and then its argument prototype would still apply. */
36076char $ac_func ();
36077/* The GNU C library defines this for functions which it implements
36078 to always fail with ENOSYS. Some functions are actually named
36079 something starting with __ and the normal name is an alias. */
36080#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
36081choke me
36082#else
36083char (*f) () = $ac_func;
36084#endif
36085#ifdef __cplusplus
36086}
36087#endif
36088
36089int
36090main ()
36091{
36092return f != $ac_func;
36093 ;
36094 return 0;
36095}
36096_ACEOF
36097rm -f conftest.$ac_objext conftest$ac_exeext
36098if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 36099 (eval $ac_link) 2>conftest.er1
a848cd7e 36100 ac_status=$?
ac1cb8d3
VS
36101 grep -v '^ *+' conftest.er1 >conftest.err
36102 rm -f conftest.er1
36103 cat conftest.err >&5
a848cd7e
SC
36104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36105 (exit $ac_status); } &&
c9a66001 36106 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
36107 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36108 (eval $ac_try) 2>&5
36109 ac_status=$?
36110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36111 (exit $ac_status); }; } &&
36112 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
36113 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36114 (eval $ac_try) 2>&5
36115 ac_status=$?
36116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36117 (exit $ac_status); }; }; then
36118 eval "$as_ac_var=yes"
36119else
36120 echo "$as_me: failed program was:" >&5
36121sed 's/^/| /' conftest.$ac_ext >&5
36122
36123eval "$as_ac_var=no"
36124fi
ac1cb8d3
VS
36125rm -f conftest.err conftest.$ac_objext \
36126 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
36127fi
36128echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
36129echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
36130if test `eval echo '${'$as_ac_var'}'` = yes; then
36131 cat >>confdefs.h <<_ACEOF
36132#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36133_ACEOF
36134
36135fi
36136done
36137
36138
36139
36140
36141for ac_func in putenv setenv
36142do
36143as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36144echo "$as_me:$LINENO: checking for $ac_func" >&5
36145echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
36146if eval "test \"\${$as_ac_var+set}\" = set"; then
36147 echo $ECHO_N "(cached) $ECHO_C" >&6
36148else
36149 cat >conftest.$ac_ext <<_ACEOF
36150/* confdefs.h. */
36151_ACEOF
36152cat confdefs.h >>conftest.$ac_ext
36153cat >>conftest.$ac_ext <<_ACEOF
36154/* end confdefs.h. */
ac1cb8d3
VS
36155/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
36156 For example, HP-UX 11i <limits.h> declares gettimeofday. */
36157#define $ac_func innocuous_$ac_func
36158
a848cd7e
SC
36159/* System header to define __stub macros and hopefully few prototypes,
36160 which can conflict with char $ac_func (); below.
36161 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36162 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 36163
a848cd7e
SC
36164#ifdef __STDC__
36165# include <limits.h>
36166#else
36167# include <assert.h>
36168#endif
ac1cb8d3
VS
36169
36170#undef $ac_func
36171
a848cd7e
SC
36172/* Override any gcc2 internal prototype to avoid an error. */
36173#ifdef __cplusplus
36174extern "C"
36175{
36176#endif
36177/* We use char because int might match the return type of a gcc2
36178 builtin and then its argument prototype would still apply. */
36179char $ac_func ();
36180/* The GNU C library defines this for functions which it implements
36181 to always fail with ENOSYS. Some functions are actually named
36182 something starting with __ and the normal name is an alias. */
36183#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
36184choke me
36185#else
36186char (*f) () = $ac_func;
36187#endif
36188#ifdef __cplusplus
36189}
36190#endif
36191
36192int
36193main ()
36194{
36195return f != $ac_func;
36196 ;
36197 return 0;
36198}
36199_ACEOF
36200rm -f conftest.$ac_objext conftest$ac_exeext
36201if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 36202 (eval $ac_link) 2>conftest.er1
a848cd7e 36203 ac_status=$?
ac1cb8d3
VS
36204 grep -v '^ *+' conftest.er1 >conftest.err
36205 rm -f conftest.er1
36206 cat conftest.err >&5
a848cd7e
SC
36207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36208 (exit $ac_status); } &&
c9a66001 36209 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
36210 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36211 (eval $ac_try) 2>&5
36212 ac_status=$?
36213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36214 (exit $ac_status); }; } &&
36215 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
36216 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36217 (eval $ac_try) 2>&5
36218 ac_status=$?
36219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36220 (exit $ac_status); }; }; then
36221 eval "$as_ac_var=yes"
36222else
36223 echo "$as_me: failed program was:" >&5
36224sed 's/^/| /' conftest.$ac_ext >&5
36225
36226eval "$as_ac_var=no"
36227fi
ac1cb8d3
VS
36228rm -f conftest.err conftest.$ac_objext \
36229 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
36230fi
36231echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
36232echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
36233if test `eval echo '${'$as_ac_var'}'` = yes; then
36234 cat >>confdefs.h <<_ACEOF
36235#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36236_ACEOF
36237 break
36238fi
36239done
36240
36241
36242HAVE_SOME_SLEEP_FUNC=0
36243if test "$USE_BEOS" = 1; then
36244 cat >>confdefs.h <<\_ACEOF
36245#define HAVE_SLEEP 1
36246_ACEOF
36247
36248 HAVE_SOME_SLEEP_FUNC=1
36249fi
36250
36251if test "$USE_DARWIN" = 1; then
36252 cat >>confdefs.h <<\_ACEOF
36253#define HAVE_USLEEP 1
36254_ACEOF
36255
36256 HAVE_SOME_SLEEP_FUNC=1
36257fi
36258
36259if test "$HAVE_SOME_SLEEP_FUNC" != 1; then
36260 POSIX4_LINK=
36261
36262for ac_func in nanosleep
36263do
36264as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36265echo "$as_me:$LINENO: checking for $ac_func" >&5
36266echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
36267if eval "test \"\${$as_ac_var+set}\" = set"; then
36268 echo $ECHO_N "(cached) $ECHO_C" >&6
36269else
36270 cat >conftest.$ac_ext <<_ACEOF
36271/* confdefs.h. */
36272_ACEOF
36273cat confdefs.h >>conftest.$ac_ext
36274cat >>conftest.$ac_ext <<_ACEOF
36275/* end confdefs.h. */
ac1cb8d3
VS
36276/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
36277 For example, HP-UX 11i <limits.h> declares gettimeofday. */
36278#define $ac_func innocuous_$ac_func
36279
a848cd7e
SC
36280/* System header to define __stub macros and hopefully few prototypes,
36281 which can conflict with char $ac_func (); below.
36282 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36283 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 36284
a848cd7e
SC
36285#ifdef __STDC__
36286# include <limits.h>
36287#else
36288# include <assert.h>
36289#endif
ac1cb8d3
VS
36290
36291#undef $ac_func
36292
a848cd7e
SC
36293/* Override any gcc2 internal prototype to avoid an error. */
36294#ifdef __cplusplus
36295extern "C"
36296{
36297#endif
36298/* We use char because int might match the return type of a gcc2
36299 builtin and then its argument prototype would still apply. */
36300char $ac_func ();
36301/* The GNU C library defines this for functions which it implements
36302 to always fail with ENOSYS. Some functions are actually named
36303 something starting with __ and the normal name is an alias. */
36304#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
36305choke me
36306#else
36307char (*f) () = $ac_func;
36308#endif
36309#ifdef __cplusplus
36310}
36311#endif
36312
36313int
36314main ()
36315{
36316return f != $ac_func;
36317 ;
36318 return 0;
36319}
36320_ACEOF
36321rm -f conftest.$ac_objext conftest$ac_exeext
36322if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 36323 (eval $ac_link) 2>conftest.er1
a848cd7e 36324 ac_status=$?
ac1cb8d3
VS
36325 grep -v '^ *+' conftest.er1 >conftest.err
36326 rm -f conftest.er1
36327 cat conftest.err >&5
a848cd7e
SC
36328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36329 (exit $ac_status); } &&
c9a66001 36330 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
36331 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36332 (eval $ac_try) 2>&5
36333 ac_status=$?
36334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36335 (exit $ac_status); }; } &&
36336 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
36337 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36338 (eval $ac_try) 2>&5
36339 ac_status=$?
36340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36341 (exit $ac_status); }; }; then
36342 eval "$as_ac_var=yes"
36343else
36344 echo "$as_me: failed program was:" >&5
36345sed 's/^/| /' conftest.$ac_ext >&5
36346
36347eval "$as_ac_var=no"
36348fi
ac1cb8d3
VS
36349rm -f conftest.err conftest.$ac_objext \
36350 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
36351fi
36352echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
36353echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
36354if test `eval echo '${'$as_ac_var'}'` = yes; then
36355 cat >>confdefs.h <<_ACEOF
36356#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36357_ACEOF
36358 cat >>confdefs.h <<\_ACEOF
36359#define HAVE_NANOSLEEP 1
36360_ACEOF
36361
36362else
36363
36364 echo "$as_me:$LINENO: checking for nanosleep in -lposix4" >&5
36365echo $ECHO_N "checking for nanosleep in -lposix4... $ECHO_C" >&6
36366if test "${ac_cv_lib_posix4_nanosleep+set}" = set; then
36367 echo $ECHO_N "(cached) $ECHO_C" >&6
36368else
36369 ac_check_lib_save_LIBS=$LIBS
36370LIBS="-lposix4 $LIBS"
36371cat >conftest.$ac_ext <<_ACEOF
36372/* confdefs.h. */
36373_ACEOF
36374cat confdefs.h >>conftest.$ac_ext
36375cat >>conftest.$ac_ext <<_ACEOF
36376/* end confdefs.h. */
36377
36378/* Override any gcc2 internal prototype to avoid an error. */
36379#ifdef __cplusplus
36380extern "C"
36381#endif
36382/* We use char because int might match the return type of a gcc2
36383 builtin and then its argument prototype would still apply. */
36384char nanosleep ();
36385int
36386main ()
36387{
36388nanosleep ();
36389 ;
36390 return 0;
36391}
36392_ACEOF
36393rm -f conftest.$ac_objext conftest$ac_exeext
36394if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 36395 (eval $ac_link) 2>conftest.er1
a848cd7e 36396 ac_status=$?
ac1cb8d3
VS
36397 grep -v '^ *+' conftest.er1 >conftest.err
36398 rm -f conftest.er1
36399 cat conftest.err >&5
a848cd7e
SC
36400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36401 (exit $ac_status); } &&
c9a66001 36402 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
36403 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36404 (eval $ac_try) 2>&5
36405 ac_status=$?
36406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36407 (exit $ac_status); }; } &&
36408 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
36409 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36410 (eval $ac_try) 2>&5
36411 ac_status=$?
36412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36413 (exit $ac_status); }; }; then
36414 ac_cv_lib_posix4_nanosleep=yes
36415else
36416 echo "$as_me: failed program was:" >&5
36417sed 's/^/| /' conftest.$ac_ext >&5
36418
36419ac_cv_lib_posix4_nanosleep=no
36420fi
ac1cb8d3
VS
36421rm -f conftest.err conftest.$ac_objext \
36422 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
36423LIBS=$ac_check_lib_save_LIBS
36424fi
36425echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_nanosleep" >&5
36426echo "${ECHO_T}$ac_cv_lib_posix4_nanosleep" >&6
36427if test $ac_cv_lib_posix4_nanosleep = yes; then
36428
36429 cat >>confdefs.h <<\_ACEOF
36430#define HAVE_NANOSLEEP 1
36431_ACEOF
36432
36433 POSIX4_LINK=" -lposix4"
36434
36435else
36436
36437
36438for ac_func in usleep
36439do
36440as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36441echo "$as_me:$LINENO: checking for $ac_func" >&5
36442echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
36443if eval "test \"\${$as_ac_var+set}\" = set"; then
36444 echo $ECHO_N "(cached) $ECHO_C" >&6
36445else
36446 cat >conftest.$ac_ext <<_ACEOF
36447/* confdefs.h. */
36448_ACEOF
36449cat confdefs.h >>conftest.$ac_ext
36450cat >>conftest.$ac_ext <<_ACEOF
36451/* end confdefs.h. */
ac1cb8d3
VS
36452/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
36453 For example, HP-UX 11i <limits.h> declares gettimeofday. */
36454#define $ac_func innocuous_$ac_func
36455
a848cd7e
SC
36456/* System header to define __stub macros and hopefully few prototypes,
36457 which can conflict with char $ac_func (); below.
36458 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36459 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 36460
a848cd7e
SC
36461#ifdef __STDC__
36462# include <limits.h>
36463#else
36464# include <assert.h>
36465#endif
ac1cb8d3
VS
36466
36467#undef $ac_func
36468
a848cd7e
SC
36469/* Override any gcc2 internal prototype to avoid an error. */
36470#ifdef __cplusplus
36471extern "C"
36472{
36473#endif
36474/* We use char because int might match the return type of a gcc2
36475 builtin and then its argument prototype would still apply. */
36476char $ac_func ();
36477/* The GNU C library defines this for functions which it implements
36478 to always fail with ENOSYS. Some functions are actually named
36479 something starting with __ and the normal name is an alias. */
36480#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
36481choke me
36482#else
36483char (*f) () = $ac_func;
36484#endif
36485#ifdef __cplusplus
36486}
36487#endif
36488
36489int
36490main ()
36491{
36492return f != $ac_func;
36493 ;
36494 return 0;
36495}
36496_ACEOF
36497rm -f conftest.$ac_objext conftest$ac_exeext
36498if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 36499 (eval $ac_link) 2>conftest.er1
a848cd7e 36500 ac_status=$?
ac1cb8d3
VS
36501 grep -v '^ *+' conftest.er1 >conftest.err
36502 rm -f conftest.er1
36503 cat conftest.err >&5
a848cd7e
SC
36504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36505 (exit $ac_status); } &&
c9a66001 36506 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
36507 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36508 (eval $ac_try) 2>&5
36509 ac_status=$?
36510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36511 (exit $ac_status); }; } &&
36512 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
36513 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36514 (eval $ac_try) 2>&5
36515 ac_status=$?
36516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36517 (exit $ac_status); }; }; then
36518 eval "$as_ac_var=yes"
36519else
36520 echo "$as_me: failed program was:" >&5
36521sed 's/^/| /' conftest.$ac_ext >&5
36522
36523eval "$as_ac_var=no"
36524fi
ac1cb8d3
VS
36525rm -f conftest.err conftest.$ac_objext \
36526 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
36527fi
36528echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
36529echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
36530if test `eval echo '${'$as_ac_var'}'` = yes; then
36531 cat >>confdefs.h <<_ACEOF
36532#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36533_ACEOF
36534 cat >>confdefs.h <<\_ACEOF
36535#define HAVE_USLEEP 1
36536_ACEOF
36537
36538else
36539 { echo "$as_me:$LINENO: WARNING: wxSleep() function will not work" >&5
36540echo "$as_me: WARNING: wxSleep() function will not work" >&2;}
36541
36542fi
36543done
36544
36545
36546
36547fi
36548
36549
36550
36551fi
36552done
36553
36554fi
36555
36556
36557
36558for ac_func in uname gethostname
36559do
36560as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36561echo "$as_me:$LINENO: checking for $ac_func" >&5
36562echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
36563if eval "test \"\${$as_ac_var+set}\" = set"; then
36564 echo $ECHO_N "(cached) $ECHO_C" >&6
36565else
36566 cat >conftest.$ac_ext <<_ACEOF
36567/* confdefs.h. */
36568_ACEOF
36569cat confdefs.h >>conftest.$ac_ext
36570cat >>conftest.$ac_ext <<_ACEOF
36571/* end confdefs.h. */
ac1cb8d3
VS
36572/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
36573 For example, HP-UX 11i <limits.h> declares gettimeofday. */
36574#define $ac_func innocuous_$ac_func
36575
a848cd7e
SC
36576/* System header to define __stub macros and hopefully few prototypes,
36577 which can conflict with char $ac_func (); below.
36578 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36579 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 36580
a848cd7e
SC
36581#ifdef __STDC__
36582# include <limits.h>
36583#else
36584# include <assert.h>
36585#endif
ac1cb8d3
VS
36586
36587#undef $ac_func
36588
a848cd7e
SC
36589/* Override any gcc2 internal prototype to avoid an error. */
36590#ifdef __cplusplus
36591extern "C"
36592{
36593#endif
36594/* We use char because int might match the return type of a gcc2
36595 builtin and then its argument prototype would still apply. */
36596char $ac_func ();
36597/* The GNU C library defines this for functions which it implements
36598 to always fail with ENOSYS. Some functions are actually named
36599 something starting with __ and the normal name is an alias. */
36600#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
36601choke me
36602#else
36603char (*f) () = $ac_func;
36604#endif
36605#ifdef __cplusplus
36606}
36607#endif
36608
36609int
36610main ()
36611{
36612return f != $ac_func;
36613 ;
36614 return 0;
36615}
36616_ACEOF
36617rm -f conftest.$ac_objext conftest$ac_exeext
36618if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 36619 (eval $ac_link) 2>conftest.er1
a848cd7e 36620 ac_status=$?
ac1cb8d3
VS
36621 grep -v '^ *+' conftest.er1 >conftest.err
36622 rm -f conftest.er1
36623 cat conftest.err >&5
a848cd7e
SC
36624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36625 (exit $ac_status); } &&
c9a66001 36626 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
36627 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36628 (eval $ac_try) 2>&5
36629 ac_status=$?
36630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36631 (exit $ac_status); }; } &&
36632 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
36633 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36634 (eval $ac_try) 2>&5
36635 ac_status=$?
36636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36637 (exit $ac_status); }; }; then
36638 eval "$as_ac_var=yes"
36639else
36640 echo "$as_me: failed program was:" >&5
36641sed 's/^/| /' conftest.$ac_ext >&5
36642
36643eval "$as_ac_var=no"
36644fi
ac1cb8d3
VS
36645rm -f conftest.err conftest.$ac_objext \
36646 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
36647fi
36648echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
36649echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
36650if test `eval echo '${'$as_ac_var'}'` = yes; then
36651 cat >>confdefs.h <<_ACEOF
36652#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36653_ACEOF
36654 break
36655fi
36656done
36657
36658
a848cd7e
SC
36659
36660for ac_func in strtok_r
36661do
36662as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36663echo "$as_me:$LINENO: checking for $ac_func" >&5
36664echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
36665if eval "test \"\${$as_ac_var+set}\" = set"; then
36666 echo $ECHO_N "(cached) $ECHO_C" >&6
36667else
36668 cat >conftest.$ac_ext <<_ACEOF
36669/* confdefs.h. */
36670_ACEOF
36671cat confdefs.h >>conftest.$ac_ext
36672cat >>conftest.$ac_ext <<_ACEOF
36673/* end confdefs.h. */
ac1cb8d3
VS
36674/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
36675 For example, HP-UX 11i <limits.h> declares gettimeofday. */
36676#define $ac_func innocuous_$ac_func
36677
a848cd7e
SC
36678/* System header to define __stub macros and hopefully few prototypes,
36679 which can conflict with char $ac_func (); below.
36680 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36681 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 36682
a848cd7e
SC
36683#ifdef __STDC__
36684# include <limits.h>
36685#else
36686# include <assert.h>
36687#endif
ac1cb8d3
VS
36688
36689#undef $ac_func
36690
a848cd7e
SC
36691/* Override any gcc2 internal prototype to avoid an error. */
36692#ifdef __cplusplus
36693extern "C"
36694{
36695#endif
36696/* We use char because int might match the return type of a gcc2
36697 builtin and then its argument prototype would still apply. */
36698char $ac_func ();
36699/* The GNU C library defines this for functions which it implements
36700 to always fail with ENOSYS. Some functions are actually named
36701 something starting with __ and the normal name is an alias. */
36702#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
36703choke me
36704#else
36705char (*f) () = $ac_func;
36706#endif
36707#ifdef __cplusplus
36708}
36709#endif
36710
36711int
36712main ()
36713{
36714return f != $ac_func;
36715 ;
36716 return 0;
36717}
36718_ACEOF
36719rm -f conftest.$ac_objext conftest$ac_exeext
36720if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 36721 (eval $ac_link) 2>conftest.er1
a848cd7e 36722 ac_status=$?
ac1cb8d3
VS
36723 grep -v '^ *+' conftest.er1 >conftest.err
36724 rm -f conftest.er1
36725 cat conftest.err >&5
a848cd7e
SC
36726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36727 (exit $ac_status); } &&
c9a66001 36728 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
36729 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36730 (eval $ac_try) 2>&5
36731 ac_status=$?
36732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36733 (exit $ac_status); }; } &&
36734 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
36735 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36736 (eval $ac_try) 2>&5
36737 ac_status=$?
36738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36739 (exit $ac_status); }; }; then
36740 eval "$as_ac_var=yes"
36741else
36742 echo "$as_me: failed program was:" >&5
36743sed 's/^/| /' conftest.$ac_ext >&5
36744
36745eval "$as_ac_var=no"
36746fi
ac1cb8d3
VS
36747rm -f conftest.err conftest.$ac_objext \
36748 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
36749fi
36750echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
36751echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
36752if test `eval echo '${'$as_ac_var'}'` = yes; then
36753 cat >>confdefs.h <<_ACEOF
36754#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36755_ACEOF
36756
36757fi
36758done
36759
36760
a848cd7e
SC
36761INET_LINK=
36762
36763for ac_func in inet_addr
36764do
36765as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36766echo "$as_me:$LINENO: checking for $ac_func" >&5
36767echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
36768if eval "test \"\${$as_ac_var+set}\" = set"; then
36769 echo $ECHO_N "(cached) $ECHO_C" >&6
36770else
36771 cat >conftest.$ac_ext <<_ACEOF
36772/* confdefs.h. */
36773_ACEOF
36774cat confdefs.h >>conftest.$ac_ext
36775cat >>conftest.$ac_ext <<_ACEOF
36776/* end confdefs.h. */
ac1cb8d3
VS
36777/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
36778 For example, HP-UX 11i <limits.h> declares gettimeofday. */
36779#define $ac_func innocuous_$ac_func
36780
a848cd7e
SC
36781/* System header to define __stub macros and hopefully few prototypes,
36782 which can conflict with char $ac_func (); below.
36783 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36784 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 36785
a848cd7e
SC
36786#ifdef __STDC__
36787# include <limits.h>
36788#else
36789# include <assert.h>
36790#endif
ac1cb8d3
VS
36791
36792#undef $ac_func
36793
a848cd7e
SC
36794/* Override any gcc2 internal prototype to avoid an error. */
36795#ifdef __cplusplus
36796extern "C"
36797{
36798#endif
36799/* We use char because int might match the return type of a gcc2
36800 builtin and then its argument prototype would still apply. */
36801char $ac_func ();
36802/* The GNU C library defines this for functions which it implements
36803 to always fail with ENOSYS. Some functions are actually named
36804 something starting with __ and the normal name is an alias. */
36805#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
36806choke me
36807#else
36808char (*f) () = $ac_func;
36809#endif
36810#ifdef __cplusplus
36811}
36812#endif
36813
36814int
36815main ()
36816{
36817return f != $ac_func;
36818 ;
36819 return 0;
36820}
36821_ACEOF
36822rm -f conftest.$ac_objext conftest$ac_exeext
36823if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 36824 (eval $ac_link) 2>conftest.er1
a848cd7e 36825 ac_status=$?
ac1cb8d3
VS
36826 grep -v '^ *+' conftest.er1 >conftest.err
36827 rm -f conftest.er1
36828 cat conftest.err >&5
a848cd7e
SC
36829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36830 (exit $ac_status); } &&
c9a66001 36831 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
36832 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36833 (eval $ac_try) 2>&5
36834 ac_status=$?
36835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36836 (exit $ac_status); }; } &&
36837 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
36838 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36839 (eval $ac_try) 2>&5
36840 ac_status=$?
36841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36842 (exit $ac_status); }; }; then
36843 eval "$as_ac_var=yes"
36844else
36845 echo "$as_me: failed program was:" >&5
36846sed 's/^/| /' conftest.$ac_ext >&5
36847
36848eval "$as_ac_var=no"
36849fi
ac1cb8d3
VS
36850rm -f conftest.err conftest.$ac_objext \
36851 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
36852fi
36853echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
36854echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
36855if test `eval echo '${'$as_ac_var'}'` = yes; then
36856 cat >>confdefs.h <<_ACEOF
36857#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36858_ACEOF
36859 cat >>confdefs.h <<\_ACEOF
36860#define HAVE_INET_ADDR 1
36861_ACEOF
36862
36863else
36864
36865 echo "$as_me:$LINENO: checking for inet_addr in -lnsl" >&5
36866echo $ECHO_N "checking for inet_addr in -lnsl... $ECHO_C" >&6
36867if test "${ac_cv_lib_nsl_inet_addr+set}" = set; then
36868 echo $ECHO_N "(cached) $ECHO_C" >&6
36869else
36870 ac_check_lib_save_LIBS=$LIBS
36871LIBS="-lnsl $LIBS"
36872cat >conftest.$ac_ext <<_ACEOF
36873/* confdefs.h. */
36874_ACEOF
36875cat confdefs.h >>conftest.$ac_ext
36876cat >>conftest.$ac_ext <<_ACEOF
36877/* end confdefs.h. */
36878
36879/* Override any gcc2 internal prototype to avoid an error. */
36880#ifdef __cplusplus
36881extern "C"
36882#endif
36883/* We use char because int might match the return type of a gcc2
36884 builtin and then its argument prototype would still apply. */
36885char inet_addr ();
36886int
36887main ()
36888{
36889inet_addr ();
36890 ;
36891 return 0;
36892}
36893_ACEOF
36894rm -f conftest.$ac_objext conftest$ac_exeext
36895if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 36896 (eval $ac_link) 2>conftest.er1
a848cd7e 36897 ac_status=$?
ac1cb8d3
VS
36898 grep -v '^ *+' conftest.er1 >conftest.err
36899 rm -f conftest.er1
36900 cat conftest.err >&5
a848cd7e
SC
36901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36902 (exit $ac_status); } &&
c9a66001 36903 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
36904 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36905 (eval $ac_try) 2>&5
36906 ac_status=$?
36907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36908 (exit $ac_status); }; } &&
36909 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
36910 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36911 (eval $ac_try) 2>&5
36912 ac_status=$?
36913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36914 (exit $ac_status); }; }; then
36915 ac_cv_lib_nsl_inet_addr=yes
36916else
36917 echo "$as_me: failed program was:" >&5
36918sed 's/^/| /' conftest.$ac_ext >&5
36919
36920ac_cv_lib_nsl_inet_addr=no
36921fi
ac1cb8d3
VS
36922rm -f conftest.err conftest.$ac_objext \
36923 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
36924LIBS=$ac_check_lib_save_LIBS
36925fi
36926echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_inet_addr" >&5
36927echo "${ECHO_T}$ac_cv_lib_nsl_inet_addr" >&6
36928if test $ac_cv_lib_nsl_inet_addr = yes; then
36929 INET_LINK="nsl"
36930else
36931
36932 echo "$as_me:$LINENO: checking for inet_addr in -lresolv" >&5
36933echo $ECHO_N "checking for inet_addr in -lresolv... $ECHO_C" >&6
36934if test "${ac_cv_lib_resolv_inet_addr+set}" = set; then
36935 echo $ECHO_N "(cached) $ECHO_C" >&6
36936else
36937 ac_check_lib_save_LIBS=$LIBS
36938LIBS="-lresolv $LIBS"
36939cat >conftest.$ac_ext <<_ACEOF
36940/* confdefs.h. */
36941_ACEOF
36942cat confdefs.h >>conftest.$ac_ext
36943cat >>conftest.$ac_ext <<_ACEOF
36944/* end confdefs.h. */
36945
36946/* Override any gcc2 internal prototype to avoid an error. */
36947#ifdef __cplusplus
36948extern "C"
36949#endif
36950/* We use char because int might match the return type of a gcc2
36951 builtin and then its argument prototype would still apply. */
36952char inet_addr ();
36953int
36954main ()
36955{
36956inet_addr ();
36957 ;
36958 return 0;
36959}
36960_ACEOF
36961rm -f conftest.$ac_objext conftest$ac_exeext
36962if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 36963 (eval $ac_link) 2>conftest.er1
a848cd7e 36964 ac_status=$?
ac1cb8d3
VS
36965 grep -v '^ *+' conftest.er1 >conftest.err
36966 rm -f conftest.er1
36967 cat conftest.err >&5
a848cd7e
SC
36968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36969 (exit $ac_status); } &&
c9a66001 36970 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
36971 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36972 (eval $ac_try) 2>&5
36973 ac_status=$?
36974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36975 (exit $ac_status); }; } &&
36976 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
36977 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36978 (eval $ac_try) 2>&5
36979 ac_status=$?
36980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36981 (exit $ac_status); }; }; then
36982 ac_cv_lib_resolv_inet_addr=yes
36983else
36984 echo "$as_me: failed program was:" >&5
36985sed 's/^/| /' conftest.$ac_ext >&5
36986
36987ac_cv_lib_resolv_inet_addr=no
36988fi
ac1cb8d3
VS
36989rm -f conftest.err conftest.$ac_objext \
36990 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
36991LIBS=$ac_check_lib_save_LIBS
36992fi
36993echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_inet_addr" >&5
36994echo "${ECHO_T}$ac_cv_lib_resolv_inet_addr" >&6
36995if test $ac_cv_lib_resolv_inet_addr = yes; then
36996 INET_LINK="resolv"
36997else
36998
36999 echo "$as_me:$LINENO: checking for inet_addr in -lsocket" >&5
37000echo $ECHO_N "checking for inet_addr in -lsocket... $ECHO_C" >&6
37001if test "${ac_cv_lib_socket_inet_addr+set}" = set; then
37002 echo $ECHO_N "(cached) $ECHO_C" >&6
37003else
37004 ac_check_lib_save_LIBS=$LIBS
37005LIBS="-lsocket $LIBS"
37006cat >conftest.$ac_ext <<_ACEOF
37007/* confdefs.h. */
37008_ACEOF
37009cat confdefs.h >>conftest.$ac_ext
37010cat >>conftest.$ac_ext <<_ACEOF
37011/* end confdefs.h. */
37012
37013/* Override any gcc2 internal prototype to avoid an error. */
37014#ifdef __cplusplus
37015extern "C"
37016#endif
37017/* We use char because int might match the return type of a gcc2
37018 builtin and then its argument prototype would still apply. */
37019char inet_addr ();
37020int
37021main ()
37022{
37023inet_addr ();
37024 ;
37025 return 0;
37026}
37027_ACEOF
37028rm -f conftest.$ac_objext conftest$ac_exeext
37029if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 37030 (eval $ac_link) 2>conftest.er1
a848cd7e 37031 ac_status=$?
ac1cb8d3
VS
37032 grep -v '^ *+' conftest.er1 >conftest.err
37033 rm -f conftest.er1
37034 cat conftest.err >&5
a848cd7e
SC
37035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37036 (exit $ac_status); } &&
c9a66001 37037 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
37038 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37039 (eval $ac_try) 2>&5
37040 ac_status=$?
37041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37042 (exit $ac_status); }; } &&
37043 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
37044 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37045 (eval $ac_try) 2>&5
37046 ac_status=$?
37047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37048 (exit $ac_status); }; }; then
37049 ac_cv_lib_socket_inet_addr=yes
37050else
37051 echo "$as_me: failed program was:" >&5
37052sed 's/^/| /' conftest.$ac_ext >&5
37053
37054ac_cv_lib_socket_inet_addr=no
37055fi
ac1cb8d3
VS
37056rm -f conftest.err conftest.$ac_objext \
37057 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
37058LIBS=$ac_check_lib_save_LIBS
37059fi
37060echo "$as_me:$LINENO: result: $ac_cv_lib_socket_inet_addr" >&5
37061echo "${ECHO_T}$ac_cv_lib_socket_inet_addr" >&6
37062if test $ac_cv_lib_socket_inet_addr = yes; then
37063 INET_LINK="socket"
37064
37065fi
37066
37067
37068
37069fi
37070
37071
37072
37073fi
37074
37075
37076
37077fi
37078done
37079
37080
37081
37082for ac_func in inet_aton
37083do
37084as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37085echo "$as_me:$LINENO: checking for $ac_func" >&5
37086echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
37087if eval "test \"\${$as_ac_var+set}\" = set"; then
37088 echo $ECHO_N "(cached) $ECHO_C" >&6
37089else
37090 cat >conftest.$ac_ext <<_ACEOF
37091/* confdefs.h. */
37092_ACEOF
37093cat confdefs.h >>conftest.$ac_ext
37094cat >>conftest.$ac_ext <<_ACEOF
37095/* end confdefs.h. */
ac1cb8d3
VS
37096/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37097 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37098#define $ac_func innocuous_$ac_func
37099
a848cd7e
SC
37100/* System header to define __stub macros and hopefully few prototypes,
37101 which can conflict with char $ac_func (); below.
37102 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37103 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 37104
a848cd7e
SC
37105#ifdef __STDC__
37106# include <limits.h>
37107#else
37108# include <assert.h>
37109#endif
ac1cb8d3
VS
37110
37111#undef $ac_func
37112
a848cd7e
SC
37113/* Override any gcc2 internal prototype to avoid an error. */
37114#ifdef __cplusplus
37115extern "C"
37116{
37117#endif
37118/* We use char because int might match the return type of a gcc2
37119 builtin and then its argument prototype would still apply. */
37120char $ac_func ();
37121/* The GNU C library defines this for functions which it implements
37122 to always fail with ENOSYS. Some functions are actually named
37123 something starting with __ and the normal name is an alias. */
37124#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
37125choke me
37126#else
37127char (*f) () = $ac_func;
37128#endif
37129#ifdef __cplusplus
37130}
37131#endif
37132
37133int
37134main ()
37135{
37136return f != $ac_func;
37137 ;
37138 return 0;
37139}
37140_ACEOF
37141rm -f conftest.$ac_objext conftest$ac_exeext
37142if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 37143 (eval $ac_link) 2>conftest.er1
a848cd7e 37144 ac_status=$?
ac1cb8d3
VS
37145 grep -v '^ *+' conftest.er1 >conftest.err
37146 rm -f conftest.er1
37147 cat conftest.err >&5
a848cd7e
SC
37148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37149 (exit $ac_status); } &&
c9a66001 37150 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
37151 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37152 (eval $ac_try) 2>&5
37153 ac_status=$?
37154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37155 (exit $ac_status); }; } &&
37156 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
37157 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37158 (eval $ac_try) 2>&5
37159 ac_status=$?
37160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37161 (exit $ac_status); }; }; then
37162 eval "$as_ac_var=yes"
37163else
37164 echo "$as_me: failed program was:" >&5
37165sed 's/^/| /' conftest.$ac_ext >&5
37166
37167eval "$as_ac_var=no"
37168fi
ac1cb8d3
VS
37169rm -f conftest.err conftest.$ac_objext \
37170 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
37171fi
37172echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
37173echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
37174if test `eval echo '${'$as_ac_var'}'` = yes; then
37175 cat >>confdefs.h <<_ACEOF
37176#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37177_ACEOF
37178 cat >>confdefs.h <<\_ACEOF
37179#define HAVE_INET_ATON 1
37180_ACEOF
37181
37182else
37183
37184 as_ac_Lib=`echo "ac_cv_lib_$INET_LINK''_inet_aton" | $as_tr_sh`
37185echo "$as_me:$LINENO: checking for inet_aton in -l$INET_LINK" >&5
37186echo $ECHO_N "checking for inet_aton in -l$INET_LINK... $ECHO_C" >&6
37187if eval "test \"\${$as_ac_Lib+set}\" = set"; then
37188 echo $ECHO_N "(cached) $ECHO_C" >&6
37189else
37190 ac_check_lib_save_LIBS=$LIBS
37191LIBS="-l$INET_LINK $LIBS"
37192cat >conftest.$ac_ext <<_ACEOF
37193/* confdefs.h. */
37194_ACEOF
37195cat confdefs.h >>conftest.$ac_ext
37196cat >>conftest.$ac_ext <<_ACEOF
37197/* end confdefs.h. */
37198
37199/* Override any gcc2 internal prototype to avoid an error. */
37200#ifdef __cplusplus
37201extern "C"
37202#endif
37203/* We use char because int might match the return type of a gcc2
37204 builtin and then its argument prototype would still apply. */
37205char inet_aton ();
37206int
37207main ()
37208{
37209inet_aton ();
37210 ;
37211 return 0;
37212}
37213_ACEOF
37214rm -f conftest.$ac_objext conftest$ac_exeext
37215if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 37216 (eval $ac_link) 2>conftest.er1
a848cd7e 37217 ac_status=$?
ac1cb8d3
VS
37218 grep -v '^ *+' conftest.er1 >conftest.err
37219 rm -f conftest.er1
37220 cat conftest.err >&5
a848cd7e
SC
37221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37222 (exit $ac_status); } &&
c9a66001 37223 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
37224 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37225 (eval $ac_try) 2>&5
37226 ac_status=$?
37227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37228 (exit $ac_status); }; } &&
37229 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
37230 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37231 (eval $ac_try) 2>&5
37232 ac_status=$?
37233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37234 (exit $ac_status); }; }; then
37235 eval "$as_ac_Lib=yes"
37236else
37237 echo "$as_me: failed program was:" >&5
37238sed 's/^/| /' conftest.$ac_ext >&5
37239
37240eval "$as_ac_Lib=no"
37241fi
ac1cb8d3
VS
37242rm -f conftest.err conftest.$ac_objext \
37243 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
37244LIBS=$ac_check_lib_save_LIBS
37245fi
37246echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
37247echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
37248if test `eval echo '${'$as_ac_Lib'}'` = yes; then
37249 cat >>confdefs.h <<\_ACEOF
37250#define HAVE_INET_ATON 1
37251_ACEOF
37252
37253fi
37254
37255
37256fi
37257done
37258
37259
37260if test "x$INET_LINK" != "x"; then
37261 cat >>confdefs.h <<\_ACEOF
37262#define HAVE_INET_ADDR 1
37263_ACEOF
37264
37265 INET_LINK=" -l$INET_LINK"
37266fi
37267
37268fi
37269
37270
37271
37272EXTRALIBS_ESD=
37273echo "$as_me:$LINENO: checking for esd_close in -lesd" >&5
37274echo $ECHO_N "checking for esd_close in -lesd... $ECHO_C" >&6
37275if test "${ac_cv_lib_esd_esd_close+set}" = set; then
37276 echo $ECHO_N "(cached) $ECHO_C" >&6
37277else
37278 ac_check_lib_save_LIBS=$LIBS
37279LIBS="-lesd $LIBS"
37280cat >conftest.$ac_ext <<_ACEOF
37281/* confdefs.h. */
37282_ACEOF
37283cat confdefs.h >>conftest.$ac_ext
37284cat >>conftest.$ac_ext <<_ACEOF
37285/* end confdefs.h. */
37286
37287/* Override any gcc2 internal prototype to avoid an error. */
37288#ifdef __cplusplus
37289extern "C"
37290#endif
37291/* We use char because int might match the return type of a gcc2
37292 builtin and then its argument prototype would still apply. */
37293char esd_close ();
37294int
37295main ()
37296{
37297esd_close ();
37298 ;
37299 return 0;
37300}
37301_ACEOF
37302rm -f conftest.$ac_objext conftest$ac_exeext
37303if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 37304 (eval $ac_link) 2>conftest.er1
a848cd7e 37305 ac_status=$?
ac1cb8d3
VS
37306 grep -v '^ *+' conftest.er1 >conftest.err
37307 rm -f conftest.er1
37308 cat conftest.err >&5
a848cd7e
SC
37309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37310 (exit $ac_status); } &&
c9a66001 37311 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
37312 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37313 (eval $ac_try) 2>&5
37314 ac_status=$?
37315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37316 (exit $ac_status); }; } &&
37317 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
37318 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37319 (eval $ac_try) 2>&5
37320 ac_status=$?
37321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37322 (exit $ac_status); }; }; then
37323 ac_cv_lib_esd_esd_close=yes
37324else
37325 echo "$as_me: failed program was:" >&5
37326sed 's/^/| /' conftest.$ac_ext >&5
37327
37328ac_cv_lib_esd_esd_close=no
37329fi
ac1cb8d3
VS
37330rm -f conftest.err conftest.$ac_objext \
37331 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
37332LIBS=$ac_check_lib_save_LIBS
37333fi
37334echo "$as_me:$LINENO: result: $ac_cv_lib_esd_esd_close" >&5
37335echo "${ECHO_T}$ac_cv_lib_esd_esd_close" >&6
37336if test $ac_cv_lib_esd_esd_close = yes; then
37337
37338
37339for ac_header in esd.h
37340do
37341as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
37342if eval "test \"\${$as_ac_Header+set}\" = set"; then
37343 echo "$as_me:$LINENO: checking for $ac_header" >&5
37344echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
37345if eval "test \"\${$as_ac_Header+set}\" = set"; then
37346 echo $ECHO_N "(cached) $ECHO_C" >&6
37347fi
37348echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
37349echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
37350else
37351 # Is the header compilable?
37352echo "$as_me:$LINENO: checking $ac_header usability" >&5
37353echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
37354cat >conftest.$ac_ext <<_ACEOF
37355/* confdefs.h. */
37356_ACEOF
37357cat confdefs.h >>conftest.$ac_ext
37358cat >>conftest.$ac_ext <<_ACEOF
37359/* end confdefs.h. */
37360$ac_includes_default
37361#include <$ac_header>
37362_ACEOF
37363rm -f conftest.$ac_objext
37364if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 37365 (eval $ac_compile) 2>conftest.er1
a848cd7e 37366 ac_status=$?
ac1cb8d3
VS
37367 grep -v '^ *+' conftest.er1 >conftest.err
37368 rm -f conftest.er1
37369 cat conftest.err >&5
a848cd7e
SC
37370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37371 (exit $ac_status); } &&
c9a66001 37372 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
37373 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37374 (eval $ac_try) 2>&5
37375 ac_status=$?
37376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37377 (exit $ac_status); }; } &&
37378 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
37379 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37380 (eval $ac_try) 2>&5
37381 ac_status=$?
37382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37383 (exit $ac_status); }; }; then
37384 ac_header_compiler=yes
37385else
37386 echo "$as_me: failed program was:" >&5
37387sed 's/^/| /' conftest.$ac_ext >&5
37388
37389ac_header_compiler=no
37390fi
ac1cb8d3 37391rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
37392echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
37393echo "${ECHO_T}$ac_header_compiler" >&6
37394
37395# Is the header present?
37396echo "$as_me:$LINENO: checking $ac_header presence" >&5
37397echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
37398cat >conftest.$ac_ext <<_ACEOF
37399/* confdefs.h. */
37400_ACEOF
37401cat confdefs.h >>conftest.$ac_ext
37402cat >>conftest.$ac_ext <<_ACEOF
37403/* end confdefs.h. */
37404#include <$ac_header>
37405_ACEOF
37406if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
37407 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
37408 ac_status=$?
37409 grep -v '^ *+' conftest.er1 >conftest.err
37410 rm -f conftest.er1
37411 cat conftest.err >&5
37412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37413 (exit $ac_status); } >/dev/null; then
37414 if test -s conftest.err; then
5d7b7554
VZ
37415 ac_cpp_err=$ac_cxx_preproc_warn_flag
37416 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
37417 else
37418 ac_cpp_err=
37419 fi
37420else
37421 ac_cpp_err=yes
37422fi
37423if test -z "$ac_cpp_err"; then
37424 ac_header_preproc=yes
37425else
37426 echo "$as_me: failed program was:" >&5
37427sed 's/^/| /' conftest.$ac_ext >&5
37428
37429 ac_header_preproc=no
37430fi
37431rm -f conftest.err conftest.$ac_ext
37432echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
37433echo "${ECHO_T}$ac_header_preproc" >&6
37434
37435# So? What about this header?
5d7b7554 37436case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
ac1cb8d3 37437 yes:no: )
a848cd7e
SC
37438 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
37439echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
37440 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
37441echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
37442 ac_header_preproc=yes
a848cd7e 37443 ;;
ac1cb8d3 37444 no:yes:* )
a848cd7e
SC
37445 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
37446echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
37447 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
37448echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
37449 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
37450echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
37451 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
37452echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
37453 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
37454echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
37455 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
37456echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
37457 (
37458 cat <<\_ASBOX
ac1cb8d3
VS
37459## ----------------------------------------- ##
37460## Report this to wx-dev@lists.wxwidgets.org ##
37461## ----------------------------------------- ##
a848cd7e
SC
37462_ASBOX
37463 ) |
37464 sed "s/^/$as_me: WARNING: /" >&2
37465 ;;
37466esac
37467echo "$as_me:$LINENO: checking for $ac_header" >&5
37468echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
37469if eval "test \"\${$as_ac_Header+set}\" = set"; then
37470 echo $ECHO_N "(cached) $ECHO_C" >&6
37471else
ac1cb8d3 37472 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
37473fi
37474echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
37475echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
37476
37477fi
37478if test `eval echo '${'$as_ac_Header'}'` = yes; then
37479 cat >>confdefs.h <<_ACEOF
37480#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
37481_ACEOF
37482
37483 EXTRALIBS_ESD="-lesd"
37484
37485fi
37486
37487done
37488
37489
37490fi
37491
37492
37493
37494echo "$as_me:$LINENO: checking for known CD-ROM interface" >&5
37495echo $ECHO_N "checking for known CD-ROM interface... $ECHO_C" >&6
37496cat >conftest.$ac_ext <<_ACEOF
37497/* confdefs.h. */
37498_ACEOF
37499cat confdefs.h >>conftest.$ac_ext
37500cat >>conftest.$ac_ext <<_ACEOF
37501/* end confdefs.h. */
37502#ifdef __linux__
37503 #include <linux/cdrom.h>
37504 #else
37505 /* For Solaris */
37506 #include <sys/cdio.h>
37507 #endif
37508
37509int
37510main ()
37511{
37512struct cdrom_tocentry entry, old_entry;
37513 ;
37514 return 0;
37515}
37516_ACEOF
37517rm -f conftest.$ac_objext
37518if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 37519 (eval $ac_compile) 2>conftest.er1
a848cd7e 37520 ac_status=$?
ac1cb8d3
VS
37521 grep -v '^ *+' conftest.er1 >conftest.err
37522 rm -f conftest.er1
37523 cat conftest.err >&5
a848cd7e
SC
37524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37525 (exit $ac_status); } &&
c9a66001 37526 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
37527 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37528 (eval $ac_try) 2>&5
37529 ac_status=$?
37530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37531 (exit $ac_status); }; } &&
37532 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
37533 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37534 (eval $ac_try) 2>&5
37535 ac_status=$?
37536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37537 (exit $ac_status); }; }; then
37538 echo "$as_me:$LINENO: result: yes" >&5
37539echo "${ECHO_T}yes" >&6
37540 cat >>confdefs.h <<\_ACEOF
37541#define HAVE_KNOWN_CDROM_INTERFACE 1
37542_ACEOF
37543
37544else
37545 echo "$as_me: failed program was:" >&5
37546sed 's/^/| /' conftest.$ac_ext >&5
37547
37548echo "$as_me:$LINENO: result: no" >&5
37549echo "${ECHO_T}no" >&6
37550fi
ac1cb8d3 37551rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
37552
37553
37554cat >confcache <<\_ACEOF
37555# This file is a shell script that caches the results of configure
37556# tests run on this system so they can be shared between configure
37557# scripts and configure runs, see configure's option --config-cache.
37558# It is not useful on other systems. If it contains results you don't
37559# want to keep, you may remove or edit it.
37560#
37561# config.status only pays attention to the cache file if you give it
37562# the --recheck option to rerun configure.
37563#
37564# `ac_cv_env_foo' variables (set or unset) will be overridden when
37565# loading this file, other *unset* `ac_cv_foo' will be assigned the
37566# following values.
37567
37568_ACEOF
37569
37570# The following way of writing the cache mishandles newlines in values,
37571# but we know of no workaround that is simple, portable, and efficient.
37572# So, don't put newlines in cache variables' values.
37573# Ultrix sh set writes to stderr and can't be redirected directly,
37574# and sets the high bit in the cache file unless we assign to the vars.
37575{
37576 (set) 2>&1 |
37577 case `(ac_space=' '; set | grep ac_space) 2>&1` in
37578 *ac_space=\ *)
37579 # `set' does not quote correctly, so add quotes (double-quote
37580 # substitution turns \\\\ into \\, and sed turns \\ into \).
37581 sed -n \
ac1cb8d3
VS
37582 "s/'/'\\\\''/g;
37583 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
a848cd7e
SC
37584 ;;
37585 *)
37586 # `set' quotes correctly as required by POSIX, so do not add quotes.
37587 sed -n \
ac1cb8d3 37588 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
a848cd7e
SC
37589 ;;
37590 esac;
37591} |
37592 sed '
37593 t clear
37594 : clear
37595 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
37596 t end
37597 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
37598 : end' >>confcache
37599if diff $cache_file confcache >/dev/null 2>&1; then :; else
37600 if test -w $cache_file; then
37601 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
37602 cat confcache >$cache_file
37603 else
37604 echo "not updating unwritable cache $cache_file"
37605 fi
37606fi
37607rm -f confcache
37608
37609
a848cd7e
SC
37610if test "$TOOLKIT" != "MSW" -a "$USE_OS2" != 1; then
37611
37612
37613 THREADS_LINK=
e56f4f9e 37614 THREADS_CXXFLAGS=
a848cd7e
SC
37615
37616 if test "$wxUSE_THREADS" = "yes" ; then
37617 if test "$USE_BEOS" = 1; then
37618 { echo "$as_me:$LINENO: WARNING: BeOS threads are not yet supported... disabled" >&5
37619echo "$as_me: WARNING: BeOS threads are not yet supported... disabled" >&2;}
37620 wxUSE_THREADS="no"
37621 fi
37622 fi
37623
37624 if test "$wxUSE_THREADS" = "yes" ; then
37625
37626
37627 THREAD_OPTS="-pthread"
37628 case "${host}" in
37629 *-*-solaris2* | *-*-sunos4* )
37630 if test "x$GCC" = "xyes"; then
37631 THREAD_OPTS="-pthreads $THREAD_OPTS"
37632 else
37633 THREAD_OPTS="-mt $THREAD_OPTS"
37634 fi
37635 ;;
37636 *-*-freebsd*)
37637 THREAD_OPTS="-kthread lthread $THREAD_OPTS c_r"
37638 ;;
37639 *-*-darwin* | *-*-cygwin* )
37640 THREAD_OPTS=""
37641 ;;
37642 *-*-aix*)
37643 THREAD_OPTS="pthreads"
37644 ;;
37645 *-hp-hpux* )
00421666
MW
37646 if test "x$GCC" = "xyes"; then
37647 $CXX -dumpspecs | grep 'pthread:' >/dev/null ||
37648 THREAD_OPTS=""
37649 else
0093c2fc 37650 THREAD_OPTS="-mt"
a848cd7e
SC
37651 fi
37652 ;;
37653
37654 *-*-irix* )
37655 if test "x$GCC" = "xyes"; then
37656 THREAD_OPTS=""
37657 fi
37658 ;;
37659
37660 *-*-*UnixWare*)
37661 if test "x$GCC" != "xyes"; then
37662 THREAD_OPTS="-Ethread"
37663 fi
37664 ;;
37665 esac
37666
37667 THREAD_OPTS="$THREAD_OPTS pthread none"
37668
37669 THREADS_OK=no
37670 for flag in $THREAD_OPTS; do
37671 case $flag in
37672 none)
37673 echo "$as_me:$LINENO: checking whether pthreads work without any flags" >&5
37674echo $ECHO_N "checking whether pthreads work without any flags... $ECHO_C" >&6
37675 ;;
37676
37677 -*)
37678 echo "$as_me:$LINENO: checking whether pthreads work with $flag" >&5
37679echo $ECHO_N "checking whether pthreads work with $flag... $ECHO_C" >&6
e56f4f9e 37680 THREADS_CXXFLAGS="$flag"
a848cd7e
SC
37681 ;;
37682
37683 *)
37684 echo "$as_me:$LINENO: checking for the pthreads library -l$flag" >&5
37685echo $ECHO_N "checking for the pthreads library -l$flag... $ECHO_C" >&6
37686 THREADS_LINK="-l$flag"
37687 ;;
37688 esac
37689
37690 save_LIBS="$LIBS"
e56f4f9e 37691 save_CXXFLAGS="$CXXFLAGS"
a848cd7e 37692 LIBS="$THREADS_LINK $LIBS"
e56f4f9e 37693 CXXFLAGS="$THREADS_CXXFLAGS $CXXFLAGS"
a848cd7e
SC
37694
37695 cat >conftest.$ac_ext <<_ACEOF
37696/* confdefs.h. */
37697_ACEOF
37698cat confdefs.h >>conftest.$ac_ext
37699cat >>conftest.$ac_ext <<_ACEOF
37700/* end confdefs.h. */
37701#include <pthread.h>
37702int
37703main ()
37704{
37705pthread_create(0,0,0,0);
37706 ;
37707 return 0;
37708}
37709_ACEOF
37710rm -f conftest.$ac_objext conftest$ac_exeext
37711if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 37712 (eval $ac_link) 2>conftest.er1
a848cd7e 37713 ac_status=$?
ac1cb8d3
VS
37714 grep -v '^ *+' conftest.er1 >conftest.err
37715 rm -f conftest.er1
37716 cat conftest.err >&5
a848cd7e
SC
37717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37718 (exit $ac_status); } &&
c9a66001 37719 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
37720 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37721 (eval $ac_try) 2>&5
37722 ac_status=$?
37723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37724 (exit $ac_status); }; } &&
37725 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
37726 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37727 (eval $ac_try) 2>&5
37728 ac_status=$?
37729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37730 (exit $ac_status); }; }; then
37731 THREADS_OK=yes
37732else
37733 echo "$as_me: failed program was:" >&5
37734sed 's/^/| /' conftest.$ac_ext >&5
37735
37736fi
ac1cb8d3
VS
37737rm -f conftest.err conftest.$ac_objext \
37738 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
37739
37740 LIBS="$save_LIBS"
e56f4f9e 37741 CXXFLAGS="$save_CXXFLAGS"
a848cd7e
SC
37742
37743 echo "$as_me:$LINENO: result: $THREADS_OK" >&5
37744echo "${ECHO_T}$THREADS_OK" >&6
37745 if test "x$THREADS_OK" = "xyes"; then
37746 break;
37747 fi
37748
37749 THREADS_LINK=""
e56f4f9e 37750 THREADS_CXXFLAGS=""
a848cd7e
SC
37751 done
37752
37753 if test "x$THREADS_OK" != "xyes"; then
37754 wxUSE_THREADS=no
37755 { echo "$as_me:$LINENO: WARNING: No thread support on this system... disabled" >&5
37756echo "$as_me: WARNING: No thread support on this system... disabled" >&2;}
37757 else
e56f4f9e 37758 LDFLAGS="$THREADS_CXXFLAGS $LDFLAGS"
a848cd7e
SC
37759 LIBS="$THREADS_LINK $LIBS"
37760
37761 echo "$as_me:$LINENO: checking if more special flags are required for pthreads" >&5
37762echo $ECHO_N "checking if more special flags are required for pthreads... $ECHO_C" >&6
37763 flag=no
37764 case "${host}" in
37765 *-aix*)
37766 LDFLAGS="-L/usr/lib/threads $LDFLAGS"
37767 flag="-D_THREAD_SAFE"
37768 ;;
37769 *-freebsd*)
37770 flag="-D_THREAD_SAFE"
37771 ;;
37772 *-hp-hpux* )
37773 flag="-D_REENTRANT"
37774 if test "x$GCC" != "xyes"; then
37775 flag="$flag -D_RWSTD_MULTI_THREAD"
37776 fi
37777 ;;
37778 *solaris* | alpha*-osf*)
37779 flag="-D_REENTRANT"
37780 ;;
37781 esac
37782 echo "$as_me:$LINENO: result: ${flag}" >&5
37783echo "${ECHO_T}${flag}" >&6
37784 if test "x$flag" != xno; then
e56f4f9e 37785 THREADS_CXXFLAGS="$THREADS_CXXFLAGS $flag"
a848cd7e
SC
37786 fi
37787
e56f4f9e 37788 WXCONFIG_CXXFLAGS="$WXCONFIG_CXXFLAGS $THREADS_CXXFLAGS"
a848cd7e
SC
37789 fi
37790 fi
37791
37792 if test "$wxUSE_THREADS" = "yes" ; then
37793
37794for ac_func in thr_setconcurrency
37795do
37796as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37797echo "$as_me:$LINENO: checking for $ac_func" >&5
37798echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
37799if eval "test \"\${$as_ac_var+set}\" = set"; then
37800 echo $ECHO_N "(cached) $ECHO_C" >&6
37801else
37802 cat >conftest.$ac_ext <<_ACEOF
37803/* confdefs.h. */
37804_ACEOF
37805cat confdefs.h >>conftest.$ac_ext
37806cat >>conftest.$ac_ext <<_ACEOF
37807/* end confdefs.h. */
ac1cb8d3
VS
37808/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37809 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37810#define $ac_func innocuous_$ac_func
37811
a848cd7e
SC
37812/* System header to define __stub macros and hopefully few prototypes,
37813 which can conflict with char $ac_func (); below.
37814 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37815 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 37816
a848cd7e
SC
37817#ifdef __STDC__
37818# include <limits.h>
37819#else
37820# include <assert.h>
37821#endif
ac1cb8d3
VS
37822
37823#undef $ac_func
37824
a848cd7e
SC
37825/* Override any gcc2 internal prototype to avoid an error. */
37826#ifdef __cplusplus
37827extern "C"
37828{
37829#endif
37830/* We use char because int might match the return type of a gcc2
37831 builtin and then its argument prototype would still apply. */
37832char $ac_func ();
37833/* The GNU C library defines this for functions which it implements
37834 to always fail with ENOSYS. Some functions are actually named
37835 something starting with __ and the normal name is an alias. */
37836#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
37837choke me
37838#else
37839char (*f) () = $ac_func;
37840#endif
37841#ifdef __cplusplus
37842}
37843#endif
37844
37845int
37846main ()
37847{
37848return f != $ac_func;
37849 ;
37850 return 0;
37851}
37852_ACEOF
37853rm -f conftest.$ac_objext conftest$ac_exeext
37854if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 37855 (eval $ac_link) 2>conftest.er1
a848cd7e 37856 ac_status=$?
ac1cb8d3
VS
37857 grep -v '^ *+' conftest.er1 >conftest.err
37858 rm -f conftest.er1
37859 cat conftest.err >&5
a848cd7e
SC
37860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37861 (exit $ac_status); } &&
c9a66001 37862 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
37863 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37864 (eval $ac_try) 2>&5
37865 ac_status=$?
37866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37867 (exit $ac_status); }; } &&
37868 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
37869 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37870 (eval $ac_try) 2>&5
37871 ac_status=$?
37872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37873 (exit $ac_status); }; }; then
37874 eval "$as_ac_var=yes"
37875else
37876 echo "$as_me: failed program was:" >&5
37877sed 's/^/| /' conftest.$ac_ext >&5
37878
37879eval "$as_ac_var=no"
37880fi
ac1cb8d3
VS
37881rm -f conftest.err conftest.$ac_objext \
37882 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
37883fi
37884echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
37885echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
37886if test `eval echo '${'$as_ac_var'}'` = yes; then
37887 cat >>confdefs.h <<_ACEOF
37888#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37889_ACEOF
37890
37891fi
37892done
37893
37894
6ebeb4c7
VZ
37895 echo "$as_me:$LINENO: checking for pthread_cleanup_push/pop" >&5
37896echo $ECHO_N "checking for pthread_cleanup_push/pop... $ECHO_C" >&6
37897if test "${wx_cv_func_pthread_cleanup+set}" = set; then
37898 echo $ECHO_N "(cached) $ECHO_C" >&6
37899else
37900
37901 cat >conftest.$ac_ext <<_ACEOF
37902/* confdefs.h. */
37903_ACEOF
37904cat confdefs.h >>conftest.$ac_ext
37905cat >>conftest.$ac_ext <<_ACEOF
37906/* end confdefs.h. */
37907#include <pthread.h>
37908 void ThreadCleanupFunc(void *p);
37909
37910int
37911main ()
37912{
37913
37914 void *p;
37915 pthread_cleanup_push(ThreadCleanupFunc, p);
37916 pthread_cleanup_pop(0);
37917
37918 ;
37919 return 0;
37920}
37921_ACEOF
37922rm -f conftest.$ac_objext
37923if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37924 (eval $ac_compile) 2>conftest.er1
37925 ac_status=$?
37926 grep -v '^ *+' conftest.er1 >conftest.err
37927 rm -f conftest.er1
37928 cat conftest.err >&5
37929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37930 (exit $ac_status); } &&
c9a66001 37931 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6ebeb4c7
VZ
37932 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37933 (eval $ac_try) 2>&5
37934 ac_status=$?
37935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37936 (exit $ac_status); }; } &&
37937 { ac_try='test -s conftest.$ac_objext'
37938 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37939 (eval $ac_try) 2>&5
37940 ac_status=$?
37941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37942 (exit $ac_status); }; }; then
37943
37944 wx_cv_func_pthread_cleanup=yes
37945
37946else
37947 echo "$as_me: failed program was:" >&5
37948sed 's/^/| /' conftest.$ac_ext >&5
37949
37950
37951 wx_cv_func_pthread_cleanup=no
37952
37953
37954fi
37955rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37956
37957fi
37958echo "$as_me:$LINENO: result: $wx_cv_func_pthread_cleanup" >&5
37959echo "${ECHO_T}$wx_cv_func_pthread_cleanup" >&6
37960 if test "x$wx_cv_func_pthread_cleanup" = "xyes"; then
37961 cat >>confdefs.h <<\_ACEOF
37962#define wxHAVE_PTHREAD_CLEANUP 1
37963_ACEOF
37964
37965 fi
37966
a848cd7e
SC
37967
37968for ac_header in sched.h
37969do
37970as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
37971if eval "test \"\${$as_ac_Header+set}\" = set"; then
37972 echo "$as_me:$LINENO: checking for $ac_header" >&5
37973echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
37974if eval "test \"\${$as_ac_Header+set}\" = set"; then
37975 echo $ECHO_N "(cached) $ECHO_C" >&6
37976fi
37977echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
37978echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
37979else
37980 # Is the header compilable?
37981echo "$as_me:$LINENO: checking $ac_header usability" >&5
37982echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
37983cat >conftest.$ac_ext <<_ACEOF
37984/* confdefs.h. */
37985_ACEOF
37986cat confdefs.h >>conftest.$ac_ext
37987cat >>conftest.$ac_ext <<_ACEOF
37988/* end confdefs.h. */
37989$ac_includes_default
37990#include <$ac_header>
37991_ACEOF
37992rm -f conftest.$ac_objext
37993if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 37994 (eval $ac_compile) 2>conftest.er1
a848cd7e 37995 ac_status=$?
ac1cb8d3
VS
37996 grep -v '^ *+' conftest.er1 >conftest.err
37997 rm -f conftest.er1
37998 cat conftest.err >&5
a848cd7e
SC
37999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38000 (exit $ac_status); } &&
c9a66001 38001 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
38002 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38003 (eval $ac_try) 2>&5
38004 ac_status=$?
38005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38006 (exit $ac_status); }; } &&
38007 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
38008 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38009 (eval $ac_try) 2>&5
38010 ac_status=$?
38011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38012 (exit $ac_status); }; }; then
38013 ac_header_compiler=yes
38014else
38015 echo "$as_me: failed program was:" >&5
38016sed 's/^/| /' conftest.$ac_ext >&5
38017
38018ac_header_compiler=no
38019fi
ac1cb8d3 38020rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
38021echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
38022echo "${ECHO_T}$ac_header_compiler" >&6
38023
38024# Is the header present?
38025echo "$as_me:$LINENO: checking $ac_header presence" >&5
38026echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
38027cat >conftest.$ac_ext <<_ACEOF
38028/* confdefs.h. */
38029_ACEOF
38030cat confdefs.h >>conftest.$ac_ext
38031cat >>conftest.$ac_ext <<_ACEOF
38032/* end confdefs.h. */
38033#include <$ac_header>
38034_ACEOF
38035if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
38036 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
38037 ac_status=$?
38038 grep -v '^ *+' conftest.er1 >conftest.err
38039 rm -f conftest.er1
38040 cat conftest.err >&5
38041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38042 (exit $ac_status); } >/dev/null; then
38043 if test -s conftest.err; then
5d7b7554
VZ
38044 ac_cpp_err=$ac_cxx_preproc_warn_flag
38045 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
38046 else
38047 ac_cpp_err=
38048 fi
38049else
38050 ac_cpp_err=yes
38051fi
38052if test -z "$ac_cpp_err"; then
38053 ac_header_preproc=yes
38054else
38055 echo "$as_me: failed program was:" >&5
38056sed 's/^/| /' conftest.$ac_ext >&5
38057
38058 ac_header_preproc=no
38059fi
38060rm -f conftest.err conftest.$ac_ext
38061echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
38062echo "${ECHO_T}$ac_header_preproc" >&6
38063
38064# So? What about this header?
5d7b7554 38065case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
ac1cb8d3 38066 yes:no: )
a848cd7e
SC
38067 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
38068echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
38069 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
38070echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
38071 ac_header_preproc=yes
a848cd7e 38072 ;;
ac1cb8d3 38073 no:yes:* )
a848cd7e
SC
38074 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
38075echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
38076 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
38077echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
38078 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
38079echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
38080 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
38081echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
38082 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
38083echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
38084 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
38085echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
38086 (
38087 cat <<\_ASBOX
ac1cb8d3
VS
38088## ----------------------------------------- ##
38089## Report this to wx-dev@lists.wxwidgets.org ##
38090## ----------------------------------------- ##
a848cd7e
SC
38091_ASBOX
38092 ) |
38093 sed "s/^/$as_me: WARNING: /" >&2
38094 ;;
38095esac
38096echo "$as_me:$LINENO: checking for $ac_header" >&5
38097echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
38098if eval "test \"\${$as_ac_Header+set}\" = set"; then
38099 echo $ECHO_N "(cached) $ECHO_C" >&6
38100else
ac1cb8d3 38101 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
38102fi
38103echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
38104echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
38105
38106fi
38107if test `eval echo '${'$as_ac_Header'}'` = yes; then
38108 cat >>confdefs.h <<_ACEOF
38109#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
38110_ACEOF
38111
38112fi
38113
38114done
38115
38116 if test "$ac_cv_header_sched_h" = "yes"; then
38117 echo "$as_me:$LINENO: checking for sched_yield" >&5
38118echo $ECHO_N "checking for sched_yield... $ECHO_C" >&6
38119if test "${ac_cv_func_sched_yield+set}" = set; then
38120 echo $ECHO_N "(cached) $ECHO_C" >&6
38121else
38122 cat >conftest.$ac_ext <<_ACEOF
38123/* confdefs.h. */
38124_ACEOF
38125cat confdefs.h >>conftest.$ac_ext
38126cat >>conftest.$ac_ext <<_ACEOF
38127/* end confdefs.h. */
ac1cb8d3
VS
38128/* Define sched_yield to an innocuous variant, in case <limits.h> declares sched_yield.
38129 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38130#define sched_yield innocuous_sched_yield
38131
a848cd7e
SC
38132/* System header to define __stub macros and hopefully few prototypes,
38133 which can conflict with char sched_yield (); below.
38134 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38135 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 38136
a848cd7e
SC
38137#ifdef __STDC__
38138# include <limits.h>
38139#else
38140# include <assert.h>
38141#endif
ac1cb8d3
VS
38142
38143#undef sched_yield
38144
a848cd7e
SC
38145/* Override any gcc2 internal prototype to avoid an error. */
38146#ifdef __cplusplus
38147extern "C"
38148{
38149#endif
38150/* We use char because int might match the return type of a gcc2
38151 builtin and then its argument prototype would still apply. */
38152char sched_yield ();
38153/* The GNU C library defines this for functions which it implements
38154 to always fail with ENOSYS. Some functions are actually named
38155 something starting with __ and the normal name is an alias. */
38156#if defined (__stub_sched_yield) || defined (__stub___sched_yield)
38157choke me
38158#else
38159char (*f) () = sched_yield;
38160#endif
38161#ifdef __cplusplus
38162}
38163#endif
38164
38165int
38166main ()
38167{
38168return f != sched_yield;
38169 ;
38170 return 0;
38171}
38172_ACEOF
38173rm -f conftest.$ac_objext conftest$ac_exeext
38174if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 38175 (eval $ac_link) 2>conftest.er1
a848cd7e 38176 ac_status=$?
ac1cb8d3
VS
38177 grep -v '^ *+' conftest.er1 >conftest.err
38178 rm -f conftest.er1
38179 cat conftest.err >&5
a848cd7e
SC
38180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38181 (exit $ac_status); } &&
c9a66001 38182 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
38183 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38184 (eval $ac_try) 2>&5
38185 ac_status=$?
38186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38187 (exit $ac_status); }; } &&
38188 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
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); }; }; then
38194 ac_cv_func_sched_yield=yes
38195else
38196 echo "$as_me: failed program was:" >&5
38197sed 's/^/| /' conftest.$ac_ext >&5
38198
38199ac_cv_func_sched_yield=no
38200fi
ac1cb8d3
VS
38201rm -f conftest.err conftest.$ac_objext \
38202 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
38203fi
38204echo "$as_me:$LINENO: result: $ac_cv_func_sched_yield" >&5
38205echo "${ECHO_T}$ac_cv_func_sched_yield" >&6
38206if test $ac_cv_func_sched_yield = yes; then
38207 cat >>confdefs.h <<\_ACEOF
38208#define HAVE_SCHED_YIELD 1
38209_ACEOF
38210
38211else
38212
38213 echo "$as_me:$LINENO: checking for sched_yield in -lposix4" >&5
38214echo $ECHO_N "checking for sched_yield in -lposix4... $ECHO_C" >&6
38215if test "${ac_cv_lib_posix4_sched_yield+set}" = set; then
38216 echo $ECHO_N "(cached) $ECHO_C" >&6
38217else
38218 ac_check_lib_save_LIBS=$LIBS
38219LIBS="-lposix4 $LIBS"
38220cat >conftest.$ac_ext <<_ACEOF
38221/* confdefs.h. */
38222_ACEOF
38223cat confdefs.h >>conftest.$ac_ext
38224cat >>conftest.$ac_ext <<_ACEOF
38225/* end confdefs.h. */
38226
38227/* Override any gcc2 internal prototype to avoid an error. */
38228#ifdef __cplusplus
38229extern "C"
38230#endif
38231/* We use char because int might match the return type of a gcc2
38232 builtin and then its argument prototype would still apply. */
38233char sched_yield ();
38234int
38235main ()
38236{
38237sched_yield ();
38238 ;
38239 return 0;
38240}
38241_ACEOF
38242rm -f conftest.$ac_objext conftest$ac_exeext
38243if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 38244 (eval $ac_link) 2>conftest.er1
a848cd7e 38245 ac_status=$?
ac1cb8d3
VS
38246 grep -v '^ *+' conftest.er1 >conftest.err
38247 rm -f conftest.er1
38248 cat conftest.err >&5
a848cd7e
SC
38249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38250 (exit $ac_status); } &&
c9a66001 38251 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
38252 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38253 (eval $ac_try) 2>&5
38254 ac_status=$?
38255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38256 (exit $ac_status); }; } &&
38257 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
38258 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38259 (eval $ac_try) 2>&5
38260 ac_status=$?
38261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38262 (exit $ac_status); }; }; then
38263 ac_cv_lib_posix4_sched_yield=yes
38264else
38265 echo "$as_me: failed program was:" >&5
38266sed 's/^/| /' conftest.$ac_ext >&5
38267
38268ac_cv_lib_posix4_sched_yield=no
38269fi
ac1cb8d3
VS
38270rm -f conftest.err conftest.$ac_objext \
38271 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
38272LIBS=$ac_check_lib_save_LIBS
38273fi
38274echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sched_yield" >&5
38275echo "${ECHO_T}$ac_cv_lib_posix4_sched_yield" >&6
38276if test $ac_cv_lib_posix4_sched_yield = yes; then
38277 cat >>confdefs.h <<\_ACEOF
38278#define HAVE_SCHED_YIELD 1
38279_ACEOF
38280 POSIX4_LINK=" -lposix4"
38281else
38282 { echo "$as_me:$LINENO: WARNING: wxThread::Yield will not work properly" >&5
38283echo "$as_me: WARNING: wxThread::Yield will not work properly" >&2;}
38284
38285fi
38286
38287
38288
38289fi
38290
38291 fi
38292
38293 HAVE_PRIOR_FUNCS=0
38294 echo "$as_me:$LINENO: checking for pthread_attr_getschedpolicy" >&5
38295echo $ECHO_N "checking for pthread_attr_getschedpolicy... $ECHO_C" >&6
38296if test "${ac_cv_func_pthread_attr_getschedpolicy+set}" = set; then
38297 echo $ECHO_N "(cached) $ECHO_C" >&6
38298else
38299 cat >conftest.$ac_ext <<_ACEOF
38300/* confdefs.h. */
38301_ACEOF
38302cat confdefs.h >>conftest.$ac_ext
38303cat >>conftest.$ac_ext <<_ACEOF
38304/* end confdefs.h. */
ac1cb8d3
VS
38305/* Define pthread_attr_getschedpolicy to an innocuous variant, in case <limits.h> declares pthread_attr_getschedpolicy.
38306 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38307#define pthread_attr_getschedpolicy innocuous_pthread_attr_getschedpolicy
38308
a848cd7e
SC
38309/* System header to define __stub macros and hopefully few prototypes,
38310 which can conflict with char pthread_attr_getschedpolicy (); below.
38311 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38312 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 38313
a848cd7e
SC
38314#ifdef __STDC__
38315# include <limits.h>
38316#else
38317# include <assert.h>
38318#endif
ac1cb8d3
VS
38319
38320#undef pthread_attr_getschedpolicy
38321
a848cd7e
SC
38322/* Override any gcc2 internal prototype to avoid an error. */
38323#ifdef __cplusplus
38324extern "C"
38325{
38326#endif
38327/* We use char because int might match the return type of a gcc2
38328 builtin and then its argument prototype would still apply. */
38329char pthread_attr_getschedpolicy ();
38330/* The GNU C library defines this for functions which it implements
38331 to always fail with ENOSYS. Some functions are actually named
38332 something starting with __ and the normal name is an alias. */
38333#if defined (__stub_pthread_attr_getschedpolicy) || defined (__stub___pthread_attr_getschedpolicy)
38334choke me
38335#else
38336char (*f) () = pthread_attr_getschedpolicy;
38337#endif
38338#ifdef __cplusplus
38339}
38340#endif
38341
38342int
38343main ()
38344{
38345return f != pthread_attr_getschedpolicy;
38346 ;
38347 return 0;
38348}
38349_ACEOF
38350rm -f conftest.$ac_objext conftest$ac_exeext
38351if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 38352 (eval $ac_link) 2>conftest.er1
a848cd7e 38353 ac_status=$?
ac1cb8d3
VS
38354 grep -v '^ *+' conftest.er1 >conftest.err
38355 rm -f conftest.er1
38356 cat conftest.err >&5
a848cd7e
SC
38357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38358 (exit $ac_status); } &&
c9a66001 38359 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
38360 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38361 (eval $ac_try) 2>&5
38362 ac_status=$?
38363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38364 (exit $ac_status); }; } &&
38365 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
38366 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38367 (eval $ac_try) 2>&5
38368 ac_status=$?
38369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38370 (exit $ac_status); }; }; then
38371 ac_cv_func_pthread_attr_getschedpolicy=yes
38372else
38373 echo "$as_me: failed program was:" >&5
38374sed 's/^/| /' conftest.$ac_ext >&5
38375
38376ac_cv_func_pthread_attr_getschedpolicy=no
38377fi
ac1cb8d3
VS
38378rm -f conftest.err conftest.$ac_objext \
38379 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
38380fi
38381echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_getschedpolicy" >&5
38382echo "${ECHO_T}$ac_cv_func_pthread_attr_getschedpolicy" >&6
38383if test $ac_cv_func_pthread_attr_getschedpolicy = yes; then
38384 echo "$as_me:$LINENO: checking for pthread_attr_setschedparam" >&5
38385echo $ECHO_N "checking for pthread_attr_setschedparam... $ECHO_C" >&6
38386if test "${ac_cv_func_pthread_attr_setschedparam+set}" = set; then
38387 echo $ECHO_N "(cached) $ECHO_C" >&6
38388else
38389 cat >conftest.$ac_ext <<_ACEOF
38390/* confdefs.h. */
38391_ACEOF
38392cat confdefs.h >>conftest.$ac_ext
38393cat >>conftest.$ac_ext <<_ACEOF
38394/* end confdefs.h. */
ac1cb8d3
VS
38395/* Define pthread_attr_setschedparam to an innocuous variant, in case <limits.h> declares pthread_attr_setschedparam.
38396 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38397#define pthread_attr_setschedparam innocuous_pthread_attr_setschedparam
38398
a848cd7e
SC
38399/* System header to define __stub macros and hopefully few prototypes,
38400 which can conflict with char pthread_attr_setschedparam (); below.
38401 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38402 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 38403
a848cd7e
SC
38404#ifdef __STDC__
38405# include <limits.h>
38406#else
38407# include <assert.h>
38408#endif
ac1cb8d3
VS
38409
38410#undef pthread_attr_setschedparam
38411
a848cd7e
SC
38412/* Override any gcc2 internal prototype to avoid an error. */
38413#ifdef __cplusplus
38414extern "C"
38415{
38416#endif
38417/* We use char because int might match the return type of a gcc2
38418 builtin and then its argument prototype would still apply. */
38419char pthread_attr_setschedparam ();
38420/* The GNU C library defines this for functions which it implements
38421 to always fail with ENOSYS. Some functions are actually named
38422 something starting with __ and the normal name is an alias. */
38423#if defined (__stub_pthread_attr_setschedparam) || defined (__stub___pthread_attr_setschedparam)
38424choke me
38425#else
38426char (*f) () = pthread_attr_setschedparam;
38427#endif
38428#ifdef __cplusplus
38429}
38430#endif
38431
38432int
38433main ()
38434{
38435return f != pthread_attr_setschedparam;
38436 ;
38437 return 0;
38438}
38439_ACEOF
38440rm -f conftest.$ac_objext conftest$ac_exeext
38441if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 38442 (eval $ac_link) 2>conftest.er1
a848cd7e 38443 ac_status=$?
ac1cb8d3
VS
38444 grep -v '^ *+' conftest.er1 >conftest.err
38445 rm -f conftest.er1
38446 cat conftest.err >&5
a848cd7e
SC
38447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38448 (exit $ac_status); } &&
c9a66001 38449 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
38450 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38451 (eval $ac_try) 2>&5
38452 ac_status=$?
38453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38454 (exit $ac_status); }; } &&
38455 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
38456 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38457 (eval $ac_try) 2>&5
38458 ac_status=$?
38459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38460 (exit $ac_status); }; }; then
38461 ac_cv_func_pthread_attr_setschedparam=yes
38462else
38463 echo "$as_me: failed program was:" >&5
38464sed 's/^/| /' conftest.$ac_ext >&5
38465
38466ac_cv_func_pthread_attr_setschedparam=no
38467fi
ac1cb8d3
VS
38468rm -f conftest.err conftest.$ac_objext \
38469 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
38470fi
38471echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_setschedparam" >&5
38472echo "${ECHO_T}$ac_cv_func_pthread_attr_setschedparam" >&6
38473if test $ac_cv_func_pthread_attr_setschedparam = yes; then
38474 echo "$as_me:$LINENO: checking for sched_get_priority_max" >&5
38475echo $ECHO_N "checking for sched_get_priority_max... $ECHO_C" >&6
38476if test "${ac_cv_func_sched_get_priority_max+set}" = set; then
38477 echo $ECHO_N "(cached) $ECHO_C" >&6
38478else
38479 cat >conftest.$ac_ext <<_ACEOF
38480/* confdefs.h. */
38481_ACEOF
38482cat confdefs.h >>conftest.$ac_ext
38483cat >>conftest.$ac_ext <<_ACEOF
38484/* end confdefs.h. */
ac1cb8d3
VS
38485/* Define sched_get_priority_max to an innocuous variant, in case <limits.h> declares sched_get_priority_max.
38486 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38487#define sched_get_priority_max innocuous_sched_get_priority_max
38488
a848cd7e
SC
38489/* System header to define __stub macros and hopefully few prototypes,
38490 which can conflict with char sched_get_priority_max (); below.
38491 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38492 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 38493
a848cd7e
SC
38494#ifdef __STDC__
38495# include <limits.h>
38496#else
38497# include <assert.h>
38498#endif
ac1cb8d3
VS
38499
38500#undef sched_get_priority_max
38501
a848cd7e
SC
38502/* Override any gcc2 internal prototype to avoid an error. */
38503#ifdef __cplusplus
38504extern "C"
38505{
38506#endif
38507/* We use char because int might match the return type of a gcc2
38508 builtin and then its argument prototype would still apply. */
38509char sched_get_priority_max ();
38510/* The GNU C library defines this for functions which it implements
38511 to always fail with ENOSYS. Some functions are actually named
38512 something starting with __ and the normal name is an alias. */
38513#if defined (__stub_sched_get_priority_max) || defined (__stub___sched_get_priority_max)
38514choke me
38515#else
38516char (*f) () = sched_get_priority_max;
38517#endif
38518#ifdef __cplusplus
38519}
38520#endif
38521
38522int
38523main ()
38524{
38525return f != sched_get_priority_max;
38526 ;
38527 return 0;
38528}
38529_ACEOF
38530rm -f conftest.$ac_objext conftest$ac_exeext
38531if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 38532 (eval $ac_link) 2>conftest.er1
a848cd7e 38533 ac_status=$?
ac1cb8d3
VS
38534 grep -v '^ *+' conftest.er1 >conftest.err
38535 rm -f conftest.er1
38536 cat conftest.err >&5
a848cd7e
SC
38537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38538 (exit $ac_status); } &&
c9a66001 38539 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
38540 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38541 (eval $ac_try) 2>&5
38542 ac_status=$?
38543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38544 (exit $ac_status); }; } &&
38545 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
38546 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38547 (eval $ac_try) 2>&5
38548 ac_status=$?
38549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38550 (exit $ac_status); }; }; then
38551 ac_cv_func_sched_get_priority_max=yes
38552else
38553 echo "$as_me: failed program was:" >&5
38554sed 's/^/| /' conftest.$ac_ext >&5
38555
38556ac_cv_func_sched_get_priority_max=no
38557fi
ac1cb8d3
VS
38558rm -f conftest.err conftest.$ac_objext \
38559 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
38560fi
38561echo "$as_me:$LINENO: result: $ac_cv_func_sched_get_priority_max" >&5
38562echo "${ECHO_T}$ac_cv_func_sched_get_priority_max" >&6
38563if test $ac_cv_func_sched_get_priority_max = yes; then
38564 HAVE_PRIOR_FUNCS=1
38565else
38566 echo "$as_me:$LINENO: checking for sched_get_priority_max in -lposix4" >&5
38567echo $ECHO_N "checking for sched_get_priority_max in -lposix4... $ECHO_C" >&6
38568if test "${ac_cv_lib_posix4_sched_get_priority_max+set}" = set; then
38569 echo $ECHO_N "(cached) $ECHO_C" >&6
38570else
38571 ac_check_lib_save_LIBS=$LIBS
38572LIBS="-lposix4 $LIBS"
38573cat >conftest.$ac_ext <<_ACEOF
38574/* confdefs.h. */
38575_ACEOF
38576cat confdefs.h >>conftest.$ac_ext
38577cat >>conftest.$ac_ext <<_ACEOF
38578/* end confdefs.h. */
38579
38580/* Override any gcc2 internal prototype to avoid an error. */
38581#ifdef __cplusplus
38582extern "C"
38583#endif
38584/* We use char because int might match the return type of a gcc2
38585 builtin and then its argument prototype would still apply. */
38586char sched_get_priority_max ();
38587int
38588main ()
38589{
38590sched_get_priority_max ();
38591 ;
38592 return 0;
38593}
38594_ACEOF
38595rm -f conftest.$ac_objext conftest$ac_exeext
38596if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 38597 (eval $ac_link) 2>conftest.er1
a848cd7e 38598 ac_status=$?
ac1cb8d3
VS
38599 grep -v '^ *+' conftest.er1 >conftest.err
38600 rm -f conftest.er1
38601 cat conftest.err >&5
a848cd7e
SC
38602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38603 (exit $ac_status); } &&
c9a66001 38604 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
38605 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38606 (eval $ac_try) 2>&5
38607 ac_status=$?
38608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38609 (exit $ac_status); }; } &&
38610 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
38611 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38612 (eval $ac_try) 2>&5
38613 ac_status=$?
38614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38615 (exit $ac_status); }; }; then
38616 ac_cv_lib_posix4_sched_get_priority_max=yes
38617else
38618 echo "$as_me: failed program was:" >&5
38619sed 's/^/| /' conftest.$ac_ext >&5
38620
38621ac_cv_lib_posix4_sched_get_priority_max=no
38622fi
ac1cb8d3
VS
38623rm -f conftest.err conftest.$ac_objext \
38624 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
38625LIBS=$ac_check_lib_save_LIBS
38626fi
38627echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sched_get_priority_max" >&5
38628echo "${ECHO_T}$ac_cv_lib_posix4_sched_get_priority_max" >&6
38629if test $ac_cv_lib_posix4_sched_get_priority_max = yes; then
38630
38631 HAVE_PRIOR_FUNCS=1
38632 POSIX4_LINK=" -lposix4"
38633
38634fi
38635
38636
38637fi
38638
38639
38640fi
38641
38642
38643fi
38644
38645
38646 if test "$HAVE_PRIOR_FUNCS" = 1; then
38647 cat >>confdefs.h <<\_ACEOF
38648#define HAVE_THREAD_PRIORITY_FUNCTIONS 1
38649_ACEOF
38650
38651 else
38652 { echo "$as_me:$LINENO: WARNING: Setting thread priority will not work" >&5
38653echo "$as_me: WARNING: Setting thread priority will not work" >&2;}
38654 fi
38655
38656 echo "$as_me:$LINENO: checking for pthread_cancel" >&5
38657echo $ECHO_N "checking for pthread_cancel... $ECHO_C" >&6
38658if test "${ac_cv_func_pthread_cancel+set}" = set; then
38659 echo $ECHO_N "(cached) $ECHO_C" >&6
38660else
38661 cat >conftest.$ac_ext <<_ACEOF
38662/* confdefs.h. */
38663_ACEOF
38664cat confdefs.h >>conftest.$ac_ext
38665cat >>conftest.$ac_ext <<_ACEOF
38666/* end confdefs.h. */
ac1cb8d3
VS
38667/* Define pthread_cancel to an innocuous variant, in case <limits.h> declares pthread_cancel.
38668 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38669#define pthread_cancel innocuous_pthread_cancel
38670
a848cd7e
SC
38671/* System header to define __stub macros and hopefully few prototypes,
38672 which can conflict with char pthread_cancel (); below.
38673 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38674 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 38675
a848cd7e
SC
38676#ifdef __STDC__
38677# include <limits.h>
38678#else
38679# include <assert.h>
38680#endif
ac1cb8d3
VS
38681
38682#undef pthread_cancel
38683
a848cd7e
SC
38684/* Override any gcc2 internal prototype to avoid an error. */
38685#ifdef __cplusplus
38686extern "C"
38687{
38688#endif
38689/* We use char because int might match the return type of a gcc2
38690 builtin and then its argument prototype would still apply. */
38691char pthread_cancel ();
38692/* The GNU C library defines this for functions which it implements
38693 to always fail with ENOSYS. Some functions are actually named
38694 something starting with __ and the normal name is an alias. */
38695#if defined (__stub_pthread_cancel) || defined (__stub___pthread_cancel)
38696choke me
38697#else
38698char (*f) () = pthread_cancel;
38699#endif
38700#ifdef __cplusplus
38701}
38702#endif
38703
38704int
38705main ()
38706{
38707return f != pthread_cancel;
38708 ;
38709 return 0;
38710}
38711_ACEOF
38712rm -f conftest.$ac_objext conftest$ac_exeext
38713if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 38714 (eval $ac_link) 2>conftest.er1
a848cd7e 38715 ac_status=$?
ac1cb8d3
VS
38716 grep -v '^ *+' conftest.er1 >conftest.err
38717 rm -f conftest.er1
38718 cat conftest.err >&5
a848cd7e
SC
38719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38720 (exit $ac_status); } &&
c9a66001 38721 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
38722 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38723 (eval $ac_try) 2>&5
38724 ac_status=$?
38725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38726 (exit $ac_status); }; } &&
38727 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
38728 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38729 (eval $ac_try) 2>&5
38730 ac_status=$?
38731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38732 (exit $ac_status); }; }; then
38733 ac_cv_func_pthread_cancel=yes
38734else
38735 echo "$as_me: failed program was:" >&5
38736sed 's/^/| /' conftest.$ac_ext >&5
38737
38738ac_cv_func_pthread_cancel=no
38739fi
ac1cb8d3
VS
38740rm -f conftest.err conftest.$ac_objext \
38741 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
38742fi
38743echo "$as_me:$LINENO: result: $ac_cv_func_pthread_cancel" >&5
38744echo "${ECHO_T}$ac_cv_func_pthread_cancel" >&6
38745if test $ac_cv_func_pthread_cancel = yes; then
38746 cat >>confdefs.h <<\_ACEOF
38747#define HAVE_PTHREAD_CANCEL 1
38748_ACEOF
38749
38750else
38751 { echo "$as_me:$LINENO: WARNING: wxThread::Kill() will not work properly" >&5
38752echo "$as_me: WARNING: wxThread::Kill() will not work properly" >&2;}
38753fi
38754
38755
abc736fd
MW
38756 echo "$as_me:$LINENO: checking for pthread_attr_setstacksize" >&5
38757echo $ECHO_N "checking for pthread_attr_setstacksize... $ECHO_C" >&6
38758if test "${ac_cv_func_pthread_attr_setstacksize+set}" = set; then
38759 echo $ECHO_N "(cached) $ECHO_C" >&6
38760else
38761 cat >conftest.$ac_ext <<_ACEOF
38762/* confdefs.h. */
38763_ACEOF
38764cat confdefs.h >>conftest.$ac_ext
38765cat >>conftest.$ac_ext <<_ACEOF
38766/* end confdefs.h. */
38767/* Define pthread_attr_setstacksize to an innocuous variant, in case <limits.h> declares pthread_attr_setstacksize.
38768 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38769#define pthread_attr_setstacksize innocuous_pthread_attr_setstacksize
38770
38771/* System header to define __stub macros and hopefully few prototypes,
38772 which can conflict with char pthread_attr_setstacksize (); below.
38773 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38774 <limits.h> exists even on freestanding compilers. */
38775
38776#ifdef __STDC__
38777# include <limits.h>
38778#else
38779# include <assert.h>
38780#endif
38781
38782#undef pthread_attr_setstacksize
38783
38784/* Override any gcc2 internal prototype to avoid an error. */
38785#ifdef __cplusplus
38786extern "C"
38787{
38788#endif
38789/* We use char because int might match the return type of a gcc2
38790 builtin and then its argument prototype would still apply. */
38791char pthread_attr_setstacksize ();
38792/* The GNU C library defines this for functions which it implements
38793 to always fail with ENOSYS. Some functions are actually named
38794 something starting with __ and the normal name is an alias. */
38795#if defined (__stub_pthread_attr_setstacksize) || defined (__stub___pthread_attr_setstacksize)
38796choke me
38797#else
38798char (*f) () = pthread_attr_setstacksize;
38799#endif
38800#ifdef __cplusplus
38801}
38802#endif
38803
38804int
38805main ()
38806{
38807return f != pthread_attr_setstacksize;
38808 ;
38809 return 0;
38810}
38811_ACEOF
38812rm -f conftest.$ac_objext conftest$ac_exeext
38813if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38814 (eval $ac_link) 2>conftest.er1
38815 ac_status=$?
38816 grep -v '^ *+' conftest.er1 >conftest.err
38817 rm -f conftest.er1
38818 cat conftest.err >&5
38819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38820 (exit $ac_status); } &&
c9a66001 38821 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
abc736fd
MW
38822 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38823 (eval $ac_try) 2>&5
38824 ac_status=$?
38825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38826 (exit $ac_status); }; } &&
38827 { ac_try='test -s conftest$ac_exeext'
38828 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38829 (eval $ac_try) 2>&5
38830 ac_status=$?
38831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38832 (exit $ac_status); }; }; then
38833 ac_cv_func_pthread_attr_setstacksize=yes
38834else
38835 echo "$as_me: failed program was:" >&5
38836sed 's/^/| /' conftest.$ac_ext >&5
38837
38838ac_cv_func_pthread_attr_setstacksize=no
38839fi
38840rm -f conftest.err conftest.$ac_objext \
38841 conftest$ac_exeext conftest.$ac_ext
38842fi
38843echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_setstacksize" >&5
38844echo "${ECHO_T}$ac_cv_func_pthread_attr_setstacksize" >&6
38845if test $ac_cv_func_pthread_attr_setstacksize = yes; then
38846 cat >>confdefs.h <<\_ACEOF
38847#define HAVE_PTHREAD_ATTR_SETSTACKSIZE 1
38848_ACEOF
38849
38850fi
38851
a848cd7e
SC
38852
38853
38854 echo "$as_me:$LINENO: checking for pthread_mutexattr_t" >&5
38855echo $ECHO_N "checking for pthread_mutexattr_t... $ECHO_C" >&6
38856if test "${wx_cv_type_pthread_mutexattr_t+set}" = set; then
38857 echo $ECHO_N "(cached) $ECHO_C" >&6
38858else
38859
38860 cat >conftest.$ac_ext <<_ACEOF
38861/* confdefs.h. */
38862_ACEOF
38863cat confdefs.h >>conftest.$ac_ext
38864cat >>conftest.$ac_ext <<_ACEOF
38865/* end confdefs.h. */
38866#include <pthread.h>
38867int
38868main ()
38869{
38870
38871 pthread_mutexattr_t attr;
38872 pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE);
38873
38874 ;
38875 return 0;
38876}
38877_ACEOF
38878rm -f conftest.$ac_objext
38879if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 38880 (eval $ac_compile) 2>conftest.er1
a848cd7e 38881 ac_status=$?
ac1cb8d3
VS
38882 grep -v '^ *+' conftest.er1 >conftest.err
38883 rm -f conftest.er1
38884 cat conftest.err >&5
a848cd7e
SC
38885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38886 (exit $ac_status); } &&
c9a66001 38887 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
38888 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38889 (eval $ac_try) 2>&5
38890 ac_status=$?
38891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38892 (exit $ac_status); }; } &&
38893 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
38894 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38895 (eval $ac_try) 2>&5
38896 ac_status=$?
38897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38898 (exit $ac_status); }; }; then
123dca7d 38899 wx_cv_type_pthread_mutexattr_t=yes
a848cd7e
SC
38900else
38901 echo "$as_me: failed program was:" >&5
38902sed 's/^/| /' conftest.$ac_ext >&5
38903
123dca7d 38904wx_cv_type_pthread_mutexattr_t=no
a848cd7e
SC
38905
38906fi
ac1cb8d3 38907rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
38908
38909fi
38910echo "$as_me:$LINENO: result: $wx_cv_type_pthread_mutexattr_t" >&5
38911echo "${ECHO_T}$wx_cv_type_pthread_mutexattr_t" >&6
38912
38913 if test "$wx_cv_type_pthread_mutexattr_t" = "yes"; then
38914 cat >>confdefs.h <<\_ACEOF
38915#define HAVE_PTHREAD_MUTEXATTR_T 1
38916_ACEOF
38917
123dca7d
VZ
38918
38919 echo "$as_me:$LINENO: checking for pthread_mutexattr_settype declaration" >&5
38920echo $ECHO_N "checking for pthread_mutexattr_settype declaration... $ECHO_C" >&6
38921if test "${wx_cv_func_pthread_mutexattr_settype_decl+set}" = set; then
38922 echo $ECHO_N "(cached) $ECHO_C" >&6
38923else
38924
38925 cat >conftest.$ac_ext <<_ACEOF
38926/* confdefs.h. */
38927_ACEOF
38928cat confdefs.h >>conftest.$ac_ext
38929cat >>conftest.$ac_ext <<_ACEOF
38930/* end confdefs.h. */
38931#include <pthread.h>
38932int
38933main ()
38934{
38935
38936 pthread_mutexattr_t attr;
38937 pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE);
38938
38939 ;
38940 return 0;
38941}
38942_ACEOF
38943rm -f conftest.$ac_objext
38944if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38945 (eval $ac_compile) 2>conftest.er1
38946 ac_status=$?
38947 grep -v '^ *+' conftest.er1 >conftest.err
38948 rm -f conftest.er1
38949 cat conftest.err >&5
38950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38951 (exit $ac_status); } &&
c9a66001 38952 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
123dca7d
VZ
38953 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38954 (eval $ac_try) 2>&5
38955 ac_status=$?
38956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38957 (exit $ac_status); }; } &&
38958 { ac_try='test -s conftest.$ac_objext'
38959 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38960 (eval $ac_try) 2>&5
38961 ac_status=$?
38962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38963 (exit $ac_status); }; }; then
38964 wx_cv_func_pthread_mutexattr_settype_decl=yes
38965else
38966 echo "$as_me: failed program was:" >&5
38967sed 's/^/| /' conftest.$ac_ext >&5
38968
38969wx_cv_func_pthread_mutexattr_settype_decl=no
38970
38971fi
38972rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38973
38974fi
38975echo "$as_me:$LINENO: result: $wx_cv_func_pthread_mutexattr_settype_decl" >&5
38976echo "${ECHO_T}$wx_cv_func_pthread_mutexattr_settype_decl" >&6
38977 if test "$wx_cv_func_pthread_mutexattr_settype_decl" = "yes"; then
38978 cat >>confdefs.h <<\_ACEOF
38979#define HAVE_PTHREAD_MUTEXATTR_SETTYPE_DECL 1
38980_ACEOF
38981
38982 fi
a848cd7e
SC
38983 else
38984 echo "$as_me:$LINENO: checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER" >&5
38985echo $ECHO_N "checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER... $ECHO_C" >&6
38986if test "${wx_cv_type_pthread_rec_mutex_init+set}" = set; then
38987 echo $ECHO_N "(cached) $ECHO_C" >&6
38988else
38989
38990 cat >conftest.$ac_ext <<_ACEOF
38991/* confdefs.h. */
38992_ACEOF
38993cat confdefs.h >>conftest.$ac_ext
38994cat >>conftest.$ac_ext <<_ACEOF
38995/* end confdefs.h. */
38996#include <pthread.h>
38997int
38998main ()
38999{
39000
39001 pthread_mutex_t attr = PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP;
39002
39003 ;
39004 return 0;
39005}
39006_ACEOF
39007rm -f conftest.$ac_objext
39008if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 39009 (eval $ac_compile) 2>conftest.er1
a848cd7e 39010 ac_status=$?
ac1cb8d3
VS
39011 grep -v '^ *+' conftest.er1 >conftest.err
39012 rm -f conftest.er1
39013 cat conftest.err >&5
a848cd7e
SC
39014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39015 (exit $ac_status); } &&
c9a66001 39016 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
39017 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39018 (eval $ac_try) 2>&5
39019 ac_status=$?
39020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39021 (exit $ac_status); }; } &&
39022 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
39023 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39024 (eval $ac_try) 2>&5
39025 ac_status=$?
39026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39027 (exit $ac_status); }; }; then
39028
39029 wx_cv_type_pthread_rec_mutex_init=yes
39030
39031else
39032 echo "$as_me: failed program was:" >&5
39033sed 's/^/| /' conftest.$ac_ext >&5
39034
39035
39036 wx_cv_type_pthread_rec_mutex_init=no
39037
39038
39039fi
ac1cb8d3 39040rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
39041
39042fi
39043echo "$as_me:$LINENO: result: $wx_cv_type_pthread_rec_mutex_init" >&5
39044echo "${ECHO_T}$wx_cv_type_pthread_rec_mutex_init" >&6
39045 if test "$wx_cv_type_pthread_rec_mutex_init" = "yes"; then
39046 cat >>confdefs.h <<\_ACEOF
39047#define HAVE_PTHREAD_RECURSIVE_MUTEX_INITIALIZER 1
39048_ACEOF
39049
39050 else
39051 { echo "$as_me:$LINENO: WARNING: wxMutex won't be recursive on this platform" >&5
39052echo "$as_me: WARNING: wxMutex won't be recursive on this platform" >&2;}
39053 fi
39054 fi
39055 fi
39056
39057else
39058 if test "$wxUSE_THREADS" = "yes" ; then
39059 case "${host}" in
39060 *-*-mingw32* )
39061 echo "$as_me:$LINENO: checking if compiler supports -mthreads" >&5
39062echo $ECHO_N "checking if compiler supports -mthreads... $ECHO_C" >&6
39063if test "${wx_cv_cflags_mthread+set}" = set; then
39064 echo $ECHO_N "(cached) $ECHO_C" >&6
39065else
39066
e56f4f9e
VZ
39067 CXXFLAGS_OLD="$CXXFLAGS"
39068 CXXFLAGS="-mthreads $CXXFLAGS"
a848cd7e
SC
39069 cat >conftest.$ac_ext <<_ACEOF
39070/* confdefs.h. */
39071_ACEOF
39072cat confdefs.h >>conftest.$ac_ext
39073cat >>conftest.$ac_ext <<_ACEOF
39074/* end confdefs.h. */
39075
39076int
39077main ()
39078{
39079
39080 ;
39081 return 0;
39082}
39083_ACEOF
39084rm -f conftest.$ac_objext
39085if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 39086 (eval $ac_compile) 2>conftest.er1
a848cd7e 39087 ac_status=$?
ac1cb8d3
VS
39088 grep -v '^ *+' conftest.er1 >conftest.err
39089 rm -f conftest.er1
39090 cat conftest.err >&5
a848cd7e
SC
39091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39092 (exit $ac_status); } &&
c9a66001 39093 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
39094 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39095 (eval $ac_try) 2>&5
39096 ac_status=$?
39097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39098 (exit $ac_status); }; } &&
39099 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
39100 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39101 (eval $ac_try) 2>&5
39102 ac_status=$?
39103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39104 (exit $ac_status); }; }; then
39105 wx_cv_cflags_mthread=yes
39106else
39107 echo "$as_me: failed program was:" >&5
39108sed 's/^/| /' conftest.$ac_ext >&5
39109
39110wx_cv_cflags_mthread=no
39111
39112fi
ac1cb8d3 39113rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
39114
39115
39116fi
39117echo "$as_me:$LINENO: result: $wx_cv_cflags_mthread" >&5
39118echo "${ECHO_T}$wx_cv_cflags_mthread" >&6
39119
39120 if test "$wx_cv_cflags_mthread" = "yes"; then
e56f4f9e 39121 WXCONFIG_CXXFLAGS="$WXCONFIG_CXXFLAGS -mthreads"
a848cd7e
SC
39122 LDFLAGS="$LDFLAGS -mthreads"
39123 else
e56f4f9e 39124 CXXFLAGS="$CXXFLAGS_OLD"
a848cd7e
SC
39125 fi
39126 ;;
39127 *-pc-os2*emx )
5ff751d6
VZ
39128 WXCONFIG_CFLAGS="$WXCONFIG_CFLAGS -Zmt -D__ST_MT_ERRNO__"
39129 WXCONFIG_CXXFLAGS="$WXCONFIG_CXXFLAGS -Zmt -D__ST_MT_ERRNO__"
a848cd7e
SC
39130 LDFLAGS="$LDFLAGS -Zmt"
39131 ;;
39132 esac
39133 fi
39134fi
39135
004ee6da
RL
39136echo "$as_me:$LINENO: checking for localtime_r" >&5
39137echo $ECHO_N "checking for localtime_r... $ECHO_C" >&6
39138if test "${ac_cv_func_localtime_r+set}" = set; then
a848cd7e
SC
39139 echo $ECHO_N "(cached) $ECHO_C" >&6
39140else
39141 cat >conftest.$ac_ext <<_ACEOF
39142/* confdefs.h. */
39143_ACEOF
39144cat confdefs.h >>conftest.$ac_ext
39145cat >>conftest.$ac_ext <<_ACEOF
39146/* end confdefs.h. */
004ee6da 39147/* Define localtime_r to an innocuous variant, in case <limits.h> declares localtime_r.
ac1cb8d3 39148 For example, HP-UX 11i <limits.h> declares gettimeofday. */
004ee6da 39149#define localtime_r innocuous_localtime_r
ac1cb8d3 39150
a848cd7e 39151/* System header to define __stub macros and hopefully few prototypes,
004ee6da 39152 which can conflict with char localtime_r (); below.
a848cd7e
SC
39153 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39154 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 39155
a848cd7e
SC
39156#ifdef __STDC__
39157# include <limits.h>
39158#else
39159# include <assert.h>
39160#endif
ac1cb8d3 39161
004ee6da 39162#undef localtime_r
ac1cb8d3 39163
a848cd7e
SC
39164/* Override any gcc2 internal prototype to avoid an error. */
39165#ifdef __cplusplus
39166extern "C"
39167{
39168#endif
39169/* We use char because int might match the return type of a gcc2
39170 builtin and then its argument prototype would still apply. */
004ee6da 39171char localtime_r ();
a848cd7e
SC
39172/* The GNU C library defines this for functions which it implements
39173 to always fail with ENOSYS. Some functions are actually named
39174 something starting with __ and the normal name is an alias. */
004ee6da 39175#if defined (__stub_localtime_r) || defined (__stub___localtime_r)
a848cd7e
SC
39176choke me
39177#else
004ee6da 39178char (*f) () = localtime_r;
a848cd7e
SC
39179#endif
39180#ifdef __cplusplus
39181}
39182#endif
39183
39184int
39185main ()
39186{
004ee6da
RL
39187return f != localtime_r;
39188 ;
39189 return 0;
39190}
39191_ACEOF
39192rm -f conftest.$ac_objext conftest$ac_exeext
39193if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39194 (eval $ac_link) 2>conftest.er1
39195 ac_status=$?
39196 grep -v '^ *+' conftest.er1 >conftest.err
39197 rm -f conftest.er1
39198 cat conftest.err >&5
39199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39200 (exit $ac_status); } &&
c9a66001 39201 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
004ee6da
RL
39202 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39203 (eval $ac_try) 2>&5
39204 ac_status=$?
39205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39206 (exit $ac_status); }; } &&
39207 { ac_try='test -s conftest$ac_exeext'
39208 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39209 (eval $ac_try) 2>&5
39210 ac_status=$?
39211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39212 (exit $ac_status); }; }; then
39213 ac_cv_func_localtime_r=yes
39214else
39215 echo "$as_me: failed program was:" >&5
39216sed 's/^/| /' conftest.$ac_ext >&5
39217
39218ac_cv_func_localtime_r=no
39219fi
39220rm -f conftest.err conftest.$ac_objext \
39221 conftest$ac_exeext conftest.$ac_ext
39222fi
39223echo "$as_me:$LINENO: result: $ac_cv_func_localtime_r" >&5
39224echo "${ECHO_T}$ac_cv_func_localtime_r" >&6
39225if test $ac_cv_func_localtime_r = yes; then
39226 cat >>confdefs.h <<\_ACEOF
39227#define HAVE_LOCALTIME_R 1
39228_ACEOF
39229
39230fi
39231
39232echo "$as_me:$LINENO: checking for gmtime_r" >&5
39233echo $ECHO_N "checking for gmtime_r... $ECHO_C" >&6
39234if test "${ac_cv_func_gmtime_r+set}" = set; then
39235 echo $ECHO_N "(cached) $ECHO_C" >&6
39236else
39237 cat >conftest.$ac_ext <<_ACEOF
39238/* confdefs.h. */
39239_ACEOF
39240cat confdefs.h >>conftest.$ac_ext
39241cat >>conftest.$ac_ext <<_ACEOF
39242/* end confdefs.h. */
39243/* Define gmtime_r to an innocuous variant, in case <limits.h> declares gmtime_r.
39244 For example, HP-UX 11i <limits.h> declares gettimeofday. */
39245#define gmtime_r innocuous_gmtime_r
39246
39247/* System header to define __stub macros and hopefully few prototypes,
39248 which can conflict with char gmtime_r (); below.
39249 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39250 <limits.h> exists even on freestanding compilers. */
39251
39252#ifdef __STDC__
39253# include <limits.h>
39254#else
39255# include <assert.h>
39256#endif
39257
39258#undef gmtime_r
39259
39260/* Override any gcc2 internal prototype to avoid an error. */
39261#ifdef __cplusplus
39262extern "C"
39263{
39264#endif
39265/* We use char because int might match the return type of a gcc2
39266 builtin and then its argument prototype would still apply. */
39267char gmtime_r ();
39268/* The GNU C library defines this for functions which it implements
39269 to always fail with ENOSYS. Some functions are actually named
39270 something starting with __ and the normal name is an alias. */
39271#if defined (__stub_gmtime_r) || defined (__stub___gmtime_r)
39272choke me
39273#else
39274char (*f) () = gmtime_r;
39275#endif
39276#ifdef __cplusplus
39277}
39278#endif
39279
39280int
39281main ()
39282{
39283return f != gmtime_r;
39284 ;
39285 return 0;
39286}
39287_ACEOF
39288rm -f conftest.$ac_objext conftest$ac_exeext
39289if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39290 (eval $ac_link) 2>conftest.er1
39291 ac_status=$?
39292 grep -v '^ *+' conftest.er1 >conftest.err
39293 rm -f conftest.er1
39294 cat conftest.err >&5
39295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39296 (exit $ac_status); } &&
c9a66001 39297 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
004ee6da
RL
39298 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39299 (eval $ac_try) 2>&5
39300 ac_status=$?
39301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39302 (exit $ac_status); }; } &&
39303 { ac_try='test -s conftest$ac_exeext'
39304 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39305 (eval $ac_try) 2>&5
39306 ac_status=$?
39307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39308 (exit $ac_status); }; }; then
39309 ac_cv_func_gmtime_r=yes
39310else
39311 echo "$as_me: failed program was:" >&5
39312sed 's/^/| /' conftest.$ac_ext >&5
39313
39314ac_cv_func_gmtime_r=no
39315fi
39316rm -f conftest.err conftest.$ac_objext \
39317 conftest$ac_exeext conftest.$ac_ext
39318fi
39319echo "$as_me:$LINENO: result: $ac_cv_func_gmtime_r" >&5
39320echo "${ECHO_T}$ac_cv_func_gmtime_r" >&6
39321if test $ac_cv_func_gmtime_r = yes; then
39322 cat >>confdefs.h <<\_ACEOF
39323#define HAVE_GMTIME_R 1
39324_ACEOF
39325
39326fi
39327
39328echo "$as_me:$LINENO: checking for readdir_r" >&5
39329echo $ECHO_N "checking for readdir_r... $ECHO_C" >&6
39330if test "${ac_cv_func_readdir_r+set}" = set; then
39331 echo $ECHO_N "(cached) $ECHO_C" >&6
39332else
39333 cat >conftest.$ac_ext <<_ACEOF
39334/* confdefs.h. */
39335_ACEOF
39336cat confdefs.h >>conftest.$ac_ext
39337cat >>conftest.$ac_ext <<_ACEOF
39338/* end confdefs.h. */
39339/* Define readdir_r to an innocuous variant, in case <limits.h> declares readdir_r.
39340 For example, HP-UX 11i <limits.h> declares gettimeofday. */
39341#define readdir_r innocuous_readdir_r
39342
39343/* System header to define __stub macros and hopefully few prototypes,
39344 which can conflict with char readdir_r (); below.
39345 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39346 <limits.h> exists even on freestanding compilers. */
39347
39348#ifdef __STDC__
39349# include <limits.h>
39350#else
39351# include <assert.h>
39352#endif
39353
39354#undef readdir_r
39355
39356/* Override any gcc2 internal prototype to avoid an error. */
39357#ifdef __cplusplus
39358extern "C"
39359{
39360#endif
39361/* We use char because int might match the return type of a gcc2
39362 builtin and then its argument prototype would still apply. */
39363char readdir_r ();
39364/* The GNU C library defines this for functions which it implements
39365 to always fail with ENOSYS. Some functions are actually named
39366 something starting with __ and the normal name is an alias. */
39367#if defined (__stub_readdir_r) || defined (__stub___readdir_r)
39368choke me
39369#else
39370char (*f) () = readdir_r;
39371#endif
39372#ifdef __cplusplus
39373}
39374#endif
39375
39376int
39377main ()
39378{
39379return f != readdir_r;
39380 ;
39381 return 0;
39382}
39383_ACEOF
39384rm -f conftest.$ac_objext conftest$ac_exeext
39385if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39386 (eval $ac_link) 2>conftest.er1
39387 ac_status=$?
39388 grep -v '^ *+' conftest.er1 >conftest.err
39389 rm -f conftest.er1
39390 cat conftest.err >&5
39391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39392 (exit $ac_status); } &&
c9a66001 39393 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
004ee6da
RL
39394 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39395 (eval $ac_try) 2>&5
39396 ac_status=$?
39397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39398 (exit $ac_status); }; } &&
39399 { ac_try='test -s conftest$ac_exeext'
39400 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39401 (eval $ac_try) 2>&5
39402 ac_status=$?
39403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39404 (exit $ac_status); }; }; then
39405 ac_cv_func_readdir_r=yes
39406else
39407 echo "$as_me: failed program was:" >&5
39408sed 's/^/| /' conftest.$ac_ext >&5
39409
39410ac_cv_func_readdir_r=no
39411fi
39412rm -f conftest.err conftest.$ac_objext \
39413 conftest$ac_exeext conftest.$ac_ext
39414fi
39415echo "$as_me:$LINENO: result: $ac_cv_func_readdir_r" >&5
39416echo "${ECHO_T}$ac_cv_func_readdir_r" >&6
39417if test $ac_cv_func_readdir_r = yes; then
39418 cat >>confdefs.h <<\_ACEOF
39419#define HAVE_READDIR_R 1
39420_ACEOF
39421
39422fi
39423
004ee6da 39424
004ee6da
RL
39425
39426
39427 ac_ext=c
39428ac_cpp='$CPP $CPPFLAGS'
39429ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
39430ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
39431ac_compiler_gnu=$ac_cv_c_compiler_gnu
39432
39433 echo "$as_me:$LINENO: checking how many arguments gethostbyname_r() takes" >&5
39434echo $ECHO_N "checking how many arguments gethostbyname_r() takes... $ECHO_C" >&6
39435
39436 if test "${ac_cv_func_which_gethostbyname_r+set}" = set; then
39437 echo $ECHO_N "(cached) $ECHO_C" >&6
39438else
39439
39440
2f6c5bb5 39441################################################################
004ee6da
RL
39442
39443ac_cv_func_which_gethostbyname_r=unknown
39444
39445#
39446# ONE ARGUMENT (sanity check)
39447#
39448
39449# This should fail, as there is no variant of gethostbyname_r() that takes
39450# a single argument. If it actually compiles, then we can assume that
39451# netdb.h is not declaring the function, and the compiler is thereby
39452# assuming an implicit prototype. In which case, we're out of luck.
39453#
39454cat >conftest.$ac_ext <<_ACEOF
39455/* confdefs.h. */
39456_ACEOF
39457cat confdefs.h >>conftest.$ac_ext
39458cat >>conftest.$ac_ext <<_ACEOF
39459/* end confdefs.h. */
39460#include <netdb.h>
39461int
39462main ()
39463{
39464
39465 char *name = "www.gnu.org";
39466 (void)gethostbyname_r(name) /* ; */
39467
39468 ;
39469 return 0;
39470}
39471_ACEOF
39472rm -f conftest.$ac_objext
39473if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39474 (eval $ac_compile) 2>conftest.er1
39475 ac_status=$?
39476 grep -v '^ *+' conftest.er1 >conftest.err
39477 rm -f conftest.er1
39478 cat conftest.err >&5
39479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39480 (exit $ac_status); } &&
c9a66001 39481 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
004ee6da
RL
39482 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39483 (eval $ac_try) 2>&5
39484 ac_status=$?
39485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39486 (exit $ac_status); }; } &&
39487 { ac_try='test -s conftest.$ac_objext'
39488 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39489 (eval $ac_try) 2>&5
39490 ac_status=$?
39491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39492 (exit $ac_status); }; }; then
39493 ac_cv_func_which_gethostbyname_r=no
39494else
39495 echo "$as_me: failed program was:" >&5
39496sed 's/^/| /' conftest.$ac_ext >&5
39497
39498fi
39499rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39500
39501#
39502# SIX ARGUMENTS
39503# (e.g. Linux)
39504#
39505
39506if test "$ac_cv_func_which_gethostbyname_r" = "unknown"; then
39507
39508cat >conftest.$ac_ext <<_ACEOF
39509/* confdefs.h. */
39510_ACEOF
39511cat confdefs.h >>conftest.$ac_ext
39512cat >>conftest.$ac_ext <<_ACEOF
39513/* end confdefs.h. */
39514#include <netdb.h>
39515int
39516main ()
39517{
39518
39519 char *name = "www.gnu.org";
39520 struct hostent ret, *retp;
39521 char buf[1024];
39522 int buflen = 1024;
39523 int my_h_errno;
39524 (void)gethostbyname_r(name, &ret, buf, buflen, &retp, &my_h_errno) /* ; */
39525
39526 ;
39527 return 0;
39528}
39529_ACEOF
39530rm -f conftest.$ac_objext
39531if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39532 (eval $ac_compile) 2>conftest.er1
39533 ac_status=$?
39534 grep -v '^ *+' conftest.er1 >conftest.err
39535 rm -f conftest.er1
39536 cat conftest.err >&5
39537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39538 (exit $ac_status); } &&
c9a66001 39539 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
004ee6da
RL
39540 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39541 (eval $ac_try) 2>&5
39542 ac_status=$?
39543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39544 (exit $ac_status); }; } &&
39545 { ac_try='test -s conftest.$ac_objext'
39546 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39547 (eval $ac_try) 2>&5
39548 ac_status=$?
39549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39550 (exit $ac_status); }; }; then
39551 ac_cv_func_which_gethostbyname_r=six
39552else
39553 echo "$as_me: failed program was:" >&5
39554sed 's/^/| /' conftest.$ac_ext >&5
39555
39556fi
39557rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39558
39559fi
39560
39561#
39562# FIVE ARGUMENTS
39563# (e.g. Solaris)
39564#
39565
39566if test "$ac_cv_func_which_gethostbyname_r" = "unknown"; then
39567
39568cat >conftest.$ac_ext <<_ACEOF
39569/* confdefs.h. */
39570_ACEOF
39571cat confdefs.h >>conftest.$ac_ext
39572cat >>conftest.$ac_ext <<_ACEOF
39573/* end confdefs.h. */
39574#include <netdb.h>
39575int
39576main ()
39577{
39578
39579 char *name = "www.gnu.org";
39580 struct hostent ret;
39581 char buf[1024];
39582 int buflen = 1024;
39583 int my_h_errno;
39584 (void)gethostbyname_r(name, &ret, buf, buflen, &my_h_errno) /* ; */
39585
39586 ;
39587 return 0;
39588}
39589_ACEOF
39590rm -f conftest.$ac_objext
39591if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39592 (eval $ac_compile) 2>conftest.er1
39593 ac_status=$?
39594 grep -v '^ *+' conftest.er1 >conftest.err
39595 rm -f conftest.er1
39596 cat conftest.err >&5
39597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39598 (exit $ac_status); } &&
c9a66001 39599 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
004ee6da
RL
39600 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39601 (eval $ac_try) 2>&5
39602 ac_status=$?
39603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39604 (exit $ac_status); }; } &&
39605 { ac_try='test -s conftest.$ac_objext'
39606 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39607 (eval $ac_try) 2>&5
39608 ac_status=$?
39609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39610 (exit $ac_status); }; }; then
39611 ac_cv_func_which_gethostbyname_r=five
39612else
39613 echo "$as_me: failed program was:" >&5
39614sed 's/^/| /' conftest.$ac_ext >&5
39615
39616fi
39617rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39618
39619fi
39620
39621#
39622# THREE ARGUMENTS
39623# (e.g. AIX, HP-UX, Tru64)
39624#
39625
39626if test "$ac_cv_func_which_gethostbyname_r" = "unknown"; then
39627
39628cat >conftest.$ac_ext <<_ACEOF
39629/* confdefs.h. */
39630_ACEOF
39631cat confdefs.h >>conftest.$ac_ext
39632cat >>conftest.$ac_ext <<_ACEOF
39633/* end confdefs.h. */
39634#include <netdb.h>
39635int
39636main ()
39637{
39638
39639 char *name = "www.gnu.org";
39640 struct hostent ret;
39641 struct hostent_data data;
39642 (void)gethostbyname_r(name, &ret, &data) /* ; */
39643
39644 ;
39645 return 0;
39646}
39647_ACEOF
39648rm -f conftest.$ac_objext
39649if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39650 (eval $ac_compile) 2>conftest.er1
39651 ac_status=$?
39652 grep -v '^ *+' conftest.er1 >conftest.err
39653 rm -f conftest.er1
39654 cat conftest.err >&5
39655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39656 (exit $ac_status); } &&
c9a66001 39657 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
004ee6da
RL
39658 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39659 (eval $ac_try) 2>&5
39660 ac_status=$?
39661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39662 (exit $ac_status); }; } &&
39663 { ac_try='test -s conftest.$ac_objext'
39664 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39665 (eval $ac_try) 2>&5
39666 ac_status=$?
39667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39668 (exit $ac_status); }; }; then
39669 ac_cv_func_which_gethostbyname_r=three
39670else
39671 echo "$as_me: failed program was:" >&5
39672sed 's/^/| /' conftest.$ac_ext >&5
39673
39674fi
39675rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39676
39677fi
39678
2f6c5bb5 39679################################################################
004ee6da
RL
39680
39681
39682fi
39683
39684case "$ac_cv_func_which_gethostbyname_r" in
39685 three)
39686 echo "$as_me:$LINENO: result: three" >&5
39687echo "${ECHO_T}three" >&6
39688 cat >>confdefs.h <<\_ACEOF
39689#define HAVE_FUNC_GETHOSTBYNAME_R_3 1
39690_ACEOF
39691
39692 ;;
39693
39694 five)
39695 echo "$as_me:$LINENO: result: five" >&5
39696echo "${ECHO_T}five" >&6
39697 cat >>confdefs.h <<\_ACEOF
39698#define HAVE_FUNC_GETHOSTBYNAME_R_5 1
39699_ACEOF
39700
39701 ;;
39702
39703 six)
39704 echo "$as_me:$LINENO: result: six" >&5
39705echo "${ECHO_T}six" >&6
39706 cat >>confdefs.h <<\_ACEOF
39707#define HAVE_FUNC_GETHOSTBYNAME_R_6 1
39708_ACEOF
39709
39710 ;;
39711
39712 no)
39713 echo "$as_me:$LINENO: result: cannot find function declaration in netdb.h" >&5
39714echo "${ECHO_T}cannot find function declaration in netdb.h" >&6
39715 ;;
39716
39717 unknown)
39718 echo "$as_me:$LINENO: result: can't tell" >&5
39719echo "${ECHO_T}can't tell" >&6
39720 ;;
39721
39722 *)
39723 { { echo "$as_me:$LINENO: error: internal error" >&5
39724echo "$as_me: error: internal error" >&2;}
39725 { (exit 1); exit 1; }; }
39726 ;;
39727esac
39728
5ec3bc43
JS
39729ac_ext=cc
39730ac_cpp='$CXXCPP $CPPFLAGS'
39731ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
39732ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
39733ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
004ee6da
RL
39734
39735
39736
39737 if test "x$ac_cv_func_which_gethostbyname_r" = "xno" -o \
39738 "x$ac_cv_func_which_gethostbyname_r" = "xunknown" ; then
39739 echo "$as_me:$LINENO: checking for gethostbyname" >&5
39740echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
39741if test "${ac_cv_func_gethostbyname+set}" = set; then
39742 echo $ECHO_N "(cached) $ECHO_C" >&6
39743else
39744 cat >conftest.$ac_ext <<_ACEOF
39745/* confdefs.h. */
39746_ACEOF
39747cat confdefs.h >>conftest.$ac_ext
39748cat >>conftest.$ac_ext <<_ACEOF
39749/* end confdefs.h. */
39750/* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
39751 For example, HP-UX 11i <limits.h> declares gettimeofday. */
39752#define gethostbyname innocuous_gethostbyname
39753
39754/* System header to define __stub macros and hopefully few prototypes,
39755 which can conflict with char gethostbyname (); below.
39756 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39757 <limits.h> exists even on freestanding compilers. */
39758
39759#ifdef __STDC__
39760# include <limits.h>
39761#else
39762# include <assert.h>
39763#endif
39764
39765#undef gethostbyname
39766
39767/* Override any gcc2 internal prototype to avoid an error. */
39768#ifdef __cplusplus
39769extern "C"
39770{
39771#endif
39772/* We use char because int might match the return type of a gcc2
39773 builtin and then its argument prototype would still apply. */
39774char gethostbyname ();
39775/* The GNU C library defines this for functions which it implements
39776 to always fail with ENOSYS. Some functions are actually named
39777 something starting with __ and the normal name is an alias. */
39778#if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
39779choke me
39780#else
39781char (*f) () = gethostbyname;
39782#endif
39783#ifdef __cplusplus
39784}
39785#endif
39786
39787int
39788main ()
39789{
39790return f != gethostbyname;
39791 ;
39792 return 0;
39793}
39794_ACEOF
39795rm -f conftest.$ac_objext conftest$ac_exeext
39796if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39797 (eval $ac_link) 2>conftest.er1
39798 ac_status=$?
39799 grep -v '^ *+' conftest.er1 >conftest.err
39800 rm -f conftest.er1
39801 cat conftest.err >&5
39802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39803 (exit $ac_status); } &&
c9a66001 39804 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
004ee6da
RL
39805 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39806 (eval $ac_try) 2>&5
39807 ac_status=$?
39808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39809 (exit $ac_status); }; } &&
39810 { ac_try='test -s conftest$ac_exeext'
39811 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39812 (eval $ac_try) 2>&5
39813 ac_status=$?
39814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39815 (exit $ac_status); }; }; then
39816 ac_cv_func_gethostbyname=yes
39817else
39818 echo "$as_me: failed program was:" >&5
39819sed 's/^/| /' conftest.$ac_ext >&5
39820
39821ac_cv_func_gethostbyname=no
39822fi
39823rm -f conftest.err conftest.$ac_objext \
39824 conftest$ac_exeext conftest.$ac_ext
39825fi
39826echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
39827echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
39828if test $ac_cv_func_gethostbyname = yes; then
39829 cat >>confdefs.h <<\_ACEOF
39830#define HAVE_GETHOSTBYNAME 1
39831_ACEOF
39832
39833fi
39834
39835 fi
39836 echo "$as_me:$LINENO: checking for getservbyname_r" >&5
39837echo $ECHO_N "checking for getservbyname_r... $ECHO_C" >&6
004ee6da
RL
39838if test "${ac_cv_func_getservbyname_r+set}" = set; then
39839 echo $ECHO_N "(cached) $ECHO_C" >&6
39840else
39841 cat >conftest.$ac_ext <<_ACEOF
39842/* confdefs.h. */
39843_ACEOF
39844cat confdefs.h >>conftest.$ac_ext
39845cat >>conftest.$ac_ext <<_ACEOF
39846/* end confdefs.h. */
39847/* Define getservbyname_r to an innocuous variant, in case <limits.h> declares getservbyname_r.
39848 For example, HP-UX 11i <limits.h> declares gettimeofday. */
39849#define getservbyname_r innocuous_getservbyname_r
39850
39851/* System header to define __stub macros and hopefully few prototypes,
39852 which can conflict with char getservbyname_r (); below.
39853 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39854 <limits.h> exists even on freestanding compilers. */
39855
39856#ifdef __STDC__
39857# include <limits.h>
39858#else
39859# include <assert.h>
39860#endif
39861
39862#undef getservbyname_r
39863
39864/* Override any gcc2 internal prototype to avoid an error. */
39865#ifdef __cplusplus
39866extern "C"
39867{
39868#endif
39869/* We use char because int might match the return type of a gcc2
39870 builtin and then its argument prototype would still apply. */
39871char getservbyname_r ();
39872/* The GNU C library defines this for functions which it implements
39873 to always fail with ENOSYS. Some functions are actually named
39874 something starting with __ and the normal name is an alias. */
39875#if defined (__stub_getservbyname_r) || defined (__stub___getservbyname_r)
39876choke me
39877#else
39878char (*f) () = getservbyname_r;
39879#endif
39880#ifdef __cplusplus
39881}
39882#endif
39883
39884int
39885main ()
39886{
39887return f != getservbyname_r;
39888 ;
39889 return 0;
39890}
39891_ACEOF
39892rm -f conftest.$ac_objext conftest$ac_exeext
39893if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39894 (eval $ac_link) 2>conftest.er1
39895 ac_status=$?
39896 grep -v '^ *+' conftest.er1 >conftest.err
39897 rm -f conftest.er1
39898 cat conftest.err >&5
39899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39900 (exit $ac_status); } &&
c9a66001 39901 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
004ee6da
RL
39902 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39903 (eval $ac_try) 2>&5
39904 ac_status=$?
39905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39906 (exit $ac_status); }; } &&
39907 { ac_try='test -s conftest$ac_exeext'
39908 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39909 (eval $ac_try) 2>&5
39910 ac_status=$?
39911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39912 (exit $ac_status); }; }; then
39913 ac_cv_func_getservbyname_r=yes
39914else
39915 echo "$as_me: failed program was:" >&5
39916sed 's/^/| /' conftest.$ac_ext >&5
39917
39918ac_cv_func_getservbyname_r=no
39919fi
39920rm -f conftest.err conftest.$ac_objext \
39921 conftest$ac_exeext conftest.$ac_ext
39922fi
39923echo "$as_me:$LINENO: result: $ac_cv_func_getservbyname_r" >&5
39924echo "${ECHO_T}$ac_cv_func_getservbyname_r" >&6
39925if test $ac_cv_func_getservbyname_r = yes; then
99879bbf 39926 cat >conftest.$ac_ext <<_ACEOF
004ee6da
RL
39927/* confdefs.h. */
39928_ACEOF
39929cat confdefs.h >>conftest.$ac_ext
39930cat >>conftest.$ac_ext <<_ACEOF
39931/* end confdefs.h. */
99879bbf 39932#include <netdb.h>
004ee6da
RL
39933int
39934main ()
39935{
39936
99879bbf
MR
39937 char *name;
39938 char *proto;
39939 struct servent *se;
39940 struct servent_data data;
39941 (void) getservbyname_r(name, proto, se, &data);
004ee6da
RL
39942
39943 ;
39944 return 0;
39945}
39946_ACEOF
39947rm -f conftest.$ac_objext
39948if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39949 (eval $ac_compile) 2>conftest.er1
39950 ac_status=$?
39951 grep -v '^ *+' conftest.er1 >conftest.err
39952 rm -f conftest.er1
39953 cat conftest.err >&5
39954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39955 (exit $ac_status); } &&
c9a66001 39956 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
004ee6da
RL
39957 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39958 (eval $ac_try) 2>&5
39959 ac_status=$?
39960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39961 (exit $ac_status); }; } &&
39962 { ac_try='test -s conftest.$ac_objext'
39963 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39964 (eval $ac_try) 2>&5
39965 ac_status=$?
39966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39967 (exit $ac_status); }; }; then
39968 ac_cv_func_which_getservbyname_r=four
39969else
39970 echo "$as_me: failed program was:" >&5
39971sed 's/^/| /' conftest.$ac_ext >&5
39972
99879bbf 39973cat >conftest.$ac_ext <<_ACEOF
004ee6da
RL
39974/* confdefs.h. */
39975_ACEOF
39976cat confdefs.h >>conftest.$ac_ext
39977cat >>conftest.$ac_ext <<_ACEOF
39978/* end confdefs.h. */
99879bbf 39979#include <netdb.h>
004ee6da
RL
39980int
39981main ()
39982{
39983
99879bbf
MR
39984 char *name;
39985 char *proto;
39986 struct servent *se, *res;
39987 char buffer[2048];
39988 int buflen = 2048;
39989 (void) getservbyname_r(name, proto, se, buffer, buflen, &res);
004ee6da
RL
39990
39991 ;
39992 return 0;
39993}
39994_ACEOF
39995rm -f conftest.$ac_objext
39996if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39997 (eval $ac_compile) 2>conftest.er1
39998 ac_status=$?
39999 grep -v '^ *+' conftest.er1 >conftest.err
40000 rm -f conftest.er1
40001 cat conftest.err >&5
40002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40003 (exit $ac_status); } &&
c9a66001 40004 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
004ee6da
RL
40005 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40006 (eval $ac_try) 2>&5
40007 ac_status=$?
40008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40009 (exit $ac_status); }; } &&
40010 { ac_try='test -s conftest.$ac_objext'
40011 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40012 (eval $ac_try) 2>&5
40013 ac_status=$?
40014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40015 (exit $ac_status); }; }; then
40016 ac_cv_func_which_getservbyname_r=six
40017else
40018 echo "$as_me: failed program was:" >&5
40019sed 's/^/| /' conftest.$ac_ext >&5
40020
99879bbf 40021cat >conftest.$ac_ext <<_ACEOF
004ee6da
RL
40022/* confdefs.h. */
40023_ACEOF
40024cat confdefs.h >>conftest.$ac_ext
40025cat >>conftest.$ac_ext <<_ACEOF
40026/* end confdefs.h. */
99879bbf 40027#include <netdb.h>
004ee6da
RL
40028int
40029main ()
40030{
40031
99879bbf
MR
40032 char *name;
40033 char *proto;
40034 struct servent *se;
40035 char buffer[2048];
40036 int buflen = 2048;
40037 (void) getservbyname_r(name, proto, se, buffer, buflen)
004ee6da
RL
40038
40039 ;
40040 return 0;
40041}
40042_ACEOF
40043rm -f conftest.$ac_objext
40044if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40045 (eval $ac_compile) 2>conftest.er1
40046 ac_status=$?
40047 grep -v '^ *+' conftest.er1 >conftest.err
40048 rm -f conftest.er1
40049 cat conftest.err >&5
40050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40051 (exit $ac_status); } &&
c9a66001 40052 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
004ee6da
RL
40053 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40054 (eval $ac_try) 2>&5
40055 ac_status=$?
40056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40057 (exit $ac_status); }; } &&
40058 { ac_try='test -s conftest.$ac_objext'
40059 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40060 (eval $ac_try) 2>&5
40061 ac_status=$?
40062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40063 (exit $ac_status); }; }; then
40064 ac_cv_func_which_getservbyname_r=five
40065else
40066 echo "$as_me: failed program was:" >&5
40067sed 's/^/| /' conftest.$ac_ext >&5
40068
40069ac_cv_func_which_getservbyname_r=no
99879bbf 40070
004ee6da
RL
40071fi
40072rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40073
004ee6da
RL
40074fi
40075rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40076
004ee6da
RL
40077fi
40078rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
004ee6da
RL
40079else
40080 ac_cv_func_which_getservbyname_r=no
40081fi
40082
004ee6da
RL
40083
40084if test $ac_cv_func_which_getservbyname_r = six; then
40085 cat >>confdefs.h <<\_ACEOF
40086#define HAVE_FUNC_GETSERVBYNAME_R_6 1
40087_ACEOF
40088
40089elif test $ac_cv_func_which_getservbyname_r = five; then
40090 cat >>confdefs.h <<\_ACEOF
40091#define HAVE_FUNC_GETSERVBYNAME_R_5 1
40092_ACEOF
40093
40094elif test $ac_cv_func_which_getservbyname_r = four; then
40095 cat >>confdefs.h <<\_ACEOF
40096#define HAVE_FUNC_GETSERVBYNAME_R_4 1
40097_ACEOF
40098
004ee6da
RL
40099fi
40100
40101
40102 if test "x$ac_cv_func_which_getservbyname_r" = "xno" -o \
40103 "x$ac_cv_func_which_getservbyname_r" = "xunknown" ; then
40104
40105for ac_func in getservbyname
40106do
40107as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
40108echo "$as_me:$LINENO: checking for $ac_func" >&5
40109echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
40110if eval "test \"\${$as_ac_var+set}\" = set"; then
40111 echo $ECHO_N "(cached) $ECHO_C" >&6
40112else
40113 cat >conftest.$ac_ext <<_ACEOF
40114/* confdefs.h. */
40115_ACEOF
40116cat confdefs.h >>conftest.$ac_ext
40117cat >>conftest.$ac_ext <<_ACEOF
40118/* end confdefs.h. */
40119/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
40120 For example, HP-UX 11i <limits.h> declares gettimeofday. */
40121#define $ac_func innocuous_$ac_func
40122
40123/* System header to define __stub macros and hopefully few prototypes,
40124 which can conflict with char $ac_func (); below.
40125 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40126 <limits.h> exists even on freestanding compilers. */
40127
40128#ifdef __STDC__
40129# include <limits.h>
40130#else
40131# include <assert.h>
40132#endif
40133
40134#undef $ac_func
40135
40136/* Override any gcc2 internal prototype to avoid an error. */
40137#ifdef __cplusplus
40138extern "C"
40139{
40140#endif
40141/* We use char because int might match the return type of a gcc2
40142 builtin and then its argument prototype would still apply. */
40143char $ac_func ();
40144/* The GNU C library defines this for functions which it implements
40145 to always fail with ENOSYS. Some functions are actually named
40146 something starting with __ and the normal name is an alias. */
40147#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
40148choke me
40149#else
40150char (*f) () = $ac_func;
40151#endif
40152#ifdef __cplusplus
40153}
40154#endif
40155
40156int
40157main ()
40158{
40159return f != $ac_func;
40160 ;
40161 return 0;
40162}
40163_ACEOF
40164rm -f conftest.$ac_objext conftest$ac_exeext
40165if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40166 (eval $ac_link) 2>conftest.er1
40167 ac_status=$?
40168 grep -v '^ *+' conftest.er1 >conftest.err
40169 rm -f conftest.er1
40170 cat conftest.err >&5
40171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40172 (exit $ac_status); } &&
c9a66001 40173 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
004ee6da
RL
40174 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40175 (eval $ac_try) 2>&5
40176 ac_status=$?
40177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40178 (exit $ac_status); }; } &&
40179 { ac_try='test -s conftest$ac_exeext'
40180 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40181 (eval $ac_try) 2>&5
40182 ac_status=$?
40183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40184 (exit $ac_status); }; }; then
40185 eval "$as_ac_var=yes"
40186else
40187 echo "$as_me: failed program was:" >&5
40188sed 's/^/| /' conftest.$ac_ext >&5
40189
40190eval "$as_ac_var=no"
40191fi
40192rm -f conftest.err conftest.$ac_objext \
40193 conftest$ac_exeext conftest.$ac_ext
40194fi
40195echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
40196echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
40197if test `eval echo '${'$as_ac_var'}'` = yes; then
40198 cat >>confdefs.h <<_ACEOF
40199#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
40200_ACEOF
40201 cat >>confdefs.h <<\_ACEOF
40202#define HAVE_GETSERVBYNAME 1
40203_ACEOF
40204
40205fi
40206done
40207
40208 fi
40209
004ee6da
RL
40210if test "$wxUSE_THREADS" = "yes"; then
40211 cat >>confdefs.h <<\_ACEOF
40212#define wxUSE_THREADS 1
40213_ACEOF
40214
40215
40216 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS thread"
40217else
40218 if test "$ac_cv_func_strtok_r" = "yes"; then
40219 echo "$as_me:$LINENO: checking if -D_REENTRANT is needed" >&5
40220echo $ECHO_N "checking if -D_REENTRANT is needed... $ECHO_C" >&6
40221 if test "$NEEDS_D_REENTRANT_FOR_R_FUNCS" = 1; then
40222 WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS -D_REENTRANT"
40223 echo "$as_me:$LINENO: result: yes" >&5
40224echo "${ECHO_T}yes" >&6
40225 else
40226 echo "$as_me:$LINENO: result: no" >&5
40227echo "${ECHO_T}no" >&6
40228 fi
40229 fi
40230fi
40231
40232if test "$WXGTK20" = 1 ; then
40233 cat >>confdefs.h <<_ACEOF
40234#define __WXGTK20__ $WXGTK20
40235_ACEOF
40236
40237 WXGTK12=1
40238fi
40239
40240if test "$WXGTK12" = 1 ; then
40241 cat >>confdefs.h <<_ACEOF
40242#define __WXGTK12__ $WXGTK12
40243_ACEOF
40244
40245fi
40246
40247if test "$WXGTK127" = 1 ; then
40248 cat >>confdefs.h <<_ACEOF
40249#define __WXGTK127__ $WXGTK127
40250_ACEOF
40251
40252fi
40253
40254if test "$WXGPE" = 1 ; then
40255 cat >>confdefs.h <<_ACEOF
40256#define __WXGPE__ $WXGPE
40257_ACEOF
40258
40259fi
40260
40261DEBUG_CFLAGS=
40262if test "$wxUSE_DEBUG_INFO" = "yes" ; then
40263 DEBUG_CFLAGS="-g"
40264 wxUSE_OPTIMISE=no
40265fi
40266
40267if test "$wxUSE_DEBUG_GDB" = "yes" ; then
40268 wxUSE_DEBUG_INFO=yes
40269 if test "$GCC" = yes; then
40270 DEBUG_CFLAGS="-ggdb"
40271 fi
40272fi
40273
40274if test "$wxUSE_DEBUG_FLAG" = "yes" ; then
40275 cat >>confdefs.h <<\_ACEOF
40276#define WXDEBUG 1
40277_ACEOF
40278
40279 WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS -D__WXDEBUG__"
40280else
40281 if test "$wxUSE_GTK" = 1 ; then
99879bbf
MR
40282 if test "x$wxGTK_VERSION" = "x1" ; then
40283 CPPFLAGS="-DGTK_NO_CHECK_CASTS $CPPFLAGS"
40284 fi
004ee6da
RL
40285 fi
40286fi
40287
40288if test "$wxUSE_MEM_TRACING" = "yes" ; then
40289 cat >>confdefs.h <<\_ACEOF
40290#define wxUSE_MEMORY_TRACING 1
40291_ACEOF
40292
40293 cat >>confdefs.h <<\_ACEOF
40294#define wxUSE_GLOBAL_MEMORY_OPERATORS 1
40295_ACEOF
40296
40297 cat >>confdefs.h <<\_ACEOF
40298#define wxUSE_DEBUG_NEW_ALWAYS 1
40299_ACEOF
40300
40301 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS memcheck"
40302fi
40303
40304if test "$wxUSE_DMALLOC" = "yes" ; then
40305 DMALLOC_LIBS="-ldmallocthcxx"
40306fi
40307
40308PROFILE_FLAGS=
40309if test "$wxUSE_PROFILE" = "yes" ; then
40310 PROFILE_FLAGS=" -pg"
40311fi
40312
40313if test "$GCC" = "yes" ; then
40314 if test "$wxUSE_NO_RTTI" = "yes" ; then
40315 WXCONFIG_CXXFLAGS="$WXCONFIG_CXXFLAGS -fno-rtti"
40316 fi
40317 if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then
40318 WXCONFIG_CXXFLAGS="$WXCONFIG_CXXFLAGS -fno-exceptions"
40319 fi
40320 if test "$wxUSE_PERMISSIVE" = "yes" ; then
40321 WXCONFIG_CFLAGS="$WXCONFIG_CFLAGS -fpermissive"
40322 fi
40323
40324 case "${host}" in
40325 powerpc*-*-aix* )
40326 WXCONFIG_CFLAGS="$WXCONFIG_CFLAGS -mminimal-toc"
40327 ;;
40328 *-hppa* )
40329 WXCONFIG_CFLAGS="$WXCONFIG_CFLAGS -ffunction-sections"
40330 ;;
40331 esac
40332fi
40333
40334OPTIMISE_CFLAGS=
40335if test "$wxUSE_OPTIMISE" = "no" ; then
40336 if test "$GCC" = yes ; then
40337 OPTIMISE_CFLAGS="-O0"
40338 fi
40339else
40340 if test "$GCC" = yes ; then
e5efa97e
VZ
40341 case "${host}" in
40342 *-pc-os2_emx | *-pc-os2-emx )
40343 OPTIMISE_CFLAGS="-O2"
40344 ;;
40345 *)
40346 OPTIMISE_CFLAGS="-O2 -fno-strict-aliasing"
40347 ;;
40348 esac
004ee6da
RL
40349 else
40350 OPTIMISE_CFLAGS="-O"
40351 fi
40352fi
40353
40354
40355if test "x$WXWIN_COMPATIBILITY_2_4" = "xyes"; then
40356 cat >>confdefs.h <<\_ACEOF
40357#define WXWIN_COMPATIBILITY_2_4 1
40358_ACEOF
40359
40360
40361 WXWIN_COMPATIBILITY_2_6="yes"
40362fi
40363
40364if test "x$WXWIN_COMPATIBILITY_2_6" != "xno"; then
40365 cat >>confdefs.h <<\_ACEOF
40366#define WXWIN_COMPATIBILITY_2_6 1
40367_ACEOF
40368
40369fi
40370
40371
40372if test "$wxUSE_GUI" = "yes"; then
40373 cat >>confdefs.h <<\_ACEOF
40374#define wxUSE_GUI 1
40375_ACEOF
40376
40377
40378 fi
40379
40380
40381if test "$wxUSE_UNIX" = "yes"; then
40382 cat >>confdefs.h <<\_ACEOF
40383#define wxUSE_UNIX 1
40384_ACEOF
40385
40386fi
40387
40388
40389if test "$TOOLKIT" != "MSW" -a "$USE_OS2" != 1; then
40390
40391 HAVE_DL_FUNCS=0
40392 HAVE_SHL_FUNCS=0
40393 if test "$wxUSE_DYNAMIC_LOADER" = "yes" -o "$wxUSE_DYNLIB_CLASS" = "yes" ; then
40394 if test "$USE_DARWIN" = 1; then
40395 HAVE_DL_FUNCS=1
40396 elif test "$USE_DOS" = 1; then
40397 HAVE_DL_FUNCS=0
40398 else
40399
40400for ac_func in dlopen
40401do
40402as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
40403echo "$as_me:$LINENO: checking for $ac_func" >&5
40404echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
40405if eval "test \"\${$as_ac_var+set}\" = set"; then
40406 echo $ECHO_N "(cached) $ECHO_C" >&6
40407else
40408 cat >conftest.$ac_ext <<_ACEOF
40409/* confdefs.h. */
40410_ACEOF
40411cat confdefs.h >>conftest.$ac_ext
40412cat >>conftest.$ac_ext <<_ACEOF
40413/* end confdefs.h. */
40414/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
40415 For example, HP-UX 11i <limits.h> declares gettimeofday. */
40416#define $ac_func innocuous_$ac_func
40417
40418/* System header to define __stub macros and hopefully few prototypes,
40419 which can conflict with char $ac_func (); below.
40420 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40421 <limits.h> exists even on freestanding compilers. */
40422
40423#ifdef __STDC__
40424# include <limits.h>
40425#else
40426# include <assert.h>
40427#endif
40428
40429#undef $ac_func
40430
40431/* Override any gcc2 internal prototype to avoid an error. */
40432#ifdef __cplusplus
40433extern "C"
40434{
40435#endif
40436/* We use char because int might match the return type of a gcc2
40437 builtin and then its argument prototype would still apply. */
40438char $ac_func ();
40439/* The GNU C library defines this for functions which it implements
40440 to always fail with ENOSYS. Some functions are actually named
40441 something starting with __ and the normal name is an alias. */
40442#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
40443choke me
40444#else
40445char (*f) () = $ac_func;
40446#endif
40447#ifdef __cplusplus
40448}
40449#endif
40450
40451int
40452main ()
40453{
40454return f != $ac_func;
a848cd7e
SC
40455 ;
40456 return 0;
40457}
40458_ACEOF
40459rm -f conftest.$ac_objext conftest$ac_exeext
40460if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 40461 (eval $ac_link) 2>conftest.er1
a848cd7e 40462 ac_status=$?
ac1cb8d3
VS
40463 grep -v '^ *+' conftest.er1 >conftest.err
40464 rm -f conftest.er1
40465 cat conftest.err >&5
a848cd7e
SC
40466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40467 (exit $ac_status); } &&
c9a66001 40468 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
40469 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40470 (eval $ac_try) 2>&5
40471 ac_status=$?
40472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40473 (exit $ac_status); }; } &&
40474 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
40475 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40476 (eval $ac_try) 2>&5
40477 ac_status=$?
40478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40479 (exit $ac_status); }; }; then
40480 eval "$as_ac_var=yes"
40481else
40482 echo "$as_me: failed program was:" >&5
40483sed 's/^/| /' conftest.$ac_ext >&5
40484
40485eval "$as_ac_var=no"
40486fi
ac1cb8d3
VS
40487rm -f conftest.err conftest.$ac_objext \
40488 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
40489fi
40490echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
40491echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
40492if test `eval echo '${'$as_ac_var'}'` = yes; then
40493 cat >>confdefs.h <<_ACEOF
40494#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
40495_ACEOF
40496
40497 cat >>confdefs.h <<\_ACEOF
40498#define HAVE_DLOPEN 1
40499_ACEOF
40500
40501 HAVE_DL_FUNCS=1
40502
40503else
40504
40505 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
40506echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
40507if test "${ac_cv_lib_dl_dlopen+set}" = set; then
40508 echo $ECHO_N "(cached) $ECHO_C" >&6
40509else
40510 ac_check_lib_save_LIBS=$LIBS
40511LIBS="-ldl $LIBS"
40512cat >conftest.$ac_ext <<_ACEOF
40513/* confdefs.h. */
40514_ACEOF
40515cat confdefs.h >>conftest.$ac_ext
40516cat >>conftest.$ac_ext <<_ACEOF
40517/* end confdefs.h. */
40518
40519/* Override any gcc2 internal prototype to avoid an error. */
40520#ifdef __cplusplus
40521extern "C"
40522#endif
40523/* We use char because int might match the return type of a gcc2
40524 builtin and then its argument prototype would still apply. */
40525char dlopen ();
40526int
40527main ()
40528{
40529dlopen ();
40530 ;
40531 return 0;
40532}
40533_ACEOF
40534rm -f conftest.$ac_objext conftest$ac_exeext
40535if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 40536 (eval $ac_link) 2>conftest.er1
a848cd7e 40537 ac_status=$?
ac1cb8d3
VS
40538 grep -v '^ *+' conftest.er1 >conftest.err
40539 rm -f conftest.er1
40540 cat conftest.err >&5
a848cd7e
SC
40541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40542 (exit $ac_status); } &&
c9a66001 40543 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
40544 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40545 (eval $ac_try) 2>&5
40546 ac_status=$?
40547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40548 (exit $ac_status); }; } &&
40549 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
40550 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40551 (eval $ac_try) 2>&5
40552 ac_status=$?
40553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40554 (exit $ac_status); }; }; then
40555 ac_cv_lib_dl_dlopen=yes
40556else
40557 echo "$as_me: failed program was:" >&5
40558sed 's/^/| /' conftest.$ac_ext >&5
40559
40560ac_cv_lib_dl_dlopen=no
40561fi
ac1cb8d3
VS
40562rm -f conftest.err conftest.$ac_objext \
40563 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
40564LIBS=$ac_check_lib_save_LIBS
40565fi
40566echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
40567echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
40568if test $ac_cv_lib_dl_dlopen = yes; then
40569
40570 cat >>confdefs.h <<\_ACEOF
40571#define HAVE_DLOPEN 1
40572_ACEOF
40573
40574 HAVE_DL_FUNCS=1
40575 DL_LINK=" -ldl$DL_LINK"
40576
40577else
40578
40579
40580for ac_func in shl_load
40581do
40582as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
40583echo "$as_me:$LINENO: checking for $ac_func" >&5
40584echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
40585if eval "test \"\${$as_ac_var+set}\" = set"; then
40586 echo $ECHO_N "(cached) $ECHO_C" >&6
40587else
40588 cat >conftest.$ac_ext <<_ACEOF
40589/* confdefs.h. */
40590_ACEOF
40591cat confdefs.h >>conftest.$ac_ext
40592cat >>conftest.$ac_ext <<_ACEOF
40593/* end confdefs.h. */
ac1cb8d3
VS
40594/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
40595 For example, HP-UX 11i <limits.h> declares gettimeofday. */
40596#define $ac_func innocuous_$ac_func
40597
a848cd7e
SC
40598/* System header to define __stub macros and hopefully few prototypes,
40599 which can conflict with char $ac_func (); below.
40600 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40601 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 40602
a848cd7e
SC
40603#ifdef __STDC__
40604# include <limits.h>
40605#else
40606# include <assert.h>
40607#endif
ac1cb8d3
VS
40608
40609#undef $ac_func
40610
a848cd7e
SC
40611/* Override any gcc2 internal prototype to avoid an error. */
40612#ifdef __cplusplus
40613extern "C"
40614{
40615#endif
40616/* We use char because int might match the return type of a gcc2
40617 builtin and then its argument prototype would still apply. */
40618char $ac_func ();
40619/* The GNU C library defines this for functions which it implements
40620 to always fail with ENOSYS. Some functions are actually named
40621 something starting with __ and the normal name is an alias. */
40622#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
40623choke me
40624#else
40625char (*f) () = $ac_func;
40626#endif
40627#ifdef __cplusplus
40628}
40629#endif
40630
40631int
40632main ()
40633{
40634return f != $ac_func;
40635 ;
40636 return 0;
40637}
40638_ACEOF
40639rm -f conftest.$ac_objext conftest$ac_exeext
40640if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 40641 (eval $ac_link) 2>conftest.er1
a848cd7e 40642 ac_status=$?
ac1cb8d3
VS
40643 grep -v '^ *+' conftest.er1 >conftest.err
40644 rm -f conftest.er1
40645 cat conftest.err >&5
a848cd7e
SC
40646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40647 (exit $ac_status); } &&
c9a66001 40648 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
40649 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40650 (eval $ac_try) 2>&5
40651 ac_status=$?
40652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40653 (exit $ac_status); }; } &&
40654 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
40655 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40656 (eval $ac_try) 2>&5
40657 ac_status=$?
40658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40659 (exit $ac_status); }; }; then
40660 eval "$as_ac_var=yes"
40661else
40662 echo "$as_me: failed program was:" >&5
40663sed 's/^/| /' conftest.$ac_ext >&5
40664
40665eval "$as_ac_var=no"
40666fi
ac1cb8d3
VS
40667rm -f conftest.err conftest.$ac_objext \
40668 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
40669fi
40670echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
40671echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
40672if test `eval echo '${'$as_ac_var'}'` = yes; then
40673 cat >>confdefs.h <<_ACEOF
40674#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
40675_ACEOF
40676
40677 cat >>confdefs.h <<\_ACEOF
40678#define HAVE_SHL_LOAD 1
40679_ACEOF
40680
40681 HAVE_SHL_FUNCS=1
40682
40683else
40684
40685 echo "$as_me:$LINENO: checking for dld in -lshl_load" >&5
40686echo $ECHO_N "checking for dld in -lshl_load... $ECHO_C" >&6
40687if test "${ac_cv_lib_shl_load_dld+set}" = set; then
40688 echo $ECHO_N "(cached) $ECHO_C" >&6
40689else
40690 ac_check_lib_save_LIBS=$LIBS
40691LIBS="-lshl_load $LIBS"
40692cat >conftest.$ac_ext <<_ACEOF
40693/* confdefs.h. */
40694_ACEOF
40695cat confdefs.h >>conftest.$ac_ext
40696cat >>conftest.$ac_ext <<_ACEOF
40697/* end confdefs.h. */
40698
40699/* Override any gcc2 internal prototype to avoid an error. */
40700#ifdef __cplusplus
40701extern "C"
40702#endif
40703/* We use char because int might match the return type of a gcc2
40704 builtin and then its argument prototype would still apply. */
40705char dld ();
40706int
40707main ()
40708{
40709dld ();
40710 ;
40711 return 0;
40712}
40713_ACEOF
40714rm -f conftest.$ac_objext conftest$ac_exeext
40715if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 40716 (eval $ac_link) 2>conftest.er1
a848cd7e 40717 ac_status=$?
ac1cb8d3
VS
40718 grep -v '^ *+' conftest.er1 >conftest.err
40719 rm -f conftest.er1
40720 cat conftest.err >&5
a848cd7e
SC
40721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40722 (exit $ac_status); } &&
c9a66001 40723 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
40724 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40725 (eval $ac_try) 2>&5
40726 ac_status=$?
40727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40728 (exit $ac_status); }; } &&
40729 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
40730 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40731 (eval $ac_try) 2>&5
40732 ac_status=$?
40733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40734 (exit $ac_status); }; }; then
40735 ac_cv_lib_shl_load_dld=yes
40736else
40737 echo "$as_me: failed program was:" >&5
40738sed 's/^/| /' conftest.$ac_ext >&5
40739
40740ac_cv_lib_shl_load_dld=no
40741fi
ac1cb8d3
VS
40742rm -f conftest.err conftest.$ac_objext \
40743 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
40744LIBS=$ac_check_lib_save_LIBS
40745fi
40746echo "$as_me:$LINENO: result: $ac_cv_lib_shl_load_dld" >&5
40747echo "${ECHO_T}$ac_cv_lib_shl_load_dld" >&6
40748if test $ac_cv_lib_shl_load_dld = yes; then
40749
40750 HAVE_SHL_FUNCS=1
40751 DL_LINK=" -ldld$DL_LINK"
40752
40753fi
40754
40755
40756fi
40757done
40758
40759
40760fi
40761
40762
40763fi
40764done
40765
40766
40767 if test "$HAVE_DL_FUNCS" = 1; then
40768
40769for ac_func in dlerror
40770do
40771as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
40772echo "$as_me:$LINENO: checking for $ac_func" >&5
40773echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
40774if eval "test \"\${$as_ac_var+set}\" = set"; then
40775 echo $ECHO_N "(cached) $ECHO_C" >&6
40776else
40777 cat >conftest.$ac_ext <<_ACEOF
40778/* confdefs.h. */
40779_ACEOF
40780cat confdefs.h >>conftest.$ac_ext
40781cat >>conftest.$ac_ext <<_ACEOF
40782/* end confdefs.h. */
ac1cb8d3
VS
40783/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
40784 For example, HP-UX 11i <limits.h> declares gettimeofday. */
40785#define $ac_func innocuous_$ac_func
40786
a848cd7e
SC
40787/* System header to define __stub macros and hopefully few prototypes,
40788 which can conflict with char $ac_func (); below.
40789 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40790 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 40791
a848cd7e
SC
40792#ifdef __STDC__
40793# include <limits.h>
40794#else
40795# include <assert.h>
40796#endif
ac1cb8d3
VS
40797
40798#undef $ac_func
40799
a848cd7e
SC
40800/* Override any gcc2 internal prototype to avoid an error. */
40801#ifdef __cplusplus
40802extern "C"
40803{
40804#endif
40805/* We use char because int might match the return type of a gcc2
40806 builtin and then its argument prototype would still apply. */
40807char $ac_func ();
40808/* The GNU C library defines this for functions which it implements
40809 to always fail with ENOSYS. Some functions are actually named
40810 something starting with __ and the normal name is an alias. */
40811#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
40812choke me
40813#else
40814char (*f) () = $ac_func;
40815#endif
40816#ifdef __cplusplus
40817}
40818#endif
40819
40820int
40821main ()
40822{
40823return f != $ac_func;
40824 ;
40825 return 0;
40826}
40827_ACEOF
40828rm -f conftest.$ac_objext conftest$ac_exeext
40829if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 40830 (eval $ac_link) 2>conftest.er1
a848cd7e 40831 ac_status=$?
ac1cb8d3
VS
40832 grep -v '^ *+' conftest.er1 >conftest.err
40833 rm -f conftest.er1
40834 cat conftest.err >&5
a848cd7e
SC
40835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40836 (exit $ac_status); } &&
c9a66001 40837 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
40838 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40839 (eval $ac_try) 2>&5
40840 ac_status=$?
40841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40842 (exit $ac_status); }; } &&
40843 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
40844 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40845 (eval $ac_try) 2>&5
40846 ac_status=$?
40847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40848 (exit $ac_status); }; }; then
40849 eval "$as_ac_var=yes"
40850else
40851 echo "$as_me: failed program was:" >&5
40852sed 's/^/| /' conftest.$ac_ext >&5
40853
40854eval "$as_ac_var=no"
40855fi
ac1cb8d3
VS
40856rm -f conftest.err conftest.$ac_objext \
40857 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
40858fi
40859echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
40860echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
40861if test `eval echo '${'$as_ac_var'}'` = yes; then
40862 cat >>confdefs.h <<_ACEOF
40863#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
40864_ACEOF
40865 cat >>confdefs.h <<\_ACEOF
40866#define HAVE_DLERROR 1
40867_ACEOF
40868
40869else
40870
40871 echo "$as_me:$LINENO: checking for dlerror in -ldl" >&5
40872echo $ECHO_N "checking for dlerror in -ldl... $ECHO_C" >&6
40873if test "${ac_cv_lib_dl_dlerror+set}" = set; then
40874 echo $ECHO_N "(cached) $ECHO_C" >&6
40875else
40876 ac_check_lib_save_LIBS=$LIBS
40877LIBS="-ldl $LIBS"
40878cat >conftest.$ac_ext <<_ACEOF
40879/* confdefs.h. */
40880_ACEOF
40881cat confdefs.h >>conftest.$ac_ext
40882cat >>conftest.$ac_ext <<_ACEOF
40883/* end confdefs.h. */
40884
40885/* Override any gcc2 internal prototype to avoid an error. */
40886#ifdef __cplusplus
40887extern "C"
40888#endif
40889/* We use char because int might match the return type of a gcc2
40890 builtin and then its argument prototype would still apply. */
40891char dlerror ();
40892int
40893main ()
40894{
40895dlerror ();
40896 ;
40897 return 0;
40898}
40899_ACEOF
40900rm -f conftest.$ac_objext conftest$ac_exeext
40901if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 40902 (eval $ac_link) 2>conftest.er1
a848cd7e 40903 ac_status=$?
ac1cb8d3
VS
40904 grep -v '^ *+' conftest.er1 >conftest.err
40905 rm -f conftest.er1
40906 cat conftest.err >&5
a848cd7e
SC
40907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40908 (exit $ac_status); } &&
c9a66001 40909 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
40910 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40911 (eval $ac_try) 2>&5
40912 ac_status=$?
40913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40914 (exit $ac_status); }; } &&
40915 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
40916 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40917 (eval $ac_try) 2>&5
40918 ac_status=$?
40919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40920 (exit $ac_status); }; }; then
40921 ac_cv_lib_dl_dlerror=yes
40922else
40923 echo "$as_me: failed program was:" >&5
40924sed 's/^/| /' conftest.$ac_ext >&5
40925
40926ac_cv_lib_dl_dlerror=no
40927fi
ac1cb8d3
VS
40928rm -f conftest.err conftest.$ac_objext \
40929 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
40930LIBS=$ac_check_lib_save_LIBS
40931fi
40932echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlerror" >&5
40933echo "${ECHO_T}$ac_cv_lib_dl_dlerror" >&6
40934if test $ac_cv_lib_dl_dlerror = yes; then
40935 cat >>confdefs.h <<\_ACEOF
40936#define HAVE_DLERROR 1
40937_ACEOF
40938
40939fi
40940
40941
40942
40943fi
40944done
40945
40946 fi
40947 fi
40948
40949 if test "$HAVE_DL_FUNCS" = 0; then
40950 if test "$HAVE_SHL_FUNCS" = 0; then
47a7e797 40951 if test "$USE_UNIX" = 1 -o "$USE_DOS" = 1; then
a848cd7e
SC
40952 { echo "$as_me:$LINENO: WARNING: Missing dynamic loading support, several features will be disabled" >&5
40953echo "$as_me: WARNING: Missing dynamic loading support, several features will be disabled" >&2;}
40954 wxUSE_DYNAMIC_LOADER=no
40955 wxUSE_DYNLIB_CLASS=no
40956 else
40957 { echo "$as_me:$LINENO: WARNING: Assuming wxLibrary class works on this platform" >&5
40958echo "$as_me: WARNING: Assuming wxLibrary class works on this platform" >&2;}
40959 fi
40960 fi
40961 fi
40962 fi
40963fi
40964
40965if test "$wxUSE_DYNAMIC_LOADER" = "yes" ; then
40966 cat >>confdefs.h <<\_ACEOF
40967#define wxUSE_DYNAMIC_LOADER 1
40968_ACEOF
40969
40970fi
40971if test "$wxUSE_DYNLIB_CLASS" = "yes" ; then
40972 cat >>confdefs.h <<\_ACEOF
40973#define wxUSE_DYNLIB_CLASS 1
40974_ACEOF
40975
40976fi
40977
40978
40979
40980if test "$wxUSE_PLUGINS" = "yes" ; then
40981 if test "$wxUSE_SHARED" = "no" ; then
40982 { echo "$as_me:$LINENO: WARNING: plugins supported only in shared build, disabling" >&5
40983echo "$as_me: WARNING: plugins supported only in shared build, disabling" >&2;}
40984 wxUSE_PLUGINS=no
40985 fi
40986 if test "$wxUSE_MONOLITHIC" = "yes" ; then
40987 { echo "$as_me:$LINENO: WARNING: plugins not supported monolithic build, disabling" >&5
40988echo "$as_me: WARNING: plugins not supported monolithic build, disabling" >&2;}
40989 wxUSE_PLUGINS=no
40990 fi
40991 if test "$wxUSE_DYNLIB_CLASS" = "no" ; then
40992 { echo "$as_me:$LINENO: WARNING: plugins require wxDynamicLibrary, disabling" >&5
40993echo "$as_me: WARNING: plugins require wxDynamicLibrary, disabling" >&2;}
40994 wxUSE_PLUGINS=no
40995 fi
40996 if test "$wxUSE_PLUGINS" = "yes" ; then
40997 cat >>confdefs.h <<\_ACEOF
40998#define wxUSE_PLUGINS 1
40999_ACEOF
41000
41001 fi
41002fi
41003
41004
41005if test "$wxUSE_STL" = "yes"; then
41006 cat >>confdefs.h <<\_ACEOF
41007#define wxUSE_STL 1
41008_ACEOF
41009
41010fi
41011
41012if test "$wxUSE_APPLE_IEEE" = "yes"; then
41013 cat >>confdefs.h <<\_ACEOF
41014#define wxUSE_APPLE_IEEE 1
41015_ACEOF
41016
41017fi
41018
41019if test "$wxUSE_TIMER" = "yes"; then
41020 cat >>confdefs.h <<\_ACEOF
41021#define wxUSE_TIMER 1
41022_ACEOF
41023
41024fi
41025
9c112555 41026if test "$USE_UNIX" = "1" ; then
31714590
VZ
41027 echo "$as_me:$LINENO: checking for SNDCTL_DSP_SPEED in sys/soundcard.h" >&5
41028echo $ECHO_N "checking for SNDCTL_DSP_SPEED in sys/soundcard.h... $ECHO_C" >&6
d12aef51 41029if test "${ac_cv_header_sys_soundcard+set}" = set; then
a848cd7e 41030 echo $ECHO_N "(cached) $ECHO_C" >&6
a848cd7e 41031else
d12aef51
VZ
41032
41033 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
41034/* confdefs.h. */
41035_ACEOF
41036cat confdefs.h >>conftest.$ac_ext
41037cat >>conftest.$ac_ext <<_ACEOF
41038/* end confdefs.h. */
d12aef51 41039
31714590 41040 #include <sys/ioctl.h>
d12aef51
VZ
41041 #include <sys/soundcard.h>
41042
41043int
41044main ()
41045{
41046
31714590 41047 ioctl(0, SNDCTL_DSP_SPEED, 0);
d12aef51
VZ
41048
41049 ;
41050 return 0;
41051}
a848cd7e 41052_ACEOF
d12aef51
VZ
41053rm -f conftest.$ac_objext conftest$ac_exeext
41054if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41055 (eval $ac_link) 2>conftest.er1
a848cd7e 41056 ac_status=$?
ac1cb8d3
VS
41057 grep -v '^ *+' conftest.er1 >conftest.err
41058 rm -f conftest.er1
41059 cat conftest.err >&5
a848cd7e
SC
41060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41061 (exit $ac_status); } &&
c9a66001 41062 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
41063 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41064 (eval $ac_try) 2>&5
41065 ac_status=$?
41066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41067 (exit $ac_status); }; } &&
d12aef51 41068 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
41069 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41070 (eval $ac_try) 2>&5
41071 ac_status=$?
41072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41073 (exit $ac_status); }; }; then
d12aef51 41074 ac_cv_header_sys_soundcard=yes
a848cd7e
SC
41075else
41076 echo "$as_me: failed program was:" >&5
41077sed 's/^/| /' conftest.$ac_ext >&5
41078
a848cd7e 41079
d12aef51
VZ
41080 saveLibs="$LIBS"
41081 LIBS="$saveLibs -lossaudio"
41082 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
41083/* confdefs.h. */
41084_ACEOF
41085cat confdefs.h >>conftest.$ac_ext
41086cat >>conftest.$ac_ext <<_ACEOF
41087/* end confdefs.h. */
d12aef51 41088
31714590 41089 #include <sys/ioctl.h>
d12aef51
VZ
41090 #include <sys/soundcard.h>
41091
41092int
41093main ()
41094{
41095
31714590 41096 ioctl(0, SNDCTL_DSP_SPEED, 0);
d12aef51
VZ
41097
41098 ;
41099 return 0;
41100}
a848cd7e 41101_ACEOF
d12aef51
VZ
41102rm -f conftest.$ac_objext conftest$ac_exeext
41103if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41104 (eval $ac_link) 2>conftest.er1
a848cd7e
SC
41105 ac_status=$?
41106 grep -v '^ *+' conftest.er1 >conftest.err
41107 rm -f conftest.er1
41108 cat conftest.err >&5
41109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
d12aef51 41110 (exit $ac_status); } &&
c9a66001 41111 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
d12aef51
VZ
41112 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41113 (eval $ac_try) 2>&5
41114 ac_status=$?
41115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41116 (exit $ac_status); }; } &&
41117 { ac_try='test -s conftest$ac_exeext'
41118 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41119 (eval $ac_try) 2>&5
41120 ac_status=$?
41121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41122 (exit $ac_status); }; }; then
41123 ac_cv_header_sys_soundcard=yes
a848cd7e
SC
41124else
41125 echo "$as_me: failed program was:" >&5
41126sed 's/^/| /' conftest.$ac_ext >&5
41127
a848cd7e 41128
d12aef51
VZ
41129 LIBS="$saveLibs"
41130 ac_cv_header_sys_soundcard=no
41131
41132
a848cd7e 41133fi
d12aef51
VZ
41134rm -f conftest.err conftest.$ac_objext \
41135 conftest$ac_exeext conftest.$ac_ext
41136
a848cd7e
SC
41137
41138fi
d12aef51
VZ
41139rm -f conftest.err conftest.$ac_objext \
41140 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
41141
41142fi
d12aef51
VZ
41143echo "$as_me:$LINENO: result: $ac_cv_header_sys_soundcard" >&5
41144echo "${ECHO_T}$ac_cv_header_sys_soundcard" >&6
a848cd7e 41145
d12aef51
VZ
41146 if test "$ac_cv_header_sys_soundcard" = "yes"; then
41147 cat >>confdefs.h <<\_ACEOF
41148#define HAVE_SYS_SOUNDCARD_H 1
41149_ACEOF
a848cd7e 41150
d12aef51
VZ
41151 else
41152 DISABLED_CONTRIB="$DISABLED_CONTRIB mmedia"
41153 fi
9c112555
MW
41154fi
41155WITH_PLUGIN_SDL=0
41156if test "$wxUSE_SOUND" = "yes"; then
41157 if test "$USE_UNIX" = "1" ; then
a848cd7e
SC
41158 if test "$wxUSE_LIBSDL" != "no"; then
41159
41160# Check whether --with-sdl-prefix or --without-sdl-prefix was given.
41161if test "${with_sdl_prefix+set}" = set; then
41162 withval="$with_sdl_prefix"
41163 sdl_prefix="$withval"
41164else
41165 sdl_prefix=""
41166fi;
41167
41168# Check whether --with-sdl-exec-prefix or --without-sdl-exec-prefix was given.
41169if test "${with_sdl_exec_prefix+set}" = set; then
41170 withval="$with_sdl_exec_prefix"
41171 sdl_exec_prefix="$withval"
41172else
41173 sdl_exec_prefix=""
41174fi;
41175# Check whether --enable-sdltest or --disable-sdltest was given.
41176if test "${enable_sdltest+set}" = set; then
41177 enableval="$enable_sdltest"
41178
41179else
41180 enable_sdltest=yes
41181fi;
41182
41183 if test x$sdl_exec_prefix != x ; then
41184 sdl_args="$sdl_args --exec-prefix=$sdl_exec_prefix"
41185 if test x${SDL_CONFIG+set} != xset ; then
41186 SDL_CONFIG=$sdl_exec_prefix/bin/sdl-config
41187 fi
41188 fi
41189 if test x$sdl_prefix != x ; then
41190 sdl_args="$sdl_args --prefix=$sdl_prefix"
41191 if test x${SDL_CONFIG+set} != xset ; then
41192 SDL_CONFIG=$sdl_prefix/bin/sdl-config
41193 fi
41194 fi
41195
41196
41197 PATH="$prefix/bin:$prefix/usr/bin:$PATH"
41198 # Extract the first word of "sdl-config", so it can be a program name with args.
41199set dummy sdl-config; ac_word=$2
41200echo "$as_me:$LINENO: checking for $ac_word" >&5
41201echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
41202if test "${ac_cv_path_SDL_CONFIG+set}" = set; then
41203 echo $ECHO_N "(cached) $ECHO_C" >&6
41204else
41205 case $SDL_CONFIG in
41206 [\\/]* | ?:[\\/]*)
41207 ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a path.
41208 ;;
41209 *)
41210 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
41211for as_dir in $PATH
41212do
41213 IFS=$as_save_IFS
41214 test -z "$as_dir" && as_dir=.
41215 for ac_exec_ext in '' $ac_executable_extensions; do
41216 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
41217 ac_cv_path_SDL_CONFIG="$as_dir/$ac_word$ac_exec_ext"
41218 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
41219 break 2
41220 fi
41221done
41222done
41223
41224 test -z "$ac_cv_path_SDL_CONFIG" && ac_cv_path_SDL_CONFIG="no"
41225 ;;
41226esac
41227fi
41228SDL_CONFIG=$ac_cv_path_SDL_CONFIG
41229
41230if test -n "$SDL_CONFIG"; then
41231 echo "$as_me:$LINENO: result: $SDL_CONFIG" >&5
41232echo "${ECHO_T}$SDL_CONFIG" >&6
41233else
41234 echo "$as_me:$LINENO: result: no" >&5
41235echo "${ECHO_T}no" >&6
41236fi
41237
41238 min_sdl_version=1.2.0
41239 echo "$as_me:$LINENO: checking for SDL - version >= $min_sdl_version" >&5
41240echo $ECHO_N "checking for SDL - version >= $min_sdl_version... $ECHO_C" >&6
41241 no_sdl=""
41242 if test "$SDL_CONFIG" = "no" ; then
41243 no_sdl=yes
41244 else
41245 SDL_CFLAGS=`$SDL_CONFIG $sdlconf_args --cflags`
41246 SDL_LIBS=`$SDL_CONFIG $sdlconf_args --libs`
41247
41248 sdl_major_version=`$SDL_CONFIG $sdl_args --version | \
41249 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
41250 sdl_minor_version=`$SDL_CONFIG $sdl_args --version | \
41251 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
41252 sdl_micro_version=`$SDL_CONFIG $sdl_config_args --version | \
41253 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
41254 if test "x$enable_sdltest" = "xyes" ; then
41255 ac_save_CFLAGS="$CFLAGS"
94acd38e 41256 ac_save_CXXFLAGS="$CXXFLAGS"
a848cd7e
SC
41257 ac_save_LIBS="$LIBS"
41258 CFLAGS="$CFLAGS $SDL_CFLAGS"
94acd38e 41259 CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
a848cd7e
SC
41260 LIBS="$LIBS $SDL_LIBS"
41261 rm -f conf.sdltest
41262 if test "$cross_compiling" = yes; then
41263 echo $ac_n "cross compiling; assumed OK... $ac_c"
41264else
41265 cat >conftest.$ac_ext <<_ACEOF
41266/* confdefs.h. */
41267_ACEOF
41268cat confdefs.h >>conftest.$ac_ext
41269cat >>conftest.$ac_ext <<_ACEOF
41270/* end confdefs.h. */
41271
41272#include <stdio.h>
41273#include <stdlib.h>
41274#include <string.h>
41275#include "SDL.h"
41276
41277char*
41278my_strdup (char *str)
41279{
41280 char *new_str;
41281
41282 if (str)
41283 {
41284 new_str = (char *)malloc ((strlen (str) + 1) * sizeof(char));
41285 strcpy (new_str, str);
41286 }
41287 else
41288 new_str = NULL;
41289
41290 return new_str;
41291}
41292
41293int main (int argc, char *argv[])
41294{
41295 int major, minor, micro;
41296 char *tmp_version;
41297
41298 /* This hangs on some systems (?)
41299 system ("touch conf.sdltest");
41300 */
41301 { FILE *fp = fopen("conf.sdltest", "a"); if ( fp ) fclose(fp); }
41302
41303 /* HP/UX 9 (%@#!) writes to sscanf strings */
41304 tmp_version = my_strdup("$min_sdl_version");
41305 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
41306 printf("%s, bad version string\n", "$min_sdl_version");
41307 exit(1);
41308 }
41309
41310 if (($sdl_major_version > major) ||
41311 (($sdl_major_version == major) && ($sdl_minor_version > minor)) ||
41312 (($sdl_major_version == major) && ($sdl_minor_version == minor) && ($sdl_micro_version >= micro)))
41313 {
41314 return 0;
41315 }
41316 else
41317 {
41318 printf("\n*** 'sdl-config --version' returned %d.%d.%d, but the minimum version\n", $sdl_major_version, $sdl_minor_version, $sdl_micro_version);
41319 printf("*** of SDL required is %d.%d.%d. If sdl-config is correct, then it is\n", major, minor, micro);
41320 printf("*** best to upgrade to the required version.\n");
41321 printf("*** If sdl-config was wrong, set the environment variable SDL_CONFIG\n");
41322 printf("*** to point to the correct copy of sdl-config, and remove the file\n");
41323 printf("*** config.cache before re-running configure\n");
41324 return 1;
41325 }
41326}
41327
41328
41329_ACEOF
41330rm -f conftest$ac_exeext
41331if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41332 (eval $ac_link) 2>&5
41333 ac_status=$?
41334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41335 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
41336 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41337 (eval $ac_try) 2>&5
41338 ac_status=$?
41339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41340 (exit $ac_status); }; }; then
41341 :
41342else
41343 echo "$as_me: program exited with status $ac_status" >&5
41344echo "$as_me: failed program was:" >&5
41345sed 's/^/| /' conftest.$ac_ext >&5
41346
41347( exit $ac_status )
41348no_sdl=yes
41349fi
ac1cb8d3 41350rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
41351fi
41352 CFLAGS="$ac_save_CFLAGS"
94acd38e 41353 CXXFLAGS="$ac_save_CXXFLAGS"
a848cd7e
SC
41354 LIBS="$ac_save_LIBS"
41355 fi
41356 fi
41357 if test "x$no_sdl" = x ; then
41358 echo "$as_me:$LINENO: result: yes" >&5
41359echo "${ECHO_T}yes" >&6
41360
41361 EXTRALIBS_SDL="$SDL_LIBS"
c92ad099 41362 CXXFLAGS="$SDL_CFLAGS $CXXFLAGS"
a848cd7e
SC
41363 cat >>confdefs.h <<\_ACEOF
41364#define wxUSE_LIBSDL 1
41365_ACEOF
41366
41367
41368 else
41369 echo "$as_me:$LINENO: result: no" >&5
41370echo "${ECHO_T}no" >&6
41371 if test "$SDL_CONFIG" = "no" ; then
41372 echo "*** The sdl-config script installed by SDL could not be found"
41373 echo "*** If SDL was installed in PREFIX, make sure PREFIX/bin is in"
41374 echo "*** your path, or set the SDL_CONFIG environment variable to the"
41375 echo "*** full path to sdl-config."
41376 else
41377 if test -f conf.sdltest ; then
41378 :
41379 else
41380 echo "*** Could not run SDL test program, checking why..."
41381 CFLAGS="$CFLAGS $SDL_CFLAGS"
94acd38e 41382 CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
a848cd7e
SC
41383 LIBS="$LIBS $SDL_LIBS"
41384 cat >conftest.$ac_ext <<_ACEOF
41385/* confdefs.h. */
41386_ACEOF
41387cat confdefs.h >>conftest.$ac_ext
41388cat >>conftest.$ac_ext <<_ACEOF
41389/* end confdefs.h. */
41390
41391#include <stdio.h>
41392#include "SDL.h"
41393
41394int main(int argc, char *argv[])
41395{ return 0; }
41396#undef main
41397#define main K_and_R_C_main
41398
41399int
41400main ()
41401{
41402 return 0;
41403 ;
41404 return 0;
41405}
41406_ACEOF
41407rm -f conftest.$ac_objext conftest$ac_exeext
41408if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 41409 (eval $ac_link) 2>conftest.er1
a848cd7e 41410 ac_status=$?
ac1cb8d3
VS
41411 grep -v '^ *+' conftest.er1 >conftest.err
41412 rm -f conftest.er1
41413 cat conftest.err >&5
a848cd7e
SC
41414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41415 (exit $ac_status); } &&
c9a66001 41416 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
41417 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41418 (eval $ac_try) 2>&5
41419 ac_status=$?
41420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41421 (exit $ac_status); }; } &&
41422 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
41423 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41424 (eval $ac_try) 2>&5
41425 ac_status=$?
41426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41427 (exit $ac_status); }; }; then
41428 echo "*** The test program compiled, but did not run. This usually means"
41429 echo "*** that the run-time linker is not finding SDL or finding the wrong"
41430 echo "*** version of SDL. If it is not finding SDL, you'll need to set your"
41431 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
41432 echo "*** to the installed location Also, make sure you have run ldconfig if that"
41433 echo "*** is required on your system"
41434 echo "***"
41435 echo "*** If you have an old version installed, it is best to remove it, although"
41436 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
41437else
41438 echo "$as_me: failed program was:" >&5
41439sed 's/^/| /' conftest.$ac_ext >&5
41440
41441 echo "*** The test program failed to compile or link. See the file config.log for the"
41442 echo "*** exact error that occured. This usually means SDL was incorrectly installed"
41443 echo "*** or that you have moved SDL since it was installed. In the latter case, you"
41444 echo "*** may want to edit the sdl-config script: $SDL_CONFIG"
41445fi
ac1cb8d3
VS
41446rm -f conftest.err conftest.$ac_objext \
41447 conftest$ac_exeext conftest.$ac_ext
a848cd7e 41448 CFLAGS="$ac_save_CFLAGS"
94acd38e 41449 CXXFLAGS="$ac_save_CXXFLAGS"
a848cd7e
SC
41450 LIBS="$ac_save_LIBS"
41451 fi
41452 fi
41453 SDL_CFLAGS=""
41454 SDL_LIBS=""
41455 wxUSE_LIBSDL="no"
41456 fi
41457
41458
41459 rm -f conf.sdltest
41460
41461 if test "$wxUSE_LIBSDL" = "yes" -a "$wxUSE_PLUGINS" = "yes" ; then
41462 WITH_PLUGIN_SDL=1
41463 fi
41464 fi
41465 fi
41466
41467 cat >>confdefs.h <<\_ACEOF
41468#define wxUSE_SOUND 1
41469_ACEOF
41470
41471 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sound"
41472fi
41473
d1c38808
VZ
41474if test "$WXGTK20" = 1; then
41475 if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then
41476 if test "$wxUSE_LIBGNOMEPRINT" = "yes" ; then
41477
41478
41479 succeeded=no
41480
41481 if test -z "$PKG_CONFIG"; then
41482 # Extract the first word of "pkg-config", so it can be a program name with args.
41483set dummy pkg-config; ac_word=$2
41484echo "$as_me:$LINENO: checking for $ac_word" >&5
41485echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
41486if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
41487 echo $ECHO_N "(cached) $ECHO_C" >&6
41488else
41489 case $PKG_CONFIG in
41490 [\\/]* | ?:[\\/]*)
41491 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
41492 ;;
41493 *)
41494 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
41495for as_dir in $PATH
41496do
41497 IFS=$as_save_IFS
41498 test -z "$as_dir" && as_dir=.
41499 for ac_exec_ext in '' $ac_executable_extensions; do
41500 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
41501 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
41502 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
41503 break 2
41504 fi
41505done
41506done
41507
41508 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
41509 ;;
41510esac
41511fi
41512PKG_CONFIG=$ac_cv_path_PKG_CONFIG
41513
41514if test -n "$PKG_CONFIG"; then
41515 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
41516echo "${ECHO_T}$PKG_CONFIG" >&6
41517else
41518 echo "$as_me:$LINENO: result: no" >&5
41519echo "${ECHO_T}no" >&6
41520fi
41521
41522 fi
41523
41524 if test "$PKG_CONFIG" = "no" ; then
41525 echo "*** The pkg-config script could not be found. Make sure it is"
41526 echo "*** in your path, or set the PKG_CONFIG environment variable"
41527 echo "*** to the full path to pkg-config."
41528 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
41529 else
41530 PKG_CONFIG_MIN_VERSION=0.9.0
41531 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
ffa762ff
VS
41532 echo "$as_me:$LINENO: checking for libgnomeprintui-2.2 >= 2.8" >&5
41533echo $ECHO_N "checking for libgnomeprintui-2.2 >= 2.8... $ECHO_C" >&6
d1c38808 41534
ffa762ff 41535 if $PKG_CONFIG --exists "libgnomeprintui-2.2 >= 2.8" ; then
d1c38808
VZ
41536 echo "$as_me:$LINENO: result: yes" >&5
41537echo "${ECHO_T}yes" >&6
41538 succeeded=yes
41539
41540 echo "$as_me:$LINENO: checking LIBGNOMEPRINTUI_CFLAGS" >&5
41541echo $ECHO_N "checking LIBGNOMEPRINTUI_CFLAGS... $ECHO_C" >&6
ffa762ff 41542 LIBGNOMEPRINTUI_CFLAGS=`$PKG_CONFIG --cflags "libgnomeprintui-2.2 >= 2.8"`
d1c38808
VZ
41543 echo "$as_me:$LINENO: result: $LIBGNOMEPRINTUI_CFLAGS" >&5
41544echo "${ECHO_T}$LIBGNOMEPRINTUI_CFLAGS" >&6
41545
41546 echo "$as_me:$LINENO: checking LIBGNOMEPRINTUI_LIBS" >&5
41547echo $ECHO_N "checking LIBGNOMEPRINTUI_LIBS... $ECHO_C" >&6
ffa762ff 41548 LIBGNOMEPRINTUI_LIBS=`$PKG_CONFIG --libs "libgnomeprintui-2.2 >= 2.8"`
d1c38808
VZ
41549 echo "$as_me:$LINENO: result: $LIBGNOMEPRINTUI_LIBS" >&5
41550echo "${ECHO_T}$LIBGNOMEPRINTUI_LIBS" >&6
41551 else
41552 LIBGNOMEPRINTUI_CFLAGS=""
41553 LIBGNOMEPRINTUI_LIBS=""
41554 ## If we have a custom action on failure, don't print errors, but
41555 ## do set a variable so people can do so.
ffa762ff 41556 LIBGNOMEPRINTUI_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libgnomeprintui-2.2 >= 2.8"`
d1c38808
VZ
41557
41558 fi
41559
41560
41561
41562 else
41563 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
41564 echo "*** See http://www.freedesktop.org/software/pkgconfig"
41565 fi
41566 fi
41567
41568 if test $succeeded = yes; then
41569
c92ad099 41570 CXXFLAGS="$LIBGNOMEPRINTUI_CFLAGS $CXXFLAGS"
d1c38808
VZ
41571 cat >>confdefs.h <<\_ACEOF
41572#define wxUSE_LIBGNOMEPRINT 1
41573_ACEOF
41574
41575
41576 else
41577
41578 { echo "$as_me:$LINENO: WARNING: libgnomeprintui not found, library will use standard PostScript printing" >&5
41579echo "$as_me: WARNING: libgnomeprintui not found, library will use standard PostScript printing" >&2;}
41580 wxUSE_LIBGNOMEPRINT="no"
41581
41582
41583 fi
41584
41585 fi
41586 fi
41587fi
41588
2b850ae1
RR
41589if test "$WXGTK20" = 1; then
41590 if test "$wxUSE_MIMETYPE" = "yes" ; then
41591 if test "$wxUSE_LIBGNOMEVFS" = "yes" ; then
41592
41593
41594 succeeded=no
41595
41596 if test -z "$PKG_CONFIG"; then
41597 # Extract the first word of "pkg-config", so it can be a program name with args.
41598set dummy pkg-config; ac_word=$2
41599echo "$as_me:$LINENO: checking for $ac_word" >&5
41600echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
41601if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
41602 echo $ECHO_N "(cached) $ECHO_C" >&6
41603else
41604 case $PKG_CONFIG in
41605 [\\/]* | ?:[\\/]*)
41606 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
41607 ;;
41608 *)
41609 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
41610for as_dir in $PATH
41611do
41612 IFS=$as_save_IFS
41613 test -z "$as_dir" && as_dir=.
41614 for ac_exec_ext in '' $ac_executable_extensions; do
41615 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
41616 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
41617 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
41618 break 2
41619 fi
41620done
41621done
41622
41623 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
41624 ;;
41625esac
41626fi
41627PKG_CONFIG=$ac_cv_path_PKG_CONFIG
41628
41629if test -n "$PKG_CONFIG"; then
41630 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
41631echo "${ECHO_T}$PKG_CONFIG" >&6
41632else
41633 echo "$as_me:$LINENO: result: no" >&5
41634echo "${ECHO_T}no" >&6
41635fi
41636
41637 fi
41638
41639 if test "$PKG_CONFIG" = "no" ; then
41640 echo "*** The pkg-config script could not be found. Make sure it is"
41641 echo "*** in your path, or set the PKG_CONFIG environment variable"
41642 echo "*** to the full path to pkg-config."
41643 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
41644 else
41645 PKG_CONFIG_MIN_VERSION=0.9.0
41646 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
41647 echo "$as_me:$LINENO: checking for gnome-vfs-2.0 >= 2.0" >&5
41648echo $ECHO_N "checking for gnome-vfs-2.0 >= 2.0... $ECHO_C" >&6
41649
41650 if $PKG_CONFIG --exists "gnome-vfs-2.0 >= 2.0" ; then
41651 echo "$as_me:$LINENO: result: yes" >&5
41652echo "${ECHO_T}yes" >&6
41653 succeeded=yes
41654
41655 echo "$as_me:$LINENO: checking GNOMEVFS_CFLAGS" >&5
41656echo $ECHO_N "checking GNOMEVFS_CFLAGS... $ECHO_C" >&6
41657 GNOMEVFS_CFLAGS=`$PKG_CONFIG --cflags "gnome-vfs-2.0 >= 2.0"`
41658 echo "$as_me:$LINENO: result: $GNOMEVFS_CFLAGS" >&5
41659echo "${ECHO_T}$GNOMEVFS_CFLAGS" >&6
41660
41661 echo "$as_me:$LINENO: checking GNOMEVFS_LIBS" >&5
41662echo $ECHO_N "checking GNOMEVFS_LIBS... $ECHO_C" >&6
41663 GNOMEVFS_LIBS=`$PKG_CONFIG --libs "gnome-vfs-2.0 >= 2.0"`
41664 echo "$as_me:$LINENO: result: $GNOMEVFS_LIBS" >&5
41665echo "${ECHO_T}$GNOMEVFS_LIBS" >&6
41666 else
41667 GNOMEVFS_CFLAGS=""
41668 GNOMEVFS_LIBS=""
41669 ## If we have a custom action on failure, don't print errors, but
41670 ## do set a variable so people can do so.
41671 GNOMEVFS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gnome-vfs-2.0 >= 2.0"`
41672
41673 fi
41674
41675
41676
41677 else
41678 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
41679 echo "*** See http://www.freedesktop.org/software/pkgconfig"
41680 fi
41681 fi
41682
41683 if test $succeeded = yes; then
41684
41685 CXXFLAGS="$GNOMEVFS_CFLAGS $CXXFLAGS"
41686 cat >>confdefs.h <<\_ACEOF
41687#define wxUSE_LIBGNOMEVFS 1
41688_ACEOF
41689
41690
41691 else
41692
41693 { echo "$as_me:$LINENO: WARNING: libgnomevfs not found, library won't be able to associate MIME type" >&5
41694echo "$as_me: WARNING: libgnomevfs not found, library won't be able to associate MIME type" >&2;}
41695 wxUSE_LIBGNOMEVFS="no"
41696
41697
41698 fi
41699
41700 fi
41701 fi
41702fi
41703
3565d135
RR
41704if test "$WXGTK20" = 1; then
41705 if test "$wxUSE_LIBHILDON" = "yes" ; then
41706
41707 succeeded=no
41708
41709 if test -z "$PKG_CONFIG"; then
41710 # Extract the first word of "pkg-config", so it can be a program name with args.
41711set dummy pkg-config; ac_word=$2
41712echo "$as_me:$LINENO: checking for $ac_word" >&5
41713echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
41714if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
41715 echo $ECHO_N "(cached) $ECHO_C" >&6
41716else
41717 case $PKG_CONFIG in
41718 [\\/]* | ?:[\\/]*)
41719 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
41720 ;;
41721 *)
41722 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
41723for as_dir in $PATH
41724do
41725 IFS=$as_save_IFS
41726 test -z "$as_dir" && as_dir=.
41727 for ac_exec_ext in '' $ac_executable_extensions; do
41728 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
41729 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
41730 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
41731 break 2
41732 fi
41733done
41734done
41735
41736 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
41737 ;;
41738esac
41739fi
41740PKG_CONFIG=$ac_cv_path_PKG_CONFIG
41741
41742if test -n "$PKG_CONFIG"; then
41743 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
41744echo "${ECHO_T}$PKG_CONFIG" >&6
41745else
41746 echo "$as_me:$LINENO: result: no" >&5
41747echo "${ECHO_T}no" >&6
41748fi
41749
41750 fi
41751
41752 if test "$PKG_CONFIG" = "no" ; then
41753 echo "*** The pkg-config script could not be found. Make sure it is"
41754 echo "*** in your path, or set the PKG_CONFIG environment variable"
41755 echo "*** to the full path to pkg-config."
41756 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
41757 else
41758 PKG_CONFIG_MIN_VERSION=0.9.0
41759 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
41760 echo "$as_me:$LINENO: checking for hildon-lgpl >= 0.9" >&5
41761echo $ECHO_N "checking for hildon-lgpl >= 0.9... $ECHO_C" >&6
41762
41763 if $PKG_CONFIG --exists "hildon-lgpl >= 0.9" ; then
41764 echo "$as_me:$LINENO: result: yes" >&5
41765echo "${ECHO_T}yes" >&6
41766 succeeded=yes
41767
41768 echo "$as_me:$LINENO: checking HILDON_CFLAGS" >&5
41769echo $ECHO_N "checking HILDON_CFLAGS... $ECHO_C" >&6
41770 HILDON_CFLAGS=`$PKG_CONFIG --cflags "hildon-lgpl >= 0.9"`
41771 echo "$as_me:$LINENO: result: $HILDON_CFLAGS" >&5
41772echo "${ECHO_T}$HILDON_CFLAGS" >&6
41773
41774 echo "$as_me:$LINENO: checking HILDON_LIBS" >&5
41775echo $ECHO_N "checking HILDON_LIBS... $ECHO_C" >&6
41776 HILDON_LIBS=`$PKG_CONFIG --libs "hildon-lgpl >= 0.9"`
41777 echo "$as_me:$LINENO: result: $HILDON_LIBS" >&5
41778echo "${ECHO_T}$HILDON_LIBS" >&6
41779 else
41780 HILDON_CFLAGS=""
41781 HILDON_LIBS=""
41782 ## If we have a custom action on failure, don't print errors, but
41783 ## do set a variable so people can do so.
41784 HILDON_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "hildon-lgpl >= 0.9"`
41785
41786 fi
41787
41788
41789
41790 else
41791 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
41792 echo "*** See http://www.freedesktop.org/software/pkgconfig"
41793 fi
41794 fi
41795
41796 if test $succeeded = yes; then
41797
41798 EXTRALIBS_HILDON="$HILDON_LIBS"
41799 CXXFLAGS="$CXXFLAGS $HILDON_CFLAGS"
41800 cat >>confdefs.h <<\_ACEOF
41801#define wxUSE_LIBHILDON 1
41802_ACEOF
41803
41804
41805 else
41806
41807 { echo "$as_me:$LINENO: WARNING: libhildon_lgpl not found" >&5
41808echo "$as_me: WARNING: libhildon_lgpl not found" >&2;}
41809 wxUSE_LIBHILDON="no"
41810
41811
41812 fi
41813
41814 fi
41815fi
d1c38808 41816
a848cd7e
SC
41817if test "$wxUSE_CMDLINE_PARSER" = "yes"; then
41818 cat >>confdefs.h <<\_ACEOF
41819#define wxUSE_CMDLINE_PARSER 1
41820_ACEOF
41821
41822fi
41823
41824if test "$wxUSE_STOPWATCH" = "yes"; then
41825 cat >>confdefs.h <<\_ACEOF
41826#define wxUSE_STOPWATCH 1
41827_ACEOF
41828
41829fi
41830
41831if test "$wxUSE_DATETIME" = "yes"; then
41832 cat >>confdefs.h <<\_ACEOF
41833#define wxUSE_DATETIME 1
41834_ACEOF
41835
41836fi
41837
41838if test "$wxUSE_FILE" = "yes"; then
41839 cat >>confdefs.h <<\_ACEOF
41840#define wxUSE_FILE 1
41841_ACEOF
41842
41843fi
41844
41845if test "$wxUSE_FFILE" = "yes"; then
41846 cat >>confdefs.h <<\_ACEOF
41847#define wxUSE_FFILE 1
41848_ACEOF
41849
41850fi
41851
41852if test "$wxUSE_FILESYSTEM" = "yes"; then
41853 cat >>confdefs.h <<\_ACEOF
41854#define wxUSE_FILESYSTEM 1
41855_ACEOF
41856
41857fi
41858
41859if test "$wxUSE_FS_ZIP" = "yes"; then
41860 cat >>confdefs.h <<\_ACEOF
41861#define wxUSE_FS_ZIP 1
41862_ACEOF
41863
41864fi
41865
9e8e867f 41866if test "$wxUSE_ARCHIVE_STREAMS" = "yes"; then
a848cd7e 41867 cat >>confdefs.h <<\_ACEOF
9e8e867f 41868#define wxUSE_ARCHIVE_STREAMS 1
81f90336
MW
41869_ACEOF
41870
41871fi
41872
41873if test "$wxUSE_ZIPSTREAM" = "yes"; then
9e8e867f 41874 if test "$wxUSE_ARCHIVE_STREAMS" != "yes"; then
81f90336
MW
41875 { echo "$as_me:$LINENO: WARNING: wxZip requires wxArchive... disabled" >&5
41876echo "$as_me: WARNING: wxZip requires wxArchive... disabled" >&2;}
41877 elif test "$wxUSE_ZLIB" = "no"; then
41878 { echo "$as_me:$LINENO: WARNING: wxZip requires wxZlib... disabled" >&5
41879echo "$as_me: WARNING: wxZip requires wxZlib... disabled" >&2;}
41880 else
41881 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
41882#define wxUSE_ZIPSTREAM 1
41883_ACEOF
41884
81f90336 41885 fi
a848cd7e
SC
41886fi
41887
a848cd7e 41888if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
18228ab4
MW
41889 if test "$USE_UNIX" != 1; then
41890 { echo "$as_me:$LINENO: WARNING: Catching fatal exceptions not currently supported on this system, wxApp::OnFatalException will not be called" >&5
41891echo "$as_me: WARNING: Catching fatal exceptions not currently supported on this system, wxApp::OnFatalException will not be called" >&2;}
41892 wxUSE_ON_FATAL_EXCEPTION=no
41893 else
41894 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
41895#define wxUSE_ON_FATAL_EXCEPTION 1
41896_ACEOF
41897
18228ab4 41898 fi
a848cd7e
SC
41899fi
41900
eaff0f0d
VZ
41901if test "$wxUSE_STACKWALKER" = "yes"; then
41902 cat >>confdefs.h <<\_ACEOF
41903#define wxUSE_STACKWALKER 1
41904_ACEOF
41905
41906fi
41907
36b6448c 41908if test "$wxUSE_DEBUGREPORT" = "yes"; then
18228ab4
MW
41909 if test "$USE_UNIX" != "1" -a "$USE_WIN32" != "1"; then
41910 { echo "$as_me:$LINENO: WARNING: Creating debug reports not currently supported on this system, disabled" >&5
41911echo "$as_me: WARNING: Creating debug reports not currently supported on this system, disabled" >&2;}
dfe0c803
JS
41912 wxUSE_DEBUGREPORT=no
41913 else
41914 cat >>confdefs.h <<\_ACEOF
36b6448c
VZ
41915#define wxUSE_DEBUGREPORT 1
41916_ACEOF
41917
21dfc162
MW
41918 if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
41919 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS debugrpt"
41920 fi
dfe0c803 41921 fi
36b6448c
VZ
41922fi
41923
a848cd7e
SC
41924if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
41925 cat >>confdefs.h <<\_ACEOF
41926#define wxUSE_SNGLINST_CHECKER 1
41927_ACEOF
41928
41929fi
41930
41931if test "$wxUSE_BUSYINFO" = "yes"; then
41932 cat >>confdefs.h <<\_ACEOF
41933#define wxUSE_BUSYINFO 1
41934_ACEOF
41935
41936fi
41937
41938if test "$wxUSE_STD_IOSTREAM" = "yes"; then
41939 cat >>confdefs.h <<\_ACEOF
41940#define wxUSE_STD_IOSTREAM 1
41941_ACEOF
41942
41943fi
41944
59746b65
MW
41945if test "$wxUSE_STD_STRING" = "yes"; then
41946 cat >>confdefs.h <<\_ACEOF
41947#define wxUSE_STD_STRING 1
41948_ACEOF
41949
41950fi
41951
07158944
VZ
41952if test "$wxUSE_STDPATHS" = "yes"; then
41953 cat >>confdefs.h <<\_ACEOF
41954#define wxUSE_STDPATHS 1
41955_ACEOF
41956
41957fi
41958
a848cd7e
SC
41959if test "$wxUSE_TEXTBUFFER" = "yes"; then
41960 cat >>confdefs.h <<\_ACEOF
41961#define wxUSE_TEXTBUFFER 1
41962_ACEOF
41963
41964fi
41965
41966if test "$wxUSE_TEXTFILE" = "yes"; then
41967 if test "$wxUSE_FILE" != "yes" -o "$wxUSE_TEXTBUFFER" != "yes" ; then
41968 { echo "$as_me:$LINENO: WARNING: wxTextFile requires wxFile and wxTextBuffer... disabled" >&5
41969echo "$as_me: WARNING: wxTextFile requires wxFile and wxTextBuffer... disabled" >&2;}
41970 else
41971 cat >>confdefs.h <<\_ACEOF
41972#define wxUSE_TEXTFILE 1
41973_ACEOF
41974
41975 fi
41976fi
41977
41978if test "$wxUSE_CONFIG" = "yes" ; then
41979 if test "$wxUSE_TEXTFILE" != "yes"; then
41980 { echo "$as_me:$LINENO: WARNING: wxConfig requires wxTextFile... disabled" >&5
41981echo "$as_me: WARNING: wxConfig requires wxTextFile... disabled" >&2;}
41982 else
41983 cat >>confdefs.h <<\_ACEOF
41984#define wxUSE_CONFIG 1
89be85c2
VS
41985_ACEOF
41986
41987 cat >>confdefs.h <<\_ACEOF
41988#define wxUSE_CONFIG_NATIVE 1
a848cd7e
SC
41989_ACEOF
41990
41991 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS config"
41992 fi
41993fi
41994
41995if test "$wxUSE_INTL" = "yes" ; then
41996 if test "$wxUSE_FILE" != "yes"; then
41997 { echo "$as_me:$LINENO: WARNING: I18n code requires wxFile... disabled" >&5
41998echo "$as_me: WARNING: I18n code requires wxFile... disabled" >&2;}
41999 else
42000 cat >>confdefs.h <<\_ACEOF
42001#define wxUSE_INTL 1
42002_ACEOF
42003
42004 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS internat"
42005 GUIDIST="$GUIDIST INTL_DIST"
42006 fi
42007fi
42008
42009if test "$wxUSE_LOG" = "yes"; then
42010 cat >>confdefs.h <<\_ACEOF
42011#define wxUSE_LOG 1
42012_ACEOF
42013
42014
42015 if test "$wxUSE_LOGGUI" = "yes"; then
42016 cat >>confdefs.h <<\_ACEOF
42017#define wxUSE_LOGGUI 1
42018_ACEOF
42019
42020 fi
42021
42022 if test "$wxUSE_LOGWINDOW" = "yes"; then
42023 cat >>confdefs.h <<\_ACEOF
42024#define wxUSE_LOGWINDOW 1
42025_ACEOF
42026
42027 fi
42028
42029 if test "$wxUSE_LOGDIALOG" = "yes"; then
42030 cat >>confdefs.h <<\_ACEOF
42031#define wxUSE_LOG_DIALOG 1
42032_ACEOF
42033
42034 fi
0b78747f
MW
42035
42036 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS keyboard"
a848cd7e
SC
42037fi
42038
42039if test "$wxUSE_LONGLONG" = "yes"; then
42040 cat >>confdefs.h <<\_ACEOF
42041#define wxUSE_LONGLONG 1
42042_ACEOF
42043
42044fi
42045
42046if test "$wxUSE_GEOMETRY" = "yes"; then
42047 cat >>confdefs.h <<\_ACEOF
42048#define wxUSE_GEOMETRY 1
42049_ACEOF
42050
42051fi
42052
a848cd7e
SC
42053if test "$wxUSE_STREAMS" = "yes" ; then
42054 cat >>confdefs.h <<\_ACEOF
42055#define wxUSE_STREAMS 1
42056_ACEOF
42057
42058fi
42059
8b6682b9
JS
42060if test "$wxUSE_PRINTF_POS_PARAMS" = "yes"; then
42061 cat >>confdefs.h <<\_ACEOF
42062#define wxUSE_PRINTF_POS_PARAMS 1
42063_ACEOF
42064
42065fi
42066
42067
a848cd7e
SC
42068
42069if test "$wxUSE_DATETIME" = "yes"; then
42070
42071for ac_func in strptime
42072do
42073as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
42074echo "$as_me:$LINENO: checking for $ac_func" >&5
42075echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
42076if eval "test \"\${$as_ac_var+set}\" = set"; then
42077 echo $ECHO_N "(cached) $ECHO_C" >&6
42078else
42079 cat >conftest.$ac_ext <<_ACEOF
42080/* confdefs.h. */
42081_ACEOF
42082cat confdefs.h >>conftest.$ac_ext
42083cat >>conftest.$ac_ext <<_ACEOF
42084/* end confdefs.h. */
ac1cb8d3
VS
42085/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
42086 For example, HP-UX 11i <limits.h> declares gettimeofday. */
42087#define $ac_func innocuous_$ac_func
42088
a848cd7e
SC
42089/* System header to define __stub macros and hopefully few prototypes,
42090 which can conflict with char $ac_func (); below.
42091 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
42092 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 42093
a848cd7e
SC
42094#ifdef __STDC__
42095# include <limits.h>
42096#else
42097# include <assert.h>
42098#endif
ac1cb8d3
VS
42099
42100#undef $ac_func
42101
a848cd7e
SC
42102/* Override any gcc2 internal prototype to avoid an error. */
42103#ifdef __cplusplus
42104extern "C"
42105{
42106#endif
42107/* We use char because int might match the return type of a gcc2
42108 builtin and then its argument prototype would still apply. */
42109char $ac_func ();
42110/* The GNU C library defines this for functions which it implements
42111 to always fail with ENOSYS. Some functions are actually named
42112 something starting with __ and the normal name is an alias. */
42113#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
42114choke me
42115#else
42116char (*f) () = $ac_func;
42117#endif
42118#ifdef __cplusplus
42119}
42120#endif
42121
42122int
42123main ()
42124{
42125return f != $ac_func;
42126 ;
42127 return 0;
42128}
42129_ACEOF
42130rm -f conftest.$ac_objext conftest$ac_exeext
42131if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 42132 (eval $ac_link) 2>conftest.er1
a848cd7e 42133 ac_status=$?
ac1cb8d3
VS
42134 grep -v '^ *+' conftest.er1 >conftest.err
42135 rm -f conftest.er1
42136 cat conftest.err >&5
a848cd7e
SC
42137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42138 (exit $ac_status); } &&
c9a66001 42139 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
42140 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42141 (eval $ac_try) 2>&5
42142 ac_status=$?
42143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42144 (exit $ac_status); }; } &&
42145 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
42146 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42147 (eval $ac_try) 2>&5
42148 ac_status=$?
42149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42150 (exit $ac_status); }; }; then
42151 eval "$as_ac_var=yes"
42152else
42153 echo "$as_me: failed program was:" >&5
42154sed 's/^/| /' conftest.$ac_ext >&5
42155
42156eval "$as_ac_var=no"
42157fi
ac1cb8d3
VS
42158rm -f conftest.err conftest.$ac_objext \
42159 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
42160fi
42161echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
42162echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
42163if test `eval echo '${'$as_ac_var'}'` = yes; then
42164 cat >>confdefs.h <<_ACEOF
42165#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
42166_ACEOF
42167
42168fi
42169done
42170
f536f005
VZ
42171 if test "$ac_cv_func_strptime" = "yes"; then
42172 echo "$as_me:$LINENO: checking for strptime declaration" >&5
42173echo $ECHO_N "checking for strptime declaration... $ECHO_C" >&6
42174if test "${wx_cv_func_strptime_decl+set}" = set; then
42175 echo $ECHO_N "(cached) $ECHO_C" >&6
42176else
42177
f536f005
VZ
42178 cat >conftest.$ac_ext <<_ACEOF
42179/* confdefs.h. */
42180_ACEOF
42181cat confdefs.h >>conftest.$ac_ext
42182cat >>conftest.$ac_ext <<_ACEOF
42183/* end confdefs.h. */
42184
42185 #include <time.h>
42186
42187int
42188main ()
42189{
42190
42191 struct tm t;
42192 strptime("foo", "bar", &t);
42193
42194 ;
42195 return 0;
42196}
42197_ACEOF
42198rm -f conftest.$ac_objext
42199if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
42200 (eval $ac_compile) 2>conftest.er1
42201 ac_status=$?
42202 grep -v '^ *+' conftest.er1 >conftest.err
42203 rm -f conftest.er1
42204 cat conftest.err >&5
42205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42206 (exit $ac_status); } &&
c9a66001 42207 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
f536f005
VZ
42208 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42209 (eval $ac_try) 2>&5
42210 ac_status=$?
42211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42212 (exit $ac_status); }; } &&
42213 { ac_try='test -s conftest.$ac_objext'
42214 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42215 (eval $ac_try) 2>&5
42216 ac_status=$?
42217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42218 (exit $ac_status); }; }; then
42219 wx_cv_func_strptime_decl=yes
42220else
42221 echo "$as_me: failed program was:" >&5
42222sed 's/^/| /' conftest.$ac_ext >&5
42223
42224wx_cv_func_strptime_decl=no
42225
42226fi
42227rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
f536f005
VZ
42228
42229
42230fi
42231echo "$as_me:$LINENO: result: $wx_cv_func_strptime_decl" >&5
42232echo "${ECHO_T}$wx_cv_func_strptime_decl" >&6
42233 fi
42234 if test "$wx_cv_func_strptime_decl" = "yes"; then
42235 cat >>confdefs.h <<\_ACEOF
42236#define HAVE_STRPTIME_DECL 1
42237_ACEOF
42238
42239 fi
a848cd7e
SC
42240
42241 echo "$as_me:$LINENO: checking for timezone variable in <time.h>" >&5
42242echo $ECHO_N "checking for timezone variable in <time.h>... $ECHO_C" >&6
42243if test "${wx_cv_var_timezone+set}" = set; then
42244 echo $ECHO_N "(cached) $ECHO_C" >&6
42245else
42246
42247 cat >conftest.$ac_ext <<_ACEOF
42248/* confdefs.h. */
42249_ACEOF
42250cat confdefs.h >>conftest.$ac_ext
42251cat >>conftest.$ac_ext <<_ACEOF
42252/* end confdefs.h. */
42253
42254 #include <time.h>
42255
42256int
42257main ()
42258{
42259
42260 int tz;
42261 tz = timezone;
42262
42263 ;
42264 return 0;
42265}
42266_ACEOF
42267rm -f conftest.$ac_objext
42268if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 42269 (eval $ac_compile) 2>conftest.er1
a848cd7e 42270 ac_status=$?
ac1cb8d3
VS
42271 grep -v '^ *+' conftest.er1 >conftest.err
42272 rm -f conftest.er1
42273 cat conftest.err >&5
a848cd7e
SC
42274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42275 (exit $ac_status); } &&
c9a66001 42276 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
42277 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42278 (eval $ac_try) 2>&5
42279 ac_status=$?
42280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42281 (exit $ac_status); }; } &&
42282 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
42283 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42284 (eval $ac_try) 2>&5
42285 ac_status=$?
42286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42287 (exit $ac_status); }; }; then
42288
42289 wx_cv_var_timezone=timezone
42290
42291else
42292 echo "$as_me: failed program was:" >&5
42293sed 's/^/| /' conftest.$ac_ext >&5
42294
42295
42296 cat >conftest.$ac_ext <<_ACEOF
42297/* confdefs.h. */
42298_ACEOF
42299cat confdefs.h >>conftest.$ac_ext
42300cat >>conftest.$ac_ext <<_ACEOF
42301/* end confdefs.h. */
42302
42303 #include <time.h>
42304
42305int
42306main ()
42307{
42308
42309 int tz;
42310 tz = _timezone;
42311
42312 ;
42313 return 0;
42314}
42315_ACEOF
42316rm -f conftest.$ac_objext
42317if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 42318 (eval $ac_compile) 2>conftest.er1
a848cd7e 42319 ac_status=$?
ac1cb8d3
VS
42320 grep -v '^ *+' conftest.er1 >conftest.err
42321 rm -f conftest.er1
42322 cat conftest.err >&5
a848cd7e
SC
42323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42324 (exit $ac_status); } &&
c9a66001 42325 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
42326 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42327 (eval $ac_try) 2>&5
42328 ac_status=$?
42329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42330 (exit $ac_status); }; } &&
42331 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
42332 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42333 (eval $ac_try) 2>&5
42334 ac_status=$?
42335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42336 (exit $ac_status); }; }; then
42337
42338 wx_cv_var_timezone=_timezone
42339
42340else
42341 echo "$as_me: failed program was:" >&5
42342sed 's/^/| /' conftest.$ac_ext >&5
42343
42344
42345 cat >conftest.$ac_ext <<_ACEOF
42346/* confdefs.h. */
42347_ACEOF
42348cat confdefs.h >>conftest.$ac_ext
42349cat >>conftest.$ac_ext <<_ACEOF
42350/* end confdefs.h. */
42351
42352 #include <time.h>
42353
42354int
42355main ()
42356{
42357
42358 int tz;
42359 tz = __timezone;
42360
42361 ;
42362 return 0;
42363}
42364_ACEOF
42365rm -f conftest.$ac_objext
42366if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 42367 (eval $ac_compile) 2>conftest.er1
a848cd7e 42368 ac_status=$?
ac1cb8d3
VS
42369 grep -v '^ *+' conftest.er1 >conftest.err
42370 rm -f conftest.er1
42371 cat conftest.err >&5
a848cd7e
SC
42372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42373 (exit $ac_status); } &&
c9a66001 42374 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
42375 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42376 (eval $ac_try) 2>&5
42377 ac_status=$?
42378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42379 (exit $ac_status); }; } &&
42380 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
42381 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42382 (eval $ac_try) 2>&5
42383 ac_status=$?
42384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42385 (exit $ac_status); }; }; then
42386
42387 wx_cv_var_timezone=__timezone
42388
42389else
42390 echo "$as_me: failed program was:" >&5
42391sed 's/^/| /' conftest.$ac_ext >&5
42392
42393
42394 if test "$USE_DOS" = 0 ; then
42395 { echo "$as_me:$LINENO: WARNING: no timezone variable" >&5
42396echo "$as_me: WARNING: no timezone variable" >&2;}
42397 fi
42398
42399
42400fi
ac1cb8d3 42401rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
42402
42403
42404fi
ac1cb8d3 42405rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
42406
42407
42408fi
ac1cb8d3 42409rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
42410
42411
42412fi
42413echo "$as_me:$LINENO: result: $wx_cv_var_timezone" >&5
42414echo "${ECHO_T}$wx_cv_var_timezone" >&6
42415
42416 if test "x$wx_cv_var_timezone" != x ; then
42417 cat >>confdefs.h <<_ACEOF
42418#define WX_TIMEZONE $wx_cv_var_timezone
42419_ACEOF
42420
42421 fi
42422
42423
42424for ac_func in localtime
42425do
42426as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
42427echo "$as_me:$LINENO: checking for $ac_func" >&5
42428echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
42429if eval "test \"\${$as_ac_var+set}\" = set"; then
42430 echo $ECHO_N "(cached) $ECHO_C" >&6
42431else
42432 cat >conftest.$ac_ext <<_ACEOF
42433/* confdefs.h. */
42434_ACEOF
42435cat confdefs.h >>conftest.$ac_ext
42436cat >>conftest.$ac_ext <<_ACEOF
42437/* end confdefs.h. */
ac1cb8d3
VS
42438/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
42439 For example, HP-UX 11i <limits.h> declares gettimeofday. */
42440#define $ac_func innocuous_$ac_func
42441
a848cd7e
SC
42442/* System header to define __stub macros and hopefully few prototypes,
42443 which can conflict with char $ac_func (); below.
42444 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
42445 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 42446
a848cd7e
SC
42447#ifdef __STDC__
42448# include <limits.h>
42449#else
42450# include <assert.h>
42451#endif
ac1cb8d3
VS
42452
42453#undef $ac_func
42454
a848cd7e
SC
42455/* Override any gcc2 internal prototype to avoid an error. */
42456#ifdef __cplusplus
42457extern "C"
42458{
42459#endif
42460/* We use char because int might match the return type of a gcc2
42461 builtin and then its argument prototype would still apply. */
42462char $ac_func ();
42463/* The GNU C library defines this for functions which it implements
42464 to always fail with ENOSYS. Some functions are actually named
42465 something starting with __ and the normal name is an alias. */
42466#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
42467choke me
42468#else
42469char (*f) () = $ac_func;
42470#endif
42471#ifdef __cplusplus
42472}
42473#endif
42474
42475int
42476main ()
42477{
42478return f != $ac_func;
42479 ;
42480 return 0;
42481}
42482_ACEOF
42483rm -f conftest.$ac_objext conftest$ac_exeext
42484if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 42485 (eval $ac_link) 2>conftest.er1
a848cd7e 42486 ac_status=$?
ac1cb8d3
VS
42487 grep -v '^ *+' conftest.er1 >conftest.err
42488 rm -f conftest.er1
42489 cat conftest.err >&5
a848cd7e
SC
42490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42491 (exit $ac_status); } &&
c9a66001 42492 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
42493 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42494 (eval $ac_try) 2>&5
42495 ac_status=$?
42496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42497 (exit $ac_status); }; } &&
42498 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
42499 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42500 (eval $ac_try) 2>&5
42501 ac_status=$?
42502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42503 (exit $ac_status); }; }; then
42504 eval "$as_ac_var=yes"
42505else
42506 echo "$as_me: failed program was:" >&5
42507sed 's/^/| /' conftest.$ac_ext >&5
42508
42509eval "$as_ac_var=no"
42510fi
ac1cb8d3
VS
42511rm -f conftest.err conftest.$ac_objext \
42512 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
42513fi
42514echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
42515echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
42516if test `eval echo '${'$as_ac_var'}'` = yes; then
42517 cat >>confdefs.h <<_ACEOF
42518#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
42519_ACEOF
42520
42521fi
42522done
42523
42524
42525 if test "$ac_cv_func_localtime" = "yes"; then
42526 echo "$as_me:$LINENO: checking for tm_gmtoff in struct tm" >&5
42527echo $ECHO_N "checking for tm_gmtoff in struct tm... $ECHO_C" >&6
42528if test "${wx_cv_struct_tm_has_gmtoff+set}" = set; then
42529 echo $ECHO_N "(cached) $ECHO_C" >&6
42530else
42531
42532 cat >conftest.$ac_ext <<_ACEOF
42533/* confdefs.h. */
42534_ACEOF
42535cat confdefs.h >>conftest.$ac_ext
42536cat >>conftest.$ac_ext <<_ACEOF
42537/* end confdefs.h. */
42538
42539 #include <time.h>
42540
42541int
42542main ()
42543{
42544
42545 struct tm tm;
42546 tm.tm_gmtoff++;
42547
42548 ;
42549 return 0;
42550}
42551_ACEOF
42552rm -f conftest.$ac_objext
42553if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 42554 (eval $ac_compile) 2>conftest.er1
a848cd7e 42555 ac_status=$?
ac1cb8d3
VS
42556 grep -v '^ *+' conftest.er1 >conftest.err
42557 rm -f conftest.er1
42558 cat conftest.err >&5
a848cd7e
SC
42559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42560 (exit $ac_status); } &&
c9a66001 42561 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
42562 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42563 (eval $ac_try) 2>&5
42564 ac_status=$?
42565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42566 (exit $ac_status); }; } &&
42567 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
42568 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42569 (eval $ac_try) 2>&5
42570 ac_status=$?
42571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42572 (exit $ac_status); }; }; then
42573
42574 wx_cv_struct_tm_has_gmtoff=yes
42575
42576else
42577 echo "$as_me: failed program was:" >&5
42578sed 's/^/| /' conftest.$ac_ext >&5
42579
42580wx_cv_struct_tm_has_gmtoff=no
42581
42582fi
ac1cb8d3 42583rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
42584
42585fi
42586echo "$as_me:$LINENO: result: $wx_cv_struct_tm_has_gmtoff" >&5
42587echo "${ECHO_T}$wx_cv_struct_tm_has_gmtoff" >&6
42588 fi
42589
42590 if test "$wx_cv_struct_tm_has_gmtoff" = "yes"; then
42591 cat >>confdefs.h <<\_ACEOF
42592#define WX_GMTOFF_IN_TM 1
42593_ACEOF
42594
42595 fi
42596
42597
42598
42599for ac_func in gettimeofday ftime
42600do
42601as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
42602echo "$as_me:$LINENO: checking for $ac_func" >&5
42603echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
42604if eval "test \"\${$as_ac_var+set}\" = set"; then
42605 echo $ECHO_N "(cached) $ECHO_C" >&6
42606else
42607 cat >conftest.$ac_ext <<_ACEOF
42608/* confdefs.h. */
42609_ACEOF
42610cat confdefs.h >>conftest.$ac_ext
42611cat >>conftest.$ac_ext <<_ACEOF
42612/* end confdefs.h. */
ac1cb8d3
VS
42613/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
42614 For example, HP-UX 11i <limits.h> declares gettimeofday. */
42615#define $ac_func innocuous_$ac_func
42616
a848cd7e
SC
42617/* System header to define __stub macros and hopefully few prototypes,
42618 which can conflict with char $ac_func (); below.
42619 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
42620 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 42621
a848cd7e
SC
42622#ifdef __STDC__
42623# include <limits.h>
42624#else
42625# include <assert.h>
42626#endif
ac1cb8d3
VS
42627
42628#undef $ac_func
42629
a848cd7e
SC
42630/* Override any gcc2 internal prototype to avoid an error. */
42631#ifdef __cplusplus
42632extern "C"
42633{
42634#endif
42635/* We use char because int might match the return type of a gcc2
42636 builtin and then its argument prototype would still apply. */
42637char $ac_func ();
42638/* The GNU C library defines this for functions which it implements
42639 to always fail with ENOSYS. Some functions are actually named
42640 something starting with __ and the normal name is an alias. */
42641#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
42642choke me
42643#else
42644char (*f) () = $ac_func;
42645#endif
42646#ifdef __cplusplus
42647}
42648#endif
42649
42650int
42651main ()
42652{
42653return f != $ac_func;
42654 ;
42655 return 0;
42656}
42657_ACEOF
42658rm -f conftest.$ac_objext conftest$ac_exeext
42659if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 42660 (eval $ac_link) 2>conftest.er1
a848cd7e 42661 ac_status=$?
ac1cb8d3
VS
42662 grep -v '^ *+' conftest.er1 >conftest.err
42663 rm -f conftest.er1
42664 cat conftest.err >&5
a848cd7e
SC
42665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42666 (exit $ac_status); } &&
c9a66001 42667 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
42668 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42669 (eval $ac_try) 2>&5
42670 ac_status=$?
42671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42672 (exit $ac_status); }; } &&
42673 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
42674 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42675 (eval $ac_try) 2>&5
42676 ac_status=$?
42677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42678 (exit $ac_status); }; }; then
42679 eval "$as_ac_var=yes"
42680else
42681 echo "$as_me: failed program was:" >&5
42682sed 's/^/| /' conftest.$ac_ext >&5
42683
42684eval "$as_ac_var=no"
42685fi
ac1cb8d3
VS
42686rm -f conftest.err conftest.$ac_objext \
42687 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
42688fi
42689echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
42690echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
42691if test `eval echo '${'$as_ac_var'}'` = yes; then
42692 cat >>confdefs.h <<_ACEOF
42693#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
42694_ACEOF
42695 break
42696fi
42697done
42698
42699
42700 if test "$ac_cv_func_gettimeofday" = "yes"; then
42701 echo "$as_me:$LINENO: checking whether gettimeofday takes two arguments" >&5
42702echo $ECHO_N "checking whether gettimeofday takes two arguments... $ECHO_C" >&6
42703if test "${wx_cv_func_gettimeofday_has_2_args+set}" = set; then
42704 echo $ECHO_N "(cached) $ECHO_C" >&6
42705else
42706
5d7b7554 42707 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
42708/* confdefs.h. */
42709_ACEOF
42710cat confdefs.h >>conftest.$ac_ext
42711cat >>conftest.$ac_ext <<_ACEOF
42712/* end confdefs.h. */
42713
42714 #include <sys/time.h>
42715 #include <unistd.h>
42716
42717int
42718main ()
42719{
42720
42721 struct timeval tv;
42722 gettimeofday(&tv, NULL);
42723
42724 ;
42725 return 0;
42726}
42727_ACEOF
42728rm -f conftest.$ac_objext
42729if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 42730 (eval $ac_compile) 2>conftest.er1
a848cd7e 42731 ac_status=$?
ac1cb8d3
VS
42732 grep -v '^ *+' conftest.er1 >conftest.err
42733 rm -f conftest.er1
42734 cat conftest.err >&5
a848cd7e
SC
42735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42736 (exit $ac_status); } &&
c9a66001 42737 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
42738 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42739 (eval $ac_try) 2>&5
42740 ac_status=$?
42741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42742 (exit $ac_status); }; } &&
42743 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
42744 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42745 (eval $ac_try) 2>&5
42746 ac_status=$?
42747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42748 (exit $ac_status); }; }; then
42749 wx_cv_func_gettimeofday_has_2_args=yes
42750else
42751 echo "$as_me: failed program was:" >&5
42752sed 's/^/| /' conftest.$ac_ext >&5
42753
42754cat >conftest.$ac_ext <<_ACEOF
42755/* confdefs.h. */
42756_ACEOF
42757cat confdefs.h >>conftest.$ac_ext
42758cat >>conftest.$ac_ext <<_ACEOF
42759/* end confdefs.h. */
42760
42761 #include <sys/time.h>
42762 #include <unistd.h>
42763
42764int
42765main ()
42766{
42767
42768 struct timeval tv;
42769 gettimeofday(&tv);
42770
42771 ;
42772 return 0;
42773}
42774_ACEOF
42775rm -f conftest.$ac_objext
42776if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 42777 (eval $ac_compile) 2>conftest.er1
a848cd7e 42778 ac_status=$?
ac1cb8d3
VS
42779 grep -v '^ *+' conftest.er1 >conftest.err
42780 rm -f conftest.er1
42781 cat conftest.err >&5
a848cd7e
SC
42782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42783 (exit $ac_status); } &&
c9a66001 42784 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
42785 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42786 (eval $ac_try) 2>&5
42787 ac_status=$?
42788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42789 (exit $ac_status); }; } &&
42790 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
42791 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42792 (eval $ac_try) 2>&5
42793 ac_status=$?
42794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42795 (exit $ac_status); }; }; then
42796 wx_cv_func_gettimeofday_has_2_args=no
42797else
42798 echo "$as_me: failed program was:" >&5
42799sed 's/^/| /' conftest.$ac_ext >&5
42800
42801
42802 { echo "$as_me:$LINENO: WARNING: failed to determine number of gettimeofday() arguments" >&5
42803echo "$as_me: WARNING: failed to determine number of gettimeofday() arguments" >&2;}
42804 wx_cv_func_gettimeofday_has_2_args=unknown
42805
42806
42807fi
ac1cb8d3 42808rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
42809
42810fi
ac1cb8d3 42811rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
42812
42813fi
42814echo "$as_me:$LINENO: result: $wx_cv_func_gettimeofday_has_2_args" >&5
42815echo "${ECHO_T}$wx_cv_func_gettimeofday_has_2_args" >&6
42816
42817 if test "$wx_cv_func_gettimeofday_has_2_args" != "yes"; then
42818 cat >>confdefs.h <<\_ACEOF
42819#define WX_GETTIMEOFDAY_NO_TZ 1
42820_ACEOF
42821
42822 fi
42823 fi
42824
42825 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS typetest"
42826fi
42827
42828
42829if test "$wxUSE_SOCKETS" = "yes"; then
42830 if test "$wxUSE_MGL" = "1"; then
42831 { echo "$as_me:$LINENO: WARNING: wxSocket not yet supported under MGL... disabled" >&5
42832echo "$as_me: WARNING: wxSocket not yet supported under MGL... disabled" >&2;}
42833 wxUSE_SOCKETS="no"
42834 fi
42835fi
42836
42837if test "$wxUSE_SOCKETS" = "yes"; then
42838 if test "$TOOLKIT" != "MSW"; then
42839 echo "$as_me:$LINENO: checking for socket" >&5
42840echo $ECHO_N "checking for socket... $ECHO_C" >&6
42841if test "${ac_cv_func_socket+set}" = set; then
42842 echo $ECHO_N "(cached) $ECHO_C" >&6
42843else
42844 cat >conftest.$ac_ext <<_ACEOF
42845/* confdefs.h. */
42846_ACEOF
42847cat confdefs.h >>conftest.$ac_ext
42848cat >>conftest.$ac_ext <<_ACEOF
42849/* end confdefs.h. */
ac1cb8d3
VS
42850/* Define socket to an innocuous variant, in case <limits.h> declares socket.
42851 For example, HP-UX 11i <limits.h> declares gettimeofday. */
42852#define socket innocuous_socket
42853
a848cd7e
SC
42854/* System header to define __stub macros and hopefully few prototypes,
42855 which can conflict with char socket (); below.
42856 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
42857 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 42858
a848cd7e
SC
42859#ifdef __STDC__
42860# include <limits.h>
42861#else
42862# include <assert.h>
42863#endif
ac1cb8d3
VS
42864
42865#undef socket
42866
a848cd7e
SC
42867/* Override any gcc2 internal prototype to avoid an error. */
42868#ifdef __cplusplus
42869extern "C"
42870{
42871#endif
42872/* We use char because int might match the return type of a gcc2
42873 builtin and then its argument prototype would still apply. */
42874char socket ();
42875/* The GNU C library defines this for functions which it implements
42876 to always fail with ENOSYS. Some functions are actually named
42877 something starting with __ and the normal name is an alias. */
42878#if defined (__stub_socket) || defined (__stub___socket)
42879choke me
42880#else
42881char (*f) () = socket;
42882#endif
42883#ifdef __cplusplus
42884}
42885#endif
42886
42887int
42888main ()
42889{
42890return f != socket;
42891 ;
42892 return 0;
42893}
42894_ACEOF
42895rm -f conftest.$ac_objext conftest$ac_exeext
42896if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 42897 (eval $ac_link) 2>conftest.er1
a848cd7e 42898 ac_status=$?
ac1cb8d3
VS
42899 grep -v '^ *+' conftest.er1 >conftest.err
42900 rm -f conftest.er1
42901 cat conftest.err >&5
a848cd7e
SC
42902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42903 (exit $ac_status); } &&
c9a66001 42904 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
42905 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42906 (eval $ac_try) 2>&5
42907 ac_status=$?
42908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42909 (exit $ac_status); }; } &&
42910 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
42911 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42912 (eval $ac_try) 2>&5
42913 ac_status=$?
42914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42915 (exit $ac_status); }; }; then
42916 ac_cv_func_socket=yes
42917else
42918 echo "$as_me: failed program was:" >&5
42919sed 's/^/| /' conftest.$ac_ext >&5
42920
42921ac_cv_func_socket=no
42922fi
ac1cb8d3
VS
42923rm -f conftest.err conftest.$ac_objext \
42924 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
42925fi
42926echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
42927echo "${ECHO_T}$ac_cv_func_socket" >&6
42928if test $ac_cv_func_socket = yes; then
42929 :
42930else
42931
42932 echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
42933echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
42934if test "${ac_cv_lib_socket_socket+set}" = set; then
42935 echo $ECHO_N "(cached) $ECHO_C" >&6
42936else
42937 ac_check_lib_save_LIBS=$LIBS
42938LIBS="-lsocket $LIBS"
42939cat >conftest.$ac_ext <<_ACEOF
42940/* confdefs.h. */
42941_ACEOF
42942cat confdefs.h >>conftest.$ac_ext
42943cat >>conftest.$ac_ext <<_ACEOF
42944/* end confdefs.h. */
42945
42946/* Override any gcc2 internal prototype to avoid an error. */
42947#ifdef __cplusplus
42948extern "C"
42949#endif
42950/* We use char because int might match the return type of a gcc2
42951 builtin and then its argument prototype would still apply. */
42952char socket ();
42953int
42954main ()
42955{
42956socket ();
42957 ;
42958 return 0;
42959}
42960_ACEOF
42961rm -f conftest.$ac_objext conftest$ac_exeext
42962if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 42963 (eval $ac_link) 2>conftest.er1
a848cd7e 42964 ac_status=$?
ac1cb8d3
VS
42965 grep -v '^ *+' conftest.er1 >conftest.err
42966 rm -f conftest.er1
42967 cat conftest.err >&5
a848cd7e
SC
42968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42969 (exit $ac_status); } &&
c9a66001 42970 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
42971 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42972 (eval $ac_try) 2>&5
42973 ac_status=$?
42974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42975 (exit $ac_status); }; } &&
42976 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
42977 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42978 (eval $ac_try) 2>&5
42979 ac_status=$?
42980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42981 (exit $ac_status); }; }; then
42982 ac_cv_lib_socket_socket=yes
42983else
42984 echo "$as_me: failed program was:" >&5
42985sed 's/^/| /' conftest.$ac_ext >&5
42986
42987ac_cv_lib_socket_socket=no
42988fi
ac1cb8d3
VS
42989rm -f conftest.err conftest.$ac_objext \
42990 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
42991LIBS=$ac_check_lib_save_LIBS
42992fi
42993echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
42994echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
42995if test $ac_cv_lib_socket_socket = yes; then
42996 if test "$INET_LINK" != " -lsocket"; then
42997 INET_LINK="$INET_LINK -lsocket"
42998 fi
42999else
43000
43001 { echo "$as_me:$LINENO: WARNING: socket library not found - sockets will be disabled" >&5
43002echo "$as_me: WARNING: socket library not found - sockets will be disabled" >&2;}
43003 wxUSE_SOCKETS=no
43004
43005
43006fi
43007
43008
43009
43010fi
43011
43012 fi
43013fi
43014
43015if test "$wxUSE_SOCKETS" = "yes" ; then
43016 if test "$TOOLKIT" != "MSW"; then
5d7b7554 43017 echo "$as_me:$LINENO: checking what is the type of the third argument of getsockname" >&5
a848cd7e
SC
43018echo $ECHO_N "checking what is the type of the third argument of getsockname... $ECHO_C" >&6
43019if test "${wx_cv_type_getsockname3+set}" = set; then
43020 echo $ECHO_N "(cached) $ECHO_C" >&6
43021else
43022
43023 cat >conftest.$ac_ext <<_ACEOF
43024/* confdefs.h. */
43025_ACEOF
43026cat confdefs.h >>conftest.$ac_ext
43027cat >>conftest.$ac_ext <<_ACEOF
43028/* end confdefs.h. */
43029
43030 #include <sys/types.h>
43031 #include <sys/socket.h>
43032
43033int
43034main ()
43035{
43036
43037 socklen_t len;
43038 getsockname(0, 0, &len);
43039
43040 ;
43041 return 0;
43042}
43043_ACEOF
43044rm -f conftest.$ac_objext
43045if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 43046 (eval $ac_compile) 2>conftest.er1
a848cd7e 43047 ac_status=$?
ac1cb8d3
VS
43048 grep -v '^ *+' conftest.er1 >conftest.err
43049 rm -f conftest.er1
43050 cat conftest.err >&5
a848cd7e
SC
43051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43052 (exit $ac_status); } &&
c9a66001 43053 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
43054 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43055 (eval $ac_try) 2>&5
43056 ac_status=$?
43057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43058 (exit $ac_status); }; } &&
43059 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
43060 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43061 (eval $ac_try) 2>&5
43062 ac_status=$?
43063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43064 (exit $ac_status); }; }; then
43065 wx_cv_type_getsockname3=socklen_t
43066else
43067 echo "$as_me: failed program was:" >&5
43068sed 's/^/| /' conftest.$ac_ext >&5
43069
43070
6459a506 43071 CXXFLAGS_OLD="$CXXFLAGS"
a848cd7e 43072 if test "$GCC" = yes ; then
c92ad099 43073 CXXFLAGS="-Werror $CXXFLAGS"
a848cd7e
SC
43074 fi
43075
43076 cat >conftest.$ac_ext <<_ACEOF
43077/* confdefs.h. */
43078_ACEOF
43079cat confdefs.h >>conftest.$ac_ext
43080cat >>conftest.$ac_ext <<_ACEOF
43081/* end confdefs.h. */
43082
43083 #include <sys/types.h>
43084 #include <sys/socket.h>
43085
43086int
43087main ()
43088{
43089
43090 size_t len;
43091 getsockname(0, 0, &len);
43092
43093 ;
43094 return 0;
43095}
43096_ACEOF
43097rm -f conftest.$ac_objext
43098if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 43099 (eval $ac_compile) 2>conftest.er1
a848cd7e 43100 ac_status=$?
ac1cb8d3
VS
43101 grep -v '^ *+' conftest.er1 >conftest.err
43102 rm -f conftest.er1
43103 cat conftest.err >&5
a848cd7e
SC
43104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43105 (exit $ac_status); } &&
c9a66001 43106 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
43107 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43108 (eval $ac_try) 2>&5
43109 ac_status=$?
43110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43111 (exit $ac_status); }; } &&
43112 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
43113 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43114 (eval $ac_try) 2>&5
43115 ac_status=$?
43116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43117 (exit $ac_status); }; }; then
43118 wx_cv_type_getsockname3=size_t
43119else
43120 echo "$as_me: failed program was:" >&5
43121sed 's/^/| /' conftest.$ac_ext >&5
43122
43123cat >conftest.$ac_ext <<_ACEOF
43124/* confdefs.h. */
43125_ACEOF
43126cat confdefs.h >>conftest.$ac_ext
43127cat >>conftest.$ac_ext <<_ACEOF
43128/* end confdefs.h. */
43129
43130 #include <sys/types.h>
43131 #include <sys/socket.h>
43132
43133int
43134main ()
43135{
43136
43137 int len;
43138 getsockname(0, 0, &len);
43139
43140 ;
43141 return 0;
43142}
43143_ACEOF
43144rm -f conftest.$ac_objext
43145if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 43146 (eval $ac_compile) 2>conftest.er1
a848cd7e 43147 ac_status=$?
ac1cb8d3
VS
43148 grep -v '^ *+' conftest.er1 >conftest.err
43149 rm -f conftest.er1
43150 cat conftest.err >&5
a848cd7e
SC
43151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43152 (exit $ac_status); } &&
c9a66001 43153 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
43154 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43155 (eval $ac_try) 2>&5
43156 ac_status=$?
43157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43158 (exit $ac_status); }; } &&
43159 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
43160 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43161 (eval $ac_try) 2>&5
43162 ac_status=$?
43163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43164 (exit $ac_status); }; }; then
43165 wx_cv_type_getsockname3=int
43166else
43167 echo "$as_me: failed program was:" >&5
43168sed 's/^/| /' conftest.$ac_ext >&5
43169
43170wx_cv_type_getsockname3=unknown
43171
43172fi
ac1cb8d3 43173rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
43174
43175fi
ac1cb8d3 43176rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 43177
6459a506 43178 CXXFLAGS="$CXXFLAGS_OLD"
a848cd7e
SC
43179
43180
43181fi
ac1cb8d3 43182rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
43183
43184fi
43185echo "$as_me:$LINENO: result: $wx_cv_type_getsockname3" >&5
43186echo "${ECHO_T}$wx_cv_type_getsockname3" >&6
43187
43188 if test "$wx_cv_type_getsockname3" = "unknown"; then
43189 wxUSE_SOCKETS=no
43190 { echo "$as_me:$LINENO: WARNING: Couldn't find socklen_t synonym for this system" >&5
43191echo "$as_me: WARNING: Couldn't find socklen_t synonym for this system" >&2;}
43192 else
43193 cat >>confdefs.h <<_ACEOF
9e03e02d 43194#define WX_SOCKLEN_T $wx_cv_type_getsockname3
5b674b9d
DE
43195_ACEOF
43196
43197 fi
43198 echo "$as_me:$LINENO: checking what is the type of the fifth argument of getsockopt" >&5
43199echo $ECHO_N "checking what is the type of the fifth argument of getsockopt... $ECHO_C" >&6
43200if test "${wx_cv_type_getsockopt5+set}" = set; then
43201 echo $ECHO_N "(cached) $ECHO_C" >&6
43202else
43203
43204 cat >conftest.$ac_ext <<_ACEOF
43205/* confdefs.h. */
43206_ACEOF
43207cat confdefs.h >>conftest.$ac_ext
43208cat >>conftest.$ac_ext <<_ACEOF
43209/* end confdefs.h. */
43210
43211 #include <sys/types.h>
43212 #include <sys/socket.h>
43213
43214int
43215main ()
43216{
43217
43218 socklen_t len;
43219 getsockopt(0, 0, 0, 0, &len);
43220
43221 ;
43222 return 0;
43223}
43224_ACEOF
43225rm -f conftest.$ac_objext
43226if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
43227 (eval $ac_compile) 2>conftest.er1
43228 ac_status=$?
43229 grep -v '^ *+' conftest.er1 >conftest.err
43230 rm -f conftest.er1
43231 cat conftest.err >&5
43232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43233 (exit $ac_status); } &&
c9a66001 43234 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5b674b9d
DE
43235 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43236 (eval $ac_try) 2>&5
43237 ac_status=$?
43238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43239 (exit $ac_status); }; } &&
43240 { ac_try='test -s conftest.$ac_objext'
43241 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43242 (eval $ac_try) 2>&5
43243 ac_status=$?
43244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43245 (exit $ac_status); }; }; then
43246 wx_cv_type_getsockopt5=socklen_t
43247else
43248 echo "$as_me: failed program was:" >&5
43249sed 's/^/| /' conftest.$ac_ext >&5
43250
43251
6459a506 43252 CXXFLAGS_OLD="$CXXFLAGS"
5b674b9d 43253 if test "$GCC" = yes ; then
c92ad099 43254 CXXFLAGS="-Werror $CXXFLAGS"
5b674b9d
DE
43255 fi
43256
43257 cat >conftest.$ac_ext <<_ACEOF
43258/* confdefs.h. */
43259_ACEOF
43260cat confdefs.h >>conftest.$ac_ext
43261cat >>conftest.$ac_ext <<_ACEOF
43262/* end confdefs.h. */
43263
43264 #include <sys/types.h>
43265 #include <sys/socket.h>
43266
43267int
43268main ()
43269{
43270
43271 size_t len;
43272 getsockopt(0, 0, 0, 0, &len);
43273
43274 ;
43275 return 0;
43276}
43277_ACEOF
43278rm -f conftest.$ac_objext
43279if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
43280 (eval $ac_compile) 2>conftest.er1
43281 ac_status=$?
43282 grep -v '^ *+' conftest.er1 >conftest.err
43283 rm -f conftest.er1
43284 cat conftest.err >&5
43285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43286 (exit $ac_status); } &&
c9a66001 43287 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5b674b9d
DE
43288 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43289 (eval $ac_try) 2>&5
43290 ac_status=$?
43291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43292 (exit $ac_status); }; } &&
43293 { ac_try='test -s conftest.$ac_objext'
43294 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43295 (eval $ac_try) 2>&5
43296 ac_status=$?
43297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43298 (exit $ac_status); }; }; then
43299 wx_cv_type_getsockopt5=size_t
43300else
43301 echo "$as_me: failed program was:" >&5
43302sed 's/^/| /' conftest.$ac_ext >&5
43303
43304cat >conftest.$ac_ext <<_ACEOF
43305/* confdefs.h. */
43306_ACEOF
43307cat confdefs.h >>conftest.$ac_ext
43308cat >>conftest.$ac_ext <<_ACEOF
43309/* end confdefs.h. */
43310
43311 #include <sys/types.h>
43312 #include <sys/socket.h>
43313
43314int
43315main ()
43316{
43317
43318 int len;
43319 getsockopt(0, 0, 0, 0, &len);
43320
43321 ;
43322 return 0;
43323}
43324_ACEOF
43325rm -f conftest.$ac_objext
43326if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
43327 (eval $ac_compile) 2>conftest.er1
43328 ac_status=$?
43329 grep -v '^ *+' conftest.er1 >conftest.err
43330 rm -f conftest.er1
43331 cat conftest.err >&5
43332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43333 (exit $ac_status); } &&
c9a66001 43334 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5b674b9d
DE
43335 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43336 (eval $ac_try) 2>&5
43337 ac_status=$?
43338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43339 (exit $ac_status); }; } &&
43340 { ac_try='test -s conftest.$ac_objext'
43341 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43342 (eval $ac_try) 2>&5
43343 ac_status=$?
43344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43345 (exit $ac_status); }; }; then
43346 wx_cv_type_getsockopt5=int
43347else
43348 echo "$as_me: failed program was:" >&5
43349sed 's/^/| /' conftest.$ac_ext >&5
43350
43351wx_cv_type_getsockopt5=unknown
43352
43353fi
43354rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
43355
43356fi
43357rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
43358
6459a506 43359 CXXFLAGS="$CXXFLAGS_OLD"
5b674b9d
DE
43360
43361
43362fi
43363rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
43364
43365fi
43366echo "$as_me:$LINENO: result: $wx_cv_type_getsockopt5" >&5
43367echo "${ECHO_T}$wx_cv_type_getsockopt5" >&6
43368
43369 if test "$wx_cv_type_getsockopt5" = "unknown"; then
43370 wxUSE_SOCKETS=no
43371 { echo "$as_me:$LINENO: WARNING: Couldn't find socklen_t synonym for this system" >&5
43372echo "$as_me: WARNING: Couldn't find socklen_t synonym for this system" >&2;}
43373 else
43374 cat >>confdefs.h <<_ACEOF
43375#define SOCKOPTLEN_T $wx_cv_type_getsockopt5
a848cd7e
SC
43376_ACEOF
43377
43378 fi
43379 fi
43380fi
43381
43382if test "$wxUSE_SOCKETS" = "yes" ; then
43383 cat >>confdefs.h <<\_ACEOF
43384#define wxUSE_SOCKETS 1
43385_ACEOF
43386
43387 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sockets"
43388fi
43389
43390if test "$wxUSE_PROTOCOL" = "yes"; then
43391 if test "$wxUSE_SOCKETS" != "yes"; then
43392 { echo "$as_me:$LINENO: WARNING: Protocol classes require sockets... disabled" >&5
43393echo "$as_me: WARNING: Protocol classes require sockets... disabled" >&2;}
43394 wxUSE_PROTOCOL=no
43395 fi
43396fi
43397
43398if test "$wxUSE_PROTOCOL" = "yes"; then
43399 cat >>confdefs.h <<\_ACEOF
43400#define wxUSE_PROTOCOL 1
43401_ACEOF
43402
43403
43404 if test "$wxUSE_PROTOCOL_HTTP" = "yes"; then
43405 cat >>confdefs.h <<\_ACEOF
43406#define wxUSE_PROTOCOL_HTTP 1
43407_ACEOF
43408
43409 fi
43410 if test "$wxUSE_PROTOCOL_FTP" = "yes"; then
43411 cat >>confdefs.h <<\_ACEOF
43412#define wxUSE_PROTOCOL_FTP 1
43413_ACEOF
43414
43415 fi
43416 if test "$wxUSE_PROTOCOL_FILE" = "yes"; then
43417 cat >>confdefs.h <<\_ACEOF
43418#define wxUSE_PROTOCOL_FILE 1
43419_ACEOF
43420
43421 fi
43422else
43423 if test "$wxUSE_FS_INET" = "yes"; then
43424 { echo "$as_me:$LINENO: WARNING: HTTP filesystem require protocol classes... disabled" >&5
43425echo "$as_me: WARNING: HTTP filesystem require protocol classes... disabled" >&2;}
43426 wxUSE_FS_INET="no"
43427 fi
43428fi
43429
43430if test "$wxUSE_URL" = "yes"; then
43431 if test "$wxUSE_PROTOCOL" != "yes"; then
43432 { echo "$as_me:$LINENO: WARNING: wxURL class requires wxProtocol... disabled" >&5
43433echo "$as_me: WARNING: wxURL class requires wxProtocol... disabled" >&2;}
43434 wxUSE_URL=no
43435 fi
43436 if test "$wxUSE_URL" = "yes"; then
43437 cat >>confdefs.h <<\_ACEOF
43438#define wxUSE_URL 1
43439_ACEOF
43440
43441 fi
43442fi
43443
43444if test "$wxUSE_FS_INET" = "yes"; then
43445 cat >>confdefs.h <<\_ACEOF
43446#define wxUSE_FS_INET 1
43447_ACEOF
43448
43449fi
43450
43451
ee45c548
MW
43452if test "$wxUSE_GUI" = "yes" -a "$wxUSE_JOYSTICK" = "yes"; then
43453 wxUSE_JOYSTICK=no
43454
43455 if test "$TOOLKIT" = "MSW"; then
43456 wxUSE_JOYSTICK=yes
43457
43458 elif test "$TOOLKIT" = "MAC" -o "$TOOLKIT" = "COCOA"; then
43459 if test "$USE_DARWIN" = 1; then
43460 echo "$as_me:$LINENO: checking headers have declarations needed for joystick support" >&5
43461echo $ECHO_N "checking headers have declarations needed for joystick support... $ECHO_C" >&6
ee45c548
MW
43462 cat >conftest.$ac_ext <<_ACEOF
43463/* confdefs.h. */
43464_ACEOF
43465cat confdefs.h >>conftest.$ac_ext
43466cat >>conftest.$ac_ext <<_ACEOF
43467/* end confdefs.h. */
43468 #include <IOKit/hid/IOHIDLib.h>
43469int
43470main ()
43471{
43472 IOHIDQueueInterface *qi = NULL;
43473 IOHIDCallbackFunction cb = NULL;
43474 qi->setEventCallout(NULL, cb, NULL, NULL);
43475 ;
43476 return 0;
43477}
43478_ACEOF
43479rm -f conftest.$ac_objext
43480if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
43481 (eval $ac_compile) 2>conftest.er1
43482 ac_status=$?
43483 grep -v '^ *+' conftest.er1 >conftest.err
43484 rm -f conftest.er1
43485 cat conftest.err >&5
43486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43487 (exit $ac_status); } &&
c9a66001 43488 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ee45c548
MW
43489 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43490 (eval $ac_try) 2>&5
43491 ac_status=$?
43492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43493 (exit $ac_status); }; } &&
43494 { ac_try='test -s conftest.$ac_objext'
43495 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43496 (eval $ac_try) 2>&5
43497 ac_status=$?
43498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43499 (exit $ac_status); }; }; then
43500 wxUSE_JOYSTICK=yes
a848cd7e 43501
ee45c548
MW
43502else
43503 echo "$as_me: failed program was:" >&5
43504sed 's/^/| /' conftest.$ac_ext >&5
43505
43506fi
43507rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
ee45c548
MW
43508 echo "$as_me:$LINENO: result: $wxUSE_JOYSTICK" >&5
43509echo "${ECHO_T}$wxUSE_JOYSTICK" >&6
43510 fi
43511
43512 else
a848cd7e
SC
43513
43514for ac_header in linux/joystick.h
43515do
43516as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
43517if eval "test \"\${$as_ac_Header+set}\" = set"; then
43518 echo "$as_me:$LINENO: checking for $ac_header" >&5
43519echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
43520if eval "test \"\${$as_ac_Header+set}\" = set"; then
43521 echo $ECHO_N "(cached) $ECHO_C" >&6
43522fi
43523echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
43524echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
43525else
43526 # Is the header compilable?
43527echo "$as_me:$LINENO: checking $ac_header usability" >&5
43528echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
43529cat >conftest.$ac_ext <<_ACEOF
43530/* confdefs.h. */
43531_ACEOF
43532cat confdefs.h >>conftest.$ac_ext
43533cat >>conftest.$ac_ext <<_ACEOF
43534/* end confdefs.h. */
43535$ac_includes_default
43536#include <$ac_header>
43537_ACEOF
43538rm -f conftest.$ac_objext
43539if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 43540 (eval $ac_compile) 2>conftest.er1
a848cd7e 43541 ac_status=$?
ac1cb8d3
VS
43542 grep -v '^ *+' conftest.er1 >conftest.err
43543 rm -f conftest.er1
43544 cat conftest.err >&5
a848cd7e
SC
43545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43546 (exit $ac_status); } &&
c9a66001 43547 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
43548 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43549 (eval $ac_try) 2>&5
43550 ac_status=$?
43551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43552 (exit $ac_status); }; } &&
43553 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
43554 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43555 (eval $ac_try) 2>&5
43556 ac_status=$?
43557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43558 (exit $ac_status); }; }; then
43559 ac_header_compiler=yes
43560else
43561 echo "$as_me: failed program was:" >&5
43562sed 's/^/| /' conftest.$ac_ext >&5
43563
43564ac_header_compiler=no
43565fi
ac1cb8d3 43566rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
43567echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
43568echo "${ECHO_T}$ac_header_compiler" >&6
43569
43570# Is the header present?
43571echo "$as_me:$LINENO: checking $ac_header presence" >&5
43572echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
43573cat >conftest.$ac_ext <<_ACEOF
43574/* confdefs.h. */
43575_ACEOF
43576cat confdefs.h >>conftest.$ac_ext
43577cat >>conftest.$ac_ext <<_ACEOF
43578/* end confdefs.h. */
43579#include <$ac_header>
43580_ACEOF
43581if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
43582 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
43583 ac_status=$?
43584 grep -v '^ *+' conftest.er1 >conftest.err
43585 rm -f conftest.er1
43586 cat conftest.err >&5
43587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43588 (exit $ac_status); } >/dev/null; then
43589 if test -s conftest.err; then
5d7b7554
VZ
43590 ac_cpp_err=$ac_cxx_preproc_warn_flag
43591 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
43592 else
43593 ac_cpp_err=
43594 fi
43595else
43596 ac_cpp_err=yes
43597fi
43598if test -z "$ac_cpp_err"; then
43599 ac_header_preproc=yes
43600else
43601 echo "$as_me: failed program was:" >&5
43602sed 's/^/| /' conftest.$ac_ext >&5
43603
43604 ac_header_preproc=no
43605fi
43606rm -f conftest.err conftest.$ac_ext
43607echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
43608echo "${ECHO_T}$ac_header_preproc" >&6
43609
43610# So? What about this header?
5d7b7554 43611case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
ac1cb8d3 43612 yes:no: )
a848cd7e
SC
43613 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
43614echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
43615 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
43616echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
43617 ac_header_preproc=yes
a848cd7e 43618 ;;
ac1cb8d3 43619 no:yes:* )
a848cd7e
SC
43620 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
43621echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
43622 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
43623echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
43624 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
43625echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
43626 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
43627echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
43628 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
43629echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
43630 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
43631echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
43632 (
43633 cat <<\_ASBOX
ac1cb8d3
VS
43634## ----------------------------------------- ##
43635## Report this to wx-dev@lists.wxwidgets.org ##
43636## ----------------------------------------- ##
a848cd7e
SC
43637_ASBOX
43638 ) |
43639 sed "s/^/$as_me: WARNING: /" >&2
43640 ;;
43641esac
43642echo "$as_me:$LINENO: checking for $ac_header" >&5
43643echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
43644if eval "test \"\${$as_ac_Header+set}\" = set"; then
43645 echo $ECHO_N "(cached) $ECHO_C" >&6
43646else
ac1cb8d3 43647 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
43648fi
43649echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
43650echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
43651
43652fi
43653if test `eval echo '${'$as_ac_Header'}'` = yes; then
43654 cat >>confdefs.h <<_ACEOF
43655#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
43656_ACEOF
ee45c548 43657 wxUSE_JOYSTICK=yes
a848cd7e
SC
43658fi
43659
43660done
43661
ee45c548 43662 fi
4cb1d3da 43663
ee45c548
MW
43664 if test "$wxUSE_JOYSTICK" = "yes"; then
43665 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
43666#define wxUSE_JOYSTICK 1
43667_ACEOF
43668
ee45c548
MW
43669 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS joytest"
43670 else
43671 { echo "$as_me:$LINENO: WARNING: Joystick not supported by this system... disabled" >&5
43672echo "$as_me: WARNING: Joystick not supported by this system... disabled" >&2;}
a848cd7e
SC
43673 fi
43674fi
43675
43676
43677
43678if test "$wxUSE_FONTMAP" = "yes" ; then
43679 cat >>confdefs.h <<\_ACEOF
43680#define wxUSE_FONTMAP 1
43681_ACEOF
43682
43683fi
43684
43685if test "$wxUSE_UNICODE" = "yes" ; then
43686 cat >>confdefs.h <<\_ACEOF
43687#define wxUSE_UNICODE 1
43688_ACEOF
43689
43690
43691 if test "$USE_WIN32" != 1; then
43692 wxUSE_UNICODE_MSLU=no
43693 fi
43694
43695 if test "$USE_WIN32" = 1 -a "$wxUSE_UNICODE_MSLU" = "yes"; then
43696 echo "$as_me:$LINENO: checking for main in -lunicows" >&5
43697echo $ECHO_N "checking for main in -lunicows... $ECHO_C" >&6
43698if test "${ac_cv_lib_unicows_main+set}" = set; then
43699 echo $ECHO_N "(cached) $ECHO_C" >&6
43700else
43701 ac_check_lib_save_LIBS=$LIBS
43702LIBS="-lunicows $LIBS"
43703cat >conftest.$ac_ext <<_ACEOF
43704/* confdefs.h. */
43705_ACEOF
43706cat confdefs.h >>conftest.$ac_ext
43707cat >>conftest.$ac_ext <<_ACEOF
43708/* end confdefs.h. */
43709
43710
43711int
43712main ()
43713{
43714main ();
43715 ;
43716 return 0;
43717}
43718_ACEOF
43719rm -f conftest.$ac_objext conftest$ac_exeext
43720if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 43721 (eval $ac_link) 2>conftest.er1
a848cd7e 43722 ac_status=$?
ac1cb8d3
VS
43723 grep -v '^ *+' conftest.er1 >conftest.err
43724 rm -f conftest.er1
43725 cat conftest.err >&5
a848cd7e
SC
43726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43727 (exit $ac_status); } &&
c9a66001 43728 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
43729 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43730 (eval $ac_try) 2>&5
43731 ac_status=$?
43732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43733 (exit $ac_status); }; } &&
43734 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
43735 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43736 (eval $ac_try) 2>&5
43737 ac_status=$?
43738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43739 (exit $ac_status); }; }; then
43740 ac_cv_lib_unicows_main=yes
43741else
43742 echo "$as_me: failed program was:" >&5
43743sed 's/^/| /' conftest.$ac_ext >&5
43744
43745ac_cv_lib_unicows_main=no
43746fi
ac1cb8d3
VS
43747rm -f conftest.err conftest.$ac_objext \
43748 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
43749LIBS=$ac_check_lib_save_LIBS
43750fi
43751echo "$as_me:$LINENO: result: $ac_cv_lib_unicows_main" >&5
43752echo "${ECHO_T}$ac_cv_lib_unicows_main" >&6
43753if test $ac_cv_lib_unicows_main = yes; then
43754
43755 cat >>confdefs.h <<\_ACEOF
43756#define wxUSE_UNICODE_MSLU 1
43757_ACEOF
43758
43759
43760else
43761
43762 { echo "$as_me:$LINENO: WARNING: Compiler doesn't support MSLU (libunicows.a), disabled.
43763 Applications will only run on Windows NT/2000/XP!" >&5
43764echo "$as_me: WARNING: Compiler doesn't support MSLU (libunicows.a), disabled.
43765 Applications will only run on Windows NT/2000/XP!" >&2;}
43766 wxUSE_UNICODE_MSLU=no
43767
43768fi
43769
43770 fi
43771fi
43772
43773if test "$wxUSE_wxUSE_EXPERIMENTAL_PRINTF" = "yes"; then
43774 cat >>confdefs.h <<\_ACEOF
43775#define wxUSE_EXPERIMENTAL_PRINTF 1
43776_ACEOF
43777
43778fi
43779
43780
43781if test "$wxUSE_POSTSCRIPT" = "yes" ; then
43782 cat >>confdefs.h <<\_ACEOF
43783#define wxUSE_POSTSCRIPT 1
43784_ACEOF
43785
43786fi
43787
43788cat >>confdefs.h <<\_ACEOF
43789#define wxUSE_AFM_FOR_POSTSCRIPT 1
43790_ACEOF
43791
43792
43793cat >>confdefs.h <<\_ACEOF
43794#define wxUSE_NORMALIZED_PS_FONTS 1
43795_ACEOF
43796
43797
43798
43799if test "$wxUSE_CONSTRAINTS" = "yes"; then
43800 cat >>confdefs.h <<\_ACEOF
43801#define wxUSE_CONSTRAINTS 1
43802_ACEOF
43803
43804 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS layout"
43805fi
43806
8a7b1113
VZ
43807if test "$wxUSE_MDI" = "yes"; then
43808 cat >>confdefs.h <<\_ACEOF
43809#define wxUSE_MDI 1
43810_ACEOF
43811
43812
43813 if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
43814 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
43815#define wxUSE_MDI_ARCHITECTURE 1
43816_ACEOF
43817
8a7b1113
VZ
43818 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mdi"
43819 fi
a848cd7e
SC
43820fi
43821
43822if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = "yes" ; then
43823 cat >>confdefs.h <<\_ACEOF
43824#define wxUSE_DOC_VIEW_ARCHITECTURE 1
43825_ACEOF
43826
43827 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docview"
43828 if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
43829 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docvwmdi"
43830 fi
43831fi
43832
43833if test "$wxUSE_HELP" = "yes"; then
43834 cat >>confdefs.h <<\_ACEOF
43835#define wxUSE_HELP 1
43836_ACEOF
43837
43838 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS help"
43839
43840 if test "$wxUSE_MSW" = 1; then
43841 if test "$wxUSE_MS_HTML_HELP" = "yes"; then
43842 cat >>confdefs.h <<\_ACEOF
43843#define wxUSE_MS_HTML_HELP 1
43844_ACEOF
43845
43846 fi
43847 fi
43848
43849 if test "$wxUSE_WXHTML_HELP" = "yes"; then
43850 if test "$wxUSE_HTML" = "yes"; then
43851 cat >>confdefs.h <<\_ACEOF
43852#define wxUSE_WXHTML_HELP 1
43853_ACEOF
43854
43855 else
43856 { echo "$as_me:$LINENO: WARNING: Cannot use wxHTML-based help without wxHTML so it won't be compiled" >&5
43857echo "$as_me: WARNING: Cannot use wxHTML-based help without wxHTML so it won't be compiled" >&2;}
43858 wxUSE_WXHTML_HELP=no
43859 fi
43860 fi
43861fi
43862
43863if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then
43864 if test "$wxUSE_CONSTRAINTS" != "yes"; then
43865 { echo "$as_me:$LINENO: WARNING: Printing support cannot be used without constraints so it won't be compiled without it" >&5
43866echo "$as_me: WARNING: Printing support cannot be used without constraints so it won't be compiled without it" >&2;}
43867 else
43868 cat >>confdefs.h <<\_ACEOF
43869#define wxUSE_PRINTING_ARCHITECTURE 1
43870_ACEOF
43871
43872 fi
43873 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS printing"
43874fi
43875
43876if test "$wxUSE_PROLOGIO" = "yes" -o "$wxUSE_RESOURCES" = "yes"; then
43877 { { echo "$as_me:$LINENO: error: wxExpr and old-style resources are now available in contrib only" >&5
43878echo "$as_me: error: wxExpr and old-style resources are now available in contrib only" >&2;}
43879 { (exit 1); exit 1; }; }
43880fi
43881
43882
efdf6afe
VZ
43883if test "$wxUSE_METAFILE" = "yes"; then
43884 if test "$wxUSE_MSW" != 1 -a "$wxUSE_MAC" != 1 -a "$wxUSE_PM" != 1; then
43885 { echo "$as_me:$LINENO: WARNING: wxMetafile is not available on this system... disabled" >&5
43886echo "$as_me: WARNING: wxMetafile is not available on this system... disabled" >&2;}
43887 wxUSE_METAFILE=no
43888 fi
43889fi
43890
43891
a848cd7e
SC
43892if test "$USE_WIN32" = 1 -a \( "$wxUSE_DATAOBJ" = "yes" \
43893 -o "$wxUSE_CLIPBOARD" = "yes" \
43894 -o "$wxUSE_OLE" = "yes" \
43895 -o "$wxUSE_DRAG_AND_DROP" = "yes" \) ; then
43896
43897for ac_header in ole2.h
43898do
43899as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
43900if eval "test \"\${$as_ac_Header+set}\" = set"; then
43901 echo "$as_me:$LINENO: checking for $ac_header" >&5
43902echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
43903if eval "test \"\${$as_ac_Header+set}\" = set"; then
43904 echo $ECHO_N "(cached) $ECHO_C" >&6
43905fi
43906echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
43907echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
43908else
43909 # Is the header compilable?
43910echo "$as_me:$LINENO: checking $ac_header usability" >&5
43911echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
43912cat >conftest.$ac_ext <<_ACEOF
43913/* confdefs.h. */
43914_ACEOF
43915cat confdefs.h >>conftest.$ac_ext
43916cat >>conftest.$ac_ext <<_ACEOF
43917/* end confdefs.h. */
43918$ac_includes_default
43919#include <$ac_header>
43920_ACEOF
43921rm -f conftest.$ac_objext
43922if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 43923 (eval $ac_compile) 2>conftest.er1
a848cd7e 43924 ac_status=$?
ac1cb8d3
VS
43925 grep -v '^ *+' conftest.er1 >conftest.err
43926 rm -f conftest.er1
43927 cat conftest.err >&5
a848cd7e
SC
43928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43929 (exit $ac_status); } &&
c9a66001 43930 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
43931 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43932 (eval $ac_try) 2>&5
43933 ac_status=$?
43934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43935 (exit $ac_status); }; } &&
43936 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
43937 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43938 (eval $ac_try) 2>&5
43939 ac_status=$?
43940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43941 (exit $ac_status); }; }; then
43942 ac_header_compiler=yes
43943else
43944 echo "$as_me: failed program was:" >&5
43945sed 's/^/| /' conftest.$ac_ext >&5
43946
43947ac_header_compiler=no
43948fi
ac1cb8d3 43949rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
43950echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
43951echo "${ECHO_T}$ac_header_compiler" >&6
43952
43953# Is the header present?
43954echo "$as_me:$LINENO: checking $ac_header presence" >&5
43955echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
43956cat >conftest.$ac_ext <<_ACEOF
43957/* confdefs.h. */
43958_ACEOF
43959cat confdefs.h >>conftest.$ac_ext
43960cat >>conftest.$ac_ext <<_ACEOF
43961/* end confdefs.h. */
43962#include <$ac_header>
43963_ACEOF
43964if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
43965 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
43966 ac_status=$?
43967 grep -v '^ *+' conftest.er1 >conftest.err
43968 rm -f conftest.er1
43969 cat conftest.err >&5
43970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43971 (exit $ac_status); } >/dev/null; then
43972 if test -s conftest.err; then
5d7b7554
VZ
43973 ac_cpp_err=$ac_cxx_preproc_warn_flag
43974 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
43975 else
43976 ac_cpp_err=
43977 fi
43978else
43979 ac_cpp_err=yes
43980fi
43981if test -z "$ac_cpp_err"; then
43982 ac_header_preproc=yes
43983else
43984 echo "$as_me: failed program was:" >&5
43985sed 's/^/| /' conftest.$ac_ext >&5
43986
43987 ac_header_preproc=no
43988fi
43989rm -f conftest.err conftest.$ac_ext
43990echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
43991echo "${ECHO_T}$ac_header_preproc" >&6
43992
43993# So? What about this header?
5d7b7554 43994case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
ac1cb8d3 43995 yes:no: )
a848cd7e
SC
43996 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
43997echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
43998 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
43999echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
44000 ac_header_preproc=yes
a848cd7e 44001 ;;
ac1cb8d3 44002 no:yes:* )
a848cd7e
SC
44003 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
44004echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
44005 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
44006echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
44007 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
44008echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
44009 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
44010echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
44011 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
44012echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
44013 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
44014echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
44015 (
44016 cat <<\_ASBOX
ac1cb8d3
VS
44017## ----------------------------------------- ##
44018## Report this to wx-dev@lists.wxwidgets.org ##
44019## ----------------------------------------- ##
a848cd7e
SC
44020_ASBOX
44021 ) |
44022 sed "s/^/$as_me: WARNING: /" >&2
44023 ;;
44024esac
44025echo "$as_me:$LINENO: checking for $ac_header" >&5
44026echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
44027if eval "test \"\${$as_ac_Header+set}\" = set"; then
44028 echo $ECHO_N "(cached) $ECHO_C" >&6
44029else
ac1cb8d3 44030 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
44031fi
44032echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
44033echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
44034
44035fi
44036if test `eval echo '${'$as_ac_Header'}'` = yes; then
44037 cat >>confdefs.h <<_ACEOF
44038#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
44039_ACEOF
44040
44041fi
44042
44043done
44044
44045
44046 if test "$ac_cv_header_ole2_h" = "yes" ; then
44047 if test "$GCC" = yes ; then
a848cd7e
SC
44048 echo "$as_me:$LINENO: checking if g++ requires -fvtable-thunks" >&5
44049echo $ECHO_N "checking if g++ requires -fvtable-thunks... $ECHO_C" >&6
44050 cat >conftest.$ac_ext <<_ACEOF
44051/* confdefs.h. */
44052_ACEOF
44053cat confdefs.h >>conftest.$ac_ext
44054cat >>conftest.$ac_ext <<_ACEOF
44055/* end confdefs.h. */
44056#include <windows.h>
44057 #include <ole2.h>
44058int
44059main ()
44060{
44061
44062 ;
44063 return 0;
44064}
44065_ACEOF
44066rm -f conftest.$ac_objext
44067if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 44068 (eval $ac_compile) 2>conftest.er1
a848cd7e 44069 ac_status=$?
ac1cb8d3
VS
44070 grep -v '^ *+' conftest.er1 >conftest.err
44071 rm -f conftest.er1
44072 cat conftest.err >&5
a848cd7e
SC
44073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44074 (exit $ac_status); } &&
c9a66001 44075 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
44076 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44077 (eval $ac_try) 2>&5
44078 ac_status=$?
44079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44080 (exit $ac_status); }; } &&
44081 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
44082 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44083 (eval $ac_try) 2>&5
44084 ac_status=$?
44085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44086 (exit $ac_status); }; }; then
44087 echo "$as_me:$LINENO: result: no" >&5
44088echo "${ECHO_T}no" >&6
44089else
44090 echo "$as_me: failed program was:" >&5
44091sed 's/^/| /' conftest.$ac_ext >&5
44092
44093echo "$as_me:$LINENO: result: yes" >&5
44094echo "${ECHO_T}yes" >&6
5ff751d6 44095 WXCONFIG_CXXFLAGS="$WXCONFIG_CXXFLAGS -fvtable-thunks"
a848cd7e 44096fi
ac1cb8d3 44097rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
44098 LIBS=" -lrpcrt4 -loleaut32 -lole32 -luuid$LIBS"
44099 if test "$wxUSE_OLE" = "yes" ; then
44100 cat >>confdefs.h <<\_ACEOF
44101#define wxUSE_OLE 1
44102_ACEOF
44103
0b78747f 44104 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS oleauto"
a848cd7e
SC
44105 fi
44106 fi
44107
44108 if test "$wxUSE_DATAOBJ" = "yes" ; then
44109 cat >>confdefs.h <<\_ACEOF
44110#define wxUSE_DATAOBJ 1
44111_ACEOF
44112
44113 fi
44114 else
44115 { echo "$as_me:$LINENO: WARNING: Some features disabled because OLE headers not found" >&5
44116echo "$as_me: WARNING: Some features disabled because OLE headers not found" >&2;}
44117
44118 wxUSE_CLIPBOARD=no
44119 wxUSE_DRAG_AND_DROP=no
44120 wxUSE_DATAOBJ=no
44121 wxUSE_OLE=no
44122 fi
44123
44124 if test "$wxUSE_METAFILE" = "yes"; then
44125 cat >>confdefs.h <<\_ACEOF
44126#define wxUSE_METAFILE 1
44127_ACEOF
44128
44129
44130 cat >>confdefs.h <<\_ACEOF
44131#define wxUSE_ENH_METAFILE 1
44132_ACEOF
44133
44134 fi
44135fi
44136
44137if test "$wxUSE_IPC" = "yes"; then
0b78747f 44138 if test "$wxUSE_SOCKETS" != "yes" -a "$USE_WIN32" != 1; then
77ffb593
JS
44139 { echo "$as_me:$LINENO: WARNING: wxWidgets IPC classes require sockets... disabled" >&5
44140echo "$as_me: WARNING: wxWidgets IPC classes require sockets... disabled" >&2;}
0b78747f 44141 wxUSE_IPC=no
a848cd7e
SC
44142 fi
44143
0b78747f
MW
44144 if test "$wxUSE_IPC" = "yes"; then
44145 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
44146#define wxUSE_IPC 1
44147_ACEOF
44148
0b78747f
MW
44149 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS ipc"
44150 fi
a848cd7e
SC
44151fi
44152
eb730a0c 44153if test "$wxUSE_DATAOBJ" = "yes"; then
2113bc77
MW
44154 if test "$wxUSE_MGL" = 1; then
44155 { echo "$as_me:$LINENO: WARNING: wxDataObject not yet supported under MGL... disabled" >&5
44156echo "$as_me: WARNING: wxDataObject not yet supported under MGL... disabled" >&2;}
44157 wxUSE_DATAOBJ=no
44158 else
44159 cat >>confdefs.h <<\_ACEOF
eb730a0c
JS
44160#define wxUSE_DATAOBJ 1
44161_ACEOF
44162
2113bc77 44163 fi
eb730a0c
JS
44164else
44165 { echo "$as_me:$LINENO: WARNING: Clipboard and drag-and-drop require wxDataObject -- disabled" >&5
44166echo "$as_me: WARNING: Clipboard and drag-and-drop require wxDataObject -- disabled" >&2;}
44167 wxUSE_CLIPBOARD=no
44168 wxUSE_DRAG_AND_DROP=no
44169fi
44170
a848cd7e
SC
44171if test "$wxUSE_CLIPBOARD" = "yes"; then
44172 if test "$wxUSE_MGL" = 1; then
44173 { echo "$as_me:$LINENO: WARNING: Clipboard not yet supported under MGL... disabled" >&5
44174echo "$as_me: WARNING: Clipboard not yet supported under MGL... disabled" >&2;}
44175 wxUSE_CLIPBOARD=no
44176 fi
44177
44178 if test "$wxUSE_CLIPBOARD" = "yes"; then
44179 cat >>confdefs.h <<\_ACEOF
44180#define wxUSE_CLIPBOARD 1
44181_ACEOF
44182
a848cd7e
SC
44183 fi
44184fi
44185
44186if test "$wxUSE_DRAG_AND_DROP" = "yes" ; then
44187 if test "$wxUSE_GTK" = 1; then
44188 if test "$WXGTK12" != 1; then
44189 { echo "$as_me:$LINENO: WARNING: Drag and drop is only supported under GTK+ 1.2... disabled" >&5
44190echo "$as_me: WARNING: Drag and drop is only supported under GTK+ 1.2... disabled" >&2;}
44191 wxUSE_DRAG_AND_DROP=no
44192 fi
44193 fi
44194
44195 if test "$wxUSE_MOTIF" = 1; then
44196 { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under Motif... disabled" >&5
44197echo "$as_me: WARNING: Drag and drop not yet supported under Motif... disabled" >&2;}
44198 wxUSE_DRAG_AND_DROP=no
44199 fi
44200
44201 if test "$wxUSE_X11" = 1; then
44202 { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under X11... disabled" >&5
44203echo "$as_me: WARNING: Drag and drop not yet supported under X11... disabled" >&2;}
44204 wxUSE_DRAG_AND_DROP=no
44205 fi
44206
44207 if test "$wxUSE_MGL" = 1; then
44208 { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under MGL... disabled" >&5
44209echo "$as_me: WARNING: Drag and drop not yet supported under MGL... disabled" >&2;}
44210 wxUSE_DRAG_AND_DROP=no
44211 fi
44212
44213 if test "$wxUSE_DRAG_AND_DROP" = "yes"; then
44214 cat >>confdefs.h <<\_ACEOF
44215#define wxUSE_DRAG_AND_DROP 1
44216_ACEOF
44217
44218 fi
44219
44220fi
44221
44222if test "$wxUSE_DRAG_AND_DROP" = "yes" -o "$wxUSE_CLIPBOARD" = "yes"; then
44223 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dnd"
44224fi
44225
44226if test "$wxUSE_SPLINES" = "yes" ; then
44227 cat >>confdefs.h <<\_ACEOF
44228#define wxUSE_SPLINES 1
44229_ACEOF
44230
44231fi
44232
fbe2ca43
SN
44233if test "$wxUSE_MOUSEWHEEL" = "yes" ; then
44234 cat >>confdefs.h <<\_ACEOF
44235#define wxUSE_MOUSEWHEEL 1
44236_ACEOF
44237
44238fi
44239
a848cd7e
SC
44240
44241USES_CONTROLS=0
44242if test "$wxUSE_CONTROLS" = "yes"; then
44243 USES_CONTROLS=1
44244fi
44245
44246if test "$wxUSE_ACCEL" = "yes"; then
44247 cat >>confdefs.h <<\_ACEOF
44248#define wxUSE_ACCEL 1
44249_ACEOF
44250
44251 USES_CONTROLS=1
44252fi
44253
44254if test "$wxUSE_BUTTON" = "yes"; then
44255 cat >>confdefs.h <<\_ACEOF
44256#define wxUSE_BUTTON 1
44257_ACEOF
44258
44259 USES_CONTROLS=1
44260fi
44261
44262if test "$wxUSE_BMPBUTTON" = "yes"; then
44263 cat >>confdefs.h <<\_ACEOF
44264#define wxUSE_BMPBUTTON 1
44265_ACEOF
44266
44267 USES_CONTROLS=1
44268fi
44269
44270if test "$wxUSE_CALCTRL" = "yes"; then
44271 cat >>confdefs.h <<\_ACEOF
44272#define wxUSE_CALENDARCTRL 1
44273_ACEOF
44274
44275 USES_CONTROLS=1
44276 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS calendar"
44277fi
44278
44279if test "$wxUSE_CARET" = "yes"; then
44280 cat >>confdefs.h <<\_ACEOF
44281#define wxUSE_CARET 1
44282_ACEOF
44283
44284 USES_CONTROLS=1
44285 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS caret"
44286fi
44287
44288if test "$wxUSE_COMBOBOX" = "yes"; then
44289 cat >>confdefs.h <<\_ACEOF
44290#define wxUSE_COMBOBOX 1
44291_ACEOF
44292
44293 USES_CONTROLS=1
44294fi
44295
a57d600f 44296if test "$wxUSE_COMBOCTRL" = "yes"; then
642bcba9 44297 cat >>confdefs.h <<\_ACEOF
a57d600f 44298#define wxUSE_COMBOCTRL 1
642bcba9
VZ
44299_ACEOF
44300
44301 USES_CONTROLS=1
44302fi
44303
a848cd7e
SC
44304if test "$wxUSE_CHOICE" = "yes"; then
44305 cat >>confdefs.h <<\_ACEOF
44306#define wxUSE_CHOICE 1
44307_ACEOF
44308
44309 USES_CONTROLS=1
44310fi
44311
92bbdbcd
WS
44312if test "$wxUSE_CHOICEBOOK" = "yes"; then
44313 cat >>confdefs.h <<\_ACEOF
44314#define wxUSE_CHOICEBOOK 1
44315_ACEOF
44316
44317 USES_CONTROLS=1
44318fi
44319
a848cd7e
SC
44320if test "$wxUSE_CHECKBOX" = "yes"; then
44321 cat >>confdefs.h <<\_ACEOF
44322#define wxUSE_CHECKBOX 1
44323_ACEOF
44324
44325 USES_CONTROLS=1
44326fi
44327
44328if test "$wxUSE_CHECKLST" = "yes"; then
44329 cat >>confdefs.h <<\_ACEOF
44330#define wxUSE_CHECKLISTBOX 1
44331_ACEOF
44332
44333 USES_CONTROLS=1
44334 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS checklst"
44335fi
44336
e9263684
VZ
44337if test "$wxUSE_COLOURPICKERCTRL" = "yes"; then
44338 cat >>confdefs.h <<\_ACEOF
44339#define wxUSE_COLOURPICKERCTRL 1
44340_ACEOF
44341
44342 USES_CONTROLS=1
44343fi
44344
da98e9be
VZ
44345if test "$wxUSE_DATEPICKCTRL" = "yes"; then
44346 cat >>confdefs.h <<\_ACEOF
44347#define wxUSE_DATEPICKCTRL 1
44348_ACEOF
44349
44350 USES_CONTROLS=1
44351fi
44352
e9263684
VZ
44353if test "$wxUSE_DIRPICKERCTRL" = "yes"; then
44354 cat >>confdefs.h <<\_ACEOF
44355#define wxUSE_DIRPICKERCTRL 1
44356_ACEOF
44357
44358 USES_CONTROLS=1
44359fi
44360
44361if test "$wxUSE_FILEPICKERCTRL" = "yes"; then
44362 cat >>confdefs.h <<\_ACEOF
44363#define wxUSE_FILEPICKERCTRL 1
44364_ACEOF
44365
44366 USES_CONTROLS=1
44367fi
44368
44369if test "$wxUSE_FONTPICKERCTRL" = "yes"; then
44370 cat >>confdefs.h <<\_ACEOF
44371#define wxUSE_FONTPICKERCTRL 1
44372_ACEOF
44373
44374 USES_CONTROLS=1
44375fi
44376
a848cd7e
SC
44377if test "$wxUSE_DISPLAY" = "yes"; then
44378 cat >>confdefs.h <<\_ACEOF
44379#define wxUSE_DISPLAY 1
44380_ACEOF
44381
0b78747f 44382 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS display multimon"
a848cd7e
SC
44383fi
44384
44385if test "$wxUSE_GAUGE" = "yes"; then
44386 cat >>confdefs.h <<\_ACEOF
44387#define wxUSE_GAUGE 1
44388_ACEOF
44389
44390 USES_CONTROLS=1
44391fi
44392
44393if test "$wxUSE_GRID" = "yes"; then
44394 cat >>confdefs.h <<\_ACEOF
44395#define wxUSE_GRID 1
44396_ACEOF
44397
44398 USES_CONTROLS=1
44399 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS grid"
44400fi
44401
6954625c
VZ
44402if test "$wxUSE_HYPERLINKCTRL" = "yes"; then
44403 cat >>confdefs.h <<\_ACEOF
44404#define wxUSE_HYPERLINKCTRL 1
44405_ACEOF
44406
44407 USES_CONTROLS=1
44408fi
44409
20e34ecc
RR
44410if test "$wxUSE_DATAVIEWCTRL" = "yes"; then
44411 cat >>confdefs.h <<\_ACEOF
44412#define wxUSE_DATAVIEWCTRL 1
44413_ACEOF
44414
44415 USES_CONTROLS=1
44416 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dataview"
44417fi
44418
a848cd7e
SC
44419if test "$wxUSE_IMAGLIST" = "yes"; then
44420 cat >>confdefs.h <<\_ACEOF
44421#define wxUSE_IMAGLIST 1
44422_ACEOF
44423
44424fi
44425
44426if test "$wxUSE_LISTBOOK" = "yes"; then
44427 cat >>confdefs.h <<\_ACEOF
44428#define wxUSE_LISTBOOK 1
44429_ACEOF
44430
44431 USES_CONTROLS=1
44432fi
44433
44434if test "$wxUSE_LISTBOX" = "yes"; then
44435 cat >>confdefs.h <<\_ACEOF
44436#define wxUSE_LISTBOX 1
44437_ACEOF
44438
44439 USES_CONTROLS=1
0b78747f 44440 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS listbox"
a848cd7e
SC
44441fi
44442
44443if test "$wxUSE_LISTCTRL" = "yes"; then
44444 if test "$wxUSE_IMAGLIST" = "yes"; then
44445 cat >>confdefs.h <<\_ACEOF
44446#define wxUSE_LISTCTRL 1
44447_ACEOF
44448
44449 USES_CONTROLS=1
44450 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS listctrl"
44451 else
44452 { echo "$as_me:$LINENO: WARNING: wxListCtrl requires wxImageList and won't be compiled without it" >&5
44453echo "$as_me: WARNING: wxListCtrl requires wxImageList and won't be compiled without it" >&2;}
44454 fi
44455fi
44456
44457if test "$wxUSE_NOTEBOOK" = "yes"; then
44458 cat >>confdefs.h <<\_ACEOF
44459#define wxUSE_NOTEBOOK 1
44460_ACEOF
44461
44462 USES_CONTROLS=1
44463 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS notebook"
44464fi
44465
a57d600f 44466if test "$wxUSE_ODCOMBOBOX" = "yes"; then
642bcba9 44467 cat >>confdefs.h <<\_ACEOF
a57d600f 44468#define wxUSE_ODCOMBOBOX 1
642bcba9
VZ
44469_ACEOF
44470
44471 USES_CONTROLS=1
44472 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS combo"
44473fi
44474
a848cd7e
SC
44475
44476if test "$wxUSE_RADIOBOX" = "yes"; then
44477 cat >>confdefs.h <<\_ACEOF
44478#define wxUSE_RADIOBOX 1
44479_ACEOF
44480
44481 USES_CONTROLS=1
44482fi
44483
44484if test "$wxUSE_RADIOBTN" = "yes"; then
44485 cat >>confdefs.h <<\_ACEOF
44486#define wxUSE_RADIOBTN 1
44487_ACEOF
44488
44489 USES_CONTROLS=1
44490fi
44491
44492if test "$wxUSE_SASH" = "yes"; then
44493 cat >>confdefs.h <<\_ACEOF
44494#define wxUSE_SASH 1
44495_ACEOF
44496
44497 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sashtest"
44498fi
44499
44500if test "$wxUSE_SCROLLBAR" = "yes"; then
44501 cat >>confdefs.h <<\_ACEOF
44502#define wxUSE_SCROLLBAR 1
44503_ACEOF
44504
44505 USES_CONTROLS=1
44506 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS scroll scrollsub"
44507fi
44508
44509if test "$wxUSE_SLIDER" = "yes"; then
44510 cat >>confdefs.h <<\_ACEOF
44511#define wxUSE_SLIDER 1
44512_ACEOF
44513
44514 USES_CONTROLS=1
44515fi
44516
44517if test "$wxUSE_SPINBTN" = "yes"; then
44518 cat >>confdefs.h <<\_ACEOF
44519#define wxUSE_SPINBTN 1
44520_ACEOF
44521
44522 USES_CONTROLS=1
44523fi
44524
44525if test "$wxUSE_SPINCTRL" = "yes"; then
44526 cat >>confdefs.h <<\_ACEOF
44527#define wxUSE_SPINCTRL 1
44528_ACEOF
44529
44530 USES_CONTROLS=1
44531fi
44532
44533if test "$wxUSE_SPLITTER" = "yes"; then
44534 cat >>confdefs.h <<\_ACEOF
44535#define wxUSE_SPLITTER 1
44536_ACEOF
44537
44538 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splitter"
44539fi
44540
44541if test "$wxUSE_STATBMP" = "yes"; then
44542 cat >>confdefs.h <<\_ACEOF
44543#define wxUSE_STATBMP 1
44544_ACEOF
44545
44546 USES_CONTROLS=1
44547fi
44548
44549if test "$wxUSE_STATBOX" = "yes"; then
44550 cat >>confdefs.h <<\_ACEOF
44551#define wxUSE_STATBOX 1
44552_ACEOF
44553
44554 USES_CONTROLS=1
44555fi
44556
44557if test "$wxUSE_STATTEXT" = "yes"; then
44558 cat >>confdefs.h <<\_ACEOF
44559#define wxUSE_STATTEXT 1
44560_ACEOF
44561
44562 USES_CONTROLS=1
44563fi
44564
44565if test "$wxUSE_STATLINE" = "yes"; then
44566 cat >>confdefs.h <<\_ACEOF
44567#define wxUSE_STATLINE 1
44568_ACEOF
44569
44570 USES_CONTROLS=1
44571fi
44572
44573if test "$wxUSE_STATUSBAR" = "yes"; then
da4486fb
VZ
44574 cat >>confdefs.h <<\_ACEOF
44575#define wxUSE_NATIVE_STATUSBAR 1
44576_ACEOF
44577
a848cd7e
SC
44578 cat >>confdefs.h <<\_ACEOF
44579#define wxUSE_STATUSBAR 1
44580_ACEOF
44581
44582 USES_CONTROLS=1
44583
44584 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS statbar"
44585fi
44586
f10e38c4 44587if test "$wxUSE_TAB_DIALOG" = "yes"; then
a848cd7e
SC
44588 cat >>confdefs.h <<\_ACEOF
44589#define wxUSE_TAB_DIALOG 1
44590_ACEOF
44591
a848cd7e
SC
44592fi
44593
44594if test "$wxUSE_TEXTCTRL" = "yes"; then
44595 cat >>confdefs.h <<\_ACEOF
44596#define wxUSE_TEXTCTRL 1
44597_ACEOF
44598
44599 USES_CONTROLS=1
44600 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS text"
44601fi
44602
44603if test "$wxUSE_TOGGLEBTN" = "yes"; then
44604 if test "$wxUSE_COCOA" = 1 ; then
44605 { echo "$as_me:$LINENO: WARNING: Toggle button not yet supported under Mac OS X... disabled" >&5
44606echo "$as_me: WARNING: Toggle button not yet supported under Mac OS X... disabled" >&2;}
44607 wxUSE_TOGGLEBTN=no
44608 fi
a848cd7e
SC
44609
44610 if test "$wxUSE_TOGGLEBTN" = "yes"; then
44611 cat >>confdefs.h <<\_ACEOF
44612#define wxUSE_TOGGLEBTN 1
44613_ACEOF
44614
44615 USES_CONTROLS=1
44616 fi
44617fi
44618
44619if test "$wxUSE_TOOLBAR_SIMPLE" = "yes"; then
44620 cat >>confdefs.h <<\_ACEOF
44621#define wxUSE_TOOLBAR_SIMPLE 1
44622_ACEOF
44623
44624 wxUSE_TOOLBAR="yes"
44625 USES_CONTROLS=1
44626fi
44627
44628if test "$wxUSE_TOOLBAR" = "yes"; then
44629 cat >>confdefs.h <<\_ACEOF
44630#define wxUSE_TOOLBAR 1
44631_ACEOF
44632
44633 USES_CONTROLS=1
44634
44635 if test "$wxUSE_TOOLBAR_SIMPLE" != "yes"; then
44636 wxUSE_TOOLBAR_NATIVE="yes"
44637 fi
44638
44639 if test "$wxUSE_TOOLBAR_NATIVE" = "yes"; then
44640 cat >>confdefs.h <<\_ACEOF
44641#define wxUSE_TOOLBAR_NATIVE 1
44642_ACEOF
44643
44644 USES_CONTROLS=1
44645 fi
44646
44647 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS toolbar"
44648fi
44649
44650if test "$wxUSE_TOOLTIPS" = "yes"; then
44651 if test "$wxUSE_MOTIF" = 1; then
44652 { echo "$as_me:$LINENO: WARNING: wxTooltip not supported yet under Motif... disabled" >&5
44653echo "$as_me: WARNING: wxTooltip not supported yet under Motif... disabled" >&2;}
44654 else
44655 if test "$wxUSE_UNIVERSAL" = "yes"; then
44656 { echo "$as_me:$LINENO: WARNING: wxTooltip not supported yet in wxUniversal... disabled" >&5
44657echo "$as_me: WARNING: wxTooltip not supported yet in wxUniversal... disabled" >&2;}
44658 else
44659 cat >>confdefs.h <<\_ACEOF
44660#define wxUSE_TOOLTIPS 1
44661_ACEOF
44662
44663 fi
44664 fi
44665fi
44666
0093c2fc
VZ
44667if test "$wxUSE_TREEBOOK" = "yes"; then
44668 cat >>confdefs.h <<\_ACEOF
44669#define wxUSE_TREEBOOK 1
44670_ACEOF
44671
44672 USES_CONTROLS=1
44673fi
44674
5ec3bc43
JS
44675if test "$wxUSE_TOOLBOOK" = "yes"; then
44676 cat >>confdefs.h <<\_ACEOF
44677#define wxUSE_TOOLBOOK 1
44678_ACEOF
44679
44680 USES_CONTROLS=1
44681fi
44682
a848cd7e
SC
44683if test "$wxUSE_TREECTRL" = "yes"; then
44684 if test "$wxUSE_IMAGLIST" = "yes"; then
44685 cat >>confdefs.h <<\_ACEOF
44686#define wxUSE_TREECTRL 1
44687_ACEOF
44688
44689 USES_CONTROLS=1
44690 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS treectrl"
44691 else
44692 { echo "$as_me:$LINENO: WARNING: wxTreeCtrl requires wxImageList and won't be compiled without it" >&5
44693echo "$as_me: WARNING: wxTreeCtrl requires wxImageList and won't be compiled without it" >&2;}
44694 fi
44695fi
44696
44697if test "$wxUSE_POPUPWIN" = "yes"; then
44698 if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1 ; then
44699 { echo "$as_me:$LINENO: WARNING: Popup window not yet supported under Mac OS X... disabled" >&5
44700echo "$as_me: WARNING: Popup window not yet supported under Mac OS X... disabled" >&2;}
44701 else
44702 if test "$wxUSE_PM" = 1; then
44703 { echo "$as_me:$LINENO: WARNING: wxPopupWindow not yet supported under PM... disabled" >&5
44704echo "$as_me: WARNING: wxPopupWindow not yet supported under PM... disabled" >&2;}
44705 else
44706 cat >>confdefs.h <<\_ACEOF
44707#define wxUSE_POPUPWIN 1
44708_ACEOF
44709
0b78747f 44710 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS popup"
a848cd7e
SC
44711
44712 USES_CONTROLS=1
44713 fi
44714 fi
44715fi
44716
0dcd06dd 44717if test "$wxUSE_DIALUP_MANAGER" = "yes"; then
b843b628
MB
44718 if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1 ; then
44719 { echo "$as_me:$LINENO: WARNING: Dialup manager not yet supported under Mac OS X... disabled" >&5
44720echo "$as_me: WARNING: Dialup manager not yet supported under Mac OS X... disabled" >&2;}
44721 else
44722 cat >>confdefs.h <<\_ACEOF
44723#define wxUSE_DIALUP_MANAGER 1
44724_ACEOF
44725
44726 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dialup"
44727 fi
44728fi
44729
a848cd7e
SC
44730if test "$wxUSE_TIPWINDOW" = "yes"; then
44731 if test "$wxUSE_PM" = 1; then
44732 { echo "$as_me:$LINENO: WARNING: wxTipWindow not yet supported under PM... disabled" >&5
44733echo "$as_me: WARNING: wxTipWindow not yet supported under PM... disabled" >&2;}
44734 else
44735 cat >>confdefs.h <<\_ACEOF
44736#define wxUSE_TIPWINDOW 1
44737_ACEOF
44738
44739 fi
44740fi
44741
44742if test "$USES_CONTROLS" = 1; then
44743 cat >>confdefs.h <<\_ACEOF
44744#define wxUSE_CONTROLS 1
44745_ACEOF
44746
44747fi
44748
44749
44750if test "$wxUSE_ACCESSIBILITY" = "yes"; then
44751 cat >>confdefs.h <<\_ACEOF
44752#define wxUSE_ACCESSIBILITY 1
44753_ACEOF
44754
44755 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS access"
44756fi
44757
38b4a946
VZ
44758if test "$wxUSE_DC_CACHEING" = "yes"; then
44759 cat >>confdefs.h <<\_ACEOF
44760#define wxUSE_DC_CACHEING 1
44761_ACEOF
44762
44763fi
44764
a848cd7e
SC
44765if test "$wxUSE_DRAGIMAGE" = "yes"; then
44766 cat >>confdefs.h <<\_ACEOF
44767#define wxUSE_DRAGIMAGE 1
44768_ACEOF
44769
44770 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dragimag"
44771fi
44772
44773if test "$wxUSE_EXCEPTIONS" = "yes"; then
07bea8f0
VS
44774 if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then
44775 { echo "$as_me:$LINENO: WARNING: --enable-exceptions can't be used with --enable-no_exceptions" >&5
44776echo "$as_me: WARNING: --enable-exceptions can't be used with --enable-no_exceptions" >&2;}
44777 else
44778 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
44779#define wxUSE_EXCEPTIONS 1
44780_ACEOF
44781
07bea8f0
VS
44782 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS except"
44783 fi
a848cd7e
SC
44784fi
44785
44786USE_HTML=0
44787if test "$wxUSE_HTML" = "yes"; then
44788 cat >>confdefs.h <<\_ACEOF
44789#define wxUSE_HTML 1
44790_ACEOF
44791
44792 USE_HTML=1
44793 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html html/about html/help html/helpview html/printing html/test html/virtual html/widget html/zip htlbox"
de59c161
RD
44794 if test "$wxUSE_MAC" = 1; then
44795 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html/htmlctrl"
44796 fi
a848cd7e 44797fi
646b6ec1 44798if test "$wxUSE_WEBKIT" = "yes"; then
1e9e8aba 44799 if test "$wxUSE_MAC" = 1 -a "$USE_DARWIN" = 1; then
07bea8f0 44800 old_CPPFLAGS="$CPPFLAGS"
c92ad099 44801 CPPFLAGS="-x objective-c++ $CPPFLAGS"
07bea8f0
VS
44802 echo "$as_me:$LINENO: checking for WebKit/HIWebView.h" >&5
44803echo $ECHO_N "checking for WebKit/HIWebView.h... $ECHO_C" >&6
44804if test "${ac_cv_header_WebKit_HIWebView_h+set}" = set; then
44805 echo $ECHO_N "(cached) $ECHO_C" >&6
44806else
44807 cat >conftest.$ac_ext <<_ACEOF
44808/* confdefs.h. */
44809_ACEOF
44810cat confdefs.h >>conftest.$ac_ext
44811cat >>conftest.$ac_ext <<_ACEOF
44812/* end confdefs.h. */
44813#include <Carbon/Carbon.h>
44814
44815#include <WebKit/HIWebView.h>
44816_ACEOF
44817rm -f conftest.$ac_objext
44818if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
44819 (eval $ac_compile) 2>conftest.er1
44820 ac_status=$?
44821 grep -v '^ *+' conftest.er1 >conftest.err
44822 rm -f conftest.er1
44823 cat conftest.err >&5
44824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44825 (exit $ac_status); } &&
c9a66001 44826 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
07bea8f0
VS
44827 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44828 (eval $ac_try) 2>&5
44829 ac_status=$?
44830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44831 (exit $ac_status); }; } &&
44832 { ac_try='test -s conftest.$ac_objext'
44833 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44834 (eval $ac_try) 2>&5
44835 ac_status=$?
44836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44837 (exit $ac_status); }; }; then
44838 ac_cv_header_WebKit_HIWebView_h=yes
44839else
44840 echo "$as_me: failed program was:" >&5
44841sed 's/^/| /' conftest.$ac_ext >&5
44842
44843ac_cv_header_WebKit_HIWebView_h=no
44844fi
44845rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
44846fi
44847echo "$as_me:$LINENO: result: $ac_cv_header_WebKit_HIWebView_h" >&5
44848echo "${ECHO_T}$ac_cv_header_WebKit_HIWebView_h" >&6
44849if test $ac_cv_header_WebKit_HIWebView_h = yes; then
44850
44851 cat >>confdefs.h <<\_ACEOF
646b6ec1
VS
44852#define wxUSE_WEBKIT 1
44853_ACEOF
44854
07bea8f0
VS
44855 WEBKIT_LINK="-framework WebKit"
44856
44857else
44858
44859 { echo "$as_me:$LINENO: WARNING: WebKit headers not found; disabling wxWebKit" >&5
44860echo "$as_me: WARNING: WebKit headers not found; disabling wxWebKit" >&2;}
44861 wxUSE_WEBKIT=no
44862
646b6ec1
VS
44863fi
44864
07bea8f0
VS
44865
44866 CPPFLAGS="$old_CPPFLAGS"
44867 elif test "$wxUSE_COCOA" = 1; then
44868 cat >>confdefs.h <<\_ACEOF
44869#define wxUSE_WEBKIT 1
44870_ACEOF
44871
44872 else
44873 wxUSE_WEBKIT=no
44874 fi
44875fi
44876
9a8f0513
VS
44877USE_XRC=0
44878if test "$wxUSE_XRC" = "yes"; then
d2ebf0b7
VS
44879 if test "$wxUSE_XML" != "yes"; then
44880 { echo "$as_me:$LINENO: WARNING: XML library not built, XRC resources disabled" >&5
44881echo "$as_me: WARNING: XML library not built, XRC resources disabled" >&2;}
44882 wxUSE_XRC=no
44883 else
44884 cat >>confdefs.h <<\_ACEOF
9a8f0513
VS
44885#define wxUSE_XRC 1
44886_ACEOF
44887
d2ebf0b7
VS
44888 USE_XRC=1
44889 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS xrc"
44890 fi
9a8f0513 44891fi
07bea8f0 44892
3f60522a
JS
44893USE_AUI=0
44894if test "$wxUSE_AUI" = "yes"; then
44895 cat >>confdefs.h <<\_ACEOF
44896#define wxUSE_AUI 1
44897_ACEOF
44898
44899 USE_AUI=1
44900 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS aui"
44901fi
44902
a848cd7e
SC
44903if test "$wxUSE_MENUS" = "yes"; then
44904 cat >>confdefs.h <<\_ACEOF
44905#define wxUSE_MENUS 1
44906_ACEOF
44907
44908 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS menu"
44909fi
44910
44911if test "$wxUSE_METAFILE" = "yes"; then
44912 cat >>confdefs.h <<\_ACEOF
44913#define wxUSE_METAFILE 1
44914_ACEOF
44915
44916fi
44917
44918if test "$wxUSE_MIMETYPE" = "yes"; then
44919 cat >>confdefs.h <<\_ACEOF
44920#define wxUSE_MIMETYPE 1
44921_ACEOF
44922
44923fi
44924
44925if test "$wxUSE_MINIFRAME" = "yes"; then
44926 cat >>confdefs.h <<\_ACEOF
44927#define wxUSE_MINIFRAME 1
44928_ACEOF
44929
44930 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS minifram"
44931fi
44932
44933if test "$wxUSE_SYSTEM_OPTIONS" = "yes"; then
44934 cat >>confdefs.h <<\_ACEOF
44935#define wxUSE_SYSTEM_OPTIONS 1
44936_ACEOF
44937
44938 if test "$TOOLKIT" = "MSW" -o "$TOOLKIT" = "GTK" -o "$TOOLKIT" = "X11" -o \
a49baeab 44939 "$TOOLKIT" = "MOTIF" -o "$TOOLKIT" = "COCOA"; then
a848cd7e
SC
44940 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS taskbar"
44941 fi
44942fi
44943
44944
44945if test "$wxUSE_VALIDATORS" = "yes"; then
44946 cat >>confdefs.h <<\_ACEOF
44947#define wxUSE_VALIDATORS 1
44948_ACEOF
44949
44950 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS validate"
44951fi
44952
44953if test "$wxUSE_PALETTE" = "yes" ; then
44954 cat >>confdefs.h <<\_ACEOF
44955#define wxUSE_PALETTE 1
44956_ACEOF
44957
44958fi
44959
44960if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_UNICODE_MSLU" = "yes" ; then
44961 LIBS=" -lunicows $LIBS"
44962fi
44963
91dea314
MW
44964USE_RICHTEXT=0
44965if test "$wxUSE_RICHTEXT" = "yes"; then
44966 cat >>confdefs.h <<\_ACEOF
44967#define wxUSE_RICHTEXT 1
44968_ACEOF
44969
44970 USE_RICHTEXT=1
44971 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS richtext"
44972fi
44973
a848cd7e
SC
44974
44975if test "$wxUSE_IMAGE" = "yes" ; then
44976 cat >>confdefs.h <<\_ACEOF
44977#define wxUSE_IMAGE 1
44978_ACEOF
44979
44980
44981 if test "$wxUSE_GIF" = "yes" ; then
44982 cat >>confdefs.h <<\_ACEOF
44983#define wxUSE_GIF 1
44984_ACEOF
44985
44986 fi
44987
44988 if test "$wxUSE_PCX" = "yes" ; then
44989 cat >>confdefs.h <<\_ACEOF
44990#define wxUSE_PCX 1
44991_ACEOF
44992
44993 fi
44994
44995 if test "$wxUSE_IFF" = "yes" ; then
44996 cat >>confdefs.h <<\_ACEOF
44997#define wxUSE_IFF 1
44998_ACEOF
44999
45000 fi
45001
45002 if test "$wxUSE_PNM" = "yes" ; then
45003 cat >>confdefs.h <<\_ACEOF
45004#define wxUSE_PNM 1
45005_ACEOF
45006
45007 fi
45008
45009 if test "$wxUSE_XPM" = "yes" ; then
45010 cat >>confdefs.h <<\_ACEOF
45011#define wxUSE_XPM 1
45012_ACEOF
45013
45014 fi
45015
45016 if test "$wxUSE_ICO_CUR" = "yes" ; then
45017 cat >>confdefs.h <<\_ACEOF
45018#define wxUSE_ICO_CUR 1
45019_ACEOF
45020
45021 fi
45022fi
45023
45024
45025if test "$wxUSE_CHOICEDLG" = "yes"; then
45026 cat >>confdefs.h <<\_ACEOF
45027#define wxUSE_CHOICEDLG 1
45028_ACEOF
45029
45030fi
45031
45032if test "$wxUSE_COLOURDLG" = "yes"; then
45033 cat >>confdefs.h <<\_ACEOF
45034#define wxUSE_COLOURDLG 1
45035_ACEOF
45036
45037fi
45038
45039if test "$wxUSE_FILEDLG" = "yes"; then
45040 cat >>confdefs.h <<\_ACEOF
45041#define wxUSE_FILEDLG 1
45042_ACEOF
45043
45044fi
45045
45046if test "$wxUSE_FINDREPLDLG" = "yes"; then
45047 cat >>confdefs.h <<\_ACEOF
45048#define wxUSE_FINDREPLDLG 1
45049_ACEOF
45050
45051fi
45052
45053if test "$wxUSE_FONTDLG" = "yes"; then
45054 cat >>confdefs.h <<\_ACEOF
45055#define wxUSE_FONTDLG 1
45056_ACEOF
45057
45058fi
45059
45060if test "$wxUSE_DIRDLG" = "yes"; then
45061 if test "$wxUSE_TREECTRL" != "yes"; then
45062 { echo "$as_me:$LINENO: WARNING: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" >&5
45063echo "$as_me: WARNING: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" >&2;}
45064 else
45065 cat >>confdefs.h <<\_ACEOF
45066#define wxUSE_DIRDLG 1
45067_ACEOF
45068
45069 fi
45070fi
45071
45072if test "$wxUSE_MSGDLG" = "yes"; then
45073 cat >>confdefs.h <<\_ACEOF
45074#define wxUSE_MSGDLG 1
45075_ACEOF
45076
45077fi
45078
45079if test "$wxUSE_NUMBERDLG" = "yes"; then
45080 cat >>confdefs.h <<\_ACEOF
45081#define wxUSE_NUMBERDLG 1
45082_ACEOF
45083
45084fi
45085
45086if test "$wxUSE_PROGRESSDLG" = "yes"; then
45087 if test "$wxUSE_CONSTRAINTS" != "yes"; then
45088 { echo "$as_me:$LINENO: WARNING: wxProgressDialog requires constraints so it won't be compiled without them" >&5
45089echo "$as_me: WARNING: wxProgressDialog requires constraints so it won't be compiled without them" >&2;}
45090 else
45091 cat >>confdefs.h <<\_ACEOF
45092#define wxUSE_PROGRESSDLG 1
45093_ACEOF
45094
45095 fi
45096fi
45097
45098if test "$wxUSE_SPLASH" = "yes"; then
45099 cat >>confdefs.h <<\_ACEOF
45100#define wxUSE_SPLASH 1
45101_ACEOF
45102
2057db16 45103 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splash"
a848cd7e
SC
45104fi
45105
45106if test "$wxUSE_STARTUP_TIPS" = "yes"; then
45107 if test "$wxUSE_CONSTRAINTS" != "yes"; then
45108 { echo "$as_me:$LINENO: WARNING: Startup tips requires constraints and won't be compiled without them" >&5
45109echo "$as_me: WARNING: Startup tips requires constraints and won't be compiled without them" >&2;}
45110 else
45111 cat >>confdefs.h <<\_ACEOF
45112#define wxUSE_STARTUP_TIPS 1
45113_ACEOF
45114
45115 fi
45116fi
45117
45118if test "$wxUSE_TEXTDLG" = "yes"; then
45119 cat >>confdefs.h <<\_ACEOF
45120#define wxUSE_TEXTDLG 1
45121_ACEOF
45122
45123fi
45124
45125if test "$wxUSE_WIZARDDLG" = "yes"; then
45126 cat >>confdefs.h <<\_ACEOF
45127#define wxUSE_WIZARDDLG 1
45128_ACEOF
45129
45130 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS wizard"
45131fi
45132
45133
f10e38c4
VZ
45134USE_MEDIA=0
45135
ce756cb0 45136if test "$wxUSE_MEDIACTRL" = "yes"; then
2f6c5bb5
VZ
45137 USE_MEDIA=1
45138
ce756cb0 45139 if test "$wxUSE_GTK" = 1; then
c9a66001 45140 wxUSE_GSTREAMER="no"
ce756cb0 45141
f10e38c4
VZ
45142 GST_VERSION_MAJOR=0
45143 GST_VERSION_MINOR=10
2f6c5bb5 45144 GST_VERSION=$GST_VERSION_MAJOR.$GST_VERSION_MINOR
f10e38c4
VZ
45145
45146 if test "$wxUSE_GSTREAMER8" = "no"; then
ce756cb0 45147
dae87f93 45148 succeeded=no
ce756cb0 45149
dae87f93
RN
45150 if test -z "$PKG_CONFIG"; then
45151 # Extract the first word of "pkg-config", so it can be a program name with args.
45152set dummy pkg-config; ac_word=$2
45153echo "$as_me:$LINENO: checking for $ac_word" >&5
45154echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
45155if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
45156 echo $ECHO_N "(cached) $ECHO_C" >&6
45157else
45158 case $PKG_CONFIG in
45159 [\\/]* | ?:[\\/]*)
45160 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
45161 ;;
45162 *)
45163 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
45164for as_dir in $PATH
45165do
45166 IFS=$as_save_IFS
45167 test -z "$as_dir" && as_dir=.
45168 for ac_exec_ext in '' $ac_executable_extensions; do
45169 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
45170 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
45171 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
45172 break 2
45173 fi
45174done
45175done
45176
45177 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
45178 ;;
45179esac
45180fi
45181PKG_CONFIG=$ac_cv_path_PKG_CONFIG
45182
45183if test -n "$PKG_CONFIG"; then
45184 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
45185echo "${ECHO_T}$PKG_CONFIG" >&6
45186else
45187 echo "$as_me:$LINENO: result: no" >&5
45188echo "${ECHO_T}no" >&6
45189fi
45190
45191 fi
45192
45193 if test "$PKG_CONFIG" = "no" ; then
45194 echo "*** The pkg-config script could not be found. Make sure it is"
45195 echo "*** in your path, or set the PKG_CONFIG environment variable"
45196 echo "*** to the full path to pkg-config."
45197 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
45198 else
45199 PKG_CONFIG_MIN_VERSION=0.9.0
45200 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
2f6c5bb5
VZ
45201 echo "$as_me:$LINENO: checking for gstreamer-$GST_VERSION gstreamer-plugins-base-$GST_VERSION gconf-2.0" >&5
45202echo $ECHO_N "checking for gstreamer-$GST_VERSION gstreamer-plugins-base-$GST_VERSION gconf-2.0... $ECHO_C" >&6
45203
45204 if $PKG_CONFIG --exists "gstreamer-$GST_VERSION gstreamer-plugins-base-$GST_VERSION gconf-2.0" ; then
dae87f93 45205 echo "$as_me:$LINENO: result: yes" >&5
ce756cb0 45206echo "${ECHO_T}yes" >&6
dae87f93 45207 succeeded=yes
ce756cb0 45208
f10e38c4
VZ
45209 echo "$as_me:$LINENO: checking GST_CFLAGS" >&5
45210echo $ECHO_N "checking GST_CFLAGS... $ECHO_C" >&6
2f6c5bb5 45211 GST_CFLAGS=`$PKG_CONFIG --cflags "gstreamer-$GST_VERSION gstreamer-plugins-base-$GST_VERSION gconf-2.0"`
f10e38c4
VZ
45212 echo "$as_me:$LINENO: result: $GST_CFLAGS" >&5
45213echo "${ECHO_T}$GST_CFLAGS" >&6
45214
45215 echo "$as_me:$LINENO: checking GST_LIBS" >&5
45216echo $ECHO_N "checking GST_LIBS... $ECHO_C" >&6
2f6c5bb5 45217 GST_LIBS=`$PKG_CONFIG --libs "gstreamer-$GST_VERSION gstreamer-plugins-base-$GST_VERSION gconf-2.0"`
f10e38c4
VZ
45218 echo "$as_me:$LINENO: result: $GST_LIBS" >&5
45219echo "${ECHO_T}$GST_LIBS" >&6
dae87f93 45220 else
f10e38c4
VZ
45221 GST_CFLAGS=""
45222 GST_LIBS=""
dae87f93
RN
45223 ## If we have a custom action on failure, don't print errors, but
45224 ## do set a variable so people can do so.
2f6c5bb5 45225 GST_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gstreamer-$GST_VERSION gstreamer-plugins-base-$GST_VERSION gconf-2.0"`
ce756cb0 45226
dae87f93
RN
45227 fi
45228
45229
45230
45231 else
45232 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
45233 echo "*** See http://www.freedesktop.org/software/pkgconfig"
45234 fi
45235 fi
45236
45237 if test $succeeded = yes; then
45238
2f6c5bb5
VZ
45239 wxUSE_GSTREAMER="yes"
45240 GST_LIBS="$GST_LIBS -lgstinterfaces-$GST_VERSION"
ce756cb0 45241
ce756cb0 45242 else
dae87f93 45243
2f6c5bb5
VZ
45244 { echo "$as_me:$LINENO: WARNING: GStreamer 0.10 not available, falling back to 0.8" >&5
45245echo "$as_me: WARNING: GStreamer 0.10 not available, falling back to 0.8" >&2;}
f10e38c4 45246 GST_VERSION_MINOR=8
dae87f93 45247
2f6c5bb5 45248
dae87f93
RN
45249 fi
45250
2f6c5bb5
VZ
45251 else
45252 GST_VERSION_MINOR=8
f10e38c4 45253 fi
dae87f93 45254
2f6c5bb5
VZ
45255 if test $GST_VERSION_MINOR = "8"; then
45256 GST_VERSION=$GST_VERSION_MAJOR.$GST_VERSION_MINOR
dae87f93 45257
f10e38c4 45258 succeeded=no
dae87f93 45259
f10e38c4
VZ
45260 if test -z "$PKG_CONFIG"; then
45261 # Extract the first word of "pkg-config", so it can be a program name with args.
45262set dummy pkg-config; ac_word=$2
dae87f93
RN
45263echo "$as_me:$LINENO: checking for $ac_word" >&5
45264echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
f10e38c4 45265if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
dae87f93
RN
45266 echo $ECHO_N "(cached) $ECHO_C" >&6
45267else
f10e38c4
VZ
45268 case $PKG_CONFIG in
45269 [\\/]* | ?:[\\/]*)
45270 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
45271 ;;
45272 *)
45273 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
dae87f93
RN
45274for as_dir in $PATH
45275do
45276 IFS=$as_save_IFS
45277 test -z "$as_dir" && as_dir=.
45278 for ac_exec_ext in '' $ac_executable_extensions; do
45279 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
f10e38c4 45280 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
dae87f93
RN
45281 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
45282 break 2
ce756cb0 45283 fi
dae87f93
RN
45284done
45285done
45286
f10e38c4
VZ
45287 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
45288 ;;
45289esac
dae87f93 45290fi
f10e38c4
VZ
45291PKG_CONFIG=$ac_cv_path_PKG_CONFIG
45292
45293if test -n "$PKG_CONFIG"; then
45294 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
45295echo "${ECHO_T}$PKG_CONFIG" >&6
dae87f93
RN
45296else
45297 echo "$as_me:$LINENO: result: no" >&5
45298echo "${ECHO_T}no" >&6
45299fi
45300
f10e38c4 45301 fi
ce756cb0 45302
f10e38c4
VZ
45303 if test "$PKG_CONFIG" = "no" ; then
45304 echo "*** The pkg-config script could not be found. Make sure it is"
45305 echo "*** in your path, or set the PKG_CONFIG environment variable"
45306 echo "*** to the full path to pkg-config."
45307 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
45308 else
45309 PKG_CONFIG_MIN_VERSION=0.9.0
45310 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
2f6c5bb5
VZ
45311 echo "$as_me:$LINENO: checking for gstreamer-$GST_VERSION gstreamer-interfaces-$GST_VERSION gstreamer-gconf-$GST_VERSION" >&5
45312echo $ECHO_N "checking for gstreamer-$GST_VERSION gstreamer-interfaces-$GST_VERSION gstreamer-gconf-$GST_VERSION... $ECHO_C" >&6
45313
45314 if $PKG_CONFIG --exists "gstreamer-$GST_VERSION gstreamer-interfaces-$GST_VERSION gstreamer-gconf-$GST_VERSION" ; then
f10e38c4
VZ
45315 echo "$as_me:$LINENO: result: yes" >&5
45316echo "${ECHO_T}yes" >&6
45317 succeeded=yes
dae87f93 45318
f10e38c4
VZ
45319 echo "$as_me:$LINENO: checking GST_CFLAGS" >&5
45320echo $ECHO_N "checking GST_CFLAGS... $ECHO_C" >&6
2f6c5bb5 45321 GST_CFLAGS=`$PKG_CONFIG --cflags "gstreamer-$GST_VERSION gstreamer-interfaces-$GST_VERSION gstreamer-gconf-$GST_VERSION"`
f10e38c4
VZ
45322 echo "$as_me:$LINENO: result: $GST_CFLAGS" >&5
45323echo "${ECHO_T}$GST_CFLAGS" >&6
45324
45325 echo "$as_me:$LINENO: checking GST_LIBS" >&5
45326echo $ECHO_N "checking GST_LIBS... $ECHO_C" >&6
2f6c5bb5 45327 GST_LIBS=`$PKG_CONFIG --libs "gstreamer-$GST_VERSION gstreamer-interfaces-$GST_VERSION gstreamer-gconf-$GST_VERSION"`
f10e38c4
VZ
45328 echo "$as_me:$LINENO: result: $GST_LIBS" >&5
45329echo "${ECHO_T}$GST_LIBS" >&6
45330 else
45331 GST_CFLAGS=""
45332 GST_LIBS=""
45333 ## If we have a custom action on failure, don't print errors, but
45334 ## do set a variable so people can do so.
2f6c5bb5 45335 GST_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gstreamer-$GST_VERSION gstreamer-interfaces-$GST_VERSION gstreamer-gconf-$GST_VERSION"`
dae87f93 45336
dae87f93
RN
45337 fi
45338
45339
ce756cb0 45340
f10e38c4
VZ
45341 else
45342 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
45343 echo "*** See http://www.freedesktop.org/software/pkgconfig"
45344 fi
45345 fi
ce756cb0 45346
f10e38c4 45347 if test $succeeded = yes; then
2f6c5bb5 45348 wxUSE_GSTREAMER="yes"
f10e38c4 45349 else
ce756cb0 45350
2f6c5bb5
VZ
45351 { echo "$as_me:$LINENO: WARNING: GStreamer 0.8/0.10 not available." >&5
45352echo "$as_me: WARNING: GStreamer 0.8/0.10 not available." >&2;}
ce756cb0 45353
f10e38c4 45354 fi
ce756cb0 45355
dae87f93 45356 fi
ce756cb0 45357
f10e38c4 45358
dae87f93 45359 if test "$wxUSE_GSTREAMER" = "yes"; then
c9a66001
VZ
45360 case "${host}" in
45361 *-*-solaris2* )
45362 if "$GCC" = yes; then
45363 GST_CFLAGS=`echo $GST_CFLAGS | sed 's/-mt//'`
45364 GST_LIBS=`echo $GST_LIBS | sed 's/-mt//'`
45365 fi
45366 esac
45367
45368 CPPFLAGS="$GST_CFLAGS $CPPFLAGS"
45369 LIBS="$GST_LIBS $LIBS"
45370
dae87f93 45371 cat >>confdefs.h <<\_ACEOF
ce756cb0
RN
45372#define wxUSE_GSTREAMER 1
45373_ACEOF
45374
2f6c5bb5
VZ
45375 else
45376 USE_MEDIA=0
ce756cb0
RN
45377 fi
45378 fi
2f6c5bb5
VZ
45379
45380 if test $USE_MEDIA = 1; then
45381 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mediaplayer"
45382 cat >>confdefs.h <<\_ACEOF
ce756cb0
RN
45383#define wxUSE_MEDIACTRL 1
45384_ACEOF
45385
2f6c5bb5 45386 fi
ce756cb0
RN
45387fi
45388
45389
a848cd7e
SC
45390if test "$cross_compiling" = "yes"; then
45391 OSINFO="\"$host\""
45392else
45393 OSINFO=`uname -s -r -m`
45394 OSINFO="\"$OSINFO\""
45395fi
45396
45397cat >>confdefs.h <<_ACEOF
45398#define WXWIN_OS_DESCRIPTION $OSINFO
45399_ACEOF
45400
45401
45402
45403if test "x$prefix" != "xNONE"; then
45404 wxPREFIX=$prefix
45405else
45406 wxPREFIX=$ac_default_prefix
45407fi
45408
45409cat >>confdefs.h <<_ACEOF
45410#define wxINSTALL_PREFIX "$wxPREFIX"
45411_ACEOF
45412
45413
a848cd7e
SC
45414
45415
45416CORE_BASE_LIBS="net base"
45417CORE_GUI_LIBS="adv core"
45418
45419if test "$wxUSE_XML" = "yes" ; then
45420 CORE_BASE_LIBS="xml $CORE_BASE_LIBS"
45421fi
45422if test "$wxUSE_ODBC" != "no" ; then
45423 CORE_BASE_LIBS="odbc $CORE_BASE_LIBS"
45424 CORE_GUI_LIBS="dbgrid $CORE_GUI_LIBS"
45425fi
45426if test "$wxUSE_HTML" = "yes" ; then
45427 CORE_GUI_LIBS="html $CORE_GUI_LIBS"
45428fi
61639efb
VZ
45429if test "$wxUSE_DEBUGREPORT" = "yes" ; then
45430 CORE_GUI_LIBS="qa $CORE_GUI_LIBS"
45431fi
9a8f0513
VS
45432if test "$wxUSE_XRC" = "yes" ; then
45433 CORE_GUI_LIBS="xrc $CORE_GUI_LIBS"
45434fi
3f60522a
JS
45435if test "$wxUSE_AUI" = "yes" ; then
45436 CORE_GUI_LIBS="aui $CORE_GUI_LIBS"
45437fi
a848cd7e
SC
45438
45439if test "$wxUSE_GUI" != "yes"; then
45440 CORE_GUI_LIBS=""
45441fi
45442
45443
45444
45445
45446
5d7b7554
VZ
45447ac_ext=c
45448ac_cpp='$CPP $CPPFLAGS'
45449ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
45450ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
45451ac_compiler_gnu=$ac_cv_c_compiler_gnu
45452
a848cd7e
SC
45453
45454
a848cd7e 45455if test "$wxUSE_MAC" = 1 ; then
a98bf0c0 45456 if test "$wxUSE_SOUND" = "yes" || test "$wxUSE_MEDIACTRL" = "yes"; then
1e9e8aba
DE
45457 if test "$USE_DARWIN" = 1; then
45458 LDFLAGS="$LDFLAGS -framework QuickTime"
45459 else
45460 LDFLAGS="$LDFLAGS -lQuickTimeLib"
45461 fi
07bea8f0 45462 fi
5dcf30a0 45463 if test "$USE_DARWIN" = 1; then
1e9e8aba
DE
45464 LDFLAGS="$LDFLAGS -framework IOKit -framework Carbon -framework Cocoa -framework System"
45465 else
45466 LDFLAGS="$LDFLAGS -lCarbonLib"
5dcf30a0 45467 fi
a848cd7e
SC
45468fi
45469if test "$wxUSE_COCOA" = 1 ; then
4cb1d3da 45470 LDFLAGS="$LDFLAGS -framework IOKit -framework Cocoa"
4fc81cbc
RN
45471 if test "$wxUSE_MEDIACTRL" = "yes"; then
45472 LDFLAGS="$LDFLAGS -framework QuickTime"
45473 fi
a848cd7e 45474fi
19b27e78
MW
45475if test "$USE_DARWIN" = 1 -a "$wxUSE_MAC" != 1 -a "$wxUSE_COCOA" != 1 ; then
45476 LDFLAGS="$LDFLAGS -framework IOKit -framework CoreServices -framework System -framework ApplicationServices"
45477fi
a848cd7e 45478
a848cd7e
SC
45479LIBS="$ZLIB_LINK $POSIX4_LINK $INET_LINK $WCHAR_LINK $DL_LINK $LIBS"
45480
a848cd7e
SC
45481if test "$wxUSE_GUI" = "yes"; then
45482
45483
8bce5cda
MW
45484 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS artprov controls dialogs drawing \
45485 dynamic erase event exec font image minimal mobile \
45486 mobile/wxedit mobile/styles propsize render \
9e39d889 45487 rotate shaped vscroll widgets"
a848cd7e
SC
45488
45489 if test "$wxUSE_MONOLITHIC" != "yes"; then
45490 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS console"
45491 fi
0b78747f 45492 if test "$TOOLKIT" = "MSW"; then
8bce5cda
MW
45493 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS regtest"
45494 if test "$wxUSE_UNIVERSAL" != "yes"; then
45495 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS ownerdrw nativdlg"
45496 fi
45497 fi
45498 if test "$TOOLKIT" = "PM" -a "$wxUSE_UNIVERSAL" != "yes"; then
45499 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS ownerdrw"
0b78747f 45500 fi
a848cd7e
SC
45501else
45502 SAMPLES_SUBDIRS="console"
45503fi
45504
45505
48f625bc 45506if test "x$INTELCC" = "xyes" ; then
17a1ebd1
VZ
45507 CWARNINGS="-Wall -wd810,869,981,1418,1572,1684"
45508elif test "$GCC" = yes ; then
45509 CWARNINGS="-Wall -Wundef"
45510fi
45511
48f625bc 45512if test "x$INTELCXX" = "xyes" ; then
7f47faf4 45513 CXXWARNINGS="-Wall -wd279,383,444,810,869,981,1418,1419"
17a1ebd1
VZ
45514elif test "$GXX" = yes ; then
45515 CXXWARNINGS="-Wall -Wundef -Wno-ctor-dtor-privacy"
6ebeb4c7 45516fi
a848cd7e 45517
a848cd7e 45518
5ff751d6
VZ
45519WXCONFIG_CFLAGS=`echo $WXCONFIG_CFLAGS`
45520WXCONFIG_CXXFLAGS=`echo $WXCONFIG_CFLAGS $WXCONFIG_CXXFLAGS`
45521
45522
c92ad099 45523CPPFLAGS=`echo $WXCONFIG_CPPFLAGS \
bc6ee4ae 45524 -I\\${top_builddir}lib/wx/include/${TOOLCHAIN_FULLNAME} \
c92ad099
VZ
45525 -I\\${top_srcdir}/include $TOOLKIT_INCLUDE \
45526 $CPPFLAGS `
5ff751d6 45527
8aeeb05c 45528C_AND_CXX_FLAGS="$DEBUG_CFLAGS $PROFILE_FLAGS $OPTIMISE_CFLAGS"
c92ad099 45529CFLAGS=`echo $WXCONFIG_CFLAGS $CWARNINGS $C_AND_CXX_FLAGS $CFLAGS `
9cbac6d1 45530CXXFLAGS=`echo $WXCONFIG_CXXFLAGS $CXXWARNINGS $C_AND_CXX_FLAGS $CXXFLAGS `
5ff751d6
VZ
45531
45532WXCONFIG_CPPFLAGS=`echo $WXCONFIG_CPPFLAGS $WXCONFIG_ONLY_CPPFLAGS`
45533
a848cd7e 45534
95986553
DE
45535if test "x$MWCC" = "xyes"; then
45536
45537 CC="$CC -cwd source -I-"
45538 CXX="$CXX -cwd source -I-"
45539fi
45540
a848cd7e 45541
0c3c69fc 45542LIBS=`echo $LIBS`
a848cd7e
SC
45543EXTRALIBS="$LDFLAGS $LDFLAGS_VERSIONING $LIBS $DMALLOC_LIBS"
45544EXTRALIBS_XML="$EXPAT_LINK"
45545EXTRALIBS_HTML="$MSPACK_LINK"
45546EXTRALIBS_ODBC="$ODBC_LINK"
45547if test "$wxUSE_GUI" = "yes"; then
2b850ae1 45548 EXTRALIBS_GUI=`echo $GUI_TK_LIBRARY $PNG_LINK $JPEG_LINK $TIFF_LINK $WEBKIT_LINK $EXTRALIBS_HILDON $EXTRALIBS_GNOMEVFS $EXTRALIBS_GNOMEPRINT`
a848cd7e
SC
45549fi
45550if test "$wxUSE_OPENGL" = "yes"; then
45551 EXTRALIBS_OPENGL="$LDFLAGS_GL $OPENGL_LIBS"
45552fi
45553
8aeeb05c 45554LDFLAGS="$LDFLAGS $PROFILE_FLAGS"
a848cd7e 45555
5ff751d6 45556WXCONFIG_LIBS="$LIBS"
a848cd7e
SC
45557
45558if test "$wxUSE_REGEX" = "builtin" ; then
74802184 45559 wxconfig_3rdparty="regex${lib_unicode_suffix} $wxconfig_3rdparty"
a848cd7e
SC
45560fi
45561if test "$wxUSE_EXPAT" = "builtin" ; then
74802184 45562 wxconfig_3rdparty="expat $wxconfig_3rdparty"
a848cd7e
SC
45563fi
45564if test "$wxUSE_ODBC" = "builtin" ; then
74802184 45565 wxconfig_3rdparty="odbc $wxconfig_3rdparty"
a848cd7e
SC
45566fi
45567if test "$wxUSE_LIBTIFF" = "builtin" ; then
74802184 45568 wxconfig_3rdparty="tiff $wxconfig_3rdparty"
a848cd7e
SC
45569fi
45570if test "$wxUSE_LIBJPEG" = "builtin" ; then
74802184 45571 wxconfig_3rdparty="jpeg $wxconfig_3rdparty"
a848cd7e
SC
45572fi
45573if test "$wxUSE_LIBPNG" = "builtin" ; then
74802184 45574 wxconfig_3rdparty="png $wxconfig_3rdparty"
a848cd7e
SC
45575fi
45576if test "$wxUSE_ZLIB" = "builtin" ; then
74802184 45577 wxconfig_3rdparty="zlib $wxconfig_3rdparty"
a848cd7e
SC
45578fi
45579
45580for i in $wxconfig_3rdparty ; do
5ff751d6 45581 WXCONFIG_LIBS="-lwx${i}${lib_debug_suffix}${WX_LIB_FLAVOUR}-${WX_RELEASE}${HOST_SUFFIX} $WXCONFIG_LIBS"
a848cd7e
SC
45582done
45583
45584
45585if test "x$wxUSE_UNIVERSAL" = "xyes" ; then
45586 WXUNIV=1
45587else
45588 WXUNIV=0
45589fi
45590
45591
45592
45593
45594
45595
45596
45597
45598
45599if test $wxUSE_MONOLITHIC = "yes" ; then
45600 MONOLITHIC=1
45601else
45602 MONOLITHIC=0
45603fi
45604
45605if test $wxUSE_PLUGINS = "yes" ; then
45606 USE_PLUGINS=1
45607else
45608 USE_PLUGINS=0
45609fi
45610
45611if test $wxUSE_ODBC != "no" ; then
45612 USE_ODBC=1
45613else
45614 USE_ODBC=0
45615fi
45616
16358932
VZ
45617if test "$wxUSE_DEBUGREPORT" = "yes" ; then
45618 USE_QA=1
45619else
45620 USE_QA=0
45621fi
45622
a848cd7e
SC
45623if test $wxUSE_OFFICIAL_BUILD = "yes" ; then
45624 OFFICIAL_BUILD=1
45625else
45626 OFFICIAL_BUILD=0
45627fi
45628
45629
45630
45631
45632
45633
45634
45635
45636
45637
45638
45639
45640
45641
45642
45643
45644
45645
45646
ceec2216 45647
d1c38808 45648
3565d135 45649
2b850ae1 45650
a848cd7e
SC
45651
45652
45653TOOLKIT_LOWERCASE=`echo $TOOLKIT | tr "[A-Z]" "[a-z]"`
45654
45655
45656
45657
45658
45659
45660
45661
4d4ff94c
VZ
45662case "$TOOLKIT" in
45663 GTK)
45664 TOOLKIT_USER="GTK+"
45665 if test "$WXGTK20" = 1; then
45666 TOOLKIT_USER="$TOOLKIT_USER 2"
45667 fi
9a8f0513 45668 ;;
4d4ff94c
VZ
45669
45670 *)
45671 TOOLKIT_USER=$TOOLKIT_LOWERCASE
9a8f0513 45672 ;;
4d4ff94c 45673esac
a848cd7e 45674
fb00f58d
JS
45675if test "$wxUSE_WINE" = "yes"; then
45676 BAKEFILE_FORCE_PLATFORM=win32
45677fi
45678
7afc46ab 45679if test "$wxUSE_MAC" = 1 ; then
95768535
MW
45680 if test "x$wxUSE_UNIVERSAL_BINARY" != xno ; then
45681 if test "x$wxUSE_UNIVERSAL_BINARY" == xyes; then
45682 OSX_UNIV_OPTS="-isysroot /Developer/SDKs/MacOSX10.4u.sdk"
45683 else
45684 OSX_UNIV_OPTS=${wxUSE_UNIVERSAL_BINARY:+"-isysroot '$wxUSE_UNIVERSAL_BINARY'"}
45685 fi
45686 OSX_UNIV_OPTS="$OSX_UNIV_OPTS -arch ppc -arch i386"
45687 CXXFLAGS="$OSX_UNIV_OPTS $CXXFLAGS"
45688 CFLAGS="$OSX_UNIV_OPTS $CFLAGS"
45689 LDFLAGS="$OSX_UNIV_OPTS $LDFLAGS"
7afc46ab
KO
45690 bk_use_pch=no
45691 fi
45692 # TODO: where do we add "-syslibroot,/Developer/SDKs/MacOSX10.4u.sdk" for libtool (static builds only)?
45693 # The makefile currently uses AR and RANLIB, which libtool apparently supercedes.
7afc46ab
KO
45694fi
45695
9a8f0513 45696
1e9e8aba
DE
45697
45698
a848cd7e 45699 if test "x$BAKEFILE_HOST" = "x"; then
f10e38c4
VZ
45700 if test "x${host}" = "x" ; then
45701 { { echo "$as_me:$LINENO: error: You must call the autoconf \"CANONICAL_HOST\" macro in your configure.ac (or .in) file." >&5
45702echo "$as_me: error: You must call the autoconf \"CANONICAL_HOST\" macro in your configure.ac (or .in) file." >&2;}
45703 { (exit 1); exit 1; }; }
45704 fi
45705
a848cd7e
SC
45706 BAKEFILE_HOST="${host}"
45707 fi
45708
45709 if test "x$BAKEFILE_CHECK_BASICS" != "xno"; then
45710
45711 if test -n "$ac_tool_prefix"; then
45712 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
45713set dummy ${ac_tool_prefix}ranlib; ac_word=$2
45714echo "$as_me:$LINENO: checking for $ac_word" >&5
45715echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
45716if test "${ac_cv_prog_RANLIB+set}" = set; then
45717 echo $ECHO_N "(cached) $ECHO_C" >&6
45718else
45719 if test -n "$RANLIB"; then
45720 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
45721else
45722as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
45723for as_dir in $PATH
45724do
45725 IFS=$as_save_IFS
45726 test -z "$as_dir" && as_dir=.
45727 for ac_exec_ext in '' $ac_executable_extensions; do
45728 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
45729 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
45730 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
45731 break 2
45732 fi
45733done
45734done
45735
45736fi
45737fi
45738RANLIB=$ac_cv_prog_RANLIB
45739if test -n "$RANLIB"; then
45740 echo "$as_me:$LINENO: result: $RANLIB" >&5
45741echo "${ECHO_T}$RANLIB" >&6
45742else
45743 echo "$as_me:$LINENO: result: no" >&5
45744echo "${ECHO_T}no" >&6
45745fi
45746
45747fi
45748if test -z "$ac_cv_prog_RANLIB"; then
45749 ac_ct_RANLIB=$RANLIB
45750 # Extract the first word of "ranlib", so it can be a program name with args.
45751set dummy ranlib; ac_word=$2
45752echo "$as_me:$LINENO: checking for $ac_word" >&5
45753echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
45754if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
45755 echo $ECHO_N "(cached) $ECHO_C" >&6
45756else
45757 if test -n "$ac_ct_RANLIB"; then
45758 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
45759else
45760as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
45761for as_dir in $PATH
45762do
45763 IFS=$as_save_IFS
45764 test -z "$as_dir" && as_dir=.
45765 for ac_exec_ext in '' $ac_executable_extensions; do
45766 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
45767 ac_cv_prog_ac_ct_RANLIB="ranlib"
45768 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
45769 break 2
45770 fi
45771done
45772done
45773
45774 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
45775fi
45776fi
45777ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
45778if test -n "$ac_ct_RANLIB"; then
45779 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
45780echo "${ECHO_T}$ac_ct_RANLIB" >&6
45781else
45782 echo "$as_me:$LINENO: result: no" >&5
45783echo "${ECHO_T}no" >&6
45784fi
45785
45786 RANLIB=$ac_ct_RANLIB
45787else
45788 RANLIB="$ac_cv_prog_RANLIB"
45789fi
45790
45791 # Find a good install program. We prefer a C program (faster),
45792# so one script is as good as another. But avoid the broken or
45793# incompatible versions:
45794# SysV /etc/install, /usr/sbin/install
45795# SunOS /usr/etc/install
45796# IRIX /sbin/install
45797# AIX /bin/install
45798# AmigaOS /C/install, which installs bootblocks on floppy discs
45799# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
45800# AFS /usr/afsws/bin/install, which mishandles nonexistent args
45801# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
ac1cb8d3 45802# OS/2's system install, which has a completely different semantic
a848cd7e
SC
45803# ./install, which can be erroneously created by make from ./install.sh.
45804echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
45805echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
45806if test -z "$INSTALL"; then
45807if test "${ac_cv_path_install+set}" = set; then
45808 echo $ECHO_N "(cached) $ECHO_C" >&6
45809else
45810 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
45811for as_dir in $PATH
45812do
45813 IFS=$as_save_IFS
45814 test -z "$as_dir" && as_dir=.
45815 # Account for people who put trailing slashes in PATH elements.
45816case $as_dir/ in
45817 ./ | .// | /cC/* | \
45818 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
ac1cb8d3 45819 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
a848cd7e
SC
45820 /usr/ucb/* ) ;;
45821 *)
45822 # OSF1 and SCO ODT 3.0 have their own names for install.
45823 # Don't use installbsd from OSF since it installs stuff as root
45824 # by default.
45825 for ac_prog in ginstall scoinst install; do
45826 for ac_exec_ext in '' $ac_executable_extensions; do
ac1cb8d3
VS
45827 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
45828 if test $ac_prog = install &&
45829 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
45830 # AIX install. It has an incompatible calling convention.
45831 :
45832 elif test $ac_prog = install &&
45833 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
45834 # program-specific install script used by HP pwplus--don't use.
45835 :
45836 else
45837 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
45838 break 3
45839 fi
45840 fi
a848cd7e
SC
45841 done
45842 done
45843 ;;
45844esac
45845done
45846
45847
45848fi
45849 if test "${ac_cv_path_install+set}" = set; then
45850 INSTALL=$ac_cv_path_install
45851 else
45852 # As a last resort, use the slow shell script. We don't cache a
45853 # path for INSTALL within a source directory, because that will
45854 # break other packages using the cache if that directory is
45855 # removed, or if the path is relative.
45856 INSTALL=$ac_install_sh
45857 fi
45858fi
45859echo "$as_me:$LINENO: result: $INSTALL" >&5
45860echo "${ECHO_T}$INSTALL" >&6
45861
45862# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
45863# It thinks the first close brace ends the variable substitution.
45864test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
45865
45866test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
45867
45868test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
45869
45870 echo "$as_me:$LINENO: checking whether ln -s works" >&5
45871echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
45872LN_S=$as_ln_s
45873if test "$LN_S" = "ln -s"; then
45874 echo "$as_me:$LINENO: result: yes" >&5
45875echo "${ECHO_T}yes" >&6
45876else
45877 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
45878echo "${ECHO_T}no, using $LN_S" >&6
45879fi
45880
45881
45882 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
45883echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
ac1cb8d3 45884set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
a848cd7e
SC
45885if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
45886 echo $ECHO_N "(cached) $ECHO_C" >&6
45887else
45888 cat >conftest.make <<\_ACEOF
45889all:
45890 @echo 'ac_maketemp="$(MAKE)"'
45891_ACEOF
45892# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
45893eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
45894if test -n "$ac_maketemp"; then
45895 eval ac_cv_prog_make_${ac_make}_set=yes
45896else
45897 eval ac_cv_prog_make_${ac_make}_set=no
45898fi
45899rm -f conftest.make
45900fi
45901if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
45902 echo "$as_me:$LINENO: result: yes" >&5
45903echo "${ECHO_T}yes" >&6
45904 SET_MAKE=
45905else
45906 echo "$as_me:$LINENO: result: no" >&5
45907echo "${ECHO_T}no" >&6
45908 SET_MAKE="MAKE=${MAKE-make}"
45909fi
45910
45911
45912
45913 if test -n "$ac_tool_prefix"; then
45914 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
45915set dummy ${ac_tool_prefix}ar; ac_word=$2
45916echo "$as_me:$LINENO: checking for $ac_word" >&5
45917echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
45918if test "${ac_cv_prog_AR+set}" = set; then
45919 echo $ECHO_N "(cached) $ECHO_C" >&6
45920else
45921 if test -n "$AR"; then
45922 ac_cv_prog_AR="$AR" # Let the user override the test.
45923else
45924as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
45925for as_dir in $PATH
45926do
45927 IFS=$as_save_IFS
45928 test -z "$as_dir" && as_dir=.
45929 for ac_exec_ext in '' $ac_executable_extensions; do
45930 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
45931 ac_cv_prog_AR="${ac_tool_prefix}ar"
45932 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
45933 break 2
45934 fi
45935done
45936done
45937
45938fi
45939fi
45940AR=$ac_cv_prog_AR
45941if test -n "$AR"; then
45942 echo "$as_me:$LINENO: result: $AR" >&5
45943echo "${ECHO_T}$AR" >&6
45944else
45945 echo "$as_me:$LINENO: result: no" >&5
45946echo "${ECHO_T}no" >&6
45947fi
45948
45949fi
45950if test -z "$ac_cv_prog_AR"; then
45951 ac_ct_AR=$AR
45952 # Extract the first word of "ar", so it can be a program name with args.
45953set dummy ar; ac_word=$2
45954echo "$as_me:$LINENO: checking for $ac_word" >&5
45955echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
45956if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
45957 echo $ECHO_N "(cached) $ECHO_C" >&6
45958else
45959 if test -n "$ac_ct_AR"; then
45960 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
45961else
45962as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
45963for as_dir in $PATH
45964do
45965 IFS=$as_save_IFS
45966 test -z "$as_dir" && as_dir=.
45967 for ac_exec_ext in '' $ac_executable_extensions; do
45968 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
45969 ac_cv_prog_ac_ct_AR="ar"
45970 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
45971 break 2
45972 fi
45973done
45974done
45975
45976 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="ar"
45977fi
45978fi
45979ac_ct_AR=$ac_cv_prog_ac_ct_AR
45980if test -n "$ac_ct_AR"; then
45981 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
45982echo "${ECHO_T}$ac_ct_AR" >&6
45983else
45984 echo "$as_me:$LINENO: result: no" >&5
45985echo "${ECHO_T}no" >&6
45986fi
45987
45988 AR=$ac_ct_AR
45989else
45990 AR="$ac_cv_prog_AR"
45991fi
45992
45993 if test -n "$ac_tool_prefix"; then
45994 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
45995set dummy ${ac_tool_prefix}strip; ac_word=$2
45996echo "$as_me:$LINENO: checking for $ac_word" >&5
45997echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
45998if test "${ac_cv_prog_STRIP+set}" = set; then
45999 echo $ECHO_N "(cached) $ECHO_C" >&6
46000else
46001 if test -n "$STRIP"; then
46002 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
46003else
46004as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
46005for as_dir in $PATH
46006do
46007 IFS=$as_save_IFS
46008 test -z "$as_dir" && as_dir=.
46009 for ac_exec_ext in '' $ac_executable_extensions; do
46010 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
46011 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
46012 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
46013 break 2
46014 fi
46015done
46016done
46017
46018fi
46019fi
46020STRIP=$ac_cv_prog_STRIP
46021if test -n "$STRIP"; then
46022 echo "$as_me:$LINENO: result: $STRIP" >&5
46023echo "${ECHO_T}$STRIP" >&6
46024else
46025 echo "$as_me:$LINENO: result: no" >&5
46026echo "${ECHO_T}no" >&6
46027fi
46028
46029fi
46030if test -z "$ac_cv_prog_STRIP"; then
46031 ac_ct_STRIP=$STRIP
46032 # Extract the first word of "strip", so it can be a program name with args.
46033set dummy strip; ac_word=$2
46034echo "$as_me:$LINENO: checking for $ac_word" >&5
46035echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
46036if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
46037 echo $ECHO_N "(cached) $ECHO_C" >&6
46038else
46039 if test -n "$ac_ct_STRIP"; then
46040 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
46041else
46042as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
46043for as_dir in $PATH
46044do
46045 IFS=$as_save_IFS
46046 test -z "$as_dir" && as_dir=.
46047 for ac_exec_ext in '' $ac_executable_extensions; do
46048 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
46049 ac_cv_prog_ac_ct_STRIP="strip"
46050 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
46051 break 2
46052 fi
46053done
46054done
46055
46056 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
46057fi
46058fi
46059ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
46060if test -n "$ac_ct_STRIP"; then
46061 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
46062echo "${ECHO_T}$ac_ct_STRIP" >&6
46063else
46064 echo "$as_me:$LINENO: result: no" >&5
46065echo "${ECHO_T}no" >&6
46066fi
46067
46068 STRIP=$ac_ct_STRIP
46069else
46070 STRIP="$ac_cv_prog_STRIP"
46071fi
46072
46073 if test -n "$ac_tool_prefix"; then
46074 # Extract the first word of "${ac_tool_prefix}nm", so it can be a program name with args.
46075set dummy ${ac_tool_prefix}nm; ac_word=$2
46076echo "$as_me:$LINENO: checking for $ac_word" >&5
46077echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
46078if test "${ac_cv_prog_NM+set}" = set; then
46079 echo $ECHO_N "(cached) $ECHO_C" >&6
46080else
46081 if test -n "$NM"; then
46082 ac_cv_prog_NM="$NM" # Let the user override the test.
46083else
46084as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
46085for as_dir in $PATH
46086do
46087 IFS=$as_save_IFS
46088 test -z "$as_dir" && as_dir=.
46089 for ac_exec_ext in '' $ac_executable_extensions; do
46090 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
46091 ac_cv_prog_NM="${ac_tool_prefix}nm"
46092 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
46093 break 2
46094 fi
46095done
46096done
46097
46098fi
46099fi
46100NM=$ac_cv_prog_NM
46101if test -n "$NM"; then
46102 echo "$as_me:$LINENO: result: $NM" >&5
46103echo "${ECHO_T}$NM" >&6
46104else
46105 echo "$as_me:$LINENO: result: no" >&5
46106echo "${ECHO_T}no" >&6
46107fi
46108
46109fi
46110if test -z "$ac_cv_prog_NM"; then
46111 ac_ct_NM=$NM
46112 # Extract the first word of "nm", so it can be a program name with args.
46113set dummy nm; ac_word=$2
46114echo "$as_me:$LINENO: checking for $ac_word" >&5
46115echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
46116if test "${ac_cv_prog_ac_ct_NM+set}" = set; then
46117 echo $ECHO_N "(cached) $ECHO_C" >&6
46118else
46119 if test -n "$ac_ct_NM"; then
46120 ac_cv_prog_ac_ct_NM="$ac_ct_NM" # Let the user override the test.
46121else
46122as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
46123for as_dir in $PATH
46124do
46125 IFS=$as_save_IFS
46126 test -z "$as_dir" && as_dir=.
46127 for ac_exec_ext in '' $ac_executable_extensions; do
46128 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
46129 ac_cv_prog_ac_ct_NM="nm"
46130 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
46131 break 2
46132 fi
46133done
46134done
46135
46136 test -z "$ac_cv_prog_ac_ct_NM" && ac_cv_prog_ac_ct_NM=":"
46137fi
46138fi
46139ac_ct_NM=$ac_cv_prog_ac_ct_NM
46140if test -n "$ac_ct_NM"; then
46141 echo "$as_me:$LINENO: result: $ac_ct_NM" >&5
46142echo "${ECHO_T}$ac_ct_NM" >&6
46143else
46144 echo "$as_me:$LINENO: result: no" >&5
46145echo "${ECHO_T}no" >&6
46146fi
46147
46148 NM=$ac_ct_NM
46149else
46150 NM="$ac_cv_prog_NM"
46151fi
46152
46153
46154 case ${BAKEFILE_HOST} in
46155 *-hp-hpux* )
1e9e8aba 46156 INSTALL_DIR="mkdir -p"
a848cd7e
SC
46157 ;;
46158 *) INSTALL_DIR="$INSTALL -d"
46159 ;;
46160 esac
46161
46162
46163 LDFLAGS_GUI=
46164 case ${BAKEFILE_HOST} in
46165 *-*-cygwin* | *-*-mingw32* )
46166 LDFLAGS_GUI="-mwindows"
46167 esac
46168
46169
46170 fi
46171
46172 echo "$as_me:$LINENO: checking if make is GNU make" >&5
46173echo $ECHO_N "checking if make is GNU make... $ECHO_C" >&6
46174if test "${bakefile_cv_prog_makeisgnu+set}" = set; then
46175 echo $ECHO_N "(cached) $ECHO_C" >&6
46176else
46177
46178 if ( ${SHELL-sh} -c "${MAKE-make} --version" 2> /dev/null |
46179 egrep -s GNU > /dev/null); then
46180 bakefile_cv_prog_makeisgnu="yes"
46181 else
46182 bakefile_cv_prog_makeisgnu="no"
46183 fi
46184
46185fi
46186echo "$as_me:$LINENO: result: $bakefile_cv_prog_makeisgnu" >&5
46187echo "${ECHO_T}$bakefile_cv_prog_makeisgnu" >&6
46188
46189 if test "x$bakefile_cv_prog_makeisgnu" = "xyes"; then
46190 IF_GNU_MAKE=""
46191 else
46192 IF_GNU_MAKE="#"
46193 fi
46194
46195
46196
46197 PLATFORM_UNIX=0
46198 PLATFORM_WIN32=0
46199 PLATFORM_MSDOS=0
46200 PLATFORM_MAC=0
1e9e8aba 46201 PLATFORM_MACOS=0
a848cd7e
SC
46202 PLATFORM_MACOSX=0
46203 PLATFORM_OS2=0
1e9e8aba 46204 PLATFORM_BEOS=0
a848cd7e
SC
46205
46206 if test "x$BAKEFILE_FORCE_PLATFORM" = "x"; then
46207 case "${BAKEFILE_HOST}" in
810b94f0 46208 *-*-mingw32* )
a848cd7e
SC
46209 PLATFORM_WIN32=1
46210 ;;
46211 *-pc-msdosdjgpp )
46212 PLATFORM_MSDOS=1
46213 ;;
46214 *-pc-os2_emx | *-pc-os2-emx )
46215 PLATFORM_OS2=1
46216 ;;
47bd5406 46217 *-*-darwin* )
a848cd7e
SC
46218 PLATFORM_MAC=1
46219 PLATFORM_MACOSX=1
46220 ;;
1e9e8aba
DE
46221 *-*-beos* )
46222 PLATFORM_BEOS=1
46223 ;;
46224 powerpc-apple-macos* )
46225 PLATFORM_MAC=1
46226 PLATFORM_MACOS=1
46227 ;;
a848cd7e
SC
46228 * )
46229 PLATFORM_UNIX=1
46230 ;;
46231 esac
46232 else
46233 case "$BAKEFILE_FORCE_PLATFORM" in
46234 win32 )
46235 PLATFORM_WIN32=1
46236 ;;
46237 msdos )
46238 PLATFORM_MSDOS=1
46239 ;;
46240 os2 )
46241 PLATFORM_OS2=1
46242 ;;
46243 darwin )
46244 PLATFORM_MAC=1
46245 PLATFORM_MACOSX=1
46246 ;;
46247 unix )
46248 PLATFORM_UNIX=1
46249 ;;
1e9e8aba
DE
46250 beos )
46251 PLATFORM_BEOS=1
46252 ;;
a848cd7e
SC
46253 * )
46254 { { echo "$as_me:$LINENO: error: Unknown platform: $BAKEFILE_FORCE_PLATFORM" >&5
46255echo "$as_me: error: Unknown platform: $BAKEFILE_FORCE_PLATFORM" >&2;}
46256 { (exit 1); exit 1; }; }
46257 ;;
46258 esac
46259 fi
46260
46261
46262
46263
46264
46265
46266
46267
46268
1e9e8aba
DE
46269
46270
a848cd7e
SC
46271 # Check whether --enable-omf or --disable-omf was given.
46272if test "${enable_omf+set}" = set; then
46273 enableval="$enable_omf"
46274 bk_os2_use_omf="$enableval"
46275fi;
46276
46277 case "${BAKEFILE_HOST}" in
46278 *-*-darwin* )
47bd5406
VZ
46279 if test "x$GCC" = "xyes"; then
46280 CFLAGS="$CFLAGS -fno-common"
46281 CXXFLAGS="$CXXFLAGS -fno-common"
46282 fi
46283 if test "x$XLCC" = "xyes"; then
46284 CFLAGS="$CFLAGS -qnocommon"
46285 CXXFLAGS="$CXXFLAGS -qnocommon"
46286 fi
a848cd7e
SC
46287 ;;
46288
46289 *-pc-os2_emx | *-pc-os2-emx )
46290 if test "x$bk_os2_use_omf" = "xyes" ; then
46291 AR=emxomfar
46292 RANLIB=:
46293 LDFLAGS="-Zomf $LDFLAGS"
46294 CFLAGS="-Zomf $CFLAGS"
46295 CXXFLAGS="-Zomf $CXXFLAGS"
46296 OS2_LIBEXT="lib"
46297 else
46298 OS2_LIBEXT="a"
46299 fi
46300 ;;
1e9e8aba
DE
46301
46302 i*86-*-beos* )
46303 LDFLAGS="-L/boot/develop/lib/x86 $LDFLAGS"
46304 ;;
a848cd7e
SC
46305 esac
46306
46307
46308 SO_SUFFIX="so"
46309 SO_SUFFIX_MODULE="so"
46310 EXEEXT=""
46311 LIBPREFIX="lib"
46312 LIBEXT=".a"
46313 DLLPREFIX="lib"
46314 DLLPREFIX_MODULE=""
46315 DLLIMP_SUFFIX=""
810b94f0 46316 dlldir="$libdir"
a848cd7e
SC
46317
46318 case "${BAKEFILE_HOST}" in
46319 *-hp-hpux* )
46320 SO_SUFFIX="sl"
46321 SO_SUFFIX_MODULE="sl"
46322 ;;
46323 *-*-aix* )
46324 SO_SUFFIX="a"
46325 SO_SUFFIX_MODULE="a"
46326 ;;
810b94f0
MW
46327 *-*-cygwin* )
46328 SO_SUFFIX="dll"
46329 SO_SUFFIX_MODULE="dll"
46330 DLLIMP_SUFFIX="dll.a"
46331 EXEEXT=".exe"
46332 DLLPREFIX="cyg"
46333 dlldir="$bindir"
46334 ;;
46335 *-*-mingw32* )
a848cd7e
SC
46336 SO_SUFFIX="dll"
46337 SO_SUFFIX_MODULE="dll"
46338 DLLIMP_SUFFIX="dll.a"
46339 EXEEXT=".exe"
46340 DLLPREFIX=""
810b94f0 46341 dlldir="$bindir"
a848cd7e
SC
46342 ;;
46343 *-pc-msdosdjgpp )
46344 EXEEXT=".exe"
46345 DLLPREFIX=""
810b94f0 46346 dlldir="$bindir"
a848cd7e
SC
46347 ;;
46348 *-pc-os2_emx | *-pc-os2-emx )
46349 SO_SUFFIX="dll"
46350 SO_SUFFIX_MODULE="dll"
46351 DLLIMP_SUFFIX=$OS2_LIBEXT
46352 EXEEXT=".exe"
46353 DLLPREFIX=""
46354 LIBPREFIX=""
46355 LIBEXT=".$OS2_LIBEXT"
810b94f0 46356 dlldir="$bindir"
a848cd7e 46357 ;;
47bd5406 46358 *-*-darwin* )
a848cd7e
SC
46359 SO_SUFFIX="dylib"
46360 SO_SUFFIX_MODULE="bundle"
46361 ;;
46362 esac
46363
46364 if test "x$DLLIMP_SUFFIX" = "x" ; then
46365 DLLIMP_SUFFIX="$SO_SUFFIX"
46366 fi
46367
46368
46369
46370
46371
46372
46373
46374
46375
46376
46377
810b94f0 46378
1e9e8aba
DE
46379 PIC_FLAG=""
46380 if test "x$GCC" = "xyes"; then
a848cd7e
SC
46381 PIC_FLAG="-fPIC"
46382 fi
46383
1e9e8aba
DE
46384 SHARED_LD_CC="\$(CC) -shared ${PIC_FLAG} -o"
46385 SHARED_LD_CXX="\$(CXX) -shared ${PIC_FLAG} -o"
810b94f0 46386 WINDOWS_IMPLIB=0
1e9e8aba 46387
a848cd7e
SC
46388 case "${BAKEFILE_HOST}" in
46389 *-hp-hpux* )
1e9e8aba 46390 if test "x$GCC" != "xyes"; then
a848cd7e
SC
46391 LDFLAGS="$LDFLAGS -L/usr/lib"
46392
46393 SHARED_LD_CC="${CC} -b -o"
46394 SHARED_LD_CXX="${CXX} -b -o"
46395 PIC_FLAG="+Z"
46396 fi
46397 ;;
46398
46399 *-*-linux* )
46400 if test "x$GCC" != "xyes"; then
46401 echo "$as_me:$LINENO: checking for Intel compiler" >&5
46402echo $ECHO_N "checking for Intel compiler... $ECHO_C" >&6
46403if test "${bakefile_cv_prog_icc+set}" = set; then
46404 echo $ECHO_N "(cached) $ECHO_C" >&6
46405else
46406
46407 cat >conftest.$ac_ext <<_ACEOF
46408/* confdefs.h. */
46409_ACEOF
46410cat confdefs.h >>conftest.$ac_ext
46411cat >>conftest.$ac_ext <<_ACEOF
46412/* end confdefs.h. */
46413
46414int
46415main ()
46416{
46417
46418 #ifndef __INTEL_COMPILER
e5efa97e 46419 This is not ICC
a848cd7e
SC
46420 #endif
46421
46422 ;
46423 return 0;
46424}
46425_ACEOF
46426rm -f conftest.$ac_objext
46427if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 46428 (eval $ac_compile) 2>conftest.er1
a848cd7e 46429 ac_status=$?
ac1cb8d3
VS
46430 grep -v '^ *+' conftest.er1 >conftest.err
46431 rm -f conftest.er1
46432 cat conftest.err >&5
a848cd7e
SC
46433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46434 (exit $ac_status); } &&
c9a66001 46435 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
46436 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46437 (eval $ac_try) 2>&5
46438 ac_status=$?
46439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46440 (exit $ac_status); }; } &&
46441 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
46442 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46443 (eval $ac_try) 2>&5
46444 ac_status=$?
46445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46446 (exit $ac_status); }; }; then
46447 bakefile_cv_prog_icc=yes
46448else
46449 echo "$as_me: failed program was:" >&5
46450sed 's/^/| /' conftest.$ac_ext >&5
46451
46452bakefile_cv_prog_icc=no
46453
46454fi
ac1cb8d3 46455rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
46456
46457fi
46458echo "$as_me:$LINENO: result: $bakefile_cv_prog_icc" >&5
46459echo "${ECHO_T}$bakefile_cv_prog_icc" >&6
46460 if test "$bakefile_cv_prog_icc" = "yes"; then
46461 PIC_FLAG="-KPIC"
46462 fi
46463 fi
46464 ;;
46465
46466 *-*-solaris2* )
46467 if test "x$GCC" != xyes ; then
46468 SHARED_LD_CC="${CC} -G -o"
46469 SHARED_LD_CXX="${CXX} -G -o"
46470 PIC_FLAG="-KPIC"
46471 fi
46472 ;;
46473
46474 *-*-darwin* )
46475
473276a9
VS
46476D='$'
46477cat <<EOF >shared-ld-sh
a848cd7e
SC
46478#!/bin/sh
46479#-----------------------------------------------------------------------------
46480#-- Name: distrib/mac/shared-ld-sh
46481#-- Purpose: Link a mach-o dynamic shared library for Darwin / Mac OS X
46482#-- Author: Gilles Depeyrot
46483#-- Copyright: (c) 2002 Gilles Depeyrot
46484#-- Licence: any use permitted
46485#-----------------------------------------------------------------------------
46486
46487verbose=0
46488args=""
46489objects=""
46490linking_flag="-dynamiclib"
810b94f0 46491ldargs="-r -keep_private_externs -nostdlib"
a848cd7e 46492
473276a9
VS
46493while test ${D}# -gt 0; do
46494 case ${D}1 in
a848cd7e
SC
46495
46496 -v)
46497 verbose=1
46498 ;;
46499
46500 -o|-compatibility_version|-current_version|-framework|-undefined|-install_name)
46501 # collect these options and values
473276a9 46502 args="${D}{args} ${D}1 ${D}2"
a848cd7e
SC
46503 shift
46504 ;;
46505
810b94f0
MW
46506 -s|-Wl,*)
46507 # collect these load args
46508 ldargs="${D}{ldargs} ${D}1"
2113bc77 46509 ;;
810b94f0
MW
46510
46511 -l*|-L*|-flat_namespace|-headerpad_max_install_names)
a848cd7e 46512 # collect these options
473276a9 46513 args="${D}{args} ${D}1"
a848cd7e
SC
46514 ;;
46515
46516 -dynamiclib|-bundle)
473276a9 46517 linking_flag="${D}1"
a848cd7e
SC
46518 ;;
46519
46520 -*)
473276a9 46521 echo "shared-ld: unhandled option '${D}1'"
a848cd7e
SC
46522 exit 1
46523 ;;
46524
46525 *.o | *.a | *.dylib)
46526 # collect object files
473276a9 46527 objects="${D}{objects} ${D}1"
a848cd7e
SC
46528 ;;
46529
46530 *)
473276a9 46531 echo "shared-ld: unhandled argument '${D}1'"
a848cd7e
SC
46532 exit 1
46533 ;;
46534
46535 esac
46536 shift
46537done
46538
810b94f0
MW
46539status=0
46540
a848cd7e
SC
46541#
46542# Link one module containing all the others
46543#
473276a9 46544if test ${D}{verbose} = 1; then
810b94f0 46545 echo "c++ ${D}{ldargs} ${D}{objects} -o master.${D}${D}.o"
a848cd7e 46546fi
810b94f0 46547c++ ${D}{ldargs} ${D}{objects} -o master.${D}${D}.o
473276a9 46548status=${D}?
a848cd7e
SC
46549
46550#
810b94f0
MW
46551# Link the shared library from the single module created, but only if the
46552# previous command didn't fail:
a848cd7e 46553#
810b94f0
MW
46554if test ${D}{status} = 0; then
46555 if test ${D}{verbose} = 1; then
46556 echo "c++ ${D}{linking_flag} master.${D}${D}.o ${D}{args}"
46557 fi
46558 c++ ${D}{linking_flag} master.${D}${D}.o ${D}{args}
46559 status=${D}?
a848cd7e
SC
46560fi
46561
46562#
46563# Remove intermediate module
46564#
473276a9 46565rm -f master.${D}${D}.o
a848cd7e 46566
810b94f0 46567exit ${D}status
a848cd7e 46568EOF
473276a9 46569
583d6b4b
VZ
46570 chmod +x shared-ld-sh
46571
46572 SHARED_LD_MODULE_CC="`pwd`/shared-ld-sh -bundle -headerpad_max_install_names -o"
46573 SHARED_LD_MODULE_CXX="$SHARED_LD_MODULE_CC"
46574
46575
46576 echo "$as_me:$LINENO: checking for gcc 3.1 or later" >&5
46577echo $ECHO_N "checking for gcc 3.1 or later... $ECHO_C" >&6
46578if test "${bakefile_cv_gcc31+set}" = set; then
46579 echo $ECHO_N "(cached) $ECHO_C" >&6
46580else
46581
46582 cat >conftest.$ac_ext <<_ACEOF
46583/* confdefs.h. */
46584_ACEOF
46585cat confdefs.h >>conftest.$ac_ext
46586cat >>conftest.$ac_ext <<_ACEOF
46587/* end confdefs.h. */
46588
46589int
46590main ()
46591{
46592
46593 #if (__GNUC__ < 3) || \
46594 ((__GNUC__ == 3) && (__GNUC_MINOR__ < 1))
e5efa97e 46595 This is old gcc
583d6b4b 46596 #endif
a848cd7e 46597
583d6b4b
VZ
46598 ;
46599 return 0;
46600}
46601_ACEOF
46602rm -f conftest.$ac_objext
46603if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
46604 (eval $ac_compile) 2>conftest.er1
46605 ac_status=$?
46606 grep -v '^ *+' conftest.er1 >conftest.err
46607 rm -f conftest.er1
46608 cat conftest.err >&5
46609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46610 (exit $ac_status); } &&
c9a66001 46611 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
583d6b4b
VZ
46612 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46613 (eval $ac_try) 2>&5
46614 ac_status=$?
46615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46616 (exit $ac_status); }; } &&
46617 { ac_try='test -s conftest.$ac_objext'
46618 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46619 (eval $ac_try) 2>&5
46620 ac_status=$?
46621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46622 (exit $ac_status); }; }; then
46623
46624 bakefile_cv_gcc31=yes
46625
46626else
46627 echo "$as_me: failed program was:" >&5
46628sed 's/^/| /' conftest.$ac_ext >&5
46629
46630
46631 bakefile_cv_gcc31=no
46632
46633
46634fi
46635rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
46636
46637fi
46638echo "$as_me:$LINENO: result: $bakefile_cv_gcc31" >&5
46639echo "${ECHO_T}$bakefile_cv_gcc31" >&6
46640 if test "$bakefile_cv_gcc31" = "no"; then
a848cd7e 46641 SHARED_LD_CC="`pwd`/shared-ld-sh -dynamiclib -headerpad_max_install_names -o"
a848cd7e 46642 SHARED_LD_CXX="$SHARED_LD_CC"
a848cd7e
SC
46643 else
46644 SHARED_LD_CC="\${CC} -dynamiclib -single_module -headerpad_max_install_names -o"
a848cd7e 46645 SHARED_LD_CXX="\${CXX} -dynamiclib -single_module -headerpad_max_install_names -o"
a848cd7e
SC
46646 fi
46647
47bd5406
VZ
46648 if test "x$GCC" == "xyes"; then
46649 PIC_FLAG="-dynamic -fPIC"
46650 fi
46651 if test "x$XLCC" = "xyes"; then
46652 PIC_FLAG="-dynamic -DPIC"
46653 fi
a848cd7e
SC
46654 ;;
46655
46656 *-*-aix* )
f6b50c59 46657 if test "x$GCC" = "xyes"; then
583d6b4b 46658 PIC_FLAG=""
f6b50c59 46659
583d6b4b
VZ
46660 case "${BAKEFILE_HOST}" in
46661 *-*-aix5* )
46662 LD_EXPFULL="-Wl,-bexpfull"
46663 ;;
46664 esac
f6b50c59 46665
583d6b4b
VZ
46666 SHARED_LD_CC="\$(CC) -shared $LD_EXPFULL -o"
46667 SHARED_LD_CXX="\$(CXX) -shared $LD_EXPFULL -o"
46668 else
46669 # Extract the first word of "makeC++SharedLib", so it can be a program name with args.
a848cd7e
SC
46670set dummy makeC++SharedLib; ac_word=$2
46671echo "$as_me:$LINENO: checking for $ac_word" >&5
46672echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
46673if test "${ac_cv_prog_AIX_CXX_LD+set}" = set; then
46674 echo $ECHO_N "(cached) $ECHO_C" >&6
46675else
46676 if test -n "$AIX_CXX_LD"; then
46677 ac_cv_prog_AIX_CXX_LD="$AIX_CXX_LD" # Let the user override the test.
46678else
46679as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
46680for as_dir in $PATH
46681do
46682 IFS=$as_save_IFS
46683 test -z "$as_dir" && as_dir=.
46684 for ac_exec_ext in '' $ac_executable_extensions; do
46685 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
46686 ac_cv_prog_AIX_CXX_LD="makeC++SharedLib"
46687 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
46688 break 2
46689 fi
46690done
46691done
46692
46693 test -z "$ac_cv_prog_AIX_CXX_LD" && ac_cv_prog_AIX_CXX_LD="/usr/lpp/xlC/bin/makeC++SharedLib"
46694fi
46695fi
46696AIX_CXX_LD=$ac_cv_prog_AIX_CXX_LD
46697if test -n "$AIX_CXX_LD"; then
46698 echo "$as_me:$LINENO: result: $AIX_CXX_LD" >&5
46699echo "${ECHO_T}$AIX_CXX_LD" >&6
46700else
46701 echo "$as_me:$LINENO: result: no" >&5
46702echo "${ECHO_T}no" >&6
46703fi
46704
f6b50c59 46705 SHARED_LD_CC="$AIX_CC_LD -p 0 -o"
a848cd7e
SC
46706 SHARED_LD_CXX="$AIX_CXX_LD -p 0 -o"
46707 fi
46708 ;;
46709
46710 *-*-beos* )
1e9e8aba
DE
46711 SHARED_LD_CC="${LD} -nostart -o"
46712 SHARED_LD_CXX="${LD} -nostart -o"
a848cd7e
SC
46713 ;;
46714
46715 *-*-irix* )
46716 if test "x$GCC" != "xyes"; then
46717 PIC_FLAG="-KPIC"
46718 fi
46719 ;;
46720
46721 *-*-cygwin* | *-*-mingw32* )
46722 PIC_FLAG=""
1e9e8aba
DE
46723 SHARED_LD_CC="\$(CC) -shared -o"
46724 SHARED_LD_CXX="\$(CXX) -shared -o"
810b94f0 46725 WINDOWS_IMPLIB=1
a848cd7e
SC
46726 ;;
46727
46728 *-pc-os2_emx | *-pc-os2-emx )
b1d22ded
DE
46729 SHARED_LD_CC="`pwd`/dllar.sh -libf INITINSTANCE -libf TERMINSTANCE -o"
46730 SHARED_LD_CXX="`pwd`/dllar.sh -libf INITINSTANCE -libf TERMINSTANCE -o"
a848cd7e 46731 PIC_FLAG=""
473276a9
VS
46732
46733D='$'
46734cat <<EOF >dllar.sh
46735#!/bin/sh
46736#
46737# dllar - a tool to build both a .dll and an .a file
46738# from a set of object (.o) files for EMX/OS2.
46739#
46740# Written by Andrew Zabolotny, bit@freya.etu.ru
46741# Ported to Unix like shell by Stefan Neis, Stefan.Neis@t-online.de
46742#
46743# This script will accept a set of files on the command line.
46744# All the public symbols from the .o files will be exported into
46745# a .DEF file, then linker will be run (through gcc) against them to
46746# build a shared library consisting of all given .o files. All libraries
46747# (.a) will be first decompressed into component .o files then act as
46748# described above. You can optionally give a description (-d "description")
46749# which will be put into .DLL. To see the list of accepted options (as well
46750# as command-line format) simply run this program without options. The .DLL
46751# is built to be imported by name (there is no guarantee that new versions
46752# of the library you build will have same ordinals for same symbols).
46753#
46754# dllar is free software; you can redistribute it and/or modify
46755# it under the terms of the GNU General Public License as published by
46756# the Free Software Foundation; either version 2, or (at your option)
46757# any later version.
46758#
46759# dllar is distributed in the hope that it will be useful,
46760# but WITHOUT ANY WARRANTY; without even the implied warranty of
46761# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
46762# GNU General Public License for more details.
46763#
46764# You should have received a copy of the GNU General Public License
46765# along with dllar; see the file COPYING. If not, write to the Free
46766# Software Foundation, 59 Temple Place - Suite 330, Boston, MA
46767# 02111-1307, USA.
46768
46769# To successfuly run this program you will need:
46770# - Current drive should have LFN support (HPFS, ext2, network, etc)
46771# (Sometimes dllar generates filenames which won't fit 8.3 scheme)
46772# - gcc
46773# (used to build the .dll)
46774# - emxexp
46775# (used to create .def file from .o files)
46776# - emximp
46777# (used to create .a file from .def file)
46778# - GNU text utilites (cat, sort, uniq)
46779# used to process emxexp output
46780# - GNU file utilities (mv, rm)
46781# - GNU sed
46782# - lxlite (optional, see flag below)
46783# (used for general .dll cleanup)
46784#
46785
46786flag_USE_LXLITE=1;
46787
46788#
46789# helper functions
46790# basnam, variant of basename, which does _not_ remove the path, _iff_
46791# second argument (suffix to remove) is given
46792basnam(){
46793 case ${D}# in
46794 1)
1e9e8aba 46795 echo ${D}1 | sed 's/.*\\///' | sed 's/.*\\\\//'
473276a9
VS
46796 ;;
46797 2)
46798 echo ${D}1 | sed 's/'${D}2'${D}//'
46799 ;;
46800 *)
46801 echo "error in basnam ${D}*"
46802 exit 8
46803 ;;
46804 esac
46805}
46806
46807# Cleanup temporary files and output
46808CleanUp() {
46809 cd ${D}curDir
46810 for i in ${D}inputFiles ; do
46811 case ${D}i in
46812 *!)
46813 rm -rf \`basnam ${D}i !\`
46814 ;;
46815 *)
46816 ;;
46817 esac
46818 done
46819
46820 # Kill result in case of failure as there is just to many stupid make/nmake
46821 # things out there which doesn't do this.
1e9e8aba 46822 if [ ${D}# -eq 0 ]; then
473276a9
VS
46823 rm -f ${D}arcFile ${D}arcFile2 ${D}defFile ${D}dllFile
46824 fi
46825}
46826
46827# Print usage and exit script with rc=1.
46828PrintHelp() {
b1d22ded
DE
46829 echo 'Usage: dllar.sh [-o[utput] output_file] [-i[mport] importlib_name]'
46830 echo ' [-name-mangler-script script.sh]'
46831 echo ' [-d[escription] "dll descrption"] [-cc "CC"] [-f[lags] "CFLAGS"]'
46832 echo ' [-ord[inals]] -ex[clude] "symbol(s)"'
46833 echo ' [-libf[lags] "{INIT|TERM}{GLOBAL|INSTANCE}"] [-nocrt[dll]] [-nolxl[ite]]'
1e9e8aba 46834 echo ' [*.o] [*.a]'
473276a9
VS
46835 echo '*> "output_file" should have no extension.'
46836 echo ' If it has the .o, .a or .dll extension, it is automatically removed.'
46837 echo ' The import library name is derived from this and is set to "name".a,'
46838 echo ' unless overridden by -import'
46839 echo '*> "importlib_name" should have no extension.'
46840 echo ' If it has the .o, or .a extension, it is automatically removed.'
46841 echo ' This name is used as the import library name and may be longer and'
46842 echo ' more descriptive than the DLL name which has to follow the old '
46843 echo ' 8.3 convention of FAT.'
b1d22ded
DE
46844 echo '*> "script.sh may be given to override the output_file name by a'
46845 echo ' different name. It is mainly useful if the regular make process'
46846 echo ' of some package does not take into account OS/2 restriction of'
46847 echo ' DLL name lengths. It takes the importlib name as input and is'
46848 echo ' supposed to procude a shorter name as output. The script should'
46849 echo ' expect to get importlib_name without extension and should produce'
46850 echo ' a (max.) 8 letter name without extension.'
473276a9
VS
46851 echo '*> "cc" is used to use another GCC executable. (default: gcc.exe)'
46852 echo '*> "flags" should be any set of valid GCC flags. (default: -s -Zcrtdll)'
46853 echo ' These flags will be put at the start of GCC command line.'
b1d22ded
DE
46854 echo '*> -ord[inals] tells dllar to export entries by ordinals. Be careful.'
46855 echo '*> -ex[clude] defines symbols which will not be exported. You can define'
473276a9
VS
46856 echo ' multiple symbols, for example -ex "myfunc yourfunc _GLOBAL*".'
46857 echo ' If the last character of a symbol is "*", all symbols beginning'
46858 echo ' with the prefix before "*" will be exclude, (see _GLOBAL* above).'
b1d22ded 46859 echo '*> -libf[lags] can be used to add INITGLOBAL/INITINSTANCE and/or'
473276a9 46860 echo ' TERMGLOBAL/TERMINSTANCE flags to the dynamically-linked library.'
b1d22ded 46861 echo '*> -nocrt[dll] switch will disable linking the library against emx''s'
473276a9 46862 echo ' C runtime DLLs.'
b1d22ded 46863 echo '*> -nolxl[ite] switch will disable running lxlite on the resulting DLL.'
473276a9
VS
46864 echo '*> All other switches (for example -L./ or -lmylib) will be passed'
46865 echo ' unchanged to GCC at the end of command line.'
46866 echo '*> If you create a DLL from a library and you do not specify -o,'
46867 echo ' the basename for DLL and import library will be set to library name,'
46868 echo ' the initial library will be renamed to 'name'_s.a (_s for static)'
46869 echo ' i.e. "dllar gcc.a" will create gcc.dll and gcc.a, and the initial'
46870 echo ' library will be renamed into gcc_s.a.'
46871 echo '--------'
46872 echo 'Example:'
46873 echo ' dllar -o gcc290.dll libgcc.a -d "GNU C runtime library" -ord'
46874 echo ' -ex "__main __ctordtor*" -libf "INITINSTANCE TERMINSTANCE"'
46875 CleanUp
46876 exit 1
46877}
46878
46879# Execute a command.
46880# If exit code of the commnad <> 0 CleanUp() is called and we'll exit the script.
46881# @Uses Whatever CleanUp() uses.
46882doCommand() {
46883 echo "${D}*"
46884 eval ${D}*
46885 rcCmd=${D}?
46886
1e9e8aba 46887 if [ ${D}rcCmd -ne 0 ]; then
473276a9
VS
46888 echo "command failed, exit code="${D}rcCmd
46889 CleanUp
46890 exit ${D}rcCmd
46891 fi
46892}
46893
46894# main routine
46895# setup globals
46896cmdLine=${D}*
46897outFile=""
46898outimpFile=""
46899inputFiles=""
b1d22ded 46900renameScript=""
473276a9
VS
46901description=""
46902CC=gcc.exe
46903CFLAGS="-s -Zcrtdll"
46904EXTRA_CFLAGS=""
46905EXPORT_BY_ORDINALS=0
46906exclude_symbols=""
46907library_flags=""
46908curDir=\`pwd\`
46909curDirS=curDir
46910case ${D}curDirS in
46911*/)
46912 ;;
46913*)
46914 curDirS=${D}{curDirS}"/"
46915 ;;
46916esac
46917# Parse commandline
46918libsToLink=0
b1d22ded 46919omfLinking=0
1e9e8aba 46920while [ ${D}1 ]; do
473276a9
VS
46921 case ${D}1 in
46922 -ord*)
46923 EXPORT_BY_ORDINALS=1;
46924 ;;
46925 -o*)
46926 shift
46927 outFile=${D}1
46928 ;;
46929 -i*)
46930 shift
46931 outimpFile=${D}1
46932 ;;
b1d22ded
DE
46933 -name-mangler-script)
46934 shift
46935 renameScript=${D}1
46936 ;;
473276a9
VS
46937 -d*)
46938 shift
46939 description=${D}1
46940 ;;
46941 -f*)
46942 shift
46943 CFLAGS=${D}1
46944 ;;
46945 -c*)
46946 shift
46947 CC=${D}1
46948 ;;
46949 -h*)
46950 PrintHelp
46951 ;;
46952 -ex*)
46953 shift
46954 exclude_symbols=${D}{exclude_symbols}${D}1" "
46955 ;;
46956 -libf*)
46957 shift
46958 library_flags=${D}{library_flags}${D}1" "
46959 ;;
46960 -nocrt*)
46961 CFLAGS="-s"
46962 ;;
46963 -nolxl*)
46964 flag_USE_LXLITE=0
46965 ;;
46966 -* | /*)
46967 case ${D}1 in
46968 -L* | -l*)
46969 libsToLink=1
46970 ;;
b1d22ded
DE
46971 -Zomf)
46972 omfLinking=1
46973 ;;
473276a9
VS
46974 *)
46975 ;;
46976 esac
46977 EXTRA_CFLAGS=${D}{EXTRA_CFLAGS}" "${D}1
46978 ;;
b1d22ded
DE
46979 *.dll)
46980 EXTRA_CFLAGS="${D}{EXTRA_CFLAGS} \`basnam ${D}1 .dll\`"
46981 if [ ${D}omfLinking -eq 1 ]; then
46982 EXTRA_CFLAGS="${D}{EXTRA_CFLAGS}.lib"
46983 else
46984 EXTRA_CFLAGS="${D}{EXTRA_CFLAGS}.a"
46985 fi
46986 ;;
473276a9
VS
46987 *)
46988 found=0;
1e9e8aba 46989 if [ ${D}libsToLink -ne 0 ]; then
473276a9
VS
46990 EXTRA_CFLAGS=${D}{EXTRA_CFLAGS}" "${D}1
46991 else
46992 for file in ${D}1 ; do
1e9e8aba 46993 if [ -f ${D}file ]; then
473276a9
VS
46994 inputFiles="${D}{inputFiles} ${D}file"
46995 found=1
46996 fi
46997 done
1e9e8aba 46998 if [ ${D}found -eq 0 ]; then
473276a9
VS
46999 echo "ERROR: No file(s) found: "${D}1
47000 exit 8
47001 fi
47002 fi
47003 ;;
47004 esac
47005 shift
47006done # iterate cmdline words
47007
47008#
1e9e8aba 47009if [ -z "${D}inputFiles" ]; then
473276a9
VS
47010 echo "dllar: no input files"
47011 PrintHelp
47012fi
47013
47014# Now extract all .o files from .a files
47015newInputFiles=""
47016for file in ${D}inputFiles ; do
47017 case ${D}file in
47018 *.a | *.lib)
47019 case ${D}file in
47020 *.a)
47021 suffix=".a"
47022 AR="ar"
47023 ;;
47024 *.lib)
47025 suffix=".lib"
47026 AR="emxomfar"
47027 EXTRA_CFLAGS="${D}EXTRA_CFLAGS -Zomf"
47028 ;;
47029 *)
47030 ;;
47031 esac
47032 dirname=\`basnam ${D}file ${D}suffix\`"_%"
47033 mkdir ${D}dirname
1e9e8aba 47034 if [ ${D}? -ne 0 ]; then
473276a9
VS
47035 echo "Failed to create subdirectory ./${D}dirname"
47036 CleanUp
47037 exit 8;
47038 fi
47039 # Append '!' to indicate archive
47040 newInputFiles="${D}newInputFiles ${D}{dirname}!"
47041 doCommand "cd ${D}dirname; ${D}AR x ../${D}file"
47042 cd ${D}curDir
47043 found=0;
47044 for subfile in ${D}dirname/*.o* ; do
1e9e8aba 47045 if [ -f ${D}subfile ]; then
473276a9 47046 found=1
1e9e8aba 47047 if [ -s ${D}subfile ]; then
473276a9
VS
47048 # FIXME: This should be: is file size > 32 byte, _not_ > 0!
47049 newInputFiles="${D}newInputFiles ${D}subfile"
47050 fi
47051 fi
47052 done
1e9e8aba
DE
47053 if [ ${D}found -eq 0 ]; then
47054 echo "WARNING: there are no files in archive \\'${D}file\\'"
473276a9
VS
47055 fi
47056 ;;
47057 *)
47058 newInputFiles="${D}{newInputFiles} ${D}file"
47059 ;;
47060 esac
47061done
47062inputFiles="${D}newInputFiles"
47063
47064# Output filename(s).
47065do_backup=0;
1e9e8aba 47066if [ -z ${D}outFile ]; then
473276a9
VS
47067 do_backup=1;
47068 set outFile ${D}inputFiles; outFile=${D}2
47069fi
47070
47071# If it is an archive, remove the '!' and the '_%' suffixes
47072case ${D}outFile in
47073*_%!)
47074 outFile=\`basnam ${D}outFile _%!\`
47075 ;;
47076*)
47077 ;;
47078esac
47079case ${D}outFile in
47080*.dll)
47081 outFile=\`basnam ${D}outFile .dll\`
47082 ;;
47083*.DLL)
47084 outFile=\`basnam ${D}outFile .DLL\`
47085 ;;
47086*.o)
47087 outFile=\`basnam ${D}outFile .o\`
47088 ;;
47089*.obj)
47090 outFile=\`basnam ${D}outFile .obj\`
47091 ;;
47092*.a)
47093 outFile=\`basnam ${D}outFile .a\`
47094 ;;
47095*.lib)
47096 outFile=\`basnam ${D}outFile .lib\`
47097 ;;
47098*)
47099 ;;
47100esac
47101case ${D}outimpFile in
47102*.a)
47103 outimpFile=\`basnam ${D}outimpFile .a\`
47104 ;;
47105*.lib)
47106 outimpFile=\`basnam ${D}outimpFile .lib\`
47107 ;;
47108*)
47109 ;;
47110esac
1e9e8aba 47111if [ -z ${D}outimpFile ]; then
473276a9
VS
47112 outimpFile=${D}outFile
47113fi
47114defFile="${D}{outFile}.def"
47115arcFile="${D}{outimpFile}.a"
47116arcFile2="${D}{outimpFile}.lib"
b1d22ded
DE
47117
47118#create ${D}dllFile as something matching 8.3 restrictions,
47119if [ -z ${D}renameScript ] ; then
47120 dllFile="${D}outFile"
47121else
47122 dllFile=\`${D}renameScript ${D}outimpFile\`
47123fi
473276a9 47124
1e9e8aba
DE
47125if [ ${D}do_backup -ne 0 ] ; then
47126 if [ -f ${D}arcFile ] ; then
473276a9
VS
47127 doCommand "mv ${D}arcFile ${D}{outFile}_s.a"
47128 fi
1e9e8aba 47129 if [ -f ${D}arcFile2 ] ; then
473276a9
VS
47130 doCommand "mv ${D}arcFile2 ${D}{outFile}_s.lib"
47131 fi
47132fi
47133
47134# Extract public symbols from all the object files.
47135tmpdefFile=${D}{defFile}_%
47136rm -f ${D}tmpdefFile
47137for file in ${D}inputFiles ; do
47138 case ${D}file in
47139 *!)
47140 ;;
47141 *)
47142 doCommand "emxexp -u ${D}file >> ${D}tmpdefFile"
47143 ;;
47144 esac
47145done
47146
47147# Create the def file.
47148rm -f ${D}defFile
47149echo "LIBRARY \`basnam ${D}dllFile\` ${D}library_flags" >> ${D}defFile
b1d22ded
DE
47150dllFile="${D}{dllFile}.dll"
47151if [ ! -z ${D}description ]; then
1e9e8aba 47152 echo "DESCRIPTION \\"${D}{description}\\"" >> ${D}defFile
473276a9
VS
47153fi
47154echo "EXPORTS" >> ${D}defFile
47155
47156doCommand "cat ${D}tmpdefFile | sort.exe | uniq.exe > ${D}{tmpdefFile}%"
47157grep -v "^ *;" < ${D}{tmpdefFile}% | grep -v "^ *${D}" >${D}tmpdefFile
47158
47159# Checks if the export is ok or not.
47160for word in ${D}exclude_symbols; do
47161 grep -v ${D}word < ${D}tmpdefFile >${D}{tmpdefFile}%
47162 mv ${D}{tmpdefFile}% ${D}tmpdefFile
47163done
47164
47165
1e9e8aba
DE
47166if [ ${D}EXPORT_BY_ORDINALS -ne 0 ]; then
47167 sed "=" < ${D}tmpdefFile | \\
473276a9
VS
47168 sed '
47169 N
47170 : loop
1e9e8aba 47171 s/^\\([0-9]\\+\\)\\([^;]*\\)\\(;.*\\)\\?/\\2 @\\1 NONAME/
473276a9
VS
47172 t loop
47173 ' > ${D}{tmpdefFile}%
47174 grep -v "^ *${D}" < ${D}{tmpdefFile}% > ${D}tmpdefFile
47175else
47176 rm -f ${D}{tmpdefFile}%
47177fi
47178cat ${D}tmpdefFile >> ${D}defFile
47179rm -f ${D}tmpdefFile
47180
47181# Do linking, create implib, and apply lxlite.
47182gccCmdl="";
47183for file in ${D}inputFiles ; do
47184 case ${D}file in
47185 *!)
47186 ;;
47187 *)
47188 gccCmdl="${D}gccCmdl ${D}file"
47189 ;;
47190 esac
47191done
47192doCommand "${D}CC ${D}CFLAGS -Zdll -o ${D}dllFile ${D}defFile ${D}gccCmdl ${D}EXTRA_CFLAGS"
47193touch "${D}{outFile}.dll"
47194
47195doCommand "emximp -o ${D}arcFile ${D}defFile"
1e9e8aba 47196if [ ${D}flag_USE_LXLITE -ne 0 ]; then
473276a9 47197 add_flags="";
1e9e8aba 47198 if [ ${D}EXPORT_BY_ORDINALS -ne 0 ]; then
473276a9
VS
47199 add_flags="-ynd"
47200 fi
47201 doCommand "lxlite -cs -t: -mrn -mln ${D}add_flags ${D}dllFile"
47202fi
47203doCommand "emxomf -s -l ${D}arcFile"
47204
47205# Successful exit.
47206CleanUp 1
47207exit 0
47208EOF
47209
47210 chmod +x dllar.sh
a848cd7e
SC
47211 ;;
47212
1e9e8aba 47213 powerpc-apple-macos* | \
0ad5d837 47214 *-*-freebsd* | *-*-openbsd* | *-*-netbsd* | *-*-k*bsd*-gnu | \
c9a66001 47215 *-*-mirbsd* | \
a848cd7e
SC
47216 *-*-sunos4* | \
47217 *-*-osf* | \
47218 *-*-dgux5* | \
47a7e797
MW
47219 *-*-sysv5* | \
47220 *-pc-msdosdjgpp )
a848cd7e
SC
47221 ;;
47222
47223 *)
47224 { { echo "$as_me:$LINENO: error: unknown system type $BAKEFILE_HOST." >&5
47225echo "$as_me: error: unknown system type $BAKEFILE_HOST." >&2;}
47226 { (exit 1); exit 1; }; }
47227 esac
47228
2057db16
VS
47229 if test "x$PIC_FLAG" != "x" ; then
47230 PIC_FLAG="$PIC_FLAG -DPIC"
47231 fi
47232
a848cd7e
SC
47233 if test "x$SHARED_LD_MODULE_CC" = "x" ; then
47234 SHARED_LD_MODULE_CC="$SHARED_LD_CC"
47235 fi
47236 if test "x$SHARED_LD_MODULE_CXX" = "x" ; then
47237 SHARED_LD_MODULE_CXX="$SHARED_LD_CXX"
47238 fi
47239
47240
47241
47242
47243
47244
47245
47246
810b94f0 47247
a848cd7e
SC
47248 USE_SOVERSION=0
47249 USE_SOVERLINUX=0
47250 USE_SOVERSOLARIS=0
810b94f0 47251 USE_SOVERCYGWIN=0
a848cd7e
SC
47252 USE_SOSYMLINKS=0
47253 USE_MACVERSION=0
47254 SONAME_FLAG=
47255
47256 case "${BAKEFILE_HOST}" in
0ad5d837 47257 *-*-linux* | *-*-freebsd* | *-*-k*bsd*-gnu )
5f652d0d
VS
47258 SONAME_FLAG="-Wl,-soname,"
47259 USE_SOVERSION=1
47260 USE_SOVERLINUX=1
47261 USE_SOSYMLINKS=1
47262 ;;
47263
a848cd7e
SC
47264 *-*-solaris2* )
47265 SONAME_FLAG="-h "
47266 USE_SOVERSION=1
47267 USE_SOVERSOLARIS=1
47268 USE_SOSYMLINKS=1
47269 ;;
47270
47271 *-*-darwin* )
47272 USE_MACVERSION=1
47273 USE_SOVERSION=1
47274 USE_SOSYMLINKS=1
47275 ;;
810b94f0
MW
47276
47277 *-*-cygwin* )
47278 USE_SOVERSION=1
47279 USE_SOVERCYGWIN=1
47280 ;;
a848cd7e
SC
47281 esac
47282
47283
47284
47285
47286
47287
47288
47289
47290
810b94f0 47291
f10e38c4
VZ
47292 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
47293if test "${enable_dependency_tracking+set}" = set; then
47294 enableval="$enable_dependency_tracking"
47295 bk_use_trackdeps="$enableval"
47296fi;
47297
a848cd7e
SC
47298 echo "$as_me:$LINENO: checking for dependency tracking method" >&5
47299echo $ECHO_N "checking for dependency tracking method... $ECHO_C" >&6
a848cd7e 47300
f10e38c4
VZ
47301 if test "x$bk_use_trackdeps" = "xno" ; then
47302 DEPS_TRACKING=0
47303 echo "$as_me:$LINENO: result: disabled" >&5
47304echo "${ECHO_T}disabled" >&6
47305 else
47306 DEPS_TRACKING=1
47307
47308 if test "x$GCC" = "xyes"; then
47309 DEPSMODE=gcc
47310 case "${BAKEFILE_HOST}" in
47311 *-*-darwin* )
47312 DEPSFLAG="-no-cpp-precomp -MMD"
47313 ;;
47314 * )
47315 DEPSFLAG="-MMD"
47316 ;;
47317 esac
47318 echo "$as_me:$LINENO: result: gcc" >&5
a848cd7e 47319echo "${ECHO_T}gcc" >&6
f10e38c4
VZ
47320 elif test "x$MWCC" = "xyes"; then
47321 DEPSMODE=mwcc
47322 DEPSFLAG="-MM"
47323 echo "$as_me:$LINENO: result: mwcc" >&5
b1d22ded 47324echo "${ECHO_T}mwcc" >&6
f10e38c4
VZ
47325 elif test "x$SUNCC" = "xyes"; then
47326 DEPSMODE=unixcc
47327 DEPSFLAG="-xM1"
47328 echo "$as_me:$LINENO: result: Sun cc" >&5
0ad5d837 47329echo "${ECHO_T}Sun cc" >&6
f10e38c4
VZ
47330 elif test "x$SGICC" = "xyes"; then
47331 DEPSMODE=unixcc
47332 DEPSFLAG="-M"
47333 echo "$as_me:$LINENO: result: SGI cc" >&5
0ad5d837 47334echo "${ECHO_T}SGI cc" >&6
f10e38c4
VZ
47335 elif test "x$HPCC" = "xyes"; then
47336 DEPSMODE=unixcc
47337 DEPSFLAG="+make"
47338 echo "$as_me:$LINENO: result: HP cc" >&5
3006edc0 47339echo "${ECHO_T}HP cc" >&6
f10e38c4
VZ
47340 elif test "x$COMPAQCC" = "xyes"; then
47341 DEPSMODE=gcc
47342 DEPSFLAG="-MD"
47343 echo "$as_me:$LINENO: result: Compaq cc" >&5
a1aa0349 47344echo "${ECHO_T}Compaq cc" >&6
f10e38c4
VZ
47345 else
47346 DEPS_TRACKING=0
47347 echo "$as_me:$LINENO: result: none" >&5
a848cd7e 47348echo "${ECHO_T}none" >&6
f10e38c4 47349 fi
a848cd7e 47350
f10e38c4 47351 if test $DEPS_TRACKING = 1 ; then
473276a9
VS
47352
47353D='$'
47354cat <<EOF >bk-deps
a848cd7e
SC
47355#!/bin/sh
47356
47357# This script is part of Bakefile (http://bakefile.sourceforge.net) autoconf
47358# script. It is used to track C/C++ files dependencies in portable way.
47359#
47360# Permission is given to use this file in any way.
47361
473276a9 47362DEPSMODE=${DEPSMODE}
a848cd7e 47363DEPSDIR=.deps
0ad5d837 47364DEPSFLAG="${DEPSFLAG}"
a848cd7e 47365
473276a9 47366mkdir -p ${D}DEPSDIR
a848cd7e 47367
473276a9 47368if test ${D}DEPSMODE = gcc ; then
0ad5d837 47369 ${D}* ${D}{DEPSFLAG}
473276a9
VS
47370 status=${D}?
47371 if test ${D}{status} != 0 ; then
47372 exit ${D}{status}
a848cd7e
SC
47373 fi
47374 # move created file to the location we want it in:
473276a9
VS
47375 while test ${D}# -gt 0; do
47376 case "${D}1" in
a848cd7e
SC
47377 -o )
47378 shift
473276a9 47379 objfile=${D}1
a848cd7e
SC
47380 ;;
47381 -* )
47382 ;;
47383 * )
473276a9 47384 srcfile=${D}1
a848cd7e
SC
47385 ;;
47386 esac
47387 shift
47388 done
1e9e8aba
DE
47389 depfile=\`basename ${D}srcfile | sed -e 's/\\..*${D}/.d/g'\`
47390 depobjname=\`echo ${D}depfile |sed -e 's/\\.d/.o/g'\`
473276a9
VS
47391 if test -f ${D}depfile ; then
47392 sed -e "s,${D}depobjname:,${D}objfile:,g" ${D}depfile >${D}{DEPSDIR}/${D}{objfile}.d
47393 rm -f ${D}depfile
a848cd7e 47394 else
a1aa0349 47395 # "g++ -MMD -o fooobj.o foosrc.cpp" produces fooobj.d
1e9e8aba 47396 depfile=\`basename ${D}objfile | sed -e 's/\\..*${D}/.d/g'\`
a1aa0349
VZ
47397 if test ! -f ${D}depfile ; then
47398 # "cxx -MD -o fooobj.o foosrc.cpp" creates fooobj.o.d (Compaq C++)
47399 depfile="${D}objfile.d"
47400 fi
473276a9
VS
47401 if test -f ${D}depfile ; then
47402 sed -e "/^${D}objfile/!s,${D}depobjname:,${D}objfile:,g" ${D}depfile >${D}{DEPSDIR}/${D}{objfile}.d
47403 rm -f ${D}depfile
a848cd7e
SC
47404 fi
47405 fi
47406 exit 0
81f90336 47407elif test ${D}DEPSMODE = mwcc ; then
f6b50c59 47408 ${D}* || exit ${D}?
81f90336
MW
47409 # Run mwcc again with -MM and redirect into the dep file we want
47410 # NOTE: We can't use shift here because we need ${D}* to be valid
47411 prevarg=
47412 for arg in ${D}* ; do
47413 if test "${D}prevarg" = "-o"; then
47414 objfile=${D}arg
47415 else
47416 case "${D}arg" in
47417 -* )
47418 ;;
47419 * )
47420 srcfile=${D}arg
47421 ;;
47422 esac
47423 fi
47424 prevarg="${D}arg"
47425 done
0ad5d837 47426 ${D}* ${D}DEPSFLAG >${D}{DEPSDIR}/${D}{objfile}.d
81f90336 47427 exit 0
0ad5d837 47428elif test ${D}DEPSMODE = unixcc; then
f6b50c59 47429 ${D}* || exit ${D}?
a9e5b1f0
MW
47430 # Run compiler again with deps flag and redirect into the dep file.
47431 # It doesn't work if the '-o FILE' option is used, but without it the
47432 # dependency file will contain the wrong name for the object. So it is
47433 # removed from the command line, and the dep file is fixed with sed.
47434 cmd=""
47435 while test ${D}# -gt 0; do
47436 case "${D}1" in
47437 -o )
47438 shift
47439 objfile=${D}1
47440 ;;
47441 * )
47442 eval arg${D}#=\\${D}1
47443 cmd="${D}cmd \\${D}arg${D}#"
47444 ;;
47445 esac
47446 shift
47447 done
0ad5d837 47448 eval "${D}cmd ${D}DEPSFLAG" | sed "s|.*:|${D}objfile:|" >${D}{DEPSDIR}/${D}{objfile}.d
a9e5b1f0 47449 exit 0
a848cd7e 47450else
473276a9
VS
47451 ${D}*
47452 exit ${D}?
a848cd7e
SC
47453fi
47454EOF
473276a9 47455
f10e38c4
VZ
47456 chmod +x bk-deps
47457 fi
a848cd7e
SC
47458 fi
47459
47460
47461
47462
a848cd7e
SC
47463 case ${BAKEFILE_HOST} in
47464 *-*-cygwin* | *-*-mingw32* )
8ced02f6
DE
47465 if test -n "$ac_tool_prefix"; then
47466 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
47467set dummy ${ac_tool_prefix}windres; ac_word=$2
47468echo "$as_me:$LINENO: checking for $ac_word" >&5
47469echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
47470if test "${ac_cv_prog_WINDRES+set}" = set; then
47471 echo $ECHO_N "(cached) $ECHO_C" >&6
47472else
47473 if test -n "$WINDRES"; then
47474 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
47475else
47476as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
47477for as_dir in $PATH
47478do
47479 IFS=$as_save_IFS
47480 test -z "$as_dir" && as_dir=.
47481 for ac_exec_ext in '' $ac_executable_extensions; do
47482 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
47483 ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
47484 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
47485 break 2
47486 fi
47487done
47488done
47489
47490fi
47491fi
47492WINDRES=$ac_cv_prog_WINDRES
47493if test -n "$WINDRES"; then
47494 echo "$as_me:$LINENO: result: $WINDRES" >&5
47495echo "${ECHO_T}$WINDRES" >&6
47496else
47497 echo "$as_me:$LINENO: result: no" >&5
47498echo "${ECHO_T}no" >&6
47499fi
47500
47501fi
47502if test -z "$ac_cv_prog_WINDRES"; then
47503 ac_ct_WINDRES=$WINDRES
47504 # Extract the first word of "windres", so it can be a program name with args.
a848cd7e
SC
47505set dummy windres; ac_word=$2
47506echo "$as_me:$LINENO: checking for $ac_word" >&5
47507echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8ced02f6 47508if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then
a848cd7e
SC
47509 echo $ECHO_N "(cached) $ECHO_C" >&6
47510else
8ced02f6
DE
47511 if test -n "$ac_ct_WINDRES"; then
47512 ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
a848cd7e
SC
47513else
47514as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
47515for as_dir in $PATH
47516do
47517 IFS=$as_save_IFS
47518 test -z "$as_dir" && as_dir=.
47519 for ac_exec_ext in '' $ac_executable_extensions; do
47520 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8ced02f6 47521 ac_cv_prog_ac_ct_WINDRES="windres"
a848cd7e
SC
47522 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
47523 break 2
47524 fi
47525done
47526done
47527
a848cd7e
SC
47528fi
47529fi
8ced02f6
DE
47530ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
47531if test -n "$ac_ct_WINDRES"; then
47532 echo "$as_me:$LINENO: result: $ac_ct_WINDRES" >&5
47533echo "${ECHO_T}$ac_ct_WINDRES" >&6
a848cd7e
SC
47534else
47535 echo "$as_me:$LINENO: result: no" >&5
47536echo "${ECHO_T}no" >&6
47537fi
47538
8ced02f6
DE
47539 WINDRES=$ac_ct_WINDRES
47540else
47541 WINDRES="$ac_cv_prog_WINDRES"
47542fi
47543
a848cd7e
SC
47544 ;;
47545
1e9e8aba 47546 *-*-darwin* | powerpc-apple-macos* )
a848cd7e
SC
47547 # Extract the first word of "Rez", so it can be a program name with args.
47548set dummy Rez; ac_word=$2
47549echo "$as_me:$LINENO: checking for $ac_word" >&5
47550echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8ced02f6 47551if test "${ac_cv_prog_REZ+set}" = set; then
a848cd7e
SC
47552 echo $ECHO_N "(cached) $ECHO_C" >&6
47553else
8ced02f6
DE
47554 if test -n "$REZ"; then
47555 ac_cv_prog_REZ="$REZ" # Let the user override the test.
a848cd7e
SC
47556else
47557as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
47558for as_dir in $PATH
47559do
47560 IFS=$as_save_IFS
47561 test -z "$as_dir" && as_dir=.
47562 for ac_exec_ext in '' $ac_executable_extensions; do
47563 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8ced02f6 47564 ac_cv_prog_REZ="Rez"
a848cd7e
SC
47565 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
47566 break 2
47567 fi
47568done
47569done
47570
8ced02f6 47571 test -z "$ac_cv_prog_REZ" && ac_cv_prog_REZ="/Developer/Tools/Rez"
a848cd7e
SC
47572fi
47573fi
8ced02f6
DE
47574REZ=$ac_cv_prog_REZ
47575if test -n "$REZ"; then
47576 echo "$as_me:$LINENO: result: $REZ" >&5
47577echo "${ECHO_T}$REZ" >&6
a848cd7e
SC
47578else
47579 echo "$as_me:$LINENO: result: no" >&5
47580echo "${ECHO_T}no" >&6
47581fi
47582
47583 # Extract the first word of "SetFile", so it can be a program name with args.
47584set dummy SetFile; ac_word=$2
47585echo "$as_me:$LINENO: checking for $ac_word" >&5
47586echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
47587if test "${ac_cv_prog_SETFILE+set}" = set; then
47588 echo $ECHO_N "(cached) $ECHO_C" >&6
47589else
47590 if test -n "$SETFILE"; then
47591 ac_cv_prog_SETFILE="$SETFILE" # Let the user override the test.
47592else
47593as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
47594for as_dir in $PATH
47595do
47596 IFS=$as_save_IFS
47597 test -z "$as_dir" && as_dir=.
47598 for ac_exec_ext in '' $ac_executable_extensions; do
47599 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
47600 ac_cv_prog_SETFILE="SetFile"
47601 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
47602 break 2
47603 fi
47604done
47605done
47606
47607 test -z "$ac_cv_prog_SETFILE" && ac_cv_prog_SETFILE="/Developer/Tools/SetFile"
47608fi
47609fi
47610SETFILE=$ac_cv_prog_SETFILE
47611if test -n "$SETFILE"; then
47612 echo "$as_me:$LINENO: result: $SETFILE" >&5
47613echo "${ECHO_T}$SETFILE" >&6
47614else
47615 echo "$as_me:$LINENO: result: no" >&5
47616echo "${ECHO_T}no" >&6
47617fi
47618
47619 ;;
47620 esac
47621
47622
47623
47624
47625
8ced02f6 47626
f10e38c4 47627 BAKEFILE_BAKEFILE_M4_VERSION="0.2.0"
a848cd7e 47628
dcc1b6ad 47629
f10e38c4 47630BAKEFILE_AUTOCONF_INC_M4_VERSION="0.2.0"
a848cd7e 47631
646b6ec1 47632
74b84332 47633
a848cd7e
SC
47634 # Check whether --enable-precomp-headers or --disable-precomp-headers was given.
47635if test "${enable_precomp_headers+set}" = set; then
47636 enableval="$enable_precomp_headers"
47637 bk_use_pch="$enableval"
47638fi;
47639
47640 GCC_PCH=0
f10e38c4
VZ
47641 ICC_PCH=0
47642 USE_PCH=0
a848cd7e 47643
5c60e845
MW
47644 case ${BAKEFILE_HOST} in
47645 *-*-cygwin* )
47646 bk_use_pch="no"
47647 ;;
47648 esac
47649
a848cd7e
SC
47650 if test "x$bk_use_pch" = "x" -o "x$bk_use_pch" = "xyes" ; then
47651 if test "x$GCC" = "xyes"; then
47652 echo "$as_me:$LINENO: checking if the compiler supports precompiled headers" >&5
47653echo $ECHO_N "checking if the compiler supports precompiled headers... $ECHO_C" >&6
47654 cat >conftest.$ac_ext <<_ACEOF
47655/* confdefs.h. */
47656_ACEOF
47657cat confdefs.h >>conftest.$ac_ext
47658cat >>conftest.$ac_ext <<_ACEOF
47659/* end confdefs.h. */
47660
47661int
47662main ()
47663{
47664
47665 #if !defined(__GNUC__) || !defined(__GNUC_MINOR__)
e5efa97e 47666 There is no PCH support
a848cd7e
SC
47667 #endif
47668 #if (__GNUC__ < 3)
e5efa97e 47669 There is no PCH support
a848cd7e
SC
47670 #endif
47671 #if (__GNUC__ == 3) && \
47672 ((!defined(__APPLE_CC__) && (__GNUC_MINOR__ < 4)) || \
f10e38c4
VZ
47673 ( defined(__APPLE_CC__) && (__GNUC_MINOR__ < 3))) || \
47674 ( defined(__INTEL_COMPILER) )
e5efa97e 47675 There is no PCH support
a848cd7e
SC
47676 #endif
47677
47678 ;
47679 return 0;
47680}
47681_ACEOF
47682rm -f conftest.$ac_objext
47683if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 47684 (eval $ac_compile) 2>conftest.er1
a848cd7e 47685 ac_status=$?
ac1cb8d3
VS
47686 grep -v '^ *+' conftest.er1 >conftest.err
47687 rm -f conftest.er1
47688 cat conftest.err >&5
a848cd7e
SC
47689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47690 (exit $ac_status); } &&
c9a66001 47691 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
47692 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47693 (eval $ac_try) 2>&5
47694 ac_status=$?
47695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47696 (exit $ac_status); }; } &&
47697 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
47698 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47699 (eval $ac_try) 2>&5
47700 ac_status=$?
47701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47702 (exit $ac_status); }; }; then
47703
47704 echo "$as_me:$LINENO: result: yes" >&5
47705echo "${ECHO_T}yes" >&6
a848cd7e
SC
47706 GCC_PCH=1
47707
47708else
47709 echo "$as_me: failed program was:" >&5
47710sed 's/^/| /' conftest.$ac_ext >&5
47711
47712
f10e38c4
VZ
47713 cat >conftest.$ac_ext <<_ACEOF
47714/* confdefs.h. */
47715_ACEOF
47716cat confdefs.h >>conftest.$ac_ext
47717cat >>conftest.$ac_ext <<_ACEOF
47718/* end confdefs.h. */
47719
47720int
47721main ()
47722{
47723
47724 #if !defined(__INTEL_COMPILER) || \
47725 (__INTEL_COMPILER < 800)
e5efa97e 47726 There is no PCH support
f10e38c4
VZ
47727 #endif
47728
47729 ;
47730 return 0;
47731}
47732_ACEOF
47733rm -f conftest.$ac_objext
47734if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
47735 (eval $ac_compile) 2>conftest.er1
47736 ac_status=$?
47737 grep -v '^ *+' conftest.er1 >conftest.err
47738 rm -f conftest.er1
47739 cat conftest.err >&5
47740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47741 (exit $ac_status); } &&
c9a66001 47742 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
f10e38c4
VZ
47743 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47744 (eval $ac_try) 2>&5
47745 ac_status=$?
47746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47747 (exit $ac_status); }; } &&
47748 { ac_try='test -s conftest.$ac_objext'
47749 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47750 (eval $ac_try) 2>&5
47751 ac_status=$?
47752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47753 (exit $ac_status); }; }; then
47754
47755 echo "$as_me:$LINENO: result: yes" >&5
47756echo "${ECHO_T}yes" >&6
47757 ICC_PCH=1
47758
47759else
47760 echo "$as_me: failed program was:" >&5
47761sed 's/^/| /' conftest.$ac_ext >&5
47762
47763
47764 echo "$as_me:$LINENO: result: no" >&5
a848cd7e
SC
47765echo "${ECHO_T}no" >&6
47766
47767fi
ac1cb8d3 47768rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
f10e38c4
VZ
47769
47770fi
47771rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
47772 if test $GCC_PCH = 1 -o $ICC_PCH = 1 ; then
47773 USE_PCH=1
1e9e8aba
DE
47774
47775D='$'
47776cat <<EOF >bk-make-pch
a848cd7e
SC
47777#!/bin/sh
47778
47779# This script is part of Bakefile (http://bakefile.sourceforge.net) autoconf
47780# script. It is used to generated precompiled headers.
47781#
47782# Permission is given to use this file in any way.
47783
1e9e8aba
DE
47784outfile="${D}{1}"
47785header="${D}{2}"
a848cd7e
SC
47786shift
47787shift
47788
f10e38c4
VZ
47789compiler=""
47790headerfile=""
47791
1e9e8aba 47792while test ${D}{#} -gt 0; do
f10e38c4 47793 add_to_cmdline=1
1e9e8aba 47794 case "${D}{1}" in
a848cd7e 47795 -I* )
1e9e8aba
DE
47796 incdir=\`echo ${D}{1} | sed -e 's/-I\\(.*\\)/\\1/g'\`
47797 if test "x${D}{headerfile}" = "x" -a -f "${D}{incdir}/${D}{header}" ; then
47798 headerfile="${D}{incdir}/${D}{header}"
a848cd7e
SC
47799 fi
47800 ;;
f10e38c4
VZ
47801 -use-pch|-use_pch )
47802 shift
47803 add_to_cmdline=0
47804 ;;
a848cd7e 47805 esac
f10e38c4
VZ
47806 if test ${D}add_to_cmdline = 1 ; then
47807 compiler="${D}{compiler} ${D}{1}"
47808 fi
a848cd7e
SC
47809 shift
47810done
47811
1e9e8aba 47812if test "x${D}{headerfile}" = "x" ; then
f10e38c4 47813 echo "error: can't find header ${D}{header} in include paths" >&2
a848cd7e 47814else
1e9e8aba
DE
47815 if test -f ${D}{outfile} ; then
47816 rm -f ${D}{outfile}
a848cd7e 47817 else
1e9e8aba 47818 mkdir -p \`dirname ${D}{outfile}\`
a848cd7e 47819 fi
1e9e8aba 47820 depsfile=".deps/\`echo ${D}{outfile} | tr '/.' '__'\`.d"
a848cd7e 47821 mkdir -p .deps
f10e38c4
VZ
47822 if test "x${GCC_PCH}" = "x1" ; then
47823 # can do this because gcc is >= 3.4:
47824 ${D}{compiler} -o ${D}{outfile} -MMD -MF "${D}{depsfile}" "${D}{headerfile}"
47825 elif test "x${ICC_PCH}" = "x1" ; then
47826 filename=pch_gen-${D}${D}
47827 file=${D}{filename}.c
47828 dfile=${D}{filename}.d
47829 cat > ${D}file <<EOT
47830#include "${D}header"
47831EOT
47832 # using -MF icc complains about differing command lines in creation/use
47833 ${D}compiler -c -create_pch ${D}outfile -MMD ${D}file && \\
47834 sed -e "s,^.*:,${D}outfile:," -e "s, ${D}file,," < ${D}dfile > ${D}depsfile && \\
47835 rm -f ${D}file ${D}dfile ${D}{filename}.o
47836 fi
1e9e8aba 47837 exit ${D}{?}
a848cd7e
SC
47838fi
47839EOF
1e9e8aba 47840
a848cd7e
SC
47841 chmod +x bk-make-pch
47842 fi
47843 fi
47844 fi
47845
47846
47847
f10e38c4 47848
a848cd7e
SC
47849 COND_BUILD_DEBUG="#"
47850 if test "x$BUILD" = "xdebug" ; then
47851 COND_BUILD_DEBUG=""
47852 fi
47853
47854 COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT="#"
47855 if test "x$BUILD" = "xdebug" -a "x$DEBUG_FLAG" = "xdefault" ; then
47856 COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT=""
47857 fi
47858
47859 COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT="#"
47860 if test "x$BUILD" = "xdebug" -a "x$DEBUG_INFO" = "xdefault" ; then
47861 COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT=""
47862 fi
47863
47864 COND_BUILD_DEBUG_UNICODE_0="#"
47865 if test "x$BUILD" = "xdebug" -a "x$UNICODE" = "x0" ; then
47866 COND_BUILD_DEBUG_UNICODE_0=""
47867 fi
47868
47869 COND_BUILD_DEBUG_UNICODE_1="#"
47870 if test "x$BUILD" = "xdebug" -a "x$UNICODE" = "x1" ; then
47871 COND_BUILD_DEBUG_UNICODE_1=""
47872 fi
47873
47874 COND_BUILD_RELEASE="#"
47875 if test "x$BUILD" = "xrelease" ; then
47876 COND_BUILD_RELEASE=""
47877 fi
47878
47879 COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT="#"
47880 if test "x$BUILD" = "xrelease" -a "x$DEBUG_INFO" = "xdefault" ; then
47881 COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT=""
47882 fi
47883
47884 COND_BUILD_RELEASE_UNICODE_0="#"
47885 if test "x$BUILD" = "xrelease" -a "x$UNICODE" = "x0" ; then
47886 COND_BUILD_RELEASE_UNICODE_0=""
47887 fi
47888
47889 COND_BUILD_RELEASE_UNICODE_1="#"
47890 if test "x$BUILD" = "xrelease" -a "x$UNICODE" = "x1" ; then
47891 COND_BUILD_RELEASE_UNICODE_1=""
47892 fi
47893
47894 COND_DEBUG_FLAG_1="#"
47895 if test "x$DEBUG_FLAG" = "x1" ; then
47896 COND_DEBUG_FLAG_1=""
47897 fi
47898
47899 COND_DEBUG_INFO_0="#"
47900 if test "x$DEBUG_INFO" = "x0" ; then
47901 COND_DEBUG_INFO_0=""
47902 fi
47903
47904 COND_DEBUG_INFO_1="#"
47905 if test "x$DEBUG_INFO" = "x1" ; then
47906 COND_DEBUG_INFO_1=""
47907 fi
47908
47909 COND_DEPS_TRACKING_0="#"
47910 if test "x$DEPS_TRACKING" = "x0" ; then
47911 COND_DEPS_TRACKING_0=""
47912 fi
47913
47914 COND_DEPS_TRACKING_1="#"
47915 if test "x$DEPS_TRACKING" = "x1" ; then
47916 COND_DEPS_TRACKING_1=""
47917 fi
47918
47919 COND_GCC_PCH_1="#"
47920 if test "x$GCC_PCH" = "x1" ; then
47921 COND_GCC_PCH_1=""
47922 fi
47923
f10e38c4
VZ
47924 COND_ICC_PCH_1="#"
47925 if test "x$ICC_PCH" = "x1" ; then
47926 COND_ICC_PCH_1=""
47927 fi
47928
a848cd7e
SC
47929 COND_MONOLITHIC_0="#"
47930 if test "x$MONOLITHIC" = "x0" ; then
47931 COND_MONOLITHIC_0=""
47932 fi
47933
47934 COND_MONOLITHIC_0_SHARED_0="#"
47935 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" ; then
47936 COND_MONOLITHIC_0_SHARED_0=""
47937 fi
47938
3f60522a
JS
47939 COND_MONOLITHIC_0_SHARED_0_USE_AUI_1="#"
47940 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_AUI" = "x1" ; then
47941 COND_MONOLITHIC_0_SHARED_0_USE_AUI_1=""
47942 fi
47943
a848cd7e
SC
47944 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1="#"
47945 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" ; then
47946 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1=""
47947 fi
47948
90970d69
DE
47949 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_HTML_1="#"
47950 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_HTML" = "x1" ; then
47951 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_HTML_1=""
47952 fi
47953
f10e38c4
VZ
47954 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_MEDIA_1="#"
47955 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_MEDIA" = "x1" ; then
47956 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_MEDIA_1=""
47957 fi
47958
a848cd7e
SC
47959 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1="#"
47960 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_ODBC" = "x1" ; then
47961 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1=""
47962 fi
47963
6671c68b
VZ
47964 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_QA_1="#"
47965 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_QA" = "x1" ; then
47966 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_QA_1=""
47967 fi
47968
a848cd7e
SC
47969 COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1="#"
47970 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_ODBC" = "x1" ; then
47971 COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1=""
47972 fi
47973
8b6682b9
JS
47974 COND_MONOLITHIC_0_SHARED_0_USE_RICHTEXT_1="#"
47975 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_RICHTEXT" = "x1" ; then
47976 COND_MONOLITHIC_0_SHARED_0_USE_RICHTEXT_1=""
47977 fi
47978
ceec2216
RL
47979 COND_MONOLITHIC_0_SHARED_0_USE_XRC_1="#"
47980 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_XRC" = "x1" ; then
47981 COND_MONOLITHIC_0_SHARED_0_USE_XRC_1=""
47982 fi
47983
a848cd7e
SC
47984 COND_MONOLITHIC_0_SHARED_1="#"
47985 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" ; then
47986 COND_MONOLITHIC_0_SHARED_1=""
47987 fi
47988
3f60522a
JS
47989 COND_MONOLITHIC_0_SHARED_1_USE_AUI_1="#"
47990 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_AUI" = "x1" ; then
47991 COND_MONOLITHIC_0_SHARED_1_USE_AUI_1=""
47992 fi
47993
a848cd7e
SC
47994 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1="#"
47995 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" ; then
47996 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1=""
47997 fi
47998
90970d69
DE
47999 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_HTML_1="#"
48000 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_HTML" = "x1" ; then
48001 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_HTML_1=""
48002 fi
48003
f10e38c4
VZ
48004 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_MEDIA_1="#"
48005 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_MEDIA" = "x1" ; then
48006 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_MEDIA_1=""
48007 fi
48008
a848cd7e
SC
48009 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1="#"
48010 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_ODBC" = "x1" ; then
48011 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1=""
48012 fi
48013
6671c68b
VZ
48014 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_QA_1="#"
48015 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_QA" = "x1" ; then
48016 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_QA_1=""
48017 fi
48018
a848cd7e
SC
48019 COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1="#"
48020 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_ODBC" = "x1" ; then
48021 COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1=""
48022 fi
48023
8b6682b9
JS
48024 COND_MONOLITHIC_0_SHARED_1_USE_RICHTEXT_1="#"
48025 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_RICHTEXT" = "x1" ; then
48026 COND_MONOLITHIC_0_SHARED_1_USE_RICHTEXT_1=""
48027 fi
48028
ceec2216
RL
48029 COND_MONOLITHIC_0_SHARED_1_USE_XRC_1="#"
48030 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_XRC" = "x1" ; then
48031 COND_MONOLITHIC_0_SHARED_1_USE_XRC_1=""
48032 fi
48033
e5efa97e
VZ
48034 COND_MONOLITHIC_0_USE_MEDIA_1="#"
48035 if test "x$MONOLITHIC" = "x0" -a "x$USE_MEDIA" = "x1" ; then
48036 COND_MONOLITHIC_0_USE_MEDIA_1=""
48037 fi
48038
a848cd7e
SC
48039 COND_MONOLITHIC_0_USE_ODBC_1="#"
48040 if test "x$MONOLITHIC" = "x0" -a "x$USE_ODBC" = "x1" ; then
48041 COND_MONOLITHIC_0_USE_ODBC_1=""
48042 fi
48043
48044 COND_MONOLITHIC_1="#"
48045 if test "x$MONOLITHIC" = "x1" ; then
48046 COND_MONOLITHIC_1=""
48047 fi
48048
48049 COND_MONOLITHIC_1_SHARED_0="#"
48050 if test "x$MONOLITHIC" = "x1" -a "x$SHARED" = "x0" ; then
48051 COND_MONOLITHIC_1_SHARED_0=""
48052 fi
48053
48054 COND_MONOLITHIC_1_SHARED_1="#"
48055 if test "x$MONOLITHIC" = "x1" -a "x$SHARED" = "x1" ; then
48056 COND_MONOLITHIC_1_SHARED_1=""
48057 fi
48058
48059 COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1="#"
48060 if test "x$OFFICIAL_BUILD" = "x0" -a "x$PLATFORM_WIN32" = "x1" ; then
48061 COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1=""
48062 fi
48063
48064 COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1="#"
48065 if test "x$OFFICIAL_BUILD" = "x1" -a "x$PLATFORM_WIN32" = "x1" ; then
48066 COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1=""
48067 fi
48068
eb730a0c
JS
48069 COND_PLATFORM_MACOSX_0_USE_SOVERCYGWIN_0_USE_SOVERSION_1="#"
48070 if test "x$PLATFORM_MACOSX" = "x0" -a "x$USE_SOVERCYGWIN" = "x0" -a "x$USE_SOVERSION" = "x1" ; then
48071 COND_PLATFORM_MACOSX_0_USE_SOVERCYGWIN_0_USE_SOVERSION_1=""
48072 fi
48073
a848cd7e
SC
48074 COND_PLATFORM_MACOSX_0_USE_SOVERSION_1="#"
48075 if test "x$PLATFORM_MACOSX" = "x0" -a "x$USE_SOVERSION" = "x1" ; then
48076 COND_PLATFORM_MACOSX_0_USE_SOVERSION_1=""
48077 fi
48078
48079 COND_PLATFORM_MACOSX_1="#"
48080 if test "x$PLATFORM_MACOSX" = "x1" ; then
48081 COND_PLATFORM_MACOSX_1=""
48082 fi
48083
a30f955f
VS
48084 COND_PLATFORM_MACOSX_1_TOOLKIT_="#"
48085 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "x" ; then
48086 COND_PLATFORM_MACOSX_1_TOOLKIT_=""
48087 fi
48088
a848cd7e
SC
48089 COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA="#"
48090 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xCOCOA" ; then
48091 COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA=""
48092 fi
48093
48094 COND_PLATFORM_MACOSX_1_TOOLKIT_GTK="#"
48095 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xGTK" ; then
48096 COND_PLATFORM_MACOSX_1_TOOLKIT_GTK=""
48097 fi
48098
48099 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC="#"
48100 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMAC" ; then
48101 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC=""
48102 fi
48103
fc480dc1
DE
48104 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1="#"
48105 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" ; then
48106 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1=""
48107 fi
48108
1e9e8aba
DE
48109 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0="#"
48110 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
48111 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0=""
48112 fi
48113
ebee3cd0
VS
48114 COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF="#"
48115 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMOTIF" ; then
48116 COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF=""
48117 fi
48118
48119 COND_PLATFORM_MACOSX_1_TOOLKIT_X11="#"
48120 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xX11" ; then
48121 COND_PLATFORM_MACOSX_1_TOOLKIT_X11=""
48122 fi
48123
a848cd7e
SC
48124 COND_PLATFORM_MACOSX_1_USE_GUI_1="#"
48125 if test "x$PLATFORM_MACOSX" = "x1" -a "x$USE_GUI" = "x1" ; then
48126 COND_PLATFORM_MACOSX_1_USE_GUI_1=""
48127 fi
48128
48129 COND_PLATFORM_MACOSX_1_USE_SOVERSION_1="#"
48130 if test "x$PLATFORM_MACOSX" = "x1" -a "x$USE_SOVERSION" = "x1" ; then
48131 COND_PLATFORM_MACOSX_1_USE_SOVERSION_1=""
48132 fi
48133
b48a2016
DE
48134 COND_PLATFORM_MACOS_1="#"
48135 if test "x$PLATFORM_MACOS" = "x1" ; then
48136 COND_PLATFORM_MACOS_1=""
48137 fi
48138
083508af
MW
48139 COND_PLATFORM_MAC_1="#"
48140 if test "x$PLATFORM_MAC" = "x1" ; then
48141 COND_PLATFORM_MAC_1=""
48142 fi
48143
e5efa97e
VZ
48144 COND_PLATFORM_MSDOS_0="#"
48145 if test "x$PLATFORM_MSDOS" = "x0" ; then
48146 COND_PLATFORM_MSDOS_0=""
48147 fi
48148
83d8eb47
MW
48149 COND_PLATFORM_MSDOS_1="#"
48150 if test "x$PLATFORM_MSDOS" = "x1" ; then
48151 COND_PLATFORM_MSDOS_1=""
48152 fi
48153
a848cd7e
SC
48154 COND_PLATFORM_OS2_1="#"
48155 if test "x$PLATFORM_OS2" = "x1" ; then
48156 COND_PLATFORM_OS2_1=""
48157 fi
48158
48159 COND_PLATFORM_UNIX_0="#"
48160 if test "x$PLATFORM_UNIX" = "x0" ; then
48161 COND_PLATFORM_UNIX_0=""
48162 fi
48163
48164 COND_PLATFORM_UNIX_1="#"
48165 if test "x$PLATFORM_UNIX" = "x1" ; then
48166 COND_PLATFORM_UNIX_1=""
48167 fi
48168
48169 COND_PLATFORM_UNIX_1_USE_GUI_1="#"
48170 if test "x$PLATFORM_UNIX" = "x1" -a "x$USE_GUI" = "x1" ; then
48171 COND_PLATFORM_UNIX_1_USE_GUI_1=""
48172 fi
48173
48174 COND_PLATFORM_UNIX_1_USE_PLUGINS_0="#"
48175 if test "x$PLATFORM_UNIX" = "x1" -a "x$USE_PLUGINS" = "x0" ; then
48176 COND_PLATFORM_UNIX_1_USE_PLUGINS_0=""
48177 fi
48178
48179 COND_PLATFORM_WIN32_0="#"
48180 if test "x$PLATFORM_WIN32" = "x0" ; then
48181 COND_PLATFORM_WIN32_0=""
48182 fi
48183
48184 COND_PLATFORM_WIN32_1="#"
48185 if test "x$PLATFORM_WIN32" = "x1" ; then
48186 COND_PLATFORM_WIN32_1=""
48187 fi
48188
48189 COND_SHARED_0="#"
48190 if test "x$SHARED" = "x0" ; then
48191 COND_SHARED_0=""
48192 fi
48193
083508af
MW
48194 COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0="#"
48195 if test "x$SHARED" = "x0" -a "x$TOOLKIT" = "xMAC" -a "x$WXUNIV" = "x0" ; then
48196 COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0=""
48197 fi
48198
48199 COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0="#"
48200 if test "x$SHARED" = "x0" -a "x$TOOLKIT" = "xMSW" -a "x$WXUNIV" = "x0" ; then
48201 COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0=""
48202 fi
48203
48204 COND_SHARED_0_TOOLKIT_PM_WXUNIV_0="#"
48205 if test "x$SHARED" = "x0" -a "x$TOOLKIT" = "xPM" -a "x$WXUNIV" = "x0" ; then
48206 COND_SHARED_0_TOOLKIT_PM_WXUNIV_0=""
48207 fi
48208
a848cd7e
SC
48209 COND_SHARED_0_USE_GUI_1_USE_OPENGL_1="#"
48210 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_OPENGL" = "x1" ; then
48211 COND_SHARED_0_USE_GUI_1_USE_OPENGL_1=""
48212 fi
48213
48214 COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="#"
48215 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
48216 COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN=""
48217 fi
48218
48219 COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="#"
48220 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBPNG" = "xbuiltin" ; then
48221 COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN=""
48222 fi
48223
48224 COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="#"
48225 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
48226 COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN=""
48227 fi
48228
083508af
MW
48229 COND_SHARED_0_USE_XRC_1="#"
48230 if test "x$SHARED" = "x0" -a "x$USE_XRC" = "x1" ; then
48231 COND_SHARED_0_USE_XRC_1=""
48232 fi
48233
a848cd7e
SC
48234 COND_SHARED_0_WXUSE_EXPAT_BUILTIN="#"
48235 if test "x$SHARED" = "x0" -a "x$wxUSE_EXPAT" = "xbuiltin" ; then
48236 COND_SHARED_0_WXUSE_EXPAT_BUILTIN=""
48237 fi
48238
48239 COND_SHARED_0_WXUSE_ODBC_BUILTIN="#"
48240 if test "x$SHARED" = "x0" -a "x$wxUSE_ODBC" = "xbuiltin" ; then
48241 COND_SHARED_0_WXUSE_ODBC_BUILTIN=""
48242 fi
48243
48244 COND_SHARED_0_WXUSE_REGEX_BUILTIN="#"
48245 if test "x$SHARED" = "x0" -a "x$wxUSE_REGEX" = "xbuiltin" ; then
48246 COND_SHARED_0_WXUSE_REGEX_BUILTIN=""
48247 fi
48248
48249 COND_SHARED_0_WXUSE_ZLIB_BUILTIN="#"
48250 if test "x$SHARED" = "x0" -a "x$wxUSE_ZLIB" = "xbuiltin" ; then
48251 COND_SHARED_0_WXUSE_ZLIB_BUILTIN=""
48252 fi
48253
48254 COND_SHARED_1="#"
48255 if test "x$SHARED" = "x1" ; then
48256 COND_SHARED_1=""
48257 fi
48258
48259 COND_SHARED_1_USE_GUI_1_USE_OPENGL_1="#"
48260 if test "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_OPENGL" = "x1" ; then
48261 COND_SHARED_1_USE_GUI_1_USE_OPENGL_1=""
48262 fi
48263
083508af
MW
48264 COND_SHARED_1_USE_XRC_1="#"
48265 if test "x$SHARED" = "x1" -a "x$USE_XRC" = "x1" ; then
48266 COND_SHARED_1_USE_XRC_1=""
48267 fi
48268
a30f955f
VS
48269 COND_TOOLKIT_="#"
48270 if test "x$TOOLKIT" = "x" ; then
48271 COND_TOOLKIT_=""
48272 fi
48273
a848cd7e
SC
48274 COND_TOOLKIT_COCOA="#"
48275 if test "x$TOOLKIT" = "xCOCOA" ; then
48276 COND_TOOLKIT_COCOA=""
48277 fi
48278
a49baeab
DE
48279 COND_TOOLKIT_COCOA_USE_GUI_1="#"
48280 if test "x$TOOLKIT" = "xCOCOA" -a "x$USE_GUI" = "x1" ; then
48281 COND_TOOLKIT_COCOA_USE_GUI_1=""
48282 fi
48283
a848cd7e
SC
48284 COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0="#"
48285 if test "x$TOOLKIT" = "xCOCOA" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
48286 COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0=""
48287 fi
48288
48289 COND_TOOLKIT_GTK="#"
48290 if test "x$TOOLKIT" = "xGTK" ; then
48291 COND_TOOLKIT_GTK=""
48292 fi
48293
d044deea
MW
48294 COND_TOOLKIT_GTK_TOOLKIT_VERSION_="#"
48295 if test "x$TOOLKIT" = "xGTK" -a "x$TOOLKIT_VERSION" = "x" ; then
48296 COND_TOOLKIT_GTK_TOOLKIT_VERSION_=""
48297 fi
48298
48299 COND_TOOLKIT_GTK_TOOLKIT_VERSION_2="#"
48300 if test "x$TOOLKIT" = "xGTK" -a "x$TOOLKIT_VERSION" = "x2" ; then
48301 COND_TOOLKIT_GTK_TOOLKIT_VERSION_2=""
48302 fi
48303
48304 COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1="#"
48305 if test "x$TOOLKIT" = "xGTK" -a "x$TOOLKIT_VERSION" = "x2" -a "x$USE_GUI" = "x1" ; then
48306 COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1=""
48307 fi
48308
48309 COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1_WXUNIV_0="#"
48310 if test "x$TOOLKIT" = "xGTK" -a "x$TOOLKIT_VERSION" = "x2" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
48311 COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1_WXUNIV_0=""
48312 fi
48313
48314 COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1="#"
48315 if test "x$TOOLKIT" = "xGTK" -a "x$TOOLKIT_VERSION" = "x" -a "x$USE_GUI" = "x1" ; then
48316 COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1=""
48317 fi
48318
48319 COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1_WXUNIV_0="#"
48320 if test "x$TOOLKIT" = "xGTK" -a "x$TOOLKIT_VERSION" = "x" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
48321 COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1_WXUNIV_0=""
48322 fi
48323
a848cd7e
SC
48324 COND_TOOLKIT_GTK_USE_GUI_1="#"
48325 if test "x$TOOLKIT" = "xGTK" -a "x$USE_GUI" = "x1" ; then
48326 COND_TOOLKIT_GTK_USE_GUI_1=""
48327 fi
48328
a848cd7e
SC
48329 COND_TOOLKIT_MAC="#"
48330 if test "x$TOOLKIT" = "xMAC" ; then
48331 COND_TOOLKIT_MAC=""
48332 fi
48333
48334 COND_TOOLKIT_MAC_USE_GUI_1="#"
48335 if test "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" ; then
48336 COND_TOOLKIT_MAC_USE_GUI_1=""
48337 fi
48338
48339 COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0="#"
48340 if test "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
48341 COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0=""
48342 fi
48343
48344 COND_TOOLKIT_MGL="#"
48345 if test "x$TOOLKIT" = "xMGL" ; then
48346 COND_TOOLKIT_MGL=""
48347 fi
48348
48349 COND_TOOLKIT_MGL_USE_GUI_1="#"
48350 if test "x$TOOLKIT" = "xMGL" -a "x$USE_GUI" = "x1" ; then
48351 COND_TOOLKIT_MGL_USE_GUI_1=""
48352 fi
48353
48354 COND_TOOLKIT_MOTIF="#"
48355 if test "x$TOOLKIT" = "xMOTIF" ; then
48356 COND_TOOLKIT_MOTIF=""
48357 fi
48358
48359 COND_TOOLKIT_MOTIF_USE_GUI_1="#"
48360 if test "x$TOOLKIT" = "xMOTIF" -a "x$USE_GUI" = "x1" ; then
48361 COND_TOOLKIT_MOTIF_USE_GUI_1=""
48362 fi
48363
48364 COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0="#"
48365 if test "x$TOOLKIT" = "xMOTIF" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
48366 COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0=""
48367 fi
48368
48369 COND_TOOLKIT_MSW="#"
48370 if test "x$TOOLKIT" = "xMSW" ; then
48371 COND_TOOLKIT_MSW=""
48372 fi
48373
48374 COND_TOOLKIT_MSW_USE_GUI_1="#"
48375 if test "x$TOOLKIT" = "xMSW" -a "x$USE_GUI" = "x1" ; then
48376 COND_TOOLKIT_MSW_USE_GUI_1=""
48377 fi
48378
48379 COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0="#"
48380 if test "x$TOOLKIT" = "xMSW" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
48381 COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0=""
48382 fi
48383
0ee4059d
DE
48384 COND_TOOLKIT_MSW_WXUNIV_0="#"
48385 if test "x$TOOLKIT" = "xMSW" -a "x$WXUNIV" = "x0" ; then
48386 COND_TOOLKIT_MSW_WXUNIV_0=""
48387 fi
48388
a848cd7e
SC
48389 COND_TOOLKIT_PM="#"
48390 if test "x$TOOLKIT" = "xPM" ; then
48391 COND_TOOLKIT_PM=""
48392 fi
48393
48394 COND_TOOLKIT_PM_USE_GUI_1="#"
48395 if test "x$TOOLKIT" = "xPM" -a "x$USE_GUI" = "x1" ; then
48396 COND_TOOLKIT_PM_USE_GUI_1=""
48397 fi
48398
48399 COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0="#"
48400 if test "x$TOOLKIT" = "xPM" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
48401 COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0=""
48402 fi
48403
3fd9c298
DE
48404 COND_TOOLKIT_WINCE="#"
48405 if test "x$TOOLKIT" = "xWINCE" ; then
48406 COND_TOOLKIT_WINCE=""
48407 fi
48408
48409 COND_TOOLKIT_WINCE_USE_GUI_1="#"
48410 if test "x$TOOLKIT" = "xWINCE" -a "x$USE_GUI" = "x1" ; then
48411 COND_TOOLKIT_WINCE_USE_GUI_1=""
48412 fi
48413
48414 COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0="#"
48415 if test "x$TOOLKIT" = "xWINCE" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
48416 COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0=""
48417 fi
48418
0ee4059d
DE
48419 COND_TOOLKIT_WINCE_WXUNIV_0="#"
48420 if test "x$TOOLKIT" = "xWINCE" -a "x$WXUNIV" = "x0" ; then
48421 COND_TOOLKIT_WINCE_WXUNIV_0=""
48422 fi
48423
a848cd7e
SC
48424 COND_TOOLKIT_X11="#"
48425 if test "x$TOOLKIT" = "xX11" ; then
48426 COND_TOOLKIT_X11=""
48427 fi
48428
48429 COND_TOOLKIT_X11_USE_GUI_1="#"
48430 if test "x$TOOLKIT" = "xX11" -a "x$USE_GUI" = "x1" ; then
48431 COND_TOOLKIT_X11_USE_GUI_1=""
48432 fi
48433
48434 COND_UNICODE_1="#"
48435 if test "x$UNICODE" = "x1" ; then
48436 COND_UNICODE_1=""
48437 fi
48438
48439 COND_USE_EXCEPTIONS_0="#"
48440 if test "x$USE_EXCEPTIONS" = "x0" ; then
48441 COND_USE_EXCEPTIONS_0=""
48442 fi
48443
48444 COND_USE_EXCEPTIONS_1="#"
48445 if test "x$USE_EXCEPTIONS" = "x1" ; then
48446 COND_USE_EXCEPTIONS_1=""
48447 fi
48448
48449 COND_USE_GUI_0="#"
48450 if test "x$USE_GUI" = "x0" ; then
48451 COND_USE_GUI_0=""
48452 fi
48453
48454 COND_USE_GUI_1="#"
48455 if test "x$USE_GUI" = "x1" ; then
48456 COND_USE_GUI_1=""
48457 fi
48458
48459 COND_USE_GUI_1_WXUNIV_0="#"
48460 if test "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
48461 COND_USE_GUI_1_WXUNIV_0=""
48462 fi
48463
48464 COND_USE_GUI_1_WXUNIV_1="#"
48465 if test "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x1" ; then
48466 COND_USE_GUI_1_WXUNIV_1=""
48467 fi
48468
48469 COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="#"
48470 if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
48471 COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN=""
48472 fi
48473
48474 COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="#"
48475 if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBPNG" = "xbuiltin" ; then
48476 COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN=""
48477 fi
48478
48479 COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="#"
48480 if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
48481 COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN=""
48482 fi
48483
083508af
MW
48484 COND_USE_ODBC_1="#"
48485 if test "x$USE_ODBC" = "x1" ; then
48486 COND_USE_ODBC_1=""
48487 fi
48488
48489 COND_USE_OPENGL_1="#"
48490 if test "x$USE_OPENGL" = "x1" ; then
48491 COND_USE_OPENGL_1=""
48492 fi
48493
f10e38c4
VZ
48494 COND_USE_PCH_1="#"
48495 if test "x$USE_PCH" = "x1" ; then
48496 COND_USE_PCH_1=""
48497 fi
48498
a848cd7e
SC
48499 COND_USE_PLUGINS_0="#"
48500 if test "x$USE_PLUGINS" = "x0" ; then
48501 COND_USE_PLUGINS_0=""
48502 fi
48503
0b78747f
MW
48504 COND_USE_RTTI_0="#"
48505 if test "x$USE_RTTI" = "x0" ; then
48506 COND_USE_RTTI_0=""
48507 fi
48508
48509 COND_USE_RTTI_1="#"
48510 if test "x$USE_RTTI" = "x1" ; then
48511 COND_USE_RTTI_1=""
48512 fi
48513
a848cd7e
SC
48514 COND_USE_SOSYMLINKS_1="#"
48515 if test "x$USE_SOSYMLINKS" = "x1" ; then
48516 COND_USE_SOSYMLINKS_1=""
48517 fi
48518
eb730a0c
JS
48519 COND_USE_SOVERCYGWIN_1_USE_SOVERSION_1="#"
48520 if test "x$USE_SOVERCYGWIN" = "x1" -a "x$USE_SOVERSION" = "x1" ; then
48521 COND_USE_SOVERCYGWIN_1_USE_SOVERSION_1=""
48522 fi
48523
a848cd7e
SC
48524 COND_USE_SOVERLINUX_1="#"
48525 if test "x$USE_SOVERLINUX" = "x1" ; then
48526 COND_USE_SOVERLINUX_1=""
48527 fi
48528
48529 COND_USE_SOVERSION_0="#"
48530 if test "x$USE_SOVERSION" = "x0" ; then
48531 COND_USE_SOVERSION_0=""
48532 fi
48533
48534 COND_USE_SOVERSOLARIS_1="#"
48535 if test "x$USE_SOVERSOLARIS" = "x1" ; then
48536 COND_USE_SOVERSOLARIS_1=""
48537 fi
48538
0b78747f
MW
48539 COND_USE_THREADS_0="#"
48540 if test "x$USE_THREADS" = "x0" ; then
48541 COND_USE_THREADS_0=""
48542 fi
48543
48544 COND_USE_THREADS_1="#"
48545 if test "x$USE_THREADS" = "x1" ; then
48546 COND_USE_THREADS_1=""
48547 fi
48548
a13a7f89
RL
48549 COND_USE_XRC_1="#"
48550 if test "x$USE_XRC" = "x1" ; then
48551 COND_USE_XRC_1=""
48552 fi
48553
eb730a0c
JS
48554 COND_WINDOWS_IMPLIB_1="#"
48555 if test "x$WINDOWS_IMPLIB" = "x1" ; then
48556 COND_WINDOWS_IMPLIB_1=""
48557 fi
48558
a848cd7e
SC
48559 COND_WITH_PLUGIN_SDL_1="#"
48560 if test "x$WITH_PLUGIN_SDL" = "x1" ; then
48561 COND_WITH_PLUGIN_SDL_1=""
48562 fi
48563
1e6eb025
VZ
48564 COND_WXUNIV_0="#"
48565 if test "x$WXUNIV" = "x0" ; then
48566 COND_WXUNIV_0=""
48567 fi
48568
a848cd7e
SC
48569 COND_WXUNIV_1="#"
48570 if test "x$WXUNIV" = "x1" ; then
48571 COND_WXUNIV_1=""
48572 fi
48573
48574 COND_WXUSE_EXPAT_BUILTIN="#"
48575 if test "x$wxUSE_EXPAT" = "xbuiltin" ; then
48576 COND_WXUSE_EXPAT_BUILTIN=""
48577 fi
48578
48579 COND_WXUSE_LIBJPEG_BUILTIN="#"
48580 if test "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
48581 COND_WXUSE_LIBJPEG_BUILTIN=""
48582 fi
48583
48584 COND_WXUSE_LIBPNG_BUILTIN="#"
48585 if test "x$wxUSE_LIBPNG" = "xbuiltin" ; then
48586 COND_WXUSE_LIBPNG_BUILTIN=""
48587 fi
48588
48589 COND_WXUSE_LIBTIFF_BUILTIN="#"
48590 if test "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
48591 COND_WXUSE_LIBTIFF_BUILTIN=""
48592 fi
48593
48594 COND_WXUSE_ODBC_BUILTIN="#"
48595 if test "x$wxUSE_ODBC" = "xbuiltin" ; then
48596 COND_WXUSE_ODBC_BUILTIN=""
48597 fi
48598
48599 COND_WXUSE_REGEX_BUILTIN="#"
48600 if test "x$wxUSE_REGEX" = "xbuiltin" ; then
48601 COND_WXUSE_REGEX_BUILTIN=""
48602 fi
48603
48604 COND_WXUSE_ZLIB_BUILTIN="#"
48605 if test "x$wxUSE_ZLIB" = "xbuiltin" ; then
48606 COND_WXUSE_ZLIB_BUILTIN=""
48607 fi
48608
48609
48610
810b94f0
MW
48611 if test "$BAKEFILE_AUTOCONF_INC_M4_VERSION" = "" ; then
48612 { { 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
48613echo "$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;}
48614 { (exit 1); exit 1; }; }
48615 fi
48616
2057db16
VS
48617 if test "$BAKEFILE_BAKEFILE_M4_VERSION" != "$BAKEFILE_AUTOCONF_INC_M4_VERSION" ; then
48618 { { 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
48619echo "$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;}
48620 { (exit 1); exit 1; }; }
48621 fi
48622
a848cd7e 48623
7afc46ab
KO
48624
48625if test "$wxUSE_MAC" = 1 ; then
95768535 48626 if test "x$wxUSE_UNIVERSAL_BINARY" != "xno" ; then
7afc46ab
KO
48627 sed "s/DEPSMODE=gcc/DEPSMODE=none/" < bk-deps > temp
48628 mv temp bk-deps
48629 chmod +x bk-deps
48630 fi
48631fi
48632
ceec2216
RL
48633if test "$wxUSE_SHARED" = "yes"; then
48634
48635 sanitised_bakefile_mess=`echo "$SHARED_LD_CXX" | tr -d '()'`
48636 EXE_LINKER=`eval echo "$sanitised_bakefile_mess"`
48637
5b674b9d
DE
48638 case "${host}" in
48639 *-pc-os2_emx | *-pc-os2-emx )
48640 SHARED_LD_CC="`pwd`/dllar.sh -name-mangler-script ./dllnames.sh -libf INITINSTANCE -libf TERMINSTANCE -o"
48641 SHARED_LD_CXX="`pwd`/dllar.sh -name-mangler-script ./dllnames.sh -libf INITINSTANCE -libf TERMINSTANCE -o"
48642 cp -p ${srcdir}/src/os2/dllnames.sh .
48643 cp -p ${srcdir}/src/os2/dllar.sh .
48644 ;;
48645 esac
ceec2216
RL
48646else
48647
48648 EXE_LINKER="$CXX -o"
48649
48650fi
69120ee4
VZ
48651if test "$wxUSE_OMF" = "yes"; then
48652 case "${host}" in
48653 *-pc-os2_emx | *-pc-os2-emx )
48654 LDFLAGS="$LDFLAGS -Zlinker /EXEPACK"
48655 LDFLAGS_GUI="-Zlinker /PMTYPE:PM"
48656 WXCONFIG_LDFLAGS_GUI="-Zlinker /PMTYPE:PM"
48657 ;;
48658 esac
48659fi
a848cd7e 48660
c08ebc62 48661if test $GCC_PCH = 1 ; then
254e8e29 48662 CPPFLAGS="-DWX_PRECOMP $CPPFLAGS"
ddd14b14 48663fi
a848cd7e 48664
5ff751d6 48665WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS $TOOLCHAIN_DEFS"
a848cd7e
SC
48666
48667SAMPLES_SUBDIRS="`echo $SAMPLES_SUBDIRS | tr -s ' ' | tr ' ' '\n' | sort | uniq | tr '\n' ' '| tr -d '\r'`"
48668
48669
48670
48671
48672
48673
48674
48675
48676
48677
48678
48679
48680
48681
48682
48683
48684
48685
48686
48687
48688
48689
48690
48691
48692
48693
48694
48695
48696
48697
48698
48699
48700
48701
48702
48703
48704
48705
48706
48707
48708
48709
a848cd7e
SC
48710
48711
48712
48713
48714
48715
48716
48717
48718
48719
48720
48721
a848cd7e
SC
48722
48723
ddd14b14 48724
370d2fd7 48725
8ced02f6 48726
a848cd7e
SC
48727
48728
48729echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
48730echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
ac1cb8d3 48731set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
a848cd7e
SC
48732if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
48733 echo $ECHO_N "(cached) $ECHO_C" >&6
48734else
48735 cat >conftest.make <<\_ACEOF
48736all:
48737 @echo 'ac_maketemp="$(MAKE)"'
48738_ACEOF
48739# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
48740eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
48741if test -n "$ac_maketemp"; then
48742 eval ac_cv_prog_make_${ac_make}_set=yes
48743else
48744 eval ac_cv_prog_make_${ac_make}_set=no
48745fi
48746rm -f conftest.make
48747fi
48748if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
48749 echo "$as_me:$LINENO: result: yes" >&5
48750echo "${ECHO_T}yes" >&6
48751 SET_MAKE=
48752else
48753 echo "$as_me:$LINENO: result: no" >&5
48754echo "${ECHO_T}no" >&6
48755 SET_MAKE="MAKE=${MAKE-make}"
48756fi
48757
48758
a848cd7e 48759
ceec2216
RL
48760 ac_config_headers="$ac_config_headers lib/wx/include/${TOOLCHAIN_FULLNAME}/wx/setup.h:setup.h.in"
48761
a848cd7e 48762
5c60e845
MW
48763if test "$USE_WIN32" = 1; then
48764 ac_config_commands="$ac_config_commands
48765 rcdefs.h
48766 "
48767
48768fi
48769
ceec2216 48770 ac_config_files="$ac_config_files lib/wx/config/${TOOLCHAIN_FULLNAME}:wx-config.in"
a848cd7e 48771
a848cd7e 48772
ceec2216 48773 ac_config_files="$ac_config_files lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}:wx-config-inplace.in"
a848cd7e 48774
ceec2216
RL
48775
48776 ac_config_files="$ac_config_files version-script Makefile"
48777
48778
5c60e845 48779 ac_config_commands="$ac_config_commands wx-config"
a848cd7e
SC
48780
48781
9103d280 48782
1c14217d 48783if test "$wxWITH_SUBDIRS" != "no"; then
a848cd7e
SC
48784if test "$wxUSE_GUI" = "yes"; then
48785 SUBDIRS="samples demos utils contrib"
48786else SUBDIRS="samples utils"
48787fi
48788
48789
48790
48791# Check whether --with-cppunit-prefix or --without-cppunit-prefix was given.
48792if test "${with_cppunit_prefix+set}" = set; then
48793 withval="$with_cppunit_prefix"
48794 cppunit_config_prefix="$withval"
48795else
48796 cppunit_config_prefix=""
48797fi;
48798
48799# Check whether --with-cppunit-exec-prefix or --without-cppunit-exec-prefix was given.
48800if test "${with_cppunit_exec_prefix+set}" = set; then
48801 withval="$with_cppunit_exec_prefix"
48802 cppunit_config_exec_prefix="$withval"
48803else
48804 cppunit_config_exec_prefix=""
48805fi;
48806
48807 if test x$cppunit_config_exec_prefix != x ; then
48808 cppunit_config_args="$cppunit_config_args --exec-prefix=$cppunit_config_exec_prefix"
48809 if test x${CPPUNIT_CONFIG+set} != xset ; then
48810 CPPUNIT_CONFIG=$cppunit_config_exec_prefix/bin/cppunit-config
48811 fi
48812 fi
48813 if test x$cppunit_config_prefix != x ; then
48814 cppunit_config_args="$cppunit_config_args --prefix=$cppunit_config_prefix"
48815 if test x${CPPUNIT_CONFIG+set} != xset ; then
48816 CPPUNIT_CONFIG=$cppunit_config_prefix/bin/cppunit-config
48817 fi
48818 fi
48819
48820 # Extract the first word of "cppunit-config", so it can be a program name with args.
48821set dummy cppunit-config; ac_word=$2
48822echo "$as_me:$LINENO: checking for $ac_word" >&5
48823echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
48824if test "${ac_cv_path_CPPUNIT_CONFIG+set}" = set; then
48825 echo $ECHO_N "(cached) $ECHO_C" >&6
48826else
48827 case $CPPUNIT_CONFIG in
48828 [\\/]* | ?:[\\/]*)
48829 ac_cv_path_CPPUNIT_CONFIG="$CPPUNIT_CONFIG" # Let the user override the test with a path.
48830 ;;
48831 *)
48832 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
48833for as_dir in $PATH
48834do
48835 IFS=$as_save_IFS
48836 test -z "$as_dir" && as_dir=.
48837 for ac_exec_ext in '' $ac_executable_extensions; do
48838 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
48839 ac_cv_path_CPPUNIT_CONFIG="$as_dir/$ac_word$ac_exec_ext"
48840 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
48841 break 2
48842 fi
48843done
48844done
48845
48846 test -z "$ac_cv_path_CPPUNIT_CONFIG" && ac_cv_path_CPPUNIT_CONFIG="no"
48847 ;;
48848esac
48849fi
48850CPPUNIT_CONFIG=$ac_cv_path_CPPUNIT_CONFIG
48851
48852if test -n "$CPPUNIT_CONFIG"; then
48853 echo "$as_me:$LINENO: result: $CPPUNIT_CONFIG" >&5
48854echo "${ECHO_T}$CPPUNIT_CONFIG" >&6
48855else
48856 echo "$as_me:$LINENO: result: no" >&5
48857echo "${ECHO_T}no" >&6
48858fi
48859
48860 cppunit_version_min=1.8.0
48861
48862 echo "$as_me:$LINENO: checking for Cppunit - version >= $cppunit_version_min" >&5
48863echo $ECHO_N "checking for Cppunit - version >= $cppunit_version_min... $ECHO_C" >&6
48864 no_cppunit=""
48865 if test "$CPPUNIT_CONFIG" = "no" ; then
48866 no_cppunit=yes
48867 else
48868 CPPUNIT_CFLAGS=`$CPPUNIT_CONFIG --cflags`
48869 CPPUNIT_LIBS=`$CPPUNIT_CONFIG --libs`
48870 cppunit_version=`$CPPUNIT_CONFIG --version`
48871
48872 cppunit_major_version=`echo $cppunit_version | \
48873 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
48874 cppunit_minor_version=`echo $cppunit_version | \
48875 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
48876 cppunit_micro_version=`echo $cppunit_version | \
48877 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
48878
48879 cppunit_major_min=`echo $cppunit_version_min | \
48880 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
48881 cppunit_minor_min=`echo $cppunit_version_min | \
48882 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
48883 cppunit_micro_min=`echo $cppunit_version_min | \
48884 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
48885
48886 cppunit_version_proper=`expr \
48887 $cppunit_major_version \> $cppunit_major_min \| \
48888 $cppunit_major_version \= $cppunit_major_min \& \
48889 $cppunit_minor_version \> $cppunit_minor_min \| \
48890 $cppunit_major_version \= $cppunit_major_min \& \
48891 $cppunit_minor_version \= $cppunit_minor_min \& \
48892 $cppunit_micro_version \>= $cppunit_micro_min `
48893
48894 if test "$cppunit_version_proper" = "1" ; then
48895 echo "$as_me:$LINENO: result: $cppunit_major_version.$cppunit_minor_version.$cppunit_micro_version" >&5
48896echo "${ECHO_T}$cppunit_major_version.$cppunit_minor_version.$cppunit_micro_version" >&6
48897 else
48898 echo "$as_me:$LINENO: result: no" >&5
48899echo "${ECHO_T}no" >&6
48900 no_cppunit=yes
48901 fi
48902 fi
48903
48904 if test "x$no_cppunit" = x ; then
c2218763 48905 SUBDIRS="$SUBDIRS tests"
a848cd7e
SC
48906 else
48907 CPPUNIT_CFLAGS=""
48908 CPPUNIT_LIBS=""
c2218763 48909 :
a848cd7e
SC
48910 fi
48911
48912
48913
48914
48915
48916for subdir in `echo $SUBDIRS`; do
48917 if test -d ${srcdir}/${subdir} ; then
48918 if test "$wxUSE_GUI" = "yes"; then
48919 if test ${subdir} = "samples"; then
48920 makefiles="samples/Makefile.in $makefiles"
48921 for sample in `echo $SAMPLES_SUBDIRS`; do
48922 if test -d $srcdir/samples/$sample; then
48923 makefiles="samples/$sample/Makefile.in $makefiles"
48924 fi
48925 done
9c112555
MW
48926 else
48927 disabled_var=DISABLED_`echo $subdir | tr [a-z] [A-Z]`;
48928 eval "disabled=\$$disabled_var"
48929 disabled=/`echo X $disabled | sed 's@ @/|/@g'`/
48930 makefiles=`(cd $srcdir ; find $subdir -name Makefile.in) | egrep -v "$disabled"`
a848cd7e
SC
48931 fi
48932 else if test ${subdir} = "samples"; then
48933 makefiles="samples/Makefile.in samples/console/Makefile.in"
48934 elif test ${subdir} = "utils"; then
6537ccf8
VS
48935 makefiles=""
48936 for util in HelpGen tex2rtf ; do
48937 if test -d $srcdir/utils/$util ; then
48938 makefiles="utils/$util/Makefile.in \
48939 utils/$util/src/Makefile.in \
48940 $makefiles"
48941 fi
48942 done
a848cd7e
SC
48943 else makefiles=`(cd $srcdir ; find $subdir -name Makefile.in)`
48944 fi
48945 fi
48946
48947 for mkin in $makefiles ; do
48948 mk=`echo $mkin | sed 's/Makefile\.in/Makefile/g'`
48949 ac_config_files="$ac_config_files $mk"
48950
48951 done
48952 fi
48953done
1c14217d 48954fi
a848cd7e
SC
48955cat >confcache <<\_ACEOF
48956# This file is a shell script that caches the results of configure
48957# tests run on this system so they can be shared between configure
48958# scripts and configure runs, see configure's option --config-cache.
48959# It is not useful on other systems. If it contains results you don't
48960# want to keep, you may remove or edit it.
48961#
48962# config.status only pays attention to the cache file if you give it
48963# the --recheck option to rerun configure.
48964#
48965# `ac_cv_env_foo' variables (set or unset) will be overridden when
48966# loading this file, other *unset* `ac_cv_foo' will be assigned the
48967# following values.
48968
48969_ACEOF
48970
48971# The following way of writing the cache mishandles newlines in values,
48972# but we know of no workaround that is simple, portable, and efficient.
48973# So, don't put newlines in cache variables' values.
48974# Ultrix sh set writes to stderr and can't be redirected directly,
48975# and sets the high bit in the cache file unless we assign to the vars.
48976{
48977 (set) 2>&1 |
48978 case `(ac_space=' '; set | grep ac_space) 2>&1` in
48979 *ac_space=\ *)
48980 # `set' does not quote correctly, so add quotes (double-quote
48981 # substitution turns \\\\ into \\, and sed turns \\ into \).
48982 sed -n \
ac1cb8d3
VS
48983 "s/'/'\\\\''/g;
48984 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
a848cd7e
SC
48985 ;;
48986 *)
48987 # `set' quotes correctly as required by POSIX, so do not add quotes.
48988 sed -n \
ac1cb8d3 48989 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
a848cd7e
SC
48990 ;;
48991 esac;
48992} |
48993 sed '
48994 t clear
48995 : clear
48996 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
48997 t end
48998 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
48999 : end' >>confcache
49000if diff $cache_file confcache >/dev/null 2>&1; then :; else
49001 if test -w $cache_file; then
49002 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
49003 cat confcache >$cache_file
49004 else
49005 echo "not updating unwritable cache $cache_file"
49006 fi
49007fi
49008rm -f confcache
49009
49010test "x$prefix" = xNONE && prefix=$ac_default_prefix
49011# Let make expand exec_prefix.
49012test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
49013
49014# VPATH may cause trouble with some makes, so we remove $(srcdir),
49015# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
49016# trailing colons and then remove the whole line if VPATH becomes empty
49017# (actually we leave an empty line to preserve line numbers).
49018if test "x$srcdir" = x.; then
ac1cb8d3 49019 ac_vpsub='/^[ ]*VPATH[ ]*=/{
a848cd7e
SC
49020s/:*\$(srcdir):*/:/;
49021s/:*\${srcdir}:*/:/;
49022s/:*@srcdir@:*/:/;
ac1cb8d3 49023s/^\([^=]*=[ ]*\):*/\1/;
a848cd7e 49024s/:*$//;
ac1cb8d3 49025s/^[^=]*=[ ]*$//;
a848cd7e
SC
49026}'
49027fi
49028
49029DEFS=-DHAVE_CONFIG_H
49030
49031ac_libobjs=
49032ac_ltlibobjs=
49033for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
49034 # 1. Remove the extension, and $U if already installed.
49035 ac_i=`echo "$ac_i" |
ac1cb8d3 49036 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
a848cd7e
SC
49037 # 2. Add them.
49038 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
49039 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
49040done
49041LIBOBJS=$ac_libobjs
49042
49043LTLIBOBJS=$ac_ltlibobjs
49044
49045
49046
49047: ${CONFIG_STATUS=./config.status}
49048ac_clean_files_save=$ac_clean_files
49049ac_clean_files="$ac_clean_files $CONFIG_STATUS"
49050{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
49051echo "$as_me: creating $CONFIG_STATUS" >&6;}
49052cat >$CONFIG_STATUS <<_ACEOF
49053#! $SHELL
49054# Generated by $as_me.
49055# Run this file to recreate the current configuration.
49056# Compiler output produced by configure, useful for debugging
49057# configure, is in config.log if it exists.
49058
49059debug=false
49060ac_cs_recheck=false
49061ac_cs_silent=false
49062SHELL=\${CONFIG_SHELL-$SHELL}
49063_ACEOF
49064
49065cat >>$CONFIG_STATUS <<\_ACEOF
49066## --------------------- ##
49067## M4sh Initialization. ##
49068## --------------------- ##
49069
49070# Be Bourne compatible
49071if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
49072 emulate sh
49073 NULLCMD=:
49074 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
49075 # is contrary to our usage. Disable this feature.
49076 alias -g '${1+"$@"}'='"$@"'
49077elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
49078 set -o posix
49079fi
ac1cb8d3 49080DUALCASE=1; export DUALCASE # for MKS sh
a848cd7e
SC
49081
49082# Support unset when possible.
ac1cb8d3 49083if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
a848cd7e
SC
49084 as_unset=unset
49085else
49086 as_unset=false
49087fi
49088
49089
49090# Work around bugs in pre-3.0 UWIN ksh.
49091$as_unset ENV MAIL MAILPATH
49092PS1='$ '
49093PS2='> '
49094PS4='+ '
49095
49096# NLS nuisances.
49097for as_var in \
49098 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
49099 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
49100 LC_TELEPHONE LC_TIME
49101do
ac1cb8d3 49102 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
a848cd7e
SC
49103 eval $as_var=C; export $as_var
49104 else
49105 $as_unset $as_var
49106 fi
49107done
49108
49109# Required to use basename.
49110if expr a : '\(a\)' >/dev/null 2>&1; then
49111 as_expr=expr
49112else
49113 as_expr=false
49114fi
49115
49116if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
49117 as_basename=basename
49118else
49119 as_basename=false
49120fi
49121
49122
49123# Name of the executable.
49124as_me=`$as_basename "$0" ||
49125$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
49126 X"$0" : 'X\(//\)$' \| \
49127 X"$0" : 'X\(/\)$' \| \
49128 . : '\(.\)' 2>/dev/null ||
49129echo X/"$0" |
49130 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
49131 /^X\/\(\/\/\)$/{ s//\1/; q; }
49132 /^X\/\(\/\).*/{ s//\1/; q; }
49133 s/.*/./; q'`
49134
49135
49136# PATH needs CR, and LINENO needs CR and PATH.
49137# Avoid depending upon Character Ranges.
49138as_cr_letters='abcdefghijklmnopqrstuvwxyz'
49139as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
49140as_cr_Letters=$as_cr_letters$as_cr_LETTERS
49141as_cr_digits='0123456789'
49142as_cr_alnum=$as_cr_Letters$as_cr_digits
49143
49144# The user is always right.
49145if test "${PATH_SEPARATOR+set}" != set; then
49146 echo "#! /bin/sh" >conf$$.sh
49147 echo "exit 0" >>conf$$.sh
49148 chmod +x conf$$.sh
49149 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
49150 PATH_SEPARATOR=';'
49151 else
49152 PATH_SEPARATOR=:
49153 fi
49154 rm -f conf$$.sh
49155fi
49156
49157
49158 as_lineno_1=$LINENO
49159 as_lineno_2=$LINENO
49160 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
49161 test "x$as_lineno_1" != "x$as_lineno_2" &&
49162 test "x$as_lineno_3" = "x$as_lineno_2" || {
49163 # Find who we are. Look in the path if we contain no path at all
49164 # relative or not.
49165 case $0 in
49166 *[\\/]* ) as_myself=$0 ;;
49167 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
49168for as_dir in $PATH
49169do
49170 IFS=$as_save_IFS
49171 test -z "$as_dir" && as_dir=.
49172 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
49173done
49174
49175 ;;
49176 esac
49177 # We did not find ourselves, most probably we were run as `sh COMMAND'
49178 # in which case we are not to be found in the path.
49179 if test "x$as_myself" = x; then
49180 as_myself=$0
49181 fi
49182 if test ! -f "$as_myself"; then
49183 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
49184echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
49185 { (exit 1); exit 1; }; }
49186 fi
49187 case $CONFIG_SHELL in
49188 '')
49189 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
49190for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
49191do
49192 IFS=$as_save_IFS
49193 test -z "$as_dir" && as_dir=.
49194 for as_base in sh bash ksh sh5; do
49195 case $as_dir in
49196 /*)
49197 if ("$as_dir/$as_base" -c '
49198 as_lineno_1=$LINENO
49199 as_lineno_2=$LINENO
49200 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
49201 test "x$as_lineno_1" != "x$as_lineno_2" &&
49202 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
49203 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
49204 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
49205 CONFIG_SHELL=$as_dir/$as_base
49206 export CONFIG_SHELL
49207 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
49208 fi;;
49209 esac
49210 done
49211done
49212;;
49213 esac
49214
49215 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
49216 # uniformly replaced by the line number. The first 'sed' inserts a
49217 # line-number line before each line; the second 'sed' does the real
49218 # work. The second script uses 'N' to pair each line-number line
49219 # with the numbered line, and appends trailing '-' during
49220 # substitution so that $LINENO is not a special case at line end.
49221 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
49222 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
49223 sed '=' <$as_myself |
49224 sed '
49225 N
49226 s,$,-,
49227 : loop
49228 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
49229 t loop
49230 s,-$,,
49231 s,^['$as_cr_digits']*\n,,
49232 ' >$as_me.lineno &&
49233 chmod +x $as_me.lineno ||
49234 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
49235echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
49236 { (exit 1); exit 1; }; }
49237
49238 # Don't try to exec as it changes $[0], causing all sort of problems
49239 # (the dirname of $[0] is not the place where we might find the
49240 # original and so on. Autoconf is especially sensible to this).
49241 . ./$as_me.lineno
49242 # Exit status is that of the last command.
49243 exit
49244}
49245
49246
49247case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
49248 *c*,-n*) ECHO_N= ECHO_C='
49249' ECHO_T=' ' ;;
49250 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
49251 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
49252esac
49253
49254if expr a : '\(a\)' >/dev/null 2>&1; then
49255 as_expr=expr
49256else
49257 as_expr=false
49258fi
49259
49260rm -f conf$$ conf$$.exe conf$$.file
49261echo >conf$$.file
49262if ln -s conf$$.file conf$$ 2>/dev/null; then
49263 # We could just check for DJGPP; but this test a) works b) is more generic
49264 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
49265 if test -f conf$$.exe; then
49266 # Don't use ln at all; we don't have any links
49267 as_ln_s='cp -p'
49268 else
49269 as_ln_s='ln -s'
49270 fi
49271elif ln conf$$.file conf$$ 2>/dev/null; then
49272 as_ln_s=ln
49273else
49274 as_ln_s='cp -p'
49275fi
49276rm -f conf$$ conf$$.exe conf$$.file
49277
49278if mkdir -p . 2>/dev/null; then
49279 as_mkdir_p=:
49280else
ac1cb8d3 49281 test -d ./-p && rmdir ./-p
a848cd7e
SC
49282 as_mkdir_p=false
49283fi
49284
49285as_executable_p="test -f"
49286
49287# Sed expression to map a string onto a valid CPP name.
ac1cb8d3 49288as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
a848cd7e
SC
49289
49290# Sed expression to map a string onto a valid variable name.
ac1cb8d3 49291as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
a848cd7e
SC
49292
49293
49294# IFS
49295# We need space, tab and new line, in precisely that order.
49296as_nl='
49297'
49298IFS=" $as_nl"
49299
49300# CDPATH.
49301$as_unset CDPATH
49302
49303exec 6>&1
49304
49305# Open the log real soon, to keep \$[0] and so on meaningful, and to
49306# report actual input values of CONFIG_FILES etc. instead of their
49307# values after options handling. Logging --version etc. is OK.
49308exec 5>>config.log
49309{
49310 echo
49311 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
49312## Running $as_me. ##
49313_ASBOX
49314} >&5
49315cat >&5 <<_CSEOF
49316
dd8df4fc 49317This file was extended by wxWidgets $as_me 2.7.0, which was
ac1cb8d3 49318generated by GNU Autoconf 2.59. Invocation command line was
a848cd7e
SC
49319
49320 CONFIG_FILES = $CONFIG_FILES
49321 CONFIG_HEADERS = $CONFIG_HEADERS
49322 CONFIG_LINKS = $CONFIG_LINKS
49323 CONFIG_COMMANDS = $CONFIG_COMMANDS
49324 $ $0 $@
49325
49326_CSEOF
49327echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
49328echo >&5
49329_ACEOF
49330
49331# Files that config.status was made for.
49332if test -n "$ac_config_files"; then
49333 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
49334fi
49335
49336if test -n "$ac_config_headers"; then
49337 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
49338fi
49339
49340if test -n "$ac_config_links"; then
49341 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
49342fi
49343
49344if test -n "$ac_config_commands"; then
49345 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
49346fi
49347
49348cat >>$CONFIG_STATUS <<\_ACEOF
49349
49350ac_cs_usage="\
49351\`$as_me' instantiates files from templates according to the
49352current configuration.
49353
49354Usage: $0 [OPTIONS] [FILE]...
49355
49356 -h, --help print this help, then exit
49357 -V, --version print version number, then exit
49358 -q, --quiet do not print progress messages
49359 -d, --debug don't remove temporary files
49360 --recheck update $as_me by reconfiguring in the same conditions
49361 --file=FILE[:TEMPLATE]
ac1cb8d3 49362 instantiate the configuration file FILE
a848cd7e 49363 --header=FILE[:TEMPLATE]
ac1cb8d3 49364 instantiate the configuration header FILE
a848cd7e
SC
49365
49366Configuration files:
49367$config_files
49368
49369Configuration headers:
49370$config_headers
49371
49372Configuration commands:
49373$config_commands
49374
49375Report bugs to <bug-autoconf@gnu.org>."
49376_ACEOF
49377
49378cat >>$CONFIG_STATUS <<_ACEOF
49379ac_cs_version="\\
dd8df4fc 49380wxWidgets config.status 2.7.0
ac1cb8d3 49381configured by $0, generated by GNU Autoconf 2.59,
a848cd7e
SC
49382 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
49383
ac1cb8d3 49384Copyright (C) 2003 Free Software Foundation, Inc.
a848cd7e
SC
49385This config.status script is free software; the Free Software Foundation
49386gives unlimited permission to copy, distribute and modify it."
49387srcdir=$srcdir
49388INSTALL="$INSTALL"
49389_ACEOF
49390
49391cat >>$CONFIG_STATUS <<\_ACEOF
49392# If no file are specified by the user, then we need to provide default
49393# value. By we need to know if files were specified by the user.
49394ac_need_defaults=:
49395while test $# != 0
49396do
49397 case $1 in
49398 --*=*)
49399 ac_option=`expr "x$1" : 'x\([^=]*\)='`
49400 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
49401 ac_shift=:
49402 ;;
49403 -*)
49404 ac_option=$1
49405 ac_optarg=$2
49406 ac_shift=shift
49407 ;;
49408 *) # This is not an option, so the user has probably given explicit
49409 # arguments.
49410 ac_option=$1
49411 ac_need_defaults=false;;
49412 esac
49413
49414 case $ac_option in
49415 # Handling of the options.
49416_ACEOF
49417cat >>$CONFIG_STATUS <<\_ACEOF
49418 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
49419 ac_cs_recheck=: ;;
49420 --version | --vers* | -V )
49421 echo "$ac_cs_version"; exit 0 ;;
49422 --he | --h)
49423 # Conflict between --help and --header
49424 { { echo "$as_me:$LINENO: error: ambiguous option: $1
49425Try \`$0 --help' for more information." >&5
49426echo "$as_me: error: ambiguous option: $1
49427Try \`$0 --help' for more information." >&2;}
49428 { (exit 1); exit 1; }; };;
49429 --help | --hel | -h )
49430 echo "$ac_cs_usage"; exit 0 ;;
49431 --debug | --d* | -d )
49432 debug=: ;;
49433 --file | --fil | --fi | --f )
49434 $ac_shift
49435 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
49436 ac_need_defaults=false;;
49437 --header | --heade | --head | --hea )
49438 $ac_shift
49439 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
49440 ac_need_defaults=false;;
49441 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
49442 | -silent | --silent | --silen | --sile | --sil | --si | --s)
49443 ac_cs_silent=: ;;
49444
49445 # This is an error.
49446 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
49447Try \`$0 --help' for more information." >&5
49448echo "$as_me: error: unrecognized option: $1
49449Try \`$0 --help' for more information." >&2;}
49450 { (exit 1); exit 1; }; } ;;
49451
49452 *) ac_config_targets="$ac_config_targets $1" ;;
49453
49454 esac
49455 shift
49456done
49457
49458ac_configure_extra_args=
49459
49460if $ac_cs_silent; then
49461 exec 6>/dev/null
49462 ac_configure_extra_args="$ac_configure_extra_args --silent"
49463fi
49464
49465_ACEOF
49466cat >>$CONFIG_STATUS <<_ACEOF
49467if \$ac_cs_recheck; then
49468 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
49469 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
49470fi
49471
49472_ACEOF
49473
49474cat >>$CONFIG_STATUS <<_ACEOF
49475#
49476# INIT-COMMANDS section.
49477#
49478
5c60e845
MW
49479
49480 CPP="$CPP"
49481 infile="$srcdir/include/wx/msw/genrcdefs.h"
49482 outdir="lib/wx/include/$TOOLCHAIN_FULLNAME/wx/msw"
49483
49484
ceec2216
RL
49485 TOOLCHAIN_FULLNAME="${TOOLCHAIN_FULLNAME}"
49486 TOOLCHAIN_FULLNAME="${TOOLCHAIN_FULLNAME}"
49487 TOOLCHAIN_FULLNAME="${TOOLCHAIN_FULLNAME}"
49488 LN_S="${LN_S}"
a848cd7e
SC
49489
49490
49491_ACEOF
49492
49493
49494
49495cat >>$CONFIG_STATUS <<\_ACEOF
49496for ac_config_target in $ac_config_targets
49497do
49498 case "$ac_config_target" in
49499 # Handling of arguments.
ceec2216
RL
49500 "lib/wx/config/${TOOLCHAIN_FULLNAME}" ) CONFIG_FILES="$CONFIG_FILES lib/wx/config/${TOOLCHAIN_FULLNAME}:wx-config.in" ;;
49501 "lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}" ) CONFIG_FILES="$CONFIG_FILES lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}:wx-config-inplace.in" ;;
a848cd7e
SC
49502 "version-script" ) CONFIG_FILES="$CONFIG_FILES version-script" ;;
49503 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
49504 "$mk" ) CONFIG_FILES="$CONFIG_FILES $mk" ;;
5c60e845 49505 "rcdefs.h" ) CONFIG_COMMANDS="$CONFIG_COMMANDS rcdefs.h" ;;
ceec2216
RL
49506 "wx-config" ) CONFIG_COMMANDS="$CONFIG_COMMANDS wx-config" ;;
49507 "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
49508 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
49509echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
49510 { (exit 1); exit 1; }; };;
49511 esac
49512done
49513
49514# If the user did not use the arguments to specify the items to instantiate,
49515# then the envvar interface is used. Set only those that are not.
49516# We use the long form for the default assignment because of an extremely
49517# bizarre bug on SunOS 4.1.3.
49518if $ac_need_defaults; then
49519 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
49520 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
49521 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
49522fi
49523
49524# Have a temporary directory for convenience. Make it in the build tree
49525# simply because there is no reason to put it here, and in addition,
49526# creating and moving files from /tmp can sometimes cause problems.
49527# Create a temporary directory, and hook for its removal unless debugging.
49528$debug ||
49529{
49530 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
49531 trap '{ (exit 1); exit 1; }' 1 2 13 15
49532}
49533
49534# Create a (secure) tmp directory for tmp files.
49535
49536{
49537 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
49538 test -n "$tmp" && test -d "$tmp"
49539} ||
49540{
49541 tmp=./confstat$$-$RANDOM
49542 (umask 077 && mkdir $tmp)
49543} ||
49544{
49545 echo "$me: cannot create a temporary directory in ." >&2
49546 { (exit 1); exit 1; }
49547}
49548
49549_ACEOF
49550
49551cat >>$CONFIG_STATUS <<_ACEOF
49552
49553#
49554# CONFIG_FILES section.
49555#
49556
49557# No need to generate the scripts if there are no CONFIG_FILES.
49558# This happens for instance when ./config.status config.h
49559if test -n "\$CONFIG_FILES"; then
49560 # Protect against being on the right side of a sed subst in config.status.
49561 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
49562 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
49563s,@SHELL@,$SHELL,;t t
49564s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
49565s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
49566s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
49567s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
49568s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
49569s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
49570s,@exec_prefix@,$exec_prefix,;t t
49571s,@prefix@,$prefix,;t t
49572s,@program_transform_name@,$program_transform_name,;t t
49573s,@bindir@,$bindir,;t t
49574s,@sbindir@,$sbindir,;t t
49575s,@libexecdir@,$libexecdir,;t t
49576s,@datadir@,$datadir,;t t
49577s,@sysconfdir@,$sysconfdir,;t t
49578s,@sharedstatedir@,$sharedstatedir,;t t
49579s,@localstatedir@,$localstatedir,;t t
49580s,@libdir@,$libdir,;t t
49581s,@includedir@,$includedir,;t t
49582s,@oldincludedir@,$oldincludedir,;t t
49583s,@infodir@,$infodir,;t t
49584s,@mandir@,$mandir,;t t
49585s,@build_alias@,$build_alias,;t t
49586s,@host_alias@,$host_alias,;t t
49587s,@target_alias@,$target_alias,;t t
49588s,@DEFS@,$DEFS,;t t
49589s,@ECHO_C@,$ECHO_C,;t t
49590s,@ECHO_N@,$ECHO_N,;t t
49591s,@ECHO_T@,$ECHO_T,;t t
49592s,@LIBS@,$LIBS,;t t
49593s,@build@,$build,;t t
49594s,@build_cpu@,$build_cpu,;t t
49595s,@build_vendor@,$build_vendor,;t t
49596s,@build_os@,$build_os,;t t
49597s,@host@,$host,;t t
49598s,@host_cpu@,$host_cpu,;t t
49599s,@host_vendor@,$host_vendor,;t t
49600s,@host_os@,$host_os,;t t
49601s,@target@,$target,;t t
49602s,@target_cpu@,$target_cpu,;t t
49603s,@target_vendor@,$target_vendor,;t t
49604s,@target_os@,$target_os,;t t
49605s,@CC@,$CC,;t t
49606s,@CFLAGS@,$CFLAGS,;t t
49607s,@LDFLAGS@,$LDFLAGS,;t t
49608s,@CPPFLAGS@,$CPPFLAGS,;t t
49609s,@ac_ct_CC@,$ac_ct_CC,;t t
49610s,@EXEEXT@,$EXEEXT,;t t
49611s,@OBJEXT@,$OBJEXT,;t t
49612s,@CPP@,$CPP,;t t
49613s,@EGREP@,$EGREP,;t t
49614s,@CXX@,$CXX,;t t
49615s,@CXXFLAGS@,$CXXFLAGS,;t t
49616s,@ac_ct_CXX@,$ac_ct_CXX,;t t
49617s,@RANLIB@,$RANLIB,;t t
49618s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
49619s,@AR@,$AR,;t t
8c80d384 49620s,@ac_ct_AR@,$ac_ct_AR,;t t
a848cd7e
SC
49621s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
49622s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
49623s,@INSTALL_DATA@,$INSTALL_DATA,;t t
49624s,@STRIP@,$STRIP,;t t
8c80d384 49625s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
8ced02f6
DE
49626s,@WINDRES@,$WINDRES,;t t
49627s,@ac_ct_WINDRES@,$ac_ct_WINDRES,;t t
8c80d384
DE
49628s,@DLLTOOL@,$DLLTOOL,;t t
49629s,@ac_ct_DLLTOOL@,$ac_ct_DLLTOOL,;t t
a848cd7e
SC
49630s,@IF_GNU_MAKE@,$IF_GNU_MAKE,;t t
49631s,@LN_S@,$LN_S,;t t
49632s,@CXXCPP@,$CXXCPP,;t t
49633s,@subdirs@,$subdirs,;t t
49634s,@PKG_CONFIG@,$PKG_CONFIG,;t t
49635s,@GTK_CFLAGS@,$GTK_CFLAGS,;t t
49636s,@GTK_LIBS@,$GTK_LIBS,;t t
49637s,@GTK_CONFIG@,$GTK_CONFIG,;t t
a848cd7e
SC
49638s,@X_CFLAGS@,$X_CFLAGS,;t t
49639s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
49640s,@X_LIBS@,$X_LIBS,;t t
49641s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
49642s,@PANGOX_CFLAGS@,$PANGOX_CFLAGS,;t t
49643s,@PANGOX_LIBS@,$PANGOX_LIBS,;t t
d1c38808
VZ
49644s,@PANGOFT2_CFLAGS@,$PANGOFT2_CFLAGS,;t t
49645s,@PANGOFT2_LIBS@,$PANGOFT2_LIBS,;t t
a848cd7e
SC
49646s,@PANGOXFT_CFLAGS@,$PANGOXFT_CFLAGS,;t t
49647s,@PANGOXFT_LIBS@,$PANGOXFT_LIBS,;t t
8ced02f6 49648s,@REZ@,$REZ,;t t
a848cd7e
SC
49649s,@DEREZ@,$DEREZ,;t t
49650s,@SETFILE@,$SETFILE,;t t
49651s,@LIBICONV@,$LIBICONV,;t t
49652s,@EXTRALIBS_ESD@,$EXTRALIBS_ESD,;t t
49653s,@SDL_CONFIG@,$SDL_CONFIG,;t t
49654s,@SDL_CFLAGS@,$SDL_CFLAGS,;t t
49655s,@SDL_LIBS@,$SDL_LIBS,;t t
d1c38808
VZ
49656s,@LIBGNOMEPRINTUI_CFLAGS@,$LIBGNOMEPRINTUI_CFLAGS,;t t
49657s,@LIBGNOMEPRINTUI_LIBS@,$LIBGNOMEPRINTUI_LIBS,;t t
2b850ae1
RR
49658s,@GNOMEVFS_CFLAGS@,$GNOMEVFS_CFLAGS,;t t
49659s,@GNOMEVFS_LIBS@,$GNOMEVFS_LIBS,;t t
3565d135
RR
49660s,@HILDON_CFLAGS@,$HILDON_CFLAGS,;t t
49661s,@HILDON_LIBS@,$HILDON_LIBS,;t t
f10e38c4
VZ
49662s,@GST_CFLAGS@,$GST_CFLAGS,;t t
49663s,@GST_LIBS@,$GST_LIBS,;t t
a848cd7e
SC
49664s,@CORE_BASE_LIBS@,$CORE_BASE_LIBS,;t t
49665s,@CORE_GUI_LIBS@,$CORE_GUI_LIBS,;t t
49666s,@wxUSE_ZLIB@,$wxUSE_ZLIB,;t t
49667s,@wxUSE_REGEX@,$wxUSE_REGEX,;t t
49668s,@wxUSE_EXPAT@,$wxUSE_EXPAT,;t t
49669s,@wxUSE_ODBC@,$wxUSE_ODBC,;t t
49670s,@wxUSE_LIBJPEG@,$wxUSE_LIBJPEG,;t t
49671s,@wxUSE_LIBPNG@,$wxUSE_LIBPNG,;t t
49672s,@wxUSE_LIBTIFF@,$wxUSE_LIBTIFF,;t t
49673s,@VENDOR@,$VENDOR,;t t
49674s,@OFFICIAL_BUILD@,$OFFICIAL_BUILD,;t t
ceec2216
RL
49675s,@WX_FLAVOUR@,$WX_FLAVOUR,;t t
49676s,@WX_LIB_FLAVOUR@,$WX_LIB_FLAVOUR,;t t
a848cd7e
SC
49677s,@WXUNIV@,$WXUNIV,;t t
49678s,@MONOLITHIC@,$MONOLITHIC,;t t
49679s,@USE_PLUGINS@,$USE_PLUGINS,;t t
49680s,@EXTRALIBS@,$EXTRALIBS,;t t
49681s,@EXTRALIBS_XML@,$EXTRALIBS_XML,;t t
49682s,@EXTRALIBS_HTML@,$EXTRALIBS_HTML,;t t
49683s,@EXTRALIBS_ODBC@,$EXTRALIBS_ODBC,;t t
49684s,@EXTRALIBS_GUI@,$EXTRALIBS_GUI,;t t
49685s,@EXTRALIBS_OPENGL@,$EXTRALIBS_OPENGL,;t t
49686s,@EXTRALIBS_SDL@,$EXTRALIBS_SDL,;t t
49687s,@WITH_PLUGIN_SDL@,$WITH_PLUGIN_SDL,;t t
d1c38808 49688s,@EXTRALIBS_GNOMEPRINT@,$EXTRALIBS_GNOMEPRINT,;t t
2b850ae1 49689s,@EXTRALIBS_GNOMEVFS@,$EXTRALIBS_GNOMEVFS,;t t
3565d135 49690s,@EXTRALIBS_HILDON@,$EXTRALIBS_HILDON,;t t
a848cd7e
SC
49691s,@UNICODE@,$UNICODE,;t t
49692s,@BUILD@,$BUILD,;t t
49693s,@DEBUG_INFO@,$DEBUG_INFO,;t t
49694s,@DEBUG_FLAG@,$DEBUG_FLAG,;t t
a848cd7e
SC
49695s,@TOOLKIT_LOWERCASE@,$TOOLKIT_LOWERCASE,;t t
49696s,@TOOLKIT_VERSION@,$TOOLKIT_VERSION,;t t
49697s,@SAMPLES_RPATH_FLAG@,$SAMPLES_RPATH_FLAG,;t t
49698s,@SAMPLES_RPATH_POSTLINK@,$SAMPLES_RPATH_POSTLINK,;t t
49699s,@HOST_SUFFIX@,$HOST_SUFFIX,;t t
49700s,@CPPUNIT_CFLAGS@,$CPPUNIT_CFLAGS,;t t
49701s,@CPPUNIT_LIBS@,$CPPUNIT_LIBS,;t t
49702s,@SET_MAKE@,$SET_MAKE,;t t
49703s,@MAKE_SET@,$MAKE_SET,;t t
a848cd7e
SC
49704s,@NM@,$NM,;t t
49705s,@ac_ct_NM@,$ac_ct_NM,;t t
49706s,@INSTALL_DIR@,$INSTALL_DIR,;t t
49707s,@LDFLAGS_GUI@,$LDFLAGS_GUI,;t t
49708s,@PLATFORM_UNIX@,$PLATFORM_UNIX,;t t
49709s,@PLATFORM_WIN32@,$PLATFORM_WIN32,;t t
49710s,@PLATFORM_MSDOS@,$PLATFORM_MSDOS,;t t
49711s,@PLATFORM_MAC@,$PLATFORM_MAC,;t t
1e9e8aba 49712s,@PLATFORM_MACOS@,$PLATFORM_MACOS,;t t
a848cd7e
SC
49713s,@PLATFORM_MACOSX@,$PLATFORM_MACOSX,;t t
49714s,@PLATFORM_OS2@,$PLATFORM_OS2,;t t
1e9e8aba 49715s,@PLATFORM_BEOS@,$PLATFORM_BEOS,;t t
a848cd7e
SC
49716s,@SO_SUFFIX@,$SO_SUFFIX,;t t
49717s,@SO_SUFFIX_MODULE@,$SO_SUFFIX_MODULE,;t t
49718s,@DLLIMP_SUFFIX@,$DLLIMP_SUFFIX,;t t
49719s,@LIBPREFIX@,$LIBPREFIX,;t t
49720s,@LIBEXT@,$LIBEXT,;t t
49721s,@DLLPREFIX@,$DLLPREFIX,;t t
49722s,@DLLPREFIX_MODULE@,$DLLPREFIX_MODULE,;t t
810b94f0 49723s,@dlldir@,$dlldir,;t t
a848cd7e
SC
49724s,@AIX_CXX_LD@,$AIX_CXX_LD,;t t
49725s,@SHARED_LD_CC@,$SHARED_LD_CC,;t t
49726s,@SHARED_LD_CXX@,$SHARED_LD_CXX,;t t
49727s,@SHARED_LD_MODULE_CC@,$SHARED_LD_MODULE_CC,;t t
49728s,@SHARED_LD_MODULE_CXX@,$SHARED_LD_MODULE_CXX,;t t
49729s,@PIC_FLAG@,$PIC_FLAG,;t t
810b94f0 49730s,@WINDOWS_IMPLIB@,$WINDOWS_IMPLIB,;t t
a848cd7e
SC
49731s,@USE_SOVERSION@,$USE_SOVERSION,;t t
49732s,@USE_SOVERLINUX@,$USE_SOVERLINUX,;t t
49733s,@USE_SOVERSOLARIS@,$USE_SOVERSOLARIS,;t t
810b94f0 49734s,@USE_SOVERCYGWIN@,$USE_SOVERCYGWIN,;t t
a848cd7e
SC
49735s,@USE_MACVERSION@,$USE_MACVERSION,;t t
49736s,@USE_SOSYMLINKS@,$USE_SOSYMLINKS,;t t
49737s,@SONAME_FLAG@,$SONAME_FLAG,;t t
49738s,@DEPS_TRACKING@,$DEPS_TRACKING,;t t
49739s,@GCC_PCH@,$GCC_PCH,;t t
f10e38c4 49740s,@ICC_PCH@,$ICC_PCH,;t t
a848cd7e
SC
49741s,@COND_BUILD_DEBUG@,$COND_BUILD_DEBUG,;t t
49742s,@COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT@,$COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT,;t t
49743s,@COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT@,$COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT,;t t
49744s,@COND_BUILD_DEBUG_UNICODE_0@,$COND_BUILD_DEBUG_UNICODE_0,;t t
49745s,@COND_BUILD_DEBUG_UNICODE_1@,$COND_BUILD_DEBUG_UNICODE_1,;t t
49746s,@COND_BUILD_RELEASE@,$COND_BUILD_RELEASE,;t t
49747s,@COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT@,$COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT,;t t
49748s,@COND_BUILD_RELEASE_UNICODE_0@,$COND_BUILD_RELEASE_UNICODE_0,;t t
49749s,@COND_BUILD_RELEASE_UNICODE_1@,$COND_BUILD_RELEASE_UNICODE_1,;t t
49750s,@COND_DEBUG_FLAG_1@,$COND_DEBUG_FLAG_1,;t t
49751s,@COND_DEBUG_INFO_0@,$COND_DEBUG_INFO_0,;t t
49752s,@COND_DEBUG_INFO_1@,$COND_DEBUG_INFO_1,;t t
49753s,@COND_DEPS_TRACKING_0@,$COND_DEPS_TRACKING_0,;t t
49754s,@COND_DEPS_TRACKING_1@,$COND_DEPS_TRACKING_1,;t t
49755s,@COND_GCC_PCH_1@,$COND_GCC_PCH_1,;t t
f10e38c4 49756s,@COND_ICC_PCH_1@,$COND_ICC_PCH_1,;t t
a848cd7e
SC
49757s,@COND_MONOLITHIC_0@,$COND_MONOLITHIC_0,;t t
49758s,@COND_MONOLITHIC_0_SHARED_0@,$COND_MONOLITHIC_0_SHARED_0,;t t
3f60522a 49759s,@COND_MONOLITHIC_0_SHARED_0_USE_AUI_1@,$COND_MONOLITHIC_0_SHARED_0_USE_AUI_1,;t t
a848cd7e 49760s,@COND_MONOLITHIC_0_SHARED_0_USE_GUI_1@,$COND_MONOLITHIC_0_SHARED_0_USE_GUI_1,;t t
90970d69 49761s,@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 49762s,@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 49763s,@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 49764s,@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 49765s,@COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1@,$COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1,;t t
8b6682b9 49766s,@COND_MONOLITHIC_0_SHARED_0_USE_RICHTEXT_1@,$COND_MONOLITHIC_0_SHARED_0_USE_RICHTEXT_1,;t t
ceec2216 49767s,@COND_MONOLITHIC_0_SHARED_0_USE_XRC_1@,$COND_MONOLITHIC_0_SHARED_0_USE_XRC_1,;t t
a848cd7e 49768s,@COND_MONOLITHIC_0_SHARED_1@,$COND_MONOLITHIC_0_SHARED_1,;t t
3f60522a 49769s,@COND_MONOLITHIC_0_SHARED_1_USE_AUI_1@,$COND_MONOLITHIC_0_SHARED_1_USE_AUI_1,;t t
a848cd7e 49770s,@COND_MONOLITHIC_0_SHARED_1_USE_GUI_1@,$COND_MONOLITHIC_0_SHARED_1_USE_GUI_1,;t t
90970d69 49771s,@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 49772s,@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 49773s,@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 49774s,@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 49775s,@COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1@,$COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1,;t t
8b6682b9 49776s,@COND_MONOLITHIC_0_SHARED_1_USE_RICHTEXT_1@,$COND_MONOLITHIC_0_SHARED_1_USE_RICHTEXT_1,;t t
ceec2216 49777s,@COND_MONOLITHIC_0_SHARED_1_USE_XRC_1@,$COND_MONOLITHIC_0_SHARED_1_USE_XRC_1,;t t
e5efa97e 49778s,@COND_MONOLITHIC_0_USE_MEDIA_1@,$COND_MONOLITHIC_0_USE_MEDIA_1,;t t
a848cd7e
SC
49779s,@COND_MONOLITHIC_0_USE_ODBC_1@,$COND_MONOLITHIC_0_USE_ODBC_1,;t t
49780s,@COND_MONOLITHIC_1@,$COND_MONOLITHIC_1,;t t
49781s,@COND_MONOLITHIC_1_SHARED_0@,$COND_MONOLITHIC_1_SHARED_0,;t t
49782s,@COND_MONOLITHIC_1_SHARED_1@,$COND_MONOLITHIC_1_SHARED_1,;t t
49783s,@COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1@,$COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1,;t t
49784s,@COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1@,$COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1,;t t
eb730a0c 49785s,@COND_PLATFORM_MACOSX_0_USE_SOVERCYGWIN_0_USE_SOVERSION_1@,$COND_PLATFORM_MACOSX_0_USE_SOVERCYGWIN_0_USE_SOVERSION_1,;t t
a848cd7e
SC
49786s,@COND_PLATFORM_MACOSX_0_USE_SOVERSION_1@,$COND_PLATFORM_MACOSX_0_USE_SOVERSION_1,;t t
49787s,@COND_PLATFORM_MACOSX_1@,$COND_PLATFORM_MACOSX_1,;t t
a30f955f 49788s,@COND_PLATFORM_MACOSX_1_TOOLKIT_@,$COND_PLATFORM_MACOSX_1_TOOLKIT_,;t t
a848cd7e
SC
49789s,@COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA@,$COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA,;t t
49790s,@COND_PLATFORM_MACOSX_1_TOOLKIT_GTK@,$COND_PLATFORM_MACOSX_1_TOOLKIT_GTK,;t t
49791s,@COND_PLATFORM_MACOSX_1_TOOLKIT_MAC@,$COND_PLATFORM_MACOSX_1_TOOLKIT_MAC,;t t
fc480dc1 49792s,@COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1@,$COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1,;t t
1e9e8aba 49793s,@COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0@,$COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0,;t t
ebee3cd0
VS
49794s,@COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF@,$COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF,;t t
49795s,@COND_PLATFORM_MACOSX_1_TOOLKIT_X11@,$COND_PLATFORM_MACOSX_1_TOOLKIT_X11,;t t
a848cd7e
SC
49796s,@COND_PLATFORM_MACOSX_1_USE_GUI_1@,$COND_PLATFORM_MACOSX_1_USE_GUI_1,;t t
49797s,@COND_PLATFORM_MACOSX_1_USE_SOVERSION_1@,$COND_PLATFORM_MACOSX_1_USE_SOVERSION_1,;t t
b48a2016 49798s,@COND_PLATFORM_MACOS_1@,$COND_PLATFORM_MACOS_1,;t t
083508af 49799s,@COND_PLATFORM_MAC_1@,$COND_PLATFORM_MAC_1,;t t
e5efa97e 49800s,@COND_PLATFORM_MSDOS_0@,$COND_PLATFORM_MSDOS_0,;t t
83d8eb47 49801s,@COND_PLATFORM_MSDOS_1@,$COND_PLATFORM_MSDOS_1,;t t
a848cd7e
SC
49802s,@COND_PLATFORM_OS2_1@,$COND_PLATFORM_OS2_1,;t t
49803s,@COND_PLATFORM_UNIX_0@,$COND_PLATFORM_UNIX_0,;t t
49804s,@COND_PLATFORM_UNIX_1@,$COND_PLATFORM_UNIX_1,;t t
49805s,@COND_PLATFORM_UNIX_1_USE_GUI_1@,$COND_PLATFORM_UNIX_1_USE_GUI_1,;t t
49806s,@COND_PLATFORM_UNIX_1_USE_PLUGINS_0@,$COND_PLATFORM_UNIX_1_USE_PLUGINS_0,;t t
49807s,@COND_PLATFORM_WIN32_0@,$COND_PLATFORM_WIN32_0,;t t
49808s,@COND_PLATFORM_WIN32_1@,$COND_PLATFORM_WIN32_1,;t t
49809s,@COND_SHARED_0@,$COND_SHARED_0,;t t
083508af
MW
49810s,@COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0@,$COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0,;t t
49811s,@COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0@,$COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0,;t t
49812s,@COND_SHARED_0_TOOLKIT_PM_WXUNIV_0@,$COND_SHARED_0_TOOLKIT_PM_WXUNIV_0,;t t
a848cd7e
SC
49813s,@COND_SHARED_0_USE_GUI_1_USE_OPENGL_1@,$COND_SHARED_0_USE_GUI_1_USE_OPENGL_1,;t t
49814s,@COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN@,$COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN,;t t
49815s,@COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN@,$COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN,;t t
49816s,@COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN@,$COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN,;t t
083508af 49817s,@COND_SHARED_0_USE_XRC_1@,$COND_SHARED_0_USE_XRC_1,;t t
a848cd7e
SC
49818s,@COND_SHARED_0_WXUSE_EXPAT_BUILTIN@,$COND_SHARED_0_WXUSE_EXPAT_BUILTIN,;t t
49819s,@COND_SHARED_0_WXUSE_ODBC_BUILTIN@,$COND_SHARED_0_WXUSE_ODBC_BUILTIN,;t t
49820s,@COND_SHARED_0_WXUSE_REGEX_BUILTIN@,$COND_SHARED_0_WXUSE_REGEX_BUILTIN,;t t
49821s,@COND_SHARED_0_WXUSE_ZLIB_BUILTIN@,$COND_SHARED_0_WXUSE_ZLIB_BUILTIN,;t t
49822s,@COND_SHARED_1@,$COND_SHARED_1,;t t
49823s,@COND_SHARED_1_USE_GUI_1_USE_OPENGL_1@,$COND_SHARED_1_USE_GUI_1_USE_OPENGL_1,;t t
083508af 49824s,@COND_SHARED_1_USE_XRC_1@,$COND_SHARED_1_USE_XRC_1,;t t
a30f955f 49825s,@COND_TOOLKIT_@,$COND_TOOLKIT_,;t t
a848cd7e 49826s,@COND_TOOLKIT_COCOA@,$COND_TOOLKIT_COCOA,;t t
a49baeab 49827s,@COND_TOOLKIT_COCOA_USE_GUI_1@,$COND_TOOLKIT_COCOA_USE_GUI_1,;t t
a848cd7e
SC
49828s,@COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0,;t t
49829s,@COND_TOOLKIT_GTK@,$COND_TOOLKIT_GTK,;t t
d044deea
MW
49830s,@COND_TOOLKIT_GTK_TOOLKIT_VERSION_@,$COND_TOOLKIT_GTK_TOOLKIT_VERSION_,;t t
49831s,@COND_TOOLKIT_GTK_TOOLKIT_VERSION_2@,$COND_TOOLKIT_GTK_TOOLKIT_VERSION_2,;t t
49832s,@COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1@,$COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1,;t t
49833s,@COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1_WXUNIV_0,;t t
49834s,@COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1@,$COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1,;t t
49835s,@COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1_WXUNIV_0,;t t
a848cd7e 49836s,@COND_TOOLKIT_GTK_USE_GUI_1@,$COND_TOOLKIT_GTK_USE_GUI_1,;t t
a848cd7e
SC
49837s,@COND_TOOLKIT_MAC@,$COND_TOOLKIT_MAC,;t t
49838s,@COND_TOOLKIT_MAC_USE_GUI_1@,$COND_TOOLKIT_MAC_USE_GUI_1,;t t
49839s,@COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0,;t t
49840s,@COND_TOOLKIT_MGL@,$COND_TOOLKIT_MGL,;t t
49841s,@COND_TOOLKIT_MGL_USE_GUI_1@,$COND_TOOLKIT_MGL_USE_GUI_1,;t t
49842s,@COND_TOOLKIT_MOTIF@,$COND_TOOLKIT_MOTIF,;t t
49843s,@COND_TOOLKIT_MOTIF_USE_GUI_1@,$COND_TOOLKIT_MOTIF_USE_GUI_1,;t t
49844s,@COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0,;t t
49845s,@COND_TOOLKIT_MSW@,$COND_TOOLKIT_MSW,;t t
49846s,@COND_TOOLKIT_MSW_USE_GUI_1@,$COND_TOOLKIT_MSW_USE_GUI_1,;t t
49847s,@COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0,;t t
0ee4059d 49848s,@COND_TOOLKIT_MSW_WXUNIV_0@,$COND_TOOLKIT_MSW_WXUNIV_0,;t t
a848cd7e
SC
49849s,@COND_TOOLKIT_PM@,$COND_TOOLKIT_PM,;t t
49850s,@COND_TOOLKIT_PM_USE_GUI_1@,$COND_TOOLKIT_PM_USE_GUI_1,;t t
49851s,@COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0,;t t
3fd9c298
DE
49852s,@COND_TOOLKIT_WINCE@,$COND_TOOLKIT_WINCE,;t t
49853s,@COND_TOOLKIT_WINCE_USE_GUI_1@,$COND_TOOLKIT_WINCE_USE_GUI_1,;t t
49854s,@COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0,;t t
0ee4059d 49855s,@COND_TOOLKIT_WINCE_WXUNIV_0@,$COND_TOOLKIT_WINCE_WXUNIV_0,;t t
a848cd7e
SC
49856s,@COND_TOOLKIT_X11@,$COND_TOOLKIT_X11,;t t
49857s,@COND_TOOLKIT_X11_USE_GUI_1@,$COND_TOOLKIT_X11_USE_GUI_1,;t t
49858s,@COND_UNICODE_1@,$COND_UNICODE_1,;t t
49859s,@COND_USE_EXCEPTIONS_0@,$COND_USE_EXCEPTIONS_0,;t t
49860s,@COND_USE_EXCEPTIONS_1@,$COND_USE_EXCEPTIONS_1,;t t
49861s,@COND_USE_GUI_0@,$COND_USE_GUI_0,;t t
49862s,@COND_USE_GUI_1@,$COND_USE_GUI_1,;t t
49863s,@COND_USE_GUI_1_WXUNIV_0@,$COND_USE_GUI_1_WXUNIV_0,;t t
49864s,@COND_USE_GUI_1_WXUNIV_1@,$COND_USE_GUI_1_WXUNIV_1,;t t
49865s,@COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN@,$COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN,;t t
49866s,@COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN@,$COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN,;t t
49867s,@COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN@,$COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN,;t t
083508af
MW
49868s,@COND_USE_ODBC_1@,$COND_USE_ODBC_1,;t t
49869s,@COND_USE_OPENGL_1@,$COND_USE_OPENGL_1,;t t
f10e38c4 49870s,@COND_USE_PCH_1@,$COND_USE_PCH_1,;t t
a848cd7e 49871s,@COND_USE_PLUGINS_0@,$COND_USE_PLUGINS_0,;t t
0b78747f
MW
49872s,@COND_USE_RTTI_0@,$COND_USE_RTTI_0,;t t
49873s,@COND_USE_RTTI_1@,$COND_USE_RTTI_1,;t t
a848cd7e 49874s,@COND_USE_SOSYMLINKS_1@,$COND_USE_SOSYMLINKS_1,;t t
eb730a0c 49875s,@COND_USE_SOVERCYGWIN_1_USE_SOVERSION_1@,$COND_USE_SOVERCYGWIN_1_USE_SOVERSION_1,;t t
a848cd7e
SC
49876s,@COND_USE_SOVERLINUX_1@,$COND_USE_SOVERLINUX_1,;t t
49877s,@COND_USE_SOVERSION_0@,$COND_USE_SOVERSION_0,;t t
49878s,@COND_USE_SOVERSOLARIS_1@,$COND_USE_SOVERSOLARIS_1,;t t
0b78747f
MW
49879s,@COND_USE_THREADS_0@,$COND_USE_THREADS_0,;t t
49880s,@COND_USE_THREADS_1@,$COND_USE_THREADS_1,;t t
a13a7f89 49881s,@COND_USE_XRC_1@,$COND_USE_XRC_1,;t t
eb730a0c 49882s,@COND_WINDOWS_IMPLIB_1@,$COND_WINDOWS_IMPLIB_1,;t t
a848cd7e 49883s,@COND_WITH_PLUGIN_SDL_1@,$COND_WITH_PLUGIN_SDL_1,;t t
1e6eb025 49884s,@COND_WXUNIV_0@,$COND_WXUNIV_0,;t t
a848cd7e
SC
49885s,@COND_WXUNIV_1@,$COND_WXUNIV_1,;t t
49886s,@COND_WXUSE_EXPAT_BUILTIN@,$COND_WXUSE_EXPAT_BUILTIN,;t t
49887s,@COND_WXUSE_LIBJPEG_BUILTIN@,$COND_WXUSE_LIBJPEG_BUILTIN,;t t
49888s,@COND_WXUSE_LIBPNG_BUILTIN@,$COND_WXUSE_LIBPNG_BUILTIN,;t t
49889s,@COND_WXUSE_LIBTIFF_BUILTIN@,$COND_WXUSE_LIBTIFF_BUILTIN,;t t
49890s,@COND_WXUSE_ODBC_BUILTIN@,$COND_WXUSE_ODBC_BUILTIN,;t t
49891s,@COND_WXUSE_REGEX_BUILTIN@,$COND_WXUSE_REGEX_BUILTIN,;t t
49892s,@COND_WXUSE_ZLIB_BUILTIN@,$COND_WXUSE_ZLIB_BUILTIN,;t t
ceec2216 49893s,@SHARED@,$SHARED,;t t
a848cd7e
SC
49894s,@WX_LIBRARY_BASENAME_NOGUI@,$WX_LIBRARY_BASENAME_NOGUI,;t t
49895s,@WX_LIBRARY_BASENAME_GUI@,$WX_LIBRARY_BASENAME_GUI,;t t
a848cd7e
SC
49896s,@USE_GUI@,$USE_GUI,;t t
49897s,@AFMINSTALL@,$AFMINSTALL,;t t
49898s,@WIN32INSTALL@,$WIN32INSTALL,;t t
49899s,@TOOLKIT@,$TOOLKIT,;t t
49900s,@TOOLKIT_DIR@,$TOOLKIT_DIR,;t t
a848cd7e 49901s,@TOOLCHAIN_NAME@,$TOOLCHAIN_NAME,;t t
ceec2216 49902s,@TOOLCHAIN_FULLNAME@,$TOOLCHAIN_FULLNAME,;t t
a848cd7e 49903s,@cross_compiling@,$cross_compiling,;t t
ceec2216
RL
49904s,@WIDGET_SET@,$WIDGET_SET,;t t
49905s,@WX_RELEASE@,$WX_RELEASE,;t t
49906s,@WX_VERSION@,$WX_VERSION,;t t
49907s,@WX_SUBVERSION@,$WX_SUBVERSION,;t t
49908s,@WX_CHARTYPE@,$WX_CHARTYPE,;t t
49909s,@WX_DEBUGTYPE@,$WX_DEBUGTYPE,;t t
5ff751d6
VZ
49910s,@WXCONFIG_CPPFLAGS@,$WXCONFIG_CPPFLAGS,;t t
49911s,@WXCONFIG_CFLAGS@,$WXCONFIG_CFLAGS,;t t
49912s,@WXCONFIG_CXXFLAGS@,$WXCONFIG_CXXFLAGS,;t t
49913s,@WXCONFIG_LIBS@,$WXCONFIG_LIBS,;t t
a848cd7e
SC
49914s,@WXCONFIG_RPATH@,$WXCONFIG_RPATH,;t t
49915s,@WXCONFIG_LDFLAGS_GUI@,$WXCONFIG_LDFLAGS_GUI,;t t
004ee6da 49916s,@WXCONFIG_RESFLAGS@,$WXCONFIG_RESFLAGS,;t t
ceec2216 49917s,@EXE_LINKER@,$EXE_LINKER,;t t
a848cd7e 49918s,@GUIDIST@,$GUIDIST,;t t
a848cd7e
SC
49919s,@DISTDIR@,$DISTDIR,;t t
49920s,@SAMPLES_SUBDIRS@,$SAMPLES_SUBDIRS,;t t
49921s,@LDFLAGS_GL@,$LDFLAGS_GL,;t t
a848cd7e
SC
49922s,@OPENGL_LIBS@,$OPENGL_LIBS,;t t
49923s,@DMALLOC_LIBS@,$DMALLOC_LIBS,;t t
49924s,@WX_VERSION_TAG@,$WX_VERSION_TAG,;t t
004ee6da 49925s,@RESCOMP@,$RESCOMP,;t t
a848cd7e
SC
49926s,@RESFLAGS@,$RESFLAGS,;t t
49927s,@RESPROGRAMOBJ@,$RESPROGRAMOBJ,;t t
49928s,@WX_RESOURCES_MACOSX_ASCII@,$WX_RESOURCES_MACOSX_ASCII,;t t
49929s,@WX_RESOURCES_MACOSX_DATA@,$WX_RESOURCES_MACOSX_DATA,;t t
49930s,@LIBWXMACRES@,$LIBWXMACRES,;t t
8ced02f6 49931s,@POSTLINK_COMMAND@,$POSTLINK_COMMAND,;t t
a848cd7e 49932s,@MACSETFILE@,$MACSETFILE,;t t
a848cd7e 49933s,@GCC@,$GCC,;t t
a848cd7e
SC
49934s,@CPPUNIT_CONFIG@,$CPPUNIT_CONFIG,;t t
49935s,@LIBOBJS@,$LIBOBJS,;t t
49936s,@LTLIBOBJS@,$LTLIBOBJS,;t t
49937CEOF
49938
49939_ACEOF
49940
49941 cat >>$CONFIG_STATUS <<\_ACEOF
49942 # Split the substitutions into bite-sized pieces for seds with
49943 # small command number limits, like on Digital OSF/1 and HP-UX.
49944 ac_max_sed_lines=48
49945 ac_sed_frag=1 # Number of current file.
49946 ac_beg=1 # First line for current file.
49947 ac_end=$ac_max_sed_lines # Line after last line for current file.
49948 ac_more_lines=:
49949 ac_sed_cmds=
49950 while $ac_more_lines; do
49951 if test $ac_beg -gt 1; then
49952 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
49953 else
49954 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
49955 fi
49956 if test ! -s $tmp/subs.frag; then
49957 ac_more_lines=false
49958 else
49959 # The purpose of the label and of the branching condition is to
49960 # speed up the sed processing (if there are no `@' at all, there
49961 # is no need to browse any of the substitutions).
49962 # These are the two extra sed commands mentioned above.
49963 (echo ':t
49964 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
49965 if test -z "$ac_sed_cmds"; then
ac1cb8d3 49966 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
a848cd7e 49967 else
ac1cb8d3 49968 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
a848cd7e
SC
49969 fi
49970 ac_sed_frag=`expr $ac_sed_frag + 1`
49971 ac_beg=$ac_end
49972 ac_end=`expr $ac_end + $ac_max_sed_lines`
49973 fi
49974 done
49975 if test -z "$ac_sed_cmds"; then
49976 ac_sed_cmds=cat
49977 fi
49978fi # test -n "$CONFIG_FILES"
49979
49980_ACEOF
49981cat >>$CONFIG_STATUS <<\_ACEOF
49982for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
49983 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
49984 case $ac_file in
49985 - | *:- | *:-:* ) # input from stdin
ac1cb8d3
VS
49986 cat >$tmp/stdin
49987 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
49988 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
a848cd7e 49989 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
ac1cb8d3 49990 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
a848cd7e
SC
49991 * ) ac_file_in=$ac_file.in ;;
49992 esac
49993
49994 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
49995 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
49996$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
49997 X"$ac_file" : 'X\(//\)[^/]' \| \
49998 X"$ac_file" : 'X\(//\)$' \| \
49999 X"$ac_file" : 'X\(/\)' \| \
50000 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
50001echo X"$ac_file" |
50002 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
50003 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
50004 /^X\(\/\/\)$/{ s//\1/; q; }
50005 /^X\(\/\).*/{ s//\1/; q; }
50006 s/.*/./; q'`
50007 { if $as_mkdir_p; then
50008 mkdir -p "$ac_dir"
50009 else
50010 as_dir="$ac_dir"
50011 as_dirs=
50012 while test ! -d "$as_dir"; do
50013 as_dirs="$as_dir $as_dirs"
50014 as_dir=`(dirname "$as_dir") 2>/dev/null ||
50015$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
50016 X"$as_dir" : 'X\(//\)[^/]' \| \
50017 X"$as_dir" : 'X\(//\)$' \| \
50018 X"$as_dir" : 'X\(/\)' \| \
50019 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
50020echo X"$as_dir" |
50021 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
50022 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
50023 /^X\(\/\/\)$/{ s//\1/; q; }
50024 /^X\(\/\).*/{ s//\1/; q; }
50025 s/.*/./; q'`
50026 done
50027 test ! -n "$as_dirs" || mkdir $as_dirs
50028 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
50029echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
50030 { (exit 1); exit 1; }; }; }
50031
50032 ac_builddir=.
50033
50034if test "$ac_dir" != .; then
50035 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
50036 # A "../" for each directory in $ac_dir_suffix.
50037 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
50038else
50039 ac_dir_suffix= ac_top_builddir=
50040fi
50041
50042case $srcdir in
50043 .) # No --srcdir option. We are building in place.
50044 ac_srcdir=.
50045 if test -z "$ac_top_builddir"; then
50046 ac_top_srcdir=.
50047 else
50048 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
50049 fi ;;
50050 [\\/]* | ?:[\\/]* ) # Absolute path.
50051 ac_srcdir=$srcdir$ac_dir_suffix;
50052 ac_top_srcdir=$srcdir ;;
50053 *) # Relative path.
50054 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
50055 ac_top_srcdir=$ac_top_builddir$srcdir ;;
50056esac
ac1cb8d3
VS
50057
50058# Do not use `cd foo && pwd` to compute absolute paths, because
50059# the directories may not exist.
50060case `pwd` in
50061.) ac_abs_builddir="$ac_dir";;
50062*)
50063 case "$ac_dir" in
50064 .) ac_abs_builddir=`pwd`;;
50065 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
50066 *) ac_abs_builddir=`pwd`/"$ac_dir";;
50067 esac;;
50068esac
50069case $ac_abs_builddir in
50070.) ac_abs_top_builddir=${ac_top_builddir}.;;
50071*)
50072 case ${ac_top_builddir}. in
50073 .) ac_abs_top_builddir=$ac_abs_builddir;;
50074 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
50075 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
50076 esac;;
50077esac
50078case $ac_abs_builddir in
50079.) ac_abs_srcdir=$ac_srcdir;;
50080*)
50081 case $ac_srcdir in
50082 .) ac_abs_srcdir=$ac_abs_builddir;;
50083 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
50084 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
50085 esac;;
50086esac
50087case $ac_abs_builddir in
50088.) ac_abs_top_srcdir=$ac_top_srcdir;;
50089*)
50090 case $ac_top_srcdir in
50091 .) ac_abs_top_srcdir=$ac_abs_builddir;;
50092 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
50093 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
50094 esac;;
50095esac
a848cd7e
SC
50096
50097
50098 case $INSTALL in
50099 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
50100 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
50101 esac
50102
a848cd7e
SC
50103 # Let's still pretend it is `configure' which instantiates (i.e., don't
50104 # use $as_me), people would be surprised to read:
50105 # /* config.h. Generated by config.status. */
50106 if test x"$ac_file" = x-; then
50107 configure_input=
50108 else
50109 configure_input="$ac_file. "
50110 fi
50111 configure_input=$configure_input"Generated from `echo $ac_file_in |
ac1cb8d3 50112 sed 's,.*/,,'` by configure."
a848cd7e
SC
50113
50114 # First look for the input files in the build tree, otherwise in the
50115 # src tree.
50116 ac_file_inputs=`IFS=:
50117 for f in $ac_file_in; do
50118 case $f in
50119 -) echo $tmp/stdin ;;
50120 [\\/$]*)
ac1cb8d3
VS
50121 # Absolute (can't be DOS-style, as IFS=:)
50122 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
a848cd7e
SC
50123echo "$as_me: error: cannot find input file: $f" >&2;}
50124 { (exit 1); exit 1; }; }
ac1cb8d3 50125 echo "$f";;
a848cd7e 50126 *) # Relative
ac1cb8d3
VS
50127 if test -f "$f"; then
50128 # Build tree
50129 echo "$f"
50130 elif test -f "$srcdir/$f"; then
50131 # Source tree
50132 echo "$srcdir/$f"
50133 else
50134 # /dev/null tree
50135 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
a848cd7e
SC
50136echo "$as_me: error: cannot find input file: $f" >&2;}
50137 { (exit 1); exit 1; }; }
ac1cb8d3 50138 fi;;
a848cd7e
SC
50139 esac
50140 done` || { (exit 1); exit 1; }
c9a66001
VZ
50141
50142 if test x"$ac_file" != x-; then
50143 { echo "$as_me:$LINENO: creating $ac_file" >&5
50144echo "$as_me: creating $ac_file" >&6;}
50145 rm -f "$ac_file"
50146 fi
a848cd7e
SC
50147_ACEOF
50148cat >>$CONFIG_STATUS <<_ACEOF
50149 sed "$ac_vpsub
50150$extrasub
50151_ACEOF
50152cat >>$CONFIG_STATUS <<\_ACEOF
50153:t
50154/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
50155s,@configure_input@,$configure_input,;t t
50156s,@srcdir@,$ac_srcdir,;t t
50157s,@abs_srcdir@,$ac_abs_srcdir,;t t
50158s,@top_srcdir@,$ac_top_srcdir,;t t
50159s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
50160s,@builddir@,$ac_builddir,;t t
50161s,@abs_builddir@,$ac_abs_builddir,;t t
50162s,@top_builddir@,$ac_top_builddir,;t t
50163s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
50164s,@INSTALL@,$ac_INSTALL,;t t
50165" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
50166 rm -f $tmp/stdin
50167 if test x"$ac_file" != x-; then
50168 mv $tmp/out $ac_file
50169 else
50170 cat $tmp/out
50171 rm -f $tmp/out
50172 fi
50173
ceec2216
RL
50174 # Run the commands associated with the file.
50175 case $ac_file in
50176 lib/wx/config/${TOOLCHAIN_FULLNAME} ) chmod +x lib/wx/config/${TOOLCHAIN_FULLNAME} ;;
50177 lib/wx/config/inplace-${TOOLCHAIN_FULLNAME} ) chmod +x lib/wx/config/inplace-${TOOLCHAIN_FULLNAME} ;;
50178 esac
a848cd7e
SC
50179done
50180_ACEOF
50181cat >>$CONFIG_STATUS <<\_ACEOF
50182
50183#
50184# CONFIG_HEADER section.
50185#
50186
50187# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
50188# NAME is the cpp macro being defined and VALUE is the value it is being given.
50189#
50190# ac_d sets the value in "#define NAME VALUE" lines.
ac1cb8d3
VS
50191ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
50192ac_dB='[ ].*$,\1#\2'
a848cd7e
SC
50193ac_dC=' '
50194ac_dD=',;t'
50195# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
ac1cb8d3 50196ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
a848cd7e
SC
50197ac_uB='$,\1#\2define\3'
50198ac_uC=' '
50199ac_uD=',;t'
50200
50201for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
50202 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
50203 case $ac_file in
50204 - | *:- | *:-:* ) # input from stdin
ac1cb8d3
VS
50205 cat >$tmp/stdin
50206 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
50207 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
a848cd7e 50208 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
ac1cb8d3 50209 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
a848cd7e
SC
50210 * ) ac_file_in=$ac_file.in ;;
50211 esac
50212
50213 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
50214echo "$as_me: creating $ac_file" >&6;}
50215
50216 # First look for the input files in the build tree, otherwise in the
50217 # src tree.
50218 ac_file_inputs=`IFS=:
50219 for f in $ac_file_in; do
50220 case $f in
50221 -) echo $tmp/stdin ;;
50222 [\\/$]*)
ac1cb8d3
VS
50223 # Absolute (can't be DOS-style, as IFS=:)
50224 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
a848cd7e
SC
50225echo "$as_me: error: cannot find input file: $f" >&2;}
50226 { (exit 1); exit 1; }; }
ac1cb8d3
VS
50227 # Do quote $f, to prevent DOS paths from being IFS'd.
50228 echo "$f";;
a848cd7e 50229 *) # Relative
ac1cb8d3
VS
50230 if test -f "$f"; then
50231 # Build tree
50232 echo "$f"
50233 elif test -f "$srcdir/$f"; then
50234 # Source tree
50235 echo "$srcdir/$f"
50236 else
50237 # /dev/null tree
50238 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
a848cd7e
SC
50239echo "$as_me: error: cannot find input file: $f" >&2;}
50240 { (exit 1); exit 1; }; }
ac1cb8d3 50241 fi;;
a848cd7e
SC
50242 esac
50243 done` || { (exit 1); exit 1; }
50244 # Remove the trailing spaces.
ac1cb8d3 50245 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
a848cd7e
SC
50246
50247_ACEOF
50248
50249# Transform confdefs.h into two sed scripts, `conftest.defines' and
50250# `conftest.undefs', that substitutes the proper values into
50251# config.h.in to produce config.h. The first handles `#define'
50252# templates, and the second `#undef' templates.
50253# And first: Protect against being on the right side of a sed subst in
50254# config.status. Protect against being in an unquoted here document
50255# in config.status.
50256rm -f conftest.defines conftest.undefs
50257# Using a here document instead of a string reduces the quoting nightmare.
50258# Putting comments in sed scripts is not portable.
50259#
50260# `end' is used to avoid that the second main sed command (meant for
50261# 0-ary CPP macros) applies to n-ary macro definitions.
50262# See the Autoconf documentation for `clear'.
50263cat >confdef2sed.sed <<\_ACEOF
50264s/[\\&,]/\\&/g
50265s,[\\$`],\\&,g
50266t clear
50267: clear
ac1cb8d3 50268s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
a848cd7e 50269t end
ac1cb8d3 50270s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
a848cd7e
SC
50271: end
50272_ACEOF
50273# If some macros were called several times there might be several times
50274# the same #defines, which is useless. Nevertheless, we may not want to
50275# sort them, since we want the *last* AC-DEFINE to be honored.
50276uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
50277sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
50278rm -f confdef2sed.sed
50279
50280# This sed command replaces #undef with comments. This is necessary, for
50281# example, in the case of _POSIX_SOURCE, which is predefined and required
50282# on some systems where configure will not decide to define it.
50283cat >>conftest.undefs <<\_ACEOF
ac1cb8d3 50284s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
a848cd7e
SC
50285_ACEOF
50286
50287# Break up conftest.defines because some shells have a limit on the size
50288# of here documents, and old seds have small limits too (100 cmds).
50289echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
ac1cb8d3 50290echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
a848cd7e
SC
50291echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
50292echo ' :' >>$CONFIG_STATUS
50293rm -f conftest.tail
50294while grep . conftest.defines >/dev/null
50295do
50296 # Write a limited-size here document to $tmp/defines.sed.
50297 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
50298 # Speed up: don't consider the non `#define' lines.
ac1cb8d3 50299 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
a848cd7e
SC
50300 # Work around the forget-to-reset-the-flag bug.
50301 echo 't clr' >>$CONFIG_STATUS
50302 echo ': clr' >>$CONFIG_STATUS
50303 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
50304 echo 'CEOF
50305 sed -f $tmp/defines.sed $tmp/in >$tmp/out
50306 rm -f $tmp/in
50307 mv $tmp/out $tmp/in
50308' >>$CONFIG_STATUS
50309 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
50310 rm -f conftest.defines
50311 mv conftest.tail conftest.defines
50312done
50313rm -f conftest.defines
50314echo ' fi # grep' >>$CONFIG_STATUS
50315echo >>$CONFIG_STATUS
50316
50317# Break up conftest.undefs because some shells have a limit on the size
50318# of here documents, and old seds have small limits too (100 cmds).
50319echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
50320rm -f conftest.tail
50321while grep . conftest.undefs >/dev/null
50322do
50323 # Write a limited-size here document to $tmp/undefs.sed.
50324 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
50325 # Speed up: don't consider the non `#undef'
ac1cb8d3 50326 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
a848cd7e
SC
50327 # Work around the forget-to-reset-the-flag bug.
50328 echo 't clr' >>$CONFIG_STATUS
50329 echo ': clr' >>$CONFIG_STATUS
50330 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
50331 echo 'CEOF
50332 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
50333 rm -f $tmp/in
50334 mv $tmp/out $tmp/in
50335' >>$CONFIG_STATUS
50336 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
50337 rm -f conftest.undefs
50338 mv conftest.tail conftest.undefs
50339done
50340rm -f conftest.undefs
50341
50342cat >>$CONFIG_STATUS <<\_ACEOF
50343 # Let's still pretend it is `configure' which instantiates (i.e., don't
50344 # use $as_me), people would be surprised to read:
50345 # /* config.h. Generated by config.status. */
50346 if test x"$ac_file" = x-; then
50347 echo "/* Generated by configure. */" >$tmp/config.h
50348 else
50349 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
50350 fi
50351 cat $tmp/in >>$tmp/config.h
50352 rm -f $tmp/in
50353 if test x"$ac_file" != x-; then
50354 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
50355 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
50356echo "$as_me: $ac_file is unchanged" >&6;}
50357 else
50358 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
50359$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
50360 X"$ac_file" : 'X\(//\)[^/]' \| \
50361 X"$ac_file" : 'X\(//\)$' \| \
50362 X"$ac_file" : 'X\(/\)' \| \
50363 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
50364echo X"$ac_file" |
50365 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
50366 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
50367 /^X\(\/\/\)$/{ s//\1/; q; }
50368 /^X\(\/\).*/{ s//\1/; q; }
50369 s/.*/./; q'`
50370 { if $as_mkdir_p; then
50371 mkdir -p "$ac_dir"
50372 else
50373 as_dir="$ac_dir"
50374 as_dirs=
50375 while test ! -d "$as_dir"; do
50376 as_dirs="$as_dir $as_dirs"
50377 as_dir=`(dirname "$as_dir") 2>/dev/null ||
50378$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
50379 X"$as_dir" : 'X\(//\)[^/]' \| \
50380 X"$as_dir" : 'X\(//\)$' \| \
50381 X"$as_dir" : 'X\(/\)' \| \
50382 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
50383echo X"$as_dir" |
50384 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
50385 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
50386 /^X\(\/\/\)$/{ s//\1/; q; }
50387 /^X\(\/\).*/{ s//\1/; q; }
50388 s/.*/./; q'`
50389 done
50390 test ! -n "$as_dirs" || mkdir $as_dirs
50391 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
50392echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
50393 { (exit 1); exit 1; }; }; }
50394
50395 rm -f $ac_file
50396 mv $tmp/config.h $ac_file
50397 fi
50398 else
50399 cat $tmp/config.h
50400 rm -f $tmp/config.h
50401 fi
50402done
50403_ACEOF
50404cat >>$CONFIG_STATUS <<\_ACEOF
50405
50406#
50407# CONFIG_COMMANDS section.
50408#
50409for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
50410 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
50411 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
50412 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
50413$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
50414 X"$ac_dest" : 'X\(//\)[^/]' \| \
50415 X"$ac_dest" : 'X\(//\)$' \| \
50416 X"$ac_dest" : 'X\(/\)' \| \
50417 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
50418echo X"$ac_dest" |
50419 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
50420 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
50421 /^X\(\/\/\)$/{ s//\1/; q; }
50422 /^X\(\/\).*/{ s//\1/; q; }
50423 s/.*/./; q'`
ac1cb8d3
VS
50424 { if $as_mkdir_p; then
50425 mkdir -p "$ac_dir"
50426 else
50427 as_dir="$ac_dir"
50428 as_dirs=
50429 while test ! -d "$as_dir"; do
50430 as_dirs="$as_dir $as_dirs"
50431 as_dir=`(dirname "$as_dir") 2>/dev/null ||
50432$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
50433 X"$as_dir" : 'X\(//\)[^/]' \| \
50434 X"$as_dir" : 'X\(//\)$' \| \
50435 X"$as_dir" : 'X\(/\)' \| \
50436 . : '\(.\)' 2>/dev/null ||
50437echo X"$as_dir" |
50438 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
50439 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
50440 /^X\(\/\/\)$/{ s//\1/; q; }
50441 /^X\(\/\).*/{ s//\1/; q; }
50442 s/.*/./; q'`
50443 done
50444 test ! -n "$as_dirs" || mkdir $as_dirs
50445 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
50446echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
50447 { (exit 1); exit 1; }; }; }
50448
a848cd7e
SC
50449 ac_builddir=.
50450
50451if test "$ac_dir" != .; then
50452 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
50453 # A "../" for each directory in $ac_dir_suffix.
50454 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
50455else
50456 ac_dir_suffix= ac_top_builddir=
50457fi
50458
50459case $srcdir in
50460 .) # No --srcdir option. We are building in place.
50461 ac_srcdir=.
50462 if test -z "$ac_top_builddir"; then
50463 ac_top_srcdir=.
50464 else
50465 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
50466 fi ;;
50467 [\\/]* | ?:[\\/]* ) # Absolute path.
50468 ac_srcdir=$srcdir$ac_dir_suffix;
50469 ac_top_srcdir=$srcdir ;;
50470 *) # Relative path.
50471 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
50472 ac_top_srcdir=$ac_top_builddir$srcdir ;;
50473esac
ac1cb8d3
VS
50474
50475# Do not use `cd foo && pwd` to compute absolute paths, because
50476# the directories may not exist.
50477case `pwd` in
50478.) ac_abs_builddir="$ac_dir";;
50479*)
50480 case "$ac_dir" in
50481 .) ac_abs_builddir=`pwd`;;
50482 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
50483 *) ac_abs_builddir=`pwd`/"$ac_dir";;
50484 esac;;
50485esac
50486case $ac_abs_builddir in
50487.) ac_abs_top_builddir=${ac_top_builddir}.;;
50488*)
50489 case ${ac_top_builddir}. in
50490 .) ac_abs_top_builddir=$ac_abs_builddir;;
50491 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
50492 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
50493 esac;;
50494esac
50495case $ac_abs_builddir in
50496.) ac_abs_srcdir=$ac_srcdir;;
50497*)
50498 case $ac_srcdir in
50499 .) ac_abs_srcdir=$ac_abs_builddir;;
50500 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
50501 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
50502 esac;;
50503esac
50504case $ac_abs_builddir in
50505.) ac_abs_top_srcdir=$ac_top_srcdir;;
50506*)
50507 case $ac_top_srcdir in
50508 .) ac_abs_top_srcdir=$ac_abs_builddir;;
50509 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
50510 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
50511 esac;;
50512esac
a848cd7e
SC
50513
50514
50515 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
50516echo "$as_me: executing $ac_dest commands" >&6;}
50517 case $ac_dest in
5c60e845
MW
50518 rcdefs.h )
50519 mkdir -p $outdir &&
50520 $CPP $infile | sed 's/^# *[1-9].*//;s/^ *//;/./,/^$/!d' > $outdir/rcdefs.h
50521 ;;
ceec2216
RL
50522 wx-config ) rm -f wx-config
50523 ${LN_S} lib/wx/config/inplace-${TOOLCHAIN_FULLNAME} wx-config
50524 ;;
a848cd7e
SC
50525 esac
50526done
50527_ACEOF
50528
50529cat >>$CONFIG_STATUS <<\_ACEOF
50530
50531{ (exit 0); exit 0; }
50532_ACEOF
50533chmod +x $CONFIG_STATUS
50534ac_clean_files=$ac_clean_files_save
50535
50536
50537# configure is writing to config.log, and then calls config.status.
50538# config.status does its own redirection, appending to config.log.
50539# Unfortunately, on DOS this fails, as config.log is still kept open
50540# by configure, so config.status won't be able to write to it; its
50541# output is simply discarded. So we exec the FD to /dev/null,
50542# effectively closing config.log, so it can be properly (re)opened and
50543# appended to by config.status. When coming back to configure, we
50544# need to make the FD available again.
50545if test "$no_create" != yes; then
50546 ac_cs_success=:
50547 ac_config_status_args=
50548 test "$silent" = yes &&
50549 ac_config_status_args="$ac_config_status_args --quiet"
50550 exec 5>/dev/null
50551 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
50552 exec 5>>config.log
50553 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
50554 # would make configure fail if this is the last instruction.
50555 $ac_cs_success || { (exit 1); exit 1; }
50556fi
50557
50558#
50559# CONFIG_SUBDIRS section.
50560#
50561if test "$no_recursion" != yes; then
50562
50563 # Remove --cache-file and --srcdir arguments so they do not pile up.
50564 ac_sub_configure_args=
50565 ac_prev=
50566 for ac_arg in $ac_configure_args; do
50567 if test -n "$ac_prev"; then
50568 ac_prev=
50569 continue
50570 fi
50571 case $ac_arg in
50572 -cache-file | --cache-file | --cache-fil | --cache-fi \
50573 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
50574 ac_prev=cache_file ;;
50575 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
50576 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
50577 | --c=*)
50578 ;;
50579 --config-cache | -C)
50580 ;;
50581 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
50582 ac_prev=srcdir ;;
50583 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
50584 ;;
50585 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
50586 ac_prev=prefix ;;
50587 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
50588 ;;
50589 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
50590 esac
50591 done
50592
50593 # Always prepend --prefix to ensure using the same prefix
50594 # in subdir configurations.
50595 ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
50596
50597 ac_popdir=`pwd`
50598 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
50599
50600 # Do not complain, so a configure script can configure whichever
50601 # parts of a large source tree are present.
50602 test -d $srcdir/$ac_dir || continue
50603
50604 { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
50605echo "$as_me: configuring in $ac_dir" >&6;}
50606 { if $as_mkdir_p; then
50607 mkdir -p "$ac_dir"
50608 else
50609 as_dir="$ac_dir"
50610 as_dirs=
50611 while test ! -d "$as_dir"; do
50612 as_dirs="$as_dir $as_dirs"
50613 as_dir=`(dirname "$as_dir") 2>/dev/null ||
50614$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
50615 X"$as_dir" : 'X\(//\)[^/]' \| \
50616 X"$as_dir" : 'X\(//\)$' \| \
50617 X"$as_dir" : 'X\(/\)' \| \
50618 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
50619echo X"$as_dir" |
50620 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
50621 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
50622 /^X\(\/\/\)$/{ s//\1/; q; }
50623 /^X\(\/\).*/{ s//\1/; q; }
50624 s/.*/./; q'`
50625 done
50626 test ! -n "$as_dirs" || mkdir $as_dirs
50627 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
50628echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
50629 { (exit 1); exit 1; }; }; }
50630
50631 ac_builddir=.
50632
50633if test "$ac_dir" != .; then
50634 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
50635 # A "../" for each directory in $ac_dir_suffix.
50636 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
50637else
50638 ac_dir_suffix= ac_top_builddir=
50639fi
50640
50641case $srcdir in
50642 .) # No --srcdir option. We are building in place.
50643 ac_srcdir=.
50644 if test -z "$ac_top_builddir"; then
50645 ac_top_srcdir=.
50646 else
50647 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
50648 fi ;;
50649 [\\/]* | ?:[\\/]* ) # Absolute path.
50650 ac_srcdir=$srcdir$ac_dir_suffix;
50651 ac_top_srcdir=$srcdir ;;
50652 *) # Relative path.
50653 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
50654 ac_top_srcdir=$ac_top_builddir$srcdir ;;
50655esac
ac1cb8d3
VS
50656
50657# Do not use `cd foo && pwd` to compute absolute paths, because
50658# the directories may not exist.
50659case `pwd` in
50660.) ac_abs_builddir="$ac_dir";;
50661*)
50662 case "$ac_dir" in
50663 .) ac_abs_builddir=`pwd`;;
50664 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
50665 *) ac_abs_builddir=`pwd`/"$ac_dir";;
50666 esac;;
50667esac
50668case $ac_abs_builddir in
50669.) ac_abs_top_builddir=${ac_top_builddir}.;;
50670*)
50671 case ${ac_top_builddir}. in
50672 .) ac_abs_top_builddir=$ac_abs_builddir;;
50673 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
50674 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
50675 esac;;
50676esac
50677case $ac_abs_builddir in
50678.) ac_abs_srcdir=$ac_srcdir;;
50679*)
50680 case $ac_srcdir in
50681 .) ac_abs_srcdir=$ac_abs_builddir;;
50682 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
50683 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
50684 esac;;
50685esac
50686case $ac_abs_builddir in
50687.) ac_abs_top_srcdir=$ac_top_srcdir;;
50688*)
50689 case $ac_top_srcdir in
50690 .) ac_abs_top_srcdir=$ac_abs_builddir;;
50691 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
50692 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
50693 esac;;
50694esac
a848cd7e
SC
50695
50696
50697 cd $ac_dir
50698
50699 # Check for guested configure; otherwise get Cygnus style configure.
50700 if test -f $ac_srcdir/configure.gnu; then
50701 ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
50702 elif test -f $ac_srcdir/configure; then
50703 ac_sub_configure="$SHELL '$ac_srcdir/configure'"
50704 elif test -f $ac_srcdir/configure.in; then
50705 ac_sub_configure=$ac_configure
50706 else
50707 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
50708echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
50709 ac_sub_configure=
50710 fi
50711
50712 # The recursion is here.
50713 if test -n "$ac_sub_configure"; then
50714 # Make the cache file name correct relative to the subdirectory.
50715 case $cache_file in
50716 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
50717 *) # Relative path.
ac1cb8d3 50718 ac_sub_cache_file=$ac_top_builddir$cache_file ;;
a848cd7e
SC
50719 esac
50720
50721 { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
50722echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
50723 # The eval makes quoting arguments work.
50724 eval $ac_sub_configure $ac_sub_configure_args \
ac1cb8d3
VS
50725 --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
50726 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
a848cd7e
SC
50727echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
50728 { (exit 1); exit 1; }; }
50729 fi
50730
c9a66001 50731 cd "$ac_popdir"
a848cd7e
SC
50732 done
50733fi
50734
50735
50736echo
77ffb593 50737echo "Configured wxWidgets ${WX_VERSION} for \`${host}'"
a848cd7e 50738echo ""
4d4ff94c 50739echo " Which GUI toolkit should wxWidgets use? ${TOOLKIT_USER:-base only}"
77ffb593 50740echo " Should wxWidgets be compiled into single library? ${wxUSE_MONOLITHIC:-yes}"
a848cd7e 50741
77ffb593
JS
50742echo " Should wxWidgets be compiled in debug mode? ${wxUSE_DEBUG:-no}"
50743echo " Should wxWidgets be linked as a shared library? ${wxUSE_SHARED:-no}"
50744echo " Should wxWidgets be compiled in Unicode mode? ${wxUSE_UNICODE:-no}"
a848cd7e 50745
77ffb593 50746echo " What level of wxWidgets compatibility should be enabled?"
dee1a63f
MB
50747echo " wxWidgets 2.4 ${WXWIN_COMPATIBILITY_2_4:-no}"
50748echo " wxWidgets 2.6 ${WXWIN_COMPATIBILITY_2_6:-yes}"
a848cd7e 50749
77ffb593 50750echo " Which libraries should wxWidgets use?"
a848cd7e
SC
50751echo " jpeg ${wxUSE_LIBJPEG-none}"
50752echo " png ${wxUSE_LIBPNG-none}"
50753echo " regex ${wxUSE_REGEX}"
50754echo " tiff ${wxUSE_LIBTIFF-none}"
50755if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then
50756echo " xpm ${wxUSE_LIBXPM-none}"
50757fi
50758echo " zlib ${wxUSE_ZLIB}"
50759echo " odbc ${wxUSE_ODBC}"
50760echo " expat ${wxUSE_EXPAT}"
50761echo " libmspack ${wxUSE_LIBMSPACK}"
50762echo " sdl ${wxUSE_LIBSDL}"
6d1ce868 50763echo " gnomeprint ${wxUSE_LIBGNOMEPRINT-none}"
2b850ae1 50764echo " gnomevfs ${wxUSE_LIBGNOMEVFS-none}"
3565d135 50765echo " hildon ${wxUSE_LIBHILDON-none}"
a848cd7e
SC
50766
50767echo ""
50768