]> git.saurik.com Git - wxWidgets.git/blame - configure
don't pass window argument to NotifyCaptureLost, it's not needed/used
[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
7afc46ab 892 --enable-universal_binary 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
7afc46ab
KO
4263 enablestring=
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
4271 if test "$enableval" = yes; then
4272 ac_cv_use_universal_binary='wxUSE_UNIVERSAL_BINARY=yes'
4273 else
4274 ac_cv_use_universal_binary='wxUSE_UNIVERSAL_BINARY=no'
4275 fi
4276
4277else
4278
4279 LINE=`grep "wxUSE_UNIVERSAL_BINARY" ${wx_arg_cache_file}`
4280 if test "x$LINE" != x ; then
4281 eval "DEFAULT_$LINE"
4282 else
4283 no_cache=1
4284 fi
4285
4286 ac_cv_use_universal_binary='wxUSE_UNIVERSAL_BINARY='$DEFAULT_wxUSE_UNIVERSAL_BINARY
4287
4288fi;
4289
4290 eval "$ac_cv_use_universal_binary"
4291 if test "$no_cache" != 1; then
4292 echo $ac_cv_use_universal_binary >> ${wx_arg_cache_file}.tmp
4293 fi
4294
4295 if test "$wxUSE_UNIVERSAL_BINARY" = yes; then
4296 echo "$as_me:$LINENO: result: yes" >&5
4297echo "${ECHO_T}yes" >&6
4298 else
4299 echo "$as_me:$LINENO: result: no" >&5
4300echo "${ECHO_T}no" >&6
4301 fi
4302
4303
a848cd7e 4304
dee1a63f
MB
4305 enablestring=enable
4306 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-compat24" >&5
4307echo $ECHO_N "checking for --${enablestring:-enable}-compat24... $ECHO_C" >&6
a848cd7e 4308 no_cache=0
dee1a63f
MB
4309 # Check whether --enable-compat24 or --disable-compat24 was given.
4310if test "${enable_compat24+set}" = set; then
4311 enableval="$enable_compat24"
a848cd7e
SC
4312
4313 if test "$enableval" = yes; then
dee1a63f 4314 ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4=yes'
a848cd7e 4315 else
dee1a63f 4316 ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4=no'
a848cd7e
SC
4317 fi
4318
4319else
4320
dee1a63f 4321 LINE=`grep "WXWIN_COMPATIBILITY_2_4" ${wx_arg_cache_file}`
a848cd7e
SC
4322 if test "x$LINE" != x ; then
4323 eval "DEFAULT_$LINE"
4324 else
4325 no_cache=1
4326 fi
4327
dee1a63f 4328 ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4='$DEFAULT_WXWIN_COMPATIBILITY_2_4
a848cd7e
SC
4329
4330fi;
4331
dee1a63f 4332 eval "$ac_cv_use_compat24"
a848cd7e 4333 if test "$no_cache" != 1; then
dee1a63f 4334 echo $ac_cv_use_compat24 >> ${wx_arg_cache_file}.tmp
a848cd7e
SC
4335 fi
4336
dee1a63f 4337 if test "$WXWIN_COMPATIBILITY_2_4" = yes; then
a848cd7e
SC
4338 echo "$as_me:$LINENO: result: yes" >&5
4339echo "${ECHO_T}yes" >&6
4340 else
4341 echo "$as_me:$LINENO: result: no" >&5
4342echo "${ECHO_T}no" >&6
4343 fi
4344
4345
4346 enablestring=disable
dee1a63f
MB
4347 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-compat26" >&5
4348echo $ECHO_N "checking for --${enablestring:-enable}-compat26... $ECHO_C" >&6
a848cd7e 4349 no_cache=0
dee1a63f
MB
4350 # Check whether --enable-compat26 or --disable-compat26 was given.
4351if test "${enable_compat26+set}" = set; then
4352 enableval="$enable_compat26"
a848cd7e
SC
4353
4354 if test "$enableval" = yes; then
dee1a63f 4355 ac_cv_use_compat26='WXWIN_COMPATIBILITY_2_6=yes'
a848cd7e 4356 else
dee1a63f 4357 ac_cv_use_compat26='WXWIN_COMPATIBILITY_2_6=no'
a848cd7e
SC
4358 fi
4359
4360else
4361
dee1a63f 4362 LINE=`grep "WXWIN_COMPATIBILITY_2_6" ${wx_arg_cache_file}`
a848cd7e
SC
4363 if test "x$LINE" != x ; then
4364 eval "DEFAULT_$LINE"
4365 else
4366 no_cache=1
4367 fi
4368
dee1a63f 4369 ac_cv_use_compat26='WXWIN_COMPATIBILITY_2_6='$DEFAULT_WXWIN_COMPATIBILITY_2_6
a848cd7e
SC
4370
4371fi;
4372
dee1a63f 4373 eval "$ac_cv_use_compat26"
a848cd7e 4374 if test "$no_cache" != 1; then
dee1a63f 4375 echo $ac_cv_use_compat26 >> ${wx_arg_cache_file}.tmp
a848cd7e
SC
4376 fi
4377
dee1a63f 4378 if test "$WXWIN_COMPATIBILITY_2_6" = yes; then
a848cd7e
SC
4379 echo "$as_me:$LINENO: result: yes" >&5
4380echo "${ECHO_T}yes" >&6
4381 else
4382 echo "$as_me:$LINENO: result: no" >&5
4383echo "${ECHO_T}no" >&6
4384 fi
4385
4386
ffa0583f
RL
4387
4388 enablestring=
4389 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-rpath" >&5
4390echo $ECHO_N "checking for --${enablestring:-enable}-rpath... $ECHO_C" >&6
4391 no_cache=0
4392 # Check whether --enable-rpath or --disable-rpath was given.
a848cd7e
SC
4393if test "${enable_rpath+set}" = set; then
4394 enableval="$enable_rpath"
ffa0583f
RL
4395
4396 if test "$enableval" = yes; then
4397 ac_cv_use_rpath='wxUSE_RPATH=yes'
4398 else
4399 ac_cv_use_rpath='wxUSE_RPATH=no'
4400 fi
4401
4402else
4403
4404 LINE=`grep "wxUSE_RPATH" ${wx_arg_cache_file}`
4405 if test "x$LINE" != x ; then
4406 eval "DEFAULT_$LINE"
4407 else
4408 no_cache=1
4409 fi
4410
4411 ac_cv_use_rpath='wxUSE_RPATH='$DEFAULT_wxUSE_RPATH
4412
a848cd7e
SC
4413fi;
4414
ffa0583f
RL
4415 eval "$ac_cv_use_rpath"
4416 if test "$no_cache" != 1; then
4417 echo $ac_cv_use_rpath >> ${wx_arg_cache_file}.tmp
4418 fi
4419
4420 if test "$wxUSE_RPATH" = yes; then
4421 echo "$as_me:$LINENO: result: yes" >&5
4422echo "${ECHO_T}yes" >&6
4423 else
4424 echo "$as_me:$LINENO: result: no" >&5
4425echo "${ECHO_T}no" >&6
4426 fi
4427
a848cd7e
SC
4428
4429
4430
4431
4432 enablestring=
4433 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-intl" >&5
4434echo $ECHO_N "checking for --${enablestring:-enable}-intl... $ECHO_C" >&6
4435 no_cache=0
4436 # Check whether --enable-intl or --disable-intl was given.
4437if test "${enable_intl+set}" = set; then
4438 enableval="$enable_intl"
4439
4440 if test "$enableval" = yes; then
4441 ac_cv_use_intl='wxUSE_INTL=yes'
4442 else
4443 ac_cv_use_intl='wxUSE_INTL=no'
4444 fi
4445
4446else
4447
4448 LINE=`grep "wxUSE_INTL" ${wx_arg_cache_file}`
4449 if test "x$LINE" != x ; then
4450 eval "DEFAULT_$LINE"
4451 else
4452 no_cache=1
4453 fi
4454
4455 ac_cv_use_intl='wxUSE_INTL='$DEFAULT_wxUSE_INTL
4456
4457fi;
4458
4459 eval "$ac_cv_use_intl"
4460 if test "$no_cache" != 1; then
4461 echo $ac_cv_use_intl >> ${wx_arg_cache_file}.tmp
4462 fi
4463
4464 if test "$wxUSE_INTL" = yes; then
4465 echo "$as_me:$LINENO: result: yes" >&5
4466echo "${ECHO_T}yes" >&6
4467 else
4468 echo "$as_me:$LINENO: result: no" >&5
4469echo "${ECHO_T}no" >&6
4470 fi
4471
4472
4473 enablestring=
4474 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-config" >&5
4475echo $ECHO_N "checking for --${enablestring:-enable}-config... $ECHO_C" >&6
4476 no_cache=0
4477 # Check whether --enable-config or --disable-config was given.
4478if test "${enable_config+set}" = set; then
4479 enableval="$enable_config"
4480
4481 if test "$enableval" = yes; then
4482 ac_cv_use_config='wxUSE_CONFIG=yes'
4483 else
4484 ac_cv_use_config='wxUSE_CONFIG=no'
4485 fi
4486
4487else
4488
4489 LINE=`grep "wxUSE_CONFIG" ${wx_arg_cache_file}`
4490 if test "x$LINE" != x ; then
4491 eval "DEFAULT_$LINE"
4492 else
4493 no_cache=1
4494 fi
4495
4496 ac_cv_use_config='wxUSE_CONFIG='$DEFAULT_wxUSE_CONFIG
4497
4498fi;
4499
4500 eval "$ac_cv_use_config"
4501 if test "$no_cache" != 1; then
4502 echo $ac_cv_use_config >> ${wx_arg_cache_file}.tmp
4503 fi
4504
4505 if test "$wxUSE_CONFIG" = yes; then
4506 echo "$as_me:$LINENO: result: yes" >&5
4507echo "${ECHO_T}yes" >&6
4508 else
4509 echo "$as_me:$LINENO: result: no" >&5
4510echo "${ECHO_T}no" >&6
4511 fi
4512
4513
4514
4515 enablestring=
4516 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocols" >&5
4517echo $ECHO_N "checking for --${enablestring:-enable}-protocols... $ECHO_C" >&6
4518 no_cache=0
4519 # Check whether --enable-protocols or --disable-protocols was given.
4520if test "${enable_protocols+set}" = set; then
4521 enableval="$enable_protocols"
4522
4523 if test "$enableval" = yes; then
4524 ac_cv_use_protocols='wxUSE_PROTOCOL=yes'
4525 else
4526 ac_cv_use_protocols='wxUSE_PROTOCOL=no'
4527 fi
4528
4529else
4530
4531 LINE=`grep "wxUSE_PROTOCOL" ${wx_arg_cache_file}`
4532 if test "x$LINE" != x ; then
4533 eval "DEFAULT_$LINE"
4534 else
4535 no_cache=1
4536 fi
4537
4538 ac_cv_use_protocols='wxUSE_PROTOCOL='$DEFAULT_wxUSE_PROTOCOL
4539
4540fi;
4541
4542 eval "$ac_cv_use_protocols"
4543 if test "$no_cache" != 1; then
4544 echo $ac_cv_use_protocols >> ${wx_arg_cache_file}.tmp
4545 fi
4546
4547 if test "$wxUSE_PROTOCOL" = yes; then
4548 echo "$as_me:$LINENO: result: yes" >&5
4549echo "${ECHO_T}yes" >&6
4550 else
4551 echo "$as_me:$LINENO: result: no" >&5
4552echo "${ECHO_T}no" >&6
4553 fi
4554
4555
4556 enablestring=
4557 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ftp" >&5
4558echo $ECHO_N "checking for --${enablestring:-enable}-ftp... $ECHO_C" >&6
4559 no_cache=0
4560 # Check whether --enable-ftp or --disable-ftp was given.
4561if test "${enable_ftp+set}" = set; then
4562 enableval="$enable_ftp"
4563
4564 if test "$enableval" = yes; then
4565 ac_cv_use_ftp='wxUSE_PROTOCOL_FTP=yes'
4566 else
4567 ac_cv_use_ftp='wxUSE_PROTOCOL_FTP=no'
4568 fi
4569
4570else
4571
4572 LINE=`grep "wxUSE_PROTOCOL_FTP" ${wx_arg_cache_file}`
4573 if test "x$LINE" != x ; then
4574 eval "DEFAULT_$LINE"
4575 else
4576 no_cache=1
4577 fi
4578
4579 ac_cv_use_ftp='wxUSE_PROTOCOL_FTP='$DEFAULT_wxUSE_PROTOCOL_FTP
4580
4581fi;
4582
4583 eval "$ac_cv_use_ftp"
4584 if test "$no_cache" != 1; then
4585 echo $ac_cv_use_ftp >> ${wx_arg_cache_file}.tmp
4586 fi
4587
4588 if test "$wxUSE_PROTOCOL_FTP" = yes; then
4589 echo "$as_me:$LINENO: result: yes" >&5
4590echo "${ECHO_T}yes" >&6
4591 else
4592 echo "$as_me:$LINENO: result: no" >&5
4593echo "${ECHO_T}no" >&6
4594 fi
4595
4596
4597 enablestring=
4598 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-http" >&5
4599echo $ECHO_N "checking for --${enablestring:-enable}-http... $ECHO_C" >&6
4600 no_cache=0
4601 # Check whether --enable-http or --disable-http was given.
4602if test "${enable_http+set}" = set; then
4603 enableval="$enable_http"
4604
4605 if test "$enableval" = yes; then
4606 ac_cv_use_http='wxUSE_PROTOCOL_HTTP=yes'
4607 else
4608 ac_cv_use_http='wxUSE_PROTOCOL_HTTP=no'
4609 fi
4610
4611else
4612
4613 LINE=`grep "wxUSE_PROTOCOL_HTTP" ${wx_arg_cache_file}`
4614 if test "x$LINE" != x ; then
4615 eval "DEFAULT_$LINE"
4616 else
4617 no_cache=1
4618 fi
4619
4620 ac_cv_use_http='wxUSE_PROTOCOL_HTTP='$DEFAULT_wxUSE_PROTOCOL_HTTP
4621
4622fi;
4623
4624 eval "$ac_cv_use_http"
4625 if test "$no_cache" != 1; then
4626 echo $ac_cv_use_http >> ${wx_arg_cache_file}.tmp
4627 fi
4628
4629 if test "$wxUSE_PROTOCOL_HTTP" = yes; then
4630 echo "$as_me:$LINENO: result: yes" >&5
4631echo "${ECHO_T}yes" >&6
4632 else
4633 echo "$as_me:$LINENO: result: no" >&5
4634echo "${ECHO_T}no" >&6
4635 fi
4636
4637
4638 enablestring=
4639 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fileproto" >&5
4640echo $ECHO_N "checking for --${enablestring:-enable}-fileproto... $ECHO_C" >&6
4641 no_cache=0
4642 # Check whether --enable-fileproto or --disable-fileproto was given.
4643if test "${enable_fileproto+set}" = set; then
4644 enableval="$enable_fileproto"
4645
4646 if test "$enableval" = yes; then
4647 ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE=yes'
4648 else
4649 ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE=no'
4650 fi
4651
4652else
4653
4654 LINE=`grep "wxUSE_PROTOCOL_FILE" ${wx_arg_cache_file}`
4655 if test "x$LINE" != x ; then
4656 eval "DEFAULT_$LINE"
4657 else
4658 no_cache=1
4659 fi
4660
4661 ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE='$DEFAULT_wxUSE_PROTOCOL_FILE
4662
4663fi;
4664
4665 eval "$ac_cv_use_fileproto"
4666 if test "$no_cache" != 1; then
4667 echo $ac_cv_use_fileproto >> ${wx_arg_cache_file}.tmp
4668 fi
4669
4670 if test "$wxUSE_PROTOCOL_FILE" = yes; then
4671 echo "$as_me:$LINENO: result: yes" >&5
4672echo "${ECHO_T}yes" >&6
4673 else
4674 echo "$as_me:$LINENO: result: no" >&5
4675echo "${ECHO_T}no" >&6
4676 fi
4677
4678
4679 enablestring=
4680 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sockets" >&5
4681echo $ECHO_N "checking for --${enablestring:-enable}-sockets... $ECHO_C" >&6
4682 no_cache=0
4683 # Check whether --enable-sockets or --disable-sockets was given.
4684if test "${enable_sockets+set}" = set; then
4685 enableval="$enable_sockets"
4686
4687 if test "$enableval" = yes; then
4688 ac_cv_use_sockets='wxUSE_SOCKETS=yes'
4689 else
4690 ac_cv_use_sockets='wxUSE_SOCKETS=no'
4691 fi
4692
4693else
4694
4695 LINE=`grep "wxUSE_SOCKETS" ${wx_arg_cache_file}`
4696 if test "x$LINE" != x ; then
4697 eval "DEFAULT_$LINE"
4698 else
4699 no_cache=1
4700 fi
4701
4702 ac_cv_use_sockets='wxUSE_SOCKETS='$DEFAULT_wxUSE_SOCKETS
4703
4704fi;
4705
4706 eval "$ac_cv_use_sockets"
4707 if test "$no_cache" != 1; then
4708 echo $ac_cv_use_sockets >> ${wx_arg_cache_file}.tmp
4709 fi
4710
4711 if test "$wxUSE_SOCKETS" = yes; then
4712 echo "$as_me:$LINENO: result: yes" >&5
4713echo "${ECHO_T}yes" >&6
4714 else
4715 echo "$as_me:$LINENO: result: no" >&5
4716echo "${ECHO_T}no" >&6
4717 fi
4718
4719
4720 enablestring=
4721 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ole" >&5
4722echo $ECHO_N "checking for --${enablestring:-enable}-ole... $ECHO_C" >&6
4723 no_cache=0
4724 # Check whether --enable-ole or --disable-ole was given.
4725if test "${enable_ole+set}" = set; then
4726 enableval="$enable_ole"
4727
4728 if test "$enableval" = yes; then
4729 ac_cv_use_ole='wxUSE_OLE=yes'
4730 else
4731 ac_cv_use_ole='wxUSE_OLE=no'
4732 fi
4733
4734else
4735
4736 LINE=`grep "wxUSE_OLE" ${wx_arg_cache_file}`
4737 if test "x$LINE" != x ; then
4738 eval "DEFAULT_$LINE"
4739 else
4740 no_cache=1
4741 fi
4742
4743 ac_cv_use_ole='wxUSE_OLE='$DEFAULT_wxUSE_OLE
4744
4745fi;
4746
4747 eval "$ac_cv_use_ole"
4748 if test "$no_cache" != 1; then
4749 echo $ac_cv_use_ole >> ${wx_arg_cache_file}.tmp
4750 fi
4751
4752 if test "$wxUSE_OLE" = yes; then
4753 echo "$as_me:$LINENO: result: yes" >&5
4754echo "${ECHO_T}yes" >&6
4755 else
4756 echo "$as_me:$LINENO: result: no" >&5
4757echo "${ECHO_T}no" >&6
4758 fi
4759
4760
4761 enablestring=
4762 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dataobj" >&5
4763echo $ECHO_N "checking for --${enablestring:-enable}-dataobj... $ECHO_C" >&6
4764 no_cache=0
4765 # Check whether --enable-dataobj or --disable-dataobj was given.
4766if test "${enable_dataobj+set}" = set; then
4767 enableval="$enable_dataobj"
4768
4769 if test "$enableval" = yes; then
4770 ac_cv_use_dataobj='wxUSE_DATAOBJ=yes'
4771 else
4772 ac_cv_use_dataobj='wxUSE_DATAOBJ=no'
4773 fi
4774
4775else
4776
4777 LINE=`grep "wxUSE_DATAOBJ" ${wx_arg_cache_file}`
4778 if test "x$LINE" != x ; then
4779 eval "DEFAULT_$LINE"
4780 else
4781 no_cache=1
4782 fi
4783
4784 ac_cv_use_dataobj='wxUSE_DATAOBJ='$DEFAULT_wxUSE_DATAOBJ
4785
4786fi;
4787
4788 eval "$ac_cv_use_dataobj"
4789 if test "$no_cache" != 1; then
4790 echo $ac_cv_use_dataobj >> ${wx_arg_cache_file}.tmp
4791 fi
4792
4793 if test "$wxUSE_DATAOBJ" = yes; then
4794 echo "$as_me:$LINENO: result: yes" >&5
4795echo "${ECHO_T}yes" >&6
4796 else
4797 echo "$as_me:$LINENO: result: no" >&5
4798echo "${ECHO_T}no" >&6
4799 fi
4800
4801
4802
4803 enablestring=
4804 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ipc" >&5
4805echo $ECHO_N "checking for --${enablestring:-enable}-ipc... $ECHO_C" >&6
4806 no_cache=0
4807 # Check whether --enable-ipc or --disable-ipc was given.
4808if test "${enable_ipc+set}" = set; then
4809 enableval="$enable_ipc"
4810
4811 if test "$enableval" = yes; then
4812 ac_cv_use_ipc='wxUSE_IPC=yes'
4813 else
4814 ac_cv_use_ipc='wxUSE_IPC=no'
4815 fi
4816
4817else
4818
4819 LINE=`grep "wxUSE_IPC" ${wx_arg_cache_file}`
4820 if test "x$LINE" != x ; then
4821 eval "DEFAULT_$LINE"
4822 else
4823 no_cache=1
4824 fi
4825
4826 ac_cv_use_ipc='wxUSE_IPC='$DEFAULT_wxUSE_IPC
4827
4828fi;
4829
4830 eval "$ac_cv_use_ipc"
4831 if test "$no_cache" != 1; then
4832 echo $ac_cv_use_ipc >> ${wx_arg_cache_file}.tmp
4833 fi
4834
4835 if test "$wxUSE_IPC" = yes; then
4836 echo "$as_me:$LINENO: result: yes" >&5
4837echo "${ECHO_T}yes" >&6
4838 else
4839 echo "$as_me:$LINENO: result: no" >&5
4840echo "${ECHO_T}no" >&6
4841 fi
4842
4843
4844
4845 enablestring=
4846 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-apple_ieee" >&5
4847echo $ECHO_N "checking for --${enablestring:-enable}-apple_ieee... $ECHO_C" >&6
4848 no_cache=0
4849 # Check whether --enable-apple_ieee or --disable-apple_ieee was given.
4850if test "${enable_apple_ieee+set}" = set; then
4851 enableval="$enable_apple_ieee"
4852
4853 if test "$enableval" = yes; then
4854 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=yes'
4855 else
4856 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=no'
4857 fi
4858
4859else
4860
4861 LINE=`grep "wxUSE_APPLE_IEEE" ${wx_arg_cache_file}`
4862 if test "x$LINE" != x ; then
4863 eval "DEFAULT_$LINE"
4864 else
4865 no_cache=1
4866 fi
4867
4868 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE='$DEFAULT_wxUSE_APPLE_IEEE
4869
4870fi;
4871
4872 eval "$ac_cv_use_apple_ieee"
4873 if test "$no_cache" != 1; then
4874 echo $ac_cv_use_apple_ieee >> ${wx_arg_cache_file}.tmp
4875 fi
4876
4877 if test "$wxUSE_APPLE_IEEE" = yes; then
4878 echo "$as_me:$LINENO: result: yes" >&5
4879echo "${ECHO_T}yes" >&6
4880 else
4881 echo "$as_me:$LINENO: result: no" >&5
4882echo "${ECHO_T}no" >&6
4883 fi
4884
4885
81f90336
MW
4886 enablestring=
4887 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-arcstream" >&5
4888echo $ECHO_N "checking for --${enablestring:-enable}-arcstream... $ECHO_C" >&6
4889 no_cache=0
4890 # Check whether --enable-arcstream or --disable-arcstream was given.
4891if test "${enable_arcstream+set}" = set; then
4892 enableval="$enable_arcstream"
4893
4894 if test "$enableval" = yes; then
9e8e867f 4895 ac_cv_use_arcstream='wxUSE_ARCHIVE_STREAMS=yes'
81f90336 4896 else
9e8e867f 4897 ac_cv_use_arcstream='wxUSE_ARCHIVE_STREAMS=no'
81f90336
MW
4898 fi
4899
4900else
4901
9e8e867f 4902 LINE=`grep "wxUSE_ARCHIVE_STREAMS" ${wx_arg_cache_file}`
81f90336
MW
4903 if test "x$LINE" != x ; then
4904 eval "DEFAULT_$LINE"
4905 else
4906 no_cache=1
4907 fi
4908
9e8e867f 4909 ac_cv_use_arcstream='wxUSE_ARCHIVE_STREAMS='$DEFAULT_wxUSE_ARCHIVE_STREAMS
81f90336
MW
4910
4911fi;
4912
4913 eval "$ac_cv_use_arcstream"
4914 if test "$no_cache" != 1; then
4915 echo $ac_cv_use_arcstream >> ${wx_arg_cache_file}.tmp
4916 fi
4917
9e8e867f 4918 if test "$wxUSE_ARCHIVE_STREAMS" = yes; then
81f90336
MW
4919 echo "$as_me:$LINENO: result: yes" >&5
4920echo "${ECHO_T}yes" >&6
4921 else
4922 echo "$as_me:$LINENO: result: no" >&5
4923echo "${ECHO_T}no" >&6
4924 fi
4925
4926
a848cd7e 4927 enablestring=
36b6448c
VZ
4928 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-backtrace" >&5
4929echo $ECHO_N "checking for --${enablestring:-enable}-backtrace... $ECHO_C" >&6
a848cd7e 4930 no_cache=0
36b6448c
VZ
4931 # Check whether --enable-backtrace or --disable-backtrace was given.
4932if test "${enable_backtrace+set}" = set; then
4933 enableval="$enable_backtrace"
a848cd7e
SC
4934
4935 if test "$enableval" = yes; then
36b6448c 4936 ac_cv_use_backtrace='wxUSE_STACKWALKER=yes'
a848cd7e 4937 else
36b6448c 4938 ac_cv_use_backtrace='wxUSE_STACKWALKER=no'
a848cd7e
SC
4939 fi
4940
4941else
4942
36b6448c 4943 LINE=`grep "wxUSE_STACKWALKER" ${wx_arg_cache_file}`
a848cd7e
SC
4944 if test "x$LINE" != x ; then
4945 eval "DEFAULT_$LINE"
4946 else
4947 no_cache=1
4948 fi
4949
36b6448c 4950 ac_cv_use_backtrace='wxUSE_STACKWALKER='$DEFAULT_wxUSE_STACKWALKER
a848cd7e
SC
4951
4952fi;
4953
36b6448c 4954 eval "$ac_cv_use_backtrace"
a848cd7e 4955 if test "$no_cache" != 1; then
36b6448c 4956 echo $ac_cv_use_backtrace >> ${wx_arg_cache_file}.tmp
a848cd7e
SC
4957 fi
4958
36b6448c 4959 if test "$wxUSE_STACKWALKER" = yes; then
a848cd7e
SC
4960 echo "$as_me:$LINENO: result: yes" >&5
4961echo "${ECHO_T}yes" >&6
4962 else
4963 echo "$as_me:$LINENO: result: no" >&5
4964echo "${ECHO_T}no" >&6
4965 fi
4966
4967
eaff0f0d 4968 enablestring=
36b6448c
VZ
4969 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-catch_segvs" >&5
4970echo $ECHO_N "checking for --${enablestring:-enable}-catch_segvs... $ECHO_C" >&6
eaff0f0d 4971 no_cache=0
36b6448c
VZ
4972 # Check whether --enable-catch_segvs or --disable-catch_segvs was given.
4973if test "${enable_catch_segvs+set}" = set; then
4974 enableval="$enable_catch_segvs"
eaff0f0d
VZ
4975
4976 if test "$enableval" = yes; then
36b6448c 4977 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=yes'
eaff0f0d 4978 else
36b6448c 4979 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=no'
eaff0f0d
VZ
4980 fi
4981
4982else
4983
36b6448c 4984 LINE=`grep "wxUSE_ON_FATAL_EXCEPTION" ${wx_arg_cache_file}`
eaff0f0d
VZ
4985 if test "x$LINE" != x ; then
4986 eval "DEFAULT_$LINE"
4987 else
4988 no_cache=1
4989 fi
4990
36b6448c 4991 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION='$DEFAULT_wxUSE_ON_FATAL_EXCEPTION
eaff0f0d
VZ
4992
4993fi;
4994
36b6448c 4995 eval "$ac_cv_use_catch_segvs"
eaff0f0d 4996 if test "$no_cache" != 1; then
36b6448c 4997 echo $ac_cv_use_catch_segvs >> ${wx_arg_cache_file}.tmp
eaff0f0d
VZ
4998 fi
4999
36b6448c 5000 if test "$wxUSE_ON_FATAL_EXCEPTION" = yes; then
eaff0f0d
VZ
5001 echo "$as_me:$LINENO: result: yes" >&5
5002echo "${ECHO_T}yes" >&6
5003 else
5004 echo "$as_me:$LINENO: result: no" >&5
5005echo "${ECHO_T}no" >&6
5006 fi
5007
5008
a848cd7e
SC
5009 enablestring=
5010 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-cmdline" >&5
5011echo $ECHO_N "checking for --${enablestring:-enable}-cmdline... $ECHO_C" >&6
5012 no_cache=0
5013 # Check whether --enable-cmdline or --disable-cmdline was given.
5014if test "${enable_cmdline+set}" = set; then
5015 enableval="$enable_cmdline"
5016
5017 if test "$enableval" = yes; then
5018 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=yes'
5019 else
5020 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=no'
5021 fi
5022
5023else
5024
5025 LINE=`grep "wxUSE_CMDLINE_PARSER" ${wx_arg_cache_file}`
5026 if test "x$LINE" != x ; then
5027 eval "DEFAULT_$LINE"
5028 else
5029 no_cache=1
5030 fi
5031
5032 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER='$DEFAULT_wxUSE_CMDLINE_PARSER
5033
5034fi;
5035
5036 eval "$ac_cv_use_cmdline"
5037 if test "$no_cache" != 1; then
5038 echo $ac_cv_use_cmdline >> ${wx_arg_cache_file}.tmp
5039 fi
5040
5041 if test "$wxUSE_CMDLINE_PARSER" = yes; then
5042 echo "$as_me:$LINENO: result: yes" >&5
5043echo "${ECHO_T}yes" >&6
5044 else
5045 echo "$as_me:$LINENO: result: no" >&5
5046echo "${ECHO_T}no" >&6
5047 fi
5048
5049
5050 enablestring=
5051 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-datetime" >&5
5052echo $ECHO_N "checking for --${enablestring:-enable}-datetime... $ECHO_C" >&6
5053 no_cache=0
5054 # Check whether --enable-datetime or --disable-datetime was given.
5055if test "${enable_datetime+set}" = set; then
5056 enableval="$enable_datetime"
5057
5058 if test "$enableval" = yes; then
5059 ac_cv_use_datetime='wxUSE_DATETIME=yes'
5060 else
5061 ac_cv_use_datetime='wxUSE_DATETIME=no'
5062 fi
5063
5064else
5065
5066 LINE=`grep "wxUSE_DATETIME" ${wx_arg_cache_file}`
5067 if test "x$LINE" != x ; then
5068 eval "DEFAULT_$LINE"
5069 else
5070 no_cache=1
5071 fi
5072
5073 ac_cv_use_datetime='wxUSE_DATETIME='$DEFAULT_wxUSE_DATETIME
5074
5075fi;
5076
5077 eval "$ac_cv_use_datetime"
5078 if test "$no_cache" != 1; then
5079 echo $ac_cv_use_datetime >> ${wx_arg_cache_file}.tmp
5080 fi
5081
5082 if test "$wxUSE_DATETIME" = yes; then
5083 echo "$as_me:$LINENO: result: yes" >&5
5084echo "${ECHO_T}yes" >&6
5085 else
5086 echo "$as_me:$LINENO: result: no" >&5
5087echo "${ECHO_T}no" >&6
5088 fi
5089
5090
36b6448c
VZ
5091 enablestring=
5092 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debugreport" >&5
5093echo $ECHO_N "checking for --${enablestring:-enable}-debugreport... $ECHO_C" >&6
5094 no_cache=0
5095 # Check whether --enable-debugreport or --disable-debugreport was given.
5096if test "${enable_debugreport+set}" = set; then
5097 enableval="$enable_debugreport"
5098
5099 if test "$enableval" = yes; then
5100 ac_cv_use_debugreport='wxUSE_DEBUGREPORT=yes'
5101 else
5102 ac_cv_use_debugreport='wxUSE_DEBUGREPORT=no'
5103 fi
5104
5105else
5106
5107 LINE=`grep "wxUSE_DEBUGREPORT" ${wx_arg_cache_file}`
5108 if test "x$LINE" != x ; then
5109 eval "DEFAULT_$LINE"
5110 else
5111 no_cache=1
5112 fi
5113
5114 ac_cv_use_debugreport='wxUSE_DEBUGREPORT='$DEFAULT_wxUSE_DEBUGREPORT
5115
5116fi;
5117
5118 eval "$ac_cv_use_debugreport"
5119 if test "$no_cache" != 1; then
5120 echo $ac_cv_use_debugreport >> ${wx_arg_cache_file}.tmp
5121 fi
5122
5123 if test "$wxUSE_DEBUGREPORT" = yes; then
5124 echo "$as_me:$LINENO: result: yes" >&5
5125echo "${ECHO_T}yes" >&6
5126 else
5127 echo "$as_me:$LINENO: result: no" >&5
5128echo "${ECHO_T}no" >&6
5129 fi
5130
5131
a848cd7e
SC
5132 enablestring=
5133 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dialupman" >&5
5134echo $ECHO_N "checking for --${enablestring:-enable}-dialupman... $ECHO_C" >&6
5135 no_cache=0
5136 # Check whether --enable-dialupman or --disable-dialupman was given.
5137if test "${enable_dialupman+set}" = set; then
5138 enableval="$enable_dialupman"
5139
5140 if test "$enableval" = yes; then
5141 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=yes'
5142 else
5143 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=no'
5144 fi
5145
5146else
5147
5148 LINE=`grep "wxUSE_DIALUP_MANAGER" ${wx_arg_cache_file}`
5149 if test "x$LINE" != x ; then
5150 eval "DEFAULT_$LINE"
5151 else
5152 no_cache=1
5153 fi
5154
5155 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER='$DEFAULT_wxUSE_DIALUP_MANAGER
5156
5157fi;
5158
5159 eval "$ac_cv_use_dialupman"
5160 if test "$no_cache" != 1; then
5161 echo $ac_cv_use_dialupman >> ${wx_arg_cache_file}.tmp
5162 fi
5163
5164 if test "$wxUSE_DIALUP_MANAGER" = yes; then
5165 echo "$as_me:$LINENO: result: yes" >&5
5166echo "${ECHO_T}yes" >&6
5167 else
5168 echo "$as_me:$LINENO: result: no" >&5
5169echo "${ECHO_T}no" >&6
5170 fi
5171
5172
5173 enablestring=
5174 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dynlib" >&5
5175echo $ECHO_N "checking for --${enablestring:-enable}-dynlib... $ECHO_C" >&6
5176 no_cache=0
5177 # Check whether --enable-dynlib or --disable-dynlib was given.
5178if test "${enable_dynlib+set}" = set; then
5179 enableval="$enable_dynlib"
5180
5181 if test "$enableval" = yes; then
5182 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=yes'
5183 else
5184 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=no'
5185 fi
5186
5187else
5188
5189 LINE=`grep "wxUSE_DYNLIB_CLASS" ${wx_arg_cache_file}`
5190 if test "x$LINE" != x ; then
5191 eval "DEFAULT_$LINE"
5192 else
5193 no_cache=1
5194 fi
5195
5196 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS='$DEFAULT_wxUSE_DYNLIB_CLASS
5197
5198fi;
5199
5200 eval "$ac_cv_use_dynlib"
5201 if test "$no_cache" != 1; then
5202 echo $ac_cv_use_dynlib >> ${wx_arg_cache_file}.tmp
5203 fi
5204
5205 if test "$wxUSE_DYNLIB_CLASS" = yes; then
5206 echo "$as_me:$LINENO: result: yes" >&5
5207echo "${ECHO_T}yes" >&6
5208 else
5209 echo "$as_me:$LINENO: result: no" >&5
5210echo "${ECHO_T}no" >&6
5211 fi
5212
5213
5214 enablestring=
5215 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dynamicloader" >&5
5216echo $ECHO_N "checking for --${enablestring:-enable}-dynamicloader... $ECHO_C" >&6
5217 no_cache=0
5218 # Check whether --enable-dynamicloader or --disable-dynamicloader was given.
5219if test "${enable_dynamicloader+set}" = set; then
5220 enableval="$enable_dynamicloader"
5221
5222 if test "$enableval" = yes; then
5223 ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=yes'
5224 else
5225 ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=no'
5226 fi
5227
5228else
5229
5230 LINE=`grep "wxUSE_DYNAMIC_LOADER" ${wx_arg_cache_file}`
5231 if test "x$LINE" != x ; then
5232 eval "DEFAULT_$LINE"
5233 else
5234 no_cache=1
5235 fi
5236
5237 ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER='$DEFAULT_wxUSE_DYNAMIC_LOADER
5238
5239fi;
5240
5241 eval "$ac_cv_use_dynamicloader"
5242 if test "$no_cache" != 1; then
5243 echo $ac_cv_use_dynamicloader >> ${wx_arg_cache_file}.tmp
5244 fi
5245
5246 if test "$wxUSE_DYNAMIC_LOADER" = yes; then
5247 echo "$as_me:$LINENO: result: yes" >&5
5248echo "${ECHO_T}yes" >&6
5249 else
5250 echo "$as_me:$LINENO: result: no" >&5
5251echo "${ECHO_T}no" >&6
5252 fi
5253
5254
5255 enablestring=
5256 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-exceptions" >&5
5257echo $ECHO_N "checking for --${enablestring:-enable}-exceptions... $ECHO_C" >&6
5258 no_cache=0
5259 # Check whether --enable-exceptions or --disable-exceptions was given.
5260if test "${enable_exceptions+set}" = set; then
5261 enableval="$enable_exceptions"
5262
5263 if test "$enableval" = yes; then
5264 ac_cv_use_exceptions='wxUSE_EXCEPTIONS=yes'
5265 else
5266 ac_cv_use_exceptions='wxUSE_EXCEPTIONS=no'
5267 fi
5268
5269else
5270
5271 LINE=`grep "wxUSE_EXCEPTIONS" ${wx_arg_cache_file}`
5272 if test "x$LINE" != x ; then
5273 eval "DEFAULT_$LINE"
5274 else
5275 no_cache=1
5276 fi
5277
5278 ac_cv_use_exceptions='wxUSE_EXCEPTIONS='$DEFAULT_wxUSE_EXCEPTIONS
5279
5280fi;
5281
5282 eval "$ac_cv_use_exceptions"
5283 if test "$no_cache" != 1; then
5284 echo $ac_cv_use_exceptions >> ${wx_arg_cache_file}.tmp
5285 fi
5286
5287 if test "$wxUSE_EXCEPTIONS" = yes; then
5288 echo "$as_me:$LINENO: result: yes" >&5
5289echo "${ECHO_T}yes" >&6
5290 else
5291 echo "$as_me:$LINENO: result: no" >&5
5292echo "${ECHO_T}no" >&6
5293 fi
5294
5295
5296 enablestring=
5297 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ffile" >&5
5298echo $ECHO_N "checking for --${enablestring:-enable}-ffile... $ECHO_C" >&6
5299 no_cache=0
5300 # Check whether --enable-ffile or --disable-ffile was given.
5301if test "${enable_ffile+set}" = set; then
5302 enableval="$enable_ffile"
5303
5304 if test "$enableval" = yes; then
5305 ac_cv_use_ffile='wxUSE_FFILE=yes'
5306 else
5307 ac_cv_use_ffile='wxUSE_FFILE=no'
5308 fi
5309
5310else
5311
5312 LINE=`grep "wxUSE_FFILE" ${wx_arg_cache_file}`
5313 if test "x$LINE" != x ; then
5314 eval "DEFAULT_$LINE"
5315 else
5316 no_cache=1
5317 fi
5318
5319 ac_cv_use_ffile='wxUSE_FFILE='$DEFAULT_wxUSE_FFILE
5320
5321fi;
5322
5323 eval "$ac_cv_use_ffile"
5324 if test "$no_cache" != 1; then
5325 echo $ac_cv_use_ffile >> ${wx_arg_cache_file}.tmp
5326 fi
5327
5328 if test "$wxUSE_FFILE" = yes; then
5329 echo "$as_me:$LINENO: result: yes" >&5
5330echo "${ECHO_T}yes" >&6
5331 else
5332 echo "$as_me:$LINENO: result: no" >&5
5333echo "${ECHO_T}no" >&6
5334 fi
5335
5336
5337 enablestring=
5338 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-file" >&5
5339echo $ECHO_N "checking for --${enablestring:-enable}-file... $ECHO_C" >&6
5340 no_cache=0
5341 # Check whether --enable-file or --disable-file was given.
5342if test "${enable_file+set}" = set; then
5343 enableval="$enable_file"
5344
5345 if test "$enableval" = yes; then
5346 ac_cv_use_file='wxUSE_FILE=yes'
5347 else
5348 ac_cv_use_file='wxUSE_FILE=no'
5349 fi
5350
5351else
5352
5353 LINE=`grep "wxUSE_FILE" ${wx_arg_cache_file}`
5354 if test "x$LINE" != x ; then
5355 eval "DEFAULT_$LINE"
5356 else
5357 no_cache=1
5358 fi
5359
5360 ac_cv_use_file='wxUSE_FILE='$DEFAULT_wxUSE_FILE
5361
5362fi;
5363
5364 eval "$ac_cv_use_file"
5365 if test "$no_cache" != 1; then
5366 echo $ac_cv_use_file >> ${wx_arg_cache_file}.tmp
5367 fi
5368
5369 if test "$wxUSE_FILE" = yes; then
5370 echo "$as_me:$LINENO: result: yes" >&5
5371echo "${ECHO_T}yes" >&6
5372 else
5373 echo "$as_me:$LINENO: result: no" >&5
5374echo "${ECHO_T}no" >&6
5375 fi
5376
5377
5378 enablestring=
5379 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-filesystem" >&5
5380echo $ECHO_N "checking for --${enablestring:-enable}-filesystem... $ECHO_C" >&6
5381 no_cache=0
5382 # Check whether --enable-filesystem or --disable-filesystem was given.
5383if test "${enable_filesystem+set}" = set; then
5384 enableval="$enable_filesystem"
5385
5386 if test "$enableval" = yes; then
5387 ac_cv_use_filesystem='wxUSE_FILESYSTEM=yes'
5388 else
5389 ac_cv_use_filesystem='wxUSE_FILESYSTEM=no'
5390 fi
5391
5392else
5393
5394 LINE=`grep "wxUSE_FILESYSTEM" ${wx_arg_cache_file}`
5395 if test "x$LINE" != x ; then
5396 eval "DEFAULT_$LINE"
5397 else
5398 no_cache=1
5399 fi
5400
5401 ac_cv_use_filesystem='wxUSE_FILESYSTEM='$DEFAULT_wxUSE_FILESYSTEM
5402
5403fi;
5404
5405 eval "$ac_cv_use_filesystem"
5406 if test "$no_cache" != 1; then
5407 echo $ac_cv_use_filesystem >> ${wx_arg_cache_file}.tmp
5408 fi
5409
5410 if test "$wxUSE_FILESYSTEM" = yes; then
5411 echo "$as_me:$LINENO: result: yes" >&5
5412echo "${ECHO_T}yes" >&6
5413 else
5414 echo "$as_me:$LINENO: result: no" >&5
5415echo "${ECHO_T}no" >&6
5416 fi
5417
5418
5419 enablestring=
5420 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fontmap" >&5
5421echo $ECHO_N "checking for --${enablestring:-enable}-fontmap... $ECHO_C" >&6
5422 no_cache=0
5423 # Check whether --enable-fontmap or --disable-fontmap was given.
5424if test "${enable_fontmap+set}" = set; then
5425 enableval="$enable_fontmap"
5426
5427 if test "$enableval" = yes; then
5428 ac_cv_use_fontmap='wxUSE_FONTMAP=yes'
5429 else
5430 ac_cv_use_fontmap='wxUSE_FONTMAP=no'
5431 fi
5432
5433else
5434
5435 LINE=`grep "wxUSE_FONTMAP" ${wx_arg_cache_file}`
5436 if test "x$LINE" != x ; then
5437 eval "DEFAULT_$LINE"
5438 else
5439 no_cache=1
5440 fi
5441
5442 ac_cv_use_fontmap='wxUSE_FONTMAP='$DEFAULT_wxUSE_FONTMAP
5443
5444fi;
5445
5446 eval "$ac_cv_use_fontmap"
5447 if test "$no_cache" != 1; then
5448 echo $ac_cv_use_fontmap >> ${wx_arg_cache_file}.tmp
5449 fi
5450
5451 if test "$wxUSE_FONTMAP" = yes; then
5452 echo "$as_me:$LINENO: result: yes" >&5
5453echo "${ECHO_T}yes" >&6
5454 else
5455 echo "$as_me:$LINENO: result: no" >&5
5456echo "${ECHO_T}no" >&6
5457 fi
5458
5459
5460 enablestring=
5461 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fs_inet" >&5
5462echo $ECHO_N "checking for --${enablestring:-enable}-fs_inet... $ECHO_C" >&6
5463 no_cache=0
5464 # Check whether --enable-fs_inet or --disable-fs_inet was given.
5465if test "${enable_fs_inet+set}" = set; then
5466 enableval="$enable_fs_inet"
5467
5468 if test "$enableval" = yes; then
5469 ac_cv_use_fs_inet='wxUSE_FS_INET=yes'
5470 else
5471 ac_cv_use_fs_inet='wxUSE_FS_INET=no'
5472 fi
5473
5474else
5475
5476 LINE=`grep "wxUSE_FS_INET" ${wx_arg_cache_file}`
5477 if test "x$LINE" != x ; then
5478 eval "DEFAULT_$LINE"
5479 else
5480 no_cache=1
5481 fi
5482
5483 ac_cv_use_fs_inet='wxUSE_FS_INET='$DEFAULT_wxUSE_FS_INET
5484
5485fi;
5486
5487 eval "$ac_cv_use_fs_inet"
5488 if test "$no_cache" != 1; then
5489 echo $ac_cv_use_fs_inet >> ${wx_arg_cache_file}.tmp
5490 fi
5491
5492 if test "$wxUSE_FS_INET" = yes; then
5493 echo "$as_me:$LINENO: result: yes" >&5
5494echo "${ECHO_T}yes" >&6
5495 else
5496 echo "$as_me:$LINENO: result: no" >&5
5497echo "${ECHO_T}no" >&6
5498 fi
5499
5500
5501 enablestring=
5502 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fs_zip" >&5
5503echo $ECHO_N "checking for --${enablestring:-enable}-fs_zip... $ECHO_C" >&6
5504 no_cache=0
5505 # Check whether --enable-fs_zip or --disable-fs_zip was given.
5506if test "${enable_fs_zip+set}" = set; then
5507 enableval="$enable_fs_zip"
5508
5509 if test "$enableval" = yes; then
5510 ac_cv_use_fs_zip='wxUSE_FS_ZIP=yes'
5511 else
5512 ac_cv_use_fs_zip='wxUSE_FS_ZIP=no'
5513 fi
5514
5515else
5516
5517 LINE=`grep "wxUSE_FS_ZIP" ${wx_arg_cache_file}`
5518 if test "x$LINE" != x ; then
5519 eval "DEFAULT_$LINE"
5520 else
5521 no_cache=1
5522 fi
5523
5524 ac_cv_use_fs_zip='wxUSE_FS_ZIP='$DEFAULT_wxUSE_FS_ZIP
5525
5526fi;
5527
5528 eval "$ac_cv_use_fs_zip"
5529 if test "$no_cache" != 1; then
5530 echo $ac_cv_use_fs_zip >> ${wx_arg_cache_file}.tmp
5531 fi
5532
5533 if test "$wxUSE_FS_ZIP" = yes; then
5534 echo "$as_me:$LINENO: result: yes" >&5
5535echo "${ECHO_T}yes" >&6
5536 else
5537 echo "$as_me:$LINENO: result: no" >&5
5538echo "${ECHO_T}no" >&6
5539 fi
5540
5541
5542 enablestring=
5543 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-geometry" >&5
5544echo $ECHO_N "checking for --${enablestring:-enable}-geometry... $ECHO_C" >&6
5545 no_cache=0
5546 # Check whether --enable-geometry or --disable-geometry was given.
5547if test "${enable_geometry+set}" = set; then
5548 enableval="$enable_geometry"
5549
5550 if test "$enableval" = yes; then
5551 ac_cv_use_geometry='wxUSE_GEOMETRY=yes'
5552 else
5553 ac_cv_use_geometry='wxUSE_GEOMETRY=no'
5554 fi
5555
5556else
5557
5558 LINE=`grep "wxUSE_GEOMETRY" ${wx_arg_cache_file}`
5559 if test "x$LINE" != x ; then
5560 eval "DEFAULT_$LINE"
5561 else
5562 no_cache=1
5563 fi
5564
5565 ac_cv_use_geometry='wxUSE_GEOMETRY='$DEFAULT_wxUSE_GEOMETRY
5566
5567fi;
5568
5569 eval "$ac_cv_use_geometry"
5570 if test "$no_cache" != 1; then
5571 echo $ac_cv_use_geometry >> ${wx_arg_cache_file}.tmp
5572 fi
5573
5574 if test "$wxUSE_GEOMETRY" = yes; then
5575 echo "$as_me:$LINENO: result: yes" >&5
5576echo "${ECHO_T}yes" >&6
5577 else
5578 echo "$as_me:$LINENO: result: no" >&5
5579echo "${ECHO_T}no" >&6
5580 fi
5581
5582
5583 enablestring=
5584 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-log" >&5
5585echo $ECHO_N "checking for --${enablestring:-enable}-log... $ECHO_C" >&6
5586 no_cache=0
5587 # Check whether --enable-log or --disable-log was given.
5588if test "${enable_log+set}" = set; then
5589 enableval="$enable_log"
5590
5591 if test "$enableval" = yes; then
5592 ac_cv_use_log='wxUSE_LOG=yes'
5593 else
5594 ac_cv_use_log='wxUSE_LOG=no'
5595 fi
5596
5597else
5598
5599 LINE=`grep "wxUSE_LOG" ${wx_arg_cache_file}`
5600 if test "x$LINE" != x ; then
5601 eval "DEFAULT_$LINE"
5602 else
5603 no_cache=1
5604 fi
5605
5606 ac_cv_use_log='wxUSE_LOG='$DEFAULT_wxUSE_LOG
5607
5608fi;
5609
5610 eval "$ac_cv_use_log"
5611 if test "$no_cache" != 1; then
5612 echo $ac_cv_use_log >> ${wx_arg_cache_file}.tmp
5613 fi
5614
5615 if test "$wxUSE_LOG" = yes; then
5616 echo "$as_me:$LINENO: result: yes" >&5
5617echo "${ECHO_T}yes" >&6
5618 else
5619 echo "$as_me:$LINENO: result: no" >&5
5620echo "${ECHO_T}no" >&6
5621 fi
5622
5623
5624 enablestring=
5625 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-longlong" >&5
5626echo $ECHO_N "checking for --${enablestring:-enable}-longlong... $ECHO_C" >&6
5627 no_cache=0
5628 # Check whether --enable-longlong or --disable-longlong was given.
5629if test "${enable_longlong+set}" = set; then
5630 enableval="$enable_longlong"
5631
5632 if test "$enableval" = yes; then
5633 ac_cv_use_longlong='wxUSE_LONGLONG=yes'
5634 else
5635 ac_cv_use_longlong='wxUSE_LONGLONG=no'
5636 fi
5637
5638else
5639
5640 LINE=`grep "wxUSE_LONGLONG" ${wx_arg_cache_file}`
5641 if test "x$LINE" != x ; then
5642 eval "DEFAULT_$LINE"
5643 else
5644 no_cache=1
5645 fi
5646
5647 ac_cv_use_longlong='wxUSE_LONGLONG='$DEFAULT_wxUSE_LONGLONG
5648
5649fi;
5650
5651 eval "$ac_cv_use_longlong"
5652 if test "$no_cache" != 1; then
5653 echo $ac_cv_use_longlong >> ${wx_arg_cache_file}.tmp
5654 fi
5655
5656 if test "$wxUSE_LONGLONG" = yes; then
5657 echo "$as_me:$LINENO: result: yes" >&5
5658echo "${ECHO_T}yes" >&6
5659 else
5660 echo "$as_me:$LINENO: result: no" >&5
5661echo "${ECHO_T}no" >&6
5662 fi
5663
5664
5665 enablestring=
5666 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mimetype" >&5
5667echo $ECHO_N "checking for --${enablestring:-enable}-mimetype... $ECHO_C" >&6
5668 no_cache=0
5669 # Check whether --enable-mimetype or --disable-mimetype was given.
5670if test "${enable_mimetype+set}" = set; then
5671 enableval="$enable_mimetype"
5672
5673 if test "$enableval" = yes; then
5674 ac_cv_use_mimetype='wxUSE_MIMETYPE=yes'
5675 else
5676 ac_cv_use_mimetype='wxUSE_MIMETYPE=no'
5677 fi
5678
5679else
5680
5681 LINE=`grep "wxUSE_MIMETYPE" ${wx_arg_cache_file}`
5682 if test "x$LINE" != x ; then
5683 eval "DEFAULT_$LINE"
5684 else
5685 no_cache=1
5686 fi
5687
5688 ac_cv_use_mimetype='wxUSE_MIMETYPE='$DEFAULT_wxUSE_MIMETYPE
5689
5690fi;
5691
5692 eval "$ac_cv_use_mimetype"
5693 if test "$no_cache" != 1; then
5694 echo $ac_cv_use_mimetype >> ${wx_arg_cache_file}.tmp
5695 fi
5696
5697 if test "$wxUSE_MIMETYPE" = yes; then
5698 echo "$as_me:$LINENO: result: yes" >&5
5699echo "${ECHO_T}yes" >&6
5700 else
5701 echo "$as_me:$LINENO: result: no" >&5
5702echo "${ECHO_T}no" >&6
5703 fi
5704
5705
5706 enablestring=
5707 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mslu" >&5
5708echo $ECHO_N "checking for --${enablestring:-enable}-mslu... $ECHO_C" >&6
5709 no_cache=0
5710 # Check whether --enable-mslu or --disable-mslu was given.
5711if test "${enable_mslu+set}" = set; then
5712 enableval="$enable_mslu"
5713
5714 if test "$enableval" = yes; then
5715 ac_cv_use_mslu='wxUSE_UNICODE_MSLU=yes'
5716 else
5717 ac_cv_use_mslu='wxUSE_UNICODE_MSLU=no'
5718 fi
5719
5720else
5721
5722 LINE=`grep "wxUSE_UNICODE_MSLU" ${wx_arg_cache_file}`
5723 if test "x$LINE" != x ; then
5724 eval "DEFAULT_$LINE"
5725 else
5726 no_cache=1
5727 fi
5728
5729 ac_cv_use_mslu='wxUSE_UNICODE_MSLU='$DEFAULT_wxUSE_UNICODE_MSLU
5730
5731fi;
5732
5733 eval "$ac_cv_use_mslu"
5734 if test "$no_cache" != 1; then
5735 echo $ac_cv_use_mslu >> ${wx_arg_cache_file}.tmp
5736 fi
5737
5738 if test "$wxUSE_UNICODE_MSLU" = yes; then
5739 echo "$as_me:$LINENO: result: yes" >&5
5740echo "${ECHO_T}yes" >&6
5741 else
5742 echo "$as_me:$LINENO: result: no" >&5
5743echo "${ECHO_T}no" >&6
5744 fi
5745
5746
5747 enablestring=
5748 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-snglinst" >&5
5749echo $ECHO_N "checking for --${enablestring:-enable}-snglinst... $ECHO_C" >&6
5750 no_cache=0
5751 # Check whether --enable-snglinst or --disable-snglinst was given.
5752if test "${enable_snglinst+set}" = set; then
5753 enableval="$enable_snglinst"
5754
5755 if test "$enableval" = yes; then
5756 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=yes'
5757 else
5758 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=no'
5759 fi
5760
5761else
5762
5763 LINE=`grep "wxUSE_SNGLINST_CHECKER" ${wx_arg_cache_file}`
5764 if test "x$LINE" != x ; then
5765 eval "DEFAULT_$LINE"
5766 else
5767 no_cache=1
5768 fi
5769
5770 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER='$DEFAULT_wxUSE_SNGLINST_CHECKER
5771
5772fi;
5773
5774 eval "$ac_cv_use_snglinst"
5775 if test "$no_cache" != 1; then
5776 echo $ac_cv_use_snglinst >> ${wx_arg_cache_file}.tmp
5777 fi
5778
5779 if test "$wxUSE_SNGLINST_CHECKER" = yes; then
5780 echo "$as_me:$LINENO: result: yes" >&5
5781echo "${ECHO_T}yes" >&6
5782 else
5783 echo "$as_me:$LINENO: result: no" >&5
5784echo "${ECHO_T}no" >&6
5785 fi
5786
5787
5788 enablestring=
07158944
VZ
5789 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-std_iostreams" >&5
5790echo $ECHO_N "checking for --${enablestring:-enable}-std_iostreams... $ECHO_C" >&6
a848cd7e 5791 no_cache=0
07158944
VZ
5792 # Check whether --enable-std_iostreams or --disable-std_iostreams was given.
5793if test "${enable_std_iostreams+set}" = set; then
5794 enableval="$enable_std_iostreams"
a848cd7e
SC
5795
5796 if test "$enableval" = yes; then
07158944 5797 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=yes'
a848cd7e 5798 else
07158944 5799 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=no'
a848cd7e
SC
5800 fi
5801
5802else
5803
07158944 5804 LINE=`grep "wxUSE_STD_IOSTREAM" ${wx_arg_cache_file}`
a848cd7e
SC
5805 if test "x$LINE" != x ; then
5806 eval "DEFAULT_$LINE"
5807 else
5808 no_cache=1
5809 fi
5810
07158944 5811 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM='$DEFAULT_wxUSE_STD_IOSTREAM
a848cd7e
SC
5812
5813fi;
5814
07158944 5815 eval "$ac_cv_use_std_iostreams"
a848cd7e 5816 if test "$no_cache" != 1; then
07158944 5817 echo $ac_cv_use_std_iostreams >> ${wx_arg_cache_file}.tmp
a848cd7e
SC
5818 fi
5819
07158944 5820 if test "$wxUSE_STD_IOSTREAM" = yes; then
a848cd7e
SC
5821 echo "$as_me:$LINENO: result: yes" >&5
5822echo "${ECHO_T}yes" >&6
5823 else
5824 echo "$as_me:$LINENO: result: no" >&5
5825echo "${ECHO_T}no" >&6
5826 fi
5827
5828
59746b65
MW
5829 enablestring=
5830 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-std_string" >&5
5831echo $ECHO_N "checking for --${enablestring:-enable}-std_string... $ECHO_C" >&6
5832 no_cache=0
5833 # Check whether --enable-std_string or --disable-std_string was given.
5834if test "${enable_std_string+set}" = set; then
5835 enableval="$enable_std_string"
5836
5837 if test "$enableval" = yes; then
5838 ac_cv_use_std_string='wxUSE_STD_STRING=yes'
5839 else
5840 ac_cv_use_std_string='wxUSE_STD_STRING=no'
5841 fi
5842
5843else
5844
5845 LINE=`grep "wxUSE_STD_STRING" ${wx_arg_cache_file}`
5846 if test "x$LINE" != x ; then
5847 eval "DEFAULT_$LINE"
5848 else
5849 no_cache=1
5850 fi
5851
5852 ac_cv_use_std_string='wxUSE_STD_STRING='$DEFAULT_wxUSE_STD_STRING
5853
5854fi;
5855
5856 eval "$ac_cv_use_std_string"
5857 if test "$no_cache" != 1; then
5858 echo $ac_cv_use_std_string >> ${wx_arg_cache_file}.tmp
5859 fi
5860
5861 if test "$wxUSE_STD_STRING" = yes; then
5862 echo "$as_me:$LINENO: result: yes" >&5
5863echo "${ECHO_T}yes" >&6
5864 else
5865 echo "$as_me:$LINENO: result: no" >&5
5866echo "${ECHO_T}no" >&6
5867 fi
5868
5869
a848cd7e 5870 enablestring=
07158944
VZ
5871 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stdpaths" >&5
5872echo $ECHO_N "checking for --${enablestring:-enable}-stdpaths... $ECHO_C" >&6
a848cd7e 5873 no_cache=0
07158944
VZ
5874 # Check whether --enable-stdpaths or --disable-stdpaths was given.
5875if test "${enable_stdpaths+set}" = set; then
5876 enableval="$enable_stdpaths"
a848cd7e
SC
5877
5878 if test "$enableval" = yes; then
07158944 5879 ac_cv_use_stdpaths='wxUSE_STDPATHS=yes'
a848cd7e 5880 else
07158944 5881 ac_cv_use_stdpaths='wxUSE_STDPATHS=no'
a848cd7e
SC
5882 fi
5883
5884else
5885
07158944 5886 LINE=`grep "wxUSE_STDPATHS" ${wx_arg_cache_file}`
a848cd7e
SC
5887 if test "x$LINE" != x ; then
5888 eval "DEFAULT_$LINE"
5889 else
5890 no_cache=1
5891 fi
5892
07158944 5893 ac_cv_use_stdpaths='wxUSE_STDPATHS='$DEFAULT_wxUSE_STDPATHS
a848cd7e
SC
5894
5895fi;
5896
07158944 5897 eval "$ac_cv_use_stdpaths"
a848cd7e 5898 if test "$no_cache" != 1; then
07158944 5899 echo $ac_cv_use_stdpaths >> ${wx_arg_cache_file}.tmp
a848cd7e
SC
5900 fi
5901
07158944 5902 if test "$wxUSE_STDPATHS" = yes; then
a848cd7e
SC
5903 echo "$as_me:$LINENO: result: yes" >&5
5904echo "${ECHO_T}yes" >&6
5905 else
5906 echo "$as_me:$LINENO: result: no" >&5
5907echo "${ECHO_T}no" >&6
5908 fi
5909
5910
5911 enablestring=
5912 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stopwatch" >&5
5913echo $ECHO_N "checking for --${enablestring:-enable}-stopwatch... $ECHO_C" >&6
5914 no_cache=0
5915 # Check whether --enable-stopwatch or --disable-stopwatch was given.
5916if test "${enable_stopwatch+set}" = set; then
5917 enableval="$enable_stopwatch"
5918
5919 if test "$enableval" = yes; then
5920 ac_cv_use_stopwatch='wxUSE_STOPWATCH=yes'
5921 else
5922 ac_cv_use_stopwatch='wxUSE_STOPWATCH=no'
5923 fi
5924
5925else
5926
5927 LINE=`grep "wxUSE_STOPWATCH" ${wx_arg_cache_file}`
5928 if test "x$LINE" != x ; then
5929 eval "DEFAULT_$LINE"
5930 else
5931 no_cache=1
5932 fi
5933
5934 ac_cv_use_stopwatch='wxUSE_STOPWATCH='$DEFAULT_wxUSE_STOPWATCH
5935
5936fi;
5937
5938 eval "$ac_cv_use_stopwatch"
5939 if test "$no_cache" != 1; then
5940 echo $ac_cv_use_stopwatch >> ${wx_arg_cache_file}.tmp
5941 fi
5942
5943 if test "$wxUSE_STOPWATCH" = yes; then
5944 echo "$as_me:$LINENO: result: yes" >&5
5945echo "${ECHO_T}yes" >&6
5946 else
5947 echo "$as_me:$LINENO: result: no" >&5
5948echo "${ECHO_T}no" >&6
5949 fi
5950
5951
07158944
VZ
5952 enablestring=
5953 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-streams" >&5
5954echo $ECHO_N "checking for --${enablestring:-enable}-streams... $ECHO_C" >&6
5955 no_cache=0
5956 # Check whether --enable-streams or --disable-streams was given.
5957if test "${enable_streams+set}" = set; then
5958 enableval="$enable_streams"
5959
5960 if test "$enableval" = yes; then
5961 ac_cv_use_streams='wxUSE_STREAMS=yes'
5962 else
5963 ac_cv_use_streams='wxUSE_STREAMS=no'
5964 fi
5965
5966else
5967
5968 LINE=`grep "wxUSE_STREAMS" ${wx_arg_cache_file}`
5969 if test "x$LINE" != x ; then
5970 eval "DEFAULT_$LINE"
5971 else
5972 no_cache=1
5973 fi
5974
5975 ac_cv_use_streams='wxUSE_STREAMS='$DEFAULT_wxUSE_STREAMS
5976
5977fi;
5978
5979 eval "$ac_cv_use_streams"
5980 if test "$no_cache" != 1; then
5981 echo $ac_cv_use_streams >> ${wx_arg_cache_file}.tmp
5982 fi
5983
5984 if test "$wxUSE_STREAMS" = yes; then
5985 echo "$as_me:$LINENO: result: yes" >&5
5986echo "${ECHO_T}yes" >&6
5987 else
5988 echo "$as_me:$LINENO: result: no" >&5
5989echo "${ECHO_T}no" >&6
5990 fi
5991
5992
a848cd7e
SC
5993 enablestring=
5994 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-system_options" >&5
5995echo $ECHO_N "checking for --${enablestring:-enable}-system_options... $ECHO_C" >&6
5996 no_cache=0
5997 # Check whether --enable-system_options or --disable-system_options was given.
5998if test "${enable_system_options+set}" = set; then
5999 enableval="$enable_system_options"
6000
6001 if test "$enableval" = yes; then
6002 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=yes'
6003 else
6004 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=no'
6005 fi
6006
6007else
6008
6009 LINE=`grep "wxUSE_SYSTEM_OPTIONS" ${wx_arg_cache_file}`
6010 if test "x$LINE" != x ; then
6011 eval "DEFAULT_$LINE"
6012 else
6013 no_cache=1
6014 fi
6015
6016 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS='$DEFAULT_wxUSE_SYSTEM_OPTIONS
6017
6018fi;
6019
6020 eval "$ac_cv_use_system_options"
6021 if test "$no_cache" != 1; then
6022 echo $ac_cv_use_system_options >> ${wx_arg_cache_file}.tmp
6023 fi
6024
6025 if test "$wxUSE_SYSTEM_OPTIONS" = yes; then
6026 echo "$as_me:$LINENO: result: yes" >&5
6027echo "${ECHO_T}yes" >&6
6028 else
6029 echo "$as_me:$LINENO: result: no" >&5
6030echo "${ECHO_T}no" >&6
6031 fi
6032
6033
6034 enablestring=
6035 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textbuf" >&5
6036echo $ECHO_N "checking for --${enablestring:-enable}-textbuf... $ECHO_C" >&6
6037 no_cache=0
6038 # Check whether --enable-textbuf or --disable-textbuf was given.
6039if test "${enable_textbuf+set}" = set; then
6040 enableval="$enable_textbuf"
6041
6042 if test "$enableval" = yes; then
6043 ac_cv_use_textbuf='wxUSE_TEXTBUFFER=yes'
6044 else
6045 ac_cv_use_textbuf='wxUSE_TEXTBUFFER=no'
6046 fi
6047
6048else
6049
6050 LINE=`grep "wxUSE_TEXTBUFFER" ${wx_arg_cache_file}`
6051 if test "x$LINE" != x ; then
6052 eval "DEFAULT_$LINE"
6053 else
6054 no_cache=1
6055 fi
6056
6057 ac_cv_use_textbuf='wxUSE_TEXTBUFFER='$DEFAULT_wxUSE_TEXTBUFFER
6058
6059fi;
6060
6061 eval "$ac_cv_use_textbuf"
6062 if test "$no_cache" != 1; then
6063 echo $ac_cv_use_textbuf >> ${wx_arg_cache_file}.tmp
6064 fi
6065
6066 if test "$wxUSE_TEXTBUFFER" = yes; then
6067 echo "$as_me:$LINENO: result: yes" >&5
6068echo "${ECHO_T}yes" >&6
6069 else
6070 echo "$as_me:$LINENO: result: no" >&5
6071echo "${ECHO_T}no" >&6
6072 fi
6073
6074
6075 enablestring=
6076 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textfile" >&5
6077echo $ECHO_N "checking for --${enablestring:-enable}-textfile... $ECHO_C" >&6
6078 no_cache=0
6079 # Check whether --enable-textfile or --disable-textfile was given.
6080if test "${enable_textfile+set}" = set; then
6081 enableval="$enable_textfile"
6082
6083 if test "$enableval" = yes; then
6084 ac_cv_use_textfile='wxUSE_TEXTFILE=yes'
6085 else
6086 ac_cv_use_textfile='wxUSE_TEXTFILE=no'
6087 fi
6088
6089else
6090
6091 LINE=`grep "wxUSE_TEXTFILE" ${wx_arg_cache_file}`
6092 if test "x$LINE" != x ; then
6093 eval "DEFAULT_$LINE"
6094 else
6095 no_cache=1
6096 fi
6097
6098 ac_cv_use_textfile='wxUSE_TEXTFILE='$DEFAULT_wxUSE_TEXTFILE
6099
6100fi;
6101
6102 eval "$ac_cv_use_textfile"
6103 if test "$no_cache" != 1; then
6104 echo $ac_cv_use_textfile >> ${wx_arg_cache_file}.tmp
6105 fi
6106
6107 if test "$wxUSE_TEXTFILE" = yes; then
6108 echo "$as_me:$LINENO: result: yes" >&5
6109echo "${ECHO_T}yes" >&6
6110 else
6111 echo "$as_me:$LINENO: result: no" >&5
6112echo "${ECHO_T}no" >&6
6113 fi
6114
6115
6116 enablestring=
6117 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-timer" >&5
6118echo $ECHO_N "checking for --${enablestring:-enable}-timer... $ECHO_C" >&6
6119 no_cache=0
6120 # Check whether --enable-timer or --disable-timer was given.
6121if test "${enable_timer+set}" = set; then
6122 enableval="$enable_timer"
6123
6124 if test "$enableval" = yes; then
6125 ac_cv_use_timer='wxUSE_TIMER=yes'
6126 else
6127 ac_cv_use_timer='wxUSE_TIMER=no'
6128 fi
6129
6130else
6131
6132 LINE=`grep "wxUSE_TIMER" ${wx_arg_cache_file}`
6133 if test "x$LINE" != x ; then
6134 eval "DEFAULT_$LINE"
6135 else
6136 no_cache=1
6137 fi
6138
6139 ac_cv_use_timer='wxUSE_TIMER='$DEFAULT_wxUSE_TIMER
6140
6141fi;
6142
6143 eval "$ac_cv_use_timer"
6144 if test "$no_cache" != 1; then
6145 echo $ac_cv_use_timer >> ${wx_arg_cache_file}.tmp
6146 fi
6147
6148 if test "$wxUSE_TIMER" = yes; then
6149 echo "$as_me:$LINENO: result: yes" >&5
6150echo "${ECHO_T}yes" >&6
6151 else
6152 echo "$as_me:$LINENO: result: no" >&5
6153echo "${ECHO_T}no" >&6
6154 fi
6155
6156
6157 enablestring=
6158 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-unicode" >&5
6159echo $ECHO_N "checking for --${enablestring:-enable}-unicode... $ECHO_C" >&6
6160 no_cache=0
6161 # Check whether --enable-unicode or --disable-unicode was given.
6162if test "${enable_unicode+set}" = set; then
6163 enableval="$enable_unicode"
6164
6165 if test "$enableval" = yes; then
6166 ac_cv_use_unicode='wxUSE_UNICODE=yes'
6167 else
6168 ac_cv_use_unicode='wxUSE_UNICODE=no'
6169 fi
6170
6171else
6172
6173 LINE=`grep "wxUSE_UNICODE" ${wx_arg_cache_file}`
6174 if test "x$LINE" != x ; then
6175 eval "DEFAULT_$LINE"
6176 else
6177 no_cache=1
6178 fi
6179
6180 ac_cv_use_unicode='wxUSE_UNICODE='$DEFAULT_wxUSE_UNICODE
6181
6182fi;
6183
6184 eval "$ac_cv_use_unicode"
6185 if test "$no_cache" != 1; then
6186 echo $ac_cv_use_unicode >> ${wx_arg_cache_file}.tmp
6187 fi
6188
6189 if test "$wxUSE_UNICODE" = yes; then
6190 echo "$as_me:$LINENO: result: yes" >&5
6191echo "${ECHO_T}yes" >&6
6192 else
6193 echo "$as_me:$LINENO: result: no" >&5
6194echo "${ECHO_T}no" >&6
6195 fi
6196
6197
6198 enablestring=
6199 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sound" >&5
6200echo $ECHO_N "checking for --${enablestring:-enable}-sound... $ECHO_C" >&6
6201 no_cache=0
6202 # Check whether --enable-sound or --disable-sound was given.
6203if test "${enable_sound+set}" = set; then
6204 enableval="$enable_sound"
6205
6206 if test "$enableval" = yes; then
6207 ac_cv_use_sound='wxUSE_SOUND=yes'
6208 else
6209 ac_cv_use_sound='wxUSE_SOUND=no'
6210 fi
6211
6212else
6213
6214 LINE=`grep "wxUSE_SOUND" ${wx_arg_cache_file}`
6215 if test "x$LINE" != x ; then
6216 eval "DEFAULT_$LINE"
6217 else
6218 no_cache=1
6219 fi
6220
6221 ac_cv_use_sound='wxUSE_SOUND='$DEFAULT_wxUSE_SOUND
6222
6223fi;
6224
6225 eval "$ac_cv_use_sound"
6226 if test "$no_cache" != 1; then
6227 echo $ac_cv_use_sound >> ${wx_arg_cache_file}.tmp
6228 fi
6229
6230 if test "$wxUSE_SOUND" = yes; then
6231 echo "$as_me:$LINENO: result: yes" >&5
6232echo "${ECHO_T}yes" >&6
6233 else
6234 echo "$as_me:$LINENO: result: no" >&5
6235echo "${ECHO_T}no" >&6
6236 fi
6237
6238
3b57de8b
RL
6239 enablestring=
6240 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mediactrl" >&5
6241echo $ECHO_N "checking for --${enablestring:-enable}-mediactrl... $ECHO_C" >&6
6242 no_cache=0
6243 # Check whether --enable-mediactrl or --disable-mediactrl was given.
6244if test "${enable_mediactrl+set}" = set; then
6245 enableval="$enable_mediactrl"
6246
6247 if test "$enableval" = yes; then
6248 ac_cv_use_mediactrl='wxUSE_MEDIACTRL=yes'
6249 else
6250 ac_cv_use_mediactrl='wxUSE_MEDIACTRL=no'
6251 fi
6252
6253else
6254
6255 LINE=`grep "wxUSE_MEDIACTRL" ${wx_arg_cache_file}`
6256 if test "x$LINE" != x ; then
6257 eval "DEFAULT_$LINE"
6258 else
6259 no_cache=1
6260 fi
6261
6262 ac_cv_use_mediactrl='wxUSE_MEDIACTRL='$DEFAULT_wxUSE_MEDIACTRL
6263
6264fi;
6265
6266 eval "$ac_cv_use_mediactrl"
6267 if test "$no_cache" != 1; then
6268 echo $ac_cv_use_mediactrl >> ${wx_arg_cache_file}.tmp
6269 fi
6270
6271 if test "$wxUSE_MEDIACTRL" = yes; then
6272 echo "$as_me:$LINENO: result: yes" >&5
6273echo "${ECHO_T}yes" >&6
6274 else
6275 echo "$as_me:$LINENO: result: no" >&5
6276echo "${ECHO_T}no" >&6
6277 fi
6278
6279
f10e38c4
VZ
6280 enablestring=
6281 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gstreamer8" >&5
6282echo $ECHO_N "checking for --${enablestring:-enable}-gstreamer8... $ECHO_C" >&6
6283 no_cache=0
6284 # Check whether --enable-gstreamer8 or --disable-gstreamer8 was given.
6285if test "${enable_gstreamer8+set}" = set; then
6286 enableval="$enable_gstreamer8"
6287
6288 if test "$enableval" = yes; then
6289 ac_cv_use_gstreamer8='wxUSE_GSTREAMER8=yes'
6290 else
6291 ac_cv_use_gstreamer8='wxUSE_GSTREAMER8=no'
6292 fi
6293
6294else
6295
6296 LINE=`grep "wxUSE_GSTREAMER8" ${wx_arg_cache_file}`
6297 if test "x$LINE" != x ; then
6298 eval "DEFAULT_$LINE"
6299 else
6300 no_cache=1
6301 fi
6302
6303 ac_cv_use_gstreamer8='wxUSE_GSTREAMER8='$DEFAULT_wxUSE_GSTREAMER8
6304
6305fi;
6306
6307 eval "$ac_cv_use_gstreamer8"
6308 if test "$no_cache" != 1; then
6309 echo $ac_cv_use_gstreamer8 >> ${wx_arg_cache_file}.tmp
6310 fi
6311
6312 if test "$wxUSE_GSTREAMER8" = yes; then
6313 echo "$as_me:$LINENO: result: yes" >&5
6314echo "${ECHO_T}yes" >&6
6315 else
6316 echo "$as_me:$LINENO: result: no" >&5
6317echo "${ECHO_T}no" >&6
6318 fi
6319
6320
a848cd7e 6321 enablestring=
8b6682b9
JS
6322 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-printfposparam" >&5
6323echo $ECHO_N "checking for --${enablestring:-enable}-printfposparam... $ECHO_C" >&6
a848cd7e 6324 no_cache=0
8b6682b9
JS
6325 # Check whether --enable-printfposparam or --disable-printfposparam was given.
6326if test "${enable_printfposparam+set}" = set; then
6327 enableval="$enable_printfposparam"
a848cd7e
SC
6328
6329 if test "$enableval" = yes; then
8b6682b9 6330 ac_cv_use_printfposparam='wxUSE_PRINTF_POS_PARAMS=yes'
a848cd7e 6331 else
8b6682b9 6332 ac_cv_use_printfposparam='wxUSE_PRINTF_POS_PARAMS=no'
a848cd7e
SC
6333 fi
6334
6335else
6336
8b6682b9 6337 LINE=`grep "wxUSE_PRINTF_POS_PARAMS" ${wx_arg_cache_file}`
a848cd7e
SC
6338 if test "x$LINE" != x ; then
6339 eval "DEFAULT_$LINE"
6340 else
6341 no_cache=1
6342 fi
6343
8b6682b9 6344 ac_cv_use_printfposparam='wxUSE_PRINTF_POS_PARAMS='$DEFAULT_wxUSE_PRINTF_POS_PARAMS
a848cd7e
SC
6345
6346fi;
6347
8b6682b9 6348 eval "$ac_cv_use_printfposparam"
a848cd7e 6349 if test "$no_cache" != 1; then
8b6682b9 6350 echo $ac_cv_use_printfposparam >> ${wx_arg_cache_file}.tmp
a848cd7e
SC
6351 fi
6352
8b6682b9 6353 if test "$wxUSE_PRINTF_POS_PARAMS" = yes; then
a848cd7e
SC
6354 echo "$as_me:$LINENO: result: yes" >&5
6355echo "${ECHO_T}yes" >&6
6356 else
6357 echo "$as_me:$LINENO: result: no" >&5
6358echo "${ECHO_T}no" >&6
6359 fi
6360
6361
6362 enablestring=
6363 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-zipstream" >&5
6364echo $ECHO_N "checking for --${enablestring:-enable}-zipstream... $ECHO_C" >&6
6365 no_cache=0
6366 # Check whether --enable-zipstream or --disable-zipstream was given.
6367if test "${enable_zipstream+set}" = set; then
6368 enableval="$enable_zipstream"
6369
6370 if test "$enableval" = yes; then
6371 ac_cv_use_zipstream='wxUSE_ZIPSTREAM=yes'
6372 else
6373 ac_cv_use_zipstream='wxUSE_ZIPSTREAM=no'
6374 fi
6375
6376else
6377
6378 LINE=`grep "wxUSE_ZIPSTREAM" ${wx_arg_cache_file}`
6379 if test "x$LINE" != x ; then
6380 eval "DEFAULT_$LINE"
6381 else
6382 no_cache=1
6383 fi
6384
6385 ac_cv_use_zipstream='wxUSE_ZIPSTREAM='$DEFAULT_wxUSE_ZIPSTREAM
6386
6387fi;
6388
6389 eval "$ac_cv_use_zipstream"
6390 if test "$no_cache" != 1; then
6391 echo $ac_cv_use_zipstream >> ${wx_arg_cache_file}.tmp
6392 fi
6393
6394 if test "$wxUSE_ZIPSTREAM" = yes; then
6395 echo "$as_me:$LINENO: result: yes" >&5
6396echo "${ECHO_T}yes" >&6
6397 else
6398 echo "$as_me:$LINENO: result: no" >&5
6399echo "${ECHO_T}no" >&6
6400 fi
6401
6402
a848cd7e
SC
6403
6404 enablestring=
6405 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-url" >&5
6406echo $ECHO_N "checking for --${enablestring:-enable}-url... $ECHO_C" >&6
6407 no_cache=0
6408 # Check whether --enable-url or --disable-url was given.
6409if test "${enable_url+set}" = set; then
6410 enableval="$enable_url"
6411
6412 if test "$enableval" = yes; then
6413 ac_cv_use_url='wxUSE_URL=yes'
6414 else
6415 ac_cv_use_url='wxUSE_URL=no'
6416 fi
6417
6418else
6419
6420 LINE=`grep "wxUSE_URL" ${wx_arg_cache_file}`
6421 if test "x$LINE" != x ; then
6422 eval "DEFAULT_$LINE"
6423 else
6424 no_cache=1
6425 fi
6426
6427 ac_cv_use_url='wxUSE_URL='$DEFAULT_wxUSE_URL
6428
6429fi;
6430
6431 eval "$ac_cv_use_url"
6432 if test "$no_cache" != 1; then
6433 echo $ac_cv_use_url >> ${wx_arg_cache_file}.tmp
6434 fi
6435
6436 if test "$wxUSE_URL" = yes; then
6437 echo "$as_me:$LINENO: result: yes" >&5
6438echo "${ECHO_T}yes" >&6
6439 else
6440 echo "$as_me:$LINENO: result: no" >&5
6441echo "${ECHO_T}no" >&6
6442 fi
6443
6444
6445 enablestring=
6446 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol" >&5
6447echo $ECHO_N "checking for --${enablestring:-enable}-protocol... $ECHO_C" >&6
6448 no_cache=0
6449 # Check whether --enable-protocol or --disable-protocol was given.
6450if test "${enable_protocol+set}" = set; then
6451 enableval="$enable_protocol"
6452
6453 if test "$enableval" = yes; then
6454 ac_cv_use_protocol='wxUSE_PROTOCOL=yes'
6455 else
6456 ac_cv_use_protocol='wxUSE_PROTOCOL=no'
6457 fi
6458
6459else
6460
6461 LINE=`grep "wxUSE_PROTOCOL" ${wx_arg_cache_file}`
6462 if test "x$LINE" != x ; then
6463 eval "DEFAULT_$LINE"
6464 else
6465 no_cache=1
6466 fi
6467
6468 ac_cv_use_protocol='wxUSE_PROTOCOL='$DEFAULT_wxUSE_PROTOCOL
6469
6470fi;
6471
6472 eval "$ac_cv_use_protocol"
6473 if test "$no_cache" != 1; then
6474 echo $ac_cv_use_protocol >> ${wx_arg_cache_file}.tmp
6475 fi
6476
6477 if test "$wxUSE_PROTOCOL" = yes; then
6478 echo "$as_me:$LINENO: result: yes" >&5
6479echo "${ECHO_T}yes" >&6
6480 else
6481 echo "$as_me:$LINENO: result: no" >&5
6482echo "${ECHO_T}no" >&6
6483 fi
6484
6485
6486 enablestring=
6487 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_http" >&5
6488echo $ECHO_N "checking for --${enablestring:-enable}-protocol_http... $ECHO_C" >&6
6489 no_cache=0
6490 # Check whether --enable-protocol_http or --disable-protocol_http was given.
6491if test "${enable_protocol_http+set}" = set; then
6492 enableval="$enable_protocol_http"
6493
6494 if test "$enableval" = yes; then
6495 ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=yes'
6496 else
6497 ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=no'
6498 fi
6499
6500else
6501
6502 LINE=`grep "wxUSE_PROTOCOL_HTTP" ${wx_arg_cache_file}`
6503 if test "x$LINE" != x ; then
6504 eval "DEFAULT_$LINE"
6505 else
6506 no_cache=1
6507 fi
6508
6509 ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP='$DEFAULT_wxUSE_PROTOCOL_HTTP
6510
6511fi;
6512
6513 eval "$ac_cv_use_protocol_http"
6514 if test "$no_cache" != 1; then
6515 echo $ac_cv_use_protocol_http >> ${wx_arg_cache_file}.tmp
6516 fi
6517
6518 if test "$wxUSE_PROTOCOL_HTTP" = yes; then
6519 echo "$as_me:$LINENO: result: yes" >&5
6520echo "${ECHO_T}yes" >&6
6521 else
6522 echo "$as_me:$LINENO: result: no" >&5
6523echo "${ECHO_T}no" >&6
6524 fi
6525
6526
6527 enablestring=
6528 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_ftp" >&5
6529echo $ECHO_N "checking for --${enablestring:-enable}-protocol_ftp... $ECHO_C" >&6
6530 no_cache=0
6531 # Check whether --enable-protocol_ftp or --disable-protocol_ftp was given.
6532if test "${enable_protocol_ftp+set}" = set; then
6533 enableval="$enable_protocol_ftp"
6534
6535 if test "$enableval" = yes; then
6536 ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=yes'
6537 else
6538 ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=no'
6539 fi
6540
6541else
6542
6543 LINE=`grep "wxUSE_PROTOCOL_FTP" ${wx_arg_cache_file}`
6544 if test "x$LINE" != x ; then
6545 eval "DEFAULT_$LINE"
6546 else
6547 no_cache=1
6548 fi
6549
6550 ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP='$DEFAULT_wxUSE_PROTOCOL_FTP
6551
6552fi;
6553
6554 eval "$ac_cv_use_protocol_ftp"
6555 if test "$no_cache" != 1; then
6556 echo $ac_cv_use_protocol_ftp >> ${wx_arg_cache_file}.tmp
6557 fi
6558
6559 if test "$wxUSE_PROTOCOL_FTP" = yes; then
6560 echo "$as_me:$LINENO: result: yes" >&5
6561echo "${ECHO_T}yes" >&6
6562 else
6563 echo "$as_me:$LINENO: result: no" >&5
6564echo "${ECHO_T}no" >&6
6565 fi
6566
6567
6568 enablestring=
6569 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_file" >&5
6570echo $ECHO_N "checking for --${enablestring:-enable}-protocol_file... $ECHO_C" >&6
6571 no_cache=0
6572 # Check whether --enable-protocol_file or --disable-protocol_file was given.
6573if test "${enable_protocol_file+set}" = set; then
6574 enableval="$enable_protocol_file"
6575
6576 if test "$enableval" = yes; then
6577 ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=yes'
6578 else
6579 ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=no'
6580 fi
6581
6582else
6583
6584 LINE=`grep "wxUSE_PROTOCOL_FILE" ${wx_arg_cache_file}`
6585 if test "x$LINE" != x ; then
6586 eval "DEFAULT_$LINE"
6587 else
6588 no_cache=1
6589 fi
6590
6591 ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE='$DEFAULT_wxUSE_PROTOCOL_FILE
6592
6593fi;
6594
6595 eval "$ac_cv_use_protocol_file"
6596 if test "$no_cache" != 1; then
6597 echo $ac_cv_use_protocol_file >> ${wx_arg_cache_file}.tmp
6598 fi
6599
6600 if test "$wxUSE_PROTOCOL_FILE" = yes; then
6601 echo "$as_me:$LINENO: result: yes" >&5
6602echo "${ECHO_T}yes" >&6
6603 else
6604 echo "$as_me:$LINENO: result: no" >&5
6605echo "${ECHO_T}no" >&6
6606 fi
6607
6608
6609
6610
6611
6612 enablestring=
6613 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-threads" >&5
6614echo $ECHO_N "checking for --${enablestring:-enable}-threads... $ECHO_C" >&6
6615 no_cache=0
6616 # Check whether --enable-threads or --disable-threads was given.
6617if test "${enable_threads+set}" = set; then
6618 enableval="$enable_threads"
6619
6620 if test "$enableval" = yes; then
6621 ac_cv_use_threads='wxUSE_THREADS=yes'
6622 else
6623 ac_cv_use_threads='wxUSE_THREADS=no'
6624 fi
6625
6626else
6627
6628 LINE=`grep "wxUSE_THREADS" ${wx_arg_cache_file}`
6629 if test "x$LINE" != x ; then
6630 eval "DEFAULT_$LINE"
6631 else
6632 no_cache=1
6633 fi
6634
6635 ac_cv_use_threads='wxUSE_THREADS='$DEFAULT_wxUSE_THREADS
6636
6637fi;
6638
6639 eval "$ac_cv_use_threads"
6640 if test "$no_cache" != 1; then
6641 echo $ac_cv_use_threads >> ${wx_arg_cache_file}.tmp
6642 fi
6643
6644 if test "$wxUSE_THREADS" = yes; then
6645 echo "$as_me:$LINENO: result: yes" >&5
6646echo "${ECHO_T}yes" >&6
6647 else
6648 echo "$as_me:$LINENO: result: no" >&5
6649echo "${ECHO_T}no" >&6
6650 fi
6651
6652
6653if test "$wxUSE_GUI" = "yes"; then
6654
6655
6656
6657 enablestring=
6658 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-docview" >&5
6659echo $ECHO_N "checking for --${enablestring:-enable}-docview... $ECHO_C" >&6
6660 no_cache=0
6661 # Check whether --enable-docview or --disable-docview was given.
6662if test "${enable_docview+set}" = set; then
6663 enableval="$enable_docview"
6664
6665 if test "$enableval" = yes; then
6666 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=yes'
6667 else
6668 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=no'
6669 fi
6670
6671else
6672
6673 LINE=`grep "wxUSE_DOC_VIEW_ARCHITECTURE" ${wx_arg_cache_file}`
6674 if test "x$LINE" != x ; then
6675 eval "DEFAULT_$LINE"
6676 else
6677 no_cache=1
6678 fi
6679
6680 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE='$DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE
6681
6682fi;
6683
6684 eval "$ac_cv_use_docview"
6685 if test "$no_cache" != 1; then
6686 echo $ac_cv_use_docview >> ${wx_arg_cache_file}.tmp
6687 fi
6688
6689 if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = yes; then
6690 echo "$as_me:$LINENO: result: yes" >&5
6691echo "${ECHO_T}yes" >&6
6692 else
6693 echo "$as_me:$LINENO: result: no" >&5
6694echo "${ECHO_T}no" >&6
6695 fi
6696
6697
6698 enablestring=
6699 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-help" >&5
6700echo $ECHO_N "checking for --${enablestring:-enable}-help... $ECHO_C" >&6
6701 no_cache=0
6702 # Check whether --enable-help or --disable-help was given.
6703if test "${enable_help+set}" = set; then
6704 enableval="$enable_help"
6705
6706 if test "$enableval" = yes; then
6707 ac_cv_use_help='wxUSE_HELP=yes'
6708 else
6709 ac_cv_use_help='wxUSE_HELP=no'
6710 fi
6711
6712else
6713
6714 LINE=`grep "wxUSE_HELP" ${wx_arg_cache_file}`
6715 if test "x$LINE" != x ; then
6716 eval "DEFAULT_$LINE"
6717 else
6718 no_cache=1
6719 fi
6720
6721 ac_cv_use_help='wxUSE_HELP='$DEFAULT_wxUSE_HELP
6722
6723fi;
6724
6725 eval "$ac_cv_use_help"
6726 if test "$no_cache" != 1; then
6727 echo $ac_cv_use_help >> ${wx_arg_cache_file}.tmp
6728 fi
6729
6730 if test "$wxUSE_HELP" = yes; then
6731 echo "$as_me:$LINENO: result: yes" >&5
6732echo "${ECHO_T}yes" >&6
6733 else
6734 echo "$as_me:$LINENO: result: no" >&5
6735echo "${ECHO_T}no" >&6
6736 fi
6737
6738
6739 enablestring=
6740 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mshtmlhelp" >&5
6741echo $ECHO_N "checking for --${enablestring:-enable}-mshtmlhelp... $ECHO_C" >&6
6742 no_cache=0
6743 # Check whether --enable-mshtmlhelp or --disable-mshtmlhelp was given.
6744if test "${enable_mshtmlhelp+set}" = set; then
6745 enableval="$enable_mshtmlhelp"
6746
6747 if test "$enableval" = yes; then
6748 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=yes'
6749 else
6750 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=no'
6751 fi
6752
6753else
6754
6755 LINE=`grep "wxUSE_MS_HTML_HELP" ${wx_arg_cache_file}`
6756 if test "x$LINE" != x ; then
6757 eval "DEFAULT_$LINE"
6758 else
6759 no_cache=1
6760 fi
6761
6762 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP='$DEFAULT_wxUSE_MS_HTML_HELP
6763
6764fi;
6765
6766 eval "$ac_cv_use_mshtmlhelp"
6767 if test "$no_cache" != 1; then
6768 echo $ac_cv_use_mshtmlhelp >> ${wx_arg_cache_file}.tmp
6769 fi
6770
6771 if test "$wxUSE_MS_HTML_HELP" = yes; then
6772 echo "$as_me:$LINENO: result: yes" >&5
6773echo "${ECHO_T}yes" >&6
6774 else
6775 echo "$as_me:$LINENO: result: no" >&5
6776echo "${ECHO_T}no" >&6
6777 fi
6778
6779
6780 enablestring=
6781 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-html" >&5
6782echo $ECHO_N "checking for --${enablestring:-enable}-html... $ECHO_C" >&6
6783 no_cache=0
6784 # Check whether --enable-html or --disable-html was given.
6785if test "${enable_html+set}" = set; then
6786 enableval="$enable_html"
6787
6788 if test "$enableval" = yes; then
6789 ac_cv_use_html='wxUSE_HTML=yes'
6790 else
6791 ac_cv_use_html='wxUSE_HTML=no'
6792 fi
6793
6794else
6795
6796 LINE=`grep "wxUSE_HTML" ${wx_arg_cache_file}`
6797 if test "x$LINE" != x ; then
6798 eval "DEFAULT_$LINE"
6799 else
6800 no_cache=1
6801 fi
6802
6803 ac_cv_use_html='wxUSE_HTML='$DEFAULT_wxUSE_HTML
6804
6805fi;
6806
6807 eval "$ac_cv_use_html"
6808 if test "$no_cache" != 1; then
6809 echo $ac_cv_use_html >> ${wx_arg_cache_file}.tmp
6810 fi
6811
6812 if test "$wxUSE_HTML" = yes; then
6813 echo "$as_me:$LINENO: result: yes" >&5
6814echo "${ECHO_T}yes" >&6
6815 else
6816 echo "$as_me:$LINENO: result: no" >&5
6817echo "${ECHO_T}no" >&6
6818 fi
6819
6820
6821 enablestring=
6822 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-htmlhelp" >&5
6823echo $ECHO_N "checking for --${enablestring:-enable}-htmlhelp... $ECHO_C" >&6
6824 no_cache=0
6825 # Check whether --enable-htmlhelp or --disable-htmlhelp was given.
6826if test "${enable_htmlhelp+set}" = set; then
6827 enableval="$enable_htmlhelp"
6828
6829 if test "$enableval" = yes; then
6830 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=yes'
6831 else
6832 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=no'
6833 fi
6834
6835else
6836
6837 LINE=`grep "wxUSE_WXHTML_HELP" ${wx_arg_cache_file}`
6838 if test "x$LINE" != x ; then
6839 eval "DEFAULT_$LINE"
6840 else
6841 no_cache=1
6842 fi
6843
6844 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP='$DEFAULT_wxUSE_WXHTML_HELP
6845
6846fi;
6847
6848 eval "$ac_cv_use_htmlhelp"
6849 if test "$no_cache" != 1; then
6850 echo $ac_cv_use_htmlhelp >> ${wx_arg_cache_file}.tmp
6851 fi
6852
6853 if test "$wxUSE_WXHTML_HELP" = yes; then
6854 echo "$as_me:$LINENO: result: yes" >&5
6855echo "${ECHO_T}yes" >&6
6856 else
6857 echo "$as_me:$LINENO: result: no" >&5
6858echo "${ECHO_T}no" >&6
6859 fi
6860
6861
9a8f0513
VS
6862 enablestring=
6863 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-xrc" >&5
6864echo $ECHO_N "checking for --${enablestring:-enable}-xrc... $ECHO_C" >&6
6865 no_cache=0
6866 # Check whether --enable-xrc or --disable-xrc was given.
6867if test "${enable_xrc+set}" = set; then
6868 enableval="$enable_xrc"
6869
6870 if test "$enableval" = yes; then
6871 ac_cv_use_xrc='wxUSE_XRC=yes'
6872 else
6873 ac_cv_use_xrc='wxUSE_XRC=no'
6874 fi
6875
6876else
6877
6878 LINE=`grep "wxUSE_XRC" ${wx_arg_cache_file}`
6879 if test "x$LINE" != x ; then
6880 eval "DEFAULT_$LINE"
6881 else
6882 no_cache=1
6883 fi
6884
6885 ac_cv_use_xrc='wxUSE_XRC='$DEFAULT_wxUSE_XRC
6886
6887fi;
6888
6889 eval "$ac_cv_use_xrc"
6890 if test "$no_cache" != 1; then
6891 echo $ac_cv_use_xrc >> ${wx_arg_cache_file}.tmp
6892 fi
6893
6894 if test "$wxUSE_XRC" = yes; then
6895 echo "$as_me:$LINENO: result: yes" >&5
6896echo "${ECHO_T}yes" >&6
6897 else
6898 echo "$as_me:$LINENO: result: no" >&5
6899echo "${ECHO_T}no" >&6
6900 fi
6901
6902
3f60522a
JS
6903 enablestring=
6904 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-aui" >&5
6905echo $ECHO_N "checking for --${enablestring:-enable}-aui... $ECHO_C" >&6
6906 no_cache=0
6907 # Check whether --enable-aui or --disable-aui was given.
6908if test "${enable_aui+set}" = set; then
6909 enableval="$enable_aui"
6910
6911 if test "$enableval" = yes; then
6912 ac_cv_use_aui='wxUSE_AUI=yes'
6913 else
6914 ac_cv_use_aui='wxUSE_AUI=no'
6915 fi
6916
6917else
6918
6919 LINE=`grep "wxUSE_AUI" ${wx_arg_cache_file}`
6920 if test "x$LINE" != x ; then
6921 eval "DEFAULT_$LINE"
6922 else
6923 no_cache=1
6924 fi
6925
6926 ac_cv_use_aui='wxUSE_AUI='$DEFAULT_wxUSE_AUI
6927
6928fi;
6929
6930 eval "$ac_cv_use_aui"
6931 if test "$no_cache" != 1; then
6932 echo $ac_cv_use_aui >> ${wx_arg_cache_file}.tmp
6933 fi
6934
6935 if test "$wxUSE_AUI" = yes; then
6936 echo "$as_me:$LINENO: result: yes" >&5
6937echo "${ECHO_T}yes" >&6
6938 else
6939 echo "$as_me:$LINENO: result: no" >&5
6940echo "${ECHO_T}no" >&6
6941 fi
6942
6943
a848cd7e
SC
6944 enablestring=
6945 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-constraints" >&5
6946echo $ECHO_N "checking for --${enablestring:-enable}-constraints... $ECHO_C" >&6
6947 no_cache=0
6948 # Check whether --enable-constraints or --disable-constraints was given.
6949if test "${enable_constraints+set}" = set; then
6950 enableval="$enable_constraints"
6951
6952 if test "$enableval" = yes; then
6953 ac_cv_use_constraints='wxUSE_CONSTRAINTS=yes'
6954 else
6955 ac_cv_use_constraints='wxUSE_CONSTRAINTS=no'
6956 fi
6957
6958else
6959
6960 LINE=`grep "wxUSE_CONSTRAINTS" ${wx_arg_cache_file}`
6961 if test "x$LINE" != x ; then
6962 eval "DEFAULT_$LINE"
6963 else
6964 no_cache=1
6965 fi
6966
6967 ac_cv_use_constraints='wxUSE_CONSTRAINTS='$DEFAULT_wxUSE_CONSTRAINTS
6968
6969fi;
6970
6971 eval "$ac_cv_use_constraints"
6972 if test "$no_cache" != 1; then
6973 echo $ac_cv_use_constraints >> ${wx_arg_cache_file}.tmp
6974 fi
6975
6976 if test "$wxUSE_CONSTRAINTS" = yes; then
6977 echo "$as_me:$LINENO: result: yes" >&5
6978echo "${ECHO_T}yes" >&6
6979 else
6980 echo "$as_me:$LINENO: result: no" >&5
6981echo "${ECHO_T}no" >&6
6982 fi
6983
6984
6985 enablestring=
6986 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-printarch" >&5
6987echo $ECHO_N "checking for --${enablestring:-enable}-printarch... $ECHO_C" >&6
6988 no_cache=0
6989 # Check whether --enable-printarch or --disable-printarch was given.
6990if test "${enable_printarch+set}" = set; then
6991 enableval="$enable_printarch"
6992
6993 if test "$enableval" = yes; then
6994 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=yes'
6995 else
6996 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=no'
6997 fi
6998
6999else
7000
7001 LINE=`grep "wxUSE_PRINTING_ARCHITECTURE" ${wx_arg_cache_file}`
7002 if test "x$LINE" != x ; then
7003 eval "DEFAULT_$LINE"
7004 else
7005 no_cache=1
7006 fi
7007
7008 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE='$DEFAULT_wxUSE_PRINTING_ARCHITECTURE
7009
7010fi;
7011
7012 eval "$ac_cv_use_printarch"
7013 if test "$no_cache" != 1; then
7014 echo $ac_cv_use_printarch >> ${wx_arg_cache_file}.tmp
7015 fi
7016
7017 if test "$wxUSE_PRINTING_ARCHITECTURE" = yes; then
7018 echo "$as_me:$LINENO: result: yes" >&5
7019echo "${ECHO_T}yes" >&6
7020 else
7021 echo "$as_me:$LINENO: result: no" >&5
7022echo "${ECHO_T}no" >&6
7023 fi
7024
7025
7026 enablestring=
7027 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mdi" >&5
7028echo $ECHO_N "checking for --${enablestring:-enable}-mdi... $ECHO_C" >&6
7029 no_cache=0
7030 # Check whether --enable-mdi or --disable-mdi was given.
7031if test "${enable_mdi+set}" = set; then
7032 enableval="$enable_mdi"
7033
7034 if test "$enableval" = yes; then
8a7b1113 7035 ac_cv_use_mdi='wxUSE_MDI=yes'
a848cd7e 7036 else
8a7b1113 7037 ac_cv_use_mdi='wxUSE_MDI=no'
a848cd7e
SC
7038 fi
7039
7040else
7041
8a7b1113 7042 LINE=`grep "wxUSE_MDI" ${wx_arg_cache_file}`
a848cd7e
SC
7043 if test "x$LINE" != x ; then
7044 eval "DEFAULT_$LINE"
7045 else
7046 no_cache=1
7047 fi
7048
8a7b1113 7049 ac_cv_use_mdi='wxUSE_MDI='$DEFAULT_wxUSE_MDI
a848cd7e
SC
7050
7051fi;
7052
7053 eval "$ac_cv_use_mdi"
7054 if test "$no_cache" != 1; then
7055 echo $ac_cv_use_mdi >> ${wx_arg_cache_file}.tmp
7056 fi
7057
8a7b1113
VZ
7058 if test "$wxUSE_MDI" = yes; then
7059 echo "$as_me:$LINENO: result: yes" >&5
7060echo "${ECHO_T}yes" >&6
7061 else
7062 echo "$as_me:$LINENO: result: no" >&5
7063echo "${ECHO_T}no" >&6
7064 fi
7065
7066
7067 enablestring=
7068 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mdidoc" >&5
7069echo $ECHO_N "checking for --${enablestring:-enable}-mdidoc... $ECHO_C" >&6
7070 no_cache=0
7071 # Check whether --enable-mdidoc or --disable-mdidoc was given.
7072if test "${enable_mdidoc+set}" = set; then
7073 enableval="$enable_mdidoc"
7074
7075 if test "$enableval" = yes; then
7076 ac_cv_use_mdidoc='wxUSE_MDI_ARCHITECTURE=yes'
7077 else
7078 ac_cv_use_mdidoc='wxUSE_MDI_ARCHITECTURE=no'
7079 fi
7080
7081else
7082
7083 LINE=`grep "wxUSE_MDI_ARCHITECTURE" ${wx_arg_cache_file}`
7084 if test "x$LINE" != x ; then
7085 eval "DEFAULT_$LINE"
7086 else
7087 no_cache=1
7088 fi
7089
7090 ac_cv_use_mdidoc='wxUSE_MDI_ARCHITECTURE='$DEFAULT_wxUSE_MDI_ARCHITECTURE
7091
7092fi;
7093
7094 eval "$ac_cv_use_mdidoc"
7095 if test "$no_cache" != 1; then
7096 echo $ac_cv_use_mdidoc >> ${wx_arg_cache_file}.tmp
7097 fi
7098
a848cd7e
SC
7099 if test "$wxUSE_MDI_ARCHITECTURE" = yes; then
7100 echo "$as_me:$LINENO: result: yes" >&5
7101echo "${ECHO_T}yes" >&6
7102 else
7103 echo "$as_me:$LINENO: result: no" >&5
7104echo "${ECHO_T}no" >&6
7105 fi
7106
7107
7108 enablestring=
7109 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-loggui" >&5
7110echo $ECHO_N "checking for --${enablestring:-enable}-loggui... $ECHO_C" >&6
7111 no_cache=0
7112 # Check whether --enable-loggui or --disable-loggui was given.
7113if test "${enable_loggui+set}" = set; then
7114 enableval="$enable_loggui"
7115
7116 if test "$enableval" = yes; then
7117 ac_cv_use_loggui='wxUSE_LOGGUI=yes'
7118 else
7119 ac_cv_use_loggui='wxUSE_LOGGUI=no'
7120 fi
7121
7122else
7123
7124 LINE=`grep "wxUSE_LOGGUI" ${wx_arg_cache_file}`
7125 if test "x$LINE" != x ; then
7126 eval "DEFAULT_$LINE"
7127 else
7128 no_cache=1
7129 fi
7130
7131 ac_cv_use_loggui='wxUSE_LOGGUI='$DEFAULT_wxUSE_LOGGUI
7132
7133fi;
7134
7135 eval "$ac_cv_use_loggui"
7136 if test "$no_cache" != 1; then
7137 echo $ac_cv_use_loggui >> ${wx_arg_cache_file}.tmp
7138 fi
7139
7140 if test "$wxUSE_LOGGUI" = yes; then
7141 echo "$as_me:$LINENO: result: yes" >&5
7142echo "${ECHO_T}yes" >&6
7143 else
7144 echo "$as_me:$LINENO: result: no" >&5
7145echo "${ECHO_T}no" >&6
7146 fi
7147
7148
7149 enablestring=
7150 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-logwin" >&5
7151echo $ECHO_N "checking for --${enablestring:-enable}-logwin... $ECHO_C" >&6
7152 no_cache=0
7153 # Check whether --enable-logwin or --disable-logwin was given.
7154if test "${enable_logwin+set}" = set; then
7155 enableval="$enable_logwin"
7156
7157 if test "$enableval" = yes; then
7158 ac_cv_use_logwin='wxUSE_LOGWINDOW=yes'
7159 else
7160 ac_cv_use_logwin='wxUSE_LOGWINDOW=no'
7161 fi
7162
7163else
7164
7165 LINE=`grep "wxUSE_LOGWINDOW" ${wx_arg_cache_file}`
7166 if test "x$LINE" != x ; then
7167 eval "DEFAULT_$LINE"
7168 else
7169 no_cache=1
7170 fi
7171
7172 ac_cv_use_logwin='wxUSE_LOGWINDOW='$DEFAULT_wxUSE_LOGWINDOW
7173
7174fi;
7175
7176 eval "$ac_cv_use_logwin"
7177 if test "$no_cache" != 1; then
7178 echo $ac_cv_use_logwin >> ${wx_arg_cache_file}.tmp
7179 fi
7180
7181 if test "$wxUSE_LOGWINDOW" = yes; then
7182 echo "$as_me:$LINENO: result: yes" >&5
7183echo "${ECHO_T}yes" >&6
7184 else
7185 echo "$as_me:$LINENO: result: no" >&5
7186echo "${ECHO_T}no" >&6
7187 fi
7188
7189
7190 enablestring=
7191 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-logdialog" >&5
7192echo $ECHO_N "checking for --${enablestring:-enable}-logdialog... $ECHO_C" >&6
7193 no_cache=0
7194 # Check whether --enable-logdialog or --disable-logdialog was given.
7195if test "${enable_logdialog+set}" = set; then
7196 enableval="$enable_logdialog"
7197
7198 if test "$enableval" = yes; then
7199 ac_cv_use_logdialog='wxUSE_LOGDIALOG=yes'
7200 else
7201 ac_cv_use_logdialog='wxUSE_LOGDIALOG=no'
7202 fi
7203
7204else
7205
7206 LINE=`grep "wxUSE_LOGDIALOG" ${wx_arg_cache_file}`
7207 if test "x$LINE" != x ; then
7208 eval "DEFAULT_$LINE"
7209 else
7210 no_cache=1
7211 fi
7212
7213 ac_cv_use_logdialog='wxUSE_LOGDIALOG='$DEFAULT_wxUSE_LOGDIALOG
7214
7215fi;
7216
7217 eval "$ac_cv_use_logdialog"
7218 if test "$no_cache" != 1; then
7219 echo $ac_cv_use_logdialog >> ${wx_arg_cache_file}.tmp
7220 fi
7221
7222 if test "$wxUSE_LOGDIALOG" = yes; then
7223 echo "$as_me:$LINENO: result: yes" >&5
7224echo "${ECHO_T}yes" >&6
7225 else
7226 echo "$as_me:$LINENO: result: no" >&5
7227echo "${ECHO_T}no" >&6
7228 fi
7229
7230
646b6ec1
VS
7231 enablestring=
7232 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-webkit" >&5
7233echo $ECHO_N "checking for --${enablestring:-enable}-webkit... $ECHO_C" >&6
7234 no_cache=0
7235 # Check whether --enable-webkit or --disable-webkit was given.
7236if test "${enable_webkit+set}" = set; then
7237 enableval="$enable_webkit"
7238
7239 if test "$enableval" = yes; then
7240 ac_cv_use_webkit='wxUSE_WEBKIT=yes'
7241 else
7242 ac_cv_use_webkit='wxUSE_WEBKIT=no'
7243 fi
7244
7245else
7246
7247 LINE=`grep "wxUSE_WEBKIT" ${wx_arg_cache_file}`
7248 if test "x$LINE" != x ; then
7249 eval "DEFAULT_$LINE"
7250 else
7251 no_cache=1
7252 fi
7253
7254 ac_cv_use_webkit='wxUSE_WEBKIT='$DEFAULT_wxUSE_WEBKIT
7255
7256fi;
7257
7258 eval "$ac_cv_use_webkit"
7259 if test "$no_cache" != 1; then
7260 echo $ac_cv_use_webkit >> ${wx_arg_cache_file}.tmp
7261 fi
7262
7263 if test "$wxUSE_WEBKIT" = yes; then
7264 echo "$as_me:$LINENO: result: yes" >&5
7265echo "${ECHO_T}yes" >&6
7266 else
7267 echo "$as_me:$LINENO: result: no" >&5
7268echo "${ECHO_T}no" >&6
7269 fi
7270
7271
91dea314
MW
7272 enablestring=
7273 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-html" >&5
7274echo $ECHO_N "checking for --${enablestring:-enable}-html... $ECHO_C" >&6
7275 no_cache=0
7276 # Check whether --enable-html or --disable-html was given.
7277if test "${enable_html+set}" = set; then
7278 enableval="$enable_html"
7279
7280 if test "$enableval" = yes; then
7281 ac_cv_use_html='wxUSE_RICHTEXT=yes'
7282 else
7283 ac_cv_use_html='wxUSE_RICHTEXT=no'
7284 fi
7285
7286else
7287
7288 LINE=`grep "wxUSE_RICHTEXT" ${wx_arg_cache_file}`
7289 if test "x$LINE" != x ; then
7290 eval "DEFAULT_$LINE"
7291 else
7292 no_cache=1
7293 fi
7294
7295 ac_cv_use_html='wxUSE_RICHTEXT='$DEFAULT_wxUSE_RICHTEXT
7296
7297fi;
7298
7299 eval "$ac_cv_use_html"
7300 if test "$no_cache" != 1; then
7301 echo $ac_cv_use_html >> ${wx_arg_cache_file}.tmp
7302 fi
7303
7304 if test "$wxUSE_RICHTEXT" = yes; then
7305 echo "$as_me:$LINENO: result: yes" >&5
7306echo "${ECHO_T}yes" >&6
7307 else
7308 echo "$as_me:$LINENO: result: no" >&5
7309echo "${ECHO_T}no" >&6
7310 fi
7311
7312
a848cd7e
SC
7313
7314 enablestring=
7315 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-postscript" >&5
7316echo $ECHO_N "checking for --${enablestring:-enable}-postscript... $ECHO_C" >&6
7317 no_cache=0
7318 # Check whether --enable-postscript or --disable-postscript was given.
7319if test "${enable_postscript+set}" = set; then
7320 enableval="$enable_postscript"
7321
7322 if test "$enableval" = yes; then
7323 ac_cv_use_postscript='wxUSE_POSTSCRIPT=yes'
7324 else
7325 ac_cv_use_postscript='wxUSE_POSTSCRIPT=no'
7326 fi
7327
7328else
7329
7330 LINE=`grep "wxUSE_POSTSCRIPT" ${wx_arg_cache_file}`
7331 if test "x$LINE" != x ; then
7332 eval "DEFAULT_$LINE"
7333 else
7334 no_cache=1
7335 fi
7336
7337 ac_cv_use_postscript='wxUSE_POSTSCRIPT='$DEFAULT_wxUSE_POSTSCRIPT
7338
7339fi;
7340
7341 eval "$ac_cv_use_postscript"
7342 if test "$no_cache" != 1; then
7343 echo $ac_cv_use_postscript >> ${wx_arg_cache_file}.tmp
7344 fi
7345
7346 if test "$wxUSE_POSTSCRIPT" = yes; then
7347 echo "$as_me:$LINENO: result: yes" >&5
7348echo "${ECHO_T}yes" >&6
7349 else
7350 echo "$as_me:$LINENO: result: no" >&5
7351echo "${ECHO_T}no" >&6
7352 fi
7353
7354
7355
7356
7357
7358 enablestring=
7359 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-prologio" >&5
7360echo $ECHO_N "checking for --${enablestring:-enable}-prologio... $ECHO_C" >&6
7361 no_cache=0
7362 # Check whether --enable-prologio or --disable-prologio was given.
7363if test "${enable_prologio+set}" = set; then
7364 enableval="$enable_prologio"
7365
7366 if test "$enableval" = yes; then
7367 ac_cv_use_prologio='wxUSE_PROLOGIO=yes'
7368 else
7369 ac_cv_use_prologio='wxUSE_PROLOGIO=no'
7370 fi
7371
7372else
7373
7374 LINE=`grep "wxUSE_PROLOGIO" ${wx_arg_cache_file}`
7375 if test "x$LINE" != x ; then
7376 eval "DEFAULT_$LINE"
7377 else
7378 no_cache=1
7379 fi
7380
7381 ac_cv_use_prologio='wxUSE_PROLOGIO='$DEFAULT_wxUSE_PROLOGIO
7382
7383fi;
7384
7385 eval "$ac_cv_use_prologio"
7386 if test "$no_cache" != 1; then
7387 echo $ac_cv_use_prologio >> ${wx_arg_cache_file}.tmp
7388 fi
7389
7390 if test "$wxUSE_PROLOGIO" = yes; then
7391 echo "$as_me:$LINENO: result: yes" >&5
7392echo "${ECHO_T}yes" >&6
7393 else
7394 echo "$as_me:$LINENO: result: no" >&5
7395echo "${ECHO_T}no" >&6
7396 fi
7397
7398
7399 enablestring=
7400 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-resources" >&5
7401echo $ECHO_N "checking for --${enablestring:-enable}-resources... $ECHO_C" >&6
7402 no_cache=0
7403 # Check whether --enable-resources or --disable-resources was given.
7404if test "${enable_resources+set}" = set; then
7405 enableval="$enable_resources"
7406
7407 if test "$enableval" = yes; then
7408 ac_cv_use_resources='wxUSE_RESOURCES=yes'
7409 else
7410 ac_cv_use_resources='wxUSE_RESOURCES=no'
7411 fi
7412
7413else
7414
7415 LINE=`grep "wxUSE_RESOURCES" ${wx_arg_cache_file}`
7416 if test "x$LINE" != x ; then
7417 eval "DEFAULT_$LINE"
7418 else
7419 no_cache=1
7420 fi
7421
7422 ac_cv_use_resources='wxUSE_RESOURCES='$DEFAULT_wxUSE_RESOURCES
7423
7424fi;
7425
7426 eval "$ac_cv_use_resources"
7427 if test "$no_cache" != 1; then
7428 echo $ac_cv_use_resources >> ${wx_arg_cache_file}.tmp
7429 fi
7430
7431 if test "$wxUSE_RESOURCES" = yes; then
7432 echo "$as_me:$LINENO: result: yes" >&5
7433echo "${ECHO_T}yes" >&6
7434 else
7435 echo "$as_me:$LINENO: result: no" >&5
7436echo "${ECHO_T}no" >&6
7437 fi
7438
7439
7440
7441
7442 enablestring=
7443 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-clipboard" >&5
7444echo $ECHO_N "checking for --${enablestring:-enable}-clipboard... $ECHO_C" >&6
7445 no_cache=0
7446 # Check whether --enable-clipboard or --disable-clipboard was given.
7447if test "${enable_clipboard+set}" = set; then
7448 enableval="$enable_clipboard"
7449
7450 if test "$enableval" = yes; then
7451 ac_cv_use_clipboard='wxUSE_CLIPBOARD=yes'
7452 else
7453 ac_cv_use_clipboard='wxUSE_CLIPBOARD=no'
7454 fi
7455
7456else
7457
7458 LINE=`grep "wxUSE_CLIPBOARD" ${wx_arg_cache_file}`
7459 if test "x$LINE" != x ; then
7460 eval "DEFAULT_$LINE"
7461 else
7462 no_cache=1
7463 fi
7464
7465 ac_cv_use_clipboard='wxUSE_CLIPBOARD='$DEFAULT_wxUSE_CLIPBOARD
7466
7467fi;
7468
7469 eval "$ac_cv_use_clipboard"
7470 if test "$no_cache" != 1; then
7471 echo $ac_cv_use_clipboard >> ${wx_arg_cache_file}.tmp
7472 fi
7473
7474 if test "$wxUSE_CLIPBOARD" = yes; then
7475 echo "$as_me:$LINENO: result: yes" >&5
7476echo "${ECHO_T}yes" >&6
7477 else
7478 echo "$as_me:$LINENO: result: no" >&5
7479echo "${ECHO_T}no" >&6
7480 fi
7481
7482
7483 enablestring=
7484 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dnd" >&5
7485echo $ECHO_N "checking for --${enablestring:-enable}-dnd... $ECHO_C" >&6
7486 no_cache=0
7487 # Check whether --enable-dnd or --disable-dnd was given.
7488if test "${enable_dnd+set}" = set; then
7489 enableval="$enable_dnd"
7490
7491 if test "$enableval" = yes; then
7492 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=yes'
7493 else
7494 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=no'
7495 fi
7496
7497else
7498
7499 LINE=`grep "wxUSE_DRAG_AND_DROP" ${wx_arg_cache_file}`
7500 if test "x$LINE" != x ; then
7501 eval "DEFAULT_$LINE"
7502 else
7503 no_cache=1
7504 fi
7505
7506 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP='$DEFAULT_wxUSE_DRAG_AND_DROP
7507
7508fi;
7509
7510 eval "$ac_cv_use_dnd"
7511 if test "$no_cache" != 1; then
7512 echo $ac_cv_use_dnd >> ${wx_arg_cache_file}.tmp
7513 fi
7514
7515 if test "$wxUSE_DRAG_AND_DROP" = yes; then
7516 echo "$as_me:$LINENO: result: yes" >&5
7517echo "${ECHO_T}yes" >&6
7518 else
7519 echo "$as_me:$LINENO: result: no" >&5
7520echo "${ECHO_T}no" >&6
7521 fi
7522
7523
7524 enablestring=
7525 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-metafile" >&5
7526echo $ECHO_N "checking for --${enablestring:-enable}-metafile... $ECHO_C" >&6
7527 no_cache=0
7528 # Check whether --enable-metafile or --disable-metafile was given.
7529if test "${enable_metafile+set}" = set; then
7530 enableval="$enable_metafile"
7531
7532 if test "$enableval" = yes; then
7533 ac_cv_use_metafile='wxUSE_METAFILE=yes'
7534 else
7535 ac_cv_use_metafile='wxUSE_METAFILE=no'
7536 fi
7537
7538else
7539
7540 LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}`
7541 if test "x$LINE" != x ; then
7542 eval "DEFAULT_$LINE"
7543 else
7544 no_cache=1
7545 fi
7546
7547 ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE
7548
7549fi;
7550
7551 eval "$ac_cv_use_metafile"
7552 if test "$no_cache" != 1; then
7553 echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp
7554 fi
7555
7556 if test "$wxUSE_METAFILE" = yes; then
7557 echo "$as_me:$LINENO: result: yes" >&5
7558echo "${ECHO_T}yes" >&6
7559 else
7560 echo "$as_me:$LINENO: result: no" >&5
7561echo "${ECHO_T}no" >&6
7562 fi
7563
7564
7565
7566
7567
7568 enablestring=
7569 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-controls" >&5
7570echo $ECHO_N "checking for --${enablestring:-enable}-controls... $ECHO_C" >&6
7571 no_cache=0
7572 # Check whether --enable-controls or --disable-controls was given.
7573if test "${enable_controls+set}" = set; then
7574 enableval="$enable_controls"
7575
7576 if test "$enableval" = yes; then
7577 ac_cv_use_controls='wxUSE_CONTROLS=yes'
7578 else
7579 ac_cv_use_controls='wxUSE_CONTROLS=no'
7580 fi
7581
7582else
7583
7584 LINE=`grep "wxUSE_CONTROLS" ${wx_arg_cache_file}`
7585 if test "x$LINE" != x ; then
7586 eval "DEFAULT_$LINE"
7587 else
7588 no_cache=1
7589 fi
7590
7591 ac_cv_use_controls='wxUSE_CONTROLS='$DEFAULT_wxUSE_CONTROLS
7592
7593fi;
7594
7595 eval "$ac_cv_use_controls"
7596 if test "$no_cache" != 1; then
7597 echo $ac_cv_use_controls >> ${wx_arg_cache_file}.tmp
7598 fi
7599
7600 if test "$wxUSE_CONTROLS" = yes; then
7601 echo "$as_me:$LINENO: result: yes" >&5
7602echo "${ECHO_T}yes" >&6
7603 else
7604 echo "$as_me:$LINENO: result: no" >&5
7605echo "${ECHO_T}no" >&6
7606 fi
7607
7608
7609if test "$wxUSE_CONTROLS" = "yes"; then
7610 DEFAULT_wxUSE_ACCEL=yes
7611 DEFAULT_wxUSE_BMPBUTTON=yes
7612 DEFAULT_wxUSE_BUTTON=yes
da98e9be 7613 DEFAULT_wxUSE_CALCTRL=yes
a848cd7e
SC
7614 DEFAULT_wxUSE_CARET=yes
7615 DEFAULT_wxUSE_COMBOBOX=yes
7616 DEFAULT_wxUSE_CHECKBOX=yes
7617 DEFAULT_wxUSE_CHECKLISTBOX=yes
7618 DEFAULT_wxUSE_CHOICE=yes
92bbdbcd 7619 DEFAULT_wxUSE_CHOICEBOOK=yes
e9263684
VZ
7620 DEFAULT_wxUSE_COLOURPICKERCTRL=yes
7621 DEFAULT_wxUSE_COMBOBOX=yes
da98e9be 7622 DEFAULT_wxUSE_DATEPICKCTRL=yes
e9263684
VZ
7623 DEFAULT_wxUSE_DISPLAY=yes
7624 DEFAULT_wxUSE_DIRPICKERCTRL=yes
7625 DEFAULT_wxUSE_FILEPICKERCTRL=yes
7626 DEFAULT_wxUSE_FONTPICKERCTRL=yes
a848cd7e
SC
7627 DEFAULT_wxUSE_GAUGE=yes
7628 DEFAULT_wxUSE_GRID=yes
6954625c 7629 DEFAULT_wxUSE_HYPERLINKCTRL=yes
20e34ecc 7630 DEFAULT_wxUSE_DATAVIEWCTRL=no
a848cd7e
SC
7631 DEFAULT_wxUSE_IMAGLIST=yes
7632 DEFAULT_wxUSE_LISTBOOK=yes
7633 DEFAULT_wxUSE_LISTBOX=yes
7634 DEFAULT_wxUSE_LISTCTRL=yes
7635 DEFAULT_wxUSE_NOTEBOOK=yes
7636 DEFAULT_wxUSE_RADIOBOX=yes
7637 DEFAULT_wxUSE_RADIOBTN=yes
7638 DEFAULT_wxUSE_SASH=yes
7639 DEFAULT_wxUSE_SCROLLBAR=yes
7640 DEFAULT_wxUSE_SLIDER=yes
7641 DEFAULT_wxUSE_SPINBTN=yes
7642 DEFAULT_wxUSE_SPINCTRL=yes
7643 DEFAULT_wxUSE_SPLITTER=yes
7644 DEFAULT_wxUSE_STATBMP=yes
7645 DEFAULT_wxUSE_STATBOX=yes
7646 DEFAULT_wxUSE_STATLINE=yes
7647 DEFAULT_wxUSE_STATUSBAR=yes
7648 DEFAULT_wxUSE_TAB_DIALOG=yes
7649 DEFAULT_wxUSE_TOGGLEBTN=yes
7650 DEFAULT_wxUSE_TOOLBAR=yes
7651 DEFAULT_wxUSE_TOOLBAR_NATIVE=yes
7652 DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes
7653 DEFAULT_wxUSE_TOOLTIPS=yes
0093c2fc 7654 DEFAULT_wxUSE_TREEBOOK=yes
5ec3bc43 7655 DEFAULT_wxUSE_TOOLBOOK=yes
a848cd7e
SC
7656 DEFAULT_wxUSE_TREECTRL=yes
7657 DEFAULT_wxUSE_POPUPWIN=yes
7658 DEFAULT_wxUSE_TIPWINDOW=yes
7659elif test "$wxUSE_CONTROLS" = "no"; then
7660 DEFAULT_wxUSE_ACCEL=no
7661 DEFAULT_wxUSE_BMPBUTTON=no
7662 DEFAULT_wxUSE_BUTTON=no
7663 DEFAULT_wxUSE_CALCTRL=no
7664 DEFAULT_wxUSE_CARET=no
7665 DEFAULT_wxUSE_COMBOBOX=no
7666 DEFAULT_wxUSE_CHECKBOX=no
7667 DEFAULT_wxUSE_CHECKLISTBOX=no
7668 DEFAULT_wxUSE_CHOICE=no
92bbdbcd 7669 DEFAULT_wxUSE_CHOICEBOOK=no
e9263684
VZ
7670 DEFAULT_wxUSE_COLOURPICKERCTRL=no
7671 DEFAULT_wxUSE_COMBOBOX=no
da98e9be 7672 DEFAULT_wxUSE_DATEPICKCTRL=no
e9263684
VZ
7673 DEFAULT_wxUSE_DISPLAY=no
7674 DEFAULT_wxUSE_DIRPICKERCTRL=no
7675 DEFAULT_wxUSE_FILEPICKERCTRL=no
7676 DEFAULT_wxUSE_FONTPICKERCTRL=no
a848cd7e
SC
7677 DEFAULT_wxUSE_GAUGE=no
7678 DEFAULT_wxUSE_GRID=no
6954625c 7679 DEFAULT_wxUSE_HYPERLINKCTRL=no
20e34ecc 7680 DEFAULT_wxUSE_DATAVIEWCTRL=no
a848cd7e
SC
7681 DEFAULT_wxUSE_IMAGLIST=no
7682 DEFAULT_wxUSE_LISTBOOK=no
7683 DEFAULT_wxUSE_LISTBOX=no
7684 DEFAULT_wxUSE_LISTCTRL=no
7685 DEFAULT_wxUSE_NOTEBOOK=no
7686 DEFAULT_wxUSE_RADIOBOX=no
7687 DEFAULT_wxUSE_RADIOBTN=no
7688 DEFAULT_wxUSE_SASH=no
7689 DEFAULT_wxUSE_SCROLLBAR=no
7690 DEFAULT_wxUSE_SLIDER=no
7691 DEFAULT_wxUSE_SPINBTN=no
7692 DEFAULT_wxUSE_SPINCTRL=no
7693 DEFAULT_wxUSE_SPLITTER=no
7694 DEFAULT_wxUSE_STATBMP=no
7695 DEFAULT_wxUSE_STATBOX=no
7696 DEFAULT_wxUSE_STATLINE=no
7697 DEFAULT_wxUSE_STATUSBAR=no
7698 DEFAULT_wxUSE_TAB_DIALOG=no
7699 DEFAULT_wxUSE_TOGGLEBTN=no
7700 DEFAULT_wxUSE_TOOLBAR=no
7701 DEFAULT_wxUSE_TOOLBAR_NATIVE=no
7702 DEFAULT_wxUSE_TOOLBAR_SIMPLE=no
7703 DEFAULT_wxUSE_TOOLTIPS=no
0093c2fc 7704 DEFAULT_wxUSE_TREEBOOK=no
5ec3bc43 7705 DEFAULT_wxUSE_TOOLBOOK=no
a848cd7e
SC
7706 DEFAULT_wxUSE_TREECTRL=no
7707 DEFAULT_wxUSE_POPUPWIN=no
7708 DEFAULT_wxUSE_TIPWINDOW=no
7709fi
7710
a848cd7e
SC
7711
7712 enablestring=
7713 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-accel" >&5
7714echo $ECHO_N "checking for --${enablestring:-enable}-accel... $ECHO_C" >&6
7715 no_cache=0
7716 # Check whether --enable-accel or --disable-accel was given.
7717if test "${enable_accel+set}" = set; then
7718 enableval="$enable_accel"
7719
7720 if test "$enableval" = yes; then
7721 ac_cv_use_accel='wxUSE_ACCEL=yes'
7722 else
7723 ac_cv_use_accel='wxUSE_ACCEL=no'
7724 fi
7725
7726else
7727
7728 LINE=`grep "wxUSE_ACCEL" ${wx_arg_cache_file}`
7729 if test "x$LINE" != x ; then
7730 eval "DEFAULT_$LINE"
7731 else
7732 no_cache=1
7733 fi
7734
7735 ac_cv_use_accel='wxUSE_ACCEL='$DEFAULT_wxUSE_ACCEL
7736
7737fi;
7738
7739 eval "$ac_cv_use_accel"
7740 if test "$no_cache" != 1; then
7741 echo $ac_cv_use_accel >> ${wx_arg_cache_file}.tmp
7742 fi
7743
7744 if test "$wxUSE_ACCEL" = yes; then
7745 echo "$as_me:$LINENO: result: yes" >&5
7746echo "${ECHO_T}yes" >&6
7747 else
7748 echo "$as_me:$LINENO: result: no" >&5
7749echo "${ECHO_T}no" >&6
7750 fi
7751
7752
7753 enablestring=
7754 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-button" >&5
7755echo $ECHO_N "checking for --${enablestring:-enable}-button... $ECHO_C" >&6
7756 no_cache=0
7757 # Check whether --enable-button or --disable-button was given.
7758if test "${enable_button+set}" = set; then
7759 enableval="$enable_button"
7760
7761 if test "$enableval" = yes; then
7762 ac_cv_use_button='wxUSE_BUTTON=yes'
7763 else
7764 ac_cv_use_button='wxUSE_BUTTON=no'
7765 fi
7766
7767else
7768
7769 LINE=`grep "wxUSE_BUTTON" ${wx_arg_cache_file}`
7770 if test "x$LINE" != x ; then
7771 eval "DEFAULT_$LINE"
7772 else
7773 no_cache=1
7774 fi
7775
7776 ac_cv_use_button='wxUSE_BUTTON='$DEFAULT_wxUSE_BUTTON
7777
7778fi;
7779
7780 eval "$ac_cv_use_button"
7781 if test "$no_cache" != 1; then
7782 echo $ac_cv_use_button >> ${wx_arg_cache_file}.tmp
7783 fi
7784
7785 if test "$wxUSE_BUTTON" = yes; then
7786 echo "$as_me:$LINENO: result: yes" >&5
7787echo "${ECHO_T}yes" >&6
7788 else
7789 echo "$as_me:$LINENO: result: no" >&5
7790echo "${ECHO_T}no" >&6
7791 fi
7792
7793
7794 enablestring=
7795 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-bmpbutton" >&5
7796echo $ECHO_N "checking for --${enablestring:-enable}-bmpbutton... $ECHO_C" >&6
7797 no_cache=0
7798 # Check whether --enable-bmpbutton or --disable-bmpbutton was given.
7799if test "${enable_bmpbutton+set}" = set; then
7800 enableval="$enable_bmpbutton"
7801
7802 if test "$enableval" = yes; then
7803 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=yes'
7804 else
7805 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=no'
7806 fi
7807
7808else
7809
7810 LINE=`grep "wxUSE_BMPBUTTON" ${wx_arg_cache_file}`
7811 if test "x$LINE" != x ; then
7812 eval "DEFAULT_$LINE"
7813 else
7814 no_cache=1
7815 fi
7816
7817 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON='$DEFAULT_wxUSE_BMPBUTTON
7818
7819fi;
7820
7821 eval "$ac_cv_use_bmpbutton"
7822 if test "$no_cache" != 1; then
7823 echo $ac_cv_use_bmpbutton >> ${wx_arg_cache_file}.tmp
7824 fi
7825
7826 if test "$wxUSE_BMPBUTTON" = yes; then
7827 echo "$as_me:$LINENO: result: yes" >&5
7828echo "${ECHO_T}yes" >&6
7829 else
7830 echo "$as_me:$LINENO: result: no" >&5
7831echo "${ECHO_T}no" >&6
7832 fi
7833
7834
7835 enablestring=
7836 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-calendar" >&5
7837echo $ECHO_N "checking for --${enablestring:-enable}-calendar... $ECHO_C" >&6
7838 no_cache=0
7839 # Check whether --enable-calendar or --disable-calendar was given.
7840if test "${enable_calendar+set}" = set; then
7841 enableval="$enable_calendar"
7842
7843 if test "$enableval" = yes; then
7844 ac_cv_use_calendar='wxUSE_CALCTRL=yes'
7845 else
7846 ac_cv_use_calendar='wxUSE_CALCTRL=no'
7847 fi
7848
7849else
7850
7851 LINE=`grep "wxUSE_CALCTRL" ${wx_arg_cache_file}`
7852 if test "x$LINE" != x ; then
7853 eval "DEFAULT_$LINE"
7854 else
7855 no_cache=1
7856 fi
7857
7858 ac_cv_use_calendar='wxUSE_CALCTRL='$DEFAULT_wxUSE_CALCTRL
7859
7860fi;
7861
7862 eval "$ac_cv_use_calendar"
7863 if test "$no_cache" != 1; then
7864 echo $ac_cv_use_calendar >> ${wx_arg_cache_file}.tmp
7865 fi
7866
7867 if test "$wxUSE_CALCTRL" = yes; then
7868 echo "$as_me:$LINENO: result: yes" >&5
7869echo "${ECHO_T}yes" >&6
7870 else
7871 echo "$as_me:$LINENO: result: no" >&5
7872echo "${ECHO_T}no" >&6
7873 fi
7874
7875
7876 enablestring=
7877 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-caret" >&5
7878echo $ECHO_N "checking for --${enablestring:-enable}-caret... $ECHO_C" >&6
7879 no_cache=0
7880 # Check whether --enable-caret or --disable-caret was given.
7881if test "${enable_caret+set}" = set; then
7882 enableval="$enable_caret"
7883
7884 if test "$enableval" = yes; then
7885 ac_cv_use_caret='wxUSE_CARET=yes'
7886 else
7887 ac_cv_use_caret='wxUSE_CARET=no'
7888 fi
7889
7890else
7891
7892 LINE=`grep "wxUSE_CARET" ${wx_arg_cache_file}`
7893 if test "x$LINE" != x ; then
7894 eval "DEFAULT_$LINE"
7895 else
7896 no_cache=1
7897 fi
7898
7899 ac_cv_use_caret='wxUSE_CARET='$DEFAULT_wxUSE_CARET
7900
7901fi;
7902
7903 eval "$ac_cv_use_caret"
7904 if test "$no_cache" != 1; then
7905 echo $ac_cv_use_caret >> ${wx_arg_cache_file}.tmp
7906 fi
7907
7908 if test "$wxUSE_CARET" = yes; then
7909 echo "$as_me:$LINENO: result: yes" >&5
7910echo "${ECHO_T}yes" >&6
7911 else
7912 echo "$as_me:$LINENO: result: no" >&5
7913echo "${ECHO_T}no" >&6
7914 fi
7915
7916
7917 enablestring=
7918 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-checkbox" >&5
7919echo $ECHO_N "checking for --${enablestring:-enable}-checkbox... $ECHO_C" >&6
7920 no_cache=0
7921 # Check whether --enable-checkbox or --disable-checkbox was given.
7922if test "${enable_checkbox+set}" = set; then
7923 enableval="$enable_checkbox"
7924
7925 if test "$enableval" = yes; then
7926 ac_cv_use_checkbox='wxUSE_CHECKBOX=yes'
7927 else
7928 ac_cv_use_checkbox='wxUSE_CHECKBOX=no'
7929 fi
7930
7931else
7932
7933 LINE=`grep "wxUSE_CHECKBOX" ${wx_arg_cache_file}`
7934 if test "x$LINE" != x ; then
7935 eval "DEFAULT_$LINE"
7936 else
7937 no_cache=1
7938 fi
7939
7940 ac_cv_use_checkbox='wxUSE_CHECKBOX='$DEFAULT_wxUSE_CHECKBOX
7941
7942fi;
7943
7944 eval "$ac_cv_use_checkbox"
7945 if test "$no_cache" != 1; then
7946 echo $ac_cv_use_checkbox >> ${wx_arg_cache_file}.tmp
7947 fi
7948
7949 if test "$wxUSE_CHECKBOX" = yes; then
7950 echo "$as_me:$LINENO: result: yes" >&5
7951echo "${ECHO_T}yes" >&6
7952 else
7953 echo "$as_me:$LINENO: result: no" >&5
7954echo "${ECHO_T}no" >&6
7955 fi
7956
7957
7958 enablestring=
7959 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-checklst" >&5
7960echo $ECHO_N "checking for --${enablestring:-enable}-checklst... $ECHO_C" >&6
7961 no_cache=0
7962 # Check whether --enable-checklst or --disable-checklst was given.
7963if test "${enable_checklst+set}" = set; then
7964 enableval="$enable_checklst"
7965
7966 if test "$enableval" = yes; then
7967 ac_cv_use_checklst='wxUSE_CHECKLST=yes'
7968 else
7969 ac_cv_use_checklst='wxUSE_CHECKLST=no'
7970 fi
7971
7972else
7973
7974 LINE=`grep "wxUSE_CHECKLST" ${wx_arg_cache_file}`
7975 if test "x$LINE" != x ; then
7976 eval "DEFAULT_$LINE"
7977 else
7978 no_cache=1
7979 fi
7980
7981 ac_cv_use_checklst='wxUSE_CHECKLST='$DEFAULT_wxUSE_CHECKLST
7982
7983fi;
7984
7985 eval "$ac_cv_use_checklst"
7986 if test "$no_cache" != 1; then
7987 echo $ac_cv_use_checklst >> ${wx_arg_cache_file}.tmp
7988 fi
7989
7990 if test "$wxUSE_CHECKLST" = yes; then
7991 echo "$as_me:$LINENO: result: yes" >&5
7992echo "${ECHO_T}yes" >&6
7993 else
7994 echo "$as_me:$LINENO: result: no" >&5
7995echo "${ECHO_T}no" >&6
7996 fi
7997
7998
7999 enablestring=
8000 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choice" >&5
8001echo $ECHO_N "checking for --${enablestring:-enable}-choice... $ECHO_C" >&6
8002 no_cache=0
8003 # Check whether --enable-choice or --disable-choice was given.
8004if test "${enable_choice+set}" = set; then
8005 enableval="$enable_choice"
8006
8007 if test "$enableval" = yes; then
8008 ac_cv_use_choice='wxUSE_CHOICE=yes'
8009 else
8010 ac_cv_use_choice='wxUSE_CHOICE=no'
8011 fi
8012
8013else
8014
8015 LINE=`grep "wxUSE_CHOICE" ${wx_arg_cache_file}`
8016 if test "x$LINE" != x ; then
8017 eval "DEFAULT_$LINE"
8018 else
8019 no_cache=1
8020 fi
8021
8022 ac_cv_use_choice='wxUSE_CHOICE='$DEFAULT_wxUSE_CHOICE
8023
8024fi;
8025
8026 eval "$ac_cv_use_choice"
8027 if test "$no_cache" != 1; then
8028 echo $ac_cv_use_choice >> ${wx_arg_cache_file}.tmp
8029 fi
8030
8031 if test "$wxUSE_CHOICE" = yes; then
8032 echo "$as_me:$LINENO: result: yes" >&5
8033echo "${ECHO_T}yes" >&6
8034 else
8035 echo "$as_me:$LINENO: result: no" >&5
8036echo "${ECHO_T}no" >&6
8037 fi
8038
8039
92bbdbcd
WS
8040 enablestring=
8041 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choicebook" >&5
8042echo $ECHO_N "checking for --${enablestring:-enable}-choicebook... $ECHO_C" >&6
8043 no_cache=0
8044 # Check whether --enable-choicebook or --disable-choicebook was given.
8045if test "${enable_choicebook+set}" = set; then
8046 enableval="$enable_choicebook"
8047
8048 if test "$enableval" = yes; then
8049 ac_cv_use_choicebook='wxUSE_CHOICEBOOK=yes'
8050 else
8051 ac_cv_use_choicebook='wxUSE_CHOICEBOOK=no'
8052 fi
8053
8054else
8055
8056 LINE=`grep "wxUSE_CHOICEBOOK" ${wx_arg_cache_file}`
8057 if test "x$LINE" != x ; then
8058 eval "DEFAULT_$LINE"
8059 else
8060 no_cache=1
8061 fi
8062
8063 ac_cv_use_choicebook='wxUSE_CHOICEBOOK='$DEFAULT_wxUSE_CHOICEBOOK
8064
8065fi;
8066
8067 eval "$ac_cv_use_choicebook"
8068 if test "$no_cache" != 1; then
8069 echo $ac_cv_use_choicebook >> ${wx_arg_cache_file}.tmp
8070 fi
8071
8072 if test "$wxUSE_CHOICEBOOK" = yes; then
8073 echo "$as_me:$LINENO: result: yes" >&5
8074echo "${ECHO_T}yes" >&6
8075 else
8076 echo "$as_me:$LINENO: result: no" >&5
8077echo "${ECHO_T}no" >&6
8078 fi
8079
8080
e9263684
VZ
8081 enablestring=
8082 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-colourpicker" >&5
8083echo $ECHO_N "checking for --${enablestring:-enable}-colourpicker... $ECHO_C" >&6
8084 no_cache=0
8085 # Check whether --enable-colourpicker or --disable-colourpicker was given.
8086if test "${enable_colourpicker+set}" = set; then
8087 enableval="$enable_colourpicker"
8088
8089 if test "$enableval" = yes; then
8090 ac_cv_use_colourpicker='wxUSE_COLOURPICKERCTRL=yes'
8091 else
8092 ac_cv_use_colourpicker='wxUSE_COLOURPICKERCTRL=no'
8093 fi
8094
8095else
8096
8097 LINE=`grep "wxUSE_COLOURPICKERCTRL" ${wx_arg_cache_file}`
8098 if test "x$LINE" != x ; then
8099 eval "DEFAULT_$LINE"
8100 else
8101 no_cache=1
8102 fi
8103
8104 ac_cv_use_colourpicker='wxUSE_COLOURPICKERCTRL='$DEFAULT_wxUSE_COLOURPICKERCTRL
8105
8106fi;
8107
8108 eval "$ac_cv_use_colourpicker"
8109 if test "$no_cache" != 1; then
8110 echo $ac_cv_use_colourpicker >> ${wx_arg_cache_file}.tmp
8111 fi
8112
8113 if test "$wxUSE_COLOURPICKERCTRL" = yes; then
8114 echo "$as_me:$LINENO: result: yes" >&5
8115echo "${ECHO_T}yes" >&6
8116 else
8117 echo "$as_me:$LINENO: result: no" >&5
8118echo "${ECHO_T}no" >&6
8119 fi
8120
8121
a848cd7e
SC
8122 enablestring=
8123 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-combobox" >&5
8124echo $ECHO_N "checking for --${enablestring:-enable}-combobox... $ECHO_C" >&6
8125 no_cache=0
8126 # Check whether --enable-combobox or --disable-combobox was given.
8127if test "${enable_combobox+set}" = set; then
8128 enableval="$enable_combobox"
8129
8130 if test "$enableval" = yes; then
8131 ac_cv_use_combobox='wxUSE_COMBOBOX=yes'
8132 else
8133 ac_cv_use_combobox='wxUSE_COMBOBOX=no'
8134 fi
8135
8136else
8137
8138 LINE=`grep "wxUSE_COMBOBOX" ${wx_arg_cache_file}`
8139 if test "x$LINE" != x ; then
8140 eval "DEFAULT_$LINE"
8141 else
8142 no_cache=1
8143 fi
8144
8145 ac_cv_use_combobox='wxUSE_COMBOBOX='$DEFAULT_wxUSE_COMBOBOX
8146
8147fi;
8148
8149 eval "$ac_cv_use_combobox"
8150 if test "$no_cache" != 1; then
8151 echo $ac_cv_use_combobox >> ${wx_arg_cache_file}.tmp
8152 fi
8153
8154 if test "$wxUSE_COMBOBOX" = yes; then
8155 echo "$as_me:$LINENO: result: yes" >&5
8156echo "${ECHO_T}yes" >&6
8157 else
8158 echo "$as_me:$LINENO: result: no" >&5
8159echo "${ECHO_T}no" >&6
8160 fi
8161
8162
642bcba9 8163 enablestring=
a57d600f
VZ
8164 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-comboctrl" >&5
8165echo $ECHO_N "checking for --${enablestring:-enable}-comboctrl... $ECHO_C" >&6
642bcba9 8166 no_cache=0
a57d600f
VZ
8167 # Check whether --enable-comboctrl or --disable-comboctrl was given.
8168if test "${enable_comboctrl+set}" = set; then
8169 enableval="$enable_comboctrl"
642bcba9
VZ
8170
8171 if test "$enableval" = yes; then
a57d600f 8172 ac_cv_use_comboctrl='wxUSE_COMBOCTRL=yes'
642bcba9 8173 else
a57d600f 8174 ac_cv_use_comboctrl='wxUSE_COMBOCTRL=no'
642bcba9
VZ
8175 fi
8176
8177else
8178
a57d600f 8179 LINE=`grep "wxUSE_COMBOCTRL" ${wx_arg_cache_file}`
642bcba9
VZ
8180 if test "x$LINE" != x ; then
8181 eval "DEFAULT_$LINE"
8182 else
8183 no_cache=1
8184 fi
8185
a57d600f 8186 ac_cv_use_comboctrl='wxUSE_COMBOCTRL='$DEFAULT_wxUSE_COMBOCTRL
642bcba9
VZ
8187
8188fi;
8189
a57d600f 8190 eval "$ac_cv_use_comboctrl"
642bcba9 8191 if test "$no_cache" != 1; then
a57d600f 8192 echo $ac_cv_use_comboctrl >> ${wx_arg_cache_file}.tmp
642bcba9
VZ
8193 fi
8194
a57d600f 8195 if test "$wxUSE_COMBOCTRL" = yes; then
642bcba9
VZ
8196 echo "$as_me:$LINENO: result: yes" >&5
8197echo "${ECHO_T}yes" >&6
8198 else
8199 echo "$as_me:$LINENO: result: no" >&5
8200echo "${ECHO_T}no" >&6
8201 fi
8202
8203
da98e9be
VZ
8204 enablestring=
8205 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-datepick" >&5
8206echo $ECHO_N "checking for --${enablestring:-enable}-datepick... $ECHO_C" >&6
8207 no_cache=0
8208 # Check whether --enable-datepick or --disable-datepick was given.
8209if test "${enable_datepick+set}" = set; then
8210 enableval="$enable_datepick"
8211
8212 if test "$enableval" = yes; then
8213 ac_cv_use_datepick='wxUSE_DATEPICKCTRL=yes'
8214 else
8215 ac_cv_use_datepick='wxUSE_DATEPICKCTRL=no'
8216 fi
8217
8218else
8219
8220 LINE=`grep "wxUSE_DATEPICKCTRL" ${wx_arg_cache_file}`
8221 if test "x$LINE" != x ; then
8222 eval "DEFAULT_$LINE"
8223 else
8224 no_cache=1
8225 fi
8226
8227 ac_cv_use_datepick='wxUSE_DATEPICKCTRL='$DEFAULT_wxUSE_DATEPICKCTRL
8228
8229fi;
8230
8231 eval "$ac_cv_use_datepick"
8232 if test "$no_cache" != 1; then
8233 echo $ac_cv_use_datepick >> ${wx_arg_cache_file}.tmp
8234 fi
8235
8236 if test "$wxUSE_DATEPICKCTRL" = yes; then
8237 echo "$as_me:$LINENO: result: yes" >&5
8238echo "${ECHO_T}yes" >&6
8239 else
8240 echo "$as_me:$LINENO: result: no" >&5
8241echo "${ECHO_T}no" >&6
8242 fi
8243
8244
e9263684
VZ
8245 enablestring=
8246 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dirpicker" >&5
8247echo $ECHO_N "checking for --${enablestring:-enable}-dirpicker... $ECHO_C" >&6
8248 no_cache=0
8249 # Check whether --enable-dirpicker or --disable-dirpicker was given.
8250if test "${enable_dirpicker+set}" = set; then
8251 enableval="$enable_dirpicker"
8252
8253 if test "$enableval" = yes; then
8254 ac_cv_use_dirpicker='wxUSE_DIRPICKERCTRL=yes'
8255 else
8256 ac_cv_use_dirpicker='wxUSE_DIRPICKERCTRL=no'
8257 fi
8258
8259else
8260
8261 LINE=`grep "wxUSE_DIRPICKERCTRL" ${wx_arg_cache_file}`
8262 if test "x$LINE" != x ; then
8263 eval "DEFAULT_$LINE"
8264 else
8265 no_cache=1
8266 fi
8267
8268 ac_cv_use_dirpicker='wxUSE_DIRPICKERCTRL='$DEFAULT_wxUSE_DIRPICKERCTRL
8269
8270fi;
8271
8272 eval "$ac_cv_use_dirpicker"
8273 if test "$no_cache" != 1; then
8274 echo $ac_cv_use_dirpicker >> ${wx_arg_cache_file}.tmp
8275 fi
8276
8277 if test "$wxUSE_DIRPICKERCTRL" = yes; then
8278 echo "$as_me:$LINENO: result: yes" >&5
8279echo "${ECHO_T}yes" >&6
8280 else
8281 echo "$as_me:$LINENO: result: no" >&5
8282echo "${ECHO_T}no" >&6
8283 fi
8284
8285
a848cd7e
SC
8286 enablestring=
8287 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-display" >&5
8288echo $ECHO_N "checking for --${enablestring:-enable}-display... $ECHO_C" >&6
8289 no_cache=0
8290 # Check whether --enable-display or --disable-display was given.
8291if test "${enable_display+set}" = set; then
8292 enableval="$enable_display"
8293
8294 if test "$enableval" = yes; then
8295 ac_cv_use_display='wxUSE_DISPLAY=yes'
8296 else
8297 ac_cv_use_display='wxUSE_DISPLAY=no'
8298 fi
8299
8300else
8301
8302 LINE=`grep "wxUSE_DISPLAY" ${wx_arg_cache_file}`
8303 if test "x$LINE" != x ; then
8304 eval "DEFAULT_$LINE"
8305 else
8306 no_cache=1
8307 fi
8308
8309 ac_cv_use_display='wxUSE_DISPLAY='$DEFAULT_wxUSE_DISPLAY
8310
8311fi;
8312
8313 eval "$ac_cv_use_display"
8314 if test "$no_cache" != 1; then
8315 echo $ac_cv_use_display >> ${wx_arg_cache_file}.tmp
8316 fi
8317
8318 if test "$wxUSE_DISPLAY" = yes; then
8319 echo "$as_me:$LINENO: result: yes" >&5
8320echo "${ECHO_T}yes" >&6
8321 else
8322 echo "$as_me:$LINENO: result: no" >&5
8323echo "${ECHO_T}no" >&6
8324 fi
8325
8326
e9263684
VZ
8327 enablestring=
8328 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-filepicker" >&5
8329echo $ECHO_N "checking for --${enablestring:-enable}-filepicker... $ECHO_C" >&6
8330 no_cache=0
8331 # Check whether --enable-filepicker or --disable-filepicker was given.
8332if test "${enable_filepicker+set}" = set; then
8333 enableval="$enable_filepicker"
8334
8335 if test "$enableval" = yes; then
8336 ac_cv_use_filepicker='wxUSE_FILEPICKERCTRL=yes'
8337 else
8338 ac_cv_use_filepicker='wxUSE_FILEPICKERCTRL=no'
8339 fi
8340
8341else
8342
8343 LINE=`grep "wxUSE_FILEPICKERCTRL" ${wx_arg_cache_file}`
8344 if test "x$LINE" != x ; then
8345 eval "DEFAULT_$LINE"
8346 else
8347 no_cache=1
8348 fi
8349
8350 ac_cv_use_filepicker='wxUSE_FILEPICKERCTRL='$DEFAULT_wxUSE_FILEPICKERCTRL
8351
8352fi;
8353
8354 eval "$ac_cv_use_filepicker"
8355 if test "$no_cache" != 1; then
8356 echo $ac_cv_use_filepicker >> ${wx_arg_cache_file}.tmp
8357 fi
8358
8359 if test "$wxUSE_FILEPICKERCTRL" = yes; then
8360 echo "$as_me:$LINENO: result: yes" >&5
8361echo "${ECHO_T}yes" >&6
8362 else
8363 echo "$as_me:$LINENO: result: no" >&5
8364echo "${ECHO_T}no" >&6
8365 fi
8366
8367
8368 enablestring=
8369 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fontpicker" >&5
8370echo $ECHO_N "checking for --${enablestring:-enable}-fontpicker... $ECHO_C" >&6
8371 no_cache=0
8372 # Check whether --enable-fontpicker or --disable-fontpicker was given.
8373if test "${enable_fontpicker+set}" = set; then
8374 enableval="$enable_fontpicker"
8375
8376 if test "$enableval" = yes; then
8377 ac_cv_use_fontpicker='wxUSE_FONTPICKERCTRL=yes'
8378 else
8379 ac_cv_use_fontpicker='wxUSE_FONTPICKERCTRL=no'
8380 fi
8381
8382else
8383
8384 LINE=`grep "wxUSE_FONTPICKERCTRL" ${wx_arg_cache_file}`
8385 if test "x$LINE" != x ; then
8386 eval "DEFAULT_$LINE"
8387 else
8388 no_cache=1
8389 fi
8390
8391 ac_cv_use_fontpicker='wxUSE_FONTPICKERCTRL='$DEFAULT_wxUSE_FONTPICKERCTRL
8392
8393fi;
8394
8395 eval "$ac_cv_use_fontpicker"
8396 if test "$no_cache" != 1; then
8397 echo $ac_cv_use_fontpicker >> ${wx_arg_cache_file}.tmp
8398 fi
8399
8400 if test "$wxUSE_FONTPICKERCTRL" = yes; then
8401 echo "$as_me:$LINENO: result: yes" >&5
8402echo "${ECHO_T}yes" >&6
8403 else
8404 echo "$as_me:$LINENO: result: no" >&5
8405echo "${ECHO_T}no" >&6
8406 fi
8407
8408
a848cd7e
SC
8409 enablestring=
8410 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gauge" >&5
8411echo $ECHO_N "checking for --${enablestring:-enable}-gauge... $ECHO_C" >&6
8412 no_cache=0
8413 # Check whether --enable-gauge or --disable-gauge was given.
8414if test "${enable_gauge+set}" = set; then
8415 enableval="$enable_gauge"
8416
8417 if test "$enableval" = yes; then
8418 ac_cv_use_gauge='wxUSE_GAUGE=yes'
8419 else
8420 ac_cv_use_gauge='wxUSE_GAUGE=no'
8421 fi
8422
8423else
8424
8425 LINE=`grep "wxUSE_GAUGE" ${wx_arg_cache_file}`
8426 if test "x$LINE" != x ; then
8427 eval "DEFAULT_$LINE"
8428 else
8429 no_cache=1
8430 fi
8431
8432 ac_cv_use_gauge='wxUSE_GAUGE='$DEFAULT_wxUSE_GAUGE
8433
8434fi;
8435
8436 eval "$ac_cv_use_gauge"
8437 if test "$no_cache" != 1; then
8438 echo $ac_cv_use_gauge >> ${wx_arg_cache_file}.tmp
8439 fi
8440
8441 if test "$wxUSE_GAUGE" = yes; then
8442 echo "$as_me:$LINENO: result: yes" >&5
8443echo "${ECHO_T}yes" >&6
8444 else
8445 echo "$as_me:$LINENO: result: no" >&5
8446echo "${ECHO_T}no" >&6
8447 fi
8448
8449
8450 enablestring=
8451 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-grid" >&5
8452echo $ECHO_N "checking for --${enablestring:-enable}-grid... $ECHO_C" >&6
8453 no_cache=0
8454 # Check whether --enable-grid or --disable-grid was given.
8455if test "${enable_grid+set}" = set; then
8456 enableval="$enable_grid"
8457
8458 if test "$enableval" = yes; then
8459 ac_cv_use_grid='wxUSE_GRID=yes'
8460 else
8461 ac_cv_use_grid='wxUSE_GRID=no'
8462 fi
8463
8464else
8465
8466 LINE=`grep "wxUSE_GRID" ${wx_arg_cache_file}`
8467 if test "x$LINE" != x ; then
8468 eval "DEFAULT_$LINE"
8469 else
8470 no_cache=1
8471 fi
8472
8473 ac_cv_use_grid='wxUSE_GRID='$DEFAULT_wxUSE_GRID
8474
8475fi;
8476
8477 eval "$ac_cv_use_grid"
8478 if test "$no_cache" != 1; then
8479 echo $ac_cv_use_grid >> ${wx_arg_cache_file}.tmp
8480 fi
8481
8482 if test "$wxUSE_GRID" = yes; then
8483 echo "$as_me:$LINENO: result: yes" >&5
8484echo "${ECHO_T}yes" >&6
8485 else
8486 echo "$as_me:$LINENO: result: no" >&5
8487echo "${ECHO_T}no" >&6
8488 fi
8489
8490
20e34ecc
RR
8491 enablestring=
8492 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dataviewctrl" >&5
8493echo $ECHO_N "checking for --${enablestring:-enable}-dataviewctrl... $ECHO_C" >&6
8494 no_cache=0
8495 # Check whether --enable-dataviewctrl or --disable-dataviewctrl was given.
8496if test "${enable_dataviewctrl+set}" = set; then
8497 enableval="$enable_dataviewctrl"
8498
8499 if test "$enableval" = yes; then
8500 ac_cv_use_dataviewctrl='wxUSE_DATAVIEWCTRL=yes'
8501 else
8502 ac_cv_use_dataviewctrl='wxUSE_DATAVIEWCTRL=no'
8503 fi
8504
8505else
8506
8507 LINE=`grep "wxUSE_DATAVIEWCTRL" ${wx_arg_cache_file}`
8508 if test "x$LINE" != x ; then
8509 eval "DEFAULT_$LINE"
8510 else
8511 no_cache=1
8512 fi
8513
8514 ac_cv_use_dataviewctrl='wxUSE_DATAVIEWCTRL='$DEFAULT_wxUSE_DATAVIEWCTRL
8515
8516fi;
8517
8518 eval "$ac_cv_use_dataviewctrl"
8519 if test "$no_cache" != 1; then
8520 echo $ac_cv_use_dataviewctrl >> ${wx_arg_cache_file}.tmp
8521 fi
8522
8523 if test "$wxUSE_DATAVIEWCTRL" = yes; then
8524 echo "$as_me:$LINENO: result: yes" >&5
8525echo "${ECHO_T}yes" >&6
8526 else
8527 echo "$as_me:$LINENO: result: no" >&5
8528echo "${ECHO_T}no" >&6
8529 fi
8530
8531
6954625c
VZ
8532 enablestring=
8533 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-hyperlink" >&5
8534echo $ECHO_N "checking for --${enablestring:-enable}-hyperlink... $ECHO_C" >&6
8535 no_cache=0
8536 # Check whether --enable-hyperlink or --disable-hyperlink was given.
8537if test "${enable_hyperlink+set}" = set; then
8538 enableval="$enable_hyperlink"
8539
8540 if test "$enableval" = yes; then
8541 ac_cv_use_hyperlink='wxUSE_HYPERLINKCTRL=yes'
8542 else
8543 ac_cv_use_hyperlink='wxUSE_HYPERLINKCTRL=no'
8544 fi
8545
8546else
8547
8548 LINE=`grep "wxUSE_HYPERLINKCTRL" ${wx_arg_cache_file}`
8549 if test "x$LINE" != x ; then
8550 eval "DEFAULT_$LINE"
8551 else
8552 no_cache=1
8553 fi
8554
8555 ac_cv_use_hyperlink='wxUSE_HYPERLINKCTRL='$DEFAULT_wxUSE_HYPERLINKCTRL
8556
8557fi;
8558
8559 eval "$ac_cv_use_hyperlink"
8560 if test "$no_cache" != 1; then
8561 echo $ac_cv_use_hyperlink >> ${wx_arg_cache_file}.tmp
8562 fi
8563
8564 if test "$wxUSE_HYPERLINKCTRL" = yes; then
8565 echo "$as_me:$LINENO: result: yes" >&5
8566echo "${ECHO_T}yes" >&6
8567 else
8568 echo "$as_me:$LINENO: result: no" >&5
8569echo "${ECHO_T}no" >&6
8570 fi
8571
8572
a848cd7e
SC
8573 enablestring=
8574 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-imaglist" >&5
8575echo $ECHO_N "checking for --${enablestring:-enable}-imaglist... $ECHO_C" >&6
8576 no_cache=0
8577 # Check whether --enable-imaglist or --disable-imaglist was given.
8578if test "${enable_imaglist+set}" = set; then
8579 enableval="$enable_imaglist"
8580
8581 if test "$enableval" = yes; then
8582 ac_cv_use_imaglist='wxUSE_IMAGLIST=yes'
8583 else
8584 ac_cv_use_imaglist='wxUSE_IMAGLIST=no'
8585 fi
8586
8587else
8588
8589 LINE=`grep "wxUSE_IMAGLIST" ${wx_arg_cache_file}`
8590 if test "x$LINE" != x ; then
8591 eval "DEFAULT_$LINE"
8592 else
8593 no_cache=1
8594 fi
8595
8596 ac_cv_use_imaglist='wxUSE_IMAGLIST='$DEFAULT_wxUSE_IMAGLIST
8597
8598fi;
8599
8600 eval "$ac_cv_use_imaglist"
8601 if test "$no_cache" != 1; then
8602 echo $ac_cv_use_imaglist >> ${wx_arg_cache_file}.tmp
8603 fi
8604
8605 if test "$wxUSE_IMAGLIST" = yes; then
8606 echo "$as_me:$LINENO: result: yes" >&5
8607echo "${ECHO_T}yes" >&6
8608 else
8609 echo "$as_me:$LINENO: result: no" >&5
8610echo "${ECHO_T}no" >&6
8611 fi
8612
8613
8614 enablestring=
8615 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listbook" >&5
8616echo $ECHO_N "checking for --${enablestring:-enable}-listbook... $ECHO_C" >&6
8617 no_cache=0
8618 # Check whether --enable-listbook or --disable-listbook was given.
8619if test "${enable_listbook+set}" = set; then
8620 enableval="$enable_listbook"
8621
8622 if test "$enableval" = yes; then
8623 ac_cv_use_listbook='wxUSE_LISTBOOK=yes'
8624 else
8625 ac_cv_use_listbook='wxUSE_LISTBOOK=no'
8626 fi
8627
8628else
8629
8630 LINE=`grep "wxUSE_LISTBOOK" ${wx_arg_cache_file}`
8631 if test "x$LINE" != x ; then
8632 eval "DEFAULT_$LINE"
8633 else
8634 no_cache=1
8635 fi
8636
8637 ac_cv_use_listbook='wxUSE_LISTBOOK='$DEFAULT_wxUSE_LISTBOOK
8638
8639fi;
8640
8641 eval "$ac_cv_use_listbook"
8642 if test "$no_cache" != 1; then
8643 echo $ac_cv_use_listbook >> ${wx_arg_cache_file}.tmp
8644 fi
8645
8646 if test "$wxUSE_LISTBOOK" = yes; then
8647 echo "$as_me:$LINENO: result: yes" >&5
8648echo "${ECHO_T}yes" >&6
8649 else
8650 echo "$as_me:$LINENO: result: no" >&5
8651echo "${ECHO_T}no" >&6
8652 fi
8653
8654
8655 enablestring=
8656 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listbox" >&5
8657echo $ECHO_N "checking for --${enablestring:-enable}-listbox... $ECHO_C" >&6
8658 no_cache=0
8659 # Check whether --enable-listbox or --disable-listbox was given.
8660if test "${enable_listbox+set}" = set; then
8661 enableval="$enable_listbox"
8662
8663 if test "$enableval" = yes; then
8664 ac_cv_use_listbox='wxUSE_LISTBOX=yes'
8665 else
8666 ac_cv_use_listbox='wxUSE_LISTBOX=no'
8667 fi
8668
8669else
8670
8671 LINE=`grep "wxUSE_LISTBOX" ${wx_arg_cache_file}`
8672 if test "x$LINE" != x ; then
8673 eval "DEFAULT_$LINE"
8674 else
8675 no_cache=1
8676 fi
8677
8678 ac_cv_use_listbox='wxUSE_LISTBOX='$DEFAULT_wxUSE_LISTBOX
8679
8680fi;
8681
8682 eval "$ac_cv_use_listbox"
8683 if test "$no_cache" != 1; then
8684 echo $ac_cv_use_listbox >> ${wx_arg_cache_file}.tmp
8685 fi
8686
8687 if test "$wxUSE_LISTBOX" = yes; then
8688 echo "$as_me:$LINENO: result: yes" >&5
8689echo "${ECHO_T}yes" >&6
8690 else
8691 echo "$as_me:$LINENO: result: no" >&5
8692echo "${ECHO_T}no" >&6
8693 fi
8694
8695
8696 enablestring=
8697 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listctrl" >&5
8698echo $ECHO_N "checking for --${enablestring:-enable}-listctrl... $ECHO_C" >&6
8699 no_cache=0
8700 # Check whether --enable-listctrl or --disable-listctrl was given.
8701if test "${enable_listctrl+set}" = set; then
8702 enableval="$enable_listctrl"
8703
8704 if test "$enableval" = yes; then
8705 ac_cv_use_listctrl='wxUSE_LISTCTRL=yes'
8706 else
8707 ac_cv_use_listctrl='wxUSE_LISTCTRL=no'
8708 fi
8709
8710else
8711
8712 LINE=`grep "wxUSE_LISTCTRL" ${wx_arg_cache_file}`
8713 if test "x$LINE" != x ; then
8714 eval "DEFAULT_$LINE"
8715 else
8716 no_cache=1
8717 fi
8718
8719 ac_cv_use_listctrl='wxUSE_LISTCTRL='$DEFAULT_wxUSE_LISTCTRL
8720
8721fi;
8722
8723 eval "$ac_cv_use_listctrl"
8724 if test "$no_cache" != 1; then
8725 echo $ac_cv_use_listctrl >> ${wx_arg_cache_file}.tmp
8726 fi
8727
8728 if test "$wxUSE_LISTCTRL" = yes; then
8729 echo "$as_me:$LINENO: result: yes" >&5
8730echo "${ECHO_T}yes" >&6
8731 else
8732 echo "$as_me:$LINENO: result: no" >&5
8733echo "${ECHO_T}no" >&6
8734 fi
8735
8736
8737 enablestring=
8738 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-notebook" >&5
8739echo $ECHO_N "checking for --${enablestring:-enable}-notebook... $ECHO_C" >&6
8740 no_cache=0
8741 # Check whether --enable-notebook or --disable-notebook was given.
8742if test "${enable_notebook+set}" = set; then
8743 enableval="$enable_notebook"
8744
8745 if test "$enableval" = yes; then
8746 ac_cv_use_notebook='wxUSE_NOTEBOOK=yes'
8747 else
8748 ac_cv_use_notebook='wxUSE_NOTEBOOK=no'
8749 fi
8750
8751else
8752
8753 LINE=`grep "wxUSE_NOTEBOOK" ${wx_arg_cache_file}`
8754 if test "x$LINE" != x ; then
8755 eval "DEFAULT_$LINE"
8756 else
8757 no_cache=1
8758 fi
8759
8760 ac_cv_use_notebook='wxUSE_NOTEBOOK='$DEFAULT_wxUSE_NOTEBOOK
8761
8762fi;
8763
8764 eval "$ac_cv_use_notebook"
8765 if test "$no_cache" != 1; then
8766 echo $ac_cv_use_notebook >> ${wx_arg_cache_file}.tmp
8767 fi
8768
8769 if test "$wxUSE_NOTEBOOK" = yes; then
8770 echo "$as_me:$LINENO: result: yes" >&5
8771echo "${ECHO_T}yes" >&6
8772 else
8773 echo "$as_me:$LINENO: result: no" >&5
8774echo "${ECHO_T}no" >&6
8775 fi
8776
8777
642bcba9 8778 enablestring=
a57d600f
VZ
8779 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-odcombobox" >&5
8780echo $ECHO_N "checking for --${enablestring:-enable}-odcombobox... $ECHO_C" >&6
642bcba9 8781 no_cache=0
a57d600f
VZ
8782 # Check whether --enable-odcombobox or --disable-odcombobox was given.
8783if test "${enable_odcombobox+set}" = set; then
8784 enableval="$enable_odcombobox"
642bcba9
VZ
8785
8786 if test "$enableval" = yes; then
a57d600f 8787 ac_cv_use_odcombobox='wxUSE_ODCOMBOBOX=yes'
642bcba9 8788 else
a57d600f 8789 ac_cv_use_odcombobox='wxUSE_ODCOMBOBOX=no'
642bcba9
VZ
8790 fi
8791
8792else
8793
a57d600f 8794 LINE=`grep "wxUSE_ODCOMBOBOX" ${wx_arg_cache_file}`
642bcba9
VZ
8795 if test "x$LINE" != x ; then
8796 eval "DEFAULT_$LINE"
8797 else
8798 no_cache=1
8799 fi
8800
a57d600f 8801 ac_cv_use_odcombobox='wxUSE_ODCOMBOBOX='$DEFAULT_wxUSE_ODCOMBOBOX
642bcba9
VZ
8802
8803fi;
8804
a57d600f 8805 eval "$ac_cv_use_odcombobox"
642bcba9 8806 if test "$no_cache" != 1; then
a57d600f 8807 echo $ac_cv_use_odcombobox >> ${wx_arg_cache_file}.tmp
642bcba9
VZ
8808 fi
8809
a57d600f 8810 if test "$wxUSE_ODCOMBOBOX" = yes; then
642bcba9
VZ
8811 echo "$as_me:$LINENO: result: yes" >&5
8812echo "${ECHO_T}yes" >&6
8813 else
8814 echo "$as_me:$LINENO: result: no" >&5
8815echo "${ECHO_T}no" >&6
8816 fi
8817
8818
a848cd7e
SC
8819 enablestring=
8820 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-radiobox" >&5
8821echo $ECHO_N "checking for --${enablestring:-enable}-radiobox... $ECHO_C" >&6
8822 no_cache=0
8823 # Check whether --enable-radiobox or --disable-radiobox was given.
8824if test "${enable_radiobox+set}" = set; then
8825 enableval="$enable_radiobox"
8826
8827 if test "$enableval" = yes; then
8828 ac_cv_use_radiobox='wxUSE_RADIOBOX=yes'
8829 else
8830 ac_cv_use_radiobox='wxUSE_RADIOBOX=no'
8831 fi
8832
8833else
8834
8835 LINE=`grep "wxUSE_RADIOBOX" ${wx_arg_cache_file}`
8836 if test "x$LINE" != x ; then
8837 eval "DEFAULT_$LINE"
8838 else
8839 no_cache=1
8840 fi
8841
8842 ac_cv_use_radiobox='wxUSE_RADIOBOX='$DEFAULT_wxUSE_RADIOBOX
8843
8844fi;
8845
8846 eval "$ac_cv_use_radiobox"
8847 if test "$no_cache" != 1; then
8848 echo $ac_cv_use_radiobox >> ${wx_arg_cache_file}.tmp
8849 fi
8850
8851 if test "$wxUSE_RADIOBOX" = yes; then
8852 echo "$as_me:$LINENO: result: yes" >&5
8853echo "${ECHO_T}yes" >&6
8854 else
8855 echo "$as_me:$LINENO: result: no" >&5
8856echo "${ECHO_T}no" >&6
8857 fi
8858
8859
8860 enablestring=
8861 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-radiobtn" >&5
8862echo $ECHO_N "checking for --${enablestring:-enable}-radiobtn... $ECHO_C" >&6
8863 no_cache=0
8864 # Check whether --enable-radiobtn or --disable-radiobtn was given.
8865if test "${enable_radiobtn+set}" = set; then
8866 enableval="$enable_radiobtn"
8867
8868 if test "$enableval" = yes; then
8869 ac_cv_use_radiobtn='wxUSE_RADIOBTN=yes'
8870 else
8871 ac_cv_use_radiobtn='wxUSE_RADIOBTN=no'
8872 fi
8873
8874else
8875
8876 LINE=`grep "wxUSE_RADIOBTN" ${wx_arg_cache_file}`
8877 if test "x$LINE" != x ; then
8878 eval "DEFAULT_$LINE"
8879 else
8880 no_cache=1
8881 fi
8882
8883 ac_cv_use_radiobtn='wxUSE_RADIOBTN='$DEFAULT_wxUSE_RADIOBTN
8884
8885fi;
8886
8887 eval "$ac_cv_use_radiobtn"
8888 if test "$no_cache" != 1; then
8889 echo $ac_cv_use_radiobtn >> ${wx_arg_cache_file}.tmp
8890 fi
8891
8892 if test "$wxUSE_RADIOBTN" = yes; then
8893 echo "$as_me:$LINENO: result: yes" >&5
8894echo "${ECHO_T}yes" >&6
8895 else
8896 echo "$as_me:$LINENO: result: no" >&5
8897echo "${ECHO_T}no" >&6
8898 fi
8899
8900
8901 enablestring=
8902 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sash" >&5
8903echo $ECHO_N "checking for --${enablestring:-enable}-sash... $ECHO_C" >&6
8904 no_cache=0
8905 # Check whether --enable-sash or --disable-sash was given.
8906if test "${enable_sash+set}" = set; then
8907 enableval="$enable_sash"
8908
8909 if test "$enableval" = yes; then
8910 ac_cv_use_sash='wxUSE_SASH=yes'
8911 else
8912 ac_cv_use_sash='wxUSE_SASH=no'
8913 fi
8914
8915else
8916
8917 LINE=`grep "wxUSE_SASH" ${wx_arg_cache_file}`
8918 if test "x$LINE" != x ; then
8919 eval "DEFAULT_$LINE"
8920 else
8921 no_cache=1
8922 fi
8923
8924 ac_cv_use_sash='wxUSE_SASH='$DEFAULT_wxUSE_SASH
8925
8926fi;
8927
8928 eval "$ac_cv_use_sash"
8929 if test "$no_cache" != 1; then
8930 echo $ac_cv_use_sash >> ${wx_arg_cache_file}.tmp
8931 fi
8932
8933 if test "$wxUSE_SASH" = yes; then
8934 echo "$as_me:$LINENO: result: yes" >&5
8935echo "${ECHO_T}yes" >&6
8936 else
8937 echo "$as_me:$LINENO: result: no" >&5
8938echo "${ECHO_T}no" >&6
8939 fi
8940
8941
8942 enablestring=
8943 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-scrollbar" >&5
8944echo $ECHO_N "checking for --${enablestring:-enable}-scrollbar... $ECHO_C" >&6
8945 no_cache=0
8946 # Check whether --enable-scrollbar or --disable-scrollbar was given.
8947if test "${enable_scrollbar+set}" = set; then
8948 enableval="$enable_scrollbar"
8949
8950 if test "$enableval" = yes; then
8951 ac_cv_use_scrollbar='wxUSE_SCROLLBAR=yes'
8952 else
8953 ac_cv_use_scrollbar='wxUSE_SCROLLBAR=no'
8954 fi
8955
8956else
8957
8958 LINE=`grep "wxUSE_SCROLLBAR" ${wx_arg_cache_file}`
8959 if test "x$LINE" != x ; then
8960 eval "DEFAULT_$LINE"
8961 else
8962 no_cache=1
8963 fi
8964
8965 ac_cv_use_scrollbar='wxUSE_SCROLLBAR='$DEFAULT_wxUSE_SCROLLBAR
8966
8967fi;
8968
8969 eval "$ac_cv_use_scrollbar"
8970 if test "$no_cache" != 1; then
8971 echo $ac_cv_use_scrollbar >> ${wx_arg_cache_file}.tmp
8972 fi
8973
8974 if test "$wxUSE_SCROLLBAR" = yes; then
8975 echo "$as_me:$LINENO: result: yes" >&5
8976echo "${ECHO_T}yes" >&6
8977 else
8978 echo "$as_me:$LINENO: result: no" >&5
8979echo "${ECHO_T}no" >&6
8980 fi
8981
8982
8983 enablestring=
8984 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-slider" >&5
8985echo $ECHO_N "checking for --${enablestring:-enable}-slider... $ECHO_C" >&6
8986 no_cache=0
8987 # Check whether --enable-slider or --disable-slider was given.
8988if test "${enable_slider+set}" = set; then
8989 enableval="$enable_slider"
8990
8991 if test "$enableval" = yes; then
8992 ac_cv_use_slider='wxUSE_SLIDER=yes'
8993 else
8994 ac_cv_use_slider='wxUSE_SLIDER=no'
8995 fi
8996
8997else
8998
8999 LINE=`grep "wxUSE_SLIDER" ${wx_arg_cache_file}`
9000 if test "x$LINE" != x ; then
9001 eval "DEFAULT_$LINE"
9002 else
9003 no_cache=1
9004 fi
9005
9006 ac_cv_use_slider='wxUSE_SLIDER='$DEFAULT_wxUSE_SLIDER
9007
9008fi;
9009
9010 eval "$ac_cv_use_slider"
9011 if test "$no_cache" != 1; then
9012 echo $ac_cv_use_slider >> ${wx_arg_cache_file}.tmp
9013 fi
9014
9015 if test "$wxUSE_SLIDER" = yes; then
9016 echo "$as_me:$LINENO: result: yes" >&5
9017echo "${ECHO_T}yes" >&6
9018 else
9019 echo "$as_me:$LINENO: result: no" >&5
9020echo "${ECHO_T}no" >&6
9021 fi
9022
9023
9024 enablestring=
9025 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-spinbtn" >&5
9026echo $ECHO_N "checking for --${enablestring:-enable}-spinbtn... $ECHO_C" >&6
9027 no_cache=0
9028 # Check whether --enable-spinbtn or --disable-spinbtn was given.
9029if test "${enable_spinbtn+set}" = set; then
9030 enableval="$enable_spinbtn"
9031
9032 if test "$enableval" = yes; then
9033 ac_cv_use_spinbtn='wxUSE_SPINBTN=yes'
9034 else
9035 ac_cv_use_spinbtn='wxUSE_SPINBTN=no'
9036 fi
9037
9038else
9039
9040 LINE=`grep "wxUSE_SPINBTN" ${wx_arg_cache_file}`
9041 if test "x$LINE" != x ; then
9042 eval "DEFAULT_$LINE"
9043 else
9044 no_cache=1
9045 fi
9046
9047 ac_cv_use_spinbtn='wxUSE_SPINBTN='$DEFAULT_wxUSE_SPINBTN
9048
9049fi;
9050
9051 eval "$ac_cv_use_spinbtn"
9052 if test "$no_cache" != 1; then
9053 echo $ac_cv_use_spinbtn >> ${wx_arg_cache_file}.tmp
9054 fi
9055
9056 if test "$wxUSE_SPINBTN" = yes; then
9057 echo "$as_me:$LINENO: result: yes" >&5
9058echo "${ECHO_T}yes" >&6
9059 else
9060 echo "$as_me:$LINENO: result: no" >&5
9061echo "${ECHO_T}no" >&6
9062 fi
9063
9064
9065 enablestring=
9066 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-spinctrl" >&5
9067echo $ECHO_N "checking for --${enablestring:-enable}-spinctrl... $ECHO_C" >&6
9068 no_cache=0
9069 # Check whether --enable-spinctrl or --disable-spinctrl was given.
9070if test "${enable_spinctrl+set}" = set; then
9071 enableval="$enable_spinctrl"
9072
9073 if test "$enableval" = yes; then
9074 ac_cv_use_spinctrl='wxUSE_SPINCTRL=yes'
9075 else
9076 ac_cv_use_spinctrl='wxUSE_SPINCTRL=no'
9077 fi
9078
9079else
9080
9081 LINE=`grep "wxUSE_SPINCTRL" ${wx_arg_cache_file}`
9082 if test "x$LINE" != x ; then
9083 eval "DEFAULT_$LINE"
9084 else
9085 no_cache=1
9086 fi
9087
9088 ac_cv_use_spinctrl='wxUSE_SPINCTRL='$DEFAULT_wxUSE_SPINCTRL
9089
9090fi;
9091
9092 eval "$ac_cv_use_spinctrl"
9093 if test "$no_cache" != 1; then
9094 echo $ac_cv_use_spinctrl >> ${wx_arg_cache_file}.tmp
9095 fi
9096
9097 if test "$wxUSE_SPINCTRL" = yes; then
9098 echo "$as_me:$LINENO: result: yes" >&5
9099echo "${ECHO_T}yes" >&6
9100 else
9101 echo "$as_me:$LINENO: result: no" >&5
9102echo "${ECHO_T}no" >&6
9103 fi
9104
9105
9106 enablestring=
9107 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splitter" >&5
9108echo $ECHO_N "checking for --${enablestring:-enable}-splitter... $ECHO_C" >&6
9109 no_cache=0
9110 # Check whether --enable-splitter or --disable-splitter was given.
9111if test "${enable_splitter+set}" = set; then
9112 enableval="$enable_splitter"
9113
9114 if test "$enableval" = yes; then
9115 ac_cv_use_splitter='wxUSE_SPLITTER=yes'
9116 else
9117 ac_cv_use_splitter='wxUSE_SPLITTER=no'
9118 fi
9119
9120else
9121
9122 LINE=`grep "wxUSE_SPLITTER" ${wx_arg_cache_file}`
9123 if test "x$LINE" != x ; then
9124 eval "DEFAULT_$LINE"
9125 else
9126 no_cache=1
9127 fi
9128
9129 ac_cv_use_splitter='wxUSE_SPLITTER='$DEFAULT_wxUSE_SPLITTER
9130
9131fi;
9132
9133 eval "$ac_cv_use_splitter"
9134 if test "$no_cache" != 1; then
9135 echo $ac_cv_use_splitter >> ${wx_arg_cache_file}.tmp
9136 fi
9137
9138 if test "$wxUSE_SPLITTER" = yes; then
9139 echo "$as_me:$LINENO: result: yes" >&5
9140echo "${ECHO_T}yes" >&6
9141 else
9142 echo "$as_me:$LINENO: result: no" >&5
9143echo "${ECHO_T}no" >&6
9144 fi
9145
9146
9147 enablestring=
9148 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statbmp" >&5
9149echo $ECHO_N "checking for --${enablestring:-enable}-statbmp... $ECHO_C" >&6
9150 no_cache=0
9151 # Check whether --enable-statbmp or --disable-statbmp was given.
9152if test "${enable_statbmp+set}" = set; then
9153 enableval="$enable_statbmp"
9154
9155 if test "$enableval" = yes; then
9156 ac_cv_use_statbmp='wxUSE_STATBMP=yes'
9157 else
9158 ac_cv_use_statbmp='wxUSE_STATBMP=no'
9159 fi
9160
9161else
9162
9163 LINE=`grep "wxUSE_STATBMP" ${wx_arg_cache_file}`
9164 if test "x$LINE" != x ; then
9165 eval "DEFAULT_$LINE"
9166 else
9167 no_cache=1
9168 fi
9169
9170 ac_cv_use_statbmp='wxUSE_STATBMP='$DEFAULT_wxUSE_STATBMP
9171
9172fi;
9173
9174 eval "$ac_cv_use_statbmp"
9175 if test "$no_cache" != 1; then
9176 echo $ac_cv_use_statbmp >> ${wx_arg_cache_file}.tmp
9177 fi
9178
9179 if test "$wxUSE_STATBMP" = yes; then
9180 echo "$as_me:$LINENO: result: yes" >&5
9181echo "${ECHO_T}yes" >&6
9182 else
9183 echo "$as_me:$LINENO: result: no" >&5
9184echo "${ECHO_T}no" >&6
9185 fi
9186
9187
9188 enablestring=
9189 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statbox" >&5
9190echo $ECHO_N "checking for --${enablestring:-enable}-statbox... $ECHO_C" >&6
9191 no_cache=0
9192 # Check whether --enable-statbox or --disable-statbox was given.
9193if test "${enable_statbox+set}" = set; then
9194 enableval="$enable_statbox"
9195
9196 if test "$enableval" = yes; then
9197 ac_cv_use_statbox='wxUSE_STATBOX=yes'
9198 else
9199 ac_cv_use_statbox='wxUSE_STATBOX=no'
9200 fi
9201
9202else
9203
9204 LINE=`grep "wxUSE_STATBOX" ${wx_arg_cache_file}`
9205 if test "x$LINE" != x ; then
9206 eval "DEFAULT_$LINE"
9207 else
9208 no_cache=1
9209 fi
9210
9211 ac_cv_use_statbox='wxUSE_STATBOX='$DEFAULT_wxUSE_STATBOX
9212
9213fi;
9214
9215 eval "$ac_cv_use_statbox"
9216 if test "$no_cache" != 1; then
9217 echo $ac_cv_use_statbox >> ${wx_arg_cache_file}.tmp
9218 fi
9219
9220 if test "$wxUSE_STATBOX" = yes; then
9221 echo "$as_me:$LINENO: result: yes" >&5
9222echo "${ECHO_T}yes" >&6
9223 else
9224 echo "$as_me:$LINENO: result: no" >&5
9225echo "${ECHO_T}no" >&6
9226 fi
9227
9228
9229 enablestring=
9230 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statline" >&5
9231echo $ECHO_N "checking for --${enablestring:-enable}-statline... $ECHO_C" >&6
9232 no_cache=0
9233 # Check whether --enable-statline or --disable-statline was given.
9234if test "${enable_statline+set}" = set; then
9235 enableval="$enable_statline"
9236
9237 if test "$enableval" = yes; then
9238 ac_cv_use_statline='wxUSE_STATLINE=yes'
9239 else
9240 ac_cv_use_statline='wxUSE_STATLINE=no'
9241 fi
9242
9243else
9244
9245 LINE=`grep "wxUSE_STATLINE" ${wx_arg_cache_file}`
9246 if test "x$LINE" != x ; then
9247 eval "DEFAULT_$LINE"
9248 else
9249 no_cache=1
9250 fi
9251
9252 ac_cv_use_statline='wxUSE_STATLINE='$DEFAULT_wxUSE_STATLINE
9253
9254fi;
9255
9256 eval "$ac_cv_use_statline"
9257 if test "$no_cache" != 1; then
9258 echo $ac_cv_use_statline >> ${wx_arg_cache_file}.tmp
9259 fi
9260
9261 if test "$wxUSE_STATLINE" = yes; then
9262 echo "$as_me:$LINENO: result: yes" >&5
9263echo "${ECHO_T}yes" >&6
9264 else
9265 echo "$as_me:$LINENO: result: no" >&5
9266echo "${ECHO_T}no" >&6
9267 fi
9268
9269
9270 enablestring=
9271 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stattext" >&5
9272echo $ECHO_N "checking for --${enablestring:-enable}-stattext... $ECHO_C" >&6
9273 no_cache=0
9274 # Check whether --enable-stattext or --disable-stattext was given.
9275if test "${enable_stattext+set}" = set; then
9276 enableval="$enable_stattext"
9277
9278 if test "$enableval" = yes; then
9279 ac_cv_use_stattext='wxUSE_STATTEXT=yes'
9280 else
9281 ac_cv_use_stattext='wxUSE_STATTEXT=no'
9282 fi
9283
9284else
9285
9286 LINE=`grep "wxUSE_STATTEXT" ${wx_arg_cache_file}`
9287 if test "x$LINE" != x ; then
9288 eval "DEFAULT_$LINE"
9289 else
9290 no_cache=1
9291 fi
9292
9293 ac_cv_use_stattext='wxUSE_STATTEXT='$DEFAULT_wxUSE_STATTEXT
9294
9295fi;
9296
9297 eval "$ac_cv_use_stattext"
9298 if test "$no_cache" != 1; then
9299 echo $ac_cv_use_stattext >> ${wx_arg_cache_file}.tmp
9300 fi
9301
9302 if test "$wxUSE_STATTEXT" = yes; then
9303 echo "$as_me:$LINENO: result: yes" >&5
9304echo "${ECHO_T}yes" >&6
9305 else
9306 echo "$as_me:$LINENO: result: no" >&5
9307echo "${ECHO_T}no" >&6
9308 fi
9309
9310
9311 enablestring=
9312 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statusbar" >&5
9313echo $ECHO_N "checking for --${enablestring:-enable}-statusbar... $ECHO_C" >&6
9314 no_cache=0
9315 # Check whether --enable-statusbar or --disable-statusbar was given.
9316if test "${enable_statusbar+set}" = set; then
9317 enableval="$enable_statusbar"
9318
9319 if test "$enableval" = yes; then
9320 ac_cv_use_statusbar='wxUSE_STATUSBAR=yes'
9321 else
9322 ac_cv_use_statusbar='wxUSE_STATUSBAR=no'
9323 fi
9324
9325else
9326
9327 LINE=`grep "wxUSE_STATUSBAR" ${wx_arg_cache_file}`
9328 if test "x$LINE" != x ; then
9329 eval "DEFAULT_$LINE"
9330 else
9331 no_cache=1
9332 fi
9333
9334 ac_cv_use_statusbar='wxUSE_STATUSBAR='$DEFAULT_wxUSE_STATUSBAR
9335
9336fi;
9337
9338 eval "$ac_cv_use_statusbar"
9339 if test "$no_cache" != 1; then
9340 echo $ac_cv_use_statusbar >> ${wx_arg_cache_file}.tmp
9341 fi
9342
9343 if test "$wxUSE_STATUSBAR" = yes; then
9344 echo "$as_me:$LINENO: result: yes" >&5
9345echo "${ECHO_T}yes" >&6
9346 else
9347 echo "$as_me:$LINENO: result: no" >&5
9348echo "${ECHO_T}no" >&6
9349 fi
9350
9351
9352 enablestring=
9353 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tabdialog" >&5
9354echo $ECHO_N "checking for --${enablestring:-enable}-tabdialog... $ECHO_C" >&6
9355 no_cache=0
9356 # Check whether --enable-tabdialog or --disable-tabdialog was given.
9357if test "${enable_tabdialog+set}" = set; then
9358 enableval="$enable_tabdialog"
9359
9360 if test "$enableval" = yes; then
f10e38c4 9361 ac_cv_use_tabdialog='wxUSE_TAB_DIALOG=yes'
a848cd7e 9362 else
f10e38c4 9363 ac_cv_use_tabdialog='wxUSE_TAB_DIALOG=no'
a848cd7e
SC
9364 fi
9365
9366else
9367
f10e38c4 9368 LINE=`grep "wxUSE_TAB_DIALOG" ${wx_arg_cache_file}`
a848cd7e
SC
9369 if test "x$LINE" != x ; then
9370 eval "DEFAULT_$LINE"
9371 else
9372 no_cache=1
9373 fi
9374
f10e38c4 9375 ac_cv_use_tabdialog='wxUSE_TAB_DIALOG='$DEFAULT_wxUSE_TAB_DIALOG
a848cd7e
SC
9376
9377fi;
9378
9379 eval "$ac_cv_use_tabdialog"
9380 if test "$no_cache" != 1; then
9381 echo $ac_cv_use_tabdialog >> ${wx_arg_cache_file}.tmp
9382 fi
9383
f10e38c4 9384 if test "$wxUSE_TAB_DIALOG" = yes; then
a848cd7e
SC
9385 echo "$as_me:$LINENO: result: yes" >&5
9386echo "${ECHO_T}yes" >&6
9387 else
9388 echo "$as_me:$LINENO: result: no" >&5
9389echo "${ECHO_T}no" >&6
9390 fi
9391
9392
9393 enablestring=
9394 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textctrl" >&5
9395echo $ECHO_N "checking for --${enablestring:-enable}-textctrl... $ECHO_C" >&6
9396 no_cache=0
9397 # Check whether --enable-textctrl or --disable-textctrl was given.
9398if test "${enable_textctrl+set}" = set; then
9399 enableval="$enable_textctrl"
9400
9401 if test "$enableval" = yes; then
9402 ac_cv_use_textctrl='wxUSE_TEXTCTRL=yes'
9403 else
9404 ac_cv_use_textctrl='wxUSE_TEXTCTRL=no'
9405 fi
9406
9407else
9408
9409 LINE=`grep "wxUSE_TEXTCTRL" ${wx_arg_cache_file}`
9410 if test "x$LINE" != x ; then
9411 eval "DEFAULT_$LINE"
9412 else
9413 no_cache=1
9414 fi
9415
9416 ac_cv_use_textctrl='wxUSE_TEXTCTRL='$DEFAULT_wxUSE_TEXTCTRL
9417
9418fi;
9419
9420 eval "$ac_cv_use_textctrl"
9421 if test "$no_cache" != 1; then
9422 echo $ac_cv_use_textctrl >> ${wx_arg_cache_file}.tmp
9423 fi
9424
9425 if test "$wxUSE_TEXTCTRL" = yes; then
9426 echo "$as_me:$LINENO: result: yes" >&5
9427echo "${ECHO_T}yes" >&6
9428 else
9429 echo "$as_me:$LINENO: result: no" >&5
9430echo "${ECHO_T}no" >&6
9431 fi
9432
9433
9434 enablestring=
9435 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-togglebtn" >&5
9436echo $ECHO_N "checking for --${enablestring:-enable}-togglebtn... $ECHO_C" >&6
9437 no_cache=0
9438 # Check whether --enable-togglebtn or --disable-togglebtn was given.
9439if test "${enable_togglebtn+set}" = set; then
9440 enableval="$enable_togglebtn"
9441
9442 if test "$enableval" = yes; then
9443 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=yes'
9444 else
9445 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=no'
9446 fi
9447
9448else
9449
9450 LINE=`grep "wxUSE_TOGGLEBTN" ${wx_arg_cache_file}`
9451 if test "x$LINE" != x ; then
9452 eval "DEFAULT_$LINE"
9453 else
9454 no_cache=1
9455 fi
9456
9457 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN='$DEFAULT_wxUSE_TOGGLEBTN
9458
9459fi;
9460
9461 eval "$ac_cv_use_togglebtn"
9462 if test "$no_cache" != 1; then
9463 echo $ac_cv_use_togglebtn >> ${wx_arg_cache_file}.tmp
9464 fi
9465
9466 if test "$wxUSE_TOGGLEBTN" = yes; then
9467 echo "$as_me:$LINENO: result: yes" >&5
9468echo "${ECHO_T}yes" >&6
9469 else
9470 echo "$as_me:$LINENO: result: no" >&5
9471echo "${ECHO_T}no" >&6
9472 fi
9473
9474
9475 enablestring=
9476 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-toolbar" >&5
9477echo $ECHO_N "checking for --${enablestring:-enable}-toolbar... $ECHO_C" >&6
9478 no_cache=0
9479 # Check whether --enable-toolbar or --disable-toolbar was given.
9480if test "${enable_toolbar+set}" = set; then
9481 enableval="$enable_toolbar"
9482
9483 if test "$enableval" = yes; then
9484 ac_cv_use_toolbar='wxUSE_TOOLBAR=yes'
9485 else
9486 ac_cv_use_toolbar='wxUSE_TOOLBAR=no'
9487 fi
9488
9489else
9490
9491 LINE=`grep "wxUSE_TOOLBAR" ${wx_arg_cache_file}`
9492 if test "x$LINE" != x ; then
9493 eval "DEFAULT_$LINE"
9494 else
9495 no_cache=1
9496 fi
9497
9498 ac_cv_use_toolbar='wxUSE_TOOLBAR='$DEFAULT_wxUSE_TOOLBAR
9499
9500fi;
9501
9502 eval "$ac_cv_use_toolbar"
9503 if test "$no_cache" != 1; then
9504 echo $ac_cv_use_toolbar >> ${wx_arg_cache_file}.tmp
9505 fi
9506
9507 if test "$wxUSE_TOOLBAR" = yes; then
9508 echo "$as_me:$LINENO: result: yes" >&5
9509echo "${ECHO_T}yes" >&6
9510 else
9511 echo "$as_me:$LINENO: result: no" >&5
9512echo "${ECHO_T}no" >&6
9513 fi
9514
9515
9516 enablestring=
9517 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tbarnative" >&5
9518echo $ECHO_N "checking for --${enablestring:-enable}-tbarnative... $ECHO_C" >&6
9519 no_cache=0
9520 # Check whether --enable-tbarnative or --disable-tbarnative was given.
9521if test "${enable_tbarnative+set}" = set; then
9522 enableval="$enable_tbarnative"
9523
9524 if test "$enableval" = yes; then
9525 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=yes'
9526 else
9527 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=no'
9528 fi
9529
9530else
9531
9532 LINE=`grep "wxUSE_TOOLBAR_NATIVE" ${wx_arg_cache_file}`
9533 if test "x$LINE" != x ; then
9534 eval "DEFAULT_$LINE"
9535 else
9536 no_cache=1
9537 fi
9538
9539 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE='$DEFAULT_wxUSE_TOOLBAR_NATIVE
9540
9541fi;
9542
9543 eval "$ac_cv_use_tbarnative"
9544 if test "$no_cache" != 1; then
9545 echo $ac_cv_use_tbarnative >> ${wx_arg_cache_file}.tmp
9546 fi
9547
9548 if test "$wxUSE_TOOLBAR_NATIVE" = yes; then
9549 echo "$as_me:$LINENO: result: yes" >&5
9550echo "${ECHO_T}yes" >&6
9551 else
9552 echo "$as_me:$LINENO: result: no" >&5
9553echo "${ECHO_T}no" >&6
9554 fi
9555
9556
9557 enablestring=
9558 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tbarsmpl" >&5
9559echo $ECHO_N "checking for --${enablestring:-enable}-tbarsmpl... $ECHO_C" >&6
9560 no_cache=0
9561 # Check whether --enable-tbarsmpl or --disable-tbarsmpl was given.
9562if test "${enable_tbarsmpl+set}" = set; then
9563 enableval="$enable_tbarsmpl"
9564
9565 if test "$enableval" = yes; then
9566 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=yes'
9567 else
9568 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=no'
9569 fi
9570
9571else
9572
9573 LINE=`grep "wxUSE_TOOLBAR_SIMPLE" ${wx_arg_cache_file}`
9574 if test "x$LINE" != x ; then
9575 eval "DEFAULT_$LINE"
9576 else
9577 no_cache=1
9578 fi
9579
9580 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE='$DEFAULT_wxUSE_TOOLBAR_SIMPLE
9581
9582fi;
9583
9584 eval "$ac_cv_use_tbarsmpl"
9585 if test "$no_cache" != 1; then
9586 echo $ac_cv_use_tbarsmpl >> ${wx_arg_cache_file}.tmp
9587 fi
9588
9589 if test "$wxUSE_TOOLBAR_SIMPLE" = yes; then
9590 echo "$as_me:$LINENO: result: yes" >&5
9591echo "${ECHO_T}yes" >&6
9592 else
9593 echo "$as_me:$LINENO: result: no" >&5
9594echo "${ECHO_T}no" >&6
9595 fi
9596
9597
0093c2fc
VZ
9598 enablestring=
9599 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-treebook" >&5
9600echo $ECHO_N "checking for --${enablestring:-enable}-treebook... $ECHO_C" >&6
9601 no_cache=0
9602 # Check whether --enable-treebook or --disable-treebook was given.
9603if test "${enable_treebook+set}" = set; then
9604 enableval="$enable_treebook"
9605
9606 if test "$enableval" = yes; then
9607 ac_cv_use_treebook='wxUSE_TREEBOOK=yes'
9608 else
9609 ac_cv_use_treebook='wxUSE_TREEBOOK=no'
9610 fi
9611
9612else
9613
9614 LINE=`grep "wxUSE_TREEBOOK" ${wx_arg_cache_file}`
9615 if test "x$LINE" != x ; then
9616 eval "DEFAULT_$LINE"
9617 else
9618 no_cache=1
9619 fi
9620
9621 ac_cv_use_treebook='wxUSE_TREEBOOK='$DEFAULT_wxUSE_TREEBOOK
9622
9623fi;
9624
9625 eval "$ac_cv_use_treebook"
9626 if test "$no_cache" != 1; then
9627 echo $ac_cv_use_treebook >> ${wx_arg_cache_file}.tmp
9628 fi
9629
9630 if test "$wxUSE_TREEBOOK" = yes; then
9631 echo "$as_me:$LINENO: result: yes" >&5
9632echo "${ECHO_T}yes" >&6
9633 else
9634 echo "$as_me:$LINENO: result: no" >&5
9635echo "${ECHO_T}no" >&6
9636 fi
9637
9638
5ec3bc43
JS
9639 enablestring=
9640 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-toolbook" >&5
9641echo $ECHO_N "checking for --${enablestring:-enable}-toolbook... $ECHO_C" >&6
9642 no_cache=0
9643 # Check whether --enable-toolbook or --disable-toolbook was given.
9644if test "${enable_toolbook+set}" = set; then
9645 enableval="$enable_toolbook"
9646
9647 if test "$enableval" = yes; then
9648 ac_cv_use_toolbook='wxUSE_TOOLBOOK=yes'
9649 else
9650 ac_cv_use_toolbook='wxUSE_TOOLBOOK=no'
9651 fi
9652
9653else
9654
9655 LINE=`grep "wxUSE_TOOLBOOK" ${wx_arg_cache_file}`
9656 if test "x$LINE" != x ; then
9657 eval "DEFAULT_$LINE"
9658 else
9659 no_cache=1
9660 fi
9661
9662 ac_cv_use_toolbook='wxUSE_TOOLBOOK='$DEFAULT_wxUSE_TOOLBOOK
9663
9664fi;
9665
9666 eval "$ac_cv_use_toolbook"
9667 if test "$no_cache" != 1; then
9668 echo $ac_cv_use_toolbook >> ${wx_arg_cache_file}.tmp
9669 fi
9670
9671 if test "$wxUSE_TOOLBOOK" = yes; then
9672 echo "$as_me:$LINENO: result: yes" >&5
9673echo "${ECHO_T}yes" >&6
9674 else
9675 echo "$as_me:$LINENO: result: no" >&5
9676echo "${ECHO_T}no" >&6
9677 fi
9678
9679
a848cd7e
SC
9680 enablestring=
9681 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-treectrl" >&5
9682echo $ECHO_N "checking for --${enablestring:-enable}-treectrl... $ECHO_C" >&6
9683 no_cache=0
9684 # Check whether --enable-treectrl or --disable-treectrl was given.
9685if test "${enable_treectrl+set}" = set; then
9686 enableval="$enable_treectrl"
9687
9688 if test "$enableval" = yes; then
9689 ac_cv_use_treectrl='wxUSE_TREECTRL=yes'
9690 else
9691 ac_cv_use_treectrl='wxUSE_TREECTRL=no'
9692 fi
9693
9694else
9695
9696 LINE=`grep "wxUSE_TREECTRL" ${wx_arg_cache_file}`
9697 if test "x$LINE" != x ; then
9698 eval "DEFAULT_$LINE"
9699 else
9700 no_cache=1
9701 fi
9702
9703 ac_cv_use_treectrl='wxUSE_TREECTRL='$DEFAULT_wxUSE_TREECTRL
9704
9705fi;
9706
9707 eval "$ac_cv_use_treectrl"
9708 if test "$no_cache" != 1; then
9709 echo $ac_cv_use_treectrl >> ${wx_arg_cache_file}.tmp
9710 fi
9711
9712 if test "$wxUSE_TREECTRL" = yes; then
9713 echo "$as_me:$LINENO: result: yes" >&5
9714echo "${ECHO_T}yes" >&6
9715 else
9716 echo "$as_me:$LINENO: result: no" >&5
9717echo "${ECHO_T}no" >&6
9718 fi
9719
9720
9721 enablestring=
9722 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tipwindow" >&5
9723echo $ECHO_N "checking for --${enablestring:-enable}-tipwindow... $ECHO_C" >&6
9724 no_cache=0
9725 # Check whether --enable-tipwindow or --disable-tipwindow was given.
9726if test "${enable_tipwindow+set}" = set; then
9727 enableval="$enable_tipwindow"
9728
9729 if test "$enableval" = yes; then
9730 ac_cv_use_tipwindow='wxUSE_TIPWINDOW=yes'
9731 else
9732 ac_cv_use_tipwindow='wxUSE_TIPWINDOW=no'
9733 fi
9734
9735else
9736
9737 LINE=`grep "wxUSE_TIPWINDOW" ${wx_arg_cache_file}`
9738 if test "x$LINE" != x ; then
9739 eval "DEFAULT_$LINE"
9740 else
9741 no_cache=1
9742 fi
9743
9744 ac_cv_use_tipwindow='wxUSE_TIPWINDOW='$DEFAULT_wxUSE_TIPWINDOW
9745
9746fi;
9747
9748 eval "$ac_cv_use_tipwindow"
9749 if test "$no_cache" != 1; then
9750 echo $ac_cv_use_tipwindow >> ${wx_arg_cache_file}.tmp
9751 fi
9752
9753 if test "$wxUSE_TIPWINDOW" = yes; then
9754 echo "$as_me:$LINENO: result: yes" >&5
9755echo "${ECHO_T}yes" >&6
9756 else
9757 echo "$as_me:$LINENO: result: no" >&5
9758echo "${ECHO_T}no" >&6
9759 fi
9760
9761
9762 enablestring=
9763 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-popupwin" >&5
9764echo $ECHO_N "checking for --${enablestring:-enable}-popupwin... $ECHO_C" >&6
9765 no_cache=0
9766 # Check whether --enable-popupwin or --disable-popupwin was given.
9767if test "${enable_popupwin+set}" = set; then
9768 enableval="$enable_popupwin"
9769
9770 if test "$enableval" = yes; then
9771 ac_cv_use_popupwin='wxUSE_POPUPWIN=yes'
9772 else
9773 ac_cv_use_popupwin='wxUSE_POPUPWIN=no'
9774 fi
9775
9776else
9777
9778 LINE=`grep "wxUSE_POPUPWIN" ${wx_arg_cache_file}`
9779 if test "x$LINE" != x ; then
9780 eval "DEFAULT_$LINE"
9781 else
9782 no_cache=1
9783 fi
9784
9785 ac_cv_use_popupwin='wxUSE_POPUPWIN='$DEFAULT_wxUSE_POPUPWIN
9786
9787fi;
9788
9789 eval "$ac_cv_use_popupwin"
9790 if test "$no_cache" != 1; then
9791 echo $ac_cv_use_popupwin >> ${wx_arg_cache_file}.tmp
9792 fi
9793
9794 if test "$wxUSE_POPUPWIN" = yes; then
9795 echo "$as_me:$LINENO: result: yes" >&5
9796echo "${ECHO_T}yes" >&6
9797 else
9798 echo "$as_me:$LINENO: result: no" >&5
9799echo "${ECHO_T}no" >&6
9800 fi
9801
9802
9803
9804
9805 enablestring=
9806 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-commondlg" >&5
9807echo $ECHO_N "checking for --${enablestring:-enable}-commondlg... $ECHO_C" >&6
9808 no_cache=0
9809 # Check whether --enable-commondlg or --disable-commondlg was given.
9810if test "${enable_commondlg+set}" = set; then
9811 enableval="$enable_commondlg"
9812
9813 if test "$enableval" = yes; then
9814 ac_cv_use_commondlg='wxUSE_COMMONDLGS=yes'
9815 else
9816 ac_cv_use_commondlg='wxUSE_COMMONDLGS=no'
9817 fi
9818
9819else
9820
9821 LINE=`grep "wxUSE_COMMONDLGS" ${wx_arg_cache_file}`
9822 if test "x$LINE" != x ; then
9823 eval "DEFAULT_$LINE"
9824 else
9825 no_cache=1
9826 fi
9827
9828 ac_cv_use_commondlg='wxUSE_COMMONDLGS='$DEFAULT_wxUSE_COMMONDLGS
9829
9830fi;
9831
9832 eval "$ac_cv_use_commondlg"
9833 if test "$no_cache" != 1; then
9834 echo $ac_cv_use_commondlg >> ${wx_arg_cache_file}.tmp
9835 fi
9836
9837 if test "$wxUSE_COMMONDLGS" = yes; then
9838 echo "$as_me:$LINENO: result: yes" >&5
9839echo "${ECHO_T}yes" >&6
9840 else
9841 echo "$as_me:$LINENO: result: no" >&5
9842echo "${ECHO_T}no" >&6
9843 fi
9844
9845
9846 enablestring=
9847 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choicedlg" >&5
9848echo $ECHO_N "checking for --${enablestring:-enable}-choicedlg... $ECHO_C" >&6
9849 no_cache=0
9850 # Check whether --enable-choicedlg or --disable-choicedlg was given.
9851if test "${enable_choicedlg+set}" = set; then
9852 enableval="$enable_choicedlg"
9853
9854 if test "$enableval" = yes; then
9855 ac_cv_use_choicedlg='wxUSE_CHOICEDLG=yes'
9856 else
9857 ac_cv_use_choicedlg='wxUSE_CHOICEDLG=no'
9858 fi
9859
9860else
9861
9862 LINE=`grep "wxUSE_CHOICEDLG" ${wx_arg_cache_file}`
9863 if test "x$LINE" != x ; then
9864 eval "DEFAULT_$LINE"
9865 else
9866 no_cache=1
9867 fi
9868
9869 ac_cv_use_choicedlg='wxUSE_CHOICEDLG='$DEFAULT_wxUSE_CHOICEDLG
9870
9871fi;
9872
9873 eval "$ac_cv_use_choicedlg"
9874 if test "$no_cache" != 1; then
9875 echo $ac_cv_use_choicedlg >> ${wx_arg_cache_file}.tmp
9876 fi
9877
9878 if test "$wxUSE_CHOICEDLG" = yes; then
9879 echo "$as_me:$LINENO: result: yes" >&5
9880echo "${ECHO_T}yes" >&6
9881 else
9882 echo "$as_me:$LINENO: result: no" >&5
9883echo "${ECHO_T}no" >&6
9884 fi
9885
9886
9887 enablestring=
9888 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-coldlg" >&5
9889echo $ECHO_N "checking for --${enablestring:-enable}-coldlg... $ECHO_C" >&6
9890 no_cache=0
9891 # Check whether --enable-coldlg or --disable-coldlg was given.
9892if test "${enable_coldlg+set}" = set; then
9893 enableval="$enable_coldlg"
9894
9895 if test "$enableval" = yes; then
9896 ac_cv_use_coldlg='wxUSE_COLOURDLG=yes'
9897 else
9898 ac_cv_use_coldlg='wxUSE_COLOURDLG=no'
9899 fi
9900
9901else
9902
9903 LINE=`grep "wxUSE_COLOURDLG" ${wx_arg_cache_file}`
9904 if test "x$LINE" != x ; then
9905 eval "DEFAULT_$LINE"
9906 else
9907 no_cache=1
9908 fi
9909
9910 ac_cv_use_coldlg='wxUSE_COLOURDLG='$DEFAULT_wxUSE_COLOURDLG
9911
9912fi;
9913
9914 eval "$ac_cv_use_coldlg"
9915 if test "$no_cache" != 1; then
9916 echo $ac_cv_use_coldlg >> ${wx_arg_cache_file}.tmp
9917 fi
9918
9919 if test "$wxUSE_COLOURDLG" = yes; then
9920 echo "$as_me:$LINENO: result: yes" >&5
9921echo "${ECHO_T}yes" >&6
9922 else
9923 echo "$as_me:$LINENO: result: no" >&5
9924echo "${ECHO_T}no" >&6
9925 fi
9926
9927
9928 enablestring=
9929 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-filedlg" >&5
9930echo $ECHO_N "checking for --${enablestring:-enable}-filedlg... $ECHO_C" >&6
9931 no_cache=0
9932 # Check whether --enable-filedlg or --disable-filedlg was given.
9933if test "${enable_filedlg+set}" = set; then
9934 enableval="$enable_filedlg"
9935
9936 if test "$enableval" = yes; then
9937 ac_cv_use_filedlg='wxUSE_FILEDLG=yes'
9938 else
9939 ac_cv_use_filedlg='wxUSE_FILEDLG=no'
9940 fi
9941
9942else
9943
9944 LINE=`grep "wxUSE_FILEDLG" ${wx_arg_cache_file}`
9945 if test "x$LINE" != x ; then
9946 eval "DEFAULT_$LINE"
9947 else
9948 no_cache=1
9949 fi
9950
9951 ac_cv_use_filedlg='wxUSE_FILEDLG='$DEFAULT_wxUSE_FILEDLG
9952
9953fi;
9954
9955 eval "$ac_cv_use_filedlg"
9956 if test "$no_cache" != 1; then
9957 echo $ac_cv_use_filedlg >> ${wx_arg_cache_file}.tmp
9958 fi
9959
9960 if test "$wxUSE_FILEDLG" = yes; then
9961 echo "$as_me:$LINENO: result: yes" >&5
9962echo "${ECHO_T}yes" >&6
9963 else
9964 echo "$as_me:$LINENO: result: no" >&5
9965echo "${ECHO_T}no" >&6
9966 fi
9967
9968
9969 enablestring=
9970 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-finddlg" >&5
9971echo $ECHO_N "checking for --${enablestring:-enable}-finddlg... $ECHO_C" >&6
9972 no_cache=0
9973 # Check whether --enable-finddlg or --disable-finddlg was given.
9974if test "${enable_finddlg+set}" = set; then
9975 enableval="$enable_finddlg"
9976
9977 if test "$enableval" = yes; then
9978 ac_cv_use_finddlg='wxUSE_FINDREPLDLG=yes'
9979 else
9980 ac_cv_use_finddlg='wxUSE_FINDREPLDLG=no'
9981 fi
9982
9983else
9984
9985 LINE=`grep "wxUSE_FINDREPLDLG" ${wx_arg_cache_file}`
9986 if test "x$LINE" != x ; then
9987 eval "DEFAULT_$LINE"
9988 else
9989 no_cache=1
9990 fi
9991
9992 ac_cv_use_finddlg='wxUSE_FINDREPLDLG='$DEFAULT_wxUSE_FINDREPLDLG
9993
9994fi;
9995
9996 eval "$ac_cv_use_finddlg"
9997 if test "$no_cache" != 1; then
9998 echo $ac_cv_use_finddlg >> ${wx_arg_cache_file}.tmp
9999 fi
10000
10001 if test "$wxUSE_FINDREPLDLG" = yes; then
10002 echo "$as_me:$LINENO: result: yes" >&5
10003echo "${ECHO_T}yes" >&6
10004 else
10005 echo "$as_me:$LINENO: result: no" >&5
10006echo "${ECHO_T}no" >&6
10007 fi
10008
10009
10010 enablestring=
10011 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fontdlg" >&5
10012echo $ECHO_N "checking for --${enablestring:-enable}-fontdlg... $ECHO_C" >&6
10013 no_cache=0
10014 # Check whether --enable-fontdlg or --disable-fontdlg was given.
10015if test "${enable_fontdlg+set}" = set; then
10016 enableval="$enable_fontdlg"
10017
10018 if test "$enableval" = yes; then
10019 ac_cv_use_fontdlg='wxUSE_FONTDLG=yes'
10020 else
10021 ac_cv_use_fontdlg='wxUSE_FONTDLG=no'
10022 fi
10023
10024else
10025
10026 LINE=`grep "wxUSE_FONTDLG" ${wx_arg_cache_file}`
10027 if test "x$LINE" != x ; then
10028 eval "DEFAULT_$LINE"
10029 else
10030 no_cache=1
10031 fi
10032
10033 ac_cv_use_fontdlg='wxUSE_FONTDLG='$DEFAULT_wxUSE_FONTDLG
10034
10035fi;
10036
10037 eval "$ac_cv_use_fontdlg"
10038 if test "$no_cache" != 1; then
10039 echo $ac_cv_use_fontdlg >> ${wx_arg_cache_file}.tmp
10040 fi
10041
10042 if test "$wxUSE_FONTDLG" = yes; then
10043 echo "$as_me:$LINENO: result: yes" >&5
10044echo "${ECHO_T}yes" >&6
10045 else
10046 echo "$as_me:$LINENO: result: no" >&5
10047echo "${ECHO_T}no" >&6
10048 fi
10049
10050
10051 enablestring=
10052 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dirdlg" >&5
10053echo $ECHO_N "checking for --${enablestring:-enable}-dirdlg... $ECHO_C" >&6
10054 no_cache=0
10055 # Check whether --enable-dirdlg or --disable-dirdlg was given.
10056if test "${enable_dirdlg+set}" = set; then
10057 enableval="$enable_dirdlg"
10058
10059 if test "$enableval" = yes; then
10060 ac_cv_use_dirdlg='wxUSE_DIRDLG=yes'
10061 else
10062 ac_cv_use_dirdlg='wxUSE_DIRDLG=no'
10063 fi
10064
10065else
10066
10067 LINE=`grep "wxUSE_DIRDLG" ${wx_arg_cache_file}`
10068 if test "x$LINE" != x ; then
10069 eval "DEFAULT_$LINE"
10070 else
10071 no_cache=1
10072 fi
10073
10074 ac_cv_use_dirdlg='wxUSE_DIRDLG='$DEFAULT_wxUSE_DIRDLG
10075
10076fi;
10077
10078 eval "$ac_cv_use_dirdlg"
10079 if test "$no_cache" != 1; then
10080 echo $ac_cv_use_dirdlg >> ${wx_arg_cache_file}.tmp
10081 fi
10082
10083 if test "$wxUSE_DIRDLG" = yes; then
10084 echo "$as_me:$LINENO: result: yes" >&5
10085echo "${ECHO_T}yes" >&6
10086 else
10087 echo "$as_me:$LINENO: result: no" >&5
10088echo "${ECHO_T}no" >&6
10089 fi
10090
10091
10092 enablestring=
10093 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-msgdlg" >&5
10094echo $ECHO_N "checking for --${enablestring:-enable}-msgdlg... $ECHO_C" >&6
10095 no_cache=0
10096 # Check whether --enable-msgdlg or --disable-msgdlg was given.
10097if test "${enable_msgdlg+set}" = set; then
10098 enableval="$enable_msgdlg"
10099
10100 if test "$enableval" = yes; then
10101 ac_cv_use_msgdlg='wxUSE_MSGDLG=yes'
10102 else
10103 ac_cv_use_msgdlg='wxUSE_MSGDLG=no'
10104 fi
10105
10106else
10107
10108 LINE=`grep "wxUSE_MSGDLG" ${wx_arg_cache_file}`
10109 if test "x$LINE" != x ; then
10110 eval "DEFAULT_$LINE"
10111 else
10112 no_cache=1
10113 fi
10114
10115 ac_cv_use_msgdlg='wxUSE_MSGDLG='$DEFAULT_wxUSE_MSGDLG
10116
10117fi;
10118
10119 eval "$ac_cv_use_msgdlg"
10120 if test "$no_cache" != 1; then
10121 echo $ac_cv_use_msgdlg >> ${wx_arg_cache_file}.tmp
10122 fi
10123
10124 if test "$wxUSE_MSGDLG" = yes; then
10125 echo "$as_me:$LINENO: result: yes" >&5
10126echo "${ECHO_T}yes" >&6
10127 else
10128 echo "$as_me:$LINENO: result: no" >&5
10129echo "${ECHO_T}no" >&6
10130 fi
10131
10132
10133 enablestring=
10134 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-numberdlg" >&5
10135echo $ECHO_N "checking for --${enablestring:-enable}-numberdlg... $ECHO_C" >&6
10136 no_cache=0
10137 # Check whether --enable-numberdlg or --disable-numberdlg was given.
10138if test "${enable_numberdlg+set}" = set; then
10139 enableval="$enable_numberdlg"
10140
10141 if test "$enableval" = yes; then
10142 ac_cv_use_numberdlg='wxUSE_NUMBERDLG=yes'
10143 else
10144 ac_cv_use_numberdlg='wxUSE_NUMBERDLG=no'
10145 fi
10146
10147else
10148
10149 LINE=`grep "wxUSE_NUMBERDLG" ${wx_arg_cache_file}`
10150 if test "x$LINE" != x ; then
10151 eval "DEFAULT_$LINE"
10152 else
10153 no_cache=1
10154 fi
10155
10156 ac_cv_use_numberdlg='wxUSE_NUMBERDLG='$DEFAULT_wxUSE_NUMBERDLG
10157
10158fi;
10159
10160 eval "$ac_cv_use_numberdlg"
10161 if test "$no_cache" != 1; then
10162 echo $ac_cv_use_numberdlg >> ${wx_arg_cache_file}.tmp
10163 fi
10164
10165 if test "$wxUSE_NUMBERDLG" = yes; then
10166 echo "$as_me:$LINENO: result: yes" >&5
10167echo "${ECHO_T}yes" >&6
10168 else
10169 echo "$as_me:$LINENO: result: no" >&5
10170echo "${ECHO_T}no" >&6
10171 fi
10172
10173
10174 enablestring=
10175 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splash" >&5
10176echo $ECHO_N "checking for --${enablestring:-enable}-splash... $ECHO_C" >&6
10177 no_cache=0
10178 # Check whether --enable-splash or --disable-splash was given.
10179if test "${enable_splash+set}" = set; then
10180 enableval="$enable_splash"
10181
10182 if test "$enableval" = yes; then
10183 ac_cv_use_splash='wxUSE_SPLASH=yes'
10184 else
10185 ac_cv_use_splash='wxUSE_SPLASH=no'
10186 fi
10187
10188else
10189
10190 LINE=`grep "wxUSE_SPLASH" ${wx_arg_cache_file}`
10191 if test "x$LINE" != x ; then
10192 eval "DEFAULT_$LINE"
10193 else
10194 no_cache=1
10195 fi
10196
10197 ac_cv_use_splash='wxUSE_SPLASH='$DEFAULT_wxUSE_SPLASH
10198
10199fi;
10200
10201 eval "$ac_cv_use_splash"
10202 if test "$no_cache" != 1; then
10203 echo $ac_cv_use_splash >> ${wx_arg_cache_file}.tmp
10204 fi
10205
10206 if test "$wxUSE_SPLASH" = yes; then
10207 echo "$as_me:$LINENO: result: yes" >&5
10208echo "${ECHO_T}yes" >&6
10209 else
10210 echo "$as_me:$LINENO: result: no" >&5
10211echo "${ECHO_T}no" >&6
10212 fi
10213
10214
10215 enablestring=
10216 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textdlg" >&5
10217echo $ECHO_N "checking for --${enablestring:-enable}-textdlg... $ECHO_C" >&6
10218 no_cache=0
10219 # Check whether --enable-textdlg or --disable-textdlg was given.
10220if test "${enable_textdlg+set}" = set; then
10221 enableval="$enable_textdlg"
10222
10223 if test "$enableval" = yes; then
10224 ac_cv_use_textdlg='wxUSE_TEXTDLG=yes'
10225 else
10226 ac_cv_use_textdlg='wxUSE_TEXTDLG=no'
10227 fi
10228
10229else
10230
10231 LINE=`grep "wxUSE_TEXTDLG" ${wx_arg_cache_file}`
10232 if test "x$LINE" != x ; then
10233 eval "DEFAULT_$LINE"
10234 else
10235 no_cache=1
10236 fi
10237
10238 ac_cv_use_textdlg='wxUSE_TEXTDLG='$DEFAULT_wxUSE_TEXTDLG
10239
10240fi;
10241
10242 eval "$ac_cv_use_textdlg"
10243 if test "$no_cache" != 1; then
10244 echo $ac_cv_use_textdlg >> ${wx_arg_cache_file}.tmp
10245 fi
10246
10247 if test "$wxUSE_TEXTDLG" = yes; then
10248 echo "$as_me:$LINENO: result: yes" >&5
10249echo "${ECHO_T}yes" >&6
10250 else
10251 echo "$as_me:$LINENO: result: no" >&5
10252echo "${ECHO_T}no" >&6
10253 fi
10254
10255
10256 enablestring=
10257 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tipdlg" >&5
10258echo $ECHO_N "checking for --${enablestring:-enable}-tipdlg... $ECHO_C" >&6
10259 no_cache=0
10260 # Check whether --enable-tipdlg or --disable-tipdlg was given.
10261if test "${enable_tipdlg+set}" = set; then
10262 enableval="$enable_tipdlg"
10263
10264 if test "$enableval" = yes; then
10265 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=yes'
10266 else
10267 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=no'
10268 fi
10269
10270else
10271
10272 LINE=`grep "wxUSE_STARTUP_TIPS" ${wx_arg_cache_file}`
10273 if test "x$LINE" != x ; then
10274 eval "DEFAULT_$LINE"
10275 else
10276 no_cache=1
10277 fi
10278
10279 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS='$DEFAULT_wxUSE_STARTUP_TIPS
10280
10281fi;
10282
10283 eval "$ac_cv_use_tipdlg"
10284 if test "$no_cache" != 1; then
10285 echo $ac_cv_use_tipdlg >> ${wx_arg_cache_file}.tmp
10286 fi
10287
10288 if test "$wxUSE_STARTUP_TIPS" = yes; then
10289 echo "$as_me:$LINENO: result: yes" >&5
10290echo "${ECHO_T}yes" >&6
10291 else
10292 echo "$as_me:$LINENO: result: no" >&5
10293echo "${ECHO_T}no" >&6
10294 fi
10295
10296
10297 enablestring=
10298 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-progressdlg" >&5
10299echo $ECHO_N "checking for --${enablestring:-enable}-progressdlg... $ECHO_C" >&6
10300 no_cache=0
10301 # Check whether --enable-progressdlg or --disable-progressdlg was given.
10302if test "${enable_progressdlg+set}" = set; then
10303 enableval="$enable_progressdlg"
10304
10305 if test "$enableval" = yes; then
10306 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=yes'
10307 else
10308 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=no'
10309 fi
10310
10311else
10312
10313 LINE=`grep "wxUSE_PROGRESSDLG" ${wx_arg_cache_file}`
10314 if test "x$LINE" != x ; then
10315 eval "DEFAULT_$LINE"
10316 else
10317 no_cache=1
10318 fi
10319
10320 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG='$DEFAULT_wxUSE_PROGRESSDLG
10321
10322fi;
10323
10324 eval "$ac_cv_use_progressdlg"
10325 if test "$no_cache" != 1; then
10326 echo $ac_cv_use_progressdlg >> ${wx_arg_cache_file}.tmp
10327 fi
10328
10329 if test "$wxUSE_PROGRESSDLG" = yes; then
10330 echo "$as_me:$LINENO: result: yes" >&5
10331echo "${ECHO_T}yes" >&6
10332 else
10333 echo "$as_me:$LINENO: result: no" >&5
10334echo "${ECHO_T}no" >&6
10335 fi
10336
10337
10338 enablestring=
10339 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-wizarddlg" >&5
10340echo $ECHO_N "checking for --${enablestring:-enable}-wizarddlg... $ECHO_C" >&6
10341 no_cache=0
10342 # Check whether --enable-wizarddlg or --disable-wizarddlg was given.
10343if test "${enable_wizarddlg+set}" = set; then
10344 enableval="$enable_wizarddlg"
10345
10346 if test "$enableval" = yes; then
10347 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=yes'
10348 else
10349 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=no'
10350 fi
10351
10352else
10353
10354 LINE=`grep "wxUSE_WIZARDDLG" ${wx_arg_cache_file}`
10355 if test "x$LINE" != x ; then
10356 eval "DEFAULT_$LINE"
10357 else
10358 no_cache=1
10359 fi
10360
10361 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG='$DEFAULT_wxUSE_WIZARDDLG
10362
10363fi;
10364
10365 eval "$ac_cv_use_wizarddlg"
10366 if test "$no_cache" != 1; then
10367 echo $ac_cv_use_wizarddlg >> ${wx_arg_cache_file}.tmp
10368 fi
10369
10370 if test "$wxUSE_WIZARDDLG" = yes; then
10371 echo "$as_me:$LINENO: result: yes" >&5
10372echo "${ECHO_T}yes" >&6
10373 else
10374 echo "$as_me:$LINENO: result: no" >&5
10375echo "${ECHO_T}no" >&6
10376 fi
10377
10378
10379
10380
10381 enablestring=
10382 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-menus" >&5
10383echo $ECHO_N "checking for --${enablestring:-enable}-menus... $ECHO_C" >&6
10384 no_cache=0
10385 # Check whether --enable-menus or --disable-menus was given.
10386if test "${enable_menus+set}" = set; then
10387 enableval="$enable_menus"
10388
10389 if test "$enableval" = yes; then
10390 ac_cv_use_menus='wxUSE_MENUS=yes'
10391 else
10392 ac_cv_use_menus='wxUSE_MENUS=no'
10393 fi
10394
10395else
10396
10397 LINE=`grep "wxUSE_MENUS" ${wx_arg_cache_file}`
10398 if test "x$LINE" != x ; then
10399 eval "DEFAULT_$LINE"
10400 else
10401 no_cache=1
10402 fi
10403
10404 ac_cv_use_menus='wxUSE_MENUS='$DEFAULT_wxUSE_MENUS
10405
10406fi;
10407
10408 eval "$ac_cv_use_menus"
10409 if test "$no_cache" != 1; then
10410 echo $ac_cv_use_menus >> ${wx_arg_cache_file}.tmp
10411 fi
10412
10413 if test "$wxUSE_MENUS" = yes; then
10414 echo "$as_me:$LINENO: result: yes" >&5
10415echo "${ECHO_T}yes" >&6
10416 else
10417 echo "$as_me:$LINENO: result: no" >&5
10418echo "${ECHO_T}no" >&6
10419 fi
10420
10421
10422 enablestring=
10423 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-miniframe" >&5
10424echo $ECHO_N "checking for --${enablestring:-enable}-miniframe... $ECHO_C" >&6
10425 no_cache=0
10426 # Check whether --enable-miniframe or --disable-miniframe was given.
10427if test "${enable_miniframe+set}" = set; then
10428 enableval="$enable_miniframe"
10429
10430 if test "$enableval" = yes; then
10431 ac_cv_use_miniframe='wxUSE_MINIFRAME=yes'
10432 else
10433 ac_cv_use_miniframe='wxUSE_MINIFRAME=no'
10434 fi
10435
10436else
10437
10438 LINE=`grep "wxUSE_MINIFRAME" ${wx_arg_cache_file}`
10439 if test "x$LINE" != x ; then
10440 eval "DEFAULT_$LINE"
10441 else
10442 no_cache=1
10443 fi
10444
10445 ac_cv_use_miniframe='wxUSE_MINIFRAME='$DEFAULT_wxUSE_MINIFRAME
10446
10447fi;
10448
10449 eval "$ac_cv_use_miniframe"
10450 if test "$no_cache" != 1; then
10451 echo $ac_cv_use_miniframe >> ${wx_arg_cache_file}.tmp
10452 fi
10453
10454 if test "$wxUSE_MINIFRAME" = yes; then
10455 echo "$as_me:$LINENO: result: yes" >&5
10456echo "${ECHO_T}yes" >&6
10457 else
10458 echo "$as_me:$LINENO: result: no" >&5
10459echo "${ECHO_T}no" >&6
10460 fi
10461
10462
10463 enablestring=
10464 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tooltips" >&5
10465echo $ECHO_N "checking for --${enablestring:-enable}-tooltips... $ECHO_C" >&6
10466 no_cache=0
10467 # Check whether --enable-tooltips or --disable-tooltips was given.
10468if test "${enable_tooltips+set}" = set; then
10469 enableval="$enable_tooltips"
10470
10471 if test "$enableval" = yes; then
10472 ac_cv_use_tooltips='wxUSE_TOOLTIPS=yes'
10473 else
10474 ac_cv_use_tooltips='wxUSE_TOOLTIPS=no'
10475 fi
10476
10477else
10478
10479 LINE=`grep "wxUSE_TOOLTIPS" ${wx_arg_cache_file}`
10480 if test "x$LINE" != x ; then
10481 eval "DEFAULT_$LINE"
10482 else
10483 no_cache=1
10484 fi
10485
10486 ac_cv_use_tooltips='wxUSE_TOOLTIPS='$DEFAULT_wxUSE_TOOLTIPS
10487
10488fi;
10489
10490 eval "$ac_cv_use_tooltips"
10491 if test "$no_cache" != 1; then
10492 echo $ac_cv_use_tooltips >> ${wx_arg_cache_file}.tmp
10493 fi
10494
10495 if test "$wxUSE_TOOLTIPS" = yes; then
10496 echo "$as_me:$LINENO: result: yes" >&5
10497echo "${ECHO_T}yes" >&6
10498 else
10499 echo "$as_me:$LINENO: result: no" >&5
10500echo "${ECHO_T}no" >&6
10501 fi
10502
10503
10504 enablestring=
10505 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splines" >&5
10506echo $ECHO_N "checking for --${enablestring:-enable}-splines... $ECHO_C" >&6
10507 no_cache=0
10508 # Check whether --enable-splines or --disable-splines was given.
10509if test "${enable_splines+set}" = set; then
10510 enableval="$enable_splines"
10511
10512 if test "$enableval" = yes; then
10513 ac_cv_use_splines='wxUSE_SPLINES=yes'
10514 else
10515 ac_cv_use_splines='wxUSE_SPLINES=no'
10516 fi
10517
10518else
10519
10520 LINE=`grep "wxUSE_SPLINES" ${wx_arg_cache_file}`
10521 if test "x$LINE" != x ; then
10522 eval "DEFAULT_$LINE"
10523 else
10524 no_cache=1
10525 fi
10526
10527 ac_cv_use_splines='wxUSE_SPLINES='$DEFAULT_wxUSE_SPLINES
10528
10529fi;
10530
10531 eval "$ac_cv_use_splines"
10532 if test "$no_cache" != 1; then
10533 echo $ac_cv_use_splines >> ${wx_arg_cache_file}.tmp
10534 fi
10535
10536 if test "$wxUSE_SPLINES" = yes; then
10537 echo "$as_me:$LINENO: result: yes" >&5
10538echo "${ECHO_T}yes" >&6
10539 else
10540 echo "$as_me:$LINENO: result: no" >&5
10541echo "${ECHO_T}no" >&6
10542 fi
10543
10544
fbe2ca43
SN
10545 enablestring=
10546 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mousewheel" >&5
10547echo $ECHO_N "checking for --${enablestring:-enable}-mousewheel... $ECHO_C" >&6
10548 no_cache=0
10549 # Check whether --enable-mousewheel or --disable-mousewheel was given.
10550if test "${enable_mousewheel+set}" = set; then
10551 enableval="$enable_mousewheel"
10552
10553 if test "$enableval" = yes; then
10554 ac_cv_use_mousewheel='wxUSE_MOUSEWHEEL=yes'
10555 else
10556 ac_cv_use_mousewheel='wxUSE_MOUSEWHEEL=no'
10557 fi
10558
10559else
10560
10561 LINE=`grep "wxUSE_MOUSEWHEEL" ${wx_arg_cache_file}`
10562 if test "x$LINE" != x ; then
10563 eval "DEFAULT_$LINE"
10564 else
10565 no_cache=1
10566 fi
10567
10568 ac_cv_use_mousewheel='wxUSE_MOUSEWHEEL='$DEFAULT_wxUSE_MOUSEWHEEL
10569
10570fi;
10571
10572 eval "$ac_cv_use_mousewheel"
10573 if test "$no_cache" != 1; then
10574 echo $ac_cv_use_mousewheel >> ${wx_arg_cache_file}.tmp
10575 fi
10576
10577 if test "$wxUSE_MOUSEWHEEL" = yes; then
10578 echo "$as_me:$LINENO: result: yes" >&5
10579echo "${ECHO_T}yes" >&6
10580 else
10581 echo "$as_me:$LINENO: result: no" >&5
10582echo "${ECHO_T}no" >&6
10583 fi
10584
10585
a848cd7e
SC
10586 enablestring=
10587 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-validators" >&5
10588echo $ECHO_N "checking for --${enablestring:-enable}-validators... $ECHO_C" >&6
10589 no_cache=0
10590 # Check whether --enable-validators or --disable-validators was given.
10591if test "${enable_validators+set}" = set; then
10592 enableval="$enable_validators"
10593
10594 if test "$enableval" = yes; then
10595 ac_cv_use_validators='wxUSE_VALIDATORS=yes'
10596 else
10597 ac_cv_use_validators='wxUSE_VALIDATORS=no'
10598 fi
10599
10600else
10601
10602 LINE=`grep "wxUSE_VALIDATORS" ${wx_arg_cache_file}`
10603 if test "x$LINE" != x ; then
10604 eval "DEFAULT_$LINE"
10605 else
10606 no_cache=1
10607 fi
10608
10609 ac_cv_use_validators='wxUSE_VALIDATORS='$DEFAULT_wxUSE_VALIDATORS
10610
10611fi;
10612
10613 eval "$ac_cv_use_validators"
10614 if test "$no_cache" != 1; then
10615 echo $ac_cv_use_validators >> ${wx_arg_cache_file}.tmp
10616 fi
10617
10618 if test "$wxUSE_VALIDATORS" = yes; then
10619 echo "$as_me:$LINENO: result: yes" >&5
10620echo "${ECHO_T}yes" >&6
10621 else
10622 echo "$as_me:$LINENO: result: no" >&5
10623echo "${ECHO_T}no" >&6
10624 fi
10625
10626
10627 enablestring=
10628 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-busyinfo" >&5
10629echo $ECHO_N "checking for --${enablestring:-enable}-busyinfo... $ECHO_C" >&6
10630 no_cache=0
10631 # Check whether --enable-busyinfo or --disable-busyinfo was given.
10632if test "${enable_busyinfo+set}" = set; then
10633 enableval="$enable_busyinfo"
10634
10635 if test "$enableval" = yes; then
10636 ac_cv_use_busyinfo='wxUSE_BUSYINFO=yes'
10637 else
10638 ac_cv_use_busyinfo='wxUSE_BUSYINFO=no'
10639 fi
10640
10641else
10642
10643 LINE=`grep "wxUSE_BUSYINFO" ${wx_arg_cache_file}`
10644 if test "x$LINE" != x ; then
10645 eval "DEFAULT_$LINE"
10646 else
10647 no_cache=1
10648 fi
10649
10650 ac_cv_use_busyinfo='wxUSE_BUSYINFO='$DEFAULT_wxUSE_BUSYINFO
10651
10652fi;
10653
10654 eval "$ac_cv_use_busyinfo"
10655 if test "$no_cache" != 1; then
10656 echo $ac_cv_use_busyinfo >> ${wx_arg_cache_file}.tmp
10657 fi
10658
10659 if test "$wxUSE_BUSYINFO" = yes; then
10660 echo "$as_me:$LINENO: result: yes" >&5
10661echo "${ECHO_T}yes" >&6
10662 else
10663 echo "$as_me:$LINENO: result: no" >&5
10664echo "${ECHO_T}no" >&6
10665 fi
10666
10667
10668 enablestring=
10669 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-joystick" >&5
10670echo $ECHO_N "checking for --${enablestring:-enable}-joystick... $ECHO_C" >&6
10671 no_cache=0
10672 # Check whether --enable-joystick or --disable-joystick was given.
10673if test "${enable_joystick+set}" = set; then
10674 enableval="$enable_joystick"
10675
10676 if test "$enableval" = yes; then
10677 ac_cv_use_joystick='wxUSE_JOYSTICK=yes'
10678 else
10679 ac_cv_use_joystick='wxUSE_JOYSTICK=no'
10680 fi
10681
10682else
10683
10684 LINE=`grep "wxUSE_JOYSTICK" ${wx_arg_cache_file}`
10685 if test "x$LINE" != x ; then
10686 eval "DEFAULT_$LINE"
10687 else
10688 no_cache=1
10689 fi
10690
10691 ac_cv_use_joystick='wxUSE_JOYSTICK='$DEFAULT_wxUSE_JOYSTICK
10692
10693fi;
10694
10695 eval "$ac_cv_use_joystick"
10696 if test "$no_cache" != 1; then
10697 echo $ac_cv_use_joystick >> ${wx_arg_cache_file}.tmp
10698 fi
10699
10700 if test "$wxUSE_JOYSTICK" = yes; then
10701 echo "$as_me:$LINENO: result: yes" >&5
10702echo "${ECHO_T}yes" >&6
10703 else
10704 echo "$as_me:$LINENO: result: no" >&5
10705echo "${ECHO_T}no" >&6
10706 fi
10707
10708
10709 enablestring=
10710 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-metafile" >&5
10711echo $ECHO_N "checking for --${enablestring:-enable}-metafile... $ECHO_C" >&6
10712 no_cache=0
10713 # Check whether --enable-metafile or --disable-metafile was given.
10714if test "${enable_metafile+set}" = set; then
10715 enableval="$enable_metafile"
10716
10717 if test "$enableval" = yes; then
10718 ac_cv_use_metafile='wxUSE_METAFILE=yes'
10719 else
10720 ac_cv_use_metafile='wxUSE_METAFILE=no'
10721 fi
10722
10723else
10724
10725 LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}`
10726 if test "x$LINE" != x ; then
10727 eval "DEFAULT_$LINE"
10728 else
10729 no_cache=1
10730 fi
10731
10732 ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE
10733
10734fi;
10735
10736 eval "$ac_cv_use_metafile"
10737 if test "$no_cache" != 1; then
10738 echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp
10739 fi
10740
10741 if test "$wxUSE_METAFILE" = yes; then
10742 echo "$as_me:$LINENO: result: yes" >&5
10743echo "${ECHO_T}yes" >&6
10744 else
10745 echo "$as_me:$LINENO: result: no" >&5
10746echo "${ECHO_T}no" >&6
10747 fi
10748
10749
10750 enablestring=
10751 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dragimage" >&5
10752echo $ECHO_N "checking for --${enablestring:-enable}-dragimage... $ECHO_C" >&6
10753 no_cache=0
10754 # Check whether --enable-dragimage or --disable-dragimage was given.
10755if test "${enable_dragimage+set}" = set; then
10756 enableval="$enable_dragimage"
10757
10758 if test "$enableval" = yes; then
10759 ac_cv_use_dragimage='wxUSE_DRAGIMAGE=yes'
10760 else
10761 ac_cv_use_dragimage='wxUSE_DRAGIMAGE=no'
10762 fi
10763
10764else
10765
10766 LINE=`grep "wxUSE_DRAGIMAGE" ${wx_arg_cache_file}`
10767 if test "x$LINE" != x ; then
10768 eval "DEFAULT_$LINE"
10769 else
10770 no_cache=1
10771 fi
10772
10773 ac_cv_use_dragimage='wxUSE_DRAGIMAGE='$DEFAULT_wxUSE_DRAGIMAGE
10774
10775fi;
10776
10777 eval "$ac_cv_use_dragimage"
10778 if test "$no_cache" != 1; then
10779 echo $ac_cv_use_dragimage >> ${wx_arg_cache_file}.tmp
10780 fi
10781
10782 if test "$wxUSE_DRAGIMAGE" = yes; then
10783 echo "$as_me:$LINENO: result: yes" >&5
10784echo "${ECHO_T}yes" >&6
10785 else
10786 echo "$as_me:$LINENO: result: no" >&5
10787echo "${ECHO_T}no" >&6
10788 fi
10789
10790
10791 enablestring=
10792 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-accessibility" >&5
10793echo $ECHO_N "checking for --${enablestring:-enable}-accessibility... $ECHO_C" >&6
10794 no_cache=0
10795 # Check whether --enable-accessibility or --disable-accessibility was given.
10796if test "${enable_accessibility+set}" = set; then
10797 enableval="$enable_accessibility"
10798
10799 if test "$enableval" = yes; then
10800 ac_cv_use_accessibility='wxUSE_ACCESSIBILITY=yes'
10801 else
10802 ac_cv_use_accessibility='wxUSE_ACCESSIBILITY=no'
10803 fi
10804
10805else
10806
10807 LINE=`grep "wxUSE_ACCESSIBILITY" ${wx_arg_cache_file}`
10808 if test "x$LINE" != x ; then
10809 eval "DEFAULT_$LINE"
10810 else
10811 no_cache=1
10812 fi
10813
10814 ac_cv_use_accessibility='wxUSE_ACCESSIBILITY='$DEFAULT_wxUSE_ACCESSIBILITY
10815
10816fi;
10817
10818 eval "$ac_cv_use_accessibility"
10819 if test "$no_cache" != 1; then
10820 echo $ac_cv_use_accessibility >> ${wx_arg_cache_file}.tmp
10821 fi
10822
10823 if test "$wxUSE_ACCESSIBILITY" = yes; then
10824 echo "$as_me:$LINENO: result: yes" >&5
10825echo "${ECHO_T}yes" >&6
10826 else
10827 echo "$as_me:$LINENO: result: no" >&5
10828echo "${ECHO_T}no" >&6
10829 fi
10830
10831
38b4a946
VZ
10832if test "$wxUSE_MSW" = "1"; then
10833
10834 enablestring=
10835 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dccache" >&5
10836echo $ECHO_N "checking for --${enablestring:-enable}-dccache... $ECHO_C" >&6
10837 no_cache=0
10838 # Check whether --enable-dccache or --disable-dccache was given.
10839if test "${enable_dccache+set}" = set; then
10840 enableval="$enable_dccache"
10841
10842 if test "$enableval" = yes; then
10843 ac_cv_use_dccache='wxUSE_DC_CACHEING=yes'
10844 else
10845 ac_cv_use_dccache='wxUSE_DC_CACHEING=no'
10846 fi
10847
10848else
10849
10850 LINE=`grep "wxUSE_DC_CACHEING" ${wx_arg_cache_file}`
10851 if test "x$LINE" != x ; then
10852 eval "DEFAULT_$LINE"
10853 else
10854 no_cache=1
10855 fi
10856
10857 ac_cv_use_dccache='wxUSE_DC_CACHEING='$DEFAULT_wxUSE_DC_CACHEING
10858
10859fi;
10860
10861 eval "$ac_cv_use_dccache"
10862 if test "$no_cache" != 1; then
10863 echo $ac_cv_use_dccache >> ${wx_arg_cache_file}.tmp
10864 fi
10865
10866 if test "$wxUSE_DC_CACHEING" = yes; then
10867 echo "$as_me:$LINENO: result: yes" >&5
10868echo "${ECHO_T}yes" >&6
10869 else
10870 echo "$as_me:$LINENO: result: no" >&5
10871echo "${ECHO_T}no" >&6
10872 fi
10873
10874fi
10875
a848cd7e
SC
10876
10877
10878 enablestring=
10879 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-palette" >&5
10880echo $ECHO_N "checking for --${enablestring:-enable}-palette... $ECHO_C" >&6
10881 no_cache=0
10882 # Check whether --enable-palette or --disable-palette was given.
10883if test "${enable_palette+set}" = set; then
10884 enableval="$enable_palette"
10885
10886 if test "$enableval" = yes; then
10887 ac_cv_use_palette='wxUSE_PALETTE=yes'
10888 else
10889 ac_cv_use_palette='wxUSE_PALETTE=no'
10890 fi
10891
10892else
10893
10894 LINE=`grep "wxUSE_PALETTE" ${wx_arg_cache_file}`
10895 if test "x$LINE" != x ; then
10896 eval "DEFAULT_$LINE"
10897 else
10898 no_cache=1
10899 fi
10900
10901 ac_cv_use_palette='wxUSE_PALETTE='$DEFAULT_wxUSE_PALETTE
10902
10903fi;
10904
10905 eval "$ac_cv_use_palette"
10906 if test "$no_cache" != 1; then
10907 echo $ac_cv_use_palette >> ${wx_arg_cache_file}.tmp
10908 fi
10909
10910 if test "$wxUSE_PALETTE" = yes; then
10911 echo "$as_me:$LINENO: result: yes" >&5
10912echo "${ECHO_T}yes" >&6
10913 else
10914 echo "$as_me:$LINENO: result: no" >&5
10915echo "${ECHO_T}no" >&6
10916 fi
10917
10918
10919 enablestring=
10920 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-image" >&5
10921echo $ECHO_N "checking for --${enablestring:-enable}-image... $ECHO_C" >&6
10922 no_cache=0
10923 # Check whether --enable-image or --disable-image was given.
10924if test "${enable_image+set}" = set; then
10925 enableval="$enable_image"
10926
10927 if test "$enableval" = yes; then
10928 ac_cv_use_image='wxUSE_IMAGE=yes'
10929 else
10930 ac_cv_use_image='wxUSE_IMAGE=no'
10931 fi
10932
10933else
10934
10935 LINE=`grep "wxUSE_IMAGE" ${wx_arg_cache_file}`
10936 if test "x$LINE" != x ; then
10937 eval "DEFAULT_$LINE"
10938 else
10939 no_cache=1
10940 fi
10941
10942 ac_cv_use_image='wxUSE_IMAGE='$DEFAULT_wxUSE_IMAGE
10943
10944fi;
10945
10946 eval "$ac_cv_use_image"
10947 if test "$no_cache" != 1; then
10948 echo $ac_cv_use_image >> ${wx_arg_cache_file}.tmp
10949 fi
10950
10951 if test "$wxUSE_IMAGE" = yes; then
10952 echo "$as_me:$LINENO: result: yes" >&5
10953echo "${ECHO_T}yes" >&6
10954 else
10955 echo "$as_me:$LINENO: result: no" >&5
10956echo "${ECHO_T}no" >&6
10957 fi
10958
10959
10960 enablestring=
10961 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gif" >&5
10962echo $ECHO_N "checking for --${enablestring:-enable}-gif... $ECHO_C" >&6
10963 no_cache=0
10964 # Check whether --enable-gif or --disable-gif was given.
10965if test "${enable_gif+set}" = set; then
10966 enableval="$enable_gif"
10967
10968 if test "$enableval" = yes; then
10969 ac_cv_use_gif='wxUSE_GIF=yes'
10970 else
10971 ac_cv_use_gif='wxUSE_GIF=no'
10972 fi
10973
10974else
10975
10976 LINE=`grep "wxUSE_GIF" ${wx_arg_cache_file}`
10977 if test "x$LINE" != x ; then
10978 eval "DEFAULT_$LINE"
10979 else
10980 no_cache=1
10981 fi
10982
10983 ac_cv_use_gif='wxUSE_GIF='$DEFAULT_wxUSE_GIF
10984
10985fi;
10986
10987 eval "$ac_cv_use_gif"
10988 if test "$no_cache" != 1; then
10989 echo $ac_cv_use_gif >> ${wx_arg_cache_file}.tmp
10990 fi
10991
10992 if test "$wxUSE_GIF" = yes; then
10993 echo "$as_me:$LINENO: result: yes" >&5
10994echo "${ECHO_T}yes" >&6
10995 else
10996 echo "$as_me:$LINENO: result: no" >&5
10997echo "${ECHO_T}no" >&6
10998 fi
10999
11000
11001 enablestring=
11002 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-pcx" >&5
11003echo $ECHO_N "checking for --${enablestring:-enable}-pcx... $ECHO_C" >&6
11004 no_cache=0
11005 # Check whether --enable-pcx or --disable-pcx was given.
11006if test "${enable_pcx+set}" = set; then
11007 enableval="$enable_pcx"
11008
11009 if test "$enableval" = yes; then
11010 ac_cv_use_pcx='wxUSE_PCX=yes'
11011 else
11012 ac_cv_use_pcx='wxUSE_PCX=no'
11013 fi
11014
11015else
11016
11017 LINE=`grep "wxUSE_PCX" ${wx_arg_cache_file}`
11018 if test "x$LINE" != x ; then
11019 eval "DEFAULT_$LINE"
11020 else
11021 no_cache=1
11022 fi
11023
11024 ac_cv_use_pcx='wxUSE_PCX='$DEFAULT_wxUSE_PCX
11025
11026fi;
11027
11028 eval "$ac_cv_use_pcx"
11029 if test "$no_cache" != 1; then
11030 echo $ac_cv_use_pcx >> ${wx_arg_cache_file}.tmp
11031 fi
11032
11033 if test "$wxUSE_PCX" = yes; then
11034 echo "$as_me:$LINENO: result: yes" >&5
11035echo "${ECHO_T}yes" >&6
11036 else
11037 echo "$as_me:$LINENO: result: no" >&5
11038echo "${ECHO_T}no" >&6
11039 fi
11040
11041
11042 enablestring=
11043 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-iff" >&5
11044echo $ECHO_N "checking for --${enablestring:-enable}-iff... $ECHO_C" >&6
11045 no_cache=0
11046 # Check whether --enable-iff or --disable-iff was given.
11047if test "${enable_iff+set}" = set; then
11048 enableval="$enable_iff"
11049
11050 if test "$enableval" = yes; then
11051 ac_cv_use_iff='wxUSE_IFF=yes'
11052 else
11053 ac_cv_use_iff='wxUSE_IFF=no'
11054 fi
11055
11056else
11057
11058 LINE=`grep "wxUSE_IFF" ${wx_arg_cache_file}`
11059 if test "x$LINE" != x ; then
11060 eval "DEFAULT_$LINE"
11061 else
11062 no_cache=1
11063 fi
11064
11065 ac_cv_use_iff='wxUSE_IFF='$DEFAULT_wxUSE_IFF
11066
11067fi;
11068
11069 eval "$ac_cv_use_iff"
11070 if test "$no_cache" != 1; then
11071 echo $ac_cv_use_iff >> ${wx_arg_cache_file}.tmp
11072 fi
11073
11074 if test "$wxUSE_IFF" = yes; then
11075 echo "$as_me:$LINENO: result: yes" >&5
11076echo "${ECHO_T}yes" >&6
11077 else
11078 echo "$as_me:$LINENO: result: no" >&5
11079echo "${ECHO_T}no" >&6
11080 fi
11081
11082
11083 enablestring=
11084 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-pnm" >&5
11085echo $ECHO_N "checking for --${enablestring:-enable}-pnm... $ECHO_C" >&6
11086 no_cache=0
11087 # Check whether --enable-pnm or --disable-pnm was given.
11088if test "${enable_pnm+set}" = set; then
11089 enableval="$enable_pnm"
11090
11091 if test "$enableval" = yes; then
11092 ac_cv_use_pnm='wxUSE_PNM=yes'
11093 else
11094 ac_cv_use_pnm='wxUSE_PNM=no'
11095 fi
11096
11097else
11098
11099 LINE=`grep "wxUSE_PNM" ${wx_arg_cache_file}`
11100 if test "x$LINE" != x ; then
11101 eval "DEFAULT_$LINE"
11102 else
11103 no_cache=1
11104 fi
11105
11106 ac_cv_use_pnm='wxUSE_PNM='$DEFAULT_wxUSE_PNM
11107
11108fi;
11109
11110 eval "$ac_cv_use_pnm"
11111 if test "$no_cache" != 1; then
11112 echo $ac_cv_use_pnm >> ${wx_arg_cache_file}.tmp
11113 fi
11114
11115 if test "$wxUSE_PNM" = yes; then
11116 echo "$as_me:$LINENO: result: yes" >&5
11117echo "${ECHO_T}yes" >&6
11118 else
11119 echo "$as_me:$LINENO: result: no" >&5
11120echo "${ECHO_T}no" >&6
11121 fi
11122
11123
11124 enablestring=
11125 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-xpm" >&5
11126echo $ECHO_N "checking for --${enablestring:-enable}-xpm... $ECHO_C" >&6
11127 no_cache=0
11128 # Check whether --enable-xpm or --disable-xpm was given.
11129if test "${enable_xpm+set}" = set; then
11130 enableval="$enable_xpm"
11131
11132 if test "$enableval" = yes; then
11133 ac_cv_use_xpm='wxUSE_XPM=yes'
11134 else
11135 ac_cv_use_xpm='wxUSE_XPM=no'
11136 fi
11137
11138else
11139
11140 LINE=`grep "wxUSE_XPM" ${wx_arg_cache_file}`
11141 if test "x$LINE" != x ; then
11142 eval "DEFAULT_$LINE"
11143 else
11144 no_cache=1
11145 fi
11146
11147 ac_cv_use_xpm='wxUSE_XPM='$DEFAULT_wxUSE_XPM
11148
11149fi;
11150
11151 eval "$ac_cv_use_xpm"
11152 if test "$no_cache" != 1; then
11153 echo $ac_cv_use_xpm >> ${wx_arg_cache_file}.tmp
11154 fi
11155
11156 if test "$wxUSE_XPM" = yes; then
11157 echo "$as_me:$LINENO: result: yes" >&5
11158echo "${ECHO_T}yes" >&6
11159 else
11160 echo "$as_me:$LINENO: result: no" >&5
11161echo "${ECHO_T}no" >&6
11162 fi
11163
11164
11165 enablestring=
11166 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ico_cur" >&5
11167echo $ECHO_N "checking for --${enablestring:-enable}-ico_cur... $ECHO_C" >&6
11168 no_cache=0
11169 # Check whether --enable-ico_cur or --disable-ico_cur was given.
11170if test "${enable_ico_cur+set}" = set; then
11171 enableval="$enable_ico_cur"
11172
11173 if test "$enableval" = yes; then
11174 ac_cv_use_ico_cur='wxUSE_ICO_CUR=yes'
11175 else
11176 ac_cv_use_ico_cur='wxUSE_ICO_CUR=no'
11177 fi
11178
11179else
11180
11181 LINE=`grep "wxUSE_ICO_CUR" ${wx_arg_cache_file}`
11182 if test "x$LINE" != x ; then
11183 eval "DEFAULT_$LINE"
11184 else
11185 no_cache=1
11186 fi
11187
11188 ac_cv_use_ico_cur='wxUSE_ICO_CUR='$DEFAULT_wxUSE_ICO_CUR
11189
11190fi;
11191
11192 eval "$ac_cv_use_ico_cur"
11193 if test "$no_cache" != 1; then
11194 echo $ac_cv_use_ico_cur >> ${wx_arg_cache_file}.tmp
11195 fi
11196
11197 if test "$wxUSE_ICO_CUR" = yes; then
11198 echo "$as_me:$LINENO: result: yes" >&5
11199echo "${ECHO_T}yes" >&6
11200 else
11201 echo "$as_me:$LINENO: result: no" >&5
11202echo "${ECHO_T}no" >&6
11203 fi
11204
11205
11206fi
11207
11208
11209
ceec2216
RL
11210# Check whether --with-flavour or --without-flavour was given.
11211if test "${with_flavour+set}" = set; then
11212 withval="$with_flavour"
11213 WX_FLAVOUR="$withval"
11214fi;
11215
11216
11217
a848cd7e
SC
11218 enablestring=
11219 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-official_build" >&5
11220echo $ECHO_N "checking for --${enablestring:-enable}-official_build... $ECHO_C" >&6
11221 no_cache=0
11222 # Check whether --enable-official_build or --disable-official_build was given.
11223if test "${enable_official_build+set}" = set; then
11224 enableval="$enable_official_build"
11225
11226 if test "$enableval" = yes; then
11227 ac_cv_use_official_build='wxUSE_OFFICIAL_BUILD=yes'
11228 else
11229 ac_cv_use_official_build='wxUSE_OFFICIAL_BUILD=no'
11230 fi
11231
11232else
11233
11234 LINE=`grep "wxUSE_OFFICIAL_BUILD" ${wx_arg_cache_file}`
11235 if test "x$LINE" != x ; then
11236 eval "DEFAULT_$LINE"
11237 else
11238 no_cache=1
11239 fi
11240
11241 ac_cv_use_official_build='wxUSE_OFFICIAL_BUILD='$DEFAULT_wxUSE_OFFICIAL_BUILD
11242
11243fi;
11244
11245 eval "$ac_cv_use_official_build"
11246 if test "$no_cache" != 1; then
11247 echo $ac_cv_use_official_build >> ${wx_arg_cache_file}.tmp
11248 fi
11249
11250 if test "$wxUSE_OFFICIAL_BUILD" = yes; then
11251 echo "$as_me:$LINENO: result: yes" >&5
11252echo "${ECHO_T}yes" >&6
11253 else
11254 echo "$as_me:$LINENO: result: no" >&5
11255echo "${ECHO_T}no" >&6
11256 fi
11257
11258# Check whether --enable-vendor or --disable-vendor was given.
11259if test "${enable_vendor+set}" = set; then
11260 enableval="$enable_vendor"
11261 VENDOR="$enableval"
11262fi;
11263if test "x$VENDOR" = "x"; then
11264 VENDOR="custom"
11265fi
11266
a848cd7e
SC
11267
11268
11269
11270 echo "saving argument cache $wx_arg_cache_file"
11271 mv ${wx_arg_cache_file}.tmp ${wx_arg_cache_file}
11272
11273
11274
11275echo "$as_me:$LINENO: checking for toolkit" >&5
11276echo $ECHO_N "checking for toolkit... $ECHO_C" >&6
11277
11278# In Wine, we need to default to MSW, not GTK or MOTIF
11279if test "$wxUSE_WINE" = "yes"; then
11280 DEFAULT_DEFAULT_wxUSE_GTK=0
11281 DEFAULT_DEFAULT_wxUSE_MOTIF=0
11282 DEFAULT_DEFAULT_wxUSE_MSW=1
11283 wxUSE_SHARED=no
11284fi
11285
f597b41c 11286
a848cd7e
SC
11287if test "$wxUSE_GUI" = "yes"; then
11288
11289 if test "$USE_BEOS" = 1; then
11290 { { echo "$as_me:$LINENO: error: BeOS GUI is not supported yet, use --disable-gui" >&5
11291echo "$as_me: error: BeOS GUI is not supported yet, use --disable-gui" >&2;}
11292 { (exit 1); exit 1; }; }
11293 fi
11294
11295 if test "$TOOLKIT_GIVEN" = 1; then
11296 for toolkit in `echo $ALL_TOOLKITS`; do
11297 var=wxUSE_$toolkit
11298 eval "value=\$${var}"
f34ca037
MW
11299 if test "x$value" = "xno"; then
11300 eval "$var=0"
11301 elif test "x$value" != "x"; then
11302 eval "$var=1"
11303 fi
11304
11305 if test "x$value" != "x" -a "x$value" != "xyes" -a "x$value" != "xno"; then
11306 eval "wx${toolkit}_VERSION=$value"
11307 fi
a848cd7e
SC
11308 done
11309 else
11310 for toolkit in `echo $ALL_TOOLKITS`; do
11311 if test "$has_toolkit_in_cache" != 1; then
11312 var=DEFAULT_DEFAULT_wxUSE_$toolkit
11313 else
11314 var=DEFAULT_wxUSE_$toolkit
f34ca037
MW
11315
11316 eval "version=\$DEFAULT_wx${toolkit}_VERSION"
11317 if test "x$version" != "x"; then
11318 eval "wx${toolkit}_VERSION=$version"
11319 fi
a848cd7e
SC
11320 fi
11321 eval "wxUSE_$toolkit=\$${var}"
11322 done
11323 fi
11324
11325 NUM_TOOLKITS=`expr ${wxUSE_COCOA:-0} + ${wxUSE_GTK:-0} + ${wxUSE_MAC:-0} \
11326 + ${wxUSE_MGL:-0} + ${wxUSE_MICROWIN:-0} \
11327 + ${wxUSE_MOTIF:-0} + ${wxUSE_MSW:-0} + ${wxUSE_X11:-0}`
11328
11329 case "${host}" in
11330 *-pc-os2_emx | *-pc-os2-emx )
11331 NUM_TOOLKITS=`expr ${NUM_TOOLKITS} + ${wxUSE_PM:-0}`
11332 esac
11333
11334 case "$NUM_TOOLKITS" in
11335 1)
11336 ;;
11337 0)
11338 { { echo "$as_me:$LINENO: error: Please specify a toolkit -- cannot determine the default for ${host}" >&5
11339echo "$as_me: error: Please specify a toolkit -- cannot determine the default for ${host}" >&2;}
11340 { (exit 1); exit 1; }; }
11341 ;;
11342 *)
11343 { { echo "$as_me:$LINENO: error: Please specify at most one toolkit (maybe some are cached in configarg.cache?)" >&5
11344echo "$as_me: error: Please specify at most one toolkit (maybe some are cached in configarg.cache?)" >&2;}
11345 { (exit 1); exit 1; }; }
11346 esac
11347
f34ca037
MW
11348 # to be removed when --disable-gtk2 isn't needed
11349 if test "x$wxUSE_GTK2" = "xyes"; then
11350 wxGTK_VERSION=2
11351 elif test "x$wxUSE_GTK2" = "xno"; then
11352 wxGTK_VERSION=1
11353 fi
11354
a848cd7e
SC
11355 for toolkit in `echo $ALL_TOOLKITS`; do
11356 var=wxUSE_$toolkit
11357 eval "value=\$${var}"
11358 if test "x$value" != x; then
11359 cache_var=CACHE_$toolkit
11360 eval "cache=\$${cache_var}"
11361 if test "$cache" = 1; then
11362 echo "$var=$value" >> ${wx_arg_cache_file}
f34ca037
MW
11363 eval "version=\$wx${toolkit}_VERSION"
11364 if test "x$version" != "x"; then
11365 echo "wx${toolkit}_VERSION=$version" >> ${wx_arg_cache_file}
11366 fi
a848cd7e
SC
11367 fi
11368 if test "$value" = 1; then
11369 toolkit_echo=`echo $toolkit | tr "[A-Z]" "[a-z]"`
11370 echo "$as_me:$LINENO: result: $toolkit_echo" >&5
11371echo "${ECHO_T}$toolkit_echo" >&6
11372 fi
11373 fi
11374 done
11375else
11376 if test "x$host_alias" != "x"; then
11377 echo "$as_me:$LINENO: result: base ($host_alias hosted) only" >&5
11378echo "${ECHO_T}base ($host_alias hosted) only" >&6
11379 else
11380 echo "$as_me:$LINENO: result: base only" >&5
11381echo "${ECHO_T}base only" >&6
11382 fi
11383fi
11384
11385wants_win32=0
11386doesnt_want_win32=0
11387case "${host}" in
11388 *-*-cygwin*)
11389 if test "$wxUSE_MSW" = 1 ; then
11390 wants_win32=1
7275146d 11391 BAKEFILE_FORCE_PLATFORM=win32
a848cd7e
SC
11392 else
11393 doesnt_want_win32=1
11394 fi
11395 ;;
11396 *-*-mingw*)
11397 wants_win32=1
11398 ;;
11399esac
11400
11401if test "$wxUSE_WINE" = "yes"; then
11402 wants_win32=1
11403 CC=winegcc
11404 CXX=wineg++
a848cd7e
SC
11405 LDFLAGS_GUI="-mwindows"
11406fi
11407
11408if test "$wants_win32" = 1 ; then
11409 USE_UNIX=0
11410 USE_WIN32=1
11411 cat >>confdefs.h <<\_ACEOF
11412#define __WIN32__ 1
11413_ACEOF
11414
11415 cat >>confdefs.h <<\_ACEOF
11416#define __WIN95__ 1
11417_ACEOF
11418
11419 cat >>confdefs.h <<\_ACEOF
11420#define __WINDOWS__ 1
11421_ACEOF
11422
11423 cat >>confdefs.h <<\_ACEOF
11424#define __GNUWIN32__ 1
11425_ACEOF
11426
11427 cat >>confdefs.h <<\_ACEOF
11428#define STRICT 1
11429_ACEOF
11430
11431 cat >>confdefs.h <<\_ACEOF
11432#define WINVER 0x0400
11433_ACEOF
11434
11435fi
11436if test "$doesnt_want_win32" = 1 ; then
11437 USE_UNIX=1
11438 USE_WIN32=0
11439fi
11440
11441if test "$USE_UNIX" = 1 ; then
11442 wxUSE_UNIX=yes
11443 cat >>confdefs.h <<\_ACEOF
11444#define __UNIX__ 1
11445_ACEOF
11446
11447fi
11448
11449
11450cat >confcache <<\_ACEOF
11451# This file is a shell script that caches the results of configure
11452# tests run on this system so they can be shared between configure
11453# scripts and configure runs, see configure's option --config-cache.
11454# It is not useful on other systems. If it contains results you don't
11455# want to keep, you may remove or edit it.
11456#
11457# config.status only pays attention to the cache file if you give it
11458# the --recheck option to rerun configure.
11459#
11460# `ac_cv_env_foo' variables (set or unset) will be overridden when
11461# loading this file, other *unset* `ac_cv_foo' will be assigned the
11462# following values.
11463
11464_ACEOF
11465
11466# The following way of writing the cache mishandles newlines in values,
11467# but we know of no workaround that is simple, portable, and efficient.
11468# So, don't put newlines in cache variables' values.
11469# Ultrix sh set writes to stderr and can't be redirected directly,
11470# and sets the high bit in the cache file unless we assign to the vars.
11471{
11472 (set) 2>&1 |
11473 case `(ac_space=' '; set | grep ac_space) 2>&1` in
11474 *ac_space=\ *)
11475 # `set' does not quote correctly, so add quotes (double-quote
11476 # substitution turns \\\\ into \\, and sed turns \\ into \).
11477 sed -n \
ac1cb8d3
VS
11478 "s/'/'\\\\''/g;
11479 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
a848cd7e
SC
11480 ;;
11481 *)
11482 # `set' quotes correctly as required by POSIX, so do not add quotes.
11483 sed -n \
ac1cb8d3 11484 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
a848cd7e
SC
11485 ;;
11486 esac;
11487} |
11488 sed '
11489 t clear
11490 : clear
11491 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
11492 t end
11493 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11494 : end' >>confcache
11495if diff $cache_file confcache >/dev/null 2>&1; then :; else
11496 if test -w $cache_file; then
11497 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
11498 cat confcache >$cache_file
11499 else
11500 echo "not updating unwritable cache $cache_file"
11501 fi
11502fi
11503rm -f confcache
11504
a848cd7e 11505CFLAGS=${CFLAGS:=}
6dcfc289
DE
11506
11507
3006edc0 11508
6dcfc289 11509 ac_ext=c
a848cd7e
SC
11510ac_cpp='$CPP $CPPFLAGS'
11511ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11512ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11513ac_compiler_gnu=$ac_cv_c_compiler_gnu
11514if test -n "$ac_tool_prefix"; then
11515 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
11516set dummy ${ac_tool_prefix}gcc; ac_word=$2
11517echo "$as_me:$LINENO: checking for $ac_word" >&5
11518echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11519if test "${ac_cv_prog_CC+set}" = set; then
11520 echo $ECHO_N "(cached) $ECHO_C" >&6
11521else
11522 if test -n "$CC"; then
11523 ac_cv_prog_CC="$CC" # Let the user override the test.
11524else
11525as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11526for as_dir in $PATH
11527do
11528 IFS=$as_save_IFS
11529 test -z "$as_dir" && as_dir=.
11530 for ac_exec_ext in '' $ac_executable_extensions; do
11531 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11532 ac_cv_prog_CC="${ac_tool_prefix}gcc"
11533 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11534 break 2
11535 fi
11536done
11537done
11538
11539fi
11540fi
11541CC=$ac_cv_prog_CC
11542if test -n "$CC"; then
11543 echo "$as_me:$LINENO: result: $CC" >&5
11544echo "${ECHO_T}$CC" >&6
11545else
11546 echo "$as_me:$LINENO: result: no" >&5
11547echo "${ECHO_T}no" >&6
11548fi
11549
11550fi
11551if test -z "$ac_cv_prog_CC"; then
11552 ac_ct_CC=$CC
11553 # Extract the first word of "gcc", so it can be a program name with args.
11554set dummy gcc; ac_word=$2
11555echo "$as_me:$LINENO: checking for $ac_word" >&5
11556echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11557if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
11558 echo $ECHO_N "(cached) $ECHO_C" >&6
11559else
11560 if test -n "$ac_ct_CC"; then
11561 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
11562else
11563as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11564for as_dir in $PATH
11565do
11566 IFS=$as_save_IFS
11567 test -z "$as_dir" && as_dir=.
11568 for ac_exec_ext in '' $ac_executable_extensions; do
11569 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11570 ac_cv_prog_ac_ct_CC="gcc"
11571 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11572 break 2
11573 fi
11574done
11575done
11576
11577fi
11578fi
11579ac_ct_CC=$ac_cv_prog_ac_ct_CC
11580if test -n "$ac_ct_CC"; then
11581 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
11582echo "${ECHO_T}$ac_ct_CC" >&6
11583else
11584 echo "$as_me:$LINENO: result: no" >&5
11585echo "${ECHO_T}no" >&6
11586fi
11587
11588 CC=$ac_ct_CC
11589else
11590 CC="$ac_cv_prog_CC"
11591fi
11592
11593if test -z "$CC"; then
11594 if test -n "$ac_tool_prefix"; then
11595 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
11596set dummy ${ac_tool_prefix}cc; ac_word=$2
11597echo "$as_me:$LINENO: checking for $ac_word" >&5
11598echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11599if test "${ac_cv_prog_CC+set}" = set; then
11600 echo $ECHO_N "(cached) $ECHO_C" >&6
11601else
11602 if test -n "$CC"; then
11603 ac_cv_prog_CC="$CC" # Let the user override the test.
11604else
11605as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11606for as_dir in $PATH
11607do
11608 IFS=$as_save_IFS
11609 test -z "$as_dir" && as_dir=.
11610 for ac_exec_ext in '' $ac_executable_extensions; do
11611 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11612 ac_cv_prog_CC="${ac_tool_prefix}cc"
11613 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11614 break 2
11615 fi
11616done
11617done
11618
11619fi
11620fi
11621CC=$ac_cv_prog_CC
11622if test -n "$CC"; then
11623 echo "$as_me:$LINENO: result: $CC" >&5
11624echo "${ECHO_T}$CC" >&6
11625else
11626 echo "$as_me:$LINENO: result: no" >&5
11627echo "${ECHO_T}no" >&6
11628fi
11629
11630fi
11631if test -z "$ac_cv_prog_CC"; then
11632 ac_ct_CC=$CC
11633 # Extract the first word of "cc", so it can be a program name with args.
11634set dummy cc; ac_word=$2
11635echo "$as_me:$LINENO: checking for $ac_word" >&5
11636echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11637if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
11638 echo $ECHO_N "(cached) $ECHO_C" >&6
11639else
11640 if test -n "$ac_ct_CC"; then
11641 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
11642else
11643as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11644for as_dir in $PATH
11645do
11646 IFS=$as_save_IFS
11647 test -z "$as_dir" && as_dir=.
11648 for ac_exec_ext in '' $ac_executable_extensions; do
11649 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11650 ac_cv_prog_ac_ct_CC="cc"
11651 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11652 break 2
11653 fi
11654done
11655done
11656
11657fi
11658fi
11659ac_ct_CC=$ac_cv_prog_ac_ct_CC
11660if test -n "$ac_ct_CC"; then
11661 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
11662echo "${ECHO_T}$ac_ct_CC" >&6
11663else
11664 echo "$as_me:$LINENO: result: no" >&5
11665echo "${ECHO_T}no" >&6
11666fi
11667
11668 CC=$ac_ct_CC
11669else
11670 CC="$ac_cv_prog_CC"
11671fi
11672
11673fi
11674if test -z "$CC"; then
11675 # Extract the first word of "cc", so it can be a program name with args.
11676set dummy cc; ac_word=$2
11677echo "$as_me:$LINENO: checking for $ac_word" >&5
11678echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11679if test "${ac_cv_prog_CC+set}" = set; then
11680 echo $ECHO_N "(cached) $ECHO_C" >&6
11681else
11682 if test -n "$CC"; then
11683 ac_cv_prog_CC="$CC" # Let the user override the test.
11684else
11685 ac_prog_rejected=no
11686as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11687for as_dir in $PATH
11688do
11689 IFS=$as_save_IFS
11690 test -z "$as_dir" && as_dir=.
11691 for ac_exec_ext in '' $ac_executable_extensions; do
11692 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11693 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
11694 ac_prog_rejected=yes
11695 continue
11696 fi
11697 ac_cv_prog_CC="cc"
11698 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11699 break 2
11700 fi
11701done
11702done
11703
11704if test $ac_prog_rejected = yes; then
11705 # We found a bogon in the path, so make sure we never use it.
11706 set dummy $ac_cv_prog_CC
11707 shift
11708 if test $# != 0; then
11709 # We chose a different compiler from the bogus one.
11710 # However, it has the same basename, so the bogon will be chosen
11711 # first if we set CC to just the basename; use the full file name.
11712 shift
11713 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
11714 fi
11715fi
11716fi
11717fi
11718CC=$ac_cv_prog_CC
11719if test -n "$CC"; then
11720 echo "$as_me:$LINENO: result: $CC" >&5
11721echo "${ECHO_T}$CC" >&6
11722else
11723 echo "$as_me:$LINENO: result: no" >&5
11724echo "${ECHO_T}no" >&6
11725fi
11726
11727fi
11728if test -z "$CC"; then
11729 if test -n "$ac_tool_prefix"; then
11730 for ac_prog in cl
11731 do
11732 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11733set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11734echo "$as_me:$LINENO: checking for $ac_word" >&5
11735echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11736if test "${ac_cv_prog_CC+set}" = set; then
11737 echo $ECHO_N "(cached) $ECHO_C" >&6
11738else
11739 if test -n "$CC"; then
11740 ac_cv_prog_CC="$CC" # Let the user override the test.
11741else
11742as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11743for as_dir in $PATH
11744do
11745 IFS=$as_save_IFS
11746 test -z "$as_dir" && as_dir=.
11747 for ac_exec_ext in '' $ac_executable_extensions; do
11748 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11749 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
11750 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11751 break 2
11752 fi
11753done
11754done
11755
11756fi
11757fi
11758CC=$ac_cv_prog_CC
11759if test -n "$CC"; then
11760 echo "$as_me:$LINENO: result: $CC" >&5
11761echo "${ECHO_T}$CC" >&6
11762else
11763 echo "$as_me:$LINENO: result: no" >&5
11764echo "${ECHO_T}no" >&6
11765fi
11766
11767 test -n "$CC" && break
11768 done
11769fi
11770if test -z "$CC"; then
11771 ac_ct_CC=$CC
11772 for ac_prog in cl
11773do
11774 # Extract the first word of "$ac_prog", so it can be a program name with args.
11775set dummy $ac_prog; ac_word=$2
11776echo "$as_me:$LINENO: checking for $ac_word" >&5
11777echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11778if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
11779 echo $ECHO_N "(cached) $ECHO_C" >&6
11780else
11781 if test -n "$ac_ct_CC"; then
11782 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
11783else
11784as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11785for as_dir in $PATH
11786do
11787 IFS=$as_save_IFS
11788 test -z "$as_dir" && as_dir=.
11789 for ac_exec_ext in '' $ac_executable_extensions; do
11790 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11791 ac_cv_prog_ac_ct_CC="$ac_prog"
11792 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11793 break 2
11794 fi
11795done
11796done
11797
11798fi
11799fi
11800ac_ct_CC=$ac_cv_prog_ac_ct_CC
11801if test -n "$ac_ct_CC"; then
11802 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
11803echo "${ECHO_T}$ac_ct_CC" >&6
11804else
11805 echo "$as_me:$LINENO: result: no" >&5
11806echo "${ECHO_T}no" >&6
11807fi
11808
11809 test -n "$ac_ct_CC" && break
11810done
11811
11812 CC=$ac_ct_CC
11813fi
11814
11815fi
11816
11817
11818test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
11819See \`config.log' for more details." >&5
11820echo "$as_me: error: no acceptable C compiler found in \$PATH
11821See \`config.log' for more details." >&2;}
11822 { (exit 1); exit 1; }; }
11823
11824# Provide some information about the compiler.
11825echo "$as_me:$LINENO:" \
11826 "checking for C compiler version" >&5
11827ac_compiler=`set X $ac_compile; echo $2`
11828{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
11829 (eval $ac_compiler --version </dev/null >&5) 2>&5
11830 ac_status=$?
11831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11832 (exit $ac_status); }
11833{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
11834 (eval $ac_compiler -v </dev/null >&5) 2>&5
11835 ac_status=$?
11836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11837 (exit $ac_status); }
11838{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
11839 (eval $ac_compiler -V </dev/null >&5) 2>&5
11840 ac_status=$?
11841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11842 (exit $ac_status); }
11843
11844cat >conftest.$ac_ext <<_ACEOF
11845/* confdefs.h. */
11846_ACEOF
11847cat confdefs.h >>conftest.$ac_ext
11848cat >>conftest.$ac_ext <<_ACEOF
11849/* end confdefs.h. */
11850
11851int
11852main ()
11853{
11854
11855 ;
11856 return 0;
11857}
11858_ACEOF
11859ac_clean_files_save=$ac_clean_files
11860ac_clean_files="$ac_clean_files a.out a.exe b.out"
11861# Try to create an executable without -o first, disregard a.out.
11862# It will help us diagnose broken compilers, and finding out an intuition
11863# of exeext.
ac1cb8d3
VS
11864echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
11865echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
a848cd7e
SC
11866ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
11867if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
11868 (eval $ac_link_default) 2>&5
11869 ac_status=$?
11870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11871 (exit $ac_status); }; then
11872 # Find the output, starting from the most likely. This scheme is
11873# not robust to junk in `.', hence go to wildcards (a.*) only as a last
11874# resort.
11875
11876# Be careful to initialize this variable, since it used to be cached.
11877# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
11878ac_cv_exeext=
11879# b.out is created by i960 compilers.
11880for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
11881do
11882 test -f "$ac_file" || continue
11883 case $ac_file in
11884 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
ac1cb8d3 11885 ;;
a848cd7e 11886 conftest.$ac_ext )
ac1cb8d3
VS
11887 # This is the source file.
11888 ;;
a848cd7e 11889 [ab].out )
ac1cb8d3
VS
11890 # We found the default executable, but exeext='' is most
11891 # certainly right.
11892 break;;
a848cd7e 11893 *.* )
ac1cb8d3
VS
11894 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
11895 # FIXME: I believe we export ac_cv_exeext for Libtool,
11896 # but it would be cool to find out if it's true. Does anybody
11897 # maintain Libtool? --akim.
11898 export ac_cv_exeext
11899 break;;
a848cd7e 11900 * )
ac1cb8d3 11901 break;;
a848cd7e
SC
11902 esac
11903done
11904else
11905 echo "$as_me: failed program was:" >&5
11906sed 's/^/| /' conftest.$ac_ext >&5
11907
11908{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
11909See \`config.log' for more details." >&5
11910echo "$as_me: error: C compiler cannot create executables
11911See \`config.log' for more details." >&2;}
11912 { (exit 77); exit 77; }; }
11913fi
11914
11915ac_exeext=$ac_cv_exeext
11916echo "$as_me:$LINENO: result: $ac_file" >&5
11917echo "${ECHO_T}$ac_file" >&6
11918
11919# Check the compiler produces executables we can run. If not, either
11920# the compiler is broken, or we cross compile.
11921echo "$as_me:$LINENO: checking whether the C compiler works" >&5
11922echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
11923# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
11924# If not cross compiling, check that we can run a simple program.
11925if test "$cross_compiling" != yes; then
11926 if { ac_try='./$ac_file'
11927 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11928 (eval $ac_try) 2>&5
11929 ac_status=$?
11930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11931 (exit $ac_status); }; }; then
11932 cross_compiling=no
11933 else
11934 if test "$cross_compiling" = maybe; then
11935 cross_compiling=yes
11936 else
11937 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
11938If you meant to cross compile, use \`--host'.
11939See \`config.log' for more details." >&5
11940echo "$as_me: error: cannot run C compiled programs.
11941If you meant to cross compile, use \`--host'.
11942See \`config.log' for more details." >&2;}
11943 { (exit 1); exit 1; }; }
11944 fi
11945 fi
11946fi
11947echo "$as_me:$LINENO: result: yes" >&5
11948echo "${ECHO_T}yes" >&6
11949
11950rm -f a.out a.exe conftest$ac_cv_exeext b.out
11951ac_clean_files=$ac_clean_files_save
11952# Check the compiler produces executables we can run. If not, either
11953# the compiler is broken, or we cross compile.
11954echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
11955echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
11956echo "$as_me:$LINENO: result: $cross_compiling" >&5
11957echo "${ECHO_T}$cross_compiling" >&6
11958
11959echo "$as_me:$LINENO: checking for suffix of executables" >&5
11960echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
11961if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11962 (eval $ac_link) 2>&5
11963 ac_status=$?
11964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11965 (exit $ac_status); }; then
11966 # If both `conftest.exe' and `conftest' are `present' (well, observable)
11967# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
11968# work properly (i.e., refer to `conftest.exe'), while it won't with
11969# `rm'.
11970for ac_file in conftest.exe conftest conftest.*; do
11971 test -f "$ac_file" || continue
11972 case $ac_file in
11973 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
11974 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
ac1cb8d3
VS
11975 export ac_cv_exeext
11976 break;;
a848cd7e
SC
11977 * ) break;;
11978 esac
11979done
11980else
11981 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
11982See \`config.log' for more details." >&5
11983echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
11984See \`config.log' for more details." >&2;}
11985 { (exit 1); exit 1; }; }
11986fi
11987
11988rm -f conftest$ac_cv_exeext
11989echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
11990echo "${ECHO_T}$ac_cv_exeext" >&6
11991
11992rm -f conftest.$ac_ext
11993EXEEXT=$ac_cv_exeext
11994ac_exeext=$EXEEXT
11995echo "$as_me:$LINENO: checking for suffix of object files" >&5
11996echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
11997if test "${ac_cv_objext+set}" = set; then
11998 echo $ECHO_N "(cached) $ECHO_C" >&6
11999else
12000 cat >conftest.$ac_ext <<_ACEOF
12001/* confdefs.h. */
12002_ACEOF
12003cat confdefs.h >>conftest.$ac_ext
12004cat >>conftest.$ac_ext <<_ACEOF
12005/* end confdefs.h. */
12006
12007int
12008main ()
12009{
12010
12011 ;
12012 return 0;
12013}
12014_ACEOF
12015rm -f conftest.o conftest.obj
12016if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12017 (eval $ac_compile) 2>&5
12018 ac_status=$?
12019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12020 (exit $ac_status); }; then
12021 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
12022 case $ac_file in
12023 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
12024 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
12025 break;;
12026 esac
12027done
12028else
12029 echo "$as_me: failed program was:" >&5
12030sed 's/^/| /' conftest.$ac_ext >&5
12031
12032{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
12033See \`config.log' for more details." >&5
12034echo "$as_me: error: cannot compute suffix of object files: cannot compile
12035See \`config.log' for more details." >&2;}
12036 { (exit 1); exit 1; }; }
12037fi
12038
12039rm -f conftest.$ac_cv_objext conftest.$ac_ext
12040fi
12041echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
12042echo "${ECHO_T}$ac_cv_objext" >&6
12043OBJEXT=$ac_cv_objext
12044ac_objext=$OBJEXT
12045echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
12046echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
12047if test "${ac_cv_c_compiler_gnu+set}" = set; then
12048 echo $ECHO_N "(cached) $ECHO_C" >&6
12049else
12050 cat >conftest.$ac_ext <<_ACEOF
12051/* confdefs.h. */
12052_ACEOF
12053cat confdefs.h >>conftest.$ac_ext
12054cat >>conftest.$ac_ext <<_ACEOF
12055/* end confdefs.h. */
12056
12057int
12058main ()
12059{
12060#ifndef __GNUC__
12061 choke me
12062#endif
12063
12064 ;
12065 return 0;
12066}
12067_ACEOF
12068rm -f conftest.$ac_objext
12069if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 12070 (eval $ac_compile) 2>conftest.er1
a848cd7e 12071 ac_status=$?
ac1cb8d3
VS
12072 grep -v '^ *+' conftest.er1 >conftest.err
12073 rm -f conftest.er1
12074 cat conftest.err >&5
a848cd7e
SC
12075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12076 (exit $ac_status); } &&
c9a66001 12077 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
12078 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12079 (eval $ac_try) 2>&5
12080 ac_status=$?
12081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12082 (exit $ac_status); }; } &&
12083 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
12084 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12085 (eval $ac_try) 2>&5
12086 ac_status=$?
12087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12088 (exit $ac_status); }; }; then
12089 ac_compiler_gnu=yes
12090else
12091 echo "$as_me: failed program was:" >&5
12092sed 's/^/| /' conftest.$ac_ext >&5
12093
12094ac_compiler_gnu=no
12095fi
ac1cb8d3 12096rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
12097ac_cv_c_compiler_gnu=$ac_compiler_gnu
12098
12099fi
12100echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
12101echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
12102GCC=`test $ac_compiler_gnu = yes && echo yes`
12103ac_test_CFLAGS=${CFLAGS+set}
12104ac_save_CFLAGS=$CFLAGS
8aeeb05c 12105CFLAGS="-g"
a848cd7e
SC
12106echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
12107echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
12108if test "${ac_cv_prog_cc_g+set}" = set; then
12109 echo $ECHO_N "(cached) $ECHO_C" >&6
12110else
12111 cat >conftest.$ac_ext <<_ACEOF
12112/* confdefs.h. */
12113_ACEOF
12114cat confdefs.h >>conftest.$ac_ext
12115cat >>conftest.$ac_ext <<_ACEOF
12116/* end confdefs.h. */
12117
12118int
12119main ()
12120{
12121
12122 ;
12123 return 0;
12124}
12125_ACEOF
12126rm -f conftest.$ac_objext
12127if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 12128 (eval $ac_compile) 2>conftest.er1
a848cd7e 12129 ac_status=$?
ac1cb8d3
VS
12130 grep -v '^ *+' conftest.er1 >conftest.err
12131 rm -f conftest.er1
12132 cat conftest.err >&5
a848cd7e
SC
12133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12134 (exit $ac_status); } &&
c9a66001 12135 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
12136 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12137 (eval $ac_try) 2>&5
12138 ac_status=$?
12139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12140 (exit $ac_status); }; } &&
12141 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
12142 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12143 (eval $ac_try) 2>&5
12144 ac_status=$?
12145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12146 (exit $ac_status); }; }; then
12147 ac_cv_prog_cc_g=yes
12148else
12149 echo "$as_me: failed program was:" >&5
12150sed 's/^/| /' conftest.$ac_ext >&5
12151
12152ac_cv_prog_cc_g=no
12153fi
ac1cb8d3 12154rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
12155fi
12156echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
12157echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
12158if test "$ac_test_CFLAGS" = set; then
12159 CFLAGS=$ac_save_CFLAGS
12160elif test $ac_cv_prog_cc_g = yes; then
12161 if test "$GCC" = yes; then
12162 CFLAGS="-g -O2"
12163 else
12164 CFLAGS="-g"
12165 fi
12166else
12167 if test "$GCC" = yes; then
12168 CFLAGS="-O2"
12169 else
12170 CFLAGS=
12171 fi
12172fi
12173echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
12174echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
12175if test "${ac_cv_prog_cc_stdc+set}" = set; then
12176 echo $ECHO_N "(cached) $ECHO_C" >&6
12177else
12178 ac_cv_prog_cc_stdc=no
12179ac_save_CC=$CC
12180cat >conftest.$ac_ext <<_ACEOF
12181/* confdefs.h. */
12182_ACEOF
12183cat confdefs.h >>conftest.$ac_ext
12184cat >>conftest.$ac_ext <<_ACEOF
12185/* end confdefs.h. */
12186#include <stdarg.h>
12187#include <stdio.h>
12188#include <sys/types.h>
12189#include <sys/stat.h>
12190/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
12191struct buf { int x; };
12192FILE * (*rcsopen) (struct buf *, struct stat *, int);
12193static char *e (p, i)
12194 char **p;
12195 int i;
12196{
12197 return p[i];
12198}
12199static char *f (char * (*g) (char **, int), char **p, ...)
12200{
12201 char *s;
12202 va_list v;
12203 va_start (v,p);
12204 s = g (p, va_arg (v,int));
12205 va_end (v);
12206 return s;
12207}
ac1cb8d3
VS
12208
12209/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
12210 function prototypes and stuff, but not '\xHH' hex character constants.
12211 These don't provoke an error unfortunately, instead are silently treated
12212 as 'x'. The following induces an error, until -std1 is added to get
12213 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
12214 array size at least. It's necessary to write '\x00'==0 to get something
12215 that's true only with -std1. */
12216int osf4_cc_array ['\x00' == 0 ? 1 : -1];
12217
a848cd7e
SC
12218int test (int i, double x);
12219struct s1 {int (*f) (int a);};
12220struct s2 {int (*f) (double a);};
12221int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
12222int argc;
12223char **argv;
12224int
12225main ()
12226{
12227return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
12228 ;
12229 return 0;
12230}
12231_ACEOF
12232# Don't try gcc -ansi; that turns off useful extensions and
12233# breaks some systems' header files.
12234# AIX -qlanglvl=ansi
12235# Ultrix and OSF/1 -std1
12236# HP-UX 10.20 and later -Ae
12237# HP-UX older versions -Aa -D_HPUX_SOURCE
12238# SVR4 -Xc -D__EXTENSIONS__
12239for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
12240do
12241 CC="$ac_save_CC $ac_arg"
12242 rm -f conftest.$ac_objext
12243if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 12244 (eval $ac_compile) 2>conftest.er1
a848cd7e 12245 ac_status=$?
ac1cb8d3
VS
12246 grep -v '^ *+' conftest.er1 >conftest.err
12247 rm -f conftest.er1
12248 cat conftest.err >&5
a848cd7e
SC
12249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12250 (exit $ac_status); } &&
c9a66001 12251 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
12252 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12253 (eval $ac_try) 2>&5
12254 ac_status=$?
12255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12256 (exit $ac_status); }; } &&
12257 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
12258 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12259 (eval $ac_try) 2>&5
12260 ac_status=$?
12261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12262 (exit $ac_status); }; }; then
12263 ac_cv_prog_cc_stdc=$ac_arg
12264break
12265else
12266 echo "$as_me: failed program was:" >&5
12267sed 's/^/| /' conftest.$ac_ext >&5
12268
12269fi
ac1cb8d3 12270rm -f conftest.err conftest.$ac_objext
a848cd7e
SC
12271done
12272rm -f conftest.$ac_ext conftest.$ac_objext
12273CC=$ac_save_CC
12274
12275fi
12276
12277case "x$ac_cv_prog_cc_stdc" in
12278 x|xno)
12279 echo "$as_me:$LINENO: result: none needed" >&5
12280echo "${ECHO_T}none needed" >&6 ;;
12281 *)
12282 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
12283echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
12284 CC="$CC $ac_cv_prog_cc_stdc" ;;
12285esac
12286
12287# Some people use a C++ compiler to compile C. Since we use `exit',
12288# in C++ we need to declare it. In case someone uses the same compiler
12289# for both compiling C and C++ we need to have the C++ compiler decide
12290# the declaration of exit, since it's the most demanding environment.
12291cat >conftest.$ac_ext <<_ACEOF
12292#ifndef __cplusplus
12293 choke me
12294#endif
12295_ACEOF
12296rm -f conftest.$ac_objext
12297if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 12298 (eval $ac_compile) 2>conftest.er1
a848cd7e 12299 ac_status=$?
ac1cb8d3
VS
12300 grep -v '^ *+' conftest.er1 >conftest.err
12301 rm -f conftest.er1
12302 cat conftest.err >&5
a848cd7e
SC
12303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12304 (exit $ac_status); } &&
c9a66001 12305 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
12306 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12307 (eval $ac_try) 2>&5
12308 ac_status=$?
12309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12310 (exit $ac_status); }; } &&
12311 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
12312 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12313 (eval $ac_try) 2>&5
12314 ac_status=$?
12315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12316 (exit $ac_status); }; }; then
12317 for ac_declaration in \
ac1cb8d3 12318 '' \
a848cd7e
SC
12319 'extern "C" void std::exit (int) throw (); using std::exit;' \
12320 'extern "C" void std::exit (int); using std::exit;' \
12321 'extern "C" void exit (int) throw ();' \
12322 'extern "C" void exit (int);' \
12323 'void exit (int);'
12324do
12325 cat >conftest.$ac_ext <<_ACEOF
12326/* confdefs.h. */
12327_ACEOF
12328cat confdefs.h >>conftest.$ac_ext
12329cat >>conftest.$ac_ext <<_ACEOF
12330/* end confdefs.h. */
de59c161 12331$ac_declaration
ac1cb8d3 12332#include <stdlib.h>
a848cd7e
SC
12333int
12334main ()
12335{
12336exit (42);
12337 ;
12338 return 0;
12339}
12340_ACEOF
12341rm -f conftest.$ac_objext
12342if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 12343 (eval $ac_compile) 2>conftest.er1
a848cd7e 12344 ac_status=$?
ac1cb8d3
VS
12345 grep -v '^ *+' conftest.er1 >conftest.err
12346 rm -f conftest.er1
12347 cat conftest.err >&5
a848cd7e
SC
12348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12349 (exit $ac_status); } &&
c9a66001 12350 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
12351 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12352 (eval $ac_try) 2>&5
12353 ac_status=$?
12354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12355 (exit $ac_status); }; } &&
12356 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
12357 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12358 (eval $ac_try) 2>&5
12359 ac_status=$?
12360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12361 (exit $ac_status); }; }; then
12362 :
12363else
12364 echo "$as_me: failed program was:" >&5
12365sed 's/^/| /' conftest.$ac_ext >&5
12366
12367continue
12368fi
ac1cb8d3 12369rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
12370 cat >conftest.$ac_ext <<_ACEOF
12371/* confdefs.h. */
12372_ACEOF
12373cat confdefs.h >>conftest.$ac_ext
12374cat >>conftest.$ac_ext <<_ACEOF
12375/* end confdefs.h. */
12376$ac_declaration
12377int
12378main ()
12379{
12380exit (42);
12381 ;
12382 return 0;
12383}
12384_ACEOF
12385rm -f conftest.$ac_objext
12386if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 12387 (eval $ac_compile) 2>conftest.er1
a848cd7e 12388 ac_status=$?
ac1cb8d3
VS
12389 grep -v '^ *+' conftest.er1 >conftest.err
12390 rm -f conftest.er1
12391 cat conftest.err >&5
a848cd7e
SC
12392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12393 (exit $ac_status); } &&
c9a66001 12394 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
12395 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12396 (eval $ac_try) 2>&5
12397 ac_status=$?
12398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12399 (exit $ac_status); }; } &&
12400 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
12401 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12402 (eval $ac_try) 2>&5
12403 ac_status=$?
12404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12405 (exit $ac_status); }; }; then
12406 break
12407else
12408 echo "$as_me: failed program was:" >&5
12409sed 's/^/| /' conftest.$ac_ext >&5
12410
12411fi
ac1cb8d3 12412rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
12413done
12414rm -f conftest*
12415if test -n "$ac_declaration"; then
12416 echo '#ifdef __cplusplus' >>confdefs.h
12417 echo $ac_declaration >>confdefs.h
12418 echo '#endif' >>confdefs.h
12419fi
12420
12421else
12422 echo "$as_me: failed program was:" >&5
12423sed 's/^/| /' conftest.$ac_ext >&5
12424
12425fi
ac1cb8d3 12426rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
12427ac_ext=c
12428ac_cpp='$CPP $CPPFLAGS'
12429ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12430ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12431ac_compiler_gnu=$ac_cv_c_compiler_gnu
12432
ab0ad5f1
VZ
12433
12434
12435 ac_ext=c
12436ac_cpp='$CPP $CPPFLAGS'
12437ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12438ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12439ac_compiler_gnu=$ac_cv_c_compiler_gnu
12440
12441 echo "$as_me:$LINENO: checking whether we are using the Intel C compiler" >&5
12442echo $ECHO_N "checking whether we are using the Intel C compiler... $ECHO_C" >&6
12443if test "${bakefile_cv_c_compiler___INTEL_COMPILER+set}" = set; then
12444 echo $ECHO_N "(cached) $ECHO_C" >&6
12445else
12446 cat >conftest.$ac_ext <<_ACEOF
12447/* confdefs.h. */
12448_ACEOF
12449cat confdefs.h >>conftest.$ac_ext
12450cat >>conftest.$ac_ext <<_ACEOF
12451/* end confdefs.h. */
12452
12453int
12454main ()
12455{
12456
12457 #ifndef __INTEL_COMPILER
12458 choke me
12459 #endif
12460
12461 ;
12462 return 0;
12463}
12464_ACEOF
12465rm -f conftest.$ac_objext
12466if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12467 (eval $ac_compile) 2>conftest.er1
12468 ac_status=$?
12469 grep -v '^ *+' conftest.er1 >conftest.err
12470 rm -f conftest.er1
12471 cat conftest.err >&5
12472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12473 (exit $ac_status); } &&
c9a66001 12474 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ab0ad5f1
VZ
12475 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12476 (eval $ac_try) 2>&5
12477 ac_status=$?
12478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12479 (exit $ac_status); }; } &&
12480 { ac_try='test -s conftest.$ac_objext'
12481 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12482 (eval $ac_try) 2>&5
12483 ac_status=$?
12484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12485 (exit $ac_status); }; }; then
12486 bakefile_cv_c_compiler___INTEL_COMPILER=yes
12487else
12488 echo "$as_me: failed program was:" >&5
12489sed 's/^/| /' conftest.$ac_ext >&5
12490
12491bakefile_cv_c_compiler___INTEL_COMPILER=no
12492
12493fi
12494rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12495
12496
12497fi
12498echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___INTEL_COMPILER" >&5
12499echo "${ECHO_T}$bakefile_cv_c_compiler___INTEL_COMPILER" >&6
12500 ac_ext=c
12501ac_cpp='$CPP $CPPFLAGS'
12502ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12503ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12504ac_compiler_gnu=$ac_cv_c_compiler_gnu
12505
12506 if test "x$bakefile_cv_c_compiler___INTEL_COMPILER" = "xyes"; then
12507 :; INTELCC=yes
12508 else
12509 :;
12510 fi
12511
12512
12513 if test "x$GCC" != "xyes"; then
3006edc0
VZ
12514 if test "xCC" = "xC"; then
12515 echo "$as_me:$LINENO: checking if the C compiler requires -ext o" >&5
480ccd21 12516echo $ECHO_N "checking if the C compiler requires -ext o... $ECHO_C" >&6
0093c2fc 12517if test "${bakefile_cv_c_exto+set}" = set; then
480ccd21
DE
12518 echo $ECHO_N "(cached) $ECHO_C" >&6
12519else
12520 cat >conftest.$ac_ext <<_ACEOF
12521/* confdefs.h. */
12522_ACEOF
12523cat confdefs.h >>conftest.$ac_ext
12524cat >>conftest.$ac_ext <<_ACEOF
12525/* end confdefs.h. */
12526
12527int
12528main ()
12529{
12530
12531 ;
12532 return 0;
12533}
12534_ACEOF
12535rm -f conftest.$ac_objext conftest.$ac_ext.o
12536if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12537 (eval $ac_compile) 2>&5
12538 ac_status=$?
12539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12540 (exit $ac_status); }; then
12541 for ac_file in `(ls conftest.* 2>/dev/null)`; do
12542 case $ac_file in
12543 conftest.$ac_ext.o)
0093c2fc 12544 bakefile_cv_c_exto="-ext o"
480ccd21
DE
12545 ;;
12546 *)
12547 ;;
12548 esac
12549done
12550else
12551 { { echo "$as_me:$LINENO: error: cannot figure out if compiler needs -ext o: cannot compile
12552See \`config.log' for more details." >&5
12553echo "$as_me: error: cannot figure out if compiler needs -ext o: cannot compile
12554See \`config.log' for more details." >&2;}
12555 { (exit 1); exit 1; }; }
12556
12557fi
12558
12559rm -f conftest.$ac_ext.o conftest.$ac_objext conftest.$ac_ext
12560
12561fi
0093c2fc
VZ
12562echo "$as_me:$LINENO: result: $bakefile_cv_c_exto" >&5
12563echo "${ECHO_T}$bakefile_cv_c_exto" >&6
12564if test "x$bakefile_cv_c_exto" '!=' "x"; then
480ccd21 12565 if test "c" = "c"; then
0093c2fc 12566 CFLAGS="$bakefile_cv_c_exto $CFLAGS"
480ccd21
DE
12567 fi
12568 if test "c" = "cxx"; then
0093c2fc 12569 CXXFLAGS="$bakefile_cv_c_exto $CXXFLAGS"
480ccd21
DE
12570 fi
12571fi
12572
0093c2fc 12573 if test "x$bakefile_cv_c_exto" '!=' "x"; then
3006edc0
VZ
12574 unset ac_cv_prog_cc_g
12575 ac_test_CFLAGS=${CFLAGS+set}
480ccd21 12576ac_save_CFLAGS=$CFLAGS
8aeeb05c 12577CFLAGS="-g"
480ccd21
DE
12578echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
12579echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
12580if test "${ac_cv_prog_cc_g+set}" = set; then
12581 echo $ECHO_N "(cached) $ECHO_C" >&6
12582else
12583 cat >conftest.$ac_ext <<_ACEOF
12584/* confdefs.h. */
12585_ACEOF
12586cat confdefs.h >>conftest.$ac_ext
12587cat >>conftest.$ac_ext <<_ACEOF
12588/* end confdefs.h. */
12589
12590int
12591main ()
12592{
12593
12594 ;
12595 return 0;
12596}
12597_ACEOF
12598rm -f conftest.$ac_objext
12599if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12600 (eval $ac_compile) 2>conftest.er1
12601 ac_status=$?
12602 grep -v '^ *+' conftest.er1 >conftest.err
12603 rm -f conftest.er1
12604 cat conftest.err >&5
12605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12606 (exit $ac_status); } &&
c9a66001 12607 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
480ccd21
DE
12608 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12609 (eval $ac_try) 2>&5
12610 ac_status=$?
12611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12612 (exit $ac_status); }; } &&
12613 { ac_try='test -s conftest.$ac_objext'
12614 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12615 (eval $ac_try) 2>&5
12616 ac_status=$?
12617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12618 (exit $ac_status); }; }; then
12619 ac_cv_prog_cc_g=yes
12620else
12621 echo "$as_me: failed program was:" >&5
12622sed 's/^/| /' conftest.$ac_ext >&5
12623
12624ac_cv_prog_cc_g=no
12625fi
12626rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12627fi
12628echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
12629echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
12630if test "$ac_test_CFLAGS" = set; then
12631 CFLAGS=$ac_save_CFLAGS
12632elif test $ac_cv_prog_cc_g = yes; then
12633 if test "$GCC" = yes; then
12634 CFLAGS="-g -O2"
12635 else
12636 CFLAGS="-g"
12637 fi
12638else
12639 if test "$GCC" = yes; then
12640 CFLAGS="-O2"
12641 else
12642 CFLAGS=
12643 fi
12644fi
3006edc0 12645 fi
ab0ad5f1 12646 fi
3006edc0
VZ
12647
12648 case `uname -s` in
12649 AIX*)
12650 ac_ext=c
12651ac_cpp='$CPP $CPPFLAGS'
12652ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12653ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12654ac_compiler_gnu=$ac_cv_c_compiler_gnu
12655
12656echo "$as_me:$LINENO: checking whether we are using the IBM xlC C compiler" >&5
12657echo $ECHO_N "checking whether we are using the IBM xlC C compiler... $ECHO_C" >&6
0093c2fc 12658if test "${bakefile_cv_c_compiler_xlc+set}" = set; then
3006edc0
VZ
12659 echo $ECHO_N "(cached) $ECHO_C" >&6
12660else
12661 cat >conftest.$ac_ext <<_ACEOF
12662/* confdefs.h. */
12663_ACEOF
12664cat confdefs.h >>conftest.$ac_ext
12665cat >>conftest.$ac_ext <<_ACEOF
12666/* end confdefs.h. */
12667
12668int
12669main ()
12670{
12671#ifndef __xlC__
12672 choke me
12673#endif
12674
12675 ;
12676 return 0;
12677}
12678_ACEOF
12679rm -f conftest.$ac_objext
12680if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12681 (eval $ac_compile) 2>conftest.er1
12682 ac_status=$?
12683 grep -v '^ *+' conftest.er1 >conftest.err
12684 rm -f conftest.er1
12685 cat conftest.err >&5
12686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12687 (exit $ac_status); } &&
c9a66001 12688 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3006edc0
VZ
12689 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12690 (eval $ac_try) 2>&5
12691 ac_status=$?
12692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12693 (exit $ac_status); }; } &&
12694 { ac_try='test -s conftest.$ac_objext'
12695 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12696 (eval $ac_try) 2>&5
12697 ac_status=$?
12698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12699 (exit $ac_status); }; }; then
0093c2fc 12700 bakefile_compiler_xlc=yes
3006edc0
VZ
12701else
12702 echo "$as_me: failed program was:" >&5
12703sed 's/^/| /' conftest.$ac_ext >&5
12704
0093c2fc 12705bakefile_compiler_xlc=no
3006edc0
VZ
12706fi
12707rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
0093c2fc 12708 bakefile_cv_c_compiler_xlc=$bakefile_compiler_xlc
3006edc0
VZ
12709
12710fi
0093c2fc
VZ
12711echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler_xlc" >&5
12712echo "${ECHO_T}$bakefile_cv_c_compiler_xlc" >&6
3006edc0 12713
0093c2fc 12714XLCC=`test $bakefile_cv_c_compiler_xlc = yes && echo yes`
3006edc0
VZ
12715ac_ext=c
12716ac_cpp='$CPP $CPPFLAGS'
12717ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12718ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12719ac_compiler_gnu=$ac_cv_c_compiler_gnu
12720
12721
12722 ;;
12723
12724 Darwin)
12725 ac_ext=c
95986553
DE
12726ac_cpp='$CPP $CPPFLAGS'
12727ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12728ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12729ac_compiler_gnu=$ac_cv_c_compiler_gnu
12730
12731echo "$as_me:$LINENO: checking whether we are using the Metrowerks C compiler" >&5
12732echo $ECHO_N "checking whether we are using the Metrowerks C compiler... $ECHO_C" >&6
12733if test "${bakefile_cv_c_compiler_mwerks+set}" = set; then
12734 echo $ECHO_N "(cached) $ECHO_C" >&6
12735else
12736 cat >conftest.$ac_ext <<_ACEOF
12737/* confdefs.h. */
12738_ACEOF
12739cat confdefs.h >>conftest.$ac_ext
12740cat >>conftest.$ac_ext <<_ACEOF
12741/* end confdefs.h. */
12742
12743int
12744main ()
12745{
12746#ifndef __MWERKS__
12747 choke me
12748#endif
12749
12750 ;
12751 return 0;
12752}
12753_ACEOF
12754rm -f conftest.$ac_objext
12755if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12756 (eval $ac_compile) 2>conftest.er1
12757 ac_status=$?
12758 grep -v '^ *+' conftest.er1 >conftest.err
12759 rm -f conftest.er1
12760 cat conftest.err >&5
12761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12762 (exit $ac_status); } &&
c9a66001 12763 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
95986553
DE
12764 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12765 (eval $ac_try) 2>&5
12766 ac_status=$?
12767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12768 (exit $ac_status); }; } &&
12769 { ac_try='test -s conftest.$ac_objext'
12770 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12771 (eval $ac_try) 2>&5
12772 ac_status=$?
12773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12774 (exit $ac_status); }; }; then
12775 bakefile_compiler_mwerks=yes
12776else
12777 echo "$as_me: failed program was:" >&5
12778sed 's/^/| /' conftest.$ac_ext >&5
12779
12780bakefile_compiler_mwerks=no
12781fi
12782rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12783 bakefile_cv_c_compiler_mwerks=$bakefile_compiler_mwerks
12784
12785fi
12786echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler_mwerks" >&5
12787echo "${ECHO_T}$bakefile_cv_c_compiler_mwerks" >&6
12788
0e6fa1d9 12789MWCC=`test $bakefile_cv_c_compiler_mwerks = yes && echo yes`
95986553
DE
12790ac_ext=c
12791ac_cpp='$CPP $CPPFLAGS'
12792ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12793ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12794ac_compiler_gnu=$ac_cv_c_compiler_gnu
12795
12796
3006edc0 12797 ac_ext=c
9273ffba
DE
12798ac_cpp='$CPP $CPPFLAGS'
12799ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12800ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12801ac_compiler_gnu=$ac_cv_c_compiler_gnu
12802
12803echo "$as_me:$LINENO: checking whether we are using the IBM xlC C compiler" >&5
12804echo $ECHO_N "checking whether we are using the IBM xlC C compiler... $ECHO_C" >&6
0093c2fc 12805if test "${bakefile_cv_c_compiler_xlc+set}" = set; then
9273ffba
DE
12806 echo $ECHO_N "(cached) $ECHO_C" >&6
12807else
12808 cat >conftest.$ac_ext <<_ACEOF
12809/* confdefs.h. */
12810_ACEOF
12811cat confdefs.h >>conftest.$ac_ext
12812cat >>conftest.$ac_ext <<_ACEOF
12813/* end confdefs.h. */
12814
12815int
12816main ()
12817{
12818#ifndef __xlC__
12819 choke me
12820#endif
12821
12822 ;
12823 return 0;
12824}
12825_ACEOF
12826rm -f conftest.$ac_objext
12827if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12828 (eval $ac_compile) 2>conftest.er1
12829 ac_status=$?
12830 grep -v '^ *+' conftest.er1 >conftest.err
12831 rm -f conftest.er1
12832 cat conftest.err >&5
12833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12834 (exit $ac_status); } &&
c9a66001 12835 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9273ffba
DE
12836 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12837 (eval $ac_try) 2>&5
12838 ac_status=$?
12839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12840 (exit $ac_status); }; } &&
12841 { ac_try='test -s conftest.$ac_objext'
12842 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12843 (eval $ac_try) 2>&5
12844 ac_status=$?
12845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12846 (exit $ac_status); }; }; then
0093c2fc 12847 bakefile_compiler_xlc=yes
9273ffba
DE
12848else
12849 echo "$as_me: failed program was:" >&5
12850sed 's/^/| /' conftest.$ac_ext >&5
12851
0093c2fc 12852bakefile_compiler_xlc=no
9273ffba
DE
12853fi
12854rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
0093c2fc 12855 bakefile_cv_c_compiler_xlc=$bakefile_compiler_xlc
9273ffba
DE
12856
12857fi
0093c2fc
VZ
12858echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler_xlc" >&5
12859echo "${ECHO_T}$bakefile_cv_c_compiler_xlc" >&6
9273ffba 12860
0093c2fc 12861XLCC=`test $bakefile_cv_c_compiler_xlc = yes && echo yes`
9273ffba
DE
12862ac_ext=c
12863ac_cpp='$CPP $CPPFLAGS'
12864ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12865ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12866ac_compiler_gnu=$ac_cv_c_compiler_gnu
12867
12868
3006edc0
VZ
12869 ;;
12870
12871 IRIX*)
a848cd7e 12872
6dcfc289 12873
0ad5d837
VZ
12874 ac_ext=c
12875ac_cpp='$CPP $CPPFLAGS'
12876ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12877ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12878ac_compiler_gnu=$ac_cv_c_compiler_gnu
12879
12880 echo "$as_me:$LINENO: checking whether we are using the SGI C compiler" >&5
12881echo $ECHO_N "checking whether we are using the SGI C compiler... $ECHO_C" >&6
12882if test "${bakefile_cv_c_compiler__SGI_COMPILER_VERSION+set}" = set; then
12883 echo $ECHO_N "(cached) $ECHO_C" >&6
12884else
12885 cat >conftest.$ac_ext <<_ACEOF
12886/* confdefs.h. */
12887_ACEOF
12888cat confdefs.h >>conftest.$ac_ext
12889cat >>conftest.$ac_ext <<_ACEOF
12890/* end confdefs.h. */
12891
12892int
12893main ()
12894{
12895
12896 #ifndef _SGI_COMPILER_VERSION
12897 choke me
12898 #endif
12899
12900 ;
12901 return 0;
12902}
12903_ACEOF
12904rm -f conftest.$ac_objext
12905if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12906 (eval $ac_compile) 2>conftest.er1
12907 ac_status=$?
12908 grep -v '^ *+' conftest.er1 >conftest.err
12909 rm -f conftest.er1
12910 cat conftest.err >&5
12911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12912 (exit $ac_status); } &&
c9a66001 12913 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
0ad5d837
VZ
12914 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12915 (eval $ac_try) 2>&5
12916 ac_status=$?
12917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12918 (exit $ac_status); }; } &&
12919 { ac_try='test -s conftest.$ac_objext'
12920 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12921 (eval $ac_try) 2>&5
12922 ac_status=$?
12923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12924 (exit $ac_status); }; }; then
12925 bakefile_cv_c_compiler__SGI_COMPILER_VERSION=yes
12926else
12927 echo "$as_me: failed program was:" >&5
12928sed 's/^/| /' conftest.$ac_ext >&5
12929
12930bakefile_cv_c_compiler__SGI_COMPILER_VERSION=no
12931
12932fi
12933rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12934
12935
12936fi
12937echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler__SGI_COMPILER_VERSION" >&5
12938echo "${ECHO_T}$bakefile_cv_c_compiler__SGI_COMPILER_VERSION" >&6
12939 ac_ext=c
12940ac_cpp='$CPP $CPPFLAGS'
12941ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12942ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12943ac_compiler_gnu=$ac_cv_c_compiler_gnu
12944
12945 if test "x$bakefile_cv_c_compiler__SGI_COMPILER_VERSION" = "xyes"; then
12946 :; SGICC=yes
12947 else
12948 :;
12949 fi
12950
12951
3006edc0
VZ
12952 ;;
12953
0093c2fc 12954 HP-UX*)
3006edc0
VZ
12955
12956
12957 ac_ext=c
12958ac_cpp='$CPP $CPPFLAGS'
12959ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12960ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12961ac_compiler_gnu=$ac_cv_c_compiler_gnu
12962
0093c2fc
VZ
12963 echo "$as_me:$LINENO: checking whether we are using the HP C compiler" >&5
12964echo $ECHO_N "checking whether we are using the HP C compiler... $ECHO_C" >&6
12965if test "${bakefile_cv_c_compiler___HP_cc+set}" = set; then
3006edc0
VZ
12966 echo $ECHO_N "(cached) $ECHO_C" >&6
12967else
12968 cat >conftest.$ac_ext <<_ACEOF
12969/* confdefs.h. */
12970_ACEOF
12971cat confdefs.h >>conftest.$ac_ext
12972cat >>conftest.$ac_ext <<_ACEOF
12973/* end confdefs.h. */
12974
12975int
12976main ()
12977{
12978
0093c2fc 12979 #ifndef __HP_cc
3006edc0
VZ
12980 choke me
12981 #endif
12982
12983 ;
12984 return 0;
12985}
12986_ACEOF
12987rm -f conftest.$ac_objext
12988if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12989 (eval $ac_compile) 2>conftest.er1
12990 ac_status=$?
12991 grep -v '^ *+' conftest.er1 >conftest.err
12992 rm -f conftest.er1
12993 cat conftest.err >&5
12994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12995 (exit $ac_status); } &&
c9a66001 12996 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3006edc0
VZ
12997 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12998 (eval $ac_try) 2>&5
12999 ac_status=$?
13000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13001 (exit $ac_status); }; } &&
13002 { ac_try='test -s conftest.$ac_objext'
13003 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13004 (eval $ac_try) 2>&5
13005 ac_status=$?
13006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13007 (exit $ac_status); }; }; then
0093c2fc 13008 bakefile_cv_c_compiler___HP_cc=yes
3006edc0
VZ
13009else
13010 echo "$as_me: failed program was:" >&5
13011sed 's/^/| /' conftest.$ac_ext >&5
13012
0093c2fc 13013bakefile_cv_c_compiler___HP_cc=no
3006edc0
VZ
13014
13015fi
13016rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13017
13018
13019fi
0093c2fc
VZ
13020echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___HP_cc" >&5
13021echo "${ECHO_T}$bakefile_cv_c_compiler___HP_cc" >&6
3006edc0
VZ
13022 ac_ext=c
13023ac_cpp='$CPP $CPPFLAGS'
13024ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13025ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13026ac_compiler_gnu=$ac_cv_c_compiler_gnu
13027
0093c2fc
VZ
13028 if test "x$bakefile_cv_c_compiler___HP_cc" = "xyes"; then
13029 :; HPCC=yes
a1aa0349
VZ
13030 else
13031 :;
13032 fi
13033
13034
13035 ;;
13036
0093c2fc 13037 OSF1)
a1aa0349
VZ
13038
13039
13040 ac_ext=c
13041ac_cpp='$CPP $CPPFLAGS'
13042ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13043ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13044ac_compiler_gnu=$ac_cv_c_compiler_gnu
13045
0093c2fc
VZ
13046 echo "$as_me:$LINENO: checking whether we are using the Compaq C compiler" >&5
13047echo $ECHO_N "checking whether we are using the Compaq C compiler... $ECHO_C" >&6
13048if test "${bakefile_cv_c_compiler___DECC+set}" = set; then
a1aa0349
VZ
13049 echo $ECHO_N "(cached) $ECHO_C" >&6
13050else
13051 cat >conftest.$ac_ext <<_ACEOF
13052/* confdefs.h. */
13053_ACEOF
13054cat confdefs.h >>conftest.$ac_ext
13055cat >>conftest.$ac_ext <<_ACEOF
13056/* end confdefs.h. */
13057
13058int
13059main ()
13060{
13061
0093c2fc 13062 #ifndef __DECC
a1aa0349
VZ
13063 choke me
13064 #endif
13065
13066 ;
13067 return 0;
13068}
13069_ACEOF
13070rm -f conftest.$ac_objext
13071if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13072 (eval $ac_compile) 2>conftest.er1
13073 ac_status=$?
13074 grep -v '^ *+' conftest.er1 >conftest.err
13075 rm -f conftest.er1
13076 cat conftest.err >&5
13077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13078 (exit $ac_status); } &&
c9a66001 13079 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
a1aa0349
VZ
13080 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13081 (eval $ac_try) 2>&5
13082 ac_status=$?
13083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13084 (exit $ac_status); }; } &&
13085 { ac_try='test -s conftest.$ac_objext'
13086 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13087 (eval $ac_try) 2>&5
13088 ac_status=$?
13089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13090 (exit $ac_status); }; }; then
0093c2fc 13091 bakefile_cv_c_compiler___DECC=yes
a1aa0349
VZ
13092else
13093 echo "$as_me: failed program was:" >&5
13094sed 's/^/| /' conftest.$ac_ext >&5
13095
0093c2fc 13096bakefile_cv_c_compiler___DECC=no
a1aa0349
VZ
13097
13098fi
13099rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13100
13101
13102fi
0093c2fc
VZ
13103echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___DECC" >&5
13104echo "${ECHO_T}$bakefile_cv_c_compiler___DECC" >&6
a1aa0349
VZ
13105 ac_ext=c
13106ac_cpp='$CPP $CPPFLAGS'
13107ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13108ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13109ac_compiler_gnu=$ac_cv_c_compiler_gnu
13110
0093c2fc
VZ
13111 if test "x$bakefile_cv_c_compiler___DECC" = "xyes"; then
13112 :; COMPAQCC=yes
13113 else
13114 :;
13115 fi
13116
13117
13118 ;;
13119
13120 SunOS)
13121
13122
13123 ac_ext=c
13124ac_cpp='$CPP $CPPFLAGS'
13125ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13126ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13127ac_compiler_gnu=$ac_cv_c_compiler_gnu
13128
13129 echo "$as_me:$LINENO: checking whether we are using the Sun C compiler" >&5
13130echo $ECHO_N "checking whether we are using the Sun C compiler... $ECHO_C" >&6
13131if test "${bakefile_cv_c_compiler___SUNPRO_C+set}" = set; then
13132 echo $ECHO_N "(cached) $ECHO_C" >&6
13133else
13134 cat >conftest.$ac_ext <<_ACEOF
13135/* confdefs.h. */
13136_ACEOF
13137cat confdefs.h >>conftest.$ac_ext
13138cat >>conftest.$ac_ext <<_ACEOF
13139/* end confdefs.h. */
13140
13141int
13142main ()
13143{
13144
13145 #ifndef __SUNPRO_C
13146 choke me
13147 #endif
13148
13149 ;
13150 return 0;
13151}
13152_ACEOF
13153rm -f conftest.$ac_objext
13154if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13155 (eval $ac_compile) 2>conftest.er1
13156 ac_status=$?
13157 grep -v '^ *+' conftest.er1 >conftest.err
13158 rm -f conftest.er1
13159 cat conftest.err >&5
13160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13161 (exit $ac_status); } &&
c9a66001 13162 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
0093c2fc
VZ
13163 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13164 (eval $ac_try) 2>&5
13165 ac_status=$?
13166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13167 (exit $ac_status); }; } &&
13168 { ac_try='test -s conftest.$ac_objext'
13169 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13170 (eval $ac_try) 2>&5
13171 ac_status=$?
13172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13173 (exit $ac_status); }; }; then
13174 bakefile_cv_c_compiler___SUNPRO_C=yes
13175else
13176 echo "$as_me: failed program was:" >&5
13177sed 's/^/| /' conftest.$ac_ext >&5
13178
13179bakefile_cv_c_compiler___SUNPRO_C=no
13180
13181fi
13182rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13183
13184
13185fi
13186echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___SUNPRO_C" >&5
13187echo "${ECHO_T}$bakefile_cv_c_compiler___SUNPRO_C" >&6
13188 ac_ext=c
13189ac_cpp='$CPP $CPPFLAGS'
13190ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13191ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13192ac_compiler_gnu=$ac_cv_c_compiler_gnu
13193
13194 if test "x$bakefile_cv_c_compiler___SUNPRO_C" = "xyes"; then
13195 :; SUNCC=yes
3006edc0
VZ
13196 else
13197 :;
13198 fi
13199
13200
13201 ;;
13202 esac
ab0ad5f1 13203 fi
a9e5b1f0
MW
13204
13205
3006edc0 13206
a848cd7e
SC
13207ac_ext=c
13208ac_cpp='$CPP $CPPFLAGS'
13209ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13210ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13211ac_compiler_gnu=$ac_cv_c_compiler_gnu
13212echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
13213echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
13214# On Suns, sometimes $CPP names a directory.
13215if test -n "$CPP" && test -d "$CPP"; then
13216 CPP=
13217fi
13218if test -z "$CPP"; then
13219 if test "${ac_cv_prog_CPP+set}" = set; then
13220 echo $ECHO_N "(cached) $ECHO_C" >&6
13221else
13222 # Double quotes because CPP needs to be expanded
13223 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
13224 do
13225 ac_preproc_ok=false
13226for ac_c_preproc_warn_flag in '' yes
13227do
13228 # Use a header file that comes with gcc, so configuring glibc
13229 # with a fresh cross-compiler works.
13230 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13231 # <limits.h> exists even on freestanding compilers.
13232 # On the NeXT, cc -E runs the code through the compiler's parser,
13233 # not just through cpp. "Syntax error" is here to catch this case.
13234 cat >conftest.$ac_ext <<_ACEOF
13235/* confdefs.h. */
13236_ACEOF
13237cat confdefs.h >>conftest.$ac_ext
13238cat >>conftest.$ac_ext <<_ACEOF
13239/* end confdefs.h. */
13240#ifdef __STDC__
13241# include <limits.h>
13242#else
13243# include <assert.h>
13244#endif
ac1cb8d3 13245 Syntax error
a848cd7e
SC
13246_ACEOF
13247if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13248 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13249 ac_status=$?
13250 grep -v '^ *+' conftest.er1 >conftest.err
13251 rm -f conftest.er1
13252 cat conftest.err >&5
13253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13254 (exit $ac_status); } >/dev/null; then
13255 if test -s conftest.err; then
13256 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 13257 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
13258 else
13259 ac_cpp_err=
13260 fi
13261else
13262 ac_cpp_err=yes
13263fi
13264if test -z "$ac_cpp_err"; then
13265 :
13266else
13267 echo "$as_me: failed program was:" >&5
13268sed 's/^/| /' conftest.$ac_ext >&5
13269
13270 # Broken: fails on valid input.
13271continue
13272fi
13273rm -f conftest.err conftest.$ac_ext
13274
13275 # OK, works on sane cases. Now check whether non-existent headers
13276 # can be detected and how.
13277 cat >conftest.$ac_ext <<_ACEOF
13278/* confdefs.h. */
13279_ACEOF
13280cat confdefs.h >>conftest.$ac_ext
13281cat >>conftest.$ac_ext <<_ACEOF
13282/* end confdefs.h. */
13283#include <ac_nonexistent.h>
13284_ACEOF
13285if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13286 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13287 ac_status=$?
13288 grep -v '^ *+' conftest.er1 >conftest.err
13289 rm -f conftest.er1
13290 cat conftest.err >&5
13291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13292 (exit $ac_status); } >/dev/null; then
13293 if test -s conftest.err; then
13294 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 13295 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
13296 else
13297 ac_cpp_err=
13298 fi
13299else
13300 ac_cpp_err=yes
13301fi
13302if test -z "$ac_cpp_err"; then
13303 # Broken: success on invalid input.
13304continue
13305else
13306 echo "$as_me: failed program was:" >&5
13307sed 's/^/| /' conftest.$ac_ext >&5
13308
13309 # Passes both tests.
13310ac_preproc_ok=:
13311break
13312fi
13313rm -f conftest.err conftest.$ac_ext
13314
13315done
13316# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13317rm -f conftest.err conftest.$ac_ext
13318if $ac_preproc_ok; then
13319 break
13320fi
13321
13322 done
13323 ac_cv_prog_CPP=$CPP
13324
13325fi
13326 CPP=$ac_cv_prog_CPP
13327else
13328 ac_cv_prog_CPP=$CPP
13329fi
13330echo "$as_me:$LINENO: result: $CPP" >&5
13331echo "${ECHO_T}$CPP" >&6
13332ac_preproc_ok=false
13333for ac_c_preproc_warn_flag in '' yes
13334do
13335 # Use a header file that comes with gcc, so configuring glibc
13336 # with a fresh cross-compiler works.
13337 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13338 # <limits.h> exists even on freestanding compilers.
13339 # On the NeXT, cc -E runs the code through the compiler's parser,
13340 # not just through cpp. "Syntax error" is here to catch this case.
13341 cat >conftest.$ac_ext <<_ACEOF
13342/* confdefs.h. */
13343_ACEOF
13344cat confdefs.h >>conftest.$ac_ext
13345cat >>conftest.$ac_ext <<_ACEOF
13346/* end confdefs.h. */
13347#ifdef __STDC__
13348# include <limits.h>
13349#else
13350# include <assert.h>
13351#endif
ac1cb8d3 13352 Syntax error
a848cd7e
SC
13353_ACEOF
13354if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13355 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13356 ac_status=$?
13357 grep -v '^ *+' conftest.er1 >conftest.err
13358 rm -f conftest.er1
13359 cat conftest.err >&5
13360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13361 (exit $ac_status); } >/dev/null; then
13362 if test -s conftest.err; then
13363 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 13364 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
13365 else
13366 ac_cpp_err=
13367 fi
13368else
13369 ac_cpp_err=yes
13370fi
13371if test -z "$ac_cpp_err"; then
13372 :
13373else
13374 echo "$as_me: failed program was:" >&5
13375sed 's/^/| /' conftest.$ac_ext >&5
13376
13377 # Broken: fails on valid input.
13378continue
13379fi
13380rm -f conftest.err conftest.$ac_ext
13381
13382 # OK, works on sane cases. Now check whether non-existent headers
13383 # can be detected and how.
13384 cat >conftest.$ac_ext <<_ACEOF
13385/* confdefs.h. */
13386_ACEOF
13387cat confdefs.h >>conftest.$ac_ext
13388cat >>conftest.$ac_ext <<_ACEOF
13389/* end confdefs.h. */
13390#include <ac_nonexistent.h>
13391_ACEOF
13392if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13393 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13394 ac_status=$?
13395 grep -v '^ *+' conftest.er1 >conftest.err
13396 rm -f conftest.er1
13397 cat conftest.err >&5
13398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13399 (exit $ac_status); } >/dev/null; then
13400 if test -s conftest.err; then
13401 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 13402 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
13403 else
13404 ac_cpp_err=
13405 fi
13406else
13407 ac_cpp_err=yes
13408fi
13409if test -z "$ac_cpp_err"; then
13410 # Broken: success on invalid input.
13411continue
13412else
13413 echo "$as_me: failed program was:" >&5
13414sed 's/^/| /' conftest.$ac_ext >&5
13415
13416 # Passes both tests.
13417ac_preproc_ok=:
13418break
13419fi
13420rm -f conftest.err conftest.$ac_ext
13421
13422done
13423# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13424rm -f conftest.err conftest.$ac_ext
13425if $ac_preproc_ok; then
13426 :
13427else
13428 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
13429See \`config.log' for more details." >&5
13430echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
13431See \`config.log' for more details." >&2;}
13432 { (exit 1); exit 1; }; }
13433fi
13434
13435ac_ext=c
13436ac_cpp='$CPP $CPPFLAGS'
13437ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13438ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13439ac_compiler_gnu=$ac_cv_c_compiler_gnu
13440
13441
13442echo "$as_me:$LINENO: checking for egrep" >&5
13443echo $ECHO_N "checking for egrep... $ECHO_C" >&6
13444if test "${ac_cv_prog_egrep+set}" = set; then
13445 echo $ECHO_N "(cached) $ECHO_C" >&6
13446else
13447 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
13448 then ac_cv_prog_egrep='grep -E'
13449 else ac_cv_prog_egrep='egrep'
13450 fi
13451fi
13452echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
13453echo "${ECHO_T}$ac_cv_prog_egrep" >&6
13454 EGREP=$ac_cv_prog_egrep
13455
13456
13457if test $ac_cv_c_compiler_gnu = yes; then
13458 echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
13459echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
13460if test "${ac_cv_prog_gcc_traditional+set}" = set; then
13461 echo $ECHO_N "(cached) $ECHO_C" >&6
13462else
13463 ac_pattern="Autoconf.*'x'"
13464 cat >conftest.$ac_ext <<_ACEOF
13465/* confdefs.h. */
13466_ACEOF
13467cat confdefs.h >>conftest.$ac_ext
13468cat >>conftest.$ac_ext <<_ACEOF
13469/* end confdefs.h. */
13470#include <sgtty.h>
13471Autoconf TIOCGETP
13472_ACEOF
13473if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13474 $EGREP "$ac_pattern" >/dev/null 2>&1; then
13475 ac_cv_prog_gcc_traditional=yes
13476else
13477 ac_cv_prog_gcc_traditional=no
13478fi
13479rm -f conftest*
13480
13481
13482 if test $ac_cv_prog_gcc_traditional = no; then
13483 cat >conftest.$ac_ext <<_ACEOF
13484/* confdefs.h. */
13485_ACEOF
13486cat confdefs.h >>conftest.$ac_ext
13487cat >>conftest.$ac_ext <<_ACEOF
13488/* end confdefs.h. */
13489#include <termio.h>
13490Autoconf TCGETA
13491_ACEOF
13492if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13493 $EGREP "$ac_pattern" >/dev/null 2>&1; then
13494 ac_cv_prog_gcc_traditional=yes
13495fi
13496rm -f conftest*
13497
13498 fi
13499fi
13500echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
13501echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
13502 if test $ac_cv_prog_gcc_traditional = yes; then
13503 CC="$CC -traditional"
13504 fi
13505fi
13506
13507
a848cd7e
SC
13508ac_ext=cc
13509ac_cpp='$CXXCPP $CPPFLAGS'
13510ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13511ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13512ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13513
13514
13515CXXFLAGS=${CXXFLAGS:=}
6dcfc289
DE
13516
13517
3006edc0 13518
6dcfc289 13519 ac_ext=cc
a848cd7e
SC
13520ac_cpp='$CXXCPP $CPPFLAGS'
13521ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13522ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13523ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13524if test -n "$ac_tool_prefix"; then
13525 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
13526 do
13527 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
13528set dummy $ac_tool_prefix$ac_prog; ac_word=$2
13529echo "$as_me:$LINENO: checking for $ac_word" >&5
13530echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13531if test "${ac_cv_prog_CXX+set}" = set; then
13532 echo $ECHO_N "(cached) $ECHO_C" >&6
13533else
13534 if test -n "$CXX"; then
13535 ac_cv_prog_CXX="$CXX" # Let the user override the test.
13536else
13537as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13538for as_dir in $PATH
13539do
13540 IFS=$as_save_IFS
13541 test -z "$as_dir" && as_dir=.
13542 for ac_exec_ext in '' $ac_executable_extensions; do
13543 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13544 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
13545 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13546 break 2
13547 fi
13548done
13549done
13550
13551fi
13552fi
13553CXX=$ac_cv_prog_CXX
13554if test -n "$CXX"; then
13555 echo "$as_me:$LINENO: result: $CXX" >&5
13556echo "${ECHO_T}$CXX" >&6
13557else
13558 echo "$as_me:$LINENO: result: no" >&5
13559echo "${ECHO_T}no" >&6
13560fi
13561
13562 test -n "$CXX" && break
13563 done
13564fi
13565if test -z "$CXX"; then
13566 ac_ct_CXX=$CXX
13567 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
13568do
13569 # Extract the first word of "$ac_prog", so it can be a program name with args.
13570set dummy $ac_prog; ac_word=$2
13571echo "$as_me:$LINENO: checking for $ac_word" >&5
13572echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13573if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
13574 echo $ECHO_N "(cached) $ECHO_C" >&6
13575else
13576 if test -n "$ac_ct_CXX"; then
13577 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
13578else
13579as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13580for as_dir in $PATH
13581do
13582 IFS=$as_save_IFS
13583 test -z "$as_dir" && as_dir=.
13584 for ac_exec_ext in '' $ac_executable_extensions; do
13585 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13586 ac_cv_prog_ac_ct_CXX="$ac_prog"
13587 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13588 break 2
13589 fi
13590done
13591done
13592
13593fi
13594fi
13595ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
13596if test -n "$ac_ct_CXX"; then
13597 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
13598echo "${ECHO_T}$ac_ct_CXX" >&6
13599else
13600 echo "$as_me:$LINENO: result: no" >&5
13601echo "${ECHO_T}no" >&6
13602fi
13603
13604 test -n "$ac_ct_CXX" && break
13605done
13606test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
13607
13608 CXX=$ac_ct_CXX
13609fi
13610
13611
13612# Provide some information about the compiler.
13613echo "$as_me:$LINENO:" \
13614 "checking for C++ compiler version" >&5
13615ac_compiler=`set X $ac_compile; echo $2`
13616{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
13617 (eval $ac_compiler --version </dev/null >&5) 2>&5
13618 ac_status=$?
13619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13620 (exit $ac_status); }
13621{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
13622 (eval $ac_compiler -v </dev/null >&5) 2>&5
13623 ac_status=$?
13624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13625 (exit $ac_status); }
13626{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
13627 (eval $ac_compiler -V </dev/null >&5) 2>&5
13628 ac_status=$?
13629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13630 (exit $ac_status); }
13631
13632echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
13633echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
13634if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
13635 echo $ECHO_N "(cached) $ECHO_C" >&6
13636else
13637 cat >conftest.$ac_ext <<_ACEOF
13638/* confdefs.h. */
13639_ACEOF
13640cat confdefs.h >>conftest.$ac_ext
13641cat >>conftest.$ac_ext <<_ACEOF
13642/* end confdefs.h. */
13643
13644int
13645main ()
13646{
13647#ifndef __GNUC__
13648 choke me
13649#endif
13650
13651 ;
13652 return 0;
13653}
13654_ACEOF
13655rm -f conftest.$ac_objext
13656if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 13657 (eval $ac_compile) 2>conftest.er1
a848cd7e 13658 ac_status=$?
ac1cb8d3
VS
13659 grep -v '^ *+' conftest.er1 >conftest.err
13660 rm -f conftest.er1
13661 cat conftest.err >&5
a848cd7e
SC
13662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13663 (exit $ac_status); } &&
c9a66001 13664 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
13665 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13666 (eval $ac_try) 2>&5
13667 ac_status=$?
13668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13669 (exit $ac_status); }; } &&
13670 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
13671 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13672 (eval $ac_try) 2>&5
13673 ac_status=$?
13674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13675 (exit $ac_status); }; }; then
13676 ac_compiler_gnu=yes
13677else
13678 echo "$as_me: failed program was:" >&5
13679sed 's/^/| /' conftest.$ac_ext >&5
13680
13681ac_compiler_gnu=no
13682fi
ac1cb8d3 13683rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
13684ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
13685
13686fi
13687echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
13688echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
13689GXX=`test $ac_compiler_gnu = yes && echo yes`
13690ac_test_CXXFLAGS=${CXXFLAGS+set}
13691ac_save_CXXFLAGS=$CXXFLAGS
13692CXXFLAGS="-g"
13693echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
13694echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
13695if test "${ac_cv_prog_cxx_g+set}" = set; then
13696 echo $ECHO_N "(cached) $ECHO_C" >&6
13697else
13698 cat >conftest.$ac_ext <<_ACEOF
13699/* confdefs.h. */
13700_ACEOF
13701cat confdefs.h >>conftest.$ac_ext
13702cat >>conftest.$ac_ext <<_ACEOF
13703/* end confdefs.h. */
13704
13705int
13706main ()
13707{
13708
13709 ;
13710 return 0;
13711}
13712_ACEOF
13713rm -f conftest.$ac_objext
13714if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 13715 (eval $ac_compile) 2>conftest.er1
a848cd7e 13716 ac_status=$?
ac1cb8d3
VS
13717 grep -v '^ *+' conftest.er1 >conftest.err
13718 rm -f conftest.er1
13719 cat conftest.err >&5
a848cd7e
SC
13720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13721 (exit $ac_status); } &&
c9a66001 13722 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
13723 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13724 (eval $ac_try) 2>&5
13725 ac_status=$?
13726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13727 (exit $ac_status); }; } &&
13728 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
13729 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13730 (eval $ac_try) 2>&5
13731 ac_status=$?
13732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13733 (exit $ac_status); }; }; then
13734 ac_cv_prog_cxx_g=yes
13735else
13736 echo "$as_me: failed program was:" >&5
13737sed 's/^/| /' conftest.$ac_ext >&5
13738
13739ac_cv_prog_cxx_g=no
13740fi
ac1cb8d3 13741rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
13742fi
13743echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
13744echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
13745if test "$ac_test_CXXFLAGS" = set; then
13746 CXXFLAGS=$ac_save_CXXFLAGS
13747elif test $ac_cv_prog_cxx_g = yes; then
13748 if test "$GXX" = yes; then
8aeeb05c 13749 CXXFLAGS="-g -O2"
a848cd7e 13750 else
8aeeb05c 13751 CXXFLAGS="-g"
a848cd7e
SC
13752 fi
13753else
13754 if test "$GXX" = yes; then
13755 CXXFLAGS="-O2"
13756 else
13757 CXXFLAGS=
13758 fi
13759fi
13760for ac_declaration in \
ac1cb8d3 13761 '' \
a848cd7e
SC
13762 'extern "C" void std::exit (int) throw (); using std::exit;' \
13763 'extern "C" void std::exit (int); using std::exit;' \
13764 'extern "C" void exit (int) throw ();' \
13765 'extern "C" void exit (int);' \
13766 'void exit (int);'
13767do
13768 cat >conftest.$ac_ext <<_ACEOF
13769/* confdefs.h. */
13770_ACEOF
13771cat confdefs.h >>conftest.$ac_ext
13772cat >>conftest.$ac_ext <<_ACEOF
13773/* end confdefs.h. */
de59c161 13774$ac_declaration
ac1cb8d3 13775#include <stdlib.h>
a848cd7e
SC
13776int
13777main ()
13778{
13779exit (42);
13780 ;
13781 return 0;
13782}
13783_ACEOF
13784rm -f conftest.$ac_objext
13785if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 13786 (eval $ac_compile) 2>conftest.er1
a848cd7e 13787 ac_status=$?
ac1cb8d3
VS
13788 grep -v '^ *+' conftest.er1 >conftest.err
13789 rm -f conftest.er1
13790 cat conftest.err >&5
a848cd7e
SC
13791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13792 (exit $ac_status); } &&
c9a66001 13793 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
13794 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13795 (eval $ac_try) 2>&5
13796 ac_status=$?
13797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13798 (exit $ac_status); }; } &&
13799 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
13800 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13801 (eval $ac_try) 2>&5
13802 ac_status=$?
13803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13804 (exit $ac_status); }; }; then
13805 :
13806else
13807 echo "$as_me: failed program was:" >&5
13808sed 's/^/| /' conftest.$ac_ext >&5
13809
13810continue
13811fi
ac1cb8d3 13812rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
13813 cat >conftest.$ac_ext <<_ACEOF
13814/* confdefs.h. */
13815_ACEOF
13816cat confdefs.h >>conftest.$ac_ext
13817cat >>conftest.$ac_ext <<_ACEOF
13818/* end confdefs.h. */
13819$ac_declaration
13820int
13821main ()
13822{
13823exit (42);
13824 ;
13825 return 0;
13826}
13827_ACEOF
13828rm -f conftest.$ac_objext
13829if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 13830 (eval $ac_compile) 2>conftest.er1
a848cd7e 13831 ac_status=$?
ac1cb8d3
VS
13832 grep -v '^ *+' conftest.er1 >conftest.err
13833 rm -f conftest.er1
13834 cat conftest.err >&5
a848cd7e
SC
13835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13836 (exit $ac_status); } &&
c9a66001 13837 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
13838 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13839 (eval $ac_try) 2>&5
13840 ac_status=$?
13841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13842 (exit $ac_status); }; } &&
13843 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
13844 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13845 (eval $ac_try) 2>&5
13846 ac_status=$?
13847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13848 (exit $ac_status); }; }; then
13849 break
13850else
13851 echo "$as_me: failed program was:" >&5
13852sed 's/^/| /' conftest.$ac_ext >&5
13853
13854fi
ac1cb8d3 13855rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
13856done
13857rm -f conftest*
13858if test -n "$ac_declaration"; then
13859 echo '#ifdef __cplusplus' >>confdefs.h
13860 echo $ac_declaration >>confdefs.h
13861 echo '#endif' >>confdefs.h
13862fi
13863
13864ac_ext=cc
13865ac_cpp='$CXXCPP $CPPFLAGS'
13866ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13867ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13868ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13869
ab0ad5f1
VZ
13870
13871
13872 ac_ext=cc
13873ac_cpp='$CXXCPP $CPPFLAGS'
13874ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13875ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13876ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13877
13878 echo "$as_me:$LINENO: checking whether we are using the Intel C++ compiler" >&5
13879echo $ECHO_N "checking whether we are using the Intel C++ compiler... $ECHO_C" >&6
13880if test "${bakefile_cv_cxx_compiler___INTEL_COMPILER+set}" = set; then
13881 echo $ECHO_N "(cached) $ECHO_C" >&6
13882else
13883 cat >conftest.$ac_ext <<_ACEOF
13884/* confdefs.h. */
13885_ACEOF
13886cat confdefs.h >>conftest.$ac_ext
13887cat >>conftest.$ac_ext <<_ACEOF
13888/* end confdefs.h. */
13889
13890int
13891main ()
13892{
13893
13894 #ifndef __INTEL_COMPILER
13895 choke me
13896 #endif
13897
13898 ;
13899 return 0;
13900}
13901_ACEOF
13902rm -f conftest.$ac_objext
13903if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13904 (eval $ac_compile) 2>conftest.er1
13905 ac_status=$?
13906 grep -v '^ *+' conftest.er1 >conftest.err
13907 rm -f conftest.er1
13908 cat conftest.err >&5
13909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13910 (exit $ac_status); } &&
c9a66001 13911 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ab0ad5f1
VZ
13912 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13913 (eval $ac_try) 2>&5
13914 ac_status=$?
13915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13916 (exit $ac_status); }; } &&
13917 { ac_try='test -s conftest.$ac_objext'
13918 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13919 (eval $ac_try) 2>&5
13920 ac_status=$?
13921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13922 (exit $ac_status); }; }; then
13923 bakefile_cv_cxx_compiler___INTEL_COMPILER=yes
13924else
13925 echo "$as_me: failed program was:" >&5
13926sed 's/^/| /' conftest.$ac_ext >&5
13927
13928bakefile_cv_cxx_compiler___INTEL_COMPILER=no
13929
13930fi
13931rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13932
13933
13934fi
13935echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___INTEL_COMPILER" >&5
13936echo "${ECHO_T}$bakefile_cv_cxx_compiler___INTEL_COMPILER" >&6
13937 ac_ext=cc
13938ac_cpp='$CXXCPP $CPPFLAGS'
13939ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13940ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13941ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13942
13943 if test "x$bakefile_cv_cxx_compiler___INTEL_COMPILER" = "xyes"; then
13944 :; INTELCXX=yes
13945 else
13946 :;
13947 fi
13948
13949
3006edc0
VZ
13950 if test "x$GCXX" != "xyes"; then
13951 if test "xCXX" = "xC"; then
13952 echo "$as_me:$LINENO: checking if the C++ compiler requires -ext o" >&5
480ccd21 13953echo $ECHO_N "checking if the C++ compiler requires -ext o... $ECHO_C" >&6
0093c2fc 13954if test "${bakefile_cv_cxx_exto+set}" = set; then
480ccd21
DE
13955 echo $ECHO_N "(cached) $ECHO_C" >&6
13956else
13957 cat >conftest.$ac_ext <<_ACEOF
13958/* confdefs.h. */
13959_ACEOF
13960cat confdefs.h >>conftest.$ac_ext
13961cat >>conftest.$ac_ext <<_ACEOF
13962/* end confdefs.h. */
13963
13964int
13965main ()
13966{
13967
13968 ;
13969 return 0;
13970}
13971_ACEOF
13972rm -f conftest.$ac_objext conftest.$ac_ext.o
13973if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13974 (eval $ac_compile) 2>&5
13975 ac_status=$?
13976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13977 (exit $ac_status); }; then
13978 for ac_file in `(ls conftest.* 2>/dev/null)`; do
13979 case $ac_file in
13980 conftest.$ac_ext.o)
0093c2fc 13981 bakefile_cv_cxx_exto="-ext o"
480ccd21
DE
13982 ;;
13983 *)
13984 ;;
13985 esac
13986done
13987else
13988 { { echo "$as_me:$LINENO: error: cannot figure out if compiler needs -ext o: cannot compile
13989See \`config.log' for more details." >&5
13990echo "$as_me: error: cannot figure out if compiler needs -ext o: cannot compile
13991See \`config.log' for more details." >&2;}
13992 { (exit 1); exit 1; }; }
13993
13994fi
13995
13996rm -f conftest.$ac_ext.o conftest.$ac_objext conftest.$ac_ext
13997
13998fi
0093c2fc
VZ
13999echo "$as_me:$LINENO: result: $bakefile_cv_cxx_exto" >&5
14000echo "${ECHO_T}$bakefile_cv_cxx_exto" >&6
14001if test "x$bakefile_cv_cxx_exto" '!=' "x"; then
480ccd21 14002 if test "cxx" = "c"; then
0093c2fc 14003 CFLAGS="$bakefile_cv_cxx_exto $CFLAGS"
480ccd21
DE
14004 fi
14005 if test "cxx" = "cxx"; then
0093c2fc 14006 CXXFLAGS="$bakefile_cv_cxx_exto $CXXFLAGS"
480ccd21
DE
14007 fi
14008fi
14009
0093c2fc 14010 if test "x$bakefile_cv_c_exto" '!=' "x"; then
3006edc0
VZ
14011 unset ac_cv_prog_cc_g
14012 ac_test_CFLAGS=${CFLAGS+set}
14013ac_save_CFLAGS=$CFLAGS
8aeeb05c 14014CFLAGS="-g"
3006edc0
VZ
14015echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
14016echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
14017if test "${ac_cv_prog_cc_g+set}" = set; then
480ccd21
DE
14018 echo $ECHO_N "(cached) $ECHO_C" >&6
14019else
14020 cat >conftest.$ac_ext <<_ACEOF
14021/* confdefs.h. */
14022_ACEOF
14023cat confdefs.h >>conftest.$ac_ext
14024cat >>conftest.$ac_ext <<_ACEOF
14025/* end confdefs.h. */
14026
14027int
14028main ()
14029{
14030
14031 ;
14032 return 0;
14033}
14034_ACEOF
14035rm -f conftest.$ac_objext
14036if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14037 (eval $ac_compile) 2>conftest.er1
14038 ac_status=$?
14039 grep -v '^ *+' conftest.er1 >conftest.err
14040 rm -f conftest.er1
14041 cat conftest.err >&5
14042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14043 (exit $ac_status); } &&
c9a66001 14044 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
480ccd21
DE
14045 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14046 (eval $ac_try) 2>&5
14047 ac_status=$?
14048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14049 (exit $ac_status); }; } &&
14050 { ac_try='test -s conftest.$ac_objext'
14051 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14052 (eval $ac_try) 2>&5
14053 ac_status=$?
14054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14055 (exit $ac_status); }; }; then
3006edc0 14056 ac_cv_prog_cc_g=yes
480ccd21
DE
14057else
14058 echo "$as_me: failed program was:" >&5
14059sed 's/^/| /' conftest.$ac_ext >&5
14060
3006edc0 14061ac_cv_prog_cc_g=no
480ccd21
DE
14062fi
14063rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14064fi
3006edc0
VZ
14065echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
14066echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
14067if test "$ac_test_CFLAGS" = set; then
14068 CFLAGS=$ac_save_CFLAGS
14069elif test $ac_cv_prog_cc_g = yes; then
14070 if test "$GCC" = yes; then
14071 CFLAGS="-g -O2"
480ccd21 14072 else
3006edc0 14073 CFLAGS="-g"
480ccd21
DE
14074 fi
14075else
3006edc0
VZ
14076 if test "$GCC" = yes; then
14077 CFLAGS="-O2"
480ccd21 14078 else
3006edc0 14079 CFLAGS=
480ccd21
DE
14080 fi
14081fi
3006edc0 14082 fi
ab0ad5f1 14083 fi
3006edc0
VZ
14084
14085 case `uname -s` in
14086 AIX*)
14087 ac_ext=cc
14088ac_cpp='$CXXCPP $CPPFLAGS'
14089ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14090ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14091ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14092
14093echo "$as_me:$LINENO: checking whether we are using the IBM xlC C++ compiler" >&5
14094echo $ECHO_N "checking whether we are using the IBM xlC C++ compiler... $ECHO_C" >&6
0093c2fc 14095if test "${bakefile_cv_cxx_compiler_xlc+set}" = set; then
3006edc0
VZ
14096 echo $ECHO_N "(cached) $ECHO_C" >&6
14097else
14098 cat >conftest.$ac_ext <<_ACEOF
14099/* confdefs.h. */
14100_ACEOF
14101cat confdefs.h >>conftest.$ac_ext
14102cat >>conftest.$ac_ext <<_ACEOF
14103/* end confdefs.h. */
14104
14105int
14106main ()
14107{
14108#ifndef __xlC__
14109 choke me
14110#endif
14111
14112 ;
14113 return 0;
14114}
14115_ACEOF
14116rm -f conftest.$ac_objext
14117if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14118 (eval $ac_compile) 2>conftest.er1
14119 ac_status=$?
14120 grep -v '^ *+' conftest.er1 >conftest.err
14121 rm -f conftest.er1
14122 cat conftest.err >&5
14123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14124 (exit $ac_status); } &&
c9a66001 14125 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3006edc0
VZ
14126 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14127 (eval $ac_try) 2>&5
14128 ac_status=$?
14129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14130 (exit $ac_status); }; } &&
14131 { ac_try='test -s conftest.$ac_objext'
14132 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14133 (eval $ac_try) 2>&5
14134 ac_status=$?
14135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14136 (exit $ac_status); }; }; then
0093c2fc 14137 bakefile_compiler_xlc=yes
3006edc0
VZ
14138else
14139 echo "$as_me: failed program was:" >&5
14140sed 's/^/| /' conftest.$ac_ext >&5
14141
0093c2fc 14142bakefile_compiler_xlc=no
3006edc0
VZ
14143fi
14144rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
0093c2fc 14145 bakefile_cv_cxx_compiler_xlc=$bakefile_compiler_xlc
3006edc0
VZ
14146
14147fi
0093c2fc
VZ
14148echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler_xlc" >&5
14149echo "${ECHO_T}$bakefile_cv_cxx_compiler_xlc" >&6
3006edc0 14150
0093c2fc 14151XLCXX=`test $bakefile_cv_cxx_compiler_xlc = yes && echo yes`
3006edc0
VZ
14152ac_ext=cc
14153ac_cpp='$CXXCPP $CPPFLAGS'
14154ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14155ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14156ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14157
14158
14159 ;;
14160
14161 Darwin)
14162 ac_ext=cc
95986553
DE
14163ac_cpp='$CXXCPP $CPPFLAGS'
14164ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14165ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14166ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14167
14168echo "$as_me:$LINENO: checking whether we are using the Metrowerks C++ compiler" >&5
14169echo $ECHO_N "checking whether we are using the Metrowerks C++ compiler... $ECHO_C" >&6
14170if test "${bakefile_cv_cxx_compiler_mwerks+set}" = set; then
14171 echo $ECHO_N "(cached) $ECHO_C" >&6
14172else
14173 cat >conftest.$ac_ext <<_ACEOF
14174/* confdefs.h. */
14175_ACEOF
14176cat confdefs.h >>conftest.$ac_ext
14177cat >>conftest.$ac_ext <<_ACEOF
14178/* end confdefs.h. */
14179
14180int
14181main ()
14182{
14183#ifndef __MWERKS__
14184 choke me
14185#endif
14186
14187 ;
14188 return 0;
14189}
14190_ACEOF
14191rm -f conftest.$ac_objext
14192if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14193 (eval $ac_compile) 2>conftest.er1
14194 ac_status=$?
14195 grep -v '^ *+' conftest.er1 >conftest.err
14196 rm -f conftest.er1
14197 cat conftest.err >&5
14198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14199 (exit $ac_status); } &&
c9a66001 14200 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
95986553
DE
14201 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14202 (eval $ac_try) 2>&5
14203 ac_status=$?
14204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14205 (exit $ac_status); }; } &&
14206 { ac_try='test -s conftest.$ac_objext'
14207 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14208 (eval $ac_try) 2>&5
14209 ac_status=$?
14210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14211 (exit $ac_status); }; }; then
14212 bakefile_compiler_mwerks=yes
14213else
14214 echo "$as_me: failed program was:" >&5
14215sed 's/^/| /' conftest.$ac_ext >&5
14216
14217bakefile_compiler_mwerks=no
14218fi
14219rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14220 bakefile_cv_cxx_compiler_mwerks=$bakefile_compiler_mwerks
14221
14222fi
14223echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler_mwerks" >&5
14224echo "${ECHO_T}$bakefile_cv_cxx_compiler_mwerks" >&6
14225
0e6fa1d9 14226MWCXX=`test $bakefile_cv_cxx_compiler_mwerks = yes && echo yes`
95986553
DE
14227ac_ext=cc
14228ac_cpp='$CXXCPP $CPPFLAGS'
14229ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14230ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14231ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14232
14233
3006edc0 14234 ac_ext=cc
9273ffba
DE
14235ac_cpp='$CXXCPP $CPPFLAGS'
14236ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14237ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14238ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14239
14240echo "$as_me:$LINENO: checking whether we are using the IBM xlC C++ compiler" >&5
14241echo $ECHO_N "checking whether we are using the IBM xlC C++ compiler... $ECHO_C" >&6
0093c2fc 14242if test "${bakefile_cv_cxx_compiler_xlc+set}" = set; then
9273ffba
DE
14243 echo $ECHO_N "(cached) $ECHO_C" >&6
14244else
14245 cat >conftest.$ac_ext <<_ACEOF
14246/* confdefs.h. */
14247_ACEOF
14248cat confdefs.h >>conftest.$ac_ext
14249cat >>conftest.$ac_ext <<_ACEOF
14250/* end confdefs.h. */
14251
14252int
14253main ()
14254{
14255#ifndef __xlC__
14256 choke me
14257#endif
14258
14259 ;
14260 return 0;
14261}
14262_ACEOF
14263rm -f conftest.$ac_objext
14264if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14265 (eval $ac_compile) 2>conftest.er1
14266 ac_status=$?
14267 grep -v '^ *+' conftest.er1 >conftest.err
14268 rm -f conftest.er1
14269 cat conftest.err >&5
14270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14271 (exit $ac_status); } &&
c9a66001 14272 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
9273ffba
DE
14273 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14274 (eval $ac_try) 2>&5
14275 ac_status=$?
14276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14277 (exit $ac_status); }; } &&
14278 { ac_try='test -s conftest.$ac_objext'
14279 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14280 (eval $ac_try) 2>&5
14281 ac_status=$?
14282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14283 (exit $ac_status); }; }; then
0093c2fc 14284 bakefile_compiler_xlc=yes
9273ffba
DE
14285else
14286 echo "$as_me: failed program was:" >&5
14287sed 's/^/| /' conftest.$ac_ext >&5
14288
0093c2fc 14289bakefile_compiler_xlc=no
9273ffba
DE
14290fi
14291rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
0093c2fc 14292 bakefile_cv_cxx_compiler_xlc=$bakefile_compiler_xlc
9273ffba
DE
14293
14294fi
0093c2fc
VZ
14295echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler_xlc" >&5
14296echo "${ECHO_T}$bakefile_cv_cxx_compiler_xlc" >&6
9273ffba 14297
0093c2fc 14298XLCXX=`test $bakefile_cv_cxx_compiler_xlc = yes && echo yes`
9273ffba
DE
14299ac_ext=cc
14300ac_cpp='$CXXCPP $CPPFLAGS'
14301ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14302ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14303ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14304
14305
3006edc0
VZ
14306 ;;
14307
14308 IRIX*)
95986553 14309
6dcfc289 14310
0ad5d837
VZ
14311 ac_ext=cc
14312ac_cpp='$CXXCPP $CPPFLAGS'
14313ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14314ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14315ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14316
14317 echo "$as_me:$LINENO: checking whether we are using the SGI C++ compiler" >&5
14318echo $ECHO_N "checking whether we are using the SGI C++ compiler... $ECHO_C" >&6
14319if test "${bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION+set}" = set; then
14320 echo $ECHO_N "(cached) $ECHO_C" >&6
14321else
14322 cat >conftest.$ac_ext <<_ACEOF
14323/* confdefs.h. */
14324_ACEOF
14325cat confdefs.h >>conftest.$ac_ext
14326cat >>conftest.$ac_ext <<_ACEOF
14327/* end confdefs.h. */
14328
14329int
14330main ()
14331{
14332
14333 #ifndef _SGI_COMPILER_VERSION
14334 choke me
14335 #endif
14336
14337 ;
14338 return 0;
14339}
14340_ACEOF
14341rm -f conftest.$ac_objext
14342if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14343 (eval $ac_compile) 2>conftest.er1
14344 ac_status=$?
14345 grep -v '^ *+' conftest.er1 >conftest.err
14346 rm -f conftest.er1
14347 cat conftest.err >&5
14348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14349 (exit $ac_status); } &&
c9a66001 14350 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
0ad5d837
VZ
14351 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14352 (eval $ac_try) 2>&5
14353 ac_status=$?
14354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14355 (exit $ac_status); }; } &&
14356 { ac_try='test -s conftest.$ac_objext'
14357 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14358 (eval $ac_try) 2>&5
14359 ac_status=$?
14360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14361 (exit $ac_status); }; }; then
14362 bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION=yes
14363else
14364 echo "$as_me: failed program was:" >&5
14365sed 's/^/| /' conftest.$ac_ext >&5
14366
14367bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION=no
14368
14369fi
14370rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14371
14372
14373fi
14374echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION" >&5
14375echo "${ECHO_T}$bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION" >&6
14376 ac_ext=cc
14377ac_cpp='$CXXCPP $CPPFLAGS'
14378ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14379ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14380ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14381
14382 if test "x$bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION" = "xyes"; then
14383 :; SGICXX=yes
14384 else
14385 :;
14386 fi
14387
14388
3006edc0
VZ
14389 ;;
14390
0093c2fc 14391 HP-UX*)
3006edc0
VZ
14392
14393
14394 ac_ext=cc
14395ac_cpp='$CXXCPP $CPPFLAGS'
14396ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14397ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14398ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14399
0093c2fc
VZ
14400 echo "$as_me:$LINENO: checking whether we are using the HP C++ compiler" >&5
14401echo $ECHO_N "checking whether we are using the HP C++ compiler... $ECHO_C" >&6
14402if test "${bakefile_cv_cxx_compiler___HP_aCC+set}" = set; then
3006edc0
VZ
14403 echo $ECHO_N "(cached) $ECHO_C" >&6
14404else
14405 cat >conftest.$ac_ext <<_ACEOF
14406/* confdefs.h. */
14407_ACEOF
14408cat confdefs.h >>conftest.$ac_ext
14409cat >>conftest.$ac_ext <<_ACEOF
14410/* end confdefs.h. */
14411
14412int
14413main ()
14414{
14415
0093c2fc 14416 #ifndef __HP_aCC
3006edc0
VZ
14417 choke me
14418 #endif
14419
14420 ;
14421 return 0;
14422}
14423_ACEOF
14424rm -f conftest.$ac_objext
14425if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14426 (eval $ac_compile) 2>conftest.er1
14427 ac_status=$?
14428 grep -v '^ *+' conftest.er1 >conftest.err
14429 rm -f conftest.er1
14430 cat conftest.err >&5
14431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14432 (exit $ac_status); } &&
c9a66001 14433 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3006edc0
VZ
14434 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14435 (eval $ac_try) 2>&5
14436 ac_status=$?
14437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14438 (exit $ac_status); }; } &&
14439 { ac_try='test -s conftest.$ac_objext'
14440 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14441 (eval $ac_try) 2>&5
14442 ac_status=$?
14443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14444 (exit $ac_status); }; }; then
0093c2fc 14445 bakefile_cv_cxx_compiler___HP_aCC=yes
3006edc0
VZ
14446else
14447 echo "$as_me: failed program was:" >&5
14448sed 's/^/| /' conftest.$ac_ext >&5
14449
0093c2fc 14450bakefile_cv_cxx_compiler___HP_aCC=no
3006edc0
VZ
14451
14452fi
14453rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14454
14455
14456fi
0093c2fc
VZ
14457echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___HP_aCC" >&5
14458echo "${ECHO_T}$bakefile_cv_cxx_compiler___HP_aCC" >&6
3006edc0
VZ
14459 ac_ext=cc
14460ac_cpp='$CXXCPP $CPPFLAGS'
14461ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14462ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14463ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14464
0093c2fc
VZ
14465 if test "x$bakefile_cv_cxx_compiler___HP_aCC" = "xyes"; then
14466 :; HPCXX=yes
a1aa0349
VZ
14467 else
14468 :;
14469 fi
14470
14471
14472 ;;
14473
0093c2fc 14474 OSF1)
a1aa0349
VZ
14475
14476
14477 ac_ext=cc
14478ac_cpp='$CXXCPP $CPPFLAGS'
14479ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14480ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14481ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14482
0093c2fc
VZ
14483 echo "$as_me:$LINENO: checking whether we are using the Compaq C++ compiler" >&5
14484echo $ECHO_N "checking whether we are using the Compaq C++ compiler... $ECHO_C" >&6
14485if test "${bakefile_cv_cxx_compiler___DECCXX+set}" = set; then
a1aa0349
VZ
14486 echo $ECHO_N "(cached) $ECHO_C" >&6
14487else
14488 cat >conftest.$ac_ext <<_ACEOF
14489/* confdefs.h. */
14490_ACEOF
14491cat confdefs.h >>conftest.$ac_ext
14492cat >>conftest.$ac_ext <<_ACEOF
14493/* end confdefs.h. */
14494
14495int
14496main ()
14497{
14498
0093c2fc 14499 #ifndef __DECCXX
a1aa0349
VZ
14500 choke me
14501 #endif
14502
14503 ;
14504 return 0;
14505}
14506_ACEOF
14507rm -f conftest.$ac_objext
14508if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14509 (eval $ac_compile) 2>conftest.er1
14510 ac_status=$?
14511 grep -v '^ *+' conftest.er1 >conftest.err
14512 rm -f conftest.er1
14513 cat conftest.err >&5
14514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14515 (exit $ac_status); } &&
c9a66001 14516 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
a1aa0349
VZ
14517 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14518 (eval $ac_try) 2>&5
14519 ac_status=$?
14520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14521 (exit $ac_status); }; } &&
14522 { ac_try='test -s conftest.$ac_objext'
14523 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14524 (eval $ac_try) 2>&5
14525 ac_status=$?
14526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14527 (exit $ac_status); }; }; then
0093c2fc 14528 bakefile_cv_cxx_compiler___DECCXX=yes
a1aa0349
VZ
14529else
14530 echo "$as_me: failed program was:" >&5
14531sed 's/^/| /' conftest.$ac_ext >&5
14532
0093c2fc 14533bakefile_cv_cxx_compiler___DECCXX=no
a1aa0349
VZ
14534
14535fi
14536rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14537
14538
14539fi
0093c2fc
VZ
14540echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___DECCXX" >&5
14541echo "${ECHO_T}$bakefile_cv_cxx_compiler___DECCXX" >&6
a1aa0349
VZ
14542 ac_ext=cc
14543ac_cpp='$CXXCPP $CPPFLAGS'
14544ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14545ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14546ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14547
0093c2fc
VZ
14548 if test "x$bakefile_cv_cxx_compiler___DECCXX" = "xyes"; then
14549 :; COMPAQCXX=yes
14550 else
14551 :;
14552 fi
14553
14554
14555 ;;
14556
14557 SunOS)
14558
14559
14560 ac_ext=cc
14561ac_cpp='$CXXCPP $CPPFLAGS'
14562ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14563ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14564ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14565
14566 echo "$as_me:$LINENO: checking whether we are using the Sun C++ compiler" >&5
14567echo $ECHO_N "checking whether we are using the Sun C++ compiler... $ECHO_C" >&6
14568if test "${bakefile_cv_cxx_compiler___SUNPRO_CC+set}" = set; then
14569 echo $ECHO_N "(cached) $ECHO_C" >&6
14570else
14571 cat >conftest.$ac_ext <<_ACEOF
14572/* confdefs.h. */
14573_ACEOF
14574cat confdefs.h >>conftest.$ac_ext
14575cat >>conftest.$ac_ext <<_ACEOF
14576/* end confdefs.h. */
14577
14578int
14579main ()
14580{
14581
14582 #ifndef __SUNPRO_CC
14583 choke me
14584 #endif
14585
14586 ;
14587 return 0;
14588}
14589_ACEOF
14590rm -f conftest.$ac_objext
14591if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14592 (eval $ac_compile) 2>conftest.er1
14593 ac_status=$?
14594 grep -v '^ *+' conftest.er1 >conftest.err
14595 rm -f conftest.er1
14596 cat conftest.err >&5
14597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14598 (exit $ac_status); } &&
c9a66001 14599 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
0093c2fc
VZ
14600 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14601 (eval $ac_try) 2>&5
14602 ac_status=$?
14603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14604 (exit $ac_status); }; } &&
14605 { ac_try='test -s conftest.$ac_objext'
14606 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14607 (eval $ac_try) 2>&5
14608 ac_status=$?
14609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14610 (exit $ac_status); }; }; then
14611 bakefile_cv_cxx_compiler___SUNPRO_CC=yes
14612else
14613 echo "$as_me: failed program was:" >&5
14614sed 's/^/| /' conftest.$ac_ext >&5
14615
14616bakefile_cv_cxx_compiler___SUNPRO_CC=no
14617
14618fi
14619rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14620
14621
14622fi
14623echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___SUNPRO_CC" >&5
14624echo "${ECHO_T}$bakefile_cv_cxx_compiler___SUNPRO_CC" >&6
14625 ac_ext=cc
14626ac_cpp='$CXXCPP $CPPFLAGS'
14627ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14628ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14629ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14630
14631 if test "x$bakefile_cv_cxx_compiler___SUNPRO_CC" = "xyes"; then
14632 :; SUNCXX=yes
3006edc0
VZ
14633 else
14634 :;
ab0ad5f1 14635 fi
a9e5b1f0
MW
14636
14637
3006edc0
VZ
14638 ;;
14639 esac
14640 fi
14641
14642
14643
a848cd7e
SC
14644if test -n "$ac_tool_prefix"; then
14645 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
14646set dummy ${ac_tool_prefix}ranlib; ac_word=$2
14647echo "$as_me:$LINENO: checking for $ac_word" >&5
14648echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14649if test "${ac_cv_prog_RANLIB+set}" = set; then
14650 echo $ECHO_N "(cached) $ECHO_C" >&6
14651else
14652 if test -n "$RANLIB"; then
14653 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
14654else
14655as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14656for as_dir in $PATH
14657do
14658 IFS=$as_save_IFS
14659 test -z "$as_dir" && as_dir=.
14660 for ac_exec_ext in '' $ac_executable_extensions; do
14661 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14662 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
14663 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14664 break 2
14665 fi
14666done
14667done
14668
14669fi
14670fi
14671RANLIB=$ac_cv_prog_RANLIB
14672if test -n "$RANLIB"; then
14673 echo "$as_me:$LINENO: result: $RANLIB" >&5
14674echo "${ECHO_T}$RANLIB" >&6
14675else
14676 echo "$as_me:$LINENO: result: no" >&5
14677echo "${ECHO_T}no" >&6
14678fi
14679
14680fi
14681if test -z "$ac_cv_prog_RANLIB"; then
14682 ac_ct_RANLIB=$RANLIB
14683 # Extract the first word of "ranlib", so it can be a program name with args.
14684set dummy ranlib; ac_word=$2
14685echo "$as_me:$LINENO: checking for $ac_word" >&5
14686echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14687if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
14688 echo $ECHO_N "(cached) $ECHO_C" >&6
14689else
14690 if test -n "$ac_ct_RANLIB"; then
14691 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
14692else
14693as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14694for as_dir in $PATH
14695do
14696 IFS=$as_save_IFS
14697 test -z "$as_dir" && as_dir=.
14698 for ac_exec_ext in '' $ac_executable_extensions; do
14699 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14700 ac_cv_prog_ac_ct_RANLIB="ranlib"
14701 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14702 break 2
14703 fi
14704done
14705done
14706
14707 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
14708fi
14709fi
14710ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
14711if test -n "$ac_ct_RANLIB"; then
14712 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
14713echo "${ECHO_T}$ac_ct_RANLIB" >&6
14714else
14715 echo "$as_me:$LINENO: result: no" >&5
14716echo "${ECHO_T}no" >&6
14717fi
14718
14719 RANLIB=$ac_ct_RANLIB
14720else
14721 RANLIB="$ac_cv_prog_RANLIB"
14722fi
14723
14724
8c80d384
DE
14725if test -n "$ac_tool_prefix"; then
14726 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
14727set dummy ${ac_tool_prefix}ar; ac_word=$2
a848cd7e
SC
14728echo "$as_me:$LINENO: checking for $ac_word" >&5
14729echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14730if test "${ac_cv_prog_AR+set}" = set; then
14731 echo $ECHO_N "(cached) $ECHO_C" >&6
14732else
14733 if test -n "$AR"; then
14734 ac_cv_prog_AR="$AR" # Let the user override the test.
14735else
14736as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14737for as_dir in $PATH
14738do
14739 IFS=$as_save_IFS
14740 test -z "$as_dir" && as_dir=.
14741 for ac_exec_ext in '' $ac_executable_extensions; do
14742 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8c80d384 14743 ac_cv_prog_AR="${ac_tool_prefix}ar"
a848cd7e
SC
14744 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14745 break 2
14746 fi
14747done
14748done
14749
14750fi
14751fi
14752AR=$ac_cv_prog_AR
14753if test -n "$AR"; then
14754 echo "$as_me:$LINENO: result: $AR" >&5
14755echo "${ECHO_T}$AR" >&6
14756else
14757 echo "$as_me:$LINENO: result: no" >&5
14758echo "${ECHO_T}no" >&6
14759fi
14760
8c80d384
DE
14761fi
14762if test -z "$ac_cv_prog_AR"; then
14763 ac_ct_AR=$AR
14764 # Extract the first word of "ar", so it can be a program name with args.
14765set dummy ar; ac_word=$2
14766echo "$as_me:$LINENO: checking for $ac_word" >&5
14767echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14768if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
14769 echo $ECHO_N "(cached) $ECHO_C" >&6
14770else
14771 if test -n "$ac_ct_AR"; then
14772 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
14773else
14774as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14775for as_dir in $PATH
14776do
14777 IFS=$as_save_IFS
14778 test -z "$as_dir" && as_dir=.
14779 for ac_exec_ext in '' $ac_executable_extensions; do
14780 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14781 ac_cv_prog_ac_ct_AR="ar"
14782 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14783 break 2
14784 fi
14785done
14786done
14787
14788fi
14789fi
14790ac_ct_AR=$ac_cv_prog_ac_ct_AR
14791if test -n "$ac_ct_AR"; then
14792 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
14793echo "${ECHO_T}$ac_ct_AR" >&6
14794else
14795 echo "$as_me:$LINENO: result: no" >&5
14796echo "${ECHO_T}no" >&6
14797fi
14798
14799 AR=$ac_ct_AR
14800else
14801 AR="$ac_cv_prog_AR"
14802fi
14803
a848cd7e 14804if test "x$AR" = "x" ; then
77ffb593
JS
14805 { { echo "$as_me:$LINENO: error: ar is needed to build wxWidgets" >&5
14806echo "$as_me: error: ar is needed to build wxWidgets" >&2;}
a848cd7e
SC
14807 { (exit 1); exit 1; }; }
14808fi
14809
14810# Find a good install program. We prefer a C program (faster),
14811# so one script is as good as another. But avoid the broken or
14812# incompatible versions:
14813# SysV /etc/install, /usr/sbin/install
14814# SunOS /usr/etc/install
14815# IRIX /sbin/install
14816# AIX /bin/install
14817# AmigaOS /C/install, which installs bootblocks on floppy discs
14818# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
14819# AFS /usr/afsws/bin/install, which mishandles nonexistent args
14820# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
ac1cb8d3 14821# OS/2's system install, which has a completely different semantic
a848cd7e
SC
14822# ./install, which can be erroneously created by make from ./install.sh.
14823echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
14824echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
14825if test -z "$INSTALL"; then
14826if test "${ac_cv_path_install+set}" = set; then
14827 echo $ECHO_N "(cached) $ECHO_C" >&6
14828else
14829 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14830for as_dir in $PATH
14831do
14832 IFS=$as_save_IFS
14833 test -z "$as_dir" && as_dir=.
14834 # Account for people who put trailing slashes in PATH elements.
14835case $as_dir/ in
14836 ./ | .// | /cC/* | \
14837 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
ac1cb8d3 14838 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
a848cd7e
SC
14839 /usr/ucb/* ) ;;
14840 *)
14841 # OSF1 and SCO ODT 3.0 have their own names for install.
14842 # Don't use installbsd from OSF since it installs stuff as root
14843 # by default.
14844 for ac_prog in ginstall scoinst install; do
14845 for ac_exec_ext in '' $ac_executable_extensions; do
ac1cb8d3
VS
14846 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
14847 if test $ac_prog = install &&
14848 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
14849 # AIX install. It has an incompatible calling convention.
14850 :
14851 elif test $ac_prog = install &&
14852 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
14853 # program-specific install script used by HP pwplus--don't use.
14854 :
14855 else
14856 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
14857 break 3
14858 fi
14859 fi
a848cd7e
SC
14860 done
14861 done
14862 ;;
14863esac
14864done
14865
14866
14867fi
14868 if test "${ac_cv_path_install+set}" = set; then
14869 INSTALL=$ac_cv_path_install
14870 else
14871 # As a last resort, use the slow shell script. We don't cache a
14872 # path for INSTALL within a source directory, because that will
14873 # break other packages using the cache if that directory is
14874 # removed, or if the path is relative.
14875 INSTALL=$ac_install_sh
14876 fi
14877fi
14878echo "$as_me:$LINENO: result: $INSTALL" >&5
14879echo "${ECHO_T}$INSTALL" >&6
14880
14881# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
14882# It thinks the first close brace ends the variable substitution.
14883test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
14884
14885test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
14886
14887test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
14888
14889
14890case ${INSTALL} in
14891 /* ) # Absolute
14892 ;;
14893 ?:* ) # Drive letter, considered as absolute.
14894 ;;
14895 *)
14896 INSTALL=`pwd`/${INSTALL} ;;
14897esac
14898
a848cd7e
SC
14899
14900case "${host}" in
14901
cfda0ea8 14902 *-*-darwin* )
a848cd7e
SC
14903 INSTALL_PROGRAM="cp -fp"
14904 INSTALL_DATA="cp -fp"
14905 ;;
14906 *)
14907 ;;
14908esac
14909
8c80d384
DE
14910if test -n "$ac_tool_prefix"; then
14911 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
14912set dummy ${ac_tool_prefix}strip; ac_word=$2
a848cd7e
SC
14913echo "$as_me:$LINENO: checking for $ac_word" >&5
14914echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14915if test "${ac_cv_prog_STRIP+set}" = set; then
14916 echo $ECHO_N "(cached) $ECHO_C" >&6
14917else
14918 if test -n "$STRIP"; then
14919 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
14920else
14921as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14922for as_dir in $PATH
14923do
14924 IFS=$as_save_IFS
14925 test -z "$as_dir" && as_dir=.
14926 for ac_exec_ext in '' $ac_executable_extensions; do
14927 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8c80d384 14928 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
a848cd7e
SC
14929 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14930 break 2
14931 fi
14932done
14933done
14934
a848cd7e
SC
14935fi
14936fi
14937STRIP=$ac_cv_prog_STRIP
14938if test -n "$STRIP"; then
14939 echo "$as_me:$LINENO: result: $STRIP" >&5
14940echo "${ECHO_T}$STRIP" >&6
14941else
14942 echo "$as_me:$LINENO: result: no" >&5
14943echo "${ECHO_T}no" >&6
14944fi
14945
8c80d384
DE
14946fi
14947if test -z "$ac_cv_prog_STRIP"; then
14948 ac_ct_STRIP=$STRIP
14949 # Extract the first word of "strip", so it can be a program name with args.
14950set dummy strip; ac_word=$2
14951echo "$as_me:$LINENO: checking for $ac_word" >&5
14952echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14953if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
14954 echo $ECHO_N "(cached) $ECHO_C" >&6
14955else
14956 if test -n "$ac_ct_STRIP"; then
14957 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
14958else
14959as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14960for as_dir in $PATH
14961do
14962 IFS=$as_save_IFS
14963 test -z "$as_dir" && as_dir=.
14964 for ac_exec_ext in '' $ac_executable_extensions; do
14965 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14966 ac_cv_prog_ac_ct_STRIP="strip"
14967 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14968 break 2
14969 fi
14970done
14971done
14972
14973 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP="true"
14974fi
14975fi
14976ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
14977if test -n "$ac_ct_STRIP"; then
14978 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
14979echo "${ECHO_T}$ac_ct_STRIP" >&6
14980else
14981 echo "$as_me:$LINENO: result: no" >&5
14982echo "${ECHO_T}no" >&6
14983fi
14984
14985 STRIP=$ac_ct_STRIP
14986else
14987 STRIP="$ac_cv_prog_STRIP"
14988fi
14989
14990
14991if test "$wxUSE_WINE" = "yes"; then
14992 if test -n "$ac_tool_prefix"; then
14993 # Extract the first word of "${ac_tool_prefix}wrc", so it can be a program name with args.
14994set dummy ${ac_tool_prefix}wrc; ac_word=$2
14995echo "$as_me:$LINENO: checking for $ac_word" >&5
14996echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8ced02f6 14997if test "${ac_cv_prog_WINDRES+set}" = set; then
8c80d384
DE
14998 echo $ECHO_N "(cached) $ECHO_C" >&6
14999else
8ced02f6
DE
15000 if test -n "$WINDRES"; then
15001 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
8c80d384
DE
15002else
15003as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15004for as_dir in $PATH
15005do
15006 IFS=$as_save_IFS
15007 test -z "$as_dir" && as_dir=.
15008 for ac_exec_ext in '' $ac_executable_extensions; do
15009 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8ced02f6 15010 ac_cv_prog_WINDRES="${ac_tool_prefix}wrc"
8c80d384
DE
15011 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15012 break 2
15013 fi
15014done
15015done
15016
15017fi
15018fi
8ced02f6
DE
15019WINDRES=$ac_cv_prog_WINDRES
15020if test -n "$WINDRES"; then
15021 echo "$as_me:$LINENO: result: $WINDRES" >&5
15022echo "${ECHO_T}$WINDRES" >&6
8c80d384
DE
15023else
15024 echo "$as_me:$LINENO: result: no" >&5
15025echo "${ECHO_T}no" >&6
15026fi
15027
15028fi
8ced02f6
DE
15029if test -z "$ac_cv_prog_WINDRES"; then
15030 ac_ct_WINDRES=$WINDRES
8c80d384
DE
15031 # Extract the first word of "wrc", so it can be a program name with args.
15032set dummy wrc; ac_word=$2
15033echo "$as_me:$LINENO: checking for $ac_word" >&5
15034echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8ced02f6 15035if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then
8c80d384
DE
15036 echo $ECHO_N "(cached) $ECHO_C" >&6
15037else
8ced02f6
DE
15038 if test -n "$ac_ct_WINDRES"; then
15039 ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
8c80d384
DE
15040else
15041as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15042for as_dir in $PATH
15043do
15044 IFS=$as_save_IFS
15045 test -z "$as_dir" && as_dir=.
15046 for ac_exec_ext in '' $ac_executable_extensions; do
15047 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8ced02f6 15048 ac_cv_prog_ac_ct_WINDRES="wrc"
8c80d384
DE
15049 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15050 break 2
15051 fi
15052done
15053done
15054
15055fi
15056fi
8ced02f6
DE
15057ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
15058if test -n "$ac_ct_WINDRES"; then
15059 echo "$as_me:$LINENO: result: $ac_ct_WINDRES" >&5
15060echo "${ECHO_T}$ac_ct_WINDRES" >&6
8c80d384
DE
15061else
15062 echo "$as_me:$LINENO: result: no" >&5
15063echo "${ECHO_T}no" >&6
15064fi
15065
8ced02f6 15066 WINDRES=$ac_ct_WINDRES
8c80d384 15067else
8ced02f6 15068 WINDRES="$ac_cv_prog_WINDRES"
8c80d384
DE
15069fi
15070
004ee6da 15071 RESCOMP="$WINDRES"
8c80d384
DE
15072else
15073 case "${host}" in
15074 *-*-cygwin* | *-*-mingw32* )
004ee6da
RL
15075 if test -n "$ac_tool_prefix"; then
15076 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
15077set dummy ${ac_tool_prefix}windres; ac_word=$2
15078echo "$as_me:$LINENO: checking for $ac_word" >&5
15079echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15080if test "${ac_cv_prog_WINDRES+set}" = set; then
15081 echo $ECHO_N "(cached) $ECHO_C" >&6
15082else
15083 if test -n "$WINDRES"; then
15084 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
15085else
15086as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15087for as_dir in $PATH
15088do
15089 IFS=$as_save_IFS
15090 test -z "$as_dir" && as_dir=.
15091 for ac_exec_ext in '' $ac_executable_extensions; do
15092 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15093 ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
15094 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15095 break 2
15096 fi
15097done
15098done
15099
15100fi
15101fi
15102WINDRES=$ac_cv_prog_WINDRES
15103if test -n "$WINDRES"; then
15104 echo "$as_me:$LINENO: result: $WINDRES" >&5
15105echo "${ECHO_T}$WINDRES" >&6
15106else
15107 echo "$as_me:$LINENO: result: no" >&5
15108echo "${ECHO_T}no" >&6
15109fi
15110
15111fi
15112if test -z "$ac_cv_prog_WINDRES"; then
15113 ac_ct_WINDRES=$WINDRES
15114 # Extract the first word of "windres", so it can be a program name with args.
15115set dummy windres; ac_word=$2
15116echo "$as_me:$LINENO: checking for $ac_word" >&5
15117echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15118if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then
15119 echo $ECHO_N "(cached) $ECHO_C" >&6
15120else
15121 if test -n "$ac_ct_WINDRES"; then
15122 ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
15123else
15124as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15125for as_dir in $PATH
15126do
15127 IFS=$as_save_IFS
15128 test -z "$as_dir" && as_dir=.
15129 for ac_exec_ext in '' $ac_executable_extensions; do
15130 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15131 ac_cv_prog_ac_ct_WINDRES="windres"
15132 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15133 break 2
15134 fi
15135done
15136done
15137
15138fi
15139fi
15140ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
15141if test -n "$ac_ct_WINDRES"; then
15142 echo "$as_me:$LINENO: result: $ac_ct_WINDRES" >&5
15143echo "${ECHO_T}$ac_ct_WINDRES" >&6
15144else
15145 echo "$as_me:$LINENO: result: no" >&5
15146echo "${ECHO_T}no" >&6
15147fi
15148
15149 WINDRES=$ac_ct_WINDRES
15150else
15151 WINDRES="$ac_cv_prog_WINDRES"
15152fi
15153
15154 RESCOMP="$WINDRES"
15155 if test -n "$ac_tool_prefix"; then
8c80d384
DE
15156 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
15157set dummy ${ac_tool_prefix}dlltool; ac_word=$2
15158echo "$as_me:$LINENO: checking for $ac_word" >&5
15159echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15160if test "${ac_cv_prog_DLLTOOL+set}" = set; then
15161 echo $ECHO_N "(cached) $ECHO_C" >&6
15162else
15163 if test -n "$DLLTOOL"; then
15164 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
15165else
15166as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15167for as_dir in $PATH
15168do
15169 IFS=$as_save_IFS
15170 test -z "$as_dir" && as_dir=.
15171 for ac_exec_ext in '' $ac_executable_extensions; do
15172 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15173 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
15174 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15175 break 2
15176 fi
15177done
15178done
15179
15180fi
15181fi
15182DLLTOOL=$ac_cv_prog_DLLTOOL
15183if test -n "$DLLTOOL"; then
15184 echo "$as_me:$LINENO: result: $DLLTOOL" >&5
15185echo "${ECHO_T}$DLLTOOL" >&6
15186else
15187 echo "$as_me:$LINENO: result: no" >&5
15188echo "${ECHO_T}no" >&6
15189fi
15190
15191fi
15192if test -z "$ac_cv_prog_DLLTOOL"; then
15193 ac_ct_DLLTOOL=$DLLTOOL
15194 # Extract the first word of "dlltool", so it can be a program name with args.
15195set dummy dlltool; ac_word=$2
15196echo "$as_me:$LINENO: checking for $ac_word" >&5
15197echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15198if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
15199 echo $ECHO_N "(cached) $ECHO_C" >&6
15200else
15201 if test -n "$ac_ct_DLLTOOL"; then
15202 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
15203else
15204as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15205for as_dir in $PATH
15206do
15207 IFS=$as_save_IFS
15208 test -z "$as_dir" && as_dir=.
15209 for ac_exec_ext in '' $ac_executable_extensions; do
15210 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15211 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
15212 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15213 break 2
15214 fi
15215done
15216done
15217
15218fi
15219fi
15220ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
15221if test -n "$ac_ct_DLLTOOL"; then
15222 echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
15223echo "${ECHO_T}$ac_ct_DLLTOOL" >&6
15224else
15225 echo "$as_me:$LINENO: result: no" >&5
15226echo "${ECHO_T}no" >&6
15227fi
15228
15229 DLLTOOL=$ac_ct_DLLTOOL
15230else
15231 DLLTOOL="$ac_cv_prog_DLLTOOL"
15232fi
15233
15234 ;;
15235 esac
15236fi
a848cd7e
SC
15237
15238echo "$as_me:$LINENO: checking if make is GNU make" >&5
15239echo $ECHO_N "checking if make is GNU make... $ECHO_C" >&6
15240if test "${wx_cv_prog_makeisgnu+set}" = set; then
15241 echo $ECHO_N "(cached) $ECHO_C" >&6
15242else
15243
15244 if ( ${SHELL-sh} -c "${MAKE-make} --version" 2> /dev/null |
15245 egrep -s GNU > /dev/null); then
15246 wx_cv_prog_makeisgnu="yes"
15247 else
15248 wx_cv_prog_makeisgnu="no"
15249 fi
15250
15251fi
15252echo "$as_me:$LINENO: result: $wx_cv_prog_makeisgnu" >&5
15253echo "${ECHO_T}$wx_cv_prog_makeisgnu" >&6
15254
15255if test "x$wx_cv_prog_makeisgnu" = "xyes"; then
15256 IF_GNU_MAKE=""
15257else
15258 IF_GNU_MAKE="#"
15259fi
15260
15261
15262
15263if test "x$wx_cv_prog_makeisgnu" != "xyes"; then
15264echo "$as_me:$LINENO: checking if make supports VPATH" >&5
15265echo $ECHO_N "checking if make supports VPATH... $ECHO_C" >&6
15266if test "${wx_cv_prog_makevpath+set}" = set; then
15267 echo $ECHO_N "(cached) $ECHO_C" >&6
15268else
15269
15270cat - << EOF > confMake
15271check : file
15272 cp \$? \$@
15273 cp \$? final_file
15274EOF
15275
15276if test ! -d sub ; then
15277 mkdir sub
15278fi
15279echo dummy > sub/file
15280${MAKE-make} -f confMake VPATH=sub 2>&5 > /dev/null
15281RESULT=$?
15282rm -f sub/file check final_file confMake
15283rmdir sub
15284if test "$RESULT" = 0; then
15285 wx_cv_prog_makevpath="yes"
15286else
15287 wx_cv_prog_makevpath="no"
15288fi
15289
15290fi
15291echo "$as_me:$LINENO: result: $wx_cv_prog_makevpath" >&5
15292echo "${ECHO_T}$wx_cv_prog_makevpath" >&6
15293
15294if test "x$wx_cv_prog_makevpath" != "xyes"; then
15295{ { echo "$as_me:$LINENO: error:
15296You need a make-utility that is able to use the variable
15297VPATH correctly.
15298If your version of make does not support VPATH correctly,
15299please install GNU-make (possibly as gmake), and start
15300configure with the following command:
15301export MAKE=gmake; ./configure for sh-type shells
15302setenv MAKE gmake; ./configure for csh-type shells
15303Also please do remember to use gmake in this case every time
15304you are trying to compile.
15305" >&5
15306echo "$as_me: error:
15307You need a make-utility that is able to use the variable
15308VPATH correctly.
15309If your version of make does not support VPATH correctly,
15310please install GNU-make (possibly as gmake), and start
15311configure with the following command:
15312export MAKE=gmake; ./configure for sh-type shells
15313setenv MAKE gmake; ./configure for csh-type shells
15314Also please do remember to use gmake in this case every time
15315you are trying to compile.
15316" >&2;}
15317 { (exit 1); exit 1; }; }
15318fi fi
15319echo "$as_me:$LINENO: checking whether ln -s works" >&5
15320echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
15321LN_S=$as_ln_s
15322if test "$LN_S" = "ln -s"; then
15323 echo "$as_me:$LINENO: result: yes" >&5
15324echo "${ECHO_T}yes" >&6
15325else
15326 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
15327echo "${ECHO_T}no, using $LN_S" >&6
15328fi
15329
15330
bcaab0f9 15331
a848cd7e 15332
2113bc77 15333if test "x$XLCXX" = "xyes" -a "x$USE_AIX" = "x1"; then
c92ad099 15334 CXXFLAGS="-qunique $CXXFLAGS"
9273ffba
DE
15335fi
15336
4d7ec9f1
DE
15337case "${host}" in
15338 powerpc-*-darwin* )
15339 echo "$as_me:$LINENO: checking if __POWERPC__ is already defined" >&5
15340echo $ECHO_N "checking if __POWERPC__ is already defined... $ECHO_C" >&6
15341 cat >conftest.$ac_ext <<_ACEOF
15342/* confdefs.h. */
15343_ACEOF
15344cat confdefs.h >>conftest.$ac_ext
15345cat >>conftest.$ac_ext <<_ACEOF
15346/* end confdefs.h. */
15347
15348int
15349main ()
15350{
15351#ifndef __POWERPC__
15352 choke me for lack of PowerPC
15353#endif
15354
15355 ;
15356 return 0;
15357}
15358_ACEOF
15359rm -f conftest.$ac_objext
15360if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15361 (eval $ac_compile) 2>conftest.er1
15362 ac_status=$?
15363 grep -v '^ *+' conftest.er1 >conftest.err
15364 rm -f conftest.er1
15365 cat conftest.err >&5
15366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15367 (exit $ac_status); } &&
c9a66001 15368 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
4d7ec9f1
DE
15369 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15370 (eval $ac_try) 2>&5
15371 ac_status=$?
15372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15373 (exit $ac_status); }; } &&
15374 { ac_try='test -s conftest.$ac_objext'
15375 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15376 (eval $ac_try) 2>&5
15377 ac_status=$?
15378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15379 (exit $ac_status); }; }; then
15380 echo "$as_me:$LINENO: result: yes" >&5
15381echo "${ECHO_T}yes" >&6
15382else
15383 echo "$as_me: failed program was:" >&5
15384sed 's/^/| /' conftest.$ac_ext >&5
15385
15386echo "$as_me:$LINENO: result: no" >&5
15387echo "${ECHO_T}no" >&6
15388 cat >>confdefs.h <<\_ACEOF
15389#define __POWERPC__ 1
15390_ACEOF
15391
15392
15393fi
15394rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
cfda0ea8
DE
15395 ;;
15396esac
15397
15398case "${host}" in
15399 *-*-darwin* )
4d7ec9f1
DE
15400 echo "$as_me:$LINENO: checking if CoreFoundation/CFBase.h is usable" >&5
15401echo $ECHO_N "checking if CoreFoundation/CFBase.h is usable... $ECHO_C" >&6
15402 cat >conftest.$ac_ext <<_ACEOF
15403/* confdefs.h. */
15404_ACEOF
15405cat confdefs.h >>conftest.$ac_ext
15406cat >>conftest.$ac_ext <<_ACEOF
15407/* end confdefs.h. */
15408#include <CoreFoundation/CFBase.h>
15409
15410int
15411main ()
15412{
15413
15414 ;
15415 return 0;
15416}
15417_ACEOF
15418rm -f conftest.$ac_objext
15419if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15420 (eval $ac_compile) 2>conftest.er1
15421 ac_status=$?
15422 grep -v '^ *+' conftest.er1 >conftest.err
15423 rm -f conftest.er1
15424 cat conftest.err >&5
15425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15426 (exit $ac_status); } &&
c9a66001 15427 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
4d7ec9f1
DE
15428 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15429 (eval $ac_try) 2>&5
15430 ac_status=$?
15431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15432 (exit $ac_status); }; } &&
15433 { ac_try='test -s conftest.$ac_objext'
15434 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15435 (eval $ac_try) 2>&5
15436 ac_status=$?
15437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15438 (exit $ac_status); }; }; then
15439 echo "$as_me:$LINENO: result: yes" >&5
15440echo "${ECHO_T}yes" >&6
15441else
15442 echo "$as_me: failed program was:" >&5
15443sed 's/^/| /' conftest.$ac_ext >&5
15444
15445echo "$as_me:$LINENO: result: no" >&5
15446echo "${ECHO_T}no" >&6
15447 echo "$as_me:$LINENO: checking if __CF_USE_FRAMEWORK_INCLUDES__ is required" >&5
15448echo $ECHO_N "checking if __CF_USE_FRAMEWORK_INCLUDES__ is required... $ECHO_C" >&6
15449 cat >conftest.$ac_ext <<_ACEOF
15450/* confdefs.h. */
15451_ACEOF
15452cat confdefs.h >>conftest.$ac_ext
15453cat >>conftest.$ac_ext <<_ACEOF
15454/* end confdefs.h. */
15455#define __CF_USE_FRAMEWORK_INCLUDES__
15456#include <CoreFoundation/CFBase.h>
15457
15458int
15459main ()
15460{
15461
15462 ;
15463 return 0;
15464}
15465_ACEOF
15466rm -f conftest.$ac_objext
15467if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15468 (eval $ac_compile) 2>conftest.er1
15469 ac_status=$?
15470 grep -v '^ *+' conftest.er1 >conftest.err
15471 rm -f conftest.er1
15472 cat conftest.err >&5
15473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15474 (exit $ac_status); } &&
c9a66001 15475 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
4d7ec9f1
DE
15476 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15477 (eval $ac_try) 2>&5
15478 ac_status=$?
15479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15480 (exit $ac_status); }; } &&
15481 { ac_try='test -s conftest.$ac_objext'
15482 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15483 (eval $ac_try) 2>&5
15484 ac_status=$?
15485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15486 (exit $ac_status); }; }; then
15487 echo "$as_me:$LINENO: result: yes" >&5
15488echo "${ECHO_T}yes" >&6
c92ad099 15489 CPPFLAGS="-D__CF_USE_FRAMEWORK_INCLUDES__ $CPPFLAGS"
4d7ec9f1
DE
15490else
15491 echo "$as_me: failed program was:" >&5
15492sed 's/^/| /' conftest.$ac_ext >&5
15493
15494{ { echo "$as_me:$LINENO: error: no. CoreFoundation not available.
15495See \`config.log' for more details." >&5
15496echo "$as_me: error: no. CoreFoundation not available.
15497See \`config.log' for more details." >&2;}
15498 { (exit 1); exit 1; }; }
15499
15500fi
15501rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15502
15503
15504fi
15505rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15506 ;;
15507esac
15508
a848cd7e
SC
15509case "${host}" in
15510 *-pc-os2_emx | *-pc-os2-emx )
6ba87b06
SN
15511 ac_ext=c
15512ac_cpp='$CPP $CPPFLAGS'
15513ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15514ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15515ac_compiler_gnu=$ac_cv_c_compiler_gnu
15516
15517 if test "$wxUSE_MOTIF" = 1 -o "$wxUSE_GTK" = 1 -o "$wxUSE_X11" = 1; then
a848cd7e
SC
15518 echo "$as_me:$LINENO: checking for drand48 in -lcExt" >&5
15519echo $ECHO_N "checking for drand48 in -lcExt... $ECHO_C" >&6
15520if test "${ac_cv_lib_cExt_drand48+set}" = set; then
15521 echo $ECHO_N "(cached) $ECHO_C" >&6
15522else
15523 ac_check_lib_save_LIBS=$LIBS
15524LIBS="-lcExt $LIBS"
15525cat >conftest.$ac_ext <<_ACEOF
15526/* confdefs.h. */
15527_ACEOF
15528cat confdefs.h >>conftest.$ac_ext
15529cat >>conftest.$ac_ext <<_ACEOF
15530/* end confdefs.h. */
15531
15532/* Override any gcc2 internal prototype to avoid an error. */
15533#ifdef __cplusplus
15534extern "C"
15535#endif
15536/* We use char because int might match the return type of a gcc2
15537 builtin and then its argument prototype would still apply. */
15538char drand48 ();
15539int
15540main ()
15541{
15542drand48 ();
15543 ;
15544 return 0;
15545}
15546_ACEOF
15547rm -f conftest.$ac_objext conftest$ac_exeext
15548if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 15549 (eval $ac_link) 2>conftest.er1
a848cd7e 15550 ac_status=$?
ac1cb8d3
VS
15551 grep -v '^ *+' conftest.er1 >conftest.err
15552 rm -f conftest.er1
15553 cat conftest.err >&5
a848cd7e
SC
15554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15555 (exit $ac_status); } &&
c9a66001 15556 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
15557 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15558 (eval $ac_try) 2>&5
15559 ac_status=$?
15560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15561 (exit $ac_status); }; } &&
15562 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
15563 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15564 (eval $ac_try) 2>&5
15565 ac_status=$?
15566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15567 (exit $ac_status); }; }; then
15568 ac_cv_lib_cExt_drand48=yes
15569else
15570 echo "$as_me: failed program was:" >&5
15571sed 's/^/| /' conftest.$ac_ext >&5
15572
15573ac_cv_lib_cExt_drand48=no
15574fi
ac1cb8d3
VS
15575rm -f conftest.err conftest.$ac_objext \
15576 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
15577LIBS=$ac_check_lib_save_LIBS
15578fi
15579echo "$as_me:$LINENO: result: $ac_cv_lib_cExt_drand48" >&5
15580echo "${ECHO_T}$ac_cv_lib_cExt_drand48" >&6
15581if test $ac_cv_lib_cExt_drand48 = yes; then
15582 LIBS="$LIBS -lcExt"
15583fi
15584
15585 else
15586 RESPROGRAMOBJ="\${top_srcdir}/include/wx/os2/wx.res"
15587 fi
69120ee4
VZ
15588 echo "$as_me:$LINENO: checking for gcc/libc version" >&5
15589echo $ECHO_N "checking for gcc/libc version... $ECHO_C" >&6
a848cd7e
SC
15590if test "${wx_cv_gccversion+set}" = set; then
15591 echo $ECHO_N "(cached) $ECHO_C" >&6
15592else
15593
391a765e
VS
15594 if test "$cross_compiling" = yes; then
15595 wx_cv_gccversion="EMX2"
15596
15597else
15598 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
15599/* confdefs.h. */
15600_ACEOF
15601cat confdefs.h >>conftest.$ac_ext
15602cat >>conftest.$ac_ext <<_ACEOF
15603/* end confdefs.h. */
15604
391a765e 15605 #include <stdio.h>
a848cd7e 15606
391a765e
VS
15607 int main()
15608 {
15609 FILE *f=fopen("conftestval", "w");
15610 if (!f) exit(1);
15611 fprintf(f,
a848cd7e 15612 #if (__GNUC__ < 3)
391a765e
VS
15613 "EMX2"
15614 #elif (__GNUC__==3) && ((__GNUC_MINOR__ < 2) || ((__GNUC_MINOR__==2) && (__GNUC_PATCHLEVEL__<2)))
15615 "EMX3"
15616 #elif (__GNUC__==3) && (__GNUC_MINOR__==2) && (__GNUC_PATCHLEVEL__==2)
15617 "Innotek5"
15618 #else
15619 "Innotek6"
a848cd7e 15620 #endif
391a765e
VS
15621 );
15622 exit(0);
15623 }
a848cd7e 15624
a848cd7e 15625_ACEOF
391a765e
VS
15626rm -f conftest$ac_exeext
15627if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15628 (eval $ac_link) 2>&5
ac1cb8d3
VS
15629 ac_status=$?
15630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
391a765e 15631 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
a848cd7e
SC
15632 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15633 (eval $ac_try) 2>&5
15634 ac_status=$?
15635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15636 (exit $ac_status); }; }; then
391a765e 15637 wx_cv_gccversion=`cat conftestval`
a848cd7e 15638else
391a765e
VS
15639 echo "$as_me: program exited with status $ac_status" >&5
15640echo "$as_me: failed program was:" >&5
a848cd7e
SC
15641sed 's/^/| /' conftest.$ac_ext >&5
15642
391a765e
VS
15643( exit $ac_status )
15644wx_cv_gccversion="EMX2"
a848cd7e 15645fi
391a765e 15646rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e 15647fi
a848cd7e
SC
15648
15649fi
15650echo "$as_me:$LINENO: result: $wx_cv_gccversion" >&5
15651echo "${ECHO_T}$wx_cv_gccversion" >&6
6ba87b06
SN
15652 ac_ext=cc
15653ac_cpp='$CXXCPP $CPPFLAGS'
15654ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15655ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15656ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15657
391a765e 15658 if test "$wx_cv_gccversion" = "EMX2"; then
a848cd7e
SC
15659 LIBS="$LIBS -lstdcpp"
15660 LDFLAGS="$LDFLAGS -Zsysv-signals"
15661 else
391a765e 15662 if test "$wx_cv_gccversion" = "EMX3"; then
ddd14b14 15663 LIBS="$LIBS -lstdcxx -lgcc"
a848cd7e
SC
15664 LDFLAGS="$LDFLAGS -Zsysv-signals"
15665 else
15666 LIBS="$LIBS -lstdc++"
15667 fi
15668 fi
94acd38e
DE
15669 if test "$wxUSE_SHARED" = "yes" -a "$wxUSE_OMF" = "no"; then
15670 { echo "$as_me:$LINENO: WARNING: Building DLLs requires OMF mode, enabled" >&5
15671echo "$as_me: WARNING: Building DLLs requires OMF mode, enabled" >&2;}
15672 wxUSE_OMF=yes
2da0c077 15673 enable_omf=yes
a848cd7e
SC
15674 fi
15675 ;;
15676 *)
15677
95986553 15678 echo "$as_me:$LINENO: checking for strcasecmp() in string.h" >&5
a848cd7e
SC
15679echo $ECHO_N "checking for strcasecmp() in string.h... $ECHO_C" >&6
15680if test "${ac_cv_string_strcasecmp+set}" = set; then
15681 echo $ECHO_N "(cached) $ECHO_C" >&6
15682else
15683
15684 cat >conftest.$ac_ext <<_ACEOF
15685/* confdefs.h. */
15686_ACEOF
15687cat confdefs.h >>conftest.$ac_ext
15688cat >>conftest.$ac_ext <<_ACEOF
15689/* end confdefs.h. */
15690
15691 #include <string.h>
15692
15693int
15694main ()
15695{
15696
15697 strcasecmp("foo", "bar");
15698
15699 ;
15700 return 0;
15701}
15702_ACEOF
15703rm -f conftest.$ac_objext conftest$ac_exeext
15704if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 15705 (eval $ac_link) 2>conftest.er1
a848cd7e 15706 ac_status=$?
ac1cb8d3
VS
15707 grep -v '^ *+' conftest.er1 >conftest.err
15708 rm -f conftest.er1
15709 cat conftest.err >&5
a848cd7e
SC
15710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15711 (exit $ac_status); } &&
c9a66001 15712 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
15713 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15714 (eval $ac_try) 2>&5
15715 ac_status=$?
15716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15717 (exit $ac_status); }; } &&
15718 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
15719 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15720 (eval $ac_try) 2>&5
15721 ac_status=$?
15722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15723 (exit $ac_status); }; }; then
15724 ac_cv_string_strcasecmp=yes
15725else
15726 echo "$as_me: failed program was:" >&5
15727sed 's/^/| /' conftest.$ac_ext >&5
15728
15729ac_cv_string_strcasecmp=no
15730
15731fi
ac1cb8d3
VS
15732rm -f conftest.err conftest.$ac_objext \
15733 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
15734
15735fi
15736echo "$as_me:$LINENO: result: $ac_cv_string_strcasecmp" >&5
15737echo "${ECHO_T}$ac_cv_string_strcasecmp" >&6
15738
15739 if test x"$ac_cv_string_strcasecmp" = "xyes"; then
15740 cat >>confdefs.h <<\_ACEOF
15741#define HAVE_STRCASECMP_IN_STRING_H 1
15742_ACEOF
15743
15744 else
15745 echo "$as_me:$LINENO: checking for strcasecmp() in strings.h" >&5
15746echo $ECHO_N "checking for strcasecmp() in strings.h... $ECHO_C" >&6
15747if test "${ac_cv_strings_strcasecmp+set}" = set; then
15748 echo $ECHO_N "(cached) $ECHO_C" >&6
15749else
15750
15751 cat >conftest.$ac_ext <<_ACEOF
15752/* confdefs.h. */
15753_ACEOF
15754cat confdefs.h >>conftest.$ac_ext
15755cat >>conftest.$ac_ext <<_ACEOF
15756/* end confdefs.h. */
15757
15758 #include <strings.h>
15759
15760int
15761main ()
15762{
15763
15764 strcasecmp("foo", "bar");
15765
15766 ;
15767 return 0;
15768}
15769_ACEOF
15770rm -f conftest.$ac_objext conftest$ac_exeext
15771if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 15772 (eval $ac_link) 2>conftest.er1
a848cd7e 15773 ac_status=$?
ac1cb8d3
VS
15774 grep -v '^ *+' conftest.er1 >conftest.err
15775 rm -f conftest.er1
15776 cat conftest.err >&5
a848cd7e
SC
15777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15778 (exit $ac_status); } &&
c9a66001 15779 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
15780 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15781 (eval $ac_try) 2>&5
15782 ac_status=$?
15783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15784 (exit $ac_status); }; } &&
15785 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
15786 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15787 (eval $ac_try) 2>&5
15788 ac_status=$?
15789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15790 (exit $ac_status); }; }; then
15791 ac_cv_strings_strcasecmp=yes
15792else
15793 echo "$as_me: failed program was:" >&5
15794sed 's/^/| /' conftest.$ac_ext >&5
15795
15796ac_cv_strings_strcasecmp=no
15797
15798fi
ac1cb8d3
VS
15799rm -f conftest.err conftest.$ac_objext \
15800 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
15801
15802fi
15803echo "$as_me:$LINENO: result: $ac_cv_strings_strcasecmp" >&5
15804echo "${ECHO_T}$ac_cv_strings_strcasecmp" >&6
15805
0c3c69fc 15806 if test x"$ac_cv_strings_strcasecmp" = "xyes"; then
a848cd7e
SC
15807 cat >>confdefs.h <<\_ACEOF
15808#define HAVE_STRCASECMP_IN_STRINGS_H 1
15809_ACEOF
15810
15811 else
15812 { { echo "$as_me:$LINENO: error: No case-insensitive string comparison function found." >&5
15813echo "$as_me: error: No case-insensitive string comparison function found." >&2;}
15814 { (exit 1); exit 1; }; }
15815 fi
15816 fi
15817
a848cd7e
SC
15818 ;;
15819esac
15820
15821
5d7b7554
VZ
15822ac_ext=cc
15823ac_cpp='$CXXCPP $CPPFLAGS'
15824ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15825ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15826ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15827echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
15828echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
15829if test -z "$CXXCPP"; then
15830 if test "${ac_cv_prog_CXXCPP+set}" = set; then
15831 echo $ECHO_N "(cached) $ECHO_C" >&6
15832else
15833 # Double quotes because CXXCPP needs to be expanded
15834 for CXXCPP in "$CXX -E" "/lib/cpp"
15835 do
15836 ac_preproc_ok=false
15837for ac_cxx_preproc_warn_flag in '' yes
15838do
15839 # Use a header file that comes with gcc, so configuring glibc
15840 # with a fresh cross-compiler works.
15841 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15842 # <limits.h> exists even on freestanding compilers.
15843 # On the NeXT, cc -E runs the code through the compiler's parser,
15844 # not just through cpp. "Syntax error" is here to catch this case.
15845 cat >conftest.$ac_ext <<_ACEOF
15846/* confdefs.h. */
15847_ACEOF
15848cat confdefs.h >>conftest.$ac_ext
15849cat >>conftest.$ac_ext <<_ACEOF
15850/* end confdefs.h. */
15851#ifdef __STDC__
15852# include <limits.h>
15853#else
15854# include <assert.h>
15855#endif
15856 Syntax error
15857_ACEOF
15858if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15859 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15860 ac_status=$?
15861 grep -v '^ *+' conftest.er1 >conftest.err
15862 rm -f conftest.er1
15863 cat conftest.err >&5
15864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15865 (exit $ac_status); } >/dev/null; then
15866 if test -s conftest.err; then
15867 ac_cpp_err=$ac_cxx_preproc_warn_flag
15868 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
15869 else
15870 ac_cpp_err=
15871 fi
15872else
15873 ac_cpp_err=yes
15874fi
15875if test -z "$ac_cpp_err"; then
15876 :
15877else
15878 echo "$as_me: failed program was:" >&5
15879sed 's/^/| /' conftest.$ac_ext >&5
15880
15881 # Broken: fails on valid input.
15882continue
15883fi
15884rm -f conftest.err conftest.$ac_ext
15885
15886 # OK, works on sane cases. Now check whether non-existent headers
15887 # can be detected and how.
15888 cat >conftest.$ac_ext <<_ACEOF
15889/* confdefs.h. */
15890_ACEOF
15891cat confdefs.h >>conftest.$ac_ext
15892cat >>conftest.$ac_ext <<_ACEOF
15893/* end confdefs.h. */
15894#include <ac_nonexistent.h>
15895_ACEOF
15896if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15897 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15898 ac_status=$?
15899 grep -v '^ *+' conftest.er1 >conftest.err
15900 rm -f conftest.er1
15901 cat conftest.err >&5
15902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15903 (exit $ac_status); } >/dev/null; then
15904 if test -s conftest.err; then
15905 ac_cpp_err=$ac_cxx_preproc_warn_flag
15906 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
15907 else
15908 ac_cpp_err=
15909 fi
15910else
15911 ac_cpp_err=yes
15912fi
15913if test -z "$ac_cpp_err"; then
15914 # Broken: success on invalid input.
15915continue
15916else
15917 echo "$as_me: failed program was:" >&5
15918sed 's/^/| /' conftest.$ac_ext >&5
15919
15920 # Passes both tests.
15921ac_preproc_ok=:
15922break
15923fi
15924rm -f conftest.err conftest.$ac_ext
15925
15926done
15927# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
15928rm -f conftest.err conftest.$ac_ext
15929if $ac_preproc_ok; then
15930 break
15931fi
15932
15933 done
15934 ac_cv_prog_CXXCPP=$CXXCPP
15935
15936fi
15937 CXXCPP=$ac_cv_prog_CXXCPP
15938else
15939 ac_cv_prog_CXXCPP=$CXXCPP
15940fi
15941echo "$as_me:$LINENO: result: $CXXCPP" >&5
15942echo "${ECHO_T}$CXXCPP" >&6
15943ac_preproc_ok=false
15944for ac_cxx_preproc_warn_flag in '' yes
15945do
15946 # Use a header file that comes with gcc, so configuring glibc
15947 # with a fresh cross-compiler works.
15948 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15949 # <limits.h> exists even on freestanding compilers.
15950 # On the NeXT, cc -E runs the code through the compiler's parser,
15951 # not just through cpp. "Syntax error" is here to catch this case.
15952 cat >conftest.$ac_ext <<_ACEOF
15953/* confdefs.h. */
15954_ACEOF
15955cat confdefs.h >>conftest.$ac_ext
15956cat >>conftest.$ac_ext <<_ACEOF
15957/* end confdefs.h. */
15958#ifdef __STDC__
15959# include <limits.h>
15960#else
15961# include <assert.h>
15962#endif
15963 Syntax error
15964_ACEOF
15965if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15966 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15967 ac_status=$?
15968 grep -v '^ *+' conftest.er1 >conftest.err
15969 rm -f conftest.er1
15970 cat conftest.err >&5
15971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15972 (exit $ac_status); } >/dev/null; then
15973 if test -s conftest.err; then
15974 ac_cpp_err=$ac_cxx_preproc_warn_flag
15975 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
15976 else
15977 ac_cpp_err=
15978 fi
15979else
15980 ac_cpp_err=yes
15981fi
15982if test -z "$ac_cpp_err"; then
15983 :
15984else
15985 echo "$as_me: failed program was:" >&5
15986sed 's/^/| /' conftest.$ac_ext >&5
15987
15988 # Broken: fails on valid input.
15989continue
15990fi
15991rm -f conftest.err conftest.$ac_ext
15992
15993 # OK, works on sane cases. Now check whether non-existent headers
15994 # can be detected and how.
15995 cat >conftest.$ac_ext <<_ACEOF
15996/* confdefs.h. */
15997_ACEOF
15998cat confdefs.h >>conftest.$ac_ext
15999cat >>conftest.$ac_ext <<_ACEOF
16000/* end confdefs.h. */
16001#include <ac_nonexistent.h>
16002_ACEOF
16003if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16004 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16005 ac_status=$?
16006 grep -v '^ *+' conftest.er1 >conftest.err
16007 rm -f conftest.er1
16008 cat conftest.err >&5
16009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16010 (exit $ac_status); } >/dev/null; then
16011 if test -s conftest.err; then
16012 ac_cpp_err=$ac_cxx_preproc_warn_flag
16013 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
16014 else
16015 ac_cpp_err=
16016 fi
16017else
16018 ac_cpp_err=yes
16019fi
16020if test -z "$ac_cpp_err"; then
16021 # Broken: success on invalid input.
16022continue
16023else
16024 echo "$as_me: failed program was:" >&5
16025sed 's/^/| /' conftest.$ac_ext >&5
16026
16027 # Passes both tests.
16028ac_preproc_ok=:
16029break
16030fi
16031rm -f conftest.err conftest.$ac_ext
16032
16033done
16034# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
16035rm -f conftest.err conftest.$ac_ext
16036if $ac_preproc_ok; then
16037 :
16038else
16039 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
16040See \`config.log' for more details." >&5
16041echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
16042See \`config.log' for more details." >&2;}
16043 { (exit 1); exit 1; }; }
16044fi
16045
16046ac_ext=cc
16047ac_cpp='$CXXCPP $CPPFLAGS'
16048ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16049ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16050ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16051
16052
a848cd7e
SC
16053echo "$as_me:$LINENO: checking for ANSI C header files" >&5
16054echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
16055if test "${ac_cv_header_stdc+set}" = set; then
16056 echo $ECHO_N "(cached) $ECHO_C" >&6
16057else
16058 cat >conftest.$ac_ext <<_ACEOF
16059/* confdefs.h. */
16060_ACEOF
16061cat confdefs.h >>conftest.$ac_ext
16062cat >>conftest.$ac_ext <<_ACEOF
16063/* end confdefs.h. */
16064#include <stdlib.h>
16065#include <stdarg.h>
16066#include <string.h>
16067#include <float.h>
16068
16069int
16070main ()
16071{
16072
16073 ;
16074 return 0;
16075}
16076_ACEOF
16077rm -f conftest.$ac_objext
16078if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16079 (eval $ac_compile) 2>conftest.er1
a848cd7e 16080 ac_status=$?
ac1cb8d3
VS
16081 grep -v '^ *+' conftest.er1 >conftest.err
16082 rm -f conftest.er1
16083 cat conftest.err >&5
a848cd7e
SC
16084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16085 (exit $ac_status); } &&
c9a66001 16086 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16087 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16088 (eval $ac_try) 2>&5
16089 ac_status=$?
16090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16091 (exit $ac_status); }; } &&
16092 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16093 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16094 (eval $ac_try) 2>&5
16095 ac_status=$?
16096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16097 (exit $ac_status); }; }; then
16098 ac_cv_header_stdc=yes
16099else
16100 echo "$as_me: failed program was:" >&5
16101sed 's/^/| /' conftest.$ac_ext >&5
16102
16103ac_cv_header_stdc=no
16104fi
ac1cb8d3 16105rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16106
16107if test $ac_cv_header_stdc = yes; then
16108 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
16109 cat >conftest.$ac_ext <<_ACEOF
16110/* confdefs.h. */
16111_ACEOF
16112cat confdefs.h >>conftest.$ac_ext
16113cat >>conftest.$ac_ext <<_ACEOF
16114/* end confdefs.h. */
16115#include <string.h>
16116
16117_ACEOF
16118if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16119 $EGREP "memchr" >/dev/null 2>&1; then
16120 :
16121else
16122 ac_cv_header_stdc=no
16123fi
16124rm -f conftest*
16125
16126fi
16127
16128if test $ac_cv_header_stdc = yes; then
16129 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
16130 cat >conftest.$ac_ext <<_ACEOF
16131/* confdefs.h. */
16132_ACEOF
16133cat confdefs.h >>conftest.$ac_ext
16134cat >>conftest.$ac_ext <<_ACEOF
16135/* end confdefs.h. */
16136#include <stdlib.h>
16137
16138_ACEOF
16139if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16140 $EGREP "free" >/dev/null 2>&1; then
16141 :
16142else
16143 ac_cv_header_stdc=no
16144fi
16145rm -f conftest*
16146
16147fi
16148
16149if test $ac_cv_header_stdc = yes; then
16150 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
16151 if test "$cross_compiling" = yes; then
16152 :
16153else
16154 cat >conftest.$ac_ext <<_ACEOF
16155/* confdefs.h. */
16156_ACEOF
16157cat confdefs.h >>conftest.$ac_ext
16158cat >>conftest.$ac_ext <<_ACEOF
16159/* end confdefs.h. */
16160#include <ctype.h>
16161#if ((' ' & 0x0FF) == 0x020)
16162# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
16163# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
16164#else
16165# define ISLOWER(c) \
ac1cb8d3
VS
16166 (('a' <= (c) && (c) <= 'i') \
16167 || ('j' <= (c) && (c) <= 'r') \
16168 || ('s' <= (c) && (c) <= 'z'))
a848cd7e
SC
16169# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
16170#endif
16171
16172#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
16173int
16174main ()
16175{
16176 int i;
16177 for (i = 0; i < 256; i++)
16178 if (XOR (islower (i), ISLOWER (i))
ac1cb8d3 16179 || toupper (i) != TOUPPER (i))
a848cd7e
SC
16180 exit(2);
16181 exit (0);
16182}
16183_ACEOF
16184rm -f conftest$ac_exeext
16185if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16186 (eval $ac_link) 2>&5
16187 ac_status=$?
16188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16189 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16190 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16191 (eval $ac_try) 2>&5
16192 ac_status=$?
16193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16194 (exit $ac_status); }; }; then
16195 :
16196else
16197 echo "$as_me: program exited with status $ac_status" >&5
16198echo "$as_me: failed program was:" >&5
16199sed 's/^/| /' conftest.$ac_ext >&5
16200
16201( exit $ac_status )
16202ac_cv_header_stdc=no
16203fi
ac1cb8d3 16204rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16205fi
16206fi
16207fi
16208echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
16209echo "${ECHO_T}$ac_cv_header_stdc" >&6
16210if test $ac_cv_header_stdc = yes; then
16211
16212cat >>confdefs.h <<\_ACEOF
16213#define STDC_HEADERS 1
16214_ACEOF
16215
16216fi
16217
16218# On IRIX 5.3, sys/types and inttypes.h are conflicting.
16219
16220
16221
16222
16223
16224
16225
16226
16227
16228for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
ac1cb8d3 16229 inttypes.h stdint.h unistd.h
a848cd7e
SC
16230do
16231as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16232echo "$as_me:$LINENO: checking for $ac_header" >&5
16233echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16234if eval "test \"\${$as_ac_Header+set}\" = set"; then
16235 echo $ECHO_N "(cached) $ECHO_C" >&6
16236else
16237 cat >conftest.$ac_ext <<_ACEOF
16238/* confdefs.h. */
16239_ACEOF
16240cat confdefs.h >>conftest.$ac_ext
16241cat >>conftest.$ac_ext <<_ACEOF
16242/* end confdefs.h. */
16243$ac_includes_default
16244
16245#include <$ac_header>
16246_ACEOF
16247rm -f conftest.$ac_objext
16248if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16249 (eval $ac_compile) 2>conftest.er1
a848cd7e 16250 ac_status=$?
ac1cb8d3
VS
16251 grep -v '^ *+' conftest.er1 >conftest.err
16252 rm -f conftest.er1
16253 cat conftest.err >&5
a848cd7e
SC
16254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16255 (exit $ac_status); } &&
c9a66001 16256 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16257 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16258 (eval $ac_try) 2>&5
16259 ac_status=$?
16260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16261 (exit $ac_status); }; } &&
16262 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16263 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16264 (eval $ac_try) 2>&5
16265 ac_status=$?
16266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16267 (exit $ac_status); }; }; then
16268 eval "$as_ac_Header=yes"
16269else
16270 echo "$as_me: failed program was:" >&5
16271sed 's/^/| /' conftest.$ac_ext >&5
16272
16273eval "$as_ac_Header=no"
16274fi
ac1cb8d3 16275rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16276fi
16277echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16278echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16279if test `eval echo '${'$as_ac_Header'}'` = yes; then
16280 cat >>confdefs.h <<_ACEOF
16281#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16282_ACEOF
16283
16284fi
16285
16286done
16287
16288
16289
16290for ac_header in stdlib.h
16291do
16292as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16293if eval "test \"\${$as_ac_Header+set}\" = set"; then
16294 echo "$as_me:$LINENO: checking for $ac_header" >&5
16295echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16296if eval "test \"\${$as_ac_Header+set}\" = set"; then
16297 echo $ECHO_N "(cached) $ECHO_C" >&6
16298fi
16299echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16300echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16301else
16302 # Is the header compilable?
16303echo "$as_me:$LINENO: checking $ac_header usability" >&5
16304echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16305cat >conftest.$ac_ext <<_ACEOF
16306/* confdefs.h. */
16307_ACEOF
16308cat confdefs.h >>conftest.$ac_ext
16309cat >>conftest.$ac_ext <<_ACEOF
16310/* end confdefs.h. */
16311$ac_includes_default
16312#include <$ac_header>
16313_ACEOF
16314rm -f conftest.$ac_objext
16315if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16316 (eval $ac_compile) 2>conftest.er1
a848cd7e 16317 ac_status=$?
ac1cb8d3
VS
16318 grep -v '^ *+' conftest.er1 >conftest.err
16319 rm -f conftest.er1
16320 cat conftest.err >&5
a848cd7e
SC
16321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16322 (exit $ac_status); } &&
c9a66001 16323 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16324 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16325 (eval $ac_try) 2>&5
16326 ac_status=$?
16327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16328 (exit $ac_status); }; } &&
16329 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16330 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16331 (eval $ac_try) 2>&5
16332 ac_status=$?
16333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16334 (exit $ac_status); }; }; then
16335 ac_header_compiler=yes
16336else
16337 echo "$as_me: failed program was:" >&5
16338sed 's/^/| /' conftest.$ac_ext >&5
16339
16340ac_header_compiler=no
16341fi
ac1cb8d3 16342rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16343echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16344echo "${ECHO_T}$ac_header_compiler" >&6
16345
16346# Is the header present?
16347echo "$as_me:$LINENO: checking $ac_header presence" >&5
16348echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16349cat >conftest.$ac_ext <<_ACEOF
16350/* confdefs.h. */
16351_ACEOF
16352cat confdefs.h >>conftest.$ac_ext
16353cat >>conftest.$ac_ext <<_ACEOF
16354/* end confdefs.h. */
16355#include <$ac_header>
16356_ACEOF
16357if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16358 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16359 ac_status=$?
16360 grep -v '^ *+' conftest.er1 >conftest.err
16361 rm -f conftest.er1
16362 cat conftest.err >&5
16363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16364 (exit $ac_status); } >/dev/null; then
16365 if test -s conftest.err; then
5d7b7554
VZ
16366 ac_cpp_err=$ac_cxx_preproc_warn_flag
16367 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
16368 else
16369 ac_cpp_err=
16370 fi
16371else
16372 ac_cpp_err=yes
16373fi
16374if test -z "$ac_cpp_err"; then
16375 ac_header_preproc=yes
16376else
16377 echo "$as_me: failed program was:" >&5
16378sed 's/^/| /' conftest.$ac_ext >&5
16379
16380 ac_header_preproc=no
16381fi
16382rm -f conftest.err conftest.$ac_ext
16383echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16384echo "${ECHO_T}$ac_header_preproc" >&6
16385
16386# So? What about this header?
5d7b7554 16387case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
ac1cb8d3 16388 yes:no: )
a848cd7e
SC
16389 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16390echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
16391 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16392echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16393 ac_header_preproc=yes
a848cd7e 16394 ;;
ac1cb8d3 16395 no:yes:* )
a848cd7e
SC
16396 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16397echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
16398 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16399echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16400 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16401echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16402 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16403echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
16404 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16405echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
16406 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16407echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
16408 (
16409 cat <<\_ASBOX
ac1cb8d3
VS
16410## ----------------------------------------- ##
16411## Report this to wx-dev@lists.wxwidgets.org ##
16412## ----------------------------------------- ##
a848cd7e
SC
16413_ASBOX
16414 ) |
16415 sed "s/^/$as_me: WARNING: /" >&2
16416 ;;
16417esac
16418echo "$as_me:$LINENO: checking for $ac_header" >&5
16419echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16420if eval "test \"\${$as_ac_Header+set}\" = set"; then
16421 echo $ECHO_N "(cached) $ECHO_C" >&6
16422else
ac1cb8d3 16423 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
16424fi
16425echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16426echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16427
16428fi
16429if test `eval echo '${'$as_ac_Header'}'` = yes; then
16430 cat >>confdefs.h <<_ACEOF
16431#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16432_ACEOF
16433
16434fi
16435
16436done
16437
16438
16439for ac_header in malloc.h
16440do
16441as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16442if eval "test \"\${$as_ac_Header+set}\" = set"; then
16443 echo "$as_me:$LINENO: checking for $ac_header" >&5
16444echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16445if eval "test \"\${$as_ac_Header+set}\" = set"; then
16446 echo $ECHO_N "(cached) $ECHO_C" >&6
16447fi
16448echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16449echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16450else
16451 # Is the header compilable?
16452echo "$as_me:$LINENO: checking $ac_header usability" >&5
16453echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16454cat >conftest.$ac_ext <<_ACEOF
16455/* confdefs.h. */
16456_ACEOF
16457cat confdefs.h >>conftest.$ac_ext
16458cat >>conftest.$ac_ext <<_ACEOF
16459/* end confdefs.h. */
16460$ac_includes_default
16461#include <$ac_header>
16462_ACEOF
16463rm -f conftest.$ac_objext
16464if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16465 (eval $ac_compile) 2>conftest.er1
a848cd7e 16466 ac_status=$?
ac1cb8d3
VS
16467 grep -v '^ *+' conftest.er1 >conftest.err
16468 rm -f conftest.er1
16469 cat conftest.err >&5
a848cd7e
SC
16470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16471 (exit $ac_status); } &&
c9a66001 16472 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16473 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16474 (eval $ac_try) 2>&5
16475 ac_status=$?
16476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16477 (exit $ac_status); }; } &&
16478 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16479 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16480 (eval $ac_try) 2>&5
16481 ac_status=$?
16482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16483 (exit $ac_status); }; }; then
16484 ac_header_compiler=yes
16485else
16486 echo "$as_me: failed program was:" >&5
16487sed 's/^/| /' conftest.$ac_ext >&5
16488
16489ac_header_compiler=no
16490fi
ac1cb8d3 16491rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16492echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16493echo "${ECHO_T}$ac_header_compiler" >&6
16494
16495# Is the header present?
16496echo "$as_me:$LINENO: checking $ac_header presence" >&5
16497echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16498cat >conftest.$ac_ext <<_ACEOF
16499/* confdefs.h. */
16500_ACEOF
16501cat confdefs.h >>conftest.$ac_ext
16502cat >>conftest.$ac_ext <<_ACEOF
16503/* end confdefs.h. */
16504#include <$ac_header>
16505_ACEOF
16506if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16507 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16508 ac_status=$?
16509 grep -v '^ *+' conftest.er1 >conftest.err
16510 rm -f conftest.er1
16511 cat conftest.err >&5
16512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16513 (exit $ac_status); } >/dev/null; then
16514 if test -s conftest.err; then
5d7b7554
VZ
16515 ac_cpp_err=$ac_cxx_preproc_warn_flag
16516 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
16517 else
16518 ac_cpp_err=
16519 fi
16520else
16521 ac_cpp_err=yes
16522fi
16523if test -z "$ac_cpp_err"; then
16524 ac_header_preproc=yes
16525else
16526 echo "$as_me: failed program was:" >&5
16527sed 's/^/| /' conftest.$ac_ext >&5
16528
16529 ac_header_preproc=no
16530fi
16531rm -f conftest.err conftest.$ac_ext
16532echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16533echo "${ECHO_T}$ac_header_preproc" >&6
16534
16535# So? What about this header?
5d7b7554 16536case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
ac1cb8d3 16537 yes:no: )
a848cd7e
SC
16538 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16539echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
16540 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16541echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16542 ac_header_preproc=yes
a848cd7e 16543 ;;
ac1cb8d3 16544 no:yes:* )
a848cd7e
SC
16545 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16546echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
16547 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16548echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16549 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16550echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16551 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16552echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
16553 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16554echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
16555 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16556echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
16557 (
16558 cat <<\_ASBOX
ac1cb8d3
VS
16559## ----------------------------------------- ##
16560## Report this to wx-dev@lists.wxwidgets.org ##
16561## ----------------------------------------- ##
a848cd7e
SC
16562_ASBOX
16563 ) |
16564 sed "s/^/$as_me: WARNING: /" >&2
16565 ;;
16566esac
16567echo "$as_me:$LINENO: checking for $ac_header" >&5
16568echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16569if eval "test \"\${$as_ac_Header+set}\" = set"; then
16570 echo $ECHO_N "(cached) $ECHO_C" >&6
16571else
ac1cb8d3 16572 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
16573fi
16574echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16575echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16576
16577fi
16578if test `eval echo '${'$as_ac_Header'}'` = yes; then
16579 cat >>confdefs.h <<_ACEOF
16580#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16581_ACEOF
16582
16583fi
16584
16585done
16586
16587
16588for ac_header in unistd.h
16589do
16590as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16591if eval "test \"\${$as_ac_Header+set}\" = set"; then
16592 echo "$as_me:$LINENO: checking for $ac_header" >&5
16593echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16594if eval "test \"\${$as_ac_Header+set}\" = set"; then
16595 echo $ECHO_N "(cached) $ECHO_C" >&6
16596fi
16597echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16598echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16599else
16600 # Is the header compilable?
16601echo "$as_me:$LINENO: checking $ac_header usability" >&5
16602echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16603cat >conftest.$ac_ext <<_ACEOF
16604/* confdefs.h. */
16605_ACEOF
16606cat confdefs.h >>conftest.$ac_ext
16607cat >>conftest.$ac_ext <<_ACEOF
16608/* end confdefs.h. */
16609$ac_includes_default
16610#include <$ac_header>
16611_ACEOF
16612rm -f conftest.$ac_objext
16613if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16614 (eval $ac_compile) 2>conftest.er1
a848cd7e 16615 ac_status=$?
ac1cb8d3
VS
16616 grep -v '^ *+' conftest.er1 >conftest.err
16617 rm -f conftest.er1
16618 cat conftest.err >&5
a848cd7e
SC
16619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16620 (exit $ac_status); } &&
c9a66001 16621 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16622 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16623 (eval $ac_try) 2>&5
16624 ac_status=$?
16625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16626 (exit $ac_status); }; } &&
16627 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16628 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16629 (eval $ac_try) 2>&5
16630 ac_status=$?
16631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16632 (exit $ac_status); }; }; then
16633 ac_header_compiler=yes
16634else
16635 echo "$as_me: failed program was:" >&5
16636sed 's/^/| /' conftest.$ac_ext >&5
16637
16638ac_header_compiler=no
16639fi
ac1cb8d3 16640rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16641echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16642echo "${ECHO_T}$ac_header_compiler" >&6
16643
16644# Is the header present?
16645echo "$as_me:$LINENO: checking $ac_header presence" >&5
16646echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16647cat >conftest.$ac_ext <<_ACEOF
16648/* confdefs.h. */
16649_ACEOF
16650cat confdefs.h >>conftest.$ac_ext
16651cat >>conftest.$ac_ext <<_ACEOF
16652/* end confdefs.h. */
16653#include <$ac_header>
16654_ACEOF
16655if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16656 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16657 ac_status=$?
16658 grep -v '^ *+' conftest.er1 >conftest.err
16659 rm -f conftest.er1
16660 cat conftest.err >&5
16661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16662 (exit $ac_status); } >/dev/null; then
16663 if test -s conftest.err; then
5d7b7554
VZ
16664 ac_cpp_err=$ac_cxx_preproc_warn_flag
16665 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
16666 else
16667 ac_cpp_err=
16668 fi
16669else
16670 ac_cpp_err=yes
16671fi
16672if test -z "$ac_cpp_err"; then
16673 ac_header_preproc=yes
16674else
16675 echo "$as_me: failed program was:" >&5
16676sed 's/^/| /' conftest.$ac_ext >&5
16677
16678 ac_header_preproc=no
16679fi
16680rm -f conftest.err conftest.$ac_ext
16681echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16682echo "${ECHO_T}$ac_header_preproc" >&6
16683
16684# So? What about this header?
5d7b7554 16685case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
ac1cb8d3 16686 yes:no: )
a848cd7e
SC
16687 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16688echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
16689 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16690echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16691 ac_header_preproc=yes
a848cd7e 16692 ;;
ac1cb8d3 16693 no:yes:* )
a848cd7e
SC
16694 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16695echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
16696 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16697echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16698 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16699echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16700 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16701echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
16702 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16703echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
16704 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16705echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
16706 (
16707 cat <<\_ASBOX
ac1cb8d3
VS
16708## ----------------------------------------- ##
16709## Report this to wx-dev@lists.wxwidgets.org ##
16710## ----------------------------------------- ##
a848cd7e
SC
16711_ASBOX
16712 ) |
16713 sed "s/^/$as_me: WARNING: /" >&2
16714 ;;
16715esac
16716echo "$as_me:$LINENO: checking for $ac_header" >&5
16717echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16718if eval "test \"\${$as_ac_Header+set}\" = set"; then
16719 echo $ECHO_N "(cached) $ECHO_C" >&6
16720else
ac1cb8d3 16721 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
16722fi
16723echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16724echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16725
16726fi
16727if test `eval echo '${'$as_ac_Header'}'` = yes; then
16728 cat >>confdefs.h <<_ACEOF
16729#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16730_ACEOF
16731
16732fi
16733
16734done
16735
16736
16737for ac_header in wchar.h
16738do
16739as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16740if eval "test \"\${$as_ac_Header+set}\" = set"; then
16741 echo "$as_me:$LINENO: checking for $ac_header" >&5
16742echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16743if eval "test \"\${$as_ac_Header+set}\" = set"; then
16744 echo $ECHO_N "(cached) $ECHO_C" >&6
16745fi
16746echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16747echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16748else
16749 # Is the header compilable?
16750echo "$as_me:$LINENO: checking $ac_header usability" >&5
16751echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16752cat >conftest.$ac_ext <<_ACEOF
16753/* confdefs.h. */
16754_ACEOF
16755cat confdefs.h >>conftest.$ac_ext
16756cat >>conftest.$ac_ext <<_ACEOF
16757/* end confdefs.h. */
16758$ac_includes_default
16759#include <$ac_header>
16760_ACEOF
16761rm -f conftest.$ac_objext
16762if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16763 (eval $ac_compile) 2>conftest.er1
a848cd7e 16764 ac_status=$?
ac1cb8d3
VS
16765 grep -v '^ *+' conftest.er1 >conftest.err
16766 rm -f conftest.er1
16767 cat conftest.err >&5
a848cd7e
SC
16768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16769 (exit $ac_status); } &&
c9a66001 16770 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16771 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16772 (eval $ac_try) 2>&5
16773 ac_status=$?
16774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16775 (exit $ac_status); }; } &&
16776 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16777 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16778 (eval $ac_try) 2>&5
16779 ac_status=$?
16780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16781 (exit $ac_status); }; }; then
16782 ac_header_compiler=yes
16783else
16784 echo "$as_me: failed program was:" >&5
16785sed 's/^/| /' conftest.$ac_ext >&5
16786
16787ac_header_compiler=no
16788fi
ac1cb8d3 16789rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16790echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16791echo "${ECHO_T}$ac_header_compiler" >&6
16792
16793# Is the header present?
16794echo "$as_me:$LINENO: checking $ac_header presence" >&5
16795echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16796cat >conftest.$ac_ext <<_ACEOF
16797/* confdefs.h. */
16798_ACEOF
16799cat confdefs.h >>conftest.$ac_ext
16800cat >>conftest.$ac_ext <<_ACEOF
16801/* end confdefs.h. */
16802#include <$ac_header>
16803_ACEOF
16804if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16805 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16806 ac_status=$?
16807 grep -v '^ *+' conftest.er1 >conftest.err
16808 rm -f conftest.er1
16809 cat conftest.err >&5
16810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16811 (exit $ac_status); } >/dev/null; then
16812 if test -s conftest.err; then
5d7b7554
VZ
16813 ac_cpp_err=$ac_cxx_preproc_warn_flag
16814 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
16815 else
16816 ac_cpp_err=
16817 fi
16818else
16819 ac_cpp_err=yes
16820fi
16821if test -z "$ac_cpp_err"; then
16822 ac_header_preproc=yes
16823else
16824 echo "$as_me: failed program was:" >&5
16825sed 's/^/| /' conftest.$ac_ext >&5
16826
16827 ac_header_preproc=no
16828fi
16829rm -f conftest.err conftest.$ac_ext
16830echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16831echo "${ECHO_T}$ac_header_preproc" >&6
16832
16833# So? What about this header?
5d7b7554 16834case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
ac1cb8d3 16835 yes:no: )
a848cd7e
SC
16836 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16837echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
16838 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16839echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16840 ac_header_preproc=yes
a848cd7e 16841 ;;
ac1cb8d3 16842 no:yes:* )
a848cd7e
SC
16843 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16844echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
16845 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16846echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16847 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16848echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16849 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16850echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
16851 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16852echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
16853 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16854echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
16855 (
16856 cat <<\_ASBOX
ac1cb8d3
VS
16857## ----------------------------------------- ##
16858## Report this to wx-dev@lists.wxwidgets.org ##
16859## ----------------------------------------- ##
a848cd7e
SC
16860_ASBOX
16861 ) |
16862 sed "s/^/$as_me: WARNING: /" >&2
16863 ;;
16864esac
16865echo "$as_me:$LINENO: checking for $ac_header" >&5
16866echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16867if eval "test \"\${$as_ac_Header+set}\" = set"; then
16868 echo $ECHO_N "(cached) $ECHO_C" >&6
16869else
ac1cb8d3 16870 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
16871fi
16872echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16873echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16874
16875fi
16876if test `eval echo '${'$as_ac_Header'}'` = yes; then
16877 cat >>confdefs.h <<_ACEOF
16878#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16879_ACEOF
16880
16881fi
16882
16883done
16884
16885
16886if test "$ac_cv_header_wchar_h" != "yes"; then
16887
16888for ac_header in wcstr.h
16889do
16890as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16891if eval "test \"\${$as_ac_Header+set}\" = set"; then
16892 echo "$as_me:$LINENO: checking for $ac_header" >&5
16893echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16894if eval "test \"\${$as_ac_Header+set}\" = set"; then
16895 echo $ECHO_N "(cached) $ECHO_C" >&6
16896fi
16897echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16898echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16899else
16900 # Is the header compilable?
16901echo "$as_me:$LINENO: checking $ac_header usability" >&5
16902echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16903cat >conftest.$ac_ext <<_ACEOF
16904/* confdefs.h. */
16905_ACEOF
16906cat confdefs.h >>conftest.$ac_ext
16907cat >>conftest.$ac_ext <<_ACEOF
16908/* end confdefs.h. */
16909$ac_includes_default
16910#include <$ac_header>
16911_ACEOF
16912rm -f conftest.$ac_objext
16913if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16914 (eval $ac_compile) 2>conftest.er1
a848cd7e 16915 ac_status=$?
ac1cb8d3
VS
16916 grep -v '^ *+' conftest.er1 >conftest.err
16917 rm -f conftest.er1
16918 cat conftest.err >&5
a848cd7e
SC
16919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16920 (exit $ac_status); } &&
c9a66001 16921 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16922 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16923 (eval $ac_try) 2>&5
16924 ac_status=$?
16925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16926 (exit $ac_status); }; } &&
16927 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16928 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16929 (eval $ac_try) 2>&5
16930 ac_status=$?
16931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16932 (exit $ac_status); }; }; then
16933 ac_header_compiler=yes
16934else
16935 echo "$as_me: failed program was:" >&5
16936sed 's/^/| /' conftest.$ac_ext >&5
16937
16938ac_header_compiler=no
16939fi
ac1cb8d3 16940rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16941echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16942echo "${ECHO_T}$ac_header_compiler" >&6
16943
16944# Is the header present?
16945echo "$as_me:$LINENO: checking $ac_header presence" >&5
16946echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16947cat >conftest.$ac_ext <<_ACEOF
16948/* confdefs.h. */
16949_ACEOF
16950cat confdefs.h >>conftest.$ac_ext
16951cat >>conftest.$ac_ext <<_ACEOF
16952/* end confdefs.h. */
16953#include <$ac_header>
16954_ACEOF
16955if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16956 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16957 ac_status=$?
16958 grep -v '^ *+' conftest.er1 >conftest.err
16959 rm -f conftest.er1
16960 cat conftest.err >&5
16961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16962 (exit $ac_status); } >/dev/null; then
16963 if test -s conftest.err; then
5d7b7554
VZ
16964 ac_cpp_err=$ac_cxx_preproc_warn_flag
16965 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
16966 else
16967 ac_cpp_err=
16968 fi
16969else
16970 ac_cpp_err=yes
16971fi
16972if test -z "$ac_cpp_err"; then
16973 ac_header_preproc=yes
16974else
16975 echo "$as_me: failed program was:" >&5
16976sed 's/^/| /' conftest.$ac_ext >&5
16977
16978 ac_header_preproc=no
16979fi
16980rm -f conftest.err conftest.$ac_ext
16981echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16982echo "${ECHO_T}$ac_header_preproc" >&6
16983
16984# So? What about this header?
5d7b7554 16985case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
ac1cb8d3 16986 yes:no: )
a848cd7e
SC
16987 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16988echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
16989 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16990echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16991 ac_header_preproc=yes
a848cd7e 16992 ;;
ac1cb8d3 16993 no:yes:* )
a848cd7e
SC
16994 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16995echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
16996 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16997echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16998 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16999echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17000 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17001echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
17002 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17003echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
17004 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17005echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
17006 (
17007 cat <<\_ASBOX
ac1cb8d3
VS
17008## ----------------------------------------- ##
17009## Report this to wx-dev@lists.wxwidgets.org ##
17010## ----------------------------------------- ##
a848cd7e
SC
17011_ASBOX
17012 ) |
17013 sed "s/^/$as_me: WARNING: /" >&2
17014 ;;
17015esac
17016echo "$as_me:$LINENO: checking for $ac_header" >&5
17017echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17018if eval "test \"\${$as_ac_Header+set}\" = set"; then
17019 echo $ECHO_N "(cached) $ECHO_C" >&6
17020else
ac1cb8d3 17021 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
17022fi
17023echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17024echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17025
17026fi
17027if test `eval echo '${'$as_ac_Header'}'` = yes; then
17028 cat >>confdefs.h <<_ACEOF
17029#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17030_ACEOF
17031
17032fi
17033
17034done
17035
17036fi
17037
17038
17039for ac_header in fnmatch.h
17040do
17041as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17042if eval "test \"\${$as_ac_Header+set}\" = set"; then
17043 echo "$as_me:$LINENO: checking for $ac_header" >&5
17044echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17045if eval "test \"\${$as_ac_Header+set}\" = set"; then
17046 echo $ECHO_N "(cached) $ECHO_C" >&6
17047fi
17048echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17049echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17050else
17051 # Is the header compilable?
17052echo "$as_me:$LINENO: checking $ac_header usability" >&5
17053echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
17054cat >conftest.$ac_ext <<_ACEOF
17055/* confdefs.h. */
17056_ACEOF
17057cat confdefs.h >>conftest.$ac_ext
17058cat >>conftest.$ac_ext <<_ACEOF
17059/* end confdefs.h. */
17060$ac_includes_default
17061#include <$ac_header>
17062_ACEOF
17063rm -f conftest.$ac_objext
17064if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17065 (eval $ac_compile) 2>conftest.er1
a848cd7e 17066 ac_status=$?
ac1cb8d3
VS
17067 grep -v '^ *+' conftest.er1 >conftest.err
17068 rm -f conftest.er1
17069 cat conftest.err >&5
a848cd7e
SC
17070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17071 (exit $ac_status); } &&
c9a66001 17072 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17073 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17074 (eval $ac_try) 2>&5
17075 ac_status=$?
17076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17077 (exit $ac_status); }; } &&
17078 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17079 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17080 (eval $ac_try) 2>&5
17081 ac_status=$?
17082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17083 (exit $ac_status); }; }; then
17084 ac_header_compiler=yes
17085else
17086 echo "$as_me: failed program was:" >&5
17087sed 's/^/| /' conftest.$ac_ext >&5
17088
17089ac_header_compiler=no
17090fi
ac1cb8d3 17091rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17092echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17093echo "${ECHO_T}$ac_header_compiler" >&6
17094
17095# Is the header present?
17096echo "$as_me:$LINENO: checking $ac_header presence" >&5
17097echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
17098cat >conftest.$ac_ext <<_ACEOF
17099/* confdefs.h. */
17100_ACEOF
17101cat confdefs.h >>conftest.$ac_ext
17102cat >>conftest.$ac_ext <<_ACEOF
17103/* end confdefs.h. */
17104#include <$ac_header>
17105_ACEOF
17106if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17107 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17108 ac_status=$?
17109 grep -v '^ *+' conftest.er1 >conftest.err
17110 rm -f conftest.er1
17111 cat conftest.err >&5
17112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17113 (exit $ac_status); } >/dev/null; then
17114 if test -s conftest.err; then
5d7b7554
VZ
17115 ac_cpp_err=$ac_cxx_preproc_warn_flag
17116 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
17117 else
17118 ac_cpp_err=
17119 fi
17120else
17121 ac_cpp_err=yes
17122fi
17123if test -z "$ac_cpp_err"; then
17124 ac_header_preproc=yes
17125else
17126 echo "$as_me: failed program was:" >&5
17127sed 's/^/| /' conftest.$ac_ext >&5
17128
17129 ac_header_preproc=no
17130fi
17131rm -f conftest.err conftest.$ac_ext
17132echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17133echo "${ECHO_T}$ac_header_preproc" >&6
17134
17135# So? What about this header?
5d7b7554 17136case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
ac1cb8d3 17137 yes:no: )
a848cd7e
SC
17138 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17139echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
17140 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17141echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17142 ac_header_preproc=yes
a848cd7e 17143 ;;
ac1cb8d3 17144 no:yes:* )
a848cd7e
SC
17145 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17146echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
17147 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17148echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17149 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17150echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17151 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17152echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
17153 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17154echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
17155 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17156echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
17157 (
17158 cat <<\_ASBOX
ac1cb8d3
VS
17159## ----------------------------------------- ##
17160## Report this to wx-dev@lists.wxwidgets.org ##
17161## ----------------------------------------- ##
a848cd7e
SC
17162_ASBOX
17163 ) |
17164 sed "s/^/$as_me: WARNING: /" >&2
17165 ;;
17166esac
17167echo "$as_me:$LINENO: checking for $ac_header" >&5
17168echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17169if eval "test \"\${$as_ac_Header+set}\" = set"; then
17170 echo $ECHO_N "(cached) $ECHO_C" >&6
17171else
ac1cb8d3 17172 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
17173fi
17174echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17175echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17176
17177fi
17178if test `eval echo '${'$as_ac_Header'}'` = yes; then
17179 cat >>confdefs.h <<_ACEOF
17180#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17181_ACEOF
17182
17183fi
17184
17185done
17186
17187
a848cd7e
SC
17188
17189for ac_header in langinfo.h
17190do
17191as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17192if eval "test \"\${$as_ac_Header+set}\" = set"; then
17193 echo "$as_me:$LINENO: checking for $ac_header" >&5
17194echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17195if eval "test \"\${$as_ac_Header+set}\" = set"; then
17196 echo $ECHO_N "(cached) $ECHO_C" >&6
17197fi
17198echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17199echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17200else
17201 # Is the header compilable?
17202echo "$as_me:$LINENO: checking $ac_header usability" >&5
17203echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
17204cat >conftest.$ac_ext <<_ACEOF
17205/* confdefs.h. */
17206_ACEOF
17207cat confdefs.h >>conftest.$ac_ext
17208cat >>conftest.$ac_ext <<_ACEOF
17209/* end confdefs.h. */
17210$ac_includes_default
17211#include <$ac_header>
17212_ACEOF
17213rm -f conftest.$ac_objext
17214if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17215 (eval $ac_compile) 2>conftest.er1
a848cd7e 17216 ac_status=$?
ac1cb8d3
VS
17217 grep -v '^ *+' conftest.er1 >conftest.err
17218 rm -f conftest.er1
17219 cat conftest.err >&5
a848cd7e
SC
17220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17221 (exit $ac_status); } &&
c9a66001 17222 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17223 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17224 (eval $ac_try) 2>&5
17225 ac_status=$?
17226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17227 (exit $ac_status); }; } &&
17228 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17229 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17230 (eval $ac_try) 2>&5
17231 ac_status=$?
17232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17233 (exit $ac_status); }; }; then
17234 ac_header_compiler=yes
17235else
17236 echo "$as_me: failed program was:" >&5
17237sed 's/^/| /' conftest.$ac_ext >&5
17238
17239ac_header_compiler=no
17240fi
ac1cb8d3 17241rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17242echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17243echo "${ECHO_T}$ac_header_compiler" >&6
17244
17245# Is the header present?
17246echo "$as_me:$LINENO: checking $ac_header presence" >&5
17247echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
17248cat >conftest.$ac_ext <<_ACEOF
17249/* confdefs.h. */
17250_ACEOF
17251cat confdefs.h >>conftest.$ac_ext
17252cat >>conftest.$ac_ext <<_ACEOF
17253/* end confdefs.h. */
17254#include <$ac_header>
17255_ACEOF
17256if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17257 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17258 ac_status=$?
17259 grep -v '^ *+' conftest.er1 >conftest.err
17260 rm -f conftest.er1
17261 cat conftest.err >&5
17262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17263 (exit $ac_status); } >/dev/null; then
17264 if test -s conftest.err; then
5d7b7554
VZ
17265 ac_cpp_err=$ac_cxx_preproc_warn_flag
17266 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
17267 else
17268 ac_cpp_err=
17269 fi
17270else
17271 ac_cpp_err=yes
17272fi
17273if test -z "$ac_cpp_err"; then
17274 ac_header_preproc=yes
17275else
17276 echo "$as_me: failed program was:" >&5
17277sed 's/^/| /' conftest.$ac_ext >&5
17278
17279 ac_header_preproc=no
17280fi
17281rm -f conftest.err conftest.$ac_ext
17282echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17283echo "${ECHO_T}$ac_header_preproc" >&6
17284
17285# So? What about this header?
5d7b7554 17286case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
ac1cb8d3 17287 yes:no: )
a848cd7e
SC
17288 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17289echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
17290 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17291echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17292 ac_header_preproc=yes
a848cd7e 17293 ;;
ac1cb8d3 17294 no:yes:* )
a848cd7e
SC
17295 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17296echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
17297 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17298echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17299 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17300echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17301 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17302echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
17303 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17304echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
17305 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17306echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
17307 (
17308 cat <<\_ASBOX
ac1cb8d3
VS
17309## ----------------------------------------- ##
17310## Report this to wx-dev@lists.wxwidgets.org ##
17311## ----------------------------------------- ##
a848cd7e
SC
17312_ASBOX
17313 ) |
17314 sed "s/^/$as_me: WARNING: /" >&2
17315 ;;
17316esac
17317echo "$as_me:$LINENO: checking for $ac_header" >&5
17318echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17319if eval "test \"\${$as_ac_Header+set}\" = set"; then
17320 echo $ECHO_N "(cached) $ECHO_C" >&6
17321else
ac1cb8d3 17322 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
17323fi
17324echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17325echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17326
17327fi
17328if test `eval echo '${'$as_ac_Header'}'` = yes; then
17329 cat >>confdefs.h <<_ACEOF
17330#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17331_ACEOF
17332
17333fi
17334
17335done
17336
17337
17338case "${host}" in
17339 *-pc-os2_emx | *-pc-os2-emx )
391a765e
VS
17340 if test $ac_cv_header_langinfo_h = "yes" \
17341 -a \( "$wx_cv_gccversion" = "EMX2" \
17342 -o "$wx_cv_gccversion" = "EMX3" \
17343 -o "$wx_cv_gccversion" = "Innotek5" \); then
a848cd7e
SC
17344 LIBS="$LIBS -lintl"
17345 fi
17346 ;;
17347esac
17348
a848cd7e
SC
17349
17350echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
17351echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
17352if test "${ac_cv_c_const+set}" = set; then
17353 echo $ECHO_N "(cached) $ECHO_C" >&6
17354else
17355 cat >conftest.$ac_ext <<_ACEOF
17356/* confdefs.h. */
17357_ACEOF
17358cat confdefs.h >>conftest.$ac_ext
17359cat >>conftest.$ac_ext <<_ACEOF
17360/* end confdefs.h. */
17361
17362int
17363main ()
17364{
17365/* FIXME: Include the comments suggested by Paul. */
17366#ifndef __cplusplus
17367 /* Ultrix mips cc rejects this. */
17368 typedef int charset[2];
17369 const charset x;
17370 /* SunOS 4.1.1 cc rejects this. */
17371 char const *const *ccp;
17372 char **p;
17373 /* NEC SVR4.0.2 mips cc rejects this. */
17374 struct point {int x, y;};
17375 static struct point const zero = {0,0};
17376 /* AIX XL C 1.02.0.0 rejects this.
17377 It does not let you subtract one const X* pointer from another in
17378 an arm of an if-expression whose if-part is not a constant
17379 expression */
17380 const char *g = "string";
17381 ccp = &g + (g ? g-g : 0);
17382 /* HPUX 7.0 cc rejects these. */
17383 ++ccp;
17384 p = (char**) ccp;
17385 ccp = (char const *const *) p;
17386 { /* SCO 3.2v4 cc rejects this. */
17387 char *t;
17388 char const *s = 0 ? (char *) 0 : (char const *) 0;
17389
17390 *t++ = 0;
17391 }
17392 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
17393 int x[] = {25, 17};
17394 const int *foo = &x[0];
17395 ++foo;
17396 }
17397 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
17398 typedef const int *iptr;
17399 iptr p = 0;
17400 ++p;
17401 }
17402 { /* AIX XL C 1.02.0.0 rejects this saying
17403 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
17404 struct s { int j; const int *ap[3]; };
17405 struct s *b; b->j = 5;
17406 }
17407 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
17408 const int foo = 10;
17409 }
17410#endif
17411
17412 ;
17413 return 0;
17414}
17415_ACEOF
17416rm -f conftest.$ac_objext
17417if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17418 (eval $ac_compile) 2>conftest.er1
a848cd7e 17419 ac_status=$?
ac1cb8d3
VS
17420 grep -v '^ *+' conftest.er1 >conftest.err
17421 rm -f conftest.er1
17422 cat conftest.err >&5
a848cd7e
SC
17423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17424 (exit $ac_status); } &&
c9a66001 17425 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17426 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17427 (eval $ac_try) 2>&5
17428 ac_status=$?
17429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17430 (exit $ac_status); }; } &&
17431 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17432 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17433 (eval $ac_try) 2>&5
17434 ac_status=$?
17435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17436 (exit $ac_status); }; }; then
17437 ac_cv_c_const=yes
17438else
17439 echo "$as_me: failed program was:" >&5
17440sed 's/^/| /' conftest.$ac_ext >&5
17441
17442ac_cv_c_const=no
17443fi
ac1cb8d3 17444rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17445fi
17446echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
17447echo "${ECHO_T}$ac_cv_c_const" >&6
17448if test $ac_cv_c_const = no; then
17449
17450cat >>confdefs.h <<\_ACEOF
17451#define const
17452_ACEOF
17453
17454fi
17455
17456echo "$as_me:$LINENO: checking for inline" >&5
17457echo $ECHO_N "checking for inline... $ECHO_C" >&6
17458if test "${ac_cv_c_inline+set}" = set; then
17459 echo $ECHO_N "(cached) $ECHO_C" >&6
17460else
17461 ac_cv_c_inline=no
17462for ac_kw in inline __inline__ __inline; do
17463 cat >conftest.$ac_ext <<_ACEOF
17464/* confdefs.h. */
17465_ACEOF
17466cat confdefs.h >>conftest.$ac_ext
17467cat >>conftest.$ac_ext <<_ACEOF
17468/* end confdefs.h. */
17469#ifndef __cplusplus
17470typedef int foo_t;
17471static $ac_kw foo_t static_foo () {return 0; }
17472$ac_kw foo_t foo () {return 0; }
17473#endif
17474
17475_ACEOF
17476rm -f conftest.$ac_objext
17477if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17478 (eval $ac_compile) 2>conftest.er1
a848cd7e 17479 ac_status=$?
ac1cb8d3
VS
17480 grep -v '^ *+' conftest.er1 >conftest.err
17481 rm -f conftest.er1
17482 cat conftest.err >&5
a848cd7e
SC
17483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17484 (exit $ac_status); } &&
c9a66001 17485 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17486 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17487 (eval $ac_try) 2>&5
17488 ac_status=$?
17489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17490 (exit $ac_status); }; } &&
17491 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17492 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17493 (eval $ac_try) 2>&5
17494 ac_status=$?
17495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17496 (exit $ac_status); }; }; then
17497 ac_cv_c_inline=$ac_kw; break
17498else
17499 echo "$as_me: failed program was:" >&5
17500sed 's/^/| /' conftest.$ac_ext >&5
17501
17502fi
ac1cb8d3 17503rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17504done
17505
17506fi
17507echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
17508echo "${ECHO_T}$ac_cv_c_inline" >&6
ac1cb8d3
VS
17509
17510
a848cd7e
SC
17511case $ac_cv_c_inline in
17512 inline | yes) ;;
ac1cb8d3
VS
17513 *)
17514 case $ac_cv_c_inline in
17515 no) ac_val=;;
17516 *) ac_val=$ac_cv_c_inline;;
17517 esac
17518 cat >>confdefs.h <<_ACEOF
17519#ifndef __cplusplus
17520#define inline $ac_val
17521#endif
de59c161 17522_ACEOF
ac1cb8d3 17523 ;;
a848cd7e
SC
17524esac
17525
17526
17527echo "$as_me:$LINENO: checking for char" >&5
17528echo $ECHO_N "checking for char... $ECHO_C" >&6
17529if test "${ac_cv_type_char+set}" = set; then
17530 echo $ECHO_N "(cached) $ECHO_C" >&6
17531else
17532 cat >conftest.$ac_ext <<_ACEOF
17533/* confdefs.h. */
17534_ACEOF
17535cat confdefs.h >>conftest.$ac_ext
17536cat >>conftest.$ac_ext <<_ACEOF
17537/* end confdefs.h. */
17538$ac_includes_default
17539int
17540main ()
17541{
17542if ((char *) 0)
17543 return 0;
17544if (sizeof (char))
17545 return 0;
17546 ;
17547 return 0;
17548}
17549_ACEOF
17550rm -f conftest.$ac_objext
17551if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17552 (eval $ac_compile) 2>conftest.er1
a848cd7e 17553 ac_status=$?
ac1cb8d3
VS
17554 grep -v '^ *+' conftest.er1 >conftest.err
17555 rm -f conftest.er1
17556 cat conftest.err >&5
a848cd7e
SC
17557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17558 (exit $ac_status); } &&
c9a66001 17559 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17560 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17561 (eval $ac_try) 2>&5
17562 ac_status=$?
17563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17564 (exit $ac_status); }; } &&
17565 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17566 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17567 (eval $ac_try) 2>&5
17568 ac_status=$?
17569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17570 (exit $ac_status); }; }; then
17571 ac_cv_type_char=yes
17572else
17573 echo "$as_me: failed program was:" >&5
17574sed 's/^/| /' conftest.$ac_ext >&5
17575
17576ac_cv_type_char=no
17577fi
ac1cb8d3 17578rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17579fi
17580echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
17581echo "${ECHO_T}$ac_cv_type_char" >&6
17582
17583echo "$as_me:$LINENO: checking size of char" >&5
17584echo $ECHO_N "checking size of char... $ECHO_C" >&6
17585if test "${ac_cv_sizeof_char+set}" = set; then
17586 echo $ECHO_N "(cached) $ECHO_C" >&6
17587else
17588 if test "$ac_cv_type_char" = yes; then
17589 # The cast to unsigned long works around a bug in the HP C Compiler
17590 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
17591 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
17592 # This bug is HP SR number 8606223364.
17593 if test "$cross_compiling" = yes; then
17594 # Depending upon the size, compute the lo and hi bounds.
17595cat >conftest.$ac_ext <<_ACEOF
17596/* confdefs.h. */
17597_ACEOF
17598cat confdefs.h >>conftest.$ac_ext
17599cat >>conftest.$ac_ext <<_ACEOF
17600/* end confdefs.h. */
17601$ac_includes_default
17602int
17603main ()
17604{
17605static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)];
17606test_array [0] = 0
17607
17608 ;
17609 return 0;
17610}
17611_ACEOF
17612rm -f conftest.$ac_objext
17613if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17614 (eval $ac_compile) 2>conftest.er1
a848cd7e 17615 ac_status=$?
ac1cb8d3
VS
17616 grep -v '^ *+' conftest.er1 >conftest.err
17617 rm -f conftest.er1
17618 cat conftest.err >&5
a848cd7e
SC
17619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17620 (exit $ac_status); } &&
c9a66001 17621 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17622 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17623 (eval $ac_try) 2>&5
17624 ac_status=$?
17625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17626 (exit $ac_status); }; } &&
17627 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17628 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17629 (eval $ac_try) 2>&5
17630 ac_status=$?
17631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17632 (exit $ac_status); }; }; then
17633 ac_lo=0 ac_mid=0
17634 while :; do
17635 cat >conftest.$ac_ext <<_ACEOF
17636/* confdefs.h. */
17637_ACEOF
17638cat confdefs.h >>conftest.$ac_ext
17639cat >>conftest.$ac_ext <<_ACEOF
17640/* end confdefs.h. */
17641$ac_includes_default
17642int
17643main ()
17644{
17645static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
17646test_array [0] = 0
17647
17648 ;
17649 return 0;
17650}
17651_ACEOF
17652rm -f conftest.$ac_objext
17653if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17654 (eval $ac_compile) 2>conftest.er1
a848cd7e 17655 ac_status=$?
ac1cb8d3
VS
17656 grep -v '^ *+' conftest.er1 >conftest.err
17657 rm -f conftest.er1
17658 cat conftest.err >&5
a848cd7e
SC
17659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17660 (exit $ac_status); } &&
c9a66001 17661 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17662 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17663 (eval $ac_try) 2>&5
17664 ac_status=$?
17665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17666 (exit $ac_status); }; } &&
17667 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17668 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17669 (eval $ac_try) 2>&5
17670 ac_status=$?
17671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17672 (exit $ac_status); }; }; then
17673 ac_hi=$ac_mid; break
17674else
17675 echo "$as_me: failed program was:" >&5
17676sed 's/^/| /' conftest.$ac_ext >&5
17677
17678ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
17679 if test $ac_lo -le $ac_mid; then
17680 ac_lo= ac_hi=
17681 break
17682 fi
17683 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 17684fi
ac1cb8d3 17685rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17686 done
17687else
17688 echo "$as_me: failed program was:" >&5
17689sed 's/^/| /' conftest.$ac_ext >&5
17690
17691cat >conftest.$ac_ext <<_ACEOF
17692/* confdefs.h. */
17693_ACEOF
17694cat confdefs.h >>conftest.$ac_ext
17695cat >>conftest.$ac_ext <<_ACEOF
17696/* end confdefs.h. */
17697$ac_includes_default
17698int
17699main ()
17700{
17701static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)];
17702test_array [0] = 0
17703
17704 ;
17705 return 0;
17706}
17707_ACEOF
17708rm -f conftest.$ac_objext
17709if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17710 (eval $ac_compile) 2>conftest.er1
a848cd7e 17711 ac_status=$?
ac1cb8d3
VS
17712 grep -v '^ *+' conftest.er1 >conftest.err
17713 rm -f conftest.er1
17714 cat conftest.err >&5
a848cd7e
SC
17715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17716 (exit $ac_status); } &&
c9a66001 17717 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17718 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17719 (eval $ac_try) 2>&5
17720 ac_status=$?
17721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17722 (exit $ac_status); }; } &&
17723 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17724 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17725 (eval $ac_try) 2>&5
17726 ac_status=$?
17727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17728 (exit $ac_status); }; }; then
17729 ac_hi=-1 ac_mid=-1
17730 while :; do
17731 cat >conftest.$ac_ext <<_ACEOF
17732/* confdefs.h. */
17733_ACEOF
17734cat confdefs.h >>conftest.$ac_ext
17735cat >>conftest.$ac_ext <<_ACEOF
17736/* end confdefs.h. */
17737$ac_includes_default
17738int
17739main ()
17740{
17741static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)];
17742test_array [0] = 0
17743
17744 ;
17745 return 0;
17746}
17747_ACEOF
17748rm -f conftest.$ac_objext
17749if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17750 (eval $ac_compile) 2>conftest.er1
a848cd7e 17751 ac_status=$?
ac1cb8d3
VS
17752 grep -v '^ *+' conftest.er1 >conftest.err
17753 rm -f conftest.er1
17754 cat conftest.err >&5
a848cd7e
SC
17755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17756 (exit $ac_status); } &&
c9a66001 17757 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17758 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17759 (eval $ac_try) 2>&5
17760 ac_status=$?
17761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17762 (exit $ac_status); }; } &&
17763 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17764 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17765 (eval $ac_try) 2>&5
17766 ac_status=$?
17767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17768 (exit $ac_status); }; }; then
17769 ac_lo=$ac_mid; break
17770else
17771 echo "$as_me: failed program was:" >&5
17772sed 's/^/| /' conftest.$ac_ext >&5
17773
17774ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
17775 if test $ac_mid -le $ac_hi; then
17776 ac_lo= ac_hi=
17777 break
17778 fi
17779 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 17780fi
ac1cb8d3 17781rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17782 done
17783else
17784 echo "$as_me: failed program was:" >&5
17785sed 's/^/| /' conftest.$ac_ext >&5
17786
17787ac_lo= ac_hi=
17788fi
ac1cb8d3 17789rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 17790fi
ac1cb8d3 17791rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17792# Binary search between lo and hi bounds.
17793while test "x$ac_lo" != "x$ac_hi"; do
17794 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
17795 cat >conftest.$ac_ext <<_ACEOF
17796/* confdefs.h. */
17797_ACEOF
17798cat confdefs.h >>conftest.$ac_ext
17799cat >>conftest.$ac_ext <<_ACEOF
17800/* end confdefs.h. */
17801$ac_includes_default
17802int
17803main ()
17804{
17805static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
17806test_array [0] = 0
17807
17808 ;
17809 return 0;
17810}
17811_ACEOF
17812rm -f conftest.$ac_objext
17813if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17814 (eval $ac_compile) 2>conftest.er1
a848cd7e 17815 ac_status=$?
ac1cb8d3
VS
17816 grep -v '^ *+' conftest.er1 >conftest.err
17817 rm -f conftest.er1
17818 cat conftest.err >&5
a848cd7e
SC
17819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17820 (exit $ac_status); } &&
c9a66001 17821 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17822 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17823 (eval $ac_try) 2>&5
17824 ac_status=$?
17825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17826 (exit $ac_status); }; } &&
17827 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17828 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17829 (eval $ac_try) 2>&5
17830 ac_status=$?
17831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17832 (exit $ac_status); }; }; then
17833 ac_hi=$ac_mid
17834else
17835 echo "$as_me: failed program was:" >&5
17836sed 's/^/| /' conftest.$ac_ext >&5
17837
17838ac_lo=`expr '(' $ac_mid ')' + 1`
17839fi
ac1cb8d3 17840rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17841done
17842case $ac_lo in
17843?*) ac_cv_sizeof_char=$ac_lo;;
17844'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
17845See \`config.log' for more details." >&5
17846echo "$as_me: error: cannot compute sizeof (char), 77
17847See \`config.log' for more details." >&2;}
17848 { (exit 1); exit 1; }; } ;;
17849esac
17850else
17851 if test "$cross_compiling" = yes; then
c9a66001
VZ
17852 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
17853echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
a848cd7e
SC
17854 { (exit 1); exit 1; }; }
17855else
17856 cat >conftest.$ac_ext <<_ACEOF
17857/* confdefs.h. */
17858_ACEOF
17859cat confdefs.h >>conftest.$ac_ext
17860cat >>conftest.$ac_ext <<_ACEOF
17861/* end confdefs.h. */
17862$ac_includes_default
17863long longval () { return (long) (sizeof (char)); }
17864unsigned long ulongval () { return (long) (sizeof (char)); }
17865#include <stdio.h>
17866#include <stdlib.h>
17867int
17868main ()
17869{
17870
17871 FILE *f = fopen ("conftest.val", "w");
17872 if (! f)
17873 exit (1);
17874 if (((long) (sizeof (char))) < 0)
17875 {
17876 long i = longval ();
17877 if (i != ((long) (sizeof (char))))
17878 exit (1);
17879 fprintf (f, "%ld\n", i);
17880 }
17881 else
17882 {
17883 unsigned long i = ulongval ();
17884 if (i != ((long) (sizeof (char))))
17885 exit (1);
17886 fprintf (f, "%lu\n", i);
17887 }
17888 exit (ferror (f) || fclose (f) != 0);
17889
17890 ;
17891 return 0;
17892}
17893_ACEOF
17894rm -f conftest$ac_exeext
17895if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17896 (eval $ac_link) 2>&5
17897 ac_status=$?
17898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17899 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17900 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17901 (eval $ac_try) 2>&5
17902 ac_status=$?
17903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17904 (exit $ac_status); }; }; then
17905 ac_cv_sizeof_char=`cat conftest.val`
17906else
17907 echo "$as_me: program exited with status $ac_status" >&5
17908echo "$as_me: failed program was:" >&5
17909sed 's/^/| /' conftest.$ac_ext >&5
17910
17911( exit $ac_status )
17912{ { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
17913See \`config.log' for more details." >&5
17914echo "$as_me: error: cannot compute sizeof (char), 77
17915See \`config.log' for more details." >&2;}
17916 { (exit 1); exit 1; }; }
17917fi
ac1cb8d3 17918rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17919fi
17920fi
17921rm -f conftest.val
17922else
17923 ac_cv_sizeof_char=0
17924fi
17925fi
17926echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
17927echo "${ECHO_T}$ac_cv_sizeof_char" >&6
17928cat >>confdefs.h <<_ACEOF
17929#define SIZEOF_CHAR $ac_cv_sizeof_char
17930_ACEOF
17931
17932
17933echo "$as_me:$LINENO: checking for short" >&5
17934echo $ECHO_N "checking for short... $ECHO_C" >&6
17935if test "${ac_cv_type_short+set}" = set; then
17936 echo $ECHO_N "(cached) $ECHO_C" >&6
17937else
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{
17948if ((short *) 0)
17949 return 0;
17950if (sizeof (short))
17951 return 0;
17952 ;
17953 return 0;
17954}
17955_ACEOF
17956rm -f conftest.$ac_objext
17957if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17958 (eval $ac_compile) 2>conftest.er1
a848cd7e 17959 ac_status=$?
ac1cb8d3
VS
17960 grep -v '^ *+' conftest.er1 >conftest.err
17961 rm -f conftest.er1
17962 cat conftest.err >&5
a848cd7e
SC
17963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17964 (exit $ac_status); } &&
c9a66001 17965 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17966 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17967 (eval $ac_try) 2>&5
17968 ac_status=$?
17969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17970 (exit $ac_status); }; } &&
17971 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17972 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17973 (eval $ac_try) 2>&5
17974 ac_status=$?
17975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17976 (exit $ac_status); }; }; then
17977 ac_cv_type_short=yes
17978else
17979 echo "$as_me: failed program was:" >&5
17980sed 's/^/| /' conftest.$ac_ext >&5
17981
17982ac_cv_type_short=no
17983fi
ac1cb8d3 17984rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17985fi
17986echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
17987echo "${ECHO_T}$ac_cv_type_short" >&6
17988
17989echo "$as_me:$LINENO: checking size of short" >&5
17990echo $ECHO_N "checking size of short... $ECHO_C" >&6
17991if test "${ac_cv_sizeof_short+set}" = set; then
17992 echo $ECHO_N "(cached) $ECHO_C" >&6
17993else
17994 if test "$ac_cv_type_short" = yes; then
17995 # The cast to unsigned long works around a bug in the HP C Compiler
17996 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
17997 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
17998 # This bug is HP SR number 8606223364.
17999 if test "$cross_compiling" = yes; then
18000 # Depending upon the size, compute the lo and hi bounds.
18001cat >conftest.$ac_ext <<_ACEOF
18002/* confdefs.h. */
18003_ACEOF
18004cat confdefs.h >>conftest.$ac_ext
18005cat >>conftest.$ac_ext <<_ACEOF
18006/* end confdefs.h. */
18007$ac_includes_default
18008int
18009main ()
18010{
18011static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
18012test_array [0] = 0
18013
18014 ;
18015 return 0;
18016}
18017_ACEOF
18018rm -f conftest.$ac_objext
18019if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18020 (eval $ac_compile) 2>conftest.er1
a848cd7e 18021 ac_status=$?
ac1cb8d3
VS
18022 grep -v '^ *+' conftest.er1 >conftest.err
18023 rm -f conftest.er1
18024 cat conftest.err >&5
a848cd7e
SC
18025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18026 (exit $ac_status); } &&
c9a66001 18027 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18028 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18029 (eval $ac_try) 2>&5
18030 ac_status=$?
18031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18032 (exit $ac_status); }; } &&
18033 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18034 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18035 (eval $ac_try) 2>&5
18036 ac_status=$?
18037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18038 (exit $ac_status); }; }; then
18039 ac_lo=0 ac_mid=0
18040 while :; do
18041 cat >conftest.$ac_ext <<_ACEOF
18042/* confdefs.h. */
18043_ACEOF
18044cat confdefs.h >>conftest.$ac_ext
18045cat >>conftest.$ac_ext <<_ACEOF
18046/* end confdefs.h. */
18047$ac_includes_default
18048int
18049main ()
18050{
18051static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
18052test_array [0] = 0
18053
18054 ;
18055 return 0;
18056}
18057_ACEOF
18058rm -f conftest.$ac_objext
18059if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18060 (eval $ac_compile) 2>conftest.er1
a848cd7e 18061 ac_status=$?
ac1cb8d3
VS
18062 grep -v '^ *+' conftest.er1 >conftest.err
18063 rm -f conftest.er1
18064 cat conftest.err >&5
a848cd7e
SC
18065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18066 (exit $ac_status); } &&
c9a66001 18067 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18068 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18069 (eval $ac_try) 2>&5
18070 ac_status=$?
18071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18072 (exit $ac_status); }; } &&
18073 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18074 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18075 (eval $ac_try) 2>&5
18076 ac_status=$?
18077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18078 (exit $ac_status); }; }; then
18079 ac_hi=$ac_mid; break
18080else
18081 echo "$as_me: failed program was:" >&5
18082sed 's/^/| /' conftest.$ac_ext >&5
18083
18084ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
18085 if test $ac_lo -le $ac_mid; then
18086 ac_lo= ac_hi=
18087 break
18088 fi
18089 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 18090fi
ac1cb8d3 18091rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18092 done
18093else
18094 echo "$as_me: failed program was:" >&5
18095sed 's/^/| /' conftest.$ac_ext >&5
18096
18097cat >conftest.$ac_ext <<_ACEOF
18098/* confdefs.h. */
18099_ACEOF
18100cat confdefs.h >>conftest.$ac_ext
18101cat >>conftest.$ac_ext <<_ACEOF
18102/* end confdefs.h. */
18103$ac_includes_default
18104int
18105main ()
18106{
18107static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
18108test_array [0] = 0
18109
18110 ;
18111 return 0;
18112}
18113_ACEOF
18114rm -f conftest.$ac_objext
18115if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18116 (eval $ac_compile) 2>conftest.er1
a848cd7e 18117 ac_status=$?
ac1cb8d3
VS
18118 grep -v '^ *+' conftest.er1 >conftest.err
18119 rm -f conftest.er1
18120 cat conftest.err >&5
a848cd7e
SC
18121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18122 (exit $ac_status); } &&
c9a66001 18123 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18124 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18125 (eval $ac_try) 2>&5
18126 ac_status=$?
18127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18128 (exit $ac_status); }; } &&
18129 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18130 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18131 (eval $ac_try) 2>&5
18132 ac_status=$?
18133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18134 (exit $ac_status); }; }; then
18135 ac_hi=-1 ac_mid=-1
18136 while :; do
18137 cat >conftest.$ac_ext <<_ACEOF
18138/* confdefs.h. */
18139_ACEOF
18140cat confdefs.h >>conftest.$ac_ext
18141cat >>conftest.$ac_ext <<_ACEOF
18142/* end confdefs.h. */
18143$ac_includes_default
18144int
18145main ()
18146{
18147static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
18148test_array [0] = 0
18149
18150 ;
18151 return 0;
18152}
18153_ACEOF
18154rm -f conftest.$ac_objext
18155if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18156 (eval $ac_compile) 2>conftest.er1
a848cd7e 18157 ac_status=$?
ac1cb8d3
VS
18158 grep -v '^ *+' conftest.er1 >conftest.err
18159 rm -f conftest.er1
18160 cat conftest.err >&5
a848cd7e
SC
18161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18162 (exit $ac_status); } &&
c9a66001 18163 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18164 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18165 (eval $ac_try) 2>&5
18166 ac_status=$?
18167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18168 (exit $ac_status); }; } &&
18169 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18170 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18171 (eval $ac_try) 2>&5
18172 ac_status=$?
18173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18174 (exit $ac_status); }; }; then
18175 ac_lo=$ac_mid; break
18176else
18177 echo "$as_me: failed program was:" >&5
18178sed 's/^/| /' conftest.$ac_ext >&5
18179
18180ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
18181 if test $ac_mid -le $ac_hi; then
18182 ac_lo= ac_hi=
18183 break
18184 fi
18185 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 18186fi
ac1cb8d3 18187rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18188 done
18189else
18190 echo "$as_me: failed program was:" >&5
18191sed 's/^/| /' conftest.$ac_ext >&5
18192
18193ac_lo= ac_hi=
18194fi
ac1cb8d3 18195rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 18196fi
ac1cb8d3 18197rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18198# Binary search between lo and hi bounds.
18199while test "x$ac_lo" != "x$ac_hi"; do
18200 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
18201 cat >conftest.$ac_ext <<_ACEOF
18202/* confdefs.h. */
18203_ACEOF
18204cat confdefs.h >>conftest.$ac_ext
18205cat >>conftest.$ac_ext <<_ACEOF
18206/* end confdefs.h. */
18207$ac_includes_default
18208int
18209main ()
18210{
18211static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
18212test_array [0] = 0
18213
18214 ;
18215 return 0;
18216}
18217_ACEOF
18218rm -f conftest.$ac_objext
18219if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18220 (eval $ac_compile) 2>conftest.er1
a848cd7e 18221 ac_status=$?
ac1cb8d3
VS
18222 grep -v '^ *+' conftest.er1 >conftest.err
18223 rm -f conftest.er1
18224 cat conftest.err >&5
a848cd7e
SC
18225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18226 (exit $ac_status); } &&
c9a66001 18227 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18228 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18229 (eval $ac_try) 2>&5
18230 ac_status=$?
18231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18232 (exit $ac_status); }; } &&
18233 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18234 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18235 (eval $ac_try) 2>&5
18236 ac_status=$?
18237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18238 (exit $ac_status); }; }; then
18239 ac_hi=$ac_mid
18240else
18241 echo "$as_me: failed program was:" >&5
18242sed 's/^/| /' conftest.$ac_ext >&5
18243
18244ac_lo=`expr '(' $ac_mid ')' + 1`
18245fi
ac1cb8d3 18246rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18247done
18248case $ac_lo in
18249?*) ac_cv_sizeof_short=$ac_lo;;
18250'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
18251See \`config.log' for more details." >&5
18252echo "$as_me: error: cannot compute sizeof (short), 77
18253See \`config.log' for more details." >&2;}
18254 { (exit 1); exit 1; }; } ;;
18255esac
18256else
18257 if test "$cross_compiling" = yes; then
c9a66001
VZ
18258 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
18259echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
a848cd7e
SC
18260 { (exit 1); exit 1; }; }
18261else
18262 cat >conftest.$ac_ext <<_ACEOF
18263/* confdefs.h. */
18264_ACEOF
18265cat confdefs.h >>conftest.$ac_ext
18266cat >>conftest.$ac_ext <<_ACEOF
18267/* end confdefs.h. */
18268$ac_includes_default
18269long longval () { return (long) (sizeof (short)); }
18270unsigned long ulongval () { return (long) (sizeof (short)); }
18271#include <stdio.h>
18272#include <stdlib.h>
18273int
18274main ()
18275{
18276
18277 FILE *f = fopen ("conftest.val", "w");
18278 if (! f)
18279 exit (1);
18280 if (((long) (sizeof (short))) < 0)
18281 {
18282 long i = longval ();
18283 if (i != ((long) (sizeof (short))))
18284 exit (1);
18285 fprintf (f, "%ld\n", i);
18286 }
18287 else
18288 {
18289 unsigned long i = ulongval ();
18290 if (i != ((long) (sizeof (short))))
18291 exit (1);
18292 fprintf (f, "%lu\n", i);
18293 }
18294 exit (ferror (f) || fclose (f) != 0);
18295
18296 ;
18297 return 0;
18298}
18299_ACEOF
18300rm -f conftest$ac_exeext
18301if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18302 (eval $ac_link) 2>&5
18303 ac_status=$?
18304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18305 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18306 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18307 (eval $ac_try) 2>&5
18308 ac_status=$?
18309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18310 (exit $ac_status); }; }; then
18311 ac_cv_sizeof_short=`cat conftest.val`
18312else
18313 echo "$as_me: program exited with status $ac_status" >&5
18314echo "$as_me: failed program was:" >&5
18315sed 's/^/| /' conftest.$ac_ext >&5
18316
18317( exit $ac_status )
18318{ { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
18319See \`config.log' for more details." >&5
18320echo "$as_me: error: cannot compute sizeof (short), 77
18321See \`config.log' for more details." >&2;}
18322 { (exit 1); exit 1; }; }
18323fi
ac1cb8d3 18324rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18325fi
18326fi
18327rm -f conftest.val
18328else
18329 ac_cv_sizeof_short=0
18330fi
18331fi
18332echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
18333echo "${ECHO_T}$ac_cv_sizeof_short" >&6
18334cat >>confdefs.h <<_ACEOF
18335#define SIZEOF_SHORT $ac_cv_sizeof_short
18336_ACEOF
18337
18338
18339echo "$as_me:$LINENO: checking for void *" >&5
18340echo $ECHO_N "checking for void *... $ECHO_C" >&6
18341if test "${ac_cv_type_void_p+set}" = set; then
18342 echo $ECHO_N "(cached) $ECHO_C" >&6
18343else
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{
18354if ((void * *) 0)
18355 return 0;
18356if (sizeof (void *))
18357 return 0;
18358 ;
18359 return 0;
18360}
18361_ACEOF
18362rm -f conftest.$ac_objext
18363if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18364 (eval $ac_compile) 2>conftest.er1
a848cd7e 18365 ac_status=$?
ac1cb8d3
VS
18366 grep -v '^ *+' conftest.er1 >conftest.err
18367 rm -f conftest.er1
18368 cat conftest.err >&5
a848cd7e
SC
18369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18370 (exit $ac_status); } &&
c9a66001 18371 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18372 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18373 (eval $ac_try) 2>&5
18374 ac_status=$?
18375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18376 (exit $ac_status); }; } &&
18377 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18378 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18379 (eval $ac_try) 2>&5
18380 ac_status=$?
18381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18382 (exit $ac_status); }; }; then
18383 ac_cv_type_void_p=yes
18384else
18385 echo "$as_me: failed program was:" >&5
18386sed 's/^/| /' conftest.$ac_ext >&5
18387
18388ac_cv_type_void_p=no
18389fi
ac1cb8d3 18390rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18391fi
18392echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
18393echo "${ECHO_T}$ac_cv_type_void_p" >&6
18394
18395echo "$as_me:$LINENO: checking size of void *" >&5
18396echo $ECHO_N "checking size of void *... $ECHO_C" >&6
18397if test "${ac_cv_sizeof_void_p+set}" = set; then
18398 echo $ECHO_N "(cached) $ECHO_C" >&6
18399else
18400 if test "$ac_cv_type_void_p" = yes; then
18401 # The cast to unsigned long works around a bug in the HP C Compiler
18402 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
18403 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
18404 # This bug is HP SR number 8606223364.
18405 if test "$cross_compiling" = yes; then
18406 # Depending upon the size, compute the lo and hi bounds.
18407cat >conftest.$ac_ext <<_ACEOF
18408/* confdefs.h. */
18409_ACEOF
18410cat confdefs.h >>conftest.$ac_ext
18411cat >>conftest.$ac_ext <<_ACEOF
18412/* end confdefs.h. */
18413$ac_includes_default
18414int
18415main ()
18416{
18417static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)];
18418test_array [0] = 0
18419
18420 ;
18421 return 0;
18422}
18423_ACEOF
18424rm -f conftest.$ac_objext
18425if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18426 (eval $ac_compile) 2>conftest.er1
a848cd7e 18427 ac_status=$?
ac1cb8d3
VS
18428 grep -v '^ *+' conftest.er1 >conftest.err
18429 rm -f conftest.er1
18430 cat conftest.err >&5
a848cd7e
SC
18431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18432 (exit $ac_status); } &&
c9a66001 18433 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18434 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18435 (eval $ac_try) 2>&5
18436 ac_status=$?
18437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18438 (exit $ac_status); }; } &&
18439 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18440 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18441 (eval $ac_try) 2>&5
18442 ac_status=$?
18443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18444 (exit $ac_status); }; }; then
18445 ac_lo=0 ac_mid=0
18446 while :; do
18447 cat >conftest.$ac_ext <<_ACEOF
18448/* confdefs.h. */
18449_ACEOF
18450cat confdefs.h >>conftest.$ac_ext
18451cat >>conftest.$ac_ext <<_ACEOF
18452/* end confdefs.h. */
18453$ac_includes_default
18454int
18455main ()
18456{
18457static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
18458test_array [0] = 0
18459
18460 ;
18461 return 0;
18462}
18463_ACEOF
18464rm -f conftest.$ac_objext
18465if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18466 (eval $ac_compile) 2>conftest.er1
a848cd7e 18467 ac_status=$?
ac1cb8d3
VS
18468 grep -v '^ *+' conftest.er1 >conftest.err
18469 rm -f conftest.er1
18470 cat conftest.err >&5
a848cd7e
SC
18471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18472 (exit $ac_status); } &&
c9a66001 18473 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18474 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18475 (eval $ac_try) 2>&5
18476 ac_status=$?
18477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18478 (exit $ac_status); }; } &&
18479 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18480 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18481 (eval $ac_try) 2>&5
18482 ac_status=$?
18483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18484 (exit $ac_status); }; }; then
18485 ac_hi=$ac_mid; break
18486else
18487 echo "$as_me: failed program was:" >&5
18488sed 's/^/| /' conftest.$ac_ext >&5
18489
18490ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
18491 if test $ac_lo -le $ac_mid; then
18492 ac_lo= ac_hi=
18493 break
18494 fi
18495 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 18496fi
ac1cb8d3 18497rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18498 done
18499else
18500 echo "$as_me: failed program was:" >&5
18501sed 's/^/| /' conftest.$ac_ext >&5
18502
18503cat >conftest.$ac_ext <<_ACEOF
18504/* confdefs.h. */
18505_ACEOF
18506cat confdefs.h >>conftest.$ac_ext
18507cat >>conftest.$ac_ext <<_ACEOF
18508/* end confdefs.h. */
18509$ac_includes_default
18510int
18511main ()
18512{
18513static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)];
18514test_array [0] = 0
18515
18516 ;
18517 return 0;
18518}
18519_ACEOF
18520rm -f conftest.$ac_objext
18521if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18522 (eval $ac_compile) 2>conftest.er1
a848cd7e 18523 ac_status=$?
ac1cb8d3
VS
18524 grep -v '^ *+' conftest.er1 >conftest.err
18525 rm -f conftest.er1
18526 cat conftest.err >&5
a848cd7e
SC
18527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18528 (exit $ac_status); } &&
c9a66001 18529 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18530 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18531 (eval $ac_try) 2>&5
18532 ac_status=$?
18533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18534 (exit $ac_status); }; } &&
18535 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18536 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18537 (eval $ac_try) 2>&5
18538 ac_status=$?
18539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18540 (exit $ac_status); }; }; then
18541 ac_hi=-1 ac_mid=-1
18542 while :; do
18543 cat >conftest.$ac_ext <<_ACEOF
18544/* confdefs.h. */
18545_ACEOF
18546cat confdefs.h >>conftest.$ac_ext
18547cat >>conftest.$ac_ext <<_ACEOF
18548/* end confdefs.h. */
18549$ac_includes_default
18550int
18551main ()
18552{
18553static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)];
18554test_array [0] = 0
18555
18556 ;
18557 return 0;
18558}
18559_ACEOF
18560rm -f conftest.$ac_objext
18561if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18562 (eval $ac_compile) 2>conftest.er1
a848cd7e 18563 ac_status=$?
ac1cb8d3
VS
18564 grep -v '^ *+' conftest.er1 >conftest.err
18565 rm -f conftest.er1
18566 cat conftest.err >&5
a848cd7e
SC
18567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18568 (exit $ac_status); } &&
c9a66001 18569 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18570 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18571 (eval $ac_try) 2>&5
18572 ac_status=$?
18573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18574 (exit $ac_status); }; } &&
18575 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18576 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18577 (eval $ac_try) 2>&5
18578 ac_status=$?
18579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18580 (exit $ac_status); }; }; then
18581 ac_lo=$ac_mid; break
18582else
18583 echo "$as_me: failed program was:" >&5
18584sed 's/^/| /' conftest.$ac_ext >&5
18585
18586ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
18587 if test $ac_mid -le $ac_hi; then
18588 ac_lo= ac_hi=
18589 break
18590 fi
18591 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 18592fi
ac1cb8d3 18593rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18594 done
18595else
18596 echo "$as_me: failed program was:" >&5
18597sed 's/^/| /' conftest.$ac_ext >&5
18598
18599ac_lo= ac_hi=
18600fi
ac1cb8d3 18601rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 18602fi
ac1cb8d3 18603rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18604# Binary search between lo and hi bounds.
18605while test "x$ac_lo" != "x$ac_hi"; do
18606 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
18607 cat >conftest.$ac_ext <<_ACEOF
18608/* confdefs.h. */
18609_ACEOF
18610cat confdefs.h >>conftest.$ac_ext
18611cat >>conftest.$ac_ext <<_ACEOF
18612/* end confdefs.h. */
18613$ac_includes_default
18614int
18615main ()
18616{
18617static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
18618test_array [0] = 0
18619
18620 ;
18621 return 0;
18622}
18623_ACEOF
18624rm -f conftest.$ac_objext
18625if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18626 (eval $ac_compile) 2>conftest.er1
a848cd7e 18627 ac_status=$?
ac1cb8d3
VS
18628 grep -v '^ *+' conftest.er1 >conftest.err
18629 rm -f conftest.er1
18630 cat conftest.err >&5
a848cd7e
SC
18631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18632 (exit $ac_status); } &&
c9a66001 18633 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18634 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18635 (eval $ac_try) 2>&5
18636 ac_status=$?
18637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18638 (exit $ac_status); }; } &&
18639 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18640 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18641 (eval $ac_try) 2>&5
18642 ac_status=$?
18643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18644 (exit $ac_status); }; }; then
18645 ac_hi=$ac_mid
18646else
18647 echo "$as_me: failed program was:" >&5
18648sed 's/^/| /' conftest.$ac_ext >&5
18649
18650ac_lo=`expr '(' $ac_mid ')' + 1`
18651fi
ac1cb8d3 18652rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18653done
18654case $ac_lo in
18655?*) ac_cv_sizeof_void_p=$ac_lo;;
18656'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
18657See \`config.log' for more details." >&5
18658echo "$as_me: error: cannot compute sizeof (void *), 77
18659See \`config.log' for more details." >&2;}
18660 { (exit 1); exit 1; }; } ;;
18661esac
18662else
18663 if test "$cross_compiling" = yes; then
c9a66001
VZ
18664 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
18665echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
a848cd7e
SC
18666 { (exit 1); exit 1; }; }
18667else
18668 cat >conftest.$ac_ext <<_ACEOF
18669/* confdefs.h. */
18670_ACEOF
18671cat confdefs.h >>conftest.$ac_ext
18672cat >>conftest.$ac_ext <<_ACEOF
18673/* end confdefs.h. */
18674$ac_includes_default
18675long longval () { return (long) (sizeof (void *)); }
18676unsigned long ulongval () { return (long) (sizeof (void *)); }
18677#include <stdio.h>
18678#include <stdlib.h>
18679int
18680main ()
18681{
18682
18683 FILE *f = fopen ("conftest.val", "w");
18684 if (! f)
18685 exit (1);
18686 if (((long) (sizeof (void *))) < 0)
18687 {
18688 long i = longval ();
18689 if (i != ((long) (sizeof (void *))))
18690 exit (1);
18691 fprintf (f, "%ld\n", i);
18692 }
18693 else
18694 {
18695 unsigned long i = ulongval ();
18696 if (i != ((long) (sizeof (void *))))
18697 exit (1);
18698 fprintf (f, "%lu\n", i);
18699 }
18700 exit (ferror (f) || fclose (f) != 0);
18701
18702 ;
18703 return 0;
18704}
18705_ACEOF
18706rm -f conftest$ac_exeext
18707if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18708 (eval $ac_link) 2>&5
18709 ac_status=$?
18710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18711 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18712 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18713 (eval $ac_try) 2>&5
18714 ac_status=$?
18715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18716 (exit $ac_status); }; }; then
18717 ac_cv_sizeof_void_p=`cat conftest.val`
18718else
18719 echo "$as_me: program exited with status $ac_status" >&5
18720echo "$as_me: failed program was:" >&5
18721sed 's/^/| /' conftest.$ac_ext >&5
18722
18723( exit $ac_status )
18724{ { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
18725See \`config.log' for more details." >&5
18726echo "$as_me: error: cannot compute sizeof (void *), 77
18727See \`config.log' for more details." >&2;}
18728 { (exit 1); exit 1; }; }
18729fi
ac1cb8d3 18730rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18731fi
18732fi
18733rm -f conftest.val
18734else
18735 ac_cv_sizeof_void_p=0
18736fi
18737fi
18738echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
18739echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
18740cat >>confdefs.h <<_ACEOF
18741#define SIZEOF_VOID_P $ac_cv_sizeof_void_p
18742_ACEOF
18743
18744
18745echo "$as_me:$LINENO: checking for int" >&5
18746echo $ECHO_N "checking for int... $ECHO_C" >&6
18747if test "${ac_cv_type_int+set}" = set; then
18748 echo $ECHO_N "(cached) $ECHO_C" >&6
18749else
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{
18760if ((int *) 0)
18761 return 0;
18762if (sizeof (int))
18763 return 0;
18764 ;
18765 return 0;
18766}
18767_ACEOF
18768rm -f conftest.$ac_objext
18769if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18770 (eval $ac_compile) 2>conftest.er1
a848cd7e 18771 ac_status=$?
ac1cb8d3
VS
18772 grep -v '^ *+' conftest.er1 >conftest.err
18773 rm -f conftest.er1
18774 cat conftest.err >&5
a848cd7e
SC
18775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18776 (exit $ac_status); } &&
c9a66001 18777 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18778 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18779 (eval $ac_try) 2>&5
18780 ac_status=$?
18781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18782 (exit $ac_status); }; } &&
18783 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18784 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18785 (eval $ac_try) 2>&5
18786 ac_status=$?
18787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18788 (exit $ac_status); }; }; then
18789 ac_cv_type_int=yes
18790else
18791 echo "$as_me: failed program was:" >&5
18792sed 's/^/| /' conftest.$ac_ext >&5
18793
18794ac_cv_type_int=no
18795fi
ac1cb8d3 18796rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18797fi
18798echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
18799echo "${ECHO_T}$ac_cv_type_int" >&6
18800
18801echo "$as_me:$LINENO: checking size of int" >&5
18802echo $ECHO_N "checking size of int... $ECHO_C" >&6
18803if test "${ac_cv_sizeof_int+set}" = set; then
18804 echo $ECHO_N "(cached) $ECHO_C" >&6
18805else
18806 if test "$ac_cv_type_int" = yes; then
18807 # The cast to unsigned long works around a bug in the HP C Compiler
18808 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
18809 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
18810 # This bug is HP SR number 8606223364.
18811 if test "$cross_compiling" = yes; then
18812 # Depending upon the size, compute the lo and hi bounds.
18813cat >conftest.$ac_ext <<_ACEOF
18814/* confdefs.h. */
18815_ACEOF
18816cat confdefs.h >>conftest.$ac_ext
18817cat >>conftest.$ac_ext <<_ACEOF
18818/* end confdefs.h. */
18819$ac_includes_default
18820int
18821main ()
18822{
18823static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
18824test_array [0] = 0
18825
18826 ;
18827 return 0;
18828}
18829_ACEOF
18830rm -f conftest.$ac_objext
18831if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18832 (eval $ac_compile) 2>conftest.er1
a848cd7e 18833 ac_status=$?
ac1cb8d3
VS
18834 grep -v '^ *+' conftest.er1 >conftest.err
18835 rm -f conftest.er1
18836 cat conftest.err >&5
a848cd7e
SC
18837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18838 (exit $ac_status); } &&
c9a66001 18839 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18840 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18841 (eval $ac_try) 2>&5
18842 ac_status=$?
18843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18844 (exit $ac_status); }; } &&
18845 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18846 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18847 (eval $ac_try) 2>&5
18848 ac_status=$?
18849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18850 (exit $ac_status); }; }; then
18851 ac_lo=0 ac_mid=0
18852 while :; do
18853 cat >conftest.$ac_ext <<_ACEOF
18854/* confdefs.h. */
18855_ACEOF
18856cat confdefs.h >>conftest.$ac_ext
18857cat >>conftest.$ac_ext <<_ACEOF
18858/* end confdefs.h. */
18859$ac_includes_default
18860int
18861main ()
18862{
18863static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
18864test_array [0] = 0
18865
18866 ;
18867 return 0;
18868}
18869_ACEOF
18870rm -f conftest.$ac_objext
18871if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18872 (eval $ac_compile) 2>conftest.er1
a848cd7e 18873 ac_status=$?
ac1cb8d3
VS
18874 grep -v '^ *+' conftest.er1 >conftest.err
18875 rm -f conftest.er1
18876 cat conftest.err >&5
a848cd7e
SC
18877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18878 (exit $ac_status); } &&
c9a66001 18879 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18880 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18881 (eval $ac_try) 2>&5
18882 ac_status=$?
18883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18884 (exit $ac_status); }; } &&
18885 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18886 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18887 (eval $ac_try) 2>&5
18888 ac_status=$?
18889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18890 (exit $ac_status); }; }; then
18891 ac_hi=$ac_mid; break
18892else
18893 echo "$as_me: failed program was:" >&5
18894sed 's/^/| /' conftest.$ac_ext >&5
18895
18896ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
18897 if test $ac_lo -le $ac_mid; then
18898 ac_lo= ac_hi=
18899 break
18900 fi
18901 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 18902fi
ac1cb8d3 18903rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18904 done
18905else
18906 echo "$as_me: failed program was:" >&5
18907sed 's/^/| /' conftest.$ac_ext >&5
18908
18909cat >conftest.$ac_ext <<_ACEOF
18910/* confdefs.h. */
18911_ACEOF
18912cat confdefs.h >>conftest.$ac_ext
18913cat >>conftest.$ac_ext <<_ACEOF
18914/* end confdefs.h. */
18915$ac_includes_default
18916int
18917main ()
18918{
18919static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
18920test_array [0] = 0
18921
18922 ;
18923 return 0;
18924}
18925_ACEOF
18926rm -f conftest.$ac_objext
18927if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18928 (eval $ac_compile) 2>conftest.er1
a848cd7e 18929 ac_status=$?
ac1cb8d3
VS
18930 grep -v '^ *+' conftest.er1 >conftest.err
18931 rm -f conftest.er1
18932 cat conftest.err >&5
a848cd7e
SC
18933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18934 (exit $ac_status); } &&
c9a66001 18935 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18936 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18937 (eval $ac_try) 2>&5
18938 ac_status=$?
18939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18940 (exit $ac_status); }; } &&
18941 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18942 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18943 (eval $ac_try) 2>&5
18944 ac_status=$?
18945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18946 (exit $ac_status); }; }; then
18947 ac_hi=-1 ac_mid=-1
18948 while :; do
18949 cat >conftest.$ac_ext <<_ACEOF
18950/* confdefs.h. */
18951_ACEOF
18952cat confdefs.h >>conftest.$ac_ext
18953cat >>conftest.$ac_ext <<_ACEOF
18954/* end confdefs.h. */
18955$ac_includes_default
18956int
18957main ()
18958{
18959static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
18960test_array [0] = 0
18961
18962 ;
18963 return 0;
18964}
18965_ACEOF
18966rm -f conftest.$ac_objext
18967if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18968 (eval $ac_compile) 2>conftest.er1
a848cd7e 18969 ac_status=$?
ac1cb8d3
VS
18970 grep -v '^ *+' conftest.er1 >conftest.err
18971 rm -f conftest.er1
18972 cat conftest.err >&5
a848cd7e
SC
18973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18974 (exit $ac_status); } &&
c9a66001 18975 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18976 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18977 (eval $ac_try) 2>&5
18978 ac_status=$?
18979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18980 (exit $ac_status); }; } &&
18981 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18982 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18983 (eval $ac_try) 2>&5
18984 ac_status=$?
18985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18986 (exit $ac_status); }; }; then
18987 ac_lo=$ac_mid; break
18988else
18989 echo "$as_me: failed program was:" >&5
18990sed 's/^/| /' conftest.$ac_ext >&5
18991
18992ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
18993 if test $ac_mid -le $ac_hi; then
18994 ac_lo= ac_hi=
18995 break
18996 fi
18997 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 18998fi
ac1cb8d3 18999rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19000 done
19001else
19002 echo "$as_me: failed program was:" >&5
19003sed 's/^/| /' conftest.$ac_ext >&5
19004
19005ac_lo= ac_hi=
19006fi
ac1cb8d3 19007rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 19008fi
ac1cb8d3 19009rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19010# Binary search between lo and hi bounds.
19011while test "x$ac_lo" != "x$ac_hi"; do
19012 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
19013 cat >conftest.$ac_ext <<_ACEOF
19014/* confdefs.h. */
19015_ACEOF
19016cat confdefs.h >>conftest.$ac_ext
19017cat >>conftest.$ac_ext <<_ACEOF
19018/* end confdefs.h. */
19019$ac_includes_default
19020int
19021main ()
19022{
19023static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
19024test_array [0] = 0
19025
19026 ;
19027 return 0;
19028}
19029_ACEOF
19030rm -f conftest.$ac_objext
19031if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19032 (eval $ac_compile) 2>conftest.er1
a848cd7e 19033 ac_status=$?
ac1cb8d3
VS
19034 grep -v '^ *+' conftest.er1 >conftest.err
19035 rm -f conftest.er1
19036 cat conftest.err >&5
a848cd7e
SC
19037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19038 (exit $ac_status); } &&
c9a66001 19039 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19040 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19041 (eval $ac_try) 2>&5
19042 ac_status=$?
19043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19044 (exit $ac_status); }; } &&
19045 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19046 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19047 (eval $ac_try) 2>&5
19048 ac_status=$?
19049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19050 (exit $ac_status); }; }; then
19051 ac_hi=$ac_mid
19052else
19053 echo "$as_me: failed program was:" >&5
19054sed 's/^/| /' conftest.$ac_ext >&5
19055
19056ac_lo=`expr '(' $ac_mid ')' + 1`
19057fi
ac1cb8d3 19058rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19059done
19060case $ac_lo in
19061?*) ac_cv_sizeof_int=$ac_lo;;
19062'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
19063See \`config.log' for more details." >&5
19064echo "$as_me: error: cannot compute sizeof (int), 77
19065See \`config.log' for more details." >&2;}
19066 { (exit 1); exit 1; }; } ;;
19067esac
19068else
19069 if test "$cross_compiling" = yes; then
c9a66001
VZ
19070 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
19071echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
a848cd7e
SC
19072 { (exit 1); exit 1; }; }
19073else
19074 cat >conftest.$ac_ext <<_ACEOF
19075/* confdefs.h. */
19076_ACEOF
19077cat confdefs.h >>conftest.$ac_ext
19078cat >>conftest.$ac_ext <<_ACEOF
19079/* end confdefs.h. */
19080$ac_includes_default
19081long longval () { return (long) (sizeof (int)); }
19082unsigned long ulongval () { return (long) (sizeof (int)); }
19083#include <stdio.h>
19084#include <stdlib.h>
19085int
19086main ()
19087{
19088
19089 FILE *f = fopen ("conftest.val", "w");
19090 if (! f)
19091 exit (1);
19092 if (((long) (sizeof (int))) < 0)
19093 {
19094 long i = longval ();
19095 if (i != ((long) (sizeof (int))))
19096 exit (1);
19097 fprintf (f, "%ld\n", i);
19098 }
19099 else
19100 {
19101 unsigned long i = ulongval ();
19102 if (i != ((long) (sizeof (int))))
19103 exit (1);
19104 fprintf (f, "%lu\n", i);
19105 }
19106 exit (ferror (f) || fclose (f) != 0);
19107
19108 ;
19109 return 0;
19110}
19111_ACEOF
19112rm -f conftest$ac_exeext
19113if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19114 (eval $ac_link) 2>&5
19115 ac_status=$?
19116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19117 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19118 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19119 (eval $ac_try) 2>&5
19120 ac_status=$?
19121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19122 (exit $ac_status); }; }; then
19123 ac_cv_sizeof_int=`cat conftest.val`
19124else
19125 echo "$as_me: program exited with status $ac_status" >&5
19126echo "$as_me: failed program was:" >&5
19127sed 's/^/| /' conftest.$ac_ext >&5
19128
19129( exit $ac_status )
19130{ { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
19131See \`config.log' for more details." >&5
19132echo "$as_me: error: cannot compute sizeof (int), 77
19133See \`config.log' for more details." >&2;}
19134 { (exit 1); exit 1; }; }
19135fi
ac1cb8d3 19136rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19137fi
19138fi
19139rm -f conftest.val
19140else
19141 ac_cv_sizeof_int=0
19142fi
19143fi
19144echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
19145echo "${ECHO_T}$ac_cv_sizeof_int" >&6
19146cat >>confdefs.h <<_ACEOF
19147#define SIZEOF_INT $ac_cv_sizeof_int
19148_ACEOF
19149
19150
19151echo "$as_me:$LINENO: checking for long" >&5
19152echo $ECHO_N "checking for long... $ECHO_C" >&6
19153if test "${ac_cv_type_long+set}" = set; then
19154 echo $ECHO_N "(cached) $ECHO_C" >&6
19155else
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{
19166if ((long *) 0)
19167 return 0;
19168if (sizeof (long))
19169 return 0;
19170 ;
19171 return 0;
19172}
19173_ACEOF
19174rm -f conftest.$ac_objext
19175if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19176 (eval $ac_compile) 2>conftest.er1
a848cd7e 19177 ac_status=$?
ac1cb8d3
VS
19178 grep -v '^ *+' conftest.er1 >conftest.err
19179 rm -f conftest.er1
19180 cat conftest.err >&5
a848cd7e
SC
19181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19182 (exit $ac_status); } &&
c9a66001 19183 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19184 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19185 (eval $ac_try) 2>&5
19186 ac_status=$?
19187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19188 (exit $ac_status); }; } &&
19189 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19190 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19191 (eval $ac_try) 2>&5
19192 ac_status=$?
19193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19194 (exit $ac_status); }; }; then
19195 ac_cv_type_long=yes
19196else
19197 echo "$as_me: failed program was:" >&5
19198sed 's/^/| /' conftest.$ac_ext >&5
19199
19200ac_cv_type_long=no
19201fi
ac1cb8d3 19202rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19203fi
19204echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
19205echo "${ECHO_T}$ac_cv_type_long" >&6
19206
19207echo "$as_me:$LINENO: checking size of long" >&5
19208echo $ECHO_N "checking size of long... $ECHO_C" >&6
19209if test "${ac_cv_sizeof_long+set}" = set; then
19210 echo $ECHO_N "(cached) $ECHO_C" >&6
19211else
19212 if test "$ac_cv_type_long" = yes; then
19213 # The cast to unsigned long works around a bug in the HP C Compiler
19214 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
19215 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
19216 # This bug is HP SR number 8606223364.
19217 if test "$cross_compiling" = yes; then
19218 # Depending upon the size, compute the lo and hi bounds.
19219cat >conftest.$ac_ext <<_ACEOF
19220/* confdefs.h. */
19221_ACEOF
19222cat confdefs.h >>conftest.$ac_ext
19223cat >>conftest.$ac_ext <<_ACEOF
19224/* end confdefs.h. */
19225$ac_includes_default
19226int
19227main ()
19228{
19229static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
19230test_array [0] = 0
19231
19232 ;
19233 return 0;
19234}
19235_ACEOF
19236rm -f conftest.$ac_objext
19237if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19238 (eval $ac_compile) 2>conftest.er1
a848cd7e 19239 ac_status=$?
ac1cb8d3
VS
19240 grep -v '^ *+' conftest.er1 >conftest.err
19241 rm -f conftest.er1
19242 cat conftest.err >&5
a848cd7e
SC
19243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19244 (exit $ac_status); } &&
c9a66001 19245 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19246 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19247 (eval $ac_try) 2>&5
19248 ac_status=$?
19249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19250 (exit $ac_status); }; } &&
19251 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19252 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19253 (eval $ac_try) 2>&5
19254 ac_status=$?
19255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19256 (exit $ac_status); }; }; then
19257 ac_lo=0 ac_mid=0
19258 while :; do
19259 cat >conftest.$ac_ext <<_ACEOF
19260/* confdefs.h. */
19261_ACEOF
19262cat confdefs.h >>conftest.$ac_ext
19263cat >>conftest.$ac_ext <<_ACEOF
19264/* end confdefs.h. */
19265$ac_includes_default
19266int
19267main ()
19268{
19269static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
19270test_array [0] = 0
19271
19272 ;
19273 return 0;
19274}
19275_ACEOF
19276rm -f conftest.$ac_objext
19277if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19278 (eval $ac_compile) 2>conftest.er1
a848cd7e 19279 ac_status=$?
ac1cb8d3
VS
19280 grep -v '^ *+' conftest.er1 >conftest.err
19281 rm -f conftest.er1
19282 cat conftest.err >&5
a848cd7e
SC
19283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19284 (exit $ac_status); } &&
c9a66001 19285 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19286 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19287 (eval $ac_try) 2>&5
19288 ac_status=$?
19289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19290 (exit $ac_status); }; } &&
19291 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19292 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19293 (eval $ac_try) 2>&5
19294 ac_status=$?
19295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19296 (exit $ac_status); }; }; then
19297 ac_hi=$ac_mid; break
19298else
19299 echo "$as_me: failed program was:" >&5
19300sed 's/^/| /' conftest.$ac_ext >&5
19301
19302ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
19303 if test $ac_lo -le $ac_mid; then
19304 ac_lo= ac_hi=
19305 break
19306 fi
19307 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 19308fi
ac1cb8d3 19309rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19310 done
19311else
19312 echo "$as_me: failed program was:" >&5
19313sed 's/^/| /' conftest.$ac_ext >&5
19314
19315cat >conftest.$ac_ext <<_ACEOF
19316/* confdefs.h. */
19317_ACEOF
19318cat confdefs.h >>conftest.$ac_ext
19319cat >>conftest.$ac_ext <<_ACEOF
19320/* end confdefs.h. */
19321$ac_includes_default
19322int
19323main ()
19324{
19325static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
19326test_array [0] = 0
19327
19328 ;
19329 return 0;
19330}
19331_ACEOF
19332rm -f conftest.$ac_objext
19333if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19334 (eval $ac_compile) 2>conftest.er1
a848cd7e 19335 ac_status=$?
ac1cb8d3
VS
19336 grep -v '^ *+' conftest.er1 >conftest.err
19337 rm -f conftest.er1
19338 cat conftest.err >&5
a848cd7e
SC
19339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19340 (exit $ac_status); } &&
c9a66001 19341 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19342 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19343 (eval $ac_try) 2>&5
19344 ac_status=$?
19345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19346 (exit $ac_status); }; } &&
19347 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19348 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19349 (eval $ac_try) 2>&5
19350 ac_status=$?
19351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19352 (exit $ac_status); }; }; then
19353 ac_hi=-1 ac_mid=-1
19354 while :; do
19355 cat >conftest.$ac_ext <<_ACEOF
19356/* confdefs.h. */
19357_ACEOF
19358cat confdefs.h >>conftest.$ac_ext
19359cat >>conftest.$ac_ext <<_ACEOF
19360/* end confdefs.h. */
19361$ac_includes_default
19362int
19363main ()
19364{
19365static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
19366test_array [0] = 0
19367
19368 ;
19369 return 0;
19370}
19371_ACEOF
19372rm -f conftest.$ac_objext
19373if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19374 (eval $ac_compile) 2>conftest.er1
a848cd7e 19375 ac_status=$?
ac1cb8d3
VS
19376 grep -v '^ *+' conftest.er1 >conftest.err
19377 rm -f conftest.er1
19378 cat conftest.err >&5
a848cd7e
SC
19379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19380 (exit $ac_status); } &&
c9a66001 19381 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19382 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19383 (eval $ac_try) 2>&5
19384 ac_status=$?
19385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19386 (exit $ac_status); }; } &&
19387 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19388 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19389 (eval $ac_try) 2>&5
19390 ac_status=$?
19391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19392 (exit $ac_status); }; }; then
19393 ac_lo=$ac_mid; break
19394else
19395 echo "$as_me: failed program was:" >&5
19396sed 's/^/| /' conftest.$ac_ext >&5
19397
19398ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
19399 if test $ac_mid -le $ac_hi; then
19400 ac_lo= ac_hi=
19401 break
19402 fi
19403 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 19404fi
ac1cb8d3 19405rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19406 done
19407else
19408 echo "$as_me: failed program was:" >&5
19409sed 's/^/| /' conftest.$ac_ext >&5
19410
19411ac_lo= ac_hi=
19412fi
ac1cb8d3 19413rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 19414fi
ac1cb8d3 19415rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19416# Binary search between lo and hi bounds.
19417while test "x$ac_lo" != "x$ac_hi"; do
19418 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
19419 cat >conftest.$ac_ext <<_ACEOF
19420/* confdefs.h. */
19421_ACEOF
19422cat confdefs.h >>conftest.$ac_ext
19423cat >>conftest.$ac_ext <<_ACEOF
19424/* end confdefs.h. */
19425$ac_includes_default
19426int
19427main ()
19428{
19429static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
19430test_array [0] = 0
19431
19432 ;
19433 return 0;
19434}
19435_ACEOF
19436rm -f conftest.$ac_objext
19437if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19438 (eval $ac_compile) 2>conftest.er1
a848cd7e 19439 ac_status=$?
ac1cb8d3
VS
19440 grep -v '^ *+' conftest.er1 >conftest.err
19441 rm -f conftest.er1
19442 cat conftest.err >&5
a848cd7e
SC
19443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19444 (exit $ac_status); } &&
c9a66001 19445 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19446 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19447 (eval $ac_try) 2>&5
19448 ac_status=$?
19449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19450 (exit $ac_status); }; } &&
19451 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19452 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19453 (eval $ac_try) 2>&5
19454 ac_status=$?
19455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19456 (exit $ac_status); }; }; then
19457 ac_hi=$ac_mid
19458else
19459 echo "$as_me: failed program was:" >&5
19460sed 's/^/| /' conftest.$ac_ext >&5
19461
19462ac_lo=`expr '(' $ac_mid ')' + 1`
19463fi
ac1cb8d3 19464rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19465done
19466case $ac_lo in
19467?*) ac_cv_sizeof_long=$ac_lo;;
19468'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
19469See \`config.log' for more details." >&5
19470echo "$as_me: error: cannot compute sizeof (long), 77
19471See \`config.log' for more details." >&2;}
19472 { (exit 1); exit 1; }; } ;;
19473esac
19474else
19475 if test "$cross_compiling" = yes; then
c9a66001
VZ
19476 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
19477echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
a848cd7e
SC
19478 { (exit 1); exit 1; }; }
19479else
19480 cat >conftest.$ac_ext <<_ACEOF
19481/* confdefs.h. */
19482_ACEOF
19483cat confdefs.h >>conftest.$ac_ext
19484cat >>conftest.$ac_ext <<_ACEOF
19485/* end confdefs.h. */
19486$ac_includes_default
19487long longval () { return (long) (sizeof (long)); }
19488unsigned long ulongval () { return (long) (sizeof (long)); }
19489#include <stdio.h>
19490#include <stdlib.h>
19491int
19492main ()
19493{
19494
19495 FILE *f = fopen ("conftest.val", "w");
19496 if (! f)
19497 exit (1);
19498 if (((long) (sizeof (long))) < 0)
19499 {
19500 long i = longval ();
19501 if (i != ((long) (sizeof (long))))
19502 exit (1);
19503 fprintf (f, "%ld\n", i);
19504 }
19505 else
19506 {
19507 unsigned long i = ulongval ();
19508 if (i != ((long) (sizeof (long))))
19509 exit (1);
19510 fprintf (f, "%lu\n", i);
19511 }
19512 exit (ferror (f) || fclose (f) != 0);
19513
19514 ;
19515 return 0;
19516}
19517_ACEOF
19518rm -f conftest$ac_exeext
19519if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19520 (eval $ac_link) 2>&5
19521 ac_status=$?
19522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19523 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19524 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19525 (eval $ac_try) 2>&5
19526 ac_status=$?
19527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19528 (exit $ac_status); }; }; then
19529 ac_cv_sizeof_long=`cat conftest.val`
19530else
19531 echo "$as_me: program exited with status $ac_status" >&5
19532echo "$as_me: failed program was:" >&5
19533sed 's/^/| /' conftest.$ac_ext >&5
19534
19535( exit $ac_status )
19536{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
19537See \`config.log' for more details." >&5
19538echo "$as_me: error: cannot compute sizeof (long), 77
19539See \`config.log' for more details." >&2;}
19540 { (exit 1); exit 1; }; }
19541fi
ac1cb8d3 19542rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19543fi
19544fi
19545rm -f conftest.val
19546else
19547 ac_cv_sizeof_long=0
19548fi
19549fi
19550echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
19551echo "${ECHO_T}$ac_cv_sizeof_long" >&6
19552cat >>confdefs.h <<_ACEOF
19553#define SIZEOF_LONG $ac_cv_sizeof_long
19554_ACEOF
19555
19556
19557echo "$as_me:$LINENO: checking for size_t" >&5
19558echo $ECHO_N "checking for size_t... $ECHO_C" >&6
19559if test "${ac_cv_type_size_t+set}" = set; then
19560 echo $ECHO_N "(cached) $ECHO_C" >&6
19561else
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{
19572if ((size_t *) 0)
19573 return 0;
19574if (sizeof (size_t))
19575 return 0;
19576 ;
19577 return 0;
19578}
19579_ACEOF
19580rm -f conftest.$ac_objext
19581if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19582 (eval $ac_compile) 2>conftest.er1
a848cd7e 19583 ac_status=$?
ac1cb8d3
VS
19584 grep -v '^ *+' conftest.er1 >conftest.err
19585 rm -f conftest.er1
19586 cat conftest.err >&5
a848cd7e
SC
19587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19588 (exit $ac_status); } &&
c9a66001 19589 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19590 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19591 (eval $ac_try) 2>&5
19592 ac_status=$?
19593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19594 (exit $ac_status); }; } &&
19595 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19596 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19597 (eval $ac_try) 2>&5
19598 ac_status=$?
19599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19600 (exit $ac_status); }; }; then
19601 ac_cv_type_size_t=yes
19602else
19603 echo "$as_me: failed program was:" >&5
19604sed 's/^/| /' conftest.$ac_ext >&5
19605
19606ac_cv_type_size_t=no
19607fi
ac1cb8d3 19608rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19609fi
19610echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
19611echo "${ECHO_T}$ac_cv_type_size_t" >&6
19612
19613echo "$as_me:$LINENO: checking size of size_t" >&5
19614echo $ECHO_N "checking size of size_t... $ECHO_C" >&6
19615if test "${ac_cv_sizeof_size_t+set}" = set; then
19616 echo $ECHO_N "(cached) $ECHO_C" >&6
19617else
19618 if test "$ac_cv_type_size_t" = yes; then
19619 # The cast to unsigned long works around a bug in the HP C Compiler
19620 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
19621 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
19622 # This bug is HP SR number 8606223364.
19623 if test "$cross_compiling" = yes; then
19624 # Depending upon the size, compute the lo and hi bounds.
19625cat >conftest.$ac_ext <<_ACEOF
19626/* confdefs.h. */
19627_ACEOF
19628cat confdefs.h >>conftest.$ac_ext
19629cat >>conftest.$ac_ext <<_ACEOF
19630/* end confdefs.h. */
19631$ac_includes_default
19632int
19633main ()
19634{
19635static int test_array [1 - 2 * !(((long) (sizeof (size_t))) >= 0)];
19636test_array [0] = 0
19637
19638 ;
19639 return 0;
19640}
19641_ACEOF
19642rm -f conftest.$ac_objext
19643if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19644 (eval $ac_compile) 2>conftest.er1
a848cd7e 19645 ac_status=$?
ac1cb8d3
VS
19646 grep -v '^ *+' conftest.er1 >conftest.err
19647 rm -f conftest.er1
19648 cat conftest.err >&5
a848cd7e
SC
19649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19650 (exit $ac_status); } &&
c9a66001 19651 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19652 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19653 (eval $ac_try) 2>&5
19654 ac_status=$?
19655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19656 (exit $ac_status); }; } &&
19657 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19658 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19659 (eval $ac_try) 2>&5
19660 ac_status=$?
19661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19662 (exit $ac_status); }; }; then
19663 ac_lo=0 ac_mid=0
19664 while :; do
19665 cat >conftest.$ac_ext <<_ACEOF
19666/* confdefs.h. */
19667_ACEOF
19668cat confdefs.h >>conftest.$ac_ext
19669cat >>conftest.$ac_ext <<_ACEOF
19670/* end confdefs.h. */
19671$ac_includes_default
19672int
19673main ()
19674{
19675static int test_array [1 - 2 * !(((long) (sizeof (size_t))) <= $ac_mid)];
19676test_array [0] = 0
19677
19678 ;
19679 return 0;
19680}
19681_ACEOF
19682rm -f conftest.$ac_objext
19683if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19684 (eval $ac_compile) 2>conftest.er1
a848cd7e 19685 ac_status=$?
ac1cb8d3
VS
19686 grep -v '^ *+' conftest.er1 >conftest.err
19687 rm -f conftest.er1
19688 cat conftest.err >&5
a848cd7e
SC
19689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19690 (exit $ac_status); } &&
c9a66001 19691 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19692 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19693 (eval $ac_try) 2>&5
19694 ac_status=$?
19695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19696 (exit $ac_status); }; } &&
19697 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19698 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19699 (eval $ac_try) 2>&5
19700 ac_status=$?
19701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19702 (exit $ac_status); }; }; then
19703 ac_hi=$ac_mid; break
19704else
19705 echo "$as_me: failed program was:" >&5
19706sed 's/^/| /' conftest.$ac_ext >&5
19707
19708ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
19709 if test $ac_lo -le $ac_mid; then
19710 ac_lo= ac_hi=
19711 break
19712 fi
19713 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 19714fi
ac1cb8d3 19715rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19716 done
19717else
19718 echo "$as_me: failed program was:" >&5
19719sed 's/^/| /' conftest.$ac_ext >&5
19720
19721cat >conftest.$ac_ext <<_ACEOF
19722/* confdefs.h. */
19723_ACEOF
19724cat confdefs.h >>conftest.$ac_ext
19725cat >>conftest.$ac_ext <<_ACEOF
19726/* end confdefs.h. */
19727$ac_includes_default
19728int
19729main ()
19730{
19731static int test_array [1 - 2 * !(((long) (sizeof (size_t))) < 0)];
19732test_array [0] = 0
19733
19734 ;
19735 return 0;
19736}
19737_ACEOF
19738rm -f conftest.$ac_objext
19739if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19740 (eval $ac_compile) 2>conftest.er1
a848cd7e 19741 ac_status=$?
ac1cb8d3
VS
19742 grep -v '^ *+' conftest.er1 >conftest.err
19743 rm -f conftest.er1
19744 cat conftest.err >&5
a848cd7e
SC
19745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19746 (exit $ac_status); } &&
c9a66001 19747 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19748 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19749 (eval $ac_try) 2>&5
19750 ac_status=$?
19751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19752 (exit $ac_status); }; } &&
19753 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19754 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19755 (eval $ac_try) 2>&5
19756 ac_status=$?
19757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19758 (exit $ac_status); }; }; then
19759 ac_hi=-1 ac_mid=-1
19760 while :; do
19761 cat >conftest.$ac_ext <<_ACEOF
19762/* confdefs.h. */
19763_ACEOF
19764cat confdefs.h >>conftest.$ac_ext
19765cat >>conftest.$ac_ext <<_ACEOF
19766/* end confdefs.h. */
19767$ac_includes_default
19768int
19769main ()
19770{
19771static int test_array [1 - 2 * !(((long) (sizeof (size_t))) >= $ac_mid)];
19772test_array [0] = 0
19773
19774 ;
19775 return 0;
19776}
19777_ACEOF
19778rm -f conftest.$ac_objext
19779if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19780 (eval $ac_compile) 2>conftest.er1
a848cd7e 19781 ac_status=$?
ac1cb8d3
VS
19782 grep -v '^ *+' conftest.er1 >conftest.err
19783 rm -f conftest.er1
19784 cat conftest.err >&5
a848cd7e
SC
19785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19786 (exit $ac_status); } &&
c9a66001 19787 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19788 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19789 (eval $ac_try) 2>&5
19790 ac_status=$?
19791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19792 (exit $ac_status); }; } &&
19793 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19794 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19795 (eval $ac_try) 2>&5
19796 ac_status=$?
19797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19798 (exit $ac_status); }; }; then
19799 ac_lo=$ac_mid; break
19800else
19801 echo "$as_me: failed program was:" >&5
19802sed 's/^/| /' conftest.$ac_ext >&5
19803
19804ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
19805 if test $ac_mid -le $ac_hi; then
19806 ac_lo= ac_hi=
19807 break
19808 fi
19809 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 19810fi
ac1cb8d3 19811rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19812 done
19813else
19814 echo "$as_me: failed program was:" >&5
19815sed 's/^/| /' conftest.$ac_ext >&5
19816
19817ac_lo= ac_hi=
19818fi
ac1cb8d3 19819rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 19820fi
ac1cb8d3 19821rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19822# Binary search between lo and hi bounds.
19823while test "x$ac_lo" != "x$ac_hi"; do
19824 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
19825 cat >conftest.$ac_ext <<_ACEOF
19826/* confdefs.h. */
19827_ACEOF
19828cat confdefs.h >>conftest.$ac_ext
19829cat >>conftest.$ac_ext <<_ACEOF
19830/* end confdefs.h. */
19831$ac_includes_default
19832int
19833main ()
19834{
19835static int test_array [1 - 2 * !(((long) (sizeof (size_t))) <= $ac_mid)];
19836test_array [0] = 0
19837
19838 ;
19839 return 0;
19840}
19841_ACEOF
19842rm -f conftest.$ac_objext
19843if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19844 (eval $ac_compile) 2>conftest.er1
a848cd7e 19845 ac_status=$?
ac1cb8d3
VS
19846 grep -v '^ *+' conftest.er1 >conftest.err
19847 rm -f conftest.er1
19848 cat conftest.err >&5
a848cd7e
SC
19849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19850 (exit $ac_status); } &&
c9a66001 19851 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19852 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19853 (eval $ac_try) 2>&5
19854 ac_status=$?
19855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19856 (exit $ac_status); }; } &&
19857 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19858 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19859 (eval $ac_try) 2>&5
19860 ac_status=$?
19861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19862 (exit $ac_status); }; }; then
19863 ac_hi=$ac_mid
19864else
19865 echo "$as_me: failed program was:" >&5
19866sed 's/^/| /' conftest.$ac_ext >&5
19867
19868ac_lo=`expr '(' $ac_mid ')' + 1`
19869fi
ac1cb8d3 19870rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19871done
19872case $ac_lo in
19873?*) ac_cv_sizeof_size_t=$ac_lo;;
19874'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t), 77
19875See \`config.log' for more details." >&5
19876echo "$as_me: error: cannot compute sizeof (size_t), 77
19877See \`config.log' for more details." >&2;}
19878 { (exit 1); exit 1; }; } ;;
19879esac
19880else
19881 if test "$cross_compiling" = yes; then
c9a66001
VZ
19882 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
19883echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
a848cd7e
SC
19884 { (exit 1); exit 1; }; }
19885else
19886 cat >conftest.$ac_ext <<_ACEOF
19887/* confdefs.h. */
19888_ACEOF
19889cat confdefs.h >>conftest.$ac_ext
19890cat >>conftest.$ac_ext <<_ACEOF
19891/* end confdefs.h. */
19892$ac_includes_default
19893long longval () { return (long) (sizeof (size_t)); }
19894unsigned long ulongval () { return (long) (sizeof (size_t)); }
19895#include <stdio.h>
19896#include <stdlib.h>
19897int
19898main ()
19899{
19900
19901 FILE *f = fopen ("conftest.val", "w");
19902 if (! f)
19903 exit (1);
19904 if (((long) (sizeof (size_t))) < 0)
19905 {
19906 long i = longval ();
19907 if (i != ((long) (sizeof (size_t))))
19908 exit (1);
19909 fprintf (f, "%ld\n", i);
19910 }
19911 else
19912 {
19913 unsigned long i = ulongval ();
19914 if (i != ((long) (sizeof (size_t))))
19915 exit (1);
19916 fprintf (f, "%lu\n", i);
19917 }
19918 exit (ferror (f) || fclose (f) != 0);
19919
19920 ;
19921 return 0;
19922}
19923_ACEOF
19924rm -f conftest$ac_exeext
19925if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19926 (eval $ac_link) 2>&5
19927 ac_status=$?
19928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19929 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19930 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19931 (eval $ac_try) 2>&5
19932 ac_status=$?
19933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19934 (exit $ac_status); }; }; then
19935 ac_cv_sizeof_size_t=`cat conftest.val`
19936else
19937 echo "$as_me: program exited with status $ac_status" >&5
19938echo "$as_me: failed program was:" >&5
19939sed 's/^/| /' conftest.$ac_ext >&5
19940
19941( exit $ac_status )
19942{ { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t), 77
19943See \`config.log' for more details." >&5
19944echo "$as_me: error: cannot compute sizeof (size_t), 77
19945See \`config.log' for more details." >&2;}
19946 { (exit 1); exit 1; }; }
19947fi
ac1cb8d3 19948rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19949fi
19950fi
19951rm -f conftest.val
19952else
19953 ac_cv_sizeof_size_t=0
19954fi
19955fi
19956echo "$as_me:$LINENO: result: $ac_cv_sizeof_size_t" >&5
19957echo "${ECHO_T}$ac_cv_sizeof_size_t" >&6
19958cat >>confdefs.h <<_ACEOF
19959#define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
19960_ACEOF
19961
19962
19963
19964case "${host}" in
19965 arm-*-linux* )
19966 echo "$as_me:$LINENO: checking for long long" >&5
19967echo $ECHO_N "checking for long long... $ECHO_C" >&6
19968if test "${ac_cv_type_long_long+set}" = set; then
19969 echo $ECHO_N "(cached) $ECHO_C" >&6
19970else
19971 cat >conftest.$ac_ext <<_ACEOF
19972/* confdefs.h. */
19973_ACEOF
19974cat confdefs.h >>conftest.$ac_ext
19975cat >>conftest.$ac_ext <<_ACEOF
19976/* end confdefs.h. */
19977$ac_includes_default
19978int
19979main ()
19980{
19981if ((long long *) 0)
19982 return 0;
19983if (sizeof (long long))
19984 return 0;
19985 ;
19986 return 0;
19987}
19988_ACEOF
19989rm -f conftest.$ac_objext
19990if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19991 (eval $ac_compile) 2>conftest.er1
a848cd7e 19992 ac_status=$?
ac1cb8d3
VS
19993 grep -v '^ *+' conftest.er1 >conftest.err
19994 rm -f conftest.er1
19995 cat conftest.err >&5
a848cd7e
SC
19996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19997 (exit $ac_status); } &&
c9a66001 19998 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19999 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20000 (eval $ac_try) 2>&5
20001 ac_status=$?
20002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20003 (exit $ac_status); }; } &&
20004 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20005 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20006 (eval $ac_try) 2>&5
20007 ac_status=$?
20008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20009 (exit $ac_status); }; }; then
20010 ac_cv_type_long_long=yes
20011else
20012 echo "$as_me: failed program was:" >&5
20013sed 's/^/| /' conftest.$ac_ext >&5
20014
20015ac_cv_type_long_long=no
20016fi
ac1cb8d3 20017rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20018fi
20019echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
20020echo "${ECHO_T}$ac_cv_type_long_long" >&6
20021
20022echo "$as_me:$LINENO: checking size of long long" >&5
20023echo $ECHO_N "checking size of long long... $ECHO_C" >&6
20024if test "${ac_cv_sizeof_long_long+set}" = set; then
20025 echo $ECHO_N "(cached) $ECHO_C" >&6
20026else
20027 if test "$ac_cv_type_long_long" = yes; then
20028 # The cast to unsigned long works around a bug in the HP C Compiler
20029 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
20030 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
20031 # This bug is HP SR number 8606223364.
20032 if test "$cross_compiling" = yes; then
20033 # Depending upon the size, compute the lo and hi bounds.
20034cat >conftest.$ac_ext <<_ACEOF
20035/* confdefs.h. */
20036_ACEOF
20037cat confdefs.h >>conftest.$ac_ext
20038cat >>conftest.$ac_ext <<_ACEOF
20039/* end confdefs.h. */
20040$ac_includes_default
20041int
20042main ()
20043{
20044static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
20045test_array [0] = 0
20046
20047 ;
20048 return 0;
20049}
20050_ACEOF
20051rm -f conftest.$ac_objext
20052if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20053 (eval $ac_compile) 2>conftest.er1
a848cd7e 20054 ac_status=$?
ac1cb8d3
VS
20055 grep -v '^ *+' conftest.er1 >conftest.err
20056 rm -f conftest.er1
20057 cat conftest.err >&5
a848cd7e
SC
20058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20059 (exit $ac_status); } &&
c9a66001 20060 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
20061 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20062 (eval $ac_try) 2>&5
20063 ac_status=$?
20064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20065 (exit $ac_status); }; } &&
20066 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20067 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20068 (eval $ac_try) 2>&5
20069 ac_status=$?
20070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20071 (exit $ac_status); }; }; then
20072 ac_lo=0 ac_mid=0
20073 while :; do
20074 cat >conftest.$ac_ext <<_ACEOF
20075/* confdefs.h. */
20076_ACEOF
20077cat confdefs.h >>conftest.$ac_ext
20078cat >>conftest.$ac_ext <<_ACEOF
20079/* end confdefs.h. */
20080$ac_includes_default
20081int
20082main ()
20083{
20084static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
20085test_array [0] = 0
20086
20087 ;
20088 return 0;
20089}
20090_ACEOF
20091rm -f conftest.$ac_objext
20092if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20093 (eval $ac_compile) 2>conftest.er1
a848cd7e 20094 ac_status=$?
ac1cb8d3
VS
20095 grep -v '^ *+' conftest.er1 >conftest.err
20096 rm -f conftest.er1
20097 cat conftest.err >&5
a848cd7e
SC
20098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20099 (exit $ac_status); } &&
c9a66001 20100 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
20101 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20102 (eval $ac_try) 2>&5
20103 ac_status=$?
20104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20105 (exit $ac_status); }; } &&
20106 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20107 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20108 (eval $ac_try) 2>&5
20109 ac_status=$?
20110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20111 (exit $ac_status); }; }; then
20112 ac_hi=$ac_mid; break
20113else
20114 echo "$as_me: failed program was:" >&5
20115sed 's/^/| /' conftest.$ac_ext >&5
20116
20117ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
20118 if test $ac_lo -le $ac_mid; then
20119 ac_lo= ac_hi=
20120 break
20121 fi
20122 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 20123fi
ac1cb8d3 20124rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20125 done
20126else
20127 echo "$as_me: failed program was:" >&5
20128sed 's/^/| /' conftest.$ac_ext >&5
20129
20130cat >conftest.$ac_ext <<_ACEOF
20131/* confdefs.h. */
20132_ACEOF
20133cat confdefs.h >>conftest.$ac_ext
20134cat >>conftest.$ac_ext <<_ACEOF
20135/* end confdefs.h. */
20136$ac_includes_default
20137int
20138main ()
20139{
20140static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
20141test_array [0] = 0
20142
20143 ;
20144 return 0;
20145}
20146_ACEOF
20147rm -f conftest.$ac_objext
20148if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20149 (eval $ac_compile) 2>conftest.er1
a848cd7e 20150 ac_status=$?
ac1cb8d3
VS
20151 grep -v '^ *+' conftest.er1 >conftest.err
20152 rm -f conftest.er1
20153 cat conftest.err >&5
a848cd7e
SC
20154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20155 (exit $ac_status); } &&
c9a66001 20156 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
20157 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20158 (eval $ac_try) 2>&5
20159 ac_status=$?
20160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20161 (exit $ac_status); }; } &&
20162 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20163 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20164 (eval $ac_try) 2>&5
20165 ac_status=$?
20166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20167 (exit $ac_status); }; }; then
20168 ac_hi=-1 ac_mid=-1
20169 while :; do
20170 cat >conftest.$ac_ext <<_ACEOF
20171/* confdefs.h. */
20172_ACEOF
20173cat confdefs.h >>conftest.$ac_ext
20174cat >>conftest.$ac_ext <<_ACEOF
20175/* end confdefs.h. */
20176$ac_includes_default
20177int
20178main ()
20179{
20180static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
20181test_array [0] = 0
20182
20183 ;
20184 return 0;
20185}
20186_ACEOF
20187rm -f conftest.$ac_objext
20188if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20189 (eval $ac_compile) 2>conftest.er1
a848cd7e 20190 ac_status=$?
ac1cb8d3
VS
20191 grep -v '^ *+' conftest.er1 >conftest.err
20192 rm -f conftest.er1
20193 cat conftest.err >&5
a848cd7e
SC
20194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20195 (exit $ac_status); } &&
c9a66001 20196 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
20197 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20198 (eval $ac_try) 2>&5
20199 ac_status=$?
20200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20201 (exit $ac_status); }; } &&
20202 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20203 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20204 (eval $ac_try) 2>&5
20205 ac_status=$?
20206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20207 (exit $ac_status); }; }; then
20208 ac_lo=$ac_mid; break
20209else
20210 echo "$as_me: failed program was:" >&5
20211sed 's/^/| /' conftest.$ac_ext >&5
20212
20213ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
20214 if test $ac_mid -le $ac_hi; then
20215 ac_lo= ac_hi=
20216 break
20217 fi
20218 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 20219fi
ac1cb8d3 20220rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20221 done
20222else
20223 echo "$as_me: failed program was:" >&5
20224sed 's/^/| /' conftest.$ac_ext >&5
20225
20226ac_lo= ac_hi=
20227fi
ac1cb8d3 20228rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 20229fi
ac1cb8d3 20230rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20231# Binary search between lo and hi bounds.
20232while test "x$ac_lo" != "x$ac_hi"; do
20233 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
20234 cat >conftest.$ac_ext <<_ACEOF
20235/* confdefs.h. */
20236_ACEOF
20237cat confdefs.h >>conftest.$ac_ext
20238cat >>conftest.$ac_ext <<_ACEOF
20239/* end confdefs.h. */
20240$ac_includes_default
20241int
20242main ()
20243{
20244static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
20245test_array [0] = 0
20246
20247 ;
20248 return 0;
20249}
20250_ACEOF
20251rm -f conftest.$ac_objext
20252if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20253 (eval $ac_compile) 2>conftest.er1
a848cd7e 20254 ac_status=$?
ac1cb8d3
VS
20255 grep -v '^ *+' conftest.er1 >conftest.err
20256 rm -f conftest.er1
20257 cat conftest.err >&5
a848cd7e
SC
20258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20259 (exit $ac_status); } &&
c9a66001 20260 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
20261 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20262 (eval $ac_try) 2>&5
20263 ac_status=$?
20264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20265 (exit $ac_status); }; } &&
20266 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20267 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20268 (eval $ac_try) 2>&5
20269 ac_status=$?
20270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20271 (exit $ac_status); }; }; then
20272 ac_hi=$ac_mid
20273else
20274 echo "$as_me: failed program was:" >&5
20275sed 's/^/| /' conftest.$ac_ext >&5
20276
20277ac_lo=`expr '(' $ac_mid ')' + 1`
20278fi
ac1cb8d3 20279rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20280done
20281case $ac_lo in
20282?*) ac_cv_sizeof_long_long=$ac_lo;;
20283'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
20284See \`config.log' for more details." >&5
20285echo "$as_me: error: cannot compute sizeof (long long), 77
20286See \`config.log' for more details." >&2;}
20287 { (exit 1); exit 1; }; } ;;
20288esac
20289else
20290 if test "$cross_compiling" = yes; then
c9a66001
VZ
20291 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
20292echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
a848cd7e
SC
20293 { (exit 1); exit 1; }; }
20294else
20295 cat >conftest.$ac_ext <<_ACEOF
20296/* confdefs.h. */
20297_ACEOF
20298cat confdefs.h >>conftest.$ac_ext
20299cat >>conftest.$ac_ext <<_ACEOF
20300/* end confdefs.h. */
20301$ac_includes_default
20302long longval () { return (long) (sizeof (long long)); }
20303unsigned long ulongval () { return (long) (sizeof (long long)); }
20304#include <stdio.h>
20305#include <stdlib.h>
20306int
20307main ()
20308{
20309
20310 FILE *f = fopen ("conftest.val", "w");
20311 if (! f)
20312 exit (1);
20313 if (((long) (sizeof (long long))) < 0)
20314 {
20315 long i = longval ();
20316 if (i != ((long) (sizeof (long long))))
20317 exit (1);
20318 fprintf (f, "%ld\n", i);
20319 }
20320 else
20321 {
20322 unsigned long i = ulongval ();
20323 if (i != ((long) (sizeof (long long))))
20324 exit (1);
20325 fprintf (f, "%lu\n", i);
20326 }
20327 exit (ferror (f) || fclose (f) != 0);
20328
20329 ;
20330 return 0;
20331}
20332_ACEOF
20333rm -f conftest$ac_exeext
20334if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20335 (eval $ac_link) 2>&5
20336 ac_status=$?
20337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20338 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20339 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20340 (eval $ac_try) 2>&5
20341 ac_status=$?
20342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20343 (exit $ac_status); }; }; then
20344 ac_cv_sizeof_long_long=`cat conftest.val`
20345else
20346 echo "$as_me: program exited with status $ac_status" >&5
20347echo "$as_me: failed program was:" >&5
20348sed 's/^/| /' conftest.$ac_ext >&5
20349
20350( exit $ac_status )
20351{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
20352See \`config.log' for more details." >&5
20353echo "$as_me: error: cannot compute sizeof (long long), 77
20354See \`config.log' for more details." >&2;}
20355 { (exit 1); exit 1; }; }
20356fi
ac1cb8d3 20357rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20358fi
20359fi
20360rm -f conftest.val
20361else
20362 ac_cv_sizeof_long_long=0
20363fi
20364fi
20365echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
20366echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
20367cat >>confdefs.h <<_ACEOF
20368#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
20369_ACEOF
20370
20371
20372 ;;
20373 *-hp-hpux* )
20374 echo "$as_me:$LINENO: checking for long long" >&5
20375echo $ECHO_N "checking for long long... $ECHO_C" >&6
20376if test "${ac_cv_type_long_long+set}" = set; then
20377 echo $ECHO_N "(cached) $ECHO_C" >&6
20378else
20379 cat >conftest.$ac_ext <<_ACEOF
20380/* confdefs.h. */
20381_ACEOF
20382cat confdefs.h >>conftest.$ac_ext
20383cat >>conftest.$ac_ext <<_ACEOF
20384/* end confdefs.h. */
20385$ac_includes_default
20386int
20387main ()
20388{
20389if ((long long *) 0)
20390 return 0;
20391if (sizeof (long long))
20392 return 0;
20393 ;
20394 return 0;
20395}
20396_ACEOF
20397rm -f conftest.$ac_objext
20398if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20399 (eval $ac_compile) 2>conftest.er1
a848cd7e 20400 ac_status=$?
ac1cb8d3
VS
20401 grep -v '^ *+' conftest.er1 >conftest.err
20402 rm -f conftest.er1
20403 cat conftest.err >&5
a848cd7e
SC
20404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20405 (exit $ac_status); } &&
c9a66001 20406 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
20407 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20408 (eval $ac_try) 2>&5
20409 ac_status=$?
20410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20411 (exit $ac_status); }; } &&
20412 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20413 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20414 (eval $ac_try) 2>&5
20415 ac_status=$?
20416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20417 (exit $ac_status); }; }; then
20418 ac_cv_type_long_long=yes
20419else
20420 echo "$as_me: failed program was:" >&5
20421sed 's/^/| /' conftest.$ac_ext >&5
20422
20423ac_cv_type_long_long=no
20424fi
ac1cb8d3 20425rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20426fi
20427echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
20428echo "${ECHO_T}$ac_cv_type_long_long" >&6
20429
20430echo "$as_me:$LINENO: checking size of long long" >&5
20431echo $ECHO_N "checking size of long long... $ECHO_C" >&6
20432if test "${ac_cv_sizeof_long_long+set}" = set; then
20433 echo $ECHO_N "(cached) $ECHO_C" >&6
20434else
20435 if test "$ac_cv_type_long_long" = yes; then
20436 # The cast to unsigned long works around a bug in the HP C Compiler
20437 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
20438 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
20439 # This bug is HP SR number 8606223364.
20440 if test "$cross_compiling" = yes; then
20441 # Depending upon the size, compute the lo and hi bounds.
20442cat >conftest.$ac_ext <<_ACEOF
20443/* confdefs.h. */
20444_ACEOF
20445cat confdefs.h >>conftest.$ac_ext
20446cat >>conftest.$ac_ext <<_ACEOF
20447/* end confdefs.h. */
20448$ac_includes_default
20449int
20450main ()
20451{
20452static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
20453test_array [0] = 0
20454
20455 ;
20456 return 0;
20457}
20458_ACEOF
20459rm -f conftest.$ac_objext
20460if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20461 (eval $ac_compile) 2>conftest.er1
a848cd7e 20462 ac_status=$?
ac1cb8d3
VS
20463 grep -v '^ *+' conftest.er1 >conftest.err
20464 rm -f conftest.er1
20465 cat conftest.err >&5
a848cd7e
SC
20466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20467 (exit $ac_status); } &&
c9a66001 20468 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
20469 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20470 (eval $ac_try) 2>&5
20471 ac_status=$?
20472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20473 (exit $ac_status); }; } &&
20474 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20475 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20476 (eval $ac_try) 2>&5
20477 ac_status=$?
20478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20479 (exit $ac_status); }; }; then
20480 ac_lo=0 ac_mid=0
20481 while :; do
20482 cat >conftest.$ac_ext <<_ACEOF
20483/* confdefs.h. */
20484_ACEOF
20485cat confdefs.h >>conftest.$ac_ext
20486cat >>conftest.$ac_ext <<_ACEOF
20487/* end confdefs.h. */
20488$ac_includes_default
20489int
20490main ()
20491{
20492static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
20493test_array [0] = 0
20494
20495 ;
20496 return 0;
20497}
20498_ACEOF
20499rm -f conftest.$ac_objext
20500if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20501 (eval $ac_compile) 2>conftest.er1
a848cd7e 20502 ac_status=$?
ac1cb8d3
VS
20503 grep -v '^ *+' conftest.er1 >conftest.err
20504 rm -f conftest.er1
20505 cat conftest.err >&5
a848cd7e
SC
20506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20507 (exit $ac_status); } &&
c9a66001 20508 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
20509 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20510 (eval $ac_try) 2>&5
20511 ac_status=$?
20512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20513 (exit $ac_status); }; } &&
20514 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20515 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20516 (eval $ac_try) 2>&5
20517 ac_status=$?
20518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20519 (exit $ac_status); }; }; then
20520 ac_hi=$ac_mid; break
20521else
20522 echo "$as_me: failed program was:" >&5
20523sed 's/^/| /' conftest.$ac_ext >&5
20524
20525ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
20526 if test $ac_lo -le $ac_mid; then
20527 ac_lo= ac_hi=
20528 break
20529 fi
20530 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 20531fi
ac1cb8d3 20532rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20533 done
20534else
20535 echo "$as_me: failed program was:" >&5
20536sed 's/^/| /' conftest.$ac_ext >&5
20537
20538cat >conftest.$ac_ext <<_ACEOF
20539/* confdefs.h. */
20540_ACEOF
20541cat confdefs.h >>conftest.$ac_ext
20542cat >>conftest.$ac_ext <<_ACEOF
20543/* end confdefs.h. */
20544$ac_includes_default
20545int
20546main ()
20547{
20548static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
20549test_array [0] = 0
20550
20551 ;
20552 return 0;
20553}
20554_ACEOF
20555rm -f conftest.$ac_objext
20556if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20557 (eval $ac_compile) 2>conftest.er1
a848cd7e 20558 ac_status=$?
ac1cb8d3
VS
20559 grep -v '^ *+' conftest.er1 >conftest.err
20560 rm -f conftest.er1
20561 cat conftest.err >&5
a848cd7e
SC
20562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20563 (exit $ac_status); } &&
c9a66001 20564 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
20565 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20566 (eval $ac_try) 2>&5
20567 ac_status=$?
20568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20569 (exit $ac_status); }; } &&
20570 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20571 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20572 (eval $ac_try) 2>&5
20573 ac_status=$?
20574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20575 (exit $ac_status); }; }; then
20576 ac_hi=-1 ac_mid=-1
20577 while :; do
20578 cat >conftest.$ac_ext <<_ACEOF
20579/* confdefs.h. */
20580_ACEOF
20581cat confdefs.h >>conftest.$ac_ext
20582cat >>conftest.$ac_ext <<_ACEOF
20583/* end confdefs.h. */
20584$ac_includes_default
20585int
20586main ()
20587{
20588static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
20589test_array [0] = 0
20590
20591 ;
20592 return 0;
20593}
20594_ACEOF
20595rm -f conftest.$ac_objext
20596if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20597 (eval $ac_compile) 2>conftest.er1
a848cd7e 20598 ac_status=$?
ac1cb8d3
VS
20599 grep -v '^ *+' conftest.er1 >conftest.err
20600 rm -f conftest.er1
20601 cat conftest.err >&5
a848cd7e
SC
20602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20603 (exit $ac_status); } &&
c9a66001 20604 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
20605 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20606 (eval $ac_try) 2>&5
20607 ac_status=$?
20608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20609 (exit $ac_status); }; } &&
20610 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20611 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20612 (eval $ac_try) 2>&5
20613 ac_status=$?
20614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20615 (exit $ac_status); }; }; then
20616 ac_lo=$ac_mid; break
20617else
20618 echo "$as_me: failed program was:" >&5
20619sed 's/^/| /' conftest.$ac_ext >&5
20620
20621ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
20622 if test $ac_mid -le $ac_hi; then
20623 ac_lo= ac_hi=
20624 break
20625 fi
20626 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 20627fi
ac1cb8d3 20628rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20629 done
20630else
20631 echo "$as_me: failed program was:" >&5
20632sed 's/^/| /' conftest.$ac_ext >&5
20633
20634ac_lo= ac_hi=
20635fi
ac1cb8d3 20636rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 20637fi
ac1cb8d3 20638rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20639# Binary search between lo and hi bounds.
20640while test "x$ac_lo" != "x$ac_hi"; do
20641 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
20642 cat >conftest.$ac_ext <<_ACEOF
20643/* confdefs.h. */
20644_ACEOF
20645cat confdefs.h >>conftest.$ac_ext
20646cat >>conftest.$ac_ext <<_ACEOF
20647/* end confdefs.h. */
20648$ac_includes_default
20649int
20650main ()
20651{
20652static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
20653test_array [0] = 0
20654
20655 ;
20656 return 0;
20657}
20658_ACEOF
20659rm -f conftest.$ac_objext
20660if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20661 (eval $ac_compile) 2>conftest.er1
a848cd7e 20662 ac_status=$?
ac1cb8d3
VS
20663 grep -v '^ *+' conftest.er1 >conftest.err
20664 rm -f conftest.er1
20665 cat conftest.err >&5
a848cd7e
SC
20666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20667 (exit $ac_status); } &&
c9a66001 20668 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
20669 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20670 (eval $ac_try) 2>&5
20671 ac_status=$?
20672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20673 (exit $ac_status); }; } &&
20674 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20675 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20676 (eval $ac_try) 2>&5
20677 ac_status=$?
20678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20679 (exit $ac_status); }; }; then
20680 ac_hi=$ac_mid
20681else
20682 echo "$as_me: failed program was:" >&5
20683sed 's/^/| /' conftest.$ac_ext >&5
20684
20685ac_lo=`expr '(' $ac_mid ')' + 1`
20686fi
ac1cb8d3 20687rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20688done
20689case $ac_lo in
20690?*) ac_cv_sizeof_long_long=$ac_lo;;
20691'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
20692See \`config.log' for more details." >&5
20693echo "$as_me: error: cannot compute sizeof (long long), 77
20694See \`config.log' for more details." >&2;}
20695 { (exit 1); exit 1; }; } ;;
20696esac
20697else
20698 if test "$cross_compiling" = yes; then
c9a66001
VZ
20699 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
20700echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
a848cd7e
SC
20701 { (exit 1); exit 1; }; }
20702else
20703 cat >conftest.$ac_ext <<_ACEOF
20704/* confdefs.h. */
20705_ACEOF
20706cat confdefs.h >>conftest.$ac_ext
20707cat >>conftest.$ac_ext <<_ACEOF
20708/* end confdefs.h. */
20709$ac_includes_default
20710long longval () { return (long) (sizeof (long long)); }
20711unsigned long ulongval () { return (long) (sizeof (long long)); }
20712#include <stdio.h>
20713#include <stdlib.h>
20714int
20715main ()
20716{
20717
20718 FILE *f = fopen ("conftest.val", "w");
20719 if (! f)
20720 exit (1);
20721 if (((long) (sizeof (long long))) < 0)
20722 {
20723 long i = longval ();
20724 if (i != ((long) (sizeof (long long))))
20725 exit (1);
20726 fprintf (f, "%ld\n", i);
20727 }
20728 else
20729 {
20730 unsigned long i = ulongval ();
20731 if (i != ((long) (sizeof (long long))))
20732 exit (1);
20733 fprintf (f, "%lu\n", i);
20734 }
20735 exit (ferror (f) || fclose (f) != 0);
20736
20737 ;
20738 return 0;
20739}
20740_ACEOF
20741rm -f conftest$ac_exeext
20742if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20743 (eval $ac_link) 2>&5
20744 ac_status=$?
20745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20746 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20747 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20748 (eval $ac_try) 2>&5
20749 ac_status=$?
20750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20751 (exit $ac_status); }; }; then
20752 ac_cv_sizeof_long_long=`cat conftest.val`
20753else
20754 echo "$as_me: program exited with status $ac_status" >&5
20755echo "$as_me: failed program was:" >&5
20756sed 's/^/| /' conftest.$ac_ext >&5
20757
20758( exit $ac_status )
20759{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
20760See \`config.log' for more details." >&5
20761echo "$as_me: error: cannot compute sizeof (long long), 77
20762See \`config.log' for more details." >&2;}
20763 { (exit 1); exit 1; }; }
20764fi
ac1cb8d3 20765rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20766fi
20767fi
20768rm -f conftest.val
20769else
20770 ac_cv_sizeof_long_long=0
20771fi
20772fi
20773echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
20774echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
20775cat >>confdefs.h <<_ACEOF
20776#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
20777_ACEOF
20778
20779
20780 if test "$ac_cv_sizeof_long_long" != "0"; then
c92ad099 20781 CPPFLAGS="-D_INCLUDE_LONGLONG $CPPFLAGS"
a848cd7e
SC
20782 fi
20783 ;;
20784 * )
20785 echo "$as_me:$LINENO: checking for long long" >&5
20786echo $ECHO_N "checking for long long... $ECHO_C" >&6
20787if test "${ac_cv_type_long_long+set}" = set; then
20788 echo $ECHO_N "(cached) $ECHO_C" >&6
20789else
20790 cat >conftest.$ac_ext <<_ACEOF
20791/* confdefs.h. */
20792_ACEOF
20793cat confdefs.h >>conftest.$ac_ext
20794cat >>conftest.$ac_ext <<_ACEOF
20795/* end confdefs.h. */
20796$ac_includes_default
20797int
20798main ()
20799{
20800if ((long long *) 0)
20801 return 0;
20802if (sizeof (long long))
20803 return 0;
20804 ;
20805 return 0;
20806}
20807_ACEOF
20808rm -f conftest.$ac_objext
20809if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20810 (eval $ac_compile) 2>conftest.er1
a848cd7e 20811 ac_status=$?
ac1cb8d3
VS
20812 grep -v '^ *+' conftest.er1 >conftest.err
20813 rm -f conftest.er1
20814 cat conftest.err >&5
a848cd7e
SC
20815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20816 (exit $ac_status); } &&
c9a66001 20817 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
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); }; } &&
20823 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20824 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20825 (eval $ac_try) 2>&5
20826 ac_status=$?
20827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20828 (exit $ac_status); }; }; then
20829 ac_cv_type_long_long=yes
20830else
20831 echo "$as_me: failed program was:" >&5
20832sed 's/^/| /' conftest.$ac_ext >&5
20833
20834ac_cv_type_long_long=no
20835fi
ac1cb8d3 20836rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20837fi
20838echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
20839echo "${ECHO_T}$ac_cv_type_long_long" >&6
20840
20841echo "$as_me:$LINENO: checking size of long long" >&5
20842echo $ECHO_N "checking size of long long... $ECHO_C" >&6
20843if test "${ac_cv_sizeof_long_long+set}" = set; then
20844 echo $ECHO_N "(cached) $ECHO_C" >&6
20845else
20846 if test "$ac_cv_type_long_long" = yes; then
20847 # The cast to unsigned long works around a bug in the HP C Compiler
20848 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
20849 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
20850 # This bug is HP SR number 8606223364.
20851 if test "$cross_compiling" = yes; then
20852 # Depending upon the size, compute the lo and hi bounds.
20853cat >conftest.$ac_ext <<_ACEOF
20854/* confdefs.h. */
20855_ACEOF
20856cat confdefs.h >>conftest.$ac_ext
20857cat >>conftest.$ac_ext <<_ACEOF
20858/* end confdefs.h. */
20859$ac_includes_default
20860int
20861main ()
20862{
20863static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
20864test_array [0] = 0
20865
20866 ;
20867 return 0;
20868}
20869_ACEOF
20870rm -f conftest.$ac_objext
20871if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20872 (eval $ac_compile) 2>conftest.er1
a848cd7e 20873 ac_status=$?
ac1cb8d3
VS
20874 grep -v '^ *+' conftest.er1 >conftest.err
20875 rm -f conftest.er1
20876 cat conftest.err >&5
a848cd7e
SC
20877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20878 (exit $ac_status); } &&
c9a66001 20879 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
20880 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20881 (eval $ac_try) 2>&5
20882 ac_status=$?
20883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20884 (exit $ac_status); }; } &&
20885 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20886 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20887 (eval $ac_try) 2>&5
20888 ac_status=$?
20889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20890 (exit $ac_status); }; }; then
20891 ac_lo=0 ac_mid=0
20892 while :; do
20893 cat >conftest.$ac_ext <<_ACEOF
20894/* confdefs.h. */
20895_ACEOF
20896cat confdefs.h >>conftest.$ac_ext
20897cat >>conftest.$ac_ext <<_ACEOF
20898/* end confdefs.h. */
20899$ac_includes_default
20900int
20901main ()
20902{
20903static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
20904test_array [0] = 0
20905
20906 ;
20907 return 0;
20908}
20909_ACEOF
20910rm -f conftest.$ac_objext
20911if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20912 (eval $ac_compile) 2>conftest.er1
a848cd7e 20913 ac_status=$?
ac1cb8d3
VS
20914 grep -v '^ *+' conftest.er1 >conftest.err
20915 rm -f conftest.er1
20916 cat conftest.err >&5
a848cd7e
SC
20917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20918 (exit $ac_status); } &&
c9a66001 20919 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
20920 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20921 (eval $ac_try) 2>&5
20922 ac_status=$?
20923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20924 (exit $ac_status); }; } &&
20925 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20926 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20927 (eval $ac_try) 2>&5
20928 ac_status=$?
20929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20930 (exit $ac_status); }; }; then
20931 ac_hi=$ac_mid; break
20932else
20933 echo "$as_me: failed program was:" >&5
20934sed 's/^/| /' conftest.$ac_ext >&5
20935
20936ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
20937 if test $ac_lo -le $ac_mid; then
20938 ac_lo= ac_hi=
20939 break
20940 fi
20941 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 20942fi
ac1cb8d3 20943rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20944 done
20945else
20946 echo "$as_me: failed program was:" >&5
20947sed 's/^/| /' conftest.$ac_ext >&5
20948
20949cat >conftest.$ac_ext <<_ACEOF
20950/* confdefs.h. */
20951_ACEOF
20952cat confdefs.h >>conftest.$ac_ext
20953cat >>conftest.$ac_ext <<_ACEOF
20954/* end confdefs.h. */
20955$ac_includes_default
20956int
20957main ()
20958{
20959static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
20960test_array [0] = 0
20961
20962 ;
20963 return 0;
20964}
20965_ACEOF
20966rm -f conftest.$ac_objext
20967if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20968 (eval $ac_compile) 2>conftest.er1
a848cd7e 20969 ac_status=$?
ac1cb8d3
VS
20970 grep -v '^ *+' conftest.er1 >conftest.err
20971 rm -f conftest.er1
20972 cat conftest.err >&5
a848cd7e
SC
20973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20974 (exit $ac_status); } &&
c9a66001 20975 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
20976 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20977 (eval $ac_try) 2>&5
20978 ac_status=$?
20979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20980 (exit $ac_status); }; } &&
20981 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20982 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20983 (eval $ac_try) 2>&5
20984 ac_status=$?
20985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20986 (exit $ac_status); }; }; then
20987 ac_hi=-1 ac_mid=-1
20988 while :; do
20989 cat >conftest.$ac_ext <<_ACEOF
20990/* confdefs.h. */
20991_ACEOF
20992cat confdefs.h >>conftest.$ac_ext
20993cat >>conftest.$ac_ext <<_ACEOF
20994/* end confdefs.h. */
20995$ac_includes_default
20996int
20997main ()
20998{
20999static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
21000test_array [0] = 0
21001
21002 ;
21003 return 0;
21004}
21005_ACEOF
21006rm -f conftest.$ac_objext
21007if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21008 (eval $ac_compile) 2>conftest.er1
a848cd7e 21009 ac_status=$?
ac1cb8d3
VS
21010 grep -v '^ *+' conftest.er1 >conftest.err
21011 rm -f conftest.er1
21012 cat conftest.err >&5
a848cd7e
SC
21013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21014 (exit $ac_status); } &&
c9a66001 21015 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
21016 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21017 (eval $ac_try) 2>&5
21018 ac_status=$?
21019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21020 (exit $ac_status); }; } &&
21021 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
21022 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21023 (eval $ac_try) 2>&5
21024 ac_status=$?
21025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21026 (exit $ac_status); }; }; then
21027 ac_lo=$ac_mid; break
21028else
21029 echo "$as_me: failed program was:" >&5
21030sed 's/^/| /' conftest.$ac_ext >&5
21031
21032ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
21033 if test $ac_mid -le $ac_hi; then
21034 ac_lo= ac_hi=
21035 break
21036 fi
21037 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 21038fi
ac1cb8d3 21039rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
21040 done
21041else
21042 echo "$as_me: failed program was:" >&5
21043sed 's/^/| /' conftest.$ac_ext >&5
21044
21045ac_lo= ac_hi=
21046fi
ac1cb8d3 21047rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 21048fi
ac1cb8d3 21049rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
21050# Binary search between lo and hi bounds.
21051while test "x$ac_lo" != "x$ac_hi"; do
21052 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
21053 cat >conftest.$ac_ext <<_ACEOF
21054/* confdefs.h. */
21055_ACEOF
21056cat confdefs.h >>conftest.$ac_ext
21057cat >>conftest.$ac_ext <<_ACEOF
21058/* end confdefs.h. */
21059$ac_includes_default
21060int
21061main ()
21062{
21063static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
21064test_array [0] = 0
21065
21066 ;
21067 return 0;
21068}
21069_ACEOF
21070rm -f conftest.$ac_objext
21071if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21072 (eval $ac_compile) 2>conftest.er1
a848cd7e 21073 ac_status=$?
ac1cb8d3
VS
21074 grep -v '^ *+' conftest.er1 >conftest.err
21075 rm -f conftest.er1
21076 cat conftest.err >&5
a848cd7e
SC
21077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21078 (exit $ac_status); } &&
c9a66001 21079 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
21080 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21081 (eval $ac_try) 2>&5
21082 ac_status=$?
21083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21084 (exit $ac_status); }; } &&
21085 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
21086 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21087 (eval $ac_try) 2>&5
21088 ac_status=$?
21089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21090 (exit $ac_status); }; }; then
21091 ac_hi=$ac_mid
21092else
21093 echo "$as_me: failed program was:" >&5
21094sed 's/^/| /' conftest.$ac_ext >&5
21095
21096ac_lo=`expr '(' $ac_mid ')' + 1`
21097fi
ac1cb8d3 21098rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
21099done
21100case $ac_lo in
21101?*) ac_cv_sizeof_long_long=$ac_lo;;
21102'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
21103See \`config.log' for more details." >&5
21104echo "$as_me: error: cannot compute sizeof (long long), 77
21105See \`config.log' for more details." >&2;}
21106 { (exit 1); exit 1; }; } ;;
21107esac
21108else
21109 if test "$cross_compiling" = yes; then
c9a66001
VZ
21110 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
21111echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
a848cd7e
SC
21112 { (exit 1); exit 1; }; }
21113else
21114 cat >conftest.$ac_ext <<_ACEOF
21115/* confdefs.h. */
21116_ACEOF
21117cat confdefs.h >>conftest.$ac_ext
21118cat >>conftest.$ac_ext <<_ACEOF
21119/* end confdefs.h. */
21120$ac_includes_default
21121long longval () { return (long) (sizeof (long long)); }
21122unsigned long ulongval () { return (long) (sizeof (long long)); }
21123#include <stdio.h>
21124#include <stdlib.h>
21125int
21126main ()
21127{
21128
21129 FILE *f = fopen ("conftest.val", "w");
21130 if (! f)
21131 exit (1);
21132 if (((long) (sizeof (long long))) < 0)
21133 {
21134 long i = longval ();
21135 if (i != ((long) (sizeof (long long))))
21136 exit (1);
21137 fprintf (f, "%ld\n", i);
21138 }
21139 else
21140 {
21141 unsigned long i = ulongval ();
21142 if (i != ((long) (sizeof (long long))))
21143 exit (1);
21144 fprintf (f, "%lu\n", i);
21145 }
21146 exit (ferror (f) || fclose (f) != 0);
21147
21148 ;
21149 return 0;
21150}
21151_ACEOF
21152rm -f conftest$ac_exeext
21153if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21154 (eval $ac_link) 2>&5
21155 ac_status=$?
21156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21157 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21158 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21159 (eval $ac_try) 2>&5
21160 ac_status=$?
21161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21162 (exit $ac_status); }; }; then
21163 ac_cv_sizeof_long_long=`cat conftest.val`
21164else
21165 echo "$as_me: program exited with status $ac_status" >&5
21166echo "$as_me: failed program was:" >&5
21167sed 's/^/| /' conftest.$ac_ext >&5
21168
21169( exit $ac_status )
21170{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
21171See \`config.log' for more details." >&5
21172echo "$as_me: error: cannot compute sizeof (long long), 77
21173See \`config.log' for more details." >&2;}
21174 { (exit 1); exit 1; }; }
21175fi
ac1cb8d3 21176rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
21177fi
21178fi
21179rm -f conftest.val
21180else
21181 ac_cv_sizeof_long_long=0
21182fi
21183fi
21184echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
21185echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
21186cat >>confdefs.h <<_ACEOF
21187#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
21188_ACEOF
21189
21190
21191esac
21192
238ecede
MW
21193echo "$as_me:$LINENO: checking for wchar_t" >&5
21194echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6
21195if test "${ac_cv_type_wchar_t+set}" = set; then
21196 echo $ECHO_N "(cached) $ECHO_C" >&6
21197else
21198 cat >conftest.$ac_ext <<_ACEOF
21199/* confdefs.h. */
21200_ACEOF
21201cat confdefs.h >>conftest.$ac_ext
21202cat >>conftest.$ac_ext <<_ACEOF
21203/* end confdefs.h. */
21204
83d8eb47
MW
21205 /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
21206 #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
238ecede
MW
21207 # error "fake wchar_t"
21208 #endif
21209 #ifdef HAVE_WCHAR_H
21210 # ifdef __CYGWIN__
21211 # include <stddef.h>
21212 # endif
21213 # include <wchar.h>
21214 #endif
21215 #ifdef HAVE_STDLIB_H
21216 # include <stdlib.h>
21217 #endif
21218 #include <stdio.h>
21219
21220
21221
21222int
21223main ()
21224{
21225if ((wchar_t *) 0)
21226 return 0;
21227if (sizeof (wchar_t))
21228 return 0;
21229 ;
21230 return 0;
21231}
21232_ACEOF
21233rm -f conftest.$ac_objext
21234if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21235 (eval $ac_compile) 2>conftest.er1
21236 ac_status=$?
21237 grep -v '^ *+' conftest.er1 >conftest.err
21238 rm -f conftest.er1
21239 cat conftest.err >&5
21240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21241 (exit $ac_status); } &&
c9a66001 21242 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
238ecede
MW
21243 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21244 (eval $ac_try) 2>&5
21245 ac_status=$?
21246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21247 (exit $ac_status); }; } &&
21248 { ac_try='test -s conftest.$ac_objext'
21249 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21250 (eval $ac_try) 2>&5
21251 ac_status=$?
21252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21253 (exit $ac_status); }; }; then
21254 ac_cv_type_wchar_t=yes
21255else
21256 echo "$as_me: failed program was:" >&5
21257sed 's/^/| /' conftest.$ac_ext >&5
21258
21259ac_cv_type_wchar_t=no
21260fi
21261rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21262fi
21263echo "$as_me:$LINENO: result: $ac_cv_type_wchar_t" >&5
21264echo "${ECHO_T}$ac_cv_type_wchar_t" >&6
21265
a848cd7e
SC
21266echo "$as_me:$LINENO: checking size of wchar_t" >&5
21267echo $ECHO_N "checking size of wchar_t... $ECHO_C" >&6
238ecede 21268if test "${ac_cv_sizeof_wchar_t+set}" = set; then
a848cd7e
SC
21269 echo $ECHO_N "(cached) $ECHO_C" >&6
21270else
238ecede
MW
21271 if test "$ac_cv_type_wchar_t" = yes; then
21272 # The cast to unsigned long works around a bug in the HP C Compiler
21273 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21274 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21275 # This bug is HP SR number 8606223364.
21276 if test "$cross_compiling" = yes; then
21277 # Depending upon the size, compute the lo and hi bounds.
21278cat >conftest.$ac_ext <<_ACEOF
21279/* confdefs.h. */
21280_ACEOF
21281cat confdefs.h >>conftest.$ac_ext
21282cat >>conftest.$ac_ext <<_ACEOF
21283/* end confdefs.h. */
21284
83d8eb47
MW
21285 /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
21286 #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
238ecede
MW
21287 # error "fake wchar_t"
21288 #endif
21289 #ifdef HAVE_WCHAR_H
21290 # ifdef __CYGWIN__
21291 # include <stddef.h>
21292 # endif
21293 # include <wchar.h>
21294 #endif
21295 #ifdef HAVE_STDLIB_H
21296 # include <stdlib.h>
21297 #endif
21298 #include <stdio.h>
21299
21300
21301
21302int
21303main ()
21304{
21305static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) >= 0)];
21306test_array [0] = 0
21307
21308 ;
21309 return 0;
21310}
21311_ACEOF
21312rm -f conftest.$ac_objext
21313if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21314 (eval $ac_compile) 2>conftest.er1
21315 ac_status=$?
21316 grep -v '^ *+' conftest.er1 >conftest.err
21317 rm -f conftest.er1
21318 cat conftest.err >&5
21319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21320 (exit $ac_status); } &&
c9a66001 21321 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
238ecede
MW
21322 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21323 (eval $ac_try) 2>&5
21324 ac_status=$?
21325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21326 (exit $ac_status); }; } &&
21327 { ac_try='test -s conftest.$ac_objext'
21328 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21329 (eval $ac_try) 2>&5
21330 ac_status=$?
21331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21332 (exit $ac_status); }; }; then
21333 ac_lo=0 ac_mid=0
21334 while :; do
21335 cat >conftest.$ac_ext <<_ACEOF
21336/* confdefs.h. */
21337_ACEOF
21338cat confdefs.h >>conftest.$ac_ext
21339cat >>conftest.$ac_ext <<_ACEOF
21340/* end confdefs.h. */
21341
83d8eb47
MW
21342 /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
21343 #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
238ecede
MW
21344 # error "fake wchar_t"
21345 #endif
21346 #ifdef HAVE_WCHAR_H
21347 # ifdef __CYGWIN__
21348 # include <stddef.h>
21349 # endif
21350 # include <wchar.h>
21351 #endif
21352 #ifdef HAVE_STDLIB_H
21353 # include <stdlib.h>
21354 #endif
21355 #include <stdio.h>
21356
21357
21358
21359int
21360main ()
21361{
21362static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) <= $ac_mid)];
21363test_array [0] = 0
21364
21365 ;
21366 return 0;
21367}
21368_ACEOF
21369rm -f conftest.$ac_objext
21370if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21371 (eval $ac_compile) 2>conftest.er1
21372 ac_status=$?
21373 grep -v '^ *+' conftest.er1 >conftest.err
21374 rm -f conftest.er1
21375 cat conftest.err >&5
21376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21377 (exit $ac_status); } &&
c9a66001 21378 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
238ecede
MW
21379 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21380 (eval $ac_try) 2>&5
21381 ac_status=$?
21382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21383 (exit $ac_status); }; } &&
21384 { ac_try='test -s conftest.$ac_objext'
21385 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21386 (eval $ac_try) 2>&5
21387 ac_status=$?
21388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21389 (exit $ac_status); }; }; then
21390 ac_hi=$ac_mid; break
21391else
21392 echo "$as_me: failed program was:" >&5
21393sed 's/^/| /' conftest.$ac_ext >&5
21394
21395ac_lo=`expr $ac_mid + 1`
21396 if test $ac_lo -le $ac_mid; then
21397 ac_lo= ac_hi=
21398 break
21399 fi
21400 ac_mid=`expr 2 '*' $ac_mid + 1`
21401fi
21402rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21403 done
21404else
21405 echo "$as_me: failed program was:" >&5
21406sed 's/^/| /' conftest.$ac_ext >&5
21407
21408cat >conftest.$ac_ext <<_ACEOF
21409/* confdefs.h. */
21410_ACEOF
21411cat confdefs.h >>conftest.$ac_ext
21412cat >>conftest.$ac_ext <<_ACEOF
21413/* end confdefs.h. */
21414
83d8eb47
MW
21415 /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
21416 #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
238ecede
MW
21417 # error "fake wchar_t"
21418 #endif
21419 #ifdef HAVE_WCHAR_H
21420 # ifdef __CYGWIN__
21421 # include <stddef.h>
21422 # endif
21423 # include <wchar.h>
21424 #endif
21425 #ifdef HAVE_STDLIB_H
21426 # include <stdlib.h>
21427 #endif
21428 #include <stdio.h>
21429
21430
21431
21432int
21433main ()
21434{
21435static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) < 0)];
21436test_array [0] = 0
21437
21438 ;
21439 return 0;
21440}
21441_ACEOF
21442rm -f conftest.$ac_objext
21443if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21444 (eval $ac_compile) 2>conftest.er1
21445 ac_status=$?
21446 grep -v '^ *+' conftest.er1 >conftest.err
21447 rm -f conftest.er1
21448 cat conftest.err >&5
21449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21450 (exit $ac_status); } &&
c9a66001 21451 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
238ecede
MW
21452 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21453 (eval $ac_try) 2>&5
21454 ac_status=$?
21455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21456 (exit $ac_status); }; } &&
21457 { ac_try='test -s conftest.$ac_objext'
21458 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21459 (eval $ac_try) 2>&5
21460 ac_status=$?
21461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21462 (exit $ac_status); }; }; then
21463 ac_hi=-1 ac_mid=-1
21464 while :; do
21465 cat >conftest.$ac_ext <<_ACEOF
21466/* confdefs.h. */
21467_ACEOF
21468cat confdefs.h >>conftest.$ac_ext
21469cat >>conftest.$ac_ext <<_ACEOF
21470/* end confdefs.h. */
21471
83d8eb47
MW
21472 /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
21473 #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
238ecede
MW
21474 # error "fake wchar_t"
21475 #endif
21476 #ifdef HAVE_WCHAR_H
21477 # ifdef __CYGWIN__
21478 # include <stddef.h>
21479 # endif
21480 # include <wchar.h>
21481 #endif
21482 #ifdef HAVE_STDLIB_H
21483 # include <stdlib.h>
21484 #endif
21485 #include <stdio.h>
21486
21487
21488
21489int
21490main ()
21491{
21492static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) >= $ac_mid)];
21493test_array [0] = 0
21494
21495 ;
21496 return 0;
21497}
21498_ACEOF
21499rm -f conftest.$ac_objext
21500if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21501 (eval $ac_compile) 2>conftest.er1
21502 ac_status=$?
21503 grep -v '^ *+' conftest.er1 >conftest.err
21504 rm -f conftest.er1
21505 cat conftest.err >&5
21506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21507 (exit $ac_status); } &&
c9a66001 21508 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
238ecede
MW
21509 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21510 (eval $ac_try) 2>&5
21511 ac_status=$?
21512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21513 (exit $ac_status); }; } &&
21514 { ac_try='test -s conftest.$ac_objext'
21515 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21516 (eval $ac_try) 2>&5
21517 ac_status=$?
21518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21519 (exit $ac_status); }; }; then
21520 ac_lo=$ac_mid; break
21521else
21522 echo "$as_me: failed program was:" >&5
21523sed 's/^/| /' conftest.$ac_ext >&5
21524
21525ac_hi=`expr '(' $ac_mid ')' - 1`
21526 if test $ac_mid -le $ac_hi; then
21527 ac_lo= ac_hi=
21528 break
21529 fi
21530 ac_mid=`expr 2 '*' $ac_mid`
21531fi
21532rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21533 done
21534else
21535 echo "$as_me: failed program was:" >&5
21536sed 's/^/| /' conftest.$ac_ext >&5
21537
21538ac_lo= ac_hi=
21539fi
21540rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21541fi
21542rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21543# Binary search between lo and hi bounds.
21544while test "x$ac_lo" != "x$ac_hi"; do
21545 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
21546 cat >conftest.$ac_ext <<_ACEOF
21547/* confdefs.h. */
21548_ACEOF
21549cat confdefs.h >>conftest.$ac_ext
21550cat >>conftest.$ac_ext <<_ACEOF
21551/* end confdefs.h. */
21552
83d8eb47
MW
21553 /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
21554 #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
238ecede
MW
21555 # error "fake wchar_t"
21556 #endif
21557 #ifdef HAVE_WCHAR_H
21558 # ifdef __CYGWIN__
21559 # include <stddef.h>
21560 # endif
21561 # include <wchar.h>
21562 #endif
21563 #ifdef HAVE_STDLIB_H
21564 # include <stdlib.h>
21565 #endif
21566 #include <stdio.h>
a848cd7e 21567
a848cd7e 21568
a848cd7e 21569
238ecede
MW
21570int
21571main ()
21572{
21573static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) <= $ac_mid)];
21574test_array [0] = 0
a848cd7e 21575
238ecede
MW
21576 ;
21577 return 0;
21578}
21579_ACEOF
21580rm -f conftest.$ac_objext
21581if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21582 (eval $ac_compile) 2>conftest.er1
21583 ac_status=$?
21584 grep -v '^ *+' conftest.er1 >conftest.err
21585 rm -f conftest.er1
21586 cat conftest.err >&5
21587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21588 (exit $ac_status); } &&
c9a66001 21589 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
238ecede
MW
21590 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21591 (eval $ac_try) 2>&5
21592 ac_status=$?
21593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21594 (exit $ac_status); }; } &&
21595 { ac_try='test -s conftest.$ac_objext'
21596 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21597 (eval $ac_try) 2>&5
21598 ac_status=$?
21599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21600 (exit $ac_status); }; }; then
21601 ac_hi=$ac_mid
21602else
21603 echo "$as_me: failed program was:" >&5
21604sed 's/^/| /' conftest.$ac_ext >&5
21605
21606ac_lo=`expr '(' $ac_mid ')' + 1`
21607fi
21608rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21609done
21610case $ac_lo in
21611?*) ac_cv_sizeof_wchar_t=$ac_lo;;
21612'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t), 77
21613See \`config.log' for more details." >&5
21614echo "$as_me: error: cannot compute sizeof (wchar_t), 77
21615See \`config.log' for more details." >&2;}
21616 { (exit 1); exit 1; }; } ;;
21617esac
21618else
21619 if test "$cross_compiling" = yes; then
c9a66001
VZ
21620 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
21621echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
238ecede 21622 { (exit 1); exit 1; }; }
a848cd7e
SC
21623else
21624 cat >conftest.$ac_ext <<_ACEOF
21625/* confdefs.h. */
21626_ACEOF
21627cat confdefs.h >>conftest.$ac_ext
21628cat >>conftest.$ac_ext <<_ACEOF
21629/* end confdefs.h. */
21630
83d8eb47
MW
21631 /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
21632 #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
238ecede
MW
21633 # error "fake wchar_t"
21634 #endif
21635 #ifdef HAVE_WCHAR_H
21636 # ifdef __CYGWIN__
21637 # include <stddef.h>
21638 # endif
21639 # include <wchar.h>
21640 #endif
21641 #ifdef HAVE_STDLIB_H
21642 # include <stdlib.h>
21643 #endif
21644 #include <stdio.h>
21645
21646
21647
21648long longval () { return (long) (sizeof (wchar_t)); }
21649unsigned long ulongval () { return (long) (sizeof (wchar_t)); }
21650#include <stdio.h>
21651#include <stdlib.h>
21652int
21653main ()
21654{
a848cd7e 21655
238ecede
MW
21656 FILE *f = fopen ("conftest.val", "w");
21657 if (! f)
21658 exit (1);
21659 if (((long) (sizeof (wchar_t))) < 0)
21660 {
21661 long i = longval ();
21662 if (i != ((long) (sizeof (wchar_t))))
21663 exit (1);
21664 fprintf (f, "%ld\n", i);
21665 }
21666 else
21667 {
21668 unsigned long i = ulongval ();
21669 if (i != ((long) (sizeof (wchar_t))))
21670 exit (1);
21671 fprintf (f, "%lu\n", i);
21672 }
21673 exit (ferror (f) || fclose (f) != 0);
21674
21675 ;
21676 return 0;
21677}
a848cd7e
SC
21678_ACEOF
21679rm -f conftest$ac_exeext
21680if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21681 (eval $ac_link) 2>&5
21682 ac_status=$?
21683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21684 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21685 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21686 (eval $ac_try) 2>&5
21687 ac_status=$?
21688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21689 (exit $ac_status); }; }; then
238ecede 21690 ac_cv_sizeof_wchar_t=`cat conftest.val`
a848cd7e
SC
21691else
21692 echo "$as_me: program exited with status $ac_status" >&5
21693echo "$as_me: failed program was:" >&5
21694sed 's/^/| /' conftest.$ac_ext >&5
21695
21696( exit $ac_status )
238ecede
MW
21697{ { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t), 77
21698See \`config.log' for more details." >&5
21699echo "$as_me: error: cannot compute sizeof (wchar_t), 77
21700See \`config.log' for more details." >&2;}
21701 { (exit 1); exit 1; }; }
a848cd7e 21702fi
ac1cb8d3 21703rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e 21704fi
a848cd7e 21705fi
238ecede
MW
21706rm -f conftest.val
21707else
21708 ac_cv_sizeof_wchar_t=0
21709fi
21710fi
21711echo "$as_me:$LINENO: result: $ac_cv_sizeof_wchar_t" >&5
21712echo "${ECHO_T}$ac_cv_sizeof_wchar_t" >&6
a848cd7e 21713cat >>confdefs.h <<_ACEOF
238ecede 21714#define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t
a848cd7e
SC
21715_ACEOF
21716
21717
47a7e797
MW
21718if test "$ac_cv_sizeof_wchar_t" != "0"; then
21719 wxUSE_WCHAR_T=yes
21720else
21721 wxUSE_WCHAR_T=no
21722fi
238ecede 21723
ba3d13e1
VZ
21724echo "$as_me:$LINENO: checking for va_copy" >&5
21725echo $ECHO_N "checking for va_copy... $ECHO_C" >&6
21726if test "${wx_cv_func_va_copy+set}" = set; then
21727 echo $ECHO_N "(cached) $ECHO_C" >&6
21728else
21729
21730 cat >conftest.$ac_ext <<_ACEOF
21731
21732 #include <stdarg.h>
21733 void foo(char *f, ...)
21734 {
21735 va_list ap1, ap2;
21736 va_start(ap1, f);
21737 va_copy(ap2, ap1);
21738 va_end(ap2);
21739 va_end(ap1);
21740 }
5886b072
VZ
21741 int main()
21742 {
b902e639
VZ
21743 foo("hi", 17);
21744 return 0;
5886b072 21745 }
ba3d13e1
VZ
21746_ACEOF
21747rm -f conftest.$ac_objext conftest$ac_exeext
21748if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21749 (eval $ac_link) 2>conftest.er1
21750 ac_status=$?
21751 grep -v '^ *+' conftest.er1 >conftest.err
21752 rm -f conftest.er1
21753 cat conftest.err >&5
21754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21755 (exit $ac_status); } &&
c9a66001 21756 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ba3d13e1
VZ
21757 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21758 (eval $ac_try) 2>&5
21759 ac_status=$?
21760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21761 (exit $ac_status); }; } &&
21762 { ac_try='test -s conftest$ac_exeext'
21763 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21764 (eval $ac_try) 2>&5
21765 ac_status=$?
21766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21767 (exit $ac_status); }; }; then
21768 wx_cv_func_va_copy=yes
21769else
21770 echo "$as_me: failed program was:" >&5
21771sed 's/^/| /' conftest.$ac_ext >&5
21772
21773wx_cv_func_va_copy=no
21774
21775fi
21776rm -f conftest.err conftest.$ac_objext \
21777 conftest$ac_exeext conftest.$ac_ext
21778
21779
21780fi
21781echo "$as_me:$LINENO: result: $wx_cv_func_va_copy" >&5
21782echo "${ECHO_T}$wx_cv_func_va_copy" >&6
21783
21784if test $wx_cv_func_va_copy = "yes"; then
21785 cat >>confdefs.h <<\_ACEOF
21786#define HAVE_VA_COPY 1
21787_ACEOF
21788
21789else
21790 echo "$as_me:$LINENO: checking if va_list can be copied by value" >&5
21791echo $ECHO_N "checking if va_list can be copied by value... $ECHO_C" >&6
21792if test "${wx_cv_type_va_list_lvalue+set}" = set; then
21793 echo $ECHO_N "(cached) $ECHO_C" >&6
21794else
21795
21796 if test "$cross_compiling" = yes; then
21797 wx_cv_type_va_list_lvalue=yes
21798
21799else
21800 cat >conftest.$ac_ext <<_ACEOF
21801
21802 #include <stdarg.h>
21803 int foo(char *f, ...)
21804 {
21805 va_list ap1, ap2;
21806 va_start(ap1, f);
21807 ap2 = ap1;
21808 if ( va_arg(ap1, int) != 17 || va_arg(ap2, int) != 17 )
21809 return 1;
21810 va_end(ap2);
21811 va_end(ap1);
21812 return 0;
21813 }
21814 int main()
21815 {
21816 return foo("hi", 17);
21817 }
21818_ACEOF
21819rm -f conftest$ac_exeext
21820if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21821 (eval $ac_link) 2>&5
21822 ac_status=$?
21823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21824 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21825 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21826 (eval $ac_try) 2>&5
21827 ac_status=$?
21828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21829 (exit $ac_status); }; }; then
21830 wx_cv_type_va_list_lvalue=yes
21831else
21832 echo "$as_me: program exited with status $ac_status" >&5
21833echo "$as_me: failed program was:" >&5
21834sed 's/^/| /' conftest.$ac_ext >&5
21835
21836( exit $ac_status )
21837wx_cv_type_va_list_lvalue=no
21838fi
21839rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21840fi
21841
21842
21843fi
21844echo "$as_me:$LINENO: result: $wx_cv_type_va_list_lvalue" >&5
21845echo "${ECHO_T}$wx_cv_type_va_list_lvalue" >&6
21846
21847 if test $wx_cv_type_va_list_lvalue != "yes"; then
21848 cat >>confdefs.h <<\_ACEOF
21849#define VA_LIST_IS_ARRAY 1
21850_ACEOF
21851
21852 fi
21853fi
21854
a848cd7e
SC
21855# Check whether --enable-largefile or --disable-largefile was given.
21856if test "${enable_largefile+set}" = set; then
21857 enableval="$enable_largefile"
21858
21859fi;
21860if test "$enable_largefile" != no; then
21861 wx_largefile=no
21862
21863 echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
21864echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
21865if test "${ac_cv_sys_file_offset_bits+set}" = set; then
21866 echo $ECHO_N "(cached) $ECHO_C" >&6
21867else
21868
21869 cat >conftest.$ac_ext <<_ACEOF
21870/* confdefs.h. */
21871_ACEOF
21872cat confdefs.h >>conftest.$ac_ext
21873cat >>conftest.$ac_ext <<_ACEOF
21874/* end confdefs.h. */
21875#define _FILE_OFFSET_BITS 64
21876 #include <sys/types.h>
21877int
21878main ()
21879{
21880typedef struct {
21881 unsigned int field: sizeof(off_t) == 8;
21882} wxlf;
21883
21884 ;
21885 return 0;
21886}
21887_ACEOF
21888rm -f conftest.$ac_objext
21889if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21890 (eval $ac_compile) 2>conftest.er1
a848cd7e 21891 ac_status=$?
ac1cb8d3
VS
21892 grep -v '^ *+' conftest.er1 >conftest.err
21893 rm -f conftest.er1
21894 cat conftest.err >&5
a848cd7e
SC
21895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21896 (exit $ac_status); } &&
c9a66001 21897 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
21898 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21899 (eval $ac_try) 2>&5
21900 ac_status=$?
21901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21902 (exit $ac_status); }; } &&
21903 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
21904 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21905 (eval $ac_try) 2>&5
21906 ac_status=$?
21907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21908 (exit $ac_status); }; }; then
21909 ac_cv_sys_file_offset_bits=64
21910else
21911 echo "$as_me: failed program was:" >&5
21912sed 's/^/| /' conftest.$ac_ext >&5
21913
21914ac_cv_sys_file_offset_bits=no
21915fi
ac1cb8d3 21916rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
21917
21918
21919fi
21920echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
21921echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
21922
21923 if test "$ac_cv_sys_file_offset_bits" != no; then
21924 wx_largefile=yes
21925 cat >>confdefs.h <<_ACEOF
21926#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
21927_ACEOF
21928
21929 fi
21930
21931 if test "x$wx_largefile" != "xyes"; then
21932
21933 echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
21934echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
21935if test "${ac_cv_sys_large_files+set}" = set; then
21936 echo $ECHO_N "(cached) $ECHO_C" >&6
21937else
21938
21939 cat >conftest.$ac_ext <<_ACEOF
21940/* confdefs.h. */
21941_ACEOF
21942cat confdefs.h >>conftest.$ac_ext
21943cat >>conftest.$ac_ext <<_ACEOF
21944/* end confdefs.h. */
21945#define _LARGE_FILES 1
21946 #include <sys/types.h>
21947int
21948main ()
21949{
21950typedef struct {
21951 unsigned int field: sizeof(off_t) == 8;
21952} wxlf;
21953
21954 ;
21955 return 0;
21956}
21957_ACEOF
21958rm -f conftest.$ac_objext
21959if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21960 (eval $ac_compile) 2>conftest.er1
a848cd7e 21961 ac_status=$?
ac1cb8d3
VS
21962 grep -v '^ *+' conftest.er1 >conftest.err
21963 rm -f conftest.er1
21964 cat conftest.err >&5
a848cd7e
SC
21965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21966 (exit $ac_status); } &&
c9a66001 21967 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
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); }; } &&
21973 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
21974 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21975 (eval $ac_try) 2>&5
21976 ac_status=$?
21977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21978 (exit $ac_status); }; }; then
21979 ac_cv_sys_large_files=1
21980else
21981 echo "$as_me: failed program was:" >&5
21982sed 's/^/| /' conftest.$ac_ext >&5
21983
21984ac_cv_sys_large_files=no
21985fi
ac1cb8d3 21986rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
21987
21988
21989fi
21990echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
21991echo "${ECHO_T}$ac_cv_sys_large_files" >&6
21992
21993 if test "$ac_cv_sys_large_files" != no; then
21994 wx_largefile=yes
21995 cat >>confdefs.h <<_ACEOF
21996#define _LARGE_FILES $ac_cv_sys_large_files
21997_ACEOF
21998
21999 fi
22000
22001 fi
22002
22003 echo "$as_me:$LINENO: checking if large file support is available" >&5
22004echo $ECHO_N "checking if large file support is available... $ECHO_C" >&6
22005 if test "x$wx_largefile" = "xyes"; then
22006 cat >>confdefs.h <<\_ACEOF
22007#define HAVE_LARGEFILE_SUPPORT 1
22008_ACEOF
22009
22010 fi
22011 echo "$as_me:$LINENO: result: $wx_largefile" >&5
22012echo "${ECHO_T}$wx_largefile" >&6
22013fi
22014
5b674b9d
DE
22015
22016if test "x$wx_largefile" = "xyes"; then
22017 if test "x$ac_cv_sys_file_offset_bits" = "x64"; then
5ff751d6 22018 WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES"
00421666
MW
22019
22020 if test "$USE_HPUX" = 1 -a "$GXX" = "yes"; then
22021 echo "$as_me:$LINENO: checking if -D__STDC_EXT__ is required" >&5
22022echo $ECHO_N "checking if -D__STDC_EXT__ is required... $ECHO_C" >&6
22023if test "${wx_cv_STDC_EXT_required+set}" = set; then
22024 echo $ECHO_N "(cached) $ECHO_C" >&6
22025else
22026
00421666
MW
22027 cat >conftest.$ac_ext <<_ACEOF
22028/* confdefs.h. */
22029_ACEOF
22030cat confdefs.h >>conftest.$ac_ext
22031cat >>conftest.$ac_ext <<_ACEOF
22032/* end confdefs.h. */
22033
22034int
22035main ()
22036{
22037
22038 #ifndef __STDC_EXT__
22039 choke me
22040 #endif
22041
22042 ;
22043 return 0;
22044}
22045_ACEOF
22046rm -f conftest.$ac_objext
22047if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22048 (eval $ac_compile) 2>conftest.er1
22049 ac_status=$?
22050 grep -v '^ *+' conftest.er1 >conftest.err
22051 rm -f conftest.er1
22052 cat conftest.err >&5
22053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22054 (exit $ac_status); } &&
c9a66001 22055 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
00421666
MW
22056 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22057 (eval $ac_try) 2>&5
22058 ac_status=$?
22059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22060 (exit $ac_status); }; } &&
22061 { ac_try='test -s conftest.$ac_objext'
22062 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22063 (eval $ac_try) 2>&5
22064 ac_status=$?
22065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22066 (exit $ac_status); }; }; then
22067 wx_cv_STDC_EXT_required=no
22068else
22069 echo "$as_me: failed program was:" >&5
22070sed 's/^/| /' conftest.$ac_ext >&5
22071
22072wx_cv_STDC_EXT_required=yes
22073
22074fi
22075rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
00421666
MW
22076
22077
22078fi
22079echo "$as_me:$LINENO: result: $wx_cv_STDC_EXT_required" >&5
22080echo "${ECHO_T}$wx_cv_STDC_EXT_required" >&6
22081 if test "x$wx_cv_STDC_EXT_required" = "xyes"; then
5ff751d6 22082 WXCONFIG_CXXFLAGS="$WXCONFIG_CXXFLAGS -D__STDC_EXT__"
00421666
MW
22083 fi
22084 fi
5b674b9d 22085 else
5ff751d6 22086 WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS -D_LARGE_FILES"
5b674b9d
DE
22087 fi
22088 echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
5294a27e
VZ
22089echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6
22090if test "${ac_cv_sys_largefile_source+set}" = set; then
22091 echo $ECHO_N "(cached) $ECHO_C" >&6
22092else
22093 while :; do
22094 ac_cv_sys_largefile_source=no
22095 cat >conftest.$ac_ext <<_ACEOF
22096/* confdefs.h. */
22097_ACEOF
22098cat confdefs.h >>conftest.$ac_ext
22099cat >>conftest.$ac_ext <<_ACEOF
22100/* end confdefs.h. */
22101#include <stdio.h>
22102int
22103main ()
22104{
22105return !fseeko;
22106 ;
22107 return 0;
22108}
22109_ACEOF
22110rm -f conftest.$ac_objext
22111if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22112 (eval $ac_compile) 2>conftest.er1
22113 ac_status=$?
22114 grep -v '^ *+' conftest.er1 >conftest.err
22115 rm -f conftest.er1
22116 cat conftest.err >&5
22117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22118 (exit $ac_status); } &&
c9a66001 22119 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5294a27e
VZ
22120 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22121 (eval $ac_try) 2>&5
22122 ac_status=$?
22123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22124 (exit $ac_status); }; } &&
22125 { ac_try='test -s conftest.$ac_objext'
22126 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22127 (eval $ac_try) 2>&5
22128 ac_status=$?
22129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22130 (exit $ac_status); }; }; then
22131 break
22132else
22133 echo "$as_me: failed program was:" >&5
22134sed 's/^/| /' conftest.$ac_ext >&5
22135
22136fi
22137rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22138 cat >conftest.$ac_ext <<_ACEOF
22139/* confdefs.h. */
22140_ACEOF
22141cat confdefs.h >>conftest.$ac_ext
22142cat >>conftest.$ac_ext <<_ACEOF
22143/* end confdefs.h. */
22144#define _LARGEFILE_SOURCE 1
22145#include <stdio.h>
22146int
22147main ()
22148{
22149return !fseeko;
22150 ;
22151 return 0;
22152}
22153_ACEOF
22154rm -f conftest.$ac_objext
22155if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22156 (eval $ac_compile) 2>conftest.er1
22157 ac_status=$?
22158 grep -v '^ *+' conftest.er1 >conftest.err
22159 rm -f conftest.er1
22160 cat conftest.err >&5
22161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22162 (exit $ac_status); } &&
c9a66001 22163 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5294a27e
VZ
22164 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22165 (eval $ac_try) 2>&5
22166 ac_status=$?
22167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22168 (exit $ac_status); }; } &&
22169 { ac_try='test -s conftest.$ac_objext'
22170 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22171 (eval $ac_try) 2>&5
22172 ac_status=$?
22173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22174 (exit $ac_status); }; }; then
22175 ac_cv_sys_largefile_source=1; break
22176else
22177 echo "$as_me: failed program was:" >&5
22178sed 's/^/| /' conftest.$ac_ext >&5
22179
22180fi
22181rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22182 break
22183done
22184fi
22185echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
22186echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6
22187if test "$ac_cv_sys_largefile_source" != no; then
22188
22189cat >>confdefs.h <<_ACEOF
22190#define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
22191_ACEOF
22192
22193fi
22194rm -f conftest*
22195
22196# We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
22197# in glibc 2.1.3, but that breaks too many other things.
22198# If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
22199echo "$as_me:$LINENO: checking for fseeko" >&5
22200echo $ECHO_N "checking for fseeko... $ECHO_C" >&6
22201if test "${ac_cv_func_fseeko+set}" = set; then
22202 echo $ECHO_N "(cached) $ECHO_C" >&6
22203else
22204 cat >conftest.$ac_ext <<_ACEOF
22205/* confdefs.h. */
22206_ACEOF
22207cat confdefs.h >>conftest.$ac_ext
22208cat >>conftest.$ac_ext <<_ACEOF
22209/* end confdefs.h. */
22210#include <stdio.h>
22211int
22212main ()
22213{
22214return fseeko && fseeko (stdin, 0, 0);
22215 ;
22216 return 0;
22217}
22218_ACEOF
22219rm -f conftest.$ac_objext conftest$ac_exeext
22220if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22221 (eval $ac_link) 2>conftest.er1
22222 ac_status=$?
22223 grep -v '^ *+' conftest.er1 >conftest.err
22224 rm -f conftest.er1
22225 cat conftest.err >&5
22226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22227 (exit $ac_status); } &&
c9a66001 22228 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5294a27e
VZ
22229 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22230 (eval $ac_try) 2>&5
22231 ac_status=$?
22232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22233 (exit $ac_status); }; } &&
22234 { ac_try='test -s conftest$ac_exeext'
22235 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22236 (eval $ac_try) 2>&5
22237 ac_status=$?
22238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22239 (exit $ac_status); }; }; then
22240 ac_cv_func_fseeko=yes
22241else
22242 echo "$as_me: failed program was:" >&5
22243sed 's/^/| /' conftest.$ac_ext >&5
22244
22245ac_cv_func_fseeko=no
22246fi
22247rm -f conftest.err conftest.$ac_objext \
22248 conftest$ac_exeext conftest.$ac_ext
22249fi
22250echo "$as_me:$LINENO: result: $ac_cv_func_fseeko" >&5
22251echo "${ECHO_T}$ac_cv_func_fseeko" >&6
22252if test $ac_cv_func_fseeko = yes; then
22253
22254cat >>confdefs.h <<\_ACEOF
22255#define HAVE_FSEEKO 1
22256_ACEOF
22257
22258fi
22259
5b674b9d 22260 if test "$ac_cv_sys_largefile_source" != no; then
5ff751d6 22261 WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS -D_LARGEFILE_SOURCE=$ac_cv_sys_largefile_source"
a848cd7e 22262 fi
a848cd7e
SC
22263fi
22264
22265echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
22266echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
22267if test "${ac_cv_c_bigendian+set}" = set; then
22268 echo $ECHO_N "(cached) $ECHO_C" >&6
22269else
22270 ac_cv_c_bigendian=unknown
22271# See if sys/param.h defines the BYTE_ORDER macro.
22272cat >conftest.$ac_ext <<_ACEOF
22273/* confdefs.h. */
22274_ACEOF
22275cat confdefs.h >>conftest.$ac_ext
22276cat >>conftest.$ac_ext <<_ACEOF
22277/* end confdefs.h. */
22278#include <sys/types.h>
22279#include <sys/param.h>
22280int
22281main ()
22282{
22283
22284#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
22285 bogus endian macros
22286#endif
22287 ;
22288 return 0;
22289}
22290_ACEOF
22291rm -f conftest.$ac_objext
22292if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 22293 (eval $ac_compile) 2>conftest.er1
a848cd7e 22294 ac_status=$?
ac1cb8d3
VS
22295 grep -v '^ *+' conftest.er1 >conftest.err
22296 rm -f conftest.er1
22297 cat conftest.err >&5
a848cd7e
SC
22298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22299 (exit $ac_status); } &&
c9a66001 22300 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
22301 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22302 (eval $ac_try) 2>&5
22303 ac_status=$?
22304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22305 (exit $ac_status); }; } &&
22306 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
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); }; }; then
22312 # It does; now see whether it defined to BIG_ENDIAN or not.
22313cat >conftest.$ac_ext <<_ACEOF
22314/* confdefs.h. */
22315_ACEOF
22316cat confdefs.h >>conftest.$ac_ext
22317cat >>conftest.$ac_ext <<_ACEOF
22318/* end confdefs.h. */
22319#include <sys/types.h>
22320#include <sys/param.h>
22321int
22322main ()
22323{
22324
22325#if BYTE_ORDER != BIG_ENDIAN
22326 not big endian
22327#endif
22328 ;
22329 return 0;
22330}
22331_ACEOF
22332rm -f conftest.$ac_objext
22333if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 22334 (eval $ac_compile) 2>conftest.er1
a848cd7e 22335 ac_status=$?
ac1cb8d3
VS
22336 grep -v '^ *+' conftest.er1 >conftest.err
22337 rm -f conftest.er1
22338 cat conftest.err >&5
a848cd7e
SC
22339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22340 (exit $ac_status); } &&
c9a66001 22341 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
22342 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22343 (eval $ac_try) 2>&5
22344 ac_status=$?
22345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22346 (exit $ac_status); }; } &&
22347 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
22348 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22349 (eval $ac_try) 2>&5
22350 ac_status=$?
22351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22352 (exit $ac_status); }; }; then
22353 ac_cv_c_bigendian=yes
22354else
22355 echo "$as_me: failed program was:" >&5
22356sed 's/^/| /' conftest.$ac_ext >&5
22357
22358ac_cv_c_bigendian=no
22359fi
ac1cb8d3 22360rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
22361else
22362 echo "$as_me: failed program was:" >&5
22363sed 's/^/| /' conftest.$ac_ext >&5
22364
22365fi
ac1cb8d3 22366rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
22367if test $ac_cv_c_bigendian = unknown; then
22368if test "$cross_compiling" = yes; then
22369 ac_cv_c_bigendian=unknown
22370else
22371 cat >conftest.$ac_ext <<_ACEOF
22372/* confdefs.h. */
22373_ACEOF
22374cat confdefs.h >>conftest.$ac_ext
22375cat >>conftest.$ac_ext <<_ACEOF
22376/* end confdefs.h. */
22377main () {
22378 /* Are we little or big endian? From Harbison&Steele. */
22379 union
22380 {
22381 long l;
22382 char c[sizeof (long)];
22383 } u;
22384 u.l = 1;
22385 exit (u.c[sizeof (long) - 1] == 1);
22386}
22387_ACEOF
22388rm -f conftest$ac_exeext
22389if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22390 (eval $ac_link) 2>&5
22391 ac_status=$?
22392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22393 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22394 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22395 (eval $ac_try) 2>&5
22396 ac_status=$?
22397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22398 (exit $ac_status); }; }; then
22399 ac_cv_c_bigendian=no
22400else
22401 echo "$as_me: program exited with status $ac_status" >&5
22402echo "$as_me: failed program was:" >&5
22403sed 's/^/| /' conftest.$ac_ext >&5
22404
22405( exit $ac_status )
22406ac_cv_c_bigendian=yes
22407fi
ac1cb8d3 22408rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
22409fi
22410fi
22411fi
22412echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
22413echo "${ECHO_T}$ac_cv_c_bigendian" >&6
22414if test $ac_cv_c_bigendian = unknown; then
22415 { 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
22416echo "$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;}
22417fi
22418if test $ac_cv_c_bigendian = yes; then
22419 cat >>confdefs.h <<\_ACEOF
22420#define WORDS_BIGENDIAN 1
22421_ACEOF
22422
22423fi
22424
22425
a848cd7e
SC
22426
22427
22428
22429 ac_ext=cc
22430ac_cpp='$CXXCPP $CPPFLAGS'
22431ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22432ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22433ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22434
22435
22436
22437for ac_header in iostream
22438do
22439as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22440if eval "test \"\${$as_ac_Header+set}\" = set"; then
22441 echo "$as_me:$LINENO: checking for $ac_header" >&5
22442echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
22443if eval "test \"\${$as_ac_Header+set}\" = set"; then
22444 echo $ECHO_N "(cached) $ECHO_C" >&6
22445fi
22446echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
22447echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
22448else
22449 # Is the header compilable?
22450echo "$as_me:$LINENO: checking $ac_header usability" >&5
22451echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
22452cat >conftest.$ac_ext <<_ACEOF
22453/* confdefs.h. */
22454_ACEOF
22455cat confdefs.h >>conftest.$ac_ext
22456cat >>conftest.$ac_ext <<_ACEOF
22457/* end confdefs.h. */
22458$ac_includes_default
22459#include <$ac_header>
22460_ACEOF
22461rm -f conftest.$ac_objext
22462if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 22463 (eval $ac_compile) 2>conftest.er1
a848cd7e 22464 ac_status=$?
ac1cb8d3
VS
22465 grep -v '^ *+' conftest.er1 >conftest.err
22466 rm -f conftest.er1
22467 cat conftest.err >&5
a848cd7e
SC
22468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22469 (exit $ac_status); } &&
c9a66001 22470 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
22471 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22472 (eval $ac_try) 2>&5
22473 ac_status=$?
22474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22475 (exit $ac_status); }; } &&
22476 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
22477 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22478 (eval $ac_try) 2>&5
22479 ac_status=$?
22480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22481 (exit $ac_status); }; }; then
22482 ac_header_compiler=yes
22483else
22484 echo "$as_me: failed program was:" >&5
22485sed 's/^/| /' conftest.$ac_ext >&5
22486
22487ac_header_compiler=no
22488fi
ac1cb8d3 22489rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
22490echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22491echo "${ECHO_T}$ac_header_compiler" >&6
22492
22493# Is the header present?
22494echo "$as_me:$LINENO: checking $ac_header presence" >&5
22495echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
22496cat >conftest.$ac_ext <<_ACEOF
22497/* confdefs.h. */
22498_ACEOF
22499cat confdefs.h >>conftest.$ac_ext
22500cat >>conftest.$ac_ext <<_ACEOF
22501/* end confdefs.h. */
22502#include <$ac_header>
22503_ACEOF
22504if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22505 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
22506 ac_status=$?
22507 grep -v '^ *+' conftest.er1 >conftest.err
22508 rm -f conftest.er1
22509 cat conftest.err >&5
22510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22511 (exit $ac_status); } >/dev/null; then
22512 if test -s conftest.err; then
22513 ac_cpp_err=$ac_cxx_preproc_warn_flag
ac1cb8d3 22514 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
22515 else
22516 ac_cpp_err=
22517 fi
22518else
22519 ac_cpp_err=yes
22520fi
22521if test -z "$ac_cpp_err"; then
22522 ac_header_preproc=yes
22523else
22524 echo "$as_me: failed program was:" >&5
22525sed 's/^/| /' conftest.$ac_ext >&5
22526
22527 ac_header_preproc=no
22528fi
22529rm -f conftest.err conftest.$ac_ext
22530echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22531echo "${ECHO_T}$ac_header_preproc" >&6
22532
22533# So? What about this header?
ac1cb8d3
VS
22534case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
22535 yes:no: )
a848cd7e
SC
22536 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22537echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
22538 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22539echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22540 ac_header_preproc=yes
a848cd7e 22541 ;;
ac1cb8d3 22542 no:yes:* )
a848cd7e
SC
22543 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22544echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
22545 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22546echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22547 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22548echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22549 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22550echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
22551 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22552echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
22553 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22554echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
22555 (
22556 cat <<\_ASBOX
ac1cb8d3
VS
22557## ----------------------------------------- ##
22558## Report this to wx-dev@lists.wxwidgets.org ##
22559## ----------------------------------------- ##
a848cd7e
SC
22560_ASBOX
22561 ) |
22562 sed "s/^/$as_me: WARNING: /" >&2
22563 ;;
22564esac
22565echo "$as_me:$LINENO: checking for $ac_header" >&5
22566echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
22567if eval "test \"\${$as_ac_Header+set}\" = set"; then
22568 echo $ECHO_N "(cached) $ECHO_C" >&6
22569else
ac1cb8d3 22570 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
22571fi
22572echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
22573echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
22574
22575fi
22576if test `eval echo '${'$as_ac_Header'}'` = yes; then
22577 cat >>confdefs.h <<_ACEOF
22578#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22579_ACEOF
22580
22581fi
22582
22583done
22584
22585
22586 if test "$ac_cv_header_iostream" = "yes" ; then
22587 :
22588 else
22589 cat >>confdefs.h <<\_ACEOF
22590#define wxUSE_IOSTREAMH 1
22591_ACEOF
22592
22593 fi
22594
5d7b7554
VZ
22595 ac_ext=cc
22596ac_cpp='$CXXCPP $CPPFLAGS'
22597ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22598ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22599ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
a848cd7e
SC
22600
22601
22602
22603
22604 echo "$as_me:$LINENO: checking if C++ compiler supports bool" >&5
22605echo $ECHO_N "checking if C++ compiler supports bool... $ECHO_C" >&6
22606if test "${wx_cv_cpp_bool+set}" = set; then
22607 echo $ECHO_N "(cached) $ECHO_C" >&6
22608else
22609
22610
22611
22612 ac_ext=cc
22613ac_cpp='$CXXCPP $CPPFLAGS'
22614ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22615ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22616ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22617
22618
22619 cat >conftest.$ac_ext <<_ACEOF
22620/* confdefs.h. */
22621_ACEOF
22622cat confdefs.h >>conftest.$ac_ext
22623cat >>conftest.$ac_ext <<_ACEOF
22624/* end confdefs.h. */
22625
22626
22627int
22628main ()
22629{
22630
22631 bool b = true;
22632
22633 return 0;
22634
22635 ;
22636 return 0;
22637}
22638_ACEOF
22639rm -f conftest.$ac_objext
22640if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 22641 (eval $ac_compile) 2>conftest.er1
a848cd7e 22642 ac_status=$?
ac1cb8d3
VS
22643 grep -v '^ *+' conftest.er1 >conftest.err
22644 rm -f conftest.er1
22645 cat conftest.err >&5
a848cd7e
SC
22646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22647 (exit $ac_status); } &&
c9a66001 22648 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
22649 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22650 (eval $ac_try) 2>&5
22651 ac_status=$?
22652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22653 (exit $ac_status); }; } &&
22654 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
22655 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22656 (eval $ac_try) 2>&5
22657 ac_status=$?
22658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22659 (exit $ac_status); }; }; then
22660
22661 wx_cv_cpp_bool=yes
22662
22663else
22664 echo "$as_me: failed program was:" >&5
22665sed 's/^/| /' conftest.$ac_ext >&5
22666
22667
22668 wx_cv_cpp_bool=no
22669
22670
22671fi
ac1cb8d3 22672rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 22673
5d7b7554
VZ
22674 ac_ext=cc
22675ac_cpp='$CXXCPP $CPPFLAGS'
22676ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22677ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22678ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
a848cd7e
SC
22679
22680
22681fi
22682echo "$as_me:$LINENO: result: $wx_cv_cpp_bool" >&5
22683echo "${ECHO_T}$wx_cv_cpp_bool" >&6
22684
22685 if test "$wx_cv_cpp_bool" = "yes"; then
22686 cat >>confdefs.h <<\_ACEOF
22687#define HAVE_BOOL 1
22688_ACEOF
22689
22690 fi
22691
22692
22693
22694 echo "$as_me:$LINENO: checking if C++ compiler supports the explicit keyword" >&5
22695echo $ECHO_N "checking if C++ compiler supports the explicit keyword... $ECHO_C" >&6
22696if test "${wx_cv_explicit+set}" = set; then
22697 echo $ECHO_N "(cached) $ECHO_C" >&6
22698else
22699
22700
22701
22702 ac_ext=cc
22703ac_cpp='$CXXCPP $CPPFLAGS'
22704ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22705ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22706ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22707
22708
22709 cat >conftest.$ac_ext <<_ACEOF
22710/* confdefs.h. */
22711_ACEOF
22712cat confdefs.h >>conftest.$ac_ext
22713cat >>conftest.$ac_ext <<_ACEOF
22714/* end confdefs.h. */
22715
22716 class Foo { public: explicit Foo(int) {} };
22717
22718int
22719main ()
22720{
22721
22722 return 0;
22723
22724 ;
22725 return 0;
22726}
22727_ACEOF
22728rm -f conftest.$ac_objext
22729if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 22730 (eval $ac_compile) 2>conftest.er1
a848cd7e 22731 ac_status=$?
ac1cb8d3
VS
22732 grep -v '^ *+' conftest.er1 >conftest.err
22733 rm -f conftest.er1
22734 cat conftest.err >&5
a848cd7e
SC
22735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22736 (exit $ac_status); } &&
c9a66001 22737 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
22738 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22739 (eval $ac_try) 2>&5
22740 ac_status=$?
22741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22742 (exit $ac_status); }; } &&
22743 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
22744 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22745 (eval $ac_try) 2>&5
22746 ac_status=$?
22747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22748 (exit $ac_status); }; }; then
22749
22750 cat >conftest.$ac_ext <<_ACEOF
22751/* confdefs.h. */
22752_ACEOF
22753cat confdefs.h >>conftest.$ac_ext
22754cat >>conftest.$ac_ext <<_ACEOF
22755/* end confdefs.h. */
22756
22757 class Foo { public: explicit Foo(int) {} };
22758 static void TakeFoo(const Foo& foo) { }
22759
22760int
22761main ()
22762{
22763
22764 TakeFoo(17);
22765 return 0;
22766
22767 ;
22768 return 0;
22769}
22770_ACEOF
22771rm -f conftest.$ac_objext
22772if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 22773 (eval $ac_compile) 2>conftest.er1
a848cd7e 22774 ac_status=$?
ac1cb8d3
VS
22775 grep -v '^ *+' conftest.er1 >conftest.err
22776 rm -f conftest.er1
22777 cat conftest.err >&5
a848cd7e
SC
22778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22779 (exit $ac_status); } &&
c9a66001 22780 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
22781 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22782 (eval $ac_try) 2>&5
22783 ac_status=$?
22784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22785 (exit $ac_status); }; } &&
22786 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
22787 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22788 (eval $ac_try) 2>&5
22789 ac_status=$?
22790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22791 (exit $ac_status); }; }; then
22792 wx_cv_explicit=no
22793else
22794 echo "$as_me: failed program was:" >&5
22795sed 's/^/| /' conftest.$ac_ext >&5
22796
22797wx_cv_explicit=yes
22798
22799fi
ac1cb8d3 22800rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
22801
22802else
22803 echo "$as_me: failed program was:" >&5
22804sed 's/^/| /' conftest.$ac_ext >&5
22805
22806wx_cv_explicit=no
22807
22808fi
ac1cb8d3 22809rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 22810
5d7b7554
VZ
22811 ac_ext=cc
22812ac_cpp='$CXXCPP $CPPFLAGS'
22813ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22814ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22815ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
a848cd7e
SC
22816
22817
22818fi
22819echo "$as_me:$LINENO: result: $wx_cv_explicit" >&5
22820echo "${ECHO_T}$wx_cv_explicit" >&6
22821
22822 if test "$wx_cv_explicit" = "yes"; then
22823 cat >>confdefs.h <<\_ACEOF
22824#define HAVE_EXPLICIT 1
22825_ACEOF
22826
22827 fi
22828
22829
22830echo "$as_me:$LINENO: checking whether the compiler supports const_cast<>" >&5
22831echo $ECHO_N "checking whether the compiler supports const_cast<>... $ECHO_C" >&6
22832if test "${ac_cv_cxx_const_cast+set}" = set; then
22833 echo $ECHO_N "(cached) $ECHO_C" >&6
22834else
22835
22836
22837 ac_ext=cc
22838ac_cpp='$CXXCPP $CPPFLAGS'
22839ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22840ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22841ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22842
22843 cat >conftest.$ac_ext <<_ACEOF
22844/* confdefs.h. */
22845_ACEOF
22846cat confdefs.h >>conftest.$ac_ext
22847cat >>conftest.$ac_ext <<_ACEOF
22848/* end confdefs.h. */
22849
22850int
22851main ()
22852{
22853int x = 0;const int& y = x;int& z = const_cast<int&>(y);return z;
22854 ;
22855 return 0;
22856}
22857_ACEOF
22858rm -f conftest.$ac_objext
22859if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 22860 (eval $ac_compile) 2>conftest.er1
a848cd7e 22861 ac_status=$?
ac1cb8d3
VS
22862 grep -v '^ *+' conftest.er1 >conftest.err
22863 rm -f conftest.er1
22864 cat conftest.err >&5
a848cd7e
SC
22865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22866 (exit $ac_status); } &&
c9a66001 22867 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
22868 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22869 (eval $ac_try) 2>&5
22870 ac_status=$?
22871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22872 (exit $ac_status); }; } &&
22873 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
22874 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22875 (eval $ac_try) 2>&5
22876 ac_status=$?
22877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22878 (exit $ac_status); }; }; then
22879 ac_cv_cxx_const_cast=yes
22880else
22881 echo "$as_me: failed program was:" >&5
22882sed 's/^/| /' conftest.$ac_ext >&5
22883
22884ac_cv_cxx_const_cast=no
22885fi
ac1cb8d3 22886rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5d7b7554
VZ
22887 ac_ext=cc
22888ac_cpp='$CXXCPP $CPPFLAGS'
22889ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22890ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22891ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
a848cd7e
SC
22892
22893
22894fi
22895echo "$as_me:$LINENO: result: $ac_cv_cxx_const_cast" >&5
22896echo "${ECHO_T}$ac_cv_cxx_const_cast" >&6
22897if test "$ac_cv_cxx_const_cast" = yes; then
22898
22899cat >>confdefs.h <<\_ACEOF
22900#define HAVE_CONST_CAST
22901_ACEOF
22902
22903fi
22904
7714864e
RL
22905echo "$as_me:$LINENO: checking whether the compiler supports reinterpret_cast<>" >&5
22906echo $ECHO_N "checking whether the compiler supports reinterpret_cast<>... $ECHO_C" >&6
22907if test "${ac_cv_cxx_reinterpret_cast+set}" = set; then
22908 echo $ECHO_N "(cached) $ECHO_C" >&6
22909else
22910
22911
22912 ac_ext=cc
22913ac_cpp='$CXXCPP $CPPFLAGS'
22914ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22915ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22916ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22917
22918 cat >conftest.$ac_ext <<_ACEOF
22919/* confdefs.h. */
22920_ACEOF
22921cat confdefs.h >>conftest.$ac_ext
22922cat >>conftest.$ac_ext <<_ACEOF
22923/* end confdefs.h. */
22924#include <typeinfo>
22925class Base { public : Base () {} virtual void f () = 0;};
22926class Derived : public Base { public : Derived () {} virtual void f () {} };
22927class Unrelated { public : Unrelated () {} };
22928int g (Unrelated&) { return 0; }
22929int
22930main ()
22931{
22932
22933Derived d;Base& b=d;Unrelated& e=reinterpret_cast<Unrelated&>(b);return g(e);
22934 ;
22935 return 0;
22936}
22937_ACEOF
22938rm -f conftest.$ac_objext
22939if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22940 (eval $ac_compile) 2>conftest.er1
22941 ac_status=$?
22942 grep -v '^ *+' conftest.er1 >conftest.err
22943 rm -f conftest.er1
22944 cat conftest.err >&5
22945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22946 (exit $ac_status); } &&
c9a66001 22947 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
7714864e
RL
22948 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22949 (eval $ac_try) 2>&5
22950 ac_status=$?
22951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22952 (exit $ac_status); }; } &&
22953 { ac_try='test -s conftest.$ac_objext'
22954 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22955 (eval $ac_try) 2>&5
22956 ac_status=$?
22957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22958 (exit $ac_status); }; }; then
22959 ac_cv_cxx_reinterpret_cast=yes
22960else
22961 echo "$as_me: failed program was:" >&5
22962sed 's/^/| /' conftest.$ac_ext >&5
22963
22964ac_cv_cxx_reinterpret_cast=no
22965fi
22966rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5d7b7554
VZ
22967 ac_ext=cc
22968ac_cpp='$CXXCPP $CPPFLAGS'
22969ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22970ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22971ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7714864e
RL
22972
22973
22974fi
22975echo "$as_me:$LINENO: result: $ac_cv_cxx_reinterpret_cast" >&5
22976echo "${ECHO_T}$ac_cv_cxx_reinterpret_cast" >&6
22977if test "$ac_cv_cxx_reinterpret_cast" = yes; then
22978
22979cat >>confdefs.h <<\_ACEOF
22980#define HAVE_REINTERPRET_CAST
22981_ACEOF
22982
22983fi
22984
a848cd7e
SC
22985echo "$as_me:$LINENO: checking whether the compiler supports static_cast<>" >&5
22986echo $ECHO_N "checking whether the compiler supports static_cast<>... $ECHO_C" >&6
22987if test "${ac_cv_cxx_static_cast+set}" = set; then
22988 echo $ECHO_N "(cached) $ECHO_C" >&6
22989else
22990
22991
22992 ac_ext=cc
22993ac_cpp='$CXXCPP $CPPFLAGS'
22994ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22995ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22996ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22997
22998 cat >conftest.$ac_ext <<_ACEOF
22999/* confdefs.h. */
23000_ACEOF
23001cat confdefs.h >>conftest.$ac_ext
23002cat >>conftest.$ac_ext <<_ACEOF
23003/* end confdefs.h. */
23004#include <typeinfo>
23005class Base { public : Base () {} virtual void f () = 0; };
23006class Derived : public Base { public : Derived () {} virtual void f () {} };
23007int g (Derived&) { return 0; }
23008int
23009main ()
23010{
23011
23012Derived d; Base& b = d; Derived& s = static_cast<Derived&> (b); return g (s);
23013 ;
23014 return 0;
23015}
23016_ACEOF
23017rm -f conftest.$ac_objext
23018if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 23019 (eval $ac_compile) 2>conftest.er1
a848cd7e 23020 ac_status=$?
ac1cb8d3
VS
23021 grep -v '^ *+' conftest.er1 >conftest.err
23022 rm -f conftest.er1
23023 cat conftest.err >&5
a848cd7e
SC
23024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23025 (exit $ac_status); } &&
c9a66001 23026 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
23027 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23028 (eval $ac_try) 2>&5
23029 ac_status=$?
23030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23031 (exit $ac_status); }; } &&
23032 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
23033 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23034 (eval $ac_try) 2>&5
23035 ac_status=$?
23036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23037 (exit $ac_status); }; }; then
23038 ac_cv_cxx_static_cast=yes
23039else
23040 echo "$as_me: failed program was:" >&5
23041sed 's/^/| /' conftest.$ac_ext >&5
23042
23043ac_cv_cxx_static_cast=no
23044fi
ac1cb8d3 23045rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5d7b7554
VZ
23046 ac_ext=cc
23047ac_cpp='$CXXCPP $CPPFLAGS'
23048ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23049ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23050ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
a848cd7e
SC
23051
23052
23053fi
23054echo "$as_me:$LINENO: result: $ac_cv_cxx_static_cast" >&5
23055echo "${ECHO_T}$ac_cv_cxx_static_cast" >&6
23056if test "$ac_cv_cxx_static_cast" = yes; then
23057
23058cat >>confdefs.h <<\_ACEOF
23059#define HAVE_STATIC_CAST
23060_ACEOF
23061
23062fi
23063
23064
3c28b7cb 23065if test "x$SUNCXX" = xyes; then
c92ad099 23066 CXXFLAGS="-features=tmplife $CXXFLAGS"
3c28b7cb
MW
23067fi
23068
9122d155 23069if test "x$SUNCC" = xyes; then
c92ad099 23070 CFLAGS="-erroff=E_NO_EXPLICIT_TYPE_GIVEN $CFLAGS"
9122d155
VZ
23071fi
23072
0ad5d837 23073if test "x$SGICC" = "xyes"; then
c92ad099 23074 CFLAGS="-woff 3970 $CFLAGS"
0ad5d837
VZ
23075fi
23076if test "x$SGICXX" = "xyes"; then
c92ad099 23077 CXXFLAGS="-woff 3970 $CXXFLAGS"
0ad5d837
VZ
23078fi
23079
2eef8513 23080if test "x$HPCC" = "xyes"; then
c92ad099 23081 CFLAGS="+W 2011,2450 $CFLAGS"
2eef8513
VZ
23082fi
23083if test "x$HPCXX" = "xyes"; then
c92ad099 23084 CXXFLAGS="+W 2340 $CXXFLAGS"
2eef8513
VZ
23085fi
23086
23087if test "x$COMPAQCXX" = "xyes"; then
23088 CXXFLAGS="-w0 -msg_disable basclsnondto,unrimpret,intconlosbit"
23089fi
23090
f56c22b4 23091if test "$wxUSE_STD_STRING" = "yes" -o "$wxUSE_STL" = "yes"; then
f56c22b4
MW
23092 if test "$wxUSE_UNICODE" = "yes"; then
23093 std_string="std::wstring"
23094 char_type="wchar_t"
23095 else
23096 std_string="std::string"
23097 char_type="char"
23098 fi
23099
23100 echo "$as_me:$LINENO: checking for $std_string in <string>" >&5
23101echo $ECHO_N "checking for $std_string in <string>... $ECHO_C" >&6
a848cd7e
SC
23102 cat >conftest.$ac_ext <<_ACEOF
23103/* confdefs.h. */
23104_ACEOF
23105cat confdefs.h >>conftest.$ac_ext
23106cat >>conftest.$ac_ext <<_ACEOF
23107/* end confdefs.h. */
23108#include <string>
a848cd7e
SC
23109int
23110main ()
23111{
f56c22b4 23112$std_string foo;
a848cd7e
SC
23113 ;
23114 return 0;
23115}
23116_ACEOF
23117rm -f conftest.$ac_objext
23118if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 23119 (eval $ac_compile) 2>conftest.er1
a848cd7e 23120 ac_status=$?
ac1cb8d3
VS
23121 grep -v '^ *+' conftest.er1 >conftest.err
23122 rm -f conftest.er1
23123 cat conftest.err >&5
a848cd7e
SC
23124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23125 (exit $ac_status); } &&
c9a66001 23126 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
23127 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23128 (eval $ac_try) 2>&5
23129 ac_status=$?
23130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23131 (exit $ac_status); }; } &&
23132 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
23133 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23134 (eval $ac_try) 2>&5
23135 ac_status=$?
23136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23137 (exit $ac_status); }; }; then
23138 echo "$as_me:$LINENO: result: yes" >&5
23139echo "${ECHO_T}yes" >&6
0a08f02a
MB
23140 cat >>confdefs.h <<\_ACEOF
23141#define HAVE_STD_WSTRING 1
23142_ACEOF
23143
a848cd7e
SC
23144else
23145 echo "$as_me: failed program was:" >&5
23146sed 's/^/| /' conftest.$ac_ext >&5
23147
23148echo "$as_me:$LINENO: result: no" >&5
23149echo "${ECHO_T}no" >&6
f56c22b4
MW
23150 echo "$as_me:$LINENO: checking if std::basic_string<$char_type> works" >&5
23151echo $ECHO_N "checking if std::basic_string<$char_type> works... $ECHO_C" >&6
0a08f02a
MB
23152 cat >conftest.$ac_ext <<_ACEOF
23153/* confdefs.h. */
23154_ACEOF
23155cat confdefs.h >>conftest.$ac_ext
23156cat >>conftest.$ac_ext <<_ACEOF
23157/* end confdefs.h. */
23158
23159 #ifdef HAVE_WCHAR_H
23160 # ifdef __CYGWIN__
23161 # include <stddef.h>
23162 # endif
23163 # include <wchar.h>
23164 #endif
23165 #ifdef HAVE_STDLIB_H
23166 # include <stdlib.h>
23167 #endif
23168 #include <stdio.h>
23169 #include <string>
23170
23171int
23172main ()
23173{
f56c22b4
MW
23174std::basic_string<$char_type> foo;
23175 const $char_type* dummy = foo.c_str();
0a08f02a
MB
23176 ;
23177 return 0;
23178}
23179_ACEOF
23180rm -f conftest.$ac_objext
23181if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23182 (eval $ac_compile) 2>conftest.er1
23183 ac_status=$?
23184 grep -v '^ *+' conftest.er1 >conftest.err
23185 rm -f conftest.er1
23186 cat conftest.err >&5
23187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23188 (exit $ac_status); } &&
c9a66001 23189 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
0a08f02a
MB
23190 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23191 (eval $ac_try) 2>&5
23192 ac_status=$?
23193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23194 (exit $ac_status); }; } &&
23195 { ac_try='test -s conftest.$ac_objext'
23196 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23197 (eval $ac_try) 2>&5
23198 ac_status=$?
23199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23200 (exit $ac_status); }; }; then
23201 echo "$as_me:$LINENO: result: yes" >&5
23202echo "${ECHO_T}yes" >&6
23203else
23204 echo "$as_me: failed program was:" >&5
23205sed 's/^/| /' conftest.$ac_ext >&5
23206
23207echo "$as_me:$LINENO: result: no" >&5
23208echo "${ECHO_T}no" >&6
f56c22b4 23209 if test "$wxUSE_STL" = "yes"; then
4b9918c5
MW
23210 { { echo "$as_me:$LINENO: error: Can't use --enable-stl without $std_string or std::basic_string<$char_type>" >&5
23211echo "$as_me: error: Can't use --enable-stl without $std_string or std::basic_string<$char_type>" >&2;}
23212 { (exit 1); exit 1; }; }
23213 elif grep wxUSE_STD_STRING $wx_arg_cache_file >/dev/null; then
23214 { { echo "$as_me:$LINENO: error: Can't use --enable-std_string without $std_string or std::basic_string<$char_type>" >&5
23215echo "$as_me: error: Can't use --enable-std_string without $std_string or std::basic_string<$char_type>" >&2;}
a848cd7e 23216 { (exit 1); exit 1; }; }
f56c22b4
MW
23217 else
23218 { echo "$as_me:$LINENO: WARNING: No $std_string or std::basic_string<$char_type>, switching to --disable-std_string" >&5
23219echo "$as_me: WARNING: No $std_string or std::basic_string<$char_type>, switching to --disable-std_string" >&2;}
23220 wxUSE_STD_STRING=no
23221 fi
23222
0a08f02a 23223
a848cd7e 23224fi
ac1cb8d3 23225rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 23226
0a08f02a
MB
23227fi
23228rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
f56c22b4
MW
23229fi
23230
23231if test "$wxUSE_STD_IOSTREAM" = "yes"; then
f56c22b4
MW
23232 echo "$as_me:$LINENO: checking for std::istream" >&5
23233echo $ECHO_N "checking for std::istream... $ECHO_C" >&6
23234if test "${ac_cv_type_std__istream+set}" = set; then
23235 echo $ECHO_N "(cached) $ECHO_C" >&6
23236else
23237 cat >conftest.$ac_ext <<_ACEOF
23238/* confdefs.h. */
23239_ACEOF
23240cat confdefs.h >>conftest.$ac_ext
23241cat >>conftest.$ac_ext <<_ACEOF
23242/* end confdefs.h. */
23243#include <iostream>
23244
23245int
23246main ()
23247{
23248if ((std::istream *) 0)
23249 return 0;
23250if (sizeof (std::istream))
23251 return 0;
23252 ;
23253 return 0;
23254}
23255_ACEOF
23256rm -f conftest.$ac_objext
23257if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23258 (eval $ac_compile) 2>conftest.er1
23259 ac_status=$?
23260 grep -v '^ *+' conftest.er1 >conftest.err
23261 rm -f conftest.er1
23262 cat conftest.err >&5
23263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23264 (exit $ac_status); } &&
c9a66001 23265 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
f56c22b4
MW
23266 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23267 (eval $ac_try) 2>&5
23268 ac_status=$?
23269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23270 (exit $ac_status); }; } &&
23271 { ac_try='test -s conftest.$ac_objext'
23272 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23273 (eval $ac_try) 2>&5
23274 ac_status=$?
23275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23276 (exit $ac_status); }; }; then
23277 ac_cv_type_std__istream=yes
23278else
23279 echo "$as_me: failed program was:" >&5
23280sed 's/^/| /' conftest.$ac_ext >&5
23281
23282ac_cv_type_std__istream=no
23283fi
23284rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23285fi
23286echo "$as_me:$LINENO: result: $ac_cv_type_std__istream" >&5
23287echo "${ECHO_T}$ac_cv_type_std__istream" >&6
23288if test $ac_cv_type_std__istream = yes; then
23289
23290cat >>confdefs.h <<_ACEOF
23291#define HAVE_STD__ISTREAM 1
23292_ACEOF
23293
23294
23295else
23296 wxUSE_STD_IOSTREAM=no
23297fi
23298echo "$as_me:$LINENO: checking for std::ostream" >&5
23299echo $ECHO_N "checking for std::ostream... $ECHO_C" >&6
23300if test "${ac_cv_type_std__ostream+set}" = set; then
23301 echo $ECHO_N "(cached) $ECHO_C" >&6
23302else
23303 cat >conftest.$ac_ext <<_ACEOF
23304/* confdefs.h. */
23305_ACEOF
23306cat confdefs.h >>conftest.$ac_ext
23307cat >>conftest.$ac_ext <<_ACEOF
23308/* end confdefs.h. */
23309#include <iostream>
23310
23311int
23312main ()
23313{
23314if ((std::ostream *) 0)
23315 return 0;
23316if (sizeof (std::ostream))
23317 return 0;
23318 ;
23319 return 0;
23320}
23321_ACEOF
23322rm -f conftest.$ac_objext
23323if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23324 (eval $ac_compile) 2>conftest.er1
23325 ac_status=$?
23326 grep -v '^ *+' conftest.er1 >conftest.err
23327 rm -f conftest.er1
23328 cat conftest.err >&5
23329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23330 (exit $ac_status); } &&
c9a66001 23331 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
f56c22b4
MW
23332 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23333 (eval $ac_try) 2>&5
23334 ac_status=$?
23335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23336 (exit $ac_status); }; } &&
23337 { ac_try='test -s conftest.$ac_objext'
23338 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23339 (eval $ac_try) 2>&5
23340 ac_status=$?
23341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23342 (exit $ac_status); }; }; then
23343 ac_cv_type_std__ostream=yes
23344else
23345 echo "$as_me: failed program was:" >&5
23346sed 's/^/| /' conftest.$ac_ext >&5
23347
23348ac_cv_type_std__ostream=no
23349fi
23350rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23351fi
23352echo "$as_me:$LINENO: result: $ac_cv_type_std__ostream" >&5
23353echo "${ECHO_T}$ac_cv_type_std__ostream" >&6
23354if test $ac_cv_type_std__ostream = yes; then
23355
23356cat >>confdefs.h <<_ACEOF
23357#define HAVE_STD__OSTREAM 1
23358_ACEOF
23359
23360
23361else
23362 wxUSE_STD_IOSTREAM=no
23363fi
23364
23365
23366 if test "$wxUSE_STD_IOSTREAM" != "yes"; then
4b9918c5
MW
23367 if grep wxUSE_STD_IOSTREAM $wx_arg_cache_file >/dev/null; then
23368 { { echo "$as_me:$LINENO: error: Can't use --enable-std_iostreams without std::istream and std::ostream" >&5
23369echo "$as_me: error: Can't use --enable-std_iostreams without std::istream and std::ostream" >&2;}
23370 { (exit 1); exit 1; }; }
23371 else
23372 { echo "$as_me:$LINENO: WARNING: No std::iostreams, switching to --disable-std_iostreams" >&5
f56c22b4 23373echo "$as_me: WARNING: No std::iostreams, switching to --disable-std_iostreams" >&2;}
4b9918c5 23374 fi
f56c22b4 23375 fi
0a08f02a
MB
23376fi
23377
23378if test "$wxUSE_STL" = "yes"; then
0a08f02a
MB
23379 echo "$as_me:$LINENO: checking for basic STL functionality" >&5
23380echo $ECHO_N "checking for basic STL functionality... $ECHO_C" >&6
a848cd7e
SC
23381 cat >conftest.$ac_ext <<_ACEOF
23382/* confdefs.h. */
23383_ACEOF
23384cat confdefs.h >>conftest.$ac_ext
23385cat >>conftest.$ac_ext <<_ACEOF
23386/* end confdefs.h. */
23387#include <string>
0a08f02a
MB
23388 #include <functional>
23389 #include <algorithm>
23390 #include <vector>
23391 #include <list>
a848cd7e
SC
23392int
23393main ()
23394{
0a08f02a
MB
23395std::vector<int> moo;
23396 std::list<int> foo;
23397 std::vector<int>::iterator it =
23398 std::find_if(moo.begin(), moo.end(),
23399 std::bind2nd(std::less<int>(), 3));
a848cd7e
SC
23400 ;
23401 return 0;
23402}
23403_ACEOF
23404rm -f conftest.$ac_objext
23405if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 23406 (eval $ac_compile) 2>conftest.er1
a848cd7e 23407 ac_status=$?
ac1cb8d3
VS
23408 grep -v '^ *+' conftest.er1 >conftest.err
23409 rm -f conftest.er1
23410 cat conftest.err >&5
a848cd7e
SC
23411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23412 (exit $ac_status); } &&
c9a66001 23413 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
23414 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23415 (eval $ac_try) 2>&5
23416 ac_status=$?
23417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23418 (exit $ac_status); }; } &&
23419 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
23420 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23421 (eval $ac_try) 2>&5
23422 ac_status=$?
23423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23424 (exit $ac_status); }; }; then
23425 echo "$as_me:$LINENO: result: yes" >&5
23426echo "${ECHO_T}yes" >&6
a848cd7e
SC
23427else
23428 echo "$as_me: failed program was:" >&5
23429sed 's/^/| /' conftest.$ac_ext >&5
23430
23431echo "$as_me:$LINENO: result: no" >&5
23432echo "${ECHO_T}no" >&6
0a08f02a
MB
23433 { { echo "$as_me:$LINENO: error: Basic STL functionality missing" >&5
23434echo "$as_me: error: Basic STL functionality missing" >&2;}
23435 { (exit 1); exit 1; }; }
a848cd7e 23436fi
ac1cb8d3 23437rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
23438
23439 echo "$as_me:$LINENO: checking for compliant std::string::compare" >&5
23440echo $ECHO_N "checking for compliant std::string::compare... $ECHO_C" >&6
23441 cat >conftest.$ac_ext <<_ACEOF
23442/* confdefs.h. */
23443_ACEOF
23444cat confdefs.h >>conftest.$ac_ext
23445cat >>conftest.$ac_ext <<_ACEOF
23446/* end confdefs.h. */
23447#include <string>
23448int
23449main ()
23450{
23451std::string foo, bar;
23452 foo.compare(bar);
23453 foo.compare(1, 1, bar);
23454 foo.compare(1, 1, bar, 1, 1);
23455 foo.compare("");
23456 foo.compare(1, 1, "");
23457 foo.compare(1, 1, "", 2);
23458 ;
23459 return 0;
23460}
23461_ACEOF
23462rm -f conftest.$ac_objext
23463if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 23464 (eval $ac_compile) 2>conftest.er1
a848cd7e 23465 ac_status=$?
ac1cb8d3
VS
23466 grep -v '^ *+' conftest.er1 >conftest.err
23467 rm -f conftest.er1
23468 cat conftest.err >&5
a848cd7e
SC
23469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23470 (exit $ac_status); } &&
c9a66001 23471 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
23472 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23473 (eval $ac_try) 2>&5
23474 ac_status=$?
23475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23476 (exit $ac_status); }; } &&
23477 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
23478 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23479 (eval $ac_try) 2>&5
23480 ac_status=$?
23481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23482 (exit $ac_status); }; }; then
23483 echo "$as_me:$LINENO: result: yes" >&5
23484echo "${ECHO_T}yes" >&6
23485 cat >>confdefs.h <<\_ACEOF
23486#define HAVE_STD_STRING_COMPARE 1
23487_ACEOF
23488
23489else
23490 echo "$as_me: failed program was:" >&5
23491sed 's/^/| /' conftest.$ac_ext >&5
23492
23493echo "$as_me:$LINENO: result: no" >&5
23494echo "${ECHO_T}no" >&6
23495fi
ac1cb8d3 23496rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bdcade0a
MB
23497
23498 if test "${ac_cv_header_hash_map+set}" = set; then
23499 echo "$as_me:$LINENO: checking for hash_map" >&5
23500echo $ECHO_N "checking for hash_map... $ECHO_C" >&6
23501if test "${ac_cv_header_hash_map+set}" = set; then
23502 echo $ECHO_N "(cached) $ECHO_C" >&6
23503fi
23504echo "$as_me:$LINENO: result: $ac_cv_header_hash_map" >&5
23505echo "${ECHO_T}$ac_cv_header_hash_map" >&6
23506else
23507 # Is the header compilable?
23508echo "$as_me:$LINENO: checking hash_map usability" >&5
23509echo $ECHO_N "checking hash_map usability... $ECHO_C" >&6
23510cat >conftest.$ac_ext <<_ACEOF
23511/* confdefs.h. */
23512_ACEOF
23513cat confdefs.h >>conftest.$ac_ext
23514cat >>conftest.$ac_ext <<_ACEOF
23515/* end confdefs.h. */
23516$ac_includes_default
23517#include <hash_map>
23518_ACEOF
23519rm -f conftest.$ac_objext
23520if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 23521 (eval $ac_compile) 2>conftest.er1
bdcade0a 23522 ac_status=$?
ac1cb8d3
VS
23523 grep -v '^ *+' conftest.er1 >conftest.err
23524 rm -f conftest.er1
23525 cat conftest.err >&5
bdcade0a
MB
23526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23527 (exit $ac_status); } &&
c9a66001 23528 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
23529 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23530 (eval $ac_try) 2>&5
23531 ac_status=$?
23532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23533 (exit $ac_status); }; } &&
23534 { ac_try='test -s conftest.$ac_objext'
bdcade0a
MB
23535 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23536 (eval $ac_try) 2>&5
23537 ac_status=$?
23538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23539 (exit $ac_status); }; }; then
23540 ac_header_compiler=yes
23541else
23542 echo "$as_me: failed program was:" >&5
23543sed 's/^/| /' conftest.$ac_ext >&5
23544
23545ac_header_compiler=no
23546fi
ac1cb8d3 23547rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bdcade0a
MB
23548echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23549echo "${ECHO_T}$ac_header_compiler" >&6
23550
23551# Is the header present?
23552echo "$as_me:$LINENO: checking hash_map presence" >&5
23553echo $ECHO_N "checking hash_map presence... $ECHO_C" >&6
23554cat >conftest.$ac_ext <<_ACEOF
23555/* confdefs.h. */
23556_ACEOF
23557cat confdefs.h >>conftest.$ac_ext
23558cat >>conftest.$ac_ext <<_ACEOF
23559/* end confdefs.h. */
23560#include <hash_map>
23561_ACEOF
23562if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
23563 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
23564 ac_status=$?
23565 grep -v '^ *+' conftest.er1 >conftest.err
23566 rm -f conftest.er1
23567 cat conftest.err >&5
23568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23569 (exit $ac_status); } >/dev/null; then
23570 if test -s conftest.err; then
23571 ac_cpp_err=$ac_cxx_preproc_warn_flag
ac1cb8d3 23572 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
bdcade0a
MB
23573 else
23574 ac_cpp_err=
23575 fi
23576else
23577 ac_cpp_err=yes
23578fi
23579if test -z "$ac_cpp_err"; then
23580 ac_header_preproc=yes
23581else
23582 echo "$as_me: failed program was:" >&5
23583sed 's/^/| /' conftest.$ac_ext >&5
23584
23585 ac_header_preproc=no
23586fi
23587rm -f conftest.err conftest.$ac_ext
23588echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23589echo "${ECHO_T}$ac_header_preproc" >&6
23590
23591# So? What about this header?
ac1cb8d3
VS
23592case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
23593 yes:no: )
bdcade0a
MB
23594 { echo "$as_me:$LINENO: WARNING: hash_map: accepted by the compiler, rejected by the preprocessor!" >&5
23595echo "$as_me: WARNING: hash_map: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
23596 { echo "$as_me:$LINENO: WARNING: hash_map: proceeding with the compiler's result" >&5
23597echo "$as_me: WARNING: hash_map: proceeding with the compiler's result" >&2;}
23598 ac_header_preproc=yes
bdcade0a 23599 ;;
ac1cb8d3 23600 no:yes:* )
bdcade0a
MB
23601 { echo "$as_me:$LINENO: WARNING: hash_map: present but cannot be compiled" >&5
23602echo "$as_me: WARNING: hash_map: present but cannot be compiled" >&2;}
ac1cb8d3
VS
23603 { echo "$as_me:$LINENO: WARNING: hash_map: check for missing prerequisite headers?" >&5
23604echo "$as_me: WARNING: hash_map: check for missing prerequisite headers?" >&2;}
23605 { echo "$as_me:$LINENO: WARNING: hash_map: see the Autoconf documentation" >&5
23606echo "$as_me: WARNING: hash_map: see the Autoconf documentation" >&2;}
23607 { echo "$as_me:$LINENO: WARNING: hash_map: section \"Present But Cannot Be Compiled\"" >&5
23608echo "$as_me: WARNING: hash_map: section \"Present But Cannot Be Compiled\"" >&2;}
bdcade0a
MB
23609 { echo "$as_me:$LINENO: WARNING: hash_map: proceeding with the preprocessor's result" >&5
23610echo "$as_me: WARNING: hash_map: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
23611 { echo "$as_me:$LINENO: WARNING: hash_map: in the future, the compiler will take precedence" >&5
23612echo "$as_me: WARNING: hash_map: in the future, the compiler will take precedence" >&2;}
bdcade0a
MB
23613 (
23614 cat <<\_ASBOX
ac1cb8d3
VS
23615## ----------------------------------------- ##
23616## Report this to wx-dev@lists.wxwidgets.org ##
23617## ----------------------------------------- ##
bdcade0a
MB
23618_ASBOX
23619 ) |
23620 sed "s/^/$as_me: WARNING: /" >&2
23621 ;;
23622esac
23623echo "$as_me:$LINENO: checking for hash_map" >&5
23624echo $ECHO_N "checking for hash_map... $ECHO_C" >&6
23625if test "${ac_cv_header_hash_map+set}" = set; then
23626 echo $ECHO_N "(cached) $ECHO_C" >&6
23627else
23628 ac_cv_header_hash_map=$ac_header_preproc
23629fi
23630echo "$as_me:$LINENO: result: $ac_cv_header_hash_map" >&5
23631echo "${ECHO_T}$ac_cv_header_hash_map" >&6
23632
23633fi
23634if test $ac_cv_header_hash_map = yes; then
23635 echo "$as_me:$LINENO: checking for hash_map and hash_set" >&5
23636echo $ECHO_N "checking for hash_map and hash_set... $ECHO_C" >&6
23637 cat >conftest.$ac_ext <<_ACEOF
23638/* confdefs.h. */
23639_ACEOF
23640cat confdefs.h >>conftest.$ac_ext
23641cat >>conftest.$ac_ext <<_ACEOF
23642/* end confdefs.h. */
23643#include <hash_map>
23644 #include <hash_set>
23645int
23646main ()
23647{
23648std::hash_map<double*, char*, std::hash<double*>, std::equal_to<double*> > test1;
23649 std::hash_set<char*, std::hash<char*>, std::equal_to<char*> > test2;
23650 ;
23651 return 0;
23652}
23653_ACEOF
23654rm -f conftest.$ac_objext
23655if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 23656 (eval $ac_compile) 2>conftest.er1
bdcade0a 23657 ac_status=$?
ac1cb8d3
VS
23658 grep -v '^ *+' conftest.er1 >conftest.err
23659 rm -f conftest.er1
23660 cat conftest.err >&5
bdcade0a
MB
23661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23662 (exit $ac_status); } &&
c9a66001 23663 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
23664 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23665 (eval $ac_try) 2>&5
23666 ac_status=$?
23667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23668 (exit $ac_status); }; } &&
23669 { ac_try='test -s conftest.$ac_objext'
bdcade0a
MB
23670 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23671 (eval $ac_try) 2>&5
23672 ac_status=$?
23673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23674 (exit $ac_status); }; }; then
23675 echo "$as_me:$LINENO: result: yes" >&5
23676echo "${ECHO_T}yes" >&6
23677 cat >>confdefs.h <<\_ACEOF
23678#define HAVE_HASH_MAP 1
23679_ACEOF
23680
23681 cat >>confdefs.h <<\_ACEOF
23682#define HAVE_STD_HASH_MAP 1
23683_ACEOF
23684
23685else
23686 echo "$as_me: failed program was:" >&5
23687sed 's/^/| /' conftest.$ac_ext >&5
23688
23689echo "$as_me:$LINENO: result: no" >&5
23690echo "${ECHO_T}no" >&6
23691fi
ac1cb8d3 23692rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bdcade0a
MB
23693
23694fi
23695
23696
23697
23698 if test "${ac_cv_header_ext_hash_map+set}" = set; then
23699 echo "$as_me:$LINENO: checking for ext/hash_map" >&5
23700echo $ECHO_N "checking for ext/hash_map... $ECHO_C" >&6
23701if test "${ac_cv_header_ext_hash_map+set}" = set; then
23702 echo $ECHO_N "(cached) $ECHO_C" >&6
23703fi
23704echo "$as_me:$LINENO: result: $ac_cv_header_ext_hash_map" >&5
23705echo "${ECHO_T}$ac_cv_header_ext_hash_map" >&6
23706else
23707 # Is the header compilable?
23708echo "$as_me:$LINENO: checking ext/hash_map usability" >&5
23709echo $ECHO_N "checking ext/hash_map usability... $ECHO_C" >&6
23710cat >conftest.$ac_ext <<_ACEOF
23711/* confdefs.h. */
23712_ACEOF
23713cat confdefs.h >>conftest.$ac_ext
23714cat >>conftest.$ac_ext <<_ACEOF
23715/* end confdefs.h. */
23716$ac_includes_default
23717#include <ext/hash_map>
23718_ACEOF
23719rm -f conftest.$ac_objext
23720if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 23721 (eval $ac_compile) 2>conftest.er1
bdcade0a 23722 ac_status=$?
ac1cb8d3
VS
23723 grep -v '^ *+' conftest.er1 >conftest.err
23724 rm -f conftest.er1
23725 cat conftest.err >&5
bdcade0a
MB
23726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23727 (exit $ac_status); } &&
c9a66001 23728 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
23729 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23730 (eval $ac_try) 2>&5
23731 ac_status=$?
23732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23733 (exit $ac_status); }; } &&
23734 { ac_try='test -s conftest.$ac_objext'
bdcade0a
MB
23735 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23736 (eval $ac_try) 2>&5
23737 ac_status=$?
23738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23739 (exit $ac_status); }; }; then
23740 ac_header_compiler=yes
23741else
23742 echo "$as_me: failed program was:" >&5
23743sed 's/^/| /' conftest.$ac_ext >&5
23744
23745ac_header_compiler=no
23746fi
ac1cb8d3 23747rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bdcade0a
MB
23748echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23749echo "${ECHO_T}$ac_header_compiler" >&6
23750
23751# Is the header present?
23752echo "$as_me:$LINENO: checking ext/hash_map presence" >&5
23753echo $ECHO_N "checking ext/hash_map presence... $ECHO_C" >&6
23754cat >conftest.$ac_ext <<_ACEOF
23755/* confdefs.h. */
23756_ACEOF
23757cat confdefs.h >>conftest.$ac_ext
23758cat >>conftest.$ac_ext <<_ACEOF
23759/* end confdefs.h. */
23760#include <ext/hash_map>
23761_ACEOF
23762if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
23763 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
23764 ac_status=$?
23765 grep -v '^ *+' conftest.er1 >conftest.err
23766 rm -f conftest.er1
23767 cat conftest.err >&5
23768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23769 (exit $ac_status); } >/dev/null; then
23770 if test -s conftest.err; then
23771 ac_cpp_err=$ac_cxx_preproc_warn_flag
ac1cb8d3 23772 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
bdcade0a
MB
23773 else
23774 ac_cpp_err=
23775 fi
23776else
23777 ac_cpp_err=yes
23778fi
23779if test -z "$ac_cpp_err"; then
23780 ac_header_preproc=yes
23781else
23782 echo "$as_me: failed program was:" >&5
23783sed 's/^/| /' conftest.$ac_ext >&5
23784
23785 ac_header_preproc=no
23786fi
23787rm -f conftest.err conftest.$ac_ext
23788echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23789echo "${ECHO_T}$ac_header_preproc" >&6
23790
23791# So? What about this header?
ac1cb8d3
VS
23792case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
23793 yes:no: )
bdcade0a
MB
23794 { echo "$as_me:$LINENO: WARNING: ext/hash_map: accepted by the compiler, rejected by the preprocessor!" >&5
23795echo "$as_me: WARNING: ext/hash_map: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
23796 { echo "$as_me:$LINENO: WARNING: ext/hash_map: proceeding with the compiler's result" >&5
23797echo "$as_me: WARNING: ext/hash_map: proceeding with the compiler's result" >&2;}
23798 ac_header_preproc=yes
bdcade0a 23799 ;;
ac1cb8d3 23800 no:yes:* )
bdcade0a
MB
23801 { echo "$as_me:$LINENO: WARNING: ext/hash_map: present but cannot be compiled" >&5
23802echo "$as_me: WARNING: ext/hash_map: present but cannot be compiled" >&2;}
ac1cb8d3
VS
23803 { echo "$as_me:$LINENO: WARNING: ext/hash_map: check for missing prerequisite headers?" >&5
23804echo "$as_me: WARNING: ext/hash_map: check for missing prerequisite headers?" >&2;}
23805 { echo "$as_me:$LINENO: WARNING: ext/hash_map: see the Autoconf documentation" >&5
23806echo "$as_me: WARNING: ext/hash_map: see the Autoconf documentation" >&2;}
23807 { echo "$as_me:$LINENO: WARNING: ext/hash_map: section \"Present But Cannot Be Compiled\"" >&5
23808echo "$as_me: WARNING: ext/hash_map: section \"Present But Cannot Be Compiled\"" >&2;}
bdcade0a
MB
23809 { echo "$as_me:$LINENO: WARNING: ext/hash_map: proceeding with the preprocessor's result" >&5
23810echo "$as_me: WARNING: ext/hash_map: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
23811 { echo "$as_me:$LINENO: WARNING: ext/hash_map: in the future, the compiler will take precedence" >&5
23812echo "$as_me: WARNING: ext/hash_map: in the future, the compiler will take precedence" >&2;}
bdcade0a
MB
23813 (
23814 cat <<\_ASBOX
ac1cb8d3
VS
23815## ----------------------------------------- ##
23816## Report this to wx-dev@lists.wxwidgets.org ##
23817## ----------------------------------------- ##
bdcade0a
MB
23818_ASBOX
23819 ) |
23820 sed "s/^/$as_me: WARNING: /" >&2
23821 ;;
23822esac
23823echo "$as_me:$LINENO: checking for ext/hash_map" >&5
23824echo $ECHO_N "checking for ext/hash_map... $ECHO_C" >&6
23825if test "${ac_cv_header_ext_hash_map+set}" = set; then
23826 echo $ECHO_N "(cached) $ECHO_C" >&6
23827else
23828 ac_cv_header_ext_hash_map=$ac_header_preproc
23829fi
23830echo "$as_me:$LINENO: result: $ac_cv_header_ext_hash_map" >&5
23831echo "${ECHO_T}$ac_cv_header_ext_hash_map" >&6
23832
23833fi
23834if test $ac_cv_header_ext_hash_map = yes; then
23835 echo "$as_me:$LINENO: checking for hash_map and hash_set" >&5
23836echo $ECHO_N "checking for hash_map and hash_set... $ECHO_C" >&6
23837 cat >conftest.$ac_ext <<_ACEOF
23838/* confdefs.h. */
23839_ACEOF
23840cat confdefs.h >>conftest.$ac_ext
23841cat >>conftest.$ac_ext <<_ACEOF
23842/* end confdefs.h. */
23843#include <ext/hash_map>
23844 #include <ext/hash_set>
23845int
23846main ()
23847{
23848__gnu_cxx::hash_map<double*, char*, __gnu_cxx::hash<double*>, std::equal_to<double*> > test1;
23849 __gnu_cxx::hash_set<char*, __gnu_cxx::hash<char*>, std::equal_to<char*> > test2;
23850 ;
23851 return 0;
23852}
23853_ACEOF
23854rm -f conftest.$ac_objext
23855if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 23856 (eval $ac_compile) 2>conftest.er1
bdcade0a 23857 ac_status=$?
ac1cb8d3
VS
23858 grep -v '^ *+' conftest.er1 >conftest.err
23859 rm -f conftest.er1
23860 cat conftest.err >&5
bdcade0a
MB
23861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23862 (exit $ac_status); } &&
c9a66001 23863 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
23864 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23865 (eval $ac_try) 2>&5
23866 ac_status=$?
23867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23868 (exit $ac_status); }; } &&
23869 { ac_try='test -s conftest.$ac_objext'
bdcade0a
MB
23870 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23871 (eval $ac_try) 2>&5
23872 ac_status=$?
23873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23874 (exit $ac_status); }; }; then
23875 echo "$as_me:$LINENO: result: yes" >&5
23876echo "${ECHO_T}yes" >&6
23877 cat >>confdefs.h <<\_ACEOF
23878#define HAVE_EXT_HASH_MAP 1
23879_ACEOF
23880
23881 cat >>confdefs.h <<\_ACEOF
23882#define HAVE_GNU_CXX_HASH_MAP 1
23883_ACEOF
23884
23885else
23886 echo "$as_me: failed program was:" >&5
23887sed 's/^/| /' conftest.$ac_ext >&5
23888
23889echo "$as_me:$LINENO: result: no" >&5
23890echo "${ECHO_T}no" >&6
23891fi
ac1cb8d3 23892rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bdcade0a
MB
23893
23894fi
23895
23896
a848cd7e
SC
23897fi
23898
23899
23900SEARCH_INCLUDE="\
23901 /usr/local/include \
23902 \
23903 /usr/Motif-2.1/include \
23904 /usr/Motif-1.2/include \
23905 /usr/include/Motif1.2 \
a848cd7e
SC
23906 \
23907 /usr/dt/include \
23908 /usr/openwin/include \
23909 \
23910 /usr/include/Xm \
23911 \
23912 /usr/X11R6/include \
23913 /usr/X11R6.4/include \
23914 /usr/X11R5/include \
23915 /usr/X11R4/include \
23916 \
23917 /usr/include/X11R6 \
23918 /usr/include/X11R5 \
23919 /usr/include/X11R4 \
23920 \
23921 /usr/local/X11R6/include \
23922 /usr/local/X11R5/include \
23923 /usr/local/X11R4/include \
23924 \
23925 /usr/local/include/X11R6 \
23926 /usr/local/include/X11R5 \
23927 /usr/local/include/X11R4 \
23928 \
23929 /usr/X11/include \
23930 /usr/include/X11 \
23931 /usr/local/X11/include \
23932 /usr/local/include/X11 \
23933 \
a848cd7e 23934 /usr/XFree86/include/X11 \
e051b34e
MW
23935 /usr/pkg/include \
23936 \
a848cd7e
SC
23937 /usr/openwin/share/include"
23938
6f9cf1e6 23939echo "$as_me:$LINENO: checking for libraries directory" >&5
0ad5d837 23940echo $ECHO_N "checking for libraries directory... $ECHO_C" >&6
6f9cf1e6
MW
23941
23942case "${host}" in
23943 *-*-irix6* )
23944 if test "${wx_cv_std_libpath+set}" = set; then
0ad5d837
VZ
23945 echo $ECHO_N "(cached) $ECHO_C" >&6
23946else
23947
c687b303
VZ
23948 for d in /usr/lib /usr/lib32 /usr/lib/64 /usr/lib64; do
23949 for e in a so sl dylib dll.a; do
23950 libc="$d/libc.$e"
23951 if test -f $libc; then
23952 save_LIBS="$LIBS"
23953 LIBS="$libc"
23954 cat >conftest.$ac_ext <<_ACEOF
0ad5d837
VZ
23955int main() { return 0; }
23956_ACEOF
23957rm -f conftest.$ac_objext conftest$ac_exeext
23958if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23959 (eval $ac_link) 2>conftest.er1
23960 ac_status=$?
23961 grep -v '^ *+' conftest.er1 >conftest.err
23962 rm -f conftest.er1
23963 cat conftest.err >&5
23964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23965 (exit $ac_status); } &&
c9a66001 23966 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
0ad5d837
VZ
23967 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23968 (eval $ac_try) 2>&5
23969 ac_status=$?
23970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23971 (exit $ac_status); }; } &&
23972 { ac_try='test -s conftest$ac_exeext'
23973 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23974 (eval $ac_try) 2>&5
23975 ac_status=$?
23976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23977 (exit $ac_status); }; }; then
23978 wx_cv_std_libpath=`echo $d | sed s@/usr/@@`
23979else
23980 echo "$as_me: failed program was:" >&5
23981sed 's/^/| /' conftest.$ac_ext >&5
23982
23983fi
23984rm -f conftest.err conftest.$ac_objext \
23985 conftest$ac_exeext conftest.$ac_ext
c687b303
VZ
23986 LIBS="$save_LIBS"
23987 if test "x$wx_cv_std_libpath" != "x"; then
23988 break 2
23989 fi
23990 fi
23991 done
23992 done
23993 if test "x$wx_cv_std_libpath" = "x"; then
23994 wx_cv_std_libpath="lib"
0ad5d837 23995 fi
0ad5d837
VZ
23996
23997
23998fi
6f9cf1e6
MW
23999
24000 ;;
24001
24002 *-*-solaris2* )
24003 if test "$ac_cv_sizeof_void_p" = 8 -a -d "/usr/lib/64"; then
24004 wx_cv_std_libpath="lib/64"
24005 else
24006 wx_cv_std_libpath="lib"
24007 fi
24008 ;;
24009
24010 *-*-linux* )
24011 if test "$ac_cv_sizeof_void_p" = 8 -a \
24012 -d "/usr/lib64" -a ! -h "/usr/lib64"; then
24013 wx_cv_std_libpath="lib64"
24014 else
24015 wx_cv_std_libpath="lib"
24016 fi
c687b303
VZ
24017 ;;
24018
24019 *)
24020 wx_cv_std_libpath="lib";
24021 ;;
24022esac
0ad5d837 24023
6f9cf1e6
MW
24024echo "$as_me:$LINENO: result: $wx_cv_std_libpath" >&5
24025echo "${ECHO_T}$wx_cv_std_libpath" >&6
24026
24027SEARCH_LIB="`echo "$SEARCH_INCLUDE" | sed s@include@$wx_cv_std_libpath@g` /usr/$wx_cv_std_libpath"
a848cd7e 24028
3eca31dc
MW
24029if test "$build" != "$host" -a "$GCC" = yes; then
24030 if cross_root=`$CC -print-prog-name=ld 2>/dev/null`; then
24031 cross_root=`dirname $cross_root`
24032 cross_root=`dirname $cross_root`
24033
24034 SEARCH_LIB=`for x in $SEARCH_LIB; do echo $x; done | sed -ne "s|^/usr|$cross_root|p"`
24035 SEARCH_INCLUDE=`for x in $SEARCH_INCLUDE; do echo $x; done | sed -ne "s|^/usr|$cross_root|p"`
5c60e845 24036 SEARCH_INCLUDE="$SEARCH_INCLUDE $cross_root/include"
3eca31dc
MW
24037
24038 if test -z "$PKG_CONFIG_PATH"; then
24039 PKG_CONFIG_PATH="$cross_root/local/lib/pkgconfig:$cross_root/lib/pkgconfig"
24040 export PKG_CONFIG_PATH
24041 fi
24042
24043 if test -z "$x_includes" -o "$x_includes" = NONE; then
24044
24045ac_find_includes=
24046for ac_dir in $SEARCH_INCLUDE /usr/include;
24047 do
24048 if test -f "$ac_dir/X11/Intrinsic.h"; then
24049 ac_find_includes=$ac_dir
24050 break
24051 fi
24052 done
24053
24054 x_includes=$ac_find_includes
24055 fi
24056 if test -z "$x_libraries" -o "$x_libraries" = NONE; then
24057
0ad5d837
VZ
24058 ac_find_libraries=
24059 for ac_dir in $SEARCH_LIB;
3eca31dc
MW
24060 do
24061 for ac_extension in a so sl dylib dll.a; do
24062 if test -f "$ac_dir/libXt.$ac_extension"; then
24063 ac_find_libraries=$ac_dir
24064 break 2
24065 fi
24066 done
24067 done
24068
24069 x_libraries=$ac_find_libraries
24070 fi
24071 fi
24072fi
24073
a848cd7e
SC
24074
24075cat >confcache <<\_ACEOF
24076# This file is a shell script that caches the results of configure
24077# tests run on this system so they can be shared between configure
24078# scripts and configure runs, see configure's option --config-cache.
24079# It is not useful on other systems. If it contains results you don't
24080# want to keep, you may remove or edit it.
24081#
24082# config.status only pays attention to the cache file if you give it
24083# the --recheck option to rerun configure.
24084#
24085# `ac_cv_env_foo' variables (set or unset) will be overridden when
24086# loading this file, other *unset* `ac_cv_foo' will be assigned the
24087# following values.
24088
24089_ACEOF
24090
24091# The following way of writing the cache mishandles newlines in values,
24092# but we know of no workaround that is simple, portable, and efficient.
24093# So, don't put newlines in cache variables' values.
24094# Ultrix sh set writes to stderr and can't be redirected directly,
24095# and sets the high bit in the cache file unless we assign to the vars.
24096{
24097 (set) 2>&1 |
24098 case `(ac_space=' '; set | grep ac_space) 2>&1` in
24099 *ac_space=\ *)
24100 # `set' does not quote correctly, so add quotes (double-quote
24101 # substitution turns \\\\ into \\, and sed turns \\ into \).
24102 sed -n \
ac1cb8d3
VS
24103 "s/'/'\\\\''/g;
24104 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
a848cd7e
SC
24105 ;;
24106 *)
24107 # `set' quotes correctly as required by POSIX, so do not add quotes.
24108 sed -n \
ac1cb8d3 24109 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
a848cd7e
SC
24110 ;;
24111 esac;
24112} |
24113 sed '
24114 t clear
24115 : clear
24116 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
24117 t end
24118 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
24119 : end' >>confcache
24120if diff $cache_file confcache >/dev/null 2>&1; then :; else
24121 if test -w $cache_file; then
24122 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
24123 cat confcache >$cache_file
24124 else
24125 echo "not updating unwritable cache $cache_file"
24126 fi
24127fi
24128rm -f confcache
24129
24130if test "$USE_LINUX" = 1 -o "$USE_GNU" = 1; then
24131 echo "$as_me:$LINENO: checking for glibc 2.1 or later" >&5
24132echo $ECHO_N "checking for glibc 2.1 or later... $ECHO_C" >&6
24133if test "${wx_cv_lib_glibc21+set}" = set; then
24134 echo $ECHO_N "(cached) $ECHO_C" >&6
24135else
24136
24137 cat >conftest.$ac_ext <<_ACEOF
24138/* confdefs.h. */
24139_ACEOF
24140cat confdefs.h >>conftest.$ac_ext
24141cat >>conftest.$ac_ext <<_ACEOF
24142/* end confdefs.h. */
24143#include <features.h>
24144int
24145main ()
24146{
24147
24148 #if (__GLIBC__ < 2) || (__GLIBC_MINOR__ < 1)
04e525a0 24149 not glibc 2.1
a848cd7e
SC
24150 #endif
24151
24152 ;
24153 return 0;
24154}
24155_ACEOF
24156rm -f conftest.$ac_objext
24157if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 24158 (eval $ac_compile) 2>conftest.er1
a848cd7e 24159 ac_status=$?
ac1cb8d3
VS
24160 grep -v '^ *+' conftest.er1 >conftest.err
24161 rm -f conftest.er1
24162 cat conftest.err >&5
a848cd7e
SC
24163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24164 (exit $ac_status); } &&
c9a66001 24165 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
24166 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24167 (eval $ac_try) 2>&5
24168 ac_status=$?
24169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24170 (exit $ac_status); }; } &&
24171 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
24172 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24173 (eval $ac_try) 2>&5
24174 ac_status=$?
24175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24176 (exit $ac_status); }; }; then
24177
24178 wx_cv_lib_glibc21=yes
24179
24180else
24181 echo "$as_me: failed program was:" >&5
24182sed 's/^/| /' conftest.$ac_ext >&5
24183
24184
24185 wx_cv_lib_glibc21=no
24186
24187
24188fi
ac1cb8d3 24189rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
24190
24191fi
24192echo "$as_me:$LINENO: result: $wx_cv_lib_glibc21" >&5
24193echo "${ECHO_T}$wx_cv_lib_glibc21" >&6
24194 if test "$wx_cv_lib_glibc21" = "yes"; then
24195 cat >>confdefs.h <<\_ACEOF
24196#define wxHAVE_GLIBC2 1
24197_ACEOF
24198
24199 fi
24200fi
24201
24202if test "x$wx_cv_lib_glibc21" = "xyes"; then
24203 if test "$wxUSE_UNICODE" = "yes" -o "$wxUSE_THREADS" = "yes"; then
24204 cat >>confdefs.h <<\_ACEOF
24205#define _GNU_SOURCE 1
24206_ACEOF
24207
24208 fi
24209fi
24210
5d7b7554
VZ
24211have_cos=0
24212have_floor=0
a848cd7e 24213
5d7b7554
VZ
24214for ac_func in cos
24215do
24216as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24217echo "$as_me:$LINENO: checking for $ac_func" >&5
24218echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
24219if eval "test \"\${$as_ac_var+set}\" = set"; then
a848cd7e 24220 echo $ECHO_N "(cached) $ECHO_C" >&6
a848cd7e 24221else
5d7b7554 24222 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
24223/* confdefs.h. */
24224_ACEOF
24225cat confdefs.h >>conftest.$ac_ext
24226cat >>conftest.$ac_ext <<_ACEOF
24227/* end confdefs.h. */
5d7b7554
VZ
24228/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24229 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24230#define $ac_func innocuous_$ac_func
24231
24232/* System header to define __stub macros and hopefully few prototypes,
24233 which can conflict with char $ac_func (); below.
24234 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24235 <limits.h> exists even on freestanding compilers. */
24236
24237#ifdef __STDC__
24238# include <limits.h>
24239#else
24240# include <assert.h>
24241#endif
24242
24243#undef $ac_func
24244
24245/* Override any gcc2 internal prototype to avoid an error. */
24246#ifdef __cplusplus
24247extern "C"
24248{
24249#endif
24250/* We use char because int might match the return type of a gcc2
24251 builtin and then its argument prototype would still apply. */
24252char $ac_func ();
24253/* The GNU C library defines this for functions which it implements
24254 to always fail with ENOSYS. Some functions are actually named
24255 something starting with __ and the normal name is an alias. */
24256#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
24257choke me
24258#else
24259char (*f) () = $ac_func;
24260#endif
24261#ifdef __cplusplus
24262}
24263#endif
24264
24265int
24266main ()
24267{
24268return f != $ac_func;
24269 ;
24270 return 0;
24271}
a848cd7e 24272_ACEOF
5d7b7554
VZ
24273rm -f conftest.$ac_objext conftest$ac_exeext
24274if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24275 (eval $ac_link) 2>conftest.er1
a848cd7e 24276 ac_status=$?
ac1cb8d3
VS
24277 grep -v '^ *+' conftest.er1 >conftest.err
24278 rm -f conftest.er1
24279 cat conftest.err >&5
a848cd7e
SC
24280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24281 (exit $ac_status); } &&
c9a66001 24282 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
24283 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24284 (eval $ac_try) 2>&5
24285 ac_status=$?
24286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24287 (exit $ac_status); }; } &&
5d7b7554 24288 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
24289 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24290 (eval $ac_try) 2>&5
24291 ac_status=$?
24292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24293 (exit $ac_status); }; }; then
5d7b7554 24294 eval "$as_ac_var=yes"
a848cd7e
SC
24295else
24296 echo "$as_me: failed program was:" >&5
24297sed 's/^/| /' conftest.$ac_ext >&5
24298
5d7b7554 24299eval "$as_ac_var=no"
a848cd7e 24300fi
5d7b7554
VZ
24301rm -f conftest.err conftest.$ac_objext \
24302 conftest$ac_exeext conftest.$ac_ext
a848cd7e 24303fi
5d7b7554
VZ
24304echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
24305echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
24306if test `eval echo '${'$as_ac_var'}'` = yes; then
24307 cat >>confdefs.h <<_ACEOF
24308#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24309_ACEOF
24310 have_cos=1
a848cd7e 24311fi
5d7b7554 24312done
a848cd7e 24313
ab0f0edd 24314
5d7b7554 24315for ac_func in floor
a848cd7e
SC
24316do
24317as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24318echo "$as_me:$LINENO: checking for $ac_func" >&5
24319echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
24320if eval "test \"\${$as_ac_var+set}\" = set"; then
24321 echo $ECHO_N "(cached) $ECHO_C" >&6
24322else
24323 cat >conftest.$ac_ext <<_ACEOF
24324/* confdefs.h. */
24325_ACEOF
24326cat confdefs.h >>conftest.$ac_ext
24327cat >>conftest.$ac_ext <<_ACEOF
24328/* end confdefs.h. */
ac1cb8d3
VS
24329/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24330 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24331#define $ac_func innocuous_$ac_func
24332
a848cd7e
SC
24333/* System header to define __stub macros and hopefully few prototypes,
24334 which can conflict with char $ac_func (); below.
24335 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24336 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 24337
a848cd7e
SC
24338#ifdef __STDC__
24339# include <limits.h>
24340#else
24341# include <assert.h>
24342#endif
ac1cb8d3
VS
24343
24344#undef $ac_func
24345
a848cd7e
SC
24346/* Override any gcc2 internal prototype to avoid an error. */
24347#ifdef __cplusplus
24348extern "C"
24349{
24350#endif
24351/* We use char because int might match the return type of a gcc2
24352 builtin and then its argument prototype would still apply. */
24353char $ac_func ();
24354/* The GNU C library defines this for functions which it implements
24355 to always fail with ENOSYS. Some functions are actually named
24356 something starting with __ and the normal name is an alias. */
24357#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
24358choke me
24359#else
24360char (*f) () = $ac_func;
24361#endif
24362#ifdef __cplusplus
24363}
24364#endif
24365
24366int
24367main ()
24368{
24369return f != $ac_func;
24370 ;
24371 return 0;
24372}
24373_ACEOF
24374rm -f conftest.$ac_objext conftest$ac_exeext
24375if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 24376 (eval $ac_link) 2>conftest.er1
a848cd7e 24377 ac_status=$?
ac1cb8d3
VS
24378 grep -v '^ *+' conftest.er1 >conftest.err
24379 rm -f conftest.er1
24380 cat conftest.err >&5
a848cd7e
SC
24381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24382 (exit $ac_status); } &&
c9a66001 24383 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5d7b7554
VZ
24384 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24385 (eval $ac_try) 2>&5
24386 ac_status=$?
24387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24388 (exit $ac_status); }; } &&
24389 { ac_try='test -s conftest$ac_exeext'
24390 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24391 (eval $ac_try) 2>&5
24392 ac_status=$?
24393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24394 (exit $ac_status); }; }; then
24395 eval "$as_ac_var=yes"
24396else
24397 echo "$as_me: failed program was:" >&5
24398sed 's/^/| /' conftest.$ac_ext >&5
24399
24400eval "$as_ac_var=no"
24401fi
24402rm -f conftest.err conftest.$ac_objext \
24403 conftest$ac_exeext conftest.$ac_ext
24404fi
24405echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
24406echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
24407if test `eval echo '${'$as_ac_var'}'` = yes; then
24408 cat >>confdefs.h <<_ACEOF
24409#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24410_ACEOF
24411 have_floor=1
24412fi
24413done
24414
24415echo "$as_me:$LINENO: checking if floating point functions link without -lm" >&5
24416echo $ECHO_N "checking if floating point functions link without -lm... $ECHO_C" >&6
24417if test "$have_cos" = 1 -a "$have_floor" = 1; then
24418 echo "$as_me:$LINENO: result: yes" >&5
24419echo "${ECHO_T}yes" >&6
24420else
24421 echo "$as_me:$LINENO: result: no" >&5
24422echo "${ECHO_T}no" >&6
24423 LIBS="$LIBS -lm"
24424 # use different functions to avoid configure caching
24425 have_sin=0
24426 have_ceil=0
24427
24428for ac_func in sin
24429do
24430as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24431echo "$as_me:$LINENO: checking for $ac_func" >&5
24432echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
24433if eval "test \"\${$as_ac_var+set}\" = set"; then
24434 echo $ECHO_N "(cached) $ECHO_C" >&6
24435else
24436 cat >conftest.$ac_ext <<_ACEOF
24437/* confdefs.h. */
24438_ACEOF
24439cat confdefs.h >>conftest.$ac_ext
24440cat >>conftest.$ac_ext <<_ACEOF
24441/* end confdefs.h. */
24442/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24443 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24444#define $ac_func innocuous_$ac_func
24445
24446/* System header to define __stub macros and hopefully few prototypes,
24447 which can conflict with char $ac_func (); below.
24448 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24449 <limits.h> exists even on freestanding compilers. */
24450
24451#ifdef __STDC__
24452# include <limits.h>
24453#else
24454# include <assert.h>
24455#endif
24456
24457#undef $ac_func
24458
24459/* Override any gcc2 internal prototype to avoid an error. */
24460#ifdef __cplusplus
24461extern "C"
24462{
24463#endif
24464/* We use char because int might match the return type of a gcc2
24465 builtin and then its argument prototype would still apply. */
24466char $ac_func ();
24467/* The GNU C library defines this for functions which it implements
24468 to always fail with ENOSYS. Some functions are actually named
24469 something starting with __ and the normal name is an alias. */
24470#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
24471choke me
24472#else
24473char (*f) () = $ac_func;
24474#endif
24475#ifdef __cplusplus
24476}
24477#endif
24478
24479int
24480main ()
24481{
24482return f != $ac_func;
24483 ;
24484 return 0;
24485}
24486_ACEOF
24487rm -f conftest.$ac_objext conftest$ac_exeext
24488if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24489 (eval $ac_link) 2>conftest.er1
24490 ac_status=$?
24491 grep -v '^ *+' conftest.er1 >conftest.err
24492 rm -f conftest.er1
24493 cat conftest.err >&5
24494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24495 (exit $ac_status); } &&
c9a66001 24496 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5d7b7554
VZ
24497 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24498 (eval $ac_try) 2>&5
24499 ac_status=$?
24500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24501 (exit $ac_status); }; } &&
24502 { ac_try='test -s conftest$ac_exeext'
24503 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24504 (eval $ac_try) 2>&5
24505 ac_status=$?
24506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24507 (exit $ac_status); }; }; then
24508 eval "$as_ac_var=yes"
24509else
24510 echo "$as_me: failed program was:" >&5
24511sed 's/^/| /' conftest.$ac_ext >&5
24512
24513eval "$as_ac_var=no"
24514fi
24515rm -f conftest.err conftest.$ac_objext \
24516 conftest$ac_exeext conftest.$ac_ext
24517fi
24518echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
24519echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
24520if test `eval echo '${'$as_ac_var'}'` = yes; then
24521 cat >>confdefs.h <<_ACEOF
24522#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24523_ACEOF
24524 have_sin=1
24525fi
24526done
24527
24528
24529for ac_func in ceil
24530do
24531as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24532echo "$as_me:$LINENO: checking for $ac_func" >&5
24533echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
24534if eval "test \"\${$as_ac_var+set}\" = set"; then
24535 echo $ECHO_N "(cached) $ECHO_C" >&6
24536else
24537 cat >conftest.$ac_ext <<_ACEOF
24538/* confdefs.h. */
24539_ACEOF
24540cat confdefs.h >>conftest.$ac_ext
24541cat >>conftest.$ac_ext <<_ACEOF
24542/* end confdefs.h. */
24543/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24544 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24545#define $ac_func innocuous_$ac_func
24546
24547/* System header to define __stub macros and hopefully few prototypes,
24548 which can conflict with char $ac_func (); below.
24549 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24550 <limits.h> exists even on freestanding compilers. */
24551
24552#ifdef __STDC__
24553# include <limits.h>
24554#else
24555# include <assert.h>
24556#endif
24557
24558#undef $ac_func
24559
24560/* Override any gcc2 internal prototype to avoid an error. */
24561#ifdef __cplusplus
24562extern "C"
24563{
24564#endif
24565/* We use char because int might match the return type of a gcc2
24566 builtin and then its argument prototype would still apply. */
24567char $ac_func ();
24568/* The GNU C library defines this for functions which it implements
24569 to always fail with ENOSYS. Some functions are actually named
24570 something starting with __ and the normal name is an alias. */
24571#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
24572choke me
24573#else
24574char (*f) () = $ac_func;
24575#endif
24576#ifdef __cplusplus
24577}
24578#endif
24579
24580int
24581main ()
24582{
24583return f != $ac_func;
24584 ;
24585 return 0;
24586}
24587_ACEOF
24588rm -f conftest.$ac_objext conftest$ac_exeext
24589if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24590 (eval $ac_link) 2>conftest.er1
24591 ac_status=$?
24592 grep -v '^ *+' conftest.er1 >conftest.err
24593 rm -f conftest.er1
24594 cat conftest.err >&5
24595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24596 (exit $ac_status); } &&
c9a66001 24597 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5d7b7554
VZ
24598 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24599 (eval $ac_try) 2>&5
24600 ac_status=$?
24601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24602 (exit $ac_status); }; } &&
24603 { ac_try='test -s conftest$ac_exeext'
24604 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24605 (eval $ac_try) 2>&5
24606 ac_status=$?
24607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24608 (exit $ac_status); }; }; then
24609 eval "$as_ac_var=yes"
24610else
24611 echo "$as_me: failed program was:" >&5
24612sed 's/^/| /' conftest.$ac_ext >&5
24613
24614eval "$as_ac_var=no"
24615fi
24616rm -f conftest.err conftest.$ac_objext \
24617 conftest$ac_exeext conftest.$ac_ext
24618fi
24619echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
24620echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
24621if test `eval echo '${'$as_ac_var'}'` = yes; then
24622 cat >>confdefs.h <<_ACEOF
24623#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24624_ACEOF
24625 have_ceil=1
24626fi
24627done
24628
24629 echo "$as_me:$LINENO: checking if floating point functions link with -lm" >&5
24630echo $ECHO_N "checking if floating point functions link with -lm... $ECHO_C" >&6
24631 if test "$have_sin" = 1 -a "$have_ceil" = 1; then
24632 echo "$as_me:$LINENO: result: yes" >&5
24633echo "${ECHO_T}yes" >&6
24634 else
24635 echo "$as_me:$LINENO: result: no" >&5
24636echo "${ECHO_T}no" >&6
24637 # not sure we should warn the user, crash, etc.
24638 fi
24639fi
24640
24641
24642
24643if test "$wxUSE_REGEX" != "no"; then
24644 cat >>confdefs.h <<\_ACEOF
24645#define wxUSE_REGEX 1
24646_ACEOF
24647
24648
24649 if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_REGEX" = "yes"; then
24650 { echo "$as_me:$LINENO: WARNING: Defaulting to the the builtin regex library for Unicode build." >&5
24651echo "$as_me: WARNING: Defaulting to the the builtin regex library for Unicode build." >&2;}
24652 wxUSE_REGEX=builtin
24653 fi
24654
24655 if test "$wxUSE_REGEX" = "sys" -o "$wxUSE_REGEX" = "yes" ; then
24656 if test "${ac_cv_header_regex_h+set}" = set; then
24657 echo "$as_me:$LINENO: checking for regex.h" >&5
24658echo $ECHO_N "checking for regex.h... $ECHO_C" >&6
24659if test "${ac_cv_header_regex_h+set}" = set; then
24660 echo $ECHO_N "(cached) $ECHO_C" >&6
24661fi
24662echo "$as_me:$LINENO: result: $ac_cv_header_regex_h" >&5
24663echo "${ECHO_T}$ac_cv_header_regex_h" >&6
24664else
24665 # Is the header compilable?
24666echo "$as_me:$LINENO: checking regex.h usability" >&5
24667echo $ECHO_N "checking regex.h usability... $ECHO_C" >&6
24668cat >conftest.$ac_ext <<_ACEOF
24669/* confdefs.h. */
24670_ACEOF
24671cat confdefs.h >>conftest.$ac_ext
24672cat >>conftest.$ac_ext <<_ACEOF
24673/* end confdefs.h. */
24674$ac_includes_default
24675#include <regex.h>
24676_ACEOF
24677rm -f conftest.$ac_objext
24678if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24679 (eval $ac_compile) 2>conftest.er1
24680 ac_status=$?
24681 grep -v '^ *+' conftest.er1 >conftest.err
24682 rm -f conftest.er1
24683 cat conftest.err >&5
24684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24685 (exit $ac_status); } &&
c9a66001 24686 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5d7b7554
VZ
24687 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24688 (eval $ac_try) 2>&5
24689 ac_status=$?
24690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24691 (exit $ac_status); }; } &&
24692 { ac_try='test -s conftest.$ac_objext'
24693 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24694 (eval $ac_try) 2>&5
24695 ac_status=$?
24696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24697 (exit $ac_status); }; }; then
24698 ac_header_compiler=yes
24699else
24700 echo "$as_me: failed program was:" >&5
24701sed 's/^/| /' conftest.$ac_ext >&5
24702
24703ac_header_compiler=no
24704fi
24705rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24706echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24707echo "${ECHO_T}$ac_header_compiler" >&6
24708
24709# Is the header present?
24710echo "$as_me:$LINENO: checking regex.h presence" >&5
24711echo $ECHO_N "checking regex.h presence... $ECHO_C" >&6
24712cat >conftest.$ac_ext <<_ACEOF
24713/* confdefs.h. */
24714_ACEOF
24715cat confdefs.h >>conftest.$ac_ext
24716cat >>conftest.$ac_ext <<_ACEOF
24717/* end confdefs.h. */
24718#include <regex.h>
24719_ACEOF
24720if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
24721 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
24722 ac_status=$?
24723 grep -v '^ *+' conftest.er1 >conftest.err
24724 rm -f conftest.er1
24725 cat conftest.err >&5
24726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24727 (exit $ac_status); } >/dev/null; then
24728 if test -s conftest.err; then
24729 ac_cpp_err=$ac_cxx_preproc_warn_flag
24730 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
24731 else
24732 ac_cpp_err=
24733 fi
24734else
24735 ac_cpp_err=yes
24736fi
24737if test -z "$ac_cpp_err"; then
24738 ac_header_preproc=yes
24739else
24740 echo "$as_me: failed program was:" >&5
24741sed 's/^/| /' conftest.$ac_ext >&5
24742
24743 ac_header_preproc=no
24744fi
24745rm -f conftest.err conftest.$ac_ext
24746echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24747echo "${ECHO_T}$ac_header_preproc" >&6
24748
24749# So? What about this header?
24750case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
24751 yes:no: )
24752 { echo "$as_me:$LINENO: WARNING: regex.h: accepted by the compiler, rejected by the preprocessor!" >&5
24753echo "$as_me: WARNING: regex.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
24754 { echo "$as_me:$LINENO: WARNING: regex.h: proceeding with the compiler's result" >&5
24755echo "$as_me: WARNING: regex.h: proceeding with the compiler's result" >&2;}
24756 ac_header_preproc=yes
24757 ;;
24758 no:yes:* )
24759 { echo "$as_me:$LINENO: WARNING: regex.h: present but cannot be compiled" >&5
24760echo "$as_me: WARNING: regex.h: present but cannot be compiled" >&2;}
24761 { echo "$as_me:$LINENO: WARNING: regex.h: check for missing prerequisite headers?" >&5
24762echo "$as_me: WARNING: regex.h: check for missing prerequisite headers?" >&2;}
24763 { echo "$as_me:$LINENO: WARNING: regex.h: see the Autoconf documentation" >&5
24764echo "$as_me: WARNING: regex.h: see the Autoconf documentation" >&2;}
24765 { echo "$as_me:$LINENO: WARNING: regex.h: section \"Present But Cannot Be Compiled\"" >&5
24766echo "$as_me: WARNING: regex.h: section \"Present But Cannot Be Compiled\"" >&2;}
24767 { echo "$as_me:$LINENO: WARNING: regex.h: proceeding with the preprocessor's result" >&5
24768echo "$as_me: WARNING: regex.h: proceeding with the preprocessor's result" >&2;}
24769 { echo "$as_me:$LINENO: WARNING: regex.h: in the future, the compiler will take precedence" >&5
24770echo "$as_me: WARNING: regex.h: in the future, the compiler will take precedence" >&2;}
24771 (
24772 cat <<\_ASBOX
24773## ----------------------------------------- ##
24774## Report this to wx-dev@lists.wxwidgets.org ##
24775## ----------------------------------------- ##
24776_ASBOX
24777 ) |
24778 sed "s/^/$as_me: WARNING: /" >&2
24779 ;;
24780esac
24781echo "$as_me:$LINENO: checking for regex.h" >&5
24782echo $ECHO_N "checking for regex.h... $ECHO_C" >&6
24783if test "${ac_cv_header_regex_h+set}" = set; then
24784 echo $ECHO_N "(cached) $ECHO_C" >&6
24785else
24786 ac_cv_header_regex_h=$ac_header_preproc
24787fi
24788echo "$as_me:$LINENO: result: $ac_cv_header_regex_h" >&5
24789echo "${ECHO_T}$ac_cv_header_regex_h" >&6
24790
24791fi
24792if test $ac_cv_header_regex_h = yes; then
24793
24794
24795for ac_func in regcomp re_search
24796do
24797as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24798echo "$as_me:$LINENO: checking for $ac_func" >&5
24799echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
24800if eval "test \"\${$as_ac_var+set}\" = set"; then
24801 echo $ECHO_N "(cached) $ECHO_C" >&6
24802else
24803 cat >conftest.$ac_ext <<_ACEOF
24804/* confdefs.h. */
24805_ACEOF
24806cat confdefs.h >>conftest.$ac_ext
24807cat >>conftest.$ac_ext <<_ACEOF
24808/* end confdefs.h. */
24809/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24810 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24811#define $ac_func innocuous_$ac_func
24812
24813/* System header to define __stub macros and hopefully few prototypes,
24814 which can conflict with char $ac_func (); below.
24815 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24816 <limits.h> exists even on freestanding compilers. */
24817
24818#ifdef __STDC__
24819# include <limits.h>
24820#else
24821# include <assert.h>
24822#endif
24823
24824#undef $ac_func
24825
24826/* Override any gcc2 internal prototype to avoid an error. */
24827#ifdef __cplusplus
24828extern "C"
24829{
24830#endif
24831/* We use char because int might match the return type of a gcc2
24832 builtin and then its argument prototype would still apply. */
24833char $ac_func ();
24834/* The GNU C library defines this for functions which it implements
24835 to always fail with ENOSYS. Some functions are actually named
24836 something starting with __ and the normal name is an alias. */
24837#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
24838choke me
24839#else
24840char (*f) () = $ac_func;
24841#endif
24842#ifdef __cplusplus
24843}
24844#endif
24845
24846int
24847main ()
24848{
24849return f != $ac_func;
24850 ;
24851 return 0;
24852}
24853_ACEOF
24854rm -f conftest.$ac_objext conftest$ac_exeext
24855if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24856 (eval $ac_link) 2>conftest.er1
24857 ac_status=$?
24858 grep -v '^ *+' conftest.er1 >conftest.err
24859 rm -f conftest.er1
24860 cat conftest.err >&5
24861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24862 (exit $ac_status); } &&
c9a66001 24863 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
24864 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24865 (eval $ac_try) 2>&5
24866 ac_status=$?
24867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24868 (exit $ac_status); }; } &&
24869 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
24870 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24871 (eval $ac_try) 2>&5
24872 ac_status=$?
24873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24874 (exit $ac_status); }; }; then
24875 eval "$as_ac_var=yes"
24876else
24877 echo "$as_me: failed program was:" >&5
24878sed 's/^/| /' conftest.$ac_ext >&5
24879
24880eval "$as_ac_var=no"
24881fi
ac1cb8d3
VS
24882rm -f conftest.err conftest.$ac_objext \
24883 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
24884fi
24885echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
24886echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
24887if test `eval echo '${'$as_ac_var'}'` = yes; then
24888 cat >>confdefs.h <<_ACEOF
24889#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24890_ACEOF
24891
24892fi
24893done
24894
24895fi
24896
24897
24898
24899 if test "x$ac_cv_func_regcomp" != "xyes"; then
24900 if test "$wxUSE_REGEX" = "sys" ; then
24901 { { echo "$as_me:$LINENO: error: system regex library not found! Use --with-regex to use built-in version" >&5
24902echo "$as_me: error: system regex library not found! Use --with-regex to use built-in version" >&2;}
24903 { (exit 1); exit 1; }; }
24904 else
24905 { echo "$as_me:$LINENO: WARNING: system regex library not found, will use built-in instead" >&5
24906echo "$as_me: WARNING: system regex library not found, will use built-in instead" >&2;}
24907 wxUSE_REGEX=builtin
24908 fi
24909 else
24910 wxUSE_REGEX=sys
24911 cat >>confdefs.h <<\_ACEOF
24912#define WX_NO_REGEX_ADVANCED 1
24913_ACEOF
24914
24915 fi
24916 fi
24917fi
24918
24919
24920ZLIB_LINK=
24921if test "$wxUSE_ZLIB" != "no" ; then
24922 cat >>confdefs.h <<\_ACEOF
24923#define wxUSE_ZLIB 1
24924_ACEOF
24925
24926
24927 if test "$wxUSE_ZLIB" = "sys" -o "$wxUSE_ZLIB" = "yes" ; then
24928 if test "$USE_DARWIN" = 1; then
24929 system_zlib_h_ok="yes"
24930 else
24931 echo "$as_me:$LINENO: checking for zlib.h >= 1.1.4" >&5
24932echo $ECHO_N "checking for zlib.h >= 1.1.4... $ECHO_C" >&6
24933if test "${ac_cv_header_zlib_h+set}" = set; then
24934 echo $ECHO_N "(cached) $ECHO_C" >&6
24935else
24936 if test "$cross_compiling" = yes; then
24937 unset ac_cv_header_zlib_h
24938
24939else
24940 cat >conftest.$ac_ext <<_ACEOF
24941/* confdefs.h. */
24942_ACEOF
24943cat confdefs.h >>conftest.$ac_ext
24944cat >>conftest.$ac_ext <<_ACEOF
24945/* end confdefs.h. */
24946
24947 #include <zlib.h>
24948 #include <stdio.h>
24949
24950 int main()
24951 {
24952 FILE *f=fopen("conftestval", "w");
24953 if (!f) exit(1);
24954 fprintf(f, "%s",
24955 ZLIB_VERSION[0] == '1' &&
24956 (ZLIB_VERSION[2] > '1' ||
24957 (ZLIB_VERSION[2] == '1' &&
24958 ZLIB_VERSION[4] >= '4')) ? "yes" : "no");
24959 exit(0);
24960 }
24961
24962_ACEOF
24963rm -f conftest$ac_exeext
24964if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24965 (eval $ac_link) 2>&5
24966 ac_status=$?
24967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24968 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24969 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24970 (eval $ac_try) 2>&5
24971 ac_status=$?
24972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24973 (exit $ac_status); }; }; then
24974 ac_cv_header_zlib_h=`cat conftestval`
24975else
24976 echo "$as_me: program exited with status $ac_status" >&5
24977echo "$as_me: failed program was:" >&5
24978sed 's/^/| /' conftest.$ac_ext >&5
24979
24980( exit $ac_status )
24981ac_cv_header_zlib_h=no
24982fi
ac1cb8d3 24983rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
24984fi
24985
24986fi
24987echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
24988echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
24989 if test "${ac_cv_header_zlib_h+set}" = set; then
24990 echo "$as_me:$LINENO: checking for zlib.h" >&5
24991echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6
24992if test "${ac_cv_header_zlib_h+set}" = set; then
24993 echo $ECHO_N "(cached) $ECHO_C" >&6
24994fi
24995echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
24996echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
24997else
24998 # Is the header compilable?
24999echo "$as_me:$LINENO: checking zlib.h usability" >&5
25000echo $ECHO_N "checking zlib.h usability... $ECHO_C" >&6
25001cat >conftest.$ac_ext <<_ACEOF
25002/* confdefs.h. */
25003_ACEOF
25004cat confdefs.h >>conftest.$ac_ext
25005cat >>conftest.$ac_ext <<_ACEOF
25006/* end confdefs.h. */
25007$ac_includes_default
25008#include <zlib.h>
25009_ACEOF
25010rm -f conftest.$ac_objext
25011if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 25012 (eval $ac_compile) 2>conftest.er1
a848cd7e 25013 ac_status=$?
ac1cb8d3
VS
25014 grep -v '^ *+' conftest.er1 >conftest.err
25015 rm -f conftest.er1
25016 cat conftest.err >&5
a848cd7e
SC
25017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25018 (exit $ac_status); } &&
c9a66001 25019 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
25020 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25021 (eval $ac_try) 2>&5
25022 ac_status=$?
25023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25024 (exit $ac_status); }; } &&
25025 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
25026 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25027 (eval $ac_try) 2>&5
25028 ac_status=$?
25029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25030 (exit $ac_status); }; }; then
25031 ac_header_compiler=yes
25032else
25033 echo "$as_me: failed program was:" >&5
25034sed 's/^/| /' conftest.$ac_ext >&5
25035
25036ac_header_compiler=no
25037fi
ac1cb8d3 25038rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
25039echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25040echo "${ECHO_T}$ac_header_compiler" >&6
25041
25042# Is the header present?
25043echo "$as_me:$LINENO: checking zlib.h presence" >&5
25044echo $ECHO_N "checking zlib.h presence... $ECHO_C" >&6
25045cat >conftest.$ac_ext <<_ACEOF
25046/* confdefs.h. */
25047_ACEOF
25048cat confdefs.h >>conftest.$ac_ext
25049cat >>conftest.$ac_ext <<_ACEOF
25050/* end confdefs.h. */
25051#include <zlib.h>
25052_ACEOF
25053if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25054 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25055 ac_status=$?
25056 grep -v '^ *+' conftest.er1 >conftest.err
25057 rm -f conftest.er1
25058 cat conftest.err >&5
25059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25060 (exit $ac_status); } >/dev/null; then
25061 if test -s conftest.err; then
5d7b7554
VZ
25062 ac_cpp_err=$ac_cxx_preproc_warn_flag
25063 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
25064 else
25065 ac_cpp_err=
25066 fi
25067else
25068 ac_cpp_err=yes
25069fi
25070if test -z "$ac_cpp_err"; then
25071 ac_header_preproc=yes
25072else
25073 echo "$as_me: failed program was:" >&5
25074sed 's/^/| /' conftest.$ac_ext >&5
25075
25076 ac_header_preproc=no
25077fi
25078rm -f conftest.err conftest.$ac_ext
25079echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25080echo "${ECHO_T}$ac_header_preproc" >&6
25081
25082# So? What about this header?
5d7b7554 25083case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
ac1cb8d3 25084 yes:no: )
a848cd7e
SC
25085 { echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
25086echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
25087 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the compiler's result" >&5
25088echo "$as_me: WARNING: zlib.h: proceeding with the compiler's result" >&2;}
25089 ac_header_preproc=yes
a848cd7e 25090 ;;
ac1cb8d3 25091 no:yes:* )
a848cd7e
SC
25092 { echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5
25093echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
25094 { echo "$as_me:$LINENO: WARNING: zlib.h: check for missing prerequisite headers?" >&5
25095echo "$as_me: WARNING: zlib.h: check for missing prerequisite headers?" >&2;}
25096 { echo "$as_me:$LINENO: WARNING: zlib.h: see the Autoconf documentation" >&5
25097echo "$as_me: WARNING: zlib.h: see the Autoconf documentation" >&2;}
25098 { echo "$as_me:$LINENO: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&5
25099echo "$as_me: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
25100 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
25101echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
25102 { echo "$as_me:$LINENO: WARNING: zlib.h: in the future, the compiler will take precedence" >&5
25103echo "$as_me: WARNING: zlib.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
25104 (
25105 cat <<\_ASBOX
ac1cb8d3
VS
25106## ----------------------------------------- ##
25107## Report this to wx-dev@lists.wxwidgets.org ##
25108## ----------------------------------------- ##
a848cd7e
SC
25109_ASBOX
25110 ) |
25111 sed "s/^/$as_me: WARNING: /" >&2
25112 ;;
25113esac
25114echo "$as_me:$LINENO: checking for zlib.h" >&5
25115echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6
25116if test "${ac_cv_header_zlib_h+set}" = set; then
25117 echo $ECHO_N "(cached) $ECHO_C" >&6
25118else
25119 ac_cv_header_zlib_h=$ac_header_preproc
25120fi
25121echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
25122echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
25123
25124fi
25125
25126
25127
25128 system_zlib_h_ok=$ac_cv_header_zlib_h
25129 fi
25130
25131 if test "$system_zlib_h_ok" = "yes"; then
25132 echo "$as_me:$LINENO: checking for deflate in -lz" >&5
25133echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6
25134if test "${ac_cv_lib_z_deflate+set}" = set; then
25135 echo $ECHO_N "(cached) $ECHO_C" >&6
25136else
25137 ac_check_lib_save_LIBS=$LIBS
25138LIBS="-lz $LIBS"
25139cat >conftest.$ac_ext <<_ACEOF
25140/* confdefs.h. */
25141_ACEOF
25142cat confdefs.h >>conftest.$ac_ext
25143cat >>conftest.$ac_ext <<_ACEOF
25144/* end confdefs.h. */
25145
25146/* Override any gcc2 internal prototype to avoid an error. */
25147#ifdef __cplusplus
25148extern "C"
25149#endif
25150/* We use char because int might match the return type of a gcc2
25151 builtin and then its argument prototype would still apply. */
25152char deflate ();
25153int
25154main ()
25155{
25156deflate ();
25157 ;
25158 return 0;
25159}
25160_ACEOF
25161rm -f conftest.$ac_objext conftest$ac_exeext
25162if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 25163 (eval $ac_link) 2>conftest.er1
a848cd7e 25164 ac_status=$?
ac1cb8d3
VS
25165 grep -v '^ *+' conftest.er1 >conftest.err
25166 rm -f conftest.er1
25167 cat conftest.err >&5
a848cd7e
SC
25168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25169 (exit $ac_status); } &&
c9a66001 25170 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
25171 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25172 (eval $ac_try) 2>&5
25173 ac_status=$?
25174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25175 (exit $ac_status); }; } &&
25176 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
25177 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25178 (eval $ac_try) 2>&5
25179 ac_status=$?
25180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25181 (exit $ac_status); }; }; then
25182 ac_cv_lib_z_deflate=yes
25183else
25184 echo "$as_me: failed program was:" >&5
25185sed 's/^/| /' conftest.$ac_ext >&5
25186
25187ac_cv_lib_z_deflate=no
25188fi
ac1cb8d3
VS
25189rm -f conftest.err conftest.$ac_objext \
25190 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
25191LIBS=$ac_check_lib_save_LIBS
25192fi
25193echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
25194echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6
25195if test $ac_cv_lib_z_deflate = yes; then
25196 ZLIB_LINK=" -lz"
25197fi
25198
25199 fi
25200
25201 if test "x$ZLIB_LINK" = "x" ; then
25202 if test "$wxUSE_ZLIB" = "sys" ; then
25203 { { echo "$as_me:$LINENO: error: zlib library not found or too old! Use --with-zlib=builtin to use built-in version" >&5
25204echo "$as_me: error: zlib library not found or too old! Use --with-zlib=builtin to use built-in version" >&2;}
25205 { (exit 1); exit 1; }; }
25206 else
25207 { echo "$as_me:$LINENO: WARNING: zlib library not found or too old, will use built-in instead" >&5
25208echo "$as_me: WARNING: zlib library not found or too old, will use built-in instead" >&2;}
25209 wxUSE_ZLIB=builtin
25210 fi
25211 else
25212 wxUSE_ZLIB=sys
25213 fi
25214 fi
25215fi
25216
25217
25218PNG_LINK=
25219if test "$wxUSE_LIBPNG" != "no" ; then
25220 cat >>confdefs.h <<\_ACEOF
25221#define wxUSE_LIBPNG 1
25222_ACEOF
25223
25224
25225 if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBPNG" = "builtin" ; then
25226 { echo "$as_me:$LINENO: WARNING: wxMGL doesn't work with builtin png library, will use MGL one instead" >&5
25227echo "$as_me: WARNING: wxMGL doesn't work with builtin png library, will use MGL one instead" >&2;}
25228 wxUSE_LIBPNG=sys
25229 fi
25230
25231 if test "$wxUSE_MGL" != 1 -a "$wxUSE_LIBPNG" = "sys" -a "$wxUSE_ZLIB" != "sys" ; then
25232 { echo "$as_me:$LINENO: WARNING: system png library doesn't work without system zlib, will use built-in instead" >&5
25233echo "$as_me: WARNING: system png library doesn't work without system zlib, will use built-in instead" >&2;}
25234 wxUSE_LIBPNG=builtin
25235 fi
25236
25237 if test "$wxUSE_MGL" != 1 ; then
25238 if test "$wxUSE_LIBPNG" = "sys" -o "$wxUSE_LIBPNG" = "yes" ; then
25239 echo "$as_me:$LINENO: checking for png.h > 0.90" >&5
25240echo $ECHO_N "checking for png.h > 0.90... $ECHO_C" >&6
25241if test "${ac_cv_header_png_h+set}" = set; then
25242 echo $ECHO_N "(cached) $ECHO_C" >&6
25243else
25244 if test "$cross_compiling" = yes; then
25245 unset ac_cv_header_png_h
25246
25247else
25248 cat >conftest.$ac_ext <<_ACEOF
25249/* confdefs.h. */
25250_ACEOF
25251cat confdefs.h >>conftest.$ac_ext
25252cat >>conftest.$ac_ext <<_ACEOF
25253/* end confdefs.h. */
25254
25255 #include <png.h>
25256 #include <stdio.h>
25257
25258 int main()
25259 {
25260 FILE *f=fopen("conftestval", "w");
25261 if (!f) exit(1);
25262 fprintf(f, "%s",
25263 PNG_LIBPNG_VER > 90 ? "yes" : "no");
25264 exit(0);
25265 }
25266
25267_ACEOF
25268rm -f conftest$ac_exeext
25269if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25270 (eval $ac_link) 2>&5
25271 ac_status=$?
25272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25273 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25274 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25275 (eval $ac_try) 2>&5
25276 ac_status=$?
25277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25278 (exit $ac_status); }; }; then
25279 ac_cv_header_png_h=`cat conftestval`
25280else
25281 echo "$as_me: program exited with status $ac_status" >&5
25282echo "$as_me: failed program was:" >&5
25283sed 's/^/| /' conftest.$ac_ext >&5
25284
25285( exit $ac_status )
25286ac_cv_header_png_h=no
25287fi
ac1cb8d3 25288rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
25289fi
25290
25291fi
25292echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
25293echo "${ECHO_T}$ac_cv_header_png_h" >&6
25294 if test "${ac_cv_header_png_h+set}" = set; then
25295 echo "$as_me:$LINENO: checking for png.h" >&5
25296echo $ECHO_N "checking for png.h... $ECHO_C" >&6
25297if test "${ac_cv_header_png_h+set}" = set; then
25298 echo $ECHO_N "(cached) $ECHO_C" >&6
25299fi
25300echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
25301echo "${ECHO_T}$ac_cv_header_png_h" >&6
25302else
25303 # Is the header compilable?
25304echo "$as_me:$LINENO: checking png.h usability" >&5
25305echo $ECHO_N "checking png.h usability... $ECHO_C" >&6
25306cat >conftest.$ac_ext <<_ACEOF
25307/* confdefs.h. */
25308_ACEOF
25309cat confdefs.h >>conftest.$ac_ext
25310cat >>conftest.$ac_ext <<_ACEOF
25311/* end confdefs.h. */
25312$ac_includes_default
25313#include <png.h>
25314_ACEOF
25315rm -f conftest.$ac_objext
25316if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 25317 (eval $ac_compile) 2>conftest.er1
a848cd7e 25318 ac_status=$?
ac1cb8d3
VS
25319 grep -v '^ *+' conftest.er1 >conftest.err
25320 rm -f conftest.er1
25321 cat conftest.err >&5
a848cd7e
SC
25322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25323 (exit $ac_status); } &&
c9a66001 25324 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
25325 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25326 (eval $ac_try) 2>&5
25327 ac_status=$?
25328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25329 (exit $ac_status); }; } &&
25330 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
25331 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25332 (eval $ac_try) 2>&5
25333 ac_status=$?
25334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25335 (exit $ac_status); }; }; then
25336 ac_header_compiler=yes
25337else
25338 echo "$as_me: failed program was:" >&5
25339sed 's/^/| /' conftest.$ac_ext >&5
25340
25341ac_header_compiler=no
25342fi
ac1cb8d3 25343rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
25344echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25345echo "${ECHO_T}$ac_header_compiler" >&6
25346
25347# Is the header present?
25348echo "$as_me:$LINENO: checking png.h presence" >&5
25349echo $ECHO_N "checking png.h presence... $ECHO_C" >&6
25350cat >conftest.$ac_ext <<_ACEOF
25351/* confdefs.h. */
25352_ACEOF
25353cat confdefs.h >>conftest.$ac_ext
25354cat >>conftest.$ac_ext <<_ACEOF
25355/* end confdefs.h. */
25356#include <png.h>
25357_ACEOF
25358if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25359 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25360 ac_status=$?
25361 grep -v '^ *+' conftest.er1 >conftest.err
25362 rm -f conftest.er1
25363 cat conftest.err >&5
25364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25365 (exit $ac_status); } >/dev/null; then
25366 if test -s conftest.err; then
5d7b7554
VZ
25367 ac_cpp_err=$ac_cxx_preproc_warn_flag
25368 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
25369 else
25370 ac_cpp_err=
25371 fi
25372else
25373 ac_cpp_err=yes
25374fi
25375if test -z "$ac_cpp_err"; then
25376 ac_header_preproc=yes
25377else
25378 echo "$as_me: failed program was:" >&5
25379sed 's/^/| /' conftest.$ac_ext >&5
25380
25381 ac_header_preproc=no
25382fi
25383rm -f conftest.err conftest.$ac_ext
25384echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25385echo "${ECHO_T}$ac_header_preproc" >&6
25386
25387# So? What about this header?
5d7b7554 25388case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
ac1cb8d3 25389 yes:no: )
a848cd7e
SC
25390 { echo "$as_me:$LINENO: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&5
25391echo "$as_me: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
25392 { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the compiler's result" >&5
25393echo "$as_me: WARNING: png.h: proceeding with the compiler's result" >&2;}
25394 ac_header_preproc=yes
a848cd7e 25395 ;;
ac1cb8d3 25396 no:yes:* )
a848cd7e
SC
25397 { echo "$as_me:$LINENO: WARNING: png.h: present but cannot be compiled" >&5
25398echo "$as_me: WARNING: png.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
25399 { echo "$as_me:$LINENO: WARNING: png.h: check for missing prerequisite headers?" >&5
25400echo "$as_me: WARNING: png.h: check for missing prerequisite headers?" >&2;}
25401 { echo "$as_me:$LINENO: WARNING: png.h: see the Autoconf documentation" >&5
25402echo "$as_me: WARNING: png.h: see the Autoconf documentation" >&2;}
25403 { echo "$as_me:$LINENO: WARNING: png.h: section \"Present But Cannot Be Compiled\"" >&5
25404echo "$as_me: WARNING: png.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
25405 { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the preprocessor's result" >&5
25406echo "$as_me: WARNING: png.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
25407 { echo "$as_me:$LINENO: WARNING: png.h: in the future, the compiler will take precedence" >&5
25408echo "$as_me: WARNING: png.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
25409 (
25410 cat <<\_ASBOX
ac1cb8d3
VS
25411## ----------------------------------------- ##
25412## Report this to wx-dev@lists.wxwidgets.org ##
25413## ----------------------------------------- ##
a848cd7e
SC
25414_ASBOX
25415 ) |
25416 sed "s/^/$as_me: WARNING: /" >&2
25417 ;;
25418esac
25419echo "$as_me:$LINENO: checking for png.h" >&5
25420echo $ECHO_N "checking for png.h... $ECHO_C" >&6
25421if test "${ac_cv_header_png_h+set}" = set; then
25422 echo $ECHO_N "(cached) $ECHO_C" >&6
25423else
25424 ac_cv_header_png_h=$ac_header_preproc
25425fi
25426echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
25427echo "${ECHO_T}$ac_cv_header_png_h" >&6
25428
25429fi
25430
25431
25432
25433 if test "$ac_cv_header_png_h" = "yes"; then
25434 echo "$as_me:$LINENO: checking for png_check_sig in -lpng" >&5
25435echo $ECHO_N "checking for png_check_sig in -lpng... $ECHO_C" >&6
25436if test "${ac_cv_lib_png_png_check_sig+set}" = set; then
25437 echo $ECHO_N "(cached) $ECHO_C" >&6
25438else
25439 ac_check_lib_save_LIBS=$LIBS
25440LIBS="-lpng -lz -lm $LIBS"
25441cat >conftest.$ac_ext <<_ACEOF
25442/* confdefs.h. */
25443_ACEOF
25444cat confdefs.h >>conftest.$ac_ext
25445cat >>conftest.$ac_ext <<_ACEOF
25446/* end confdefs.h. */
25447
25448/* Override any gcc2 internal prototype to avoid an error. */
25449#ifdef __cplusplus
25450extern "C"
25451#endif
25452/* We use char because int might match the return type of a gcc2
25453 builtin and then its argument prototype would still apply. */
25454char png_check_sig ();
25455int
25456main ()
25457{
25458png_check_sig ();
25459 ;
25460 return 0;
25461}
25462_ACEOF
25463rm -f conftest.$ac_objext conftest$ac_exeext
25464if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 25465 (eval $ac_link) 2>conftest.er1
a848cd7e 25466 ac_status=$?
ac1cb8d3
VS
25467 grep -v '^ *+' conftest.er1 >conftest.err
25468 rm -f conftest.er1
25469 cat conftest.err >&5
a848cd7e
SC
25470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25471 (exit $ac_status); } &&
c9a66001 25472 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
25473 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25474 (eval $ac_try) 2>&5
25475 ac_status=$?
25476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25477 (exit $ac_status); }; } &&
25478 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
25479 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25480 (eval $ac_try) 2>&5
25481 ac_status=$?
25482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25483 (exit $ac_status); }; }; then
25484 ac_cv_lib_png_png_check_sig=yes
25485else
25486 echo "$as_me: failed program was:" >&5
25487sed 's/^/| /' conftest.$ac_ext >&5
25488
25489ac_cv_lib_png_png_check_sig=no
25490fi
ac1cb8d3
VS
25491rm -f conftest.err conftest.$ac_objext \
25492 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
25493LIBS=$ac_check_lib_save_LIBS
25494fi
25495echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_check_sig" >&5
25496echo "${ECHO_T}$ac_cv_lib_png_png_check_sig" >&6
25497if test $ac_cv_lib_png_png_check_sig = yes; then
25498 PNG_LINK=" -lpng -lz"
25499fi
25500
25501 fi
25502
25503 if test "x$PNG_LINK" = "x" ; then
25504 if test "$wxUSE_LIBPNG" = "sys" ; then
25505 { { echo "$as_me:$LINENO: error: system png library not found or too old! Use --with-libpng=builtin to use built-in version" >&5
25506echo "$as_me: error: system png library not found or too old! Use --with-libpng=builtin to use built-in version" >&2;}
25507 { (exit 1); exit 1; }; }
25508 else
25509 { echo "$as_me:$LINENO: WARNING: system png library not found or too old, will use built-in instead" >&5
25510echo "$as_me: WARNING: system png library not found or too old, will use built-in instead" >&2;}
25511 wxUSE_LIBPNG=builtin
25512 fi
25513 else
25514 wxUSE_LIBPNG=sys
25515 fi
25516 fi
25517 fi
25518
25519 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS png"
25520fi
25521
25522
25523JPEG_LINK=
25524if test "$wxUSE_LIBJPEG" != "no" ; then
25525 cat >>confdefs.h <<\_ACEOF
25526#define wxUSE_LIBJPEG 1
25527_ACEOF
25528
25529
25530 if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBJPEG" = "builtin" ; then
25531 { echo "$as_me:$LINENO: WARNING: wxMGL doesn't work with builtin jpeg library, will use MGL one instead" >&5
25532echo "$as_me: WARNING: wxMGL doesn't work with builtin jpeg library, will use MGL one instead" >&2;}
25533 wxUSE_LIBJPEG=sys
25534 fi
25535
25536 if test "$wxUSE_MGL" != 1 ; then
25537 if test "$wxUSE_LIBJPEG" = "sys" -o "$wxUSE_LIBJPEG" = "yes" ; then
25538 echo "$as_me:$LINENO: checking for jpeglib.h" >&5
25539echo $ECHO_N "checking for jpeglib.h... $ECHO_C" >&6
25540 if test "${ac_cv_header_jpeglib_h+set}" = set; then
25541 echo $ECHO_N "(cached) $ECHO_C" >&6
25542else
25543 cat >conftest.$ac_ext <<_ACEOF
25544/* confdefs.h. */
25545_ACEOF
25546cat confdefs.h >>conftest.$ac_ext
25547cat >>conftest.$ac_ext <<_ACEOF
25548/* end confdefs.h. */
25549
25550 #undef HAVE_STDLIB_H
25551 #include <stdio.h>
25552 #include <jpeglib.h>
25553
25554int
25555main ()
25556{
25557
25558
25559 ;
25560 return 0;
25561}
25562_ACEOF
25563rm -f conftest.$ac_objext
25564if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 25565 (eval $ac_compile) 2>conftest.er1
a848cd7e 25566 ac_status=$?
ac1cb8d3
VS
25567 grep -v '^ *+' conftest.er1 >conftest.err
25568 rm -f conftest.er1
25569 cat conftest.err >&5
a848cd7e
SC
25570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25571 (exit $ac_status); } &&
c9a66001 25572 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
25573 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25574 (eval $ac_try) 2>&5
25575 ac_status=$?
25576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25577 (exit $ac_status); }; } &&
25578 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
25579 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25580 (eval $ac_try) 2>&5
25581 ac_status=$?
25582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25583 (exit $ac_status); }; }; then
25584 ac_cv_header_jpeglib_h=yes
25585else
25586 echo "$as_me: failed program was:" >&5
25587sed 's/^/| /' conftest.$ac_ext >&5
25588
25589ac_cv_header_jpeglib_h=no
25590
25591fi
ac1cb8d3 25592rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
25593
25594fi
25595
25596 echo "$as_me:$LINENO: result: $ac_cv_header_jpeglib_h" >&5
25597echo "${ECHO_T}$ac_cv_header_jpeglib_h" >&6
25598
25599 if test "$ac_cv_header_jpeglib_h" = "yes"; then
25600 echo "$as_me:$LINENO: checking for jpeg_read_header in -ljpeg" >&5
25601echo $ECHO_N "checking for jpeg_read_header in -ljpeg... $ECHO_C" >&6
25602if test "${ac_cv_lib_jpeg_jpeg_read_header+set}" = set; then
25603 echo $ECHO_N "(cached) $ECHO_C" >&6
25604else
25605 ac_check_lib_save_LIBS=$LIBS
25606LIBS="-ljpeg $LIBS"
25607cat >conftest.$ac_ext <<_ACEOF
25608/* confdefs.h. */
25609_ACEOF
25610cat confdefs.h >>conftest.$ac_ext
25611cat >>conftest.$ac_ext <<_ACEOF
25612/* end confdefs.h. */
25613
25614/* Override any gcc2 internal prototype to avoid an error. */
25615#ifdef __cplusplus
25616extern "C"
25617#endif
25618/* We use char because int might match the return type of a gcc2
25619 builtin and then its argument prototype would still apply. */
25620char jpeg_read_header ();
25621int
25622main ()
25623{
25624jpeg_read_header ();
25625 ;
25626 return 0;
25627}
25628_ACEOF
25629rm -f conftest.$ac_objext conftest$ac_exeext
25630if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 25631 (eval $ac_link) 2>conftest.er1
a848cd7e 25632 ac_status=$?
ac1cb8d3
VS
25633 grep -v '^ *+' conftest.er1 >conftest.err
25634 rm -f conftest.er1
25635 cat conftest.err >&5
a848cd7e
SC
25636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25637 (exit $ac_status); } &&
c9a66001 25638 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
25639 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25640 (eval $ac_try) 2>&5
25641 ac_status=$?
25642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25643 (exit $ac_status); }; } &&
25644 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
25645 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25646 (eval $ac_try) 2>&5
25647 ac_status=$?
25648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25649 (exit $ac_status); }; }; then
25650 ac_cv_lib_jpeg_jpeg_read_header=yes
25651else
25652 echo "$as_me: failed program was:" >&5
25653sed 's/^/| /' conftest.$ac_ext >&5
25654
25655ac_cv_lib_jpeg_jpeg_read_header=no
25656fi
ac1cb8d3
VS
25657rm -f conftest.err conftest.$ac_objext \
25658 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
25659LIBS=$ac_check_lib_save_LIBS
25660fi
25661echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_read_header" >&5
25662echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_read_header" >&6
25663if test $ac_cv_lib_jpeg_jpeg_read_header = yes; then
25664 JPEG_LINK=" -ljpeg"
25665fi
25666
25667 fi
25668
25669 if test "x$JPEG_LINK" = "x" ; then
25670 if test "$wxUSE_LIBJPEG" = "sys" ; then
25671 { { echo "$as_me:$LINENO: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" >&5
25672echo "$as_me: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" >&2;}
25673 { (exit 1); exit 1; }; }
25674 else
25675 { echo "$as_me:$LINENO: WARNING: system jpeg library not found, will use built-in instead" >&5
25676echo "$as_me: WARNING: system jpeg library not found, will use built-in instead" >&2;}
25677 wxUSE_LIBJPEG=builtin
25678 fi
25679 else
25680 wxUSE_LIBJPEG=sys
25681 fi
25682 fi
25683 fi
25684fi
25685
25686
25687TIFF_LINK=
25688TIFF_PREREQ_LINKS=-lm
25689if test "$wxUSE_LIBTIFF" != "no" ; then
25690 cat >>confdefs.h <<\_ACEOF
25691#define wxUSE_LIBTIFF 1
25692_ACEOF
25693
25694
25695 if test "$wxUSE_LIBTIFF" = "sys" -o "$wxUSE_LIBTIFF" = "yes" ; then
25696 if test "$wxUSE_LIBJPEG" = "sys"; then
25697 TIFF_PREREQ_LINKS="$TIFF_PREREQ_LINKS $JPEG_LINK"
25698 fi
25699 if test "$wxUSE_ZLIB" = "sys"; then
25700 TIFF_PREREQ_LINKS="$TIFF_PREREQ_LINKS $ZLIB_LINK"
25701 fi
25702 if test "${ac_cv_header_tiffio_h+set}" = set; then
25703 echo "$as_me:$LINENO: checking for tiffio.h" >&5
25704echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
25705if test "${ac_cv_header_tiffio_h+set}" = set; then
25706 echo $ECHO_N "(cached) $ECHO_C" >&6
25707fi
25708echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
25709echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
25710else
25711 # Is the header compilable?
25712echo "$as_me:$LINENO: checking tiffio.h usability" >&5
25713echo $ECHO_N "checking tiffio.h usability... $ECHO_C" >&6
25714cat >conftest.$ac_ext <<_ACEOF
25715/* confdefs.h. */
25716_ACEOF
25717cat confdefs.h >>conftest.$ac_ext
25718cat >>conftest.$ac_ext <<_ACEOF
25719/* end confdefs.h. */
25720$ac_includes_default
25721#include <tiffio.h>
25722_ACEOF
25723rm -f conftest.$ac_objext
25724if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 25725 (eval $ac_compile) 2>conftest.er1
a848cd7e 25726 ac_status=$?
ac1cb8d3
VS
25727 grep -v '^ *+' conftest.er1 >conftest.err
25728 rm -f conftest.er1
25729 cat conftest.err >&5
a848cd7e
SC
25730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25731 (exit $ac_status); } &&
c9a66001 25732 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
25733 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25734 (eval $ac_try) 2>&5
25735 ac_status=$?
25736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25737 (exit $ac_status); }; } &&
25738 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
25739 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25740 (eval $ac_try) 2>&5
25741 ac_status=$?
25742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25743 (exit $ac_status); }; }; then
25744 ac_header_compiler=yes
25745else
25746 echo "$as_me: failed program was:" >&5
25747sed 's/^/| /' conftest.$ac_ext >&5
25748
25749ac_header_compiler=no
25750fi
ac1cb8d3 25751rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
25752echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25753echo "${ECHO_T}$ac_header_compiler" >&6
25754
25755# Is the header present?
25756echo "$as_me:$LINENO: checking tiffio.h presence" >&5
25757echo $ECHO_N "checking tiffio.h presence... $ECHO_C" >&6
25758cat >conftest.$ac_ext <<_ACEOF
25759/* confdefs.h. */
25760_ACEOF
25761cat confdefs.h >>conftest.$ac_ext
25762cat >>conftest.$ac_ext <<_ACEOF
25763/* end confdefs.h. */
25764#include <tiffio.h>
25765_ACEOF
25766if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25767 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25768 ac_status=$?
25769 grep -v '^ *+' conftest.er1 >conftest.err
25770 rm -f conftest.er1
25771 cat conftest.err >&5
25772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25773 (exit $ac_status); } >/dev/null; then
25774 if test -s conftest.err; then
5d7b7554
VZ
25775 ac_cpp_err=$ac_cxx_preproc_warn_flag
25776 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
25777 else
25778 ac_cpp_err=
25779 fi
25780else
25781 ac_cpp_err=yes
25782fi
25783if test -z "$ac_cpp_err"; then
25784 ac_header_preproc=yes
25785else
25786 echo "$as_me: failed program was:" >&5
25787sed 's/^/| /' conftest.$ac_ext >&5
25788
25789 ac_header_preproc=no
25790fi
25791rm -f conftest.err conftest.$ac_ext
25792echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25793echo "${ECHO_T}$ac_header_preproc" >&6
25794
25795# So? What about this header?
5d7b7554 25796case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
ac1cb8d3 25797 yes:no: )
a848cd7e
SC
25798 { echo "$as_me:$LINENO: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&5
25799echo "$as_me: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
25800 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the compiler's result" >&5
25801echo "$as_me: WARNING: tiffio.h: proceeding with the compiler's result" >&2;}
25802 ac_header_preproc=yes
a848cd7e 25803 ;;
ac1cb8d3 25804 no:yes:* )
a848cd7e
SC
25805 { echo "$as_me:$LINENO: WARNING: tiffio.h: present but cannot be compiled" >&5
25806echo "$as_me: WARNING: tiffio.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
25807 { echo "$as_me:$LINENO: WARNING: tiffio.h: check for missing prerequisite headers?" >&5
25808echo "$as_me: WARNING: tiffio.h: check for missing prerequisite headers?" >&2;}
25809 { echo "$as_me:$LINENO: WARNING: tiffio.h: see the Autoconf documentation" >&5
25810echo "$as_me: WARNING: tiffio.h: see the Autoconf documentation" >&2;}
25811 { echo "$as_me:$LINENO: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&5
25812echo "$as_me: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
25813 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result" >&5
25814echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
25815 { echo "$as_me:$LINENO: WARNING: tiffio.h: in the future, the compiler will take precedence" >&5
25816echo "$as_me: WARNING: tiffio.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
25817 (
25818 cat <<\_ASBOX
ac1cb8d3
VS
25819## ----------------------------------------- ##
25820## Report this to wx-dev@lists.wxwidgets.org ##
25821## ----------------------------------------- ##
a848cd7e
SC
25822_ASBOX
25823 ) |
25824 sed "s/^/$as_me: WARNING: /" >&2
25825 ;;
25826esac
25827echo "$as_me:$LINENO: checking for tiffio.h" >&5
25828echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
25829if test "${ac_cv_header_tiffio_h+set}" = set; then
25830 echo $ECHO_N "(cached) $ECHO_C" >&6
25831else
25832 ac_cv_header_tiffio_h=$ac_header_preproc
25833fi
25834echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
25835echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
25836
25837fi
25838if test $ac_cv_header_tiffio_h = yes; then
25839
25840 echo "$as_me:$LINENO: checking for TIFFError in -ltiff" >&5
25841echo $ECHO_N "checking for TIFFError in -ltiff... $ECHO_C" >&6
25842if test "${ac_cv_lib_tiff_TIFFError+set}" = set; then
25843 echo $ECHO_N "(cached) $ECHO_C" >&6
25844else
25845 ac_check_lib_save_LIBS=$LIBS
25846LIBS="-ltiff $TIFF_PREREQ_LINKS $LIBS"
25847cat >conftest.$ac_ext <<_ACEOF
25848/* confdefs.h. */
25849_ACEOF
25850cat confdefs.h >>conftest.$ac_ext
25851cat >>conftest.$ac_ext <<_ACEOF
25852/* end confdefs.h. */
25853
25854/* Override any gcc2 internal prototype to avoid an error. */
25855#ifdef __cplusplus
25856extern "C"
25857#endif
25858/* We use char because int might match the return type of a gcc2
25859 builtin and then its argument prototype would still apply. */
25860char TIFFError ();
25861int
25862main ()
25863{
25864TIFFError ();
25865 ;
25866 return 0;
25867}
25868_ACEOF
25869rm -f conftest.$ac_objext conftest$ac_exeext
25870if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 25871 (eval $ac_link) 2>conftest.er1
a848cd7e 25872 ac_status=$?
ac1cb8d3
VS
25873 grep -v '^ *+' conftest.er1 >conftest.err
25874 rm -f conftest.er1
25875 cat conftest.err >&5
a848cd7e
SC
25876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25877 (exit $ac_status); } &&
c9a66001 25878 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
25879 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25880 (eval $ac_try) 2>&5
25881 ac_status=$?
25882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25883 (exit $ac_status); }; } &&
25884 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
25885 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25886 (eval $ac_try) 2>&5
25887 ac_status=$?
25888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25889 (exit $ac_status); }; }; then
25890 ac_cv_lib_tiff_TIFFError=yes
25891else
25892 echo "$as_me: failed program was:" >&5
25893sed 's/^/| /' conftest.$ac_ext >&5
25894
25895ac_cv_lib_tiff_TIFFError=no
25896fi
ac1cb8d3
VS
25897rm -f conftest.err conftest.$ac_objext \
25898 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
25899LIBS=$ac_check_lib_save_LIBS
25900fi
25901echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFError" >&5
25902echo "${ECHO_T}$ac_cv_lib_tiff_TIFFError" >&6
25903if test $ac_cv_lib_tiff_TIFFError = yes; then
25904 TIFF_LINK=" -ltiff"
25905fi
25906
25907
25908
25909fi
25910
25911
25912
25913 if test "x$TIFF_LINK" = "x" ; then
25914 if test "$wxUSE_LIBTIFF" = "sys" ; then
25915 { { echo "$as_me:$LINENO: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" >&5
25916echo "$as_me: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" >&2;}
25917 { (exit 1); exit 1; }; }
25918 else
25919 { echo "$as_me:$LINENO: WARNING: system tiff library not found, will use built-in instead" >&5
25920echo "$as_me: WARNING: system tiff library not found, will use built-in instead" >&2;}
25921 wxUSE_LIBTIFF=builtin
25922 fi
25923 else
25924 wxUSE_LIBTIFF=sys
25925 fi
25926 fi
25927fi
25928
25929
47a7e797
MW
25930if test "$wxUSE_WCHAR_T" != "yes"; then
25931 if test "$wxUSE_EXPAT" != "no"; then
25932 { echo "$as_me:$LINENO: WARNING: wxWidgets requires wchar_t to use expat, disabling" >&5
25933echo "$as_me: WARNING: wxWidgets requires wchar_t to use expat, disabling" >&2;}
25934 wxUSE_EXPAT=no
25935 fi
25936 if test "$wxUSE_XML" != "no"; then
25937 { echo "$as_me:$LINENO: WARNING: wxWidgets requires wchar_t to use xml, disabling" >&5
25938echo "$as_me: WARNING: wxWidgets requires wchar_t to use xml, disabling" >&2;}
25939 wxUSE_XML=no
25940 fi
25941fi
25942
a848cd7e
SC
25943if test "$wxUSE_EXPAT" != "no"; then
25944 wxUSE_XML=yes
25945 cat >>confdefs.h <<\_ACEOF
25946#define wxUSE_EXPAT 1
25947_ACEOF
25948
25949 cat >>confdefs.h <<\_ACEOF
25950#define wxUSE_XML 1
25951_ACEOF
25952
25953
25954 if test "$wxUSE_EXPAT" = "sys" -o "$wxUSE_EXPAT" = "yes" ; then
25955 if test "${ac_cv_header_expat_h+set}" = set; then
25956 echo "$as_me:$LINENO: checking for expat.h" >&5
25957echo $ECHO_N "checking for expat.h... $ECHO_C" >&6
25958if test "${ac_cv_header_expat_h+set}" = set; then
25959 echo $ECHO_N "(cached) $ECHO_C" >&6
25960fi
25961echo "$as_me:$LINENO: result: $ac_cv_header_expat_h" >&5
25962echo "${ECHO_T}$ac_cv_header_expat_h" >&6
25963else
25964 # Is the header compilable?
25965echo "$as_me:$LINENO: checking expat.h usability" >&5
25966echo $ECHO_N "checking expat.h usability... $ECHO_C" >&6
25967cat >conftest.$ac_ext <<_ACEOF
25968/* confdefs.h. */
25969_ACEOF
25970cat confdefs.h >>conftest.$ac_ext
25971cat >>conftest.$ac_ext <<_ACEOF
25972/* end confdefs.h. */
25973$ac_includes_default
25974#include <expat.h>
25975_ACEOF
25976rm -f conftest.$ac_objext
25977if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 25978 (eval $ac_compile) 2>conftest.er1
a848cd7e 25979 ac_status=$?
ac1cb8d3
VS
25980 grep -v '^ *+' conftest.er1 >conftest.err
25981 rm -f conftest.er1
25982 cat conftest.err >&5
a848cd7e
SC
25983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25984 (exit $ac_status); } &&
c9a66001 25985 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
25986 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25987 (eval $ac_try) 2>&5
25988 ac_status=$?
25989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25990 (exit $ac_status); }; } &&
25991 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
25992 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25993 (eval $ac_try) 2>&5
25994 ac_status=$?
25995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25996 (exit $ac_status); }; }; then
25997 ac_header_compiler=yes
25998else
25999 echo "$as_me: failed program was:" >&5
26000sed 's/^/| /' conftest.$ac_ext >&5
26001
26002ac_header_compiler=no
26003fi
ac1cb8d3 26004rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
26005echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26006echo "${ECHO_T}$ac_header_compiler" >&6
26007
26008# Is the header present?
26009echo "$as_me:$LINENO: checking expat.h presence" >&5
26010echo $ECHO_N "checking expat.h presence... $ECHO_C" >&6
26011cat >conftest.$ac_ext <<_ACEOF
26012/* confdefs.h. */
26013_ACEOF
26014cat confdefs.h >>conftest.$ac_ext
26015cat >>conftest.$ac_ext <<_ACEOF
26016/* end confdefs.h. */
26017#include <expat.h>
26018_ACEOF
26019if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26020 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26021 ac_status=$?
26022 grep -v '^ *+' conftest.er1 >conftest.err
26023 rm -f conftest.er1
26024 cat conftest.err >&5
26025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26026 (exit $ac_status); } >/dev/null; then
26027 if test -s conftest.err; then
5d7b7554
VZ
26028 ac_cpp_err=$ac_cxx_preproc_warn_flag
26029 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
26030 else
26031 ac_cpp_err=
26032 fi
26033else
26034 ac_cpp_err=yes
26035fi
26036if test -z "$ac_cpp_err"; then
26037 ac_header_preproc=yes
26038else
26039 echo "$as_me: failed program was:" >&5
26040sed 's/^/| /' conftest.$ac_ext >&5
26041
26042 ac_header_preproc=no
26043fi
26044rm -f conftest.err conftest.$ac_ext
26045echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26046echo "${ECHO_T}$ac_header_preproc" >&6
26047
26048# So? What about this header?
5d7b7554 26049case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
ac1cb8d3 26050 yes:no: )
a848cd7e
SC
26051 { echo "$as_me:$LINENO: WARNING: expat.h: accepted by the compiler, rejected by the preprocessor!" >&5
26052echo "$as_me: WARNING: expat.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
26053 { echo "$as_me:$LINENO: WARNING: expat.h: proceeding with the compiler's result" >&5
26054echo "$as_me: WARNING: expat.h: proceeding with the compiler's result" >&2;}
26055 ac_header_preproc=yes
a848cd7e 26056 ;;
ac1cb8d3 26057 no:yes:* )
a848cd7e
SC
26058 { echo "$as_me:$LINENO: WARNING: expat.h: present but cannot be compiled" >&5
26059echo "$as_me: WARNING: expat.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
26060 { echo "$as_me:$LINENO: WARNING: expat.h: check for missing prerequisite headers?" >&5
26061echo "$as_me: WARNING: expat.h: check for missing prerequisite headers?" >&2;}
26062 { echo "$as_me:$LINENO: WARNING: expat.h: see the Autoconf documentation" >&5
26063echo "$as_me: WARNING: expat.h: see the Autoconf documentation" >&2;}
26064 { echo "$as_me:$LINENO: WARNING: expat.h: section \"Present But Cannot Be Compiled\"" >&5
26065echo "$as_me: WARNING: expat.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
26066 { echo "$as_me:$LINENO: WARNING: expat.h: proceeding with the preprocessor's result" >&5
26067echo "$as_me: WARNING: expat.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
26068 { echo "$as_me:$LINENO: WARNING: expat.h: in the future, the compiler will take precedence" >&5
26069echo "$as_me: WARNING: expat.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
26070 (
26071 cat <<\_ASBOX
ac1cb8d3
VS
26072## ----------------------------------------- ##
26073## Report this to wx-dev@lists.wxwidgets.org ##
26074## ----------------------------------------- ##
a848cd7e
SC
26075_ASBOX
26076 ) |
26077 sed "s/^/$as_me: WARNING: /" >&2
26078 ;;
26079esac
26080echo "$as_me:$LINENO: checking for expat.h" >&5
26081echo $ECHO_N "checking for expat.h... $ECHO_C" >&6
26082if test "${ac_cv_header_expat_h+set}" = set; then
26083 echo $ECHO_N "(cached) $ECHO_C" >&6
26084else
26085 ac_cv_header_expat_h=$ac_header_preproc
26086fi
26087echo "$as_me:$LINENO: result: $ac_cv_header_expat_h" >&5
26088echo "${ECHO_T}$ac_cv_header_expat_h" >&6
26089
26090fi
26091if test $ac_cv_header_expat_h = yes; then
26092 found_expat_h=1
26093fi
26094
26095
26096 if test "x$found_expat_h" = "x1"; then
26097 echo "$as_me:$LINENO: checking if expat.h is valid C++ header" >&5
26098echo $ECHO_N "checking if expat.h is valid C++ header... $ECHO_C" >&6
26099if test "${wx_cv_expat_is_not_broken+set}" = set; then
26100 echo $ECHO_N "(cached) $ECHO_C" >&6
26101else
26102
a848cd7e
SC
26103 cat >conftest.$ac_ext <<_ACEOF
26104/* confdefs.h. */
26105_ACEOF
26106cat confdefs.h >>conftest.$ac_ext
26107cat >>conftest.$ac_ext <<_ACEOF
26108/* end confdefs.h. */
26109#include <expat.h>
26110int
26111main ()
26112{
26113
26114 ;
26115 return 0;
26116}
26117_ACEOF
26118rm -f conftest.$ac_objext
26119if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 26120 (eval $ac_compile) 2>conftest.er1
a848cd7e 26121 ac_status=$?
ac1cb8d3
VS
26122 grep -v '^ *+' conftest.er1 >conftest.err
26123 rm -f conftest.er1
26124 cat conftest.err >&5
a848cd7e
SC
26125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26126 (exit $ac_status); } &&
c9a66001 26127 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
26128 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26129 (eval $ac_try) 2>&5
26130 ac_status=$?
26131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26132 (exit $ac_status); }; } &&
26133 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
26134 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26135 (eval $ac_try) 2>&5
26136 ac_status=$?
26137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26138 (exit $ac_status); }; }; then
26139 wx_cv_expat_is_not_broken=yes
26140else
26141 echo "$as_me: failed program was:" >&5
26142sed 's/^/| /' conftest.$ac_ext >&5
26143
26144wx_cv_expat_is_not_broken=no
26145
26146fi
ac1cb8d3 26147rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
26148
26149
26150fi
26151echo "$as_me:$LINENO: result: $wx_cv_expat_is_not_broken" >&5
26152echo "${ECHO_T}$wx_cv_expat_is_not_broken" >&6
26153 if test "$wx_cv_expat_is_not_broken" = "yes" ; then
26154 echo "$as_me:$LINENO: checking for XML_ParserCreate in -lexpat" >&5
26155echo $ECHO_N "checking for XML_ParserCreate in -lexpat... $ECHO_C" >&6
26156if test "${ac_cv_lib_expat_XML_ParserCreate+set}" = set; then
26157 echo $ECHO_N "(cached) $ECHO_C" >&6
26158else
26159 ac_check_lib_save_LIBS=$LIBS
26160LIBS="-lexpat $LIBS"
26161cat >conftest.$ac_ext <<_ACEOF
26162/* confdefs.h. */
26163_ACEOF
26164cat confdefs.h >>conftest.$ac_ext
26165cat >>conftest.$ac_ext <<_ACEOF
26166/* end confdefs.h. */
26167
26168/* Override any gcc2 internal prototype to avoid an error. */
26169#ifdef __cplusplus
26170extern "C"
26171#endif
26172/* We use char because int might match the return type of a gcc2
26173 builtin and then its argument prototype would still apply. */
26174char XML_ParserCreate ();
26175int
26176main ()
26177{
26178XML_ParserCreate ();
26179 ;
26180 return 0;
26181}
26182_ACEOF
26183rm -f conftest.$ac_objext conftest$ac_exeext
26184if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 26185 (eval $ac_link) 2>conftest.er1
a848cd7e 26186 ac_status=$?
ac1cb8d3
VS
26187 grep -v '^ *+' conftest.er1 >conftest.err
26188 rm -f conftest.er1
26189 cat conftest.err >&5
a848cd7e
SC
26190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26191 (exit $ac_status); } &&
c9a66001 26192 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
26193 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26194 (eval $ac_try) 2>&5
26195 ac_status=$?
26196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26197 (exit $ac_status); }; } &&
26198 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
26199 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26200 (eval $ac_try) 2>&5
26201 ac_status=$?
26202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26203 (exit $ac_status); }; }; then
26204 ac_cv_lib_expat_XML_ParserCreate=yes
26205else
26206 echo "$as_me: failed program was:" >&5
26207sed 's/^/| /' conftest.$ac_ext >&5
26208
26209ac_cv_lib_expat_XML_ParserCreate=no
26210fi
ac1cb8d3
VS
26211rm -f conftest.err conftest.$ac_objext \
26212 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
26213LIBS=$ac_check_lib_save_LIBS
26214fi
26215echo "$as_me:$LINENO: result: $ac_cv_lib_expat_XML_ParserCreate" >&5
26216echo "${ECHO_T}$ac_cv_lib_expat_XML_ParserCreate" >&6
26217if test $ac_cv_lib_expat_XML_ParserCreate = yes; then
26218 EXPAT_LINK=" -lexpat"
26219fi
26220
26221 fi
26222 fi
26223 if test "x$EXPAT_LINK" = "x" ; then
26224 if test "$wxUSE_EXPAT" = "sys" ; then
26225 { { echo "$as_me:$LINENO: error: system expat library not found! Use --with-expat=builtin to use built-in version" >&5
26226echo "$as_me: error: system expat library not found! Use --with-expat=builtin to use built-in version" >&2;}
26227 { (exit 1); exit 1; }; }
26228 else
26229 { echo "$as_me:$LINENO: WARNING: system expat library not found, will use built-in instead" >&5
26230echo "$as_me: WARNING: system expat library not found, will use built-in instead" >&2;}
26231 wxUSE_EXPAT=builtin
26232 fi
26233 else
26234 wxUSE_EXPAT=sys
26235 fi
26236 fi
26237 if test "$wxUSE_EXPAT" = "builtin" ; then
26238
26239
26240subdirs="$subdirs src/expat"
26241
26242 fi
26243fi
26244
26245
26246
26247if test "$wxUSE_LIBMSPACK" != "no"; then
a848cd7e
SC
26248 if test "${ac_cv_header_mspack_h+set}" = set; then
26249 echo "$as_me:$LINENO: checking for mspack.h" >&5
26250echo $ECHO_N "checking for mspack.h... $ECHO_C" >&6
26251if test "${ac_cv_header_mspack_h+set}" = set; then
26252 echo $ECHO_N "(cached) $ECHO_C" >&6
26253fi
26254echo "$as_me:$LINENO: result: $ac_cv_header_mspack_h" >&5
26255echo "${ECHO_T}$ac_cv_header_mspack_h" >&6
26256else
26257 # Is the header compilable?
26258echo "$as_me:$LINENO: checking mspack.h usability" >&5
26259echo $ECHO_N "checking mspack.h usability... $ECHO_C" >&6
26260cat >conftest.$ac_ext <<_ACEOF
26261/* confdefs.h. */
26262_ACEOF
26263cat confdefs.h >>conftest.$ac_ext
26264cat >>conftest.$ac_ext <<_ACEOF
26265/* end confdefs.h. */
26266$ac_includes_default
26267#include <mspack.h>
26268_ACEOF
26269rm -f conftest.$ac_objext
26270if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 26271 (eval $ac_compile) 2>conftest.er1
a848cd7e 26272 ac_status=$?
ac1cb8d3
VS
26273 grep -v '^ *+' conftest.er1 >conftest.err
26274 rm -f conftest.er1
26275 cat conftest.err >&5
a848cd7e
SC
26276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26277 (exit $ac_status); } &&
c9a66001 26278 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
26279 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26280 (eval $ac_try) 2>&5
26281 ac_status=$?
26282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26283 (exit $ac_status); }; } &&
26284 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
26285 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26286 (eval $ac_try) 2>&5
26287 ac_status=$?
26288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26289 (exit $ac_status); }; }; then
26290 ac_header_compiler=yes
26291else
26292 echo "$as_me: failed program was:" >&5
26293sed 's/^/| /' conftest.$ac_ext >&5
26294
26295ac_header_compiler=no
26296fi
ac1cb8d3 26297rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
26298echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26299echo "${ECHO_T}$ac_header_compiler" >&6
26300
26301# Is the header present?
26302echo "$as_me:$LINENO: checking mspack.h presence" >&5
26303echo $ECHO_N "checking mspack.h presence... $ECHO_C" >&6
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#include <mspack.h>
26311_ACEOF
26312if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26313 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26314 ac_status=$?
26315 grep -v '^ *+' conftest.er1 >conftest.err
26316 rm -f conftest.er1
26317 cat conftest.err >&5
26318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26319 (exit $ac_status); } >/dev/null; then
26320 if test -s conftest.err; then
5d7b7554
VZ
26321 ac_cpp_err=$ac_cxx_preproc_warn_flag
26322 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
26323 else
26324 ac_cpp_err=
26325 fi
26326else
26327 ac_cpp_err=yes
26328fi
26329if test -z "$ac_cpp_err"; then
26330 ac_header_preproc=yes
26331else
26332 echo "$as_me: failed program was:" >&5
26333sed 's/^/| /' conftest.$ac_ext >&5
26334
26335 ac_header_preproc=no
26336fi
26337rm -f conftest.err conftest.$ac_ext
26338echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26339echo "${ECHO_T}$ac_header_preproc" >&6
26340
26341# So? What about this header?
5d7b7554 26342case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
ac1cb8d3 26343 yes:no: )
a848cd7e
SC
26344 { echo "$as_me:$LINENO: WARNING: mspack.h: accepted by the compiler, rejected by the preprocessor!" >&5
26345echo "$as_me: WARNING: mspack.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
26346 { echo "$as_me:$LINENO: WARNING: mspack.h: proceeding with the compiler's result" >&5
26347echo "$as_me: WARNING: mspack.h: proceeding with the compiler's result" >&2;}
26348 ac_header_preproc=yes
a848cd7e 26349 ;;
ac1cb8d3 26350 no:yes:* )
a848cd7e
SC
26351 { echo "$as_me:$LINENO: WARNING: mspack.h: present but cannot be compiled" >&5
26352echo "$as_me: WARNING: mspack.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
26353 { echo "$as_me:$LINENO: WARNING: mspack.h: check for missing prerequisite headers?" >&5
26354echo "$as_me: WARNING: mspack.h: check for missing prerequisite headers?" >&2;}
26355 { echo "$as_me:$LINENO: WARNING: mspack.h: see the Autoconf documentation" >&5
26356echo "$as_me: WARNING: mspack.h: see the Autoconf documentation" >&2;}
26357 { echo "$as_me:$LINENO: WARNING: mspack.h: section \"Present But Cannot Be Compiled\"" >&5
26358echo "$as_me: WARNING: mspack.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
26359 { echo "$as_me:$LINENO: WARNING: mspack.h: proceeding with the preprocessor's result" >&5
26360echo "$as_me: WARNING: mspack.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
26361 { echo "$as_me:$LINENO: WARNING: mspack.h: in the future, the compiler will take precedence" >&5
26362echo "$as_me: WARNING: mspack.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
26363 (
26364 cat <<\_ASBOX
ac1cb8d3
VS
26365## ----------------------------------------- ##
26366## Report this to wx-dev@lists.wxwidgets.org ##
26367## ----------------------------------------- ##
a848cd7e
SC
26368_ASBOX
26369 ) |
26370 sed "s/^/$as_me: WARNING: /" >&2
26371 ;;
26372esac
26373echo "$as_me:$LINENO: checking for mspack.h" >&5
26374echo $ECHO_N "checking for mspack.h... $ECHO_C" >&6
26375if test "${ac_cv_header_mspack_h+set}" = set; then
26376 echo $ECHO_N "(cached) $ECHO_C" >&6
26377else
26378 ac_cv_header_mspack_h=$ac_header_preproc
26379fi
26380echo "$as_me:$LINENO: result: $ac_cv_header_mspack_h" >&5
26381echo "${ECHO_T}$ac_cv_header_mspack_h" >&6
26382
26383fi
26384if test $ac_cv_header_mspack_h = yes; then
26385 found_mspack_h=1
26386fi
26387
26388
26389 if test "x$found_mspack_h" = "x1"; then
26390 echo "$as_me:$LINENO: checking for mspack_create_chm_decompressor in -lmspack" >&5
26391echo $ECHO_N "checking for mspack_create_chm_decompressor in -lmspack... $ECHO_C" >&6
26392if test "${ac_cv_lib_mspack_mspack_create_chm_decompressor+set}" = set; then
26393 echo $ECHO_N "(cached) $ECHO_C" >&6
26394else
26395 ac_check_lib_save_LIBS=$LIBS
26396LIBS="-lmspack $LIBS"
26397cat >conftest.$ac_ext <<_ACEOF
26398/* confdefs.h. */
26399_ACEOF
26400cat confdefs.h >>conftest.$ac_ext
26401cat >>conftest.$ac_ext <<_ACEOF
26402/* end confdefs.h. */
26403
26404/* Override any gcc2 internal prototype to avoid an error. */
26405#ifdef __cplusplus
26406extern "C"
26407#endif
26408/* We use char because int might match the return type of a gcc2
26409 builtin and then its argument prototype would still apply. */
26410char mspack_create_chm_decompressor ();
26411int
26412main ()
26413{
26414mspack_create_chm_decompressor ();
26415 ;
26416 return 0;
26417}
26418_ACEOF
26419rm -f conftest.$ac_objext conftest$ac_exeext
26420if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 26421 (eval $ac_link) 2>conftest.er1
a848cd7e 26422 ac_status=$?
ac1cb8d3
VS
26423 grep -v '^ *+' conftest.er1 >conftest.err
26424 rm -f conftest.er1
26425 cat conftest.err >&5
a848cd7e
SC
26426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26427 (exit $ac_status); } &&
c9a66001 26428 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
26429 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26430 (eval $ac_try) 2>&5
26431 ac_status=$?
26432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26433 (exit $ac_status); }; } &&
26434 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
26435 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26436 (eval $ac_try) 2>&5
26437 ac_status=$?
26438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26439 (exit $ac_status); }; }; then
26440 ac_cv_lib_mspack_mspack_create_chm_decompressor=yes
26441else
26442 echo "$as_me: failed program was:" >&5
26443sed 's/^/| /' conftest.$ac_ext >&5
26444
26445ac_cv_lib_mspack_mspack_create_chm_decompressor=no
26446fi
ac1cb8d3
VS
26447rm -f conftest.err conftest.$ac_objext \
26448 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
26449LIBS=$ac_check_lib_save_LIBS
26450fi
26451echo "$as_me:$LINENO: result: $ac_cv_lib_mspack_mspack_create_chm_decompressor" >&5
26452echo "${ECHO_T}$ac_cv_lib_mspack_mspack_create_chm_decompressor" >&6
26453if test $ac_cv_lib_mspack_mspack_create_chm_decompressor = yes; then
26454 MSPACK_LINK=" -lmspack"
26455fi
26456
26457 fi
26458 if test "x$MSPACK_LINK" = "x" ; then
26459 wxUSE_LIBMSPACK=no
dd3a2d96
VZ
26460 fi
26461fi
26462
26463if test "$wxUSE_LIBMSPACK" != "no"; then
26464 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
26465#define wxUSE_LIBMSPACK 1
26466_ACEOF
26467
a848cd7e
SC
26468fi
26469
26470
26471
26472AFMINSTALL=
26473WIN32INSTALL=
26474
26475TOOLKIT=
26476TOOLKIT_INCLUDE=
26477WIDGET_SET=
26478
26479if test "$USE_WIN32" = 1 ; then
26480
26481for ac_header in w32api.h
26482do
26483as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26484if eval "test \"\${$as_ac_Header+set}\" = set"; then
26485 echo "$as_me:$LINENO: checking for $ac_header" >&5
26486echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26487if eval "test \"\${$as_ac_Header+set}\" = set"; then
26488 echo $ECHO_N "(cached) $ECHO_C" >&6
26489fi
26490echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26491echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26492else
26493 # Is the header compilable?
26494echo "$as_me:$LINENO: checking $ac_header usability" >&5
26495echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26496cat >conftest.$ac_ext <<_ACEOF
26497/* confdefs.h. */
26498_ACEOF
26499cat confdefs.h >>conftest.$ac_ext
26500cat >>conftest.$ac_ext <<_ACEOF
26501/* end confdefs.h. */
26502$ac_includes_default
26503#include <$ac_header>
26504_ACEOF
26505rm -f conftest.$ac_objext
26506if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 26507 (eval $ac_compile) 2>conftest.er1
a848cd7e 26508 ac_status=$?
ac1cb8d3
VS
26509 grep -v '^ *+' conftest.er1 >conftest.err
26510 rm -f conftest.er1
26511 cat conftest.err >&5
a848cd7e
SC
26512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26513 (exit $ac_status); } &&
c9a66001 26514 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
26515 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26516 (eval $ac_try) 2>&5
26517 ac_status=$?
26518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26519 (exit $ac_status); }; } &&
26520 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
26521 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26522 (eval $ac_try) 2>&5
26523 ac_status=$?
26524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26525 (exit $ac_status); }; }; then
26526 ac_header_compiler=yes
26527else
26528 echo "$as_me: failed program was:" >&5
26529sed 's/^/| /' conftest.$ac_ext >&5
26530
26531ac_header_compiler=no
26532fi
ac1cb8d3 26533rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
26534echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26535echo "${ECHO_T}$ac_header_compiler" >&6
26536
26537# Is the header present?
26538echo "$as_me:$LINENO: checking $ac_header presence" >&5
26539echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
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#include <$ac_header>
26547_ACEOF
26548if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26549 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26550 ac_status=$?
26551 grep -v '^ *+' conftest.er1 >conftest.err
26552 rm -f conftest.er1
26553 cat conftest.err >&5
26554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26555 (exit $ac_status); } >/dev/null; then
26556 if test -s conftest.err; then
5d7b7554
VZ
26557 ac_cpp_err=$ac_cxx_preproc_warn_flag
26558 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
26559 else
26560 ac_cpp_err=
26561 fi
26562else
26563 ac_cpp_err=yes
26564fi
26565if test -z "$ac_cpp_err"; then
26566 ac_header_preproc=yes
26567else
26568 echo "$as_me: failed program was:" >&5
26569sed 's/^/| /' conftest.$ac_ext >&5
26570
26571 ac_header_preproc=no
26572fi
26573rm -f conftest.err conftest.$ac_ext
26574echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26575echo "${ECHO_T}$ac_header_preproc" >&6
26576
26577# So? What about this header?
5d7b7554 26578case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
ac1cb8d3 26579 yes:no: )
a848cd7e
SC
26580 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26581echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
26582 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26583echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26584 ac_header_preproc=yes
a848cd7e 26585 ;;
ac1cb8d3 26586 no:yes:* )
a848cd7e
SC
26587 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26588echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
26589 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
26590echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
26591 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26592echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26593 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
26594echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
26595 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26596echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
26597 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26598echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
26599 (
26600 cat <<\_ASBOX
ac1cb8d3
VS
26601## ----------------------------------------- ##
26602## Report this to wx-dev@lists.wxwidgets.org ##
26603## ----------------------------------------- ##
a848cd7e
SC
26604_ASBOX
26605 ) |
26606 sed "s/^/$as_me: WARNING: /" >&2
26607 ;;
26608esac
26609echo "$as_me:$LINENO: checking for $ac_header" >&5
26610echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26611if eval "test \"\${$as_ac_Header+set}\" = set"; then
26612 echo $ECHO_N "(cached) $ECHO_C" >&6
26613else
ac1cb8d3 26614 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
26615fi
26616echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26617echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26618
26619fi
26620if test `eval echo '${'$as_ac_Header'}'` = yes; then
26621 cat >>confdefs.h <<_ACEOF
26622#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26623_ACEOF
26624
26625fi
26626
26627done
26628
26629 if test "${ac_cv_header_windows_h+set}" = set; then
26630 echo "$as_me:$LINENO: checking for windows.h" >&5
26631echo $ECHO_N "checking for windows.h... $ECHO_C" >&6
26632if test "${ac_cv_header_windows_h+set}" = set; then
26633 echo $ECHO_N "(cached) $ECHO_C" >&6
26634fi
26635echo "$as_me:$LINENO: result: $ac_cv_header_windows_h" >&5
26636echo "${ECHO_T}$ac_cv_header_windows_h" >&6
26637else
26638 # Is the header compilable?
26639echo "$as_me:$LINENO: checking windows.h usability" >&5
26640echo $ECHO_N "checking windows.h usability... $ECHO_C" >&6
26641cat >conftest.$ac_ext <<_ACEOF
26642/* confdefs.h. */
26643_ACEOF
26644cat confdefs.h >>conftest.$ac_ext
26645cat >>conftest.$ac_ext <<_ACEOF
26646/* end confdefs.h. */
26647$ac_includes_default
26648#include <windows.h>
26649_ACEOF
26650rm -f conftest.$ac_objext
26651if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 26652 (eval $ac_compile) 2>conftest.er1
a848cd7e 26653 ac_status=$?
ac1cb8d3
VS
26654 grep -v '^ *+' conftest.er1 >conftest.err
26655 rm -f conftest.er1
26656 cat conftest.err >&5
a848cd7e
SC
26657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26658 (exit $ac_status); } &&
c9a66001 26659 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
26660 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26661 (eval $ac_try) 2>&5
26662 ac_status=$?
26663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26664 (exit $ac_status); }; } &&
26665 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
26666 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26667 (eval $ac_try) 2>&5
26668 ac_status=$?
26669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26670 (exit $ac_status); }; }; then
26671 ac_header_compiler=yes
26672else
26673 echo "$as_me: failed program was:" >&5
26674sed 's/^/| /' conftest.$ac_ext >&5
26675
26676ac_header_compiler=no
26677fi
ac1cb8d3 26678rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
26679echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26680echo "${ECHO_T}$ac_header_compiler" >&6
26681
26682# Is the header present?
26683echo "$as_me:$LINENO: checking windows.h presence" >&5
26684echo $ECHO_N "checking windows.h presence... $ECHO_C" >&6
26685cat >conftest.$ac_ext <<_ACEOF
26686/* confdefs.h. */
26687_ACEOF
26688cat confdefs.h >>conftest.$ac_ext
26689cat >>conftest.$ac_ext <<_ACEOF
26690/* end confdefs.h. */
26691#include <windows.h>
26692_ACEOF
26693if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26694 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26695 ac_status=$?
26696 grep -v '^ *+' conftest.er1 >conftest.err
26697 rm -f conftest.er1
26698 cat conftest.err >&5
26699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26700 (exit $ac_status); } >/dev/null; then
26701 if test -s conftest.err; then
5d7b7554
VZ
26702 ac_cpp_err=$ac_cxx_preproc_warn_flag
26703 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
26704 else
26705 ac_cpp_err=
26706 fi
26707else
26708 ac_cpp_err=yes
26709fi
26710if test -z "$ac_cpp_err"; then
26711 ac_header_preproc=yes
26712else
26713 echo "$as_me: failed program was:" >&5
26714sed 's/^/| /' conftest.$ac_ext >&5
26715
26716 ac_header_preproc=no
26717fi
26718rm -f conftest.err conftest.$ac_ext
26719echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26720echo "${ECHO_T}$ac_header_preproc" >&6
26721
26722# So? What about this header?
5d7b7554 26723case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
ac1cb8d3 26724 yes:no: )
a848cd7e
SC
26725 { echo "$as_me:$LINENO: WARNING: windows.h: accepted by the compiler, rejected by the preprocessor!" >&5
26726echo "$as_me: WARNING: windows.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
26727 { echo "$as_me:$LINENO: WARNING: windows.h: proceeding with the compiler's result" >&5
26728echo "$as_me: WARNING: windows.h: proceeding with the compiler's result" >&2;}
26729 ac_header_preproc=yes
a848cd7e 26730 ;;
ac1cb8d3 26731 no:yes:* )
a848cd7e
SC
26732 { echo "$as_me:$LINENO: WARNING: windows.h: present but cannot be compiled" >&5
26733echo "$as_me: WARNING: windows.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
26734 { echo "$as_me:$LINENO: WARNING: windows.h: check for missing prerequisite headers?" >&5
26735echo "$as_me: WARNING: windows.h: check for missing prerequisite headers?" >&2;}
26736 { echo "$as_me:$LINENO: WARNING: windows.h: see the Autoconf documentation" >&5
26737echo "$as_me: WARNING: windows.h: see the Autoconf documentation" >&2;}
26738 { echo "$as_me:$LINENO: WARNING: windows.h: section \"Present But Cannot Be Compiled\"" >&5
26739echo "$as_me: WARNING: windows.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
26740 { echo "$as_me:$LINENO: WARNING: windows.h: proceeding with the preprocessor's result" >&5
26741echo "$as_me: WARNING: windows.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
26742 { echo "$as_me:$LINENO: WARNING: windows.h: in the future, the compiler will take precedence" >&5
26743echo "$as_me: WARNING: windows.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
26744 (
26745 cat <<\_ASBOX
ac1cb8d3
VS
26746## ----------------------------------------- ##
26747## Report this to wx-dev@lists.wxwidgets.org ##
26748## ----------------------------------------- ##
a848cd7e
SC
26749_ASBOX
26750 ) |
26751 sed "s/^/$as_me: WARNING: /" >&2
26752 ;;
26753esac
26754echo "$as_me:$LINENO: checking for windows.h" >&5
26755echo $ECHO_N "checking for windows.h... $ECHO_C" >&6
26756if test "${ac_cv_header_windows_h+set}" = set; then
26757 echo $ECHO_N "(cached) $ECHO_C" >&6
26758else
26759 ac_cv_header_windows_h=$ac_header_preproc
26760fi
26761echo "$as_me:$LINENO: result: $ac_cv_header_windows_h" >&5
26762echo "${ECHO_T}$ac_cv_header_windows_h" >&6
26763
26764fi
26765if test $ac_cv_header_windows_h = yes; then
26766 :
26767else
26768
26769 { { echo "$as_me:$LINENO: error: please set CFLAGS to contain the location of windows.h" >&5
26770echo "$as_me: error: please set CFLAGS to contain the location of windows.h" >&2;}
26771 { (exit 1); exit 1; }; }
26772
26773fi
26774
26775
26776
26777 LIBS="$LIBS -lwinspool -lwinmm -lshell32 -lcomctl32 -lcomdlg32 -lctl3d32 -ladvapi32 -lwsock32 -lgdi32"
26778
26779 if test "$wxUSE_ACCESSIBILITY" = "yes" ; then
26780 LIBS="$LIBS -loleacc"
26781 fi
26782
26783 case "${host}" in
26784 *-*-cygwin* )
26785 LIBS="$LIBS -lkernel32 -luser32"
a848cd7e
SC
26786 esac
26787
26788 if test "$wxUSE_ODBC" = "sys" ; then
26789 wxUSE_ODBC = "yes"
26790 fi
26791 if test "$wxUSE_ODBC" = "yes" ; then
26792 LIBS=" -lodbc32 -lole32 -loleaut32 $LIBS"
26793 cat >>confdefs.h <<\_ACEOF
26794#define wxUSE_ODBC 1
26795_ACEOF
26796
26797 fi
26798
370d2fd7 26799 RESFLAGS="--include-dir \$(top_srcdir)/include --include-dir \$(top_srcdir)/\$(program_dir) --define __WIN32__ --define __WIN95__ --define __GNUWIN32__"
a848cd7e
SC
26800 RESPROGRAMOBJ="\$(PROGRAM)_resources.o"
26801
004ee6da 26802 WXCONFIG_RESFLAGS="--define __WIN32__ --define __WIN95__ --define __GNUWIN32__"
370d2fd7 26803
a848cd7e
SC
26804 WIN32INSTALL=win32install
26805fi
26806
26807if test "$wxUSE_GUI" = "yes"; then
26808 USE_GUI=1
26809
26810 GUI_TK_LIBRARY=
26811
26812 WXGTK12=
26813 WXGTK127=
26814 WXGTK20=
26815 WXGPE=
26816
207bc66c
RN
26817 if test "$wxUSE_COCOA" = 1 ; then
26818 if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes"; then
26819 { echo "$as_me:$LINENO: WARNING: Printing not supported under wxCocoa yet, disabled" >&5
26820echo "$as_me: WARNING: Printing not supported under wxCocoa yet, disabled" >&2;}
26821 wxUSE_PRINTING_ARCHITECTURE=no
26822 fi
26823 if test "$wxUSE_DRAG_AND_DROP" = "yes"; then
26824 { echo "$as_me:$LINENO: WARNING: Drag and Drop not supported under wxCocoa yet, disabled" >&5
26825echo "$as_me: WARNING: Drag and Drop not supported under wxCocoa yet, disabled" >&2;}
26826 wxUSE_DRAG_AND_DROP=no
26827 fi
26828 if test "$wxUSE_DRAGIMAGE" = "yes"; then
26829 { echo "$as_me:$LINENO: WARNING: Drag Image and DandD not supported under wxCocoa yet, disabled" >&5
26830echo "$as_me: WARNING: Drag Image and DandD not supported under wxCocoa yet, disabled" >&2;}
26831 wxUSE_DRAGIMAGE=no
26832 fi
26833 fi
26834
a848cd7e
SC
26835 if test "$wxUSE_MSW" = 1 ; then
26836 TOOLKIT=MSW
26837 GUIDIST=MSW_DIST
26838
ceec2216 26839 case "${host}" in
a848cd7e
SC
26840 *-*-mingw32* )
26841 WXCONFIG_LDFLAGS_GUI="$LDFLAGS -Wl,--subsystem,windows -mwindows"
26842 esac
26843 fi
26844
26845 if test "$wxUSE_GTK" = 1; then
5d7b7554
VZ
26846 ac_ext=c
26847ac_cpp='$CPP $CPPFLAGS'
26848ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26849ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26850ac_compiler_gnu=$ac_cv_c_compiler_gnu
26851
26852
a848cd7e
SC
26853 echo "$as_me:$LINENO: checking for GTK+ version" >&5
26854echo $ECHO_N "checking for GTK+ version... $ECHO_C" >&6
26855
26856 gtk_version_cached=1
26857 if test "${wx_cv_lib_gtk+set}" = set; then
26858 echo $ECHO_N "(cached) $ECHO_C" >&6
26859else
26860
26861 gtk_version_cached=0
26862 echo "$as_me:$LINENO: result: " >&5
26863echo "${ECHO_T}" >&6
26864
26865 GTK_MODULES=
26866 if test "$wxUSE_THREADS" = "yes"; then
26867 GTK_MODULES=gthread
26868 fi
26869
f597b41c 26870 wx_cv_lib_gtk=
5001df0d
MW
26871 if test "x$wxGTK_VERSION" != "x1"
26872 then
26873 case "${host}" in
26874 *-*-solaris2* )
26875 if test "$wxUSE_THREADS" = "yes" -a "$GCC" = yes; then
5ff751d6 26876 enable_gtktest=no
5001df0d
MW
26877 fi
26878 esac
26879
a848cd7e
SC
26880 # Check whether --enable-gtktest or --disable-gtktest was given.
26881if test "${enable_gtktest+set}" = set; then
26882 enableval="$enable_gtktest"
26883
26884else
26885 enable_gtktest=yes
26886fi;
26887
26888 pkg_config_args=gtk+-2.0
26889 for module in . $GTK_MODULES
26890 do
26891 case "$module" in
26892 gthread)
26893 pkg_config_args="$pkg_config_args gthread-2.0"
26894 ;;
26895 esac
26896 done
26897
26898 no_gtk=""
26899
26900 # Extract the first word of "pkg-config", so it can be a program name with args.
26901set dummy pkg-config; ac_word=$2
26902echo "$as_me:$LINENO: checking for $ac_word" >&5
26903echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
26904if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
26905 echo $ECHO_N "(cached) $ECHO_C" >&6
26906else
26907 case $PKG_CONFIG in
26908 [\\/]* | ?:[\\/]*)
26909 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
26910 ;;
26911 *)
26912 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26913for as_dir in $PATH
26914do
26915 IFS=$as_save_IFS
26916 test -z "$as_dir" && as_dir=.
26917 for ac_exec_ext in '' $ac_executable_extensions; do
26918 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
26919 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
26920 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26921 break 2
26922 fi
26923done
26924done
26925
26926 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
26927 ;;
26928esac
26929fi
26930PKG_CONFIG=$ac_cv_path_PKG_CONFIG
26931
26932if test -n "$PKG_CONFIG"; then
26933 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
26934echo "${ECHO_T}$PKG_CONFIG" >&6
26935else
26936 echo "$as_me:$LINENO: result: no" >&5
26937echo "${ECHO_T}no" >&6
26938fi
26939
26940
26941 if test x$PKG_CONFIG != xno ; then
26942 if pkg-config --atleast-pkgconfig-version 0.7 ; then
26943 :
26944 else
c2218763 26945 echo "*** pkg-config too old; version 0.7 or better required."
a848cd7e
SC
26946 no_gtk=yes
26947 PKG_CONFIG=no
26948 fi
26949 else
26950 no_gtk=yes
26951 fi
26952
26953 min_gtk_version=2.0.0
26954 echo "$as_me:$LINENO: checking for GTK+ - version >= $min_gtk_version" >&5
26955echo $ECHO_N "checking for GTK+ - version >= $min_gtk_version... $ECHO_C" >&6
26956
26957 if test x$PKG_CONFIG != xno ; then
26958 ## don't try to run the test against uninstalled libtool libs
26959 if $PKG_CONFIG --uninstalled $pkg_config_args; then
26960 echo "Will use uninstalled version of GTK+ found in PKG_CONFIG_PATH"
26961 enable_gtktest=no
26962 fi
26963
26964 if $PKG_CONFIG --atleast-version $min_gtk_version $pkg_config_args; then
26965 :
26966 else
26967 no_gtk=yes
26968 fi
26969 fi
26970
26971 if test x"$no_gtk" = x ; then
26972 GTK_CFLAGS=`$PKG_CONFIG $pkg_config_args --cflags`
26973 GTK_LIBS=`$PKG_CONFIG $pkg_config_args --libs`
26974 gtk_config_major_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
26975 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
26976 gtk_config_minor_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
26977 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
26978 gtk_config_micro_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
26979 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
26980 if test "x$enable_gtktest" = "xyes" ; then
26981 ac_save_CFLAGS="$CFLAGS"
26982 ac_save_LIBS="$LIBS"
26983 CFLAGS="$CFLAGS $GTK_CFLAGS"
26984 LIBS="$GTK_LIBS $LIBS"
26985 rm -f conf.gtktest
26986 if test "$cross_compiling" = yes; then
26987 echo $ac_n "cross compiling; assumed OK... $ac_c"
26988else
26989 cat >conftest.$ac_ext <<_ACEOF
26990/* confdefs.h. */
26991_ACEOF
26992cat confdefs.h >>conftest.$ac_ext
26993cat >>conftest.$ac_ext <<_ACEOF
26994/* end confdefs.h. */
26995
26996#include <gtk/gtk.h>
26997#include <stdio.h>
26998#include <stdlib.h>
26999
27000int
27001main ()
27002{
27003 int major, minor, micro;
27004 char *tmp_version;
27005
27006 system ("touch conf.gtktest");
27007
27008 /* HP/UX 9 (%@#!) writes to sscanf strings */
27009 tmp_version = g_strdup("$min_gtk_version");
27010 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
27011 printf("%s, bad version string\n", "$min_gtk_version");
27012 exit(1);
27013 }
27014
27015 if ((gtk_major_version != $gtk_config_major_version) ||
27016 (gtk_minor_version != $gtk_config_minor_version) ||
27017 (gtk_micro_version != $gtk_config_micro_version))
27018 {
27019 printf("\n*** 'pkg-config --modversion gtk+-2.0' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
27020 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
27021 gtk_major_version, gtk_minor_version, gtk_micro_version);
27022 printf ("*** was found! If pkg-config was correct, then it is best\n");
27023 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
27024 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
27025 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
27026 printf("*** required on your system.\n");
27027 printf("*** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH\n");
27028 printf("*** to point to the correct configuration files\n");
27029 }
27030 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
27031 (gtk_minor_version != GTK_MINOR_VERSION) ||
27032 (gtk_micro_version != GTK_MICRO_VERSION))
27033 {
27034 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
27035 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
27036 printf("*** library (version %d.%d.%d)\n",
27037 gtk_major_version, gtk_minor_version, gtk_micro_version);
27038 }
27039 else
27040 {
27041 if ((gtk_major_version > major) ||
27042 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
27043 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
27044 {
27045 return 0;
27046 }
27047 else
27048 {
27049 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
27050 gtk_major_version, gtk_minor_version, gtk_micro_version);
27051 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
27052 major, minor, micro);
27053 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
27054 printf("***\n");
27055 printf("*** If you have already installed a sufficiently new version, this error\n");
27056 printf("*** probably means that the wrong copy of the pkg-config shell script is\n");
27057 printf("*** being found. The easiest way to fix this is to remove the old version\n");
27058 printf("*** of GTK+, but you can also set the PKG_CONFIG environment to point to the\n");
27059 printf("*** correct copy of pkg-config. (In this case, you will have to\n");
27060 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
27061 printf("*** so that the correct libraries are found at run-time))\n");
27062 }
27063 }
27064 return 1;
27065}
27066
27067_ACEOF
27068rm -f conftest$ac_exeext
27069if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27070 (eval $ac_link) 2>&5
27071 ac_status=$?
27072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27073 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27074 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27075 (eval $ac_try) 2>&5
27076 ac_status=$?
27077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27078 (exit $ac_status); }; }; then
27079 :
27080else
27081 echo "$as_me: program exited with status $ac_status" >&5
27082echo "$as_me: failed program was:" >&5
27083sed 's/^/| /' conftest.$ac_ext >&5
27084
27085( exit $ac_status )
27086no_gtk=yes
27087fi
ac1cb8d3 27088rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
27089fi
27090 CFLAGS="$ac_save_CFLAGS"
27091 LIBS="$ac_save_LIBS"
27092 fi
27093 fi
27094 if test "x$no_gtk" = x ; then
27095 echo "$as_me:$LINENO: result: yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&5
27096echo "${ECHO_T}yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&6
27097 wx_cv_lib_gtk=2.0
27098 else
27099 echo "$as_me:$LINENO: result: no" >&5
27100echo "${ECHO_T}no" >&6
27101 if test "$PKG_CONFIG" = "no" ; then
27102 echo "*** A new enough version of pkg-config was not found."
27103 echo "*** See http://pkgconfig.sourceforge.net"
27104 else
27105 if test -f conf.gtktest ; then
27106 :
27107 else
27108 echo "*** Could not run GTK+ test program, checking why..."
27109 ac_save_CFLAGS="$CFLAGS"
27110 ac_save_LIBS="$LIBS"
27111 CFLAGS="$CFLAGS $GTK_CFLAGS"
27112 LIBS="$LIBS $GTK_LIBS"
27113 cat >conftest.$ac_ext <<_ACEOF
27114/* confdefs.h. */
27115_ACEOF
27116cat confdefs.h >>conftest.$ac_ext
27117cat >>conftest.$ac_ext <<_ACEOF
27118/* end confdefs.h. */
27119
27120#include <gtk/gtk.h>
27121#include <stdio.h>
27122
27123int
27124main ()
27125{
27126 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
27127 ;
27128 return 0;
27129}
27130_ACEOF
27131rm -f conftest.$ac_objext conftest$ac_exeext
27132if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 27133 (eval $ac_link) 2>conftest.er1
a848cd7e 27134 ac_status=$?
ac1cb8d3
VS
27135 grep -v '^ *+' conftest.er1 >conftest.err
27136 rm -f conftest.er1
27137 cat conftest.err >&5
a848cd7e
SC
27138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27139 (exit $ac_status); } &&
c9a66001 27140 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
27141 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27142 (eval $ac_try) 2>&5
27143 ac_status=$?
27144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27145 (exit $ac_status); }; } &&
27146 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
27147 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27148 (eval $ac_try) 2>&5
27149 ac_status=$?
27150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27151 (exit $ac_status); }; }; then
27152 echo "*** The test program compiled, but did not run. This usually means"
27153 echo "*** that the run-time linker is not finding GTK+ or finding the wrong"
27154 echo "*** version of GTK+. If it is not finding GTK+, you'll need to set your"
27155 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
27156 echo "*** to the installed location Also, make sure you have run ldconfig if that"
27157 echo "*** is required on your system"
27158 echo "***"
27159 echo "*** If you have an old version installed, it is best to remove it, although"
27160 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
27161else
27162 echo "$as_me: failed program was:" >&5
27163sed 's/^/| /' conftest.$ac_ext >&5
27164
27165 echo "*** The test program failed to compile or link. See the file config.log for the"
27166 echo "*** exact error that occured. This usually means GTK+ is incorrectly installed."
27167fi
ac1cb8d3
VS
27168rm -f conftest.err conftest.$ac_objext \
27169 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
27170 CFLAGS="$ac_save_CFLAGS"
27171 LIBS="$ac_save_LIBS"
27172 fi
27173 fi
27174 GTK_CFLAGS=""
27175 GTK_LIBS=""
27176 :
27177 fi
27178
27179
27180 rm -f conf.gtktest
27181
5001df0d
MW
27182
27183 case "${host}" in
27184 *-*-solaris2* )
27185 if test "$wxUSE_THREADS" = "yes" -a "$GCC" = yes; then
27186 GTK_CFLAGS=`echo $GTK_CFLAGS | sed 's/-mt//'`
27187 GTK_LIBS=`echo $GTK_LIBS | sed 's/-mt//'`
27188 fi
27189 if test "$wxUSE_SHARED" != "yes"; then
27190 GTK_LIBS="$GTK_LIBS -lX11"
27191 fi
27192 esac
f597b41c
MW
27193 fi
27194
f34ca037
MW
27195 if test -z "$wx_cv_lib_gtk"; then
27196 if test "x$wxGTK_VERSION" = "x1" -o "x$wxGTK_VERSION" = "xany" ; then
a848cd7e
SC
27197
27198# Check whether --with-gtk-prefix or --without-gtk-prefix was given.
27199if test "${with_gtk_prefix+set}" = set; then
27200 withval="$with_gtk_prefix"
27201 gtk_config_prefix="$withval"
27202else
27203 gtk_config_prefix=""
27204fi;
27205
27206# Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
27207if test "${with_gtk_exec_prefix+set}" = set; then
27208 withval="$with_gtk_exec_prefix"
27209 gtk_config_exec_prefix="$withval"
27210else
27211 gtk_config_exec_prefix=""
27212fi;
27213# Check whether --enable-gtktest or --disable-gtktest was given.
27214if test "${enable_gtktest+set}" = set; then
27215 enableval="$enable_gtktest"
27216
27217else
27218 enable_gtktest=yes
27219fi;
27220
27221 for module in . $GTK_MODULES
27222 do
27223 case "$module" in
27224 gthread)
27225 gtk_config_args="$gtk_config_args gthread"
27226 ;;
27227 esac
27228 done
27229
27230 if test x$gtk_config_exec_prefix != x ; then
27231 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
27232 if test x${GTK_CONFIG+set} != xset ; then
27233 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
27234 fi
27235 fi
27236 if test x$gtk_config_prefix != x ; then
27237 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
27238 if test x${GTK_CONFIG+set} != xset ; then
27239 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
27240 fi
27241 fi
27242
27243 # Extract the first word of "gtk-config", so it can be a program name with args.
27244set dummy gtk-config; ac_word=$2
27245echo "$as_me:$LINENO: checking for $ac_word" >&5
27246echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
27247if test "${ac_cv_path_GTK_CONFIG+set}" = set; then
27248 echo $ECHO_N "(cached) $ECHO_C" >&6
27249else
27250 case $GTK_CONFIG in
27251 [\\/]* | ?:[\\/]*)
27252 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
27253 ;;
27254 *)
27255 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27256for as_dir in $PATH
27257do
27258 IFS=$as_save_IFS
27259 test -z "$as_dir" && as_dir=.
27260 for ac_exec_ext in '' $ac_executable_extensions; do
27261 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
27262 ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext"
27263 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
27264 break 2
27265 fi
27266done
27267done
27268
27269 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
27270 ;;
27271esac
27272fi
27273GTK_CONFIG=$ac_cv_path_GTK_CONFIG
27274
27275if test -n "$GTK_CONFIG"; then
27276 echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5
27277echo "${ECHO_T}$GTK_CONFIG" >&6
27278else
27279 echo "$as_me:$LINENO: result: no" >&5
27280echo "${ECHO_T}no" >&6
27281fi
27282
27283 min_gtk_version=1.2.7
27284 echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5
27285echo $ECHO_N "checking for GTK - version >= $min_gtk_version... $ECHO_C" >&6
27286 no_gtk=""
27287 if test "$GTK_CONFIG" = "no" ; then
27288 no_gtk=yes
27289 else
27290 GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
27291 GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
27292 gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
27293 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
27294 gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
27295 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
27296 gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
27297 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
27298 if test "x$enable_gtktest" = "xyes" ; then
27299 ac_save_CFLAGS="$CFLAGS"
27300 ac_save_LIBS="$LIBS"
27301 CFLAGS="$CFLAGS $GTK_CFLAGS"
27302 LIBS="$GTK_LIBS $LIBS"
27303 rm -f conf.gtktest
27304 if test "$cross_compiling" = yes; then
27305 echo $ac_n "cross compiling; assumed OK... $ac_c"
27306else
27307 cat >conftest.$ac_ext <<_ACEOF
27308/* confdefs.h. */
27309_ACEOF
27310cat confdefs.h >>conftest.$ac_ext
27311cat >>conftest.$ac_ext <<_ACEOF
27312/* end confdefs.h. */
27313
27314#include <gtk/gtk.h>
27315#include <stdio.h>
27316#include <stdlib.h>
27317
27318int
27319main ()
27320{
27321 int major, minor, micro;
27322 char *tmp_version;
27323
27324 system ("touch conf.gtktest");
27325
27326 /* HP/UX 9 (%@#!) writes to sscanf strings */
27327 tmp_version = g_strdup("$min_gtk_version");
27328 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
27329 printf("%s, bad version string\n", "$min_gtk_version");
27330 exit(1);
27331 }
27332
27333 if ((gtk_major_version != $gtk_config_major_version) ||
27334 (gtk_minor_version != $gtk_config_minor_version) ||
27335 (gtk_micro_version != $gtk_config_micro_version))
27336 {
27337 printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
27338 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
27339 gtk_major_version, gtk_minor_version, gtk_micro_version);
27340 printf ("*** was found! If gtk-config was correct, then it is best\n");
27341 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
27342 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
27343 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
27344 printf("*** required on your system.\n");
27345 printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
27346 printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
27347 printf("*** before re-running configure\n");
27348 }
27349#if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
27350 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
27351 (gtk_minor_version != GTK_MINOR_VERSION) ||
27352 (gtk_micro_version != GTK_MICRO_VERSION))
27353 {
27354 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
27355 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
27356 printf("*** library (version %d.%d.%d)\n",
27357 gtk_major_version, gtk_minor_version, gtk_micro_version);
27358 }
27359#endif /* defined (GTK_MAJOR_VERSION) ... */
27360 else
27361 {
27362 if ((gtk_major_version > major) ||
27363 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
27364 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
27365 {
27366 return 0;
27367 }
27368 else
27369 {
27370 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
27371 gtk_major_version, gtk_minor_version, gtk_micro_version);
27372 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
27373 major, minor, micro);
27374 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
27375 printf("***\n");
27376 printf("*** If you have already installed a sufficiently new version, this error\n");
27377 printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
27378 printf("*** being found. The easiest way to fix this is to remove the old version\n");
27379 printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
27380 printf("*** correct copy of gtk-config. (In this case, you will have to\n");
27381 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
27382 printf("*** so that the correct libraries are found at run-time))\n");
27383 }
27384 }
27385 return 1;
27386}
27387
27388_ACEOF
27389rm -f conftest$ac_exeext
27390if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27391 (eval $ac_link) 2>&5
27392 ac_status=$?
27393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27394 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27395 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27396 (eval $ac_try) 2>&5
27397 ac_status=$?
27398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27399 (exit $ac_status); }; }; then
27400 :
27401else
27402 echo "$as_me: program exited with status $ac_status" >&5
27403echo "$as_me: failed program was:" >&5
27404sed 's/^/| /' conftest.$ac_ext >&5
27405
27406( exit $ac_status )
27407no_gtk=yes
27408fi
ac1cb8d3 27409rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
27410fi
27411 CFLAGS="$ac_save_CFLAGS"
27412 LIBS="$ac_save_LIBS"
27413 fi
27414 fi
27415 if test "x$no_gtk" = x ; then
27416 echo "$as_me:$LINENO: result: yes" >&5
27417echo "${ECHO_T}yes" >&6
27418 wx_cv_lib_gtk=1.2.7
27419 else
27420 echo "$as_me:$LINENO: result: no" >&5
27421echo "${ECHO_T}no" >&6
27422 if test "$GTK_CONFIG" = "no" ; then
27423 echo "*** The gtk-config script installed by GTK could not be found"
27424 echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
27425 echo "*** your path, or set the GTK_CONFIG environment variable to the"
27426 echo "*** full path to gtk-config."
27427 else
27428 if test -f conf.gtktest ; then
27429 :
27430 else
27431 echo "*** Could not run GTK test program, checking why..."
27432 CFLAGS="$CFLAGS $GTK_CFLAGS"
27433 LIBS="$LIBS $GTK_LIBS"
27434 cat >conftest.$ac_ext <<_ACEOF
27435/* confdefs.h. */
27436_ACEOF
27437cat confdefs.h >>conftest.$ac_ext
27438cat >>conftest.$ac_ext <<_ACEOF
27439/* end confdefs.h. */
27440
27441#include <gtk/gtk.h>
27442#include <stdio.h>
27443
27444int
27445main ()
27446{
27447 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
27448 ;
27449 return 0;
27450}
27451_ACEOF
27452rm -f conftest.$ac_objext conftest$ac_exeext
27453if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 27454 (eval $ac_link) 2>conftest.er1
a848cd7e 27455 ac_status=$?
ac1cb8d3
VS
27456 grep -v '^ *+' conftest.er1 >conftest.err
27457 rm -f conftest.er1
27458 cat conftest.err >&5
a848cd7e
SC
27459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27460 (exit $ac_status); } &&
c9a66001 27461 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
27462 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27463 (eval $ac_try) 2>&5
27464 ac_status=$?
27465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27466 (exit $ac_status); }; } &&
27467 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
27468 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27469 (eval $ac_try) 2>&5
27470 ac_status=$?
27471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27472 (exit $ac_status); }; }; then
27473 echo "*** The test program compiled, but did not run. This usually means"
27474 echo "*** that the run-time linker is not finding GTK or finding the wrong"
27475 echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
27476 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
27477 echo "*** to the installed location Also, make sure you have run ldconfig if that"
27478 echo "*** is required on your system"
27479 echo "***"
27480 echo "*** If you have an old version installed, it is best to remove it, although"
27481 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
27482 echo "***"
27483 echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
27484 echo "*** came with the system with the command"
27485 echo "***"
27486 echo "*** rpm --erase --nodeps gtk gtk-devel"
27487else
27488 echo "$as_me: failed program was:" >&5
27489sed 's/^/| /' conftest.$ac_ext >&5
27490
27491 echo "*** The test program failed to compile or link. See the file config.log for the"
27492 echo "*** exact error that occured. This usually means GTK was incorrectly installed"
27493 echo "*** or that you have moved GTK since it was installed. In the latter case, you"
27494 echo "*** may want to edit the gtk-config script: $GTK_CONFIG"
27495fi
ac1cb8d3
VS
27496rm -f conftest.err conftest.$ac_objext \
27497 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
27498 CFLAGS="$ac_save_CFLAGS"
27499 LIBS="$ac_save_LIBS"
27500 fi
27501 fi
27502 GTK_CFLAGS=""
27503 GTK_LIBS=""
27504 :
27505 fi
27506
27507
27508 rm -f conf.gtktest
27509
27510
f34ca037 27511 if test -z "$wx_cv_lib_gtk"; then
a848cd7e
SC
27512
27513# Check whether --with-gtk-prefix or --without-gtk-prefix was given.
27514if test "${with_gtk_prefix+set}" = set; then
27515 withval="$with_gtk_prefix"
27516 gtk_config_prefix="$withval"
27517else
27518 gtk_config_prefix=""
27519fi;
27520
27521# Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
27522if test "${with_gtk_exec_prefix+set}" = set; then
27523 withval="$with_gtk_exec_prefix"
27524 gtk_config_exec_prefix="$withval"
27525else
27526 gtk_config_exec_prefix=""
27527fi;
27528# Check whether --enable-gtktest or --disable-gtktest was given.
27529if test "${enable_gtktest+set}" = set; then
27530 enableval="$enable_gtktest"
27531
27532else
27533 enable_gtktest=yes
27534fi;
27535
27536 for module in . $GTK_MODULES
27537 do
27538 case "$module" in
27539 gthread)
27540 gtk_config_args="$gtk_config_args gthread"
27541 ;;
27542 esac
27543 done
27544
27545 if test x$gtk_config_exec_prefix != x ; then
27546 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
27547 if test x${GTK_CONFIG+set} != xset ; then
27548 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
27549 fi
27550 fi
27551 if test x$gtk_config_prefix != x ; then
27552 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
27553 if test x${GTK_CONFIG+set} != xset ; then
27554 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
27555 fi
27556 fi
27557
27558 # Extract the first word of "gtk-config", so it can be a program name with args.
27559set dummy gtk-config; ac_word=$2
27560echo "$as_me:$LINENO: checking for $ac_word" >&5
27561echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
27562if test "${ac_cv_path_GTK_CONFIG+set}" = set; then
27563 echo $ECHO_N "(cached) $ECHO_C" >&6
27564else
27565 case $GTK_CONFIG in
27566 [\\/]* | ?:[\\/]*)
27567 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
27568 ;;
27569 *)
27570 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27571for as_dir in $PATH
27572do
27573 IFS=$as_save_IFS
27574 test -z "$as_dir" && as_dir=.
27575 for ac_exec_ext in '' $ac_executable_extensions; do
27576 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
27577 ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext"
27578 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
27579 break 2
27580 fi
27581done
27582done
27583
27584 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
27585 ;;
27586esac
27587fi
27588GTK_CONFIG=$ac_cv_path_GTK_CONFIG
27589
27590if test -n "$GTK_CONFIG"; then
27591 echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5
27592echo "${ECHO_T}$GTK_CONFIG" >&6
27593else
27594 echo "$as_me:$LINENO: result: no" >&5
27595echo "${ECHO_T}no" >&6
27596fi
27597
27598 min_gtk_version=1.2.3
27599 echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5
27600echo $ECHO_N "checking for GTK - version >= $min_gtk_version... $ECHO_C" >&6
27601 no_gtk=""
27602 if test "$GTK_CONFIG" = "no" ; then
27603 no_gtk=yes
27604 else
27605 GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
27606 GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
27607 gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
27608 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
27609 gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
27610 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
27611 gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
27612 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
27613 if test "x$enable_gtktest" = "xyes" ; then
27614 ac_save_CFLAGS="$CFLAGS"
27615 ac_save_LIBS="$LIBS"
27616 CFLAGS="$CFLAGS $GTK_CFLAGS"
27617 LIBS="$GTK_LIBS $LIBS"
27618 rm -f conf.gtktest
27619 if test "$cross_compiling" = yes; then
27620 echo $ac_n "cross compiling; assumed OK... $ac_c"
27621else
27622 cat >conftest.$ac_ext <<_ACEOF
27623/* confdefs.h. */
27624_ACEOF
27625cat confdefs.h >>conftest.$ac_ext
27626cat >>conftest.$ac_ext <<_ACEOF
27627/* end confdefs.h. */
27628
27629#include <gtk/gtk.h>
27630#include <stdio.h>
27631#include <stdlib.h>
27632
27633int
27634main ()
27635{
27636 int major, minor, micro;
27637 char *tmp_version;
27638
27639 system ("touch conf.gtktest");
27640
27641 /* HP/UX 9 (%@#!) writes to sscanf strings */
27642 tmp_version = g_strdup("$min_gtk_version");
27643 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
27644 printf("%s, bad version string\n", "$min_gtk_version");
27645 exit(1);
27646 }
27647
27648 if ((gtk_major_version != $gtk_config_major_version) ||
27649 (gtk_minor_version != $gtk_config_minor_version) ||
27650 (gtk_micro_version != $gtk_config_micro_version))
27651 {
27652 printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
27653 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
27654 gtk_major_version, gtk_minor_version, gtk_micro_version);
27655 printf ("*** was found! If gtk-config was correct, then it is best\n");
27656 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
27657 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
27658 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
27659 printf("*** required on your system.\n");
27660 printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
27661 printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
27662 printf("*** before re-running configure\n");
27663 }
27664#if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
27665 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
27666 (gtk_minor_version != GTK_MINOR_VERSION) ||
27667 (gtk_micro_version != GTK_MICRO_VERSION))
27668 {
27669 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
27670 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
27671 printf("*** library (version %d.%d.%d)\n",
27672 gtk_major_version, gtk_minor_version, gtk_micro_version);
27673 }
27674#endif /* defined (GTK_MAJOR_VERSION) ... */
27675 else
27676 {
27677 if ((gtk_major_version > major) ||
27678 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
27679 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
27680 {
27681 return 0;
27682 }
27683 else
27684 {
27685 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
27686 gtk_major_version, gtk_minor_version, gtk_micro_version);
27687 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
27688 major, minor, micro);
27689 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
27690 printf("***\n");
27691 printf("*** If you have already installed a sufficiently new version, this error\n");
27692 printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
27693 printf("*** being found. The easiest way to fix this is to remove the old version\n");
27694 printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
27695 printf("*** correct copy of gtk-config. (In this case, you will have to\n");
27696 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
27697 printf("*** so that the correct libraries are found at run-time))\n");
27698 }
27699 }
27700 return 1;
27701}
27702
27703_ACEOF
27704rm -f conftest$ac_exeext
27705if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27706 (eval $ac_link) 2>&5
27707 ac_status=$?
27708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27709 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27710 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27711 (eval $ac_try) 2>&5
27712 ac_status=$?
27713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27714 (exit $ac_status); }; }; then
27715 :
27716else
27717 echo "$as_me: program exited with status $ac_status" >&5
27718echo "$as_me: failed program was:" >&5
27719sed 's/^/| /' conftest.$ac_ext >&5
27720
27721( exit $ac_status )
27722no_gtk=yes
27723fi
ac1cb8d3 27724rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
27725fi
27726 CFLAGS="$ac_save_CFLAGS"
27727 LIBS="$ac_save_LIBS"
27728 fi
27729 fi
27730 if test "x$no_gtk" = x ; then
27731 echo "$as_me:$LINENO: result: yes" >&5
27732echo "${ECHO_T}yes" >&6
27733 wx_cv_lib_gtk=1.2.3
27734 else
27735 echo "$as_me:$LINENO: result: no" >&5
27736echo "${ECHO_T}no" >&6
27737 if test "$GTK_CONFIG" = "no" ; then
27738 echo "*** The gtk-config script installed by GTK could not be found"
27739 echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
27740 echo "*** your path, or set the GTK_CONFIG environment variable to the"
27741 echo "*** full path to gtk-config."
27742 else
27743 if test -f conf.gtktest ; then
27744 :
27745 else
27746 echo "*** Could not run GTK test program, checking why..."
27747 CFLAGS="$CFLAGS $GTK_CFLAGS"
27748 LIBS="$LIBS $GTK_LIBS"
27749 cat >conftest.$ac_ext <<_ACEOF
27750/* confdefs.h. */
27751_ACEOF
27752cat confdefs.h >>conftest.$ac_ext
27753cat >>conftest.$ac_ext <<_ACEOF
27754/* end confdefs.h. */
27755
27756#include <gtk/gtk.h>
27757#include <stdio.h>
27758
27759int
27760main ()
27761{
27762 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
27763 ;
27764 return 0;
27765}
27766_ACEOF
27767rm -f conftest.$ac_objext conftest$ac_exeext
27768if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 27769 (eval $ac_link) 2>conftest.er1
a848cd7e 27770 ac_status=$?
ac1cb8d3
VS
27771 grep -v '^ *+' conftest.er1 >conftest.err
27772 rm -f conftest.er1
27773 cat conftest.err >&5
a848cd7e
SC
27774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27775 (exit $ac_status); } &&
c9a66001 27776 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
27777 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27778 (eval $ac_try) 2>&5
27779 ac_status=$?
27780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27781 (exit $ac_status); }; } &&
27782 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
27783 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27784 (eval $ac_try) 2>&5
27785 ac_status=$?
27786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27787 (exit $ac_status); }; }; then
27788 echo "*** The test program compiled, but did not run. This usually means"
27789 echo "*** that the run-time linker is not finding GTK or finding the wrong"
27790 echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
27791 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
27792 echo "*** to the installed location Also, make sure you have run ldconfig if that"
27793 echo "*** is required on your system"
27794 echo "***"
27795 echo "*** If you have an old version installed, it is best to remove it, although"
27796 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
27797 echo "***"
27798 echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
27799 echo "*** came with the system with the command"
27800 echo "***"
27801 echo "*** rpm --erase --nodeps gtk gtk-devel"
27802else
27803 echo "$as_me: failed program was:" >&5
27804sed 's/^/| /' conftest.$ac_ext >&5
27805
27806 echo "*** The test program failed to compile or link. See the file config.log for the"
27807 echo "*** exact error that occured. This usually means GTK was incorrectly installed"
27808 echo "*** or that you have moved GTK since it was installed. In the latter case, you"
27809 echo "*** may want to edit the gtk-config script: $GTK_CONFIG"
27810fi
ac1cb8d3
VS
27811rm -f conftest.err conftest.$ac_objext \
27812 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
27813 CFLAGS="$ac_save_CFLAGS"
27814 LIBS="$ac_save_LIBS"
27815 fi
27816 fi
27817 GTK_CFLAGS=""
27818 GTK_LIBS=""
27819 :
27820 fi
27821
27822
27823 rm -f conf.gtktest
27824
f34ca037 27825 fi
a848cd7e
SC
27826 fi
27827 fi
27828
27829 if test -z "$wx_cv_lib_gtk"; then
27830 wx_cv_lib_gtk=none
27831 else
27832 wx_cv_cflags_gtk=$GTK_CFLAGS
d2822091 27833 wx_cv_libs_gtk=`echo $GTK_LIBS | sed -e 's/ -l[^ ]*cairo[^ ]*//g'`
a848cd7e
SC
27834 fi
27835
27836
27837fi
27838
27839
27840 if test "$gtk_version_cached" = 1; then
27841 echo "$as_me:$LINENO: result: $wx_cv_lib_gtk" >&5
27842echo "${ECHO_T}$wx_cv_lib_gtk" >&6
27843 fi
27844
27845 case "$wx_cv_lib_gtk" in
27846 2.0) WXGTK20=1
27847 TOOLKIT_VERSION=2
27848 ;;
27849 1.2.7) WXGTK127=1
27850 WXGTK12=1
27851 ;;
27852 1.2.3) WXGTK12=1
27853 ;;
27854 *) { { echo "$as_me:$LINENO: error:
f597b41c
MW
27855The development files for GTK+ were not found. For GTK+ 2, please
27856ensure that pkg-config is in the path and that gtk+-2.0.pc is
27857installed. For GTK+ 1.2 please check that gtk-config is in the path,
27858and that the version is 1.2.3 or above. Also check that the
27859libraries returned by 'pkg-config gtk+-2.0 --libs' or 'gtk-config
27860--libs' are in the LD_LIBRARY_PATH or equivalent.
a848cd7e
SC
27861 " >&5
27862echo "$as_me: error:
f597b41c
MW
27863The development files for GTK+ were not found. For GTK+ 2, please
27864ensure that pkg-config is in the path and that gtk+-2.0.pc is
27865installed. For GTK+ 1.2 please check that gtk-config is in the path,
27866and that the version is 1.2.3 or above. Also check that the
27867libraries returned by 'pkg-config gtk+-2.0 --libs' or 'gtk-config
27868--libs' are in the LD_LIBRARY_PATH or equivalent.
a848cd7e
SC
27869 " >&2;}
27870 { (exit 1); exit 1; }; }
27871 ;;
27872 esac
27873
27874 if test "$WXGTK20" = 1; then
6954625c 27875 save_CFLAGS="$CFLAGS"
304205f1 27876 save_LIBS="$LIBS"
6954625c 27877 CFLAGS="$wx_cv_cflags_gtk $CFLAGS"
abc736fd 27878 LIBS="$LIBS $wx_cv_libs_gtk"
304205f1 27879
d12aef51
VZ
27880 echo "$as_me:$LINENO: checking if gtk_icon_size_lookup is missing" >&5
27881echo $ECHO_N "checking if gtk_icon_size_lookup is missing... $ECHO_C" >&6
27882 cat >conftest.$ac_ext <<_ACEOF
304205f1
VS
27883/* confdefs.h. */
27884_ACEOF
27885cat confdefs.h >>conftest.$ac_ext
27886cat >>conftest.$ac_ext <<_ACEOF
27887/* end confdefs.h. */
304205f1 27888
d12aef51 27889 #include <gtk/gtk.h>
304205f1 27890
d12aef51
VZ
27891int
27892main ()
27893{
304205f1 27894
d12aef51 27895 void *f = gtk_icon_size_lookup;
abc736fd
MW
27896
27897 ;
27898 return 0;
27899}
27900_ACEOF
27901rm -f conftest.$ac_objext
27902if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27903 (eval $ac_compile) 2>conftest.er1
27904 ac_status=$?
27905 grep -v '^ *+' conftest.er1 >conftest.err
27906 rm -f conftest.er1
27907 cat conftest.err >&5
27908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27909 (exit $ac_status); } &&
c9a66001 27910 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
abc736fd
MW
27911 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27912 (eval $ac_try) 2>&5
27913 ac_status=$?
27914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27915 (exit $ac_status); }; } &&
27916 { ac_try='test -s conftest.$ac_objext'
27917 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27918 (eval $ac_try) 2>&5
27919 ac_status=$?
27920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27921 (exit $ac_status); }; }; then
27922
27923 echo "$as_me:$LINENO: result: no" >&5
27924echo "${ECHO_T}no" >&6
27925
27926else
27927 echo "$as_me: failed program was:" >&5
27928sed 's/^/| /' conftest.$ac_ext >&5
27929
27930
27931 cat >>confdefs.h <<\_ACEOF
27932#define NEED_GTK_ICON_SIZE_LOOKUP 1
27933_ACEOF
27934
27935 echo "$as_me:$LINENO: result: yes" >&5
27936echo "${ECHO_T}yes" >&6
27937
27938fi
27939rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27940
e9263684
VZ
27941 echo "$as_me:$LINENO: checking if GTK+ is version >= 2.6" >&5
27942echo $ECHO_N "checking if GTK+ is version >= 2.6... $ECHO_C" >&6
27943 cat >conftest.$ac_ext <<_ACEOF
27944/* confdefs.h. */
27945_ACEOF
27946cat confdefs.h >>conftest.$ac_ext
27947cat >>conftest.$ac_ext <<_ACEOF
27948/* end confdefs.h. */
27949
27950 #include <gtk/gtk.h>
27951
27952int
27953main ()
27954{
27955
27956 #if !GTK_CHECK_VERSION(2,6,0)
27957 Not GTK+ 2.6
27958 #endif
27959
27960 ;
27961 return 0;
27962}
27963_ACEOF
27964rm -f conftest.$ac_objext
27965if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27966 (eval $ac_compile) 2>conftest.er1
27967 ac_status=$?
27968 grep -v '^ *+' conftest.er1 >conftest.err
27969 rm -f conftest.er1
27970 cat conftest.err >&5
27971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27972 (exit $ac_status); } &&
c9a66001 27973 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
e9263684
VZ
27974 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27975 (eval $ac_try) 2>&5
27976 ac_status=$?
27977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27978 (exit $ac_status); }; } &&
27979 { ac_try='test -s conftest.$ac_objext'
27980 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27981 (eval $ac_try) 2>&5
27982 ac_status=$?
27983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27984 (exit $ac_status); }; }; then
27985
27986 cat >>confdefs.h <<\_ACEOF
27987#define __WXGTK26__ 1
27988_ACEOF
27989
27990 cat >>confdefs.h <<\_ACEOF
27991#define __WXGTK24__ 1
27992_ACEOF
27993
27994 echo "$as_me:$LINENO: result: yes" >&5
27995echo "${ECHO_T}yes" >&6
27996 ac_wxgtk26=1
27997
27998else
27999 echo "$as_me: failed program was:" >&5
28000sed 's/^/| /' conftest.$ac_ext >&5
28001
28002
28003 echo "$as_me:$LINENO: result: no" >&5
28004echo "${ECHO_T}no" >&6
28005 ac_wxgtk26=0
28006
28007fi
28008rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28009
28010 if test "$ac_wxgtk26" = 0; then
9755e73b
VS
28011 echo "$as_me:$LINENO: checking if GTK+ is version >= 2.4" >&5
28012echo $ECHO_N "checking if GTK+ is version >= 2.4... $ECHO_C" >&6
28013 cat >conftest.$ac_ext <<_ACEOF
28014/* confdefs.h. */
28015_ACEOF
28016cat confdefs.h >>conftest.$ac_ext
28017cat >>conftest.$ac_ext <<_ACEOF
28018/* end confdefs.h. */
28019
28020 #include <gtk/gtk.h>
28021
28022int
28023main ()
28024{
28025
28026 #if !GTK_CHECK_VERSION(2,4,0)
04e525a0 28027 Not GTK+ 2.4
9755e73b
VS
28028 #endif
28029
28030 ;
28031 return 0;
28032}
28033_ACEOF
28034rm -f conftest.$ac_objext
28035if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28036 (eval $ac_compile) 2>conftest.er1
28037 ac_status=$?
28038 grep -v '^ *+' conftest.er1 >conftest.err
28039 rm -f conftest.er1
28040 cat conftest.err >&5
28041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28042 (exit $ac_status); } &&
c9a66001 28043 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9755e73b
VS
28044 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28045 (eval $ac_try) 2>&5
28046 ac_status=$?
28047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28048 (exit $ac_status); }; } &&
28049 { ac_try='test -s conftest.$ac_objext'
28050 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28051 (eval $ac_try) 2>&5
28052 ac_status=$?
28053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28054 (exit $ac_status); }; }; then
28055
28056 cat >>confdefs.h <<\_ACEOF
28057#define __WXGTK24__ 1
28058_ACEOF
28059
28060 echo "$as_me:$LINENO: result: yes" >&5
28061echo "${ECHO_T}yes" >&6
28062
28063else
28064 echo "$as_me: failed program was:" >&5
28065sed 's/^/| /' conftest.$ac_ext >&5
28066
28067
28068 echo "$as_me:$LINENO: result: no" >&5
28069echo "${ECHO_T}no" >&6
28070
28071fi
28072rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e9263684 28073 fi
9755e73b 28074
6954625c 28075 CFLAGS="$save_CFLAGS"
304205f1 28076 LIBS="$save_LIBS"
a848cd7e
SC
28077 else
28078 if test "$wxUSE_UNICODE" = "yes"; then
28079 { echo "$as_me:$LINENO: WARNING: Unicode configuration not supported with GTK+ 1.x" >&5
28080echo "$as_me: WARNING: Unicode configuration not supported with GTK+ 1.x" >&2;}
28081 wxUSE_UNICODE=no
28082 fi
28083 fi
28084
e56f4f9e
VZ
28085 ac_ext=cc
28086ac_cpp='$CXXCPP $CPPFLAGS'
28087ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28088ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28089ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28090
28091
a848cd7e
SC
28092 if test "$USE_DARWIN" != 1; then
28093
28094for ac_func in poll
28095do
28096as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28097echo "$as_me:$LINENO: checking for $ac_func" >&5
28098echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
28099if eval "test \"\${$as_ac_var+set}\" = set"; then
28100 echo $ECHO_N "(cached) $ECHO_C" >&6
28101else
28102 cat >conftest.$ac_ext <<_ACEOF
28103/* confdefs.h. */
28104_ACEOF
28105cat confdefs.h >>conftest.$ac_ext
28106cat >>conftest.$ac_ext <<_ACEOF
28107/* end confdefs.h. */
ac1cb8d3
VS
28108/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28109 For example, HP-UX 11i <limits.h> declares gettimeofday. */
28110#define $ac_func innocuous_$ac_func
28111
a848cd7e
SC
28112/* System header to define __stub macros and hopefully few prototypes,
28113 which can conflict with char $ac_func (); below.
28114 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28115 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 28116
a848cd7e
SC
28117#ifdef __STDC__
28118# include <limits.h>
28119#else
28120# include <assert.h>
28121#endif
ac1cb8d3
VS
28122
28123#undef $ac_func
28124
a848cd7e
SC
28125/* Override any gcc2 internal prototype to avoid an error. */
28126#ifdef __cplusplus
28127extern "C"
28128{
28129#endif
28130/* We use char because int might match the return type of a gcc2
28131 builtin and then its argument prototype would still apply. */
28132char $ac_func ();
28133/* The GNU C library defines this for functions which it implements
28134 to always fail with ENOSYS. Some functions are actually named
28135 something starting with __ and the normal name is an alias. */
28136#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
28137choke me
28138#else
28139char (*f) () = $ac_func;
28140#endif
28141#ifdef __cplusplus
28142}
28143#endif
28144
28145int
28146main ()
28147{
28148return f != $ac_func;
28149 ;
28150 return 0;
28151}
28152_ACEOF
28153rm -f conftest.$ac_objext conftest$ac_exeext
28154if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 28155 (eval $ac_link) 2>conftest.er1
a848cd7e 28156 ac_status=$?
ac1cb8d3
VS
28157 grep -v '^ *+' conftest.er1 >conftest.err
28158 rm -f conftest.er1
28159 cat conftest.err >&5
a848cd7e
SC
28160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28161 (exit $ac_status); } &&
c9a66001 28162 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
28163 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28164 (eval $ac_try) 2>&5
28165 ac_status=$?
28166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28167 (exit $ac_status); }; } &&
28168 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
28169 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28170 (eval $ac_try) 2>&5
28171 ac_status=$?
28172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28173 (exit $ac_status); }; }; then
28174 eval "$as_ac_var=yes"
28175else
28176 echo "$as_me: failed program was:" >&5
28177sed 's/^/| /' conftest.$ac_ext >&5
28178
28179eval "$as_ac_var=no"
28180fi
ac1cb8d3
VS
28181rm -f conftest.err conftest.$ac_objext \
28182 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
28183fi
28184echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28185echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28186if test `eval echo '${'$as_ac_var'}'` = yes; then
28187 cat >>confdefs.h <<_ACEOF
28188#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28189_ACEOF
28190
28191fi
28192done
28193
28194 fi
28195
28196 TOOLKIT_INCLUDE="$wx_cv_cflags_gtk"
28197 GUI_TK_LIBRARY="$wx_cv_libs_gtk $GUI_TK_LIBRARY"
28198
28199 AFMINSTALL=afminstall
28200 TOOLKIT=GTK
28201 GUIDIST=GTK_DIST
28202
28203 echo "$as_me:$LINENO: checking for gdk_im_open in -lgdk" >&5
28204echo $ECHO_N "checking for gdk_im_open in -lgdk... $ECHO_C" >&6
28205if test "${ac_cv_lib_gdk_gdk_im_open+set}" = set; then
28206 echo $ECHO_N "(cached) $ECHO_C" >&6
28207else
28208 ac_check_lib_save_LIBS=$LIBS
28209LIBS="-lgdk $LIBS"
28210cat >conftest.$ac_ext <<_ACEOF
28211/* confdefs.h. */
28212_ACEOF
28213cat confdefs.h >>conftest.$ac_ext
28214cat >>conftest.$ac_ext <<_ACEOF
28215/* end confdefs.h. */
28216
28217/* Override any gcc2 internal prototype to avoid an error. */
28218#ifdef __cplusplus
28219extern "C"
28220#endif
28221/* We use char because int might match the return type of a gcc2
28222 builtin and then its argument prototype would still apply. */
28223char gdk_im_open ();
28224int
28225main ()
28226{
28227gdk_im_open ();
28228 ;
28229 return 0;
28230}
28231_ACEOF
28232rm -f conftest.$ac_objext conftest$ac_exeext
28233if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 28234 (eval $ac_link) 2>conftest.er1
a848cd7e 28235 ac_status=$?
ac1cb8d3
VS
28236 grep -v '^ *+' conftest.er1 >conftest.err
28237 rm -f conftest.er1
28238 cat conftest.err >&5
a848cd7e
SC
28239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28240 (exit $ac_status); } &&
c9a66001 28241 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
28242 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28243 (eval $ac_try) 2>&5
28244 ac_status=$?
28245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28246 (exit $ac_status); }; } &&
28247 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
28248 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28249 (eval $ac_try) 2>&5
28250 ac_status=$?
28251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28252 (exit $ac_status); }; }; then
28253 ac_cv_lib_gdk_gdk_im_open=yes
28254else
28255 echo "$as_me: failed program was:" >&5
28256sed 's/^/| /' conftest.$ac_ext >&5
28257
28258ac_cv_lib_gdk_gdk_im_open=no
28259fi
ac1cb8d3
VS
28260rm -f conftest.err conftest.$ac_objext \
28261 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
28262LIBS=$ac_check_lib_save_LIBS
28263fi
28264echo "$as_me:$LINENO: result: $ac_cv_lib_gdk_gdk_im_open" >&5
28265echo "${ECHO_T}$ac_cv_lib_gdk_gdk_im_open" >&6
28266if test $ac_cv_lib_gdk_gdk_im_open = yes; then
28267 cat >>confdefs.h <<\_ACEOF
28268#define HAVE_XIM 1
28269_ACEOF
28270
28271fi
28272
28273
28274
28275 if test "$wxUSE_GPE" = "yes"; then
28276 echo "$as_me:$LINENO: checking for gpewidget library" >&5
28277echo $ECHO_N "checking for gpewidget library... $ECHO_C" >&6
28278
0ad5d837
VZ
28279 ac_find_libraries=
28280 for ac_dir in $SEARCH_LIB;
a848cd7e 28281 do
3eca31dc 28282 for ac_extension in a so sl dylib dll.a; do
a848cd7e
SC
28283 if test -f "$ac_dir/libgpewidget.$ac_extension"; then
28284 ac_find_libraries=$ac_dir
28285 break 2
28286 fi
28287 done
28288 done
28289
28290 if test "$ac_find_libraries" != "" ; then
28291
0ad5d837 28292 if test "$ac_find_libraries" = "default location"; then
a848cd7e
SC
28293 ac_path_to_link=""
28294 else
0ad5d837
VZ
28295 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
28296 result=$?
28297 if test $result = 0; then
28298 ac_path_to_link=""
28299 else
28300 ac_path_to_link=" -L$ac_find_libraries"
28301 fi
a848cd7e
SC
28302 fi
28303
28304 GUI_TK_LIBRARY="-L${prefix}/lib -lgpewidget $GUI_TK_LIBRARY"
28305 WXGPE=1
0ad5d837
VZ
28306 echo "$as_me:$LINENO: result: found in $ac_find_libraries" >&5
28307echo "${ECHO_T}found in $ac_find_libraries" >&6
a848cd7e
SC
28308 else
28309 echo "$as_me:$LINENO: result: not found" >&5
28310echo "${ECHO_T}not found" >&6
28311 fi
28312
28313 fi
28314 fi
28315
28316 if test "$wxUSE_MGL" = 1; then
28317 echo "$as_me:$LINENO: checking for SciTech MGL library" >&5
28318echo $ECHO_N "checking for SciTech MGL library... $ECHO_C" >&6
28319 if test "x$MGL_ROOT" = x ; then
28320 echo "$as_me:$LINENO: result: not found" >&5
28321echo "${ECHO_T}not found" >&6
28322 { { echo "$as_me:$LINENO: error: Cannot find MGL library. Make sure MGL_ROOT is set." >&5
28323echo "$as_me: error: Cannot find MGL library. Make sure MGL_ROOT is set." >&2;}
28324 { (exit 1); exit 1; }; }
28325 else
28326 echo "$as_me:$LINENO: result: $MGL_ROOT" >&5
28327echo "${ECHO_T}$MGL_ROOT" >&6
28328 fi
28329
28330 echo "$as_me:$LINENO: checking for libmgl location" >&5
28331echo $ECHO_N "checking for libmgl location... $ECHO_C" >&6
28332 case "${host}" in
28333 *-*-linux* )
28334 if test "x$wxUSE_SHARED" = xyes ; then
28335 mgl_os_candidates="linux/gcc/x86/so linux/gcc/x86/a linux/gcc/glibc.so linux/gcc/glibc"
28336 else
28337 mgl_os_candidates="linux/gcc/x86/a linux/gcc/x86/so linux/gcc/glibc linux/gcc/glibc.so"
28338 fi
28339 ;;
28340 *-pc-msdosdjgpp )
28341 mgl_os_candidates="dos32/dj2"
28342 ;;
28343 *)
28344 { { echo "$as_me:$LINENO: error: This system type ${host} is not yet supported by wxMGL." >&5
28345echo "$as_me: error: This system type ${host} is not yet supported by wxMGL." >&2;}
28346 { (exit 1); exit 1; }; }
28347 esac
28348
28349 mgl_lib_type=""
28350 mgl_os=""
28351
28352 for mgl_os_i in $mgl_os_candidates ; do
28353 if test "x$mgl_os" = x ; then
28354 if test "$wxUSE_DEBUG_FLAG" = yes ; then
28355 if test -f $MGL_ROOT/lib/debug/$mgl_os_i/libmgl.a -o \
28356 -f $MGL_ROOT/lib/debug/$mgl_os_i/libmgl.so; then
28357 mgl_lib_type=debug
28358 mgl_os=$mgl_os_i
28359 fi
28360 fi
28361 if test "x$mgl_lib_type" = x ; then
28362 if test -f $MGL_ROOT/lib/release/$mgl_os_i/libmgl.a -o \
28363 -f $MGL_ROOT/lib/release/$mgl_os_i/libmgl.so; then
28364 mgl_lib_type=release
28365 mgl_os=$mgl_os_i
28366 fi
28367 fi
28368 fi
28369 done
28370
28371 if test "x$mgl_os" = x ; then
28372 echo "$as_me:$LINENO: result: not found" >&5
28373echo "${ECHO_T}not found" >&6
28374 { { echo "$as_me:$LINENO: error: Cannot find MGL libraries, make sure they are compiled." >&5
28375echo "$as_me: error: Cannot find MGL libraries, make sure they are compiled." >&2;}
28376 { (exit 1); exit 1; }; }
28377 fi
28378 echo "$as_me:$LINENO: result: \"$MGL_ROOT/lib/$mgl_lib_type/$mgl_os\"" >&5
28379echo "${ECHO_T}\"$MGL_ROOT/lib/$mgl_lib_type/$mgl_os\"" >&6
28380
28381 wxUSE_UNIVERSAL="yes"
28382
28383 TOOLKIT_INCLUDE="-I$MGL_ROOT/include"
28384 GUI_TK_LIBRARY="-L$MGL_ROOT/lib/$mgl_lib_type/$mgl_os -lmgl -lmglcpp -lpm"
28385
28386 AFMINSTALL=afminstall
28387 TOOLKIT=MGL
28388 GUIDIST=MGL_DIST
28389 fi
28390
28391 if test "$wxUSE_MICROWIN" = 1; then
28392 echo "$as_me:$LINENO: checking for MicroWindows" >&5
28393echo $ECHO_N "checking for MicroWindows... $ECHO_C" >&6
28394 if test "x$MICROWINDOWS" = x ; then
28395 echo "$as_me:$LINENO: result: not found" >&5
28396echo "${ECHO_T}not found" >&6
28397 { { echo "$as_me:$LINENO: error: Cannot find MicroWindows library. Make sure MICROWINDOWS is set." >&5
28398echo "$as_me: error: Cannot find MicroWindows library. Make sure MICROWINDOWS is set." >&2;}
28399 { (exit 1); exit 1; }; }
28400 else
28401 echo "$as_me:$LINENO: result: $MICROWINDOWS" >&5
28402echo "${ECHO_T}$MICROWINDOWS" >&6
28403 fi
28404
28405 if test -f $MICROWINDOWS/lib/libmwin.a; then
28406 echo "$as_me:$LINENO: result: MicroWindows' libraries found." >&5
28407echo "${ECHO_T}MicroWindows' libraries found." >&6
28408 else
28409 { { echo "$as_me:$LINENO: error: Cannot find MicroWindows libraries, make sure they are compiled." >&5
28410echo "$as_me: error: Cannot find MicroWindows libraries, make sure they are compiled." >&2;}
28411 { (exit 1); exit 1; }; }
28412 fi
28413
28414 TOOLKIT_INCLUDE="-I$MICROWINDOWS/include"
28415 GUI_TK_LIBRARY="-L$MICROWINDOWS/lib -lmwin -lmwengine -mwfonts -mwdrivers -mwinlib"
28416
28417 wxUSE_UNIVERSAL="yes"
28418
28419 AFMINSTALL=afminstall
28420 TOOLKIT=MICROWIN
28421 GUIDIST=MICROWIN_DIST
28422
28423 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXMSW__ -D__WIN95__ -D__WIN32__ -DMWIN -DMICROWIN_NOCONTROLS -DMICROWIN_TODO=1"
28424 fi
28425
74b84332 28426 if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then
c9a66001
VZ
28427
28428if test "x$ac_path_x_has_been_run" != xyes; then
28429 echo "$as_me:$LINENO: checking for X" >&5
a848cd7e
SC
28430echo $ECHO_N "checking for X... $ECHO_C" >&6
28431
c9a66001 28432ac_path_x_has_been_run=yes
a848cd7e
SC
28433
28434# Check whether --with-x or --without-x was given.
28435if test "${with_x+set}" = set; then
28436 withval="$with_x"
28437
28438fi;
28439# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
28440if test "x$with_x" = xno; then
28441 # The user explicitly disabled X.
28442 have_x=disabled
28443else
28444 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
28445 # Both variables are already set.
28446 have_x=yes
28447 else
28448 if test "${ac_cv_have_x+set}" = set; then
28449 echo $ECHO_N "(cached) $ECHO_C" >&6
28450else
28451 # One or both of the vars are not set, and there is no cached value.
28452ac_x_includes=no ac_x_libraries=no
28453rm -fr conftest.dir
28454if mkdir conftest.dir; then
28455 cd conftest.dir
28456 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
28457 cat >Imakefile <<'_ACEOF'
28458acfindx:
28459 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
28460_ACEOF
28461 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
28462 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
28463 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
28464 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
28465 for ac_extension in a so sl; do
28466 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
ac1cb8d3
VS
28467 test -f $ac_im_libdir/libX11.$ac_extension; then
28468 ac_im_usrlibdir=$ac_im_libdir; break
a848cd7e
SC
28469 fi
28470 done
28471 # Screen out bogus values from the imake configuration. They are
28472 # bogus both because they are the default anyway, and because
28473 # using them would break gcc on systems where it needs fixed includes.
28474 case $ac_im_incroot in
28475 /usr/include) ;;
28476 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
28477 esac
28478 case $ac_im_usrlibdir in
28479 /usr/lib | /lib) ;;
28480 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
28481 esac
28482 fi
28483 cd ..
28484 rm -fr conftest.dir
28485fi
28486
28487# Standard set of common directories for X headers.
28488# Check X11 before X11Rn because it is often a symlink to the current release.
28489ac_x_header_dirs='
28490/usr/X11/include
28491/usr/X11R6/include
28492/usr/X11R5/include
28493/usr/X11R4/include
28494
28495/usr/include/X11
28496/usr/include/X11R6
28497/usr/include/X11R5
28498/usr/include/X11R4
28499
28500/usr/local/X11/include
28501/usr/local/X11R6/include
28502/usr/local/X11R5/include
28503/usr/local/X11R4/include
28504
28505/usr/local/include/X11
28506/usr/local/include/X11R6
28507/usr/local/include/X11R5
28508/usr/local/include/X11R4
28509
28510/usr/X386/include
28511/usr/x386/include
28512/usr/XFree86/include/X11
28513
28514/usr/include
28515/usr/local/include
28516/usr/unsupported/include
28517/usr/athena/include
28518/usr/local/x11r5/include
28519/usr/lpp/Xamples/include
28520
28521/usr/openwin/include
28522/usr/openwin/share/include'
28523
28524if test "$ac_x_includes" = no; then
c9a66001 28525 # Guess where to find include files, by looking for a specified header file.
a848cd7e
SC
28526 # First, try using that file with no special directory specified.
28527 cat >conftest.$ac_ext <<_ACEOF
28528/* confdefs.h. */
28529_ACEOF
28530cat confdefs.h >>conftest.$ac_ext
28531cat >>conftest.$ac_ext <<_ACEOF
28532/* end confdefs.h. */
c9a66001 28533#include <X11/Xlib.h>
a848cd7e
SC
28534_ACEOF
28535if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
28536 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
28537 ac_status=$?
28538 grep -v '^ *+' conftest.er1 >conftest.err
28539 rm -f conftest.er1
28540 cat conftest.err >&5
28541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28542 (exit $ac_status); } >/dev/null; then
28543 if test -s conftest.err; then
5d7b7554
VZ
28544 ac_cpp_err=$ac_cxx_preproc_warn_flag
28545 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
28546 else
28547 ac_cpp_err=
28548 fi
28549else
28550 ac_cpp_err=yes
28551fi
28552if test -z "$ac_cpp_err"; then
28553 # We can compile using X headers with no special include directory.
28554ac_x_includes=
28555else
28556 echo "$as_me: failed program was:" >&5
28557sed 's/^/| /' conftest.$ac_ext >&5
28558
28559 for ac_dir in $ac_x_header_dirs; do
c9a66001 28560 if test -r "$ac_dir/X11/Xlib.h"; then
a848cd7e
SC
28561 ac_x_includes=$ac_dir
28562 break
28563 fi
28564done
28565fi
28566rm -f conftest.err conftest.$ac_ext
28567fi # $ac_x_includes = no
28568
28569if test "$ac_x_libraries" = no; then
28570 # Check for the libraries.
28571 # See if we find them without any special options.
28572 # Don't add to $LIBS permanently.
28573 ac_save_LIBS=$LIBS
c9a66001 28574 LIBS="-lX11 $LIBS"
a848cd7e
SC
28575 cat >conftest.$ac_ext <<_ACEOF
28576/* confdefs.h. */
28577_ACEOF
28578cat confdefs.h >>conftest.$ac_ext
28579cat >>conftest.$ac_ext <<_ACEOF
28580/* end confdefs.h. */
c9a66001 28581#include <X11/Xlib.h>
a848cd7e
SC
28582int
28583main ()
28584{
c9a66001 28585XrmInitialize ()
a848cd7e
SC
28586 ;
28587 return 0;
28588}
28589_ACEOF
28590rm -f conftest.$ac_objext conftest$ac_exeext
28591if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 28592 (eval $ac_link) 2>conftest.er1
a848cd7e 28593 ac_status=$?
ac1cb8d3
VS
28594 grep -v '^ *+' conftest.er1 >conftest.err
28595 rm -f conftest.er1
28596 cat conftest.err >&5
a848cd7e
SC
28597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28598 (exit $ac_status); } &&
c9a66001 28599 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
28600 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28601 (eval $ac_try) 2>&5
28602 ac_status=$?
28603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28604 (exit $ac_status); }; } &&
28605 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
28606 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28607 (eval $ac_try) 2>&5
28608 ac_status=$?
28609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28610 (exit $ac_status); }; }; then
28611 LIBS=$ac_save_LIBS
28612# We can link X programs with no special library path.
28613ac_x_libraries=
28614else
28615 echo "$as_me: failed program was:" >&5
28616sed 's/^/| /' conftest.$ac_ext >&5
28617
28618LIBS=$ac_save_LIBS
28619for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
28620do
28621 # Don't even attempt the hair of trying to link an X program!
28622 for ac_extension in a so sl; do
c9a66001 28623 if test -r $ac_dir/libX11.$ac_extension; then
a848cd7e
SC
28624 ac_x_libraries=$ac_dir
28625 break 2
28626 fi
28627 done
28628done
28629fi
ac1cb8d3
VS
28630rm -f conftest.err conftest.$ac_objext \
28631 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
28632fi # $ac_x_libraries = no
28633
28634if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
28635 # Didn't find X anywhere. Cache the known absence of X.
28636 ac_cv_have_x="have_x=no"
28637else
28638 # Record where we found X for the cache.
28639 ac_cv_have_x="have_x=yes \
ac1cb8d3 28640 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
a848cd7e
SC
28641fi
28642fi
28643
28644 fi
28645 eval "$ac_cv_have_x"
28646fi # $with_x != no
28647
28648if test "$have_x" != yes; then
28649 echo "$as_me:$LINENO: result: $have_x" >&5
28650echo "${ECHO_T}$have_x" >&6
28651 no_x=yes
28652else
28653 # If each of the values was on the command line, it overrides each guess.
28654 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
28655 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
28656 # Update the cache value to reflect the command line values.
28657 ac_cv_have_x="have_x=yes \
28658 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
c9a66001
VZ
28659 # It might be that x_includes is empty (headers are found in the
28660 # standard search path. Then output the corresponding message
28661 ac_out_x_includes=$x_includes
28662 test "x$x_includes" = x && ac_out_x_includes="in standard search path"
28663 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $ac_out_x_includes" >&5
28664echo "${ECHO_T}libraries $x_libraries, headers $ac_out_x_includes" >&6
a848cd7e
SC
28665fi
28666
c9a66001 28667fi
a848cd7e
SC
28668if test "$no_x" = yes; then
28669 # Not all programs may use this symbol, but it does not hurt to define it.
28670
28671cat >>confdefs.h <<\_ACEOF
28672#define X_DISPLAY_MISSING 1
28673_ACEOF
28674
28675 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
28676else
28677 if test -n "$x_includes"; then
28678 X_CFLAGS="$X_CFLAGS -I$x_includes"
28679 fi
28680
28681 # It would also be nice to do this for all -L options, not just this one.
28682 if test -n "$x_libraries"; then
28683 X_LIBS="$X_LIBS -L$x_libraries"
28684 # For Solaris; some versions of Sun CC require a space after -R and
28685 # others require no space. Words are not sufficient . . . .
28686 case `(uname -sr) 2>/dev/null` in
28687 "SunOS 5"*)
28688 echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
28689echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
28690 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
28691 cat >conftest.$ac_ext <<_ACEOF
28692/* confdefs.h. */
28693_ACEOF
28694cat confdefs.h >>conftest.$ac_ext
28695cat >>conftest.$ac_ext <<_ACEOF
28696/* end confdefs.h. */
28697
28698int
28699main ()
28700{
28701
28702 ;
28703 return 0;
28704}
28705_ACEOF
28706rm -f conftest.$ac_objext conftest$ac_exeext
28707if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 28708 (eval $ac_link) 2>conftest.er1
a848cd7e 28709 ac_status=$?
ac1cb8d3
VS
28710 grep -v '^ *+' conftest.er1 >conftest.err
28711 rm -f conftest.er1
28712 cat conftest.err >&5
a848cd7e
SC
28713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28714 (exit $ac_status); } &&
c9a66001 28715 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
28716 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28717 (eval $ac_try) 2>&5
28718 ac_status=$?
28719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28720 (exit $ac_status); }; } &&
28721 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
28722 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28723 (eval $ac_try) 2>&5
28724 ac_status=$?
28725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28726 (exit $ac_status); }; }; then
28727 ac_R_nospace=yes
28728else
28729 echo "$as_me: failed program was:" >&5
28730sed 's/^/| /' conftest.$ac_ext >&5
28731
28732ac_R_nospace=no
28733fi
ac1cb8d3
VS
28734rm -f conftest.err conftest.$ac_objext \
28735 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
28736 if test $ac_R_nospace = yes; then
28737 echo "$as_me:$LINENO: result: no" >&5
28738echo "${ECHO_T}no" >&6
28739 X_LIBS="$X_LIBS -R$x_libraries"
28740 else
28741 LIBS="$ac_xsave_LIBS -R $x_libraries"
28742 cat >conftest.$ac_ext <<_ACEOF
28743/* confdefs.h. */
28744_ACEOF
28745cat confdefs.h >>conftest.$ac_ext
28746cat >>conftest.$ac_ext <<_ACEOF
28747/* end confdefs.h. */
28748
28749int
28750main ()
28751{
28752
28753 ;
28754 return 0;
28755}
28756_ACEOF
28757rm -f conftest.$ac_objext conftest$ac_exeext
28758if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 28759 (eval $ac_link) 2>conftest.er1
a848cd7e 28760 ac_status=$?
ac1cb8d3
VS
28761 grep -v '^ *+' conftest.er1 >conftest.err
28762 rm -f conftest.er1
28763 cat conftest.err >&5
a848cd7e
SC
28764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28765 (exit $ac_status); } &&
c9a66001 28766 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
28767 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28768 (eval $ac_try) 2>&5
28769 ac_status=$?
28770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28771 (exit $ac_status); }; } &&
28772 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
28773 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28774 (eval $ac_try) 2>&5
28775 ac_status=$?
28776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28777 (exit $ac_status); }; }; then
28778 ac_R_space=yes
28779else
28780 echo "$as_me: failed program was:" >&5
28781sed 's/^/| /' conftest.$ac_ext >&5
28782
28783ac_R_space=no
28784fi
ac1cb8d3
VS
28785rm -f conftest.err conftest.$ac_objext \
28786 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
28787 if test $ac_R_space = yes; then
28788 echo "$as_me:$LINENO: result: yes" >&5
28789echo "${ECHO_T}yes" >&6
28790 X_LIBS="$X_LIBS -R $x_libraries"
28791 else
28792 echo "$as_me:$LINENO: result: neither works" >&5
28793echo "${ECHO_T}neither works" >&6
28794 fi
28795 fi
28796 LIBS=$ac_xsave_LIBS
28797 esac
28798 fi
28799
28800 # Check for system-dependent libraries X programs must link with.
28801 # Do this before checking for the system-independent R6 libraries
28802 # (-lICE), since we may need -lsocket or whatever for X linking.
28803
28804 if test "$ISC" = yes; then
28805 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
28806 else
28807 # Martyn Johnson says this is needed for Ultrix, if the X
28808 # libraries were built with DECnet support. And Karl Berry says
28809 # the Alpha needs dnet_stub (dnet does not exist).
28810 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
28811 cat >conftest.$ac_ext <<_ACEOF
28812/* confdefs.h. */
28813_ACEOF
28814cat confdefs.h >>conftest.$ac_ext
28815cat >>conftest.$ac_ext <<_ACEOF
28816/* end confdefs.h. */
28817
28818/* Override any gcc2 internal prototype to avoid an error. */
28819#ifdef __cplusplus
28820extern "C"
28821#endif
28822/* We use char because int might match the return type of a gcc2
28823 builtin and then its argument prototype would still apply. */
28824char XOpenDisplay ();
28825int
28826main ()
28827{
28828XOpenDisplay ();
28829 ;
28830 return 0;
28831}
28832_ACEOF
28833rm -f conftest.$ac_objext conftest$ac_exeext
28834if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 28835 (eval $ac_link) 2>conftest.er1
a848cd7e 28836 ac_status=$?
ac1cb8d3
VS
28837 grep -v '^ *+' conftest.er1 >conftest.err
28838 rm -f conftest.er1
28839 cat conftest.err >&5
a848cd7e
SC
28840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28841 (exit $ac_status); } &&
c9a66001 28842 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
28843 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28844 (eval $ac_try) 2>&5
28845 ac_status=$?
28846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28847 (exit $ac_status); }; } &&
28848 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
28849 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28850 (eval $ac_try) 2>&5
28851 ac_status=$?
28852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28853 (exit $ac_status); }; }; then
28854 :
28855else
28856 echo "$as_me: failed program was:" >&5
28857sed 's/^/| /' conftest.$ac_ext >&5
28858
28859echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
28860echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
28861if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
28862 echo $ECHO_N "(cached) $ECHO_C" >&6
28863else
28864 ac_check_lib_save_LIBS=$LIBS
28865LIBS="-ldnet $LIBS"
28866cat >conftest.$ac_ext <<_ACEOF
28867/* confdefs.h. */
28868_ACEOF
28869cat confdefs.h >>conftest.$ac_ext
28870cat >>conftest.$ac_ext <<_ACEOF
28871/* end confdefs.h. */
28872
28873/* Override any gcc2 internal prototype to avoid an error. */
28874#ifdef __cplusplus
28875extern "C"
28876#endif
28877/* We use char because int might match the return type of a gcc2
28878 builtin and then its argument prototype would still apply. */
28879char dnet_ntoa ();
28880int
28881main ()
28882{
28883dnet_ntoa ();
28884 ;
28885 return 0;
28886}
28887_ACEOF
28888rm -f conftest.$ac_objext conftest$ac_exeext
28889if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 28890 (eval $ac_link) 2>conftest.er1
a848cd7e 28891 ac_status=$?
ac1cb8d3
VS
28892 grep -v '^ *+' conftest.er1 >conftest.err
28893 rm -f conftest.er1
28894 cat conftest.err >&5
a848cd7e
SC
28895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28896 (exit $ac_status); } &&
c9a66001 28897 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
28898 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28899 (eval $ac_try) 2>&5
28900 ac_status=$?
28901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28902 (exit $ac_status); }; } &&
28903 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
28904 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28905 (eval $ac_try) 2>&5
28906 ac_status=$?
28907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28908 (exit $ac_status); }; }; then
28909 ac_cv_lib_dnet_dnet_ntoa=yes
28910else
28911 echo "$as_me: failed program was:" >&5
28912sed 's/^/| /' conftest.$ac_ext >&5
28913
28914ac_cv_lib_dnet_dnet_ntoa=no
28915fi
ac1cb8d3
VS
28916rm -f conftest.err conftest.$ac_objext \
28917 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
28918LIBS=$ac_check_lib_save_LIBS
28919fi
28920echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
28921echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
28922if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
28923 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
28924fi
28925
28926 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
28927 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
28928echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
28929if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
28930 echo $ECHO_N "(cached) $ECHO_C" >&6
28931else
28932 ac_check_lib_save_LIBS=$LIBS
28933LIBS="-ldnet_stub $LIBS"
28934cat >conftest.$ac_ext <<_ACEOF
28935/* confdefs.h. */
28936_ACEOF
28937cat confdefs.h >>conftest.$ac_ext
28938cat >>conftest.$ac_ext <<_ACEOF
28939/* end confdefs.h. */
28940
28941/* Override any gcc2 internal prototype to avoid an error. */
28942#ifdef __cplusplus
28943extern "C"
28944#endif
28945/* We use char because int might match the return type of a gcc2
28946 builtin and then its argument prototype would still apply. */
28947char dnet_ntoa ();
28948int
28949main ()
28950{
28951dnet_ntoa ();
28952 ;
28953 return 0;
28954}
28955_ACEOF
28956rm -f conftest.$ac_objext conftest$ac_exeext
28957if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 28958 (eval $ac_link) 2>conftest.er1
a848cd7e 28959 ac_status=$?
ac1cb8d3
VS
28960 grep -v '^ *+' conftest.er1 >conftest.err
28961 rm -f conftest.er1
28962 cat conftest.err >&5
a848cd7e
SC
28963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28964 (exit $ac_status); } &&
c9a66001 28965 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
28966 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28967 (eval $ac_try) 2>&5
28968 ac_status=$?
28969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28970 (exit $ac_status); }; } &&
28971 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
28972 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28973 (eval $ac_try) 2>&5
28974 ac_status=$?
28975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28976 (exit $ac_status); }; }; then
28977 ac_cv_lib_dnet_stub_dnet_ntoa=yes
28978else
28979 echo "$as_me: failed program was:" >&5
28980sed 's/^/| /' conftest.$ac_ext >&5
28981
28982ac_cv_lib_dnet_stub_dnet_ntoa=no
28983fi
ac1cb8d3
VS
28984rm -f conftest.err conftest.$ac_objext \
28985 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
28986LIBS=$ac_check_lib_save_LIBS
28987fi
28988echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
28989echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
28990if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
28991 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
28992fi
28993
28994 fi
28995fi
ac1cb8d3
VS
28996rm -f conftest.err conftest.$ac_objext \
28997 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
28998 LIBS="$ac_xsave_LIBS"
28999
29000 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
29001 # to get the SysV transport functions.
29002 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
29003 # needs -lnsl.
29004 # The nsl library prevents programs from opening the X display
29005 # on Irix 5.2, according to T.E. Dickey.
29006 # The functions gethostbyname, getservbyname, and inet_addr are
29007 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
29008 echo "$as_me:$LINENO: checking for gethostbyname" >&5
29009echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
29010if test "${ac_cv_func_gethostbyname+set}" = set; then
29011 echo $ECHO_N "(cached) $ECHO_C" >&6
29012else
29013 cat >conftest.$ac_ext <<_ACEOF
29014/* confdefs.h. */
29015_ACEOF
29016cat confdefs.h >>conftest.$ac_ext
29017cat >>conftest.$ac_ext <<_ACEOF
29018/* end confdefs.h. */
ac1cb8d3
VS
29019/* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
29020 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29021#define gethostbyname innocuous_gethostbyname
29022
a848cd7e
SC
29023/* System header to define __stub macros and hopefully few prototypes,
29024 which can conflict with char gethostbyname (); below.
29025 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29026 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 29027
a848cd7e
SC
29028#ifdef __STDC__
29029# include <limits.h>
29030#else
29031# include <assert.h>
29032#endif
ac1cb8d3
VS
29033
29034#undef gethostbyname
29035
a848cd7e
SC
29036/* Override any gcc2 internal prototype to avoid an error. */
29037#ifdef __cplusplus
29038extern "C"
29039{
29040#endif
29041/* We use char because int might match the return type of a gcc2
29042 builtin and then its argument prototype would still apply. */
29043char gethostbyname ();
29044/* The GNU C library defines this for functions which it implements
29045 to always fail with ENOSYS. Some functions are actually named
29046 something starting with __ and the normal name is an alias. */
29047#if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
29048choke me
29049#else
29050char (*f) () = gethostbyname;
29051#endif
29052#ifdef __cplusplus
29053}
29054#endif
29055
29056int
29057main ()
29058{
29059return f != gethostbyname;
29060 ;
29061 return 0;
29062}
29063_ACEOF
29064rm -f conftest.$ac_objext conftest$ac_exeext
29065if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 29066 (eval $ac_link) 2>conftest.er1
a848cd7e 29067 ac_status=$?
ac1cb8d3
VS
29068 grep -v '^ *+' conftest.er1 >conftest.err
29069 rm -f conftest.er1
29070 cat conftest.err >&5
a848cd7e
SC
29071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29072 (exit $ac_status); } &&
c9a66001 29073 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
29074 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29075 (eval $ac_try) 2>&5
29076 ac_status=$?
29077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29078 (exit $ac_status); }; } &&
29079 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
29080 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29081 (eval $ac_try) 2>&5
29082 ac_status=$?
29083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29084 (exit $ac_status); }; }; then
29085 ac_cv_func_gethostbyname=yes
29086else
29087 echo "$as_me: failed program was:" >&5
29088sed 's/^/| /' conftest.$ac_ext >&5
29089
29090ac_cv_func_gethostbyname=no
29091fi
ac1cb8d3
VS
29092rm -f conftest.err conftest.$ac_objext \
29093 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
29094fi
29095echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
29096echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
29097
29098 if test $ac_cv_func_gethostbyname = no; then
29099 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
29100echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
29101if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
29102 echo $ECHO_N "(cached) $ECHO_C" >&6
29103else
29104 ac_check_lib_save_LIBS=$LIBS
29105LIBS="-lnsl $LIBS"
29106cat >conftest.$ac_ext <<_ACEOF
29107/* confdefs.h. */
29108_ACEOF
29109cat confdefs.h >>conftest.$ac_ext
29110cat >>conftest.$ac_ext <<_ACEOF
29111/* end confdefs.h. */
29112
29113/* Override any gcc2 internal prototype to avoid an error. */
29114#ifdef __cplusplus
29115extern "C"
29116#endif
29117/* We use char because int might match the return type of a gcc2
29118 builtin and then its argument prototype would still apply. */
29119char gethostbyname ();
29120int
29121main ()
29122{
29123gethostbyname ();
29124 ;
29125 return 0;
29126}
29127_ACEOF
29128rm -f conftest.$ac_objext conftest$ac_exeext
29129if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3
VS
29130 (eval $ac_link) 2>conftest.er1
29131 ac_status=$?
29132 grep -v '^ *+' conftest.er1 >conftest.err
29133 rm -f conftest.er1
29134 cat conftest.err >&5
29135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29136 (exit $ac_status); } &&
c9a66001 29137 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
29138 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29139 (eval $ac_try) 2>&5
29140 ac_status=$?
29141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29142 (exit $ac_status); }; } &&
29143 { ac_try='test -s conftest$ac_exeext'
29144 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29145 (eval $ac_try) 2>&5
29146 ac_status=$?
29147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29148 (exit $ac_status); }; }; then
29149 ac_cv_lib_nsl_gethostbyname=yes
29150else
29151 echo "$as_me: failed program was:" >&5
29152sed 's/^/| /' conftest.$ac_ext >&5
29153
29154ac_cv_lib_nsl_gethostbyname=no
29155fi
29156rm -f conftest.err conftest.$ac_objext \
29157 conftest$ac_exeext conftest.$ac_ext
29158LIBS=$ac_check_lib_save_LIBS
29159fi
29160echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
29161echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
29162if test $ac_cv_lib_nsl_gethostbyname = yes; then
29163 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
29164fi
29165
29166 if test $ac_cv_lib_nsl_gethostbyname = no; then
29167 echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
29168echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
29169if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
29170 echo $ECHO_N "(cached) $ECHO_C" >&6
29171else
29172 ac_check_lib_save_LIBS=$LIBS
29173LIBS="-lbsd $LIBS"
29174cat >conftest.$ac_ext <<_ACEOF
29175/* confdefs.h. */
29176_ACEOF
29177cat confdefs.h >>conftest.$ac_ext
29178cat >>conftest.$ac_ext <<_ACEOF
29179/* end confdefs.h. */
29180
29181/* Override any gcc2 internal prototype to avoid an error. */
29182#ifdef __cplusplus
29183extern "C"
29184#endif
29185/* We use char because int might match the return type of a gcc2
29186 builtin and then its argument prototype would still apply. */
29187char gethostbyname ();
29188int
29189main ()
29190{
29191gethostbyname ();
29192 ;
29193 return 0;
29194}
29195_ACEOF
29196rm -f conftest.$ac_objext conftest$ac_exeext
29197if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29198 (eval $ac_link) 2>conftest.er1
a848cd7e 29199 ac_status=$?
ac1cb8d3
VS
29200 grep -v '^ *+' conftest.er1 >conftest.err
29201 rm -f conftest.er1
29202 cat conftest.err >&5
a848cd7e
SC
29203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29204 (exit $ac_status); } &&
c9a66001 29205 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
a848cd7e
SC
29206 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29207 (eval $ac_try) 2>&5
29208 ac_status=$?
29209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
ac1cb8d3
VS
29210 (exit $ac_status); }; } &&
29211 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
29212 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29213 (eval $ac_try) 2>&5
29214 ac_status=$?
29215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29216 (exit $ac_status); }; }; then
29217 ac_cv_lib_bsd_gethostbyname=yes
29218else
29219 echo "$as_me: failed program was:" >&5
29220sed 's/^/| /' conftest.$ac_ext >&5
29221
29222ac_cv_lib_bsd_gethostbyname=no
29223fi
ac1cb8d3
VS
29224rm -f conftest.err conftest.$ac_objext \
29225 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
29226LIBS=$ac_check_lib_save_LIBS
29227fi
29228echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
29229echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
29230if test $ac_cv_lib_bsd_gethostbyname = yes; then
29231 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
29232fi
29233
29234 fi
29235 fi
29236
29237 # lieder@skyler.mavd.honeywell.com says without -lsocket,
29238 # socket/setsockopt and other routines are undefined under SCO ODT
29239 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
29240 # on later versions), says Simon Leinen: it contains gethostby*
29241 # variants that don't use the name server (or something). -lsocket
29242 # must be given before -lnsl if both are needed. We assume that
29243 # if connect needs -lnsl, so does gethostbyname.
29244 echo "$as_me:$LINENO: checking for connect" >&5
29245echo $ECHO_N "checking for connect... $ECHO_C" >&6
29246if test "${ac_cv_func_connect+set}" = set; then
29247 echo $ECHO_N "(cached) $ECHO_C" >&6
29248else
29249 cat >conftest.$ac_ext <<_ACEOF
29250/* confdefs.h. */
29251_ACEOF
29252cat confdefs.h >>conftest.$ac_ext
29253cat >>conftest.$ac_ext <<_ACEOF
29254/* end confdefs.h. */
ac1cb8d3
VS
29255/* Define connect to an innocuous variant, in case <limits.h> declares connect.
29256 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29257#define connect innocuous_connect
29258
a848cd7e
SC
29259/* System header to define __stub macros and hopefully few prototypes,
29260 which can conflict with char connect (); below.
29261 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29262 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 29263
a848cd7e
SC
29264#ifdef __STDC__
29265# include <limits.h>
29266#else
29267# include <assert.h>
29268#endif
ac1cb8d3
VS
29269
29270#undef connect
29271
a848cd7e
SC
29272/* Override any gcc2 internal prototype to avoid an error. */
29273#ifdef __cplusplus
29274extern "C"
29275{
29276#endif
29277/* We use char because int might match the return type of a gcc2
29278 builtin and then its argument prototype would still apply. */
29279char connect ();
29280/* The GNU C library defines this for functions which it implements
29281 to always fail with ENOSYS. Some functions are actually named
29282 something starting with __ and the normal name is an alias. */
29283#if defined (__stub_connect) || defined (__stub___connect)
29284choke me
29285#else
29286char (*f) () = connect;
29287#endif
29288#ifdef __cplusplus
29289}
29290#endif
29291
29292int
29293main ()
29294{
29295return f != connect;
29296 ;
29297 return 0;
29298}
29299_ACEOF
29300rm -f conftest.$ac_objext conftest$ac_exeext
29301if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 29302 (eval $ac_link) 2>conftest.er1
a848cd7e 29303 ac_status=$?
ac1cb8d3
VS
29304 grep -v '^ *+' conftest.er1 >conftest.err
29305 rm -f conftest.er1
29306 cat conftest.err >&5
a848cd7e
SC
29307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29308 (exit $ac_status); } &&
c9a66001 29309 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
29310 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29311 (eval $ac_try) 2>&5
29312 ac_status=$?
29313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29314 (exit $ac_status); }; } &&
29315 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
29316 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29317 (eval $ac_try) 2>&5
29318 ac_status=$?
29319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29320 (exit $ac_status); }; }; then
29321 ac_cv_func_connect=yes
29322else
29323 echo "$as_me: failed program was:" >&5
29324sed 's/^/| /' conftest.$ac_ext >&5
29325
29326ac_cv_func_connect=no
29327fi
ac1cb8d3
VS
29328rm -f conftest.err conftest.$ac_objext \
29329 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
29330fi
29331echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
29332echo "${ECHO_T}$ac_cv_func_connect" >&6
29333
29334 if test $ac_cv_func_connect = no; then
29335 echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
29336echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
29337if test "${ac_cv_lib_socket_connect+set}" = set; then
29338 echo $ECHO_N "(cached) $ECHO_C" >&6
29339else
29340 ac_check_lib_save_LIBS=$LIBS
29341LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
29342cat >conftest.$ac_ext <<_ACEOF
29343/* confdefs.h. */
29344_ACEOF
29345cat confdefs.h >>conftest.$ac_ext
29346cat >>conftest.$ac_ext <<_ACEOF
29347/* end confdefs.h. */
29348
29349/* Override any gcc2 internal prototype to avoid an error. */
29350#ifdef __cplusplus
29351extern "C"
29352#endif
29353/* We use char because int might match the return type of a gcc2
29354 builtin and then its argument prototype would still apply. */
29355char connect ();
29356int
29357main ()
29358{
29359connect ();
29360 ;
29361 return 0;
29362}
29363_ACEOF
29364rm -f conftest.$ac_objext conftest$ac_exeext
29365if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 29366 (eval $ac_link) 2>conftest.er1
a848cd7e 29367 ac_status=$?
ac1cb8d3
VS
29368 grep -v '^ *+' conftest.er1 >conftest.err
29369 rm -f conftest.er1
29370 cat conftest.err >&5
a848cd7e
SC
29371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29372 (exit $ac_status); } &&
c9a66001 29373 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
29374 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29375 (eval $ac_try) 2>&5
29376 ac_status=$?
29377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29378 (exit $ac_status); }; } &&
29379 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
29380 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29381 (eval $ac_try) 2>&5
29382 ac_status=$?
29383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29384 (exit $ac_status); }; }; then
29385 ac_cv_lib_socket_connect=yes
29386else
29387 echo "$as_me: failed program was:" >&5
29388sed 's/^/| /' conftest.$ac_ext >&5
29389
29390ac_cv_lib_socket_connect=no
29391fi
ac1cb8d3
VS
29392rm -f conftest.err conftest.$ac_objext \
29393 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
29394LIBS=$ac_check_lib_save_LIBS
29395fi
29396echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
29397echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
29398if test $ac_cv_lib_socket_connect = yes; then
29399 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
29400fi
29401
29402 fi
29403
29404 # Guillermo Gomez says -lposix is necessary on A/UX.
29405 echo "$as_me:$LINENO: checking for remove" >&5
29406echo $ECHO_N "checking for remove... $ECHO_C" >&6
29407if test "${ac_cv_func_remove+set}" = set; then
29408 echo $ECHO_N "(cached) $ECHO_C" >&6
29409else
29410 cat >conftest.$ac_ext <<_ACEOF
29411/* confdefs.h. */
29412_ACEOF
29413cat confdefs.h >>conftest.$ac_ext
29414cat >>conftest.$ac_ext <<_ACEOF
29415/* end confdefs.h. */
ac1cb8d3
VS
29416/* Define remove to an innocuous variant, in case <limits.h> declares remove.
29417 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29418#define remove innocuous_remove
29419
a848cd7e
SC
29420/* System header to define __stub macros and hopefully few prototypes,
29421 which can conflict with char remove (); below.
29422 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29423 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 29424
a848cd7e
SC
29425#ifdef __STDC__
29426# include <limits.h>
29427#else
29428# include <assert.h>
29429#endif
ac1cb8d3
VS
29430
29431#undef remove
29432
a848cd7e
SC
29433/* Override any gcc2 internal prototype to avoid an error. */
29434#ifdef __cplusplus
29435extern "C"
29436{
29437#endif
29438/* We use char because int might match the return type of a gcc2
29439 builtin and then its argument prototype would still apply. */
29440char remove ();
29441/* The GNU C library defines this for functions which it implements
29442 to always fail with ENOSYS. Some functions are actually named
29443 something starting with __ and the normal name is an alias. */
29444#if defined (__stub_remove) || defined (__stub___remove)
29445choke me
29446#else
29447char (*f) () = remove;
29448#endif
29449#ifdef __cplusplus
29450}
29451#endif
29452
29453int
29454main ()
29455{
29456return f != remove;
29457 ;
29458 return 0;
29459}
29460_ACEOF
29461rm -f conftest.$ac_objext conftest$ac_exeext
29462if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 29463 (eval $ac_link) 2>conftest.er1
a848cd7e 29464 ac_status=$?
ac1cb8d3
VS
29465 grep -v '^ *+' conftest.er1 >conftest.err
29466 rm -f conftest.er1
29467 cat conftest.err >&5
a848cd7e
SC
29468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29469 (exit $ac_status); } &&
c9a66001 29470 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
29471 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29472 (eval $ac_try) 2>&5
29473 ac_status=$?
29474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29475 (exit $ac_status); }; } &&
29476 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
29477 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29478 (eval $ac_try) 2>&5
29479 ac_status=$?
29480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29481 (exit $ac_status); }; }; then
29482 ac_cv_func_remove=yes
29483else
29484 echo "$as_me: failed program was:" >&5
29485sed 's/^/| /' conftest.$ac_ext >&5
29486
29487ac_cv_func_remove=no
29488fi
ac1cb8d3
VS
29489rm -f conftest.err conftest.$ac_objext \
29490 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
29491fi
29492echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
29493echo "${ECHO_T}$ac_cv_func_remove" >&6
29494
29495 if test $ac_cv_func_remove = no; then
29496 echo "$as_me:$LINENO: checking for remove in -lposix" >&5
29497echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
29498if test "${ac_cv_lib_posix_remove+set}" = set; then
29499 echo $ECHO_N "(cached) $ECHO_C" >&6
29500else
29501 ac_check_lib_save_LIBS=$LIBS
29502LIBS="-lposix $LIBS"
29503cat >conftest.$ac_ext <<_ACEOF
29504/* confdefs.h. */
29505_ACEOF
29506cat confdefs.h >>conftest.$ac_ext
29507cat >>conftest.$ac_ext <<_ACEOF
29508/* end confdefs.h. */
29509
29510/* Override any gcc2 internal prototype to avoid an error. */
29511#ifdef __cplusplus
29512extern "C"
29513#endif
29514/* We use char because int might match the return type of a gcc2
29515 builtin and then its argument prototype would still apply. */
29516char remove ();
29517int
29518main ()
29519{
29520remove ();
29521 ;
29522 return 0;
29523}
29524_ACEOF
29525rm -f conftest.$ac_objext conftest$ac_exeext
29526if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 29527 (eval $ac_link) 2>conftest.er1
a848cd7e 29528 ac_status=$?
ac1cb8d3
VS
29529 grep -v '^ *+' conftest.er1 >conftest.err
29530 rm -f conftest.er1
29531 cat conftest.err >&5
a848cd7e
SC
29532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29533 (exit $ac_status); } &&
c9a66001 29534 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
29535 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29536 (eval $ac_try) 2>&5
29537 ac_status=$?
29538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29539 (exit $ac_status); }; } &&
29540 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
29541 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29542 (eval $ac_try) 2>&5
29543 ac_status=$?
29544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29545 (exit $ac_status); }; }; then
29546 ac_cv_lib_posix_remove=yes
29547else
29548 echo "$as_me: failed program was:" >&5
29549sed 's/^/| /' conftest.$ac_ext >&5
29550
29551ac_cv_lib_posix_remove=no
29552fi
ac1cb8d3
VS
29553rm -f conftest.err conftest.$ac_objext \
29554 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
29555LIBS=$ac_check_lib_save_LIBS
29556fi
29557echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
29558echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
29559if test $ac_cv_lib_posix_remove = yes; then
29560 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
29561fi
29562
29563 fi
29564
29565 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
29566 echo "$as_me:$LINENO: checking for shmat" >&5
29567echo $ECHO_N "checking for shmat... $ECHO_C" >&6
29568if test "${ac_cv_func_shmat+set}" = set; then
29569 echo $ECHO_N "(cached) $ECHO_C" >&6
29570else
29571 cat >conftest.$ac_ext <<_ACEOF
29572/* confdefs.h. */
29573_ACEOF
29574cat confdefs.h >>conftest.$ac_ext
29575cat >>conftest.$ac_ext <<_ACEOF
29576/* end confdefs.h. */
ac1cb8d3
VS
29577/* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
29578 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29579#define shmat innocuous_shmat
29580
a848cd7e
SC
29581/* System header to define __stub macros and hopefully few prototypes,
29582 which can conflict with char shmat (); below.
29583 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29584 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 29585
a848cd7e
SC
29586#ifdef __STDC__
29587# include <limits.h>
29588#else
29589# include <assert.h>
29590#endif
ac1cb8d3
VS
29591
29592#undef shmat
29593
a848cd7e
SC
29594/* Override any gcc2 internal prototype to avoid an error. */
29595#ifdef __cplusplus
29596extern "C"
29597{
29598#endif
29599/* We use char because int might match the return type of a gcc2
29600 builtin and then its argument prototype would still apply. */
29601char shmat ();
29602/* The GNU C library defines this for functions which it implements
29603 to always fail with ENOSYS. Some functions are actually named
29604 something starting with __ and the normal name is an alias. */
29605#if defined (__stub_shmat) || defined (__stub___shmat)
29606choke me
29607#else
29608char (*f) () = shmat;
29609#endif
29610#ifdef __cplusplus
29611}
29612#endif
29613
29614int
29615main ()
29616{
29617return f != shmat;
29618 ;
29619 return 0;
29620}
29621_ACEOF
29622rm -f conftest.$ac_objext conftest$ac_exeext
29623if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 29624 (eval $ac_link) 2>conftest.er1
a848cd7e 29625 ac_status=$?
ac1cb8d3
VS
29626 grep -v '^ *+' conftest.er1 >conftest.err
29627 rm -f conftest.er1
29628 cat conftest.err >&5
a848cd7e
SC
29629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29630 (exit $ac_status); } &&
c9a66001 29631 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
29632 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29633 (eval $ac_try) 2>&5
29634 ac_status=$?
29635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29636 (exit $ac_status); }; } &&
29637 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
29638 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29639 (eval $ac_try) 2>&5
29640 ac_status=$?
29641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29642 (exit $ac_status); }; }; then
29643 ac_cv_func_shmat=yes
29644else
29645 echo "$as_me: failed program was:" >&5
29646sed 's/^/| /' conftest.$ac_ext >&5
29647
29648ac_cv_func_shmat=no
29649fi
ac1cb8d3
VS
29650rm -f conftest.err conftest.$ac_objext \
29651 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
29652fi
29653echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
29654echo "${ECHO_T}$ac_cv_func_shmat" >&6
29655
29656 if test $ac_cv_func_shmat = no; then
29657 echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
29658echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
29659if test "${ac_cv_lib_ipc_shmat+set}" = set; then
29660 echo $ECHO_N "(cached) $ECHO_C" >&6
29661else
29662 ac_check_lib_save_LIBS=$LIBS
29663LIBS="-lipc $LIBS"
29664cat >conftest.$ac_ext <<_ACEOF
29665/* confdefs.h. */
29666_ACEOF
29667cat confdefs.h >>conftest.$ac_ext
29668cat >>conftest.$ac_ext <<_ACEOF
29669/* end confdefs.h. */
29670
29671/* Override any gcc2 internal prototype to avoid an error. */
29672#ifdef __cplusplus
29673extern "C"
29674#endif
29675/* We use char because int might match the return type of a gcc2
29676 builtin and then its argument prototype would still apply. */
29677char shmat ();
29678int
29679main ()
29680{
29681shmat ();
29682 ;
29683 return 0;
29684}
29685_ACEOF
29686rm -f conftest.$ac_objext conftest$ac_exeext
29687if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 29688 (eval $ac_link) 2>conftest.er1
a848cd7e 29689 ac_status=$?
ac1cb8d3
VS
29690 grep -v '^ *+' conftest.er1 >conftest.err
29691 rm -f conftest.er1
29692 cat conftest.err >&5
a848cd7e
SC
29693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29694 (exit $ac_status); } &&
c9a66001 29695 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
29696 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29697 (eval $ac_try) 2>&5
29698 ac_status=$?
29699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29700 (exit $ac_status); }; } &&
29701 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
29702 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29703 (eval $ac_try) 2>&5
29704 ac_status=$?
29705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29706 (exit $ac_status); }; }; then
29707 ac_cv_lib_ipc_shmat=yes
29708else
29709 echo "$as_me: failed program was:" >&5
29710sed 's/^/| /' conftest.$ac_ext >&5
29711
29712ac_cv_lib_ipc_shmat=no
29713fi
ac1cb8d3
VS
29714rm -f conftest.err conftest.$ac_objext \
29715 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
29716LIBS=$ac_check_lib_save_LIBS
29717fi
29718echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
29719echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
29720if test $ac_cv_lib_ipc_shmat = yes; then
29721 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
29722fi
29723
29724 fi
29725 fi
29726
29727 # Check for libraries that X11R6 Xt/Xaw programs need.
29728 ac_save_LDFLAGS=$LDFLAGS
29729 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
29730 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
29731 # check for ICE first), but we must link in the order -lSM -lICE or
29732 # we get undefined symbols. So assume we have SM if we have ICE.
29733 # These have to be linked with before -lX11, unlike the other
29734 # libraries we check for below, so use a different variable.
29735 # John Interrante, Karl Berry
29736 echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
29737echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
29738if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
29739 echo $ECHO_N "(cached) $ECHO_C" >&6
29740else
29741 ac_check_lib_save_LIBS=$LIBS
29742LIBS="-lICE $X_EXTRA_LIBS $LIBS"
29743cat >conftest.$ac_ext <<_ACEOF
29744/* confdefs.h. */
29745_ACEOF
29746cat confdefs.h >>conftest.$ac_ext
29747cat >>conftest.$ac_ext <<_ACEOF
29748/* end confdefs.h. */
29749
29750/* Override any gcc2 internal prototype to avoid an error. */
29751#ifdef __cplusplus
29752extern "C"
29753#endif
29754/* We use char because int might match the return type of a gcc2
29755 builtin and then its argument prototype would still apply. */
29756char IceConnectionNumber ();
29757int
29758main ()
29759{
29760IceConnectionNumber ();
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_lib_ICE_IceConnectionNumber=yes
29787else
29788 echo "$as_me: failed program was:" >&5
29789sed 's/^/| /' conftest.$ac_ext >&5
29790
29791ac_cv_lib_ICE_IceConnectionNumber=no
29792fi
ac1cb8d3
VS
29793rm -f conftest.err conftest.$ac_objext \
29794 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
29795LIBS=$ac_check_lib_save_LIBS
29796fi
29797echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
29798echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
29799if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
29800 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
29801fi
29802
29803 LDFLAGS=$ac_save_LDFLAGS
29804
29805fi
29806
29807
29808 if test "$no_x" = "yes"; then
89d90d6d
VZ
29809 { { echo "$as_me:$LINENO: error: X11 not found, please use --x-includes and/or --x-libraries options (see config.log for details)" >&5
29810echo "$as_me: error: X11 not found, please use --x-includes and/or --x-libraries options (see config.log for details)" >&2;}
29811 { (exit 1); exit 1; }; }
a848cd7e
SC
29812 fi
29813
74b84332
VS
29814 GUI_TK_LIBRARY=`echo $X_LIBS | sed 's/ -LNONE//' | sed 's/ -RNONE//'`
29815 TOOLKIT_INCLUDE=`echo $X_CFLAGS | sed 's/ -INONE//'`
a848cd7e
SC
29816 AFMINSTALL=afminstall
29817 COMPILED_X_PROGRAM=0
29818
74b84332
VS
29819 fi
29820
29821 if test "$wxUSE_X11" = 1; then
a848cd7e
SC
29822 if test "$wxUSE_NANOX" = "yes"; then
29823 echo "$as_me:$LINENO: checking for MicroWindows/NanoX distribution" >&5
29824echo $ECHO_N "checking for MicroWindows/NanoX distribution... $ECHO_C" >&6
29825 if test "x$MICROWIN" = x ; then
29826 echo "$as_me:$LINENO: result: not found" >&5
29827echo "${ECHO_T}not found" >&6
29828 { { echo "$as_me:$LINENO: error: Cannot find MicroWindows library. Make sure MICROWIN is set." >&5
29829echo "$as_me: error: Cannot find MicroWindows library. Make sure MICROWIN is set." >&2;}
29830 { (exit 1); exit 1; }; }
29831 else
29832 echo "$as_me:$LINENO: result: $MICROWIN" >&5
29833echo "${ECHO_T}$MICROWIN" >&6
29834 cat >>confdefs.h <<\_ACEOF
29835#define wxUSE_NANOX 1
29836_ACEOF
29837
29838 fi
29839 fi
29840
29841 if test "$wxUSE_UNICODE" = "yes"; then
29842
29843 succeeded=no
29844
29845 if test -z "$PKG_CONFIG"; then
29846 # Extract the first word of "pkg-config", so it can be a program name with args.
29847set dummy pkg-config; ac_word=$2
29848echo "$as_me:$LINENO: checking for $ac_word" >&5
29849echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
29850if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
29851 echo $ECHO_N "(cached) $ECHO_C" >&6
29852else
29853 case $PKG_CONFIG in
29854 [\\/]* | ?:[\\/]*)
29855 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
29856 ;;
29857 *)
29858 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29859for as_dir in $PATH
29860do
29861 IFS=$as_save_IFS
29862 test -z "$as_dir" && as_dir=.
29863 for ac_exec_ext in '' $ac_executable_extensions; do
29864 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
29865 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
29866 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
29867 break 2
29868 fi
29869done
29870done
29871
29872 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
29873 ;;
29874esac
29875fi
29876PKG_CONFIG=$ac_cv_path_PKG_CONFIG
29877
29878if test -n "$PKG_CONFIG"; then
29879 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
29880echo "${ECHO_T}$PKG_CONFIG" >&6
29881else
29882 echo "$as_me:$LINENO: result: no" >&5
29883echo "${ECHO_T}no" >&6
29884fi
29885
29886 fi
29887
29888 if test "$PKG_CONFIG" = "no" ; then
29889 echo "*** The pkg-config script could not be found. Make sure it is"
29890 echo "*** in your path, or set the PKG_CONFIG environment variable"
29891 echo "*** to the full path to pkg-config."
29892 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
29893 else
29894 PKG_CONFIG_MIN_VERSION=0.9.0
29895 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
29896 echo "$as_me:$LINENO: checking for pangox" >&5
29897echo $ECHO_N "checking for pangox... $ECHO_C" >&6
29898
29899 if $PKG_CONFIG --exists "pangox" ; then
29900 echo "$as_me:$LINENO: result: yes" >&5
29901echo "${ECHO_T}yes" >&6
29902 succeeded=yes
29903
29904 echo "$as_me:$LINENO: checking PANGOX_CFLAGS" >&5
29905echo $ECHO_N "checking PANGOX_CFLAGS... $ECHO_C" >&6
29906 PANGOX_CFLAGS=`$PKG_CONFIG --cflags "pangox"`
29907 echo "$as_me:$LINENO: result: $PANGOX_CFLAGS" >&5
29908echo "${ECHO_T}$PANGOX_CFLAGS" >&6
29909
29910 echo "$as_me:$LINENO: checking PANGOX_LIBS" >&5
29911echo $ECHO_N "checking PANGOX_LIBS... $ECHO_C" >&6
29912 PANGOX_LIBS=`$PKG_CONFIG --libs "pangox"`
29913 echo "$as_me:$LINENO: result: $PANGOX_LIBS" >&5
29914echo "${ECHO_T}$PANGOX_LIBS" >&6
29915 else
29916 PANGOX_CFLAGS=""
29917 PANGOX_LIBS=""
29918 ## If we have a custom action on failure, don't print errors, but
29919 ## do set a variable so people can do so.
29920 PANGOX_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangox"`
29921
29922 fi
29923
29924
29925
29926 else
29927 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
29928 echo "*** See http://www.freedesktop.org/software/pkgconfig"
29929 fi
29930 fi
29931
29932 if test $succeeded = yes; then
29933
c92ad099 29934 CXXFLAGS="$PANGOX_CFLAGS $CXXFLAGS"
a848cd7e
SC
29935 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOX_LIBS"
29936
29937 else
29938
29939 { { echo "$as_me:$LINENO: error: pangox library not found, library cannot be compiled in Unicode mode" >&5
29940echo "$as_me: error: pangox library not found, library cannot be compiled in Unicode mode" >&2;}
29941 { (exit 1); exit 1; }; }
29942
29943
29944 fi
29945
29946
29947 succeeded=no
29948
29949 if test -z "$PKG_CONFIG"; then
29950 # Extract the first word of "pkg-config", so it can be a program name with args.
29951set dummy pkg-config; ac_word=$2
29952echo "$as_me:$LINENO: checking for $ac_word" >&5
29953echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
29954if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
29955 echo $ECHO_N "(cached) $ECHO_C" >&6
29956else
29957 case $PKG_CONFIG in
29958 [\\/]* | ?:[\\/]*)
29959 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
29960 ;;
29961 *)
29962 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29963for as_dir in $PATH
29964do
29965 IFS=$as_save_IFS
29966 test -z "$as_dir" && as_dir=.
29967 for ac_exec_ext in '' $ac_executable_extensions; do
29968 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
29969 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
29970 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
29971 break 2
29972 fi
29973done
29974done
29975
29976 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
29977 ;;
29978esac
29979fi
29980PKG_CONFIG=$ac_cv_path_PKG_CONFIG
29981
29982if test -n "$PKG_CONFIG"; then
29983 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
29984echo "${ECHO_T}$PKG_CONFIG" >&6
29985else
29986 echo "$as_me:$LINENO: result: no" >&5
29987echo "${ECHO_T}no" >&6
29988fi
29989
29990 fi
29991
29992 if test "$PKG_CONFIG" = "no" ; then
29993 echo "*** The pkg-config script could not be found. Make sure it is"
29994 echo "*** in your path, or set the PKG_CONFIG environment variable"
29995 echo "*** to the full path to pkg-config."
29996 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
29997 else
29998 PKG_CONFIG_MIN_VERSION=0.9.0
29999 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
30000 echo "$as_me:$LINENO: checking for pangoft2" >&5
30001echo $ECHO_N "checking for pangoft2... $ECHO_C" >&6
30002
30003 if $PKG_CONFIG --exists "pangoft2" ; then
30004 echo "$as_me:$LINENO: result: yes" >&5
30005echo "${ECHO_T}yes" >&6
30006 succeeded=yes
30007
30008 echo "$as_me:$LINENO: checking PANGOFT2_CFLAGS" >&5
30009echo $ECHO_N "checking PANGOFT2_CFLAGS... $ECHO_C" >&6
30010 PANGOFT2_CFLAGS=`$PKG_CONFIG --cflags "pangoft2"`
30011 echo "$as_me:$LINENO: result: $PANGOFT2_CFLAGS" >&5
30012echo "${ECHO_T}$PANGOFT2_CFLAGS" >&6
30013
30014 echo "$as_me:$LINENO: checking PANGOFT2_LIBS" >&5
30015echo $ECHO_N "checking PANGOFT2_LIBS... $ECHO_C" >&6
30016 PANGOFT2_LIBS=`$PKG_CONFIG --libs "pangoft2"`
30017 echo "$as_me:$LINENO: result: $PANGOFT2_LIBS" >&5
30018echo "${ECHO_T}$PANGOFT2_LIBS" >&6
30019 else
30020 PANGOFT2_CFLAGS=""
30021 PANGOFT2_LIBS=""
30022 ## If we have a custom action on failure, don't print errors, but
30023 ## do set a variable so people can do so.
30024 PANGOFT2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoft2"`
30025
30026 fi
30027
30028
30029
30030 else
30031 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
30032 echo "*** See http://www.freedesktop.org/software/pkgconfig"
30033 fi
30034 fi
30035
30036 if test $succeeded = yes; then
30037
c92ad099 30038 CXXFLAGS="$PANGOFT2_CFLAGS $CXXFLAGS"
a848cd7e
SC
30039 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOFT2_LIBS"
30040
30041 else
30042
30043 { echo "$as_me:$LINENO: WARNING: pangoft2 library not found, library will be compiled without printing support" >&5
30044echo "$as_me: WARNING: pangoft2 library not found, library will be compiled without printing support" >&2;}
30045 wxUSE_PRINTING_ARCHITECTURE="no"
30046
30047
30048 fi
30049
30050
30051 succeeded=no
30052
30053 if test -z "$PKG_CONFIG"; then
30054 # Extract the first word of "pkg-config", so it can be a program name with args.
30055set dummy pkg-config; ac_word=$2
30056echo "$as_me:$LINENO: checking for $ac_word" >&5
30057echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
30058if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
30059 echo $ECHO_N "(cached) $ECHO_C" >&6
30060else
30061 case $PKG_CONFIG in
30062 [\\/]* | ?:[\\/]*)
30063 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
30064 ;;
30065 *)
30066 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30067for as_dir in $PATH
30068do
30069 IFS=$as_save_IFS
30070 test -z "$as_dir" && as_dir=.
30071 for ac_exec_ext in '' $ac_executable_extensions; do
30072 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
30073 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
30074 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
30075 break 2
30076 fi
30077done
30078done
30079
30080 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
30081 ;;
30082esac
30083fi
30084PKG_CONFIG=$ac_cv_path_PKG_CONFIG
30085
30086if test -n "$PKG_CONFIG"; then
30087 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
30088echo "${ECHO_T}$PKG_CONFIG" >&6
30089else
30090 echo "$as_me:$LINENO: result: no" >&5
30091echo "${ECHO_T}no" >&6
30092fi
30093
30094 fi
30095
30096 if test "$PKG_CONFIG" = "no" ; then
30097 echo "*** The pkg-config script could not be found. Make sure it is"
30098 echo "*** in your path, or set the PKG_CONFIG environment variable"
30099 echo "*** to the full path to pkg-config."
30100 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
30101 else
30102 PKG_CONFIG_MIN_VERSION=0.9.0
30103 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
30104 echo "$as_me:$LINENO: checking for pangoxft" >&5
30105echo $ECHO_N "checking for pangoxft... $ECHO_C" >&6
30106
30107 if $PKG_CONFIG --exists "pangoxft" ; then
30108 echo "$as_me:$LINENO: result: yes" >&5
30109echo "${ECHO_T}yes" >&6
30110 succeeded=yes
30111
30112 echo "$as_me:$LINENO: checking PANGOXFT_CFLAGS" >&5
30113echo $ECHO_N "checking PANGOXFT_CFLAGS... $ECHO_C" >&6
30114 PANGOXFT_CFLAGS=`$PKG_CONFIG --cflags "pangoxft"`
30115 echo "$as_me:$LINENO: result: $PANGOXFT_CFLAGS" >&5
30116echo "${ECHO_T}$PANGOXFT_CFLAGS" >&6
30117
30118 echo "$as_me:$LINENO: checking PANGOXFT_LIBS" >&5
30119echo $ECHO_N "checking PANGOXFT_LIBS... $ECHO_C" >&6
30120 PANGOXFT_LIBS=`$PKG_CONFIG --libs "pangoxft"`
30121 echo "$as_me:$LINENO: result: $PANGOXFT_LIBS" >&5
30122echo "${ECHO_T}$PANGOXFT_LIBS" >&6
30123 else
30124 PANGOXFT_CFLAGS=""
30125 PANGOXFT_LIBS=""
30126 ## If we have a custom action on failure, don't print errors, but
30127 ## do set a variable so people can do so.
30128 PANGOXFT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoxft"`
30129
30130 fi
30131
30132
30133
30134 else
30135 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
30136 echo "*** See http://www.freedesktop.org/software/pkgconfig"
30137 fi
30138 fi
30139
30140 if test $succeeded = yes; then
30141
4ae1af05
MB
30142 cat >>confdefs.h <<\_ACEOF
30143#define HAVE_PANGO_XFT 1
30144_ACEOF
30145
c92ad099 30146 CXXFLAGS="$PANGOXFT_CFLAGS $CXXFLAGS"
a848cd7e
SC
30147 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOXFT_LIBS"
30148
30149 else
30150
30151 { echo "$as_me:$LINENO: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&5
30152echo "$as_me: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&2;}
30153
30154
30155 fi
30156
e56f4f9e 30157 save_CXXFLAGS="$CXXFLAGS"
304205f1 30158 save_LIBS="$LIBS"
e56f4f9e 30159 CXXFLAGS="$PANGOX_CFLAGS $CXXFLAGS"
304205f1
VS
30160 LIBS="$LIBS $PANGOX_LIBS"
30161
30162for ac_func in pango_font_family_is_monospace
30163do
30164as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30165echo "$as_me:$LINENO: checking for $ac_func" >&5
30166echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
30167if eval "test \"\${$as_ac_var+set}\" = set"; then
30168 echo $ECHO_N "(cached) $ECHO_C" >&6
30169else
30170 cat >conftest.$ac_ext <<_ACEOF
30171/* confdefs.h. */
30172_ACEOF
30173cat confdefs.h >>conftest.$ac_ext
30174cat >>conftest.$ac_ext <<_ACEOF
30175/* end confdefs.h. */
30176/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30177 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30178#define $ac_func innocuous_$ac_func
30179
30180/* System header to define __stub macros and hopefully few prototypes,
30181 which can conflict with char $ac_func (); below.
30182 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30183 <limits.h> exists even on freestanding compilers. */
30184
30185#ifdef __STDC__
30186# include <limits.h>
30187#else
30188# include <assert.h>
30189#endif
30190
30191#undef $ac_func
30192
30193/* Override any gcc2 internal prototype to avoid an error. */
30194#ifdef __cplusplus
30195extern "C"
30196{
30197#endif
30198/* We use char because int might match the return type of a gcc2
30199 builtin and then its argument prototype would still apply. */
30200char $ac_func ();
30201/* The GNU C library defines this for functions which it implements
30202 to always fail with ENOSYS. Some functions are actually named
30203 something starting with __ and the normal name is an alias. */
30204#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
30205choke me
30206#else
30207char (*f) () = $ac_func;
30208#endif
30209#ifdef __cplusplus
30210}
30211#endif
30212
30213int
30214main ()
30215{
30216return f != $ac_func;
30217 ;
30218 return 0;
30219}
30220_ACEOF
30221rm -f conftest.$ac_objext conftest$ac_exeext
30222if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30223 (eval $ac_link) 2>conftest.er1
30224 ac_status=$?
30225 grep -v '^ *+' conftest.er1 >conftest.err
30226 rm -f conftest.er1
30227 cat conftest.err >&5
30228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30229 (exit $ac_status); } &&
c9a66001 30230 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
304205f1
VS
30231 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30232 (eval $ac_try) 2>&5
30233 ac_status=$?
30234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30235 (exit $ac_status); }; } &&
30236 { ac_try='test -s conftest$ac_exeext'
30237 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30238 (eval $ac_try) 2>&5
30239 ac_status=$?
30240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30241 (exit $ac_status); }; }; then
30242 eval "$as_ac_var=yes"
30243else
30244 echo "$as_me: failed program was:" >&5
30245sed 's/^/| /' conftest.$ac_ext >&5
30246
30247eval "$as_ac_var=no"
30248fi
30249rm -f conftest.err conftest.$ac_objext \
30250 conftest$ac_exeext conftest.$ac_ext
30251fi
30252echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
30253echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
30254if test `eval echo '${'$as_ac_var'}'` = yes; then
30255 cat >>confdefs.h <<_ACEOF
30256#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30257_ACEOF
30258
30259fi
30260done
30261
e56f4f9e 30262 CXXFLAGS="$save_CXXFLAGS"
304205f1 30263 LIBS="$save_LIBS"
a848cd7e
SC
30264 fi
30265
30266 wxUSE_UNIVERSAL="yes"
30267
30268 if test "$wxUSE_NANOX" = "yes"; then
30269 TOOLKIT_INCLUDE="-I\$(top_srcdir)/include/wx/x11/nanox -I\$(MICROWIN)/src/include $TOOLKIT_INCLUDE"
30270 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"
30271 GUI_TK_LIBRARY="$GUI_TK_LIBRARY \$(MICROWIN)/src/lib/libnano-X.a"
30272 else
30273 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lX11"
30274 fi
30275
a848cd7e
SC
30276 TOOLKIT=X11
30277 GUIDIST=X11_DIST
30278 fi
30279
30280 if test "$wxUSE_MOTIF" = 1; then
0a08f02a
MB
30281 if test "$wxUSE_UNICODE" = "yes"; then
30282 { { echo "$as_me:$LINENO: error: Unicode configuration not supported with Motif" >&5
30283echo "$as_me: error: Unicode configuration not supported with Motif" >&2;}
30284 { (exit 1); exit 1; }; }
30285 fi
30286
74b84332
VS
30287 echo "$as_me:$LINENO: checking for Motif/Lesstif headers" >&5
30288echo $ECHO_N "checking for Motif/Lesstif headers... $ECHO_C" >&6
a848cd7e 30289
74b84332
VS
30290ac_find_includes=
30291for ac_dir in $SEARCH_INCLUDE /usr/include;
30292 do
30293 if test -f "$ac_dir/Xm/Xm.h"; then
30294 ac_find_includes=$ac_dir
30295 break
30296 fi
30297 done
a848cd7e 30298
74b84332
VS
30299 if test "$ac_find_includes" != "" ; then
30300 echo "$as_me:$LINENO: result: found in $ac_find_includes" >&5
30301echo "${ECHO_T}found in $ac_find_includes" >&6
30302
30303 if test "x$ac_find_includes" = "x/usr/include"; then
30304 ac_path_to_include=""
30305 else
30306 echo "$TOOLKIT_INCLUDE" | grep "\-I$ac_find_includes" > /dev/null
30307 result=$?
30308 if test $result = 0; then
30309 ac_path_to_include=""
30310 else
30311 ac_path_to_include=" -I$ac_find_includes"
30312 fi
a848cd7e
SC
30313 fi
30314
74b84332
VS
30315 TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE$ac_path_to_include"
30316 else
e56f4f9e
VZ
30317 save_CXXFLAGS=$CXXFLAGS
30318 CXXFLAGS="$TOOLKIT_INCLUDE $CXXFLAGS"
e051b34e 30319
74b84332 30320 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
30321/* confdefs.h. */
30322_ACEOF
30323cat confdefs.h >>conftest.$ac_ext
30324cat >>conftest.$ac_ext <<_ACEOF
30325/* end confdefs.h. */
30326
74b84332
VS
30327 #include <Xm/Xm.h>
30328
a848cd7e
SC
30329int
30330main ()
30331{
30332
74b84332
VS
30333 int version;
30334 version = xmUseVersion;
30335
a848cd7e
SC
30336 ;
30337 return 0;
30338}
30339_ACEOF
74b84332
VS
30340rm -f conftest.$ac_objext
30341if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30342 (eval $ac_compile) 2>conftest.er1
a848cd7e 30343 ac_status=$?
ac1cb8d3
VS
30344 grep -v '^ *+' conftest.er1 >conftest.err
30345 rm -f conftest.er1
30346 cat conftest.err >&5
a848cd7e
SC
30347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30348 (exit $ac_status); } &&
c9a66001 30349 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
30350 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30351 (eval $ac_try) 2>&5
30352 ac_status=$?
30353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30354 (exit $ac_status); }; } &&
74b84332 30355 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
30356 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30357 (eval $ac_try) 2>&5
30358 ac_status=$?
30359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30360 (exit $ac_status); }; }; then
74b84332
VS
30361
30362 echo "$as_me:$LINENO: result: found in default search path" >&5
30363echo "${ECHO_T}found in default search path" >&6
30364 COMPILED_X_PROGRAM=1
30365
a848cd7e
SC
30366else
30367 echo "$as_me: failed program was:" >&5
30368sed 's/^/| /' conftest.$ac_ext >&5
30369
a848cd7e 30370
74b84332
VS
30371 echo "$as_me:$LINENO: result: no" >&5
30372echo "${ECHO_T}no" >&6
e051b34e
MW
30373 { { echo "$as_me:$LINENO: error: please set CPPFLAGS to contain the location of Xm/Xm.h" >&5
30374echo "$as_me: error: please set CPPFLAGS to contain the location of Xm/Xm.h" >&2;}
74b84332 30375 { (exit 1); exit 1; }; }
a848cd7e 30376
a848cd7e 30377
a848cd7e 30378fi
74b84332 30379rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e051b34e 30380
e56f4f9e 30381 CXXFLAGS=$save_CXXFLAGS
74b84332
VS
30382 fi
30383
0ad5d837
VZ
30384
30385 echo "$as_me:$LINENO: checking for Motif/Lesstif library" >&5
74b84332
VS
30386echo $ECHO_N "checking for Motif/Lesstif library... $ECHO_C" >&6
30387
0ad5d837
VZ
30388 ac_find_libraries=
30389 for ac_dir in $SEARCH_LIB;
74b84332 30390 do
3eca31dc 30391 for ac_extension in a so sl dylib dll.a; do
74b84332
VS
30392 if test -f "$ac_dir/libXm.$ac_extension"; then
30393 ac_find_libraries=$ac_dir
30394 break 2
a848cd7e 30395 fi
74b84332
VS
30396 done
30397 done
a848cd7e 30398
0ad5d837
VZ
30399
30400 if test "x$ac_find_libraries" != "x" ; then
30401 echo "$as_me:$LINENO: result: found in $ac_find_libraries" >&5
30402echo "${ECHO_T}found in $ac_find_libraries" >&6
a848cd7e 30403
74b84332 30404
0ad5d837 30405 if test "$ac_find_libraries" = "default location"; then
74b84332 30406 ac_path_to_link=""
a848cd7e 30407 else
0ad5d837
VZ
30408 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
30409 result=$?
30410 if test $result = 0; then
30411 ac_path_to_link=""
30412 else
30413 ac_path_to_link=" -L$ac_find_libraries"
30414 fi
74b84332
VS
30415 fi
30416
0ad5d837
VZ
30417 GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
30418 else
e56f4f9e
VZ
30419 save_CXXFLAGS=$CXXFLAGS
30420 CXXFLAGS="$TOOLKIT_INCLUDE $CXXFLAGS"
6f9cf1e6
MW
30421 save_LIBS="$LIBS"
30422 LIBS="$GUI_TK_LIBRARY -lXm -lXmu -lXext -lX11"
74b84332 30423
0ad5d837 30424 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
30425/* confdefs.h. */
30426_ACEOF
30427cat confdefs.h >>conftest.$ac_ext
30428cat >>conftest.$ac_ext <<_ACEOF
30429/* end confdefs.h. */
30430
0ad5d837 30431 #include <Xm/Xm.h>
74b84332 30432
a848cd7e
SC
30433int
30434main ()
30435{
74b84332 30436
0ad5d837
VZ
30437 int version;
30438 version = xmUseVersion;
74b84332 30439
a848cd7e
SC
30440 ;
30441 return 0;
30442}
30443_ACEOF
0ad5d837
VZ
30444rm -f conftest.$ac_objext conftest$ac_exeext
30445if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30446 (eval $ac_link) 2>conftest.er1
a848cd7e 30447 ac_status=$?
ac1cb8d3
VS
30448 grep -v '^ *+' conftest.er1 >conftest.err
30449 rm -f conftest.er1
30450 cat conftest.err >&5
a848cd7e
SC
30451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30452 (exit $ac_status); } &&
c9a66001 30453 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
30454 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30455 (eval $ac_try) 2>&5
30456 ac_status=$?
30457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30458 (exit $ac_status); }; } &&
0ad5d837 30459 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
30460 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30461 (eval $ac_try) 2>&5
30462 ac_status=$?
30463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30464 (exit $ac_status); }; }; then
74b84332 30465
0ad5d837 30466 echo "$as_me:$LINENO: result: found in default search path" >&5
74b84332 30467echo "${ECHO_T}found in default search path" >&6
0ad5d837 30468 COMPILED_X_PROGRAM=1
74b84332 30469
a848cd7e
SC
30470else
30471 echo "$as_me: failed program was:" >&5
30472sed 's/^/| /' conftest.$ac_ext >&5
30473
74b84332 30474
6f9cf1e6 30475 echo "$as_me:$LINENO: result: no" >&5
74b84332 30476echo "${ECHO_T}no" >&6
6f9cf1e6 30477 { { echo "$as_me:$LINENO: error: please set LDFLAGS to contain the location of libXm" >&5
74b84332
VS
30478echo "$as_me: error: please set LDFLAGS to contain the location of libXm" >&2;}
30479 { (exit 1); exit 1; }; }
30480
30481
30482fi
0ad5d837
VZ
30483rm -f conftest.err conftest.$ac_objext \
30484 conftest$ac_exeext conftest.$ac_ext
74b84332 30485
e56f4f9e 30486 CXXFLAGS=$save_CXXFLAGS
6f9cf1e6 30487 LIBS="$save_LIBS"
74b84332
VS
30488 fi
30489
30490 echo "$as_me:$LINENO: checking if we need -lXp and/or -lSM -lICE" >&5
30491echo $ECHO_N "checking if we need -lXp and/or -lSM -lICE... $ECHO_C" >&6
30492 libp_link=""
30493 libsm_ice_link=""
30494 libs_found=0
30495 for libp in "" " -lXp"; do
30496 if test "$libs_found" = "0"; then
30497 for libsm_ice in "" " -lSM -lICE"; do
30498 if test "$libs_found" = "0"; then
30499 save_LIBS="$LIBS"
30500 LIBS="$GUI_TK_LIBRARY -lXm ${libp} -lXmu -lXext -lXt${libsm_ice} -lX11"
e56f4f9e
VZ
30501 save_CXXFLAGS=$CXXFLAGS
30502 CXXFLAGS="$TOOLKIT_INCLUDE $CXXFLAGS"
74b84332
VS
30503
30504 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
30505/* confdefs.h. */
30506_ACEOF
30507cat confdefs.h >>conftest.$ac_ext
30508cat >>conftest.$ac_ext <<_ACEOF
30509/* end confdefs.h. */
30510
74b84332
VS
30511 #include <Xm/Xm.h>
30512 #include <Xm/List.h>
30513
a848cd7e
SC
30514int
30515main ()
30516{
74b84332
VS
30517
30518 XmString string = NULL;
30519 Widget w = NULL;
30520 int position = 0;
30521 XmListAddItem(w, string, position);
30522
a848cd7e
SC
30523 ;
30524 return 0;
30525}
30526_ACEOF
30527rm -f conftest.$ac_objext conftest$ac_exeext
30528if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 30529 (eval $ac_link) 2>conftest.er1
a848cd7e 30530 ac_status=$?
ac1cb8d3
VS
30531 grep -v '^ *+' conftest.er1 >conftest.err
30532 rm -f conftest.er1
30533 cat conftest.err >&5
a848cd7e
SC
30534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30535 (exit $ac_status); } &&
c9a66001 30536 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
30537 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30538 (eval $ac_try) 2>&5
30539 ac_status=$?
30540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30541 (exit $ac_status); }; } &&
30542 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
30543 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30544 (eval $ac_try) 2>&5
30545 ac_status=$?
30546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30547 (exit $ac_status); }; }; then
30548
30549 libp_link="$libp"
30550 libsm_ice_link="$libsm_ice"
30551 echo "$as_me:$LINENO: result: need${libp_link}${libsm_ice_link}" >&5
30552echo "${ECHO_T}need${libp_link}${libsm_ice_link}" >&6
30553 libs_found=1
30554
30555else
30556 echo "$as_me: failed program was:" >&5
30557sed 's/^/| /' conftest.$ac_ext >&5
30558
30559
30560
30561fi
ac1cb8d3
VS
30562rm -f conftest.err conftest.$ac_objext \
30563 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
30564
30565 LIBS="$save_LIBS"
e56f4f9e 30566 CXXFLAGS=$save_CXXFLAGS
a848cd7e
SC
30567 fi
30568 done
30569 fi
30570 done
30571
30572 if test "$libs_found" = "0"; then
30573 echo "$as_me:$LINENO: result: can't find the right libraries" >&5
30574echo "${ECHO_T}can't find the right libraries" >&6
30575 { { echo "$as_me:$LINENO: error: can't link a simple motif program" >&5
30576echo "$as_me: error: can't link a simple motif program" >&2;}
30577 { (exit 1); exit 1; }; }
30578 fi
30579
62fa8b3a
MW
30580 echo "$as_me:$LINENO: checking for SgCreateList in -lSgm" >&5
30581echo $ECHO_N "checking for SgCreateList in -lSgm... $ECHO_C" >&6
30582if test "${ac_cv_lib_Sgm_SgCreateList+set}" = set; then
30583 echo $ECHO_N "(cached) $ECHO_C" >&6
30584else
30585 ac_check_lib_save_LIBS=$LIBS
30586LIBS="-lSgm $LIBS"
30587cat >conftest.$ac_ext <<_ACEOF
30588/* confdefs.h. */
30589_ACEOF
30590cat confdefs.h >>conftest.$ac_ext
30591cat >>conftest.$ac_ext <<_ACEOF
30592/* end confdefs.h. */
30593
30594/* Override any gcc2 internal prototype to avoid an error. */
30595#ifdef __cplusplus
30596extern "C"
30597#endif
30598/* We use char because int might match the return type of a gcc2
30599 builtin and then its argument prototype would still apply. */
30600char SgCreateList ();
30601int
30602main ()
30603{
30604SgCreateList ();
30605 ;
30606 return 0;
30607}
30608_ACEOF
30609rm -f conftest.$ac_objext conftest$ac_exeext
30610if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30611 (eval $ac_link) 2>conftest.er1
30612 ac_status=$?
30613 grep -v '^ *+' conftest.er1 >conftest.err
30614 rm -f conftest.er1
30615 cat conftest.err >&5
30616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30617 (exit $ac_status); } &&
c9a66001 30618 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
62fa8b3a
MW
30619 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30620 (eval $ac_try) 2>&5
30621 ac_status=$?
30622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30623 (exit $ac_status); }; } &&
30624 { ac_try='test -s conftest$ac_exeext'
30625 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30626 (eval $ac_try) 2>&5
30627 ac_status=$?
30628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30629 (exit $ac_status); }; }; then
30630 ac_cv_lib_Sgm_SgCreateList=yes
30631else
30632 echo "$as_me: failed program was:" >&5
30633sed 's/^/| /' conftest.$ac_ext >&5
30634
30635ac_cv_lib_Sgm_SgCreateList=no
30636fi
30637rm -f conftest.err conftest.$ac_objext \
30638 conftest$ac_exeext conftest.$ac_ext
30639LIBS=$ac_check_lib_save_LIBS
30640fi
30641echo "$as_me:$LINENO: result: $ac_cv_lib_Sgm_SgCreateList" >&5
30642echo "${ECHO_T}$ac_cv_lib_Sgm_SgCreateList" >&6
30643if test $ac_cv_lib_Sgm_SgCreateList = yes; then
30644 libsgm_link=" -lSgm"
30645fi
30646
30647
e56f4f9e
VZ
30648 save_CXXFLAGS=$CXXFLAGS
30649 CXXFLAGS="$TOOLKIT_INCLUDE $CXXFLAGS"
0ad5d837 30650
a848cd7e
SC
30651 echo "$as_me:$LINENO: checking for Motif 2" >&5
30652echo $ECHO_N "checking for Motif 2... $ECHO_C" >&6
0ad5d837
VZ
30653if test "${wx_cv_lib_motif2+set}" = set; then
30654 echo $ECHO_N "(cached) $ECHO_C" >&6
30655else
30656 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
30657/* confdefs.h. */
30658_ACEOF
30659cat confdefs.h >>conftest.$ac_ext
30660cat >>conftest.$ac_ext <<_ACEOF
30661/* end confdefs.h. */
30662
0ad5d837 30663 #include <Xm/Xm.h>
a848cd7e
SC
30664
30665int
30666main ()
30667{
30668
0ad5d837
VZ
30669 #if XmVersion < 2000
30670 Not Motif 2
30671 #endif
a848cd7e
SC
30672
30673 ;
30674 return 0;
30675}
30676_ACEOF
30677rm -f conftest.$ac_objext
30678if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 30679 (eval $ac_compile) 2>conftest.er1
a848cd7e 30680 ac_status=$?
ac1cb8d3
VS
30681 grep -v '^ *+' conftest.er1 >conftest.err
30682 rm -f conftest.er1
30683 cat conftest.err >&5
a848cd7e
SC
30684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30685 (exit $ac_status); } &&
c9a66001 30686 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
30687 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30688 (eval $ac_try) 2>&5
30689 ac_status=$?
30690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30691 (exit $ac_status); }; } &&
30692 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
30693 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30694 (eval $ac_try) 2>&5
30695 ac_status=$?
30696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30697 (exit $ac_status); }; }; then
0ad5d837 30698 wx_cv_lib_motif2="yes"
a848cd7e
SC
30699else
30700 echo "$as_me: failed program was:" >&5
30701sed 's/^/| /' conftest.$ac_ext >&5
30702
0ad5d837
VZ
30703wx_cv_lib_motif2="no"
30704fi
30705rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30706fi
30707echo "$as_me:$LINENO: result: $wx_cv_lib_motif2" >&5
30708echo "${ECHO_T}$wx_cv_lib_motif2" >&6
30709 if test "$wx_cv_lib_motif2" = "yes"; then
30710 cat >>confdefs.h <<\_ACEOF
30711#define __WXMOTIF20__ 1
30712_ACEOF
a848cd7e 30713
0ad5d837
VZ
30714 else
30715 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
30716#define __WXMOTIF20__ 0
30717_ACEOF
30718
0ad5d837 30719 fi
2113bc77
MW
30720
30721 echo "$as_me:$LINENO: checking whether Motif is Lesstif" >&5
30722echo $ECHO_N "checking whether Motif is Lesstif... $ECHO_C" >&6
0ad5d837
VZ
30723if test "${wx_cv_lib_lesstif+set}" = set; then
30724 echo $ECHO_N "(cached) $ECHO_C" >&6
30725else
30726 cat >conftest.$ac_ext <<_ACEOF
2113bc77
MW
30727/* confdefs.h. */
30728_ACEOF
30729cat confdefs.h >>conftest.$ac_ext
30730cat >>conftest.$ac_ext <<_ACEOF
30731/* end confdefs.h. */
30732
0ad5d837 30733 #include <Xm/Xm.h>
2113bc77
MW
30734
30735int
30736main ()
30737{
30738
0ad5d837
VZ
30739 #if !defined(LesstifVersion) || LesstifVersion <= 0
30740 Not Lesstif
30741 #endif
2113bc77
MW
30742
30743 ;
30744 return 0;
30745}
30746_ACEOF
30747rm -f conftest.$ac_objext
30748if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30749 (eval $ac_compile) 2>conftest.er1
30750 ac_status=$?
30751 grep -v '^ *+' conftest.er1 >conftest.err
30752 rm -f conftest.er1
30753 cat conftest.err >&5
30754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30755 (exit $ac_status); } &&
c9a66001 30756 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
2113bc77
MW
30757 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30758 (eval $ac_try) 2>&5
30759 ac_status=$?
30760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30761 (exit $ac_status); }; } &&
30762 { ac_try='test -s conftest.$ac_objext'
30763 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30764 (eval $ac_try) 2>&5
30765 ac_status=$?
30766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30767 (exit $ac_status); }; }; then
0ad5d837 30768 wx_cv_lib_lesstif="yes"
2113bc77
MW
30769else
30770 echo "$as_me: failed program was:" >&5
30771sed 's/^/| /' conftest.$ac_ext >&5
30772
0ad5d837
VZ
30773wx_cv_lib_lesstif="no"
30774fi
30775rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2113bc77 30776
0ad5d837
VZ
30777fi
30778echo "$as_me:$LINENO: result: $wx_cv_lib_lesstif" >&5
30779echo "${ECHO_T}$wx_cv_lib_lesstif" >&6
30780 if test "$wx_cv_lib_lesstif" = "yes"; then
30781 cat >>confdefs.h <<\_ACEOF
30782#define __WXLESSTIF__ 1
30783_ACEOF
30784
30785 else
30786 cat >>confdefs.h <<\_ACEOF
2113bc77
MW
30787#define __WXLESSTIF__ 0
30788_ACEOF
30789
0ad5d837 30790 fi
2113bc77 30791
e56f4f9e 30792 CXXFLAGS=$save_CXXFLAGS
a848cd7e 30793
62fa8b3a 30794 GUI_TK_LIBRARY="$GUI_TK_LIBRARY${libsgm_link} -lXm${libp_link} -lXmu -lXext -lXt${libsm_ice_link} -lX11"
a848cd7e
SC
30795 TOOLKIT=MOTIF
30796 GUIDIST=MOTIF_DIST
30797 fi
30798
74b84332 30799 if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then
a848cd7e
SC
30800 if test "$wxUSE_LIBXPM" = "sys"; then
30801 echo "$as_me:$LINENO: checking for Xpm library" >&5
30802echo $ECHO_N "checking for Xpm library... $ECHO_C" >&6
30803
0ad5d837
VZ
30804 ac_find_libraries=
30805 for ac_dir in $SEARCH_LIB;
a848cd7e 30806 do
3eca31dc 30807 for ac_extension in a so sl dylib dll.a; do
a848cd7e
SC
30808 if test -f "$ac_dir/libXpm.$ac_extension"; then
30809 ac_find_libraries=$ac_dir
30810 break 2
30811 fi
30812 done
30813 done
30814
30815 if test "$ac_find_libraries" != "" ; then
30816
0ad5d837 30817 if test "$ac_find_libraries" = "default location"; then
a848cd7e
SC
30818 ac_path_to_link=""
30819 else
0ad5d837
VZ
30820 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
30821 result=$?
30822 if test $result = 0; then
30823 ac_path_to_link=""
30824 else
30825 ac_path_to_link=" -L$ac_find_libraries"
30826 fi
a848cd7e
SC
30827 fi
30828
30829 GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
0ad5d837
VZ
30830 echo "$as_me:$LINENO: result: found in $ac_find_libraries" >&5
30831echo "${ECHO_T}found in $ac_find_libraries" >&6
a848cd7e
SC
30832
30833 echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
30834echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6
30835if test "${wx_cv_x11_xpm_h+set}" = set; then
30836 echo $ECHO_N "(cached) $ECHO_C" >&6
30837else
30838
e56f4f9e
VZ
30839 save_CXXFLAGS=$CXXFLAGS
30840 CXXFLAGS="$TOOLKIT_INCLUDE $CXXFLAGS"
a848cd7e
SC
30841
30842 cat >conftest.$ac_ext <<_ACEOF
30843/* confdefs.h. */
30844_ACEOF
30845cat confdefs.h >>conftest.$ac_ext
30846cat >>conftest.$ac_ext <<_ACEOF
30847/* end confdefs.h. */
30848
30849 #include <X11/xpm.h>
30850
30851int
30852main ()
30853{
30854
30855 int version;
30856 version = XpmLibraryVersion();
30857
30858 ;
30859 return 0;
30860}
30861_ACEOF
30862rm -f conftest.$ac_objext
30863if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 30864 (eval $ac_compile) 2>conftest.er1
a848cd7e 30865 ac_status=$?
ac1cb8d3
VS
30866 grep -v '^ *+' conftest.er1 >conftest.err
30867 rm -f conftest.er1
30868 cat conftest.err >&5
a848cd7e
SC
30869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30870 (exit $ac_status); } &&
c9a66001 30871 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
30872 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30873 (eval $ac_try) 2>&5
30874 ac_status=$?
30875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30876 (exit $ac_status); }; } &&
30877 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
30878 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30879 (eval $ac_try) 2>&5
30880 ac_status=$?
30881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30882 (exit $ac_status); }; }; then
30883 wx_cv_x11_xpm_h=yes
30884else
30885 echo "$as_me: failed program was:" >&5
30886sed 's/^/| /' conftest.$ac_ext >&5
30887
30888wx_cv_x11_xpm_h=no
30889
30890fi
ac1cb8d3 30891rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 30892
e56f4f9e 30893 CXXFLAGS=$save_CXXFLAGS
a848cd7e
SC
30894
30895
30896fi
30897echo "$as_me:$LINENO: result: $wx_cv_x11_xpm_h" >&5
30898echo "${ECHO_T}$wx_cv_x11_xpm_h" >&6
30899
30900 if test $wx_cv_x11_xpm_h = "yes"; then
30901 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXpm"
30902 cat >>confdefs.h <<\_ACEOF
30903#define wxHAVE_LIB_XPM 1
30904_ACEOF
30905
30906 else
30907 { echo "$as_me:$LINENO: WARNING: built-in less efficient XPM decoder will be used" >&5
30908echo "$as_me: WARNING: built-in less efficient XPM decoder will be used" >&2;}
30909 fi
30910 fi
30911
30912 fi
30913
30914 echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
30915echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6
30916if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
30917 echo $ECHO_N "(cached) $ECHO_C" >&6
30918else
30919 ac_check_lib_save_LIBS=$LIBS
30920LIBS="-lXext $GUI_TK_LIBRARY -lX11 $LIBS"
30921cat >conftest.$ac_ext <<_ACEOF
30922/* confdefs.h. */
30923_ACEOF
30924cat confdefs.h >>conftest.$ac_ext
30925cat >>conftest.$ac_ext <<_ACEOF
30926/* end confdefs.h. */
30927
30928/* Override any gcc2 internal prototype to avoid an error. */
30929#ifdef __cplusplus
30930extern "C"
30931#endif
30932/* We use char because int might match the return type of a gcc2
30933 builtin and then its argument prototype would still apply. */
30934char XShapeQueryExtension ();
30935int
30936main ()
30937{
30938XShapeQueryExtension ();
30939 ;
30940 return 0;
30941}
30942_ACEOF
30943rm -f conftest.$ac_objext conftest$ac_exeext
30944if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 30945 (eval $ac_link) 2>conftest.er1
a848cd7e 30946 ac_status=$?
ac1cb8d3
VS
30947 grep -v '^ *+' conftest.er1 >conftest.err
30948 rm -f conftest.er1
30949 cat conftest.err >&5
a848cd7e
SC
30950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30951 (exit $ac_status); } &&
c9a66001 30952 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
30953 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30954 (eval $ac_try) 2>&5
30955 ac_status=$?
30956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30957 (exit $ac_status); }; } &&
30958 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
30959 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30960 (eval $ac_try) 2>&5
30961 ac_status=$?
30962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30963 (exit $ac_status); }; }; then
30964 ac_cv_lib_Xext_XShapeQueryExtension=yes
30965else
30966 echo "$as_me: failed program was:" >&5
30967sed 's/^/| /' conftest.$ac_ext >&5
30968
30969ac_cv_lib_Xext_XShapeQueryExtension=no
30970fi
ac1cb8d3
VS
30971rm -f conftest.err conftest.$ac_objext \
30972 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
30973LIBS=$ac_check_lib_save_LIBS
30974fi
30975echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
30976echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6
30977if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
30978
30979 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXext"
30980 wxHAVE_XEXT_LIB=1
30981
30982fi
30983
30984
30985 if test "$wxHAVE_XEXT_LIB" = 1; then
e56f4f9e
VZ
30986 save_CXXFLAGS="$CXXFLAGS"
30987 CXXFLAGS="$TOOLKIT_INCLUDE $CXXFLAGS"
a848cd7e
SC
30988
30989 echo "$as_me:$LINENO: checking for X11/extensions/shape.h" >&5
30990echo $ECHO_N "checking for X11/extensions/shape.h... $ECHO_C" >&6
30991 cat >conftest.$ac_ext <<_ACEOF
30992/* confdefs.h. */
30993_ACEOF
30994cat confdefs.h >>conftest.$ac_ext
30995cat >>conftest.$ac_ext <<_ACEOF
30996/* end confdefs.h. */
30997
30998 #include <X11/Xlib.h>
30999 #include <X11/extensions/shape.h>
31000
31001int
31002main ()
31003{
31004
31005 int dummy1, dummy2;
31006 XShapeQueryExtension((Display*)NULL,
31007 (int*)NULL, (int*)NULL);
31008
31009 ;
31010 return 0;
31011}
31012_ACEOF
31013rm -f conftest.$ac_objext
31014if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 31015 (eval $ac_compile) 2>conftest.er1
a848cd7e 31016 ac_status=$?
ac1cb8d3
VS
31017 grep -v '^ *+' conftest.er1 >conftest.err
31018 rm -f conftest.er1
31019 cat conftest.err >&5
a848cd7e
SC
31020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31021 (exit $ac_status); } &&
c9a66001 31022 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
31023 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31024 (eval $ac_try) 2>&5
31025 ac_status=$?
31026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31027 (exit $ac_status); }; } &&
31028 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
31029 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31030 (eval $ac_try) 2>&5
31031 ac_status=$?
31032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31033 (exit $ac_status); }; }; then
31034
31035 cat >>confdefs.h <<\_ACEOF
31036#define HAVE_XSHAPE 1
31037_ACEOF
31038
31039 echo "$as_me:$LINENO: result: found" >&5
31040echo "${ECHO_T}found" >&6
31041
31042else
31043 echo "$as_me: failed program was:" >&5
31044sed 's/^/| /' conftest.$ac_ext >&5
31045
31046
31047 echo "$as_me:$LINENO: result: not found" >&5
31048echo "${ECHO_T}not found" >&6
31049
31050fi
ac1cb8d3 31051rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e56f4f9e 31052 CXXFLAGS="$save_CXXFLAGS"
a848cd7e
SC
31053
31054 fi
31055 fi
31056
31057 if test "$wxUSE_MAC" = 1; then
31058 echo "$as_me:$LINENO: checking for compiler syntax to enable Pascal strings" >&5
31059echo $ECHO_N "checking for compiler syntax to enable Pascal strings... $ECHO_C" >&6
31060 if test "$GCC" = yes; then
31061 echo "$as_me:$LINENO: result: gcc" >&5
31062echo "${ECHO_T}gcc" >&6
31063 CPPFLAGS_PASCAL="-fpascal-strings"
31064 elif test "`echo $CXX | sed -e 's@.*/@@'`" = "xlC"; then
31065 echo "$as_me:$LINENO: result: xlc" >&5
31066echo "${ECHO_T}xlc" >&6
31067 CPPFLAGS_PASCAL="-qmacpstr"
31068 else
31069 echo "$as_me:$LINENO: result: none" >&5
31070echo "${ECHO_T}none" >&6
31071 fi
31072
1e9e8aba 31073 if test "x$wxUSE_UNIX" = "xyes"; then
c92ad099 31074 CPPFLAGS="$CPPFLAGS_PASCAL -I\${top_srcdir}/src/mac/carbon/morefilex -I/Developer/Headers/FlatCarbon $CPPFLAGS"
1e9e8aba 31075 else
c92ad099 31076 CPPFLAGS="$CPPFLAGS_PASCAL -I\${top_srcdir}/src/mac/carbon/morefilex -DTARGET_CARBON $CPPFLAGS"
1e9e8aba 31077 fi
a848cd7e 31078
a848cd7e
SC
31079 TOOLKIT=MAC
31080 GUIDIST=MACX_DIST
dd21ced8 31081 WXBASEPORT="_carbon"
a848cd7e
SC
31082 fi
31083
31084 if test "$wxUSE_COCOA" = 1; then
a848cd7e
SC
31085 TOOLKIT=COCOA
31086 GUIDIST=COCOA_DIST
31087 fi
31088
31089 if test "$wxUSE_PM" = 1; then
31090 TOOLKIT=PM
de59c161
RD
31091 GUIDIST=PM_DIST
31092 echo "$as_me:$LINENO: checking for type SPBCDATA" >&5
31093echo $ECHO_N "checking for type SPBCDATA... $ECHO_C" >&6
31094if test "${wx_cv_spbcdata+set}" = set; then
31095 echo $ECHO_N "(cached) $ECHO_C" >&6
31096else
31097
31098 cat >conftest.$ac_ext <<_ACEOF
de59c161
RD
31099/* confdefs.h. */
31100_ACEOF
31101cat confdefs.h >>conftest.$ac_ext
31102cat >>conftest.$ac_ext <<_ACEOF
31103/* end confdefs.h. */
31104
31105 #define INCL_PM
31106 #include <os2.h>
31107
31108int
31109main ()
31110{
31111
31112 SPBCDATA test;
31113
31114 ;
31115 return 0;
31116}
31117_ACEOF
31118rm -f conftest.$ac_objext
31119if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 31120 (eval $ac_compile) 2>conftest.er1
de59c161 31121 ac_status=$?
ac1cb8d3
VS
31122 grep -v '^ *+' conftest.er1 >conftest.err
31123 rm -f conftest.er1
31124 cat conftest.err >&5
de59c161
RD
31125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31126 (exit $ac_status); } &&
c9a66001 31127 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
31128 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31129 (eval $ac_try) 2>&5
31130 ac_status=$?
31131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31132 (exit $ac_status); }; } &&
31133 { ac_try='test -s conftest.$ac_objext'
de59c161
RD
31134 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31135 (eval $ac_try) 2>&5
31136 ac_status=$?
31137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31138 (exit $ac_status); }; }; then
31139 wx_cv_spbcdata=yes
31140else
31141 echo "$as_me: failed program was:" >&5
31142sed 's/^/| /' conftest.$ac_ext >&5
31143
31144wx_cv_spbcdata=no
31145
31146fi
ac1cb8d3 31147rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
de59c161
RD
31148
31149
31150fi
31151echo "$as_me:$LINENO: result: $wx_cv_spbcdata" >&5
31152echo "${ECHO_T}$wx_cv_spbcdata" >&6
31153
31154 if test $wx_cv_spbcdata = "yes"; then
31155 cat >>confdefs.h <<\_ACEOF
31156#define HAVE_SPBCDATA 1
31157_ACEOF
31158
31159 fi
a848cd7e
SC
31160 fi
31161
31162 if test "$TOOLKIT" = "PM" ; then
31163 TOOLKIT_DIR="os2"
31164 else
31165 TOOLKIT_DIR=`echo ${TOOLKIT} | tr "[A-Z]" "[a-z]"`
31166 fi
31167
a848cd7e 31168 if test "$wxUSE_UNIVERSAL" = "yes"; then
a848cd7e
SC
31169 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXUNIVERSAL__"
31170 WIDGET_SET=univ
a848cd7e
SC
31171 fi
31172
31173 GUIDIST="${GUIDIST} SAMPLES_DIST DEMOS_DIST UTILS_DIST MISC_DIST"
31174 DISTDIR="wx\$(TOOLKIT)"
31175else
31176 USE_GUI=0
31177
31178 TOOLKIT_DIR="base"
31179
31180 if test "$USE_WIN32" = 1 ; then
a848cd7e 31181 TOOLKIT="MSW"
a848cd7e
SC
31182 fi
31183
a848cd7e
SC
31184 GUIDIST="BASE_DIST"
31185 DISTDIR="wxBase"
31186fi
31187
31188
d12aef51
VZ
31189if test "$wxUSE_GUI" = "yes"; then
31190 if test "$wxUSE_UNIX" = "yes" -a "$wxUSE_PM" != 1; then
31191
31192for ac_header in X11/Xlib.h
31193do
31194as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
31195if eval "test \"\${$as_ac_Header+set}\" = set"; then
31196 echo "$as_me:$LINENO: checking for $ac_header" >&5
31197echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
31198if eval "test \"\${$as_ac_Header+set}\" = set"; then
31199 echo $ECHO_N "(cached) $ECHO_C" >&6
31200fi
31201echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
31202echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
31203else
31204 # Is the header compilable?
31205echo "$as_me:$LINENO: checking $ac_header usability" >&5
31206echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
31207cat >conftest.$ac_ext <<_ACEOF
31208/* confdefs.h. */
31209_ACEOF
31210cat confdefs.h >>conftest.$ac_ext
31211cat >>conftest.$ac_ext <<_ACEOF
31212/* end confdefs.h. */
31213$ac_includes_default
31214#include <$ac_header>
31215_ACEOF
31216rm -f conftest.$ac_objext
31217if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31218 (eval $ac_compile) 2>conftest.er1
31219 ac_status=$?
31220 grep -v '^ *+' conftest.er1 >conftest.err
31221 rm -f conftest.er1
31222 cat conftest.err >&5
31223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31224 (exit $ac_status); } &&
c9a66001 31225 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
d12aef51
VZ
31226 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31227 (eval $ac_try) 2>&5
31228 ac_status=$?
31229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31230 (exit $ac_status); }; } &&
31231 { ac_try='test -s conftest.$ac_objext'
31232 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31233 (eval $ac_try) 2>&5
31234 ac_status=$?
31235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31236 (exit $ac_status); }; }; then
31237 ac_header_compiler=yes
31238else
31239 echo "$as_me: failed program was:" >&5
31240sed 's/^/| /' conftest.$ac_ext >&5
31241
31242ac_header_compiler=no
31243fi
31244rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
31245echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31246echo "${ECHO_T}$ac_header_compiler" >&6
31247
31248# Is the header present?
31249echo "$as_me:$LINENO: checking $ac_header presence" >&5
31250echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
31251cat >conftest.$ac_ext <<_ACEOF
31252/* confdefs.h. */
31253_ACEOF
31254cat confdefs.h >>conftest.$ac_ext
31255cat >>conftest.$ac_ext <<_ACEOF
31256/* end confdefs.h. */
31257#include <$ac_header>
31258_ACEOF
31259if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
31260 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
31261 ac_status=$?
31262 grep -v '^ *+' conftest.er1 >conftest.err
31263 rm -f conftest.er1
31264 cat conftest.err >&5
31265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31266 (exit $ac_status); } >/dev/null; then
31267 if test -s conftest.err; then
5d7b7554
VZ
31268 ac_cpp_err=$ac_cxx_preproc_warn_flag
31269 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
d12aef51
VZ
31270 else
31271 ac_cpp_err=
31272 fi
31273else
31274 ac_cpp_err=yes
31275fi
31276if test -z "$ac_cpp_err"; then
31277 ac_header_preproc=yes
31278else
31279 echo "$as_me: failed program was:" >&5
31280sed 's/^/| /' conftest.$ac_ext >&5
31281
31282 ac_header_preproc=no
31283fi
31284rm -f conftest.err conftest.$ac_ext
31285echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31286echo "${ECHO_T}$ac_header_preproc" >&6
31287
31288# So? What about this header?
5d7b7554 31289case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
d12aef51
VZ
31290 yes:no: )
31291 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
31292echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
31293 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
31294echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
31295 ac_header_preproc=yes
31296 ;;
31297 no:yes:* )
31298 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
31299echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
31300 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
31301echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
31302 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
31303echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
31304 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
31305echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
31306 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
31307echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
31308 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
31309echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
31310 (
31311 cat <<\_ASBOX
31312## ----------------------------------------- ##
31313## Report this to wx-dev@lists.wxwidgets.org ##
31314## ----------------------------------------- ##
31315_ASBOX
31316 ) |
31317 sed "s/^/$as_me: WARNING: /" >&2
31318 ;;
31319esac
31320echo "$as_me:$LINENO: checking for $ac_header" >&5
31321echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
31322if eval "test \"\${$as_ac_Header+set}\" = set"; then
31323 echo $ECHO_N "(cached) $ECHO_C" >&6
31324else
31325 eval "$as_ac_Header=\$ac_header_preproc"
31326fi
31327echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
31328echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
31329
31330fi
31331if test `eval echo '${'$as_ac_Header'}'` = yes; then
31332 cat >>confdefs.h <<_ACEOF
31333#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
31334_ACEOF
31335
31336fi
31337
31338done
31339
31340
31341for ac_header in X11/XKBlib.h
31342do
31343as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
31344echo "$as_me:$LINENO: checking for $ac_header" >&5
31345echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
31346if eval "test \"\${$as_ac_Header+set}\" = set"; then
31347 echo $ECHO_N "(cached) $ECHO_C" >&6
31348else
31349 cat >conftest.$ac_ext <<_ACEOF
31350/* confdefs.h. */
31351_ACEOF
31352cat confdefs.h >>conftest.$ac_ext
31353cat >>conftest.$ac_ext <<_ACEOF
31354/* end confdefs.h. */
31355
31356 #if HAVE_X11_XLIB_H
31357 #include <X11/Xlib.h>
31358 #endif
31359
31360
31361#include <$ac_header>
31362_ACEOF
31363rm -f conftest.$ac_objext
31364if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31365 (eval $ac_compile) 2>conftest.er1
31366 ac_status=$?
31367 grep -v '^ *+' conftest.er1 >conftest.err
31368 rm -f conftest.er1
31369 cat conftest.err >&5
31370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31371 (exit $ac_status); } &&
c9a66001 31372 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
d12aef51
VZ
31373 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31374 (eval $ac_try) 2>&5
31375 ac_status=$?
31376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31377 (exit $ac_status); }; } &&
31378 { ac_try='test -s conftest.$ac_objext'
31379 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31380 (eval $ac_try) 2>&5
31381 ac_status=$?
31382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31383 (exit $ac_status); }; }; then
31384 eval "$as_ac_Header=yes"
31385else
31386 echo "$as_me: failed program was:" >&5
31387sed 's/^/| /' conftest.$ac_ext >&5
31388
31389eval "$as_ac_Header=no"
31390fi
31391rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
31392fi
31393echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
31394echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
31395if test `eval echo '${'$as_ac_Header'}'` = yes; then
31396 cat >>confdefs.h <<_ACEOF
31397#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
31398_ACEOF
31399
31400fi
31401
31402done
31403
31404 fi
31405fi
31406
a848cd7e
SC
31407
31408
31409IODBC_C_SRC=""
31410
31411
31412if test "$TOOLKIT" != "MSW" ; then
31413
31414 if test "$wxUSE_ODBC" = "sys" -o "$wxUSE_ODBC" = "yes" ; then
31415
31416 if test "${ac_cv_header_sql_h+set}" = set; then
31417 echo "$as_me:$LINENO: checking for sql.h" >&5
31418echo $ECHO_N "checking for sql.h... $ECHO_C" >&6
31419if test "${ac_cv_header_sql_h+set}" = set; then
31420 echo $ECHO_N "(cached) $ECHO_C" >&6
31421fi
31422echo "$as_me:$LINENO: result: $ac_cv_header_sql_h" >&5
31423echo "${ECHO_T}$ac_cv_header_sql_h" >&6
31424else
31425 # Is the header compilable?
31426echo "$as_me:$LINENO: checking sql.h usability" >&5
31427echo $ECHO_N "checking sql.h usability... $ECHO_C" >&6
31428cat >conftest.$ac_ext <<_ACEOF
31429/* confdefs.h. */
31430_ACEOF
31431cat confdefs.h >>conftest.$ac_ext
31432cat >>conftest.$ac_ext <<_ACEOF
31433/* end confdefs.h. */
31434$ac_includes_default
31435#include <sql.h>
31436_ACEOF
31437rm -f conftest.$ac_objext
31438if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 31439 (eval $ac_compile) 2>conftest.er1
a848cd7e 31440 ac_status=$?
ac1cb8d3
VS
31441 grep -v '^ *+' conftest.er1 >conftest.err
31442 rm -f conftest.er1
31443 cat conftest.err >&5
a848cd7e
SC
31444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31445 (exit $ac_status); } &&
c9a66001 31446 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
31447 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31448 (eval $ac_try) 2>&5
31449 ac_status=$?
31450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31451 (exit $ac_status); }; } &&
31452 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
31453 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31454 (eval $ac_try) 2>&5
31455 ac_status=$?
31456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31457 (exit $ac_status); }; }; then
31458 ac_header_compiler=yes
31459else
31460 echo "$as_me: failed program was:" >&5
31461sed 's/^/| /' conftest.$ac_ext >&5
31462
31463ac_header_compiler=no
31464fi
ac1cb8d3 31465rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
31466echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31467echo "${ECHO_T}$ac_header_compiler" >&6
31468
31469# Is the header present?
31470echo "$as_me:$LINENO: checking sql.h presence" >&5
31471echo $ECHO_N "checking sql.h presence... $ECHO_C" >&6
31472cat >conftest.$ac_ext <<_ACEOF
31473/* confdefs.h. */
31474_ACEOF
31475cat confdefs.h >>conftest.$ac_ext
31476cat >>conftest.$ac_ext <<_ACEOF
31477/* end confdefs.h. */
31478#include <sql.h>
31479_ACEOF
31480if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
31481 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
31482 ac_status=$?
31483 grep -v '^ *+' conftest.er1 >conftest.err
31484 rm -f conftest.er1
31485 cat conftest.err >&5
31486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31487 (exit $ac_status); } >/dev/null; then
31488 if test -s conftest.err; then
5d7b7554
VZ
31489 ac_cpp_err=$ac_cxx_preproc_warn_flag
31490 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
31491 else
31492 ac_cpp_err=
31493 fi
31494else
31495 ac_cpp_err=yes
31496fi
31497if test -z "$ac_cpp_err"; then
31498 ac_header_preproc=yes
31499else
31500 echo "$as_me: failed program was:" >&5
31501sed 's/^/| /' conftest.$ac_ext >&5
31502
31503 ac_header_preproc=no
31504fi
31505rm -f conftest.err conftest.$ac_ext
31506echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31507echo "${ECHO_T}$ac_header_preproc" >&6
31508
31509# So? What about this header?
5d7b7554 31510case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
ac1cb8d3 31511 yes:no: )
a848cd7e
SC
31512 { echo "$as_me:$LINENO: WARNING: sql.h: accepted by the compiler, rejected by the preprocessor!" >&5
31513echo "$as_me: WARNING: sql.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
31514 { echo "$as_me:$LINENO: WARNING: sql.h: proceeding with the compiler's result" >&5
31515echo "$as_me: WARNING: sql.h: proceeding with the compiler's result" >&2;}
31516 ac_header_preproc=yes
a848cd7e 31517 ;;
ac1cb8d3 31518 no:yes:* )
a848cd7e
SC
31519 { echo "$as_me:$LINENO: WARNING: sql.h: present but cannot be compiled" >&5
31520echo "$as_me: WARNING: sql.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
31521 { echo "$as_me:$LINENO: WARNING: sql.h: check for missing prerequisite headers?" >&5
31522echo "$as_me: WARNING: sql.h: check for missing prerequisite headers?" >&2;}
31523 { echo "$as_me:$LINENO: WARNING: sql.h: see the Autoconf documentation" >&5
31524echo "$as_me: WARNING: sql.h: see the Autoconf documentation" >&2;}
31525 { echo "$as_me:$LINENO: WARNING: sql.h: section \"Present But Cannot Be Compiled\"" >&5
31526echo "$as_me: WARNING: sql.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
31527 { echo "$as_me:$LINENO: WARNING: sql.h: proceeding with the preprocessor's result" >&5
31528echo "$as_me: WARNING: sql.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
31529 { echo "$as_me:$LINENO: WARNING: sql.h: in the future, the compiler will take precedence" >&5
31530echo "$as_me: WARNING: sql.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
31531 (
31532 cat <<\_ASBOX
ac1cb8d3
VS
31533## ----------------------------------------- ##
31534## Report this to wx-dev@lists.wxwidgets.org ##
31535## ----------------------------------------- ##
a848cd7e
SC
31536_ASBOX
31537 ) |
31538 sed "s/^/$as_me: WARNING: /" >&2
31539 ;;
31540esac
31541echo "$as_me:$LINENO: checking for sql.h" >&5
31542echo $ECHO_N "checking for sql.h... $ECHO_C" >&6
31543if test "${ac_cv_header_sql_h+set}" = set; then
31544 echo $ECHO_N "(cached) $ECHO_C" >&6
31545else
31546 ac_cv_header_sql_h=$ac_header_preproc
31547fi
31548echo "$as_me:$LINENO: result: $ac_cv_header_sql_h" >&5
31549echo "${ECHO_T}$ac_cv_header_sql_h" >&6
31550
31551fi
31552if test $ac_cv_header_sql_h = yes; then
31553 found_sql_h=1
31554fi
31555
31556
31557 if test "x$found_sql_h" = "x1" ; then
31558 echo "$as_me:$LINENO: checking for SQLAllocEnv in -liodbc" >&5
31559echo $ECHO_N "checking for SQLAllocEnv in -liodbc... $ECHO_C" >&6
31560if test "${ac_cv_lib_iodbc_SQLAllocEnv+set}" = set; then
31561 echo $ECHO_N "(cached) $ECHO_C" >&6
31562else
31563 ac_check_lib_save_LIBS=$LIBS
31564LIBS="-liodbc $LIBS"
31565cat >conftest.$ac_ext <<_ACEOF
31566/* confdefs.h. */
31567_ACEOF
31568cat confdefs.h >>conftest.$ac_ext
31569cat >>conftest.$ac_ext <<_ACEOF
31570/* end confdefs.h. */
31571
31572/* Override any gcc2 internal prototype to avoid an error. */
31573#ifdef __cplusplus
31574extern "C"
31575#endif
31576/* We use char because int might match the return type of a gcc2
31577 builtin and then its argument prototype would still apply. */
31578char SQLAllocEnv ();
31579int
31580main ()
31581{
31582SQLAllocEnv ();
31583 ;
31584 return 0;
31585}
31586_ACEOF
31587rm -f conftest.$ac_objext conftest$ac_exeext
31588if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 31589 (eval $ac_link) 2>conftest.er1
a848cd7e 31590 ac_status=$?
ac1cb8d3
VS
31591 grep -v '^ *+' conftest.er1 >conftest.err
31592 rm -f conftest.er1
31593 cat conftest.err >&5
a848cd7e
SC
31594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31595 (exit $ac_status); } &&
c9a66001 31596 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
31597 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31598 (eval $ac_try) 2>&5
31599 ac_status=$?
31600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31601 (exit $ac_status); }; } &&
31602 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
31603 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31604 (eval $ac_try) 2>&5
31605 ac_status=$?
31606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31607 (exit $ac_status); }; }; then
31608 ac_cv_lib_iodbc_SQLAllocEnv=yes
31609else
31610 echo "$as_me: failed program was:" >&5
31611sed 's/^/| /' conftest.$ac_ext >&5
31612
31613ac_cv_lib_iodbc_SQLAllocEnv=no
31614fi
ac1cb8d3
VS
31615rm -f conftest.err conftest.$ac_objext \
31616 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
31617LIBS=$ac_check_lib_save_LIBS
31618fi
31619echo "$as_me:$LINENO: result: $ac_cv_lib_iodbc_SQLAllocEnv" >&5
31620echo "${ECHO_T}$ac_cv_lib_iodbc_SQLAllocEnv" >&6
31621if test $ac_cv_lib_iodbc_SQLAllocEnv = yes; then
31622 ODBC_LINK=" -liodbc"
31623else
31624
31625 echo "$as_me:$LINENO: checking for SQLAllocEnv in -lunixodbc" >&5
31626echo $ECHO_N "checking for SQLAllocEnv in -lunixodbc... $ECHO_C" >&6
31627if test "${ac_cv_lib_unixodbc_SQLAllocEnv+set}" = set; then
31628 echo $ECHO_N "(cached) $ECHO_C" >&6
31629else
31630 ac_check_lib_save_LIBS=$LIBS
31631LIBS="-lunixodbc $LIBS"
31632cat >conftest.$ac_ext <<_ACEOF
31633/* confdefs.h. */
31634_ACEOF
31635cat confdefs.h >>conftest.$ac_ext
31636cat >>conftest.$ac_ext <<_ACEOF
31637/* end confdefs.h. */
31638
31639/* Override any gcc2 internal prototype to avoid an error. */
31640#ifdef __cplusplus
31641extern "C"
31642#endif
31643/* We use char because int might match the return type of a gcc2
31644 builtin and then its argument prototype would still apply. */
31645char SQLAllocEnv ();
31646int
31647main ()
31648{
31649SQLAllocEnv ();
31650 ;
31651 return 0;
31652}
31653_ACEOF
31654rm -f conftest.$ac_objext conftest$ac_exeext
31655if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 31656 (eval $ac_link) 2>conftest.er1
a848cd7e 31657 ac_status=$?
ac1cb8d3
VS
31658 grep -v '^ *+' conftest.er1 >conftest.err
31659 rm -f conftest.er1
31660 cat conftest.err >&5
a848cd7e
SC
31661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31662 (exit $ac_status); } &&
c9a66001 31663 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
31664 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31665 (eval $ac_try) 2>&5
31666 ac_status=$?
31667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31668 (exit $ac_status); }; } &&
31669 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
31670 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31671 (eval $ac_try) 2>&5
31672 ac_status=$?
31673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31674 (exit $ac_status); }; }; then
31675 ac_cv_lib_unixodbc_SQLAllocEnv=yes
31676else
31677 echo "$as_me: failed program was:" >&5
31678sed 's/^/| /' conftest.$ac_ext >&5
31679
31680ac_cv_lib_unixodbc_SQLAllocEnv=no
31681fi
ac1cb8d3
VS
31682rm -f conftest.err conftest.$ac_objext \
31683 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
31684LIBS=$ac_check_lib_save_LIBS
31685fi
31686echo "$as_me:$LINENO: result: $ac_cv_lib_unixodbc_SQLAllocEnv" >&5
31687echo "${ECHO_T}$ac_cv_lib_unixodbc_SQLAllocEnv" >&6
31688if test $ac_cv_lib_unixodbc_SQLAllocEnv = yes; then
31689 ODBC_LINK=" -lunixodbc"
31690else
31691
31692 echo "$as_me:$LINENO: checking for SQLAllocEnv in -lodbc" >&5
31693echo $ECHO_N "checking for SQLAllocEnv in -lodbc... $ECHO_C" >&6
31694if test "${ac_cv_lib_odbc_SQLAllocEnv+set}" = set; then
31695 echo $ECHO_N "(cached) $ECHO_C" >&6
31696else
31697 ac_check_lib_save_LIBS=$LIBS
31698LIBS="-lodbc $LIBS"
31699cat >conftest.$ac_ext <<_ACEOF
31700/* confdefs.h. */
31701_ACEOF
31702cat confdefs.h >>conftest.$ac_ext
31703cat >>conftest.$ac_ext <<_ACEOF
31704/* end confdefs.h. */
31705
31706/* Override any gcc2 internal prototype to avoid an error. */
31707#ifdef __cplusplus
31708extern "C"
31709#endif
31710/* We use char because int might match the return type of a gcc2
31711 builtin and then its argument prototype would still apply. */
31712char SQLAllocEnv ();
31713int
31714main ()
31715{
31716SQLAllocEnv ();
31717 ;
31718 return 0;
31719}
31720_ACEOF
31721rm -f conftest.$ac_objext conftest$ac_exeext
31722if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 31723 (eval $ac_link) 2>conftest.er1
a848cd7e 31724 ac_status=$?
ac1cb8d3
VS
31725 grep -v '^ *+' conftest.er1 >conftest.err
31726 rm -f conftest.er1
31727 cat conftest.err >&5
a848cd7e
SC
31728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31729 (exit $ac_status); } &&
c9a66001 31730 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
31731 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31732 (eval $ac_try) 2>&5
31733 ac_status=$?
31734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31735 (exit $ac_status); }; } &&
31736 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
31737 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31738 (eval $ac_try) 2>&5
31739 ac_status=$?
31740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31741 (exit $ac_status); }; }; then
31742 ac_cv_lib_odbc_SQLAllocEnv=yes
31743else
31744 echo "$as_me: failed program was:" >&5
31745sed 's/^/| /' conftest.$ac_ext >&5
31746
31747ac_cv_lib_odbc_SQLAllocEnv=no
31748fi
ac1cb8d3
VS
31749rm -f conftest.err conftest.$ac_objext \
31750 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
31751LIBS=$ac_check_lib_save_LIBS
31752fi
31753echo "$as_me:$LINENO: result: $ac_cv_lib_odbc_SQLAllocEnv" >&5
31754echo "${ECHO_T}$ac_cv_lib_odbc_SQLAllocEnv" >&6
31755if test $ac_cv_lib_odbc_SQLAllocEnv = yes; then
31756 ODBC_LINK=" -lodbc"
31757fi
31758
31759
31760fi
31761
31762
31763fi
31764
31765 fi
31766 if test "x$ODBC_LINK" = "x" ; then
31767 if test "$wxUSE_ODBC" = "sys" ; then
31768 { { echo "$as_me:$LINENO: error: system ODBC library not found! Use --with-odbc=builtin to use built-in version" >&5
31769echo "$as_me: error: system ODBC library not found! Use --with-odbc=builtin to use built-in version" >&2;}
31770 { (exit 1); exit 1; }; }
31771 else
31772 { echo "$as_me:$LINENO: WARNING: system ODBC library not found, will use built-in instead" >&5
31773echo "$as_me: WARNING: system ODBC library not found, will use built-in instead" >&2;}
31774 wxUSE_ODBC=builtin
31775 fi
31776 else
31777 wxUSE_ODBC=sys
31778 fi
31779 fi
a848cd7e 31780
2da0c077
RD
31781 if test "$wxUSE_ODBC" = "builtin" ; then
31782 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
31783#define wxUSE_BUILTIN_IODBC 1
31784_ACEOF
31785
a848cd7e
SC
31786 fi
31787fi
31788
2da0c077
RD
31789if test "$wxUSE_ODBC" != "no" ; then
31790 cat >>confdefs.h <<\_ACEOF
31791#define wxUSE_ODBC 1
31792_ACEOF
31793
31794 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS db"
31795
5ff751d6 31796 WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS -D_IODBC_"
2da0c077 31797fi
a848cd7e 31798
01cb68df 31799
a848cd7e 31800if test "$wxUSE_DISPLAY" = "yes"; then
2a5d7a98 31801 if test "$wxUSE_UNIX" = "yes" -a "$wxUSE_MAC" != 1 -a "$wxUSE_COCOA" != 1; then
a848cd7e
SC
31802 echo "$as_me:$LINENO: checking for Xinerama" >&5
31803echo $ECHO_N "checking for Xinerama... $ECHO_C" >&6
31804
0ad5d837
VZ
31805 ac_find_libraries=
31806 for ac_dir in $SEARCH_LIB;
31807 do
31808 for ac_extension in a so sl dylib dll.a; do
31809 if test -f "$ac_dir/libXinerama.$ac_extension"; then
31810 ac_find_libraries=$ac_dir
31811 break 2
31812 fi
31813 done
31814 done
31815
a848cd7e
SC
31816 if test "$ac_find_libraries" != "" ; then
31817
0ad5d837 31818 if test "$ac_find_libraries" = "default location"; then
a848cd7e
SC
31819 ac_path_to_link=""
31820 else
0ad5d837
VZ
31821 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
31822 result=$?
31823 if test $result = 0; then
31824 ac_path_to_link=""
31825 else
31826 ac_path_to_link=" -L$ac_find_libraries"
31827 fi
a848cd7e
SC
31828 fi
31829
31830 if test "$ac_path_to_link" != " -L/usr/lib" ; then
31831 LDFLAGS="$LDFLAGS $ac_path_to_link"
31832 fi
31833 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXinerama"
31834 echo "$as_me:$LINENO: result: yes" >&5
31835echo "${ECHO_T}yes" >&6
31836
31837 echo "$as_me:$LINENO: checking for Xxf86vm extension" >&5
31838echo $ECHO_N "checking for Xxf86vm extension... $ECHO_C" >&6
31839
0ad5d837
VZ
31840 ac_find_libraries=
31841 for ac_dir in $SEARCH_LIB;
a848cd7e 31842 do
3eca31dc 31843 for ac_extension in a so sl dylib dll.a; do
a848cd7e
SC
31844 if test -f "$ac_dir/libXxf86vm.$ac_extension"; then
31845 ac_find_libraries=$ac_dir
31846 break 2
31847 fi
31848 done
31849 done
31850
31851 if test "$ac_find_libraries" != "" ; then
31852 echo "$as_me:$LINENO: result: yes" >&5
31853echo "${ECHO_T}yes" >&6
31854
31855for ac_header in X11/extensions/xf86vmode.h
31856do
31857as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
31858echo "$as_me:$LINENO: checking for $ac_header" >&5
31859echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
31860if eval "test \"\${$as_ac_Header+set}\" = set"; then
31861 echo $ECHO_N "(cached) $ECHO_C" >&6
31862else
31863 cat >conftest.$ac_ext <<_ACEOF
31864/* confdefs.h. */
31865_ACEOF
31866cat confdefs.h >>conftest.$ac_ext
31867cat >>conftest.$ac_ext <<_ACEOF
31868/* end confdefs.h. */
31869
31870 #if HAVE_X11_XLIB_H
31871 #include <X11/Xlib.h>
31872 #endif
31873
31874
31875#include <$ac_header>
31876_ACEOF
31877rm -f conftest.$ac_objext
31878if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 31879 (eval $ac_compile) 2>conftest.er1
a848cd7e 31880 ac_status=$?
ac1cb8d3
VS
31881 grep -v '^ *+' conftest.er1 >conftest.err
31882 rm -f conftest.er1
31883 cat conftest.err >&5
a848cd7e
SC
31884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31885 (exit $ac_status); } &&
c9a66001 31886 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
31887 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31888 (eval $ac_try) 2>&5
31889 ac_status=$?
31890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31891 (exit $ac_status); }; } &&
31892 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
31893 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31894 (eval $ac_try) 2>&5
31895 ac_status=$?
31896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31897 (exit $ac_status); }; }; then
31898 eval "$as_ac_Header=yes"
31899else
31900 echo "$as_me: failed program was:" >&5
31901sed 's/^/| /' conftest.$ac_ext >&5
31902
31903eval "$as_ac_Header=no"
31904fi
ac1cb8d3 31905rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
31906fi
31907echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
31908echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
31909if test `eval echo '${'$as_ac_Header'}'` = yes; then
31910 cat >>confdefs.h <<_ACEOF
31911#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
31912_ACEOF
31913
31914 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXxf86vm"
31915
31916fi
31917
31918done
31919
31920 else
31921 echo "$as_me:$LINENO: result: no" >&5
31922echo "${ECHO_T}no" >&6
31923 fi
31924
31925 else
31926 echo "$as_me:$LINENO: result: no" >&5
31927echo "${ECHO_T}no" >&6
dcc1b6ad
VS
31928 { echo "$as_me:$LINENO: WARNING: Xinerama not found; disabling wxDisplay" >&5
31929echo "$as_me: WARNING: Xinerama not found; disabling wxDisplay" >&2;}
a848cd7e
SC
31930 wxUSE_DISPLAY="no"
31931 fi
01cb68df
RG
31932 elif test "$wxUSE_MSW" = 1; then
31933
e5efa97e 31934for ac_header in ddraw.h
01cb68df
RG
31935do
31936as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5294a27e 31937echo "$as_me:$LINENO: checking for $ac_header" >&5
01cb68df
RG
31938echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
31939if eval "test \"\${$as_ac_Header+set}\" = set"; then
31940 echo $ECHO_N "(cached) $ECHO_C" >&6
01cb68df 31941else
5294a27e 31942 cat >conftest.$ac_ext <<_ACEOF
01cb68df
RG
31943/* confdefs.h. */
31944_ACEOF
31945cat confdefs.h >>conftest.$ac_ext
31946cat >>conftest.$ac_ext <<_ACEOF
31947/* end confdefs.h. */
5294a27e
VZ
31948#include <windows.h>
31949
01cb68df
RG
31950#include <$ac_header>
31951_ACEOF
31952rm -f conftest.$ac_objext
31953if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 31954 (eval $ac_compile) 2>conftest.er1
01cb68df 31955 ac_status=$?
ac1cb8d3
VS
31956 grep -v '^ *+' conftest.er1 >conftest.err
31957 rm -f conftest.er1
31958 cat conftest.err >&5
01cb68df
RG
31959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31960 (exit $ac_status); } &&
c9a66001 31961 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
31962 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31963 (eval $ac_try) 2>&5
31964 ac_status=$?
31965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31966 (exit $ac_status); }; } &&
31967 { ac_try='test -s conftest.$ac_objext'
01cb68df
RG
31968 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31969 (eval $ac_try) 2>&5
31970 ac_status=$?
31971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31972 (exit $ac_status); }; }; then
5294a27e 31973 eval "$as_ac_Header=yes"
01cb68df
RG
31974else
31975 echo "$as_me: failed program was:" >&5
31976sed 's/^/| /' conftest.$ac_ext >&5
31977
5294a27e 31978eval "$as_ac_Header=no"
01cb68df 31979fi
ac1cb8d3 31980rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
01cb68df
RG
31981fi
31982echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
31983echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
01cb68df
RG
31984if test `eval echo '${'$as_ac_Header'}'` = yes; then
31985 cat >>confdefs.h <<_ACEOF
31986#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
31987_ACEOF
31988
01cb68df
RG
31989fi
31990
31991done
31992
a848cd7e
SC
31993 fi
31994fi
31995
31996
31997USE_OPENGL=0
31998if test "$wxUSE_OPENGL" = "yes"; then
31999 if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = "1"; then
32000 OPENGL_LIBS="-framework OpenGL -framework AGL"
32001 elif test "$wxUSE_MSW" = 1; then
32002 OPENGL_LIBS="-lopengl32 -lglu32"
32003 else
32004
32005
32006ac_find_includes=
32007for ac_dir in $SEARCH_INCLUDE /usr/include;
32008 do
32009 if test -f "$ac_dir/GL/gl.h"; then
32010 ac_find_includes=$ac_dir
32011 break
32012 fi
32013 done
32014
32015 if test "$ac_find_includes" != "" ; then
32016 echo "$as_me:$LINENO: result: found in $ac_find_includes" >&5
32017echo "${ECHO_T}found in $ac_find_includes" >&6
32018
32019 if test "x$ac_find_includes" = "x/usr/include"; then
32020 ac_path_to_include=""
32021 else
32022 echo "$CPPFLAGS" | grep "\-I$ac_find_includes" > /dev/null
32023 result=$?
32024 if test $result = 0; then
32025 ac_path_to_include=""
32026 else
32027 ac_path_to_include=" -I$ac_find_includes"
32028 fi
32029 fi
32030
c92ad099 32031 CPPFLAGS="$ac_path_to_include $CPPFLAGS"
a848cd7e
SC
32032 fi
32033
32034 if test "${ac_cv_header_GL_gl_h+set}" = set; then
32035 echo "$as_me:$LINENO: checking for GL/gl.h" >&5
32036echo $ECHO_N "checking for GL/gl.h... $ECHO_C" >&6
32037if test "${ac_cv_header_GL_gl_h+set}" = set; then
32038 echo $ECHO_N "(cached) $ECHO_C" >&6
32039fi
32040echo "$as_me:$LINENO: result: $ac_cv_header_GL_gl_h" >&5
32041echo "${ECHO_T}$ac_cv_header_GL_gl_h" >&6
32042else
32043 # Is the header compilable?
32044echo "$as_me:$LINENO: checking GL/gl.h usability" >&5
32045echo $ECHO_N "checking GL/gl.h usability... $ECHO_C" >&6
32046cat >conftest.$ac_ext <<_ACEOF
32047/* confdefs.h. */
32048_ACEOF
32049cat confdefs.h >>conftest.$ac_ext
32050cat >>conftest.$ac_ext <<_ACEOF
32051/* end confdefs.h. */
32052$ac_includes_default
32053#include <GL/gl.h>
32054_ACEOF
32055rm -f conftest.$ac_objext
32056if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 32057 (eval $ac_compile) 2>conftest.er1
a848cd7e 32058 ac_status=$?
ac1cb8d3
VS
32059 grep -v '^ *+' conftest.er1 >conftest.err
32060 rm -f conftest.er1
32061 cat conftest.err >&5
a848cd7e
SC
32062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32063 (exit $ac_status); } &&
c9a66001 32064 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
32065 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32066 (eval $ac_try) 2>&5
32067 ac_status=$?
32068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32069 (exit $ac_status); }; } &&
32070 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
32071 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32072 (eval $ac_try) 2>&5
32073 ac_status=$?
32074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32075 (exit $ac_status); }; }; then
32076 ac_header_compiler=yes
32077else
32078 echo "$as_me: failed program was:" >&5
32079sed 's/^/| /' conftest.$ac_ext >&5
32080
32081ac_header_compiler=no
32082fi
ac1cb8d3 32083rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
32084echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
32085echo "${ECHO_T}$ac_header_compiler" >&6
32086
32087# Is the header present?
32088echo "$as_me:$LINENO: checking GL/gl.h presence" >&5
32089echo $ECHO_N "checking GL/gl.h presence... $ECHO_C" >&6
32090cat >conftest.$ac_ext <<_ACEOF
32091/* confdefs.h. */
32092_ACEOF
32093cat confdefs.h >>conftest.$ac_ext
32094cat >>conftest.$ac_ext <<_ACEOF
32095/* end confdefs.h. */
32096#include <GL/gl.h>
32097_ACEOF
32098if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
32099 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
32100 ac_status=$?
32101 grep -v '^ *+' conftest.er1 >conftest.err
32102 rm -f conftest.er1
32103 cat conftest.err >&5
32104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32105 (exit $ac_status); } >/dev/null; then
32106 if test -s conftest.err; then
5d7b7554
VZ
32107 ac_cpp_err=$ac_cxx_preproc_warn_flag
32108 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
32109 else
32110 ac_cpp_err=
32111 fi
32112else
32113 ac_cpp_err=yes
32114fi
32115if test -z "$ac_cpp_err"; then
32116 ac_header_preproc=yes
32117else
32118 echo "$as_me: failed program was:" >&5
32119sed 's/^/| /' conftest.$ac_ext >&5
32120
32121 ac_header_preproc=no
32122fi
32123rm -f conftest.err conftest.$ac_ext
32124echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
32125echo "${ECHO_T}$ac_header_preproc" >&6
32126
32127# So? What about this header?
5d7b7554 32128case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
ac1cb8d3 32129 yes:no: )
a848cd7e
SC
32130 { echo "$as_me:$LINENO: WARNING: GL/gl.h: accepted by the compiler, rejected by the preprocessor!" >&5
32131echo "$as_me: WARNING: GL/gl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
32132 { echo "$as_me:$LINENO: WARNING: GL/gl.h: proceeding with the compiler's result" >&5
32133echo "$as_me: WARNING: GL/gl.h: proceeding with the compiler's result" >&2;}
32134 ac_header_preproc=yes
a848cd7e 32135 ;;
ac1cb8d3 32136 no:yes:* )
a848cd7e
SC
32137 { echo "$as_me:$LINENO: WARNING: GL/gl.h: present but cannot be compiled" >&5
32138echo "$as_me: WARNING: GL/gl.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
32139 { echo "$as_me:$LINENO: WARNING: GL/gl.h: check for missing prerequisite headers?" >&5
32140echo "$as_me: WARNING: GL/gl.h: check for missing prerequisite headers?" >&2;}
32141 { echo "$as_me:$LINENO: WARNING: GL/gl.h: see the Autoconf documentation" >&5
32142echo "$as_me: WARNING: GL/gl.h: see the Autoconf documentation" >&2;}
32143 { echo "$as_me:$LINENO: WARNING: GL/gl.h: section \"Present But Cannot Be Compiled\"" >&5
32144echo "$as_me: WARNING: GL/gl.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
32145 { echo "$as_me:$LINENO: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&5
32146echo "$as_me: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
32147 { echo "$as_me:$LINENO: WARNING: GL/gl.h: in the future, the compiler will take precedence" >&5
32148echo "$as_me: WARNING: GL/gl.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
32149 (
32150 cat <<\_ASBOX
ac1cb8d3
VS
32151## ----------------------------------------- ##
32152## Report this to wx-dev@lists.wxwidgets.org ##
32153## ----------------------------------------- ##
a848cd7e
SC
32154_ASBOX
32155 ) |
32156 sed "s/^/$as_me: WARNING: /" >&2
32157 ;;
32158esac
32159echo "$as_me:$LINENO: checking for GL/gl.h" >&5
32160echo $ECHO_N "checking for GL/gl.h... $ECHO_C" >&6
32161if test "${ac_cv_header_GL_gl_h+set}" = set; then
32162 echo $ECHO_N "(cached) $ECHO_C" >&6
32163else
32164 ac_cv_header_GL_gl_h=$ac_header_preproc
32165fi
32166echo "$as_me:$LINENO: result: $ac_cv_header_GL_gl_h" >&5
32167echo "${ECHO_T}$ac_cv_header_GL_gl_h" >&6
32168
32169fi
32170if test $ac_cv_header_GL_gl_h = yes; then
32171
32172 found_gl=0
32173
32174 echo "$as_me:$LINENO: checking for -lGL" >&5
32175echo $ECHO_N "checking for -lGL... $ECHO_C" >&6
32176
0ad5d837
VZ
32177 ac_find_libraries=
32178 for ac_dir in $SEARCH_LIB;
a848cd7e 32179 do
3eca31dc 32180 for ac_extension in a so sl dylib dll.a; do
a848cd7e
SC
32181 if test -f "$ac_dir/libGL.$ac_extension"; then
32182 ac_find_libraries=$ac_dir
32183 break 2
32184 fi
32185 done
32186 done
32187
32188 if test "$ac_find_libraries" != "" ; then
69120ee4
VZ
32189 echo "$as_me:$LINENO: result: yes" >&5
32190echo "${ECHO_T}yes" >&6
32191
a848cd7e 32192
0ad5d837 32193 if test "$ac_find_libraries" = "default location"; then
a848cd7e
SC
32194 ac_path_to_link=""
32195 else
0ad5d837
VZ
32196 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
32197 result=$?
32198 if test $result = 0; then
32199 ac_path_to_link=""
32200 else
32201 ac_path_to_link=" -L$ac_find_libraries"
32202 fi
a848cd7e
SC
32203 fi
32204
32205 if test "$ac_path_to_link" != " -L/usr/lib" ; then
32206 LDFLAGS_GL="$ac_path_to_link"
32207 fi
32208
69120ee4
VZ
32209 echo "$as_me:$LINENO: checking for -lGLU" >&5
32210echo $ECHO_N "checking for -lGLU... $ECHO_C" >&6
a848cd7e 32211
0ad5d837
VZ
32212 ac_find_libraries=
32213 for ac_dir in $SEARCH_LIB;
32214 do
32215 for ac_extension in a so sl dylib dll.a; do
32216 if test -f "$ac_dir/libGLU.$ac_extension"; then
32217 ac_find_libraries=$ac_dir
32218 break 2
32219 fi
32220 done
32221 done
32222
a848cd7e
SC
32223 if test "$ac_find_libraries" != "" ; then
32224
0ad5d837 32225 if test "$ac_find_libraries" = "default location"; then
a848cd7e
SC
32226 ac_path_to_link=""
32227 else
0ad5d837
VZ
32228 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
32229 result=$?
32230 if test $result = 0; then
32231 ac_path_to_link=""
32232 else
32233 ac_path_to_link=" -L$ac_find_libraries"
32234 fi
a848cd7e
SC
32235 fi
32236
32237 if test "$ac_path_to_link" != " -L/usr/lib" -a \
32238 "$ac_path_to_link" != "$LDFLAGS_GL"; then
32239 LDFLAGS_GL="$LDFLAGS_GL$ac_path_to_link"
32240 fi
32241
32242 found_gl=1
32243 OPENGL_LIBS="-lGL -lGLU"
32244 echo "$as_me:$LINENO: result: yes" >&5
32245echo "${ECHO_T}yes" >&6
69120ee4
VZ
32246 else
32247 echo "$as_me:$LINENO: result: no" >&5
32248echo "${ECHO_T}no" >&6
a848cd7e 32249 fi
69120ee4
VZ
32250 else
32251 echo "$as_me:$LINENO: result: no" >&5
32252echo "${ECHO_T}no" >&6
a848cd7e
SC
32253 fi
32254
32255 if test "$found_gl" != 1; then
a848cd7e
SC
32256 echo "$as_me:$LINENO: checking for -lMesaGL" >&5
32257echo $ECHO_N "checking for -lMesaGL... $ECHO_C" >&6
32258
0ad5d837
VZ
32259 ac_find_libraries=
32260 for ac_dir in $SEARCH_LIB;
a848cd7e 32261 do
3eca31dc 32262 for ac_extension in a so sl dylib dll.a; do
a848cd7e
SC
32263 if test -f "$ac_dir/libMesaGL.$ac_extension"; then
32264 ac_find_libraries=$ac_dir
32265 break 2
32266 fi
32267 done
32268 done
32269
32270 if test "$ac_find_libraries" != "" ; then
32271
0ad5d837 32272 if test "$ac_find_libraries" = "default location"; then
a848cd7e
SC
32273 ac_path_to_link=""
32274 else
0ad5d837
VZ
32275 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
32276 result=$?
32277 if test $result = 0; then
32278 ac_path_to_link=""
32279 else
32280 ac_path_to_link=" -L$ac_find_libraries"
32281 fi
a848cd7e
SC
32282 fi
32283
32284 LDFLAGS_GL="$LDFLAGS$ac_path_to_link"
32285 OPENGL_LIBS="-lMesaGL -lMesaGLU"
32286 echo "$as_me:$LINENO: result: yes" >&5
32287echo "${ECHO_T}yes" >&6
32288 else
32289 echo "$as_me:$LINENO: result: no" >&5
32290echo "${ECHO_T}no" >&6
32291 fi
32292 fi
32293
32294fi
32295
32296
32297
32298 if test "x$OPENGL_LIBS" = "x"; then
32299 { { echo "$as_me:$LINENO: error: OpenGL libraries not available" >&5
32300echo "$as_me: error: OpenGL libraries not available" >&2;}
32301 { (exit 1); exit 1; }; }
32302 fi
32303 fi
32304
32305 if test "$wxUSE_OPENGL" = "yes"; then
32306 USE_OPENGL=1
32307 cat >>confdefs.h <<\_ACEOF
32308#define wxUSE_OPENGL 1
32309_ACEOF
32310
32311 cat >>confdefs.h <<\_ACEOF
32312#define wxUSE_GLCANVAS 1
32313_ACEOF
32314
32315 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS opengl opengl/cube opengl/penguin opengl/isosurf"
32316 fi
32317fi
32318
a848cd7e
SC
32319
32320if test -n "$TOOLKIT" ; then
32321 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WX${TOOLKIT}__"
32322fi
32323
a848cd7e
SC
32324
32325
32326if test "$wxUSE_SHARED" = "yes"; then
32327 case "${host}" in
32328 *-pc-msdosdjgpp )
32329 wxUSE_SHARED=no
32330 { echo "$as_me:$LINENO: WARNING: Host system doesn't support shared libraries, disabling" >&5
32331echo "$as_me: WARNING: Host system doesn't support shared libraries, disabling" >&2;}
32332 ;;
32333 esac
32334fi
32335
a848cd7e 32336if test "$wxUSE_SHARED" = "yes"; then
a848cd7e
SC
32337
32338
32339 found_versioning=no
32340
32341
32342 if test $found_versioning = no ; then
32343 echo "$as_me:$LINENO: checking if the linker accepts --version-script" >&5
32344echo $ECHO_N "checking if the linker accepts --version-script... $ECHO_C" >&6
32345if test "${wx_cv_version_script+set}" = set; then
32346 echo $ECHO_N "(cached) $ECHO_C" >&6
32347else
32348
32349 echo "VER_1 { *; };" >conftest.sym
32350 echo "int main() { return 0; }" >conftest.cpp
32351
32352 if { ac_try='
32353 $CXX -o conftest.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp
32354 -Wl,--version-script,conftest.sym >/dev/null 2>conftest.stderr'
32355 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32356 (eval $ac_try) 2>&5
32357 ac_status=$?
32358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32359 (exit $ac_status); }; } ; then
32360 if test -s conftest.stderr ; then
32361 wx_cv_version_script=no
32362 else
32363 wx_cv_version_script=yes
32364 fi
32365 else
32366 wx_cv_version_script=no
32367 fi
e5d4b470
MW
32368
32369 if test $wx_cv_version_script = yes
32370 then
32371 echo "struct B { virtual ~B() { } }; \
32372 struct D : public B { }; \
32373 void F() { D d; }" > conftest.cpp
32374
32375 if { ac_try='
32376 $CXX -shared -fPIC -o conftest1.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp
32377 -Wl,--version-script,conftest.sym >/dev/null 2>/dev/null'
32378 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32379 (eval $ac_try) 2>&5
32380 ac_status=$?
32381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32382 (exit $ac_status); }; } &&
32383 { ac_try='
32384 $CXX -shared -fPIC -o conftest2.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp
32385 -Wl,--version-script,conftest.sym conftest1.output >/dev/null 2>/dev/null'
32386 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32387 (eval $ac_try) 2>&5
32388 ac_status=$?
32389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32390 (exit $ac_status); }; }
32391 then
32392 if { ac_try='
32393 $CXX -shared -fPIC -o conftest3.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp
32394 -Wl,--version-script,conftest.sym conftest2.output conftest1.output >/dev/null 2>/dev/null'
32395 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32396 (eval $ac_try) 2>&5
32397 ac_status=$?
32398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32399 (exit $ac_status); }; }
32400 then
32401 wx_cv_version_script=yes
32402 else
32403 wx_cv_version_script=no
32404 fi
32405 fi
32406 fi
32407
a848cd7e 32408 rm -f conftest.output conftest.stderr conftest.sym conftest.cpp
e5d4b470 32409 rm -f conftest1.output conftest2.output conftest3.output
a848cd7e
SC
32410
32411fi
32412echo "$as_me:$LINENO: result: $wx_cv_version_script" >&5
32413echo "${ECHO_T}$wx_cv_version_script" >&6
32414 if test $wx_cv_version_script = yes ; then
32415 LDFLAGS_VERSIONING="-Wl,--version-script,\$(top_builddir)version-script"
32416 fi
32417 fi
32418
32419
32420 case "${host}" in
32421 *-*-linux* | *-*-gnu* )
32422 SAMPLES_RPATH_FLAG="-Wl,-rpath,\$(top_builddir)lib"
ffa0583f 32423 WXCONFIG_RPATH="-Wl,-rpath,\$libdir"
6ebeb4c7 32424 ;;
a848cd7e
SC
32425
32426 *-*-solaris2* )
32427 if test "$GCC" = yes ; then
c92ad099 32428 CPPFLAGS="-isystem /usr/openwin/include $CPPFLAGS"
a848cd7e
SC
32429
32430 saveLdflags="$LDFLAGS"
32431 LDFLAGS="$saveLdflags -Wl,-rpath,/"
32432 echo "$as_me:$LINENO: checking if the linker accepts -rpath" >&5
32433echo $ECHO_N "checking if the linker accepts -rpath... $ECHO_C" >&6
32434 cat >conftest.$ac_ext <<_ACEOF
32435/* confdefs.h. */
32436_ACEOF
32437cat confdefs.h >>conftest.$ac_ext
32438cat >>conftest.$ac_ext <<_ACEOF
32439/* end confdefs.h. */
32440
32441int
32442main ()
32443{
32444
32445 ;
32446 return 0;
32447}
32448_ACEOF
32449rm -f conftest.$ac_objext conftest$ac_exeext
32450if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 32451 (eval $ac_link) 2>conftest.er1
a848cd7e 32452 ac_status=$?
ac1cb8d3
VS
32453 grep -v '^ *+' conftest.er1 >conftest.err
32454 rm -f conftest.er1
32455 cat conftest.err >&5
a848cd7e
SC
32456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32457 (exit $ac_status); } &&
c9a66001 32458 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
32459 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32460 (eval $ac_try) 2>&5
32461 ac_status=$?
32462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32463 (exit $ac_status); }; } &&
32464 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
32465 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32466 (eval $ac_try) 2>&5
32467 ac_status=$?
32468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32469 (exit $ac_status); }; }; then
32470
32471 echo "$as_me:$LINENO: result: yes" >&5
32472echo "${ECHO_T}yes" >&6
32473 SAMPLES_RPATH_FLAG="-Wl,-rpath,\$(top_builddir)lib"
ffa0583f 32474 WXCONFIG_RPATH="-Wl,-rpath,\$libdir"
a848cd7e
SC
32475
32476else
32477 echo "$as_me: failed program was:" >&5
32478sed 's/^/| /' conftest.$ac_ext >&5
32479
32480
32481 echo "$as_me:$LINENO: result: no" >&5
32482echo "${ECHO_T}no" >&6
32483 echo "$as_me:$LINENO: checking if the linker accepts -R" >&5
32484echo $ECHO_N "checking if the linker accepts -R... $ECHO_C" >&6
32485 LDFLAGS="$saveLdflags -Wl,-R,/"
32486 cat >conftest.$ac_ext <<_ACEOF
32487/* confdefs.h. */
32488_ACEOF
32489cat confdefs.h >>conftest.$ac_ext
32490cat >>conftest.$ac_ext <<_ACEOF
32491/* end confdefs.h. */
32492
32493int
32494main ()
32495{
32496
32497 ;
32498 return 0;
32499}
32500_ACEOF
32501rm -f conftest.$ac_objext conftest$ac_exeext
32502if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 32503 (eval $ac_link) 2>conftest.er1
a848cd7e 32504 ac_status=$?
ac1cb8d3
VS
32505 grep -v '^ *+' conftest.er1 >conftest.err
32506 rm -f conftest.er1
32507 cat conftest.err >&5
a848cd7e
SC
32508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32509 (exit $ac_status); } &&
c9a66001 32510 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
32511 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32512 (eval $ac_try) 2>&5
32513 ac_status=$?
32514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32515 (exit $ac_status); }; } &&
32516 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
32517 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32518 (eval $ac_try) 2>&5
32519 ac_status=$?
32520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32521 (exit $ac_status); }; }; then
32522
ffa0583f 32523 echo "$as_me:$LINENO: result: yes" >&5
a848cd7e 32524echo "${ECHO_T}yes" >&6
ffa0583f
RL
32525 SAMPLES_RPATH_FLAG="-Wl,-R,\$(top_builddir)lib"
32526 WXCONFIG_RPATH="-Wl,-R,\$libdir"
32527
a848cd7e
SC
32528else
32529 echo "$as_me: failed program was:" >&5
32530sed 's/^/| /' conftest.$ac_ext >&5
32531
32532
32533 echo "$as_me:$LINENO: result: no" >&5
32534echo "${ECHO_T}no" >&6
32535
32536fi
ac1cb8d3
VS
32537rm -f conftest.err conftest.$ac_objext \
32538 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
32539
32540fi
ac1cb8d3
VS
32541rm -f conftest.err conftest.$ac_objext \
32542 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
32543 LDFLAGS="$saveLdflags"
32544 else
a848cd7e 32545 SAMPLES_RPATH_FLAG="-R\$(top_builddir)lib"
ffa0583f 32546 WXCONFIG_RPATH="-R\$libdir"
a848cd7e
SC
32547 fi
32548 ;;
32549
cfda0ea8 32550 *-*-darwin* )
0caebc27
MW
32551 install_name_tool=`which install_name_tool`
32552 if test "$install_name_tool" -a -x "$install_name_tool"; then
32553 SAMPLES_RPATH_POSTLINK="\$(top_builddir)change-install-names \$(LIBDIRNAME) \$(prefix) \$@"
32554 cat <<EOF >change-install-names
a848cd7e
SC
32555#!/bin/sh
32556libnames=\`cd \${1} ; ls -1 | grep '\.[0-9][0-9]*\.dylib\$'\`
32557inst_cmd="install_name_tool "
32558for i in \${libnames} ; do
32559 inst_cmd="\${inst_cmd} -change \${2}/lib/\${i} \${1}/\${i}"
32560done
32561\${inst_cmd} \${3}
32562EOF
0caebc27
MW
32563 chmod +x change-install-names
32564 fi
a848cd7e
SC
32565 ;;
32566
32567 *-*-cygwin* | *-*-mingw32* )
5ff751d6
VZ
32568 WXCONFIG_ONLY_CPPFLAGS="$WXCONFIG_ONLY_CPPFLAGS -DWXUSINGDLL"
32569 ;;
a848cd7e 32570
81f90336
MW
32571 *-*-hpux* )
32572 SAMPLES_RPATH_FLAG="-Wl,+b,\$(top_builddir)lib"
32573 WXCONFIG_RPATH="-Wl,+b,\$libdir"
5ff751d6 32574 ;;
81f90336 32575
a848cd7e 32576 esac
ceec2216 32577
ffa0583f
RL
32578 if test $wxUSE_RPATH = "no"; then
32579 SAMPLES_RPATH_FLAG=''
32580 SAMPLES_RPATH_POSTLINK=''
32581 WXCONFIG_RPATH=''
32582 fi
32583
32584 SHARED=1
32585
32586else
32587
ceec2216
RL
32588 config_linkage_component="-static"
32589 SHARED=0
ffa0583f 32590
ceec2216 32591fi
a848cd7e 32592
a848cd7e 32593
ceec2216
RL
32594UNICODE=0
32595lib_unicode_suffix=
32596WX_CHARTYPE="ansi"
32597if test "$wxUSE_UNICODE" = "yes"; then
32598 lib_unicode_suffix=u
32599 WX_CHARTYPE="unicode"
32600 UNICODE=1
a848cd7e
SC
32601fi
32602
ceec2216
RL
32603lib_debug_suffix=
32604WX_DEBUGTYPE="release"
32605DEBUG_FLAG=0
32606if test "$wxUSE_DEBUG_FLAG" = "yes"; then
32607 lib_debug_suffix=d
32608 WX_DEBUGTYPE="debug"
32609 DEBUG_FLAG=1
32610fi
a848cd7e 32611
ceec2216
RL
32612WX_FLAVOUR=${WX_FLAVOUR:+-$WX_FLAVOUR}
32613WX_LIB_FLAVOUR=`echo $WX_FLAVOUR | tr '-' '_'`
a848cd7e 32614
ceec2216
RL
32615DEBUG_INFO=0
32616if test "$wxUSE_DEBUG_INFO" = "yes"; then
32617 DEBUG_INFO=1
32618fi
a848cd7e 32619
ceec2216 32620WX_VERSION_TAG=`echo WX${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}_${WX_RELEASE} | tr "[a-z]" "[A-Z]"`
a848cd7e 32621
ceec2216 32622TOOLCHAIN_NAME="${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}-${WX_RELEASE}"
a848cd7e 32623
ceec2216 32624TOOLCHAIN_FULLNAME="${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}-${WX_CHARTYPE}-${WX_DEBUGTYPE}${config_linkage_component}-${WX_RELEASE}${WX_FLAVOUR}"
a848cd7e 32625
ceec2216
RL
32626if test "$cross_compiling" = "yes"; then
32627 HOST_SUFFIX="-$host_alias"
32628 TOOLCHAIN_NAME="$TOOLCHAIN_NAME$HOST_SUFFIX"
32629 TOOLCHAIN_FULLNAME="${host_alias}-$TOOLCHAIN_FULLNAME"
a848cd7e
SC
32630fi
32631
dd21ced8 32632WX_LIBRARY_BASENAME_NOGUI="wx_base${WXBASEPORT}${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}"
abc736fd
MW
32633if test "${TOOLKIT_DIR}" = "os2"; then
32634 WX_LIBRARY_BASENAME_GUI="wx_pm${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}"
32635else
32636 WX_LIBRARY_BASENAME_GUI="wx_${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}"
32637fi
ceec2216
RL
32638
32639
32640
1d1af5ea
DE
32641if test "$wxUSE_COCOA" = 1; then
32642
32643
32644 ac_ext=c
32645ac_cpp='$CPP $CPPFLAGS'
32646ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32647ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32648ac_compiler_gnu=$ac_cv_c_compiler_gnu
32649
32650ac_ext=m
32651
32652 echo "$as_me:$LINENO: checking if AppKit/NSEvent.h conflicts with CoreFoundation" >&5
32653echo $ECHO_N "checking if AppKit/NSEvent.h conflicts with CoreFoundation... $ECHO_C" >&6
32654 cat >conftest.$ac_ext <<_ACEOF
32655/* confdefs.h. */
32656_ACEOF
32657cat confdefs.h >>conftest.$ac_ext
32658cat >>conftest.$ac_ext <<_ACEOF
32659/* end confdefs.h. */
32660#include <AppKit/NSEvent.h>
32661#include <CoreFoundation/CoreFoundation.h>
32662
32663int
32664main ()
32665{
32666
32667 ;
32668 return 0;
32669}
32670_ACEOF
32671rm -f conftest.$ac_objext
32672if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32673 (eval $ac_compile) 2>conftest.er1
32674 ac_status=$?
32675 grep -v '^ *+' conftest.er1 >conftest.err
32676 rm -f conftest.er1
32677 cat conftest.err >&5
32678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32679 (exit $ac_status); } &&
c9a66001 32680 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
1d1af5ea
DE
32681 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32682 (eval $ac_try) 2>&5
32683 ac_status=$?
32684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32685 (exit $ac_status); }; } &&
32686 { ac_try='test -s conftest.$ac_objext'
32687 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32688 (eval $ac_try) 2>&5
32689 ac_status=$?
32690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32691 (exit $ac_status); }; }; then
32692 echo "$as_me:$LINENO: result: no" >&5
32693echo "${ECHO_T}no" >&6
32694else
32695 echo "$as_me: failed program was:" >&5
32696sed 's/^/| /' conftest.$ac_ext >&5
32697
32698echo "$as_me:$LINENO: result: yes" >&5
32699echo "${ECHO_T}yes" >&6
32700 echo "$as_me:$LINENO: checking if defining __Point__ will fix it" >&5
32701echo $ECHO_N "checking if defining __Point__ will fix it... $ECHO_C" >&6
32702 cat >conftest.$ac_ext <<_ACEOF
32703/* confdefs.h. */
32704_ACEOF
32705cat confdefs.h >>conftest.$ac_ext
32706cat >>conftest.$ac_ext <<_ACEOF
32707/* end confdefs.h. */
32708#define __Point__ 1
32709#include <AppKit/NSEvent.h>
32710#include <CoreFoundation/CoreFoundation.h>
32711
32712int
32713main ()
32714{
32715
32716 ;
32717 return 0;
32718}
32719_ACEOF
32720rm -f conftest.$ac_objext
32721if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32722 (eval $ac_compile) 2>conftest.er1
32723 ac_status=$?
32724 grep -v '^ *+' conftest.er1 >conftest.err
32725 rm -f conftest.er1
32726 cat conftest.err >&5
32727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32728 (exit $ac_status); } &&
c9a66001 32729 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
1d1af5ea
DE
32730 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32731 (eval $ac_try) 2>&5
32732 ac_status=$?
32733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32734 (exit $ac_status); }; } &&
32735 { ac_try='test -s conftest.$ac_objext'
32736 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32737 (eval $ac_try) 2>&5
32738 ac_status=$?
32739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32740 (exit $ac_status); }; }; then
32741 echo "$as_me:$LINENO: result: yes" >&5
32742echo "${ECHO_T}yes" >&6
32743 cat >>confdefs.h <<\_ACEOF
32744#define __Point__ 1
32745_ACEOF
32746
32747
32748else
32749 echo "$as_me: failed program was:" >&5
32750sed 's/^/| /' conftest.$ac_ext >&5
32751
32752{ { echo "$as_me:$LINENO: error: no
32753See \`config.log' for more details." >&5
32754echo "$as_me: error: no
32755See \`config.log' for more details." >&2;}
32756 { (exit 1); exit 1; }; }
32757
32758fi
32759rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32760
32761fi
32762rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5d7b7554
VZ
32763 ac_ext=cc
32764ac_cpp='$CXXCPP $CPPFLAGS'
32765ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32766ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32767ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
1d1af5ea
DE
32768
32769fi
32770
a848cd7e 32771if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1; then
abb9aae7
VZ
32772 WX_RESOURCES_MACOSX_ASCII="libwx_${TOOLCHAIN_NAME}.${wx_release_number}.r"
32773 WX_RESOURCES_MACOSX_DATA="libwx_${TOOLCHAIN_NAME}.${wx_release_number}.rsrc"
ceec2216 32774
a848cd7e 32775 LIBWXMACRES="\$(top_builddir)lib/${WX_RESOURCES_MACOSX_ASCII}"
a848cd7e
SC
32776
32777 # Extract the first word of "Rez", so it can be a program name with args.
32778set dummy Rez; ac_word=$2
32779echo "$as_me:$LINENO: checking for $ac_word" >&5
32780echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8ced02f6 32781if test "${ac_cv_prog_REZ+set}" = set; then
a848cd7e
SC
32782 echo $ECHO_N "(cached) $ECHO_C" >&6
32783else
8ced02f6
DE
32784 if test -n "$REZ"; then
32785 ac_cv_prog_REZ="$REZ" # Let the user override the test.
a848cd7e
SC
32786else
32787as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32788for as_dir in $PATH
32789do
32790 IFS=$as_save_IFS
32791 test -z "$as_dir" && as_dir=.
32792 for ac_exec_ext in '' $ac_executable_extensions; do
32793 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8ced02f6 32794 ac_cv_prog_REZ="Rez"
a848cd7e
SC
32795 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
32796 break 2
32797 fi
32798done
32799done
32800
8ced02f6 32801 test -z "$ac_cv_prog_REZ" && ac_cv_prog_REZ="/Developer/Tools/Rez"
a848cd7e
SC
32802fi
32803fi
8ced02f6
DE
32804REZ=$ac_cv_prog_REZ
32805if test -n "$REZ"; then
32806 echo "$as_me:$LINENO: result: $REZ" >&5
32807echo "${ECHO_T}$REZ" >&6
a848cd7e
SC
32808else
32809 echo "$as_me:$LINENO: result: no" >&5
32810echo "${ECHO_T}no" >&6
32811fi
32812
32813 # Extract the first word of "DeRez", so it can be a program name with args.
32814set dummy DeRez; ac_word=$2
32815echo "$as_me:$LINENO: checking for $ac_word" >&5
32816echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
32817if test "${ac_cv_prog_DEREZ+set}" = set; then
32818 echo $ECHO_N "(cached) $ECHO_C" >&6
32819else
32820 if test -n "$DEREZ"; then
32821 ac_cv_prog_DEREZ="$DEREZ" # Let the user override the test.
32822else
32823as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32824for as_dir in $PATH
32825do
32826 IFS=$as_save_IFS
32827 test -z "$as_dir" && as_dir=.
32828 for ac_exec_ext in '' $ac_executable_extensions; do
32829 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
32830 ac_cv_prog_DEREZ="DeRez"
32831 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
32832 break 2
32833 fi
32834done
32835done
32836
32837 test -z "$ac_cv_prog_DEREZ" && ac_cv_prog_DEREZ="/Developer/Tools/DeRez"
32838fi
32839fi
32840DEREZ=$ac_cv_prog_DEREZ
32841if test -n "$DEREZ"; then
32842 echo "$as_me:$LINENO: result: $DEREZ" >&5
32843echo "${ECHO_T}$DEREZ" >&6
32844else
32845 echo "$as_me:$LINENO: result: no" >&5
32846echo "${ECHO_T}no" >&6
32847fi
32848
32849 # Extract the first word of "SetFile", so it can be a program name with args.
32850set dummy SetFile; ac_word=$2
32851echo "$as_me:$LINENO: checking for $ac_word" >&5
32852echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
32853if test "${ac_cv_prog_SETFILE+set}" = set; then
32854 echo $ECHO_N "(cached) $ECHO_C" >&6
32855else
32856 if test -n "$SETFILE"; then
32857 ac_cv_prog_SETFILE="$SETFILE" # Let the user override the test.
32858else
32859as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32860for as_dir in $PATH
32861do
32862 IFS=$as_save_IFS
32863 test -z "$as_dir" && as_dir=.
32864 for ac_exec_ext in '' $ac_executable_extensions; do
32865 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
32866 ac_cv_prog_SETFILE="SetFile"
32867 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
32868 break 2
32869 fi
32870done
32871done
32872
32873 test -z "$ac_cv_prog_SETFILE" && ac_cv_prog_SETFILE="/Developer/Tools/SetFile"
32874fi
32875fi
32876SETFILE=$ac_cv_prog_SETFILE
32877if test -n "$SETFILE"; then
32878 echo "$as_me:$LINENO: result: $SETFILE" >&5
32879echo "${ECHO_T}$SETFILE" >&6
32880else
32881 echo "$as_me:$LINENO: result: no" >&5
32882echo "${ECHO_T}no" >&6
32883fi
32884
32885
32886 MACSETFILE="\$(SETFILE)"
32887
32888 if test "$wxUSE_MAC" = 1; then
8ced02f6 32889 POSTLINK_COMMAND="\$(REZ) -d __DARWIN__ -t APPL Carbon.r -o"
004ee6da
RL
32890 RESCOMP="$REZ"
32891 WXCONFIG_RESFLAGS="-d __DARWIN__ -t APPL Carbon.r -o"
a848cd7e 32892 else
004ee6da
RL
32893 POSTLINK_COMMAND="echo -n | \$(REZ) -d __DARWIN__ -t APPL ${LIBWXMACRES}"
32894 RESCOMP="echo -n \| $REZ"
32895 WXCONFIG_RESFLAGS="-d __DARWIN__ -t APPL \$libdir/$WX_RESOURCES_MACOSX_ASCII"
a848cd7e 32896 fi
004ee6da 32897
a848cd7e 32898else
ffa0583f 32899 MACSETFILE="@true"
a848cd7e 32900
8ced02f6 32901 if test "$wxUSE_PM" = 1; then
004ee6da
RL
32902 RESCOMP="emxbind"
32903 WXCONFIG_RESFLAGS="-ep"
32904
32905 POSTLINK_COMMAND="$RESCOMP $WXCONFIG_RESFLAGS"
a848cd7e 32906 else
8ced02f6 32907 POSTLINK_COMMAND="@true"
a848cd7e 32908 fi
004ee6da 32909
a848cd7e
SC
32910fi
32911
32912
32913
32914echo "$as_me:$LINENO: checking for mode_t" >&5
32915echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
32916if test "${ac_cv_type_mode_t+set}" = set; then
32917 echo $ECHO_N "(cached) $ECHO_C" >&6
32918else
32919 cat >conftest.$ac_ext <<_ACEOF
32920/* confdefs.h. */
32921_ACEOF
32922cat confdefs.h >>conftest.$ac_ext
32923cat >>conftest.$ac_ext <<_ACEOF
32924/* end confdefs.h. */
32925$ac_includes_default
32926int
32927main ()
32928{
32929if ((mode_t *) 0)
32930 return 0;
32931if (sizeof (mode_t))
32932 return 0;
32933 ;
32934 return 0;
32935}
32936_ACEOF
32937rm -f conftest.$ac_objext
32938if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 32939 (eval $ac_compile) 2>conftest.er1
a848cd7e 32940 ac_status=$?
ac1cb8d3
VS
32941 grep -v '^ *+' conftest.er1 >conftest.err
32942 rm -f conftest.er1
32943 cat conftest.err >&5
a848cd7e
SC
32944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32945 (exit $ac_status); } &&
c9a66001 32946 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
32947 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32948 (eval $ac_try) 2>&5
32949 ac_status=$?
32950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32951 (exit $ac_status); }; } &&
32952 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
32953 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32954 (eval $ac_try) 2>&5
32955 ac_status=$?
32956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32957 (exit $ac_status); }; }; then
32958 ac_cv_type_mode_t=yes
32959else
32960 echo "$as_me: failed program was:" >&5
32961sed 's/^/| /' conftest.$ac_ext >&5
32962
32963ac_cv_type_mode_t=no
32964fi
ac1cb8d3 32965rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
32966fi
32967echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
32968echo "${ECHO_T}$ac_cv_type_mode_t" >&6
32969if test $ac_cv_type_mode_t = yes; then
32970 :
32971else
32972
32973cat >>confdefs.h <<_ACEOF
32974#define mode_t int
32975_ACEOF
32976
32977fi
32978
32979echo "$as_me:$LINENO: checking for off_t" >&5
32980echo $ECHO_N "checking for off_t... $ECHO_C" >&6
32981if test "${ac_cv_type_off_t+set}" = set; then
32982 echo $ECHO_N "(cached) $ECHO_C" >&6
32983else
32984 cat >conftest.$ac_ext <<_ACEOF
32985/* confdefs.h. */
32986_ACEOF
32987cat confdefs.h >>conftest.$ac_ext
32988cat >>conftest.$ac_ext <<_ACEOF
32989/* end confdefs.h. */
32990$ac_includes_default
32991int
32992main ()
32993{
32994if ((off_t *) 0)
32995 return 0;
32996if (sizeof (off_t))
32997 return 0;
32998 ;
32999 return 0;
33000}
33001_ACEOF
33002rm -f conftest.$ac_objext
33003if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 33004 (eval $ac_compile) 2>conftest.er1
a848cd7e 33005 ac_status=$?
ac1cb8d3
VS
33006 grep -v '^ *+' conftest.er1 >conftest.err
33007 rm -f conftest.er1
33008 cat conftest.err >&5
a848cd7e
SC
33009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33010 (exit $ac_status); } &&
c9a66001 33011 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
33012 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33013 (eval $ac_try) 2>&5
33014 ac_status=$?
33015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33016 (exit $ac_status); }; } &&
33017 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
33018 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33019 (eval $ac_try) 2>&5
33020 ac_status=$?
33021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33022 (exit $ac_status); }; }; then
33023 ac_cv_type_off_t=yes
33024else
33025 echo "$as_me: failed program was:" >&5
33026sed 's/^/| /' conftest.$ac_ext >&5
33027
33028ac_cv_type_off_t=no
33029fi
ac1cb8d3 33030rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
33031fi
33032echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
33033echo "${ECHO_T}$ac_cv_type_off_t" >&6
33034if test $ac_cv_type_off_t = yes; then
33035 :
33036else
33037
33038cat >>confdefs.h <<_ACEOF
33039#define off_t long
33040_ACEOF
33041
33042fi
33043
33044echo "$as_me:$LINENO: checking for pid_t" >&5
33045echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
33046if test "${ac_cv_type_pid_t+set}" = set; then
33047 echo $ECHO_N "(cached) $ECHO_C" >&6
33048else
33049 cat >conftest.$ac_ext <<_ACEOF
33050/* confdefs.h. */
33051_ACEOF
33052cat confdefs.h >>conftest.$ac_ext
33053cat >>conftest.$ac_ext <<_ACEOF
33054/* end confdefs.h. */
33055$ac_includes_default
33056int
33057main ()
33058{
33059if ((pid_t *) 0)
33060 return 0;
33061if (sizeof (pid_t))
33062 return 0;
33063 ;
33064 return 0;
33065}
33066_ACEOF
33067rm -f conftest.$ac_objext
33068if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 33069 (eval $ac_compile) 2>conftest.er1
a848cd7e 33070 ac_status=$?
ac1cb8d3
VS
33071 grep -v '^ *+' conftest.er1 >conftest.err
33072 rm -f conftest.er1
33073 cat conftest.err >&5
a848cd7e
SC
33074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33075 (exit $ac_status); } &&
c9a66001 33076 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
33077 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33078 (eval $ac_try) 2>&5
33079 ac_status=$?
33080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33081 (exit $ac_status); }; } &&
33082 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
33083 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33084 (eval $ac_try) 2>&5
33085 ac_status=$?
33086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33087 (exit $ac_status); }; }; then
33088 ac_cv_type_pid_t=yes
33089else
33090 echo "$as_me: failed program was:" >&5
33091sed 's/^/| /' conftest.$ac_ext >&5
33092
33093ac_cv_type_pid_t=no
33094fi
ac1cb8d3 33095rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
33096fi
33097echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
33098echo "${ECHO_T}$ac_cv_type_pid_t" >&6
33099if test $ac_cv_type_pid_t = yes; then
33100 :
33101else
33102
33103cat >>confdefs.h <<_ACEOF
33104#define pid_t int
33105_ACEOF
33106
33107fi
33108
33109echo "$as_me:$LINENO: checking for size_t" >&5
33110echo $ECHO_N "checking for size_t... $ECHO_C" >&6
33111if test "${ac_cv_type_size_t+set}" = set; then
33112 echo $ECHO_N "(cached) $ECHO_C" >&6
33113else
33114 cat >conftest.$ac_ext <<_ACEOF
33115/* confdefs.h. */
33116_ACEOF
33117cat confdefs.h >>conftest.$ac_ext
33118cat >>conftest.$ac_ext <<_ACEOF
33119/* end confdefs.h. */
33120$ac_includes_default
33121int
33122main ()
33123{
33124if ((size_t *) 0)
33125 return 0;
33126if (sizeof (size_t))
33127 return 0;
33128 ;
33129 return 0;
33130}
33131_ACEOF
33132rm -f conftest.$ac_objext
33133if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 33134 (eval $ac_compile) 2>conftest.er1
a848cd7e 33135 ac_status=$?
ac1cb8d3
VS
33136 grep -v '^ *+' conftest.er1 >conftest.err
33137 rm -f conftest.er1
33138 cat conftest.err >&5
a848cd7e
SC
33139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33140 (exit $ac_status); } &&
c9a66001 33141 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
33142 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33143 (eval $ac_try) 2>&5
33144 ac_status=$?
33145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33146 (exit $ac_status); }; } &&
33147 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
33148 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33149 (eval $ac_try) 2>&5
33150 ac_status=$?
33151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33152 (exit $ac_status); }; }; then
33153 ac_cv_type_size_t=yes
33154else
33155 echo "$as_me: failed program was:" >&5
33156sed 's/^/| /' conftest.$ac_ext >&5
33157
33158ac_cv_type_size_t=no
33159fi
ac1cb8d3 33160rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
33161fi
33162echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
33163echo "${ECHO_T}$ac_cv_type_size_t" >&6
33164if test $ac_cv_type_size_t = yes; then
33165 :
33166else
33167
33168cat >>confdefs.h <<_ACEOF
33169#define size_t unsigned
33170_ACEOF
33171
33172fi
33173
33174echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
33175echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
33176if test "${ac_cv_type_uid_t+set}" = set; then
33177 echo $ECHO_N "(cached) $ECHO_C" >&6
33178else
33179 cat >conftest.$ac_ext <<_ACEOF
33180/* confdefs.h. */
33181_ACEOF
33182cat confdefs.h >>conftest.$ac_ext
33183cat >>conftest.$ac_ext <<_ACEOF
33184/* end confdefs.h. */
33185#include <sys/types.h>
33186
33187_ACEOF
33188if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
33189 $EGREP "uid_t" >/dev/null 2>&1; then
33190 ac_cv_type_uid_t=yes
33191else
33192 ac_cv_type_uid_t=no
33193fi
33194rm -f conftest*
33195
33196fi
33197echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
33198echo "${ECHO_T}$ac_cv_type_uid_t" >&6
33199if test $ac_cv_type_uid_t = no; then
33200
33201cat >>confdefs.h <<\_ACEOF
33202#define uid_t int
33203_ACEOF
33204
33205
33206cat >>confdefs.h <<\_ACEOF
33207#define gid_t int
33208_ACEOF
33209
33210fi
33211
33212
d51253e8
RL
33213echo "$as_me:$LINENO: checking for ssize_t" >&5
33214echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
33215if test "${ac_cv_type_ssize_t+set}" = set; then
33216 echo $ECHO_N "(cached) $ECHO_C" >&6
33217else
33218 cat >conftest.$ac_ext <<_ACEOF
33219/* confdefs.h. */
33220_ACEOF
33221cat confdefs.h >>conftest.$ac_ext
33222cat >>conftest.$ac_ext <<_ACEOF
33223/* end confdefs.h. */
33224$ac_includes_default
33225int
33226main ()
33227{
33228if ((ssize_t *) 0)
33229 return 0;
33230if (sizeof (ssize_t))
33231 return 0;
33232 ;
33233 return 0;
33234}
33235_ACEOF
33236rm -f conftest.$ac_objext
33237if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33238 (eval $ac_compile) 2>conftest.er1
33239 ac_status=$?
33240 grep -v '^ *+' conftest.er1 >conftest.err
33241 rm -f conftest.er1
33242 cat conftest.err >&5
33243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33244 (exit $ac_status); } &&
c9a66001 33245 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
d51253e8
RL
33246 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33247 (eval $ac_try) 2>&5
33248 ac_status=$?
33249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33250 (exit $ac_status); }; } &&
33251 { ac_try='test -s conftest.$ac_objext'
33252 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33253 (eval $ac_try) 2>&5
33254 ac_status=$?
33255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33256 (exit $ac_status); }; }; then
33257 ac_cv_type_ssize_t=yes
33258else
33259 echo "$as_me: failed program was:" >&5
33260sed 's/^/| /' conftest.$ac_ext >&5
33261
33262ac_cv_type_ssize_t=no
33263fi
33264rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33265fi
33266echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
33267echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
33268if test $ac_cv_type_ssize_t = yes; then
33269
33270cat >>confdefs.h <<_ACEOF
33271#define HAVE_SSIZE_T 1
33272_ACEOF
33273
33274
33275fi
33276
33277
a848cd7e
SC
33278echo "$as_me:$LINENO: checking if size_t is unsigned int" >&5
33279echo $ECHO_N "checking if size_t is unsigned int... $ECHO_C" >&6
33280if test "${wx_cv_size_t_is_uint+set}" = set; then
33281 echo $ECHO_N "(cached) $ECHO_C" >&6
33282else
33283
33284 cat >conftest.$ac_ext <<_ACEOF
33285/* confdefs.h. */
33286_ACEOF
33287cat confdefs.h >>conftest.$ac_ext
33288cat >>conftest.$ac_ext <<_ACEOF
33289/* end confdefs.h. */
33290#include <stddef.h>
33291int
33292main ()
33293{
33294
33295 return 0; }
33296
33297 struct Foo { void foo(size_t); void foo(unsigned int); };
33298
33299 int bar() {
33300
33301 ;
33302 return 0;
33303}
33304_ACEOF
33305rm -f conftest.$ac_objext
33306if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 33307 (eval $ac_compile) 2>conftest.er1
a848cd7e 33308 ac_status=$?
ac1cb8d3
VS
33309 grep -v '^ *+' conftest.er1 >conftest.err
33310 rm -f conftest.er1
33311 cat conftest.err >&5
a848cd7e
SC
33312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33313 (exit $ac_status); } &&
c9a66001 33314 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
33315 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33316 (eval $ac_try) 2>&5
33317 ac_status=$?
33318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33319 (exit $ac_status); }; } &&
33320 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
33321 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33322 (eval $ac_try) 2>&5
33323 ac_status=$?
33324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33325 (exit $ac_status); }; }; then
33326 wx_cv_size_t_is_uint=no
33327else
33328 echo "$as_me: failed program was:" >&5
33329sed 's/^/| /' conftest.$ac_ext >&5
33330
33331wx_cv_size_t_is_uint=yes
33332
33333fi
ac1cb8d3 33334rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
33335
33336
33337fi
33338echo "$as_me:$LINENO: result: $wx_cv_size_t_is_uint" >&5
33339echo "${ECHO_T}$wx_cv_size_t_is_uint" >&6
33340
33341if test "$wx_cv_size_t_is_uint" = "yes"; then
33342 cat >>confdefs.h <<\_ACEOF
33343#define wxSIZE_T_IS_UINT 1
33344_ACEOF
33345
33346else
33347 echo "$as_me:$LINENO: checking if size_t is unsigned long" >&5
33348echo $ECHO_N "checking if size_t is unsigned long... $ECHO_C" >&6
33349if test "${wx_cv_size_t_is_ulong+set}" = set; then
33350 echo $ECHO_N "(cached) $ECHO_C" >&6
33351else
33352 cat >conftest.$ac_ext <<_ACEOF
33353/* confdefs.h. */
33354_ACEOF
33355cat confdefs.h >>conftest.$ac_ext
33356cat >>conftest.$ac_ext <<_ACEOF
33357/* end confdefs.h. */
33358#include <stddef.h>
33359int
33360main ()
33361{
33362
33363 return 0; }
33364
33365 struct Foo { void foo(size_t); void foo(unsigned long); };
33366
33367 int bar() {
33368
33369 ;
33370 return 0;
33371}
33372_ACEOF
33373rm -f conftest.$ac_objext
33374if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 33375 (eval $ac_compile) 2>conftest.er1
a848cd7e 33376 ac_status=$?
ac1cb8d3
VS
33377 grep -v '^ *+' conftest.er1 >conftest.err
33378 rm -f conftest.er1
33379 cat conftest.err >&5
a848cd7e
SC
33380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33381 (exit $ac_status); } &&
c9a66001 33382 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
33383 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33384 (eval $ac_try) 2>&5
33385 ac_status=$?
33386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33387 (exit $ac_status); }; } &&
33388 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
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); }; }; then
33394 wx_cv_size_t_is_ulong=no
33395else
33396 echo "$as_me: failed program was:" >&5
33397sed 's/^/| /' conftest.$ac_ext >&5
33398
33399wx_cv_size_t_is_ulong=yes
33400
33401fi
ac1cb8d3 33402rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
33403
33404fi
33405echo "$as_me:$LINENO: result: $wx_cv_size_t_is_ulong" >&5
33406echo "${ECHO_T}$wx_cv_size_t_is_ulong" >&6
33407
33408 if test "$wx_cv_size_t_is_ulong" = "yes"; then
33409 cat >>confdefs.h <<\_ACEOF
33410#define wxSIZE_T_IS_ULONG 1
33411_ACEOF
33412
33413 fi
33414fi
33415
a848cd7e
SC
33416
33417echo "$as_me:$LINENO: checking for pw_gecos in struct passwd" >&5
33418echo $ECHO_N "checking for pw_gecos in struct passwd... $ECHO_C" >&6
33419if test "${wx_cv_struct_pw_gecos+set}" = set; then
33420 echo $ECHO_N "(cached) $ECHO_C" >&6
33421else
33422
33423 cat >conftest.$ac_ext <<_ACEOF
33424/* confdefs.h. */
33425_ACEOF
33426cat confdefs.h >>conftest.$ac_ext
33427cat >>conftest.$ac_ext <<_ACEOF
33428/* end confdefs.h. */
33429#include <pwd.h>
33430int
33431main ()
33432{
33433
33434 char *p;
33435 struct passwd *pw;
33436 p = pw->pw_gecos;
33437
33438 ;
33439 return 0;
33440}
33441_ACEOF
33442rm -f conftest.$ac_objext
33443if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 33444 (eval $ac_compile) 2>conftest.er1
a848cd7e 33445 ac_status=$?
ac1cb8d3
VS
33446 grep -v '^ *+' conftest.er1 >conftest.err
33447 rm -f conftest.er1
33448 cat conftest.err >&5
a848cd7e
SC
33449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33450 (exit $ac_status); } &&
c9a66001 33451 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
33452 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33453 (eval $ac_try) 2>&5
33454 ac_status=$?
33455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33456 (exit $ac_status); }; } &&
33457 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
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); }; }; then
33463
33464 wx_cv_struct_pw_gecos=yes
33465
33466else
33467 echo "$as_me: failed program was:" >&5
33468sed 's/^/| /' conftest.$ac_ext >&5
33469
33470
33471 wx_cv_struct_pw_gecos=no
33472
33473
33474fi
ac1cb8d3 33475rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
33476
33477
33478fi
33479echo "$as_me:$LINENO: result: $wx_cv_struct_pw_gecos" >&5
33480echo "${ECHO_T}$wx_cv_struct_pw_gecos" >&6
33481
33482if test "$wx_cv_struct_pw_gecos" = "yes"; then
33483 cat >>confdefs.h <<\_ACEOF
33484#define HAVE_PW_GECOS 1
33485_ACEOF
33486
33487fi
33488
33489
47a7e797 33490if test "$wxUSE_WCHAR_T" = "yes"; then
a848cd7e
SC
33491 cat >>confdefs.h <<\_ACEOF
33492#define wxUSE_WCHAR_T 1
33493_ACEOF
33494
33495
33496 WCSLEN_FOUND=0
33497 WCHAR_LINK=
33498
33499for ac_func in wcslen
33500do
33501as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33502echo "$as_me:$LINENO: checking for $ac_func" >&5
33503echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
33504if eval "test \"\${$as_ac_var+set}\" = set"; then
33505 echo $ECHO_N "(cached) $ECHO_C" >&6
33506else
33507 cat >conftest.$ac_ext <<_ACEOF
33508/* confdefs.h. */
33509_ACEOF
33510cat confdefs.h >>conftest.$ac_ext
33511cat >>conftest.$ac_ext <<_ACEOF
33512/* end confdefs.h. */
ac1cb8d3
VS
33513/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33514 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33515#define $ac_func innocuous_$ac_func
33516
a848cd7e
SC
33517/* System header to define __stub macros and hopefully few prototypes,
33518 which can conflict with char $ac_func (); below.
33519 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33520 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 33521
a848cd7e
SC
33522#ifdef __STDC__
33523# include <limits.h>
33524#else
33525# include <assert.h>
33526#endif
ac1cb8d3
VS
33527
33528#undef $ac_func
33529
a848cd7e
SC
33530/* Override any gcc2 internal prototype to avoid an error. */
33531#ifdef __cplusplus
33532extern "C"
33533{
33534#endif
33535/* We use char because int might match the return type of a gcc2
33536 builtin and then its argument prototype would still apply. */
33537char $ac_func ();
33538/* The GNU C library defines this for functions which it implements
33539 to always fail with ENOSYS. Some functions are actually named
33540 something starting with __ and the normal name is an alias. */
33541#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
33542choke me
33543#else
33544char (*f) () = $ac_func;
33545#endif
33546#ifdef __cplusplus
33547}
33548#endif
33549
33550int
33551main ()
33552{
33553return f != $ac_func;
33554 ;
33555 return 0;
33556}
33557_ACEOF
33558rm -f conftest.$ac_objext conftest$ac_exeext
33559if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 33560 (eval $ac_link) 2>conftest.er1
a848cd7e 33561 ac_status=$?
ac1cb8d3
VS
33562 grep -v '^ *+' conftest.er1 >conftest.err
33563 rm -f conftest.er1
33564 cat conftest.err >&5
a848cd7e
SC
33565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33566 (exit $ac_status); } &&
c9a66001 33567 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
33568 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33569 (eval $ac_try) 2>&5
33570 ac_status=$?
33571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33572 (exit $ac_status); }; } &&
33573 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
33574 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33575 (eval $ac_try) 2>&5
33576 ac_status=$?
33577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33578 (exit $ac_status); }; }; then
33579 eval "$as_ac_var=yes"
33580else
33581 echo "$as_me: failed program was:" >&5
33582sed 's/^/| /' conftest.$ac_ext >&5
33583
33584eval "$as_ac_var=no"
33585fi
ac1cb8d3
VS
33586rm -f conftest.err conftest.$ac_objext \
33587 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
33588fi
33589echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
33590echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
33591if test `eval echo '${'$as_ac_var'}'` = yes; then
33592 cat >>confdefs.h <<_ACEOF
33593#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33594_ACEOF
33595 WCSLEN_FOUND=1
33596fi
33597done
33598
33599
33600 if test "$WCSLEN_FOUND" = 0; then
33601 if test "$TOOLKIT" = "MSW"; then
33602 echo "$as_me:$LINENO: checking for wcslen in -lmsvcrt" >&5
33603echo $ECHO_N "checking for wcslen in -lmsvcrt... $ECHO_C" >&6
33604if test "${ac_cv_lib_msvcrt_wcslen+set}" = set; then
33605 echo $ECHO_N "(cached) $ECHO_C" >&6
33606else
33607 ac_check_lib_save_LIBS=$LIBS
33608LIBS="-lmsvcrt $LIBS"
33609cat >conftest.$ac_ext <<_ACEOF
33610/* confdefs.h. */
33611_ACEOF
33612cat confdefs.h >>conftest.$ac_ext
33613cat >>conftest.$ac_ext <<_ACEOF
33614/* end confdefs.h. */
33615
33616/* Override any gcc2 internal prototype to avoid an error. */
33617#ifdef __cplusplus
33618extern "C"
33619#endif
33620/* We use char because int might match the return type of a gcc2
33621 builtin and then its argument prototype would still apply. */
33622char wcslen ();
33623int
33624main ()
33625{
33626wcslen ();
33627 ;
33628 return 0;
33629}
33630_ACEOF
33631rm -f conftest.$ac_objext conftest$ac_exeext
33632if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 33633 (eval $ac_link) 2>conftest.er1
a848cd7e 33634 ac_status=$?
ac1cb8d3
VS
33635 grep -v '^ *+' conftest.er1 >conftest.err
33636 rm -f conftest.er1
33637 cat conftest.err >&5
a848cd7e
SC
33638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33639 (exit $ac_status); } &&
c9a66001 33640 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
33641 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33642 (eval $ac_try) 2>&5
33643 ac_status=$?
33644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33645 (exit $ac_status); }; } &&
33646 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
33647 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33648 (eval $ac_try) 2>&5
33649 ac_status=$?
33650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33651 (exit $ac_status); }; }; then
33652 ac_cv_lib_msvcrt_wcslen=yes
33653else
33654 echo "$as_me: failed program was:" >&5
33655sed 's/^/| /' conftest.$ac_ext >&5
33656
33657ac_cv_lib_msvcrt_wcslen=no
33658fi
ac1cb8d3
VS
33659rm -f conftest.err conftest.$ac_objext \
33660 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
33661LIBS=$ac_check_lib_save_LIBS
33662fi
33663echo "$as_me:$LINENO: result: $ac_cv_lib_msvcrt_wcslen" >&5
33664echo "${ECHO_T}$ac_cv_lib_msvcrt_wcslen" >&6
33665if test $ac_cv_lib_msvcrt_wcslen = yes; then
33666 WCHAR_OK=1
33667fi
33668
33669 else
33670 echo "$as_me:$LINENO: checking for wcslen in -lw" >&5
33671echo $ECHO_N "checking for wcslen in -lw... $ECHO_C" >&6
33672if test "${ac_cv_lib_w_wcslen+set}" = set; then
33673 echo $ECHO_N "(cached) $ECHO_C" >&6
33674else
33675 ac_check_lib_save_LIBS=$LIBS
33676LIBS="-lw $LIBS"
33677cat >conftest.$ac_ext <<_ACEOF
33678/* confdefs.h. */
33679_ACEOF
33680cat confdefs.h >>conftest.$ac_ext
33681cat >>conftest.$ac_ext <<_ACEOF
33682/* end confdefs.h. */
33683
33684/* Override any gcc2 internal prototype to avoid an error. */
33685#ifdef __cplusplus
33686extern "C"
33687#endif
33688/* We use char because int might match the return type of a gcc2
33689 builtin and then its argument prototype would still apply. */
33690char wcslen ();
33691int
33692main ()
33693{
33694wcslen ();
33695 ;
33696 return 0;
33697}
33698_ACEOF
33699rm -f conftest.$ac_objext conftest$ac_exeext
33700if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 33701 (eval $ac_link) 2>conftest.er1
a848cd7e 33702 ac_status=$?
ac1cb8d3
VS
33703 grep -v '^ *+' conftest.er1 >conftest.err
33704 rm -f conftest.er1
33705 cat conftest.err >&5
a848cd7e
SC
33706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33707 (exit $ac_status); } &&
c9a66001 33708 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
33709 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33710 (eval $ac_try) 2>&5
33711 ac_status=$?
33712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33713 (exit $ac_status); }; } &&
33714 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
33715 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33716 (eval $ac_try) 2>&5
33717 ac_status=$?
33718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33719 (exit $ac_status); }; }; then
33720 ac_cv_lib_w_wcslen=yes
33721else
33722 echo "$as_me: failed program was:" >&5
33723sed 's/^/| /' conftest.$ac_ext >&5
33724
33725ac_cv_lib_w_wcslen=no
33726fi
ac1cb8d3
VS
33727rm -f conftest.err conftest.$ac_objext \
33728 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
33729LIBS=$ac_check_lib_save_LIBS
33730fi
33731echo "$as_me:$LINENO: result: $ac_cv_lib_w_wcslen" >&5
33732echo "${ECHO_T}$ac_cv_lib_w_wcslen" >&6
33733if test $ac_cv_lib_w_wcslen = yes; then
33734
33735 WCHAR_LINK=" -lw"
33736 WCSLEN_FOUND=1
33737
33738fi
33739
33740 fi
33741 fi
33742
33743 if test "$WCSLEN_FOUND" = 1; then
33744 cat >>confdefs.h <<\_ACEOF
33745#define HAVE_WCSLEN 1
33746_ACEOF
33747
33748 fi
33749
efdf6afe 33750 if test "$USE_HPUX" = 1 -a "$GCC" != "yes"; then
c92ad099 33751 CPPFLAGS="-D_INCLUDE__STDC_A1_SOURCE $CPPFLAGS"
473276a9
VS
33752 fi
33753
efdf6afe
VZ
33754 echo "$as_me:$LINENO: checking for mbstate_t" >&5
33755echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6
33756if test "${ac_cv_type_mbstate_t+set}" = set; then
33757 echo $ECHO_N "(cached) $ECHO_C" >&6
33758else
33759 cat >conftest.$ac_ext <<_ACEOF
33760/* confdefs.h. */
33761_ACEOF
33762cat confdefs.h >>conftest.$ac_ext
33763cat >>conftest.$ac_ext <<_ACEOF
33764/* end confdefs.h. */
33765#include <wchar.h>
33766
33767int
33768main ()
33769{
33770if ((mbstate_t *) 0)
33771 return 0;
33772if (sizeof (mbstate_t))
33773 return 0;
33774 ;
33775 return 0;
33776}
33777_ACEOF
33778rm -f conftest.$ac_objext
33779if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33780 (eval $ac_compile) 2>conftest.er1
33781 ac_status=$?
33782 grep -v '^ *+' conftest.er1 >conftest.err
33783 rm -f conftest.er1
33784 cat conftest.err >&5
33785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33786 (exit $ac_status); } &&
c9a66001 33787 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
efdf6afe
VZ
33788 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33789 (eval $ac_try) 2>&5
33790 ac_status=$?
33791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33792 (exit $ac_status); }; } &&
33793 { ac_try='test -s conftest.$ac_objext'
33794 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33795 (eval $ac_try) 2>&5
33796 ac_status=$?
33797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33798 (exit $ac_status); }; }; then
33799 ac_cv_type_mbstate_t=yes
33800else
33801 echo "$as_me: failed program was:" >&5
33802sed 's/^/| /' conftest.$ac_ext >&5
33803
33804ac_cv_type_mbstate_t=no
33805fi
33806rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33807fi
33808echo "$as_me:$LINENO: result: $ac_cv_type_mbstate_t" >&5
33809echo "${ECHO_T}$ac_cv_type_mbstate_t" >&6
33810if test $ac_cv_type_mbstate_t = yes; then
33811
33812cat >>confdefs.h <<_ACEOF
33813#define HAVE_MBSTATE_T 1
33814_ACEOF
33815
a848cd7e
SC
33816
33817for ac_func in wcsrtombs
33818do
33819as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33820echo "$as_me:$LINENO: checking for $ac_func" >&5
33821echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
33822if eval "test \"\${$as_ac_var+set}\" = set"; then
33823 echo $ECHO_N "(cached) $ECHO_C" >&6
33824else
33825 cat >conftest.$ac_ext <<_ACEOF
33826/* confdefs.h. */
33827_ACEOF
33828cat confdefs.h >>conftest.$ac_ext
33829cat >>conftest.$ac_ext <<_ACEOF
33830/* end confdefs.h. */
ac1cb8d3
VS
33831/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33832 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33833#define $ac_func innocuous_$ac_func
33834
a848cd7e
SC
33835/* System header to define __stub macros and hopefully few prototypes,
33836 which can conflict with char $ac_func (); below.
33837 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33838 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 33839
a848cd7e
SC
33840#ifdef __STDC__
33841# include <limits.h>
33842#else
33843# include <assert.h>
33844#endif
ac1cb8d3
VS
33845
33846#undef $ac_func
33847
a848cd7e
SC
33848/* Override any gcc2 internal prototype to avoid an error. */
33849#ifdef __cplusplus
33850extern "C"
33851{
33852#endif
33853/* We use char because int might match the return type of a gcc2
33854 builtin and then its argument prototype would still apply. */
33855char $ac_func ();
33856/* The GNU C library defines this for functions which it implements
33857 to always fail with ENOSYS. Some functions are actually named
33858 something starting with __ and the normal name is an alias. */
33859#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
33860choke me
33861#else
33862char (*f) () = $ac_func;
33863#endif
33864#ifdef __cplusplus
33865}
33866#endif
33867
33868int
33869main ()
33870{
33871return f != $ac_func;
33872 ;
33873 return 0;
33874}
33875_ACEOF
33876rm -f conftest.$ac_objext conftest$ac_exeext
33877if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 33878 (eval $ac_link) 2>conftest.er1
a848cd7e 33879 ac_status=$?
ac1cb8d3
VS
33880 grep -v '^ *+' conftest.er1 >conftest.err
33881 rm -f conftest.er1
33882 cat conftest.err >&5
a848cd7e
SC
33883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33884 (exit $ac_status); } &&
c9a66001 33885 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
33886 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33887 (eval $ac_try) 2>&5
33888 ac_status=$?
33889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33890 (exit $ac_status); }; } &&
33891 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
33892 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33893 (eval $ac_try) 2>&5
33894 ac_status=$?
33895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33896 (exit $ac_status); }; }; then
33897 eval "$as_ac_var=yes"
33898else
33899 echo "$as_me: failed program was:" >&5
33900sed 's/^/| /' conftest.$ac_ext >&5
33901
33902eval "$as_ac_var=no"
33903fi
ac1cb8d3
VS
33904rm -f conftest.err conftest.$ac_objext \
33905 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
33906fi
33907echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
33908echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
33909if test `eval echo '${'$as_ac_var'}'` = yes; then
33910 cat >>confdefs.h <<_ACEOF
33911#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33912_ACEOF
33913
33914fi
33915done
33916
efdf6afe
VZ
33917fi
33918
a848cd7e
SC
33919else
33920 { echo "$as_me:$LINENO: WARNING: Wide character support is unavailable" >&5
33921echo "$as_me: WARNING: Wide character support is unavailable" >&2;}
33922fi
33923
a848cd7e 33924
4a767dd5
VZ
33925
33926for ac_func in snprintf vsnprintf
a848cd7e
SC
33927do
33928as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33929echo "$as_me:$LINENO: checking for $ac_func" >&5
33930echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
33931if eval "test \"\${$as_ac_var+set}\" = set"; then
33932 echo $ECHO_N "(cached) $ECHO_C" >&6
33933else
33934 cat >conftest.$ac_ext <<_ACEOF
33935/* confdefs.h. */
33936_ACEOF
33937cat confdefs.h >>conftest.$ac_ext
33938cat >>conftest.$ac_ext <<_ACEOF
33939/* end confdefs.h. */
ac1cb8d3
VS
33940/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33941 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33942#define $ac_func innocuous_$ac_func
33943
a848cd7e
SC
33944/* System header to define __stub macros and hopefully few prototypes,
33945 which can conflict with char $ac_func (); below.
33946 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33947 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 33948
a848cd7e
SC
33949#ifdef __STDC__
33950# include <limits.h>
33951#else
33952# include <assert.h>
33953#endif
ac1cb8d3
VS
33954
33955#undef $ac_func
33956
a848cd7e
SC
33957/* Override any gcc2 internal prototype to avoid an error. */
33958#ifdef __cplusplus
33959extern "C"
33960{
33961#endif
33962/* We use char because int might match the return type of a gcc2
33963 builtin and then its argument prototype would still apply. */
33964char $ac_func ();
33965/* The GNU C library defines this for functions which it implements
33966 to always fail with ENOSYS. Some functions are actually named
33967 something starting with __ and the normal name is an alias. */
33968#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
33969choke me
33970#else
33971char (*f) () = $ac_func;
33972#endif
33973#ifdef __cplusplus
33974}
33975#endif
33976
33977int
33978main ()
33979{
33980return f != $ac_func;
33981 ;
33982 return 0;
33983}
33984_ACEOF
33985rm -f conftest.$ac_objext conftest$ac_exeext
33986if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 33987 (eval $ac_link) 2>conftest.er1
a848cd7e 33988 ac_status=$?
ac1cb8d3
VS
33989 grep -v '^ *+' conftest.er1 >conftest.err
33990 rm -f conftest.er1
33991 cat conftest.err >&5
a848cd7e
SC
33992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33993 (exit $ac_status); } &&
c9a66001 33994 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
33995 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33996 (eval $ac_try) 2>&5
33997 ac_status=$?
33998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33999 (exit $ac_status); }; } &&
34000 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
34001 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34002 (eval $ac_try) 2>&5
34003 ac_status=$?
34004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34005 (exit $ac_status); }; }; then
34006 eval "$as_ac_var=yes"
34007else
34008 echo "$as_me: failed program was:" >&5
34009sed 's/^/| /' conftest.$ac_ext >&5
34010
34011eval "$as_ac_var=no"
34012fi
ac1cb8d3
VS
34013rm -f conftest.err conftest.$ac_objext \
34014 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
34015fi
34016echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
34017echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
34018if test `eval echo '${'$as_ac_var'}'` = yes; then
34019 cat >>confdefs.h <<_ACEOF
34020#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34021_ACEOF
34022
34023fi
34024done
34025
34026
34027if test "$ac_cv_func_vsnprintf" = "yes"; then
34028 echo "$as_me:$LINENO: checking for vsnprintf declaration" >&5
34029echo $ECHO_N "checking for vsnprintf declaration... $ECHO_C" >&6
34030if test "${wx_cv_func_vsnprintf_decl+set}" = set; then
34031 echo $ECHO_N "(cached) $ECHO_C" >&6
34032else
34033
efdf6afe 34034 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
34035/* confdefs.h. */
34036_ACEOF
34037cat confdefs.h >>conftest.$ac_ext
34038cat >>conftest.$ac_ext <<_ACEOF
34039/* end confdefs.h. */
34040
34041 #include <stdio.h>
34042 #include <stdarg.h>
efdf6afe
VZ
34043 #ifdef __MSL__
34044 #if __MSL__ >= 0x6000
34045 namespace std {}
34046 using namespace std;
34047 #endif
34048 #endif
a848cd7e
SC
34049
34050int
34051main ()
34052{
34053
34054 char *buf;
34055 va_list ap;
62fa8b3a 34056 vsnprintf(buf, 10u, "%s", ap);
c122b164
DE
34057
34058 ;
34059 return 0;
34060}
34061_ACEOF
34062rm -f conftest.$ac_objext
34063if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34064 (eval $ac_compile) 2>conftest.er1
34065 ac_status=$?
34066 grep -v '^ *+' conftest.er1 >conftest.err
34067 rm -f conftest.er1
34068 cat conftest.err >&5
34069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34070 (exit $ac_status); } &&
c9a66001 34071 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
c122b164
DE
34072 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34073 (eval $ac_try) 2>&5
34074 ac_status=$?
34075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34076 (exit $ac_status); }; } &&
34077 { ac_try='test -s conftest.$ac_objext'
34078 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34079 (eval $ac_try) 2>&5
34080 ac_status=$?
34081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34082 (exit $ac_status); }; }; then
34083 wx_cv_func_vsnprintf_decl=yes
34084else
34085 echo "$as_me: failed program was:" >&5
34086sed 's/^/| /' conftest.$ac_ext >&5
34087
a848cd7e
SC
34088wx_cv_func_vsnprintf_decl=no
34089
34090fi
ac1cb8d3 34091rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
34092
34093
34094fi
34095echo "$as_me:$LINENO: result: $wx_cv_func_vsnprintf_decl" >&5
34096echo "${ECHO_T}$wx_cv_func_vsnprintf_decl" >&6
34097
34098 if test "$wx_cv_func_vsnprintf_decl" = "yes"; then
34099 cat >>confdefs.h <<\_ACEOF
34100#define HAVE_VSNPRINTF_DECL 1
34101_ACEOF
34102
62fa8b3a
MW
34103
34104 echo "$as_me:$LINENO: checking if vsnprintf declaration is broken" >&5
34105echo $ECHO_N "checking if vsnprintf declaration is broken... $ECHO_C" >&6
34106if test "${wx_cv_func_broken_vsnprintf_decl+set}" = set; then
34107 echo $ECHO_N "(cached) $ECHO_C" >&6
34108else
34109
34110 cat >conftest.$ac_ext <<_ACEOF
34111/* confdefs.h. */
34112_ACEOF
34113cat confdefs.h >>conftest.$ac_ext
34114cat >>conftest.$ac_ext <<_ACEOF
34115/* end confdefs.h. */
34116
34117 #include <stdio.h>
34118 #include <stdarg.h>
34119 #ifdef __MSL__
34120 #if __MSL__ >= 0x6000
34121 namespace std {}
34122 using namespace std;
34123 #endif
34124 #endif
34125
34126int
34127main ()
34128{
34129
34130 char *buf;
34131 va_list ap;
34132 const char *fmt = "%s";
34133 vsnprintf(buf, 10u, fmt, ap);
34134
34135 ;
34136 return 0;
34137}
34138_ACEOF
34139rm -f conftest.$ac_objext
34140if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34141 (eval $ac_compile) 2>conftest.er1
34142 ac_status=$?
34143 grep -v '^ *+' conftest.er1 >conftest.err
34144 rm -f conftest.er1
34145 cat conftest.err >&5
34146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34147 (exit $ac_status); } &&
c9a66001 34148 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
62fa8b3a
MW
34149 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34150 (eval $ac_try) 2>&5
34151 ac_status=$?
34152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34153 (exit $ac_status); }; } &&
34154 { ac_try='test -s conftest.$ac_objext'
34155 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34156 (eval $ac_try) 2>&5
34157 ac_status=$?
34158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34159 (exit $ac_status); }; }; then
34160 wx_cv_func_broken_vsnprintf_decl=no
34161else
34162 echo "$as_me: failed program was:" >&5
34163sed 's/^/| /' conftest.$ac_ext >&5
34164
34165wx_cv_func_broken_vsnprintf_decl=yes
34166
34167fi
34168rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34169
34170
34171fi
34172echo "$as_me:$LINENO: result: $wx_cv_func_broken_vsnprintf_decl" >&5
34173echo "${ECHO_T}$wx_cv_func_broken_vsnprintf_decl" >&6
34174
34175 if test "$wx_cv_func_broken_vsnprintf_decl" = "yes"; then
34176 cat >>confdefs.h <<\_ACEOF
34177#define HAVE_BROKEN_VSNPRINTF_DECL 1
34178_ACEOF
34179
34180 fi
a848cd7e
SC
34181 fi
34182fi
34183
4a767dd5
VZ
34184if test "$ac_cv_func_snprintf" = "yes"; then
34185 echo "$as_me:$LINENO: checking for snprintf declaration" >&5
34186echo $ECHO_N "checking for snprintf declaration... $ECHO_C" >&6
34187if test "${wx_cv_func_snprintf_decl+set}" = set; then
34188 echo $ECHO_N "(cached) $ECHO_C" >&6
34189else
34190
34191 cat >conftest.$ac_ext <<_ACEOF
34192/* confdefs.h. */
34193_ACEOF
34194cat confdefs.h >>conftest.$ac_ext
34195cat >>conftest.$ac_ext <<_ACEOF
34196/* end confdefs.h. */
34197
34198 #include <stdio.h>
34199 #include <stdarg.h>
34200 #ifdef __MSL__
34201 #if __MSL__ >= 0x6000
34202 namespace std {}
34203 using namespace std;
34204 #endif
34205 #endif
34206
34207int
34208main ()
34209{
34210
34211 char *buf;
62fa8b3a 34212 snprintf(buf, 10u, "%s", "wx");
4a767dd5
VZ
34213
34214 ;
34215 return 0;
34216}
34217_ACEOF
34218rm -f conftest.$ac_objext
34219if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34220 (eval $ac_compile) 2>conftest.er1
34221 ac_status=$?
34222 grep -v '^ *+' conftest.er1 >conftest.err
34223 rm -f conftest.er1
34224 cat conftest.err >&5
34225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34226 (exit $ac_status); } &&
c9a66001 34227 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
4a767dd5
VZ
34228 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34229 (eval $ac_try) 2>&5
34230 ac_status=$?
34231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34232 (exit $ac_status); }; } &&
34233 { ac_try='test -s conftest.$ac_objext'
34234 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34235 (eval $ac_try) 2>&5
34236 ac_status=$?
34237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34238 (exit $ac_status); }; }; then
34239 wx_cv_func_snprintf_decl=yes
34240else
34241 echo "$as_me: failed program was:" >&5
34242sed 's/^/| /' conftest.$ac_ext >&5
34243
34244wx_cv_func_snprintf_decl=no
34245
34246fi
34247rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34248
34249
34250fi
34251echo "$as_me:$LINENO: result: $wx_cv_func_snprintf_decl" >&5
34252echo "${ECHO_T}$wx_cv_func_snprintf_decl" >&6
34253
34254 if test "$wx_cv_func_snprintf_decl" = "yes"; then
34255 cat >>confdefs.h <<\_ACEOF
34256#define HAVE_SNPRINTF_DECL 1
34257_ACEOF
34258
62fa8b3a
MW
34259
34260 echo "$as_me:$LINENO: checking if snprintf declaration is broken" >&5
34261echo $ECHO_N "checking if snprintf declaration is broken... $ECHO_C" >&6
34262if test "${wx_cv_func_broken_snprintf_decl+set}" = set; then
34263 echo $ECHO_N "(cached) $ECHO_C" >&6
34264else
34265
34266 cat >conftest.$ac_ext <<_ACEOF
34267/* confdefs.h. */
34268_ACEOF
34269cat confdefs.h >>conftest.$ac_ext
34270cat >>conftest.$ac_ext <<_ACEOF
34271/* end confdefs.h. */
34272
34273 #include <stdio.h>
34274 #include <stdarg.h>
34275 #ifdef __MSL__
34276 #if __MSL__ >= 0x6000
34277 namespace std {}
34278 using namespace std;
34279 #endif
34280 #endif
34281
34282int
34283main ()
34284{
34285
34286 char *buf;
34287 const char *fmt = "%s";
34288 snprintf(buf, 10u, fmt, "wx");
34289
34290 ;
34291 return 0;
34292}
34293_ACEOF
34294rm -f conftest.$ac_objext
34295if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34296 (eval $ac_compile) 2>conftest.er1
34297 ac_status=$?
34298 grep -v '^ *+' conftest.er1 >conftest.err
34299 rm -f conftest.er1
34300 cat conftest.err >&5
34301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34302 (exit $ac_status); } &&
c9a66001 34303 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
62fa8b3a
MW
34304 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34305 (eval $ac_try) 2>&5
34306 ac_status=$?
34307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34308 (exit $ac_status); }; } &&
34309 { ac_try='test -s conftest.$ac_objext'
34310 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34311 (eval $ac_try) 2>&5
34312 ac_status=$?
34313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34314 (exit $ac_status); }; }; then
34315 wx_cv_func_broken_snprintf_decl=no
34316else
34317 echo "$as_me: failed program was:" >&5
34318sed 's/^/| /' conftest.$ac_ext >&5
34319
34320wx_cv_func_broken_snprintf_decl=yes
34321
34322fi
34323rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34324
34325
34326fi
34327echo "$as_me:$LINENO: result: $wx_cv_func_broken_snprintf_decl" >&5
34328echo "${ECHO_T}$wx_cv_func_broken_snprintf_decl" >&6
34329
34330 if test "$wx_cv_func_broken_snprintf_decl" = "yes"; then
34331 cat >>confdefs.h <<\_ACEOF
34332#define HAVE_BROKEN_SNPRINTF_DECL 1
8b6682b9
JS
34333_ACEOF
34334
34335 fi
34336 fi
34337
34338 if test "$wxUSE_PRINTF_POS_PARAMS" = "yes"; then
34339
34340 echo "$as_me:$LINENO: checking if snprintf supports positional arguments" >&5
34341echo $ECHO_N "checking if snprintf supports positional arguments... $ECHO_C" >&6
34342if test "${wx_cv_func_snprintf_pos_params+set}" = set; then
34343 echo $ECHO_N "(cached) $ECHO_C" >&6
34344else
34345
34346 if test "$cross_compiling" = yes; then
34347 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
34348See \`config.log' for more details." >&5
34349echo "$as_me: error: cannot run test program while cross compiling
34350See \`config.log' for more details." >&2;}
34351 { (exit 1); exit 1; }; }
34352else
34353 cat >conftest.$ac_ext <<_ACEOF
34354/* confdefs.h. */
34355_ACEOF
34356cat confdefs.h >>conftest.$ac_ext
34357cat >>conftest.$ac_ext <<_ACEOF
34358/* end confdefs.h. */
34359
34360 #include <stdio.h>
34361
34362 int main (void)
34363 {
34364 char buffer[128];
34365 snprintf (buffer, 128, "%2\$d %3\$d %1\$d", 1, 2, 3);
34366 if (strcmp ("2 3 1", buffer) == 0)
34367 exit (0);
34368 exit (1);
34369 }
34370
34371_ACEOF
34372rm -f conftest$ac_exeext
34373if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34374 (eval $ac_link) 2>&5
34375 ac_status=$?
34376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34377 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
34378 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34379 (eval $ac_try) 2>&5
34380 ac_status=$?
34381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34382 (exit $ac_status); }; }; then
34383 wx_cv_func_snprintf_pos_params=no
34384else
34385 echo "$as_me: program exited with status $ac_status" >&5
34386echo "$as_me: failed program was:" >&5
34387sed 's/^/| /' conftest.$ac_ext >&5
34388
34389( exit $ac_status )
34390wx_cv_func_snprintf_pos_params=yes
34391
34392fi
34393rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
34394fi
34395
34396
34397fi
34398echo "$as_me:$LINENO: result: $wx_cv_func_snprintf_pos_params" >&5
34399echo "${ECHO_T}$wx_cv_func_snprintf_pos_params" >&6
34400
34401 if test "$wx_cv_func_snprintf_pos_params" = "yes"; then
34402 cat >>confdefs.h <<\_ACEOF
34403#define HAVE_UNIX98_PRINTF 1
62fa8b3a
MW
34404_ACEOF
34405
34406 fi
4a767dd5
VZ
34407 fi
34408fi
34409
8b6682b9 34410
a848cd7e
SC
34411if test "$wxUSE_UNICODE" = yes; then
34412
34413
34414
fbe47c7b
VS
34415
34416
34417
34418for ac_func in wputc wputchar putws fputws wprintf vswprintf
a848cd7e
SC
34419do
34420as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34421echo "$as_me:$LINENO: checking for $ac_func" >&5
34422echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
34423if eval "test \"\${$as_ac_var+set}\" = set"; then
34424 echo $ECHO_N "(cached) $ECHO_C" >&6
34425else
34426 cat >conftest.$ac_ext <<_ACEOF
34427/* confdefs.h. */
34428_ACEOF
34429cat confdefs.h >>conftest.$ac_ext
34430cat >>conftest.$ac_ext <<_ACEOF
34431/* end confdefs.h. */
ac1cb8d3
VS
34432/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34433 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34434#define $ac_func innocuous_$ac_func
34435
a848cd7e
SC
34436/* System header to define __stub macros and hopefully few prototypes,
34437 which can conflict with char $ac_func (); below.
34438 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34439 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 34440
a848cd7e
SC
34441#ifdef __STDC__
34442# include <limits.h>
34443#else
34444# include <assert.h>
34445#endif
ac1cb8d3
VS
34446
34447#undef $ac_func
34448
a848cd7e
SC
34449/* Override any gcc2 internal prototype to avoid an error. */
34450#ifdef __cplusplus
34451extern "C"
34452{
34453#endif
34454/* We use char because int might match the return type of a gcc2
34455 builtin and then its argument prototype would still apply. */
34456char $ac_func ();
34457/* The GNU C library defines this for functions which it implements
34458 to always fail with ENOSYS. Some functions are actually named
34459 something starting with __ and the normal name is an alias. */
34460#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
34461choke me
34462#else
34463char (*f) () = $ac_func;
34464#endif
34465#ifdef __cplusplus
34466}
34467#endif
34468
34469int
34470main ()
34471{
34472return f != $ac_func;
34473 ;
34474 return 0;
34475}
34476_ACEOF
34477rm -f conftest.$ac_objext conftest$ac_exeext
34478if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 34479 (eval $ac_link) 2>conftest.er1
a848cd7e 34480 ac_status=$?
ac1cb8d3
VS
34481 grep -v '^ *+' conftest.er1 >conftest.err
34482 rm -f conftest.er1
34483 cat conftest.err >&5
a848cd7e
SC
34484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34485 (exit $ac_status); } &&
c9a66001 34486 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
34487 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34488 (eval $ac_try) 2>&5
34489 ac_status=$?
34490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34491 (exit $ac_status); }; } &&
34492 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
34493 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34494 (eval $ac_try) 2>&5
34495 ac_status=$?
34496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34497 (exit $ac_status); }; }; then
34498 eval "$as_ac_var=yes"
34499else
34500 echo "$as_me: failed program was:" >&5
34501sed 's/^/| /' conftest.$ac_ext >&5
34502
34503eval "$as_ac_var=no"
34504fi
ac1cb8d3
VS
34505rm -f conftest.err conftest.$ac_objext \
34506 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
34507fi
34508echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
34509echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
34510if test `eval echo '${'$as_ac_var'}'` = yes; then
34511 cat >>confdefs.h <<_ACEOF
34512#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34513_ACEOF
34514
34515fi
34516done
34517
34518
34519 echo "$as_me:$LINENO: checking for _vsnwprintf" >&5
34520echo $ECHO_N "checking for _vsnwprintf... $ECHO_C" >&6
34521 cat >conftest.$ac_ext <<_ACEOF
34522/* confdefs.h. */
34523_ACEOF
34524cat confdefs.h >>conftest.$ac_ext
34525cat >>conftest.$ac_ext <<_ACEOF
34526/* end confdefs.h. */
34527#include <wchar.h>
34528int
34529main ()
34530{
34531&_vsnwprintf;
34532 ;
34533 return 0;
34534}
34535_ACEOF
34536rm -f conftest.$ac_objext
34537if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 34538 (eval $ac_compile) 2>conftest.er1
a848cd7e 34539 ac_status=$?
ac1cb8d3
VS
34540 grep -v '^ *+' conftest.er1 >conftest.err
34541 rm -f conftest.er1
34542 cat conftest.err >&5
a848cd7e
SC
34543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34544 (exit $ac_status); } &&
c9a66001 34545 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
34546 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34547 (eval $ac_try) 2>&5
34548 ac_status=$?
34549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34550 (exit $ac_status); }; } &&
34551 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
34552 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34553 (eval $ac_try) 2>&5
34554 ac_status=$?
34555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34556 (exit $ac_status); }; }; then
34557 echo "$as_me:$LINENO: result: yes" >&5
34558echo "${ECHO_T}yes" >&6
34559 cat >>confdefs.h <<\_ACEOF
34560#define HAVE__VSNWPRINTF 1
34561_ACEOF
34562
34563else
34564 echo "$as_me: failed program was:" >&5
34565sed 's/^/| /' conftest.$ac_ext >&5
34566
34567echo "$as_me:$LINENO: result: no" >&5
34568echo "${ECHO_T}no" >&6
34569fi
ac1cb8d3 34570rm -f conftest.err conftest.$ac_objext conftest.$ac_ext;
a848cd7e
SC
34571fi
34572
6ebeb4c7
VZ
34573if test "x$ac_cv_header_fnmatch_h" = "xyes"; then
34574
34575for ac_func in fnmatch
34576do
34577as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34578echo "$as_me:$LINENO: checking for $ac_func" >&5
34579echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
34580if eval "test \"\${$as_ac_var+set}\" = set"; then
34581 echo $ECHO_N "(cached) $ECHO_C" >&6
34582else
34583 cat >conftest.$ac_ext <<_ACEOF
34584/* confdefs.h. */
34585_ACEOF
34586cat confdefs.h >>conftest.$ac_ext
34587cat >>conftest.$ac_ext <<_ACEOF
34588/* end confdefs.h. */
34589/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34590 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34591#define $ac_func innocuous_$ac_func
34592
34593/* System header to define __stub macros and hopefully few prototypes,
34594 which can conflict with char $ac_func (); below.
34595 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34596 <limits.h> exists even on freestanding compilers. */
34597
34598#ifdef __STDC__
34599# include <limits.h>
34600#else
34601# include <assert.h>
34602#endif
34603
34604#undef $ac_func
34605
34606/* Override any gcc2 internal prototype to avoid an error. */
34607#ifdef __cplusplus
34608extern "C"
34609{
34610#endif
34611/* We use char because int might match the return type of a gcc2
34612 builtin and then its argument prototype would still apply. */
34613char $ac_func ();
34614/* The GNU C library defines this for functions which it implements
34615 to always fail with ENOSYS. Some functions are actually named
34616 something starting with __ and the normal name is an alias. */
34617#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
34618choke me
34619#else
34620char (*f) () = $ac_func;
34621#endif
34622#ifdef __cplusplus
34623}
34624#endif
34625
34626int
34627main ()
34628{
34629return f != $ac_func;
34630 ;
34631 return 0;
34632}
34633_ACEOF
34634rm -f conftest.$ac_objext conftest$ac_exeext
34635if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34636 (eval $ac_link) 2>conftest.er1
34637 ac_status=$?
34638 grep -v '^ *+' conftest.er1 >conftest.err
34639 rm -f conftest.er1
34640 cat conftest.err >&5
34641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34642 (exit $ac_status); } &&
c9a66001 34643 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6ebeb4c7
VZ
34644 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34645 (eval $ac_try) 2>&5
34646 ac_status=$?
34647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34648 (exit $ac_status); }; } &&
34649 { ac_try='test -s conftest$ac_exeext'
34650 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34651 (eval $ac_try) 2>&5
34652 ac_status=$?
34653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34654 (exit $ac_status); }; }; then
34655 eval "$as_ac_var=yes"
34656else
34657 echo "$as_me: failed program was:" >&5
34658sed 's/^/| /' conftest.$ac_ext >&5
34659
34660eval "$as_ac_var=no"
34661fi
34662rm -f conftest.err conftest.$ac_objext \
34663 conftest$ac_exeext conftest.$ac_ext
34664fi
34665echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
34666echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
34667if test `eval echo '${'$as_ac_var'}'` = yes; then
34668 cat >>confdefs.h <<_ACEOF
34669#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34670_ACEOF
34671
34672fi
34673done
34674
34675fi
34676
34677if test "$wxUSE_FILE" = "yes"; then
34678
34679for ac_func in fsync
34680do
34681as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34682echo "$as_me:$LINENO: checking for $ac_func" >&5
34683echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
34684if eval "test \"\${$as_ac_var+set}\" = set"; then
34685 echo $ECHO_N "(cached) $ECHO_C" >&6
34686else
34687 cat >conftest.$ac_ext <<_ACEOF
34688/* confdefs.h. */
34689_ACEOF
34690cat confdefs.h >>conftest.$ac_ext
34691cat >>conftest.$ac_ext <<_ACEOF
34692/* end confdefs.h. */
34693/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34694 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34695#define $ac_func innocuous_$ac_func
34696
34697/* System header to define __stub macros and hopefully few prototypes,
34698 which can conflict with char $ac_func (); below.
34699 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34700 <limits.h> exists even on freestanding compilers. */
34701
34702#ifdef __STDC__
34703# include <limits.h>
34704#else
34705# include <assert.h>
34706#endif
34707
34708#undef $ac_func
34709
34710/* Override any gcc2 internal prototype to avoid an error. */
34711#ifdef __cplusplus
34712extern "C"
34713{
34714#endif
34715/* We use char because int might match the return type of a gcc2
34716 builtin and then its argument prototype would still apply. */
34717char $ac_func ();
34718/* The GNU C library defines this for functions which it implements
34719 to always fail with ENOSYS. Some functions are actually named
34720 something starting with __ and the normal name is an alias. */
34721#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
34722choke me
34723#else
34724char (*f) () = $ac_func;
34725#endif
34726#ifdef __cplusplus
34727}
34728#endif
34729
34730int
34731main ()
34732{
34733return f != $ac_func;
34734 ;
34735 return 0;
34736}
34737_ACEOF
34738rm -f conftest.$ac_objext conftest$ac_exeext
34739if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34740 (eval $ac_link) 2>conftest.er1
34741 ac_status=$?
34742 grep -v '^ *+' conftest.er1 >conftest.err
34743 rm -f conftest.er1
34744 cat conftest.err >&5
34745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34746 (exit $ac_status); } &&
c9a66001 34747 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6ebeb4c7
VZ
34748 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34749 (eval $ac_try) 2>&5
34750 ac_status=$?
34751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34752 (exit $ac_status); }; } &&
34753 { ac_try='test -s conftest$ac_exeext'
34754 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34755 (eval $ac_try) 2>&5
34756 ac_status=$?
34757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34758 (exit $ac_status); }; }; then
34759 eval "$as_ac_var=yes"
34760else
34761 echo "$as_me: failed program was:" >&5
34762sed 's/^/| /' conftest.$ac_ext >&5
34763
34764eval "$as_ac_var=no"
34765fi
34766rm -f conftest.err conftest.$ac_objext \
34767 conftest$ac_exeext conftest.$ac_ext
34768fi
34769echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
34770echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
34771if test `eval echo '${'$as_ac_var'}'` = yes; then
34772 cat >>confdefs.h <<_ACEOF
34773#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34774_ACEOF
34775
34776fi
34777done
34778
34779fi
a848cd7e
SC
34780
34781
34782if test "$TOOLKIT" != "MSW"; then
34783
34784
a848cd7e
SC
34785
34786
34787
34788# Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
34789if test "${with_libiconv_prefix+set}" = set; then
34790 withval="$with_libiconv_prefix"
34791
34792 for dir in `echo "$withval" | tr : ' '`; do
34793 if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi
34794 if test -d $dir/lib; then LDFLAGS="$LDFLAGS -L$dir/lib"; fi
34795 done
34796
34797fi;
34798
34799 echo "$as_me:$LINENO: checking for iconv" >&5
34800echo $ECHO_N "checking for iconv... $ECHO_C" >&6
34801if test "${am_cv_func_iconv+set}" = set; then
34802 echo $ECHO_N "(cached) $ECHO_C" >&6
34803else
34804
34805 am_cv_func_iconv="no, consider installing GNU libiconv"
34806 am_cv_lib_iconv=no
34807 cat >conftest.$ac_ext <<_ACEOF
34808/* confdefs.h. */
34809_ACEOF
34810cat confdefs.h >>conftest.$ac_ext
34811cat >>conftest.$ac_ext <<_ACEOF
34812/* end confdefs.h. */
34813#include <stdlib.h>
34814#include <iconv.h>
34815int
34816main ()
34817{
34818iconv_t cd = iconv_open("","");
34819 iconv(cd,NULL,NULL,NULL,NULL);
34820 iconv_close(cd);
34821 ;
34822 return 0;
34823}
34824_ACEOF
34825rm -f conftest.$ac_objext conftest$ac_exeext
34826if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 34827 (eval $ac_link) 2>conftest.er1
a848cd7e 34828 ac_status=$?
ac1cb8d3
VS
34829 grep -v '^ *+' conftest.er1 >conftest.err
34830 rm -f conftest.er1
34831 cat conftest.err >&5
a848cd7e
SC
34832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34833 (exit $ac_status); } &&
c9a66001 34834 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
34835 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34836 (eval $ac_try) 2>&5
34837 ac_status=$?
34838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34839 (exit $ac_status); }; } &&
34840 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
34841 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34842 (eval $ac_try) 2>&5
34843 ac_status=$?
34844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34845 (exit $ac_status); }; }; then
34846 am_cv_func_iconv=yes
34847else
34848 echo "$as_me: failed program was:" >&5
34849sed 's/^/| /' conftest.$ac_ext >&5
34850
34851fi
ac1cb8d3
VS
34852rm -f conftest.err conftest.$ac_objext \
34853 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
34854 if test "$am_cv_func_iconv" != yes; then
34855 am_save_LIBS="$LIBS"
34856 LIBS="$LIBS -liconv"
34857 cat >conftest.$ac_ext <<_ACEOF
34858/* confdefs.h. */
34859_ACEOF
34860cat confdefs.h >>conftest.$ac_ext
34861cat >>conftest.$ac_ext <<_ACEOF
34862/* end confdefs.h. */
34863#include <stdlib.h>
34864#include <iconv.h>
34865int
34866main ()
34867{
34868iconv_t cd = iconv_open("","");
34869 iconv(cd,NULL,NULL,NULL,NULL);
34870 iconv_close(cd);
34871 ;
34872 return 0;
34873}
34874_ACEOF
34875rm -f conftest.$ac_objext conftest$ac_exeext
34876if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 34877 (eval $ac_link) 2>conftest.er1
a848cd7e 34878 ac_status=$?
ac1cb8d3
VS
34879 grep -v '^ *+' conftest.er1 >conftest.err
34880 rm -f conftest.er1
34881 cat conftest.err >&5
a848cd7e
SC
34882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34883 (exit $ac_status); } &&
c9a66001 34884 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
34885 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34886 (eval $ac_try) 2>&5
34887 ac_status=$?
34888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34889 (exit $ac_status); }; } &&
34890 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
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); }; }; then
34896 am_cv_lib_iconv=yes
34897 am_cv_func_iconv=yes
34898else
34899 echo "$as_me: failed program was:" >&5
34900sed 's/^/| /' conftest.$ac_ext >&5
34901
34902fi
ac1cb8d3
VS
34903rm -f conftest.err conftest.$ac_objext \
34904 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
34905 LIBS="$am_save_LIBS"
34906 fi
34907
34908fi
34909echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
34910echo "${ECHO_T}$am_cv_func_iconv" >&6
34911 if test "$am_cv_func_iconv" = yes; then
34912
34913cat >>confdefs.h <<\_ACEOF
34914#define HAVE_ICONV 1
34915_ACEOF
34916
34917 echo "$as_me:$LINENO: checking if iconv needs const" >&5
34918echo $ECHO_N "checking if iconv needs const... $ECHO_C" >&6
34919if test "${wx_cv_func_iconv_const+set}" = set; then
34920 echo $ECHO_N "(cached) $ECHO_C" >&6
34921else
34922 cat >conftest.$ac_ext <<_ACEOF
34923/* confdefs.h. */
34924_ACEOF
34925cat confdefs.h >>conftest.$ac_ext
34926cat >>conftest.$ac_ext <<_ACEOF
34927/* end confdefs.h. */
34928
34929#include <stdlib.h>
34930#include <iconv.h>
34931extern
34932#ifdef __cplusplus
34933"C"
34934#endif
34935#if defined(__STDC__) || defined(__cplusplus)
34936size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
34937#else
34938size_t iconv();
34939#endif
34940
34941int
34942main ()
34943{
34944
34945 ;
34946 return 0;
34947}
34948_ACEOF
34949rm -f conftest.$ac_objext
34950if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 34951 (eval $ac_compile) 2>conftest.er1
a848cd7e 34952 ac_status=$?
ac1cb8d3
VS
34953 grep -v '^ *+' conftest.er1 >conftest.err
34954 rm -f conftest.er1
34955 cat conftest.err >&5
a848cd7e
SC
34956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34957 (exit $ac_status); } &&
c9a66001 34958 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
34959 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34960 (eval $ac_try) 2>&5
34961 ac_status=$?
34962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34963 (exit $ac_status); }; } &&
34964 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
34965 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34966 (eval $ac_try) 2>&5
34967 ac_status=$?
34968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34969 (exit $ac_status); }; }; then
34970 wx_cv_func_iconv_const="no"
34971else
34972 echo "$as_me: failed program was:" >&5
34973sed 's/^/| /' conftest.$ac_ext >&5
34974
34975wx_cv_func_iconv_const="yes"
34976
34977fi
ac1cb8d3 34978rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
34979
34980fi
34981echo "$as_me:$LINENO: result: $wx_cv_func_iconv_const" >&5
34982echo "${ECHO_T}$wx_cv_func_iconv_const" >&6
34983
34984 iconv_const=
34985 if test "x$wx_cv_func_iconv_const" = "xyes"; then
34986 iconv_const="const"
34987 fi
34988
34989
34990cat >>confdefs.h <<_ACEOF
34991#define ICONV_CONST $iconv_const
34992_ACEOF
34993
34994 fi
34995 LIBICONV=
34996 if test "$am_cv_lib_iconv" = yes; then
34997 LIBICONV="-liconv"
34998 fi
34999
35000
35001LIBS="$LIBICONV $LIBS"
a848cd7e
SC
35002
35003if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes" -a "$wxUSE_UNIX" = "yes"; then
35004
35005for ac_func in sigaction
35006do
35007as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35008echo "$as_me:$LINENO: checking for $ac_func" >&5
35009echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
35010if eval "test \"\${$as_ac_var+set}\" = set"; then
35011 echo $ECHO_N "(cached) $ECHO_C" >&6
35012else
35013 cat >conftest.$ac_ext <<_ACEOF
35014/* confdefs.h. */
35015_ACEOF
35016cat confdefs.h >>conftest.$ac_ext
35017cat >>conftest.$ac_ext <<_ACEOF
35018/* end confdefs.h. */
ac1cb8d3
VS
35019/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
35020 For example, HP-UX 11i <limits.h> declares gettimeofday. */
35021#define $ac_func innocuous_$ac_func
35022
a848cd7e
SC
35023/* System header to define __stub macros and hopefully few prototypes,
35024 which can conflict with char $ac_func (); below.
35025 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35026 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 35027
a848cd7e
SC
35028#ifdef __STDC__
35029# include <limits.h>
35030#else
35031# include <assert.h>
35032#endif
ac1cb8d3
VS
35033
35034#undef $ac_func
35035
a848cd7e
SC
35036/* Override any gcc2 internal prototype to avoid an error. */
35037#ifdef __cplusplus
35038extern "C"
35039{
35040#endif
35041/* We use char because int might match the return type of a gcc2
35042 builtin and then its argument prototype would still apply. */
35043char $ac_func ();
35044/* The GNU C library defines this for functions which it implements
35045 to always fail with ENOSYS. Some functions are actually named
35046 something starting with __ and the normal name is an alias. */
35047#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
35048choke me
35049#else
35050char (*f) () = $ac_func;
35051#endif
35052#ifdef __cplusplus
35053}
35054#endif
35055
35056int
35057main ()
35058{
35059return f != $ac_func;
35060 ;
35061 return 0;
35062}
35063_ACEOF
35064rm -f conftest.$ac_objext conftest$ac_exeext
35065if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 35066 (eval $ac_link) 2>conftest.er1
a848cd7e 35067 ac_status=$?
ac1cb8d3
VS
35068 grep -v '^ *+' conftest.er1 >conftest.err
35069 rm -f conftest.er1
35070 cat conftest.err >&5
a848cd7e
SC
35071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35072 (exit $ac_status); } &&
c9a66001 35073 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
35074 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35075 (eval $ac_try) 2>&5
35076 ac_status=$?
35077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35078 (exit $ac_status); }; } &&
35079 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
35080 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35081 (eval $ac_try) 2>&5
35082 ac_status=$?
35083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35084 (exit $ac_status); }; }; then
35085 eval "$as_ac_var=yes"
35086else
35087 echo "$as_me: failed program was:" >&5
35088sed 's/^/| /' conftest.$ac_ext >&5
35089
35090eval "$as_ac_var=no"
35091fi
ac1cb8d3
VS
35092rm -f conftest.err conftest.$ac_objext \
35093 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
35094fi
35095echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
35096echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
35097if test `eval echo '${'$as_ac_var'}'` = yes; then
35098 cat >>confdefs.h <<_ACEOF
35099#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35100_ACEOF
35101
35102fi
35103done
35104
35105
35106 if test "$ac_cv_func_sigaction" = "no"; then
35107 { echo "$as_me:$LINENO: WARNING: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" >&5
35108echo "$as_me: WARNING: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" >&2;}
35109 wxUSE_ON_FATAL_EXCEPTION=no
35110 fi
35111
35112 if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
a848cd7e
SC
35113 echo "$as_me:$LINENO: checking for sa_handler type" >&5
35114echo $ECHO_N "checking for sa_handler type... $ECHO_C" >&6
35115if test "${wx_cv_type_sa_handler+set}" = set; then
35116 echo $ECHO_N "(cached) $ECHO_C" >&6
35117else
35118
35119 cat >conftest.$ac_ext <<_ACEOF
35120/* confdefs.h. */
35121_ACEOF
35122cat confdefs.h >>conftest.$ac_ext
35123cat >>conftest.$ac_ext <<_ACEOF
35124/* end confdefs.h. */
35125#include <signal.h>
35126int
35127main ()
35128{
35129
35130 extern void testSigHandler(int);
35131
35132 struct sigaction sa;
35133 sa.sa_handler = testSigHandler;
35134
35135 ;
35136 return 0;
35137}
35138_ACEOF
35139rm -f conftest.$ac_objext
35140if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 35141 (eval $ac_compile) 2>conftest.er1
a848cd7e 35142 ac_status=$?
ac1cb8d3
VS
35143 grep -v '^ *+' conftest.er1 >conftest.err
35144 rm -f conftest.er1
35145 cat conftest.err >&5
a848cd7e
SC
35146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35147 (exit $ac_status); } &&
c9a66001 35148 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
35149 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35150 (eval $ac_try) 2>&5
35151 ac_status=$?
35152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35153 (exit $ac_status); }; } &&
35154 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
35155 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35156 (eval $ac_try) 2>&5
35157 ac_status=$?
35158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35159 (exit $ac_status); }; }; then
35160
35161 wx_cv_type_sa_handler=int
35162
35163else
35164 echo "$as_me: failed program was:" >&5
35165sed 's/^/| /' conftest.$ac_ext >&5
35166
35167
35168 wx_cv_type_sa_handler=void
35169
35170fi
ac1cb8d3 35171rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
35172
35173fi
35174echo "$as_me:$LINENO: result: $wx_cv_type_sa_handler" >&5
35175echo "${ECHO_T}$wx_cv_type_sa_handler" >&6
35176
a848cd7e
SC
35177 cat >>confdefs.h <<_ACEOF
35178#define wxTYPE_SA_HANDLER $wx_cv_type_sa_handler
35179_ACEOF
35180
35181 fi
35182fi
35183
eaff0f0d 35184if test "$wxUSE_STACKWALKER" = "yes" -a "$wxUSE_UNIX" = "yes"; then
eaff0f0d
VZ
35185 echo "$as_me:$LINENO: checking for backtrace() in <execinfo.h>" >&5
35186echo $ECHO_N "checking for backtrace() in <execinfo.h>... $ECHO_C" >&6
35187if test "${wx_cv_func_backtrace+set}" = set; then
35188 echo $ECHO_N "(cached) $ECHO_C" >&6
35189else
35190
35191 cat >conftest.$ac_ext <<_ACEOF
35192/* confdefs.h. */
35193_ACEOF
35194cat confdefs.h >>conftest.$ac_ext
35195cat >>conftest.$ac_ext <<_ACEOF
35196/* end confdefs.h. */
35197#include <execinfo.h>
35198int
35199main ()
35200{
35201
35202 void *trace[1];
35203 char **messages;
35204
35205 backtrace(trace, 1);
35206 messages = backtrace_symbols(trace, 1);
35207
35208 ;
35209 return 0;
35210}
35211_ACEOF
35212rm -f conftest.$ac_objext
35213if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35214 (eval $ac_compile) 2>conftest.er1
35215 ac_status=$?
35216 grep -v '^ *+' conftest.er1 >conftest.err
35217 rm -f conftest.er1
35218 cat conftest.err >&5
35219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35220 (exit $ac_status); } &&
c9a66001 35221 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
eaff0f0d
VZ
35222 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35223 (eval $ac_try) 2>&5
35224 ac_status=$?
35225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35226 (exit $ac_status); }; } &&
35227 { ac_try='test -s conftest.$ac_objext'
35228 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35229 (eval $ac_try) 2>&5
35230 ac_status=$?
35231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35232 (exit $ac_status); }; }; then
35233 wx_cv_func_backtrace=yes
35234else
35235 echo "$as_me: failed program was:" >&5
35236sed 's/^/| /' conftest.$ac_ext >&5
35237
35238wx_cv_func_backtrace=no
35239
35240fi
35241rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35242
35243
35244fi
35245echo "$as_me:$LINENO: result: $wx_cv_func_backtrace" >&5
35246echo "${ECHO_T}$wx_cv_func_backtrace" >&6
35247
35248
35249 if test "$wx_cv_func_backtrace" = "no"; then
35250 { echo "$as_me:$LINENO: WARNING: backtrace() is not available, wxStackWalker will not be available" >&5
35251echo "$as_me: WARNING: backtrace() is not available, wxStackWalker will not be available" >&2;}
35252 wxUSE_STACKWALKER=no
35253 else
35254 echo "$as_me:$LINENO: checking for __cxa_demangle() in <cxxabi.h>" >&5
35255echo $ECHO_N "checking for __cxa_demangle() in <cxxabi.h>... $ECHO_C" >&6
35256if test "${wx_cv_func_cxa_demangle+set}" = set; then
35257 echo $ECHO_N "(cached) $ECHO_C" >&6
35258else
35259
35260 cat >conftest.$ac_ext <<_ACEOF
35261/* confdefs.h. */
35262_ACEOF
35263cat confdefs.h >>conftest.$ac_ext
35264cat >>conftest.$ac_ext <<_ACEOF
35265/* end confdefs.h. */
35266#include <cxxabi.h>
35267int
35268main ()
35269{
35270
35271 int rc;
35272 __cxxabiv1::__cxa_demangle("foo", 0, 0, &rc);
35273
35274 ;
35275 return 0;
35276}
35277_ACEOF
dfe0c803
JS
35278rm -f conftest.$ac_objext conftest$ac_exeext
35279if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35280 (eval $ac_link) 2>conftest.er1
eaff0f0d
VZ
35281 ac_status=$?
35282 grep -v '^ *+' conftest.er1 >conftest.err
35283 rm -f conftest.er1
35284 cat conftest.err >&5
35285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35286 (exit $ac_status); } &&
c9a66001 35287 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
eaff0f0d
VZ
35288 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35289 (eval $ac_try) 2>&5
35290 ac_status=$?
35291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35292 (exit $ac_status); }; } &&
dfe0c803 35293 { ac_try='test -s conftest$ac_exeext'
eaff0f0d
VZ
35294 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35295 (eval $ac_try) 2>&5
35296 ac_status=$?
35297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35298 (exit $ac_status); }; }; then
35299 wx_cv_func_cxa_demangle=yes
35300else
35301 echo "$as_me: failed program was:" >&5
35302sed 's/^/| /' conftest.$ac_ext >&5
35303
35304wx_cv_func_cxa_demangle=no
35305
35306fi
dfe0c803
JS
35307rm -f conftest.err conftest.$ac_objext \
35308 conftest$ac_exeext conftest.$ac_ext
eaff0f0d
VZ
35309
35310
35311fi
35312echo "$as_me:$LINENO: result: $wx_cv_func_cxa_demangle" >&5
35313echo "${ECHO_T}$wx_cv_func_cxa_demangle" >&6
35314
35315 if test "$wx_cv_func_cxa_demangle" = "yes"; then
35316 cat >>confdefs.h <<\_ACEOF
35317#define HAVE_CXA_DEMANGLE 1
35318_ACEOF
35319
35320 fi
35321 fi
eaff0f0d
VZ
35322fi
35323
898beab1
DE
35324if test "$wxUSE_STACKWALKER" = "yes" -a "$USE_WIN32" != "1" -a "$USE_UNIX" != "1"; then
35325 { echo "$as_me:$LINENO: WARNING: wxStackWalker is only available on Win32 and UNIX... disabled" >&5
35326echo "$as_me: WARNING: wxStackWalker is only available on Win32 and UNIX... disabled" >&2;}
35327 wxUSE_STACKWALKER=no
35328fi
35329
35330
a848cd7e
SC
35331
35332
35333for ac_func in mkstemp mktemp
35334do
35335as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35336echo "$as_me:$LINENO: checking for $ac_func" >&5
35337echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
35338if eval "test \"\${$as_ac_var+set}\" = set"; then
35339 echo $ECHO_N "(cached) $ECHO_C" >&6
35340else
35341 cat >conftest.$ac_ext <<_ACEOF
35342/* confdefs.h. */
35343_ACEOF
35344cat confdefs.h >>conftest.$ac_ext
35345cat >>conftest.$ac_ext <<_ACEOF
35346/* end confdefs.h. */
ac1cb8d3
VS
35347/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
35348 For example, HP-UX 11i <limits.h> declares gettimeofday. */
35349#define $ac_func innocuous_$ac_func
35350
a848cd7e
SC
35351/* System header to define __stub macros and hopefully few prototypes,
35352 which can conflict with char $ac_func (); below.
35353 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35354 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 35355
a848cd7e
SC
35356#ifdef __STDC__
35357# include <limits.h>
35358#else
35359# include <assert.h>
35360#endif
ac1cb8d3
VS
35361
35362#undef $ac_func
35363
a848cd7e
SC
35364/* Override any gcc2 internal prototype to avoid an error. */
35365#ifdef __cplusplus
35366extern "C"
35367{
35368#endif
35369/* We use char because int might match the return type of a gcc2
35370 builtin and then its argument prototype would still apply. */
35371char $ac_func ();
35372/* The GNU C library defines this for functions which it implements
35373 to always fail with ENOSYS. Some functions are actually named
35374 something starting with __ and the normal name is an alias. */
35375#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
35376choke me
35377#else
35378char (*f) () = $ac_func;
35379#endif
35380#ifdef __cplusplus
35381}
35382#endif
35383
35384int
35385main ()
35386{
35387return f != $ac_func;
35388 ;
35389 return 0;
35390}
35391_ACEOF
35392rm -f conftest.$ac_objext conftest$ac_exeext
35393if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 35394 (eval $ac_link) 2>conftest.er1
a848cd7e 35395 ac_status=$?
ac1cb8d3
VS
35396 grep -v '^ *+' conftest.er1 >conftest.err
35397 rm -f conftest.er1
35398 cat conftest.err >&5
a848cd7e
SC
35399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35400 (exit $ac_status); } &&
c9a66001 35401 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
35402 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35403 (eval $ac_try) 2>&5
35404 ac_status=$?
35405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35406 (exit $ac_status); }; } &&
35407 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
35408 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35409 (eval $ac_try) 2>&5
35410 ac_status=$?
35411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35412 (exit $ac_status); }; }; then
35413 eval "$as_ac_var=yes"
35414else
35415 echo "$as_me: failed program was:" >&5
35416sed 's/^/| /' conftest.$ac_ext >&5
35417
35418eval "$as_ac_var=no"
35419fi
ac1cb8d3
VS
35420rm -f conftest.err conftest.$ac_objext \
35421 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
35422fi
35423echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
35424echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
35425if test `eval echo '${'$as_ac_var'}'` = yes; then
35426 cat >>confdefs.h <<_ACEOF
35427#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35428_ACEOF
35429 break
35430fi
35431done
35432
35433
35434echo "$as_me:$LINENO: checking for statfs" >&5
35435echo $ECHO_N "checking for statfs... $ECHO_C" >&6
35436if test "${wx_cv_func_statfs+set}" = set; then
35437 echo $ECHO_N "(cached) $ECHO_C" >&6
35438else
35439 cat >conftest.$ac_ext <<_ACEOF
35440/* confdefs.h. */
35441_ACEOF
35442cat confdefs.h >>conftest.$ac_ext
35443cat >>conftest.$ac_ext <<_ACEOF
35444/* end confdefs.h. */
35445
35446 #if defined(__BSD__)
84ae7ca4
VZ
35447 #include <sys/param.h>
35448 #include <sys/mount.h>
a848cd7e 35449 #else
84ae7ca4 35450 #include <sys/vfs.h>
a848cd7e
SC
35451 #endif
35452
35453int
35454main ()
35455{
35456
35457 long l;
35458 struct statfs fs;
35459 statfs("/", &fs);
35460 l = fs.f_bsize;
35461 l += fs.f_blocks;
35462 l += fs.f_bavail;
35463
35464 ;
35465 return 0;
35466}
35467_ACEOF
35468rm -f conftest.$ac_objext
35469if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 35470 (eval $ac_compile) 2>conftest.er1
a848cd7e 35471 ac_status=$?
ac1cb8d3
VS
35472 grep -v '^ *+' conftest.er1 >conftest.err
35473 rm -f conftest.er1
35474 cat conftest.err >&5
a848cd7e
SC
35475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35476 (exit $ac_status); } &&
c9a66001 35477 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
35478 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35479 (eval $ac_try) 2>&5
35480 ac_status=$?
35481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35482 (exit $ac_status); }; } &&
35483 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
35484 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35485 (eval $ac_try) 2>&5
35486 ac_status=$?
35487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35488 (exit $ac_status); }; }; then
84ae7ca4 35489 wx_cv_func_statfs=yes
a848cd7e
SC
35490else
35491 echo "$as_me: failed program was:" >&5
35492sed 's/^/| /' conftest.$ac_ext >&5
35493
84ae7ca4 35494wx_cv_func_statfs=no
a848cd7e
SC
35495
35496fi
ac1cb8d3 35497rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
35498
35499fi
35500echo "$as_me:$LINENO: result: $wx_cv_func_statfs" >&5
35501echo "${ECHO_T}$wx_cv_func_statfs" >&6
35502
35503if test "$wx_cv_func_statfs" = "yes"; then
5d7b7554 35504 echo "$as_me:$LINENO: checking for statfs declaration" >&5
84ae7ca4
VZ
35505echo $ECHO_N "checking for statfs declaration... $ECHO_C" >&6
35506if test "${wx_cv_func_statfs_decl+set}" = set; then
35507 echo $ECHO_N "(cached) $ECHO_C" >&6
35508else
0683aca6
VZ
35509 cat >conftest.$ac_ext <<_ACEOF
35510/* confdefs.h. */
35511_ACEOF
35512cat confdefs.h >>conftest.$ac_ext
35513cat >>conftest.$ac_ext <<_ACEOF
35514/* end confdefs.h. */
84ae7ca4 35515
0683aca6
VZ
35516 #if defined(__BSD__)
35517 #include <sys/param.h>
35518 #include <sys/mount.h>
35519 #else
35520 #include <sys/vfs.h>
35521 #endif
35522
35523int
35524main ()
35525{
35526
35527 struct statfs fs;
35528 statfs("", &fs);
35529
35530 ;
35531 return 0;
35532}
35533_ACEOF
35534rm -f conftest.$ac_objext
35535if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35536 (eval $ac_compile) 2>conftest.er1
35537 ac_status=$?
35538 grep -v '^ *+' conftest.er1 >conftest.err
35539 rm -f conftest.er1
35540 cat conftest.err >&5
35541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35542 (exit $ac_status); } &&
c9a66001 35543 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
0683aca6
VZ
35544 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35545 (eval $ac_try) 2>&5
35546 ac_status=$?
35547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35548 (exit $ac_status); }; } &&
35549 { ac_try='test -s conftest.$ac_objext'
35550 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35551 (eval $ac_try) 2>&5
35552 ac_status=$?
35553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35554 (exit $ac_status); }; }; then
35555 wx_cv_func_statfs_decl=yes
35556else
35557 echo "$as_me: failed program was:" >&5
35558sed 's/^/| /' conftest.$ac_ext >&5
35559
35560wx_cv_func_statfs_decl=no
35561
35562fi
35563rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
84ae7ca4
VZ
35564
35565fi
35566echo "$as_me:$LINENO: result: $wx_cv_func_statfs_decl" >&5
35567echo "${ECHO_T}$wx_cv_func_statfs_decl" >&6
84ae7ca4
VZ
35568
35569 if test "$wx_cv_func_statfs_decl" = "yes"; then
35570 cat >>confdefs.h <<\_ACEOF
35571#define HAVE_STATFS_DECL 1
35572_ACEOF
35573
35574 fi
35575
a848cd7e
SC
35576 wx_cv_type_statvfs_t="struct statfs"
35577 cat >>confdefs.h <<\_ACEOF
35578#define HAVE_STATFS 1
35579_ACEOF
35580
35581else
35582 echo "$as_me:$LINENO: checking for statvfs" >&5
35583echo $ECHO_N "checking for statvfs... $ECHO_C" >&6
35584if test "${wx_cv_func_statvfs+set}" = set; then
35585 echo $ECHO_N "(cached) $ECHO_C" >&6
35586else
35587 cat >conftest.$ac_ext <<_ACEOF
35588/* confdefs.h. */
35589_ACEOF
35590cat confdefs.h >>conftest.$ac_ext
35591cat >>conftest.$ac_ext <<_ACEOF
35592/* end confdefs.h. */
35593
35594 #include <stddef.h>
35595 #include <sys/statvfs.h>
35596
35597int
35598main ()
35599{
35600
35601 statvfs("/", NULL);
35602
35603 ;
35604 return 0;
35605}
35606_ACEOF
35607rm -f conftest.$ac_objext
35608if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 35609 (eval $ac_compile) 2>conftest.er1
a848cd7e 35610 ac_status=$?
ac1cb8d3
VS
35611 grep -v '^ *+' conftest.er1 >conftest.err
35612 rm -f conftest.er1
35613 cat conftest.err >&5
a848cd7e
SC
35614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35615 (exit $ac_status); } &&
c9a66001 35616 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
35617 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35618 (eval $ac_try) 2>&5
35619 ac_status=$?
35620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35621 (exit $ac_status); }; } &&
35622 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
35623 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35624 (eval $ac_try) 2>&5
35625 ac_status=$?
35626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35627 (exit $ac_status); }; }; then
35628 wx_cv_func_statvfs=yes
35629else
35630 echo "$as_me: failed program was:" >&5
35631sed 's/^/| /' conftest.$ac_ext >&5
35632
35633wx_cv_func_statvfs=no
35634
35635fi
ac1cb8d3 35636rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
35637
35638fi
35639echo "$as_me:$LINENO: result: $wx_cv_func_statvfs" >&5
35640echo "${ECHO_T}$wx_cv_func_statvfs" >&6
35641
35642 if test "$wx_cv_func_statvfs" = "yes"; then
5d7b7554 35643 echo "$as_me:$LINENO: checking for statvfs argument type" >&5
a848cd7e
SC
35644echo $ECHO_N "checking for statvfs argument type... $ECHO_C" >&6
35645if test "${wx_cv_type_statvfs_t+set}" = set; then
35646 echo $ECHO_N "(cached) $ECHO_C" >&6
35647else
35648 cat >conftest.$ac_ext <<_ACEOF
35649/* confdefs.h. */
35650_ACEOF
35651cat confdefs.h >>conftest.$ac_ext
35652cat >>conftest.$ac_ext <<_ACEOF
35653/* end confdefs.h. */
35654
35655 #include <sys/statvfs.h>
35656
35657int
35658main ()
35659{
35660
35661 long l;
35662 statvfs_t fs;
35663 statvfs("/", &fs);
35664 l = fs.f_bsize;
35665 l += fs.f_blocks;
35666 l += fs.f_bavail;
35667
35668 ;
35669 return 0;
35670}
35671_ACEOF
35672rm -f conftest.$ac_objext
35673if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 35674 (eval $ac_compile) 2>conftest.er1
a848cd7e 35675 ac_status=$?
ac1cb8d3
VS
35676 grep -v '^ *+' conftest.er1 >conftest.err
35677 rm -f conftest.er1
35678 cat conftest.err >&5
a848cd7e
SC
35679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35680 (exit $ac_status); } &&
c9a66001 35681 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
35682 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35683 (eval $ac_try) 2>&5
35684 ac_status=$?
35685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35686 (exit $ac_status); }; } &&
35687 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
35688 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35689 (eval $ac_try) 2>&5
35690 ac_status=$?
35691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35692 (exit $ac_status); }; }; then
35693 wx_cv_type_statvfs_t=statvfs_t
35694else
35695 echo "$as_me: failed program was:" >&5
35696sed 's/^/| /' conftest.$ac_ext >&5
35697
35698
35699 cat >conftest.$ac_ext <<_ACEOF
35700/* confdefs.h. */
35701_ACEOF
35702cat confdefs.h >>conftest.$ac_ext
35703cat >>conftest.$ac_ext <<_ACEOF
35704/* end confdefs.h. */
35705
35706 #include <sys/statvfs.h>
35707
35708int
35709main ()
35710{
35711
35712 long l;
35713 struct statvfs fs;
35714 statvfs("/", &fs);
35715 l = fs.f_bsize;
35716 l += fs.f_blocks;
35717 l += fs.f_bavail;
35718
35719 ;
35720 return 0;
35721}
35722_ACEOF
35723rm -f conftest.$ac_objext
35724if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 35725 (eval $ac_compile) 2>conftest.er1
a848cd7e 35726 ac_status=$?
ac1cb8d3
VS
35727 grep -v '^ *+' conftest.er1 >conftest.err
35728 rm -f conftest.er1
35729 cat conftest.err >&5
a848cd7e
SC
35730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35731 (exit $ac_status); } &&
c9a66001 35732 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
35733 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35734 (eval $ac_try) 2>&5
35735 ac_status=$?
35736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35737 (exit $ac_status); }; } &&
35738 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
35739 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35740 (eval $ac_try) 2>&5
35741 ac_status=$?
35742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35743 (exit $ac_status); }; }; then
35744 wx_cv_type_statvfs_t="struct statvfs"
35745else
35746 echo "$as_me: failed program was:" >&5
35747sed 's/^/| /' conftest.$ac_ext >&5
35748
35749wx_cv_type_statvfs_t="unknown"
35750
35751fi
ac1cb8d3 35752rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
35753
35754
35755fi
ac1cb8d3 35756rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
35757
35758fi
35759echo "$as_me:$LINENO: result: $wx_cv_type_statvfs_t" >&5
35760echo "${ECHO_T}$wx_cv_type_statvfs_t" >&6
35761
a848cd7e
SC
35762 if test "$wx_cv_type_statvfs_t" != "unknown"; then
35763 cat >>confdefs.h <<\_ACEOF
35764#define HAVE_STATVFS 1
35765_ACEOF
35766
35767 fi
35768 else
35769 wx_cv_type_statvfs_t="unknown"
35770 fi
35771fi
35772
35773if test "$wx_cv_type_statvfs_t" != "unknown"; then
35774 cat >>confdefs.h <<_ACEOF
35775#define WX_STATFS_T $wx_cv_type_statvfs_t
35776_ACEOF
35777
35778else
35779 { echo "$as_me:$LINENO: WARNING: wxGetDiskSpace() function won't work without statfs()" >&5
35780echo "$as_me: WARNING: wxGetDiskSpace() function won't work without statfs()" >&2;}
35781fi
35782
35783if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
35784
35785
35786for ac_func in fcntl flock
35787do
35788as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35789echo "$as_me:$LINENO: checking for $ac_func" >&5
35790echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
35791if eval "test \"\${$as_ac_var+set}\" = set"; then
35792 echo $ECHO_N "(cached) $ECHO_C" >&6
35793else
35794 cat >conftest.$ac_ext <<_ACEOF
35795/* confdefs.h. */
35796_ACEOF
35797cat confdefs.h >>conftest.$ac_ext
35798cat >>conftest.$ac_ext <<_ACEOF
35799/* end confdefs.h. */
ac1cb8d3
VS
35800/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
35801 For example, HP-UX 11i <limits.h> declares gettimeofday. */
35802#define $ac_func innocuous_$ac_func
35803
a848cd7e
SC
35804/* System header to define __stub macros and hopefully few prototypes,
35805 which can conflict with char $ac_func (); below.
35806 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35807 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 35808
a848cd7e
SC
35809#ifdef __STDC__
35810# include <limits.h>
35811#else
35812# include <assert.h>
35813#endif
ac1cb8d3
VS
35814
35815#undef $ac_func
35816
a848cd7e
SC
35817/* Override any gcc2 internal prototype to avoid an error. */
35818#ifdef __cplusplus
35819extern "C"
35820{
35821#endif
35822/* We use char because int might match the return type of a gcc2
35823 builtin and then its argument prototype would still apply. */
35824char $ac_func ();
35825/* The GNU C library defines this for functions which it implements
35826 to always fail with ENOSYS. Some functions are actually named
35827 something starting with __ and the normal name is an alias. */
35828#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
35829choke me
35830#else
35831char (*f) () = $ac_func;
35832#endif
35833#ifdef __cplusplus
35834}
35835#endif
35836
35837int
35838main ()
35839{
35840return f != $ac_func;
35841 ;
35842 return 0;
35843}
35844_ACEOF
35845rm -f conftest.$ac_objext conftest$ac_exeext
35846if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 35847 (eval $ac_link) 2>conftest.er1
a848cd7e 35848 ac_status=$?
ac1cb8d3
VS
35849 grep -v '^ *+' conftest.er1 >conftest.err
35850 rm -f conftest.er1
35851 cat conftest.err >&5
a848cd7e
SC
35852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35853 (exit $ac_status); } &&
c9a66001 35854 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
35855 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35856 (eval $ac_try) 2>&5
35857 ac_status=$?
35858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35859 (exit $ac_status); }; } &&
35860 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
35861 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35862 (eval $ac_try) 2>&5
35863 ac_status=$?
35864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35865 (exit $ac_status); }; }; then
35866 eval "$as_ac_var=yes"
35867else
35868 echo "$as_me: failed program was:" >&5
35869sed 's/^/| /' conftest.$ac_ext >&5
35870
35871eval "$as_ac_var=no"
35872fi
ac1cb8d3
VS
35873rm -f conftest.err conftest.$ac_objext \
35874 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
35875fi
35876echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
35877echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
35878if test `eval echo '${'$as_ac_var'}'` = yes; then
35879 cat >>confdefs.h <<_ACEOF
35880#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35881_ACEOF
35882 break
35883fi
35884done
35885
35886
35887 if test "$ac_cv_func_fcntl" != "yes" -a "$ac_cv_func_flock" != "yes"; then
35888 { echo "$as_me:$LINENO: WARNING: wxSingleInstanceChecker not available" >&5
35889echo "$as_me: WARNING: wxSingleInstanceChecker not available" >&2;}
35890 wxUSE_SNGLINST_CHECKER=no
35891 fi
35892fi
35893
35894
35895for ac_func in timegm
35896do
35897as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35898echo "$as_me:$LINENO: checking for $ac_func" >&5
35899echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
35900if eval "test \"\${$as_ac_var+set}\" = set"; then
35901 echo $ECHO_N "(cached) $ECHO_C" >&6
35902else
35903 cat >conftest.$ac_ext <<_ACEOF
35904/* confdefs.h. */
35905_ACEOF
35906cat confdefs.h >>conftest.$ac_ext
35907cat >>conftest.$ac_ext <<_ACEOF
35908/* end confdefs.h. */
ac1cb8d3
VS
35909/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
35910 For example, HP-UX 11i <limits.h> declares gettimeofday. */
35911#define $ac_func innocuous_$ac_func
35912
a848cd7e
SC
35913/* System header to define __stub macros and hopefully few prototypes,
35914 which can conflict with char $ac_func (); below.
35915 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35916 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 35917
a848cd7e
SC
35918#ifdef __STDC__
35919# include <limits.h>
35920#else
35921# include <assert.h>
35922#endif
ac1cb8d3
VS
35923
35924#undef $ac_func
35925
a848cd7e
SC
35926/* Override any gcc2 internal prototype to avoid an error. */
35927#ifdef __cplusplus
35928extern "C"
35929{
35930#endif
35931/* We use char because int might match the return type of a gcc2
35932 builtin and then its argument prototype would still apply. */
35933char $ac_func ();
35934/* The GNU C library defines this for functions which it implements
35935 to always fail with ENOSYS. Some functions are actually named
35936 something starting with __ and the normal name is an alias. */
35937#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
35938choke me
35939#else
35940char (*f) () = $ac_func;
35941#endif
35942#ifdef __cplusplus
35943}
35944#endif
35945
35946int
35947main ()
35948{
35949return f != $ac_func;
35950 ;
35951 return 0;
35952}
35953_ACEOF
35954rm -f conftest.$ac_objext conftest$ac_exeext
35955if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 35956 (eval $ac_link) 2>conftest.er1
a848cd7e 35957 ac_status=$?
ac1cb8d3
VS
35958 grep -v '^ *+' conftest.er1 >conftest.err
35959 rm -f conftest.er1
35960 cat conftest.err >&5
a848cd7e
SC
35961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35962 (exit $ac_status); } &&
c9a66001 35963 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
35964 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35965 (eval $ac_try) 2>&5
35966 ac_status=$?
35967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35968 (exit $ac_status); }; } &&
35969 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
35970 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35971 (eval $ac_try) 2>&5
35972 ac_status=$?
35973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35974 (exit $ac_status); }; }; then
35975 eval "$as_ac_var=yes"
35976else
35977 echo "$as_me: failed program was:" >&5
35978sed 's/^/| /' conftest.$ac_ext >&5
35979
35980eval "$as_ac_var=no"
35981fi
ac1cb8d3
VS
35982rm -f conftest.err conftest.$ac_objext \
35983 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
35984fi
35985echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
35986echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
35987if test `eval echo '${'$as_ac_var'}'` = yes; then
35988 cat >>confdefs.h <<_ACEOF
35989#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35990_ACEOF
35991
35992fi
35993done
35994
35995
35996
35997
35998for ac_func in putenv setenv
35999do
36000as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36001echo "$as_me:$LINENO: checking for $ac_func" >&5
36002echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
36003if eval "test \"\${$as_ac_var+set}\" = set"; then
36004 echo $ECHO_N "(cached) $ECHO_C" >&6
36005else
36006 cat >conftest.$ac_ext <<_ACEOF
36007/* confdefs.h. */
36008_ACEOF
36009cat confdefs.h >>conftest.$ac_ext
36010cat >>conftest.$ac_ext <<_ACEOF
36011/* end confdefs.h. */
ac1cb8d3
VS
36012/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
36013 For example, HP-UX 11i <limits.h> declares gettimeofday. */
36014#define $ac_func innocuous_$ac_func
36015
a848cd7e
SC
36016/* System header to define __stub macros and hopefully few prototypes,
36017 which can conflict with char $ac_func (); below.
36018 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36019 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 36020
a848cd7e
SC
36021#ifdef __STDC__
36022# include <limits.h>
36023#else
36024# include <assert.h>
36025#endif
ac1cb8d3
VS
36026
36027#undef $ac_func
36028
a848cd7e
SC
36029/* Override any gcc2 internal prototype to avoid an error. */
36030#ifdef __cplusplus
36031extern "C"
36032{
36033#endif
36034/* We use char because int might match the return type of a gcc2
36035 builtin and then its argument prototype would still apply. */
36036char $ac_func ();
36037/* The GNU C library defines this for functions which it implements
36038 to always fail with ENOSYS. Some functions are actually named
36039 something starting with __ and the normal name is an alias. */
36040#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
36041choke me
36042#else
36043char (*f) () = $ac_func;
36044#endif
36045#ifdef __cplusplus
36046}
36047#endif
36048
36049int
36050main ()
36051{
36052return f != $ac_func;
36053 ;
36054 return 0;
36055}
36056_ACEOF
36057rm -f conftest.$ac_objext conftest$ac_exeext
36058if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 36059 (eval $ac_link) 2>conftest.er1
a848cd7e 36060 ac_status=$?
ac1cb8d3
VS
36061 grep -v '^ *+' conftest.er1 >conftest.err
36062 rm -f conftest.er1
36063 cat conftest.err >&5
a848cd7e
SC
36064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36065 (exit $ac_status); } &&
c9a66001 36066 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
36067 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36068 (eval $ac_try) 2>&5
36069 ac_status=$?
36070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36071 (exit $ac_status); }; } &&
36072 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
36073 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36074 (eval $ac_try) 2>&5
36075 ac_status=$?
36076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36077 (exit $ac_status); }; }; then
36078 eval "$as_ac_var=yes"
36079else
36080 echo "$as_me: failed program was:" >&5
36081sed 's/^/| /' conftest.$ac_ext >&5
36082
36083eval "$as_ac_var=no"
36084fi
ac1cb8d3
VS
36085rm -f conftest.err conftest.$ac_objext \
36086 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
36087fi
36088echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
36089echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
36090if test `eval echo '${'$as_ac_var'}'` = yes; then
36091 cat >>confdefs.h <<_ACEOF
36092#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36093_ACEOF
36094 break
36095fi
36096done
36097
36098
36099HAVE_SOME_SLEEP_FUNC=0
36100if test "$USE_BEOS" = 1; then
36101 cat >>confdefs.h <<\_ACEOF
36102#define HAVE_SLEEP 1
36103_ACEOF
36104
36105 HAVE_SOME_SLEEP_FUNC=1
36106fi
36107
36108if test "$USE_DARWIN" = 1; then
36109 cat >>confdefs.h <<\_ACEOF
36110#define HAVE_USLEEP 1
36111_ACEOF
36112
36113 HAVE_SOME_SLEEP_FUNC=1
36114fi
36115
36116if test "$HAVE_SOME_SLEEP_FUNC" != 1; then
36117 POSIX4_LINK=
36118
36119for ac_func in nanosleep
36120do
36121as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36122echo "$as_me:$LINENO: checking for $ac_func" >&5
36123echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
36124if eval "test \"\${$as_ac_var+set}\" = set"; then
36125 echo $ECHO_N "(cached) $ECHO_C" >&6
36126else
36127 cat >conftest.$ac_ext <<_ACEOF
36128/* confdefs.h. */
36129_ACEOF
36130cat confdefs.h >>conftest.$ac_ext
36131cat >>conftest.$ac_ext <<_ACEOF
36132/* end confdefs.h. */
ac1cb8d3
VS
36133/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
36134 For example, HP-UX 11i <limits.h> declares gettimeofday. */
36135#define $ac_func innocuous_$ac_func
36136
a848cd7e
SC
36137/* System header to define __stub macros and hopefully few prototypes,
36138 which can conflict with char $ac_func (); below.
36139 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36140 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 36141
a848cd7e
SC
36142#ifdef __STDC__
36143# include <limits.h>
36144#else
36145# include <assert.h>
36146#endif
ac1cb8d3
VS
36147
36148#undef $ac_func
36149
a848cd7e
SC
36150/* Override any gcc2 internal prototype to avoid an error. */
36151#ifdef __cplusplus
36152extern "C"
36153{
36154#endif
36155/* We use char because int might match the return type of a gcc2
36156 builtin and then its argument prototype would still apply. */
36157char $ac_func ();
36158/* The GNU C library defines this for functions which it implements
36159 to always fail with ENOSYS. Some functions are actually named
36160 something starting with __ and the normal name is an alias. */
36161#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
36162choke me
36163#else
36164char (*f) () = $ac_func;
36165#endif
36166#ifdef __cplusplus
36167}
36168#endif
36169
36170int
36171main ()
36172{
36173return f != $ac_func;
36174 ;
36175 return 0;
36176}
36177_ACEOF
36178rm -f conftest.$ac_objext conftest$ac_exeext
36179if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 36180 (eval $ac_link) 2>conftest.er1
a848cd7e 36181 ac_status=$?
ac1cb8d3
VS
36182 grep -v '^ *+' conftest.er1 >conftest.err
36183 rm -f conftest.er1
36184 cat conftest.err >&5
a848cd7e
SC
36185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36186 (exit $ac_status); } &&
c9a66001 36187 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
36188 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36189 (eval $ac_try) 2>&5
36190 ac_status=$?
36191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36192 (exit $ac_status); }; } &&
36193 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
36194 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36195 (eval $ac_try) 2>&5
36196 ac_status=$?
36197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36198 (exit $ac_status); }; }; then
36199 eval "$as_ac_var=yes"
36200else
36201 echo "$as_me: failed program was:" >&5
36202sed 's/^/| /' conftest.$ac_ext >&5
36203
36204eval "$as_ac_var=no"
36205fi
ac1cb8d3
VS
36206rm -f conftest.err conftest.$ac_objext \
36207 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
36208fi
36209echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
36210echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
36211if test `eval echo '${'$as_ac_var'}'` = yes; then
36212 cat >>confdefs.h <<_ACEOF
36213#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36214_ACEOF
36215 cat >>confdefs.h <<\_ACEOF
36216#define HAVE_NANOSLEEP 1
36217_ACEOF
36218
36219else
36220
36221 echo "$as_me:$LINENO: checking for nanosleep in -lposix4" >&5
36222echo $ECHO_N "checking for nanosleep in -lposix4... $ECHO_C" >&6
36223if test "${ac_cv_lib_posix4_nanosleep+set}" = set; then
36224 echo $ECHO_N "(cached) $ECHO_C" >&6
36225else
36226 ac_check_lib_save_LIBS=$LIBS
36227LIBS="-lposix4 $LIBS"
36228cat >conftest.$ac_ext <<_ACEOF
36229/* confdefs.h. */
36230_ACEOF
36231cat confdefs.h >>conftest.$ac_ext
36232cat >>conftest.$ac_ext <<_ACEOF
36233/* end confdefs.h. */
36234
36235/* Override any gcc2 internal prototype to avoid an error. */
36236#ifdef __cplusplus
36237extern "C"
36238#endif
36239/* We use char because int might match the return type of a gcc2
36240 builtin and then its argument prototype would still apply. */
36241char nanosleep ();
36242int
36243main ()
36244{
36245nanosleep ();
36246 ;
36247 return 0;
36248}
36249_ACEOF
36250rm -f conftest.$ac_objext conftest$ac_exeext
36251if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 36252 (eval $ac_link) 2>conftest.er1
a848cd7e 36253 ac_status=$?
ac1cb8d3
VS
36254 grep -v '^ *+' conftest.er1 >conftest.err
36255 rm -f conftest.er1
36256 cat conftest.err >&5
a848cd7e
SC
36257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36258 (exit $ac_status); } &&
c9a66001 36259 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
36260 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36261 (eval $ac_try) 2>&5
36262 ac_status=$?
36263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36264 (exit $ac_status); }; } &&
36265 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
36266 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36267 (eval $ac_try) 2>&5
36268 ac_status=$?
36269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36270 (exit $ac_status); }; }; then
36271 ac_cv_lib_posix4_nanosleep=yes
36272else
36273 echo "$as_me: failed program was:" >&5
36274sed 's/^/| /' conftest.$ac_ext >&5
36275
36276ac_cv_lib_posix4_nanosleep=no
36277fi
ac1cb8d3
VS
36278rm -f conftest.err conftest.$ac_objext \
36279 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
36280LIBS=$ac_check_lib_save_LIBS
36281fi
36282echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_nanosleep" >&5
36283echo "${ECHO_T}$ac_cv_lib_posix4_nanosleep" >&6
36284if test $ac_cv_lib_posix4_nanosleep = yes; then
36285
36286 cat >>confdefs.h <<\_ACEOF
36287#define HAVE_NANOSLEEP 1
36288_ACEOF
36289
36290 POSIX4_LINK=" -lposix4"
36291
36292else
36293
36294
36295for ac_func in usleep
36296do
36297as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36298echo "$as_me:$LINENO: checking for $ac_func" >&5
36299echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
36300if eval "test \"\${$as_ac_var+set}\" = set"; then
36301 echo $ECHO_N "(cached) $ECHO_C" >&6
36302else
36303 cat >conftest.$ac_ext <<_ACEOF
36304/* confdefs.h. */
36305_ACEOF
36306cat confdefs.h >>conftest.$ac_ext
36307cat >>conftest.$ac_ext <<_ACEOF
36308/* end confdefs.h. */
ac1cb8d3
VS
36309/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
36310 For example, HP-UX 11i <limits.h> declares gettimeofday. */
36311#define $ac_func innocuous_$ac_func
36312
a848cd7e
SC
36313/* System header to define __stub macros and hopefully few prototypes,
36314 which can conflict with char $ac_func (); below.
36315 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36316 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 36317
a848cd7e
SC
36318#ifdef __STDC__
36319# include <limits.h>
36320#else
36321# include <assert.h>
36322#endif
ac1cb8d3
VS
36323
36324#undef $ac_func
36325
a848cd7e
SC
36326/* Override any gcc2 internal prototype to avoid an error. */
36327#ifdef __cplusplus
36328extern "C"
36329{
36330#endif
36331/* We use char because int might match the return type of a gcc2
36332 builtin and then its argument prototype would still apply. */
36333char $ac_func ();
36334/* The GNU C library defines this for functions which it implements
36335 to always fail with ENOSYS. Some functions are actually named
36336 something starting with __ and the normal name is an alias. */
36337#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
36338choke me
36339#else
36340char (*f) () = $ac_func;
36341#endif
36342#ifdef __cplusplus
36343}
36344#endif
36345
36346int
36347main ()
36348{
36349return f != $ac_func;
36350 ;
36351 return 0;
36352}
36353_ACEOF
36354rm -f conftest.$ac_objext conftest$ac_exeext
36355if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 36356 (eval $ac_link) 2>conftest.er1
a848cd7e 36357 ac_status=$?
ac1cb8d3
VS
36358 grep -v '^ *+' conftest.er1 >conftest.err
36359 rm -f conftest.er1
36360 cat conftest.err >&5
a848cd7e
SC
36361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36362 (exit $ac_status); } &&
c9a66001 36363 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
36364 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36365 (eval $ac_try) 2>&5
36366 ac_status=$?
36367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36368 (exit $ac_status); }; } &&
36369 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
36370 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36371 (eval $ac_try) 2>&5
36372 ac_status=$?
36373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36374 (exit $ac_status); }; }; then
36375 eval "$as_ac_var=yes"
36376else
36377 echo "$as_me: failed program was:" >&5
36378sed 's/^/| /' conftest.$ac_ext >&5
36379
36380eval "$as_ac_var=no"
36381fi
ac1cb8d3
VS
36382rm -f conftest.err conftest.$ac_objext \
36383 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
36384fi
36385echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
36386echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
36387if test `eval echo '${'$as_ac_var'}'` = yes; then
36388 cat >>confdefs.h <<_ACEOF
36389#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36390_ACEOF
36391 cat >>confdefs.h <<\_ACEOF
36392#define HAVE_USLEEP 1
36393_ACEOF
36394
36395else
36396 { echo "$as_me:$LINENO: WARNING: wxSleep() function will not work" >&5
36397echo "$as_me: WARNING: wxSleep() function will not work" >&2;}
36398
36399fi
36400done
36401
36402
36403
36404fi
36405
36406
36407
36408fi
36409done
36410
36411fi
36412
36413
36414
36415for ac_func in uname gethostname
36416do
36417as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36418echo "$as_me:$LINENO: checking for $ac_func" >&5
36419echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
36420if eval "test \"\${$as_ac_var+set}\" = set"; then
36421 echo $ECHO_N "(cached) $ECHO_C" >&6
36422else
36423 cat >conftest.$ac_ext <<_ACEOF
36424/* confdefs.h. */
36425_ACEOF
36426cat confdefs.h >>conftest.$ac_ext
36427cat >>conftest.$ac_ext <<_ACEOF
36428/* end confdefs.h. */
ac1cb8d3
VS
36429/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
36430 For example, HP-UX 11i <limits.h> declares gettimeofday. */
36431#define $ac_func innocuous_$ac_func
36432
a848cd7e
SC
36433/* System header to define __stub macros and hopefully few prototypes,
36434 which can conflict with char $ac_func (); below.
36435 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36436 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 36437
a848cd7e
SC
36438#ifdef __STDC__
36439# include <limits.h>
36440#else
36441# include <assert.h>
36442#endif
ac1cb8d3
VS
36443
36444#undef $ac_func
36445
a848cd7e
SC
36446/* Override any gcc2 internal prototype to avoid an error. */
36447#ifdef __cplusplus
36448extern "C"
36449{
36450#endif
36451/* We use char because int might match the return type of a gcc2
36452 builtin and then its argument prototype would still apply. */
36453char $ac_func ();
36454/* The GNU C library defines this for functions which it implements
36455 to always fail with ENOSYS. Some functions are actually named
36456 something starting with __ and the normal name is an alias. */
36457#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
36458choke me
36459#else
36460char (*f) () = $ac_func;
36461#endif
36462#ifdef __cplusplus
36463}
36464#endif
36465
36466int
36467main ()
36468{
36469return f != $ac_func;
36470 ;
36471 return 0;
36472}
36473_ACEOF
36474rm -f conftest.$ac_objext conftest$ac_exeext
36475if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 36476 (eval $ac_link) 2>conftest.er1
a848cd7e 36477 ac_status=$?
ac1cb8d3
VS
36478 grep -v '^ *+' conftest.er1 >conftest.err
36479 rm -f conftest.er1
36480 cat conftest.err >&5
a848cd7e
SC
36481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36482 (exit $ac_status); } &&
c9a66001 36483 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
36484 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36485 (eval $ac_try) 2>&5
36486 ac_status=$?
36487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36488 (exit $ac_status); }; } &&
36489 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
36490 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36491 (eval $ac_try) 2>&5
36492 ac_status=$?
36493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36494 (exit $ac_status); }; }; then
36495 eval "$as_ac_var=yes"
36496else
36497 echo "$as_me: failed program was:" >&5
36498sed 's/^/| /' conftest.$ac_ext >&5
36499
36500eval "$as_ac_var=no"
36501fi
ac1cb8d3
VS
36502rm -f conftest.err conftest.$ac_objext \
36503 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
36504fi
36505echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
36506echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
36507if test `eval echo '${'$as_ac_var'}'` = yes; then
36508 cat >>confdefs.h <<_ACEOF
36509#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36510_ACEOF
36511 break
36512fi
36513done
36514
36515
a848cd7e
SC
36516
36517for ac_func in strtok_r
36518do
36519as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36520echo "$as_me:$LINENO: checking for $ac_func" >&5
36521echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
36522if eval "test \"\${$as_ac_var+set}\" = set"; then
36523 echo $ECHO_N "(cached) $ECHO_C" >&6
36524else
36525 cat >conftest.$ac_ext <<_ACEOF
36526/* confdefs.h. */
36527_ACEOF
36528cat confdefs.h >>conftest.$ac_ext
36529cat >>conftest.$ac_ext <<_ACEOF
36530/* end confdefs.h. */
ac1cb8d3
VS
36531/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
36532 For example, HP-UX 11i <limits.h> declares gettimeofday. */
36533#define $ac_func innocuous_$ac_func
36534
a848cd7e
SC
36535/* System header to define __stub macros and hopefully few prototypes,
36536 which can conflict with char $ac_func (); below.
36537 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36538 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 36539
a848cd7e
SC
36540#ifdef __STDC__
36541# include <limits.h>
36542#else
36543# include <assert.h>
36544#endif
ac1cb8d3
VS
36545
36546#undef $ac_func
36547
a848cd7e
SC
36548/* Override any gcc2 internal prototype to avoid an error. */
36549#ifdef __cplusplus
36550extern "C"
36551{
36552#endif
36553/* We use char because int might match the return type of a gcc2
36554 builtin and then its argument prototype would still apply. */
36555char $ac_func ();
36556/* The GNU C library defines this for functions which it implements
36557 to always fail with ENOSYS. Some functions are actually named
36558 something starting with __ and the normal name is an alias. */
36559#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
36560choke me
36561#else
36562char (*f) () = $ac_func;
36563#endif
36564#ifdef __cplusplus
36565}
36566#endif
36567
36568int
36569main ()
36570{
36571return f != $ac_func;
36572 ;
36573 return 0;
36574}
36575_ACEOF
36576rm -f conftest.$ac_objext conftest$ac_exeext
36577if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 36578 (eval $ac_link) 2>conftest.er1
a848cd7e 36579 ac_status=$?
ac1cb8d3
VS
36580 grep -v '^ *+' conftest.er1 >conftest.err
36581 rm -f conftest.er1
36582 cat conftest.err >&5
a848cd7e
SC
36583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36584 (exit $ac_status); } &&
c9a66001 36585 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
36586 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36587 (eval $ac_try) 2>&5
36588 ac_status=$?
36589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36590 (exit $ac_status); }; } &&
36591 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
36592 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36593 (eval $ac_try) 2>&5
36594 ac_status=$?
36595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36596 (exit $ac_status); }; }; then
36597 eval "$as_ac_var=yes"
36598else
36599 echo "$as_me: failed program was:" >&5
36600sed 's/^/| /' conftest.$ac_ext >&5
36601
36602eval "$as_ac_var=no"
36603fi
ac1cb8d3
VS
36604rm -f conftest.err conftest.$ac_objext \
36605 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
36606fi
36607echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
36608echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
36609if test `eval echo '${'$as_ac_var'}'` = yes; then
36610 cat >>confdefs.h <<_ACEOF
36611#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36612_ACEOF
36613
36614fi
36615done
36616
36617
a848cd7e
SC
36618INET_LINK=
36619
36620for ac_func in inet_addr
36621do
36622as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36623echo "$as_me:$LINENO: checking for $ac_func" >&5
36624echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
36625if eval "test \"\${$as_ac_var+set}\" = set"; then
36626 echo $ECHO_N "(cached) $ECHO_C" >&6
36627else
36628 cat >conftest.$ac_ext <<_ACEOF
36629/* confdefs.h. */
36630_ACEOF
36631cat confdefs.h >>conftest.$ac_ext
36632cat >>conftest.$ac_ext <<_ACEOF
36633/* end confdefs.h. */
ac1cb8d3
VS
36634/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
36635 For example, HP-UX 11i <limits.h> declares gettimeofday. */
36636#define $ac_func innocuous_$ac_func
36637
a848cd7e
SC
36638/* System header to define __stub macros and hopefully few prototypes,
36639 which can conflict with char $ac_func (); below.
36640 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36641 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 36642
a848cd7e
SC
36643#ifdef __STDC__
36644# include <limits.h>
36645#else
36646# include <assert.h>
36647#endif
ac1cb8d3
VS
36648
36649#undef $ac_func
36650
a848cd7e
SC
36651/* Override any gcc2 internal prototype to avoid an error. */
36652#ifdef __cplusplus
36653extern "C"
36654{
36655#endif
36656/* We use char because int might match the return type of a gcc2
36657 builtin and then its argument prototype would still apply. */
36658char $ac_func ();
36659/* The GNU C library defines this for functions which it implements
36660 to always fail with ENOSYS. Some functions are actually named
36661 something starting with __ and the normal name is an alias. */
36662#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
36663choke me
36664#else
36665char (*f) () = $ac_func;
36666#endif
36667#ifdef __cplusplus
36668}
36669#endif
36670
36671int
36672main ()
36673{
36674return f != $ac_func;
36675 ;
36676 return 0;
36677}
36678_ACEOF
36679rm -f conftest.$ac_objext conftest$ac_exeext
36680if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 36681 (eval $ac_link) 2>conftest.er1
a848cd7e 36682 ac_status=$?
ac1cb8d3
VS
36683 grep -v '^ *+' conftest.er1 >conftest.err
36684 rm -f conftest.er1
36685 cat conftest.err >&5
a848cd7e
SC
36686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36687 (exit $ac_status); } &&
c9a66001 36688 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
36689 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36690 (eval $ac_try) 2>&5
36691 ac_status=$?
36692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36693 (exit $ac_status); }; } &&
36694 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
36695 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36696 (eval $ac_try) 2>&5
36697 ac_status=$?
36698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36699 (exit $ac_status); }; }; then
36700 eval "$as_ac_var=yes"
36701else
36702 echo "$as_me: failed program was:" >&5
36703sed 's/^/| /' conftest.$ac_ext >&5
36704
36705eval "$as_ac_var=no"
36706fi
ac1cb8d3
VS
36707rm -f conftest.err conftest.$ac_objext \
36708 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
36709fi
36710echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
36711echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
36712if test `eval echo '${'$as_ac_var'}'` = yes; then
36713 cat >>confdefs.h <<_ACEOF
36714#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36715_ACEOF
36716 cat >>confdefs.h <<\_ACEOF
36717#define HAVE_INET_ADDR 1
36718_ACEOF
36719
36720else
36721
36722 echo "$as_me:$LINENO: checking for inet_addr in -lnsl" >&5
36723echo $ECHO_N "checking for inet_addr in -lnsl... $ECHO_C" >&6
36724if test "${ac_cv_lib_nsl_inet_addr+set}" = set; then
36725 echo $ECHO_N "(cached) $ECHO_C" >&6
36726else
36727 ac_check_lib_save_LIBS=$LIBS
36728LIBS="-lnsl $LIBS"
36729cat >conftest.$ac_ext <<_ACEOF
36730/* confdefs.h. */
36731_ACEOF
36732cat confdefs.h >>conftest.$ac_ext
36733cat >>conftest.$ac_ext <<_ACEOF
36734/* end confdefs.h. */
36735
36736/* Override any gcc2 internal prototype to avoid an error. */
36737#ifdef __cplusplus
36738extern "C"
36739#endif
36740/* We use char because int might match the return type of a gcc2
36741 builtin and then its argument prototype would still apply. */
36742char inet_addr ();
36743int
36744main ()
36745{
36746inet_addr ();
36747 ;
36748 return 0;
36749}
36750_ACEOF
36751rm -f conftest.$ac_objext conftest$ac_exeext
36752if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 36753 (eval $ac_link) 2>conftest.er1
a848cd7e 36754 ac_status=$?
ac1cb8d3
VS
36755 grep -v '^ *+' conftest.er1 >conftest.err
36756 rm -f conftest.er1
36757 cat conftest.err >&5
a848cd7e
SC
36758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36759 (exit $ac_status); } &&
c9a66001 36760 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
36761 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36762 (eval $ac_try) 2>&5
36763 ac_status=$?
36764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36765 (exit $ac_status); }; } &&
36766 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
36767 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36768 (eval $ac_try) 2>&5
36769 ac_status=$?
36770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36771 (exit $ac_status); }; }; then
36772 ac_cv_lib_nsl_inet_addr=yes
36773else
36774 echo "$as_me: failed program was:" >&5
36775sed 's/^/| /' conftest.$ac_ext >&5
36776
36777ac_cv_lib_nsl_inet_addr=no
36778fi
ac1cb8d3
VS
36779rm -f conftest.err conftest.$ac_objext \
36780 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
36781LIBS=$ac_check_lib_save_LIBS
36782fi
36783echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_inet_addr" >&5
36784echo "${ECHO_T}$ac_cv_lib_nsl_inet_addr" >&6
36785if test $ac_cv_lib_nsl_inet_addr = yes; then
36786 INET_LINK="nsl"
36787else
36788
36789 echo "$as_me:$LINENO: checking for inet_addr in -lresolv" >&5
36790echo $ECHO_N "checking for inet_addr in -lresolv... $ECHO_C" >&6
36791if test "${ac_cv_lib_resolv_inet_addr+set}" = set; then
36792 echo $ECHO_N "(cached) $ECHO_C" >&6
36793else
36794 ac_check_lib_save_LIBS=$LIBS
36795LIBS="-lresolv $LIBS"
36796cat >conftest.$ac_ext <<_ACEOF
36797/* confdefs.h. */
36798_ACEOF
36799cat confdefs.h >>conftest.$ac_ext
36800cat >>conftest.$ac_ext <<_ACEOF
36801/* end confdefs.h. */
36802
36803/* Override any gcc2 internal prototype to avoid an error. */
36804#ifdef __cplusplus
36805extern "C"
36806#endif
36807/* We use char because int might match the return type of a gcc2
36808 builtin and then its argument prototype would still apply. */
36809char inet_addr ();
36810int
36811main ()
36812{
36813inet_addr ();
36814 ;
36815 return 0;
36816}
36817_ACEOF
36818rm -f conftest.$ac_objext conftest$ac_exeext
36819if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 36820 (eval $ac_link) 2>conftest.er1
a848cd7e 36821 ac_status=$?
ac1cb8d3
VS
36822 grep -v '^ *+' conftest.er1 >conftest.err
36823 rm -f conftest.er1
36824 cat conftest.err >&5
a848cd7e
SC
36825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36826 (exit $ac_status); } &&
c9a66001 36827 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
36828 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36829 (eval $ac_try) 2>&5
36830 ac_status=$?
36831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36832 (exit $ac_status); }; } &&
36833 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
36834 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36835 (eval $ac_try) 2>&5
36836 ac_status=$?
36837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36838 (exit $ac_status); }; }; then
36839 ac_cv_lib_resolv_inet_addr=yes
36840else
36841 echo "$as_me: failed program was:" >&5
36842sed 's/^/| /' conftest.$ac_ext >&5
36843
36844ac_cv_lib_resolv_inet_addr=no
36845fi
ac1cb8d3
VS
36846rm -f conftest.err conftest.$ac_objext \
36847 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
36848LIBS=$ac_check_lib_save_LIBS
36849fi
36850echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_inet_addr" >&5
36851echo "${ECHO_T}$ac_cv_lib_resolv_inet_addr" >&6
36852if test $ac_cv_lib_resolv_inet_addr = yes; then
36853 INET_LINK="resolv"
36854else
36855
36856 echo "$as_me:$LINENO: checking for inet_addr in -lsocket" >&5
36857echo $ECHO_N "checking for inet_addr in -lsocket... $ECHO_C" >&6
36858if test "${ac_cv_lib_socket_inet_addr+set}" = set; then
36859 echo $ECHO_N "(cached) $ECHO_C" >&6
36860else
36861 ac_check_lib_save_LIBS=$LIBS
36862LIBS="-lsocket $LIBS"
36863cat >conftest.$ac_ext <<_ACEOF
36864/* confdefs.h. */
36865_ACEOF
36866cat confdefs.h >>conftest.$ac_ext
36867cat >>conftest.$ac_ext <<_ACEOF
36868/* end confdefs.h. */
36869
36870/* Override any gcc2 internal prototype to avoid an error. */
36871#ifdef __cplusplus
36872extern "C"
36873#endif
36874/* We use char because int might match the return type of a gcc2
36875 builtin and then its argument prototype would still apply. */
36876char inet_addr ();
36877int
36878main ()
36879{
36880inet_addr ();
36881 ;
36882 return 0;
36883}
36884_ACEOF
36885rm -f conftest.$ac_objext conftest$ac_exeext
36886if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 36887 (eval $ac_link) 2>conftest.er1
a848cd7e 36888 ac_status=$?
ac1cb8d3
VS
36889 grep -v '^ *+' conftest.er1 >conftest.err
36890 rm -f conftest.er1
36891 cat conftest.err >&5
a848cd7e
SC
36892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36893 (exit $ac_status); } &&
c9a66001 36894 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
36895 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36896 (eval $ac_try) 2>&5
36897 ac_status=$?
36898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36899 (exit $ac_status); }; } &&
36900 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
36901 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36902 (eval $ac_try) 2>&5
36903 ac_status=$?
36904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36905 (exit $ac_status); }; }; then
36906 ac_cv_lib_socket_inet_addr=yes
36907else
36908 echo "$as_me: failed program was:" >&5
36909sed 's/^/| /' conftest.$ac_ext >&5
36910
36911ac_cv_lib_socket_inet_addr=no
36912fi
ac1cb8d3
VS
36913rm -f conftest.err conftest.$ac_objext \
36914 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
36915LIBS=$ac_check_lib_save_LIBS
36916fi
36917echo "$as_me:$LINENO: result: $ac_cv_lib_socket_inet_addr" >&5
36918echo "${ECHO_T}$ac_cv_lib_socket_inet_addr" >&6
36919if test $ac_cv_lib_socket_inet_addr = yes; then
36920 INET_LINK="socket"
36921
36922fi
36923
36924
36925
36926fi
36927
36928
36929
36930fi
36931
36932
36933
36934fi
36935done
36936
36937
36938
36939for ac_func in inet_aton
36940do
36941as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36942echo "$as_me:$LINENO: checking for $ac_func" >&5
36943echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
36944if eval "test \"\${$as_ac_var+set}\" = set"; then
36945 echo $ECHO_N "(cached) $ECHO_C" >&6
36946else
36947 cat >conftest.$ac_ext <<_ACEOF
36948/* confdefs.h. */
36949_ACEOF
36950cat confdefs.h >>conftest.$ac_ext
36951cat >>conftest.$ac_ext <<_ACEOF
36952/* end confdefs.h. */
ac1cb8d3
VS
36953/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
36954 For example, HP-UX 11i <limits.h> declares gettimeofday. */
36955#define $ac_func innocuous_$ac_func
36956
a848cd7e
SC
36957/* System header to define __stub macros and hopefully few prototypes,
36958 which can conflict with char $ac_func (); below.
36959 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36960 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 36961
a848cd7e
SC
36962#ifdef __STDC__
36963# include <limits.h>
36964#else
36965# include <assert.h>
36966#endif
ac1cb8d3
VS
36967
36968#undef $ac_func
36969
a848cd7e
SC
36970/* Override any gcc2 internal prototype to avoid an error. */
36971#ifdef __cplusplus
36972extern "C"
36973{
36974#endif
36975/* We use char because int might match the return type of a gcc2
36976 builtin and then its argument prototype would still apply. */
36977char $ac_func ();
36978/* The GNU C library defines this for functions which it implements
36979 to always fail with ENOSYS. Some functions are actually named
36980 something starting with __ and the normal name is an alias. */
36981#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
36982choke me
36983#else
36984char (*f) () = $ac_func;
36985#endif
36986#ifdef __cplusplus
36987}
36988#endif
36989
36990int
36991main ()
36992{
36993return f != $ac_func;
36994 ;
36995 return 0;
36996}
36997_ACEOF
36998rm -f conftest.$ac_objext conftest$ac_exeext
36999if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 37000 (eval $ac_link) 2>conftest.er1
a848cd7e 37001 ac_status=$?
ac1cb8d3
VS
37002 grep -v '^ *+' conftest.er1 >conftest.err
37003 rm -f conftest.er1
37004 cat conftest.err >&5
a848cd7e
SC
37005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37006 (exit $ac_status); } &&
c9a66001 37007 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
37008 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37009 (eval $ac_try) 2>&5
37010 ac_status=$?
37011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37012 (exit $ac_status); }; } &&
37013 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
37014 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37015 (eval $ac_try) 2>&5
37016 ac_status=$?
37017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37018 (exit $ac_status); }; }; then
37019 eval "$as_ac_var=yes"
37020else
37021 echo "$as_me: failed program was:" >&5
37022sed 's/^/| /' conftest.$ac_ext >&5
37023
37024eval "$as_ac_var=no"
37025fi
ac1cb8d3
VS
37026rm -f conftest.err conftest.$ac_objext \
37027 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
37028fi
37029echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
37030echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
37031if test `eval echo '${'$as_ac_var'}'` = yes; then
37032 cat >>confdefs.h <<_ACEOF
37033#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37034_ACEOF
37035 cat >>confdefs.h <<\_ACEOF
37036#define HAVE_INET_ATON 1
37037_ACEOF
37038
37039else
37040
37041 as_ac_Lib=`echo "ac_cv_lib_$INET_LINK''_inet_aton" | $as_tr_sh`
37042echo "$as_me:$LINENO: checking for inet_aton in -l$INET_LINK" >&5
37043echo $ECHO_N "checking for inet_aton in -l$INET_LINK... $ECHO_C" >&6
37044if eval "test \"\${$as_ac_Lib+set}\" = set"; then
37045 echo $ECHO_N "(cached) $ECHO_C" >&6
37046else
37047 ac_check_lib_save_LIBS=$LIBS
37048LIBS="-l$INET_LINK $LIBS"
37049cat >conftest.$ac_ext <<_ACEOF
37050/* confdefs.h. */
37051_ACEOF
37052cat confdefs.h >>conftest.$ac_ext
37053cat >>conftest.$ac_ext <<_ACEOF
37054/* end confdefs.h. */
37055
37056/* Override any gcc2 internal prototype to avoid an error. */
37057#ifdef __cplusplus
37058extern "C"
37059#endif
37060/* We use char because int might match the return type of a gcc2
37061 builtin and then its argument prototype would still apply. */
37062char inet_aton ();
37063int
37064main ()
37065{
37066inet_aton ();
37067 ;
37068 return 0;
37069}
37070_ACEOF
37071rm -f conftest.$ac_objext conftest$ac_exeext
37072if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 37073 (eval $ac_link) 2>conftest.er1
a848cd7e 37074 ac_status=$?
ac1cb8d3
VS
37075 grep -v '^ *+' conftest.er1 >conftest.err
37076 rm -f conftest.er1
37077 cat conftest.err >&5
a848cd7e
SC
37078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37079 (exit $ac_status); } &&
c9a66001 37080 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
37081 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37082 (eval $ac_try) 2>&5
37083 ac_status=$?
37084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37085 (exit $ac_status); }; } &&
37086 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
37087 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37088 (eval $ac_try) 2>&5
37089 ac_status=$?
37090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37091 (exit $ac_status); }; }; then
37092 eval "$as_ac_Lib=yes"
37093else
37094 echo "$as_me: failed program was:" >&5
37095sed 's/^/| /' conftest.$ac_ext >&5
37096
37097eval "$as_ac_Lib=no"
37098fi
ac1cb8d3
VS
37099rm -f conftest.err conftest.$ac_objext \
37100 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
37101LIBS=$ac_check_lib_save_LIBS
37102fi
37103echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
37104echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
37105if test `eval echo '${'$as_ac_Lib'}'` = yes; then
37106 cat >>confdefs.h <<\_ACEOF
37107#define HAVE_INET_ATON 1
37108_ACEOF
37109
37110fi
37111
37112
37113fi
37114done
37115
37116
37117if test "x$INET_LINK" != "x"; then
37118 cat >>confdefs.h <<\_ACEOF
37119#define HAVE_INET_ADDR 1
37120_ACEOF
37121
37122 INET_LINK=" -l$INET_LINK"
37123fi
37124
37125fi
37126
37127
37128
37129EXTRALIBS_ESD=
37130echo "$as_me:$LINENO: checking for esd_close in -lesd" >&5
37131echo $ECHO_N "checking for esd_close in -lesd... $ECHO_C" >&6
37132if test "${ac_cv_lib_esd_esd_close+set}" = set; then
37133 echo $ECHO_N "(cached) $ECHO_C" >&6
37134else
37135 ac_check_lib_save_LIBS=$LIBS
37136LIBS="-lesd $LIBS"
37137cat >conftest.$ac_ext <<_ACEOF
37138/* confdefs.h. */
37139_ACEOF
37140cat confdefs.h >>conftest.$ac_ext
37141cat >>conftest.$ac_ext <<_ACEOF
37142/* end confdefs.h. */
37143
37144/* Override any gcc2 internal prototype to avoid an error. */
37145#ifdef __cplusplus
37146extern "C"
37147#endif
37148/* We use char because int might match the return type of a gcc2
37149 builtin and then its argument prototype would still apply. */
37150char esd_close ();
37151int
37152main ()
37153{
37154esd_close ();
37155 ;
37156 return 0;
37157}
37158_ACEOF
37159rm -f conftest.$ac_objext conftest$ac_exeext
37160if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 37161 (eval $ac_link) 2>conftest.er1
a848cd7e 37162 ac_status=$?
ac1cb8d3
VS
37163 grep -v '^ *+' conftest.er1 >conftest.err
37164 rm -f conftest.er1
37165 cat conftest.err >&5
a848cd7e
SC
37166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37167 (exit $ac_status); } &&
c9a66001 37168 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
37169 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37170 (eval $ac_try) 2>&5
37171 ac_status=$?
37172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37173 (exit $ac_status); }; } &&
37174 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
37175 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37176 (eval $ac_try) 2>&5
37177 ac_status=$?
37178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37179 (exit $ac_status); }; }; then
37180 ac_cv_lib_esd_esd_close=yes
37181else
37182 echo "$as_me: failed program was:" >&5
37183sed 's/^/| /' conftest.$ac_ext >&5
37184
37185ac_cv_lib_esd_esd_close=no
37186fi
ac1cb8d3
VS
37187rm -f conftest.err conftest.$ac_objext \
37188 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
37189LIBS=$ac_check_lib_save_LIBS
37190fi
37191echo "$as_me:$LINENO: result: $ac_cv_lib_esd_esd_close" >&5
37192echo "${ECHO_T}$ac_cv_lib_esd_esd_close" >&6
37193if test $ac_cv_lib_esd_esd_close = yes; then
37194
37195
37196for ac_header in esd.h
37197do
37198as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
37199if eval "test \"\${$as_ac_Header+set}\" = set"; then
37200 echo "$as_me:$LINENO: checking for $ac_header" >&5
37201echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
37202if eval "test \"\${$as_ac_Header+set}\" = set"; then
37203 echo $ECHO_N "(cached) $ECHO_C" >&6
37204fi
37205echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
37206echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
37207else
37208 # Is the header compilable?
37209echo "$as_me:$LINENO: checking $ac_header usability" >&5
37210echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
37211cat >conftest.$ac_ext <<_ACEOF
37212/* confdefs.h. */
37213_ACEOF
37214cat confdefs.h >>conftest.$ac_ext
37215cat >>conftest.$ac_ext <<_ACEOF
37216/* end confdefs.h. */
37217$ac_includes_default
37218#include <$ac_header>
37219_ACEOF
37220rm -f conftest.$ac_objext
37221if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 37222 (eval $ac_compile) 2>conftest.er1
a848cd7e 37223 ac_status=$?
ac1cb8d3
VS
37224 grep -v '^ *+' conftest.er1 >conftest.err
37225 rm -f conftest.er1
37226 cat conftest.err >&5
a848cd7e
SC
37227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37228 (exit $ac_status); } &&
c9a66001 37229 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
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); }; } &&
37235 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
37236 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37237 (eval $ac_try) 2>&5
37238 ac_status=$?
37239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37240 (exit $ac_status); }; }; then
37241 ac_header_compiler=yes
37242else
37243 echo "$as_me: failed program was:" >&5
37244sed 's/^/| /' conftest.$ac_ext >&5
37245
37246ac_header_compiler=no
37247fi
ac1cb8d3 37248rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
37249echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
37250echo "${ECHO_T}$ac_header_compiler" >&6
37251
37252# Is the header present?
37253echo "$as_me:$LINENO: checking $ac_header presence" >&5
37254echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
37255cat >conftest.$ac_ext <<_ACEOF
37256/* confdefs.h. */
37257_ACEOF
37258cat confdefs.h >>conftest.$ac_ext
37259cat >>conftest.$ac_ext <<_ACEOF
37260/* end confdefs.h. */
37261#include <$ac_header>
37262_ACEOF
37263if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
37264 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
37265 ac_status=$?
37266 grep -v '^ *+' conftest.er1 >conftest.err
37267 rm -f conftest.er1
37268 cat conftest.err >&5
37269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37270 (exit $ac_status); } >/dev/null; then
37271 if test -s conftest.err; then
5d7b7554
VZ
37272 ac_cpp_err=$ac_cxx_preproc_warn_flag
37273 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
37274 else
37275 ac_cpp_err=
37276 fi
37277else
37278 ac_cpp_err=yes
37279fi
37280if test -z "$ac_cpp_err"; then
37281 ac_header_preproc=yes
37282else
37283 echo "$as_me: failed program was:" >&5
37284sed 's/^/| /' conftest.$ac_ext >&5
37285
37286 ac_header_preproc=no
37287fi
37288rm -f conftest.err conftest.$ac_ext
37289echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
37290echo "${ECHO_T}$ac_header_preproc" >&6
37291
37292# So? What about this header?
5d7b7554 37293case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
ac1cb8d3 37294 yes:no: )
a848cd7e
SC
37295 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
37296echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
37297 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
37298echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
37299 ac_header_preproc=yes
a848cd7e 37300 ;;
ac1cb8d3 37301 no:yes:* )
a848cd7e
SC
37302 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
37303echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
37304 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
37305echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
37306 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
37307echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
37308 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
37309echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
37310 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
37311echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
37312 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
37313echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
37314 (
37315 cat <<\_ASBOX
ac1cb8d3
VS
37316## ----------------------------------------- ##
37317## Report this to wx-dev@lists.wxwidgets.org ##
37318## ----------------------------------------- ##
a848cd7e
SC
37319_ASBOX
37320 ) |
37321 sed "s/^/$as_me: WARNING: /" >&2
37322 ;;
37323esac
37324echo "$as_me:$LINENO: checking for $ac_header" >&5
37325echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
37326if eval "test \"\${$as_ac_Header+set}\" = set"; then
37327 echo $ECHO_N "(cached) $ECHO_C" >&6
37328else
ac1cb8d3 37329 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
37330fi
37331echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
37332echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
37333
37334fi
37335if test `eval echo '${'$as_ac_Header'}'` = yes; then
37336 cat >>confdefs.h <<_ACEOF
37337#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
37338_ACEOF
37339
37340 EXTRALIBS_ESD="-lesd"
37341
37342fi
37343
37344done
37345
37346
37347fi
37348
37349
37350
37351echo "$as_me:$LINENO: checking for known CD-ROM interface" >&5
37352echo $ECHO_N "checking for known CD-ROM interface... $ECHO_C" >&6
37353cat >conftest.$ac_ext <<_ACEOF
37354/* confdefs.h. */
37355_ACEOF
37356cat confdefs.h >>conftest.$ac_ext
37357cat >>conftest.$ac_ext <<_ACEOF
37358/* end confdefs.h. */
37359#ifdef __linux__
37360 #include <linux/cdrom.h>
37361 #else
37362 /* For Solaris */
37363 #include <sys/cdio.h>
37364 #endif
37365
37366int
37367main ()
37368{
37369struct cdrom_tocentry entry, old_entry;
37370 ;
37371 return 0;
37372}
37373_ACEOF
37374rm -f conftest.$ac_objext
37375if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 37376 (eval $ac_compile) 2>conftest.er1
a848cd7e 37377 ac_status=$?
ac1cb8d3
VS
37378 grep -v '^ *+' conftest.er1 >conftest.err
37379 rm -f conftest.er1
37380 cat conftest.err >&5
a848cd7e
SC
37381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37382 (exit $ac_status); } &&
c9a66001 37383 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
37384 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37385 (eval $ac_try) 2>&5
37386 ac_status=$?
37387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37388 (exit $ac_status); }; } &&
37389 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
37390 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37391 (eval $ac_try) 2>&5
37392 ac_status=$?
37393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37394 (exit $ac_status); }; }; then
37395 echo "$as_me:$LINENO: result: yes" >&5
37396echo "${ECHO_T}yes" >&6
37397 cat >>confdefs.h <<\_ACEOF
37398#define HAVE_KNOWN_CDROM_INTERFACE 1
37399_ACEOF
37400
37401else
37402 echo "$as_me: failed program was:" >&5
37403sed 's/^/| /' conftest.$ac_ext >&5
37404
37405echo "$as_me:$LINENO: result: no" >&5
37406echo "${ECHO_T}no" >&6
37407fi
ac1cb8d3 37408rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
37409
37410
37411cat >confcache <<\_ACEOF
37412# This file is a shell script that caches the results of configure
37413# tests run on this system so they can be shared between configure
37414# scripts and configure runs, see configure's option --config-cache.
37415# It is not useful on other systems. If it contains results you don't
37416# want to keep, you may remove or edit it.
37417#
37418# config.status only pays attention to the cache file if you give it
37419# the --recheck option to rerun configure.
37420#
37421# `ac_cv_env_foo' variables (set or unset) will be overridden when
37422# loading this file, other *unset* `ac_cv_foo' will be assigned the
37423# following values.
37424
37425_ACEOF
37426
37427# The following way of writing the cache mishandles newlines in values,
37428# but we know of no workaround that is simple, portable, and efficient.
37429# So, don't put newlines in cache variables' values.
37430# Ultrix sh set writes to stderr and can't be redirected directly,
37431# and sets the high bit in the cache file unless we assign to the vars.
37432{
37433 (set) 2>&1 |
37434 case `(ac_space=' '; set | grep ac_space) 2>&1` in
37435 *ac_space=\ *)
37436 # `set' does not quote correctly, so add quotes (double-quote
37437 # substitution turns \\\\ into \\, and sed turns \\ into \).
37438 sed -n \
ac1cb8d3
VS
37439 "s/'/'\\\\''/g;
37440 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
a848cd7e
SC
37441 ;;
37442 *)
37443 # `set' quotes correctly as required by POSIX, so do not add quotes.
37444 sed -n \
ac1cb8d3 37445 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
a848cd7e
SC
37446 ;;
37447 esac;
37448} |
37449 sed '
37450 t clear
37451 : clear
37452 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
37453 t end
37454 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
37455 : end' >>confcache
37456if diff $cache_file confcache >/dev/null 2>&1; then :; else
37457 if test -w $cache_file; then
37458 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
37459 cat confcache >$cache_file
37460 else
37461 echo "not updating unwritable cache $cache_file"
37462 fi
37463fi
37464rm -f confcache
37465
37466
a848cd7e
SC
37467if test "$TOOLKIT" != "MSW" -a "$USE_OS2" != 1; then
37468
37469
37470 THREADS_LINK=
e56f4f9e 37471 THREADS_CXXFLAGS=
a848cd7e
SC
37472
37473 if test "$wxUSE_THREADS" = "yes" ; then
37474 if test "$USE_BEOS" = 1; then
37475 { echo "$as_me:$LINENO: WARNING: BeOS threads are not yet supported... disabled" >&5
37476echo "$as_me: WARNING: BeOS threads are not yet supported... disabled" >&2;}
37477 wxUSE_THREADS="no"
37478 fi
37479 fi
37480
37481 if test "$wxUSE_THREADS" = "yes" ; then
37482
37483
37484 THREAD_OPTS="-pthread"
37485 case "${host}" in
37486 *-*-solaris2* | *-*-sunos4* )
37487 if test "x$GCC" = "xyes"; then
37488 THREAD_OPTS="-pthreads $THREAD_OPTS"
37489 else
37490 THREAD_OPTS="-mt $THREAD_OPTS"
37491 fi
37492 ;;
37493 *-*-freebsd*)
37494 THREAD_OPTS="-kthread lthread $THREAD_OPTS c_r"
37495 ;;
37496 *-*-darwin* | *-*-cygwin* )
37497 THREAD_OPTS=""
37498 ;;
37499 *-*-aix*)
37500 THREAD_OPTS="pthreads"
37501 ;;
37502 *-hp-hpux* )
00421666
MW
37503 if test "x$GCC" = "xyes"; then
37504 $CXX -dumpspecs | grep 'pthread:' >/dev/null ||
37505 THREAD_OPTS=""
37506 else
0093c2fc 37507 THREAD_OPTS="-mt"
a848cd7e
SC
37508 fi
37509 ;;
37510
37511 *-*-irix* )
37512 if test "x$GCC" = "xyes"; then
37513 THREAD_OPTS=""
37514 fi
37515 ;;
37516
37517 *-*-*UnixWare*)
37518 if test "x$GCC" != "xyes"; then
37519 THREAD_OPTS="-Ethread"
37520 fi
37521 ;;
37522 esac
37523
37524 THREAD_OPTS="$THREAD_OPTS pthread none"
37525
37526 THREADS_OK=no
37527 for flag in $THREAD_OPTS; do
37528 case $flag in
37529 none)
37530 echo "$as_me:$LINENO: checking whether pthreads work without any flags" >&5
37531echo $ECHO_N "checking whether pthreads work without any flags... $ECHO_C" >&6
37532 ;;
37533
37534 -*)
37535 echo "$as_me:$LINENO: checking whether pthreads work with $flag" >&5
37536echo $ECHO_N "checking whether pthreads work with $flag... $ECHO_C" >&6
e56f4f9e 37537 THREADS_CXXFLAGS="$flag"
a848cd7e
SC
37538 ;;
37539
37540 *)
37541 echo "$as_me:$LINENO: checking for the pthreads library -l$flag" >&5
37542echo $ECHO_N "checking for the pthreads library -l$flag... $ECHO_C" >&6
37543 THREADS_LINK="-l$flag"
37544 ;;
37545 esac
37546
37547 save_LIBS="$LIBS"
e56f4f9e 37548 save_CXXFLAGS="$CXXFLAGS"
a848cd7e 37549 LIBS="$THREADS_LINK $LIBS"
e56f4f9e 37550 CXXFLAGS="$THREADS_CXXFLAGS $CXXFLAGS"
a848cd7e
SC
37551
37552 cat >conftest.$ac_ext <<_ACEOF
37553/* confdefs.h. */
37554_ACEOF
37555cat confdefs.h >>conftest.$ac_ext
37556cat >>conftest.$ac_ext <<_ACEOF
37557/* end confdefs.h. */
37558#include <pthread.h>
37559int
37560main ()
37561{
37562pthread_create(0,0,0,0);
37563 ;
37564 return 0;
37565}
37566_ACEOF
37567rm -f conftest.$ac_objext conftest$ac_exeext
37568if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 37569 (eval $ac_link) 2>conftest.er1
a848cd7e 37570 ac_status=$?
ac1cb8d3
VS
37571 grep -v '^ *+' conftest.er1 >conftest.err
37572 rm -f conftest.er1
37573 cat conftest.err >&5
a848cd7e
SC
37574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37575 (exit $ac_status); } &&
c9a66001 37576 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
37577 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37578 (eval $ac_try) 2>&5
37579 ac_status=$?
37580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37581 (exit $ac_status); }; } &&
37582 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
37583 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37584 (eval $ac_try) 2>&5
37585 ac_status=$?
37586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37587 (exit $ac_status); }; }; then
37588 THREADS_OK=yes
37589else
37590 echo "$as_me: failed program was:" >&5
37591sed 's/^/| /' conftest.$ac_ext >&5
37592
37593fi
ac1cb8d3
VS
37594rm -f conftest.err conftest.$ac_objext \
37595 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
37596
37597 LIBS="$save_LIBS"
e56f4f9e 37598 CXXFLAGS="$save_CXXFLAGS"
a848cd7e
SC
37599
37600 echo "$as_me:$LINENO: result: $THREADS_OK" >&5
37601echo "${ECHO_T}$THREADS_OK" >&6
37602 if test "x$THREADS_OK" = "xyes"; then
37603 break;
37604 fi
37605
37606 THREADS_LINK=""
e56f4f9e 37607 THREADS_CXXFLAGS=""
a848cd7e
SC
37608 done
37609
37610 if test "x$THREADS_OK" != "xyes"; then
37611 wxUSE_THREADS=no
37612 { echo "$as_me:$LINENO: WARNING: No thread support on this system... disabled" >&5
37613echo "$as_me: WARNING: No thread support on this system... disabled" >&2;}
37614 else
e56f4f9e 37615 LDFLAGS="$THREADS_CXXFLAGS $LDFLAGS"
a848cd7e
SC
37616 LIBS="$THREADS_LINK $LIBS"
37617
37618 echo "$as_me:$LINENO: checking if more special flags are required for pthreads" >&5
37619echo $ECHO_N "checking if more special flags are required for pthreads... $ECHO_C" >&6
37620 flag=no
37621 case "${host}" in
37622 *-aix*)
37623 LDFLAGS="-L/usr/lib/threads $LDFLAGS"
37624 flag="-D_THREAD_SAFE"
37625 ;;
37626 *-freebsd*)
37627 flag="-D_THREAD_SAFE"
37628 ;;
37629 *-hp-hpux* )
37630 flag="-D_REENTRANT"
37631 if test "x$GCC" != "xyes"; then
37632 flag="$flag -D_RWSTD_MULTI_THREAD"
37633 fi
37634 ;;
37635 *solaris* | alpha*-osf*)
37636 flag="-D_REENTRANT"
37637 ;;
37638 esac
37639 echo "$as_me:$LINENO: result: ${flag}" >&5
37640echo "${ECHO_T}${flag}" >&6
37641 if test "x$flag" != xno; then
e56f4f9e 37642 THREADS_CXXFLAGS="$THREADS_CXXFLAGS $flag"
a848cd7e
SC
37643 fi
37644
e56f4f9e 37645 WXCONFIG_CXXFLAGS="$WXCONFIG_CXXFLAGS $THREADS_CXXFLAGS"
a848cd7e
SC
37646 fi
37647 fi
37648
37649 if test "$wxUSE_THREADS" = "yes" ; then
37650
37651for ac_func in thr_setconcurrency
37652do
37653as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37654echo "$as_me:$LINENO: checking for $ac_func" >&5
37655echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
37656if eval "test \"\${$as_ac_var+set}\" = set"; then
37657 echo $ECHO_N "(cached) $ECHO_C" >&6
37658else
37659 cat >conftest.$ac_ext <<_ACEOF
37660/* confdefs.h. */
37661_ACEOF
37662cat confdefs.h >>conftest.$ac_ext
37663cat >>conftest.$ac_ext <<_ACEOF
37664/* end confdefs.h. */
ac1cb8d3
VS
37665/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37666 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37667#define $ac_func innocuous_$ac_func
37668
a848cd7e
SC
37669/* System header to define __stub macros and hopefully few prototypes,
37670 which can conflict with char $ac_func (); below.
37671 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37672 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 37673
a848cd7e
SC
37674#ifdef __STDC__
37675# include <limits.h>
37676#else
37677# include <assert.h>
37678#endif
ac1cb8d3
VS
37679
37680#undef $ac_func
37681
a848cd7e
SC
37682/* Override any gcc2 internal prototype to avoid an error. */
37683#ifdef __cplusplus
37684extern "C"
37685{
37686#endif
37687/* We use char because int might match the return type of a gcc2
37688 builtin and then its argument prototype would still apply. */
37689char $ac_func ();
37690/* The GNU C library defines this for functions which it implements
37691 to always fail with ENOSYS. Some functions are actually named
37692 something starting with __ and the normal name is an alias. */
37693#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
37694choke me
37695#else
37696char (*f) () = $ac_func;
37697#endif
37698#ifdef __cplusplus
37699}
37700#endif
37701
37702int
37703main ()
37704{
37705return f != $ac_func;
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 eval "$as_ac_var=yes"
37732else
37733 echo "$as_me: failed program was:" >&5
37734sed 's/^/| /' conftest.$ac_ext >&5
37735
37736eval "$as_ac_var=no"
37737fi
ac1cb8d3
VS
37738rm -f conftest.err conftest.$ac_objext \
37739 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
37740fi
37741echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
37742echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
37743if test `eval echo '${'$as_ac_var'}'` = yes; then
37744 cat >>confdefs.h <<_ACEOF
37745#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37746_ACEOF
37747
37748fi
37749done
37750
37751
6ebeb4c7
VZ
37752 echo "$as_me:$LINENO: checking for pthread_cleanup_push/pop" >&5
37753echo $ECHO_N "checking for pthread_cleanup_push/pop... $ECHO_C" >&6
37754if test "${wx_cv_func_pthread_cleanup+set}" = set; then
37755 echo $ECHO_N "(cached) $ECHO_C" >&6
37756else
37757
37758 cat >conftest.$ac_ext <<_ACEOF
37759/* confdefs.h. */
37760_ACEOF
37761cat confdefs.h >>conftest.$ac_ext
37762cat >>conftest.$ac_ext <<_ACEOF
37763/* end confdefs.h. */
37764#include <pthread.h>
37765 void ThreadCleanupFunc(void *p);
37766
37767int
37768main ()
37769{
37770
37771 void *p;
37772 pthread_cleanup_push(ThreadCleanupFunc, p);
37773 pthread_cleanup_pop(0);
37774
37775 ;
37776 return 0;
37777}
37778_ACEOF
37779rm -f conftest.$ac_objext
37780if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37781 (eval $ac_compile) 2>conftest.er1
37782 ac_status=$?
37783 grep -v '^ *+' conftest.er1 >conftest.err
37784 rm -f conftest.er1
37785 cat conftest.err >&5
37786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37787 (exit $ac_status); } &&
c9a66001 37788 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6ebeb4c7
VZ
37789 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37790 (eval $ac_try) 2>&5
37791 ac_status=$?
37792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37793 (exit $ac_status); }; } &&
37794 { ac_try='test -s conftest.$ac_objext'
37795 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37796 (eval $ac_try) 2>&5
37797 ac_status=$?
37798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37799 (exit $ac_status); }; }; then
37800
37801 wx_cv_func_pthread_cleanup=yes
37802
37803else
37804 echo "$as_me: failed program was:" >&5
37805sed 's/^/| /' conftest.$ac_ext >&5
37806
37807
37808 wx_cv_func_pthread_cleanup=no
37809
37810
37811fi
37812rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37813
37814fi
37815echo "$as_me:$LINENO: result: $wx_cv_func_pthread_cleanup" >&5
37816echo "${ECHO_T}$wx_cv_func_pthread_cleanup" >&6
37817 if test "x$wx_cv_func_pthread_cleanup" = "xyes"; then
37818 cat >>confdefs.h <<\_ACEOF
37819#define wxHAVE_PTHREAD_CLEANUP 1
37820_ACEOF
37821
37822 fi
37823
a848cd7e
SC
37824
37825for ac_header in sched.h
37826do
37827as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
37828if eval "test \"\${$as_ac_Header+set}\" = set"; then
37829 echo "$as_me:$LINENO: checking for $ac_header" >&5
37830echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
37831if eval "test \"\${$as_ac_Header+set}\" = set"; then
37832 echo $ECHO_N "(cached) $ECHO_C" >&6
37833fi
37834echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
37835echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
37836else
37837 # Is the header compilable?
37838echo "$as_me:$LINENO: checking $ac_header usability" >&5
37839echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
37840cat >conftest.$ac_ext <<_ACEOF
37841/* confdefs.h. */
37842_ACEOF
37843cat confdefs.h >>conftest.$ac_ext
37844cat >>conftest.$ac_ext <<_ACEOF
37845/* end confdefs.h. */
37846$ac_includes_default
37847#include <$ac_header>
37848_ACEOF
37849rm -f conftest.$ac_objext
37850if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 37851 (eval $ac_compile) 2>conftest.er1
a848cd7e 37852 ac_status=$?
ac1cb8d3
VS
37853 grep -v '^ *+' conftest.er1 >conftest.err
37854 rm -f conftest.er1
37855 cat conftest.err >&5
a848cd7e
SC
37856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37857 (exit $ac_status); } &&
c9a66001 37858 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
37859 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37860 (eval $ac_try) 2>&5
37861 ac_status=$?
37862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37863 (exit $ac_status); }; } &&
37864 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
37865 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37866 (eval $ac_try) 2>&5
37867 ac_status=$?
37868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37869 (exit $ac_status); }; }; then
37870 ac_header_compiler=yes
37871else
37872 echo "$as_me: failed program was:" >&5
37873sed 's/^/| /' conftest.$ac_ext >&5
37874
37875ac_header_compiler=no
37876fi
ac1cb8d3 37877rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
37878echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
37879echo "${ECHO_T}$ac_header_compiler" >&6
37880
37881# Is the header present?
37882echo "$as_me:$LINENO: checking $ac_header presence" >&5
37883echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
37884cat >conftest.$ac_ext <<_ACEOF
37885/* confdefs.h. */
37886_ACEOF
37887cat confdefs.h >>conftest.$ac_ext
37888cat >>conftest.$ac_ext <<_ACEOF
37889/* end confdefs.h. */
37890#include <$ac_header>
37891_ACEOF
37892if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
37893 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
37894 ac_status=$?
37895 grep -v '^ *+' conftest.er1 >conftest.err
37896 rm -f conftest.er1
37897 cat conftest.err >&5
37898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37899 (exit $ac_status); } >/dev/null; then
37900 if test -s conftest.err; then
5d7b7554
VZ
37901 ac_cpp_err=$ac_cxx_preproc_warn_flag
37902 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
37903 else
37904 ac_cpp_err=
37905 fi
37906else
37907 ac_cpp_err=yes
37908fi
37909if test -z "$ac_cpp_err"; then
37910 ac_header_preproc=yes
37911else
37912 echo "$as_me: failed program was:" >&5
37913sed 's/^/| /' conftest.$ac_ext >&5
37914
37915 ac_header_preproc=no
37916fi
37917rm -f conftest.err conftest.$ac_ext
37918echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
37919echo "${ECHO_T}$ac_header_preproc" >&6
37920
37921# So? What about this header?
5d7b7554 37922case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
ac1cb8d3 37923 yes:no: )
a848cd7e
SC
37924 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
37925echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
37926 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
37927echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
37928 ac_header_preproc=yes
a848cd7e 37929 ;;
ac1cb8d3 37930 no:yes:* )
a848cd7e
SC
37931 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
37932echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
37933 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
37934echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
37935 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
37936echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
37937 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
37938echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
37939 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
37940echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
37941 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
37942echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
37943 (
37944 cat <<\_ASBOX
ac1cb8d3
VS
37945## ----------------------------------------- ##
37946## Report this to wx-dev@lists.wxwidgets.org ##
37947## ----------------------------------------- ##
a848cd7e
SC
37948_ASBOX
37949 ) |
37950 sed "s/^/$as_me: WARNING: /" >&2
37951 ;;
37952esac
37953echo "$as_me:$LINENO: checking for $ac_header" >&5
37954echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
37955if eval "test \"\${$as_ac_Header+set}\" = set"; then
37956 echo $ECHO_N "(cached) $ECHO_C" >&6
37957else
ac1cb8d3 37958 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
37959fi
37960echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
37961echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
37962
37963fi
37964if test `eval echo '${'$as_ac_Header'}'` = yes; then
37965 cat >>confdefs.h <<_ACEOF
37966#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
37967_ACEOF
37968
37969fi
37970
37971done
37972
37973 if test "$ac_cv_header_sched_h" = "yes"; then
37974 echo "$as_me:$LINENO: checking for sched_yield" >&5
37975echo $ECHO_N "checking for sched_yield... $ECHO_C" >&6
37976if test "${ac_cv_func_sched_yield+set}" = set; then
37977 echo $ECHO_N "(cached) $ECHO_C" >&6
37978else
37979 cat >conftest.$ac_ext <<_ACEOF
37980/* confdefs.h. */
37981_ACEOF
37982cat confdefs.h >>conftest.$ac_ext
37983cat >>conftest.$ac_ext <<_ACEOF
37984/* end confdefs.h. */
ac1cb8d3
VS
37985/* Define sched_yield to an innocuous variant, in case <limits.h> declares sched_yield.
37986 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37987#define sched_yield innocuous_sched_yield
37988
a848cd7e
SC
37989/* System header to define __stub macros and hopefully few prototypes,
37990 which can conflict with char sched_yield (); below.
37991 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37992 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 37993
a848cd7e
SC
37994#ifdef __STDC__
37995# include <limits.h>
37996#else
37997# include <assert.h>
37998#endif
ac1cb8d3
VS
37999
38000#undef sched_yield
38001
a848cd7e
SC
38002/* Override any gcc2 internal prototype to avoid an error. */
38003#ifdef __cplusplus
38004extern "C"
38005{
38006#endif
38007/* We use char because int might match the return type of a gcc2
38008 builtin and then its argument prototype would still apply. */
38009char sched_yield ();
38010/* The GNU C library defines this for functions which it implements
38011 to always fail with ENOSYS. Some functions are actually named
38012 something starting with __ and the normal name is an alias. */
38013#if defined (__stub_sched_yield) || defined (__stub___sched_yield)
38014choke me
38015#else
38016char (*f) () = sched_yield;
38017#endif
38018#ifdef __cplusplus
38019}
38020#endif
38021
38022int
38023main ()
38024{
38025return f != sched_yield;
38026 ;
38027 return 0;
38028}
38029_ACEOF
38030rm -f conftest.$ac_objext conftest$ac_exeext
38031if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 38032 (eval $ac_link) 2>conftest.er1
a848cd7e 38033 ac_status=$?
ac1cb8d3
VS
38034 grep -v '^ *+' conftest.er1 >conftest.err
38035 rm -f conftest.er1
38036 cat conftest.err >&5
a848cd7e
SC
38037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38038 (exit $ac_status); } &&
c9a66001 38039 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
38040 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38041 (eval $ac_try) 2>&5
38042 ac_status=$?
38043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38044 (exit $ac_status); }; } &&
38045 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
38046 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38047 (eval $ac_try) 2>&5
38048 ac_status=$?
38049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38050 (exit $ac_status); }; }; then
38051 ac_cv_func_sched_yield=yes
38052else
38053 echo "$as_me: failed program was:" >&5
38054sed 's/^/| /' conftest.$ac_ext >&5
38055
38056ac_cv_func_sched_yield=no
38057fi
ac1cb8d3
VS
38058rm -f conftest.err conftest.$ac_objext \
38059 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
38060fi
38061echo "$as_me:$LINENO: result: $ac_cv_func_sched_yield" >&5
38062echo "${ECHO_T}$ac_cv_func_sched_yield" >&6
38063if test $ac_cv_func_sched_yield = yes; then
38064 cat >>confdefs.h <<\_ACEOF
38065#define HAVE_SCHED_YIELD 1
38066_ACEOF
38067
38068else
38069
38070 echo "$as_me:$LINENO: checking for sched_yield in -lposix4" >&5
38071echo $ECHO_N "checking for sched_yield in -lposix4... $ECHO_C" >&6
38072if test "${ac_cv_lib_posix4_sched_yield+set}" = set; then
38073 echo $ECHO_N "(cached) $ECHO_C" >&6
38074else
38075 ac_check_lib_save_LIBS=$LIBS
38076LIBS="-lposix4 $LIBS"
38077cat >conftest.$ac_ext <<_ACEOF
38078/* confdefs.h. */
38079_ACEOF
38080cat confdefs.h >>conftest.$ac_ext
38081cat >>conftest.$ac_ext <<_ACEOF
38082/* end confdefs.h. */
38083
38084/* Override any gcc2 internal prototype to avoid an error. */
38085#ifdef __cplusplus
38086extern "C"
38087#endif
38088/* We use char because int might match the return type of a gcc2
38089 builtin and then its argument prototype would still apply. */
38090char sched_yield ();
38091int
38092main ()
38093{
38094sched_yield ();
38095 ;
38096 return 0;
38097}
38098_ACEOF
38099rm -f conftest.$ac_objext conftest$ac_exeext
38100if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 38101 (eval $ac_link) 2>conftest.er1
a848cd7e 38102 ac_status=$?
ac1cb8d3
VS
38103 grep -v '^ *+' conftest.er1 >conftest.err
38104 rm -f conftest.er1
38105 cat conftest.err >&5
a848cd7e
SC
38106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38107 (exit $ac_status); } &&
c9a66001 38108 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
38109 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38110 (eval $ac_try) 2>&5
38111 ac_status=$?
38112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38113 (exit $ac_status); }; } &&
38114 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
38115 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38116 (eval $ac_try) 2>&5
38117 ac_status=$?
38118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38119 (exit $ac_status); }; }; then
38120 ac_cv_lib_posix4_sched_yield=yes
38121else
38122 echo "$as_me: failed program was:" >&5
38123sed 's/^/| /' conftest.$ac_ext >&5
38124
38125ac_cv_lib_posix4_sched_yield=no
38126fi
ac1cb8d3
VS
38127rm -f conftest.err conftest.$ac_objext \
38128 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
38129LIBS=$ac_check_lib_save_LIBS
38130fi
38131echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sched_yield" >&5
38132echo "${ECHO_T}$ac_cv_lib_posix4_sched_yield" >&6
38133if test $ac_cv_lib_posix4_sched_yield = yes; then
38134 cat >>confdefs.h <<\_ACEOF
38135#define HAVE_SCHED_YIELD 1
38136_ACEOF
38137 POSIX4_LINK=" -lposix4"
38138else
38139 { echo "$as_me:$LINENO: WARNING: wxThread::Yield will not work properly" >&5
38140echo "$as_me: WARNING: wxThread::Yield will not work properly" >&2;}
38141
38142fi
38143
38144
38145
38146fi
38147
38148 fi
38149
38150 HAVE_PRIOR_FUNCS=0
38151 echo "$as_me:$LINENO: checking for pthread_attr_getschedpolicy" >&5
38152echo $ECHO_N "checking for pthread_attr_getschedpolicy... $ECHO_C" >&6
38153if test "${ac_cv_func_pthread_attr_getschedpolicy+set}" = set; then
38154 echo $ECHO_N "(cached) $ECHO_C" >&6
38155else
38156 cat >conftest.$ac_ext <<_ACEOF
38157/* confdefs.h. */
38158_ACEOF
38159cat confdefs.h >>conftest.$ac_ext
38160cat >>conftest.$ac_ext <<_ACEOF
38161/* end confdefs.h. */
ac1cb8d3
VS
38162/* Define pthread_attr_getschedpolicy to an innocuous variant, in case <limits.h> declares pthread_attr_getschedpolicy.
38163 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38164#define pthread_attr_getschedpolicy innocuous_pthread_attr_getschedpolicy
38165
a848cd7e
SC
38166/* System header to define __stub macros and hopefully few prototypes,
38167 which can conflict with char pthread_attr_getschedpolicy (); below.
38168 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38169 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 38170
a848cd7e
SC
38171#ifdef __STDC__
38172# include <limits.h>
38173#else
38174# include <assert.h>
38175#endif
ac1cb8d3
VS
38176
38177#undef pthread_attr_getschedpolicy
38178
a848cd7e
SC
38179/* Override any gcc2 internal prototype to avoid an error. */
38180#ifdef __cplusplus
38181extern "C"
38182{
38183#endif
38184/* We use char because int might match the return type of a gcc2
38185 builtin and then its argument prototype would still apply. */
38186char pthread_attr_getschedpolicy ();
38187/* The GNU C library defines this for functions which it implements
38188 to always fail with ENOSYS. Some functions are actually named
38189 something starting with __ and the normal name is an alias. */
38190#if defined (__stub_pthread_attr_getschedpolicy) || defined (__stub___pthread_attr_getschedpolicy)
38191choke me
38192#else
38193char (*f) () = pthread_attr_getschedpolicy;
38194#endif
38195#ifdef __cplusplus
38196}
38197#endif
38198
38199int
38200main ()
38201{
38202return f != pthread_attr_getschedpolicy;
38203 ;
38204 return 0;
38205}
38206_ACEOF
38207rm -f conftest.$ac_objext conftest$ac_exeext
38208if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 38209 (eval $ac_link) 2>conftest.er1
a848cd7e 38210 ac_status=$?
ac1cb8d3
VS
38211 grep -v '^ *+' conftest.er1 >conftest.err
38212 rm -f conftest.er1
38213 cat conftest.err >&5
a848cd7e
SC
38214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38215 (exit $ac_status); } &&
c9a66001 38216 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
38217 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38218 (eval $ac_try) 2>&5
38219 ac_status=$?
38220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38221 (exit $ac_status); }; } &&
38222 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
38223 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38224 (eval $ac_try) 2>&5
38225 ac_status=$?
38226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38227 (exit $ac_status); }; }; then
38228 ac_cv_func_pthread_attr_getschedpolicy=yes
38229else
38230 echo "$as_me: failed program was:" >&5
38231sed 's/^/| /' conftest.$ac_ext >&5
38232
38233ac_cv_func_pthread_attr_getschedpolicy=no
38234fi
ac1cb8d3
VS
38235rm -f conftest.err conftest.$ac_objext \
38236 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
38237fi
38238echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_getschedpolicy" >&5
38239echo "${ECHO_T}$ac_cv_func_pthread_attr_getschedpolicy" >&6
38240if test $ac_cv_func_pthread_attr_getschedpolicy = yes; then
38241 echo "$as_me:$LINENO: checking for pthread_attr_setschedparam" >&5
38242echo $ECHO_N "checking for pthread_attr_setschedparam... $ECHO_C" >&6
38243if test "${ac_cv_func_pthread_attr_setschedparam+set}" = set; then
38244 echo $ECHO_N "(cached) $ECHO_C" >&6
38245else
38246 cat >conftest.$ac_ext <<_ACEOF
38247/* confdefs.h. */
38248_ACEOF
38249cat confdefs.h >>conftest.$ac_ext
38250cat >>conftest.$ac_ext <<_ACEOF
38251/* end confdefs.h. */
ac1cb8d3
VS
38252/* Define pthread_attr_setschedparam to an innocuous variant, in case <limits.h> declares pthread_attr_setschedparam.
38253 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38254#define pthread_attr_setschedparam innocuous_pthread_attr_setschedparam
38255
a848cd7e
SC
38256/* System header to define __stub macros and hopefully few prototypes,
38257 which can conflict with char pthread_attr_setschedparam (); below.
38258 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38259 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 38260
a848cd7e
SC
38261#ifdef __STDC__
38262# include <limits.h>
38263#else
38264# include <assert.h>
38265#endif
ac1cb8d3
VS
38266
38267#undef pthread_attr_setschedparam
38268
a848cd7e
SC
38269/* Override any gcc2 internal prototype to avoid an error. */
38270#ifdef __cplusplus
38271extern "C"
38272{
38273#endif
38274/* We use char because int might match the return type of a gcc2
38275 builtin and then its argument prototype would still apply. */
38276char pthread_attr_setschedparam ();
38277/* The GNU C library defines this for functions which it implements
38278 to always fail with ENOSYS. Some functions are actually named
38279 something starting with __ and the normal name is an alias. */
38280#if defined (__stub_pthread_attr_setschedparam) || defined (__stub___pthread_attr_setschedparam)
38281choke me
38282#else
38283char (*f) () = pthread_attr_setschedparam;
38284#endif
38285#ifdef __cplusplus
38286}
38287#endif
38288
38289int
38290main ()
38291{
38292return f != pthread_attr_setschedparam;
38293 ;
38294 return 0;
38295}
38296_ACEOF
38297rm -f conftest.$ac_objext conftest$ac_exeext
38298if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 38299 (eval $ac_link) 2>conftest.er1
a848cd7e 38300 ac_status=$?
ac1cb8d3
VS
38301 grep -v '^ *+' conftest.er1 >conftest.err
38302 rm -f conftest.er1
38303 cat conftest.err >&5
a848cd7e
SC
38304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38305 (exit $ac_status); } &&
c9a66001 38306 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
38307 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38308 (eval $ac_try) 2>&5
38309 ac_status=$?
38310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38311 (exit $ac_status); }; } &&
38312 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
38313 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38314 (eval $ac_try) 2>&5
38315 ac_status=$?
38316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38317 (exit $ac_status); }; }; then
38318 ac_cv_func_pthread_attr_setschedparam=yes
38319else
38320 echo "$as_me: failed program was:" >&5
38321sed 's/^/| /' conftest.$ac_ext >&5
38322
38323ac_cv_func_pthread_attr_setschedparam=no
38324fi
ac1cb8d3
VS
38325rm -f conftest.err conftest.$ac_objext \
38326 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
38327fi
38328echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_setschedparam" >&5
38329echo "${ECHO_T}$ac_cv_func_pthread_attr_setschedparam" >&6
38330if test $ac_cv_func_pthread_attr_setschedparam = yes; then
38331 echo "$as_me:$LINENO: checking for sched_get_priority_max" >&5
38332echo $ECHO_N "checking for sched_get_priority_max... $ECHO_C" >&6
38333if test "${ac_cv_func_sched_get_priority_max+set}" = set; then
38334 echo $ECHO_N "(cached) $ECHO_C" >&6
38335else
38336 cat >conftest.$ac_ext <<_ACEOF
38337/* confdefs.h. */
38338_ACEOF
38339cat confdefs.h >>conftest.$ac_ext
38340cat >>conftest.$ac_ext <<_ACEOF
38341/* end confdefs.h. */
ac1cb8d3
VS
38342/* Define sched_get_priority_max to an innocuous variant, in case <limits.h> declares sched_get_priority_max.
38343 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38344#define sched_get_priority_max innocuous_sched_get_priority_max
38345
a848cd7e
SC
38346/* System header to define __stub macros and hopefully few prototypes,
38347 which can conflict with char sched_get_priority_max (); below.
38348 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38349 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 38350
a848cd7e
SC
38351#ifdef __STDC__
38352# include <limits.h>
38353#else
38354# include <assert.h>
38355#endif
ac1cb8d3
VS
38356
38357#undef sched_get_priority_max
38358
a848cd7e
SC
38359/* Override any gcc2 internal prototype to avoid an error. */
38360#ifdef __cplusplus
38361extern "C"
38362{
38363#endif
38364/* We use char because int might match the return type of a gcc2
38365 builtin and then its argument prototype would still apply. */
38366char sched_get_priority_max ();
38367/* The GNU C library defines this for functions which it implements
38368 to always fail with ENOSYS. Some functions are actually named
38369 something starting with __ and the normal name is an alias. */
38370#if defined (__stub_sched_get_priority_max) || defined (__stub___sched_get_priority_max)
38371choke me
38372#else
38373char (*f) () = sched_get_priority_max;
38374#endif
38375#ifdef __cplusplus
38376}
38377#endif
38378
38379int
38380main ()
38381{
38382return f != sched_get_priority_max;
38383 ;
38384 return 0;
38385}
38386_ACEOF
38387rm -f conftest.$ac_objext conftest$ac_exeext
38388if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 38389 (eval $ac_link) 2>conftest.er1
a848cd7e 38390 ac_status=$?
ac1cb8d3
VS
38391 grep -v '^ *+' conftest.er1 >conftest.err
38392 rm -f conftest.er1
38393 cat conftest.err >&5
a848cd7e
SC
38394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38395 (exit $ac_status); } &&
c9a66001 38396 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
38397 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38398 (eval $ac_try) 2>&5
38399 ac_status=$?
38400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38401 (exit $ac_status); }; } &&
38402 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
38403 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38404 (eval $ac_try) 2>&5
38405 ac_status=$?
38406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38407 (exit $ac_status); }; }; then
38408 ac_cv_func_sched_get_priority_max=yes
38409else
38410 echo "$as_me: failed program was:" >&5
38411sed 's/^/| /' conftest.$ac_ext >&5
38412
38413ac_cv_func_sched_get_priority_max=no
38414fi
ac1cb8d3
VS
38415rm -f conftest.err conftest.$ac_objext \
38416 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
38417fi
38418echo "$as_me:$LINENO: result: $ac_cv_func_sched_get_priority_max" >&5
38419echo "${ECHO_T}$ac_cv_func_sched_get_priority_max" >&6
38420if test $ac_cv_func_sched_get_priority_max = yes; then
38421 HAVE_PRIOR_FUNCS=1
38422else
38423 echo "$as_me:$LINENO: checking for sched_get_priority_max in -lposix4" >&5
38424echo $ECHO_N "checking for sched_get_priority_max in -lposix4... $ECHO_C" >&6
38425if test "${ac_cv_lib_posix4_sched_get_priority_max+set}" = set; then
38426 echo $ECHO_N "(cached) $ECHO_C" >&6
38427else
38428 ac_check_lib_save_LIBS=$LIBS
38429LIBS="-lposix4 $LIBS"
38430cat >conftest.$ac_ext <<_ACEOF
38431/* confdefs.h. */
38432_ACEOF
38433cat confdefs.h >>conftest.$ac_ext
38434cat >>conftest.$ac_ext <<_ACEOF
38435/* end confdefs.h. */
38436
38437/* Override any gcc2 internal prototype to avoid an error. */
38438#ifdef __cplusplus
38439extern "C"
38440#endif
38441/* We use char because int might match the return type of a gcc2
38442 builtin and then its argument prototype would still apply. */
38443char sched_get_priority_max ();
38444int
38445main ()
38446{
38447sched_get_priority_max ();
38448 ;
38449 return 0;
38450}
38451_ACEOF
38452rm -f conftest.$ac_objext conftest$ac_exeext
38453if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 38454 (eval $ac_link) 2>conftest.er1
a848cd7e 38455 ac_status=$?
ac1cb8d3
VS
38456 grep -v '^ *+' conftest.er1 >conftest.err
38457 rm -f conftest.er1
38458 cat conftest.err >&5
a848cd7e
SC
38459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38460 (exit $ac_status); } &&
c9a66001 38461 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
38462 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38463 (eval $ac_try) 2>&5
38464 ac_status=$?
38465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38466 (exit $ac_status); }; } &&
38467 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
38468 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38469 (eval $ac_try) 2>&5
38470 ac_status=$?
38471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38472 (exit $ac_status); }; }; then
38473 ac_cv_lib_posix4_sched_get_priority_max=yes
38474else
38475 echo "$as_me: failed program was:" >&5
38476sed 's/^/| /' conftest.$ac_ext >&5
38477
38478ac_cv_lib_posix4_sched_get_priority_max=no
38479fi
ac1cb8d3
VS
38480rm -f conftest.err conftest.$ac_objext \
38481 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
38482LIBS=$ac_check_lib_save_LIBS
38483fi
38484echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sched_get_priority_max" >&5
38485echo "${ECHO_T}$ac_cv_lib_posix4_sched_get_priority_max" >&6
38486if test $ac_cv_lib_posix4_sched_get_priority_max = yes; then
38487
38488 HAVE_PRIOR_FUNCS=1
38489 POSIX4_LINK=" -lposix4"
38490
38491fi
38492
38493
38494fi
38495
38496
38497fi
38498
38499
38500fi
38501
38502
38503 if test "$HAVE_PRIOR_FUNCS" = 1; then
38504 cat >>confdefs.h <<\_ACEOF
38505#define HAVE_THREAD_PRIORITY_FUNCTIONS 1
38506_ACEOF
38507
38508 else
38509 { echo "$as_me:$LINENO: WARNING: Setting thread priority will not work" >&5
38510echo "$as_me: WARNING: Setting thread priority will not work" >&2;}
38511 fi
38512
38513 echo "$as_me:$LINENO: checking for pthread_cancel" >&5
38514echo $ECHO_N "checking for pthread_cancel... $ECHO_C" >&6
38515if test "${ac_cv_func_pthread_cancel+set}" = set; then
38516 echo $ECHO_N "(cached) $ECHO_C" >&6
38517else
38518 cat >conftest.$ac_ext <<_ACEOF
38519/* confdefs.h. */
38520_ACEOF
38521cat confdefs.h >>conftest.$ac_ext
38522cat >>conftest.$ac_ext <<_ACEOF
38523/* end confdefs.h. */
ac1cb8d3
VS
38524/* Define pthread_cancel to an innocuous variant, in case <limits.h> declares pthread_cancel.
38525 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38526#define pthread_cancel innocuous_pthread_cancel
38527
a848cd7e
SC
38528/* System header to define __stub macros and hopefully few prototypes,
38529 which can conflict with char pthread_cancel (); below.
38530 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38531 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 38532
a848cd7e
SC
38533#ifdef __STDC__
38534# include <limits.h>
38535#else
38536# include <assert.h>
38537#endif
ac1cb8d3
VS
38538
38539#undef pthread_cancel
38540
a848cd7e
SC
38541/* Override any gcc2 internal prototype to avoid an error. */
38542#ifdef __cplusplus
38543extern "C"
38544{
38545#endif
38546/* We use char because int might match the return type of a gcc2
38547 builtin and then its argument prototype would still apply. */
38548char pthread_cancel ();
38549/* The GNU C library defines this for functions which it implements
38550 to always fail with ENOSYS. Some functions are actually named
38551 something starting with __ and the normal name is an alias. */
38552#if defined (__stub_pthread_cancel) || defined (__stub___pthread_cancel)
38553choke me
38554#else
38555char (*f) () = pthread_cancel;
38556#endif
38557#ifdef __cplusplus
38558}
38559#endif
38560
38561int
38562main ()
38563{
38564return f != pthread_cancel;
38565 ;
38566 return 0;
38567}
38568_ACEOF
38569rm -f conftest.$ac_objext conftest$ac_exeext
38570if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 38571 (eval $ac_link) 2>conftest.er1
a848cd7e 38572 ac_status=$?
ac1cb8d3
VS
38573 grep -v '^ *+' conftest.er1 >conftest.err
38574 rm -f conftest.er1
38575 cat conftest.err >&5
a848cd7e
SC
38576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38577 (exit $ac_status); } &&
c9a66001 38578 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
38579 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38580 (eval $ac_try) 2>&5
38581 ac_status=$?
38582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38583 (exit $ac_status); }; } &&
38584 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
38585 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38586 (eval $ac_try) 2>&5
38587 ac_status=$?
38588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38589 (exit $ac_status); }; }; then
38590 ac_cv_func_pthread_cancel=yes
38591else
38592 echo "$as_me: failed program was:" >&5
38593sed 's/^/| /' conftest.$ac_ext >&5
38594
38595ac_cv_func_pthread_cancel=no
38596fi
ac1cb8d3
VS
38597rm -f conftest.err conftest.$ac_objext \
38598 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
38599fi
38600echo "$as_me:$LINENO: result: $ac_cv_func_pthread_cancel" >&5
38601echo "${ECHO_T}$ac_cv_func_pthread_cancel" >&6
38602if test $ac_cv_func_pthread_cancel = yes; then
38603 cat >>confdefs.h <<\_ACEOF
38604#define HAVE_PTHREAD_CANCEL 1
38605_ACEOF
38606
38607else
38608 { echo "$as_me:$LINENO: WARNING: wxThread::Kill() will not work properly" >&5
38609echo "$as_me: WARNING: wxThread::Kill() will not work properly" >&2;}
38610fi
38611
38612
abc736fd
MW
38613 echo "$as_me:$LINENO: checking for pthread_attr_setstacksize" >&5
38614echo $ECHO_N "checking for pthread_attr_setstacksize... $ECHO_C" >&6
38615if test "${ac_cv_func_pthread_attr_setstacksize+set}" = set; then
38616 echo $ECHO_N "(cached) $ECHO_C" >&6
38617else
38618 cat >conftest.$ac_ext <<_ACEOF
38619/* confdefs.h. */
38620_ACEOF
38621cat confdefs.h >>conftest.$ac_ext
38622cat >>conftest.$ac_ext <<_ACEOF
38623/* end confdefs.h. */
38624/* Define pthread_attr_setstacksize to an innocuous variant, in case <limits.h> declares pthread_attr_setstacksize.
38625 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38626#define pthread_attr_setstacksize innocuous_pthread_attr_setstacksize
38627
38628/* System header to define __stub macros and hopefully few prototypes,
38629 which can conflict with char pthread_attr_setstacksize (); below.
38630 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38631 <limits.h> exists even on freestanding compilers. */
38632
38633#ifdef __STDC__
38634# include <limits.h>
38635#else
38636# include <assert.h>
38637#endif
38638
38639#undef pthread_attr_setstacksize
38640
38641/* Override any gcc2 internal prototype to avoid an error. */
38642#ifdef __cplusplus
38643extern "C"
38644{
38645#endif
38646/* We use char because int might match the return type of a gcc2
38647 builtin and then its argument prototype would still apply. */
38648char pthread_attr_setstacksize ();
38649/* The GNU C library defines this for functions which it implements
38650 to always fail with ENOSYS. Some functions are actually named
38651 something starting with __ and the normal name is an alias. */
38652#if defined (__stub_pthread_attr_setstacksize) || defined (__stub___pthread_attr_setstacksize)
38653choke me
38654#else
38655char (*f) () = pthread_attr_setstacksize;
38656#endif
38657#ifdef __cplusplus
38658}
38659#endif
38660
38661int
38662main ()
38663{
38664return f != pthread_attr_setstacksize;
38665 ;
38666 return 0;
38667}
38668_ACEOF
38669rm -f conftest.$ac_objext conftest$ac_exeext
38670if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38671 (eval $ac_link) 2>conftest.er1
38672 ac_status=$?
38673 grep -v '^ *+' conftest.er1 >conftest.err
38674 rm -f conftest.er1
38675 cat conftest.err >&5
38676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38677 (exit $ac_status); } &&
c9a66001 38678 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
abc736fd
MW
38679 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38680 (eval $ac_try) 2>&5
38681 ac_status=$?
38682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38683 (exit $ac_status); }; } &&
38684 { ac_try='test -s conftest$ac_exeext'
38685 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38686 (eval $ac_try) 2>&5
38687 ac_status=$?
38688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38689 (exit $ac_status); }; }; then
38690 ac_cv_func_pthread_attr_setstacksize=yes
38691else
38692 echo "$as_me: failed program was:" >&5
38693sed 's/^/| /' conftest.$ac_ext >&5
38694
38695ac_cv_func_pthread_attr_setstacksize=no
38696fi
38697rm -f conftest.err conftest.$ac_objext \
38698 conftest$ac_exeext conftest.$ac_ext
38699fi
38700echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_setstacksize" >&5
38701echo "${ECHO_T}$ac_cv_func_pthread_attr_setstacksize" >&6
38702if test $ac_cv_func_pthread_attr_setstacksize = yes; then
38703 cat >>confdefs.h <<\_ACEOF
38704#define HAVE_PTHREAD_ATTR_SETSTACKSIZE 1
38705_ACEOF
38706
38707fi
38708
a848cd7e
SC
38709
38710
38711 echo "$as_me:$LINENO: checking for pthread_mutexattr_t" >&5
38712echo $ECHO_N "checking for pthread_mutexattr_t... $ECHO_C" >&6
38713if test "${wx_cv_type_pthread_mutexattr_t+set}" = set; then
38714 echo $ECHO_N "(cached) $ECHO_C" >&6
38715else
38716
38717 cat >conftest.$ac_ext <<_ACEOF
38718/* confdefs.h. */
38719_ACEOF
38720cat confdefs.h >>conftest.$ac_ext
38721cat >>conftest.$ac_ext <<_ACEOF
38722/* end confdefs.h. */
38723#include <pthread.h>
38724int
38725main ()
38726{
38727
38728 pthread_mutexattr_t attr;
38729 pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE);
38730
38731 ;
38732 return 0;
38733}
38734_ACEOF
38735rm -f conftest.$ac_objext
38736if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 38737 (eval $ac_compile) 2>conftest.er1
a848cd7e 38738 ac_status=$?
ac1cb8d3
VS
38739 grep -v '^ *+' conftest.er1 >conftest.err
38740 rm -f conftest.er1
38741 cat conftest.err >&5
a848cd7e
SC
38742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38743 (exit $ac_status); } &&
c9a66001 38744 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
38745 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38746 (eval $ac_try) 2>&5
38747 ac_status=$?
38748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38749 (exit $ac_status); }; } &&
38750 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
38751 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38752 (eval $ac_try) 2>&5
38753 ac_status=$?
38754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38755 (exit $ac_status); }; }; then
123dca7d 38756 wx_cv_type_pthread_mutexattr_t=yes
a848cd7e
SC
38757else
38758 echo "$as_me: failed program was:" >&5
38759sed 's/^/| /' conftest.$ac_ext >&5
38760
123dca7d 38761wx_cv_type_pthread_mutexattr_t=no
a848cd7e
SC
38762
38763fi
ac1cb8d3 38764rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
38765
38766fi
38767echo "$as_me:$LINENO: result: $wx_cv_type_pthread_mutexattr_t" >&5
38768echo "${ECHO_T}$wx_cv_type_pthread_mutexattr_t" >&6
38769
38770 if test "$wx_cv_type_pthread_mutexattr_t" = "yes"; then
38771 cat >>confdefs.h <<\_ACEOF
38772#define HAVE_PTHREAD_MUTEXATTR_T 1
38773_ACEOF
38774
123dca7d
VZ
38775
38776 echo "$as_me:$LINENO: checking for pthread_mutexattr_settype declaration" >&5
38777echo $ECHO_N "checking for pthread_mutexattr_settype declaration... $ECHO_C" >&6
38778if test "${wx_cv_func_pthread_mutexattr_settype_decl+set}" = set; then
38779 echo $ECHO_N "(cached) $ECHO_C" >&6
38780else
38781
38782 cat >conftest.$ac_ext <<_ACEOF
38783/* confdefs.h. */
38784_ACEOF
38785cat confdefs.h >>conftest.$ac_ext
38786cat >>conftest.$ac_ext <<_ACEOF
38787/* end confdefs.h. */
38788#include <pthread.h>
38789int
38790main ()
38791{
38792
38793 pthread_mutexattr_t attr;
38794 pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE);
38795
38796 ;
38797 return 0;
38798}
38799_ACEOF
38800rm -f conftest.$ac_objext
38801if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38802 (eval $ac_compile) 2>conftest.er1
38803 ac_status=$?
38804 grep -v '^ *+' conftest.er1 >conftest.err
38805 rm -f conftest.er1
38806 cat conftest.err >&5
38807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38808 (exit $ac_status); } &&
c9a66001 38809 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
123dca7d
VZ
38810 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38811 (eval $ac_try) 2>&5
38812 ac_status=$?
38813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38814 (exit $ac_status); }; } &&
38815 { ac_try='test -s conftest.$ac_objext'
38816 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38817 (eval $ac_try) 2>&5
38818 ac_status=$?
38819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38820 (exit $ac_status); }; }; then
38821 wx_cv_func_pthread_mutexattr_settype_decl=yes
38822else
38823 echo "$as_me: failed program was:" >&5
38824sed 's/^/| /' conftest.$ac_ext >&5
38825
38826wx_cv_func_pthread_mutexattr_settype_decl=no
38827
38828fi
38829rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38830
38831fi
38832echo "$as_me:$LINENO: result: $wx_cv_func_pthread_mutexattr_settype_decl" >&5
38833echo "${ECHO_T}$wx_cv_func_pthread_mutexattr_settype_decl" >&6
38834 if test "$wx_cv_func_pthread_mutexattr_settype_decl" = "yes"; then
38835 cat >>confdefs.h <<\_ACEOF
38836#define HAVE_PTHREAD_MUTEXATTR_SETTYPE_DECL 1
38837_ACEOF
38838
38839 fi
a848cd7e
SC
38840 else
38841 echo "$as_me:$LINENO: checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER" >&5
38842echo $ECHO_N "checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER... $ECHO_C" >&6
38843if test "${wx_cv_type_pthread_rec_mutex_init+set}" = set; then
38844 echo $ECHO_N "(cached) $ECHO_C" >&6
38845else
38846
38847 cat >conftest.$ac_ext <<_ACEOF
38848/* confdefs.h. */
38849_ACEOF
38850cat confdefs.h >>conftest.$ac_ext
38851cat >>conftest.$ac_ext <<_ACEOF
38852/* end confdefs.h. */
38853#include <pthread.h>
38854int
38855main ()
38856{
38857
38858 pthread_mutex_t attr = PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP;
38859
38860 ;
38861 return 0;
38862}
38863_ACEOF
38864rm -f conftest.$ac_objext
38865if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 38866 (eval $ac_compile) 2>conftest.er1
a848cd7e 38867 ac_status=$?
ac1cb8d3
VS
38868 grep -v '^ *+' conftest.er1 >conftest.err
38869 rm -f conftest.er1
38870 cat conftest.err >&5
a848cd7e
SC
38871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38872 (exit $ac_status); } &&
c9a66001 38873 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
38874 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38875 (eval $ac_try) 2>&5
38876 ac_status=$?
38877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38878 (exit $ac_status); }; } &&
38879 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
38880 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38881 (eval $ac_try) 2>&5
38882 ac_status=$?
38883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38884 (exit $ac_status); }; }; then
38885
38886 wx_cv_type_pthread_rec_mutex_init=yes
38887
38888else
38889 echo "$as_me: failed program was:" >&5
38890sed 's/^/| /' conftest.$ac_ext >&5
38891
38892
38893 wx_cv_type_pthread_rec_mutex_init=no
38894
38895
38896fi
ac1cb8d3 38897rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
38898
38899fi
38900echo "$as_me:$LINENO: result: $wx_cv_type_pthread_rec_mutex_init" >&5
38901echo "${ECHO_T}$wx_cv_type_pthread_rec_mutex_init" >&6
38902 if test "$wx_cv_type_pthread_rec_mutex_init" = "yes"; then
38903 cat >>confdefs.h <<\_ACEOF
38904#define HAVE_PTHREAD_RECURSIVE_MUTEX_INITIALIZER 1
38905_ACEOF
38906
38907 else
38908 { echo "$as_me:$LINENO: WARNING: wxMutex won't be recursive on this platform" >&5
38909echo "$as_me: WARNING: wxMutex won't be recursive on this platform" >&2;}
38910 fi
38911 fi
38912 fi
38913
38914else
38915 if test "$wxUSE_THREADS" = "yes" ; then
38916 case "${host}" in
38917 *-*-mingw32* )
38918 echo "$as_me:$LINENO: checking if compiler supports -mthreads" >&5
38919echo $ECHO_N "checking if compiler supports -mthreads... $ECHO_C" >&6
38920if test "${wx_cv_cflags_mthread+set}" = set; then
38921 echo $ECHO_N "(cached) $ECHO_C" >&6
38922else
38923
e56f4f9e
VZ
38924 CXXFLAGS_OLD="$CXXFLAGS"
38925 CXXFLAGS="-mthreads $CXXFLAGS"
a848cd7e
SC
38926 cat >conftest.$ac_ext <<_ACEOF
38927/* confdefs.h. */
38928_ACEOF
38929cat confdefs.h >>conftest.$ac_ext
38930cat >>conftest.$ac_ext <<_ACEOF
38931/* end confdefs.h. */
38932
38933int
38934main ()
38935{
38936
38937 ;
38938 return 0;
38939}
38940_ACEOF
38941rm -f conftest.$ac_objext
38942if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 38943 (eval $ac_compile) 2>conftest.er1
a848cd7e 38944 ac_status=$?
ac1cb8d3
VS
38945 grep -v '^ *+' conftest.er1 >conftest.err
38946 rm -f conftest.er1
38947 cat conftest.err >&5
a848cd7e
SC
38948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38949 (exit $ac_status); } &&
c9a66001 38950 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
38951 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38952 (eval $ac_try) 2>&5
38953 ac_status=$?
38954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38955 (exit $ac_status); }; } &&
38956 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
38957 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38958 (eval $ac_try) 2>&5
38959 ac_status=$?
38960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38961 (exit $ac_status); }; }; then
38962 wx_cv_cflags_mthread=yes
38963else
38964 echo "$as_me: failed program was:" >&5
38965sed 's/^/| /' conftest.$ac_ext >&5
38966
38967wx_cv_cflags_mthread=no
38968
38969fi
ac1cb8d3 38970rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
38971
38972
38973fi
38974echo "$as_me:$LINENO: result: $wx_cv_cflags_mthread" >&5
38975echo "${ECHO_T}$wx_cv_cflags_mthread" >&6
38976
38977 if test "$wx_cv_cflags_mthread" = "yes"; then
e56f4f9e 38978 WXCONFIG_CXXFLAGS="$WXCONFIG_CXXFLAGS -mthreads"
a848cd7e
SC
38979 LDFLAGS="$LDFLAGS -mthreads"
38980 else
e56f4f9e 38981 CXXFLAGS="$CXXFLAGS_OLD"
a848cd7e
SC
38982 fi
38983 ;;
38984 *-pc-os2*emx )
5ff751d6
VZ
38985 WXCONFIG_CFLAGS="$WXCONFIG_CFLAGS -Zmt -D__ST_MT_ERRNO__"
38986 WXCONFIG_CXXFLAGS="$WXCONFIG_CXXFLAGS -Zmt -D__ST_MT_ERRNO__"
a848cd7e
SC
38987 LDFLAGS="$LDFLAGS -Zmt"
38988 ;;
38989 esac
38990 fi
38991fi
38992
004ee6da
RL
38993echo "$as_me:$LINENO: checking for localtime_r" >&5
38994echo $ECHO_N "checking for localtime_r... $ECHO_C" >&6
38995if test "${ac_cv_func_localtime_r+set}" = set; then
a848cd7e
SC
38996 echo $ECHO_N "(cached) $ECHO_C" >&6
38997else
38998 cat >conftest.$ac_ext <<_ACEOF
38999/* confdefs.h. */
39000_ACEOF
39001cat confdefs.h >>conftest.$ac_ext
39002cat >>conftest.$ac_ext <<_ACEOF
39003/* end confdefs.h. */
004ee6da 39004/* Define localtime_r to an innocuous variant, in case <limits.h> declares localtime_r.
ac1cb8d3 39005 For example, HP-UX 11i <limits.h> declares gettimeofday. */
004ee6da 39006#define localtime_r innocuous_localtime_r
ac1cb8d3 39007
a848cd7e 39008/* System header to define __stub macros and hopefully few prototypes,
004ee6da 39009 which can conflict with char localtime_r (); below.
a848cd7e
SC
39010 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39011 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 39012
a848cd7e
SC
39013#ifdef __STDC__
39014# include <limits.h>
39015#else
39016# include <assert.h>
39017#endif
ac1cb8d3 39018
004ee6da 39019#undef localtime_r
ac1cb8d3 39020
a848cd7e
SC
39021/* Override any gcc2 internal prototype to avoid an error. */
39022#ifdef __cplusplus
39023extern "C"
39024{
39025#endif
39026/* We use char because int might match the return type of a gcc2
39027 builtin and then its argument prototype would still apply. */
004ee6da 39028char localtime_r ();
a848cd7e
SC
39029/* The GNU C library defines this for functions which it implements
39030 to always fail with ENOSYS. Some functions are actually named
39031 something starting with __ and the normal name is an alias. */
004ee6da 39032#if defined (__stub_localtime_r) || defined (__stub___localtime_r)
a848cd7e
SC
39033choke me
39034#else
004ee6da 39035char (*f) () = localtime_r;
a848cd7e
SC
39036#endif
39037#ifdef __cplusplus
39038}
39039#endif
39040
39041int
39042main ()
39043{
004ee6da
RL
39044return f != localtime_r;
39045 ;
39046 return 0;
39047}
39048_ACEOF
39049rm -f conftest.$ac_objext conftest$ac_exeext
39050if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39051 (eval $ac_link) 2>conftest.er1
39052 ac_status=$?
39053 grep -v '^ *+' conftest.er1 >conftest.err
39054 rm -f conftest.er1
39055 cat conftest.err >&5
39056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39057 (exit $ac_status); } &&
c9a66001 39058 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
004ee6da
RL
39059 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39060 (eval $ac_try) 2>&5
39061 ac_status=$?
39062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39063 (exit $ac_status); }; } &&
39064 { ac_try='test -s conftest$ac_exeext'
39065 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39066 (eval $ac_try) 2>&5
39067 ac_status=$?
39068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39069 (exit $ac_status); }; }; then
39070 ac_cv_func_localtime_r=yes
39071else
39072 echo "$as_me: failed program was:" >&5
39073sed 's/^/| /' conftest.$ac_ext >&5
39074
39075ac_cv_func_localtime_r=no
39076fi
39077rm -f conftest.err conftest.$ac_objext \
39078 conftest$ac_exeext conftest.$ac_ext
39079fi
39080echo "$as_me:$LINENO: result: $ac_cv_func_localtime_r" >&5
39081echo "${ECHO_T}$ac_cv_func_localtime_r" >&6
39082if test $ac_cv_func_localtime_r = yes; then
39083 cat >>confdefs.h <<\_ACEOF
39084#define HAVE_LOCALTIME_R 1
39085_ACEOF
39086
39087fi
39088
39089echo "$as_me:$LINENO: checking for gmtime_r" >&5
39090echo $ECHO_N "checking for gmtime_r... $ECHO_C" >&6
39091if test "${ac_cv_func_gmtime_r+set}" = set; then
39092 echo $ECHO_N "(cached) $ECHO_C" >&6
39093else
39094 cat >conftest.$ac_ext <<_ACEOF
39095/* confdefs.h. */
39096_ACEOF
39097cat confdefs.h >>conftest.$ac_ext
39098cat >>conftest.$ac_ext <<_ACEOF
39099/* end confdefs.h. */
39100/* Define gmtime_r to an innocuous variant, in case <limits.h> declares gmtime_r.
39101 For example, HP-UX 11i <limits.h> declares gettimeofday. */
39102#define gmtime_r innocuous_gmtime_r
39103
39104/* System header to define __stub macros and hopefully few prototypes,
39105 which can conflict with char gmtime_r (); below.
39106 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39107 <limits.h> exists even on freestanding compilers. */
39108
39109#ifdef __STDC__
39110# include <limits.h>
39111#else
39112# include <assert.h>
39113#endif
39114
39115#undef gmtime_r
39116
39117/* Override any gcc2 internal prototype to avoid an error. */
39118#ifdef __cplusplus
39119extern "C"
39120{
39121#endif
39122/* We use char because int might match the return type of a gcc2
39123 builtin and then its argument prototype would still apply. */
39124char gmtime_r ();
39125/* The GNU C library defines this for functions which it implements
39126 to always fail with ENOSYS. Some functions are actually named
39127 something starting with __ and the normal name is an alias. */
39128#if defined (__stub_gmtime_r) || defined (__stub___gmtime_r)
39129choke me
39130#else
39131char (*f) () = gmtime_r;
39132#endif
39133#ifdef __cplusplus
39134}
39135#endif
39136
39137int
39138main ()
39139{
39140return f != gmtime_r;
39141 ;
39142 return 0;
39143}
39144_ACEOF
39145rm -f conftest.$ac_objext conftest$ac_exeext
39146if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39147 (eval $ac_link) 2>conftest.er1
39148 ac_status=$?
39149 grep -v '^ *+' conftest.er1 >conftest.err
39150 rm -f conftest.er1
39151 cat conftest.err >&5
39152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39153 (exit $ac_status); } &&
c9a66001 39154 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
004ee6da
RL
39155 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39156 (eval $ac_try) 2>&5
39157 ac_status=$?
39158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39159 (exit $ac_status); }; } &&
39160 { ac_try='test -s conftest$ac_exeext'
39161 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39162 (eval $ac_try) 2>&5
39163 ac_status=$?
39164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39165 (exit $ac_status); }; }; then
39166 ac_cv_func_gmtime_r=yes
39167else
39168 echo "$as_me: failed program was:" >&5
39169sed 's/^/| /' conftest.$ac_ext >&5
39170
39171ac_cv_func_gmtime_r=no
39172fi
39173rm -f conftest.err conftest.$ac_objext \
39174 conftest$ac_exeext conftest.$ac_ext
39175fi
39176echo "$as_me:$LINENO: result: $ac_cv_func_gmtime_r" >&5
39177echo "${ECHO_T}$ac_cv_func_gmtime_r" >&6
39178if test $ac_cv_func_gmtime_r = yes; then
39179 cat >>confdefs.h <<\_ACEOF
39180#define HAVE_GMTIME_R 1
39181_ACEOF
39182
39183fi
39184
39185echo "$as_me:$LINENO: checking for readdir_r" >&5
39186echo $ECHO_N "checking for readdir_r... $ECHO_C" >&6
39187if test "${ac_cv_func_readdir_r+set}" = set; then
39188 echo $ECHO_N "(cached) $ECHO_C" >&6
39189else
39190 cat >conftest.$ac_ext <<_ACEOF
39191/* confdefs.h. */
39192_ACEOF
39193cat confdefs.h >>conftest.$ac_ext
39194cat >>conftest.$ac_ext <<_ACEOF
39195/* end confdefs.h. */
39196/* Define readdir_r to an innocuous variant, in case <limits.h> declares readdir_r.
39197 For example, HP-UX 11i <limits.h> declares gettimeofday. */
39198#define readdir_r innocuous_readdir_r
39199
39200/* System header to define __stub macros and hopefully few prototypes,
39201 which can conflict with char readdir_r (); below.
39202 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39203 <limits.h> exists even on freestanding compilers. */
39204
39205#ifdef __STDC__
39206# include <limits.h>
39207#else
39208# include <assert.h>
39209#endif
39210
39211#undef readdir_r
39212
39213/* Override any gcc2 internal prototype to avoid an error. */
39214#ifdef __cplusplus
39215extern "C"
39216{
39217#endif
39218/* We use char because int might match the return type of a gcc2
39219 builtin and then its argument prototype would still apply. */
39220char readdir_r ();
39221/* The GNU C library defines this for functions which it implements
39222 to always fail with ENOSYS. Some functions are actually named
39223 something starting with __ and the normal name is an alias. */
39224#if defined (__stub_readdir_r) || defined (__stub___readdir_r)
39225choke me
39226#else
39227char (*f) () = readdir_r;
39228#endif
39229#ifdef __cplusplus
39230}
39231#endif
39232
39233int
39234main ()
39235{
39236return f != readdir_r;
39237 ;
39238 return 0;
39239}
39240_ACEOF
39241rm -f conftest.$ac_objext conftest$ac_exeext
39242if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39243 (eval $ac_link) 2>conftest.er1
39244 ac_status=$?
39245 grep -v '^ *+' conftest.er1 >conftest.err
39246 rm -f conftest.er1
39247 cat conftest.err >&5
39248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39249 (exit $ac_status); } &&
c9a66001 39250 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
004ee6da
RL
39251 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39252 (eval $ac_try) 2>&5
39253 ac_status=$?
39254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39255 (exit $ac_status); }; } &&
39256 { ac_try='test -s conftest$ac_exeext'
39257 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39258 (eval $ac_try) 2>&5
39259 ac_status=$?
39260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39261 (exit $ac_status); }; }; then
39262 ac_cv_func_readdir_r=yes
39263else
39264 echo "$as_me: failed program was:" >&5
39265sed 's/^/| /' conftest.$ac_ext >&5
39266
39267ac_cv_func_readdir_r=no
39268fi
39269rm -f conftest.err conftest.$ac_objext \
39270 conftest$ac_exeext conftest.$ac_ext
39271fi
39272echo "$as_me:$LINENO: result: $ac_cv_func_readdir_r" >&5
39273echo "${ECHO_T}$ac_cv_func_readdir_r" >&6
39274if test $ac_cv_func_readdir_r = yes; then
39275 cat >>confdefs.h <<\_ACEOF
39276#define HAVE_READDIR_R 1
39277_ACEOF
39278
39279fi
39280
004ee6da 39281
004ee6da
RL
39282
39283
39284 ac_ext=c
39285ac_cpp='$CPP $CPPFLAGS'
39286ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
39287ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
39288ac_compiler_gnu=$ac_cv_c_compiler_gnu
39289
39290 echo "$as_me:$LINENO: checking how many arguments gethostbyname_r() takes" >&5
39291echo $ECHO_N "checking how many arguments gethostbyname_r() takes... $ECHO_C" >&6
39292
39293 if test "${ac_cv_func_which_gethostbyname_r+set}" = set; then
39294 echo $ECHO_N "(cached) $ECHO_C" >&6
39295else
39296
39297
2f6c5bb5 39298################################################################
004ee6da
RL
39299
39300ac_cv_func_which_gethostbyname_r=unknown
39301
39302#
39303# ONE ARGUMENT (sanity check)
39304#
39305
39306# This should fail, as there is no variant of gethostbyname_r() that takes
39307# a single argument. If it actually compiles, then we can assume that
39308# netdb.h is not declaring the function, and the compiler is thereby
39309# assuming an implicit prototype. In which case, we're out of luck.
39310#
39311cat >conftest.$ac_ext <<_ACEOF
39312/* confdefs.h. */
39313_ACEOF
39314cat confdefs.h >>conftest.$ac_ext
39315cat >>conftest.$ac_ext <<_ACEOF
39316/* end confdefs.h. */
39317#include <netdb.h>
39318int
39319main ()
39320{
39321
39322 char *name = "www.gnu.org";
39323 (void)gethostbyname_r(name) /* ; */
39324
39325 ;
39326 return 0;
39327}
39328_ACEOF
39329rm -f conftest.$ac_objext
39330if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39331 (eval $ac_compile) 2>conftest.er1
39332 ac_status=$?
39333 grep -v '^ *+' conftest.er1 >conftest.err
39334 rm -f conftest.er1
39335 cat conftest.err >&5
39336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39337 (exit $ac_status); } &&
c9a66001 39338 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
004ee6da
RL
39339 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39340 (eval $ac_try) 2>&5
39341 ac_status=$?
39342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39343 (exit $ac_status); }; } &&
39344 { ac_try='test -s conftest.$ac_objext'
39345 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39346 (eval $ac_try) 2>&5
39347 ac_status=$?
39348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39349 (exit $ac_status); }; }; then
39350 ac_cv_func_which_gethostbyname_r=no
39351else
39352 echo "$as_me: failed program was:" >&5
39353sed 's/^/| /' conftest.$ac_ext >&5
39354
39355fi
39356rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39357
39358#
39359# SIX ARGUMENTS
39360# (e.g. Linux)
39361#
39362
39363if test "$ac_cv_func_which_gethostbyname_r" = "unknown"; then
39364
39365cat >conftest.$ac_ext <<_ACEOF
39366/* confdefs.h. */
39367_ACEOF
39368cat confdefs.h >>conftest.$ac_ext
39369cat >>conftest.$ac_ext <<_ACEOF
39370/* end confdefs.h. */
39371#include <netdb.h>
39372int
39373main ()
39374{
39375
39376 char *name = "www.gnu.org";
39377 struct hostent ret, *retp;
39378 char buf[1024];
39379 int buflen = 1024;
39380 int my_h_errno;
39381 (void)gethostbyname_r(name, &ret, buf, buflen, &retp, &my_h_errno) /* ; */
39382
39383 ;
39384 return 0;
39385}
39386_ACEOF
39387rm -f conftest.$ac_objext
39388if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39389 (eval $ac_compile) 2>conftest.er1
39390 ac_status=$?
39391 grep -v '^ *+' conftest.er1 >conftest.err
39392 rm -f conftest.er1
39393 cat conftest.err >&5
39394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39395 (exit $ac_status); } &&
c9a66001 39396 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
004ee6da
RL
39397 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39398 (eval $ac_try) 2>&5
39399 ac_status=$?
39400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39401 (exit $ac_status); }; } &&
39402 { ac_try='test -s conftest.$ac_objext'
39403 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39404 (eval $ac_try) 2>&5
39405 ac_status=$?
39406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39407 (exit $ac_status); }; }; then
39408 ac_cv_func_which_gethostbyname_r=six
39409else
39410 echo "$as_me: failed program was:" >&5
39411sed 's/^/| /' conftest.$ac_ext >&5
39412
39413fi
39414rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39415
39416fi
39417
39418#
39419# FIVE ARGUMENTS
39420# (e.g. Solaris)
39421#
39422
39423if test "$ac_cv_func_which_gethostbyname_r" = "unknown"; then
39424
39425cat >conftest.$ac_ext <<_ACEOF
39426/* confdefs.h. */
39427_ACEOF
39428cat confdefs.h >>conftest.$ac_ext
39429cat >>conftest.$ac_ext <<_ACEOF
39430/* end confdefs.h. */
39431#include <netdb.h>
39432int
39433main ()
39434{
39435
39436 char *name = "www.gnu.org";
39437 struct hostent ret;
39438 char buf[1024];
39439 int buflen = 1024;
39440 int my_h_errno;
39441 (void)gethostbyname_r(name, &ret, buf, buflen, &my_h_errno) /* ; */
39442
39443 ;
39444 return 0;
39445}
39446_ACEOF
39447rm -f conftest.$ac_objext
39448if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39449 (eval $ac_compile) 2>conftest.er1
39450 ac_status=$?
39451 grep -v '^ *+' conftest.er1 >conftest.err
39452 rm -f conftest.er1
39453 cat conftest.err >&5
39454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39455 (exit $ac_status); } &&
c9a66001 39456 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
004ee6da
RL
39457 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39458 (eval $ac_try) 2>&5
39459 ac_status=$?
39460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39461 (exit $ac_status); }; } &&
39462 { ac_try='test -s conftest.$ac_objext'
39463 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39464 (eval $ac_try) 2>&5
39465 ac_status=$?
39466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39467 (exit $ac_status); }; }; then
39468 ac_cv_func_which_gethostbyname_r=five
39469else
39470 echo "$as_me: failed program was:" >&5
39471sed 's/^/| /' conftest.$ac_ext >&5
39472
39473fi
39474rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39475
39476fi
39477
39478#
39479# THREE ARGUMENTS
39480# (e.g. AIX, HP-UX, Tru64)
39481#
39482
39483if test "$ac_cv_func_which_gethostbyname_r" = "unknown"; then
39484
39485cat >conftest.$ac_ext <<_ACEOF
39486/* confdefs.h. */
39487_ACEOF
39488cat confdefs.h >>conftest.$ac_ext
39489cat >>conftest.$ac_ext <<_ACEOF
39490/* end confdefs.h. */
39491#include <netdb.h>
39492int
39493main ()
39494{
39495
39496 char *name = "www.gnu.org";
39497 struct hostent ret;
39498 struct hostent_data data;
39499 (void)gethostbyname_r(name, &ret, &data) /* ; */
39500
39501 ;
39502 return 0;
39503}
39504_ACEOF
39505rm -f conftest.$ac_objext
39506if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39507 (eval $ac_compile) 2>conftest.er1
39508 ac_status=$?
39509 grep -v '^ *+' conftest.er1 >conftest.err
39510 rm -f conftest.er1
39511 cat conftest.err >&5
39512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39513 (exit $ac_status); } &&
c9a66001 39514 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
004ee6da
RL
39515 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39516 (eval $ac_try) 2>&5
39517 ac_status=$?
39518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39519 (exit $ac_status); }; } &&
39520 { ac_try='test -s conftest.$ac_objext'
39521 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39522 (eval $ac_try) 2>&5
39523 ac_status=$?
39524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39525 (exit $ac_status); }; }; then
39526 ac_cv_func_which_gethostbyname_r=three
39527else
39528 echo "$as_me: failed program was:" >&5
39529sed 's/^/| /' conftest.$ac_ext >&5
39530
39531fi
39532rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39533
39534fi
39535
2f6c5bb5 39536################################################################
004ee6da
RL
39537
39538
39539fi
39540
39541case "$ac_cv_func_which_gethostbyname_r" in
39542 three)
39543 echo "$as_me:$LINENO: result: three" >&5
39544echo "${ECHO_T}three" >&6
39545 cat >>confdefs.h <<\_ACEOF
39546#define HAVE_FUNC_GETHOSTBYNAME_R_3 1
39547_ACEOF
39548
39549 ;;
39550
39551 five)
39552 echo "$as_me:$LINENO: result: five" >&5
39553echo "${ECHO_T}five" >&6
39554 cat >>confdefs.h <<\_ACEOF
39555#define HAVE_FUNC_GETHOSTBYNAME_R_5 1
39556_ACEOF
39557
39558 ;;
39559
39560 six)
39561 echo "$as_me:$LINENO: result: six" >&5
39562echo "${ECHO_T}six" >&6
39563 cat >>confdefs.h <<\_ACEOF
39564#define HAVE_FUNC_GETHOSTBYNAME_R_6 1
39565_ACEOF
39566
39567 ;;
39568
39569 no)
39570 echo "$as_me:$LINENO: result: cannot find function declaration in netdb.h" >&5
39571echo "${ECHO_T}cannot find function declaration in netdb.h" >&6
39572 ;;
39573
39574 unknown)
39575 echo "$as_me:$LINENO: result: can't tell" >&5
39576echo "${ECHO_T}can't tell" >&6
39577 ;;
39578
39579 *)
39580 { { echo "$as_me:$LINENO: error: internal error" >&5
39581echo "$as_me: error: internal error" >&2;}
39582 { (exit 1); exit 1; }; }
39583 ;;
39584esac
39585
5ec3bc43
JS
39586ac_ext=cc
39587ac_cpp='$CXXCPP $CPPFLAGS'
39588ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
39589ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
39590ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
004ee6da
RL
39591
39592
39593
39594 if test "x$ac_cv_func_which_gethostbyname_r" = "xno" -o \
39595 "x$ac_cv_func_which_gethostbyname_r" = "xunknown" ; then
39596 echo "$as_me:$LINENO: checking for gethostbyname" >&5
39597echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
39598if test "${ac_cv_func_gethostbyname+set}" = set; then
39599 echo $ECHO_N "(cached) $ECHO_C" >&6
39600else
39601 cat >conftest.$ac_ext <<_ACEOF
39602/* confdefs.h. */
39603_ACEOF
39604cat confdefs.h >>conftest.$ac_ext
39605cat >>conftest.$ac_ext <<_ACEOF
39606/* end confdefs.h. */
39607/* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
39608 For example, HP-UX 11i <limits.h> declares gettimeofday. */
39609#define gethostbyname innocuous_gethostbyname
39610
39611/* System header to define __stub macros and hopefully few prototypes,
39612 which can conflict with char gethostbyname (); below.
39613 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39614 <limits.h> exists even on freestanding compilers. */
39615
39616#ifdef __STDC__
39617# include <limits.h>
39618#else
39619# include <assert.h>
39620#endif
39621
39622#undef gethostbyname
39623
39624/* Override any gcc2 internal prototype to avoid an error. */
39625#ifdef __cplusplus
39626extern "C"
39627{
39628#endif
39629/* We use char because int might match the return type of a gcc2
39630 builtin and then its argument prototype would still apply. */
39631char gethostbyname ();
39632/* The GNU C library defines this for functions which it implements
39633 to always fail with ENOSYS. Some functions are actually named
39634 something starting with __ and the normal name is an alias. */
39635#if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
39636choke me
39637#else
39638char (*f) () = gethostbyname;
39639#endif
39640#ifdef __cplusplus
39641}
39642#endif
39643
39644int
39645main ()
39646{
39647return f != gethostbyname;
39648 ;
39649 return 0;
39650}
39651_ACEOF
39652rm -f conftest.$ac_objext conftest$ac_exeext
39653if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39654 (eval $ac_link) 2>conftest.er1
39655 ac_status=$?
39656 grep -v '^ *+' conftest.er1 >conftest.err
39657 rm -f conftest.er1
39658 cat conftest.err >&5
39659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39660 (exit $ac_status); } &&
c9a66001 39661 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
004ee6da
RL
39662 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39663 (eval $ac_try) 2>&5
39664 ac_status=$?
39665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39666 (exit $ac_status); }; } &&
39667 { ac_try='test -s conftest$ac_exeext'
39668 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39669 (eval $ac_try) 2>&5
39670 ac_status=$?
39671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39672 (exit $ac_status); }; }; then
39673 ac_cv_func_gethostbyname=yes
39674else
39675 echo "$as_me: failed program was:" >&5
39676sed 's/^/| /' conftest.$ac_ext >&5
39677
39678ac_cv_func_gethostbyname=no
39679fi
39680rm -f conftest.err conftest.$ac_objext \
39681 conftest$ac_exeext conftest.$ac_ext
39682fi
39683echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
39684echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
39685if test $ac_cv_func_gethostbyname = yes; then
39686 cat >>confdefs.h <<\_ACEOF
39687#define HAVE_GETHOSTBYNAME 1
39688_ACEOF
39689
39690fi
39691
39692 fi
39693 echo "$as_me:$LINENO: checking for getservbyname_r" >&5
39694echo $ECHO_N "checking for getservbyname_r... $ECHO_C" >&6
004ee6da
RL
39695if test "${ac_cv_func_getservbyname_r+set}" = set; then
39696 echo $ECHO_N "(cached) $ECHO_C" >&6
39697else
39698 cat >conftest.$ac_ext <<_ACEOF
39699/* confdefs.h. */
39700_ACEOF
39701cat confdefs.h >>conftest.$ac_ext
39702cat >>conftest.$ac_ext <<_ACEOF
39703/* end confdefs.h. */
39704/* Define getservbyname_r to an innocuous variant, in case <limits.h> declares getservbyname_r.
39705 For example, HP-UX 11i <limits.h> declares gettimeofday. */
39706#define getservbyname_r innocuous_getservbyname_r
39707
39708/* System header to define __stub macros and hopefully few prototypes,
39709 which can conflict with char getservbyname_r (); below.
39710 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39711 <limits.h> exists even on freestanding compilers. */
39712
39713#ifdef __STDC__
39714# include <limits.h>
39715#else
39716# include <assert.h>
39717#endif
39718
39719#undef getservbyname_r
39720
39721/* Override any gcc2 internal prototype to avoid an error. */
39722#ifdef __cplusplus
39723extern "C"
39724{
39725#endif
39726/* We use char because int might match the return type of a gcc2
39727 builtin and then its argument prototype would still apply. */
39728char getservbyname_r ();
39729/* The GNU C library defines this for functions which it implements
39730 to always fail with ENOSYS. Some functions are actually named
39731 something starting with __ and the normal name is an alias. */
39732#if defined (__stub_getservbyname_r) || defined (__stub___getservbyname_r)
39733choke me
39734#else
39735char (*f) () = getservbyname_r;
39736#endif
39737#ifdef __cplusplus
39738}
39739#endif
39740
39741int
39742main ()
39743{
39744return f != getservbyname_r;
39745 ;
39746 return 0;
39747}
39748_ACEOF
39749rm -f conftest.$ac_objext conftest$ac_exeext
39750if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39751 (eval $ac_link) 2>conftest.er1
39752 ac_status=$?
39753 grep -v '^ *+' conftest.er1 >conftest.err
39754 rm -f conftest.er1
39755 cat conftest.err >&5
39756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39757 (exit $ac_status); } &&
c9a66001 39758 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
004ee6da
RL
39759 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39760 (eval $ac_try) 2>&5
39761 ac_status=$?
39762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39763 (exit $ac_status); }; } &&
39764 { ac_try='test -s conftest$ac_exeext'
39765 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39766 (eval $ac_try) 2>&5
39767 ac_status=$?
39768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39769 (exit $ac_status); }; }; then
39770 ac_cv_func_getservbyname_r=yes
39771else
39772 echo "$as_me: failed program was:" >&5
39773sed 's/^/| /' conftest.$ac_ext >&5
39774
39775ac_cv_func_getservbyname_r=no
39776fi
39777rm -f conftest.err conftest.$ac_objext \
39778 conftest$ac_exeext conftest.$ac_ext
39779fi
39780echo "$as_me:$LINENO: result: $ac_cv_func_getservbyname_r" >&5
39781echo "${ECHO_T}$ac_cv_func_getservbyname_r" >&6
39782if test $ac_cv_func_getservbyname_r = yes; then
99879bbf 39783 cat >conftest.$ac_ext <<_ACEOF
004ee6da
RL
39784/* confdefs.h. */
39785_ACEOF
39786cat confdefs.h >>conftest.$ac_ext
39787cat >>conftest.$ac_ext <<_ACEOF
39788/* end confdefs.h. */
99879bbf 39789#include <netdb.h>
004ee6da
RL
39790int
39791main ()
39792{
39793
99879bbf
MR
39794 char *name;
39795 char *proto;
39796 struct servent *se;
39797 struct servent_data data;
39798 (void) getservbyname_r(name, proto, se, &data);
004ee6da
RL
39799
39800 ;
39801 return 0;
39802}
39803_ACEOF
39804rm -f conftest.$ac_objext
39805if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39806 (eval $ac_compile) 2>conftest.er1
39807 ac_status=$?
39808 grep -v '^ *+' conftest.er1 >conftest.err
39809 rm -f conftest.er1
39810 cat conftest.err >&5
39811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39812 (exit $ac_status); } &&
c9a66001 39813 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
004ee6da
RL
39814 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39815 (eval $ac_try) 2>&5
39816 ac_status=$?
39817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39818 (exit $ac_status); }; } &&
39819 { ac_try='test -s conftest.$ac_objext'
39820 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39821 (eval $ac_try) 2>&5
39822 ac_status=$?
39823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39824 (exit $ac_status); }; }; then
39825 ac_cv_func_which_getservbyname_r=four
39826else
39827 echo "$as_me: failed program was:" >&5
39828sed 's/^/| /' conftest.$ac_ext >&5
39829
99879bbf 39830cat >conftest.$ac_ext <<_ACEOF
004ee6da
RL
39831/* confdefs.h. */
39832_ACEOF
39833cat confdefs.h >>conftest.$ac_ext
39834cat >>conftest.$ac_ext <<_ACEOF
39835/* end confdefs.h. */
99879bbf 39836#include <netdb.h>
004ee6da
RL
39837int
39838main ()
39839{
39840
99879bbf
MR
39841 char *name;
39842 char *proto;
39843 struct servent *se, *res;
39844 char buffer[2048];
39845 int buflen = 2048;
39846 (void) getservbyname_r(name, proto, se, buffer, buflen, &res);
004ee6da
RL
39847
39848 ;
39849 return 0;
39850}
39851_ACEOF
39852rm -f conftest.$ac_objext
39853if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39854 (eval $ac_compile) 2>conftest.er1
39855 ac_status=$?
39856 grep -v '^ *+' conftest.er1 >conftest.err
39857 rm -f conftest.er1
39858 cat conftest.err >&5
39859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39860 (exit $ac_status); } &&
c9a66001 39861 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
004ee6da
RL
39862 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39863 (eval $ac_try) 2>&5
39864 ac_status=$?
39865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39866 (exit $ac_status); }; } &&
39867 { ac_try='test -s conftest.$ac_objext'
39868 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39869 (eval $ac_try) 2>&5
39870 ac_status=$?
39871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39872 (exit $ac_status); }; }; then
39873 ac_cv_func_which_getservbyname_r=six
39874else
39875 echo "$as_me: failed program was:" >&5
39876sed 's/^/| /' conftest.$ac_ext >&5
39877
99879bbf 39878cat >conftest.$ac_ext <<_ACEOF
004ee6da
RL
39879/* confdefs.h. */
39880_ACEOF
39881cat confdefs.h >>conftest.$ac_ext
39882cat >>conftest.$ac_ext <<_ACEOF
39883/* end confdefs.h. */
99879bbf 39884#include <netdb.h>
004ee6da
RL
39885int
39886main ()
39887{
39888
99879bbf
MR
39889 char *name;
39890 char *proto;
39891 struct servent *se;
39892 char buffer[2048];
39893 int buflen = 2048;
39894 (void) getservbyname_r(name, proto, se, buffer, buflen)
004ee6da
RL
39895
39896 ;
39897 return 0;
39898}
39899_ACEOF
39900rm -f conftest.$ac_objext
39901if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39902 (eval $ac_compile) 2>conftest.er1
39903 ac_status=$?
39904 grep -v '^ *+' conftest.er1 >conftest.err
39905 rm -f conftest.er1
39906 cat conftest.err >&5
39907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39908 (exit $ac_status); } &&
c9a66001 39909 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
004ee6da
RL
39910 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39911 (eval $ac_try) 2>&5
39912 ac_status=$?
39913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39914 (exit $ac_status); }; } &&
39915 { ac_try='test -s conftest.$ac_objext'
39916 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39917 (eval $ac_try) 2>&5
39918 ac_status=$?
39919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39920 (exit $ac_status); }; }; then
39921 ac_cv_func_which_getservbyname_r=five
39922else
39923 echo "$as_me: failed program was:" >&5
39924sed 's/^/| /' conftest.$ac_ext >&5
39925
39926ac_cv_func_which_getservbyname_r=no
99879bbf 39927
004ee6da
RL
39928fi
39929rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39930
004ee6da
RL
39931fi
39932rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39933
004ee6da
RL
39934fi
39935rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
004ee6da
RL
39936else
39937 ac_cv_func_which_getservbyname_r=no
39938fi
39939
004ee6da
RL
39940
39941if test $ac_cv_func_which_getservbyname_r = six; then
39942 cat >>confdefs.h <<\_ACEOF
39943#define HAVE_FUNC_GETSERVBYNAME_R_6 1
39944_ACEOF
39945
39946elif test $ac_cv_func_which_getservbyname_r = five; then
39947 cat >>confdefs.h <<\_ACEOF
39948#define HAVE_FUNC_GETSERVBYNAME_R_5 1
39949_ACEOF
39950
39951elif test $ac_cv_func_which_getservbyname_r = four; then
39952 cat >>confdefs.h <<\_ACEOF
39953#define HAVE_FUNC_GETSERVBYNAME_R_4 1
39954_ACEOF
39955
004ee6da
RL
39956fi
39957
39958
39959 if test "x$ac_cv_func_which_getservbyname_r" = "xno" -o \
39960 "x$ac_cv_func_which_getservbyname_r" = "xunknown" ; then
39961
39962for ac_func in getservbyname
39963do
39964as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39965echo "$as_me:$LINENO: checking for $ac_func" >&5
39966echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
39967if eval "test \"\${$as_ac_var+set}\" = set"; then
39968 echo $ECHO_N "(cached) $ECHO_C" >&6
39969else
39970 cat >conftest.$ac_ext <<_ACEOF
39971/* confdefs.h. */
39972_ACEOF
39973cat confdefs.h >>conftest.$ac_ext
39974cat >>conftest.$ac_ext <<_ACEOF
39975/* end confdefs.h. */
39976/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
39977 For example, HP-UX 11i <limits.h> declares gettimeofday. */
39978#define $ac_func innocuous_$ac_func
39979
39980/* System header to define __stub macros and hopefully few prototypes,
39981 which can conflict with char $ac_func (); below.
39982 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39983 <limits.h> exists even on freestanding compilers. */
39984
39985#ifdef __STDC__
39986# include <limits.h>
39987#else
39988# include <assert.h>
39989#endif
39990
39991#undef $ac_func
39992
39993/* Override any gcc2 internal prototype to avoid an error. */
39994#ifdef __cplusplus
39995extern "C"
39996{
39997#endif
39998/* We use char because int might match the return type of a gcc2
39999 builtin and then its argument prototype would still apply. */
40000char $ac_func ();
40001/* The GNU C library defines this for functions which it implements
40002 to always fail with ENOSYS. Some functions are actually named
40003 something starting with __ and the normal name is an alias. */
40004#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
40005choke me
40006#else
40007char (*f) () = $ac_func;
40008#endif
40009#ifdef __cplusplus
40010}
40011#endif
40012
40013int
40014main ()
40015{
40016return f != $ac_func;
40017 ;
40018 return 0;
40019}
40020_ACEOF
40021rm -f conftest.$ac_objext conftest$ac_exeext
40022if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40023 (eval $ac_link) 2>conftest.er1
40024 ac_status=$?
40025 grep -v '^ *+' conftest.er1 >conftest.err
40026 rm -f conftest.er1
40027 cat conftest.err >&5
40028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40029 (exit $ac_status); } &&
c9a66001 40030 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
004ee6da
RL
40031 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40032 (eval $ac_try) 2>&5
40033 ac_status=$?
40034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40035 (exit $ac_status); }; } &&
40036 { ac_try='test -s conftest$ac_exeext'
40037 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40038 (eval $ac_try) 2>&5
40039 ac_status=$?
40040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40041 (exit $ac_status); }; }; then
40042 eval "$as_ac_var=yes"
40043else
40044 echo "$as_me: failed program was:" >&5
40045sed 's/^/| /' conftest.$ac_ext >&5
40046
40047eval "$as_ac_var=no"
40048fi
40049rm -f conftest.err conftest.$ac_objext \
40050 conftest$ac_exeext conftest.$ac_ext
40051fi
40052echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
40053echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
40054if test `eval echo '${'$as_ac_var'}'` = yes; then
40055 cat >>confdefs.h <<_ACEOF
40056#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
40057_ACEOF
40058 cat >>confdefs.h <<\_ACEOF
40059#define HAVE_GETSERVBYNAME 1
40060_ACEOF
40061
40062fi
40063done
40064
40065 fi
40066
004ee6da
RL
40067if test "$wxUSE_THREADS" = "yes"; then
40068 cat >>confdefs.h <<\_ACEOF
40069#define wxUSE_THREADS 1
40070_ACEOF
40071
40072
40073 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS thread"
40074else
40075 if test "$ac_cv_func_strtok_r" = "yes"; then
40076 echo "$as_me:$LINENO: checking if -D_REENTRANT is needed" >&5
40077echo $ECHO_N "checking if -D_REENTRANT is needed... $ECHO_C" >&6
40078 if test "$NEEDS_D_REENTRANT_FOR_R_FUNCS" = 1; then
40079 WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS -D_REENTRANT"
40080 echo "$as_me:$LINENO: result: yes" >&5
40081echo "${ECHO_T}yes" >&6
40082 else
40083 echo "$as_me:$LINENO: result: no" >&5
40084echo "${ECHO_T}no" >&6
40085 fi
40086 fi
40087fi
40088
40089if test "$WXGTK20" = 1 ; then
40090 cat >>confdefs.h <<_ACEOF
40091#define __WXGTK20__ $WXGTK20
40092_ACEOF
40093
40094 WXGTK12=1
40095fi
40096
40097if test "$WXGTK12" = 1 ; then
40098 cat >>confdefs.h <<_ACEOF
40099#define __WXGTK12__ $WXGTK12
40100_ACEOF
40101
40102fi
40103
40104if test "$WXGTK127" = 1 ; then
40105 cat >>confdefs.h <<_ACEOF
40106#define __WXGTK127__ $WXGTK127
40107_ACEOF
40108
40109fi
40110
40111if test "$WXGPE" = 1 ; then
40112 cat >>confdefs.h <<_ACEOF
40113#define __WXGPE__ $WXGPE
40114_ACEOF
40115
40116fi
40117
40118DEBUG_CFLAGS=
40119if test "$wxUSE_DEBUG_INFO" = "yes" ; then
40120 DEBUG_CFLAGS="-g"
40121 wxUSE_OPTIMISE=no
40122fi
40123
40124if test "$wxUSE_DEBUG_GDB" = "yes" ; then
40125 wxUSE_DEBUG_INFO=yes
40126 if test "$GCC" = yes; then
40127 DEBUG_CFLAGS="-ggdb"
40128 fi
40129fi
40130
40131if test "$wxUSE_DEBUG_FLAG" = "yes" ; then
40132 cat >>confdefs.h <<\_ACEOF
40133#define WXDEBUG 1
40134_ACEOF
40135
40136 WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS -D__WXDEBUG__"
40137else
40138 if test "$wxUSE_GTK" = 1 ; then
99879bbf
MR
40139 if test "x$wxGTK_VERSION" = "x1" ; then
40140 CPPFLAGS="-DGTK_NO_CHECK_CASTS $CPPFLAGS"
40141 fi
004ee6da
RL
40142 fi
40143fi
40144
40145if test "$wxUSE_MEM_TRACING" = "yes" ; then
40146 cat >>confdefs.h <<\_ACEOF
40147#define wxUSE_MEMORY_TRACING 1
40148_ACEOF
40149
40150 cat >>confdefs.h <<\_ACEOF
40151#define wxUSE_GLOBAL_MEMORY_OPERATORS 1
40152_ACEOF
40153
40154 cat >>confdefs.h <<\_ACEOF
40155#define wxUSE_DEBUG_NEW_ALWAYS 1
40156_ACEOF
40157
40158 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS memcheck"
40159fi
40160
40161if test "$wxUSE_DMALLOC" = "yes" ; then
40162 DMALLOC_LIBS="-ldmallocthcxx"
40163fi
40164
40165PROFILE_FLAGS=
40166if test "$wxUSE_PROFILE" = "yes" ; then
40167 PROFILE_FLAGS=" -pg"
40168fi
40169
40170if test "$GCC" = "yes" ; then
40171 if test "$wxUSE_NO_RTTI" = "yes" ; then
40172 WXCONFIG_CXXFLAGS="$WXCONFIG_CXXFLAGS -fno-rtti"
40173 fi
40174 if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then
40175 WXCONFIG_CXXFLAGS="$WXCONFIG_CXXFLAGS -fno-exceptions"
40176 fi
40177 if test "$wxUSE_PERMISSIVE" = "yes" ; then
40178 WXCONFIG_CFLAGS="$WXCONFIG_CFLAGS -fpermissive"
40179 fi
40180
40181 case "${host}" in
40182 powerpc*-*-aix* )
40183 WXCONFIG_CFLAGS="$WXCONFIG_CFLAGS -mminimal-toc"
40184 ;;
40185 *-hppa* )
40186 WXCONFIG_CFLAGS="$WXCONFIG_CFLAGS -ffunction-sections"
40187 ;;
40188 esac
40189fi
40190
40191OPTIMISE_CFLAGS=
40192if test "$wxUSE_OPTIMISE" = "no" ; then
40193 if test "$GCC" = yes ; then
40194 OPTIMISE_CFLAGS="-O0"
40195 fi
40196else
40197 if test "$GCC" = yes ; then
e5efa97e
VZ
40198 case "${host}" in
40199 *-pc-os2_emx | *-pc-os2-emx )
40200 OPTIMISE_CFLAGS="-O2"
40201 ;;
40202 *)
40203 OPTIMISE_CFLAGS="-O2 -fno-strict-aliasing"
40204 ;;
40205 esac
004ee6da
RL
40206 else
40207 OPTIMISE_CFLAGS="-O"
40208 fi
40209fi
40210
40211
40212if test "x$WXWIN_COMPATIBILITY_2_4" = "xyes"; then
40213 cat >>confdefs.h <<\_ACEOF
40214#define WXWIN_COMPATIBILITY_2_4 1
40215_ACEOF
40216
40217
40218 WXWIN_COMPATIBILITY_2_6="yes"
40219fi
40220
40221if test "x$WXWIN_COMPATIBILITY_2_6" != "xno"; then
40222 cat >>confdefs.h <<\_ACEOF
40223#define WXWIN_COMPATIBILITY_2_6 1
40224_ACEOF
40225
40226fi
40227
40228
40229if test "$wxUSE_GUI" = "yes"; then
40230 cat >>confdefs.h <<\_ACEOF
40231#define wxUSE_GUI 1
40232_ACEOF
40233
40234
40235 fi
40236
40237
40238if test "$wxUSE_UNIX" = "yes"; then
40239 cat >>confdefs.h <<\_ACEOF
40240#define wxUSE_UNIX 1
40241_ACEOF
40242
40243fi
40244
40245
40246if test "$TOOLKIT" != "MSW" -a "$USE_OS2" != 1; then
40247
40248 HAVE_DL_FUNCS=0
40249 HAVE_SHL_FUNCS=0
40250 if test "$wxUSE_DYNAMIC_LOADER" = "yes" -o "$wxUSE_DYNLIB_CLASS" = "yes" ; then
40251 if test "$USE_DARWIN" = 1; then
40252 HAVE_DL_FUNCS=1
40253 elif test "$USE_DOS" = 1; then
40254 HAVE_DL_FUNCS=0
40255 else
40256
40257for ac_func in dlopen
40258do
40259as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
40260echo "$as_me:$LINENO: checking for $ac_func" >&5
40261echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
40262if eval "test \"\${$as_ac_var+set}\" = set"; then
40263 echo $ECHO_N "(cached) $ECHO_C" >&6
40264else
40265 cat >conftest.$ac_ext <<_ACEOF
40266/* confdefs.h. */
40267_ACEOF
40268cat confdefs.h >>conftest.$ac_ext
40269cat >>conftest.$ac_ext <<_ACEOF
40270/* end confdefs.h. */
40271/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
40272 For example, HP-UX 11i <limits.h> declares gettimeofday. */
40273#define $ac_func innocuous_$ac_func
40274
40275/* System header to define __stub macros and hopefully few prototypes,
40276 which can conflict with char $ac_func (); below.
40277 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40278 <limits.h> exists even on freestanding compilers. */
40279
40280#ifdef __STDC__
40281# include <limits.h>
40282#else
40283# include <assert.h>
40284#endif
40285
40286#undef $ac_func
40287
40288/* Override any gcc2 internal prototype to avoid an error. */
40289#ifdef __cplusplus
40290extern "C"
40291{
40292#endif
40293/* We use char because int might match the return type of a gcc2
40294 builtin and then its argument prototype would still apply. */
40295char $ac_func ();
40296/* The GNU C library defines this for functions which it implements
40297 to always fail with ENOSYS. Some functions are actually named
40298 something starting with __ and the normal name is an alias. */
40299#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
40300choke me
40301#else
40302char (*f) () = $ac_func;
40303#endif
40304#ifdef __cplusplus
40305}
40306#endif
40307
40308int
40309main ()
40310{
40311return f != $ac_func;
a848cd7e
SC
40312 ;
40313 return 0;
40314}
40315_ACEOF
40316rm -f conftest.$ac_objext conftest$ac_exeext
40317if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 40318 (eval $ac_link) 2>conftest.er1
a848cd7e 40319 ac_status=$?
ac1cb8d3
VS
40320 grep -v '^ *+' conftest.er1 >conftest.err
40321 rm -f conftest.er1
40322 cat conftest.err >&5
a848cd7e
SC
40323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40324 (exit $ac_status); } &&
c9a66001 40325 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
40326 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40327 (eval $ac_try) 2>&5
40328 ac_status=$?
40329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40330 (exit $ac_status); }; } &&
40331 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
40332 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40333 (eval $ac_try) 2>&5
40334 ac_status=$?
40335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40336 (exit $ac_status); }; }; then
40337 eval "$as_ac_var=yes"
40338else
40339 echo "$as_me: failed program was:" >&5
40340sed 's/^/| /' conftest.$ac_ext >&5
40341
40342eval "$as_ac_var=no"
40343fi
ac1cb8d3
VS
40344rm -f conftest.err conftest.$ac_objext \
40345 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
40346fi
40347echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
40348echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
40349if test `eval echo '${'$as_ac_var'}'` = yes; then
40350 cat >>confdefs.h <<_ACEOF
40351#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
40352_ACEOF
40353
40354 cat >>confdefs.h <<\_ACEOF
40355#define HAVE_DLOPEN 1
40356_ACEOF
40357
40358 HAVE_DL_FUNCS=1
40359
40360else
40361
40362 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
40363echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
40364if test "${ac_cv_lib_dl_dlopen+set}" = set; then
40365 echo $ECHO_N "(cached) $ECHO_C" >&6
40366else
40367 ac_check_lib_save_LIBS=$LIBS
40368LIBS="-ldl $LIBS"
40369cat >conftest.$ac_ext <<_ACEOF
40370/* confdefs.h. */
40371_ACEOF
40372cat confdefs.h >>conftest.$ac_ext
40373cat >>conftest.$ac_ext <<_ACEOF
40374/* end confdefs.h. */
40375
40376/* Override any gcc2 internal prototype to avoid an error. */
40377#ifdef __cplusplus
40378extern "C"
40379#endif
40380/* We use char because int might match the return type of a gcc2
40381 builtin and then its argument prototype would still apply. */
40382char dlopen ();
40383int
40384main ()
40385{
40386dlopen ();
40387 ;
40388 return 0;
40389}
40390_ACEOF
40391rm -f conftest.$ac_objext conftest$ac_exeext
40392if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 40393 (eval $ac_link) 2>conftest.er1
a848cd7e 40394 ac_status=$?
ac1cb8d3
VS
40395 grep -v '^ *+' conftest.er1 >conftest.err
40396 rm -f conftest.er1
40397 cat conftest.err >&5
a848cd7e
SC
40398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40399 (exit $ac_status); } &&
c9a66001 40400 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
40401 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40402 (eval $ac_try) 2>&5
40403 ac_status=$?
40404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40405 (exit $ac_status); }; } &&
40406 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
40407 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40408 (eval $ac_try) 2>&5
40409 ac_status=$?
40410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40411 (exit $ac_status); }; }; then
40412 ac_cv_lib_dl_dlopen=yes
40413else
40414 echo "$as_me: failed program was:" >&5
40415sed 's/^/| /' conftest.$ac_ext >&5
40416
40417ac_cv_lib_dl_dlopen=no
40418fi
ac1cb8d3
VS
40419rm -f conftest.err conftest.$ac_objext \
40420 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
40421LIBS=$ac_check_lib_save_LIBS
40422fi
40423echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
40424echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
40425if test $ac_cv_lib_dl_dlopen = yes; then
40426
40427 cat >>confdefs.h <<\_ACEOF
40428#define HAVE_DLOPEN 1
40429_ACEOF
40430
40431 HAVE_DL_FUNCS=1
40432 DL_LINK=" -ldl$DL_LINK"
40433
40434else
40435
40436
40437for ac_func in shl_load
40438do
40439as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
40440echo "$as_me:$LINENO: checking for $ac_func" >&5
40441echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
40442if eval "test \"\${$as_ac_var+set}\" = set"; then
40443 echo $ECHO_N "(cached) $ECHO_C" >&6
40444else
40445 cat >conftest.$ac_ext <<_ACEOF
40446/* confdefs.h. */
40447_ACEOF
40448cat confdefs.h >>conftest.$ac_ext
40449cat >>conftest.$ac_ext <<_ACEOF
40450/* end confdefs.h. */
ac1cb8d3
VS
40451/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
40452 For example, HP-UX 11i <limits.h> declares gettimeofday. */
40453#define $ac_func innocuous_$ac_func
40454
a848cd7e
SC
40455/* System header to define __stub macros and hopefully few prototypes,
40456 which can conflict with char $ac_func (); below.
40457 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40458 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 40459
a848cd7e
SC
40460#ifdef __STDC__
40461# include <limits.h>
40462#else
40463# include <assert.h>
40464#endif
ac1cb8d3
VS
40465
40466#undef $ac_func
40467
a848cd7e
SC
40468/* Override any gcc2 internal prototype to avoid an error. */
40469#ifdef __cplusplus
40470extern "C"
40471{
40472#endif
40473/* We use char because int might match the return type of a gcc2
40474 builtin and then its argument prototype would still apply. */
40475char $ac_func ();
40476/* The GNU C library defines this for functions which it implements
40477 to always fail with ENOSYS. Some functions are actually named
40478 something starting with __ and the normal name is an alias. */
40479#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
40480choke me
40481#else
40482char (*f) () = $ac_func;
40483#endif
40484#ifdef __cplusplus
40485}
40486#endif
40487
40488int
40489main ()
40490{
40491return f != $ac_func;
40492 ;
40493 return 0;
40494}
40495_ACEOF
40496rm -f conftest.$ac_objext conftest$ac_exeext
40497if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 40498 (eval $ac_link) 2>conftest.er1
a848cd7e 40499 ac_status=$?
ac1cb8d3
VS
40500 grep -v '^ *+' conftest.er1 >conftest.err
40501 rm -f conftest.er1
40502 cat conftest.err >&5
a848cd7e
SC
40503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40504 (exit $ac_status); } &&
c9a66001 40505 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
40506 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40507 (eval $ac_try) 2>&5
40508 ac_status=$?
40509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40510 (exit $ac_status); }; } &&
40511 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
40512 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40513 (eval $ac_try) 2>&5
40514 ac_status=$?
40515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40516 (exit $ac_status); }; }; then
40517 eval "$as_ac_var=yes"
40518else
40519 echo "$as_me: failed program was:" >&5
40520sed 's/^/| /' conftest.$ac_ext >&5
40521
40522eval "$as_ac_var=no"
40523fi
ac1cb8d3
VS
40524rm -f conftest.err conftest.$ac_objext \
40525 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
40526fi
40527echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
40528echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
40529if test `eval echo '${'$as_ac_var'}'` = yes; then
40530 cat >>confdefs.h <<_ACEOF
40531#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
40532_ACEOF
40533
40534 cat >>confdefs.h <<\_ACEOF
40535#define HAVE_SHL_LOAD 1
40536_ACEOF
40537
40538 HAVE_SHL_FUNCS=1
40539
40540else
40541
40542 echo "$as_me:$LINENO: checking for dld in -lshl_load" >&5
40543echo $ECHO_N "checking for dld in -lshl_load... $ECHO_C" >&6
40544if test "${ac_cv_lib_shl_load_dld+set}" = set; then
40545 echo $ECHO_N "(cached) $ECHO_C" >&6
40546else
40547 ac_check_lib_save_LIBS=$LIBS
40548LIBS="-lshl_load $LIBS"
40549cat >conftest.$ac_ext <<_ACEOF
40550/* confdefs.h. */
40551_ACEOF
40552cat confdefs.h >>conftest.$ac_ext
40553cat >>conftest.$ac_ext <<_ACEOF
40554/* end confdefs.h. */
40555
40556/* Override any gcc2 internal prototype to avoid an error. */
40557#ifdef __cplusplus
40558extern "C"
40559#endif
40560/* We use char because int might match the return type of a gcc2
40561 builtin and then its argument prototype would still apply. */
40562char dld ();
40563int
40564main ()
40565{
40566dld ();
40567 ;
40568 return 0;
40569}
40570_ACEOF
40571rm -f conftest.$ac_objext conftest$ac_exeext
40572if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 40573 (eval $ac_link) 2>conftest.er1
a848cd7e 40574 ac_status=$?
ac1cb8d3
VS
40575 grep -v '^ *+' conftest.er1 >conftest.err
40576 rm -f conftest.er1
40577 cat conftest.err >&5
a848cd7e
SC
40578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40579 (exit $ac_status); } &&
c9a66001 40580 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
40581 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40582 (eval $ac_try) 2>&5
40583 ac_status=$?
40584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40585 (exit $ac_status); }; } &&
40586 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
40587 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40588 (eval $ac_try) 2>&5
40589 ac_status=$?
40590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40591 (exit $ac_status); }; }; then
40592 ac_cv_lib_shl_load_dld=yes
40593else
40594 echo "$as_me: failed program was:" >&5
40595sed 's/^/| /' conftest.$ac_ext >&5
40596
40597ac_cv_lib_shl_load_dld=no
40598fi
ac1cb8d3
VS
40599rm -f conftest.err conftest.$ac_objext \
40600 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
40601LIBS=$ac_check_lib_save_LIBS
40602fi
40603echo "$as_me:$LINENO: result: $ac_cv_lib_shl_load_dld" >&5
40604echo "${ECHO_T}$ac_cv_lib_shl_load_dld" >&6
40605if test $ac_cv_lib_shl_load_dld = yes; then
40606
40607 HAVE_SHL_FUNCS=1
40608 DL_LINK=" -ldld$DL_LINK"
40609
40610fi
40611
40612
40613fi
40614done
40615
40616
40617fi
40618
40619
40620fi
40621done
40622
40623
40624 if test "$HAVE_DL_FUNCS" = 1; then
40625
40626for ac_func in dlerror
40627do
40628as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
40629echo "$as_me:$LINENO: checking for $ac_func" >&5
40630echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
40631if eval "test \"\${$as_ac_var+set}\" = set"; then
40632 echo $ECHO_N "(cached) $ECHO_C" >&6
40633else
40634 cat >conftest.$ac_ext <<_ACEOF
40635/* confdefs.h. */
40636_ACEOF
40637cat confdefs.h >>conftest.$ac_ext
40638cat >>conftest.$ac_ext <<_ACEOF
40639/* end confdefs.h. */
ac1cb8d3
VS
40640/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
40641 For example, HP-UX 11i <limits.h> declares gettimeofday. */
40642#define $ac_func innocuous_$ac_func
40643
a848cd7e
SC
40644/* System header to define __stub macros and hopefully few prototypes,
40645 which can conflict with char $ac_func (); below.
40646 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40647 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 40648
a848cd7e
SC
40649#ifdef __STDC__
40650# include <limits.h>
40651#else
40652# include <assert.h>
40653#endif
ac1cb8d3
VS
40654
40655#undef $ac_func
40656
a848cd7e
SC
40657/* Override any gcc2 internal prototype to avoid an error. */
40658#ifdef __cplusplus
40659extern "C"
40660{
40661#endif
40662/* We use char because int might match the return type of a gcc2
40663 builtin and then its argument prototype would still apply. */
40664char $ac_func ();
40665/* The GNU C library defines this for functions which it implements
40666 to always fail with ENOSYS. Some functions are actually named
40667 something starting with __ and the normal name is an alias. */
40668#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
40669choke me
40670#else
40671char (*f) () = $ac_func;
40672#endif
40673#ifdef __cplusplus
40674}
40675#endif
40676
40677int
40678main ()
40679{
40680return f != $ac_func;
40681 ;
40682 return 0;
40683}
40684_ACEOF
40685rm -f conftest.$ac_objext conftest$ac_exeext
40686if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 40687 (eval $ac_link) 2>conftest.er1
a848cd7e 40688 ac_status=$?
ac1cb8d3
VS
40689 grep -v '^ *+' conftest.er1 >conftest.err
40690 rm -f conftest.er1
40691 cat conftest.err >&5
a848cd7e
SC
40692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40693 (exit $ac_status); } &&
c9a66001 40694 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
40695 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40696 (eval $ac_try) 2>&5
40697 ac_status=$?
40698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40699 (exit $ac_status); }; } &&
40700 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
40701 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40702 (eval $ac_try) 2>&5
40703 ac_status=$?
40704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40705 (exit $ac_status); }; }; then
40706 eval "$as_ac_var=yes"
40707else
40708 echo "$as_me: failed program was:" >&5
40709sed 's/^/| /' conftest.$ac_ext >&5
40710
40711eval "$as_ac_var=no"
40712fi
ac1cb8d3
VS
40713rm -f conftest.err conftest.$ac_objext \
40714 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
40715fi
40716echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
40717echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
40718if test `eval echo '${'$as_ac_var'}'` = yes; then
40719 cat >>confdefs.h <<_ACEOF
40720#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
40721_ACEOF
40722 cat >>confdefs.h <<\_ACEOF
40723#define HAVE_DLERROR 1
40724_ACEOF
40725
40726else
40727
40728 echo "$as_me:$LINENO: checking for dlerror in -ldl" >&5
40729echo $ECHO_N "checking for dlerror in -ldl... $ECHO_C" >&6
40730if test "${ac_cv_lib_dl_dlerror+set}" = set; then
40731 echo $ECHO_N "(cached) $ECHO_C" >&6
40732else
40733 ac_check_lib_save_LIBS=$LIBS
40734LIBS="-ldl $LIBS"
40735cat >conftest.$ac_ext <<_ACEOF
40736/* confdefs.h. */
40737_ACEOF
40738cat confdefs.h >>conftest.$ac_ext
40739cat >>conftest.$ac_ext <<_ACEOF
40740/* end confdefs.h. */
40741
40742/* Override any gcc2 internal prototype to avoid an error. */
40743#ifdef __cplusplus
40744extern "C"
40745#endif
40746/* We use char because int might match the return type of a gcc2
40747 builtin and then its argument prototype would still apply. */
40748char dlerror ();
40749int
40750main ()
40751{
40752dlerror ();
40753 ;
40754 return 0;
40755}
40756_ACEOF
40757rm -f conftest.$ac_objext conftest$ac_exeext
40758if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 40759 (eval $ac_link) 2>conftest.er1
a848cd7e 40760 ac_status=$?
ac1cb8d3
VS
40761 grep -v '^ *+' conftest.er1 >conftest.err
40762 rm -f conftest.er1
40763 cat conftest.err >&5
a848cd7e
SC
40764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40765 (exit $ac_status); } &&
c9a66001 40766 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
40767 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40768 (eval $ac_try) 2>&5
40769 ac_status=$?
40770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40771 (exit $ac_status); }; } &&
40772 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
40773 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40774 (eval $ac_try) 2>&5
40775 ac_status=$?
40776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40777 (exit $ac_status); }; }; then
40778 ac_cv_lib_dl_dlerror=yes
40779else
40780 echo "$as_me: failed program was:" >&5
40781sed 's/^/| /' conftest.$ac_ext >&5
40782
40783ac_cv_lib_dl_dlerror=no
40784fi
ac1cb8d3
VS
40785rm -f conftest.err conftest.$ac_objext \
40786 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
40787LIBS=$ac_check_lib_save_LIBS
40788fi
40789echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlerror" >&5
40790echo "${ECHO_T}$ac_cv_lib_dl_dlerror" >&6
40791if test $ac_cv_lib_dl_dlerror = yes; then
40792 cat >>confdefs.h <<\_ACEOF
40793#define HAVE_DLERROR 1
40794_ACEOF
40795
40796fi
40797
40798
40799
40800fi
40801done
40802
40803 fi
40804 fi
40805
40806 if test "$HAVE_DL_FUNCS" = 0; then
40807 if test "$HAVE_SHL_FUNCS" = 0; then
47a7e797 40808 if test "$USE_UNIX" = 1 -o "$USE_DOS" = 1; then
a848cd7e
SC
40809 { echo "$as_me:$LINENO: WARNING: Missing dynamic loading support, several features will be disabled" >&5
40810echo "$as_me: WARNING: Missing dynamic loading support, several features will be disabled" >&2;}
40811 wxUSE_DYNAMIC_LOADER=no
40812 wxUSE_DYNLIB_CLASS=no
40813 else
40814 { echo "$as_me:$LINENO: WARNING: Assuming wxLibrary class works on this platform" >&5
40815echo "$as_me: WARNING: Assuming wxLibrary class works on this platform" >&2;}
40816 fi
40817 fi
40818 fi
40819 fi
40820fi
40821
40822if test "$wxUSE_DYNAMIC_LOADER" = "yes" ; then
40823 cat >>confdefs.h <<\_ACEOF
40824#define wxUSE_DYNAMIC_LOADER 1
40825_ACEOF
40826
40827fi
40828if test "$wxUSE_DYNLIB_CLASS" = "yes" ; then
40829 cat >>confdefs.h <<\_ACEOF
40830#define wxUSE_DYNLIB_CLASS 1
40831_ACEOF
40832
40833fi
40834
40835
40836
40837if test "$wxUSE_PLUGINS" = "yes" ; then
40838 if test "$wxUSE_SHARED" = "no" ; then
40839 { echo "$as_me:$LINENO: WARNING: plugins supported only in shared build, disabling" >&5
40840echo "$as_me: WARNING: plugins supported only in shared build, disabling" >&2;}
40841 wxUSE_PLUGINS=no
40842 fi
40843 if test "$wxUSE_MONOLITHIC" = "yes" ; then
40844 { echo "$as_me:$LINENO: WARNING: plugins not supported monolithic build, disabling" >&5
40845echo "$as_me: WARNING: plugins not supported monolithic build, disabling" >&2;}
40846 wxUSE_PLUGINS=no
40847 fi
40848 if test "$wxUSE_DYNLIB_CLASS" = "no" ; then
40849 { echo "$as_me:$LINENO: WARNING: plugins require wxDynamicLibrary, disabling" >&5
40850echo "$as_me: WARNING: plugins require wxDynamicLibrary, disabling" >&2;}
40851 wxUSE_PLUGINS=no
40852 fi
40853 if test "$wxUSE_PLUGINS" = "yes" ; then
40854 cat >>confdefs.h <<\_ACEOF
40855#define wxUSE_PLUGINS 1
40856_ACEOF
40857
40858 fi
40859fi
40860
40861
40862if test "$wxUSE_STL" = "yes"; then
40863 cat >>confdefs.h <<\_ACEOF
40864#define wxUSE_STL 1
40865_ACEOF
40866
40867fi
40868
40869if test "$wxUSE_APPLE_IEEE" = "yes"; then
40870 cat >>confdefs.h <<\_ACEOF
40871#define wxUSE_APPLE_IEEE 1
40872_ACEOF
40873
40874fi
40875
40876if test "$wxUSE_TIMER" = "yes"; then
40877 cat >>confdefs.h <<\_ACEOF
40878#define wxUSE_TIMER 1
40879_ACEOF
40880
40881fi
40882
9c112555 40883if test "$USE_UNIX" = "1" ; then
d12aef51
VZ
40884 echo "$as_me:$LINENO: checking for ioctl() in sys/soundcard.h" >&5
40885echo $ECHO_N "checking for ioctl() in sys/soundcard.h... $ECHO_C" >&6
40886if test "${ac_cv_header_sys_soundcard+set}" = set; then
a848cd7e 40887 echo $ECHO_N "(cached) $ECHO_C" >&6
a848cd7e 40888else
d12aef51
VZ
40889
40890 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
40891/* confdefs.h. */
40892_ACEOF
40893cat confdefs.h >>conftest.$ac_ext
40894cat >>conftest.$ac_ext <<_ACEOF
40895/* end confdefs.h. */
d12aef51
VZ
40896
40897 #include <sys/soundcard.h>
40898
40899int
40900main ()
40901{
40902
40903 ioctl(0, SNDCTL_DSP_SYNC, 0);
40904
40905 ;
40906 return 0;
40907}
a848cd7e 40908_ACEOF
d12aef51
VZ
40909rm -f conftest.$ac_objext conftest$ac_exeext
40910if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40911 (eval $ac_link) 2>conftest.er1
a848cd7e 40912 ac_status=$?
ac1cb8d3
VS
40913 grep -v '^ *+' conftest.er1 >conftest.err
40914 rm -f conftest.er1
40915 cat conftest.err >&5
a848cd7e
SC
40916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40917 (exit $ac_status); } &&
c9a66001 40918 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
40919 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40920 (eval $ac_try) 2>&5
40921 ac_status=$?
40922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40923 (exit $ac_status); }; } &&
d12aef51 40924 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
40925 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40926 (eval $ac_try) 2>&5
40927 ac_status=$?
40928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40929 (exit $ac_status); }; }; then
d12aef51 40930 ac_cv_header_sys_soundcard=yes
a848cd7e
SC
40931else
40932 echo "$as_me: failed program was:" >&5
40933sed 's/^/| /' conftest.$ac_ext >&5
40934
a848cd7e 40935
d12aef51
VZ
40936 saveLibs="$LIBS"
40937 LIBS="$saveLibs -lossaudio"
40938 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
40939/* confdefs.h. */
40940_ACEOF
40941cat confdefs.h >>conftest.$ac_ext
40942cat >>conftest.$ac_ext <<_ACEOF
40943/* end confdefs.h. */
d12aef51
VZ
40944
40945 #include <sys/soundcard.h>
40946
40947int
40948main ()
40949{
40950
40951 ioctl(0, SNDCTL_DSP_SYNC, 0);
40952
40953 ;
40954 return 0;
40955}
a848cd7e 40956_ACEOF
d12aef51
VZ
40957rm -f conftest.$ac_objext conftest$ac_exeext
40958if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40959 (eval $ac_link) 2>conftest.er1
a848cd7e
SC
40960 ac_status=$?
40961 grep -v '^ *+' conftest.er1 >conftest.err
40962 rm -f conftest.er1
40963 cat conftest.err >&5
40964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
d12aef51 40965 (exit $ac_status); } &&
c9a66001 40966 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
d12aef51
VZ
40967 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40968 (eval $ac_try) 2>&5
40969 ac_status=$?
40970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40971 (exit $ac_status); }; } &&
40972 { ac_try='test -s conftest$ac_exeext'
40973 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40974 (eval $ac_try) 2>&5
40975 ac_status=$?
40976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40977 (exit $ac_status); }; }; then
40978 ac_cv_header_sys_soundcard=yes
a848cd7e
SC
40979else
40980 echo "$as_me: failed program was:" >&5
40981sed 's/^/| /' conftest.$ac_ext >&5
40982
a848cd7e 40983
d12aef51
VZ
40984 LIBS="$saveLibs"
40985 ac_cv_header_sys_soundcard=no
40986
40987
a848cd7e 40988fi
d12aef51
VZ
40989rm -f conftest.err conftest.$ac_objext \
40990 conftest$ac_exeext conftest.$ac_ext
40991
a848cd7e
SC
40992
40993fi
d12aef51
VZ
40994rm -f conftest.err conftest.$ac_objext \
40995 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
40996
40997fi
d12aef51
VZ
40998echo "$as_me:$LINENO: result: $ac_cv_header_sys_soundcard" >&5
40999echo "${ECHO_T}$ac_cv_header_sys_soundcard" >&6
a848cd7e 41000
d12aef51
VZ
41001 if test "$ac_cv_header_sys_soundcard" = "yes"; then
41002 cat >>confdefs.h <<\_ACEOF
41003#define HAVE_SYS_SOUNDCARD_H 1
41004_ACEOF
a848cd7e 41005
d12aef51
VZ
41006 else
41007 DISABLED_CONTRIB="$DISABLED_CONTRIB mmedia"
41008 fi
9c112555
MW
41009fi
41010WITH_PLUGIN_SDL=0
41011if test "$wxUSE_SOUND" = "yes"; then
41012 if test "$USE_UNIX" = "1" ; then
a848cd7e
SC
41013 if test "$wxUSE_LIBSDL" != "no"; then
41014
41015# Check whether --with-sdl-prefix or --without-sdl-prefix was given.
41016if test "${with_sdl_prefix+set}" = set; then
41017 withval="$with_sdl_prefix"
41018 sdl_prefix="$withval"
41019else
41020 sdl_prefix=""
41021fi;
41022
41023# Check whether --with-sdl-exec-prefix or --without-sdl-exec-prefix was given.
41024if test "${with_sdl_exec_prefix+set}" = set; then
41025 withval="$with_sdl_exec_prefix"
41026 sdl_exec_prefix="$withval"
41027else
41028 sdl_exec_prefix=""
41029fi;
41030# Check whether --enable-sdltest or --disable-sdltest was given.
41031if test "${enable_sdltest+set}" = set; then
41032 enableval="$enable_sdltest"
41033
41034else
41035 enable_sdltest=yes
41036fi;
41037
41038 if test x$sdl_exec_prefix != x ; then
41039 sdl_args="$sdl_args --exec-prefix=$sdl_exec_prefix"
41040 if test x${SDL_CONFIG+set} != xset ; then
41041 SDL_CONFIG=$sdl_exec_prefix/bin/sdl-config
41042 fi
41043 fi
41044 if test x$sdl_prefix != x ; then
41045 sdl_args="$sdl_args --prefix=$sdl_prefix"
41046 if test x${SDL_CONFIG+set} != xset ; then
41047 SDL_CONFIG=$sdl_prefix/bin/sdl-config
41048 fi
41049 fi
41050
41051
41052 PATH="$prefix/bin:$prefix/usr/bin:$PATH"
41053 # Extract the first word of "sdl-config", so it can be a program name with args.
41054set dummy sdl-config; ac_word=$2
41055echo "$as_me:$LINENO: checking for $ac_word" >&5
41056echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
41057if test "${ac_cv_path_SDL_CONFIG+set}" = set; then
41058 echo $ECHO_N "(cached) $ECHO_C" >&6
41059else
41060 case $SDL_CONFIG in
41061 [\\/]* | ?:[\\/]*)
41062 ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a path.
41063 ;;
41064 *)
41065 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
41066for as_dir in $PATH
41067do
41068 IFS=$as_save_IFS
41069 test -z "$as_dir" && as_dir=.
41070 for ac_exec_ext in '' $ac_executable_extensions; do
41071 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
41072 ac_cv_path_SDL_CONFIG="$as_dir/$ac_word$ac_exec_ext"
41073 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
41074 break 2
41075 fi
41076done
41077done
41078
41079 test -z "$ac_cv_path_SDL_CONFIG" && ac_cv_path_SDL_CONFIG="no"
41080 ;;
41081esac
41082fi
41083SDL_CONFIG=$ac_cv_path_SDL_CONFIG
41084
41085if test -n "$SDL_CONFIG"; then
41086 echo "$as_me:$LINENO: result: $SDL_CONFIG" >&5
41087echo "${ECHO_T}$SDL_CONFIG" >&6
41088else
41089 echo "$as_me:$LINENO: result: no" >&5
41090echo "${ECHO_T}no" >&6
41091fi
41092
41093 min_sdl_version=1.2.0
41094 echo "$as_me:$LINENO: checking for SDL - version >= $min_sdl_version" >&5
41095echo $ECHO_N "checking for SDL - version >= $min_sdl_version... $ECHO_C" >&6
41096 no_sdl=""
41097 if test "$SDL_CONFIG" = "no" ; then
41098 no_sdl=yes
41099 else
41100 SDL_CFLAGS=`$SDL_CONFIG $sdlconf_args --cflags`
41101 SDL_LIBS=`$SDL_CONFIG $sdlconf_args --libs`
41102
41103 sdl_major_version=`$SDL_CONFIG $sdl_args --version | \
41104 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
41105 sdl_minor_version=`$SDL_CONFIG $sdl_args --version | \
41106 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
41107 sdl_micro_version=`$SDL_CONFIG $sdl_config_args --version | \
41108 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
41109 if test "x$enable_sdltest" = "xyes" ; then
41110 ac_save_CFLAGS="$CFLAGS"
94acd38e 41111 ac_save_CXXFLAGS="$CXXFLAGS"
a848cd7e
SC
41112 ac_save_LIBS="$LIBS"
41113 CFLAGS="$CFLAGS $SDL_CFLAGS"
94acd38e 41114 CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
a848cd7e
SC
41115 LIBS="$LIBS $SDL_LIBS"
41116 rm -f conf.sdltest
41117 if test "$cross_compiling" = yes; then
41118 echo $ac_n "cross compiling; assumed OK... $ac_c"
41119else
41120 cat >conftest.$ac_ext <<_ACEOF
41121/* confdefs.h. */
41122_ACEOF
41123cat confdefs.h >>conftest.$ac_ext
41124cat >>conftest.$ac_ext <<_ACEOF
41125/* end confdefs.h. */
41126
41127#include <stdio.h>
41128#include <stdlib.h>
41129#include <string.h>
41130#include "SDL.h"
41131
41132char*
41133my_strdup (char *str)
41134{
41135 char *new_str;
41136
41137 if (str)
41138 {
41139 new_str = (char *)malloc ((strlen (str) + 1) * sizeof(char));
41140 strcpy (new_str, str);
41141 }
41142 else
41143 new_str = NULL;
41144
41145 return new_str;
41146}
41147
41148int main (int argc, char *argv[])
41149{
41150 int major, minor, micro;
41151 char *tmp_version;
41152
41153 /* This hangs on some systems (?)
41154 system ("touch conf.sdltest");
41155 */
41156 { FILE *fp = fopen("conf.sdltest", "a"); if ( fp ) fclose(fp); }
41157
41158 /* HP/UX 9 (%@#!) writes to sscanf strings */
41159 tmp_version = my_strdup("$min_sdl_version");
41160 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
41161 printf("%s, bad version string\n", "$min_sdl_version");
41162 exit(1);
41163 }
41164
41165 if (($sdl_major_version > major) ||
41166 (($sdl_major_version == major) && ($sdl_minor_version > minor)) ||
41167 (($sdl_major_version == major) && ($sdl_minor_version == minor) && ($sdl_micro_version >= micro)))
41168 {
41169 return 0;
41170 }
41171 else
41172 {
41173 printf("\n*** 'sdl-config --version' returned %d.%d.%d, but the minimum version\n", $sdl_major_version, $sdl_minor_version, $sdl_micro_version);
41174 printf("*** of SDL required is %d.%d.%d. If sdl-config is correct, then it is\n", major, minor, micro);
41175 printf("*** best to upgrade to the required version.\n");
41176 printf("*** If sdl-config was wrong, set the environment variable SDL_CONFIG\n");
41177 printf("*** to point to the correct copy of sdl-config, and remove the file\n");
41178 printf("*** config.cache before re-running configure\n");
41179 return 1;
41180 }
41181}
41182
41183
41184_ACEOF
41185rm -f conftest$ac_exeext
41186if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41187 (eval $ac_link) 2>&5
41188 ac_status=$?
41189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41190 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
41191 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41192 (eval $ac_try) 2>&5
41193 ac_status=$?
41194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41195 (exit $ac_status); }; }; then
41196 :
41197else
41198 echo "$as_me: program exited with status $ac_status" >&5
41199echo "$as_me: failed program was:" >&5
41200sed 's/^/| /' conftest.$ac_ext >&5
41201
41202( exit $ac_status )
41203no_sdl=yes
41204fi
ac1cb8d3 41205rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
41206fi
41207 CFLAGS="$ac_save_CFLAGS"
94acd38e 41208 CXXFLAGS="$ac_save_CXXFLAGS"
a848cd7e
SC
41209 LIBS="$ac_save_LIBS"
41210 fi
41211 fi
41212 if test "x$no_sdl" = x ; then
41213 echo "$as_me:$LINENO: result: yes" >&5
41214echo "${ECHO_T}yes" >&6
41215
41216 EXTRALIBS_SDL="$SDL_LIBS"
c92ad099 41217 CXXFLAGS="$SDL_CFLAGS $CXXFLAGS"
a848cd7e
SC
41218 cat >>confdefs.h <<\_ACEOF
41219#define wxUSE_LIBSDL 1
41220_ACEOF
41221
41222
41223 else
41224 echo "$as_me:$LINENO: result: no" >&5
41225echo "${ECHO_T}no" >&6
41226 if test "$SDL_CONFIG" = "no" ; then
41227 echo "*** The sdl-config script installed by SDL could not be found"
41228 echo "*** If SDL was installed in PREFIX, make sure PREFIX/bin is in"
41229 echo "*** your path, or set the SDL_CONFIG environment variable to the"
41230 echo "*** full path to sdl-config."
41231 else
41232 if test -f conf.sdltest ; then
41233 :
41234 else
41235 echo "*** Could not run SDL test program, checking why..."
41236 CFLAGS="$CFLAGS $SDL_CFLAGS"
94acd38e 41237 CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
a848cd7e
SC
41238 LIBS="$LIBS $SDL_LIBS"
41239 cat >conftest.$ac_ext <<_ACEOF
41240/* confdefs.h. */
41241_ACEOF
41242cat confdefs.h >>conftest.$ac_ext
41243cat >>conftest.$ac_ext <<_ACEOF
41244/* end confdefs.h. */
41245
41246#include <stdio.h>
41247#include "SDL.h"
41248
41249int main(int argc, char *argv[])
41250{ return 0; }
41251#undef main
41252#define main K_and_R_C_main
41253
41254int
41255main ()
41256{
41257 return 0;
41258 ;
41259 return 0;
41260}
41261_ACEOF
41262rm -f conftest.$ac_objext conftest$ac_exeext
41263if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 41264 (eval $ac_link) 2>conftest.er1
a848cd7e 41265 ac_status=$?
ac1cb8d3
VS
41266 grep -v '^ *+' conftest.er1 >conftest.err
41267 rm -f conftest.er1
41268 cat conftest.err >&5
a848cd7e
SC
41269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41270 (exit $ac_status); } &&
c9a66001 41271 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
41272 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41273 (eval $ac_try) 2>&5
41274 ac_status=$?
41275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41276 (exit $ac_status); }; } &&
41277 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
41278 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41279 (eval $ac_try) 2>&5
41280 ac_status=$?
41281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41282 (exit $ac_status); }; }; then
41283 echo "*** The test program compiled, but did not run. This usually means"
41284 echo "*** that the run-time linker is not finding SDL or finding the wrong"
41285 echo "*** version of SDL. If it is not finding SDL, you'll need to set your"
41286 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
41287 echo "*** to the installed location Also, make sure you have run ldconfig if that"
41288 echo "*** is required on your system"
41289 echo "***"
41290 echo "*** If you have an old version installed, it is best to remove it, although"
41291 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
41292else
41293 echo "$as_me: failed program was:" >&5
41294sed 's/^/| /' conftest.$ac_ext >&5
41295
41296 echo "*** The test program failed to compile or link. See the file config.log for the"
41297 echo "*** exact error that occured. This usually means SDL was incorrectly installed"
41298 echo "*** or that you have moved SDL since it was installed. In the latter case, you"
41299 echo "*** may want to edit the sdl-config script: $SDL_CONFIG"
41300fi
ac1cb8d3
VS
41301rm -f conftest.err conftest.$ac_objext \
41302 conftest$ac_exeext conftest.$ac_ext
a848cd7e 41303 CFLAGS="$ac_save_CFLAGS"
94acd38e 41304 CXXFLAGS="$ac_save_CXXFLAGS"
a848cd7e
SC
41305 LIBS="$ac_save_LIBS"
41306 fi
41307 fi
41308 SDL_CFLAGS=""
41309 SDL_LIBS=""
41310 wxUSE_LIBSDL="no"
41311 fi
41312
41313
41314 rm -f conf.sdltest
41315
41316 if test "$wxUSE_LIBSDL" = "yes" -a "$wxUSE_PLUGINS" = "yes" ; then
41317 WITH_PLUGIN_SDL=1
41318 fi
41319 fi
41320 fi
41321
41322 cat >>confdefs.h <<\_ACEOF
41323#define wxUSE_SOUND 1
41324_ACEOF
41325
41326 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sound"
41327fi
41328
d1c38808
VZ
41329if test "$WXGTK20" = 1; then
41330 if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then
41331 if test "$wxUSE_LIBGNOMEPRINT" = "yes" ; then
41332
41333
41334 succeeded=no
41335
41336 if test -z "$PKG_CONFIG"; then
41337 # Extract the first word of "pkg-config", so it can be a program name with args.
41338set dummy pkg-config; ac_word=$2
41339echo "$as_me:$LINENO: checking for $ac_word" >&5
41340echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
41341if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
41342 echo $ECHO_N "(cached) $ECHO_C" >&6
41343else
41344 case $PKG_CONFIG in
41345 [\\/]* | ?:[\\/]*)
41346 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
41347 ;;
41348 *)
41349 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
41350for as_dir in $PATH
41351do
41352 IFS=$as_save_IFS
41353 test -z "$as_dir" && as_dir=.
41354 for ac_exec_ext in '' $ac_executable_extensions; do
41355 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
41356 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
41357 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
41358 break 2
41359 fi
41360done
41361done
41362
41363 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
41364 ;;
41365esac
41366fi
41367PKG_CONFIG=$ac_cv_path_PKG_CONFIG
41368
41369if test -n "$PKG_CONFIG"; then
41370 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
41371echo "${ECHO_T}$PKG_CONFIG" >&6
41372else
41373 echo "$as_me:$LINENO: result: no" >&5
41374echo "${ECHO_T}no" >&6
41375fi
41376
41377 fi
41378
41379 if test "$PKG_CONFIG" = "no" ; then
41380 echo "*** The pkg-config script could not be found. Make sure it is"
41381 echo "*** in your path, or set the PKG_CONFIG environment variable"
41382 echo "*** to the full path to pkg-config."
41383 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
41384 else
41385 PKG_CONFIG_MIN_VERSION=0.9.0
41386 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
ffa762ff
VS
41387 echo "$as_me:$LINENO: checking for libgnomeprintui-2.2 >= 2.8" >&5
41388echo $ECHO_N "checking for libgnomeprintui-2.2 >= 2.8... $ECHO_C" >&6
d1c38808 41389
ffa762ff 41390 if $PKG_CONFIG --exists "libgnomeprintui-2.2 >= 2.8" ; then
d1c38808
VZ
41391 echo "$as_me:$LINENO: result: yes" >&5
41392echo "${ECHO_T}yes" >&6
41393 succeeded=yes
41394
41395 echo "$as_me:$LINENO: checking LIBGNOMEPRINTUI_CFLAGS" >&5
41396echo $ECHO_N "checking LIBGNOMEPRINTUI_CFLAGS... $ECHO_C" >&6
ffa762ff 41397 LIBGNOMEPRINTUI_CFLAGS=`$PKG_CONFIG --cflags "libgnomeprintui-2.2 >= 2.8"`
d1c38808
VZ
41398 echo "$as_me:$LINENO: result: $LIBGNOMEPRINTUI_CFLAGS" >&5
41399echo "${ECHO_T}$LIBGNOMEPRINTUI_CFLAGS" >&6
41400
41401 echo "$as_me:$LINENO: checking LIBGNOMEPRINTUI_LIBS" >&5
41402echo $ECHO_N "checking LIBGNOMEPRINTUI_LIBS... $ECHO_C" >&6
ffa762ff 41403 LIBGNOMEPRINTUI_LIBS=`$PKG_CONFIG --libs "libgnomeprintui-2.2 >= 2.8"`
d1c38808
VZ
41404 echo "$as_me:$LINENO: result: $LIBGNOMEPRINTUI_LIBS" >&5
41405echo "${ECHO_T}$LIBGNOMEPRINTUI_LIBS" >&6
41406 else
41407 LIBGNOMEPRINTUI_CFLAGS=""
41408 LIBGNOMEPRINTUI_LIBS=""
41409 ## If we have a custom action on failure, don't print errors, but
41410 ## do set a variable so people can do so.
ffa762ff 41411 LIBGNOMEPRINTUI_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libgnomeprintui-2.2 >= 2.8"`
d1c38808
VZ
41412
41413 fi
41414
41415
41416
41417 else
41418 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
41419 echo "*** See http://www.freedesktop.org/software/pkgconfig"
41420 fi
41421 fi
41422
41423 if test $succeeded = yes; then
41424
c92ad099 41425 CXXFLAGS="$LIBGNOMEPRINTUI_CFLAGS $CXXFLAGS"
d1c38808
VZ
41426 cat >>confdefs.h <<\_ACEOF
41427#define wxUSE_LIBGNOMEPRINT 1
41428_ACEOF
41429
41430
41431 else
41432
41433 { echo "$as_me:$LINENO: WARNING: libgnomeprintui not found, library will use standard PostScript printing" >&5
41434echo "$as_me: WARNING: libgnomeprintui not found, library will use standard PostScript printing" >&2;}
41435 wxUSE_LIBGNOMEPRINT="no"
41436
41437
41438 fi
41439
41440 fi
41441 fi
41442fi
41443
2b850ae1
RR
41444if test "$WXGTK20" = 1; then
41445 if test "$wxUSE_MIMETYPE" = "yes" ; then
41446 if test "$wxUSE_LIBGNOMEVFS" = "yes" ; then
41447
41448
41449 succeeded=no
41450
41451 if test -z "$PKG_CONFIG"; then
41452 # Extract the first word of "pkg-config", so it can be a program name with args.
41453set dummy pkg-config; ac_word=$2
41454echo "$as_me:$LINENO: checking for $ac_word" >&5
41455echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
41456if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
41457 echo $ECHO_N "(cached) $ECHO_C" >&6
41458else
41459 case $PKG_CONFIG in
41460 [\\/]* | ?:[\\/]*)
41461 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
41462 ;;
41463 *)
41464 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
41465for as_dir in $PATH
41466do
41467 IFS=$as_save_IFS
41468 test -z "$as_dir" && as_dir=.
41469 for ac_exec_ext in '' $ac_executable_extensions; do
41470 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
41471 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
41472 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
41473 break 2
41474 fi
41475done
41476done
41477
41478 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
41479 ;;
41480esac
41481fi
41482PKG_CONFIG=$ac_cv_path_PKG_CONFIG
41483
41484if test -n "$PKG_CONFIG"; then
41485 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
41486echo "${ECHO_T}$PKG_CONFIG" >&6
41487else
41488 echo "$as_me:$LINENO: result: no" >&5
41489echo "${ECHO_T}no" >&6
41490fi
41491
41492 fi
41493
41494 if test "$PKG_CONFIG" = "no" ; then
41495 echo "*** The pkg-config script could not be found. Make sure it is"
41496 echo "*** in your path, or set the PKG_CONFIG environment variable"
41497 echo "*** to the full path to pkg-config."
41498 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
41499 else
41500 PKG_CONFIG_MIN_VERSION=0.9.0
41501 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
41502 echo "$as_me:$LINENO: checking for gnome-vfs-2.0 >= 2.0" >&5
41503echo $ECHO_N "checking for gnome-vfs-2.0 >= 2.0... $ECHO_C" >&6
41504
41505 if $PKG_CONFIG --exists "gnome-vfs-2.0 >= 2.0" ; then
41506 echo "$as_me:$LINENO: result: yes" >&5
41507echo "${ECHO_T}yes" >&6
41508 succeeded=yes
41509
41510 echo "$as_me:$LINENO: checking GNOMEVFS_CFLAGS" >&5
41511echo $ECHO_N "checking GNOMEVFS_CFLAGS... $ECHO_C" >&6
41512 GNOMEVFS_CFLAGS=`$PKG_CONFIG --cflags "gnome-vfs-2.0 >= 2.0"`
41513 echo "$as_me:$LINENO: result: $GNOMEVFS_CFLAGS" >&5
41514echo "${ECHO_T}$GNOMEVFS_CFLAGS" >&6
41515
41516 echo "$as_me:$LINENO: checking GNOMEVFS_LIBS" >&5
41517echo $ECHO_N "checking GNOMEVFS_LIBS... $ECHO_C" >&6
41518 GNOMEVFS_LIBS=`$PKG_CONFIG --libs "gnome-vfs-2.0 >= 2.0"`
41519 echo "$as_me:$LINENO: result: $GNOMEVFS_LIBS" >&5
41520echo "${ECHO_T}$GNOMEVFS_LIBS" >&6
41521 else
41522 GNOMEVFS_CFLAGS=""
41523 GNOMEVFS_LIBS=""
41524 ## If we have a custom action on failure, don't print errors, but
41525 ## do set a variable so people can do so.
41526 GNOMEVFS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gnome-vfs-2.0 >= 2.0"`
41527
41528 fi
41529
41530
41531
41532 else
41533 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
41534 echo "*** See http://www.freedesktop.org/software/pkgconfig"
41535 fi
41536 fi
41537
41538 if test $succeeded = yes; then
41539
41540 CXXFLAGS="$GNOMEVFS_CFLAGS $CXXFLAGS"
41541 cat >>confdefs.h <<\_ACEOF
41542#define wxUSE_LIBGNOMEVFS 1
41543_ACEOF
41544
41545
41546 else
41547
41548 { echo "$as_me:$LINENO: WARNING: libgnomevfs not found, library won't be able to associate MIME type" >&5
41549echo "$as_me: WARNING: libgnomevfs not found, library won't be able to associate MIME type" >&2;}
41550 wxUSE_LIBGNOMEVFS="no"
41551
41552
41553 fi
41554
41555 fi
41556 fi
41557fi
41558
3565d135
RR
41559if test "$WXGTK20" = 1; then
41560 if test "$wxUSE_LIBHILDON" = "yes" ; then
41561
41562 succeeded=no
41563
41564 if test -z "$PKG_CONFIG"; then
41565 # Extract the first word of "pkg-config", so it can be a program name with args.
41566set dummy pkg-config; ac_word=$2
41567echo "$as_me:$LINENO: checking for $ac_word" >&5
41568echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
41569if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
41570 echo $ECHO_N "(cached) $ECHO_C" >&6
41571else
41572 case $PKG_CONFIG in
41573 [\\/]* | ?:[\\/]*)
41574 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
41575 ;;
41576 *)
41577 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
41578for as_dir in $PATH
41579do
41580 IFS=$as_save_IFS
41581 test -z "$as_dir" && as_dir=.
41582 for ac_exec_ext in '' $ac_executable_extensions; do
41583 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
41584 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
41585 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
41586 break 2
41587 fi
41588done
41589done
41590
41591 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
41592 ;;
41593esac
41594fi
41595PKG_CONFIG=$ac_cv_path_PKG_CONFIG
41596
41597if test -n "$PKG_CONFIG"; then
41598 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
41599echo "${ECHO_T}$PKG_CONFIG" >&6
41600else
41601 echo "$as_me:$LINENO: result: no" >&5
41602echo "${ECHO_T}no" >&6
41603fi
41604
41605 fi
41606
41607 if test "$PKG_CONFIG" = "no" ; then
41608 echo "*** The pkg-config script could not be found. Make sure it is"
41609 echo "*** in your path, or set the PKG_CONFIG environment variable"
41610 echo "*** to the full path to pkg-config."
41611 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
41612 else
41613 PKG_CONFIG_MIN_VERSION=0.9.0
41614 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
41615 echo "$as_me:$LINENO: checking for hildon-lgpl >= 0.9" >&5
41616echo $ECHO_N "checking for hildon-lgpl >= 0.9... $ECHO_C" >&6
41617
41618 if $PKG_CONFIG --exists "hildon-lgpl >= 0.9" ; then
41619 echo "$as_me:$LINENO: result: yes" >&5
41620echo "${ECHO_T}yes" >&6
41621 succeeded=yes
41622
41623 echo "$as_me:$LINENO: checking HILDON_CFLAGS" >&5
41624echo $ECHO_N "checking HILDON_CFLAGS... $ECHO_C" >&6
41625 HILDON_CFLAGS=`$PKG_CONFIG --cflags "hildon-lgpl >= 0.9"`
41626 echo "$as_me:$LINENO: result: $HILDON_CFLAGS" >&5
41627echo "${ECHO_T}$HILDON_CFLAGS" >&6
41628
41629 echo "$as_me:$LINENO: checking HILDON_LIBS" >&5
41630echo $ECHO_N "checking HILDON_LIBS... $ECHO_C" >&6
41631 HILDON_LIBS=`$PKG_CONFIG --libs "hildon-lgpl >= 0.9"`
41632 echo "$as_me:$LINENO: result: $HILDON_LIBS" >&5
41633echo "${ECHO_T}$HILDON_LIBS" >&6
41634 else
41635 HILDON_CFLAGS=""
41636 HILDON_LIBS=""
41637 ## If we have a custom action on failure, don't print errors, but
41638 ## do set a variable so people can do so.
41639 HILDON_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "hildon-lgpl >= 0.9"`
41640
41641 fi
41642
41643
41644
41645 else
41646 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
41647 echo "*** See http://www.freedesktop.org/software/pkgconfig"
41648 fi
41649 fi
41650
41651 if test $succeeded = yes; then
41652
41653 EXTRALIBS_HILDON="$HILDON_LIBS"
41654 CXXFLAGS="$CXXFLAGS $HILDON_CFLAGS"
41655 cat >>confdefs.h <<\_ACEOF
41656#define wxUSE_LIBHILDON 1
41657_ACEOF
41658
41659
41660 else
41661
41662 { echo "$as_me:$LINENO: WARNING: libhildon_lgpl not found" >&5
41663echo "$as_me: WARNING: libhildon_lgpl not found" >&2;}
41664 wxUSE_LIBHILDON="no"
41665
41666
41667 fi
41668
41669 fi
41670fi
d1c38808 41671
a848cd7e
SC
41672if test "$wxUSE_CMDLINE_PARSER" = "yes"; then
41673 cat >>confdefs.h <<\_ACEOF
41674#define wxUSE_CMDLINE_PARSER 1
41675_ACEOF
41676
41677fi
41678
41679if test "$wxUSE_STOPWATCH" = "yes"; then
41680 cat >>confdefs.h <<\_ACEOF
41681#define wxUSE_STOPWATCH 1
41682_ACEOF
41683
41684fi
41685
41686if test "$wxUSE_DATETIME" = "yes"; then
41687 cat >>confdefs.h <<\_ACEOF
41688#define wxUSE_DATETIME 1
41689_ACEOF
41690
41691fi
41692
41693if test "$wxUSE_FILE" = "yes"; then
41694 cat >>confdefs.h <<\_ACEOF
41695#define wxUSE_FILE 1
41696_ACEOF
41697
41698fi
41699
41700if test "$wxUSE_FFILE" = "yes"; then
41701 cat >>confdefs.h <<\_ACEOF
41702#define wxUSE_FFILE 1
41703_ACEOF
41704
41705fi
41706
41707if test "$wxUSE_FILESYSTEM" = "yes"; then
41708 cat >>confdefs.h <<\_ACEOF
41709#define wxUSE_FILESYSTEM 1
41710_ACEOF
41711
41712fi
41713
41714if test "$wxUSE_FS_ZIP" = "yes"; then
41715 cat >>confdefs.h <<\_ACEOF
41716#define wxUSE_FS_ZIP 1
41717_ACEOF
41718
41719fi
41720
9e8e867f 41721if test "$wxUSE_ARCHIVE_STREAMS" = "yes"; then
a848cd7e 41722 cat >>confdefs.h <<\_ACEOF
9e8e867f 41723#define wxUSE_ARCHIVE_STREAMS 1
81f90336
MW
41724_ACEOF
41725
41726fi
41727
41728if test "$wxUSE_ZIPSTREAM" = "yes"; then
9e8e867f 41729 if test "$wxUSE_ARCHIVE_STREAMS" != "yes"; then
81f90336
MW
41730 { echo "$as_me:$LINENO: WARNING: wxZip requires wxArchive... disabled" >&5
41731echo "$as_me: WARNING: wxZip requires wxArchive... disabled" >&2;}
41732 elif test "$wxUSE_ZLIB" = "no"; then
41733 { echo "$as_me:$LINENO: WARNING: wxZip requires wxZlib... disabled" >&5
41734echo "$as_me: WARNING: wxZip requires wxZlib... disabled" >&2;}
41735 else
41736 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
41737#define wxUSE_ZIPSTREAM 1
41738_ACEOF
41739
81f90336 41740 fi
a848cd7e
SC
41741fi
41742
a848cd7e 41743if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
18228ab4
MW
41744 if test "$USE_UNIX" != 1; then
41745 { echo "$as_me:$LINENO: WARNING: Catching fatal exceptions not currently supported on this system, wxApp::OnFatalException will not be called" >&5
41746echo "$as_me: WARNING: Catching fatal exceptions not currently supported on this system, wxApp::OnFatalException will not be called" >&2;}
41747 wxUSE_ON_FATAL_EXCEPTION=no
41748 else
41749 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
41750#define wxUSE_ON_FATAL_EXCEPTION 1
41751_ACEOF
41752
18228ab4 41753 fi
a848cd7e
SC
41754fi
41755
eaff0f0d
VZ
41756if test "$wxUSE_STACKWALKER" = "yes"; then
41757 cat >>confdefs.h <<\_ACEOF
41758#define wxUSE_STACKWALKER 1
41759_ACEOF
41760
41761fi
41762
36b6448c 41763if test "$wxUSE_DEBUGREPORT" = "yes"; then
18228ab4
MW
41764 if test "$USE_UNIX" != "1" -a "$USE_WIN32" != "1"; then
41765 { echo "$as_me:$LINENO: WARNING: Creating debug reports not currently supported on this system, disabled" >&5
41766echo "$as_me: WARNING: Creating debug reports not currently supported on this system, disabled" >&2;}
dfe0c803
JS
41767 wxUSE_DEBUGREPORT=no
41768 else
41769 cat >>confdefs.h <<\_ACEOF
36b6448c
VZ
41770#define wxUSE_DEBUGREPORT 1
41771_ACEOF
41772
21dfc162
MW
41773 if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
41774 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS debugrpt"
41775 fi
dfe0c803 41776 fi
36b6448c
VZ
41777fi
41778
a848cd7e
SC
41779if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
41780 cat >>confdefs.h <<\_ACEOF
41781#define wxUSE_SNGLINST_CHECKER 1
41782_ACEOF
41783
41784fi
41785
41786if test "$wxUSE_BUSYINFO" = "yes"; then
41787 cat >>confdefs.h <<\_ACEOF
41788#define wxUSE_BUSYINFO 1
41789_ACEOF
41790
41791fi
41792
41793if test "$wxUSE_STD_IOSTREAM" = "yes"; then
41794 cat >>confdefs.h <<\_ACEOF
41795#define wxUSE_STD_IOSTREAM 1
41796_ACEOF
41797
41798fi
41799
59746b65
MW
41800if test "$wxUSE_STD_STRING" = "yes"; then
41801 cat >>confdefs.h <<\_ACEOF
41802#define wxUSE_STD_STRING 1
41803_ACEOF
41804
41805fi
41806
07158944
VZ
41807if test "$wxUSE_STDPATHS" = "yes"; then
41808 cat >>confdefs.h <<\_ACEOF
41809#define wxUSE_STDPATHS 1
41810_ACEOF
41811
41812fi
41813
a848cd7e
SC
41814if test "$wxUSE_TEXTBUFFER" = "yes"; then
41815 cat >>confdefs.h <<\_ACEOF
41816#define wxUSE_TEXTBUFFER 1
41817_ACEOF
41818
41819fi
41820
41821if test "$wxUSE_TEXTFILE" = "yes"; then
41822 if test "$wxUSE_FILE" != "yes" -o "$wxUSE_TEXTBUFFER" != "yes" ; then
41823 { echo "$as_me:$LINENO: WARNING: wxTextFile requires wxFile and wxTextBuffer... disabled" >&5
41824echo "$as_me: WARNING: wxTextFile requires wxFile and wxTextBuffer... disabled" >&2;}
41825 else
41826 cat >>confdefs.h <<\_ACEOF
41827#define wxUSE_TEXTFILE 1
41828_ACEOF
41829
41830 fi
41831fi
41832
41833if test "$wxUSE_CONFIG" = "yes" ; then
41834 if test "$wxUSE_TEXTFILE" != "yes"; then
41835 { echo "$as_me:$LINENO: WARNING: wxConfig requires wxTextFile... disabled" >&5
41836echo "$as_me: WARNING: wxConfig requires wxTextFile... disabled" >&2;}
41837 else
41838 cat >>confdefs.h <<\_ACEOF
41839#define wxUSE_CONFIG 1
89be85c2
VS
41840_ACEOF
41841
41842 cat >>confdefs.h <<\_ACEOF
41843#define wxUSE_CONFIG_NATIVE 1
a848cd7e
SC
41844_ACEOF
41845
41846 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS config"
41847 fi
41848fi
41849
41850if test "$wxUSE_INTL" = "yes" ; then
41851 if test "$wxUSE_FILE" != "yes"; then
41852 { echo "$as_me:$LINENO: WARNING: I18n code requires wxFile... disabled" >&5
41853echo "$as_me: WARNING: I18n code requires wxFile... disabled" >&2;}
41854 else
41855 cat >>confdefs.h <<\_ACEOF
41856#define wxUSE_INTL 1
41857_ACEOF
41858
41859 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS internat"
41860 GUIDIST="$GUIDIST INTL_DIST"
41861 fi
41862fi
41863
41864if test "$wxUSE_LOG" = "yes"; then
41865 cat >>confdefs.h <<\_ACEOF
41866#define wxUSE_LOG 1
41867_ACEOF
41868
41869
41870 if test "$wxUSE_LOGGUI" = "yes"; then
41871 cat >>confdefs.h <<\_ACEOF
41872#define wxUSE_LOGGUI 1
41873_ACEOF
41874
41875 fi
41876
41877 if test "$wxUSE_LOGWINDOW" = "yes"; then
41878 cat >>confdefs.h <<\_ACEOF
41879#define wxUSE_LOGWINDOW 1
41880_ACEOF
41881
41882 fi
41883
41884 if test "$wxUSE_LOGDIALOG" = "yes"; then
41885 cat >>confdefs.h <<\_ACEOF
41886#define wxUSE_LOG_DIALOG 1
41887_ACEOF
41888
41889 fi
0b78747f
MW
41890
41891 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS keyboard"
a848cd7e
SC
41892fi
41893
41894if test "$wxUSE_LONGLONG" = "yes"; then
41895 cat >>confdefs.h <<\_ACEOF
41896#define wxUSE_LONGLONG 1
41897_ACEOF
41898
41899fi
41900
41901if test "$wxUSE_GEOMETRY" = "yes"; then
41902 cat >>confdefs.h <<\_ACEOF
41903#define wxUSE_GEOMETRY 1
41904_ACEOF
41905
41906fi
41907
a848cd7e
SC
41908if test "$wxUSE_STREAMS" = "yes" ; then
41909 cat >>confdefs.h <<\_ACEOF
41910#define wxUSE_STREAMS 1
41911_ACEOF
41912
41913fi
41914
8b6682b9
JS
41915if test "$wxUSE_PRINTF_POS_PARAMS" = "yes"; then
41916 cat >>confdefs.h <<\_ACEOF
41917#define wxUSE_PRINTF_POS_PARAMS 1
41918_ACEOF
41919
41920fi
41921
41922
a848cd7e
SC
41923
41924if test "$wxUSE_DATETIME" = "yes"; then
41925
41926for ac_func in strptime
41927do
41928as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
41929echo "$as_me:$LINENO: checking for $ac_func" >&5
41930echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
41931if eval "test \"\${$as_ac_var+set}\" = set"; then
41932 echo $ECHO_N "(cached) $ECHO_C" >&6
41933else
41934 cat >conftest.$ac_ext <<_ACEOF
41935/* confdefs.h. */
41936_ACEOF
41937cat confdefs.h >>conftest.$ac_ext
41938cat >>conftest.$ac_ext <<_ACEOF
41939/* end confdefs.h. */
ac1cb8d3
VS
41940/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
41941 For example, HP-UX 11i <limits.h> declares gettimeofday. */
41942#define $ac_func innocuous_$ac_func
41943
a848cd7e
SC
41944/* System header to define __stub macros and hopefully few prototypes,
41945 which can conflict with char $ac_func (); below.
41946 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41947 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 41948
a848cd7e
SC
41949#ifdef __STDC__
41950# include <limits.h>
41951#else
41952# include <assert.h>
41953#endif
ac1cb8d3
VS
41954
41955#undef $ac_func
41956
a848cd7e
SC
41957/* Override any gcc2 internal prototype to avoid an error. */
41958#ifdef __cplusplus
41959extern "C"
41960{
41961#endif
41962/* We use char because int might match the return type of a gcc2
41963 builtin and then its argument prototype would still apply. */
41964char $ac_func ();
41965/* The GNU C library defines this for functions which it implements
41966 to always fail with ENOSYS. Some functions are actually named
41967 something starting with __ and the normal name is an alias. */
41968#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
41969choke me
41970#else
41971char (*f) () = $ac_func;
41972#endif
41973#ifdef __cplusplus
41974}
41975#endif
41976
41977int
41978main ()
41979{
41980return f != $ac_func;
41981 ;
41982 return 0;
41983}
41984_ACEOF
41985rm -f conftest.$ac_objext conftest$ac_exeext
41986if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 41987 (eval $ac_link) 2>conftest.er1
a848cd7e 41988 ac_status=$?
ac1cb8d3
VS
41989 grep -v '^ *+' conftest.er1 >conftest.err
41990 rm -f conftest.er1
41991 cat conftest.err >&5
a848cd7e
SC
41992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41993 (exit $ac_status); } &&
c9a66001 41994 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
41995 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41996 (eval $ac_try) 2>&5
41997 ac_status=$?
41998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41999 (exit $ac_status); }; } &&
42000 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
42001 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42002 (eval $ac_try) 2>&5
42003 ac_status=$?
42004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42005 (exit $ac_status); }; }; then
42006 eval "$as_ac_var=yes"
42007else
42008 echo "$as_me: failed program was:" >&5
42009sed 's/^/| /' conftest.$ac_ext >&5
42010
42011eval "$as_ac_var=no"
42012fi
ac1cb8d3
VS
42013rm -f conftest.err conftest.$ac_objext \
42014 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
42015fi
42016echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
42017echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
42018if test `eval echo '${'$as_ac_var'}'` = yes; then
42019 cat >>confdefs.h <<_ACEOF
42020#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
42021_ACEOF
42022
42023fi
42024done
42025
f536f005
VZ
42026 if test "$ac_cv_func_strptime" = "yes"; then
42027 echo "$as_me:$LINENO: checking for strptime declaration" >&5
42028echo $ECHO_N "checking for strptime declaration... $ECHO_C" >&6
42029if test "${wx_cv_func_strptime_decl+set}" = set; then
42030 echo $ECHO_N "(cached) $ECHO_C" >&6
42031else
42032
f536f005
VZ
42033 cat >conftest.$ac_ext <<_ACEOF
42034/* confdefs.h. */
42035_ACEOF
42036cat confdefs.h >>conftest.$ac_ext
42037cat >>conftest.$ac_ext <<_ACEOF
42038/* end confdefs.h. */
42039
42040 #include <time.h>
42041
42042int
42043main ()
42044{
42045
42046 struct tm t;
42047 strptime("foo", "bar", &t);
42048
42049 ;
42050 return 0;
42051}
42052_ACEOF
42053rm -f conftest.$ac_objext
42054if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
42055 (eval $ac_compile) 2>conftest.er1
42056 ac_status=$?
42057 grep -v '^ *+' conftest.er1 >conftest.err
42058 rm -f conftest.er1
42059 cat conftest.err >&5
42060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42061 (exit $ac_status); } &&
c9a66001 42062 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
f536f005
VZ
42063 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42064 (eval $ac_try) 2>&5
42065 ac_status=$?
42066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42067 (exit $ac_status); }; } &&
42068 { ac_try='test -s conftest.$ac_objext'
42069 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42070 (eval $ac_try) 2>&5
42071 ac_status=$?
42072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42073 (exit $ac_status); }; }; then
42074 wx_cv_func_strptime_decl=yes
42075else
42076 echo "$as_me: failed program was:" >&5
42077sed 's/^/| /' conftest.$ac_ext >&5
42078
42079wx_cv_func_strptime_decl=no
42080
42081fi
42082rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
f536f005
VZ
42083
42084
42085fi
42086echo "$as_me:$LINENO: result: $wx_cv_func_strptime_decl" >&5
42087echo "${ECHO_T}$wx_cv_func_strptime_decl" >&6
42088 fi
42089 if test "$wx_cv_func_strptime_decl" = "yes"; then
42090 cat >>confdefs.h <<\_ACEOF
42091#define HAVE_STRPTIME_DECL 1
42092_ACEOF
42093
42094 fi
a848cd7e
SC
42095
42096 echo "$as_me:$LINENO: checking for timezone variable in <time.h>" >&5
42097echo $ECHO_N "checking for timezone variable in <time.h>... $ECHO_C" >&6
42098if test "${wx_cv_var_timezone+set}" = set; then
42099 echo $ECHO_N "(cached) $ECHO_C" >&6
42100else
42101
42102 cat >conftest.$ac_ext <<_ACEOF
42103/* confdefs.h. */
42104_ACEOF
42105cat confdefs.h >>conftest.$ac_ext
42106cat >>conftest.$ac_ext <<_ACEOF
42107/* end confdefs.h. */
42108
42109 #include <time.h>
42110
42111int
42112main ()
42113{
42114
42115 int tz;
42116 tz = timezone;
42117
42118 ;
42119 return 0;
42120}
42121_ACEOF
42122rm -f conftest.$ac_objext
42123if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 42124 (eval $ac_compile) 2>conftest.er1
a848cd7e 42125 ac_status=$?
ac1cb8d3
VS
42126 grep -v '^ *+' conftest.er1 >conftest.err
42127 rm -f conftest.er1
42128 cat conftest.err >&5
a848cd7e
SC
42129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42130 (exit $ac_status); } &&
c9a66001 42131 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
42132 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42133 (eval $ac_try) 2>&5
42134 ac_status=$?
42135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42136 (exit $ac_status); }; } &&
42137 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
42138 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42139 (eval $ac_try) 2>&5
42140 ac_status=$?
42141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42142 (exit $ac_status); }; }; then
42143
42144 wx_cv_var_timezone=timezone
42145
42146else
42147 echo "$as_me: failed program was:" >&5
42148sed 's/^/| /' conftest.$ac_ext >&5
42149
42150
42151 cat >conftest.$ac_ext <<_ACEOF
42152/* confdefs.h. */
42153_ACEOF
42154cat confdefs.h >>conftest.$ac_ext
42155cat >>conftest.$ac_ext <<_ACEOF
42156/* end confdefs.h. */
42157
42158 #include <time.h>
42159
42160int
42161main ()
42162{
42163
42164 int tz;
42165 tz = _timezone;
42166
42167 ;
42168 return 0;
42169}
42170_ACEOF
42171rm -f conftest.$ac_objext
42172if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 42173 (eval $ac_compile) 2>conftest.er1
a848cd7e 42174 ac_status=$?
ac1cb8d3
VS
42175 grep -v '^ *+' conftest.er1 >conftest.err
42176 rm -f conftest.er1
42177 cat conftest.err >&5
a848cd7e
SC
42178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42179 (exit $ac_status); } &&
c9a66001 42180 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
42181 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42182 (eval $ac_try) 2>&5
42183 ac_status=$?
42184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42185 (exit $ac_status); }; } &&
42186 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
42187 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42188 (eval $ac_try) 2>&5
42189 ac_status=$?
42190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42191 (exit $ac_status); }; }; then
42192
42193 wx_cv_var_timezone=_timezone
42194
42195else
42196 echo "$as_me: failed program was:" >&5
42197sed 's/^/| /' conftest.$ac_ext >&5
42198
42199
42200 cat >conftest.$ac_ext <<_ACEOF
42201/* confdefs.h. */
42202_ACEOF
42203cat confdefs.h >>conftest.$ac_ext
42204cat >>conftest.$ac_ext <<_ACEOF
42205/* end confdefs.h. */
42206
42207 #include <time.h>
42208
42209int
42210main ()
42211{
42212
42213 int tz;
42214 tz = __timezone;
42215
42216 ;
42217 return 0;
42218}
42219_ACEOF
42220rm -f conftest.$ac_objext
42221if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 42222 (eval $ac_compile) 2>conftest.er1
a848cd7e 42223 ac_status=$?
ac1cb8d3
VS
42224 grep -v '^ *+' conftest.er1 >conftest.err
42225 rm -f conftest.er1
42226 cat conftest.err >&5
a848cd7e
SC
42227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42228 (exit $ac_status); } &&
c9a66001 42229 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
42230 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42231 (eval $ac_try) 2>&5
42232 ac_status=$?
42233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42234 (exit $ac_status); }; } &&
42235 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
42236 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42237 (eval $ac_try) 2>&5
42238 ac_status=$?
42239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42240 (exit $ac_status); }; }; then
42241
42242 wx_cv_var_timezone=__timezone
42243
42244else
42245 echo "$as_me: failed program was:" >&5
42246sed 's/^/| /' conftest.$ac_ext >&5
42247
42248
42249 if test "$USE_DOS" = 0 ; then
42250 { echo "$as_me:$LINENO: WARNING: no timezone variable" >&5
42251echo "$as_me: WARNING: no timezone variable" >&2;}
42252 fi
42253
42254
42255fi
ac1cb8d3 42256rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
42257
42258
42259fi
ac1cb8d3 42260rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
42261
42262
42263fi
ac1cb8d3 42264rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
42265
42266
42267fi
42268echo "$as_me:$LINENO: result: $wx_cv_var_timezone" >&5
42269echo "${ECHO_T}$wx_cv_var_timezone" >&6
42270
42271 if test "x$wx_cv_var_timezone" != x ; then
42272 cat >>confdefs.h <<_ACEOF
42273#define WX_TIMEZONE $wx_cv_var_timezone
42274_ACEOF
42275
42276 fi
42277
42278
42279for ac_func in localtime
42280do
42281as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
42282echo "$as_me:$LINENO: checking for $ac_func" >&5
42283echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
42284if eval "test \"\${$as_ac_var+set}\" = set"; then
42285 echo $ECHO_N "(cached) $ECHO_C" >&6
42286else
42287 cat >conftest.$ac_ext <<_ACEOF
42288/* confdefs.h. */
42289_ACEOF
42290cat confdefs.h >>conftest.$ac_ext
42291cat >>conftest.$ac_ext <<_ACEOF
42292/* end confdefs.h. */
ac1cb8d3
VS
42293/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
42294 For example, HP-UX 11i <limits.h> declares gettimeofday. */
42295#define $ac_func innocuous_$ac_func
42296
a848cd7e
SC
42297/* System header to define __stub macros and hopefully few prototypes,
42298 which can conflict with char $ac_func (); below.
42299 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
42300 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 42301
a848cd7e
SC
42302#ifdef __STDC__
42303# include <limits.h>
42304#else
42305# include <assert.h>
42306#endif
ac1cb8d3
VS
42307
42308#undef $ac_func
42309
a848cd7e
SC
42310/* Override any gcc2 internal prototype to avoid an error. */
42311#ifdef __cplusplus
42312extern "C"
42313{
42314#endif
42315/* We use char because int might match the return type of a gcc2
42316 builtin and then its argument prototype would still apply. */
42317char $ac_func ();
42318/* The GNU C library defines this for functions which it implements
42319 to always fail with ENOSYS. Some functions are actually named
42320 something starting with __ and the normal name is an alias. */
42321#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
42322choke me
42323#else
42324char (*f) () = $ac_func;
42325#endif
42326#ifdef __cplusplus
42327}
42328#endif
42329
42330int
42331main ()
42332{
42333return f != $ac_func;
42334 ;
42335 return 0;
42336}
42337_ACEOF
42338rm -f conftest.$ac_objext conftest$ac_exeext
42339if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 42340 (eval $ac_link) 2>conftest.er1
a848cd7e 42341 ac_status=$?
ac1cb8d3
VS
42342 grep -v '^ *+' conftest.er1 >conftest.err
42343 rm -f conftest.er1
42344 cat conftest.err >&5
a848cd7e
SC
42345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42346 (exit $ac_status); } &&
c9a66001 42347 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
42348 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42349 (eval $ac_try) 2>&5
42350 ac_status=$?
42351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42352 (exit $ac_status); }; } &&
42353 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
42354 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42355 (eval $ac_try) 2>&5
42356 ac_status=$?
42357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42358 (exit $ac_status); }; }; then
42359 eval "$as_ac_var=yes"
42360else
42361 echo "$as_me: failed program was:" >&5
42362sed 's/^/| /' conftest.$ac_ext >&5
42363
42364eval "$as_ac_var=no"
42365fi
ac1cb8d3
VS
42366rm -f conftest.err conftest.$ac_objext \
42367 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
42368fi
42369echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
42370echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
42371if test `eval echo '${'$as_ac_var'}'` = yes; then
42372 cat >>confdefs.h <<_ACEOF
42373#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
42374_ACEOF
42375
42376fi
42377done
42378
42379
42380 if test "$ac_cv_func_localtime" = "yes"; then
42381 echo "$as_me:$LINENO: checking for tm_gmtoff in struct tm" >&5
42382echo $ECHO_N "checking for tm_gmtoff in struct tm... $ECHO_C" >&6
42383if test "${wx_cv_struct_tm_has_gmtoff+set}" = set; then
42384 echo $ECHO_N "(cached) $ECHO_C" >&6
42385else
42386
42387 cat >conftest.$ac_ext <<_ACEOF
42388/* confdefs.h. */
42389_ACEOF
42390cat confdefs.h >>conftest.$ac_ext
42391cat >>conftest.$ac_ext <<_ACEOF
42392/* end confdefs.h. */
42393
42394 #include <time.h>
42395
42396int
42397main ()
42398{
42399
42400 struct tm tm;
42401 tm.tm_gmtoff++;
42402
42403 ;
42404 return 0;
42405}
42406_ACEOF
42407rm -f conftest.$ac_objext
42408if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 42409 (eval $ac_compile) 2>conftest.er1
a848cd7e 42410 ac_status=$?
ac1cb8d3
VS
42411 grep -v '^ *+' conftest.er1 >conftest.err
42412 rm -f conftest.er1
42413 cat conftest.err >&5
a848cd7e
SC
42414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42415 (exit $ac_status); } &&
c9a66001 42416 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
42417 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42418 (eval $ac_try) 2>&5
42419 ac_status=$?
42420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42421 (exit $ac_status); }; } &&
42422 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
42423 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42424 (eval $ac_try) 2>&5
42425 ac_status=$?
42426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42427 (exit $ac_status); }; }; then
42428
42429 wx_cv_struct_tm_has_gmtoff=yes
42430
42431else
42432 echo "$as_me: failed program was:" >&5
42433sed 's/^/| /' conftest.$ac_ext >&5
42434
42435wx_cv_struct_tm_has_gmtoff=no
42436
42437fi
ac1cb8d3 42438rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
42439
42440fi
42441echo "$as_me:$LINENO: result: $wx_cv_struct_tm_has_gmtoff" >&5
42442echo "${ECHO_T}$wx_cv_struct_tm_has_gmtoff" >&6
42443 fi
42444
42445 if test "$wx_cv_struct_tm_has_gmtoff" = "yes"; then
42446 cat >>confdefs.h <<\_ACEOF
42447#define WX_GMTOFF_IN_TM 1
42448_ACEOF
42449
42450 fi
42451
42452
42453
42454for ac_func in gettimeofday ftime
42455do
42456as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
42457echo "$as_me:$LINENO: checking for $ac_func" >&5
42458echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
42459if eval "test \"\${$as_ac_var+set}\" = set"; then
42460 echo $ECHO_N "(cached) $ECHO_C" >&6
42461else
42462 cat >conftest.$ac_ext <<_ACEOF
42463/* confdefs.h. */
42464_ACEOF
42465cat confdefs.h >>conftest.$ac_ext
42466cat >>conftest.$ac_ext <<_ACEOF
42467/* end confdefs.h. */
ac1cb8d3
VS
42468/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
42469 For example, HP-UX 11i <limits.h> declares gettimeofday. */
42470#define $ac_func innocuous_$ac_func
42471
a848cd7e
SC
42472/* System header to define __stub macros and hopefully few prototypes,
42473 which can conflict with char $ac_func (); below.
42474 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
42475 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 42476
a848cd7e
SC
42477#ifdef __STDC__
42478# include <limits.h>
42479#else
42480# include <assert.h>
42481#endif
ac1cb8d3
VS
42482
42483#undef $ac_func
42484
a848cd7e
SC
42485/* Override any gcc2 internal prototype to avoid an error. */
42486#ifdef __cplusplus
42487extern "C"
42488{
42489#endif
42490/* We use char because int might match the return type of a gcc2
42491 builtin and then its argument prototype would still apply. */
42492char $ac_func ();
42493/* The GNU C library defines this for functions which it implements
42494 to always fail with ENOSYS. Some functions are actually named
42495 something starting with __ and the normal name is an alias. */
42496#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
42497choke me
42498#else
42499char (*f) () = $ac_func;
42500#endif
42501#ifdef __cplusplus
42502}
42503#endif
42504
42505int
42506main ()
42507{
42508return f != $ac_func;
42509 ;
42510 return 0;
42511}
42512_ACEOF
42513rm -f conftest.$ac_objext conftest$ac_exeext
42514if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 42515 (eval $ac_link) 2>conftest.er1
a848cd7e 42516 ac_status=$?
ac1cb8d3
VS
42517 grep -v '^ *+' conftest.er1 >conftest.err
42518 rm -f conftest.er1
42519 cat conftest.err >&5
a848cd7e
SC
42520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42521 (exit $ac_status); } &&
c9a66001 42522 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
42523 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42524 (eval $ac_try) 2>&5
42525 ac_status=$?
42526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42527 (exit $ac_status); }; } &&
42528 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
42529 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42530 (eval $ac_try) 2>&5
42531 ac_status=$?
42532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42533 (exit $ac_status); }; }; then
42534 eval "$as_ac_var=yes"
42535else
42536 echo "$as_me: failed program was:" >&5
42537sed 's/^/| /' conftest.$ac_ext >&5
42538
42539eval "$as_ac_var=no"
42540fi
ac1cb8d3
VS
42541rm -f conftest.err conftest.$ac_objext \
42542 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
42543fi
42544echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
42545echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
42546if test `eval echo '${'$as_ac_var'}'` = yes; then
42547 cat >>confdefs.h <<_ACEOF
42548#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
42549_ACEOF
42550 break
42551fi
42552done
42553
42554
42555 if test "$ac_cv_func_gettimeofday" = "yes"; then
42556 echo "$as_me:$LINENO: checking whether gettimeofday takes two arguments" >&5
42557echo $ECHO_N "checking whether gettimeofday takes two arguments... $ECHO_C" >&6
42558if test "${wx_cv_func_gettimeofday_has_2_args+set}" = set; then
42559 echo $ECHO_N "(cached) $ECHO_C" >&6
42560else
42561
5d7b7554 42562 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
42563/* confdefs.h. */
42564_ACEOF
42565cat confdefs.h >>conftest.$ac_ext
42566cat >>conftest.$ac_ext <<_ACEOF
42567/* end confdefs.h. */
42568
42569 #include <sys/time.h>
42570 #include <unistd.h>
42571
42572int
42573main ()
42574{
42575
42576 struct timeval tv;
42577 gettimeofday(&tv, NULL);
42578
42579 ;
42580 return 0;
42581}
42582_ACEOF
42583rm -f conftest.$ac_objext
42584if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 42585 (eval $ac_compile) 2>conftest.er1
a848cd7e 42586 ac_status=$?
ac1cb8d3
VS
42587 grep -v '^ *+' conftest.er1 >conftest.err
42588 rm -f conftest.er1
42589 cat conftest.err >&5
a848cd7e
SC
42590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42591 (exit $ac_status); } &&
c9a66001 42592 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
42593 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42594 (eval $ac_try) 2>&5
42595 ac_status=$?
42596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42597 (exit $ac_status); }; } &&
42598 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
42599 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42600 (eval $ac_try) 2>&5
42601 ac_status=$?
42602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42603 (exit $ac_status); }; }; then
42604 wx_cv_func_gettimeofday_has_2_args=yes
42605else
42606 echo "$as_me: failed program was:" >&5
42607sed 's/^/| /' conftest.$ac_ext >&5
42608
42609cat >conftest.$ac_ext <<_ACEOF
42610/* confdefs.h. */
42611_ACEOF
42612cat confdefs.h >>conftest.$ac_ext
42613cat >>conftest.$ac_ext <<_ACEOF
42614/* end confdefs.h. */
42615
42616 #include <sys/time.h>
42617 #include <unistd.h>
42618
42619int
42620main ()
42621{
42622
42623 struct timeval tv;
42624 gettimeofday(&tv);
42625
42626 ;
42627 return 0;
42628}
42629_ACEOF
42630rm -f conftest.$ac_objext
42631if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 42632 (eval $ac_compile) 2>conftest.er1
a848cd7e 42633 ac_status=$?
ac1cb8d3
VS
42634 grep -v '^ *+' conftest.er1 >conftest.err
42635 rm -f conftest.er1
42636 cat conftest.err >&5
a848cd7e
SC
42637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42638 (exit $ac_status); } &&
c9a66001 42639 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
42640 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42641 (eval $ac_try) 2>&5
42642 ac_status=$?
42643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42644 (exit $ac_status); }; } &&
42645 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
42646 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42647 (eval $ac_try) 2>&5
42648 ac_status=$?
42649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42650 (exit $ac_status); }; }; then
42651 wx_cv_func_gettimeofday_has_2_args=no
42652else
42653 echo "$as_me: failed program was:" >&5
42654sed 's/^/| /' conftest.$ac_ext >&5
42655
42656
42657 { echo "$as_me:$LINENO: WARNING: failed to determine number of gettimeofday() arguments" >&5
42658echo "$as_me: WARNING: failed to determine number of gettimeofday() arguments" >&2;}
42659 wx_cv_func_gettimeofday_has_2_args=unknown
42660
42661
42662fi
ac1cb8d3 42663rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
42664
42665fi
ac1cb8d3 42666rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
42667
42668fi
42669echo "$as_me:$LINENO: result: $wx_cv_func_gettimeofday_has_2_args" >&5
42670echo "${ECHO_T}$wx_cv_func_gettimeofday_has_2_args" >&6
42671
42672 if test "$wx_cv_func_gettimeofday_has_2_args" != "yes"; then
42673 cat >>confdefs.h <<\_ACEOF
42674#define WX_GETTIMEOFDAY_NO_TZ 1
42675_ACEOF
42676
42677 fi
42678 fi
42679
42680 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS typetest"
42681fi
42682
42683
42684if test "$wxUSE_SOCKETS" = "yes"; then
42685 if test "$wxUSE_MGL" = "1"; then
42686 { echo "$as_me:$LINENO: WARNING: wxSocket not yet supported under MGL... disabled" >&5
42687echo "$as_me: WARNING: wxSocket not yet supported under MGL... disabled" >&2;}
42688 wxUSE_SOCKETS="no"
42689 fi
42690fi
42691
42692if test "$wxUSE_SOCKETS" = "yes"; then
42693 if test "$TOOLKIT" != "MSW"; then
42694 echo "$as_me:$LINENO: checking for socket" >&5
42695echo $ECHO_N "checking for socket... $ECHO_C" >&6
42696if test "${ac_cv_func_socket+set}" = set; then
42697 echo $ECHO_N "(cached) $ECHO_C" >&6
42698else
42699 cat >conftest.$ac_ext <<_ACEOF
42700/* confdefs.h. */
42701_ACEOF
42702cat confdefs.h >>conftest.$ac_ext
42703cat >>conftest.$ac_ext <<_ACEOF
42704/* end confdefs.h. */
ac1cb8d3
VS
42705/* Define socket to an innocuous variant, in case <limits.h> declares socket.
42706 For example, HP-UX 11i <limits.h> declares gettimeofday. */
42707#define socket innocuous_socket
42708
a848cd7e
SC
42709/* System header to define __stub macros and hopefully few prototypes,
42710 which can conflict with char socket (); below.
42711 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
42712 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 42713
a848cd7e
SC
42714#ifdef __STDC__
42715# include <limits.h>
42716#else
42717# include <assert.h>
42718#endif
ac1cb8d3
VS
42719
42720#undef socket
42721
a848cd7e
SC
42722/* Override any gcc2 internal prototype to avoid an error. */
42723#ifdef __cplusplus
42724extern "C"
42725{
42726#endif
42727/* We use char because int might match the return type of a gcc2
42728 builtin and then its argument prototype would still apply. */
42729char socket ();
42730/* The GNU C library defines this for functions which it implements
42731 to always fail with ENOSYS. Some functions are actually named
42732 something starting with __ and the normal name is an alias. */
42733#if defined (__stub_socket) || defined (__stub___socket)
42734choke me
42735#else
42736char (*f) () = socket;
42737#endif
42738#ifdef __cplusplus
42739}
42740#endif
42741
42742int
42743main ()
42744{
42745return f != socket;
42746 ;
42747 return 0;
42748}
42749_ACEOF
42750rm -f conftest.$ac_objext conftest$ac_exeext
42751if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 42752 (eval $ac_link) 2>conftest.er1
a848cd7e 42753 ac_status=$?
ac1cb8d3
VS
42754 grep -v '^ *+' conftest.er1 >conftest.err
42755 rm -f conftest.er1
42756 cat conftest.err >&5
a848cd7e
SC
42757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42758 (exit $ac_status); } &&
c9a66001 42759 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
42760 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42761 (eval $ac_try) 2>&5
42762 ac_status=$?
42763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42764 (exit $ac_status); }; } &&
42765 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
42766 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42767 (eval $ac_try) 2>&5
42768 ac_status=$?
42769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42770 (exit $ac_status); }; }; then
42771 ac_cv_func_socket=yes
42772else
42773 echo "$as_me: failed program was:" >&5
42774sed 's/^/| /' conftest.$ac_ext >&5
42775
42776ac_cv_func_socket=no
42777fi
ac1cb8d3
VS
42778rm -f conftest.err conftest.$ac_objext \
42779 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
42780fi
42781echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
42782echo "${ECHO_T}$ac_cv_func_socket" >&6
42783if test $ac_cv_func_socket = yes; then
42784 :
42785else
42786
42787 echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
42788echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
42789if test "${ac_cv_lib_socket_socket+set}" = set; then
42790 echo $ECHO_N "(cached) $ECHO_C" >&6
42791else
42792 ac_check_lib_save_LIBS=$LIBS
42793LIBS="-lsocket $LIBS"
42794cat >conftest.$ac_ext <<_ACEOF
42795/* confdefs.h. */
42796_ACEOF
42797cat confdefs.h >>conftest.$ac_ext
42798cat >>conftest.$ac_ext <<_ACEOF
42799/* end confdefs.h. */
42800
42801/* Override any gcc2 internal prototype to avoid an error. */
42802#ifdef __cplusplus
42803extern "C"
42804#endif
42805/* We use char because int might match the return type of a gcc2
42806 builtin and then its argument prototype would still apply. */
42807char socket ();
42808int
42809main ()
42810{
42811socket ();
42812 ;
42813 return 0;
42814}
42815_ACEOF
42816rm -f conftest.$ac_objext conftest$ac_exeext
42817if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 42818 (eval $ac_link) 2>conftest.er1
a848cd7e 42819 ac_status=$?
ac1cb8d3
VS
42820 grep -v '^ *+' conftest.er1 >conftest.err
42821 rm -f conftest.er1
42822 cat conftest.err >&5
a848cd7e
SC
42823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42824 (exit $ac_status); } &&
c9a66001 42825 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
42826 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42827 (eval $ac_try) 2>&5
42828 ac_status=$?
42829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42830 (exit $ac_status); }; } &&
42831 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
42832 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42833 (eval $ac_try) 2>&5
42834 ac_status=$?
42835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42836 (exit $ac_status); }; }; then
42837 ac_cv_lib_socket_socket=yes
42838else
42839 echo "$as_me: failed program was:" >&5
42840sed 's/^/| /' conftest.$ac_ext >&5
42841
42842ac_cv_lib_socket_socket=no
42843fi
ac1cb8d3
VS
42844rm -f conftest.err conftest.$ac_objext \
42845 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
42846LIBS=$ac_check_lib_save_LIBS
42847fi
42848echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
42849echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
42850if test $ac_cv_lib_socket_socket = yes; then
42851 if test "$INET_LINK" != " -lsocket"; then
42852 INET_LINK="$INET_LINK -lsocket"
42853 fi
42854else
42855
42856 { echo "$as_me:$LINENO: WARNING: socket library not found - sockets will be disabled" >&5
42857echo "$as_me: WARNING: socket library not found - sockets will be disabled" >&2;}
42858 wxUSE_SOCKETS=no
42859
42860
42861fi
42862
42863
42864
42865fi
42866
42867 fi
42868fi
42869
42870if test "$wxUSE_SOCKETS" = "yes" ; then
42871 if test "$TOOLKIT" != "MSW"; then
5d7b7554 42872 echo "$as_me:$LINENO: checking what is the type of the third argument of getsockname" >&5
a848cd7e
SC
42873echo $ECHO_N "checking what is the type of the third argument of getsockname... $ECHO_C" >&6
42874if test "${wx_cv_type_getsockname3+set}" = set; then
42875 echo $ECHO_N "(cached) $ECHO_C" >&6
42876else
42877
42878 cat >conftest.$ac_ext <<_ACEOF
42879/* confdefs.h. */
42880_ACEOF
42881cat confdefs.h >>conftest.$ac_ext
42882cat >>conftest.$ac_ext <<_ACEOF
42883/* end confdefs.h. */
42884
42885 #include <sys/types.h>
42886 #include <sys/socket.h>
42887
42888int
42889main ()
42890{
42891
42892 socklen_t len;
42893 getsockname(0, 0, &len);
42894
42895 ;
42896 return 0;
42897}
42898_ACEOF
42899rm -f conftest.$ac_objext
42900if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 42901 (eval $ac_compile) 2>conftest.er1
a848cd7e 42902 ac_status=$?
ac1cb8d3
VS
42903 grep -v '^ *+' conftest.er1 >conftest.err
42904 rm -f conftest.er1
42905 cat conftest.err >&5
a848cd7e
SC
42906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42907 (exit $ac_status); } &&
c9a66001 42908 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
42909 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42910 (eval $ac_try) 2>&5
42911 ac_status=$?
42912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42913 (exit $ac_status); }; } &&
42914 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
42915 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42916 (eval $ac_try) 2>&5
42917 ac_status=$?
42918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42919 (exit $ac_status); }; }; then
42920 wx_cv_type_getsockname3=socklen_t
42921else
42922 echo "$as_me: failed program was:" >&5
42923sed 's/^/| /' conftest.$ac_ext >&5
42924
42925
6459a506 42926 CXXFLAGS_OLD="$CXXFLAGS"
a848cd7e 42927 if test "$GCC" = yes ; then
c92ad099 42928 CXXFLAGS="-Werror $CXXFLAGS"
a848cd7e
SC
42929 fi
42930
42931 cat >conftest.$ac_ext <<_ACEOF
42932/* confdefs.h. */
42933_ACEOF
42934cat confdefs.h >>conftest.$ac_ext
42935cat >>conftest.$ac_ext <<_ACEOF
42936/* end confdefs.h. */
42937
42938 #include <sys/types.h>
42939 #include <sys/socket.h>
42940
42941int
42942main ()
42943{
42944
42945 size_t len;
42946 getsockname(0, 0, &len);
42947
42948 ;
42949 return 0;
42950}
42951_ACEOF
42952rm -f conftest.$ac_objext
42953if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 42954 (eval $ac_compile) 2>conftest.er1
a848cd7e 42955 ac_status=$?
ac1cb8d3
VS
42956 grep -v '^ *+' conftest.er1 >conftest.err
42957 rm -f conftest.er1
42958 cat conftest.err >&5
a848cd7e
SC
42959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42960 (exit $ac_status); } &&
c9a66001 42961 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
42962 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42963 (eval $ac_try) 2>&5
42964 ac_status=$?
42965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42966 (exit $ac_status); }; } &&
42967 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
42968 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42969 (eval $ac_try) 2>&5
42970 ac_status=$?
42971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42972 (exit $ac_status); }; }; then
42973 wx_cv_type_getsockname3=size_t
42974else
42975 echo "$as_me: failed program was:" >&5
42976sed 's/^/| /' conftest.$ac_ext >&5
42977
42978cat >conftest.$ac_ext <<_ACEOF
42979/* confdefs.h. */
42980_ACEOF
42981cat confdefs.h >>conftest.$ac_ext
42982cat >>conftest.$ac_ext <<_ACEOF
42983/* end confdefs.h. */
42984
42985 #include <sys/types.h>
42986 #include <sys/socket.h>
42987
42988int
42989main ()
42990{
42991
42992 int len;
42993 getsockname(0, 0, &len);
42994
42995 ;
42996 return 0;
42997}
42998_ACEOF
42999rm -f conftest.$ac_objext
43000if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 43001 (eval $ac_compile) 2>conftest.er1
a848cd7e 43002 ac_status=$?
ac1cb8d3
VS
43003 grep -v '^ *+' conftest.er1 >conftest.err
43004 rm -f conftest.er1
43005 cat conftest.err >&5
a848cd7e
SC
43006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43007 (exit $ac_status); } &&
c9a66001 43008 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
43009 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43010 (eval $ac_try) 2>&5
43011 ac_status=$?
43012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43013 (exit $ac_status); }; } &&
43014 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
43015 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43016 (eval $ac_try) 2>&5
43017 ac_status=$?
43018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43019 (exit $ac_status); }; }; then
43020 wx_cv_type_getsockname3=int
43021else
43022 echo "$as_me: failed program was:" >&5
43023sed 's/^/| /' conftest.$ac_ext >&5
43024
43025wx_cv_type_getsockname3=unknown
43026
43027fi
ac1cb8d3 43028rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
43029
43030fi
ac1cb8d3 43031rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 43032
6459a506 43033 CXXFLAGS="$CXXFLAGS_OLD"
a848cd7e
SC
43034
43035
43036fi
ac1cb8d3 43037rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
43038
43039fi
43040echo "$as_me:$LINENO: result: $wx_cv_type_getsockname3" >&5
43041echo "${ECHO_T}$wx_cv_type_getsockname3" >&6
43042
43043 if test "$wx_cv_type_getsockname3" = "unknown"; then
43044 wxUSE_SOCKETS=no
43045 { echo "$as_me:$LINENO: WARNING: Couldn't find socklen_t synonym for this system" >&5
43046echo "$as_me: WARNING: Couldn't find socklen_t synonym for this system" >&2;}
43047 else
43048 cat >>confdefs.h <<_ACEOF
9e03e02d 43049#define WX_SOCKLEN_T $wx_cv_type_getsockname3
5b674b9d
DE
43050_ACEOF
43051
43052 fi
43053 echo "$as_me:$LINENO: checking what is the type of the fifth argument of getsockopt" >&5
43054echo $ECHO_N "checking what is the type of the fifth argument of getsockopt... $ECHO_C" >&6
43055if test "${wx_cv_type_getsockopt5+set}" = set; then
43056 echo $ECHO_N "(cached) $ECHO_C" >&6
43057else
43058
43059 cat >conftest.$ac_ext <<_ACEOF
43060/* confdefs.h. */
43061_ACEOF
43062cat confdefs.h >>conftest.$ac_ext
43063cat >>conftest.$ac_ext <<_ACEOF
43064/* end confdefs.h. */
43065
43066 #include <sys/types.h>
43067 #include <sys/socket.h>
43068
43069int
43070main ()
43071{
43072
43073 socklen_t len;
43074 getsockopt(0, 0, 0, 0, &len);
43075
43076 ;
43077 return 0;
43078}
43079_ACEOF
43080rm -f conftest.$ac_objext
43081if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
43082 (eval $ac_compile) 2>conftest.er1
43083 ac_status=$?
43084 grep -v '^ *+' conftest.er1 >conftest.err
43085 rm -f conftest.er1
43086 cat conftest.err >&5
43087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43088 (exit $ac_status); } &&
c9a66001 43089 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5b674b9d
DE
43090 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43091 (eval $ac_try) 2>&5
43092 ac_status=$?
43093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43094 (exit $ac_status); }; } &&
43095 { ac_try='test -s conftest.$ac_objext'
43096 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43097 (eval $ac_try) 2>&5
43098 ac_status=$?
43099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43100 (exit $ac_status); }; }; then
43101 wx_cv_type_getsockopt5=socklen_t
43102else
43103 echo "$as_me: failed program was:" >&5
43104sed 's/^/| /' conftest.$ac_ext >&5
43105
43106
6459a506 43107 CXXFLAGS_OLD="$CXXFLAGS"
5b674b9d 43108 if test "$GCC" = yes ; then
c92ad099 43109 CXXFLAGS="-Werror $CXXFLAGS"
5b674b9d
DE
43110 fi
43111
43112 cat >conftest.$ac_ext <<_ACEOF
43113/* confdefs.h. */
43114_ACEOF
43115cat confdefs.h >>conftest.$ac_ext
43116cat >>conftest.$ac_ext <<_ACEOF
43117/* end confdefs.h. */
43118
43119 #include <sys/types.h>
43120 #include <sys/socket.h>
43121
43122int
43123main ()
43124{
43125
43126 size_t len;
43127 getsockopt(0, 0, 0, 0, &len);
43128
43129 ;
43130 return 0;
43131}
43132_ACEOF
43133rm -f conftest.$ac_objext
43134if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
43135 (eval $ac_compile) 2>conftest.er1
43136 ac_status=$?
43137 grep -v '^ *+' conftest.er1 >conftest.err
43138 rm -f conftest.er1
43139 cat conftest.err >&5
43140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43141 (exit $ac_status); } &&
c9a66001 43142 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5b674b9d
DE
43143 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43144 (eval $ac_try) 2>&5
43145 ac_status=$?
43146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43147 (exit $ac_status); }; } &&
43148 { ac_try='test -s conftest.$ac_objext'
43149 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43150 (eval $ac_try) 2>&5
43151 ac_status=$?
43152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43153 (exit $ac_status); }; }; then
43154 wx_cv_type_getsockopt5=size_t
43155else
43156 echo "$as_me: failed program was:" >&5
43157sed 's/^/| /' conftest.$ac_ext >&5
43158
43159cat >conftest.$ac_ext <<_ACEOF
43160/* confdefs.h. */
43161_ACEOF
43162cat confdefs.h >>conftest.$ac_ext
43163cat >>conftest.$ac_ext <<_ACEOF
43164/* end confdefs.h. */
43165
43166 #include <sys/types.h>
43167 #include <sys/socket.h>
43168
43169int
43170main ()
43171{
43172
43173 int len;
43174 getsockopt(0, 0, 0, 0, &len);
43175
43176 ;
43177 return 0;
43178}
43179_ACEOF
43180rm -f conftest.$ac_objext
43181if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
43182 (eval $ac_compile) 2>conftest.er1
43183 ac_status=$?
43184 grep -v '^ *+' conftest.er1 >conftest.err
43185 rm -f conftest.er1
43186 cat conftest.err >&5
43187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43188 (exit $ac_status); } &&
c9a66001 43189 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5b674b9d
DE
43190 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43191 (eval $ac_try) 2>&5
43192 ac_status=$?
43193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43194 (exit $ac_status); }; } &&
43195 { ac_try='test -s conftest.$ac_objext'
43196 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43197 (eval $ac_try) 2>&5
43198 ac_status=$?
43199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43200 (exit $ac_status); }; }; then
43201 wx_cv_type_getsockopt5=int
43202else
43203 echo "$as_me: failed program was:" >&5
43204sed 's/^/| /' conftest.$ac_ext >&5
43205
43206wx_cv_type_getsockopt5=unknown
43207
43208fi
43209rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
43210
43211fi
43212rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
43213
6459a506 43214 CXXFLAGS="$CXXFLAGS_OLD"
5b674b9d
DE
43215
43216
43217fi
43218rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
43219
43220fi
43221echo "$as_me:$LINENO: result: $wx_cv_type_getsockopt5" >&5
43222echo "${ECHO_T}$wx_cv_type_getsockopt5" >&6
43223
43224 if test "$wx_cv_type_getsockopt5" = "unknown"; then
43225 wxUSE_SOCKETS=no
43226 { echo "$as_me:$LINENO: WARNING: Couldn't find socklen_t synonym for this system" >&5
43227echo "$as_me: WARNING: Couldn't find socklen_t synonym for this system" >&2;}
43228 else
43229 cat >>confdefs.h <<_ACEOF
43230#define SOCKOPTLEN_T $wx_cv_type_getsockopt5
a848cd7e
SC
43231_ACEOF
43232
43233 fi
43234 fi
43235fi
43236
43237if test "$wxUSE_SOCKETS" = "yes" ; then
43238 cat >>confdefs.h <<\_ACEOF
43239#define wxUSE_SOCKETS 1
43240_ACEOF
43241
43242 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sockets"
43243fi
43244
43245if test "$wxUSE_PROTOCOL" = "yes"; then
43246 if test "$wxUSE_SOCKETS" != "yes"; then
43247 { echo "$as_me:$LINENO: WARNING: Protocol classes require sockets... disabled" >&5
43248echo "$as_me: WARNING: Protocol classes require sockets... disabled" >&2;}
43249 wxUSE_PROTOCOL=no
43250 fi
43251fi
43252
43253if test "$wxUSE_PROTOCOL" = "yes"; then
43254 cat >>confdefs.h <<\_ACEOF
43255#define wxUSE_PROTOCOL 1
43256_ACEOF
43257
43258
43259 if test "$wxUSE_PROTOCOL_HTTP" = "yes"; then
43260 cat >>confdefs.h <<\_ACEOF
43261#define wxUSE_PROTOCOL_HTTP 1
43262_ACEOF
43263
43264 fi
43265 if test "$wxUSE_PROTOCOL_FTP" = "yes"; then
43266 cat >>confdefs.h <<\_ACEOF
43267#define wxUSE_PROTOCOL_FTP 1
43268_ACEOF
43269
43270 fi
43271 if test "$wxUSE_PROTOCOL_FILE" = "yes"; then
43272 cat >>confdefs.h <<\_ACEOF
43273#define wxUSE_PROTOCOL_FILE 1
43274_ACEOF
43275
43276 fi
43277else
43278 if test "$wxUSE_FS_INET" = "yes"; then
43279 { echo "$as_me:$LINENO: WARNING: HTTP filesystem require protocol classes... disabled" >&5
43280echo "$as_me: WARNING: HTTP filesystem require protocol classes... disabled" >&2;}
43281 wxUSE_FS_INET="no"
43282 fi
43283fi
43284
43285if test "$wxUSE_URL" = "yes"; then
43286 if test "$wxUSE_PROTOCOL" != "yes"; then
43287 { echo "$as_me:$LINENO: WARNING: wxURL class requires wxProtocol... disabled" >&5
43288echo "$as_me: WARNING: wxURL class requires wxProtocol... disabled" >&2;}
43289 wxUSE_URL=no
43290 fi
43291 if test "$wxUSE_URL" = "yes"; then
43292 cat >>confdefs.h <<\_ACEOF
43293#define wxUSE_URL 1
43294_ACEOF
43295
43296 fi
43297fi
43298
43299if test "$wxUSE_FS_INET" = "yes"; then
43300 cat >>confdefs.h <<\_ACEOF
43301#define wxUSE_FS_INET 1
43302_ACEOF
43303
43304fi
43305
43306
ee45c548
MW
43307if test "$wxUSE_GUI" = "yes" -a "$wxUSE_JOYSTICK" = "yes"; then
43308 wxUSE_JOYSTICK=no
43309
43310 if test "$TOOLKIT" = "MSW"; then
43311 wxUSE_JOYSTICK=yes
43312
43313 elif test "$TOOLKIT" = "MAC" -o "$TOOLKIT" = "COCOA"; then
43314 if test "$USE_DARWIN" = 1; then
43315 echo "$as_me:$LINENO: checking headers have declarations needed for joystick support" >&5
43316echo $ECHO_N "checking headers have declarations needed for joystick support... $ECHO_C" >&6
ee45c548
MW
43317 cat >conftest.$ac_ext <<_ACEOF
43318/* confdefs.h. */
43319_ACEOF
43320cat confdefs.h >>conftest.$ac_ext
43321cat >>conftest.$ac_ext <<_ACEOF
43322/* end confdefs.h. */
43323 #include <IOKit/hid/IOHIDLib.h>
43324int
43325main ()
43326{
43327 IOHIDQueueInterface *qi = NULL;
43328 IOHIDCallbackFunction cb = NULL;
43329 qi->setEventCallout(NULL, cb, NULL, NULL);
43330 ;
43331 return 0;
43332}
43333_ACEOF
43334rm -f conftest.$ac_objext
43335if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
43336 (eval $ac_compile) 2>conftest.er1
43337 ac_status=$?
43338 grep -v '^ *+' conftest.er1 >conftest.err
43339 rm -f conftest.er1
43340 cat conftest.err >&5
43341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43342 (exit $ac_status); } &&
c9a66001 43343 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ee45c548
MW
43344 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43345 (eval $ac_try) 2>&5
43346 ac_status=$?
43347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43348 (exit $ac_status); }; } &&
43349 { ac_try='test -s conftest.$ac_objext'
43350 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43351 (eval $ac_try) 2>&5
43352 ac_status=$?
43353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43354 (exit $ac_status); }; }; then
43355 wxUSE_JOYSTICK=yes
a848cd7e 43356
ee45c548
MW
43357else
43358 echo "$as_me: failed program was:" >&5
43359sed 's/^/| /' conftest.$ac_ext >&5
43360
43361fi
43362rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
ee45c548
MW
43363 echo "$as_me:$LINENO: result: $wxUSE_JOYSTICK" >&5
43364echo "${ECHO_T}$wxUSE_JOYSTICK" >&6
43365 fi
43366
43367 else
a848cd7e
SC
43368
43369for ac_header in linux/joystick.h
43370do
43371as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
43372if eval "test \"\${$as_ac_Header+set}\" = set"; then
43373 echo "$as_me:$LINENO: checking for $ac_header" >&5
43374echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
43375if eval "test \"\${$as_ac_Header+set}\" = set"; then
43376 echo $ECHO_N "(cached) $ECHO_C" >&6
43377fi
43378echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
43379echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
43380else
43381 # Is the header compilable?
43382echo "$as_me:$LINENO: checking $ac_header usability" >&5
43383echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
43384cat >conftest.$ac_ext <<_ACEOF
43385/* confdefs.h. */
43386_ACEOF
43387cat confdefs.h >>conftest.$ac_ext
43388cat >>conftest.$ac_ext <<_ACEOF
43389/* end confdefs.h. */
43390$ac_includes_default
43391#include <$ac_header>
43392_ACEOF
43393rm -f conftest.$ac_objext
43394if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 43395 (eval $ac_compile) 2>conftest.er1
a848cd7e 43396 ac_status=$?
ac1cb8d3
VS
43397 grep -v '^ *+' conftest.er1 >conftest.err
43398 rm -f conftest.er1
43399 cat conftest.err >&5
a848cd7e
SC
43400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43401 (exit $ac_status); } &&
c9a66001 43402 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
43403 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43404 (eval $ac_try) 2>&5
43405 ac_status=$?
43406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43407 (exit $ac_status); }; } &&
43408 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
43409 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43410 (eval $ac_try) 2>&5
43411 ac_status=$?
43412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43413 (exit $ac_status); }; }; then
43414 ac_header_compiler=yes
43415else
43416 echo "$as_me: failed program was:" >&5
43417sed 's/^/| /' conftest.$ac_ext >&5
43418
43419ac_header_compiler=no
43420fi
ac1cb8d3 43421rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
43422echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
43423echo "${ECHO_T}$ac_header_compiler" >&6
43424
43425# Is the header present?
43426echo "$as_me:$LINENO: checking $ac_header presence" >&5
43427echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
43428cat >conftest.$ac_ext <<_ACEOF
43429/* confdefs.h. */
43430_ACEOF
43431cat confdefs.h >>conftest.$ac_ext
43432cat >>conftest.$ac_ext <<_ACEOF
43433/* end confdefs.h. */
43434#include <$ac_header>
43435_ACEOF
43436if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
43437 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
43438 ac_status=$?
43439 grep -v '^ *+' conftest.er1 >conftest.err
43440 rm -f conftest.er1
43441 cat conftest.err >&5
43442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43443 (exit $ac_status); } >/dev/null; then
43444 if test -s conftest.err; then
5d7b7554
VZ
43445 ac_cpp_err=$ac_cxx_preproc_warn_flag
43446 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
43447 else
43448 ac_cpp_err=
43449 fi
43450else
43451 ac_cpp_err=yes
43452fi
43453if test -z "$ac_cpp_err"; then
43454 ac_header_preproc=yes
43455else
43456 echo "$as_me: failed program was:" >&5
43457sed 's/^/| /' conftest.$ac_ext >&5
43458
43459 ac_header_preproc=no
43460fi
43461rm -f conftest.err conftest.$ac_ext
43462echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
43463echo "${ECHO_T}$ac_header_preproc" >&6
43464
43465# So? What about this header?
5d7b7554 43466case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
ac1cb8d3 43467 yes:no: )
a848cd7e
SC
43468 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
43469echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
43470 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
43471echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
43472 ac_header_preproc=yes
a848cd7e 43473 ;;
ac1cb8d3 43474 no:yes:* )
a848cd7e
SC
43475 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
43476echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
43477 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
43478echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
43479 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
43480echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
43481 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
43482echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
43483 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
43484echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
43485 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
43486echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
43487 (
43488 cat <<\_ASBOX
ac1cb8d3
VS
43489## ----------------------------------------- ##
43490## Report this to wx-dev@lists.wxwidgets.org ##
43491## ----------------------------------------- ##
a848cd7e
SC
43492_ASBOX
43493 ) |
43494 sed "s/^/$as_me: WARNING: /" >&2
43495 ;;
43496esac
43497echo "$as_me:$LINENO: checking for $ac_header" >&5
43498echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
43499if eval "test \"\${$as_ac_Header+set}\" = set"; then
43500 echo $ECHO_N "(cached) $ECHO_C" >&6
43501else
ac1cb8d3 43502 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
43503fi
43504echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
43505echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
43506
43507fi
43508if test `eval echo '${'$as_ac_Header'}'` = yes; then
43509 cat >>confdefs.h <<_ACEOF
43510#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
43511_ACEOF
ee45c548 43512 wxUSE_JOYSTICK=yes
a848cd7e
SC
43513fi
43514
43515done
43516
ee45c548 43517 fi
4cb1d3da 43518
ee45c548
MW
43519 if test "$wxUSE_JOYSTICK" = "yes"; then
43520 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
43521#define wxUSE_JOYSTICK 1
43522_ACEOF
43523
ee45c548
MW
43524 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS joytest"
43525 else
43526 { echo "$as_me:$LINENO: WARNING: Joystick not supported by this system... disabled" >&5
43527echo "$as_me: WARNING: Joystick not supported by this system... disabled" >&2;}
a848cd7e
SC
43528 fi
43529fi
43530
43531
43532
43533if test "$wxUSE_FONTMAP" = "yes" ; then
43534 cat >>confdefs.h <<\_ACEOF
43535#define wxUSE_FONTMAP 1
43536_ACEOF
43537
43538fi
43539
43540if test "$wxUSE_UNICODE" = "yes" ; then
43541 cat >>confdefs.h <<\_ACEOF
43542#define wxUSE_UNICODE 1
43543_ACEOF
43544
43545
43546 if test "$USE_WIN32" != 1; then
43547 wxUSE_UNICODE_MSLU=no
43548 fi
43549
43550 if test "$USE_WIN32" = 1 -a "$wxUSE_UNICODE_MSLU" = "yes"; then
43551 echo "$as_me:$LINENO: checking for main in -lunicows" >&5
43552echo $ECHO_N "checking for main in -lunicows... $ECHO_C" >&6
43553if test "${ac_cv_lib_unicows_main+set}" = set; then
43554 echo $ECHO_N "(cached) $ECHO_C" >&6
43555else
43556 ac_check_lib_save_LIBS=$LIBS
43557LIBS="-lunicows $LIBS"
43558cat >conftest.$ac_ext <<_ACEOF
43559/* confdefs.h. */
43560_ACEOF
43561cat confdefs.h >>conftest.$ac_ext
43562cat >>conftest.$ac_ext <<_ACEOF
43563/* end confdefs.h. */
43564
43565
43566int
43567main ()
43568{
43569main ();
43570 ;
43571 return 0;
43572}
43573_ACEOF
43574rm -f conftest.$ac_objext conftest$ac_exeext
43575if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 43576 (eval $ac_link) 2>conftest.er1
a848cd7e 43577 ac_status=$?
ac1cb8d3
VS
43578 grep -v '^ *+' conftest.er1 >conftest.err
43579 rm -f conftest.er1
43580 cat conftest.err >&5
a848cd7e
SC
43581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43582 (exit $ac_status); } &&
c9a66001 43583 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
43584 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43585 (eval $ac_try) 2>&5
43586 ac_status=$?
43587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43588 (exit $ac_status); }; } &&
43589 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
43590 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43591 (eval $ac_try) 2>&5
43592 ac_status=$?
43593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43594 (exit $ac_status); }; }; then
43595 ac_cv_lib_unicows_main=yes
43596else
43597 echo "$as_me: failed program was:" >&5
43598sed 's/^/| /' conftest.$ac_ext >&5
43599
43600ac_cv_lib_unicows_main=no
43601fi
ac1cb8d3
VS
43602rm -f conftest.err conftest.$ac_objext \
43603 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
43604LIBS=$ac_check_lib_save_LIBS
43605fi
43606echo "$as_me:$LINENO: result: $ac_cv_lib_unicows_main" >&5
43607echo "${ECHO_T}$ac_cv_lib_unicows_main" >&6
43608if test $ac_cv_lib_unicows_main = yes; then
43609
43610 cat >>confdefs.h <<\_ACEOF
43611#define wxUSE_UNICODE_MSLU 1
43612_ACEOF
43613
43614
43615else
43616
43617 { echo "$as_me:$LINENO: WARNING: Compiler doesn't support MSLU (libunicows.a), disabled.
43618 Applications will only run on Windows NT/2000/XP!" >&5
43619echo "$as_me: WARNING: Compiler doesn't support MSLU (libunicows.a), disabled.
43620 Applications will only run on Windows NT/2000/XP!" >&2;}
43621 wxUSE_UNICODE_MSLU=no
43622
43623fi
43624
43625 fi
43626fi
43627
43628if test "$wxUSE_wxUSE_EXPERIMENTAL_PRINTF" = "yes"; then
43629 cat >>confdefs.h <<\_ACEOF
43630#define wxUSE_EXPERIMENTAL_PRINTF 1
43631_ACEOF
43632
43633fi
43634
43635
43636if test "$wxUSE_POSTSCRIPT" = "yes" ; then
43637 cat >>confdefs.h <<\_ACEOF
43638#define wxUSE_POSTSCRIPT 1
43639_ACEOF
43640
43641fi
43642
43643cat >>confdefs.h <<\_ACEOF
43644#define wxUSE_AFM_FOR_POSTSCRIPT 1
43645_ACEOF
43646
43647
43648cat >>confdefs.h <<\_ACEOF
43649#define wxUSE_NORMALIZED_PS_FONTS 1
43650_ACEOF
43651
43652
43653
43654if test "$wxUSE_CONSTRAINTS" = "yes"; then
43655 cat >>confdefs.h <<\_ACEOF
43656#define wxUSE_CONSTRAINTS 1
43657_ACEOF
43658
43659 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS layout"
43660fi
43661
8a7b1113
VZ
43662if test "$wxUSE_MDI" = "yes"; then
43663 cat >>confdefs.h <<\_ACEOF
43664#define wxUSE_MDI 1
43665_ACEOF
43666
43667
43668 if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
43669 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
43670#define wxUSE_MDI_ARCHITECTURE 1
43671_ACEOF
43672
8a7b1113
VZ
43673 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mdi"
43674 fi
a848cd7e
SC
43675fi
43676
43677if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = "yes" ; then
43678 cat >>confdefs.h <<\_ACEOF
43679#define wxUSE_DOC_VIEW_ARCHITECTURE 1
43680_ACEOF
43681
43682 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docview"
43683 if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
43684 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docvwmdi"
43685 fi
43686fi
43687
43688if test "$wxUSE_HELP" = "yes"; then
43689 cat >>confdefs.h <<\_ACEOF
43690#define wxUSE_HELP 1
43691_ACEOF
43692
43693 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS help"
43694
43695 if test "$wxUSE_MSW" = 1; then
43696 if test "$wxUSE_MS_HTML_HELP" = "yes"; then
43697 cat >>confdefs.h <<\_ACEOF
43698#define wxUSE_MS_HTML_HELP 1
43699_ACEOF
43700
43701 fi
43702 fi
43703
43704 if test "$wxUSE_WXHTML_HELP" = "yes"; then
43705 if test "$wxUSE_HTML" = "yes"; then
43706 cat >>confdefs.h <<\_ACEOF
43707#define wxUSE_WXHTML_HELP 1
43708_ACEOF
43709
43710 else
43711 { echo "$as_me:$LINENO: WARNING: Cannot use wxHTML-based help without wxHTML so it won't be compiled" >&5
43712echo "$as_me: WARNING: Cannot use wxHTML-based help without wxHTML so it won't be compiled" >&2;}
43713 wxUSE_WXHTML_HELP=no
43714 fi
43715 fi
43716fi
43717
43718if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then
43719 if test "$wxUSE_CONSTRAINTS" != "yes"; then
43720 { echo "$as_me:$LINENO: WARNING: Printing support cannot be used without constraints so it won't be compiled without it" >&5
43721echo "$as_me: WARNING: Printing support cannot be used without constraints so it won't be compiled without it" >&2;}
43722 else
43723 cat >>confdefs.h <<\_ACEOF
43724#define wxUSE_PRINTING_ARCHITECTURE 1
43725_ACEOF
43726
43727 fi
43728 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS printing"
43729fi
43730
43731if test "$wxUSE_PROLOGIO" = "yes" -o "$wxUSE_RESOURCES" = "yes"; then
43732 { { echo "$as_me:$LINENO: error: wxExpr and old-style resources are now available in contrib only" >&5
43733echo "$as_me: error: wxExpr and old-style resources are now available in contrib only" >&2;}
43734 { (exit 1); exit 1; }; }
43735fi
43736
43737
efdf6afe
VZ
43738if test "$wxUSE_METAFILE" = "yes"; then
43739 if test "$wxUSE_MSW" != 1 -a "$wxUSE_MAC" != 1 -a "$wxUSE_PM" != 1; then
43740 { echo "$as_me:$LINENO: WARNING: wxMetafile is not available on this system... disabled" >&5
43741echo "$as_me: WARNING: wxMetafile is not available on this system... disabled" >&2;}
43742 wxUSE_METAFILE=no
43743 fi
43744fi
43745
43746
a848cd7e
SC
43747if test "$USE_WIN32" = 1 -a \( "$wxUSE_DATAOBJ" = "yes" \
43748 -o "$wxUSE_CLIPBOARD" = "yes" \
43749 -o "$wxUSE_OLE" = "yes" \
43750 -o "$wxUSE_DRAG_AND_DROP" = "yes" \) ; then
43751
43752for ac_header in ole2.h
43753do
43754as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
43755if eval "test \"\${$as_ac_Header+set}\" = set"; then
43756 echo "$as_me:$LINENO: checking for $ac_header" >&5
43757echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
43758if eval "test \"\${$as_ac_Header+set}\" = set"; then
43759 echo $ECHO_N "(cached) $ECHO_C" >&6
43760fi
43761echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
43762echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
43763else
43764 # Is the header compilable?
43765echo "$as_me:$LINENO: checking $ac_header usability" >&5
43766echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
43767cat >conftest.$ac_ext <<_ACEOF
43768/* confdefs.h. */
43769_ACEOF
43770cat confdefs.h >>conftest.$ac_ext
43771cat >>conftest.$ac_ext <<_ACEOF
43772/* end confdefs.h. */
43773$ac_includes_default
43774#include <$ac_header>
43775_ACEOF
43776rm -f conftest.$ac_objext
43777if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 43778 (eval $ac_compile) 2>conftest.er1
a848cd7e 43779 ac_status=$?
ac1cb8d3
VS
43780 grep -v '^ *+' conftest.er1 >conftest.err
43781 rm -f conftest.er1
43782 cat conftest.err >&5
a848cd7e
SC
43783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43784 (exit $ac_status); } &&
c9a66001 43785 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
43786 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43787 (eval $ac_try) 2>&5
43788 ac_status=$?
43789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43790 (exit $ac_status); }; } &&
43791 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
43792 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43793 (eval $ac_try) 2>&5
43794 ac_status=$?
43795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43796 (exit $ac_status); }; }; then
43797 ac_header_compiler=yes
43798else
43799 echo "$as_me: failed program was:" >&5
43800sed 's/^/| /' conftest.$ac_ext >&5
43801
43802ac_header_compiler=no
43803fi
ac1cb8d3 43804rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
43805echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
43806echo "${ECHO_T}$ac_header_compiler" >&6
43807
43808# Is the header present?
43809echo "$as_me:$LINENO: checking $ac_header presence" >&5
43810echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
43811cat >conftest.$ac_ext <<_ACEOF
43812/* confdefs.h. */
43813_ACEOF
43814cat confdefs.h >>conftest.$ac_ext
43815cat >>conftest.$ac_ext <<_ACEOF
43816/* end confdefs.h. */
43817#include <$ac_header>
43818_ACEOF
43819if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
43820 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
43821 ac_status=$?
43822 grep -v '^ *+' conftest.er1 >conftest.err
43823 rm -f conftest.er1
43824 cat conftest.err >&5
43825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43826 (exit $ac_status); } >/dev/null; then
43827 if test -s conftest.err; then
5d7b7554
VZ
43828 ac_cpp_err=$ac_cxx_preproc_warn_flag
43829 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
43830 else
43831 ac_cpp_err=
43832 fi
43833else
43834 ac_cpp_err=yes
43835fi
43836if test -z "$ac_cpp_err"; then
43837 ac_header_preproc=yes
43838else
43839 echo "$as_me: failed program was:" >&5
43840sed 's/^/| /' conftest.$ac_ext >&5
43841
43842 ac_header_preproc=no
43843fi
43844rm -f conftest.err conftest.$ac_ext
43845echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
43846echo "${ECHO_T}$ac_header_preproc" >&6
43847
43848# So? What about this header?
5d7b7554 43849case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
ac1cb8d3 43850 yes:no: )
a848cd7e
SC
43851 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
43852echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
43853 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
43854echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
43855 ac_header_preproc=yes
a848cd7e 43856 ;;
ac1cb8d3 43857 no:yes:* )
a848cd7e
SC
43858 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
43859echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
43860 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
43861echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
43862 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
43863echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
43864 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
43865echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
43866 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
43867echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
43868 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
43869echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
43870 (
43871 cat <<\_ASBOX
ac1cb8d3
VS
43872## ----------------------------------------- ##
43873## Report this to wx-dev@lists.wxwidgets.org ##
43874## ----------------------------------------- ##
a848cd7e
SC
43875_ASBOX
43876 ) |
43877 sed "s/^/$as_me: WARNING: /" >&2
43878 ;;
43879esac
43880echo "$as_me:$LINENO: checking for $ac_header" >&5
43881echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
43882if eval "test \"\${$as_ac_Header+set}\" = set"; then
43883 echo $ECHO_N "(cached) $ECHO_C" >&6
43884else
ac1cb8d3 43885 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
43886fi
43887echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
43888echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
43889
43890fi
43891if test `eval echo '${'$as_ac_Header'}'` = yes; then
43892 cat >>confdefs.h <<_ACEOF
43893#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
43894_ACEOF
43895
43896fi
43897
43898done
43899
43900
43901 if test "$ac_cv_header_ole2_h" = "yes" ; then
43902 if test "$GCC" = yes ; then
a848cd7e
SC
43903 echo "$as_me:$LINENO: checking if g++ requires -fvtable-thunks" >&5
43904echo $ECHO_N "checking if g++ requires -fvtable-thunks... $ECHO_C" >&6
43905 cat >conftest.$ac_ext <<_ACEOF
43906/* confdefs.h. */
43907_ACEOF
43908cat confdefs.h >>conftest.$ac_ext
43909cat >>conftest.$ac_ext <<_ACEOF
43910/* end confdefs.h. */
43911#include <windows.h>
43912 #include <ole2.h>
43913int
43914main ()
43915{
43916
43917 ;
43918 return 0;
43919}
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 echo "$as_me:$LINENO: result: no" >&5
43943echo "${ECHO_T}no" >&6
43944else
43945 echo "$as_me: failed program was:" >&5
43946sed 's/^/| /' conftest.$ac_ext >&5
43947
43948echo "$as_me:$LINENO: result: yes" >&5
43949echo "${ECHO_T}yes" >&6
5ff751d6 43950 WXCONFIG_CXXFLAGS="$WXCONFIG_CXXFLAGS -fvtable-thunks"
a848cd7e 43951fi
ac1cb8d3 43952rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
43953 LIBS=" -lrpcrt4 -loleaut32 -lole32 -luuid$LIBS"
43954 if test "$wxUSE_OLE" = "yes" ; then
43955 cat >>confdefs.h <<\_ACEOF
43956#define wxUSE_OLE 1
43957_ACEOF
43958
0b78747f 43959 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS oleauto"
a848cd7e
SC
43960 fi
43961 fi
43962
43963 if test "$wxUSE_DATAOBJ" = "yes" ; then
43964 cat >>confdefs.h <<\_ACEOF
43965#define wxUSE_DATAOBJ 1
43966_ACEOF
43967
43968 fi
43969 else
43970 { echo "$as_me:$LINENO: WARNING: Some features disabled because OLE headers not found" >&5
43971echo "$as_me: WARNING: Some features disabled because OLE headers not found" >&2;}
43972
43973 wxUSE_CLIPBOARD=no
43974 wxUSE_DRAG_AND_DROP=no
43975 wxUSE_DATAOBJ=no
43976 wxUSE_OLE=no
43977 fi
43978
43979 if test "$wxUSE_METAFILE" = "yes"; then
43980 cat >>confdefs.h <<\_ACEOF
43981#define wxUSE_METAFILE 1
43982_ACEOF
43983
43984
43985 cat >>confdefs.h <<\_ACEOF
43986#define wxUSE_ENH_METAFILE 1
43987_ACEOF
43988
43989 fi
43990fi
43991
43992if test "$wxUSE_IPC" = "yes"; then
0b78747f 43993 if test "$wxUSE_SOCKETS" != "yes" -a "$USE_WIN32" != 1; then
77ffb593
JS
43994 { echo "$as_me:$LINENO: WARNING: wxWidgets IPC classes require sockets... disabled" >&5
43995echo "$as_me: WARNING: wxWidgets IPC classes require sockets... disabled" >&2;}
0b78747f 43996 wxUSE_IPC=no
a848cd7e
SC
43997 fi
43998
0b78747f
MW
43999 if test "$wxUSE_IPC" = "yes"; then
44000 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
44001#define wxUSE_IPC 1
44002_ACEOF
44003
0b78747f
MW
44004 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS ipc"
44005 fi
a848cd7e
SC
44006fi
44007
eb730a0c 44008if test "$wxUSE_DATAOBJ" = "yes"; then
2113bc77
MW
44009 if test "$wxUSE_MGL" = 1; then
44010 { echo "$as_me:$LINENO: WARNING: wxDataObject not yet supported under MGL... disabled" >&5
44011echo "$as_me: WARNING: wxDataObject not yet supported under MGL... disabled" >&2;}
44012 wxUSE_DATAOBJ=no
44013 else
44014 cat >>confdefs.h <<\_ACEOF
eb730a0c
JS
44015#define wxUSE_DATAOBJ 1
44016_ACEOF
44017
2113bc77 44018 fi
eb730a0c
JS
44019else
44020 { echo "$as_me:$LINENO: WARNING: Clipboard and drag-and-drop require wxDataObject -- disabled" >&5
44021echo "$as_me: WARNING: Clipboard and drag-and-drop require wxDataObject -- disabled" >&2;}
44022 wxUSE_CLIPBOARD=no
44023 wxUSE_DRAG_AND_DROP=no
44024fi
44025
a848cd7e
SC
44026if test "$wxUSE_CLIPBOARD" = "yes"; then
44027 if test "$wxUSE_MGL" = 1; then
44028 { echo "$as_me:$LINENO: WARNING: Clipboard not yet supported under MGL... disabled" >&5
44029echo "$as_me: WARNING: Clipboard not yet supported under MGL... disabled" >&2;}
44030 wxUSE_CLIPBOARD=no
44031 fi
44032
44033 if test "$wxUSE_CLIPBOARD" = "yes"; then
44034 cat >>confdefs.h <<\_ACEOF
44035#define wxUSE_CLIPBOARD 1
44036_ACEOF
44037
a848cd7e
SC
44038 fi
44039fi
44040
44041if test "$wxUSE_DRAG_AND_DROP" = "yes" ; then
44042 if test "$wxUSE_GTK" = 1; then
44043 if test "$WXGTK12" != 1; then
44044 { echo "$as_me:$LINENO: WARNING: Drag and drop is only supported under GTK+ 1.2... disabled" >&5
44045echo "$as_me: WARNING: Drag and drop is only supported under GTK+ 1.2... disabled" >&2;}
44046 wxUSE_DRAG_AND_DROP=no
44047 fi
44048 fi
44049
44050 if test "$wxUSE_MOTIF" = 1; then
44051 { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under Motif... disabled" >&5
44052echo "$as_me: WARNING: Drag and drop not yet supported under Motif... disabled" >&2;}
44053 wxUSE_DRAG_AND_DROP=no
44054 fi
44055
44056 if test "$wxUSE_X11" = 1; then
44057 { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under X11... disabled" >&5
44058echo "$as_me: WARNING: Drag and drop not yet supported under X11... disabled" >&2;}
44059 wxUSE_DRAG_AND_DROP=no
44060 fi
44061
44062 if test "$wxUSE_MGL" = 1; then
44063 { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under MGL... disabled" >&5
44064echo "$as_me: WARNING: Drag and drop not yet supported under MGL... disabled" >&2;}
44065 wxUSE_DRAG_AND_DROP=no
44066 fi
44067
44068 if test "$wxUSE_DRAG_AND_DROP" = "yes"; then
44069 cat >>confdefs.h <<\_ACEOF
44070#define wxUSE_DRAG_AND_DROP 1
44071_ACEOF
44072
44073 fi
44074
44075fi
44076
44077if test "$wxUSE_DRAG_AND_DROP" = "yes" -o "$wxUSE_CLIPBOARD" = "yes"; then
44078 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dnd"
44079fi
44080
44081if test "$wxUSE_SPLINES" = "yes" ; then
44082 cat >>confdefs.h <<\_ACEOF
44083#define wxUSE_SPLINES 1
44084_ACEOF
44085
44086fi
44087
fbe2ca43
SN
44088if test "$wxUSE_MOUSEWHEEL" = "yes" ; then
44089 cat >>confdefs.h <<\_ACEOF
44090#define wxUSE_MOUSEWHEEL 1
44091_ACEOF
44092
44093fi
44094
a848cd7e
SC
44095
44096USES_CONTROLS=0
44097if test "$wxUSE_CONTROLS" = "yes"; then
44098 USES_CONTROLS=1
44099fi
44100
44101if test "$wxUSE_ACCEL" = "yes"; then
44102 cat >>confdefs.h <<\_ACEOF
44103#define wxUSE_ACCEL 1
44104_ACEOF
44105
44106 USES_CONTROLS=1
44107fi
44108
44109if test "$wxUSE_BUTTON" = "yes"; then
44110 cat >>confdefs.h <<\_ACEOF
44111#define wxUSE_BUTTON 1
44112_ACEOF
44113
44114 USES_CONTROLS=1
44115fi
44116
44117if test "$wxUSE_BMPBUTTON" = "yes"; then
44118 cat >>confdefs.h <<\_ACEOF
44119#define wxUSE_BMPBUTTON 1
44120_ACEOF
44121
44122 USES_CONTROLS=1
44123fi
44124
44125if test "$wxUSE_CALCTRL" = "yes"; then
44126 cat >>confdefs.h <<\_ACEOF
44127#define wxUSE_CALENDARCTRL 1
44128_ACEOF
44129
44130 USES_CONTROLS=1
44131 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS calendar"
44132fi
44133
44134if test "$wxUSE_CARET" = "yes"; then
44135 cat >>confdefs.h <<\_ACEOF
44136#define wxUSE_CARET 1
44137_ACEOF
44138
44139 USES_CONTROLS=1
44140 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS caret"
44141fi
44142
44143if test "$wxUSE_COMBOBOX" = "yes"; then
44144 cat >>confdefs.h <<\_ACEOF
44145#define wxUSE_COMBOBOX 1
44146_ACEOF
44147
44148 USES_CONTROLS=1
44149fi
44150
a57d600f 44151if test "$wxUSE_COMBOCTRL" = "yes"; then
642bcba9 44152 cat >>confdefs.h <<\_ACEOF
a57d600f 44153#define wxUSE_COMBOCTRL 1
642bcba9
VZ
44154_ACEOF
44155
44156 USES_CONTROLS=1
44157fi
44158
a848cd7e
SC
44159if test "$wxUSE_CHOICE" = "yes"; then
44160 cat >>confdefs.h <<\_ACEOF
44161#define wxUSE_CHOICE 1
44162_ACEOF
44163
44164 USES_CONTROLS=1
44165fi
44166
92bbdbcd
WS
44167if test "$wxUSE_CHOICEBOOK" = "yes"; then
44168 cat >>confdefs.h <<\_ACEOF
44169#define wxUSE_CHOICEBOOK 1
44170_ACEOF
44171
44172 USES_CONTROLS=1
44173fi
44174
a848cd7e
SC
44175if test "$wxUSE_CHECKBOX" = "yes"; then
44176 cat >>confdefs.h <<\_ACEOF
44177#define wxUSE_CHECKBOX 1
44178_ACEOF
44179
44180 USES_CONTROLS=1
44181fi
44182
44183if test "$wxUSE_CHECKLST" = "yes"; then
44184 cat >>confdefs.h <<\_ACEOF
44185#define wxUSE_CHECKLISTBOX 1
44186_ACEOF
44187
44188 USES_CONTROLS=1
44189 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS checklst"
44190fi
44191
e9263684
VZ
44192if test "$wxUSE_COLOURPICKERCTRL" = "yes"; then
44193 cat >>confdefs.h <<\_ACEOF
44194#define wxUSE_COLOURPICKERCTRL 1
44195_ACEOF
44196
44197 USES_CONTROLS=1
44198fi
44199
da98e9be
VZ
44200if test "$wxUSE_DATEPICKCTRL" = "yes"; then
44201 cat >>confdefs.h <<\_ACEOF
44202#define wxUSE_DATEPICKCTRL 1
44203_ACEOF
44204
44205 USES_CONTROLS=1
44206fi
44207
e9263684
VZ
44208if test "$wxUSE_DIRPICKERCTRL" = "yes"; then
44209 cat >>confdefs.h <<\_ACEOF
44210#define wxUSE_DIRPICKERCTRL 1
44211_ACEOF
44212
44213 USES_CONTROLS=1
44214fi
44215
44216if test "$wxUSE_FILEPICKERCTRL" = "yes"; then
44217 cat >>confdefs.h <<\_ACEOF
44218#define wxUSE_FILEPICKERCTRL 1
44219_ACEOF
44220
44221 USES_CONTROLS=1
44222fi
44223
44224if test "$wxUSE_FONTPICKERCTRL" = "yes"; then
44225 cat >>confdefs.h <<\_ACEOF
44226#define wxUSE_FONTPICKERCTRL 1
44227_ACEOF
44228
44229 USES_CONTROLS=1
44230fi
44231
a848cd7e
SC
44232if test "$wxUSE_DISPLAY" = "yes"; then
44233 cat >>confdefs.h <<\_ACEOF
44234#define wxUSE_DISPLAY 1
44235_ACEOF
44236
0b78747f 44237 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS display multimon"
a848cd7e
SC
44238fi
44239
44240if test "$wxUSE_GAUGE" = "yes"; then
44241 cat >>confdefs.h <<\_ACEOF
44242#define wxUSE_GAUGE 1
44243_ACEOF
44244
44245 USES_CONTROLS=1
44246fi
44247
44248if test "$wxUSE_GRID" = "yes"; then
44249 cat >>confdefs.h <<\_ACEOF
44250#define wxUSE_GRID 1
44251_ACEOF
44252
44253 USES_CONTROLS=1
44254 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS grid"
44255fi
44256
6954625c
VZ
44257if test "$wxUSE_HYPERLINKCTRL" = "yes"; then
44258 cat >>confdefs.h <<\_ACEOF
44259#define wxUSE_HYPERLINKCTRL 1
44260_ACEOF
44261
44262 USES_CONTROLS=1
44263fi
44264
20e34ecc
RR
44265if test "$wxUSE_DATAVIEWCTRL" = "yes"; then
44266 cat >>confdefs.h <<\_ACEOF
44267#define wxUSE_DATAVIEWCTRL 1
44268_ACEOF
44269
44270 USES_CONTROLS=1
44271 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dataview"
44272fi
44273
a848cd7e
SC
44274if test "$wxUSE_IMAGLIST" = "yes"; then
44275 cat >>confdefs.h <<\_ACEOF
44276#define wxUSE_IMAGLIST 1
44277_ACEOF
44278
44279fi
44280
44281if test "$wxUSE_LISTBOOK" = "yes"; then
44282 cat >>confdefs.h <<\_ACEOF
44283#define wxUSE_LISTBOOK 1
44284_ACEOF
44285
44286 USES_CONTROLS=1
44287fi
44288
44289if test "$wxUSE_LISTBOX" = "yes"; then
44290 cat >>confdefs.h <<\_ACEOF
44291#define wxUSE_LISTBOX 1
44292_ACEOF
44293
44294 USES_CONTROLS=1
0b78747f 44295 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS listbox"
a848cd7e
SC
44296fi
44297
44298if test "$wxUSE_LISTCTRL" = "yes"; then
44299 if test "$wxUSE_IMAGLIST" = "yes"; then
44300 cat >>confdefs.h <<\_ACEOF
44301#define wxUSE_LISTCTRL 1
44302_ACEOF
44303
44304 USES_CONTROLS=1
44305 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS listctrl"
44306 else
44307 { echo "$as_me:$LINENO: WARNING: wxListCtrl requires wxImageList and won't be compiled without it" >&5
44308echo "$as_me: WARNING: wxListCtrl requires wxImageList and won't be compiled without it" >&2;}
44309 fi
44310fi
44311
44312if test "$wxUSE_NOTEBOOK" = "yes"; then
44313 cat >>confdefs.h <<\_ACEOF
44314#define wxUSE_NOTEBOOK 1
44315_ACEOF
44316
44317 USES_CONTROLS=1
44318 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS notebook"
44319fi
44320
a57d600f 44321if test "$wxUSE_ODCOMBOBOX" = "yes"; then
642bcba9 44322 cat >>confdefs.h <<\_ACEOF
a57d600f 44323#define wxUSE_ODCOMBOBOX 1
642bcba9
VZ
44324_ACEOF
44325
44326 USES_CONTROLS=1
44327 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS combo"
44328fi
44329
a848cd7e
SC
44330
44331if test "$wxUSE_RADIOBOX" = "yes"; then
44332 cat >>confdefs.h <<\_ACEOF
44333#define wxUSE_RADIOBOX 1
44334_ACEOF
44335
44336 USES_CONTROLS=1
44337fi
44338
44339if test "$wxUSE_RADIOBTN" = "yes"; then
44340 cat >>confdefs.h <<\_ACEOF
44341#define wxUSE_RADIOBTN 1
44342_ACEOF
44343
44344 USES_CONTROLS=1
44345fi
44346
44347if test "$wxUSE_SASH" = "yes"; then
44348 cat >>confdefs.h <<\_ACEOF
44349#define wxUSE_SASH 1
44350_ACEOF
44351
44352 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sashtest"
44353fi
44354
44355if test "$wxUSE_SCROLLBAR" = "yes"; then
44356 cat >>confdefs.h <<\_ACEOF
44357#define wxUSE_SCROLLBAR 1
44358_ACEOF
44359
44360 USES_CONTROLS=1
44361 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS scroll scrollsub"
44362fi
44363
44364if test "$wxUSE_SLIDER" = "yes"; then
44365 cat >>confdefs.h <<\_ACEOF
44366#define wxUSE_SLIDER 1
44367_ACEOF
44368
44369 USES_CONTROLS=1
44370fi
44371
44372if test "$wxUSE_SPINBTN" = "yes"; then
44373 cat >>confdefs.h <<\_ACEOF
44374#define wxUSE_SPINBTN 1
44375_ACEOF
44376
44377 USES_CONTROLS=1
44378fi
44379
44380if test "$wxUSE_SPINCTRL" = "yes"; then
44381 cat >>confdefs.h <<\_ACEOF
44382#define wxUSE_SPINCTRL 1
44383_ACEOF
44384
44385 USES_CONTROLS=1
44386fi
44387
44388if test "$wxUSE_SPLITTER" = "yes"; then
44389 cat >>confdefs.h <<\_ACEOF
44390#define wxUSE_SPLITTER 1
44391_ACEOF
44392
44393 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splitter"
44394fi
44395
44396if test "$wxUSE_STATBMP" = "yes"; then
44397 cat >>confdefs.h <<\_ACEOF
44398#define wxUSE_STATBMP 1
44399_ACEOF
44400
44401 USES_CONTROLS=1
44402fi
44403
44404if test "$wxUSE_STATBOX" = "yes"; then
44405 cat >>confdefs.h <<\_ACEOF
44406#define wxUSE_STATBOX 1
44407_ACEOF
44408
44409 USES_CONTROLS=1
44410fi
44411
44412if test "$wxUSE_STATTEXT" = "yes"; then
44413 cat >>confdefs.h <<\_ACEOF
44414#define wxUSE_STATTEXT 1
44415_ACEOF
44416
44417 USES_CONTROLS=1
44418fi
44419
44420if test "$wxUSE_STATLINE" = "yes"; then
44421 cat >>confdefs.h <<\_ACEOF
44422#define wxUSE_STATLINE 1
44423_ACEOF
44424
44425 USES_CONTROLS=1
44426fi
44427
44428if test "$wxUSE_STATUSBAR" = "yes"; then
da4486fb
VZ
44429 cat >>confdefs.h <<\_ACEOF
44430#define wxUSE_NATIVE_STATUSBAR 1
44431_ACEOF
44432
a848cd7e
SC
44433 cat >>confdefs.h <<\_ACEOF
44434#define wxUSE_STATUSBAR 1
44435_ACEOF
44436
44437 USES_CONTROLS=1
44438
44439 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS statbar"
44440fi
44441
f10e38c4 44442if test "$wxUSE_TAB_DIALOG" = "yes"; then
a848cd7e
SC
44443 cat >>confdefs.h <<\_ACEOF
44444#define wxUSE_TAB_DIALOG 1
44445_ACEOF
44446
a848cd7e
SC
44447fi
44448
44449if test "$wxUSE_TEXTCTRL" = "yes"; then
44450 cat >>confdefs.h <<\_ACEOF
44451#define wxUSE_TEXTCTRL 1
44452_ACEOF
44453
44454 USES_CONTROLS=1
44455 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS text"
44456fi
44457
44458if test "$wxUSE_TOGGLEBTN" = "yes"; then
44459 if test "$wxUSE_COCOA" = 1 ; then
44460 { echo "$as_me:$LINENO: WARNING: Toggle button not yet supported under Mac OS X... disabled" >&5
44461echo "$as_me: WARNING: Toggle button not yet supported under Mac OS X... disabled" >&2;}
44462 wxUSE_TOGGLEBTN=no
44463 fi
a848cd7e
SC
44464
44465 if test "$wxUSE_TOGGLEBTN" = "yes"; then
44466 cat >>confdefs.h <<\_ACEOF
44467#define wxUSE_TOGGLEBTN 1
44468_ACEOF
44469
44470 USES_CONTROLS=1
44471 fi
44472fi
44473
44474if test "$wxUSE_TOOLBAR_SIMPLE" = "yes"; then
44475 cat >>confdefs.h <<\_ACEOF
44476#define wxUSE_TOOLBAR_SIMPLE 1
44477_ACEOF
44478
44479 wxUSE_TOOLBAR="yes"
44480 USES_CONTROLS=1
44481fi
44482
44483if test "$wxUSE_TOOLBAR" = "yes"; then
44484 cat >>confdefs.h <<\_ACEOF
44485#define wxUSE_TOOLBAR 1
44486_ACEOF
44487
44488 USES_CONTROLS=1
44489
44490 if test "$wxUSE_TOOLBAR_SIMPLE" != "yes"; then
44491 wxUSE_TOOLBAR_NATIVE="yes"
44492 fi
44493
44494 if test "$wxUSE_TOOLBAR_NATIVE" = "yes"; then
44495 cat >>confdefs.h <<\_ACEOF
44496#define wxUSE_TOOLBAR_NATIVE 1
44497_ACEOF
44498
44499 USES_CONTROLS=1
44500 fi
44501
44502 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS toolbar"
44503fi
44504
44505if test "$wxUSE_TOOLTIPS" = "yes"; then
44506 if test "$wxUSE_MOTIF" = 1; then
44507 { echo "$as_me:$LINENO: WARNING: wxTooltip not supported yet under Motif... disabled" >&5
44508echo "$as_me: WARNING: wxTooltip not supported yet under Motif... disabled" >&2;}
44509 else
44510 if test "$wxUSE_UNIVERSAL" = "yes"; then
44511 { echo "$as_me:$LINENO: WARNING: wxTooltip not supported yet in wxUniversal... disabled" >&5
44512echo "$as_me: WARNING: wxTooltip not supported yet in wxUniversal... disabled" >&2;}
44513 else
44514 cat >>confdefs.h <<\_ACEOF
44515#define wxUSE_TOOLTIPS 1
44516_ACEOF
44517
44518 fi
44519 fi
44520fi
44521
0093c2fc
VZ
44522if test "$wxUSE_TREEBOOK" = "yes"; then
44523 cat >>confdefs.h <<\_ACEOF
44524#define wxUSE_TREEBOOK 1
44525_ACEOF
44526
44527 USES_CONTROLS=1
44528fi
44529
5ec3bc43
JS
44530if test "$wxUSE_TOOLBOOK" = "yes"; then
44531 cat >>confdefs.h <<\_ACEOF
44532#define wxUSE_TOOLBOOK 1
44533_ACEOF
44534
44535 USES_CONTROLS=1
44536fi
44537
a848cd7e
SC
44538if test "$wxUSE_TREECTRL" = "yes"; then
44539 if test "$wxUSE_IMAGLIST" = "yes"; then
44540 cat >>confdefs.h <<\_ACEOF
44541#define wxUSE_TREECTRL 1
44542_ACEOF
44543
44544 USES_CONTROLS=1
44545 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS treectrl"
44546 else
44547 { echo "$as_me:$LINENO: WARNING: wxTreeCtrl requires wxImageList and won't be compiled without it" >&5
44548echo "$as_me: WARNING: wxTreeCtrl requires wxImageList and won't be compiled without it" >&2;}
44549 fi
44550fi
44551
44552if test "$wxUSE_POPUPWIN" = "yes"; then
44553 if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1 ; then
44554 { echo "$as_me:$LINENO: WARNING: Popup window not yet supported under Mac OS X... disabled" >&5
44555echo "$as_me: WARNING: Popup window not yet supported under Mac OS X... disabled" >&2;}
44556 else
44557 if test "$wxUSE_PM" = 1; then
44558 { echo "$as_me:$LINENO: WARNING: wxPopupWindow not yet supported under PM... disabled" >&5
44559echo "$as_me: WARNING: wxPopupWindow not yet supported under PM... disabled" >&2;}
44560 else
44561 cat >>confdefs.h <<\_ACEOF
44562#define wxUSE_POPUPWIN 1
44563_ACEOF
44564
0b78747f 44565 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS popup"
a848cd7e
SC
44566
44567 USES_CONTROLS=1
44568 fi
44569 fi
44570fi
44571
0dcd06dd 44572if test "$wxUSE_DIALUP_MANAGER" = "yes"; then
b843b628
MB
44573 if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1 ; then
44574 { echo "$as_me:$LINENO: WARNING: Dialup manager not yet supported under Mac OS X... disabled" >&5
44575echo "$as_me: WARNING: Dialup manager not yet supported under Mac OS X... disabled" >&2;}
44576 else
44577 cat >>confdefs.h <<\_ACEOF
44578#define wxUSE_DIALUP_MANAGER 1
44579_ACEOF
44580
44581 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dialup"
44582 fi
44583fi
44584
a848cd7e
SC
44585if test "$wxUSE_TIPWINDOW" = "yes"; then
44586 if test "$wxUSE_PM" = 1; then
44587 { echo "$as_me:$LINENO: WARNING: wxTipWindow not yet supported under PM... disabled" >&5
44588echo "$as_me: WARNING: wxTipWindow not yet supported under PM... disabled" >&2;}
44589 else
44590 cat >>confdefs.h <<\_ACEOF
44591#define wxUSE_TIPWINDOW 1
44592_ACEOF
44593
44594 fi
44595fi
44596
44597if test "$USES_CONTROLS" = 1; then
44598 cat >>confdefs.h <<\_ACEOF
44599#define wxUSE_CONTROLS 1
44600_ACEOF
44601
44602fi
44603
44604
44605if test "$wxUSE_ACCESSIBILITY" = "yes"; then
44606 cat >>confdefs.h <<\_ACEOF
44607#define wxUSE_ACCESSIBILITY 1
44608_ACEOF
44609
44610 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS access"
44611fi
44612
38b4a946
VZ
44613if test "$wxUSE_DC_CACHEING" = "yes"; then
44614 cat >>confdefs.h <<\_ACEOF
44615#define wxUSE_DC_CACHEING 1
44616_ACEOF
44617
44618fi
44619
a848cd7e
SC
44620if test "$wxUSE_DRAGIMAGE" = "yes"; then
44621 cat >>confdefs.h <<\_ACEOF
44622#define wxUSE_DRAGIMAGE 1
44623_ACEOF
44624
44625 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dragimag"
44626fi
44627
44628if test "$wxUSE_EXCEPTIONS" = "yes"; then
07bea8f0
VS
44629 if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then
44630 { echo "$as_me:$LINENO: WARNING: --enable-exceptions can't be used with --enable-no_exceptions" >&5
44631echo "$as_me: WARNING: --enable-exceptions can't be used with --enable-no_exceptions" >&2;}
44632 else
44633 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
44634#define wxUSE_EXCEPTIONS 1
44635_ACEOF
44636
07bea8f0
VS
44637 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS except"
44638 fi
a848cd7e
SC
44639fi
44640
44641USE_HTML=0
44642if test "$wxUSE_HTML" = "yes"; then
44643 cat >>confdefs.h <<\_ACEOF
44644#define wxUSE_HTML 1
44645_ACEOF
44646
44647 USE_HTML=1
44648 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html html/about html/help html/helpview html/printing html/test html/virtual html/widget html/zip htlbox"
de59c161
RD
44649 if test "$wxUSE_MAC" = 1; then
44650 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html/htmlctrl"
44651 fi
a848cd7e 44652fi
646b6ec1 44653if test "$wxUSE_WEBKIT" = "yes"; then
1e9e8aba 44654 if test "$wxUSE_MAC" = 1 -a "$USE_DARWIN" = 1; then
07bea8f0 44655 old_CPPFLAGS="$CPPFLAGS"
c92ad099 44656 CPPFLAGS="-x objective-c++ $CPPFLAGS"
07bea8f0
VS
44657 echo "$as_me:$LINENO: checking for WebKit/HIWebView.h" >&5
44658echo $ECHO_N "checking for WebKit/HIWebView.h... $ECHO_C" >&6
44659if test "${ac_cv_header_WebKit_HIWebView_h+set}" = set; then
44660 echo $ECHO_N "(cached) $ECHO_C" >&6
44661else
44662 cat >conftest.$ac_ext <<_ACEOF
44663/* confdefs.h. */
44664_ACEOF
44665cat confdefs.h >>conftest.$ac_ext
44666cat >>conftest.$ac_ext <<_ACEOF
44667/* end confdefs.h. */
44668#include <Carbon/Carbon.h>
44669
44670#include <WebKit/HIWebView.h>
44671_ACEOF
44672rm -f conftest.$ac_objext
44673if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
44674 (eval $ac_compile) 2>conftest.er1
44675 ac_status=$?
44676 grep -v '^ *+' conftest.er1 >conftest.err
44677 rm -f conftest.er1
44678 cat conftest.err >&5
44679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44680 (exit $ac_status); } &&
c9a66001 44681 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
07bea8f0
VS
44682 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44683 (eval $ac_try) 2>&5
44684 ac_status=$?
44685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44686 (exit $ac_status); }; } &&
44687 { ac_try='test -s conftest.$ac_objext'
44688 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44689 (eval $ac_try) 2>&5
44690 ac_status=$?
44691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44692 (exit $ac_status); }; }; then
44693 ac_cv_header_WebKit_HIWebView_h=yes
44694else
44695 echo "$as_me: failed program was:" >&5
44696sed 's/^/| /' conftest.$ac_ext >&5
44697
44698ac_cv_header_WebKit_HIWebView_h=no
44699fi
44700rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
44701fi
44702echo "$as_me:$LINENO: result: $ac_cv_header_WebKit_HIWebView_h" >&5
44703echo "${ECHO_T}$ac_cv_header_WebKit_HIWebView_h" >&6
44704if test $ac_cv_header_WebKit_HIWebView_h = yes; then
44705
44706 cat >>confdefs.h <<\_ACEOF
646b6ec1
VS
44707#define wxUSE_WEBKIT 1
44708_ACEOF
44709
07bea8f0
VS
44710 WEBKIT_LINK="-framework WebKit"
44711
44712else
44713
44714 { echo "$as_me:$LINENO: WARNING: WebKit headers not found; disabling wxWebKit" >&5
44715echo "$as_me: WARNING: WebKit headers not found; disabling wxWebKit" >&2;}
44716 wxUSE_WEBKIT=no
44717
646b6ec1
VS
44718fi
44719
07bea8f0
VS
44720
44721 CPPFLAGS="$old_CPPFLAGS"
44722 elif test "$wxUSE_COCOA" = 1; then
44723 cat >>confdefs.h <<\_ACEOF
44724#define wxUSE_WEBKIT 1
44725_ACEOF
44726
44727 else
44728 wxUSE_WEBKIT=no
44729 fi
44730fi
44731
9a8f0513
VS
44732USE_XRC=0
44733if test "$wxUSE_XRC" = "yes"; then
d2ebf0b7
VS
44734 if test "$wxUSE_XML" != "yes"; then
44735 { echo "$as_me:$LINENO: WARNING: XML library not built, XRC resources disabled" >&5
44736echo "$as_me: WARNING: XML library not built, XRC resources disabled" >&2;}
44737 wxUSE_XRC=no
44738 else
44739 cat >>confdefs.h <<\_ACEOF
9a8f0513
VS
44740#define wxUSE_XRC 1
44741_ACEOF
44742
d2ebf0b7
VS
44743 USE_XRC=1
44744 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS xrc"
44745 fi
9a8f0513 44746fi
07bea8f0 44747
3f60522a
JS
44748USE_AUI=0
44749if test "$wxUSE_AUI" = "yes"; then
44750 cat >>confdefs.h <<\_ACEOF
44751#define wxUSE_AUI 1
44752_ACEOF
44753
44754 USE_AUI=1
44755 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS aui"
44756fi
44757
a848cd7e
SC
44758if test "$wxUSE_MENUS" = "yes"; then
44759 cat >>confdefs.h <<\_ACEOF
44760#define wxUSE_MENUS 1
44761_ACEOF
44762
44763 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS menu"
44764fi
44765
44766if test "$wxUSE_METAFILE" = "yes"; then
44767 cat >>confdefs.h <<\_ACEOF
44768#define wxUSE_METAFILE 1
44769_ACEOF
44770
44771fi
44772
44773if test "$wxUSE_MIMETYPE" = "yes"; then
44774 cat >>confdefs.h <<\_ACEOF
44775#define wxUSE_MIMETYPE 1
44776_ACEOF
44777
44778fi
44779
44780if test "$wxUSE_MINIFRAME" = "yes"; then
44781 cat >>confdefs.h <<\_ACEOF
44782#define wxUSE_MINIFRAME 1
44783_ACEOF
44784
44785 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS minifram"
44786fi
44787
44788if test "$wxUSE_SYSTEM_OPTIONS" = "yes"; then
44789 cat >>confdefs.h <<\_ACEOF
44790#define wxUSE_SYSTEM_OPTIONS 1
44791_ACEOF
44792
44793 if test "$TOOLKIT" = "MSW" -o "$TOOLKIT" = "GTK" -o "$TOOLKIT" = "X11" -o \
a49baeab 44794 "$TOOLKIT" = "MOTIF" -o "$TOOLKIT" = "COCOA"; then
a848cd7e
SC
44795 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS taskbar"
44796 fi
44797fi
44798
44799
44800if test "$wxUSE_VALIDATORS" = "yes"; then
44801 cat >>confdefs.h <<\_ACEOF
44802#define wxUSE_VALIDATORS 1
44803_ACEOF
44804
44805 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS validate"
44806fi
44807
44808if test "$wxUSE_PALETTE" = "yes" ; then
44809 cat >>confdefs.h <<\_ACEOF
44810#define wxUSE_PALETTE 1
44811_ACEOF
44812
44813fi
44814
44815if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_UNICODE_MSLU" = "yes" ; then
44816 LIBS=" -lunicows $LIBS"
44817fi
44818
91dea314
MW
44819USE_RICHTEXT=0
44820if test "$wxUSE_RICHTEXT" = "yes"; then
44821 cat >>confdefs.h <<\_ACEOF
44822#define wxUSE_RICHTEXT 1
44823_ACEOF
44824
44825 USE_RICHTEXT=1
44826 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS richtext"
44827fi
44828
a848cd7e
SC
44829
44830if test "$wxUSE_IMAGE" = "yes" ; then
44831 cat >>confdefs.h <<\_ACEOF
44832#define wxUSE_IMAGE 1
44833_ACEOF
44834
44835
44836 if test "$wxUSE_GIF" = "yes" ; then
44837 cat >>confdefs.h <<\_ACEOF
44838#define wxUSE_GIF 1
44839_ACEOF
44840
44841 fi
44842
44843 if test "$wxUSE_PCX" = "yes" ; then
44844 cat >>confdefs.h <<\_ACEOF
44845#define wxUSE_PCX 1
44846_ACEOF
44847
44848 fi
44849
44850 if test "$wxUSE_IFF" = "yes" ; then
44851 cat >>confdefs.h <<\_ACEOF
44852#define wxUSE_IFF 1
44853_ACEOF
44854
44855 fi
44856
44857 if test "$wxUSE_PNM" = "yes" ; then
44858 cat >>confdefs.h <<\_ACEOF
44859#define wxUSE_PNM 1
44860_ACEOF
44861
44862 fi
44863
44864 if test "$wxUSE_XPM" = "yes" ; then
44865 cat >>confdefs.h <<\_ACEOF
44866#define wxUSE_XPM 1
44867_ACEOF
44868
44869 fi
44870
44871 if test "$wxUSE_ICO_CUR" = "yes" ; then
44872 cat >>confdefs.h <<\_ACEOF
44873#define wxUSE_ICO_CUR 1
44874_ACEOF
44875
44876 fi
44877fi
44878
44879
44880if test "$wxUSE_CHOICEDLG" = "yes"; then
44881 cat >>confdefs.h <<\_ACEOF
44882#define wxUSE_CHOICEDLG 1
44883_ACEOF
44884
44885fi
44886
44887if test "$wxUSE_COLOURDLG" = "yes"; then
44888 cat >>confdefs.h <<\_ACEOF
44889#define wxUSE_COLOURDLG 1
44890_ACEOF
44891
44892fi
44893
44894if test "$wxUSE_FILEDLG" = "yes"; then
44895 cat >>confdefs.h <<\_ACEOF
44896#define wxUSE_FILEDLG 1
44897_ACEOF
44898
44899fi
44900
44901if test "$wxUSE_FINDREPLDLG" = "yes"; then
44902 cat >>confdefs.h <<\_ACEOF
44903#define wxUSE_FINDREPLDLG 1
44904_ACEOF
44905
44906fi
44907
44908if test "$wxUSE_FONTDLG" = "yes"; then
44909 cat >>confdefs.h <<\_ACEOF
44910#define wxUSE_FONTDLG 1
44911_ACEOF
44912
44913fi
44914
44915if test "$wxUSE_DIRDLG" = "yes"; then
44916 if test "$wxUSE_TREECTRL" != "yes"; then
44917 { echo "$as_me:$LINENO: WARNING: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" >&5
44918echo "$as_me: WARNING: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" >&2;}
44919 else
44920 cat >>confdefs.h <<\_ACEOF
44921#define wxUSE_DIRDLG 1
44922_ACEOF
44923
44924 fi
44925fi
44926
44927if test "$wxUSE_MSGDLG" = "yes"; then
44928 cat >>confdefs.h <<\_ACEOF
44929#define wxUSE_MSGDLG 1
44930_ACEOF
44931
44932fi
44933
44934if test "$wxUSE_NUMBERDLG" = "yes"; then
44935 cat >>confdefs.h <<\_ACEOF
44936#define wxUSE_NUMBERDLG 1
44937_ACEOF
44938
44939fi
44940
44941if test "$wxUSE_PROGRESSDLG" = "yes"; then
44942 if test "$wxUSE_CONSTRAINTS" != "yes"; then
44943 { echo "$as_me:$LINENO: WARNING: wxProgressDialog requires constraints so it won't be compiled without them" >&5
44944echo "$as_me: WARNING: wxProgressDialog requires constraints so it won't be compiled without them" >&2;}
44945 else
44946 cat >>confdefs.h <<\_ACEOF
44947#define wxUSE_PROGRESSDLG 1
44948_ACEOF
44949
44950 fi
44951fi
44952
44953if test "$wxUSE_SPLASH" = "yes"; then
44954 cat >>confdefs.h <<\_ACEOF
44955#define wxUSE_SPLASH 1
44956_ACEOF
44957
2057db16 44958 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splash"
a848cd7e
SC
44959fi
44960
44961if test "$wxUSE_STARTUP_TIPS" = "yes"; then
44962 if test "$wxUSE_CONSTRAINTS" != "yes"; then
44963 { echo "$as_me:$LINENO: WARNING: Startup tips requires constraints and won't be compiled without them" >&5
44964echo "$as_me: WARNING: Startup tips requires constraints and won't be compiled without them" >&2;}
44965 else
44966 cat >>confdefs.h <<\_ACEOF
44967#define wxUSE_STARTUP_TIPS 1
44968_ACEOF
44969
44970 fi
44971fi
44972
44973if test "$wxUSE_TEXTDLG" = "yes"; then
44974 cat >>confdefs.h <<\_ACEOF
44975#define wxUSE_TEXTDLG 1
44976_ACEOF
44977
44978fi
44979
44980if test "$wxUSE_WIZARDDLG" = "yes"; then
44981 cat >>confdefs.h <<\_ACEOF
44982#define wxUSE_WIZARDDLG 1
44983_ACEOF
44984
44985 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS wizard"
44986fi
44987
44988
f10e38c4
VZ
44989USE_MEDIA=0
44990
ce756cb0 44991if test "$wxUSE_MEDIACTRL" = "yes"; then
2f6c5bb5
VZ
44992 USE_MEDIA=1
44993
ce756cb0 44994 if test "$wxUSE_GTK" = 1; then
c9a66001 44995 wxUSE_GSTREAMER="no"
ce756cb0 44996
f10e38c4
VZ
44997 GST_VERSION_MAJOR=0
44998 GST_VERSION_MINOR=10
2f6c5bb5 44999 GST_VERSION=$GST_VERSION_MAJOR.$GST_VERSION_MINOR
f10e38c4
VZ
45000
45001 if test "$wxUSE_GSTREAMER8" = "no"; then
ce756cb0 45002
dae87f93 45003 succeeded=no
ce756cb0 45004
dae87f93
RN
45005 if test -z "$PKG_CONFIG"; then
45006 # Extract the first word of "pkg-config", so it can be a program name with args.
45007set dummy pkg-config; ac_word=$2
45008echo "$as_me:$LINENO: checking for $ac_word" >&5
45009echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
45010if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
45011 echo $ECHO_N "(cached) $ECHO_C" >&6
45012else
45013 case $PKG_CONFIG in
45014 [\\/]* | ?:[\\/]*)
45015 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
45016 ;;
45017 *)
45018 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
45019for as_dir in $PATH
45020do
45021 IFS=$as_save_IFS
45022 test -z "$as_dir" && as_dir=.
45023 for ac_exec_ext in '' $ac_executable_extensions; do
45024 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
45025 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
45026 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
45027 break 2
45028 fi
45029done
45030done
45031
45032 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
45033 ;;
45034esac
45035fi
45036PKG_CONFIG=$ac_cv_path_PKG_CONFIG
45037
45038if test -n "$PKG_CONFIG"; then
45039 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
45040echo "${ECHO_T}$PKG_CONFIG" >&6
45041else
45042 echo "$as_me:$LINENO: result: no" >&5
45043echo "${ECHO_T}no" >&6
45044fi
45045
45046 fi
45047
45048 if test "$PKG_CONFIG" = "no" ; then
45049 echo "*** The pkg-config script could not be found. Make sure it is"
45050 echo "*** in your path, or set the PKG_CONFIG environment variable"
45051 echo "*** to the full path to pkg-config."
45052 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
45053 else
45054 PKG_CONFIG_MIN_VERSION=0.9.0
45055 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
2f6c5bb5
VZ
45056 echo "$as_me:$LINENO: checking for gstreamer-$GST_VERSION gstreamer-plugins-base-$GST_VERSION gconf-2.0" >&5
45057echo $ECHO_N "checking for gstreamer-$GST_VERSION gstreamer-plugins-base-$GST_VERSION gconf-2.0... $ECHO_C" >&6
45058
45059 if $PKG_CONFIG --exists "gstreamer-$GST_VERSION gstreamer-plugins-base-$GST_VERSION gconf-2.0" ; then
dae87f93 45060 echo "$as_me:$LINENO: result: yes" >&5
ce756cb0 45061echo "${ECHO_T}yes" >&6
dae87f93 45062 succeeded=yes
ce756cb0 45063
f10e38c4
VZ
45064 echo "$as_me:$LINENO: checking GST_CFLAGS" >&5
45065echo $ECHO_N "checking GST_CFLAGS... $ECHO_C" >&6
2f6c5bb5 45066 GST_CFLAGS=`$PKG_CONFIG --cflags "gstreamer-$GST_VERSION gstreamer-plugins-base-$GST_VERSION gconf-2.0"`
f10e38c4
VZ
45067 echo "$as_me:$LINENO: result: $GST_CFLAGS" >&5
45068echo "${ECHO_T}$GST_CFLAGS" >&6
45069
45070 echo "$as_me:$LINENO: checking GST_LIBS" >&5
45071echo $ECHO_N "checking GST_LIBS... $ECHO_C" >&6
2f6c5bb5 45072 GST_LIBS=`$PKG_CONFIG --libs "gstreamer-$GST_VERSION gstreamer-plugins-base-$GST_VERSION gconf-2.0"`
f10e38c4
VZ
45073 echo "$as_me:$LINENO: result: $GST_LIBS" >&5
45074echo "${ECHO_T}$GST_LIBS" >&6
dae87f93 45075 else
f10e38c4
VZ
45076 GST_CFLAGS=""
45077 GST_LIBS=""
dae87f93
RN
45078 ## If we have a custom action on failure, don't print errors, but
45079 ## do set a variable so people can do so.
2f6c5bb5 45080 GST_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gstreamer-$GST_VERSION gstreamer-plugins-base-$GST_VERSION gconf-2.0"`
ce756cb0 45081
dae87f93
RN
45082 fi
45083
45084
45085
45086 else
45087 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
45088 echo "*** See http://www.freedesktop.org/software/pkgconfig"
45089 fi
45090 fi
45091
45092 if test $succeeded = yes; then
45093
2f6c5bb5
VZ
45094 wxUSE_GSTREAMER="yes"
45095 GST_LIBS="$GST_LIBS -lgstinterfaces-$GST_VERSION"
ce756cb0 45096
ce756cb0 45097 else
dae87f93 45098
2f6c5bb5
VZ
45099 { echo "$as_me:$LINENO: WARNING: GStreamer 0.10 not available, falling back to 0.8" >&5
45100echo "$as_me: WARNING: GStreamer 0.10 not available, falling back to 0.8" >&2;}
f10e38c4 45101 GST_VERSION_MINOR=8
dae87f93 45102
2f6c5bb5 45103
dae87f93
RN
45104 fi
45105
2f6c5bb5
VZ
45106 else
45107 GST_VERSION_MINOR=8
f10e38c4 45108 fi
dae87f93 45109
2f6c5bb5
VZ
45110 if test $GST_VERSION_MINOR = "8"; then
45111 GST_VERSION=$GST_VERSION_MAJOR.$GST_VERSION_MINOR
dae87f93 45112
f10e38c4 45113 succeeded=no
dae87f93 45114
f10e38c4
VZ
45115 if test -z "$PKG_CONFIG"; then
45116 # Extract the first word of "pkg-config", so it can be a program name with args.
45117set dummy pkg-config; ac_word=$2
dae87f93
RN
45118echo "$as_me:$LINENO: checking for $ac_word" >&5
45119echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
f10e38c4 45120if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
dae87f93
RN
45121 echo $ECHO_N "(cached) $ECHO_C" >&6
45122else
f10e38c4
VZ
45123 case $PKG_CONFIG in
45124 [\\/]* | ?:[\\/]*)
45125 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
45126 ;;
45127 *)
45128 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
dae87f93
RN
45129for as_dir in $PATH
45130do
45131 IFS=$as_save_IFS
45132 test -z "$as_dir" && as_dir=.
45133 for ac_exec_ext in '' $ac_executable_extensions; do
45134 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
f10e38c4 45135 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
dae87f93
RN
45136 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
45137 break 2
ce756cb0 45138 fi
dae87f93
RN
45139done
45140done
45141
f10e38c4
VZ
45142 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
45143 ;;
45144esac
dae87f93 45145fi
f10e38c4
VZ
45146PKG_CONFIG=$ac_cv_path_PKG_CONFIG
45147
45148if test -n "$PKG_CONFIG"; then
45149 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
45150echo "${ECHO_T}$PKG_CONFIG" >&6
dae87f93
RN
45151else
45152 echo "$as_me:$LINENO: result: no" >&5
45153echo "${ECHO_T}no" >&6
45154fi
45155
f10e38c4 45156 fi
ce756cb0 45157
f10e38c4
VZ
45158 if test "$PKG_CONFIG" = "no" ; then
45159 echo "*** The pkg-config script could not be found. Make sure it is"
45160 echo "*** in your path, or set the PKG_CONFIG environment variable"
45161 echo "*** to the full path to pkg-config."
45162 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
45163 else
45164 PKG_CONFIG_MIN_VERSION=0.9.0
45165 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
2f6c5bb5
VZ
45166 echo "$as_me:$LINENO: checking for gstreamer-$GST_VERSION gstreamer-interfaces-$GST_VERSION gstreamer-gconf-$GST_VERSION" >&5
45167echo $ECHO_N "checking for gstreamer-$GST_VERSION gstreamer-interfaces-$GST_VERSION gstreamer-gconf-$GST_VERSION... $ECHO_C" >&6
45168
45169 if $PKG_CONFIG --exists "gstreamer-$GST_VERSION gstreamer-interfaces-$GST_VERSION gstreamer-gconf-$GST_VERSION" ; then
f10e38c4
VZ
45170 echo "$as_me:$LINENO: result: yes" >&5
45171echo "${ECHO_T}yes" >&6
45172 succeeded=yes
dae87f93 45173
f10e38c4
VZ
45174 echo "$as_me:$LINENO: checking GST_CFLAGS" >&5
45175echo $ECHO_N "checking GST_CFLAGS... $ECHO_C" >&6
2f6c5bb5 45176 GST_CFLAGS=`$PKG_CONFIG --cflags "gstreamer-$GST_VERSION gstreamer-interfaces-$GST_VERSION gstreamer-gconf-$GST_VERSION"`
f10e38c4
VZ
45177 echo "$as_me:$LINENO: result: $GST_CFLAGS" >&5
45178echo "${ECHO_T}$GST_CFLAGS" >&6
45179
45180 echo "$as_me:$LINENO: checking GST_LIBS" >&5
45181echo $ECHO_N "checking GST_LIBS... $ECHO_C" >&6
2f6c5bb5 45182 GST_LIBS=`$PKG_CONFIG --libs "gstreamer-$GST_VERSION gstreamer-interfaces-$GST_VERSION gstreamer-gconf-$GST_VERSION"`
f10e38c4
VZ
45183 echo "$as_me:$LINENO: result: $GST_LIBS" >&5
45184echo "${ECHO_T}$GST_LIBS" >&6
45185 else
45186 GST_CFLAGS=""
45187 GST_LIBS=""
45188 ## If we have a custom action on failure, don't print errors, but
45189 ## do set a variable so people can do so.
2f6c5bb5 45190 GST_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gstreamer-$GST_VERSION gstreamer-interfaces-$GST_VERSION gstreamer-gconf-$GST_VERSION"`
dae87f93 45191
dae87f93
RN
45192 fi
45193
45194
ce756cb0 45195
f10e38c4
VZ
45196 else
45197 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
45198 echo "*** See http://www.freedesktop.org/software/pkgconfig"
45199 fi
45200 fi
ce756cb0 45201
f10e38c4 45202 if test $succeeded = yes; then
2f6c5bb5 45203 wxUSE_GSTREAMER="yes"
f10e38c4 45204 else
ce756cb0 45205
2f6c5bb5
VZ
45206 { echo "$as_me:$LINENO: WARNING: GStreamer 0.8/0.10 not available." >&5
45207echo "$as_me: WARNING: GStreamer 0.8/0.10 not available." >&2;}
ce756cb0 45208
f10e38c4 45209 fi
ce756cb0 45210
dae87f93 45211 fi
ce756cb0 45212
f10e38c4 45213
dae87f93 45214 if test "$wxUSE_GSTREAMER" = "yes"; then
c9a66001
VZ
45215 case "${host}" in
45216 *-*-solaris2* )
45217 if "$GCC" = yes; then
45218 GST_CFLAGS=`echo $GST_CFLAGS | sed 's/-mt//'`
45219 GST_LIBS=`echo $GST_LIBS | sed 's/-mt//'`
45220 fi
45221 esac
45222
45223 CPPFLAGS="$GST_CFLAGS $CPPFLAGS"
45224 LIBS="$GST_LIBS $LIBS"
45225
dae87f93 45226 cat >>confdefs.h <<\_ACEOF
ce756cb0
RN
45227#define wxUSE_GSTREAMER 1
45228_ACEOF
45229
2f6c5bb5
VZ
45230 else
45231 USE_MEDIA=0
ce756cb0
RN
45232 fi
45233 fi
2f6c5bb5
VZ
45234
45235 if test $USE_MEDIA = 1; then
45236 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mediaplayer"
45237 cat >>confdefs.h <<\_ACEOF
ce756cb0
RN
45238#define wxUSE_MEDIACTRL 1
45239_ACEOF
45240
2f6c5bb5 45241 fi
ce756cb0
RN
45242fi
45243
45244
a848cd7e
SC
45245if test "$cross_compiling" = "yes"; then
45246 OSINFO="\"$host\""
45247else
45248 OSINFO=`uname -s -r -m`
45249 OSINFO="\"$OSINFO\""
45250fi
45251
45252cat >>confdefs.h <<_ACEOF
45253#define WXWIN_OS_DESCRIPTION $OSINFO
45254_ACEOF
45255
45256
45257
45258if test "x$prefix" != "xNONE"; then
45259 wxPREFIX=$prefix
45260else
45261 wxPREFIX=$ac_default_prefix
45262fi
45263
45264cat >>confdefs.h <<_ACEOF
45265#define wxINSTALL_PREFIX "$wxPREFIX"
45266_ACEOF
45267
45268
a848cd7e
SC
45269
45270
45271CORE_BASE_LIBS="net base"
45272CORE_GUI_LIBS="adv core"
45273
45274if test "$wxUSE_XML" = "yes" ; then
45275 CORE_BASE_LIBS="xml $CORE_BASE_LIBS"
45276fi
45277if test "$wxUSE_ODBC" != "no" ; then
45278 CORE_BASE_LIBS="odbc $CORE_BASE_LIBS"
45279 CORE_GUI_LIBS="dbgrid $CORE_GUI_LIBS"
45280fi
45281if test "$wxUSE_HTML" = "yes" ; then
45282 CORE_GUI_LIBS="html $CORE_GUI_LIBS"
45283fi
61639efb
VZ
45284if test "$wxUSE_DEBUGREPORT" = "yes" ; then
45285 CORE_GUI_LIBS="qa $CORE_GUI_LIBS"
45286fi
9a8f0513
VS
45287if test "$wxUSE_XRC" = "yes" ; then
45288 CORE_GUI_LIBS="xrc $CORE_GUI_LIBS"
45289fi
3f60522a
JS
45290if test "$wxUSE_AUI" = "yes" ; then
45291 CORE_GUI_LIBS="aui $CORE_GUI_LIBS"
45292fi
a848cd7e
SC
45293
45294if test "$wxUSE_GUI" != "yes"; then
45295 CORE_GUI_LIBS=""
45296fi
45297
45298
45299
45300
45301
5d7b7554
VZ
45302ac_ext=c
45303ac_cpp='$CPP $CPPFLAGS'
45304ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
45305ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
45306ac_compiler_gnu=$ac_cv_c_compiler_gnu
45307
a848cd7e
SC
45308
45309
a848cd7e 45310if test "$wxUSE_MAC" = 1 ; then
a98bf0c0 45311 if test "$wxUSE_SOUND" = "yes" || test "$wxUSE_MEDIACTRL" = "yes"; then
1e9e8aba
DE
45312 if test "$USE_DARWIN" = 1; then
45313 LDFLAGS="$LDFLAGS -framework QuickTime"
45314 else
45315 LDFLAGS="$LDFLAGS -lQuickTimeLib"
45316 fi
07bea8f0 45317 fi
5dcf30a0 45318 if test "$USE_DARWIN" = 1; then
1e9e8aba
DE
45319 LDFLAGS="$LDFLAGS -framework IOKit -framework Carbon -framework Cocoa -framework System"
45320 else
45321 LDFLAGS="$LDFLAGS -lCarbonLib"
5dcf30a0 45322 fi
a848cd7e
SC
45323fi
45324if test "$wxUSE_COCOA" = 1 ; then
4cb1d3da 45325 LDFLAGS="$LDFLAGS -framework IOKit -framework Cocoa"
4fc81cbc
RN
45326 if test "$wxUSE_MEDIACTRL" = "yes"; then
45327 LDFLAGS="$LDFLAGS -framework QuickTime"
45328 fi
a848cd7e 45329fi
19b27e78
MW
45330if test "$USE_DARWIN" = 1 -a "$wxUSE_MAC" != 1 -a "$wxUSE_COCOA" != 1 ; then
45331 LDFLAGS="$LDFLAGS -framework IOKit -framework CoreServices -framework System -framework ApplicationServices"
45332fi
a848cd7e 45333
a848cd7e
SC
45334LIBS="$ZLIB_LINK $POSIX4_LINK $INET_LINK $WCHAR_LINK $DL_LINK $LIBS"
45335
a848cd7e
SC
45336if test "$wxUSE_GUI" = "yes"; then
45337
45338
8bce5cda
MW
45339 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS artprov controls dialogs drawing \
45340 dynamic erase event exec font image minimal mobile \
45341 mobile/wxedit mobile/styles propsize render \
9e39d889 45342 rotate shaped vscroll widgets"
a848cd7e
SC
45343
45344 if test "$wxUSE_MONOLITHIC" != "yes"; then
45345 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS console"
45346 fi
0b78747f 45347 if test "$TOOLKIT" = "MSW"; then
8bce5cda
MW
45348 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS regtest"
45349 if test "$wxUSE_UNIVERSAL" != "yes"; then
45350 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS ownerdrw nativdlg"
45351 fi
45352 fi
45353 if test "$TOOLKIT" = "PM" -a "$wxUSE_UNIVERSAL" != "yes"; then
45354 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS ownerdrw"
0b78747f 45355 fi
a848cd7e
SC
45356else
45357 SAMPLES_SUBDIRS="console"
45358fi
45359
45360
48f625bc 45361if test "x$INTELCC" = "xyes" ; then
17a1ebd1
VZ
45362 CWARNINGS="-Wall -wd810,869,981,1418,1572,1684"
45363elif test "$GCC" = yes ; then
45364 CWARNINGS="-Wall -Wundef"
45365fi
45366
48f625bc 45367if test "x$INTELCXX" = "xyes" ; then
7f47faf4 45368 CXXWARNINGS="-Wall -wd279,383,444,810,869,981,1418,1419"
17a1ebd1
VZ
45369elif test "$GXX" = yes ; then
45370 CXXWARNINGS="-Wall -Wundef -Wno-ctor-dtor-privacy"
6ebeb4c7 45371fi
a848cd7e 45372
a848cd7e 45373
5ff751d6
VZ
45374WXCONFIG_CFLAGS=`echo $WXCONFIG_CFLAGS`
45375WXCONFIG_CXXFLAGS=`echo $WXCONFIG_CFLAGS $WXCONFIG_CXXFLAGS`
45376
45377
c92ad099 45378CPPFLAGS=`echo $WXCONFIG_CPPFLAGS \
bc6ee4ae 45379 -I\\${top_builddir}lib/wx/include/${TOOLCHAIN_FULLNAME} \
c92ad099
VZ
45380 -I\\${top_srcdir}/include $TOOLKIT_INCLUDE \
45381 $CPPFLAGS `
5ff751d6 45382
8aeeb05c 45383C_AND_CXX_FLAGS="$DEBUG_CFLAGS $PROFILE_FLAGS $OPTIMISE_CFLAGS"
c92ad099 45384CFLAGS=`echo $WXCONFIG_CFLAGS $CWARNINGS $C_AND_CXX_FLAGS $CFLAGS `
9cbac6d1 45385CXXFLAGS=`echo $WXCONFIG_CXXFLAGS $CXXWARNINGS $C_AND_CXX_FLAGS $CXXFLAGS `
5ff751d6
VZ
45386
45387WXCONFIG_CPPFLAGS=`echo $WXCONFIG_CPPFLAGS $WXCONFIG_ONLY_CPPFLAGS`
45388
a848cd7e 45389
95986553
DE
45390if test "x$MWCC" = "xyes"; then
45391
45392 CC="$CC -cwd source -I-"
45393 CXX="$CXX -cwd source -I-"
45394fi
45395
a848cd7e 45396
0c3c69fc 45397LIBS=`echo $LIBS`
a848cd7e
SC
45398EXTRALIBS="$LDFLAGS $LDFLAGS_VERSIONING $LIBS $DMALLOC_LIBS"
45399EXTRALIBS_XML="$EXPAT_LINK"
45400EXTRALIBS_HTML="$MSPACK_LINK"
45401EXTRALIBS_ODBC="$ODBC_LINK"
45402if test "$wxUSE_GUI" = "yes"; then
2b850ae1 45403 EXTRALIBS_GUI=`echo $GUI_TK_LIBRARY $PNG_LINK $JPEG_LINK $TIFF_LINK $WEBKIT_LINK $EXTRALIBS_HILDON $EXTRALIBS_GNOMEVFS $EXTRALIBS_GNOMEPRINT`
a848cd7e
SC
45404fi
45405if test "$wxUSE_OPENGL" = "yes"; then
45406 EXTRALIBS_OPENGL="$LDFLAGS_GL $OPENGL_LIBS"
45407fi
45408
8aeeb05c 45409LDFLAGS="$LDFLAGS $PROFILE_FLAGS"
a848cd7e 45410
5ff751d6 45411WXCONFIG_LIBS="$LIBS"
a848cd7e
SC
45412
45413if test "$wxUSE_REGEX" = "builtin" ; then
74802184 45414 wxconfig_3rdparty="regex${lib_unicode_suffix} $wxconfig_3rdparty"
a848cd7e
SC
45415fi
45416if test "$wxUSE_EXPAT" = "builtin" ; then
74802184 45417 wxconfig_3rdparty="expat $wxconfig_3rdparty"
a848cd7e
SC
45418fi
45419if test "$wxUSE_ODBC" = "builtin" ; then
74802184 45420 wxconfig_3rdparty="odbc $wxconfig_3rdparty"
a848cd7e
SC
45421fi
45422if test "$wxUSE_LIBTIFF" = "builtin" ; then
74802184 45423 wxconfig_3rdparty="tiff $wxconfig_3rdparty"
a848cd7e
SC
45424fi
45425if test "$wxUSE_LIBJPEG" = "builtin" ; then
74802184 45426 wxconfig_3rdparty="jpeg $wxconfig_3rdparty"
a848cd7e
SC
45427fi
45428if test "$wxUSE_LIBPNG" = "builtin" ; then
74802184 45429 wxconfig_3rdparty="png $wxconfig_3rdparty"
a848cd7e
SC
45430fi
45431if test "$wxUSE_ZLIB" = "builtin" ; then
74802184 45432 wxconfig_3rdparty="zlib $wxconfig_3rdparty"
a848cd7e
SC
45433fi
45434
45435for i in $wxconfig_3rdparty ; do
5ff751d6 45436 WXCONFIG_LIBS="-lwx${i}${lib_debug_suffix}${WX_LIB_FLAVOUR}-${WX_RELEASE}${HOST_SUFFIX} $WXCONFIG_LIBS"
a848cd7e
SC
45437done
45438
45439
45440if test "x$wxUSE_UNIVERSAL" = "xyes" ; then
45441 WXUNIV=1
45442else
45443 WXUNIV=0
45444fi
45445
45446
45447
45448
45449
45450
45451
45452
45453
45454if test $wxUSE_MONOLITHIC = "yes" ; then
45455 MONOLITHIC=1
45456else
45457 MONOLITHIC=0
45458fi
45459
45460if test $wxUSE_PLUGINS = "yes" ; then
45461 USE_PLUGINS=1
45462else
45463 USE_PLUGINS=0
45464fi
45465
45466if test $wxUSE_ODBC != "no" ; then
45467 USE_ODBC=1
45468else
45469 USE_ODBC=0
45470fi
45471
16358932
VZ
45472if test "$wxUSE_DEBUGREPORT" = "yes" ; then
45473 USE_QA=1
45474else
45475 USE_QA=0
45476fi
45477
a848cd7e
SC
45478if test $wxUSE_OFFICIAL_BUILD = "yes" ; then
45479 OFFICIAL_BUILD=1
45480else
45481 OFFICIAL_BUILD=0
45482fi
45483
45484
45485
45486
45487
45488
45489
45490
45491
45492
45493
45494
45495
45496
45497
45498
45499
45500
45501
ceec2216 45502
d1c38808 45503
3565d135 45504
2b850ae1 45505
a848cd7e
SC
45506
45507
45508TOOLKIT_LOWERCASE=`echo $TOOLKIT | tr "[A-Z]" "[a-z]"`
45509
45510
45511
45512
45513
45514
45515
45516
4d4ff94c
VZ
45517case "$TOOLKIT" in
45518 GTK)
45519 TOOLKIT_USER="GTK+"
45520 if test "$WXGTK20" = 1; then
45521 TOOLKIT_USER="$TOOLKIT_USER 2"
45522 fi
9a8f0513 45523 ;;
4d4ff94c
VZ
45524
45525 *)
45526 TOOLKIT_USER=$TOOLKIT_LOWERCASE
9a8f0513 45527 ;;
4d4ff94c 45528esac
a848cd7e 45529
fb00f58d
JS
45530if test "$wxUSE_WINE" = "yes"; then
45531 BAKEFILE_FORCE_PLATFORM=win32
45532fi
45533
7afc46ab
KO
45534if test "$wxUSE_MAC" = 1 ; then
45535 if test "$wxUSE_UNIVERSAL_BINARY" = "yes" ; then
45536 CXXFLAGS="-isysroot /Developer/SDKs/MacOSX10.4u.sdk -arch ppc -arch i386 $CXXFLAGS"
45537 CFLAGS="-isysroot /Developer/SDKs/MacOSX10.4u.sdk -arch ppc -arch i386 $CFLAGS"
45538 LDFLAGS="-isysroot /Developer/SDKs/MacOSX10.4u.sdk -arch ppc -arch i386 $LDFLAGS"
45539 bk_use_pch=no
45540 fi
45541 # TODO: where do we add "-syslibroot,/Developer/SDKs/MacOSX10.4u.sdk" for libtool (static builds only)?
45542 # The makefile currently uses AR and RANLIB, which libtool apparently supercedes.
45543 # TODO: how can we avoid a hardwired reference to the SDK, above? (Someone used -lSystemStubs to avoid it)
45544fi
45545
9a8f0513 45546
1e9e8aba
DE
45547
45548
a848cd7e 45549 if test "x$BAKEFILE_HOST" = "x"; then
f10e38c4
VZ
45550 if test "x${host}" = "x" ; then
45551 { { echo "$as_me:$LINENO: error: You must call the autoconf \"CANONICAL_HOST\" macro in your configure.ac (or .in) file." >&5
45552echo "$as_me: error: You must call the autoconf \"CANONICAL_HOST\" macro in your configure.ac (or .in) file." >&2;}
45553 { (exit 1); exit 1; }; }
45554 fi
45555
a848cd7e
SC
45556 BAKEFILE_HOST="${host}"
45557 fi
45558
45559 if test "x$BAKEFILE_CHECK_BASICS" != "xno"; then
45560
45561 if test -n "$ac_tool_prefix"; then
45562 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
45563set dummy ${ac_tool_prefix}ranlib; ac_word=$2
45564echo "$as_me:$LINENO: checking for $ac_word" >&5
45565echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
45566if test "${ac_cv_prog_RANLIB+set}" = set; then
45567 echo $ECHO_N "(cached) $ECHO_C" >&6
45568else
45569 if test -n "$RANLIB"; then
45570 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
45571else
45572as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
45573for as_dir in $PATH
45574do
45575 IFS=$as_save_IFS
45576 test -z "$as_dir" && as_dir=.
45577 for ac_exec_ext in '' $ac_executable_extensions; do
45578 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
45579 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
45580 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
45581 break 2
45582 fi
45583done
45584done
45585
45586fi
45587fi
45588RANLIB=$ac_cv_prog_RANLIB
45589if test -n "$RANLIB"; then
45590 echo "$as_me:$LINENO: result: $RANLIB" >&5
45591echo "${ECHO_T}$RANLIB" >&6
45592else
45593 echo "$as_me:$LINENO: result: no" >&5
45594echo "${ECHO_T}no" >&6
45595fi
45596
45597fi
45598if test -z "$ac_cv_prog_RANLIB"; then
45599 ac_ct_RANLIB=$RANLIB
45600 # Extract the first word of "ranlib", so it can be a program name with args.
45601set dummy ranlib; ac_word=$2
45602echo "$as_me:$LINENO: checking for $ac_word" >&5
45603echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
45604if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
45605 echo $ECHO_N "(cached) $ECHO_C" >&6
45606else
45607 if test -n "$ac_ct_RANLIB"; then
45608 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
45609else
45610as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
45611for as_dir in $PATH
45612do
45613 IFS=$as_save_IFS
45614 test -z "$as_dir" && as_dir=.
45615 for ac_exec_ext in '' $ac_executable_extensions; do
45616 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
45617 ac_cv_prog_ac_ct_RANLIB="ranlib"
45618 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
45619 break 2
45620 fi
45621done
45622done
45623
45624 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
45625fi
45626fi
45627ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
45628if test -n "$ac_ct_RANLIB"; then
45629 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
45630echo "${ECHO_T}$ac_ct_RANLIB" >&6
45631else
45632 echo "$as_me:$LINENO: result: no" >&5
45633echo "${ECHO_T}no" >&6
45634fi
45635
45636 RANLIB=$ac_ct_RANLIB
45637else
45638 RANLIB="$ac_cv_prog_RANLIB"
45639fi
45640
45641 # Find a good install program. We prefer a C program (faster),
45642# so one script is as good as another. But avoid the broken or
45643# incompatible versions:
45644# SysV /etc/install, /usr/sbin/install
45645# SunOS /usr/etc/install
45646# IRIX /sbin/install
45647# AIX /bin/install
45648# AmigaOS /C/install, which installs bootblocks on floppy discs
45649# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
45650# AFS /usr/afsws/bin/install, which mishandles nonexistent args
45651# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
ac1cb8d3 45652# OS/2's system install, which has a completely different semantic
a848cd7e
SC
45653# ./install, which can be erroneously created by make from ./install.sh.
45654echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
45655echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
45656if test -z "$INSTALL"; then
45657if test "${ac_cv_path_install+set}" = set; then
45658 echo $ECHO_N "(cached) $ECHO_C" >&6
45659else
45660 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
45661for as_dir in $PATH
45662do
45663 IFS=$as_save_IFS
45664 test -z "$as_dir" && as_dir=.
45665 # Account for people who put trailing slashes in PATH elements.
45666case $as_dir/ in
45667 ./ | .// | /cC/* | \
45668 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
ac1cb8d3 45669 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
a848cd7e
SC
45670 /usr/ucb/* ) ;;
45671 *)
45672 # OSF1 and SCO ODT 3.0 have their own names for install.
45673 # Don't use installbsd from OSF since it installs stuff as root
45674 # by default.
45675 for ac_prog in ginstall scoinst install; do
45676 for ac_exec_ext in '' $ac_executable_extensions; do
ac1cb8d3
VS
45677 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
45678 if test $ac_prog = install &&
45679 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
45680 # AIX install. It has an incompatible calling convention.
45681 :
45682 elif test $ac_prog = install &&
45683 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
45684 # program-specific install script used by HP pwplus--don't use.
45685 :
45686 else
45687 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
45688 break 3
45689 fi
45690 fi
a848cd7e
SC
45691 done
45692 done
45693 ;;
45694esac
45695done
45696
45697
45698fi
45699 if test "${ac_cv_path_install+set}" = set; then
45700 INSTALL=$ac_cv_path_install
45701 else
45702 # As a last resort, use the slow shell script. We don't cache a
45703 # path for INSTALL within a source directory, because that will
45704 # break other packages using the cache if that directory is
45705 # removed, or if the path is relative.
45706 INSTALL=$ac_install_sh
45707 fi
45708fi
45709echo "$as_me:$LINENO: result: $INSTALL" >&5
45710echo "${ECHO_T}$INSTALL" >&6
45711
45712# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
45713# It thinks the first close brace ends the variable substitution.
45714test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
45715
45716test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
45717
45718test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
45719
45720 echo "$as_me:$LINENO: checking whether ln -s works" >&5
45721echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
45722LN_S=$as_ln_s
45723if test "$LN_S" = "ln -s"; then
45724 echo "$as_me:$LINENO: result: yes" >&5
45725echo "${ECHO_T}yes" >&6
45726else
45727 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
45728echo "${ECHO_T}no, using $LN_S" >&6
45729fi
45730
45731
45732 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
45733echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
ac1cb8d3 45734set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
a848cd7e
SC
45735if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
45736 echo $ECHO_N "(cached) $ECHO_C" >&6
45737else
45738 cat >conftest.make <<\_ACEOF
45739all:
45740 @echo 'ac_maketemp="$(MAKE)"'
45741_ACEOF
45742# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
45743eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
45744if test -n "$ac_maketemp"; then
45745 eval ac_cv_prog_make_${ac_make}_set=yes
45746else
45747 eval ac_cv_prog_make_${ac_make}_set=no
45748fi
45749rm -f conftest.make
45750fi
45751if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
45752 echo "$as_me:$LINENO: result: yes" >&5
45753echo "${ECHO_T}yes" >&6
45754 SET_MAKE=
45755else
45756 echo "$as_me:$LINENO: result: no" >&5
45757echo "${ECHO_T}no" >&6
45758 SET_MAKE="MAKE=${MAKE-make}"
45759fi
45760
45761
45762
45763 if test -n "$ac_tool_prefix"; then
45764 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
45765set dummy ${ac_tool_prefix}ar; ac_word=$2
45766echo "$as_me:$LINENO: checking for $ac_word" >&5
45767echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
45768if test "${ac_cv_prog_AR+set}" = set; then
45769 echo $ECHO_N "(cached) $ECHO_C" >&6
45770else
45771 if test -n "$AR"; then
45772 ac_cv_prog_AR="$AR" # Let the user override the test.
45773else
45774as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
45775for as_dir in $PATH
45776do
45777 IFS=$as_save_IFS
45778 test -z "$as_dir" && as_dir=.
45779 for ac_exec_ext in '' $ac_executable_extensions; do
45780 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
45781 ac_cv_prog_AR="${ac_tool_prefix}ar"
45782 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
45783 break 2
45784 fi
45785done
45786done
45787
45788fi
45789fi
45790AR=$ac_cv_prog_AR
45791if test -n "$AR"; then
45792 echo "$as_me:$LINENO: result: $AR" >&5
45793echo "${ECHO_T}$AR" >&6
45794else
45795 echo "$as_me:$LINENO: result: no" >&5
45796echo "${ECHO_T}no" >&6
45797fi
45798
45799fi
45800if test -z "$ac_cv_prog_AR"; then
45801 ac_ct_AR=$AR
45802 # Extract the first word of "ar", so it can be a program name with args.
45803set dummy ar; ac_word=$2
45804echo "$as_me:$LINENO: checking for $ac_word" >&5
45805echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
45806if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
45807 echo $ECHO_N "(cached) $ECHO_C" >&6
45808else
45809 if test -n "$ac_ct_AR"; then
45810 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
45811else
45812as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
45813for as_dir in $PATH
45814do
45815 IFS=$as_save_IFS
45816 test -z "$as_dir" && as_dir=.
45817 for ac_exec_ext in '' $ac_executable_extensions; do
45818 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
45819 ac_cv_prog_ac_ct_AR="ar"
45820 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
45821 break 2
45822 fi
45823done
45824done
45825
45826 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="ar"
45827fi
45828fi
45829ac_ct_AR=$ac_cv_prog_ac_ct_AR
45830if test -n "$ac_ct_AR"; then
45831 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
45832echo "${ECHO_T}$ac_ct_AR" >&6
45833else
45834 echo "$as_me:$LINENO: result: no" >&5
45835echo "${ECHO_T}no" >&6
45836fi
45837
45838 AR=$ac_ct_AR
45839else
45840 AR="$ac_cv_prog_AR"
45841fi
45842
45843 if test -n "$ac_tool_prefix"; then
45844 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
45845set dummy ${ac_tool_prefix}strip; ac_word=$2
45846echo "$as_me:$LINENO: checking for $ac_word" >&5
45847echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
45848if test "${ac_cv_prog_STRIP+set}" = set; then
45849 echo $ECHO_N "(cached) $ECHO_C" >&6
45850else
45851 if test -n "$STRIP"; then
45852 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
45853else
45854as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
45855for as_dir in $PATH
45856do
45857 IFS=$as_save_IFS
45858 test -z "$as_dir" && as_dir=.
45859 for ac_exec_ext in '' $ac_executable_extensions; do
45860 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
45861 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
45862 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
45863 break 2
45864 fi
45865done
45866done
45867
45868fi
45869fi
45870STRIP=$ac_cv_prog_STRIP
45871if test -n "$STRIP"; then
45872 echo "$as_me:$LINENO: result: $STRIP" >&5
45873echo "${ECHO_T}$STRIP" >&6
45874else
45875 echo "$as_me:$LINENO: result: no" >&5
45876echo "${ECHO_T}no" >&6
45877fi
45878
45879fi
45880if test -z "$ac_cv_prog_STRIP"; then
45881 ac_ct_STRIP=$STRIP
45882 # Extract the first word of "strip", so it can be a program name with args.
45883set dummy strip; ac_word=$2
45884echo "$as_me:$LINENO: checking for $ac_word" >&5
45885echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
45886if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
45887 echo $ECHO_N "(cached) $ECHO_C" >&6
45888else
45889 if test -n "$ac_ct_STRIP"; then
45890 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
45891else
45892as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
45893for as_dir in $PATH
45894do
45895 IFS=$as_save_IFS
45896 test -z "$as_dir" && as_dir=.
45897 for ac_exec_ext in '' $ac_executable_extensions; do
45898 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
45899 ac_cv_prog_ac_ct_STRIP="strip"
45900 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
45901 break 2
45902 fi
45903done
45904done
45905
45906 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
45907fi
45908fi
45909ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
45910if test -n "$ac_ct_STRIP"; then
45911 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
45912echo "${ECHO_T}$ac_ct_STRIP" >&6
45913else
45914 echo "$as_me:$LINENO: result: no" >&5
45915echo "${ECHO_T}no" >&6
45916fi
45917
45918 STRIP=$ac_ct_STRIP
45919else
45920 STRIP="$ac_cv_prog_STRIP"
45921fi
45922
45923 if test -n "$ac_tool_prefix"; then
45924 # Extract the first word of "${ac_tool_prefix}nm", so it can be a program name with args.
45925set dummy ${ac_tool_prefix}nm; ac_word=$2
45926echo "$as_me:$LINENO: checking for $ac_word" >&5
45927echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
45928if test "${ac_cv_prog_NM+set}" = set; then
45929 echo $ECHO_N "(cached) $ECHO_C" >&6
45930else
45931 if test -n "$NM"; then
45932 ac_cv_prog_NM="$NM" # Let the user override the test.
45933else
45934as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
45935for as_dir in $PATH
45936do
45937 IFS=$as_save_IFS
45938 test -z "$as_dir" && as_dir=.
45939 for ac_exec_ext in '' $ac_executable_extensions; do
45940 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
45941 ac_cv_prog_NM="${ac_tool_prefix}nm"
45942 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
45943 break 2
45944 fi
45945done
45946done
45947
45948fi
45949fi
45950NM=$ac_cv_prog_NM
45951if test -n "$NM"; then
45952 echo "$as_me:$LINENO: result: $NM" >&5
45953echo "${ECHO_T}$NM" >&6
45954else
45955 echo "$as_me:$LINENO: result: no" >&5
45956echo "${ECHO_T}no" >&6
45957fi
45958
45959fi
45960if test -z "$ac_cv_prog_NM"; then
45961 ac_ct_NM=$NM
45962 # Extract the first word of "nm", so it can be a program name with args.
45963set dummy nm; ac_word=$2
45964echo "$as_me:$LINENO: checking for $ac_word" >&5
45965echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
45966if test "${ac_cv_prog_ac_ct_NM+set}" = set; then
45967 echo $ECHO_N "(cached) $ECHO_C" >&6
45968else
45969 if test -n "$ac_ct_NM"; then
45970 ac_cv_prog_ac_ct_NM="$ac_ct_NM" # Let the user override the test.
45971else
45972as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
45973for as_dir in $PATH
45974do
45975 IFS=$as_save_IFS
45976 test -z "$as_dir" && as_dir=.
45977 for ac_exec_ext in '' $ac_executable_extensions; do
45978 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
45979 ac_cv_prog_ac_ct_NM="nm"
45980 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
45981 break 2
45982 fi
45983done
45984done
45985
45986 test -z "$ac_cv_prog_ac_ct_NM" && ac_cv_prog_ac_ct_NM=":"
45987fi
45988fi
45989ac_ct_NM=$ac_cv_prog_ac_ct_NM
45990if test -n "$ac_ct_NM"; then
45991 echo "$as_me:$LINENO: result: $ac_ct_NM" >&5
45992echo "${ECHO_T}$ac_ct_NM" >&6
45993else
45994 echo "$as_me:$LINENO: result: no" >&5
45995echo "${ECHO_T}no" >&6
45996fi
45997
45998 NM=$ac_ct_NM
45999else
46000 NM="$ac_cv_prog_NM"
46001fi
46002
46003
46004 case ${BAKEFILE_HOST} in
46005 *-hp-hpux* )
1e9e8aba 46006 INSTALL_DIR="mkdir -p"
a848cd7e
SC
46007 ;;
46008 *) INSTALL_DIR="$INSTALL -d"
46009 ;;
46010 esac
46011
46012
46013 LDFLAGS_GUI=
46014 case ${BAKEFILE_HOST} in
46015 *-*-cygwin* | *-*-mingw32* )
46016 LDFLAGS_GUI="-mwindows"
46017 esac
46018
46019
46020 fi
46021
46022 echo "$as_me:$LINENO: checking if make is GNU make" >&5
46023echo $ECHO_N "checking if make is GNU make... $ECHO_C" >&6
46024if test "${bakefile_cv_prog_makeisgnu+set}" = set; then
46025 echo $ECHO_N "(cached) $ECHO_C" >&6
46026else
46027
46028 if ( ${SHELL-sh} -c "${MAKE-make} --version" 2> /dev/null |
46029 egrep -s GNU > /dev/null); then
46030 bakefile_cv_prog_makeisgnu="yes"
46031 else
46032 bakefile_cv_prog_makeisgnu="no"
46033 fi
46034
46035fi
46036echo "$as_me:$LINENO: result: $bakefile_cv_prog_makeisgnu" >&5
46037echo "${ECHO_T}$bakefile_cv_prog_makeisgnu" >&6
46038
46039 if test "x$bakefile_cv_prog_makeisgnu" = "xyes"; then
46040 IF_GNU_MAKE=""
46041 else
46042 IF_GNU_MAKE="#"
46043 fi
46044
46045
46046
46047 PLATFORM_UNIX=0
46048 PLATFORM_WIN32=0
46049 PLATFORM_MSDOS=0
46050 PLATFORM_MAC=0
1e9e8aba 46051 PLATFORM_MACOS=0
a848cd7e
SC
46052 PLATFORM_MACOSX=0
46053 PLATFORM_OS2=0
1e9e8aba 46054 PLATFORM_BEOS=0
a848cd7e
SC
46055
46056 if test "x$BAKEFILE_FORCE_PLATFORM" = "x"; then
46057 case "${BAKEFILE_HOST}" in
810b94f0 46058 *-*-mingw32* )
a848cd7e
SC
46059 PLATFORM_WIN32=1
46060 ;;
46061 *-pc-msdosdjgpp )
46062 PLATFORM_MSDOS=1
46063 ;;
46064 *-pc-os2_emx | *-pc-os2-emx )
46065 PLATFORM_OS2=1
46066 ;;
47bd5406 46067 *-*-darwin* )
a848cd7e
SC
46068 PLATFORM_MAC=1
46069 PLATFORM_MACOSX=1
46070 ;;
1e9e8aba
DE
46071 *-*-beos* )
46072 PLATFORM_BEOS=1
46073 ;;
46074 powerpc-apple-macos* )
46075 PLATFORM_MAC=1
46076 PLATFORM_MACOS=1
46077 ;;
a848cd7e
SC
46078 * )
46079 PLATFORM_UNIX=1
46080 ;;
46081 esac
46082 else
46083 case "$BAKEFILE_FORCE_PLATFORM" in
46084 win32 )
46085 PLATFORM_WIN32=1
46086 ;;
46087 msdos )
46088 PLATFORM_MSDOS=1
46089 ;;
46090 os2 )
46091 PLATFORM_OS2=1
46092 ;;
46093 darwin )
46094 PLATFORM_MAC=1
46095 PLATFORM_MACOSX=1
46096 ;;
46097 unix )
46098 PLATFORM_UNIX=1
46099 ;;
1e9e8aba
DE
46100 beos )
46101 PLATFORM_BEOS=1
46102 ;;
a848cd7e
SC
46103 * )
46104 { { echo "$as_me:$LINENO: error: Unknown platform: $BAKEFILE_FORCE_PLATFORM" >&5
46105echo "$as_me: error: Unknown platform: $BAKEFILE_FORCE_PLATFORM" >&2;}
46106 { (exit 1); exit 1; }; }
46107 ;;
46108 esac
46109 fi
46110
46111
46112
46113
46114
46115
46116
46117
46118
1e9e8aba
DE
46119
46120
a848cd7e
SC
46121 # Check whether --enable-omf or --disable-omf was given.
46122if test "${enable_omf+set}" = set; then
46123 enableval="$enable_omf"
46124 bk_os2_use_omf="$enableval"
46125fi;
46126
46127 case "${BAKEFILE_HOST}" in
46128 *-*-darwin* )
47bd5406
VZ
46129 if test "x$GCC" = "xyes"; then
46130 CFLAGS="$CFLAGS -fno-common"
46131 CXXFLAGS="$CXXFLAGS -fno-common"
46132 fi
46133 if test "x$XLCC" = "xyes"; then
46134 CFLAGS="$CFLAGS -qnocommon"
46135 CXXFLAGS="$CXXFLAGS -qnocommon"
46136 fi
a848cd7e
SC
46137 ;;
46138
46139 *-pc-os2_emx | *-pc-os2-emx )
46140 if test "x$bk_os2_use_omf" = "xyes" ; then
46141 AR=emxomfar
46142 RANLIB=:
46143 LDFLAGS="-Zomf $LDFLAGS"
46144 CFLAGS="-Zomf $CFLAGS"
46145 CXXFLAGS="-Zomf $CXXFLAGS"
46146 OS2_LIBEXT="lib"
46147 else
46148 OS2_LIBEXT="a"
46149 fi
46150 ;;
1e9e8aba
DE
46151
46152 i*86-*-beos* )
46153 LDFLAGS="-L/boot/develop/lib/x86 $LDFLAGS"
46154 ;;
a848cd7e
SC
46155 esac
46156
46157
46158 SO_SUFFIX="so"
46159 SO_SUFFIX_MODULE="so"
46160 EXEEXT=""
46161 LIBPREFIX="lib"
46162 LIBEXT=".a"
46163 DLLPREFIX="lib"
46164 DLLPREFIX_MODULE=""
46165 DLLIMP_SUFFIX=""
810b94f0 46166 dlldir="$libdir"
a848cd7e
SC
46167
46168 case "${BAKEFILE_HOST}" in
46169 *-hp-hpux* )
46170 SO_SUFFIX="sl"
46171 SO_SUFFIX_MODULE="sl"
46172 ;;
46173 *-*-aix* )
46174 SO_SUFFIX="a"
46175 SO_SUFFIX_MODULE="a"
46176 ;;
810b94f0
MW
46177 *-*-cygwin* )
46178 SO_SUFFIX="dll"
46179 SO_SUFFIX_MODULE="dll"
46180 DLLIMP_SUFFIX="dll.a"
46181 EXEEXT=".exe"
46182 DLLPREFIX="cyg"
46183 dlldir="$bindir"
46184 ;;
46185 *-*-mingw32* )
a848cd7e
SC
46186 SO_SUFFIX="dll"
46187 SO_SUFFIX_MODULE="dll"
46188 DLLIMP_SUFFIX="dll.a"
46189 EXEEXT=".exe"
46190 DLLPREFIX=""
810b94f0 46191 dlldir="$bindir"
a848cd7e
SC
46192 ;;
46193 *-pc-msdosdjgpp )
46194 EXEEXT=".exe"
46195 DLLPREFIX=""
810b94f0 46196 dlldir="$bindir"
a848cd7e
SC
46197 ;;
46198 *-pc-os2_emx | *-pc-os2-emx )
46199 SO_SUFFIX="dll"
46200 SO_SUFFIX_MODULE="dll"
46201 DLLIMP_SUFFIX=$OS2_LIBEXT
46202 EXEEXT=".exe"
46203 DLLPREFIX=""
46204 LIBPREFIX=""
46205 LIBEXT=".$OS2_LIBEXT"
810b94f0 46206 dlldir="$bindir"
a848cd7e 46207 ;;
47bd5406 46208 *-*-darwin* )
a848cd7e
SC
46209 SO_SUFFIX="dylib"
46210 SO_SUFFIX_MODULE="bundle"
46211 ;;
46212 esac
46213
46214 if test "x$DLLIMP_SUFFIX" = "x" ; then
46215 DLLIMP_SUFFIX="$SO_SUFFIX"
46216 fi
46217
46218
46219
46220
46221
46222
46223
46224
46225
46226
46227
810b94f0 46228
1e9e8aba
DE
46229 PIC_FLAG=""
46230 if test "x$GCC" = "xyes"; then
a848cd7e
SC
46231 PIC_FLAG="-fPIC"
46232 fi
46233
1e9e8aba
DE
46234 SHARED_LD_CC="\$(CC) -shared ${PIC_FLAG} -o"
46235 SHARED_LD_CXX="\$(CXX) -shared ${PIC_FLAG} -o"
810b94f0 46236 WINDOWS_IMPLIB=0
1e9e8aba 46237
a848cd7e
SC
46238 case "${BAKEFILE_HOST}" in
46239 *-hp-hpux* )
1e9e8aba 46240 if test "x$GCC" != "xyes"; then
a848cd7e
SC
46241 LDFLAGS="$LDFLAGS -L/usr/lib"
46242
46243 SHARED_LD_CC="${CC} -b -o"
46244 SHARED_LD_CXX="${CXX} -b -o"
46245 PIC_FLAG="+Z"
46246 fi
46247 ;;
46248
46249 *-*-linux* )
46250 if test "x$GCC" != "xyes"; then
46251 echo "$as_me:$LINENO: checking for Intel compiler" >&5
46252echo $ECHO_N "checking for Intel compiler... $ECHO_C" >&6
46253if test "${bakefile_cv_prog_icc+set}" = set; then
46254 echo $ECHO_N "(cached) $ECHO_C" >&6
46255else
46256
46257 cat >conftest.$ac_ext <<_ACEOF
46258/* confdefs.h. */
46259_ACEOF
46260cat confdefs.h >>conftest.$ac_ext
46261cat >>conftest.$ac_ext <<_ACEOF
46262/* end confdefs.h. */
46263
46264int
46265main ()
46266{
46267
46268 #ifndef __INTEL_COMPILER
e5efa97e 46269 This is not ICC
a848cd7e
SC
46270 #endif
46271
46272 ;
46273 return 0;
46274}
46275_ACEOF
46276rm -f conftest.$ac_objext
46277if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 46278 (eval $ac_compile) 2>conftest.er1
a848cd7e 46279 ac_status=$?
ac1cb8d3
VS
46280 grep -v '^ *+' conftest.er1 >conftest.err
46281 rm -f conftest.er1
46282 cat conftest.err >&5
a848cd7e
SC
46283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46284 (exit $ac_status); } &&
c9a66001 46285 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
46286 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46287 (eval $ac_try) 2>&5
46288 ac_status=$?
46289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46290 (exit $ac_status); }; } &&
46291 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
46292 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46293 (eval $ac_try) 2>&5
46294 ac_status=$?
46295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46296 (exit $ac_status); }; }; then
46297 bakefile_cv_prog_icc=yes
46298else
46299 echo "$as_me: failed program was:" >&5
46300sed 's/^/| /' conftest.$ac_ext >&5
46301
46302bakefile_cv_prog_icc=no
46303
46304fi
ac1cb8d3 46305rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
46306
46307fi
46308echo "$as_me:$LINENO: result: $bakefile_cv_prog_icc" >&5
46309echo "${ECHO_T}$bakefile_cv_prog_icc" >&6
46310 if test "$bakefile_cv_prog_icc" = "yes"; then
46311 PIC_FLAG="-KPIC"
46312 fi
46313 fi
46314 ;;
46315
46316 *-*-solaris2* )
46317 if test "x$GCC" != xyes ; then
46318 SHARED_LD_CC="${CC} -G -o"
46319 SHARED_LD_CXX="${CXX} -G -o"
46320 PIC_FLAG="-KPIC"
46321 fi
46322 ;;
46323
46324 *-*-darwin* )
46325
473276a9
VS
46326D='$'
46327cat <<EOF >shared-ld-sh
a848cd7e
SC
46328#!/bin/sh
46329#-----------------------------------------------------------------------------
46330#-- Name: distrib/mac/shared-ld-sh
46331#-- Purpose: Link a mach-o dynamic shared library for Darwin / Mac OS X
46332#-- Author: Gilles Depeyrot
46333#-- Copyright: (c) 2002 Gilles Depeyrot
46334#-- Licence: any use permitted
46335#-----------------------------------------------------------------------------
46336
46337verbose=0
46338args=""
46339objects=""
46340linking_flag="-dynamiclib"
810b94f0 46341ldargs="-r -keep_private_externs -nostdlib"
a848cd7e 46342
473276a9
VS
46343while test ${D}# -gt 0; do
46344 case ${D}1 in
a848cd7e
SC
46345
46346 -v)
46347 verbose=1
46348 ;;
46349
46350 -o|-compatibility_version|-current_version|-framework|-undefined|-install_name)
46351 # collect these options and values
473276a9 46352 args="${D}{args} ${D}1 ${D}2"
a848cd7e
SC
46353 shift
46354 ;;
46355
810b94f0
MW
46356 -s|-Wl,*)
46357 # collect these load args
46358 ldargs="${D}{ldargs} ${D}1"
2113bc77 46359 ;;
810b94f0
MW
46360
46361 -l*|-L*|-flat_namespace|-headerpad_max_install_names)
a848cd7e 46362 # collect these options
473276a9 46363 args="${D}{args} ${D}1"
a848cd7e
SC
46364 ;;
46365
46366 -dynamiclib|-bundle)
473276a9 46367 linking_flag="${D}1"
a848cd7e
SC
46368 ;;
46369
46370 -*)
473276a9 46371 echo "shared-ld: unhandled option '${D}1'"
a848cd7e
SC
46372 exit 1
46373 ;;
46374
46375 *.o | *.a | *.dylib)
46376 # collect object files
473276a9 46377 objects="${D}{objects} ${D}1"
a848cd7e
SC
46378 ;;
46379
46380 *)
473276a9 46381 echo "shared-ld: unhandled argument '${D}1'"
a848cd7e
SC
46382 exit 1
46383 ;;
46384
46385 esac
46386 shift
46387done
46388
810b94f0
MW
46389status=0
46390
a848cd7e
SC
46391#
46392# Link one module containing all the others
46393#
473276a9 46394if test ${D}{verbose} = 1; then
810b94f0 46395 echo "c++ ${D}{ldargs} ${D}{objects} -o master.${D}${D}.o"
a848cd7e 46396fi
810b94f0 46397c++ ${D}{ldargs} ${D}{objects} -o master.${D}${D}.o
473276a9 46398status=${D}?
a848cd7e
SC
46399
46400#
810b94f0
MW
46401# Link the shared library from the single module created, but only if the
46402# previous command didn't fail:
a848cd7e 46403#
810b94f0
MW
46404if test ${D}{status} = 0; then
46405 if test ${D}{verbose} = 1; then
46406 echo "c++ ${D}{linking_flag} master.${D}${D}.o ${D}{args}"
46407 fi
46408 c++ ${D}{linking_flag} master.${D}${D}.o ${D}{args}
46409 status=${D}?
a848cd7e
SC
46410fi
46411
46412#
46413# Remove intermediate module
46414#
473276a9 46415rm -f master.${D}${D}.o
a848cd7e 46416
810b94f0 46417exit ${D}status
a848cd7e 46418EOF
473276a9 46419
583d6b4b
VZ
46420 chmod +x shared-ld-sh
46421
46422 SHARED_LD_MODULE_CC="`pwd`/shared-ld-sh -bundle -headerpad_max_install_names -o"
46423 SHARED_LD_MODULE_CXX="$SHARED_LD_MODULE_CC"
46424
46425
46426 echo "$as_me:$LINENO: checking for gcc 3.1 or later" >&5
46427echo $ECHO_N "checking for gcc 3.1 or later... $ECHO_C" >&6
46428if test "${bakefile_cv_gcc31+set}" = set; then
46429 echo $ECHO_N "(cached) $ECHO_C" >&6
46430else
46431
46432 cat >conftest.$ac_ext <<_ACEOF
46433/* confdefs.h. */
46434_ACEOF
46435cat confdefs.h >>conftest.$ac_ext
46436cat >>conftest.$ac_ext <<_ACEOF
46437/* end confdefs.h. */
46438
46439int
46440main ()
46441{
46442
46443 #if (__GNUC__ < 3) || \
46444 ((__GNUC__ == 3) && (__GNUC_MINOR__ < 1))
e5efa97e 46445 This is old gcc
583d6b4b 46446 #endif
a848cd7e 46447
583d6b4b
VZ
46448 ;
46449 return 0;
46450}
46451_ACEOF
46452rm -f conftest.$ac_objext
46453if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
46454 (eval $ac_compile) 2>conftest.er1
46455 ac_status=$?
46456 grep -v '^ *+' conftest.er1 >conftest.err
46457 rm -f conftest.er1
46458 cat conftest.err >&5
46459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46460 (exit $ac_status); } &&
c9a66001 46461 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
583d6b4b
VZ
46462 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46463 (eval $ac_try) 2>&5
46464 ac_status=$?
46465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46466 (exit $ac_status); }; } &&
46467 { ac_try='test -s conftest.$ac_objext'
46468 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46469 (eval $ac_try) 2>&5
46470 ac_status=$?
46471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46472 (exit $ac_status); }; }; then
46473
46474 bakefile_cv_gcc31=yes
46475
46476else
46477 echo "$as_me: failed program was:" >&5
46478sed 's/^/| /' conftest.$ac_ext >&5
46479
46480
46481 bakefile_cv_gcc31=no
46482
46483
46484fi
46485rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
46486
46487fi
46488echo "$as_me:$LINENO: result: $bakefile_cv_gcc31" >&5
46489echo "${ECHO_T}$bakefile_cv_gcc31" >&6
46490 if test "$bakefile_cv_gcc31" = "no"; then
a848cd7e 46491 SHARED_LD_CC="`pwd`/shared-ld-sh -dynamiclib -headerpad_max_install_names -o"
a848cd7e 46492 SHARED_LD_CXX="$SHARED_LD_CC"
a848cd7e
SC
46493 else
46494 SHARED_LD_CC="\${CC} -dynamiclib -single_module -headerpad_max_install_names -o"
a848cd7e 46495 SHARED_LD_CXX="\${CXX} -dynamiclib -single_module -headerpad_max_install_names -o"
a848cd7e
SC
46496 fi
46497
47bd5406
VZ
46498 if test "x$GCC" == "xyes"; then
46499 PIC_FLAG="-dynamic -fPIC"
46500 fi
46501 if test "x$XLCC" = "xyes"; then
46502 PIC_FLAG="-dynamic -DPIC"
46503 fi
a848cd7e
SC
46504 ;;
46505
46506 *-*-aix* )
f6b50c59 46507 if test "x$GCC" = "xyes"; then
583d6b4b 46508 PIC_FLAG=""
f6b50c59 46509
583d6b4b
VZ
46510 case "${BAKEFILE_HOST}" in
46511 *-*-aix5* )
46512 LD_EXPFULL="-Wl,-bexpfull"
46513 ;;
46514 esac
f6b50c59 46515
583d6b4b
VZ
46516 SHARED_LD_CC="\$(CC) -shared $LD_EXPFULL -o"
46517 SHARED_LD_CXX="\$(CXX) -shared $LD_EXPFULL -o"
46518 else
46519 # Extract the first word of "makeC++SharedLib", so it can be a program name with args.
a848cd7e
SC
46520set dummy makeC++SharedLib; ac_word=$2
46521echo "$as_me:$LINENO: checking for $ac_word" >&5
46522echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
46523if test "${ac_cv_prog_AIX_CXX_LD+set}" = set; then
46524 echo $ECHO_N "(cached) $ECHO_C" >&6
46525else
46526 if test -n "$AIX_CXX_LD"; then
46527 ac_cv_prog_AIX_CXX_LD="$AIX_CXX_LD" # Let the user override the test.
46528else
46529as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
46530for as_dir in $PATH
46531do
46532 IFS=$as_save_IFS
46533 test -z "$as_dir" && as_dir=.
46534 for ac_exec_ext in '' $ac_executable_extensions; do
46535 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
46536 ac_cv_prog_AIX_CXX_LD="makeC++SharedLib"
46537 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
46538 break 2
46539 fi
46540done
46541done
46542
46543 test -z "$ac_cv_prog_AIX_CXX_LD" && ac_cv_prog_AIX_CXX_LD="/usr/lpp/xlC/bin/makeC++SharedLib"
46544fi
46545fi
46546AIX_CXX_LD=$ac_cv_prog_AIX_CXX_LD
46547if test -n "$AIX_CXX_LD"; then
46548 echo "$as_me:$LINENO: result: $AIX_CXX_LD" >&5
46549echo "${ECHO_T}$AIX_CXX_LD" >&6
46550else
46551 echo "$as_me:$LINENO: result: no" >&5
46552echo "${ECHO_T}no" >&6
46553fi
46554
f6b50c59 46555 SHARED_LD_CC="$AIX_CC_LD -p 0 -o"
a848cd7e
SC
46556 SHARED_LD_CXX="$AIX_CXX_LD -p 0 -o"
46557 fi
46558 ;;
46559
46560 *-*-beos* )
1e9e8aba
DE
46561 SHARED_LD_CC="${LD} -nostart -o"
46562 SHARED_LD_CXX="${LD} -nostart -o"
a848cd7e
SC
46563 ;;
46564
46565 *-*-irix* )
46566 if test "x$GCC" != "xyes"; then
46567 PIC_FLAG="-KPIC"
46568 fi
46569 ;;
46570
46571 *-*-cygwin* | *-*-mingw32* )
46572 PIC_FLAG=""
1e9e8aba
DE
46573 SHARED_LD_CC="\$(CC) -shared -o"
46574 SHARED_LD_CXX="\$(CXX) -shared -o"
810b94f0 46575 WINDOWS_IMPLIB=1
a848cd7e
SC
46576 ;;
46577
46578 *-pc-os2_emx | *-pc-os2-emx )
b1d22ded
DE
46579 SHARED_LD_CC="`pwd`/dllar.sh -libf INITINSTANCE -libf TERMINSTANCE -o"
46580 SHARED_LD_CXX="`pwd`/dllar.sh -libf INITINSTANCE -libf TERMINSTANCE -o"
a848cd7e 46581 PIC_FLAG=""
473276a9
VS
46582
46583D='$'
46584cat <<EOF >dllar.sh
46585#!/bin/sh
46586#
46587# dllar - a tool to build both a .dll and an .a file
46588# from a set of object (.o) files for EMX/OS2.
46589#
46590# Written by Andrew Zabolotny, bit@freya.etu.ru
46591# Ported to Unix like shell by Stefan Neis, Stefan.Neis@t-online.de
46592#
46593# This script will accept a set of files on the command line.
46594# All the public symbols from the .o files will be exported into
46595# a .DEF file, then linker will be run (through gcc) against them to
46596# build a shared library consisting of all given .o files. All libraries
46597# (.a) will be first decompressed into component .o files then act as
46598# described above. You can optionally give a description (-d "description")
46599# which will be put into .DLL. To see the list of accepted options (as well
46600# as command-line format) simply run this program without options. The .DLL
46601# is built to be imported by name (there is no guarantee that new versions
46602# of the library you build will have same ordinals for same symbols).
46603#
46604# dllar is free software; you can redistribute it and/or modify
46605# it under the terms of the GNU General Public License as published by
46606# the Free Software Foundation; either version 2, or (at your option)
46607# any later version.
46608#
46609# dllar is distributed in the hope that it will be useful,
46610# but WITHOUT ANY WARRANTY; without even the implied warranty of
46611# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
46612# GNU General Public License for more details.
46613#
46614# You should have received a copy of the GNU General Public License
46615# along with dllar; see the file COPYING. If not, write to the Free
46616# Software Foundation, 59 Temple Place - Suite 330, Boston, MA
46617# 02111-1307, USA.
46618
46619# To successfuly run this program you will need:
46620# - Current drive should have LFN support (HPFS, ext2, network, etc)
46621# (Sometimes dllar generates filenames which won't fit 8.3 scheme)
46622# - gcc
46623# (used to build the .dll)
46624# - emxexp
46625# (used to create .def file from .o files)
46626# - emximp
46627# (used to create .a file from .def file)
46628# - GNU text utilites (cat, sort, uniq)
46629# used to process emxexp output
46630# - GNU file utilities (mv, rm)
46631# - GNU sed
46632# - lxlite (optional, see flag below)
46633# (used for general .dll cleanup)
46634#
46635
46636flag_USE_LXLITE=1;
46637
46638#
46639# helper functions
46640# basnam, variant of basename, which does _not_ remove the path, _iff_
46641# second argument (suffix to remove) is given
46642basnam(){
46643 case ${D}# in
46644 1)
1e9e8aba 46645 echo ${D}1 | sed 's/.*\\///' | sed 's/.*\\\\//'
473276a9
VS
46646 ;;
46647 2)
46648 echo ${D}1 | sed 's/'${D}2'${D}//'
46649 ;;
46650 *)
46651 echo "error in basnam ${D}*"
46652 exit 8
46653 ;;
46654 esac
46655}
46656
46657# Cleanup temporary files and output
46658CleanUp() {
46659 cd ${D}curDir
46660 for i in ${D}inputFiles ; do
46661 case ${D}i in
46662 *!)
46663 rm -rf \`basnam ${D}i !\`
46664 ;;
46665 *)
46666 ;;
46667 esac
46668 done
46669
46670 # Kill result in case of failure as there is just to many stupid make/nmake
46671 # things out there which doesn't do this.
1e9e8aba 46672 if [ ${D}# -eq 0 ]; then
473276a9
VS
46673 rm -f ${D}arcFile ${D}arcFile2 ${D}defFile ${D}dllFile
46674 fi
46675}
46676
46677# Print usage and exit script with rc=1.
46678PrintHelp() {
b1d22ded
DE
46679 echo 'Usage: dllar.sh [-o[utput] output_file] [-i[mport] importlib_name]'
46680 echo ' [-name-mangler-script script.sh]'
46681 echo ' [-d[escription] "dll descrption"] [-cc "CC"] [-f[lags] "CFLAGS"]'
46682 echo ' [-ord[inals]] -ex[clude] "symbol(s)"'
46683 echo ' [-libf[lags] "{INIT|TERM}{GLOBAL|INSTANCE}"] [-nocrt[dll]] [-nolxl[ite]]'
1e9e8aba 46684 echo ' [*.o] [*.a]'
473276a9
VS
46685 echo '*> "output_file" should have no extension.'
46686 echo ' If it has the .o, .a or .dll extension, it is automatically removed.'
46687 echo ' The import library name is derived from this and is set to "name".a,'
46688 echo ' unless overridden by -import'
46689 echo '*> "importlib_name" should have no extension.'
46690 echo ' If it has the .o, or .a extension, it is automatically removed.'
46691 echo ' This name is used as the import library name and may be longer and'
46692 echo ' more descriptive than the DLL name which has to follow the old '
46693 echo ' 8.3 convention of FAT.'
b1d22ded
DE
46694 echo '*> "script.sh may be given to override the output_file name by a'
46695 echo ' different name. It is mainly useful if the regular make process'
46696 echo ' of some package does not take into account OS/2 restriction of'
46697 echo ' DLL name lengths. It takes the importlib name as input and is'
46698 echo ' supposed to procude a shorter name as output. The script should'
46699 echo ' expect to get importlib_name without extension and should produce'
46700 echo ' a (max.) 8 letter name without extension.'
473276a9
VS
46701 echo '*> "cc" is used to use another GCC executable. (default: gcc.exe)'
46702 echo '*> "flags" should be any set of valid GCC flags. (default: -s -Zcrtdll)'
46703 echo ' These flags will be put at the start of GCC command line.'
b1d22ded
DE
46704 echo '*> -ord[inals] tells dllar to export entries by ordinals. Be careful.'
46705 echo '*> -ex[clude] defines symbols which will not be exported. You can define'
473276a9
VS
46706 echo ' multiple symbols, for example -ex "myfunc yourfunc _GLOBAL*".'
46707 echo ' If the last character of a symbol is "*", all symbols beginning'
46708 echo ' with the prefix before "*" will be exclude, (see _GLOBAL* above).'
b1d22ded 46709 echo '*> -libf[lags] can be used to add INITGLOBAL/INITINSTANCE and/or'
473276a9 46710 echo ' TERMGLOBAL/TERMINSTANCE flags to the dynamically-linked library.'
b1d22ded 46711 echo '*> -nocrt[dll] switch will disable linking the library against emx''s'
473276a9 46712 echo ' C runtime DLLs.'
b1d22ded 46713 echo '*> -nolxl[ite] switch will disable running lxlite on the resulting DLL.'
473276a9
VS
46714 echo '*> All other switches (for example -L./ or -lmylib) will be passed'
46715 echo ' unchanged to GCC at the end of command line.'
46716 echo '*> If you create a DLL from a library and you do not specify -o,'
46717 echo ' the basename for DLL and import library will be set to library name,'
46718 echo ' the initial library will be renamed to 'name'_s.a (_s for static)'
46719 echo ' i.e. "dllar gcc.a" will create gcc.dll and gcc.a, and the initial'
46720 echo ' library will be renamed into gcc_s.a.'
46721 echo '--------'
46722 echo 'Example:'
46723 echo ' dllar -o gcc290.dll libgcc.a -d "GNU C runtime library" -ord'
46724 echo ' -ex "__main __ctordtor*" -libf "INITINSTANCE TERMINSTANCE"'
46725 CleanUp
46726 exit 1
46727}
46728
46729# Execute a command.
46730# If exit code of the commnad <> 0 CleanUp() is called and we'll exit the script.
46731# @Uses Whatever CleanUp() uses.
46732doCommand() {
46733 echo "${D}*"
46734 eval ${D}*
46735 rcCmd=${D}?
46736
1e9e8aba 46737 if [ ${D}rcCmd -ne 0 ]; then
473276a9
VS
46738 echo "command failed, exit code="${D}rcCmd
46739 CleanUp
46740 exit ${D}rcCmd
46741 fi
46742}
46743
46744# main routine
46745# setup globals
46746cmdLine=${D}*
46747outFile=""
46748outimpFile=""
46749inputFiles=""
b1d22ded 46750renameScript=""
473276a9
VS
46751description=""
46752CC=gcc.exe
46753CFLAGS="-s -Zcrtdll"
46754EXTRA_CFLAGS=""
46755EXPORT_BY_ORDINALS=0
46756exclude_symbols=""
46757library_flags=""
46758curDir=\`pwd\`
46759curDirS=curDir
46760case ${D}curDirS in
46761*/)
46762 ;;
46763*)
46764 curDirS=${D}{curDirS}"/"
46765 ;;
46766esac
46767# Parse commandline
46768libsToLink=0
b1d22ded 46769omfLinking=0
1e9e8aba 46770while [ ${D}1 ]; do
473276a9
VS
46771 case ${D}1 in
46772 -ord*)
46773 EXPORT_BY_ORDINALS=1;
46774 ;;
46775 -o*)
46776 shift
46777 outFile=${D}1
46778 ;;
46779 -i*)
46780 shift
46781 outimpFile=${D}1
46782 ;;
b1d22ded
DE
46783 -name-mangler-script)
46784 shift
46785 renameScript=${D}1
46786 ;;
473276a9
VS
46787 -d*)
46788 shift
46789 description=${D}1
46790 ;;
46791 -f*)
46792 shift
46793 CFLAGS=${D}1
46794 ;;
46795 -c*)
46796 shift
46797 CC=${D}1
46798 ;;
46799 -h*)
46800 PrintHelp
46801 ;;
46802 -ex*)
46803 shift
46804 exclude_symbols=${D}{exclude_symbols}${D}1" "
46805 ;;
46806 -libf*)
46807 shift
46808 library_flags=${D}{library_flags}${D}1" "
46809 ;;
46810 -nocrt*)
46811 CFLAGS="-s"
46812 ;;
46813 -nolxl*)
46814 flag_USE_LXLITE=0
46815 ;;
46816 -* | /*)
46817 case ${D}1 in
46818 -L* | -l*)
46819 libsToLink=1
46820 ;;
b1d22ded
DE
46821 -Zomf)
46822 omfLinking=1
46823 ;;
473276a9
VS
46824 *)
46825 ;;
46826 esac
46827 EXTRA_CFLAGS=${D}{EXTRA_CFLAGS}" "${D}1
46828 ;;
b1d22ded
DE
46829 *.dll)
46830 EXTRA_CFLAGS="${D}{EXTRA_CFLAGS} \`basnam ${D}1 .dll\`"
46831 if [ ${D}omfLinking -eq 1 ]; then
46832 EXTRA_CFLAGS="${D}{EXTRA_CFLAGS}.lib"
46833 else
46834 EXTRA_CFLAGS="${D}{EXTRA_CFLAGS}.a"
46835 fi
46836 ;;
473276a9
VS
46837 *)
46838 found=0;
1e9e8aba 46839 if [ ${D}libsToLink -ne 0 ]; then
473276a9
VS
46840 EXTRA_CFLAGS=${D}{EXTRA_CFLAGS}" "${D}1
46841 else
46842 for file in ${D}1 ; do
1e9e8aba 46843 if [ -f ${D}file ]; then
473276a9
VS
46844 inputFiles="${D}{inputFiles} ${D}file"
46845 found=1
46846 fi
46847 done
1e9e8aba 46848 if [ ${D}found -eq 0 ]; then
473276a9
VS
46849 echo "ERROR: No file(s) found: "${D}1
46850 exit 8
46851 fi
46852 fi
46853 ;;
46854 esac
46855 shift
46856done # iterate cmdline words
46857
46858#
1e9e8aba 46859if [ -z "${D}inputFiles" ]; then
473276a9
VS
46860 echo "dllar: no input files"
46861 PrintHelp
46862fi
46863
46864# Now extract all .o files from .a files
46865newInputFiles=""
46866for file in ${D}inputFiles ; do
46867 case ${D}file in
46868 *.a | *.lib)
46869 case ${D}file in
46870 *.a)
46871 suffix=".a"
46872 AR="ar"
46873 ;;
46874 *.lib)
46875 suffix=".lib"
46876 AR="emxomfar"
46877 EXTRA_CFLAGS="${D}EXTRA_CFLAGS -Zomf"
46878 ;;
46879 *)
46880 ;;
46881 esac
46882 dirname=\`basnam ${D}file ${D}suffix\`"_%"
46883 mkdir ${D}dirname
1e9e8aba 46884 if [ ${D}? -ne 0 ]; then
473276a9
VS
46885 echo "Failed to create subdirectory ./${D}dirname"
46886 CleanUp
46887 exit 8;
46888 fi
46889 # Append '!' to indicate archive
46890 newInputFiles="${D}newInputFiles ${D}{dirname}!"
46891 doCommand "cd ${D}dirname; ${D}AR x ../${D}file"
46892 cd ${D}curDir
46893 found=0;
46894 for subfile in ${D}dirname/*.o* ; do
1e9e8aba 46895 if [ -f ${D}subfile ]; then
473276a9 46896 found=1
1e9e8aba 46897 if [ -s ${D}subfile ]; then
473276a9
VS
46898 # FIXME: This should be: is file size > 32 byte, _not_ > 0!
46899 newInputFiles="${D}newInputFiles ${D}subfile"
46900 fi
46901 fi
46902 done
1e9e8aba
DE
46903 if [ ${D}found -eq 0 ]; then
46904 echo "WARNING: there are no files in archive \\'${D}file\\'"
473276a9
VS
46905 fi
46906 ;;
46907 *)
46908 newInputFiles="${D}{newInputFiles} ${D}file"
46909 ;;
46910 esac
46911done
46912inputFiles="${D}newInputFiles"
46913
46914# Output filename(s).
46915do_backup=0;
1e9e8aba 46916if [ -z ${D}outFile ]; then
473276a9
VS
46917 do_backup=1;
46918 set outFile ${D}inputFiles; outFile=${D}2
46919fi
46920
46921# If it is an archive, remove the '!' and the '_%' suffixes
46922case ${D}outFile in
46923*_%!)
46924 outFile=\`basnam ${D}outFile _%!\`
46925 ;;
46926*)
46927 ;;
46928esac
46929case ${D}outFile in
46930*.dll)
46931 outFile=\`basnam ${D}outFile .dll\`
46932 ;;
46933*.DLL)
46934 outFile=\`basnam ${D}outFile .DLL\`
46935 ;;
46936*.o)
46937 outFile=\`basnam ${D}outFile .o\`
46938 ;;
46939*.obj)
46940 outFile=\`basnam ${D}outFile .obj\`
46941 ;;
46942*.a)
46943 outFile=\`basnam ${D}outFile .a\`
46944 ;;
46945*.lib)
46946 outFile=\`basnam ${D}outFile .lib\`
46947 ;;
46948*)
46949 ;;
46950esac
46951case ${D}outimpFile in
46952*.a)
46953 outimpFile=\`basnam ${D}outimpFile .a\`
46954 ;;
46955*.lib)
46956 outimpFile=\`basnam ${D}outimpFile .lib\`
46957 ;;
46958*)
46959 ;;
46960esac
1e9e8aba 46961if [ -z ${D}outimpFile ]; then
473276a9
VS
46962 outimpFile=${D}outFile
46963fi
46964defFile="${D}{outFile}.def"
46965arcFile="${D}{outimpFile}.a"
46966arcFile2="${D}{outimpFile}.lib"
b1d22ded
DE
46967
46968#create ${D}dllFile as something matching 8.3 restrictions,
46969if [ -z ${D}renameScript ] ; then
46970 dllFile="${D}outFile"
46971else
46972 dllFile=\`${D}renameScript ${D}outimpFile\`
46973fi
473276a9 46974
1e9e8aba
DE
46975if [ ${D}do_backup -ne 0 ] ; then
46976 if [ -f ${D}arcFile ] ; then
473276a9
VS
46977 doCommand "mv ${D}arcFile ${D}{outFile}_s.a"
46978 fi
1e9e8aba 46979 if [ -f ${D}arcFile2 ] ; then
473276a9
VS
46980 doCommand "mv ${D}arcFile2 ${D}{outFile}_s.lib"
46981 fi
46982fi
46983
46984# Extract public symbols from all the object files.
46985tmpdefFile=${D}{defFile}_%
46986rm -f ${D}tmpdefFile
46987for file in ${D}inputFiles ; do
46988 case ${D}file in
46989 *!)
46990 ;;
46991 *)
46992 doCommand "emxexp -u ${D}file >> ${D}tmpdefFile"
46993 ;;
46994 esac
46995done
46996
46997# Create the def file.
46998rm -f ${D}defFile
46999echo "LIBRARY \`basnam ${D}dllFile\` ${D}library_flags" >> ${D}defFile
b1d22ded
DE
47000dllFile="${D}{dllFile}.dll"
47001if [ ! -z ${D}description ]; then
1e9e8aba 47002 echo "DESCRIPTION \\"${D}{description}\\"" >> ${D}defFile
473276a9
VS
47003fi
47004echo "EXPORTS" >> ${D}defFile
47005
47006doCommand "cat ${D}tmpdefFile | sort.exe | uniq.exe > ${D}{tmpdefFile}%"
47007grep -v "^ *;" < ${D}{tmpdefFile}% | grep -v "^ *${D}" >${D}tmpdefFile
47008
47009# Checks if the export is ok or not.
47010for word in ${D}exclude_symbols; do
47011 grep -v ${D}word < ${D}tmpdefFile >${D}{tmpdefFile}%
47012 mv ${D}{tmpdefFile}% ${D}tmpdefFile
47013done
47014
47015
1e9e8aba
DE
47016if [ ${D}EXPORT_BY_ORDINALS -ne 0 ]; then
47017 sed "=" < ${D}tmpdefFile | \\
473276a9
VS
47018 sed '
47019 N
47020 : loop
1e9e8aba 47021 s/^\\([0-9]\\+\\)\\([^;]*\\)\\(;.*\\)\\?/\\2 @\\1 NONAME/
473276a9
VS
47022 t loop
47023 ' > ${D}{tmpdefFile}%
47024 grep -v "^ *${D}" < ${D}{tmpdefFile}% > ${D}tmpdefFile
47025else
47026 rm -f ${D}{tmpdefFile}%
47027fi
47028cat ${D}tmpdefFile >> ${D}defFile
47029rm -f ${D}tmpdefFile
47030
47031# Do linking, create implib, and apply lxlite.
47032gccCmdl="";
47033for file in ${D}inputFiles ; do
47034 case ${D}file in
47035 *!)
47036 ;;
47037 *)
47038 gccCmdl="${D}gccCmdl ${D}file"
47039 ;;
47040 esac
47041done
47042doCommand "${D}CC ${D}CFLAGS -Zdll -o ${D}dllFile ${D}defFile ${D}gccCmdl ${D}EXTRA_CFLAGS"
47043touch "${D}{outFile}.dll"
47044
47045doCommand "emximp -o ${D}arcFile ${D}defFile"
1e9e8aba 47046if [ ${D}flag_USE_LXLITE -ne 0 ]; then
473276a9 47047 add_flags="";
1e9e8aba 47048 if [ ${D}EXPORT_BY_ORDINALS -ne 0 ]; then
473276a9
VS
47049 add_flags="-ynd"
47050 fi
47051 doCommand "lxlite -cs -t: -mrn -mln ${D}add_flags ${D}dllFile"
47052fi
47053doCommand "emxomf -s -l ${D}arcFile"
47054
47055# Successful exit.
47056CleanUp 1
47057exit 0
47058EOF
47059
47060 chmod +x dllar.sh
a848cd7e
SC
47061 ;;
47062
1e9e8aba 47063 powerpc-apple-macos* | \
0ad5d837 47064 *-*-freebsd* | *-*-openbsd* | *-*-netbsd* | *-*-k*bsd*-gnu | \
c9a66001 47065 *-*-mirbsd* | \
a848cd7e
SC
47066 *-*-sunos4* | \
47067 *-*-osf* | \
47068 *-*-dgux5* | \
47a7e797
MW
47069 *-*-sysv5* | \
47070 *-pc-msdosdjgpp )
a848cd7e
SC
47071 ;;
47072
47073 *)
47074 { { echo "$as_me:$LINENO: error: unknown system type $BAKEFILE_HOST." >&5
47075echo "$as_me: error: unknown system type $BAKEFILE_HOST." >&2;}
47076 { (exit 1); exit 1; }; }
47077 esac
47078
2057db16
VS
47079 if test "x$PIC_FLAG" != "x" ; then
47080 PIC_FLAG="$PIC_FLAG -DPIC"
47081 fi
47082
a848cd7e
SC
47083 if test "x$SHARED_LD_MODULE_CC" = "x" ; then
47084 SHARED_LD_MODULE_CC="$SHARED_LD_CC"
47085 fi
47086 if test "x$SHARED_LD_MODULE_CXX" = "x" ; then
47087 SHARED_LD_MODULE_CXX="$SHARED_LD_CXX"
47088 fi
47089
47090
47091
47092
47093
47094
47095
47096
810b94f0 47097
a848cd7e
SC
47098 USE_SOVERSION=0
47099 USE_SOVERLINUX=0
47100 USE_SOVERSOLARIS=0
810b94f0 47101 USE_SOVERCYGWIN=0
a848cd7e
SC
47102 USE_SOSYMLINKS=0
47103 USE_MACVERSION=0
47104 SONAME_FLAG=
47105
47106 case "${BAKEFILE_HOST}" in
0ad5d837 47107 *-*-linux* | *-*-freebsd* | *-*-k*bsd*-gnu )
5f652d0d
VS
47108 SONAME_FLAG="-Wl,-soname,"
47109 USE_SOVERSION=1
47110 USE_SOVERLINUX=1
47111 USE_SOSYMLINKS=1
47112 ;;
47113
a848cd7e
SC
47114 *-*-solaris2* )
47115 SONAME_FLAG="-h "
47116 USE_SOVERSION=1
47117 USE_SOVERSOLARIS=1
47118 USE_SOSYMLINKS=1
47119 ;;
47120
47121 *-*-darwin* )
47122 USE_MACVERSION=1
47123 USE_SOVERSION=1
47124 USE_SOSYMLINKS=1
47125 ;;
810b94f0
MW
47126
47127 *-*-cygwin* )
47128 USE_SOVERSION=1
47129 USE_SOVERCYGWIN=1
47130 ;;
a848cd7e
SC
47131 esac
47132
47133
47134
47135
47136
47137
47138
47139
47140
810b94f0 47141
f10e38c4
VZ
47142 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
47143if test "${enable_dependency_tracking+set}" = set; then
47144 enableval="$enable_dependency_tracking"
47145 bk_use_trackdeps="$enableval"
47146fi;
47147
a848cd7e
SC
47148 echo "$as_me:$LINENO: checking for dependency tracking method" >&5
47149echo $ECHO_N "checking for dependency tracking method... $ECHO_C" >&6
a848cd7e 47150
f10e38c4
VZ
47151 if test "x$bk_use_trackdeps" = "xno" ; then
47152 DEPS_TRACKING=0
47153 echo "$as_me:$LINENO: result: disabled" >&5
47154echo "${ECHO_T}disabled" >&6
47155 else
47156 DEPS_TRACKING=1
47157
47158 if test "x$GCC" = "xyes"; then
47159 DEPSMODE=gcc
47160 case "${BAKEFILE_HOST}" in
47161 *-*-darwin* )
47162 DEPSFLAG="-no-cpp-precomp -MMD"
47163 ;;
47164 * )
47165 DEPSFLAG="-MMD"
47166 ;;
47167 esac
47168 echo "$as_me:$LINENO: result: gcc" >&5
a848cd7e 47169echo "${ECHO_T}gcc" >&6
f10e38c4
VZ
47170 elif test "x$MWCC" = "xyes"; then
47171 DEPSMODE=mwcc
47172 DEPSFLAG="-MM"
47173 echo "$as_me:$LINENO: result: mwcc" >&5
b1d22ded 47174echo "${ECHO_T}mwcc" >&6
f10e38c4
VZ
47175 elif test "x$SUNCC" = "xyes"; then
47176 DEPSMODE=unixcc
47177 DEPSFLAG="-xM1"
47178 echo "$as_me:$LINENO: result: Sun cc" >&5
0ad5d837 47179echo "${ECHO_T}Sun cc" >&6
f10e38c4
VZ
47180 elif test "x$SGICC" = "xyes"; then
47181 DEPSMODE=unixcc
47182 DEPSFLAG="-M"
47183 echo "$as_me:$LINENO: result: SGI cc" >&5
0ad5d837 47184echo "${ECHO_T}SGI cc" >&6
f10e38c4
VZ
47185 elif test "x$HPCC" = "xyes"; then
47186 DEPSMODE=unixcc
47187 DEPSFLAG="+make"
47188 echo "$as_me:$LINENO: result: HP cc" >&5
3006edc0 47189echo "${ECHO_T}HP cc" >&6
f10e38c4
VZ
47190 elif test "x$COMPAQCC" = "xyes"; then
47191 DEPSMODE=gcc
47192 DEPSFLAG="-MD"
47193 echo "$as_me:$LINENO: result: Compaq cc" >&5
a1aa0349 47194echo "${ECHO_T}Compaq cc" >&6
f10e38c4
VZ
47195 else
47196 DEPS_TRACKING=0
47197 echo "$as_me:$LINENO: result: none" >&5
a848cd7e 47198echo "${ECHO_T}none" >&6
f10e38c4 47199 fi
a848cd7e 47200
f10e38c4 47201 if test $DEPS_TRACKING = 1 ; then
473276a9
VS
47202
47203D='$'
47204cat <<EOF >bk-deps
a848cd7e
SC
47205#!/bin/sh
47206
47207# This script is part of Bakefile (http://bakefile.sourceforge.net) autoconf
47208# script. It is used to track C/C++ files dependencies in portable way.
47209#
47210# Permission is given to use this file in any way.
47211
473276a9 47212DEPSMODE=${DEPSMODE}
a848cd7e 47213DEPSDIR=.deps
0ad5d837 47214DEPSFLAG="${DEPSFLAG}"
a848cd7e 47215
473276a9 47216mkdir -p ${D}DEPSDIR
a848cd7e 47217
473276a9 47218if test ${D}DEPSMODE = gcc ; then
0ad5d837 47219 ${D}* ${D}{DEPSFLAG}
473276a9
VS
47220 status=${D}?
47221 if test ${D}{status} != 0 ; then
47222 exit ${D}{status}
a848cd7e
SC
47223 fi
47224 # move created file to the location we want it in:
473276a9
VS
47225 while test ${D}# -gt 0; do
47226 case "${D}1" in
a848cd7e
SC
47227 -o )
47228 shift
473276a9 47229 objfile=${D}1
a848cd7e
SC
47230 ;;
47231 -* )
47232 ;;
47233 * )
473276a9 47234 srcfile=${D}1
a848cd7e
SC
47235 ;;
47236 esac
47237 shift
47238 done
1e9e8aba
DE
47239 depfile=\`basename ${D}srcfile | sed -e 's/\\..*${D}/.d/g'\`
47240 depobjname=\`echo ${D}depfile |sed -e 's/\\.d/.o/g'\`
473276a9
VS
47241 if test -f ${D}depfile ; then
47242 sed -e "s,${D}depobjname:,${D}objfile:,g" ${D}depfile >${D}{DEPSDIR}/${D}{objfile}.d
47243 rm -f ${D}depfile
a848cd7e 47244 else
a1aa0349 47245 # "g++ -MMD -o fooobj.o foosrc.cpp" produces fooobj.d
1e9e8aba 47246 depfile=\`basename ${D}objfile | sed -e 's/\\..*${D}/.d/g'\`
a1aa0349
VZ
47247 if test ! -f ${D}depfile ; then
47248 # "cxx -MD -o fooobj.o foosrc.cpp" creates fooobj.o.d (Compaq C++)
47249 depfile="${D}objfile.d"
47250 fi
473276a9
VS
47251 if test -f ${D}depfile ; then
47252 sed -e "/^${D}objfile/!s,${D}depobjname:,${D}objfile:,g" ${D}depfile >${D}{DEPSDIR}/${D}{objfile}.d
47253 rm -f ${D}depfile
a848cd7e
SC
47254 fi
47255 fi
47256 exit 0
81f90336 47257elif test ${D}DEPSMODE = mwcc ; then
f6b50c59 47258 ${D}* || exit ${D}?
81f90336
MW
47259 # Run mwcc again with -MM and redirect into the dep file we want
47260 # NOTE: We can't use shift here because we need ${D}* to be valid
47261 prevarg=
47262 for arg in ${D}* ; do
47263 if test "${D}prevarg" = "-o"; then
47264 objfile=${D}arg
47265 else
47266 case "${D}arg" in
47267 -* )
47268 ;;
47269 * )
47270 srcfile=${D}arg
47271 ;;
47272 esac
47273 fi
47274 prevarg="${D}arg"
47275 done
0ad5d837 47276 ${D}* ${D}DEPSFLAG >${D}{DEPSDIR}/${D}{objfile}.d
81f90336 47277 exit 0
0ad5d837 47278elif test ${D}DEPSMODE = unixcc; then
f6b50c59 47279 ${D}* || exit ${D}?
a9e5b1f0
MW
47280 # Run compiler again with deps flag and redirect into the dep file.
47281 # It doesn't work if the '-o FILE' option is used, but without it the
47282 # dependency file will contain the wrong name for the object. So it is
47283 # removed from the command line, and the dep file is fixed with sed.
47284 cmd=""
47285 while test ${D}# -gt 0; do
47286 case "${D}1" in
47287 -o )
47288 shift
47289 objfile=${D}1
47290 ;;
47291 * )
47292 eval arg${D}#=\\${D}1
47293 cmd="${D}cmd \\${D}arg${D}#"
47294 ;;
47295 esac
47296 shift
47297 done
0ad5d837 47298 eval "${D}cmd ${D}DEPSFLAG" | sed "s|.*:|${D}objfile:|" >${D}{DEPSDIR}/${D}{objfile}.d
a9e5b1f0 47299 exit 0
a848cd7e 47300else
473276a9
VS
47301 ${D}*
47302 exit ${D}?
a848cd7e
SC
47303fi
47304EOF
473276a9 47305
f10e38c4
VZ
47306 chmod +x bk-deps
47307 fi
a848cd7e
SC
47308 fi
47309
47310
47311
47312
a848cd7e
SC
47313 case ${BAKEFILE_HOST} in
47314 *-*-cygwin* | *-*-mingw32* )
8ced02f6
DE
47315 if test -n "$ac_tool_prefix"; then
47316 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
47317set dummy ${ac_tool_prefix}windres; ac_word=$2
47318echo "$as_me:$LINENO: checking for $ac_word" >&5
47319echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
47320if test "${ac_cv_prog_WINDRES+set}" = set; then
47321 echo $ECHO_N "(cached) $ECHO_C" >&6
47322else
47323 if test -n "$WINDRES"; then
47324 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
47325else
47326as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
47327for as_dir in $PATH
47328do
47329 IFS=$as_save_IFS
47330 test -z "$as_dir" && as_dir=.
47331 for ac_exec_ext in '' $ac_executable_extensions; do
47332 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
47333 ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
47334 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
47335 break 2
47336 fi
47337done
47338done
47339
47340fi
47341fi
47342WINDRES=$ac_cv_prog_WINDRES
47343if test -n "$WINDRES"; then
47344 echo "$as_me:$LINENO: result: $WINDRES" >&5
47345echo "${ECHO_T}$WINDRES" >&6
47346else
47347 echo "$as_me:$LINENO: result: no" >&5
47348echo "${ECHO_T}no" >&6
47349fi
47350
47351fi
47352if test -z "$ac_cv_prog_WINDRES"; then
47353 ac_ct_WINDRES=$WINDRES
47354 # Extract the first word of "windres", so it can be a program name with args.
a848cd7e
SC
47355set dummy windres; ac_word=$2
47356echo "$as_me:$LINENO: checking for $ac_word" >&5
47357echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8ced02f6 47358if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then
a848cd7e
SC
47359 echo $ECHO_N "(cached) $ECHO_C" >&6
47360else
8ced02f6
DE
47361 if test -n "$ac_ct_WINDRES"; then
47362 ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
a848cd7e
SC
47363else
47364as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
47365for as_dir in $PATH
47366do
47367 IFS=$as_save_IFS
47368 test -z "$as_dir" && as_dir=.
47369 for ac_exec_ext in '' $ac_executable_extensions; do
47370 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8ced02f6 47371 ac_cv_prog_ac_ct_WINDRES="windres"
a848cd7e
SC
47372 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
47373 break 2
47374 fi
47375done
47376done
47377
a848cd7e
SC
47378fi
47379fi
8ced02f6
DE
47380ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
47381if test -n "$ac_ct_WINDRES"; then
47382 echo "$as_me:$LINENO: result: $ac_ct_WINDRES" >&5
47383echo "${ECHO_T}$ac_ct_WINDRES" >&6
a848cd7e
SC
47384else
47385 echo "$as_me:$LINENO: result: no" >&5
47386echo "${ECHO_T}no" >&6
47387fi
47388
8ced02f6
DE
47389 WINDRES=$ac_ct_WINDRES
47390else
47391 WINDRES="$ac_cv_prog_WINDRES"
47392fi
47393
a848cd7e
SC
47394 ;;
47395
1e9e8aba 47396 *-*-darwin* | powerpc-apple-macos* )
a848cd7e
SC
47397 # Extract the first word of "Rez", so it can be a program name with args.
47398set dummy Rez; ac_word=$2
47399echo "$as_me:$LINENO: checking for $ac_word" >&5
47400echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8ced02f6 47401if test "${ac_cv_prog_REZ+set}" = set; then
a848cd7e
SC
47402 echo $ECHO_N "(cached) $ECHO_C" >&6
47403else
8ced02f6
DE
47404 if test -n "$REZ"; then
47405 ac_cv_prog_REZ="$REZ" # Let the user override the test.
a848cd7e
SC
47406else
47407as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
47408for as_dir in $PATH
47409do
47410 IFS=$as_save_IFS
47411 test -z "$as_dir" && as_dir=.
47412 for ac_exec_ext in '' $ac_executable_extensions; do
47413 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8ced02f6 47414 ac_cv_prog_REZ="Rez"
a848cd7e
SC
47415 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
47416 break 2
47417 fi
47418done
47419done
47420
8ced02f6 47421 test -z "$ac_cv_prog_REZ" && ac_cv_prog_REZ="/Developer/Tools/Rez"
a848cd7e
SC
47422fi
47423fi
8ced02f6
DE
47424REZ=$ac_cv_prog_REZ
47425if test -n "$REZ"; then
47426 echo "$as_me:$LINENO: result: $REZ" >&5
47427echo "${ECHO_T}$REZ" >&6
a848cd7e
SC
47428else
47429 echo "$as_me:$LINENO: result: no" >&5
47430echo "${ECHO_T}no" >&6
47431fi
47432
47433 # Extract the first word of "SetFile", so it can be a program name with args.
47434set dummy SetFile; ac_word=$2
47435echo "$as_me:$LINENO: checking for $ac_word" >&5
47436echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
47437if test "${ac_cv_prog_SETFILE+set}" = set; then
47438 echo $ECHO_N "(cached) $ECHO_C" >&6
47439else
47440 if test -n "$SETFILE"; then
47441 ac_cv_prog_SETFILE="$SETFILE" # Let the user override the test.
47442else
47443as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
47444for as_dir in $PATH
47445do
47446 IFS=$as_save_IFS
47447 test -z "$as_dir" && as_dir=.
47448 for ac_exec_ext in '' $ac_executable_extensions; do
47449 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
47450 ac_cv_prog_SETFILE="SetFile"
47451 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
47452 break 2
47453 fi
47454done
47455done
47456
47457 test -z "$ac_cv_prog_SETFILE" && ac_cv_prog_SETFILE="/Developer/Tools/SetFile"
47458fi
47459fi
47460SETFILE=$ac_cv_prog_SETFILE
47461if test -n "$SETFILE"; then
47462 echo "$as_me:$LINENO: result: $SETFILE" >&5
47463echo "${ECHO_T}$SETFILE" >&6
47464else
47465 echo "$as_me:$LINENO: result: no" >&5
47466echo "${ECHO_T}no" >&6
47467fi
47468
47469 ;;
47470 esac
47471
47472
47473
47474
47475
8ced02f6 47476
f10e38c4 47477 BAKEFILE_BAKEFILE_M4_VERSION="0.2.0"
a848cd7e 47478
dcc1b6ad 47479
f10e38c4 47480BAKEFILE_AUTOCONF_INC_M4_VERSION="0.2.0"
a848cd7e 47481
646b6ec1 47482
74b84332 47483
a848cd7e
SC
47484 # Check whether --enable-precomp-headers or --disable-precomp-headers was given.
47485if test "${enable_precomp_headers+set}" = set; then
47486 enableval="$enable_precomp_headers"
47487 bk_use_pch="$enableval"
47488fi;
47489
47490 GCC_PCH=0
f10e38c4
VZ
47491 ICC_PCH=0
47492 USE_PCH=0
a848cd7e 47493
5c60e845
MW
47494 case ${BAKEFILE_HOST} in
47495 *-*-cygwin* )
47496 bk_use_pch="no"
47497 ;;
47498 esac
47499
a848cd7e
SC
47500 if test "x$bk_use_pch" = "x" -o "x$bk_use_pch" = "xyes" ; then
47501 if test "x$GCC" = "xyes"; then
47502 echo "$as_me:$LINENO: checking if the compiler supports precompiled headers" >&5
47503echo $ECHO_N "checking if the compiler supports precompiled headers... $ECHO_C" >&6
47504 cat >conftest.$ac_ext <<_ACEOF
47505/* confdefs.h. */
47506_ACEOF
47507cat confdefs.h >>conftest.$ac_ext
47508cat >>conftest.$ac_ext <<_ACEOF
47509/* end confdefs.h. */
47510
47511int
47512main ()
47513{
47514
47515 #if !defined(__GNUC__) || !defined(__GNUC_MINOR__)
e5efa97e 47516 There is no PCH support
a848cd7e
SC
47517 #endif
47518 #if (__GNUC__ < 3)
e5efa97e 47519 There is no PCH support
a848cd7e
SC
47520 #endif
47521 #if (__GNUC__ == 3) && \
47522 ((!defined(__APPLE_CC__) && (__GNUC_MINOR__ < 4)) || \
f10e38c4
VZ
47523 ( defined(__APPLE_CC__) && (__GNUC_MINOR__ < 3))) || \
47524 ( defined(__INTEL_COMPILER) )
e5efa97e 47525 There is no PCH support
a848cd7e
SC
47526 #endif
47527
47528 ;
47529 return 0;
47530}
47531_ACEOF
47532rm -f conftest.$ac_objext
47533if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 47534 (eval $ac_compile) 2>conftest.er1
a848cd7e 47535 ac_status=$?
ac1cb8d3
VS
47536 grep -v '^ *+' conftest.er1 >conftest.err
47537 rm -f conftest.er1
47538 cat conftest.err >&5
a848cd7e
SC
47539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47540 (exit $ac_status); } &&
c9a66001 47541 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
47542 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47543 (eval $ac_try) 2>&5
47544 ac_status=$?
47545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47546 (exit $ac_status); }; } &&
47547 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
47548 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47549 (eval $ac_try) 2>&5
47550 ac_status=$?
47551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47552 (exit $ac_status); }; }; then
47553
47554 echo "$as_me:$LINENO: result: yes" >&5
47555echo "${ECHO_T}yes" >&6
a848cd7e
SC
47556 GCC_PCH=1
47557
47558else
47559 echo "$as_me: failed program was:" >&5
47560sed 's/^/| /' conftest.$ac_ext >&5
47561
47562
f10e38c4
VZ
47563 cat >conftest.$ac_ext <<_ACEOF
47564/* confdefs.h. */
47565_ACEOF
47566cat confdefs.h >>conftest.$ac_ext
47567cat >>conftest.$ac_ext <<_ACEOF
47568/* end confdefs.h. */
47569
47570int
47571main ()
47572{
47573
47574 #if !defined(__INTEL_COMPILER) || \
47575 (__INTEL_COMPILER < 800)
e5efa97e 47576 There is no PCH support
f10e38c4
VZ
47577 #endif
47578
47579 ;
47580 return 0;
47581}
47582_ACEOF
47583rm -f conftest.$ac_objext
47584if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
47585 (eval $ac_compile) 2>conftest.er1
47586 ac_status=$?
47587 grep -v '^ *+' conftest.er1 >conftest.err
47588 rm -f conftest.er1
47589 cat conftest.err >&5
47590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47591 (exit $ac_status); } &&
c9a66001 47592 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
f10e38c4
VZ
47593 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47594 (eval $ac_try) 2>&5
47595 ac_status=$?
47596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47597 (exit $ac_status); }; } &&
47598 { ac_try='test -s conftest.$ac_objext'
47599 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47600 (eval $ac_try) 2>&5
47601 ac_status=$?
47602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47603 (exit $ac_status); }; }; then
47604
47605 echo "$as_me:$LINENO: result: yes" >&5
47606echo "${ECHO_T}yes" >&6
47607 ICC_PCH=1
47608
47609else
47610 echo "$as_me: failed program was:" >&5
47611sed 's/^/| /' conftest.$ac_ext >&5
47612
47613
47614 echo "$as_me:$LINENO: result: no" >&5
a848cd7e
SC
47615echo "${ECHO_T}no" >&6
47616
47617fi
ac1cb8d3 47618rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
f10e38c4
VZ
47619
47620fi
47621rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
47622 if test $GCC_PCH = 1 -o $ICC_PCH = 1 ; then
47623 USE_PCH=1
1e9e8aba
DE
47624
47625D='$'
47626cat <<EOF >bk-make-pch
a848cd7e
SC
47627#!/bin/sh
47628
47629# This script is part of Bakefile (http://bakefile.sourceforge.net) autoconf
47630# script. It is used to generated precompiled headers.
47631#
47632# Permission is given to use this file in any way.
47633
1e9e8aba
DE
47634outfile="${D}{1}"
47635header="${D}{2}"
a848cd7e
SC
47636shift
47637shift
47638
f10e38c4
VZ
47639compiler=""
47640headerfile=""
47641
1e9e8aba 47642while test ${D}{#} -gt 0; do
f10e38c4 47643 add_to_cmdline=1
1e9e8aba 47644 case "${D}{1}" in
a848cd7e 47645 -I* )
1e9e8aba
DE
47646 incdir=\`echo ${D}{1} | sed -e 's/-I\\(.*\\)/\\1/g'\`
47647 if test "x${D}{headerfile}" = "x" -a -f "${D}{incdir}/${D}{header}" ; then
47648 headerfile="${D}{incdir}/${D}{header}"
a848cd7e
SC
47649 fi
47650 ;;
f10e38c4
VZ
47651 -use-pch|-use_pch )
47652 shift
47653 add_to_cmdline=0
47654 ;;
a848cd7e 47655 esac
f10e38c4
VZ
47656 if test ${D}add_to_cmdline = 1 ; then
47657 compiler="${D}{compiler} ${D}{1}"
47658 fi
a848cd7e
SC
47659 shift
47660done
47661
1e9e8aba 47662if test "x${D}{headerfile}" = "x" ; then
f10e38c4 47663 echo "error: can't find header ${D}{header} in include paths" >&2
a848cd7e 47664else
1e9e8aba
DE
47665 if test -f ${D}{outfile} ; then
47666 rm -f ${D}{outfile}
a848cd7e 47667 else
1e9e8aba 47668 mkdir -p \`dirname ${D}{outfile}\`
a848cd7e 47669 fi
1e9e8aba 47670 depsfile=".deps/\`echo ${D}{outfile} | tr '/.' '__'\`.d"
a848cd7e 47671 mkdir -p .deps
f10e38c4
VZ
47672 if test "x${GCC_PCH}" = "x1" ; then
47673 # can do this because gcc is >= 3.4:
47674 ${D}{compiler} -o ${D}{outfile} -MMD -MF "${D}{depsfile}" "${D}{headerfile}"
47675 elif test "x${ICC_PCH}" = "x1" ; then
47676 filename=pch_gen-${D}${D}
47677 file=${D}{filename}.c
47678 dfile=${D}{filename}.d
47679 cat > ${D}file <<EOT
47680#include "${D}header"
47681EOT
47682 # using -MF icc complains about differing command lines in creation/use
47683 ${D}compiler -c -create_pch ${D}outfile -MMD ${D}file && \\
47684 sed -e "s,^.*:,${D}outfile:," -e "s, ${D}file,," < ${D}dfile > ${D}depsfile && \\
47685 rm -f ${D}file ${D}dfile ${D}{filename}.o
47686 fi
1e9e8aba 47687 exit ${D}{?}
a848cd7e
SC
47688fi
47689EOF
1e9e8aba 47690
a848cd7e
SC
47691 chmod +x bk-make-pch
47692 fi
47693 fi
47694 fi
47695
47696
47697
f10e38c4 47698
a848cd7e
SC
47699 COND_BUILD_DEBUG="#"
47700 if test "x$BUILD" = "xdebug" ; then
47701 COND_BUILD_DEBUG=""
47702 fi
47703
47704 COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT="#"
47705 if test "x$BUILD" = "xdebug" -a "x$DEBUG_FLAG" = "xdefault" ; then
47706 COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT=""
47707 fi
47708
47709 COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT="#"
47710 if test "x$BUILD" = "xdebug" -a "x$DEBUG_INFO" = "xdefault" ; then
47711 COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT=""
47712 fi
47713
47714 COND_BUILD_DEBUG_UNICODE_0="#"
47715 if test "x$BUILD" = "xdebug" -a "x$UNICODE" = "x0" ; then
47716 COND_BUILD_DEBUG_UNICODE_0=""
47717 fi
47718
47719 COND_BUILD_DEBUG_UNICODE_1="#"
47720 if test "x$BUILD" = "xdebug" -a "x$UNICODE" = "x1" ; then
47721 COND_BUILD_DEBUG_UNICODE_1=""
47722 fi
47723
47724 COND_BUILD_RELEASE="#"
47725 if test "x$BUILD" = "xrelease" ; then
47726 COND_BUILD_RELEASE=""
47727 fi
47728
47729 COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT="#"
47730 if test "x$BUILD" = "xrelease" -a "x$DEBUG_INFO" = "xdefault" ; then
47731 COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT=""
47732 fi
47733
47734 COND_BUILD_RELEASE_UNICODE_0="#"
47735 if test "x$BUILD" = "xrelease" -a "x$UNICODE" = "x0" ; then
47736 COND_BUILD_RELEASE_UNICODE_0=""
47737 fi
47738
47739 COND_BUILD_RELEASE_UNICODE_1="#"
47740 if test "x$BUILD" = "xrelease" -a "x$UNICODE" = "x1" ; then
47741 COND_BUILD_RELEASE_UNICODE_1=""
47742 fi
47743
47744 COND_DEBUG_FLAG_1="#"
47745 if test "x$DEBUG_FLAG" = "x1" ; then
47746 COND_DEBUG_FLAG_1=""
47747 fi
47748
47749 COND_DEBUG_INFO_0="#"
47750 if test "x$DEBUG_INFO" = "x0" ; then
47751 COND_DEBUG_INFO_0=""
47752 fi
47753
47754 COND_DEBUG_INFO_1="#"
47755 if test "x$DEBUG_INFO" = "x1" ; then
47756 COND_DEBUG_INFO_1=""
47757 fi
47758
47759 COND_DEPS_TRACKING_0="#"
47760 if test "x$DEPS_TRACKING" = "x0" ; then
47761 COND_DEPS_TRACKING_0=""
47762 fi
47763
47764 COND_DEPS_TRACKING_1="#"
47765 if test "x$DEPS_TRACKING" = "x1" ; then
47766 COND_DEPS_TRACKING_1=""
47767 fi
47768
47769 COND_GCC_PCH_1="#"
47770 if test "x$GCC_PCH" = "x1" ; then
47771 COND_GCC_PCH_1=""
47772 fi
47773
f10e38c4
VZ
47774 COND_ICC_PCH_1="#"
47775 if test "x$ICC_PCH" = "x1" ; then
47776 COND_ICC_PCH_1=""
47777 fi
47778
a848cd7e
SC
47779 COND_MONOLITHIC_0="#"
47780 if test "x$MONOLITHIC" = "x0" ; then
47781 COND_MONOLITHIC_0=""
47782 fi
47783
47784 COND_MONOLITHIC_0_SHARED_0="#"
47785 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" ; then
47786 COND_MONOLITHIC_0_SHARED_0=""
47787 fi
47788
3f60522a
JS
47789 COND_MONOLITHIC_0_SHARED_0_USE_AUI_1="#"
47790 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_AUI" = "x1" ; then
47791 COND_MONOLITHIC_0_SHARED_0_USE_AUI_1=""
47792 fi
47793
a848cd7e
SC
47794 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1="#"
47795 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" ; then
47796 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1=""
47797 fi
47798
90970d69
DE
47799 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_HTML_1="#"
47800 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_HTML" = "x1" ; then
47801 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_HTML_1=""
47802 fi
47803
f10e38c4
VZ
47804 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_MEDIA_1="#"
47805 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_MEDIA" = "x1" ; then
47806 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_MEDIA_1=""
47807 fi
47808
a848cd7e
SC
47809 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1="#"
47810 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_ODBC" = "x1" ; then
47811 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1=""
47812 fi
47813
6671c68b
VZ
47814 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_QA_1="#"
47815 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_QA" = "x1" ; then
47816 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_QA_1=""
47817 fi
47818
a848cd7e
SC
47819 COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1="#"
47820 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_ODBC" = "x1" ; then
47821 COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1=""
47822 fi
47823
8b6682b9
JS
47824 COND_MONOLITHIC_0_SHARED_0_USE_RICHTEXT_1="#"
47825 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_RICHTEXT" = "x1" ; then
47826 COND_MONOLITHIC_0_SHARED_0_USE_RICHTEXT_1=""
47827 fi
47828
ceec2216
RL
47829 COND_MONOLITHIC_0_SHARED_0_USE_XRC_1="#"
47830 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_XRC" = "x1" ; then
47831 COND_MONOLITHIC_0_SHARED_0_USE_XRC_1=""
47832 fi
47833
a848cd7e
SC
47834 COND_MONOLITHIC_0_SHARED_1="#"
47835 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" ; then
47836 COND_MONOLITHIC_0_SHARED_1=""
47837 fi
47838
3f60522a
JS
47839 COND_MONOLITHIC_0_SHARED_1_USE_AUI_1="#"
47840 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_AUI" = "x1" ; then
47841 COND_MONOLITHIC_0_SHARED_1_USE_AUI_1=""
47842 fi
47843
a848cd7e
SC
47844 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1="#"
47845 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" ; then
47846 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1=""
47847 fi
47848
90970d69
DE
47849 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_HTML_1="#"
47850 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_HTML" = "x1" ; then
47851 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_HTML_1=""
47852 fi
47853
f10e38c4
VZ
47854 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_MEDIA_1="#"
47855 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_MEDIA" = "x1" ; then
47856 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_MEDIA_1=""
47857 fi
47858
a848cd7e
SC
47859 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1="#"
47860 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_ODBC" = "x1" ; then
47861 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1=""
47862 fi
47863
6671c68b
VZ
47864 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_QA_1="#"
47865 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_QA" = "x1" ; then
47866 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_QA_1=""
47867 fi
47868
a848cd7e
SC
47869 COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1="#"
47870 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_ODBC" = "x1" ; then
47871 COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1=""
47872 fi
47873
8b6682b9
JS
47874 COND_MONOLITHIC_0_SHARED_1_USE_RICHTEXT_1="#"
47875 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_RICHTEXT" = "x1" ; then
47876 COND_MONOLITHIC_0_SHARED_1_USE_RICHTEXT_1=""
47877 fi
47878
ceec2216
RL
47879 COND_MONOLITHIC_0_SHARED_1_USE_XRC_1="#"
47880 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_XRC" = "x1" ; then
47881 COND_MONOLITHIC_0_SHARED_1_USE_XRC_1=""
47882 fi
47883
e5efa97e
VZ
47884 COND_MONOLITHIC_0_USE_MEDIA_1="#"
47885 if test "x$MONOLITHIC" = "x0" -a "x$USE_MEDIA" = "x1" ; then
47886 COND_MONOLITHIC_0_USE_MEDIA_1=""
47887 fi
47888
a848cd7e
SC
47889 COND_MONOLITHIC_0_USE_ODBC_1="#"
47890 if test "x$MONOLITHIC" = "x0" -a "x$USE_ODBC" = "x1" ; then
47891 COND_MONOLITHIC_0_USE_ODBC_1=""
47892 fi
47893
47894 COND_MONOLITHIC_1="#"
47895 if test "x$MONOLITHIC" = "x1" ; then
47896 COND_MONOLITHIC_1=""
47897 fi
47898
47899 COND_MONOLITHIC_1_SHARED_0="#"
47900 if test "x$MONOLITHIC" = "x1" -a "x$SHARED" = "x0" ; then
47901 COND_MONOLITHIC_1_SHARED_0=""
47902 fi
47903
47904 COND_MONOLITHIC_1_SHARED_1="#"
47905 if test "x$MONOLITHIC" = "x1" -a "x$SHARED" = "x1" ; then
47906 COND_MONOLITHIC_1_SHARED_1=""
47907 fi
47908
47909 COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1="#"
47910 if test "x$OFFICIAL_BUILD" = "x0" -a "x$PLATFORM_WIN32" = "x1" ; then
47911 COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1=""
47912 fi
47913
47914 COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1="#"
47915 if test "x$OFFICIAL_BUILD" = "x1" -a "x$PLATFORM_WIN32" = "x1" ; then
47916 COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1=""
47917 fi
47918
eb730a0c
JS
47919 COND_PLATFORM_MACOSX_0_USE_SOVERCYGWIN_0_USE_SOVERSION_1="#"
47920 if test "x$PLATFORM_MACOSX" = "x0" -a "x$USE_SOVERCYGWIN" = "x0" -a "x$USE_SOVERSION" = "x1" ; then
47921 COND_PLATFORM_MACOSX_0_USE_SOVERCYGWIN_0_USE_SOVERSION_1=""
47922 fi
47923
a848cd7e
SC
47924 COND_PLATFORM_MACOSX_0_USE_SOVERSION_1="#"
47925 if test "x$PLATFORM_MACOSX" = "x0" -a "x$USE_SOVERSION" = "x1" ; then
47926 COND_PLATFORM_MACOSX_0_USE_SOVERSION_1=""
47927 fi
47928
47929 COND_PLATFORM_MACOSX_1="#"
47930 if test "x$PLATFORM_MACOSX" = "x1" ; then
47931 COND_PLATFORM_MACOSX_1=""
47932 fi
47933
a30f955f
VS
47934 COND_PLATFORM_MACOSX_1_TOOLKIT_="#"
47935 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "x" ; then
47936 COND_PLATFORM_MACOSX_1_TOOLKIT_=""
47937 fi
47938
a848cd7e
SC
47939 COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA="#"
47940 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xCOCOA" ; then
47941 COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA=""
47942 fi
47943
47944 COND_PLATFORM_MACOSX_1_TOOLKIT_GTK="#"
47945 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xGTK" ; then
47946 COND_PLATFORM_MACOSX_1_TOOLKIT_GTK=""
47947 fi
47948
47949 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC="#"
47950 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMAC" ; then
47951 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC=""
47952 fi
47953
fc480dc1
DE
47954 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1="#"
47955 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" ; then
47956 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1=""
47957 fi
47958
1e9e8aba
DE
47959 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0="#"
47960 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
47961 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0=""
47962 fi
47963
ebee3cd0
VS
47964 COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF="#"
47965 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMOTIF" ; then
47966 COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF=""
47967 fi
47968
47969 COND_PLATFORM_MACOSX_1_TOOLKIT_X11="#"
47970 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xX11" ; then
47971 COND_PLATFORM_MACOSX_1_TOOLKIT_X11=""
47972 fi
47973
a848cd7e
SC
47974 COND_PLATFORM_MACOSX_1_USE_GUI_1="#"
47975 if test "x$PLATFORM_MACOSX" = "x1" -a "x$USE_GUI" = "x1" ; then
47976 COND_PLATFORM_MACOSX_1_USE_GUI_1=""
47977 fi
47978
47979 COND_PLATFORM_MACOSX_1_USE_SOVERSION_1="#"
47980 if test "x$PLATFORM_MACOSX" = "x1" -a "x$USE_SOVERSION" = "x1" ; then
47981 COND_PLATFORM_MACOSX_1_USE_SOVERSION_1=""
47982 fi
47983
b48a2016
DE
47984 COND_PLATFORM_MACOS_1="#"
47985 if test "x$PLATFORM_MACOS" = "x1" ; then
47986 COND_PLATFORM_MACOS_1=""
47987 fi
47988
083508af
MW
47989 COND_PLATFORM_MAC_1="#"
47990 if test "x$PLATFORM_MAC" = "x1" ; then
47991 COND_PLATFORM_MAC_1=""
47992 fi
47993
e5efa97e
VZ
47994 COND_PLATFORM_MSDOS_0="#"
47995 if test "x$PLATFORM_MSDOS" = "x0" ; then
47996 COND_PLATFORM_MSDOS_0=""
47997 fi
47998
83d8eb47
MW
47999 COND_PLATFORM_MSDOS_1="#"
48000 if test "x$PLATFORM_MSDOS" = "x1" ; then
48001 COND_PLATFORM_MSDOS_1=""
48002 fi
48003
a848cd7e
SC
48004 COND_PLATFORM_OS2_1="#"
48005 if test "x$PLATFORM_OS2" = "x1" ; then
48006 COND_PLATFORM_OS2_1=""
48007 fi
48008
48009 COND_PLATFORM_UNIX_0="#"
48010 if test "x$PLATFORM_UNIX" = "x0" ; then
48011 COND_PLATFORM_UNIX_0=""
48012 fi
48013
48014 COND_PLATFORM_UNIX_1="#"
48015 if test "x$PLATFORM_UNIX" = "x1" ; then
48016 COND_PLATFORM_UNIX_1=""
48017 fi
48018
48019 COND_PLATFORM_UNIX_1_USE_GUI_1="#"
48020 if test "x$PLATFORM_UNIX" = "x1" -a "x$USE_GUI" = "x1" ; then
48021 COND_PLATFORM_UNIX_1_USE_GUI_1=""
48022 fi
48023
48024 COND_PLATFORM_UNIX_1_USE_PLUGINS_0="#"
48025 if test "x$PLATFORM_UNIX" = "x1" -a "x$USE_PLUGINS" = "x0" ; then
48026 COND_PLATFORM_UNIX_1_USE_PLUGINS_0=""
48027 fi
48028
48029 COND_PLATFORM_WIN32_0="#"
48030 if test "x$PLATFORM_WIN32" = "x0" ; then
48031 COND_PLATFORM_WIN32_0=""
48032 fi
48033
48034 COND_PLATFORM_WIN32_1="#"
48035 if test "x$PLATFORM_WIN32" = "x1" ; then
48036 COND_PLATFORM_WIN32_1=""
48037 fi
48038
48039 COND_SHARED_0="#"
48040 if test "x$SHARED" = "x0" ; then
48041 COND_SHARED_0=""
48042 fi
48043
083508af
MW
48044 COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0="#"
48045 if test "x$SHARED" = "x0" -a "x$TOOLKIT" = "xMAC" -a "x$WXUNIV" = "x0" ; then
48046 COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0=""
48047 fi
48048
48049 COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0="#"
48050 if test "x$SHARED" = "x0" -a "x$TOOLKIT" = "xMSW" -a "x$WXUNIV" = "x0" ; then
48051 COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0=""
48052 fi
48053
48054 COND_SHARED_0_TOOLKIT_PM_WXUNIV_0="#"
48055 if test "x$SHARED" = "x0" -a "x$TOOLKIT" = "xPM" -a "x$WXUNIV" = "x0" ; then
48056 COND_SHARED_0_TOOLKIT_PM_WXUNIV_0=""
48057 fi
48058
a848cd7e
SC
48059 COND_SHARED_0_USE_GUI_1_USE_OPENGL_1="#"
48060 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_OPENGL" = "x1" ; then
48061 COND_SHARED_0_USE_GUI_1_USE_OPENGL_1=""
48062 fi
48063
48064 COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="#"
48065 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
48066 COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN=""
48067 fi
48068
48069 COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="#"
48070 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBPNG" = "xbuiltin" ; then
48071 COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN=""
48072 fi
48073
48074 COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="#"
48075 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
48076 COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN=""
48077 fi
48078
083508af
MW
48079 COND_SHARED_0_USE_XRC_1="#"
48080 if test "x$SHARED" = "x0" -a "x$USE_XRC" = "x1" ; then
48081 COND_SHARED_0_USE_XRC_1=""
48082 fi
48083
a848cd7e
SC
48084 COND_SHARED_0_WXUSE_EXPAT_BUILTIN="#"
48085 if test "x$SHARED" = "x0" -a "x$wxUSE_EXPAT" = "xbuiltin" ; then
48086 COND_SHARED_0_WXUSE_EXPAT_BUILTIN=""
48087 fi
48088
48089 COND_SHARED_0_WXUSE_ODBC_BUILTIN="#"
48090 if test "x$SHARED" = "x0" -a "x$wxUSE_ODBC" = "xbuiltin" ; then
48091 COND_SHARED_0_WXUSE_ODBC_BUILTIN=""
48092 fi
48093
48094 COND_SHARED_0_WXUSE_REGEX_BUILTIN="#"
48095 if test "x$SHARED" = "x0" -a "x$wxUSE_REGEX" = "xbuiltin" ; then
48096 COND_SHARED_0_WXUSE_REGEX_BUILTIN=""
48097 fi
48098
48099 COND_SHARED_0_WXUSE_ZLIB_BUILTIN="#"
48100 if test "x$SHARED" = "x0" -a "x$wxUSE_ZLIB" = "xbuiltin" ; then
48101 COND_SHARED_0_WXUSE_ZLIB_BUILTIN=""
48102 fi
48103
48104 COND_SHARED_1="#"
48105 if test "x$SHARED" = "x1" ; then
48106 COND_SHARED_1=""
48107 fi
48108
48109 COND_SHARED_1_USE_GUI_1_USE_OPENGL_1="#"
48110 if test "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_OPENGL" = "x1" ; then
48111 COND_SHARED_1_USE_GUI_1_USE_OPENGL_1=""
48112 fi
48113
083508af
MW
48114 COND_SHARED_1_USE_XRC_1="#"
48115 if test "x$SHARED" = "x1" -a "x$USE_XRC" = "x1" ; then
48116 COND_SHARED_1_USE_XRC_1=""
48117 fi
48118
a30f955f
VS
48119 COND_TOOLKIT_="#"
48120 if test "x$TOOLKIT" = "x" ; then
48121 COND_TOOLKIT_=""
48122 fi
48123
a848cd7e
SC
48124 COND_TOOLKIT_COCOA="#"
48125 if test "x$TOOLKIT" = "xCOCOA" ; then
48126 COND_TOOLKIT_COCOA=""
48127 fi
48128
a49baeab
DE
48129 COND_TOOLKIT_COCOA_USE_GUI_1="#"
48130 if test "x$TOOLKIT" = "xCOCOA" -a "x$USE_GUI" = "x1" ; then
48131 COND_TOOLKIT_COCOA_USE_GUI_1=""
48132 fi
48133
a848cd7e
SC
48134 COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0="#"
48135 if test "x$TOOLKIT" = "xCOCOA" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
48136 COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0=""
48137 fi
48138
48139 COND_TOOLKIT_GTK="#"
48140 if test "x$TOOLKIT" = "xGTK" ; then
48141 COND_TOOLKIT_GTK=""
48142 fi
48143
d044deea
MW
48144 COND_TOOLKIT_GTK_TOOLKIT_VERSION_="#"
48145 if test "x$TOOLKIT" = "xGTK" -a "x$TOOLKIT_VERSION" = "x" ; then
48146 COND_TOOLKIT_GTK_TOOLKIT_VERSION_=""
48147 fi
48148
48149 COND_TOOLKIT_GTK_TOOLKIT_VERSION_2="#"
48150 if test "x$TOOLKIT" = "xGTK" -a "x$TOOLKIT_VERSION" = "x2" ; then
48151 COND_TOOLKIT_GTK_TOOLKIT_VERSION_2=""
48152 fi
48153
48154 COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1="#"
48155 if test "x$TOOLKIT" = "xGTK" -a "x$TOOLKIT_VERSION" = "x2" -a "x$USE_GUI" = "x1" ; then
48156 COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1=""
48157 fi
48158
48159 COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1_WXUNIV_0="#"
48160 if test "x$TOOLKIT" = "xGTK" -a "x$TOOLKIT_VERSION" = "x2" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
48161 COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1_WXUNIV_0=""
48162 fi
48163
48164 COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1="#"
48165 if test "x$TOOLKIT" = "xGTK" -a "x$TOOLKIT_VERSION" = "x" -a "x$USE_GUI" = "x1" ; then
48166 COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1=""
48167 fi
48168
48169 COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1_WXUNIV_0="#"
48170 if test "x$TOOLKIT" = "xGTK" -a "x$TOOLKIT_VERSION" = "x" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
48171 COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1_WXUNIV_0=""
48172 fi
48173
a848cd7e
SC
48174 COND_TOOLKIT_GTK_USE_GUI_1="#"
48175 if test "x$TOOLKIT" = "xGTK" -a "x$USE_GUI" = "x1" ; then
48176 COND_TOOLKIT_GTK_USE_GUI_1=""
48177 fi
48178
a848cd7e
SC
48179 COND_TOOLKIT_MAC="#"
48180 if test "x$TOOLKIT" = "xMAC" ; then
48181 COND_TOOLKIT_MAC=""
48182 fi
48183
48184 COND_TOOLKIT_MAC_USE_GUI_1="#"
48185 if test "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" ; then
48186 COND_TOOLKIT_MAC_USE_GUI_1=""
48187 fi
48188
48189 COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0="#"
48190 if test "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
48191 COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0=""
48192 fi
48193
48194 COND_TOOLKIT_MGL="#"
48195 if test "x$TOOLKIT" = "xMGL" ; then
48196 COND_TOOLKIT_MGL=""
48197 fi
48198
48199 COND_TOOLKIT_MGL_USE_GUI_1="#"
48200 if test "x$TOOLKIT" = "xMGL" -a "x$USE_GUI" = "x1" ; then
48201 COND_TOOLKIT_MGL_USE_GUI_1=""
48202 fi
48203
48204 COND_TOOLKIT_MOTIF="#"
48205 if test "x$TOOLKIT" = "xMOTIF" ; then
48206 COND_TOOLKIT_MOTIF=""
48207 fi
48208
48209 COND_TOOLKIT_MOTIF_USE_GUI_1="#"
48210 if test "x$TOOLKIT" = "xMOTIF" -a "x$USE_GUI" = "x1" ; then
48211 COND_TOOLKIT_MOTIF_USE_GUI_1=""
48212 fi
48213
48214 COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0="#"
48215 if test "x$TOOLKIT" = "xMOTIF" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
48216 COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0=""
48217 fi
48218
48219 COND_TOOLKIT_MSW="#"
48220 if test "x$TOOLKIT" = "xMSW" ; then
48221 COND_TOOLKIT_MSW=""
48222 fi
48223
48224 COND_TOOLKIT_MSW_USE_GUI_1="#"
48225 if test "x$TOOLKIT" = "xMSW" -a "x$USE_GUI" = "x1" ; then
48226 COND_TOOLKIT_MSW_USE_GUI_1=""
48227 fi
48228
48229 COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0="#"
48230 if test "x$TOOLKIT" = "xMSW" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
48231 COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0=""
48232 fi
48233
0ee4059d
DE
48234 COND_TOOLKIT_MSW_WXUNIV_0="#"
48235 if test "x$TOOLKIT" = "xMSW" -a "x$WXUNIV" = "x0" ; then
48236 COND_TOOLKIT_MSW_WXUNIV_0=""
48237 fi
48238
a848cd7e
SC
48239 COND_TOOLKIT_PM="#"
48240 if test "x$TOOLKIT" = "xPM" ; then
48241 COND_TOOLKIT_PM=""
48242 fi
48243
48244 COND_TOOLKIT_PM_USE_GUI_1="#"
48245 if test "x$TOOLKIT" = "xPM" -a "x$USE_GUI" = "x1" ; then
48246 COND_TOOLKIT_PM_USE_GUI_1=""
48247 fi
48248
48249 COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0="#"
48250 if test "x$TOOLKIT" = "xPM" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
48251 COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0=""
48252 fi
48253
3fd9c298
DE
48254 COND_TOOLKIT_WINCE="#"
48255 if test "x$TOOLKIT" = "xWINCE" ; then
48256 COND_TOOLKIT_WINCE=""
48257 fi
48258
48259 COND_TOOLKIT_WINCE_USE_GUI_1="#"
48260 if test "x$TOOLKIT" = "xWINCE" -a "x$USE_GUI" = "x1" ; then
48261 COND_TOOLKIT_WINCE_USE_GUI_1=""
48262 fi
48263
48264 COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0="#"
48265 if test "x$TOOLKIT" = "xWINCE" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
48266 COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0=""
48267 fi
48268
0ee4059d
DE
48269 COND_TOOLKIT_WINCE_WXUNIV_0="#"
48270 if test "x$TOOLKIT" = "xWINCE" -a "x$WXUNIV" = "x0" ; then
48271 COND_TOOLKIT_WINCE_WXUNIV_0=""
48272 fi
48273
a848cd7e
SC
48274 COND_TOOLKIT_X11="#"
48275 if test "x$TOOLKIT" = "xX11" ; then
48276 COND_TOOLKIT_X11=""
48277 fi
48278
48279 COND_TOOLKIT_X11_USE_GUI_1="#"
48280 if test "x$TOOLKIT" = "xX11" -a "x$USE_GUI" = "x1" ; then
48281 COND_TOOLKIT_X11_USE_GUI_1=""
48282 fi
48283
48284 COND_UNICODE_1="#"
48285 if test "x$UNICODE" = "x1" ; then
48286 COND_UNICODE_1=""
48287 fi
48288
48289 COND_USE_EXCEPTIONS_0="#"
48290 if test "x$USE_EXCEPTIONS" = "x0" ; then
48291 COND_USE_EXCEPTIONS_0=""
48292 fi
48293
48294 COND_USE_EXCEPTIONS_1="#"
48295 if test "x$USE_EXCEPTIONS" = "x1" ; then
48296 COND_USE_EXCEPTIONS_1=""
48297 fi
48298
48299 COND_USE_GUI_0="#"
48300 if test "x$USE_GUI" = "x0" ; then
48301 COND_USE_GUI_0=""
48302 fi
48303
48304 COND_USE_GUI_1="#"
48305 if test "x$USE_GUI" = "x1" ; then
48306 COND_USE_GUI_1=""
48307 fi
48308
48309 COND_USE_GUI_1_WXUNIV_0="#"
48310 if test "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
48311 COND_USE_GUI_1_WXUNIV_0=""
48312 fi
48313
48314 COND_USE_GUI_1_WXUNIV_1="#"
48315 if test "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x1" ; then
48316 COND_USE_GUI_1_WXUNIV_1=""
48317 fi
48318
48319 COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="#"
48320 if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
48321 COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN=""
48322 fi
48323
48324 COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="#"
48325 if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBPNG" = "xbuiltin" ; then
48326 COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN=""
48327 fi
48328
48329 COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="#"
48330 if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
48331 COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN=""
48332 fi
48333
083508af
MW
48334 COND_USE_ODBC_1="#"
48335 if test "x$USE_ODBC" = "x1" ; then
48336 COND_USE_ODBC_1=""
48337 fi
48338
48339 COND_USE_OPENGL_1="#"
48340 if test "x$USE_OPENGL" = "x1" ; then
48341 COND_USE_OPENGL_1=""
48342 fi
48343
f10e38c4
VZ
48344 COND_USE_PCH_1="#"
48345 if test "x$USE_PCH" = "x1" ; then
48346 COND_USE_PCH_1=""
48347 fi
48348
a848cd7e
SC
48349 COND_USE_PLUGINS_0="#"
48350 if test "x$USE_PLUGINS" = "x0" ; then
48351 COND_USE_PLUGINS_0=""
48352 fi
48353
0b78747f
MW
48354 COND_USE_RTTI_0="#"
48355 if test "x$USE_RTTI" = "x0" ; then
48356 COND_USE_RTTI_0=""
48357 fi
48358
48359 COND_USE_RTTI_1="#"
48360 if test "x$USE_RTTI" = "x1" ; then
48361 COND_USE_RTTI_1=""
48362 fi
48363
a848cd7e
SC
48364 COND_USE_SOSYMLINKS_1="#"
48365 if test "x$USE_SOSYMLINKS" = "x1" ; then
48366 COND_USE_SOSYMLINKS_1=""
48367 fi
48368
eb730a0c
JS
48369 COND_USE_SOVERCYGWIN_1_USE_SOVERSION_1="#"
48370 if test "x$USE_SOVERCYGWIN" = "x1" -a "x$USE_SOVERSION" = "x1" ; then
48371 COND_USE_SOVERCYGWIN_1_USE_SOVERSION_1=""
48372 fi
48373
a848cd7e
SC
48374 COND_USE_SOVERLINUX_1="#"
48375 if test "x$USE_SOVERLINUX" = "x1" ; then
48376 COND_USE_SOVERLINUX_1=""
48377 fi
48378
48379 COND_USE_SOVERSION_0="#"
48380 if test "x$USE_SOVERSION" = "x0" ; then
48381 COND_USE_SOVERSION_0=""
48382 fi
48383
48384 COND_USE_SOVERSOLARIS_1="#"
48385 if test "x$USE_SOVERSOLARIS" = "x1" ; then
48386 COND_USE_SOVERSOLARIS_1=""
48387 fi
48388
0b78747f
MW
48389 COND_USE_THREADS_0="#"
48390 if test "x$USE_THREADS" = "x0" ; then
48391 COND_USE_THREADS_0=""
48392 fi
48393
48394 COND_USE_THREADS_1="#"
48395 if test "x$USE_THREADS" = "x1" ; then
48396 COND_USE_THREADS_1=""
48397 fi
48398
a13a7f89
RL
48399 COND_USE_XRC_1="#"
48400 if test "x$USE_XRC" = "x1" ; then
48401 COND_USE_XRC_1=""
48402 fi
48403
eb730a0c
JS
48404 COND_WINDOWS_IMPLIB_1="#"
48405 if test "x$WINDOWS_IMPLIB" = "x1" ; then
48406 COND_WINDOWS_IMPLIB_1=""
48407 fi
48408
a848cd7e
SC
48409 COND_WITH_PLUGIN_SDL_1="#"
48410 if test "x$WITH_PLUGIN_SDL" = "x1" ; then
48411 COND_WITH_PLUGIN_SDL_1=""
48412 fi
48413
1e6eb025
VZ
48414 COND_WXUNIV_0="#"
48415 if test "x$WXUNIV" = "x0" ; then
48416 COND_WXUNIV_0=""
48417 fi
48418
a848cd7e
SC
48419 COND_WXUNIV_1="#"
48420 if test "x$WXUNIV" = "x1" ; then
48421 COND_WXUNIV_1=""
48422 fi
48423
48424 COND_WXUSE_EXPAT_BUILTIN="#"
48425 if test "x$wxUSE_EXPAT" = "xbuiltin" ; then
48426 COND_WXUSE_EXPAT_BUILTIN=""
48427 fi
48428
48429 COND_WXUSE_LIBJPEG_BUILTIN="#"
48430 if test "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
48431 COND_WXUSE_LIBJPEG_BUILTIN=""
48432 fi
48433
48434 COND_WXUSE_LIBPNG_BUILTIN="#"
48435 if test "x$wxUSE_LIBPNG" = "xbuiltin" ; then
48436 COND_WXUSE_LIBPNG_BUILTIN=""
48437 fi
48438
48439 COND_WXUSE_LIBTIFF_BUILTIN="#"
48440 if test "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
48441 COND_WXUSE_LIBTIFF_BUILTIN=""
48442 fi
48443
48444 COND_WXUSE_ODBC_BUILTIN="#"
48445 if test "x$wxUSE_ODBC" = "xbuiltin" ; then
48446 COND_WXUSE_ODBC_BUILTIN=""
48447 fi
48448
48449 COND_WXUSE_REGEX_BUILTIN="#"
48450 if test "x$wxUSE_REGEX" = "xbuiltin" ; then
48451 COND_WXUSE_REGEX_BUILTIN=""
48452 fi
48453
48454 COND_WXUSE_ZLIB_BUILTIN="#"
48455 if test "x$wxUSE_ZLIB" = "xbuiltin" ; then
48456 COND_WXUSE_ZLIB_BUILTIN=""
48457 fi
48458
48459
48460
810b94f0
MW
48461 if test "$BAKEFILE_AUTOCONF_INC_M4_VERSION" = "" ; then
48462 { { 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
48463echo "$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;}
48464 { (exit 1); exit 1; }; }
48465 fi
48466
2057db16
VS
48467 if test "$BAKEFILE_BAKEFILE_M4_VERSION" != "$BAKEFILE_AUTOCONF_INC_M4_VERSION" ; then
48468 { { 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
48469echo "$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;}
48470 { (exit 1); exit 1; }; }
48471 fi
48472
a848cd7e 48473
7afc46ab
KO
48474
48475if test "$wxUSE_MAC" = 1 ; then
48476 if test "$wxUSE_UNIVERSAL_BINARY" = "yes" ; then
48477 sed "s/DEPSMODE=gcc/DEPSMODE=none/" < bk-deps > temp
48478 mv temp bk-deps
48479 chmod +x bk-deps
48480 fi
48481fi
48482
ceec2216
RL
48483if test "$wxUSE_SHARED" = "yes"; then
48484
48485 sanitised_bakefile_mess=`echo "$SHARED_LD_CXX" | tr -d '()'`
48486 EXE_LINKER=`eval echo "$sanitised_bakefile_mess"`
48487
5b674b9d
DE
48488 case "${host}" in
48489 *-pc-os2_emx | *-pc-os2-emx )
48490 SHARED_LD_CC="`pwd`/dllar.sh -name-mangler-script ./dllnames.sh -libf INITINSTANCE -libf TERMINSTANCE -o"
48491 SHARED_LD_CXX="`pwd`/dllar.sh -name-mangler-script ./dllnames.sh -libf INITINSTANCE -libf TERMINSTANCE -o"
48492 cp -p ${srcdir}/src/os2/dllnames.sh .
48493 cp -p ${srcdir}/src/os2/dllar.sh .
48494 ;;
48495 esac
ceec2216
RL
48496else
48497
48498 EXE_LINKER="$CXX -o"
48499
48500fi
69120ee4
VZ
48501if test "$wxUSE_OMF" = "yes"; then
48502 case "${host}" in
48503 *-pc-os2_emx | *-pc-os2-emx )
48504 LDFLAGS="$LDFLAGS -Zlinker /EXEPACK"
48505 LDFLAGS_GUI="-Zlinker /PMTYPE:PM"
48506 WXCONFIG_LDFLAGS_GUI="-Zlinker /PMTYPE:PM"
48507 ;;
48508 esac
48509fi
a848cd7e 48510
c08ebc62 48511if test $GCC_PCH = 1 ; then
254e8e29 48512 CPPFLAGS="-DWX_PRECOMP $CPPFLAGS"
ddd14b14 48513fi
a848cd7e 48514
5ff751d6 48515WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS $TOOLCHAIN_DEFS"
a848cd7e
SC
48516
48517SAMPLES_SUBDIRS="`echo $SAMPLES_SUBDIRS | tr -s ' ' | tr ' ' '\n' | sort | uniq | tr '\n' ' '| tr -d '\r'`"
48518
48519
48520
48521
48522
48523
48524
48525
48526
48527
48528
48529
48530
48531
48532
48533
48534
48535
48536
48537
48538
48539
48540
48541
48542
48543
48544
48545
48546
48547
48548
48549
48550
48551
48552
48553
48554
48555
48556
48557
48558
48559
a848cd7e
SC
48560
48561
48562
48563
48564
48565
48566
48567
48568
48569
48570
48571
a848cd7e
SC
48572
48573
ddd14b14 48574
370d2fd7 48575
8ced02f6 48576
a848cd7e
SC
48577
48578
48579echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
48580echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
ac1cb8d3 48581set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
a848cd7e
SC
48582if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
48583 echo $ECHO_N "(cached) $ECHO_C" >&6
48584else
48585 cat >conftest.make <<\_ACEOF
48586all:
48587 @echo 'ac_maketemp="$(MAKE)"'
48588_ACEOF
48589# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
48590eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
48591if test -n "$ac_maketemp"; then
48592 eval ac_cv_prog_make_${ac_make}_set=yes
48593else
48594 eval ac_cv_prog_make_${ac_make}_set=no
48595fi
48596rm -f conftest.make
48597fi
48598if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
48599 echo "$as_me:$LINENO: result: yes" >&5
48600echo "${ECHO_T}yes" >&6
48601 SET_MAKE=
48602else
48603 echo "$as_me:$LINENO: result: no" >&5
48604echo "${ECHO_T}no" >&6
48605 SET_MAKE="MAKE=${MAKE-make}"
48606fi
48607
48608
a848cd7e 48609
ceec2216
RL
48610 ac_config_headers="$ac_config_headers lib/wx/include/${TOOLCHAIN_FULLNAME}/wx/setup.h:setup.h.in"
48611
a848cd7e 48612
5c60e845
MW
48613if test "$USE_WIN32" = 1; then
48614 ac_config_commands="$ac_config_commands
48615 rcdefs.h
48616 "
48617
48618fi
48619
ceec2216 48620 ac_config_files="$ac_config_files lib/wx/config/${TOOLCHAIN_FULLNAME}:wx-config.in"
a848cd7e 48621
a848cd7e 48622
ceec2216 48623 ac_config_files="$ac_config_files lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}:wx-config-inplace.in"
a848cd7e 48624
ceec2216
RL
48625
48626 ac_config_files="$ac_config_files version-script Makefile"
48627
48628
5c60e845 48629 ac_config_commands="$ac_config_commands wx-config"
a848cd7e
SC
48630
48631
9103d280 48632
1c14217d 48633if test "$wxWITH_SUBDIRS" != "no"; then
a848cd7e
SC
48634if test "$wxUSE_GUI" = "yes"; then
48635 SUBDIRS="samples demos utils contrib"
48636else SUBDIRS="samples utils"
48637fi
48638
48639
48640
48641# Check whether --with-cppunit-prefix or --without-cppunit-prefix was given.
48642if test "${with_cppunit_prefix+set}" = set; then
48643 withval="$with_cppunit_prefix"
48644 cppunit_config_prefix="$withval"
48645else
48646 cppunit_config_prefix=""
48647fi;
48648
48649# Check whether --with-cppunit-exec-prefix or --without-cppunit-exec-prefix was given.
48650if test "${with_cppunit_exec_prefix+set}" = set; then
48651 withval="$with_cppunit_exec_prefix"
48652 cppunit_config_exec_prefix="$withval"
48653else
48654 cppunit_config_exec_prefix=""
48655fi;
48656
48657 if test x$cppunit_config_exec_prefix != x ; then
48658 cppunit_config_args="$cppunit_config_args --exec-prefix=$cppunit_config_exec_prefix"
48659 if test x${CPPUNIT_CONFIG+set} != xset ; then
48660 CPPUNIT_CONFIG=$cppunit_config_exec_prefix/bin/cppunit-config
48661 fi
48662 fi
48663 if test x$cppunit_config_prefix != x ; then
48664 cppunit_config_args="$cppunit_config_args --prefix=$cppunit_config_prefix"
48665 if test x${CPPUNIT_CONFIG+set} != xset ; then
48666 CPPUNIT_CONFIG=$cppunit_config_prefix/bin/cppunit-config
48667 fi
48668 fi
48669
48670 # Extract the first word of "cppunit-config", so it can be a program name with args.
48671set dummy cppunit-config; ac_word=$2
48672echo "$as_me:$LINENO: checking for $ac_word" >&5
48673echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
48674if test "${ac_cv_path_CPPUNIT_CONFIG+set}" = set; then
48675 echo $ECHO_N "(cached) $ECHO_C" >&6
48676else
48677 case $CPPUNIT_CONFIG in
48678 [\\/]* | ?:[\\/]*)
48679 ac_cv_path_CPPUNIT_CONFIG="$CPPUNIT_CONFIG" # Let the user override the test with a path.
48680 ;;
48681 *)
48682 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
48683for as_dir in $PATH
48684do
48685 IFS=$as_save_IFS
48686 test -z "$as_dir" && as_dir=.
48687 for ac_exec_ext in '' $ac_executable_extensions; do
48688 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
48689 ac_cv_path_CPPUNIT_CONFIG="$as_dir/$ac_word$ac_exec_ext"
48690 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
48691 break 2
48692 fi
48693done
48694done
48695
48696 test -z "$ac_cv_path_CPPUNIT_CONFIG" && ac_cv_path_CPPUNIT_CONFIG="no"
48697 ;;
48698esac
48699fi
48700CPPUNIT_CONFIG=$ac_cv_path_CPPUNIT_CONFIG
48701
48702if test -n "$CPPUNIT_CONFIG"; then
48703 echo "$as_me:$LINENO: result: $CPPUNIT_CONFIG" >&5
48704echo "${ECHO_T}$CPPUNIT_CONFIG" >&6
48705else
48706 echo "$as_me:$LINENO: result: no" >&5
48707echo "${ECHO_T}no" >&6
48708fi
48709
48710 cppunit_version_min=1.8.0
48711
48712 echo "$as_me:$LINENO: checking for Cppunit - version >= $cppunit_version_min" >&5
48713echo $ECHO_N "checking for Cppunit - version >= $cppunit_version_min... $ECHO_C" >&6
48714 no_cppunit=""
48715 if test "$CPPUNIT_CONFIG" = "no" ; then
48716 no_cppunit=yes
48717 else
48718 CPPUNIT_CFLAGS=`$CPPUNIT_CONFIG --cflags`
48719 CPPUNIT_LIBS=`$CPPUNIT_CONFIG --libs`
48720 cppunit_version=`$CPPUNIT_CONFIG --version`
48721
48722 cppunit_major_version=`echo $cppunit_version | \
48723 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
48724 cppunit_minor_version=`echo $cppunit_version | \
48725 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
48726 cppunit_micro_version=`echo $cppunit_version | \
48727 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
48728
48729 cppunit_major_min=`echo $cppunit_version_min | \
48730 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
48731 cppunit_minor_min=`echo $cppunit_version_min | \
48732 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
48733 cppunit_micro_min=`echo $cppunit_version_min | \
48734 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
48735
48736 cppunit_version_proper=`expr \
48737 $cppunit_major_version \> $cppunit_major_min \| \
48738 $cppunit_major_version \= $cppunit_major_min \& \
48739 $cppunit_minor_version \> $cppunit_minor_min \| \
48740 $cppunit_major_version \= $cppunit_major_min \& \
48741 $cppunit_minor_version \= $cppunit_minor_min \& \
48742 $cppunit_micro_version \>= $cppunit_micro_min `
48743
48744 if test "$cppunit_version_proper" = "1" ; then
48745 echo "$as_me:$LINENO: result: $cppunit_major_version.$cppunit_minor_version.$cppunit_micro_version" >&5
48746echo "${ECHO_T}$cppunit_major_version.$cppunit_minor_version.$cppunit_micro_version" >&6
48747 else
48748 echo "$as_me:$LINENO: result: no" >&5
48749echo "${ECHO_T}no" >&6
48750 no_cppunit=yes
48751 fi
48752 fi
48753
48754 if test "x$no_cppunit" = x ; then
c2218763 48755 SUBDIRS="$SUBDIRS tests"
a848cd7e
SC
48756 else
48757 CPPUNIT_CFLAGS=""
48758 CPPUNIT_LIBS=""
c2218763 48759 :
a848cd7e
SC
48760 fi
48761
48762
48763
48764
48765
48766for subdir in `echo $SUBDIRS`; do
48767 if test -d ${srcdir}/${subdir} ; then
48768 if test "$wxUSE_GUI" = "yes"; then
48769 if test ${subdir} = "samples"; then
48770 makefiles="samples/Makefile.in $makefiles"
48771 for sample in `echo $SAMPLES_SUBDIRS`; do
48772 if test -d $srcdir/samples/$sample; then
48773 makefiles="samples/$sample/Makefile.in $makefiles"
48774 fi
48775 done
9c112555
MW
48776 else
48777 disabled_var=DISABLED_`echo $subdir | tr [a-z] [A-Z]`;
48778 eval "disabled=\$$disabled_var"
48779 disabled=/`echo X $disabled | sed 's@ @/|/@g'`/
48780 makefiles=`(cd $srcdir ; find $subdir -name Makefile.in) | egrep -v "$disabled"`
a848cd7e
SC
48781 fi
48782 else if test ${subdir} = "samples"; then
48783 makefiles="samples/Makefile.in samples/console/Makefile.in"
48784 elif test ${subdir} = "utils"; then
6537ccf8
VS
48785 makefiles=""
48786 for util in HelpGen tex2rtf ; do
48787 if test -d $srcdir/utils/$util ; then
48788 makefiles="utils/$util/Makefile.in \
48789 utils/$util/src/Makefile.in \
48790 $makefiles"
48791 fi
48792 done
a848cd7e
SC
48793 else makefiles=`(cd $srcdir ; find $subdir -name Makefile.in)`
48794 fi
48795 fi
48796
48797 for mkin in $makefiles ; do
48798 mk=`echo $mkin | sed 's/Makefile\.in/Makefile/g'`
48799 ac_config_files="$ac_config_files $mk"
48800
48801 done
48802 fi
48803done
1c14217d 48804fi
a848cd7e
SC
48805cat >confcache <<\_ACEOF
48806# This file is a shell script that caches the results of configure
48807# tests run on this system so they can be shared between configure
48808# scripts and configure runs, see configure's option --config-cache.
48809# It is not useful on other systems. If it contains results you don't
48810# want to keep, you may remove or edit it.
48811#
48812# config.status only pays attention to the cache file if you give it
48813# the --recheck option to rerun configure.
48814#
48815# `ac_cv_env_foo' variables (set or unset) will be overridden when
48816# loading this file, other *unset* `ac_cv_foo' will be assigned the
48817# following values.
48818
48819_ACEOF
48820
48821# The following way of writing the cache mishandles newlines in values,
48822# but we know of no workaround that is simple, portable, and efficient.
48823# So, don't put newlines in cache variables' values.
48824# Ultrix sh set writes to stderr and can't be redirected directly,
48825# and sets the high bit in the cache file unless we assign to the vars.
48826{
48827 (set) 2>&1 |
48828 case `(ac_space=' '; set | grep ac_space) 2>&1` in
48829 *ac_space=\ *)
48830 # `set' does not quote correctly, so add quotes (double-quote
48831 # substitution turns \\\\ into \\, and sed turns \\ into \).
48832 sed -n \
ac1cb8d3
VS
48833 "s/'/'\\\\''/g;
48834 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
a848cd7e
SC
48835 ;;
48836 *)
48837 # `set' quotes correctly as required by POSIX, so do not add quotes.
48838 sed -n \
ac1cb8d3 48839 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
a848cd7e
SC
48840 ;;
48841 esac;
48842} |
48843 sed '
48844 t clear
48845 : clear
48846 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
48847 t end
48848 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
48849 : end' >>confcache
48850if diff $cache_file confcache >/dev/null 2>&1; then :; else
48851 if test -w $cache_file; then
48852 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
48853 cat confcache >$cache_file
48854 else
48855 echo "not updating unwritable cache $cache_file"
48856 fi
48857fi
48858rm -f confcache
48859
48860test "x$prefix" = xNONE && prefix=$ac_default_prefix
48861# Let make expand exec_prefix.
48862test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
48863
48864# VPATH may cause trouble with some makes, so we remove $(srcdir),
48865# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
48866# trailing colons and then remove the whole line if VPATH becomes empty
48867# (actually we leave an empty line to preserve line numbers).
48868if test "x$srcdir" = x.; then
ac1cb8d3 48869 ac_vpsub='/^[ ]*VPATH[ ]*=/{
a848cd7e
SC
48870s/:*\$(srcdir):*/:/;
48871s/:*\${srcdir}:*/:/;
48872s/:*@srcdir@:*/:/;
ac1cb8d3 48873s/^\([^=]*=[ ]*\):*/\1/;
a848cd7e 48874s/:*$//;
ac1cb8d3 48875s/^[^=]*=[ ]*$//;
a848cd7e
SC
48876}'
48877fi
48878
48879DEFS=-DHAVE_CONFIG_H
48880
48881ac_libobjs=
48882ac_ltlibobjs=
48883for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
48884 # 1. Remove the extension, and $U if already installed.
48885 ac_i=`echo "$ac_i" |
ac1cb8d3 48886 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
a848cd7e
SC
48887 # 2. Add them.
48888 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
48889 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
48890done
48891LIBOBJS=$ac_libobjs
48892
48893LTLIBOBJS=$ac_ltlibobjs
48894
48895
48896
48897: ${CONFIG_STATUS=./config.status}
48898ac_clean_files_save=$ac_clean_files
48899ac_clean_files="$ac_clean_files $CONFIG_STATUS"
48900{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
48901echo "$as_me: creating $CONFIG_STATUS" >&6;}
48902cat >$CONFIG_STATUS <<_ACEOF
48903#! $SHELL
48904# Generated by $as_me.
48905# Run this file to recreate the current configuration.
48906# Compiler output produced by configure, useful for debugging
48907# configure, is in config.log if it exists.
48908
48909debug=false
48910ac_cs_recheck=false
48911ac_cs_silent=false
48912SHELL=\${CONFIG_SHELL-$SHELL}
48913_ACEOF
48914
48915cat >>$CONFIG_STATUS <<\_ACEOF
48916## --------------------- ##
48917## M4sh Initialization. ##
48918## --------------------- ##
48919
48920# Be Bourne compatible
48921if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
48922 emulate sh
48923 NULLCMD=:
48924 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
48925 # is contrary to our usage. Disable this feature.
48926 alias -g '${1+"$@"}'='"$@"'
48927elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
48928 set -o posix
48929fi
ac1cb8d3 48930DUALCASE=1; export DUALCASE # for MKS sh
a848cd7e
SC
48931
48932# Support unset when possible.
ac1cb8d3 48933if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
a848cd7e
SC
48934 as_unset=unset
48935else
48936 as_unset=false
48937fi
48938
48939
48940# Work around bugs in pre-3.0 UWIN ksh.
48941$as_unset ENV MAIL MAILPATH
48942PS1='$ '
48943PS2='> '
48944PS4='+ '
48945
48946# NLS nuisances.
48947for as_var in \
48948 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
48949 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
48950 LC_TELEPHONE LC_TIME
48951do
ac1cb8d3 48952 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
a848cd7e
SC
48953 eval $as_var=C; export $as_var
48954 else
48955 $as_unset $as_var
48956 fi
48957done
48958
48959# Required to use basename.
48960if expr a : '\(a\)' >/dev/null 2>&1; then
48961 as_expr=expr
48962else
48963 as_expr=false
48964fi
48965
48966if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
48967 as_basename=basename
48968else
48969 as_basename=false
48970fi
48971
48972
48973# Name of the executable.
48974as_me=`$as_basename "$0" ||
48975$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
48976 X"$0" : 'X\(//\)$' \| \
48977 X"$0" : 'X\(/\)$' \| \
48978 . : '\(.\)' 2>/dev/null ||
48979echo X/"$0" |
48980 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
48981 /^X\/\(\/\/\)$/{ s//\1/; q; }
48982 /^X\/\(\/\).*/{ s//\1/; q; }
48983 s/.*/./; q'`
48984
48985
48986# PATH needs CR, and LINENO needs CR and PATH.
48987# Avoid depending upon Character Ranges.
48988as_cr_letters='abcdefghijklmnopqrstuvwxyz'
48989as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
48990as_cr_Letters=$as_cr_letters$as_cr_LETTERS
48991as_cr_digits='0123456789'
48992as_cr_alnum=$as_cr_Letters$as_cr_digits
48993
48994# The user is always right.
48995if test "${PATH_SEPARATOR+set}" != set; then
48996 echo "#! /bin/sh" >conf$$.sh
48997 echo "exit 0" >>conf$$.sh
48998 chmod +x conf$$.sh
48999 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
49000 PATH_SEPARATOR=';'
49001 else
49002 PATH_SEPARATOR=:
49003 fi
49004 rm -f conf$$.sh
49005fi
49006
49007
49008 as_lineno_1=$LINENO
49009 as_lineno_2=$LINENO
49010 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
49011 test "x$as_lineno_1" != "x$as_lineno_2" &&
49012 test "x$as_lineno_3" = "x$as_lineno_2" || {
49013 # Find who we are. Look in the path if we contain no path at all
49014 # relative or not.
49015 case $0 in
49016 *[\\/]* ) as_myself=$0 ;;
49017 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
49018for as_dir in $PATH
49019do
49020 IFS=$as_save_IFS
49021 test -z "$as_dir" && as_dir=.
49022 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
49023done
49024
49025 ;;
49026 esac
49027 # We did not find ourselves, most probably we were run as `sh COMMAND'
49028 # in which case we are not to be found in the path.
49029 if test "x$as_myself" = x; then
49030 as_myself=$0
49031 fi
49032 if test ! -f "$as_myself"; then
49033 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
49034echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
49035 { (exit 1); exit 1; }; }
49036 fi
49037 case $CONFIG_SHELL in
49038 '')
49039 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
49040for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
49041do
49042 IFS=$as_save_IFS
49043 test -z "$as_dir" && as_dir=.
49044 for as_base in sh bash ksh sh5; do
49045 case $as_dir in
49046 /*)
49047 if ("$as_dir/$as_base" -c '
49048 as_lineno_1=$LINENO
49049 as_lineno_2=$LINENO
49050 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
49051 test "x$as_lineno_1" != "x$as_lineno_2" &&
49052 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
49053 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
49054 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
49055 CONFIG_SHELL=$as_dir/$as_base
49056 export CONFIG_SHELL
49057 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
49058 fi;;
49059 esac
49060 done
49061done
49062;;
49063 esac
49064
49065 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
49066 # uniformly replaced by the line number. The first 'sed' inserts a
49067 # line-number line before each line; the second 'sed' does the real
49068 # work. The second script uses 'N' to pair each line-number line
49069 # with the numbered line, and appends trailing '-' during
49070 # substitution so that $LINENO is not a special case at line end.
49071 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
49072 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
49073 sed '=' <$as_myself |
49074 sed '
49075 N
49076 s,$,-,
49077 : loop
49078 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
49079 t loop
49080 s,-$,,
49081 s,^['$as_cr_digits']*\n,,
49082 ' >$as_me.lineno &&
49083 chmod +x $as_me.lineno ||
49084 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
49085echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
49086 { (exit 1); exit 1; }; }
49087
49088 # Don't try to exec as it changes $[0], causing all sort of problems
49089 # (the dirname of $[0] is not the place where we might find the
49090 # original and so on. Autoconf is especially sensible to this).
49091 . ./$as_me.lineno
49092 # Exit status is that of the last command.
49093 exit
49094}
49095
49096
49097case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
49098 *c*,-n*) ECHO_N= ECHO_C='
49099' ECHO_T=' ' ;;
49100 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
49101 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
49102esac
49103
49104if expr a : '\(a\)' >/dev/null 2>&1; then
49105 as_expr=expr
49106else
49107 as_expr=false
49108fi
49109
49110rm -f conf$$ conf$$.exe conf$$.file
49111echo >conf$$.file
49112if ln -s conf$$.file conf$$ 2>/dev/null; then
49113 # We could just check for DJGPP; but this test a) works b) is more generic
49114 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
49115 if test -f conf$$.exe; then
49116 # Don't use ln at all; we don't have any links
49117 as_ln_s='cp -p'
49118 else
49119 as_ln_s='ln -s'
49120 fi
49121elif ln conf$$.file conf$$ 2>/dev/null; then
49122 as_ln_s=ln
49123else
49124 as_ln_s='cp -p'
49125fi
49126rm -f conf$$ conf$$.exe conf$$.file
49127
49128if mkdir -p . 2>/dev/null; then
49129 as_mkdir_p=:
49130else
ac1cb8d3 49131 test -d ./-p && rmdir ./-p
a848cd7e
SC
49132 as_mkdir_p=false
49133fi
49134
49135as_executable_p="test -f"
49136
49137# Sed expression to map a string onto a valid CPP name.
ac1cb8d3 49138as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
a848cd7e
SC
49139
49140# Sed expression to map a string onto a valid variable name.
ac1cb8d3 49141as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
a848cd7e
SC
49142
49143
49144# IFS
49145# We need space, tab and new line, in precisely that order.
49146as_nl='
49147'
49148IFS=" $as_nl"
49149
49150# CDPATH.
49151$as_unset CDPATH
49152
49153exec 6>&1
49154
49155# Open the log real soon, to keep \$[0] and so on meaningful, and to
49156# report actual input values of CONFIG_FILES etc. instead of their
49157# values after options handling. Logging --version etc. is OK.
49158exec 5>>config.log
49159{
49160 echo
49161 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
49162## Running $as_me. ##
49163_ASBOX
49164} >&5
49165cat >&5 <<_CSEOF
49166
dd8df4fc 49167This file was extended by wxWidgets $as_me 2.7.0, which was
ac1cb8d3 49168generated by GNU Autoconf 2.59. Invocation command line was
a848cd7e
SC
49169
49170 CONFIG_FILES = $CONFIG_FILES
49171 CONFIG_HEADERS = $CONFIG_HEADERS
49172 CONFIG_LINKS = $CONFIG_LINKS
49173 CONFIG_COMMANDS = $CONFIG_COMMANDS
49174 $ $0 $@
49175
49176_CSEOF
49177echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
49178echo >&5
49179_ACEOF
49180
49181# Files that config.status was made for.
49182if test -n "$ac_config_files"; then
49183 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
49184fi
49185
49186if test -n "$ac_config_headers"; then
49187 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
49188fi
49189
49190if test -n "$ac_config_links"; then
49191 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
49192fi
49193
49194if test -n "$ac_config_commands"; then
49195 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
49196fi
49197
49198cat >>$CONFIG_STATUS <<\_ACEOF
49199
49200ac_cs_usage="\
49201\`$as_me' instantiates files from templates according to the
49202current configuration.
49203
49204Usage: $0 [OPTIONS] [FILE]...
49205
49206 -h, --help print this help, then exit
49207 -V, --version print version number, then exit
49208 -q, --quiet do not print progress messages
49209 -d, --debug don't remove temporary files
49210 --recheck update $as_me by reconfiguring in the same conditions
49211 --file=FILE[:TEMPLATE]
ac1cb8d3 49212 instantiate the configuration file FILE
a848cd7e 49213 --header=FILE[:TEMPLATE]
ac1cb8d3 49214 instantiate the configuration header FILE
a848cd7e
SC
49215
49216Configuration files:
49217$config_files
49218
49219Configuration headers:
49220$config_headers
49221
49222Configuration commands:
49223$config_commands
49224
49225Report bugs to <bug-autoconf@gnu.org>."
49226_ACEOF
49227
49228cat >>$CONFIG_STATUS <<_ACEOF
49229ac_cs_version="\\
dd8df4fc 49230wxWidgets config.status 2.7.0
ac1cb8d3 49231configured by $0, generated by GNU Autoconf 2.59,
a848cd7e
SC
49232 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
49233
ac1cb8d3 49234Copyright (C) 2003 Free Software Foundation, Inc.
a848cd7e
SC
49235This config.status script is free software; the Free Software Foundation
49236gives unlimited permission to copy, distribute and modify it."
49237srcdir=$srcdir
49238INSTALL="$INSTALL"
49239_ACEOF
49240
49241cat >>$CONFIG_STATUS <<\_ACEOF
49242# If no file are specified by the user, then we need to provide default
49243# value. By we need to know if files were specified by the user.
49244ac_need_defaults=:
49245while test $# != 0
49246do
49247 case $1 in
49248 --*=*)
49249 ac_option=`expr "x$1" : 'x\([^=]*\)='`
49250 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
49251 ac_shift=:
49252 ;;
49253 -*)
49254 ac_option=$1
49255 ac_optarg=$2
49256 ac_shift=shift
49257 ;;
49258 *) # This is not an option, so the user has probably given explicit
49259 # arguments.
49260 ac_option=$1
49261 ac_need_defaults=false;;
49262 esac
49263
49264 case $ac_option in
49265 # Handling of the options.
49266_ACEOF
49267cat >>$CONFIG_STATUS <<\_ACEOF
49268 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
49269 ac_cs_recheck=: ;;
49270 --version | --vers* | -V )
49271 echo "$ac_cs_version"; exit 0 ;;
49272 --he | --h)
49273 # Conflict between --help and --header
49274 { { echo "$as_me:$LINENO: error: ambiguous option: $1
49275Try \`$0 --help' for more information." >&5
49276echo "$as_me: error: ambiguous option: $1
49277Try \`$0 --help' for more information." >&2;}
49278 { (exit 1); exit 1; }; };;
49279 --help | --hel | -h )
49280 echo "$ac_cs_usage"; exit 0 ;;
49281 --debug | --d* | -d )
49282 debug=: ;;
49283 --file | --fil | --fi | --f )
49284 $ac_shift
49285 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
49286 ac_need_defaults=false;;
49287 --header | --heade | --head | --hea )
49288 $ac_shift
49289 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
49290 ac_need_defaults=false;;
49291 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
49292 | -silent | --silent | --silen | --sile | --sil | --si | --s)
49293 ac_cs_silent=: ;;
49294
49295 # This is an error.
49296 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
49297Try \`$0 --help' for more information." >&5
49298echo "$as_me: error: unrecognized option: $1
49299Try \`$0 --help' for more information." >&2;}
49300 { (exit 1); exit 1; }; } ;;
49301
49302 *) ac_config_targets="$ac_config_targets $1" ;;
49303
49304 esac
49305 shift
49306done
49307
49308ac_configure_extra_args=
49309
49310if $ac_cs_silent; then
49311 exec 6>/dev/null
49312 ac_configure_extra_args="$ac_configure_extra_args --silent"
49313fi
49314
49315_ACEOF
49316cat >>$CONFIG_STATUS <<_ACEOF
49317if \$ac_cs_recheck; then
49318 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
49319 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
49320fi
49321
49322_ACEOF
49323
49324cat >>$CONFIG_STATUS <<_ACEOF
49325#
49326# INIT-COMMANDS section.
49327#
49328
5c60e845
MW
49329
49330 CPP="$CPP"
49331 infile="$srcdir/include/wx/msw/genrcdefs.h"
49332 outdir="lib/wx/include/$TOOLCHAIN_FULLNAME/wx/msw"
49333
49334
ceec2216
RL
49335 TOOLCHAIN_FULLNAME="${TOOLCHAIN_FULLNAME}"
49336 TOOLCHAIN_FULLNAME="${TOOLCHAIN_FULLNAME}"
49337 TOOLCHAIN_FULLNAME="${TOOLCHAIN_FULLNAME}"
49338 LN_S="${LN_S}"
a848cd7e
SC
49339
49340
49341_ACEOF
49342
49343
49344
49345cat >>$CONFIG_STATUS <<\_ACEOF
49346for ac_config_target in $ac_config_targets
49347do
49348 case "$ac_config_target" in
49349 # Handling of arguments.
ceec2216
RL
49350 "lib/wx/config/${TOOLCHAIN_FULLNAME}" ) CONFIG_FILES="$CONFIG_FILES lib/wx/config/${TOOLCHAIN_FULLNAME}:wx-config.in" ;;
49351 "lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}" ) CONFIG_FILES="$CONFIG_FILES lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}:wx-config-inplace.in" ;;
a848cd7e
SC
49352 "version-script" ) CONFIG_FILES="$CONFIG_FILES version-script" ;;
49353 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
49354 "$mk" ) CONFIG_FILES="$CONFIG_FILES $mk" ;;
5c60e845 49355 "rcdefs.h" ) CONFIG_COMMANDS="$CONFIG_COMMANDS rcdefs.h" ;;
ceec2216
RL
49356 "wx-config" ) CONFIG_COMMANDS="$CONFIG_COMMANDS wx-config" ;;
49357 "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
49358 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
49359echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
49360 { (exit 1); exit 1; }; };;
49361 esac
49362done
49363
49364# If the user did not use the arguments to specify the items to instantiate,
49365# then the envvar interface is used. Set only those that are not.
49366# We use the long form for the default assignment because of an extremely
49367# bizarre bug on SunOS 4.1.3.
49368if $ac_need_defaults; then
49369 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
49370 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
49371 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
49372fi
49373
49374# Have a temporary directory for convenience. Make it in the build tree
49375# simply because there is no reason to put it here, and in addition,
49376# creating and moving files from /tmp can sometimes cause problems.
49377# Create a temporary directory, and hook for its removal unless debugging.
49378$debug ||
49379{
49380 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
49381 trap '{ (exit 1); exit 1; }' 1 2 13 15
49382}
49383
49384# Create a (secure) tmp directory for tmp files.
49385
49386{
49387 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
49388 test -n "$tmp" && test -d "$tmp"
49389} ||
49390{
49391 tmp=./confstat$$-$RANDOM
49392 (umask 077 && mkdir $tmp)
49393} ||
49394{
49395 echo "$me: cannot create a temporary directory in ." >&2
49396 { (exit 1); exit 1; }
49397}
49398
49399_ACEOF
49400
49401cat >>$CONFIG_STATUS <<_ACEOF
49402
49403#
49404# CONFIG_FILES section.
49405#
49406
49407# No need to generate the scripts if there are no CONFIG_FILES.
49408# This happens for instance when ./config.status config.h
49409if test -n "\$CONFIG_FILES"; then
49410 # Protect against being on the right side of a sed subst in config.status.
49411 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
49412 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
49413s,@SHELL@,$SHELL,;t t
49414s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
49415s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
49416s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
49417s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
49418s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
49419s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
49420s,@exec_prefix@,$exec_prefix,;t t
49421s,@prefix@,$prefix,;t t
49422s,@program_transform_name@,$program_transform_name,;t t
49423s,@bindir@,$bindir,;t t
49424s,@sbindir@,$sbindir,;t t
49425s,@libexecdir@,$libexecdir,;t t
49426s,@datadir@,$datadir,;t t
49427s,@sysconfdir@,$sysconfdir,;t t
49428s,@sharedstatedir@,$sharedstatedir,;t t
49429s,@localstatedir@,$localstatedir,;t t
49430s,@libdir@,$libdir,;t t
49431s,@includedir@,$includedir,;t t
49432s,@oldincludedir@,$oldincludedir,;t t
49433s,@infodir@,$infodir,;t t
49434s,@mandir@,$mandir,;t t
49435s,@build_alias@,$build_alias,;t t
49436s,@host_alias@,$host_alias,;t t
49437s,@target_alias@,$target_alias,;t t
49438s,@DEFS@,$DEFS,;t t
49439s,@ECHO_C@,$ECHO_C,;t t
49440s,@ECHO_N@,$ECHO_N,;t t
49441s,@ECHO_T@,$ECHO_T,;t t
49442s,@LIBS@,$LIBS,;t t
49443s,@build@,$build,;t t
49444s,@build_cpu@,$build_cpu,;t t
49445s,@build_vendor@,$build_vendor,;t t
49446s,@build_os@,$build_os,;t t
49447s,@host@,$host,;t t
49448s,@host_cpu@,$host_cpu,;t t
49449s,@host_vendor@,$host_vendor,;t t
49450s,@host_os@,$host_os,;t t
49451s,@target@,$target,;t t
49452s,@target_cpu@,$target_cpu,;t t
49453s,@target_vendor@,$target_vendor,;t t
49454s,@target_os@,$target_os,;t t
49455s,@CC@,$CC,;t t
49456s,@CFLAGS@,$CFLAGS,;t t
49457s,@LDFLAGS@,$LDFLAGS,;t t
49458s,@CPPFLAGS@,$CPPFLAGS,;t t
49459s,@ac_ct_CC@,$ac_ct_CC,;t t
49460s,@EXEEXT@,$EXEEXT,;t t
49461s,@OBJEXT@,$OBJEXT,;t t
49462s,@CPP@,$CPP,;t t
49463s,@EGREP@,$EGREP,;t t
49464s,@CXX@,$CXX,;t t
49465s,@CXXFLAGS@,$CXXFLAGS,;t t
49466s,@ac_ct_CXX@,$ac_ct_CXX,;t t
49467s,@RANLIB@,$RANLIB,;t t
49468s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
49469s,@AR@,$AR,;t t
8c80d384 49470s,@ac_ct_AR@,$ac_ct_AR,;t t
a848cd7e
SC
49471s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
49472s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
49473s,@INSTALL_DATA@,$INSTALL_DATA,;t t
49474s,@STRIP@,$STRIP,;t t
8c80d384 49475s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
8ced02f6
DE
49476s,@WINDRES@,$WINDRES,;t t
49477s,@ac_ct_WINDRES@,$ac_ct_WINDRES,;t t
8c80d384
DE
49478s,@DLLTOOL@,$DLLTOOL,;t t
49479s,@ac_ct_DLLTOOL@,$ac_ct_DLLTOOL,;t t
a848cd7e
SC
49480s,@IF_GNU_MAKE@,$IF_GNU_MAKE,;t t
49481s,@LN_S@,$LN_S,;t t
49482s,@CXXCPP@,$CXXCPP,;t t
49483s,@subdirs@,$subdirs,;t t
49484s,@PKG_CONFIG@,$PKG_CONFIG,;t t
49485s,@GTK_CFLAGS@,$GTK_CFLAGS,;t t
49486s,@GTK_LIBS@,$GTK_LIBS,;t t
49487s,@GTK_CONFIG@,$GTK_CONFIG,;t t
a848cd7e
SC
49488s,@X_CFLAGS@,$X_CFLAGS,;t t
49489s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
49490s,@X_LIBS@,$X_LIBS,;t t
49491s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
49492s,@PANGOX_CFLAGS@,$PANGOX_CFLAGS,;t t
49493s,@PANGOX_LIBS@,$PANGOX_LIBS,;t t
d1c38808
VZ
49494s,@PANGOFT2_CFLAGS@,$PANGOFT2_CFLAGS,;t t
49495s,@PANGOFT2_LIBS@,$PANGOFT2_LIBS,;t t
a848cd7e
SC
49496s,@PANGOXFT_CFLAGS@,$PANGOXFT_CFLAGS,;t t
49497s,@PANGOXFT_LIBS@,$PANGOXFT_LIBS,;t t
8ced02f6 49498s,@REZ@,$REZ,;t t
a848cd7e
SC
49499s,@DEREZ@,$DEREZ,;t t
49500s,@SETFILE@,$SETFILE,;t t
49501s,@LIBICONV@,$LIBICONV,;t t
49502s,@EXTRALIBS_ESD@,$EXTRALIBS_ESD,;t t
49503s,@SDL_CONFIG@,$SDL_CONFIG,;t t
49504s,@SDL_CFLAGS@,$SDL_CFLAGS,;t t
49505s,@SDL_LIBS@,$SDL_LIBS,;t t
d1c38808
VZ
49506s,@LIBGNOMEPRINTUI_CFLAGS@,$LIBGNOMEPRINTUI_CFLAGS,;t t
49507s,@LIBGNOMEPRINTUI_LIBS@,$LIBGNOMEPRINTUI_LIBS,;t t
2b850ae1
RR
49508s,@GNOMEVFS_CFLAGS@,$GNOMEVFS_CFLAGS,;t t
49509s,@GNOMEVFS_LIBS@,$GNOMEVFS_LIBS,;t t
3565d135
RR
49510s,@HILDON_CFLAGS@,$HILDON_CFLAGS,;t t
49511s,@HILDON_LIBS@,$HILDON_LIBS,;t t
f10e38c4
VZ
49512s,@GST_CFLAGS@,$GST_CFLAGS,;t t
49513s,@GST_LIBS@,$GST_LIBS,;t t
a848cd7e
SC
49514s,@CORE_BASE_LIBS@,$CORE_BASE_LIBS,;t t
49515s,@CORE_GUI_LIBS@,$CORE_GUI_LIBS,;t t
49516s,@wxUSE_ZLIB@,$wxUSE_ZLIB,;t t
49517s,@wxUSE_REGEX@,$wxUSE_REGEX,;t t
49518s,@wxUSE_EXPAT@,$wxUSE_EXPAT,;t t
49519s,@wxUSE_ODBC@,$wxUSE_ODBC,;t t
49520s,@wxUSE_LIBJPEG@,$wxUSE_LIBJPEG,;t t
49521s,@wxUSE_LIBPNG@,$wxUSE_LIBPNG,;t t
49522s,@wxUSE_LIBTIFF@,$wxUSE_LIBTIFF,;t t
49523s,@VENDOR@,$VENDOR,;t t
49524s,@OFFICIAL_BUILD@,$OFFICIAL_BUILD,;t t
ceec2216
RL
49525s,@WX_FLAVOUR@,$WX_FLAVOUR,;t t
49526s,@WX_LIB_FLAVOUR@,$WX_LIB_FLAVOUR,;t t
a848cd7e
SC
49527s,@WXUNIV@,$WXUNIV,;t t
49528s,@MONOLITHIC@,$MONOLITHIC,;t t
49529s,@USE_PLUGINS@,$USE_PLUGINS,;t t
49530s,@EXTRALIBS@,$EXTRALIBS,;t t
49531s,@EXTRALIBS_XML@,$EXTRALIBS_XML,;t t
49532s,@EXTRALIBS_HTML@,$EXTRALIBS_HTML,;t t
49533s,@EXTRALIBS_ODBC@,$EXTRALIBS_ODBC,;t t
49534s,@EXTRALIBS_GUI@,$EXTRALIBS_GUI,;t t
49535s,@EXTRALIBS_OPENGL@,$EXTRALIBS_OPENGL,;t t
49536s,@EXTRALIBS_SDL@,$EXTRALIBS_SDL,;t t
49537s,@WITH_PLUGIN_SDL@,$WITH_PLUGIN_SDL,;t t
d1c38808 49538s,@EXTRALIBS_GNOMEPRINT@,$EXTRALIBS_GNOMEPRINT,;t t
2b850ae1 49539s,@EXTRALIBS_GNOMEVFS@,$EXTRALIBS_GNOMEVFS,;t t
3565d135 49540s,@EXTRALIBS_HILDON@,$EXTRALIBS_HILDON,;t t
a848cd7e
SC
49541s,@UNICODE@,$UNICODE,;t t
49542s,@BUILD@,$BUILD,;t t
49543s,@DEBUG_INFO@,$DEBUG_INFO,;t t
49544s,@DEBUG_FLAG@,$DEBUG_FLAG,;t t
a848cd7e
SC
49545s,@TOOLKIT_LOWERCASE@,$TOOLKIT_LOWERCASE,;t t
49546s,@TOOLKIT_VERSION@,$TOOLKIT_VERSION,;t t
49547s,@SAMPLES_RPATH_FLAG@,$SAMPLES_RPATH_FLAG,;t t
49548s,@SAMPLES_RPATH_POSTLINK@,$SAMPLES_RPATH_POSTLINK,;t t
49549s,@HOST_SUFFIX@,$HOST_SUFFIX,;t t
49550s,@CPPUNIT_CFLAGS@,$CPPUNIT_CFLAGS,;t t
49551s,@CPPUNIT_LIBS@,$CPPUNIT_LIBS,;t t
49552s,@SET_MAKE@,$SET_MAKE,;t t
49553s,@MAKE_SET@,$MAKE_SET,;t t
a848cd7e
SC
49554s,@NM@,$NM,;t t
49555s,@ac_ct_NM@,$ac_ct_NM,;t t
49556s,@INSTALL_DIR@,$INSTALL_DIR,;t t
49557s,@LDFLAGS_GUI@,$LDFLAGS_GUI,;t t
49558s,@PLATFORM_UNIX@,$PLATFORM_UNIX,;t t
49559s,@PLATFORM_WIN32@,$PLATFORM_WIN32,;t t
49560s,@PLATFORM_MSDOS@,$PLATFORM_MSDOS,;t t
49561s,@PLATFORM_MAC@,$PLATFORM_MAC,;t t
1e9e8aba 49562s,@PLATFORM_MACOS@,$PLATFORM_MACOS,;t t
a848cd7e
SC
49563s,@PLATFORM_MACOSX@,$PLATFORM_MACOSX,;t t
49564s,@PLATFORM_OS2@,$PLATFORM_OS2,;t t
1e9e8aba 49565s,@PLATFORM_BEOS@,$PLATFORM_BEOS,;t t
a848cd7e
SC
49566s,@SO_SUFFIX@,$SO_SUFFIX,;t t
49567s,@SO_SUFFIX_MODULE@,$SO_SUFFIX_MODULE,;t t
49568s,@DLLIMP_SUFFIX@,$DLLIMP_SUFFIX,;t t
49569s,@LIBPREFIX@,$LIBPREFIX,;t t
49570s,@LIBEXT@,$LIBEXT,;t t
49571s,@DLLPREFIX@,$DLLPREFIX,;t t
49572s,@DLLPREFIX_MODULE@,$DLLPREFIX_MODULE,;t t
810b94f0 49573s,@dlldir@,$dlldir,;t t
a848cd7e
SC
49574s,@AIX_CXX_LD@,$AIX_CXX_LD,;t t
49575s,@SHARED_LD_CC@,$SHARED_LD_CC,;t t
49576s,@SHARED_LD_CXX@,$SHARED_LD_CXX,;t t
49577s,@SHARED_LD_MODULE_CC@,$SHARED_LD_MODULE_CC,;t t
49578s,@SHARED_LD_MODULE_CXX@,$SHARED_LD_MODULE_CXX,;t t
49579s,@PIC_FLAG@,$PIC_FLAG,;t t
810b94f0 49580s,@WINDOWS_IMPLIB@,$WINDOWS_IMPLIB,;t t
a848cd7e
SC
49581s,@USE_SOVERSION@,$USE_SOVERSION,;t t
49582s,@USE_SOVERLINUX@,$USE_SOVERLINUX,;t t
49583s,@USE_SOVERSOLARIS@,$USE_SOVERSOLARIS,;t t
810b94f0 49584s,@USE_SOVERCYGWIN@,$USE_SOVERCYGWIN,;t t
a848cd7e
SC
49585s,@USE_MACVERSION@,$USE_MACVERSION,;t t
49586s,@USE_SOSYMLINKS@,$USE_SOSYMLINKS,;t t
49587s,@SONAME_FLAG@,$SONAME_FLAG,;t t
49588s,@DEPS_TRACKING@,$DEPS_TRACKING,;t t
49589s,@GCC_PCH@,$GCC_PCH,;t t
f10e38c4 49590s,@ICC_PCH@,$ICC_PCH,;t t
a848cd7e
SC
49591s,@COND_BUILD_DEBUG@,$COND_BUILD_DEBUG,;t t
49592s,@COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT@,$COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT,;t t
49593s,@COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT@,$COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT,;t t
49594s,@COND_BUILD_DEBUG_UNICODE_0@,$COND_BUILD_DEBUG_UNICODE_0,;t t
49595s,@COND_BUILD_DEBUG_UNICODE_1@,$COND_BUILD_DEBUG_UNICODE_1,;t t
49596s,@COND_BUILD_RELEASE@,$COND_BUILD_RELEASE,;t t
49597s,@COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT@,$COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT,;t t
49598s,@COND_BUILD_RELEASE_UNICODE_0@,$COND_BUILD_RELEASE_UNICODE_0,;t t
49599s,@COND_BUILD_RELEASE_UNICODE_1@,$COND_BUILD_RELEASE_UNICODE_1,;t t
49600s,@COND_DEBUG_FLAG_1@,$COND_DEBUG_FLAG_1,;t t
49601s,@COND_DEBUG_INFO_0@,$COND_DEBUG_INFO_0,;t t
49602s,@COND_DEBUG_INFO_1@,$COND_DEBUG_INFO_1,;t t
49603s,@COND_DEPS_TRACKING_0@,$COND_DEPS_TRACKING_0,;t t
49604s,@COND_DEPS_TRACKING_1@,$COND_DEPS_TRACKING_1,;t t
49605s,@COND_GCC_PCH_1@,$COND_GCC_PCH_1,;t t
f10e38c4 49606s,@COND_ICC_PCH_1@,$COND_ICC_PCH_1,;t t
a848cd7e
SC
49607s,@COND_MONOLITHIC_0@,$COND_MONOLITHIC_0,;t t
49608s,@COND_MONOLITHIC_0_SHARED_0@,$COND_MONOLITHIC_0_SHARED_0,;t t
3f60522a 49609s,@COND_MONOLITHIC_0_SHARED_0_USE_AUI_1@,$COND_MONOLITHIC_0_SHARED_0_USE_AUI_1,;t t
a848cd7e 49610s,@COND_MONOLITHIC_0_SHARED_0_USE_GUI_1@,$COND_MONOLITHIC_0_SHARED_0_USE_GUI_1,;t t
90970d69 49611s,@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 49612s,@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 49613s,@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 49614s,@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 49615s,@COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1@,$COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1,;t t
8b6682b9 49616s,@COND_MONOLITHIC_0_SHARED_0_USE_RICHTEXT_1@,$COND_MONOLITHIC_0_SHARED_0_USE_RICHTEXT_1,;t t
ceec2216 49617s,@COND_MONOLITHIC_0_SHARED_0_USE_XRC_1@,$COND_MONOLITHIC_0_SHARED_0_USE_XRC_1,;t t
a848cd7e 49618s,@COND_MONOLITHIC_0_SHARED_1@,$COND_MONOLITHIC_0_SHARED_1,;t t
3f60522a 49619s,@COND_MONOLITHIC_0_SHARED_1_USE_AUI_1@,$COND_MONOLITHIC_0_SHARED_1_USE_AUI_1,;t t
a848cd7e 49620s,@COND_MONOLITHIC_0_SHARED_1_USE_GUI_1@,$COND_MONOLITHIC_0_SHARED_1_USE_GUI_1,;t t
90970d69 49621s,@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 49622s,@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 49623s,@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 49624s,@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 49625s,@COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1@,$COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1,;t t
8b6682b9 49626s,@COND_MONOLITHIC_0_SHARED_1_USE_RICHTEXT_1@,$COND_MONOLITHIC_0_SHARED_1_USE_RICHTEXT_1,;t t
ceec2216 49627s,@COND_MONOLITHIC_0_SHARED_1_USE_XRC_1@,$COND_MONOLITHIC_0_SHARED_1_USE_XRC_1,;t t
e5efa97e 49628s,@COND_MONOLITHIC_0_USE_MEDIA_1@,$COND_MONOLITHIC_0_USE_MEDIA_1,;t t
a848cd7e
SC
49629s,@COND_MONOLITHIC_0_USE_ODBC_1@,$COND_MONOLITHIC_0_USE_ODBC_1,;t t
49630s,@COND_MONOLITHIC_1@,$COND_MONOLITHIC_1,;t t
49631s,@COND_MONOLITHIC_1_SHARED_0@,$COND_MONOLITHIC_1_SHARED_0,;t t
49632s,@COND_MONOLITHIC_1_SHARED_1@,$COND_MONOLITHIC_1_SHARED_1,;t t
49633s,@COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1@,$COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1,;t t
49634s,@COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1@,$COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1,;t t
eb730a0c 49635s,@COND_PLATFORM_MACOSX_0_USE_SOVERCYGWIN_0_USE_SOVERSION_1@,$COND_PLATFORM_MACOSX_0_USE_SOVERCYGWIN_0_USE_SOVERSION_1,;t t
a848cd7e
SC
49636s,@COND_PLATFORM_MACOSX_0_USE_SOVERSION_1@,$COND_PLATFORM_MACOSX_0_USE_SOVERSION_1,;t t
49637s,@COND_PLATFORM_MACOSX_1@,$COND_PLATFORM_MACOSX_1,;t t
a30f955f 49638s,@COND_PLATFORM_MACOSX_1_TOOLKIT_@,$COND_PLATFORM_MACOSX_1_TOOLKIT_,;t t
a848cd7e
SC
49639s,@COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA@,$COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA,;t t
49640s,@COND_PLATFORM_MACOSX_1_TOOLKIT_GTK@,$COND_PLATFORM_MACOSX_1_TOOLKIT_GTK,;t t
49641s,@COND_PLATFORM_MACOSX_1_TOOLKIT_MAC@,$COND_PLATFORM_MACOSX_1_TOOLKIT_MAC,;t t
fc480dc1 49642s,@COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1@,$COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1,;t t
1e9e8aba 49643s,@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
49644s,@COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF@,$COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF,;t t
49645s,@COND_PLATFORM_MACOSX_1_TOOLKIT_X11@,$COND_PLATFORM_MACOSX_1_TOOLKIT_X11,;t t
a848cd7e
SC
49646s,@COND_PLATFORM_MACOSX_1_USE_GUI_1@,$COND_PLATFORM_MACOSX_1_USE_GUI_1,;t t
49647s,@COND_PLATFORM_MACOSX_1_USE_SOVERSION_1@,$COND_PLATFORM_MACOSX_1_USE_SOVERSION_1,;t t
b48a2016 49648s,@COND_PLATFORM_MACOS_1@,$COND_PLATFORM_MACOS_1,;t t
083508af 49649s,@COND_PLATFORM_MAC_1@,$COND_PLATFORM_MAC_1,;t t
e5efa97e 49650s,@COND_PLATFORM_MSDOS_0@,$COND_PLATFORM_MSDOS_0,;t t
83d8eb47 49651s,@COND_PLATFORM_MSDOS_1@,$COND_PLATFORM_MSDOS_1,;t t
a848cd7e
SC
49652s,@COND_PLATFORM_OS2_1@,$COND_PLATFORM_OS2_1,;t t
49653s,@COND_PLATFORM_UNIX_0@,$COND_PLATFORM_UNIX_0,;t t
49654s,@COND_PLATFORM_UNIX_1@,$COND_PLATFORM_UNIX_1,;t t
49655s,@COND_PLATFORM_UNIX_1_USE_GUI_1@,$COND_PLATFORM_UNIX_1_USE_GUI_1,;t t
49656s,@COND_PLATFORM_UNIX_1_USE_PLUGINS_0@,$COND_PLATFORM_UNIX_1_USE_PLUGINS_0,;t t
49657s,@COND_PLATFORM_WIN32_0@,$COND_PLATFORM_WIN32_0,;t t
49658s,@COND_PLATFORM_WIN32_1@,$COND_PLATFORM_WIN32_1,;t t
49659s,@COND_SHARED_0@,$COND_SHARED_0,;t t
083508af
MW
49660s,@COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0@,$COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0,;t t
49661s,@COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0@,$COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0,;t t
49662s,@COND_SHARED_0_TOOLKIT_PM_WXUNIV_0@,$COND_SHARED_0_TOOLKIT_PM_WXUNIV_0,;t t
a848cd7e
SC
49663s,@COND_SHARED_0_USE_GUI_1_USE_OPENGL_1@,$COND_SHARED_0_USE_GUI_1_USE_OPENGL_1,;t t
49664s,@COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN@,$COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN,;t t
49665s,@COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN@,$COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN,;t t
49666s,@COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN@,$COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN,;t t
083508af 49667s,@COND_SHARED_0_USE_XRC_1@,$COND_SHARED_0_USE_XRC_1,;t t
a848cd7e
SC
49668s,@COND_SHARED_0_WXUSE_EXPAT_BUILTIN@,$COND_SHARED_0_WXUSE_EXPAT_BUILTIN,;t t
49669s,@COND_SHARED_0_WXUSE_ODBC_BUILTIN@,$COND_SHARED_0_WXUSE_ODBC_BUILTIN,;t t
49670s,@COND_SHARED_0_WXUSE_REGEX_BUILTIN@,$COND_SHARED_0_WXUSE_REGEX_BUILTIN,;t t
49671s,@COND_SHARED_0_WXUSE_ZLIB_BUILTIN@,$COND_SHARED_0_WXUSE_ZLIB_BUILTIN,;t t
49672s,@COND_SHARED_1@,$COND_SHARED_1,;t t
49673s,@COND_SHARED_1_USE_GUI_1_USE_OPENGL_1@,$COND_SHARED_1_USE_GUI_1_USE_OPENGL_1,;t t
083508af 49674s,@COND_SHARED_1_USE_XRC_1@,$COND_SHARED_1_USE_XRC_1,;t t
a30f955f 49675s,@COND_TOOLKIT_@,$COND_TOOLKIT_,;t t
a848cd7e 49676s,@COND_TOOLKIT_COCOA@,$COND_TOOLKIT_COCOA,;t t
a49baeab 49677s,@COND_TOOLKIT_COCOA_USE_GUI_1@,$COND_TOOLKIT_COCOA_USE_GUI_1,;t t
a848cd7e
SC
49678s,@COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0,;t t
49679s,@COND_TOOLKIT_GTK@,$COND_TOOLKIT_GTK,;t t
d044deea
MW
49680s,@COND_TOOLKIT_GTK_TOOLKIT_VERSION_@,$COND_TOOLKIT_GTK_TOOLKIT_VERSION_,;t t
49681s,@COND_TOOLKIT_GTK_TOOLKIT_VERSION_2@,$COND_TOOLKIT_GTK_TOOLKIT_VERSION_2,;t t
49682s,@COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1@,$COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1,;t t
49683s,@COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1_WXUNIV_0,;t t
49684s,@COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1@,$COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1,;t t
49685s,@COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1_WXUNIV_0,;t t
a848cd7e 49686s,@COND_TOOLKIT_GTK_USE_GUI_1@,$COND_TOOLKIT_GTK_USE_GUI_1,;t t
a848cd7e
SC
49687s,@COND_TOOLKIT_MAC@,$COND_TOOLKIT_MAC,;t t
49688s,@COND_TOOLKIT_MAC_USE_GUI_1@,$COND_TOOLKIT_MAC_USE_GUI_1,;t t
49689s,@COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0,;t t
49690s,@COND_TOOLKIT_MGL@,$COND_TOOLKIT_MGL,;t t
49691s,@COND_TOOLKIT_MGL_USE_GUI_1@,$COND_TOOLKIT_MGL_USE_GUI_1,;t t
49692s,@COND_TOOLKIT_MOTIF@,$COND_TOOLKIT_MOTIF,;t t
49693s,@COND_TOOLKIT_MOTIF_USE_GUI_1@,$COND_TOOLKIT_MOTIF_USE_GUI_1,;t t
49694s,@COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0,;t t
49695s,@COND_TOOLKIT_MSW@,$COND_TOOLKIT_MSW,;t t
49696s,@COND_TOOLKIT_MSW_USE_GUI_1@,$COND_TOOLKIT_MSW_USE_GUI_1,;t t
49697s,@COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0,;t t
0ee4059d 49698s,@COND_TOOLKIT_MSW_WXUNIV_0@,$COND_TOOLKIT_MSW_WXUNIV_0,;t t
a848cd7e
SC
49699s,@COND_TOOLKIT_PM@,$COND_TOOLKIT_PM,;t t
49700s,@COND_TOOLKIT_PM_USE_GUI_1@,$COND_TOOLKIT_PM_USE_GUI_1,;t t
49701s,@COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0,;t t
3fd9c298
DE
49702s,@COND_TOOLKIT_WINCE@,$COND_TOOLKIT_WINCE,;t t
49703s,@COND_TOOLKIT_WINCE_USE_GUI_1@,$COND_TOOLKIT_WINCE_USE_GUI_1,;t t
49704s,@COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0,;t t
0ee4059d 49705s,@COND_TOOLKIT_WINCE_WXUNIV_0@,$COND_TOOLKIT_WINCE_WXUNIV_0,;t t
a848cd7e
SC
49706s,@COND_TOOLKIT_X11@,$COND_TOOLKIT_X11,;t t
49707s,@COND_TOOLKIT_X11_USE_GUI_1@,$COND_TOOLKIT_X11_USE_GUI_1,;t t
49708s,@COND_UNICODE_1@,$COND_UNICODE_1,;t t
49709s,@COND_USE_EXCEPTIONS_0@,$COND_USE_EXCEPTIONS_0,;t t
49710s,@COND_USE_EXCEPTIONS_1@,$COND_USE_EXCEPTIONS_1,;t t
49711s,@COND_USE_GUI_0@,$COND_USE_GUI_0,;t t
49712s,@COND_USE_GUI_1@,$COND_USE_GUI_1,;t t
49713s,@COND_USE_GUI_1_WXUNIV_0@,$COND_USE_GUI_1_WXUNIV_0,;t t
49714s,@COND_USE_GUI_1_WXUNIV_1@,$COND_USE_GUI_1_WXUNIV_1,;t t
49715s,@COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN@,$COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN,;t t
49716s,@COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN@,$COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN,;t t
49717s,@COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN@,$COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN,;t t
083508af
MW
49718s,@COND_USE_ODBC_1@,$COND_USE_ODBC_1,;t t
49719s,@COND_USE_OPENGL_1@,$COND_USE_OPENGL_1,;t t
f10e38c4 49720s,@COND_USE_PCH_1@,$COND_USE_PCH_1,;t t
a848cd7e 49721s,@COND_USE_PLUGINS_0@,$COND_USE_PLUGINS_0,;t t
0b78747f
MW
49722s,@COND_USE_RTTI_0@,$COND_USE_RTTI_0,;t t
49723s,@COND_USE_RTTI_1@,$COND_USE_RTTI_1,;t t
a848cd7e 49724s,@COND_USE_SOSYMLINKS_1@,$COND_USE_SOSYMLINKS_1,;t t
eb730a0c 49725s,@COND_USE_SOVERCYGWIN_1_USE_SOVERSION_1@,$COND_USE_SOVERCYGWIN_1_USE_SOVERSION_1,;t t
a848cd7e
SC
49726s,@COND_USE_SOVERLINUX_1@,$COND_USE_SOVERLINUX_1,;t t
49727s,@COND_USE_SOVERSION_0@,$COND_USE_SOVERSION_0,;t t
49728s,@COND_USE_SOVERSOLARIS_1@,$COND_USE_SOVERSOLARIS_1,;t t
0b78747f
MW
49729s,@COND_USE_THREADS_0@,$COND_USE_THREADS_0,;t t
49730s,@COND_USE_THREADS_1@,$COND_USE_THREADS_1,;t t
a13a7f89 49731s,@COND_USE_XRC_1@,$COND_USE_XRC_1,;t t
eb730a0c 49732s,@COND_WINDOWS_IMPLIB_1@,$COND_WINDOWS_IMPLIB_1,;t t
a848cd7e 49733s,@COND_WITH_PLUGIN_SDL_1@,$COND_WITH_PLUGIN_SDL_1,;t t
1e6eb025 49734s,@COND_WXUNIV_0@,$COND_WXUNIV_0,;t t
a848cd7e
SC
49735s,@COND_WXUNIV_1@,$COND_WXUNIV_1,;t t
49736s,@COND_WXUSE_EXPAT_BUILTIN@,$COND_WXUSE_EXPAT_BUILTIN,;t t
49737s,@COND_WXUSE_LIBJPEG_BUILTIN@,$COND_WXUSE_LIBJPEG_BUILTIN,;t t
49738s,@COND_WXUSE_LIBPNG_BUILTIN@,$COND_WXUSE_LIBPNG_BUILTIN,;t t
49739s,@COND_WXUSE_LIBTIFF_BUILTIN@,$COND_WXUSE_LIBTIFF_BUILTIN,;t t
49740s,@COND_WXUSE_ODBC_BUILTIN@,$COND_WXUSE_ODBC_BUILTIN,;t t
49741s,@COND_WXUSE_REGEX_BUILTIN@,$COND_WXUSE_REGEX_BUILTIN,;t t
49742s,@COND_WXUSE_ZLIB_BUILTIN@,$COND_WXUSE_ZLIB_BUILTIN,;t t
ceec2216 49743s,@SHARED@,$SHARED,;t t
a848cd7e
SC
49744s,@WX_LIBRARY_BASENAME_NOGUI@,$WX_LIBRARY_BASENAME_NOGUI,;t t
49745s,@WX_LIBRARY_BASENAME_GUI@,$WX_LIBRARY_BASENAME_GUI,;t t
a848cd7e
SC
49746s,@USE_GUI@,$USE_GUI,;t t
49747s,@AFMINSTALL@,$AFMINSTALL,;t t
49748s,@WIN32INSTALL@,$WIN32INSTALL,;t t
49749s,@TOOLKIT@,$TOOLKIT,;t t
49750s,@TOOLKIT_DIR@,$TOOLKIT_DIR,;t t
a848cd7e 49751s,@TOOLCHAIN_NAME@,$TOOLCHAIN_NAME,;t t
ceec2216 49752s,@TOOLCHAIN_FULLNAME@,$TOOLCHAIN_FULLNAME,;t t
a848cd7e 49753s,@cross_compiling@,$cross_compiling,;t t
ceec2216
RL
49754s,@WIDGET_SET@,$WIDGET_SET,;t t
49755s,@WX_RELEASE@,$WX_RELEASE,;t t
49756s,@WX_VERSION@,$WX_VERSION,;t t
49757s,@WX_SUBVERSION@,$WX_SUBVERSION,;t t
49758s,@WX_CHARTYPE@,$WX_CHARTYPE,;t t
49759s,@WX_DEBUGTYPE@,$WX_DEBUGTYPE,;t t
5ff751d6
VZ
49760s,@WXCONFIG_CPPFLAGS@,$WXCONFIG_CPPFLAGS,;t t
49761s,@WXCONFIG_CFLAGS@,$WXCONFIG_CFLAGS,;t t
49762s,@WXCONFIG_CXXFLAGS@,$WXCONFIG_CXXFLAGS,;t t
49763s,@WXCONFIG_LIBS@,$WXCONFIG_LIBS,;t t
a848cd7e
SC
49764s,@WXCONFIG_RPATH@,$WXCONFIG_RPATH,;t t
49765s,@WXCONFIG_LDFLAGS_GUI@,$WXCONFIG_LDFLAGS_GUI,;t t
004ee6da 49766s,@WXCONFIG_RESFLAGS@,$WXCONFIG_RESFLAGS,;t t
ceec2216 49767s,@EXE_LINKER@,$EXE_LINKER,;t t
a848cd7e 49768s,@GUIDIST@,$GUIDIST,;t t
a848cd7e
SC
49769s,@DISTDIR@,$DISTDIR,;t t
49770s,@SAMPLES_SUBDIRS@,$SAMPLES_SUBDIRS,;t t
49771s,@LDFLAGS_GL@,$LDFLAGS_GL,;t t
a848cd7e
SC
49772s,@OPENGL_LIBS@,$OPENGL_LIBS,;t t
49773s,@DMALLOC_LIBS@,$DMALLOC_LIBS,;t t
49774s,@WX_VERSION_TAG@,$WX_VERSION_TAG,;t t
004ee6da 49775s,@RESCOMP@,$RESCOMP,;t t
a848cd7e
SC
49776s,@RESFLAGS@,$RESFLAGS,;t t
49777s,@RESPROGRAMOBJ@,$RESPROGRAMOBJ,;t t
49778s,@WX_RESOURCES_MACOSX_ASCII@,$WX_RESOURCES_MACOSX_ASCII,;t t
49779s,@WX_RESOURCES_MACOSX_DATA@,$WX_RESOURCES_MACOSX_DATA,;t t
49780s,@LIBWXMACRES@,$LIBWXMACRES,;t t
8ced02f6 49781s,@POSTLINK_COMMAND@,$POSTLINK_COMMAND,;t t
a848cd7e 49782s,@MACSETFILE@,$MACSETFILE,;t t
a848cd7e 49783s,@GCC@,$GCC,;t t
a848cd7e
SC
49784s,@CPPUNIT_CONFIG@,$CPPUNIT_CONFIG,;t t
49785s,@LIBOBJS@,$LIBOBJS,;t t
49786s,@LTLIBOBJS@,$LTLIBOBJS,;t t
49787CEOF
49788
49789_ACEOF
49790
49791 cat >>$CONFIG_STATUS <<\_ACEOF
49792 # Split the substitutions into bite-sized pieces for seds with
49793 # small command number limits, like on Digital OSF/1 and HP-UX.
49794 ac_max_sed_lines=48
49795 ac_sed_frag=1 # Number of current file.
49796 ac_beg=1 # First line for current file.
49797 ac_end=$ac_max_sed_lines # Line after last line for current file.
49798 ac_more_lines=:
49799 ac_sed_cmds=
49800 while $ac_more_lines; do
49801 if test $ac_beg -gt 1; then
49802 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
49803 else
49804 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
49805 fi
49806 if test ! -s $tmp/subs.frag; then
49807 ac_more_lines=false
49808 else
49809 # The purpose of the label and of the branching condition is to
49810 # speed up the sed processing (if there are no `@' at all, there
49811 # is no need to browse any of the substitutions).
49812 # These are the two extra sed commands mentioned above.
49813 (echo ':t
49814 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
49815 if test -z "$ac_sed_cmds"; then
ac1cb8d3 49816 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
a848cd7e 49817 else
ac1cb8d3 49818 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
a848cd7e
SC
49819 fi
49820 ac_sed_frag=`expr $ac_sed_frag + 1`
49821 ac_beg=$ac_end
49822 ac_end=`expr $ac_end + $ac_max_sed_lines`
49823 fi
49824 done
49825 if test -z "$ac_sed_cmds"; then
49826 ac_sed_cmds=cat
49827 fi
49828fi # test -n "$CONFIG_FILES"
49829
49830_ACEOF
49831cat >>$CONFIG_STATUS <<\_ACEOF
49832for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
49833 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
49834 case $ac_file in
49835 - | *:- | *:-:* ) # input from stdin
ac1cb8d3
VS
49836 cat >$tmp/stdin
49837 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
49838 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
a848cd7e 49839 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
ac1cb8d3 49840 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
a848cd7e
SC
49841 * ) ac_file_in=$ac_file.in ;;
49842 esac
49843
49844 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
49845 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
49846$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
49847 X"$ac_file" : 'X\(//\)[^/]' \| \
49848 X"$ac_file" : 'X\(//\)$' \| \
49849 X"$ac_file" : 'X\(/\)' \| \
49850 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
49851echo X"$ac_file" |
49852 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
49853 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
49854 /^X\(\/\/\)$/{ s//\1/; q; }
49855 /^X\(\/\).*/{ s//\1/; q; }
49856 s/.*/./; q'`
49857 { if $as_mkdir_p; then
49858 mkdir -p "$ac_dir"
49859 else
49860 as_dir="$ac_dir"
49861 as_dirs=
49862 while test ! -d "$as_dir"; do
49863 as_dirs="$as_dir $as_dirs"
49864 as_dir=`(dirname "$as_dir") 2>/dev/null ||
49865$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
49866 X"$as_dir" : 'X\(//\)[^/]' \| \
49867 X"$as_dir" : 'X\(//\)$' \| \
49868 X"$as_dir" : 'X\(/\)' \| \
49869 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
49870echo X"$as_dir" |
49871 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
49872 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
49873 /^X\(\/\/\)$/{ s//\1/; q; }
49874 /^X\(\/\).*/{ s//\1/; q; }
49875 s/.*/./; q'`
49876 done
49877 test ! -n "$as_dirs" || mkdir $as_dirs
49878 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
49879echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
49880 { (exit 1); exit 1; }; }; }
49881
49882 ac_builddir=.
49883
49884if test "$ac_dir" != .; then
49885 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
49886 # A "../" for each directory in $ac_dir_suffix.
49887 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
49888else
49889 ac_dir_suffix= ac_top_builddir=
49890fi
49891
49892case $srcdir in
49893 .) # No --srcdir option. We are building in place.
49894 ac_srcdir=.
49895 if test -z "$ac_top_builddir"; then
49896 ac_top_srcdir=.
49897 else
49898 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
49899 fi ;;
49900 [\\/]* | ?:[\\/]* ) # Absolute path.
49901 ac_srcdir=$srcdir$ac_dir_suffix;
49902 ac_top_srcdir=$srcdir ;;
49903 *) # Relative path.
49904 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
49905 ac_top_srcdir=$ac_top_builddir$srcdir ;;
49906esac
ac1cb8d3
VS
49907
49908# Do not use `cd foo && pwd` to compute absolute paths, because
49909# the directories may not exist.
49910case `pwd` in
49911.) ac_abs_builddir="$ac_dir";;
49912*)
49913 case "$ac_dir" in
49914 .) ac_abs_builddir=`pwd`;;
49915 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
49916 *) ac_abs_builddir=`pwd`/"$ac_dir";;
49917 esac;;
49918esac
49919case $ac_abs_builddir in
49920.) ac_abs_top_builddir=${ac_top_builddir}.;;
49921*)
49922 case ${ac_top_builddir}. in
49923 .) ac_abs_top_builddir=$ac_abs_builddir;;
49924 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
49925 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
49926 esac;;
49927esac
49928case $ac_abs_builddir in
49929.) ac_abs_srcdir=$ac_srcdir;;
49930*)
49931 case $ac_srcdir in
49932 .) ac_abs_srcdir=$ac_abs_builddir;;
49933 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
49934 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
49935 esac;;
49936esac
49937case $ac_abs_builddir in
49938.) ac_abs_top_srcdir=$ac_top_srcdir;;
49939*)
49940 case $ac_top_srcdir in
49941 .) ac_abs_top_srcdir=$ac_abs_builddir;;
49942 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
49943 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
49944 esac;;
49945esac
a848cd7e
SC
49946
49947
49948 case $INSTALL in
49949 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
49950 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
49951 esac
49952
a848cd7e
SC
49953 # Let's still pretend it is `configure' which instantiates (i.e., don't
49954 # use $as_me), people would be surprised to read:
49955 # /* config.h. Generated by config.status. */
49956 if test x"$ac_file" = x-; then
49957 configure_input=
49958 else
49959 configure_input="$ac_file. "
49960 fi
49961 configure_input=$configure_input"Generated from `echo $ac_file_in |
ac1cb8d3 49962 sed 's,.*/,,'` by configure."
a848cd7e
SC
49963
49964 # First look for the input files in the build tree, otherwise in the
49965 # src tree.
49966 ac_file_inputs=`IFS=:
49967 for f in $ac_file_in; do
49968 case $f in
49969 -) echo $tmp/stdin ;;
49970 [\\/$]*)
ac1cb8d3
VS
49971 # Absolute (can't be DOS-style, as IFS=:)
49972 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
a848cd7e
SC
49973echo "$as_me: error: cannot find input file: $f" >&2;}
49974 { (exit 1); exit 1; }; }
ac1cb8d3 49975 echo "$f";;
a848cd7e 49976 *) # Relative
ac1cb8d3
VS
49977 if test -f "$f"; then
49978 # Build tree
49979 echo "$f"
49980 elif test -f "$srcdir/$f"; then
49981 # Source tree
49982 echo "$srcdir/$f"
49983 else
49984 # /dev/null tree
49985 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
a848cd7e
SC
49986echo "$as_me: error: cannot find input file: $f" >&2;}
49987 { (exit 1); exit 1; }; }
ac1cb8d3 49988 fi;;
a848cd7e
SC
49989 esac
49990 done` || { (exit 1); exit 1; }
c9a66001
VZ
49991
49992 if test x"$ac_file" != x-; then
49993 { echo "$as_me:$LINENO: creating $ac_file" >&5
49994echo "$as_me: creating $ac_file" >&6;}
49995 rm -f "$ac_file"
49996 fi
a848cd7e
SC
49997_ACEOF
49998cat >>$CONFIG_STATUS <<_ACEOF
49999 sed "$ac_vpsub
50000$extrasub
50001_ACEOF
50002cat >>$CONFIG_STATUS <<\_ACEOF
50003:t
50004/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
50005s,@configure_input@,$configure_input,;t t
50006s,@srcdir@,$ac_srcdir,;t t
50007s,@abs_srcdir@,$ac_abs_srcdir,;t t
50008s,@top_srcdir@,$ac_top_srcdir,;t t
50009s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
50010s,@builddir@,$ac_builddir,;t t
50011s,@abs_builddir@,$ac_abs_builddir,;t t
50012s,@top_builddir@,$ac_top_builddir,;t t
50013s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
50014s,@INSTALL@,$ac_INSTALL,;t t
50015" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
50016 rm -f $tmp/stdin
50017 if test x"$ac_file" != x-; then
50018 mv $tmp/out $ac_file
50019 else
50020 cat $tmp/out
50021 rm -f $tmp/out
50022 fi
50023
ceec2216
RL
50024 # Run the commands associated with the file.
50025 case $ac_file in
50026 lib/wx/config/${TOOLCHAIN_FULLNAME} ) chmod +x lib/wx/config/${TOOLCHAIN_FULLNAME} ;;
50027 lib/wx/config/inplace-${TOOLCHAIN_FULLNAME} ) chmod +x lib/wx/config/inplace-${TOOLCHAIN_FULLNAME} ;;
50028 esac
a848cd7e
SC
50029done
50030_ACEOF
50031cat >>$CONFIG_STATUS <<\_ACEOF
50032
50033#
50034# CONFIG_HEADER section.
50035#
50036
50037# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
50038# NAME is the cpp macro being defined and VALUE is the value it is being given.
50039#
50040# ac_d sets the value in "#define NAME VALUE" lines.
ac1cb8d3
VS
50041ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
50042ac_dB='[ ].*$,\1#\2'
a848cd7e
SC
50043ac_dC=' '
50044ac_dD=',;t'
50045# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
ac1cb8d3 50046ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
a848cd7e
SC
50047ac_uB='$,\1#\2define\3'
50048ac_uC=' '
50049ac_uD=',;t'
50050
50051for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
50052 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
50053 case $ac_file in
50054 - | *:- | *:-:* ) # input from stdin
ac1cb8d3
VS
50055 cat >$tmp/stdin
50056 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
50057 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
a848cd7e 50058 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
ac1cb8d3 50059 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
a848cd7e
SC
50060 * ) ac_file_in=$ac_file.in ;;
50061 esac
50062
50063 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
50064echo "$as_me: creating $ac_file" >&6;}
50065
50066 # First look for the input files in the build tree, otherwise in the
50067 # src tree.
50068 ac_file_inputs=`IFS=:
50069 for f in $ac_file_in; do
50070 case $f in
50071 -) echo $tmp/stdin ;;
50072 [\\/$]*)
ac1cb8d3
VS
50073 # Absolute (can't be DOS-style, as IFS=:)
50074 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
a848cd7e
SC
50075echo "$as_me: error: cannot find input file: $f" >&2;}
50076 { (exit 1); exit 1; }; }
ac1cb8d3
VS
50077 # Do quote $f, to prevent DOS paths from being IFS'd.
50078 echo "$f";;
a848cd7e 50079 *) # Relative
ac1cb8d3
VS
50080 if test -f "$f"; then
50081 # Build tree
50082 echo "$f"
50083 elif test -f "$srcdir/$f"; then
50084 # Source tree
50085 echo "$srcdir/$f"
50086 else
50087 # /dev/null tree
50088 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
a848cd7e
SC
50089echo "$as_me: error: cannot find input file: $f" >&2;}
50090 { (exit 1); exit 1; }; }
ac1cb8d3 50091 fi;;
a848cd7e
SC
50092 esac
50093 done` || { (exit 1); exit 1; }
50094 # Remove the trailing spaces.
ac1cb8d3 50095 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
a848cd7e
SC
50096
50097_ACEOF
50098
50099# Transform confdefs.h into two sed scripts, `conftest.defines' and
50100# `conftest.undefs', that substitutes the proper values into
50101# config.h.in to produce config.h. The first handles `#define'
50102# templates, and the second `#undef' templates.
50103# And first: Protect against being on the right side of a sed subst in
50104# config.status. Protect against being in an unquoted here document
50105# in config.status.
50106rm -f conftest.defines conftest.undefs
50107# Using a here document instead of a string reduces the quoting nightmare.
50108# Putting comments in sed scripts is not portable.
50109#
50110# `end' is used to avoid that the second main sed command (meant for
50111# 0-ary CPP macros) applies to n-ary macro definitions.
50112# See the Autoconf documentation for `clear'.
50113cat >confdef2sed.sed <<\_ACEOF
50114s/[\\&,]/\\&/g
50115s,[\\$`],\\&,g
50116t clear
50117: clear
ac1cb8d3 50118s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
a848cd7e 50119t end
ac1cb8d3 50120s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
a848cd7e
SC
50121: end
50122_ACEOF
50123# If some macros were called several times there might be several times
50124# the same #defines, which is useless. Nevertheless, we may not want to
50125# sort them, since we want the *last* AC-DEFINE to be honored.
50126uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
50127sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
50128rm -f confdef2sed.sed
50129
50130# This sed command replaces #undef with comments. This is necessary, for
50131# example, in the case of _POSIX_SOURCE, which is predefined and required
50132# on some systems where configure will not decide to define it.
50133cat >>conftest.undefs <<\_ACEOF
ac1cb8d3 50134s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
a848cd7e
SC
50135_ACEOF
50136
50137# Break up conftest.defines because some shells have a limit on the size
50138# of here documents, and old seds have small limits too (100 cmds).
50139echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
ac1cb8d3 50140echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
a848cd7e
SC
50141echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
50142echo ' :' >>$CONFIG_STATUS
50143rm -f conftest.tail
50144while grep . conftest.defines >/dev/null
50145do
50146 # Write a limited-size here document to $tmp/defines.sed.
50147 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
50148 # Speed up: don't consider the non `#define' lines.
ac1cb8d3 50149 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
a848cd7e
SC
50150 # Work around the forget-to-reset-the-flag bug.
50151 echo 't clr' >>$CONFIG_STATUS
50152 echo ': clr' >>$CONFIG_STATUS
50153 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
50154 echo 'CEOF
50155 sed -f $tmp/defines.sed $tmp/in >$tmp/out
50156 rm -f $tmp/in
50157 mv $tmp/out $tmp/in
50158' >>$CONFIG_STATUS
50159 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
50160 rm -f conftest.defines
50161 mv conftest.tail conftest.defines
50162done
50163rm -f conftest.defines
50164echo ' fi # grep' >>$CONFIG_STATUS
50165echo >>$CONFIG_STATUS
50166
50167# Break up conftest.undefs because some shells have a limit on the size
50168# of here documents, and old seds have small limits too (100 cmds).
50169echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
50170rm -f conftest.tail
50171while grep . conftest.undefs >/dev/null
50172do
50173 # Write a limited-size here document to $tmp/undefs.sed.
50174 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
50175 # Speed up: don't consider the non `#undef'
ac1cb8d3 50176 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
a848cd7e
SC
50177 # Work around the forget-to-reset-the-flag bug.
50178 echo 't clr' >>$CONFIG_STATUS
50179 echo ': clr' >>$CONFIG_STATUS
50180 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
50181 echo 'CEOF
50182 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
50183 rm -f $tmp/in
50184 mv $tmp/out $tmp/in
50185' >>$CONFIG_STATUS
50186 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
50187 rm -f conftest.undefs
50188 mv conftest.tail conftest.undefs
50189done
50190rm -f conftest.undefs
50191
50192cat >>$CONFIG_STATUS <<\_ACEOF
50193 # Let's still pretend it is `configure' which instantiates (i.e., don't
50194 # use $as_me), people would be surprised to read:
50195 # /* config.h. Generated by config.status. */
50196 if test x"$ac_file" = x-; then
50197 echo "/* Generated by configure. */" >$tmp/config.h
50198 else
50199 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
50200 fi
50201 cat $tmp/in >>$tmp/config.h
50202 rm -f $tmp/in
50203 if test x"$ac_file" != x-; then
50204 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
50205 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
50206echo "$as_me: $ac_file is unchanged" >&6;}
50207 else
50208 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
50209$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
50210 X"$ac_file" : 'X\(//\)[^/]' \| \
50211 X"$ac_file" : 'X\(//\)$' \| \
50212 X"$ac_file" : 'X\(/\)' \| \
50213 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
50214echo X"$ac_file" |
50215 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
50216 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
50217 /^X\(\/\/\)$/{ s//\1/; q; }
50218 /^X\(\/\).*/{ s//\1/; q; }
50219 s/.*/./; q'`
50220 { if $as_mkdir_p; then
50221 mkdir -p "$ac_dir"
50222 else
50223 as_dir="$ac_dir"
50224 as_dirs=
50225 while test ! -d "$as_dir"; do
50226 as_dirs="$as_dir $as_dirs"
50227 as_dir=`(dirname "$as_dir") 2>/dev/null ||
50228$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
50229 X"$as_dir" : 'X\(//\)[^/]' \| \
50230 X"$as_dir" : 'X\(//\)$' \| \
50231 X"$as_dir" : 'X\(/\)' \| \
50232 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
50233echo X"$as_dir" |
50234 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
50235 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
50236 /^X\(\/\/\)$/{ s//\1/; q; }
50237 /^X\(\/\).*/{ s//\1/; q; }
50238 s/.*/./; q'`
50239 done
50240 test ! -n "$as_dirs" || mkdir $as_dirs
50241 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
50242echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
50243 { (exit 1); exit 1; }; }; }
50244
50245 rm -f $ac_file
50246 mv $tmp/config.h $ac_file
50247 fi
50248 else
50249 cat $tmp/config.h
50250 rm -f $tmp/config.h
50251 fi
50252done
50253_ACEOF
50254cat >>$CONFIG_STATUS <<\_ACEOF
50255
50256#
50257# CONFIG_COMMANDS section.
50258#
50259for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
50260 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
50261 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
50262 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
50263$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
50264 X"$ac_dest" : 'X\(//\)[^/]' \| \
50265 X"$ac_dest" : 'X\(//\)$' \| \
50266 X"$ac_dest" : 'X\(/\)' \| \
50267 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
50268echo X"$ac_dest" |
50269 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
50270 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
50271 /^X\(\/\/\)$/{ s//\1/; q; }
50272 /^X\(\/\).*/{ s//\1/; q; }
50273 s/.*/./; q'`
ac1cb8d3
VS
50274 { if $as_mkdir_p; then
50275 mkdir -p "$ac_dir"
50276 else
50277 as_dir="$ac_dir"
50278 as_dirs=
50279 while test ! -d "$as_dir"; do
50280 as_dirs="$as_dir $as_dirs"
50281 as_dir=`(dirname "$as_dir") 2>/dev/null ||
50282$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
50283 X"$as_dir" : 'X\(//\)[^/]' \| \
50284 X"$as_dir" : 'X\(//\)$' \| \
50285 X"$as_dir" : 'X\(/\)' \| \
50286 . : '\(.\)' 2>/dev/null ||
50287echo X"$as_dir" |
50288 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
50289 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
50290 /^X\(\/\/\)$/{ s//\1/; q; }
50291 /^X\(\/\).*/{ s//\1/; q; }
50292 s/.*/./; q'`
50293 done
50294 test ! -n "$as_dirs" || mkdir $as_dirs
50295 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
50296echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
50297 { (exit 1); exit 1; }; }; }
50298
a848cd7e
SC
50299 ac_builddir=.
50300
50301if test "$ac_dir" != .; then
50302 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
50303 # A "../" for each directory in $ac_dir_suffix.
50304 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
50305else
50306 ac_dir_suffix= ac_top_builddir=
50307fi
50308
50309case $srcdir in
50310 .) # No --srcdir option. We are building in place.
50311 ac_srcdir=.
50312 if test -z "$ac_top_builddir"; then
50313 ac_top_srcdir=.
50314 else
50315 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
50316 fi ;;
50317 [\\/]* | ?:[\\/]* ) # Absolute path.
50318 ac_srcdir=$srcdir$ac_dir_suffix;
50319 ac_top_srcdir=$srcdir ;;
50320 *) # Relative path.
50321 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
50322 ac_top_srcdir=$ac_top_builddir$srcdir ;;
50323esac
ac1cb8d3
VS
50324
50325# Do not use `cd foo && pwd` to compute absolute paths, because
50326# the directories may not exist.
50327case `pwd` in
50328.) ac_abs_builddir="$ac_dir";;
50329*)
50330 case "$ac_dir" in
50331 .) ac_abs_builddir=`pwd`;;
50332 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
50333 *) ac_abs_builddir=`pwd`/"$ac_dir";;
50334 esac;;
50335esac
50336case $ac_abs_builddir in
50337.) ac_abs_top_builddir=${ac_top_builddir}.;;
50338*)
50339 case ${ac_top_builddir}. in
50340 .) ac_abs_top_builddir=$ac_abs_builddir;;
50341 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
50342 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
50343 esac;;
50344esac
50345case $ac_abs_builddir in
50346.) ac_abs_srcdir=$ac_srcdir;;
50347*)
50348 case $ac_srcdir in
50349 .) ac_abs_srcdir=$ac_abs_builddir;;
50350 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
50351 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
50352 esac;;
50353esac
50354case $ac_abs_builddir in
50355.) ac_abs_top_srcdir=$ac_top_srcdir;;
50356*)
50357 case $ac_top_srcdir in
50358 .) ac_abs_top_srcdir=$ac_abs_builddir;;
50359 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
50360 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
50361 esac;;
50362esac
a848cd7e
SC
50363
50364
50365 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
50366echo "$as_me: executing $ac_dest commands" >&6;}
50367 case $ac_dest in
5c60e845
MW
50368 rcdefs.h )
50369 mkdir -p $outdir &&
50370 $CPP $infile | sed 's/^# *[1-9].*//;s/^ *//;/./,/^$/!d' > $outdir/rcdefs.h
50371 ;;
ceec2216
RL
50372 wx-config ) rm -f wx-config
50373 ${LN_S} lib/wx/config/inplace-${TOOLCHAIN_FULLNAME} wx-config
50374 ;;
a848cd7e
SC
50375 esac
50376done
50377_ACEOF
50378
50379cat >>$CONFIG_STATUS <<\_ACEOF
50380
50381{ (exit 0); exit 0; }
50382_ACEOF
50383chmod +x $CONFIG_STATUS
50384ac_clean_files=$ac_clean_files_save
50385
50386
50387# configure is writing to config.log, and then calls config.status.
50388# config.status does its own redirection, appending to config.log.
50389# Unfortunately, on DOS this fails, as config.log is still kept open
50390# by configure, so config.status won't be able to write to it; its
50391# output is simply discarded. So we exec the FD to /dev/null,
50392# effectively closing config.log, so it can be properly (re)opened and
50393# appended to by config.status. When coming back to configure, we
50394# need to make the FD available again.
50395if test "$no_create" != yes; then
50396 ac_cs_success=:
50397 ac_config_status_args=
50398 test "$silent" = yes &&
50399 ac_config_status_args="$ac_config_status_args --quiet"
50400 exec 5>/dev/null
50401 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
50402 exec 5>>config.log
50403 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
50404 # would make configure fail if this is the last instruction.
50405 $ac_cs_success || { (exit 1); exit 1; }
50406fi
50407
50408#
50409# CONFIG_SUBDIRS section.
50410#
50411if test "$no_recursion" != yes; then
50412
50413 # Remove --cache-file and --srcdir arguments so they do not pile up.
50414 ac_sub_configure_args=
50415 ac_prev=
50416 for ac_arg in $ac_configure_args; do
50417 if test -n "$ac_prev"; then
50418 ac_prev=
50419 continue
50420 fi
50421 case $ac_arg in
50422 -cache-file | --cache-file | --cache-fil | --cache-fi \
50423 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
50424 ac_prev=cache_file ;;
50425 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
50426 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
50427 | --c=*)
50428 ;;
50429 --config-cache | -C)
50430 ;;
50431 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
50432 ac_prev=srcdir ;;
50433 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
50434 ;;
50435 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
50436 ac_prev=prefix ;;
50437 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
50438 ;;
50439 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
50440 esac
50441 done
50442
50443 # Always prepend --prefix to ensure using the same prefix
50444 # in subdir configurations.
50445 ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
50446
50447 ac_popdir=`pwd`
50448 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
50449
50450 # Do not complain, so a configure script can configure whichever
50451 # parts of a large source tree are present.
50452 test -d $srcdir/$ac_dir || continue
50453
50454 { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
50455echo "$as_me: configuring in $ac_dir" >&6;}
50456 { if $as_mkdir_p; then
50457 mkdir -p "$ac_dir"
50458 else
50459 as_dir="$ac_dir"
50460 as_dirs=
50461 while test ! -d "$as_dir"; do
50462 as_dirs="$as_dir $as_dirs"
50463 as_dir=`(dirname "$as_dir") 2>/dev/null ||
50464$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
50465 X"$as_dir" : 'X\(//\)[^/]' \| \
50466 X"$as_dir" : 'X\(//\)$' \| \
50467 X"$as_dir" : 'X\(/\)' \| \
50468 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
50469echo X"$as_dir" |
50470 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
50471 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
50472 /^X\(\/\/\)$/{ s//\1/; q; }
50473 /^X\(\/\).*/{ s//\1/; q; }
50474 s/.*/./; q'`
50475 done
50476 test ! -n "$as_dirs" || mkdir $as_dirs
50477 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
50478echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
50479 { (exit 1); exit 1; }; }; }
50480
50481 ac_builddir=.
50482
50483if test "$ac_dir" != .; then
50484 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
50485 # A "../" for each directory in $ac_dir_suffix.
50486 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
50487else
50488 ac_dir_suffix= ac_top_builddir=
50489fi
50490
50491case $srcdir in
50492 .) # No --srcdir option. We are building in place.
50493 ac_srcdir=.
50494 if test -z "$ac_top_builddir"; then
50495 ac_top_srcdir=.
50496 else
50497 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
50498 fi ;;
50499 [\\/]* | ?:[\\/]* ) # Absolute path.
50500 ac_srcdir=$srcdir$ac_dir_suffix;
50501 ac_top_srcdir=$srcdir ;;
50502 *) # Relative path.
50503 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
50504 ac_top_srcdir=$ac_top_builddir$srcdir ;;
50505esac
ac1cb8d3
VS
50506
50507# Do not use `cd foo && pwd` to compute absolute paths, because
50508# the directories may not exist.
50509case `pwd` in
50510.) ac_abs_builddir="$ac_dir";;
50511*)
50512 case "$ac_dir" in
50513 .) ac_abs_builddir=`pwd`;;
50514 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
50515 *) ac_abs_builddir=`pwd`/"$ac_dir";;
50516 esac;;
50517esac
50518case $ac_abs_builddir in
50519.) ac_abs_top_builddir=${ac_top_builddir}.;;
50520*)
50521 case ${ac_top_builddir}. in
50522 .) ac_abs_top_builddir=$ac_abs_builddir;;
50523 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
50524 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
50525 esac;;
50526esac
50527case $ac_abs_builddir in
50528.) ac_abs_srcdir=$ac_srcdir;;
50529*)
50530 case $ac_srcdir in
50531 .) ac_abs_srcdir=$ac_abs_builddir;;
50532 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
50533 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
50534 esac;;
50535esac
50536case $ac_abs_builddir in
50537.) ac_abs_top_srcdir=$ac_top_srcdir;;
50538*)
50539 case $ac_top_srcdir in
50540 .) ac_abs_top_srcdir=$ac_abs_builddir;;
50541 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
50542 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
50543 esac;;
50544esac
a848cd7e
SC
50545
50546
50547 cd $ac_dir
50548
50549 # Check for guested configure; otherwise get Cygnus style configure.
50550 if test -f $ac_srcdir/configure.gnu; then
50551 ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
50552 elif test -f $ac_srcdir/configure; then
50553 ac_sub_configure="$SHELL '$ac_srcdir/configure'"
50554 elif test -f $ac_srcdir/configure.in; then
50555 ac_sub_configure=$ac_configure
50556 else
50557 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
50558echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
50559 ac_sub_configure=
50560 fi
50561
50562 # The recursion is here.
50563 if test -n "$ac_sub_configure"; then
50564 # Make the cache file name correct relative to the subdirectory.
50565 case $cache_file in
50566 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
50567 *) # Relative path.
ac1cb8d3 50568 ac_sub_cache_file=$ac_top_builddir$cache_file ;;
a848cd7e
SC
50569 esac
50570
50571 { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
50572echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
50573 # The eval makes quoting arguments work.
50574 eval $ac_sub_configure $ac_sub_configure_args \
ac1cb8d3
VS
50575 --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
50576 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
a848cd7e
SC
50577echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
50578 { (exit 1); exit 1; }; }
50579 fi
50580
c9a66001 50581 cd "$ac_popdir"
a848cd7e
SC
50582 done
50583fi
50584
50585
50586echo
77ffb593 50587echo "Configured wxWidgets ${WX_VERSION} for \`${host}'"
a848cd7e 50588echo ""
4d4ff94c 50589echo " Which GUI toolkit should wxWidgets use? ${TOOLKIT_USER:-base only}"
77ffb593 50590echo " Should wxWidgets be compiled into single library? ${wxUSE_MONOLITHIC:-yes}"
a848cd7e 50591
77ffb593
JS
50592echo " Should wxWidgets be compiled in debug mode? ${wxUSE_DEBUG:-no}"
50593echo " Should wxWidgets be linked as a shared library? ${wxUSE_SHARED:-no}"
50594echo " Should wxWidgets be compiled in Unicode mode? ${wxUSE_UNICODE:-no}"
a848cd7e 50595
77ffb593 50596echo " What level of wxWidgets compatibility should be enabled?"
dee1a63f
MB
50597echo " wxWidgets 2.4 ${WXWIN_COMPATIBILITY_2_4:-no}"
50598echo " wxWidgets 2.6 ${WXWIN_COMPATIBILITY_2_6:-yes}"
a848cd7e 50599
77ffb593 50600echo " Which libraries should wxWidgets use?"
a848cd7e
SC
50601echo " jpeg ${wxUSE_LIBJPEG-none}"
50602echo " png ${wxUSE_LIBPNG-none}"
50603echo " regex ${wxUSE_REGEX}"
50604echo " tiff ${wxUSE_LIBTIFF-none}"
50605if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then
50606echo " xpm ${wxUSE_LIBXPM-none}"
50607fi
50608echo " zlib ${wxUSE_ZLIB}"
50609echo " odbc ${wxUSE_ODBC}"
50610echo " expat ${wxUSE_EXPAT}"
50611echo " libmspack ${wxUSE_LIBMSPACK}"
50612echo " sdl ${wxUSE_LIBSDL}"
6d1ce868 50613echo " gnomeprint ${wxUSE_LIBGNOMEPRINT-none}"
2b850ae1 50614echo " gnomevfs ${wxUSE_LIBGNOMEVFS-none}"
3565d135 50615echo " hildon ${wxUSE_LIBHILDON-none}"
a848cd7e
SC
50616
50617echo ""
50618