]> git.saurik.com Git - wxWidgets.git/blame - configure
Whitespaces and headers cleaning.
[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.
f1e3914f 4# Generated by GNU Autoconf 2.59 for wxWidgets 2.7.1.
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'
f1e3914f
RR
273PACKAGE_VERSION='2.7.1'
274PACKAGE_STRING='wxWidgets 2.7.1'
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"
64b75e64 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 ac_pt_PKG_CONFIG DIRECTFB_CFLAGS DIRECTFB_LIBS X_CFLAGS X_PRE_LIBS X_LIBS X_EXTRA_LIBS PANGOX_CFLAGS PANGOX_LIBS PANGOFT2_CFLAGS PANGOFT2_LIBS PANGOXFT_CFLAGS PANGOXFT_LIBS REZ DEREZ SETFILE LIBICONV EXTRALIBS_ESD SDL_CONFIG SDL_CFLAGS SDL_LIBS LIBGNOMEPRINTUI_CFLAGS LIBGNOMEPRINTUI_LIBS GNOMEVFS_CFLAGS GNOMEVFS_LIBS HILDON_CFLAGS HILDON_LIBS CAIRO_CFLAGS CAIRO_LIBS GST_CFLAGS GST_LIBS CORE_BASE_LIBS CORE_GUI_LIBS wxUSE_ZLIB wxUSE_REGEX wxUSE_EXPAT wxUSE_ODBC wxUSE_LIBJPEG wxUSE_LIBPNG wxUSE_LIBTIFF VENDOR OFFICIAL_BUILD WX_FLAVOUR WX_LIB_FLAVOUR WXUNIV MONOLITHIC USE_PLUGINS EXTRALIBS EXTRALIBS_XML EXTRALIBS_HTML EXTRALIBS_ODBC EXTRALIBS_GUI EXTRALIBS_OPENGL EXTRALIBS_SDL WITH_PLUGIN_SDL EXTRALIBS_GNOMEPRINT EXTRALIBS_GNOMEVFS EXTRALIBS_HILDON UNICODE BUILD DEBUG_INFO DEBUG_FLAG TOOLKIT_LOWERCASE TOOLKIT_VERSION SAMPLES_RPATH_FLAG SAMPLES_RPATH_POSTLINK HOST_SUFFIX CPPUNIT_CFLAGS CPPUNIT_LIBS SET_MAKE MAKE_SET 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_DFB COND_TOOLKIT_DFB_USE_GUI_1 COND_TOOLKIT_GTK COND_TOOLKIT_GTK_TOOLKIT_VERSION_ COND_TOOLKIT_GTK_TOOLKIT_VERSION_2 COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1 COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1_WXUNIV_0 COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1 COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1_WXUNIV_0 COND_TOOLKIT_GTK_USE_GUI_1 COND_TOOLKIT_MAC COND_TOOLKIT_MAC_USE_GUI_1 COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0 COND_TOOLKIT_MGL COND_TOOLKIT_MGL_USE_GUI_1 COND_TOOLKIT_MOTIF COND_TOOLKIT_MOTIF_USE_GUI_1 COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0 COND_TOOLKIT_MSW COND_TOOLKIT_MSW_USE_GUI_1 COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0 COND_TOOLKIT_MSW_WXUNIV_0 COND_TOOLKIT_PM COND_TOOLKIT_PM_USE_GUI_1 COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0 COND_TOOLKIT_WINCE COND_TOOLKIT_WINCE_USE_GUI_1 COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0 COND_TOOLKIT_WINCE_WXUNIV_0 COND_TOOLKIT_X11 COND_TOOLKIT_X11_USE_GUI_1 COND_UNICODE_1 COND_USE_EXCEPTIONS_0 COND_USE_EXCEPTIONS_1 COND_USE_GUI_0 COND_USE_GUI_1 COND_USE_GUI_1_WXUNIV_0 COND_USE_GUI_1_WXUNIV_1 COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN COND_USE_ODBC_1 COND_USE_OPENGL_1 COND_USE_PCH_1 COND_USE_PLUGINS_0 COND_USE_RTTI_0 COND_USE_RTTI_1 COND_USE_SOSYMLINKS_1 COND_USE_SOVERCYGWIN_1_USE_SOVERSION_1 COND_USE_SOVERLINUX_1 COND_USE_SOVERSION_0 COND_USE_SOVERSOLARIS_1 COND_USE_THREADS_0 COND_USE_THREADS_1 COND_USE_XRC_1 COND_WINDOWS_IMPLIB_1 COND_WITH_PLUGIN_SDL_1 COND_WXUNIV_0 COND_WXUNIV_1 COND_WXUSE_EXPAT_BUILTIN COND_WXUSE_LIBJPEG_BUILTIN COND_WXUSE_LIBPNG_BUILTIN COND_WXUSE_LIBTIFF_BUILTIN COND_WXUSE_ODBC_BUILTIN COND_WXUSE_REGEX_BUILTIN COND_WXUSE_ZLIB_BUILTIN SHARED WX_LIBRARY_BASENAME_NOGUI WX_LIBRARY_BASENAME_GUI USE_GUI AFMINSTALL WIN32INSTALL TOOLKIT TOOLKIT_DIR TOOLCHAIN_NAME TOOLCHAIN_FULLNAME cross_compiling WIDGET_SET WX_RELEASE WX_VERSION WX_SUBVERSION WX_CHARTYPE WX_DEBUGTYPE WXCONFIG_CPPFLAGS WXCONFIG_CFLAGS WXCONFIG_CXXFLAGS WXCONFIG_LIBS WXCONFIG_RPATH WXCONFIG_LDFLAGS_GUI WXCONFIG_RESFLAGS EXE_LINKER GUIDIST DISTDIR SAMPLES_SUBDIRS LDFLAGS_GL OPENGL_LIBS DMALLOC_LIBS WX_VERSION_TAG RESCOMP RESFLAGS RESPROGRAMOBJ WX_RESOURCES_MACOSX_ASCII WX_RESOURCES_MACOSX_DATA LIBWXMACRES POSTLINK_COMMAND MACSETFILE GCC CPPUNIT_CONFIG LIBOBJS LTLIBOBJS'
a848cd7e
SC
317ac_subst_files=''
318
319# Initialize some variables set by options.
320ac_init_help=
321ac_init_version=false
322# The variables have the same names as the options, with
323# dashes changed to underlines.
324cache_file=/dev/null
325exec_prefix=NONE
326no_create=
327no_recursion=
328prefix=NONE
329program_prefix=NONE
330program_suffix=NONE
331program_transform_name=s,x,x,
332silent=
333site=
334srcdir=
335verbose=
336x_includes=NONE
337x_libraries=NONE
338
339# Installation directory options.
340# These are left unexpanded so users can "make install exec_prefix=/foo"
341# and all the variables that are supposed to be based on exec_prefix
342# by default will actually change.
343# Use braces instead of parens because sh, perl, etc. also accept them.
344bindir='${exec_prefix}/bin'
345sbindir='${exec_prefix}/sbin'
346libexecdir='${exec_prefix}/libexec'
347datadir='${prefix}/share'
348sysconfdir='${prefix}/etc'
349sharedstatedir='${prefix}/com'
350localstatedir='${prefix}/var'
351libdir='${exec_prefix}/lib'
352includedir='${prefix}/include'
353oldincludedir='/usr/include'
354infodir='${prefix}/info'
355mandir='${prefix}/man'
356
357ac_prev=
358for ac_option
359do
360 # If the previous option needs an argument, assign it.
361 if test -n "$ac_prev"; then
362 eval "$ac_prev=\$ac_option"
363 ac_prev=
364 continue
365 fi
366
367 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
368
369 # Accept the important Cygnus configure options, so we can diagnose typos.
370
371 case $ac_option in
372
373 -bindir | --bindir | --bindi | --bind | --bin | --bi)
374 ac_prev=bindir ;;
375 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
376 bindir=$ac_optarg ;;
377
378 -build | --build | --buil | --bui | --bu)
379 ac_prev=build_alias ;;
380 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
381 build_alias=$ac_optarg ;;
382
383 -cache-file | --cache-file | --cache-fil | --cache-fi \
384 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
385 ac_prev=cache_file ;;
386 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
387 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
388 cache_file=$ac_optarg ;;
389
390 --config-cache | -C)
391 cache_file=config.cache ;;
392
393 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
394 ac_prev=datadir ;;
395 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
396 | --da=*)
397 datadir=$ac_optarg ;;
398
399 -disable-* | --disable-*)
400 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
401 # Reject names that are not valid shell variable names.
402 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
403 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
404 { (exit 1); exit 1; }; }
405 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
406 eval "enable_$ac_feature=no" ;;
407
408 -enable-* | --enable-*)
409 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
410 # Reject names that are not valid shell variable names.
411 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
412 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
413 { (exit 1); exit 1; }; }
414 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
415 case $ac_option in
416 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
417 *) ac_optarg=yes ;;
418 esac
419 eval "enable_$ac_feature='$ac_optarg'" ;;
420
421 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
422 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
423 | --exec | --exe | --ex)
424 ac_prev=exec_prefix ;;
425 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
426 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
427 | --exec=* | --exe=* | --ex=*)
428 exec_prefix=$ac_optarg ;;
429
430 -gas | --gas | --ga | --g)
431 # Obsolete; use --with-gas.
432 with_gas=yes ;;
433
434 -help | --help | --hel | --he | -h)
435 ac_init_help=long ;;
436 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
437 ac_init_help=recursive ;;
438 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
439 ac_init_help=short ;;
440
441 -host | --host | --hos | --ho)
442 ac_prev=host_alias ;;
443 -host=* | --host=* | --hos=* | --ho=*)
444 host_alias=$ac_optarg ;;
445
446 -includedir | --includedir | --includedi | --included | --include \
447 | --includ | --inclu | --incl | --inc)
448 ac_prev=includedir ;;
449 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
450 | --includ=* | --inclu=* | --incl=* | --inc=*)
451 includedir=$ac_optarg ;;
452
453 -infodir | --infodir | --infodi | --infod | --info | --inf)
454 ac_prev=infodir ;;
455 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
456 infodir=$ac_optarg ;;
457
458 -libdir | --libdir | --libdi | --libd)
459 ac_prev=libdir ;;
460 -libdir=* | --libdir=* | --libdi=* | --libd=*)
461 libdir=$ac_optarg ;;
462
463 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
464 | --libexe | --libex | --libe)
465 ac_prev=libexecdir ;;
466 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
467 | --libexe=* | --libex=* | --libe=*)
468 libexecdir=$ac_optarg ;;
469
470 -localstatedir | --localstatedir | --localstatedi | --localstated \
471 | --localstate | --localstat | --localsta | --localst \
472 | --locals | --local | --loca | --loc | --lo)
473 ac_prev=localstatedir ;;
474 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
475 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
476 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
477 localstatedir=$ac_optarg ;;
478
479 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
480 ac_prev=mandir ;;
481 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
482 mandir=$ac_optarg ;;
483
484 -nfp | --nfp | --nf)
485 # Obsolete; use --without-fp.
486 with_fp=no ;;
487
488 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
489 | --no-cr | --no-c | -n)
490 no_create=yes ;;
491
492 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
493 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
494 no_recursion=yes ;;
495
496 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
497 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
498 | --oldin | --oldi | --old | --ol | --o)
499 ac_prev=oldincludedir ;;
500 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
501 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
502 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
503 oldincludedir=$ac_optarg ;;
504
505 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
506 ac_prev=prefix ;;
507 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
508 prefix=$ac_optarg ;;
509
510 -program-prefix | --program-prefix | --program-prefi | --program-pref \
511 | --program-pre | --program-pr | --program-p)
512 ac_prev=program_prefix ;;
513 -program-prefix=* | --program-prefix=* | --program-prefi=* \
514 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
515 program_prefix=$ac_optarg ;;
516
517 -program-suffix | --program-suffix | --program-suffi | --program-suff \
518 | --program-suf | --program-su | --program-s)
519 ac_prev=program_suffix ;;
520 -program-suffix=* | --program-suffix=* | --program-suffi=* \
521 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
522 program_suffix=$ac_optarg ;;
523
524 -program-transform-name | --program-transform-name \
525 | --program-transform-nam | --program-transform-na \
526 | --program-transform-n | --program-transform- \
527 | --program-transform | --program-transfor \
528 | --program-transfo | --program-transf \
529 | --program-trans | --program-tran \
530 | --progr-tra | --program-tr | --program-t)
531 ac_prev=program_transform_name ;;
532 -program-transform-name=* | --program-transform-name=* \
533 | --program-transform-nam=* | --program-transform-na=* \
534 | --program-transform-n=* | --program-transform-=* \
535 | --program-transform=* | --program-transfor=* \
536 | --program-transfo=* | --program-transf=* \
537 | --program-trans=* | --program-tran=* \
538 | --progr-tra=* | --program-tr=* | --program-t=*)
539 program_transform_name=$ac_optarg ;;
540
541 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
542 | -silent | --silent | --silen | --sile | --sil)
543 silent=yes ;;
544
545 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
546 ac_prev=sbindir ;;
547 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
548 | --sbi=* | --sb=*)
549 sbindir=$ac_optarg ;;
550
551 -sharedstatedir | --sharedstatedir | --sharedstatedi \
552 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
553 | --sharedst | --shareds | --shared | --share | --shar \
554 | --sha | --sh)
555 ac_prev=sharedstatedir ;;
556 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
557 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
558 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
559 | --sha=* | --sh=*)
560 sharedstatedir=$ac_optarg ;;
561
562 -site | --site | --sit)
563 ac_prev=site ;;
564 -site=* | --site=* | --sit=*)
565 site=$ac_optarg ;;
566
567 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
568 ac_prev=srcdir ;;
569 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
570 srcdir=$ac_optarg ;;
571
572 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
573 | --syscon | --sysco | --sysc | --sys | --sy)
574 ac_prev=sysconfdir ;;
575 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
576 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
577 sysconfdir=$ac_optarg ;;
578
579 -target | --target | --targe | --targ | --tar | --ta | --t)
580 ac_prev=target_alias ;;
581 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
582 target_alias=$ac_optarg ;;
583
584 -v | -verbose | --verbose | --verbos | --verbo | --verb)
585 verbose=yes ;;
586
587 -version | --version | --versio | --versi | --vers | -V)
588 ac_init_version=: ;;
589
590 -with-* | --with-*)
591 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
592 # Reject names that are not valid shell variable names.
593 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
594 { echo "$as_me: error: invalid package name: $ac_package" >&2
595 { (exit 1); exit 1; }; }
596 ac_package=`echo $ac_package| sed 's/-/_/g'`
597 case $ac_option in
598 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
599 *) ac_optarg=yes ;;
600 esac
601 eval "with_$ac_package='$ac_optarg'" ;;
602
603 -without-* | --without-*)
604 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
605 # Reject names that are not valid shell variable names.
606 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
607 { echo "$as_me: error: invalid package name: $ac_package" >&2
608 { (exit 1); exit 1; }; }
609 ac_package=`echo $ac_package | sed 's/-/_/g'`
610 eval "with_$ac_package=no" ;;
611
612 --x)
613 # Obsolete; use --with-x.
614 with_x=yes ;;
615
616 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
617 | --x-incl | --x-inc | --x-in | --x-i)
618 ac_prev=x_includes ;;
619 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
620 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
621 x_includes=$ac_optarg ;;
622
623 -x-libraries | --x-libraries | --x-librarie | --x-librari \
624 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
625 ac_prev=x_libraries ;;
626 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
627 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
628 x_libraries=$ac_optarg ;;
629
630 -*) { echo "$as_me: error: unrecognized option: $ac_option
631Try \`$0 --help' for more information." >&2
632 { (exit 1); exit 1; }; }
633 ;;
634
635 *=*)
636 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
637 # Reject names that are not valid shell variable names.
638 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
639 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
640 { (exit 1); exit 1; }; }
641 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
642 eval "$ac_envvar='$ac_optarg'"
643 export $ac_envvar ;;
644
645 *)
646 # FIXME: should be removed in autoconf 3.0.
647 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
648 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
649 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
650 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
651 ;;
652
653 esac
654done
655
656if test -n "$ac_prev"; then
657 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
658 { echo "$as_me: error: missing argument to $ac_option" >&2
659 { (exit 1); exit 1; }; }
660fi
661
662# Be sure to have absolute paths.
663for ac_var in exec_prefix prefix
664do
665 eval ac_val=$`echo $ac_var`
666 case $ac_val in
667 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
668 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
669 { (exit 1); exit 1; }; };;
670 esac
671done
672
673# Be sure to have absolute paths.
674for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
ac1cb8d3 675 localstatedir libdir includedir oldincludedir infodir mandir
a848cd7e
SC
676do
677 eval ac_val=$`echo $ac_var`
678 case $ac_val in
679 [\\/$]* | ?:[\\/]* ) ;;
680 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
681 { (exit 1); exit 1; }; };;
682 esac
683done
684
685# There might be people who depend on the old broken behavior: `$host'
686# used to hold the argument of --host etc.
687# FIXME: To remove some day.
688build=$build_alias
689host=$host_alias
690target=$target_alias
691
692# FIXME: To remove some day.
693if test "x$host_alias" != x; then
694 if test "x$build_alias" = x; then
695 cross_compiling=maybe
696 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
697 If a cross compiler is detected then cross compile mode will be used." >&2
698 elif test "x$build_alias" != "x$host_alias"; then
699 cross_compiling=yes
700 fi
701fi
702
703ac_tool_prefix=
704test -n "$host_alias" && ac_tool_prefix=$host_alias-
705
706test "$silent" = yes && exec 6>/dev/null
707
708
709# Find the source files, if location was not specified.
710if test -z "$srcdir"; then
711 ac_srcdir_defaulted=yes
712 # Try the directory containing this script, then its parent.
713 ac_confdir=`(dirname "$0") 2>/dev/null ||
714$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
715 X"$0" : 'X\(//\)[^/]' \| \
716 X"$0" : 'X\(//\)$' \| \
717 X"$0" : 'X\(/\)' \| \
718 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
719echo X"$0" |
720 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
721 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
722 /^X\(\/\/\)$/{ s//\1/; q; }
723 /^X\(\/\).*/{ s//\1/; q; }
724 s/.*/./; q'`
725 srcdir=$ac_confdir
726 if test ! -r $srcdir/$ac_unique_file; then
727 srcdir=..
728 fi
729else
730 ac_srcdir_defaulted=no
731fi
732if test ! -r $srcdir/$ac_unique_file; then
733 if test "$ac_srcdir_defaulted" = yes; then
734 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
735 { (exit 1); exit 1; }; }
736 else
737 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
738 { (exit 1); exit 1; }; }
739 fi
740fi
741(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
742 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
743 { (exit 1); exit 1; }; }
744srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
745ac_env_build_alias_set=${build_alias+set}
746ac_env_build_alias_value=$build_alias
747ac_cv_env_build_alias_set=${build_alias+set}
748ac_cv_env_build_alias_value=$build_alias
749ac_env_host_alias_set=${host_alias+set}
750ac_env_host_alias_value=$host_alias
751ac_cv_env_host_alias_set=${host_alias+set}
752ac_cv_env_host_alias_value=$host_alias
753ac_env_target_alias_set=${target_alias+set}
754ac_env_target_alias_value=$target_alias
755ac_cv_env_target_alias_set=${target_alias+set}
756ac_cv_env_target_alias_value=$target_alias
757ac_env_CC_set=${CC+set}
758ac_env_CC_value=$CC
759ac_cv_env_CC_set=${CC+set}
760ac_cv_env_CC_value=$CC
761ac_env_CFLAGS_set=${CFLAGS+set}
762ac_env_CFLAGS_value=$CFLAGS
763ac_cv_env_CFLAGS_set=${CFLAGS+set}
764ac_cv_env_CFLAGS_value=$CFLAGS
765ac_env_LDFLAGS_set=${LDFLAGS+set}
766ac_env_LDFLAGS_value=$LDFLAGS
767ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
768ac_cv_env_LDFLAGS_value=$LDFLAGS
769ac_env_CPPFLAGS_set=${CPPFLAGS+set}
770ac_env_CPPFLAGS_value=$CPPFLAGS
771ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
772ac_cv_env_CPPFLAGS_value=$CPPFLAGS
773ac_env_CPP_set=${CPP+set}
774ac_env_CPP_value=$CPP
775ac_cv_env_CPP_set=${CPP+set}
776ac_cv_env_CPP_value=$CPP
777ac_env_CXX_set=${CXX+set}
778ac_env_CXX_value=$CXX
779ac_cv_env_CXX_set=${CXX+set}
780ac_cv_env_CXX_value=$CXX
781ac_env_CXXFLAGS_set=${CXXFLAGS+set}
782ac_env_CXXFLAGS_value=$CXXFLAGS
783ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
784ac_cv_env_CXXFLAGS_value=$CXXFLAGS
785ac_env_CXXCPP_set=${CXXCPP+set}
786ac_env_CXXCPP_value=$CXXCPP
787ac_cv_env_CXXCPP_set=${CXXCPP+set}
788ac_cv_env_CXXCPP_value=$CXXCPP
3ecd9f92
MW
789ac_env_PKG_CONFIG_set=${PKG_CONFIG+set}
790ac_env_PKG_CONFIG_value=$PKG_CONFIG
791ac_cv_env_PKG_CONFIG_set=${PKG_CONFIG+set}
792ac_cv_env_PKG_CONFIG_value=$PKG_CONFIG
b3c86150
VS
793ac_env_DIRECTFB_CFLAGS_set=${DIRECTFB_CFLAGS+set}
794ac_env_DIRECTFB_CFLAGS_value=$DIRECTFB_CFLAGS
795ac_cv_env_DIRECTFB_CFLAGS_set=${DIRECTFB_CFLAGS+set}
796ac_cv_env_DIRECTFB_CFLAGS_value=$DIRECTFB_CFLAGS
797ac_env_DIRECTFB_LIBS_set=${DIRECTFB_LIBS+set}
798ac_env_DIRECTFB_LIBS_value=$DIRECTFB_LIBS
799ac_cv_env_DIRECTFB_LIBS_set=${DIRECTFB_LIBS+set}
800ac_cv_env_DIRECTFB_LIBS_value=$DIRECTFB_LIBS
3ecd9f92
MW
801ac_env_PANGOX_CFLAGS_set=${PANGOX_CFLAGS+set}
802ac_env_PANGOX_CFLAGS_value=$PANGOX_CFLAGS
803ac_cv_env_PANGOX_CFLAGS_set=${PANGOX_CFLAGS+set}
804ac_cv_env_PANGOX_CFLAGS_value=$PANGOX_CFLAGS
805ac_env_PANGOX_LIBS_set=${PANGOX_LIBS+set}
806ac_env_PANGOX_LIBS_value=$PANGOX_LIBS
807ac_cv_env_PANGOX_LIBS_set=${PANGOX_LIBS+set}
808ac_cv_env_PANGOX_LIBS_value=$PANGOX_LIBS
809ac_env_PANGOFT2_CFLAGS_set=${PANGOFT2_CFLAGS+set}
810ac_env_PANGOFT2_CFLAGS_value=$PANGOFT2_CFLAGS
811ac_cv_env_PANGOFT2_CFLAGS_set=${PANGOFT2_CFLAGS+set}
812ac_cv_env_PANGOFT2_CFLAGS_value=$PANGOFT2_CFLAGS
813ac_env_PANGOFT2_LIBS_set=${PANGOFT2_LIBS+set}
814ac_env_PANGOFT2_LIBS_value=$PANGOFT2_LIBS
815ac_cv_env_PANGOFT2_LIBS_set=${PANGOFT2_LIBS+set}
816ac_cv_env_PANGOFT2_LIBS_value=$PANGOFT2_LIBS
817ac_env_PANGOXFT_CFLAGS_set=${PANGOXFT_CFLAGS+set}
818ac_env_PANGOXFT_CFLAGS_value=$PANGOXFT_CFLAGS
819ac_cv_env_PANGOXFT_CFLAGS_set=${PANGOXFT_CFLAGS+set}
820ac_cv_env_PANGOXFT_CFLAGS_value=$PANGOXFT_CFLAGS
821ac_env_PANGOXFT_LIBS_set=${PANGOXFT_LIBS+set}
822ac_env_PANGOXFT_LIBS_value=$PANGOXFT_LIBS
823ac_cv_env_PANGOXFT_LIBS_set=${PANGOXFT_LIBS+set}
824ac_cv_env_PANGOXFT_LIBS_value=$PANGOXFT_LIBS
825ac_env_LIBGNOMEPRINTUI_CFLAGS_set=${LIBGNOMEPRINTUI_CFLAGS+set}
826ac_env_LIBGNOMEPRINTUI_CFLAGS_value=$LIBGNOMEPRINTUI_CFLAGS
827ac_cv_env_LIBGNOMEPRINTUI_CFLAGS_set=${LIBGNOMEPRINTUI_CFLAGS+set}
828ac_cv_env_LIBGNOMEPRINTUI_CFLAGS_value=$LIBGNOMEPRINTUI_CFLAGS
829ac_env_LIBGNOMEPRINTUI_LIBS_set=${LIBGNOMEPRINTUI_LIBS+set}
830ac_env_LIBGNOMEPRINTUI_LIBS_value=$LIBGNOMEPRINTUI_LIBS
831ac_cv_env_LIBGNOMEPRINTUI_LIBS_set=${LIBGNOMEPRINTUI_LIBS+set}
832ac_cv_env_LIBGNOMEPRINTUI_LIBS_value=$LIBGNOMEPRINTUI_LIBS
833ac_env_GNOMEVFS_CFLAGS_set=${GNOMEVFS_CFLAGS+set}
834ac_env_GNOMEVFS_CFLAGS_value=$GNOMEVFS_CFLAGS
835ac_cv_env_GNOMEVFS_CFLAGS_set=${GNOMEVFS_CFLAGS+set}
836ac_cv_env_GNOMEVFS_CFLAGS_value=$GNOMEVFS_CFLAGS
837ac_env_GNOMEVFS_LIBS_set=${GNOMEVFS_LIBS+set}
838ac_env_GNOMEVFS_LIBS_value=$GNOMEVFS_LIBS
839ac_cv_env_GNOMEVFS_LIBS_set=${GNOMEVFS_LIBS+set}
840ac_cv_env_GNOMEVFS_LIBS_value=$GNOMEVFS_LIBS
841ac_env_HILDON_CFLAGS_set=${HILDON_CFLAGS+set}
842ac_env_HILDON_CFLAGS_value=$HILDON_CFLAGS
843ac_cv_env_HILDON_CFLAGS_set=${HILDON_CFLAGS+set}
844ac_cv_env_HILDON_CFLAGS_value=$HILDON_CFLAGS
845ac_env_HILDON_LIBS_set=${HILDON_LIBS+set}
846ac_env_HILDON_LIBS_value=$HILDON_LIBS
847ac_cv_env_HILDON_LIBS_set=${HILDON_LIBS+set}
848ac_cv_env_HILDON_LIBS_value=$HILDON_LIBS
64b75e64
RD
849ac_env_CAIRO_CFLAGS_set=${CAIRO_CFLAGS+set}
850ac_env_CAIRO_CFLAGS_value=$CAIRO_CFLAGS
851ac_cv_env_CAIRO_CFLAGS_set=${CAIRO_CFLAGS+set}
852ac_cv_env_CAIRO_CFLAGS_value=$CAIRO_CFLAGS
853ac_env_CAIRO_LIBS_set=${CAIRO_LIBS+set}
854ac_env_CAIRO_LIBS_value=$CAIRO_LIBS
855ac_cv_env_CAIRO_LIBS_set=${CAIRO_LIBS+set}
856ac_cv_env_CAIRO_LIBS_value=$CAIRO_LIBS
3ecd9f92
MW
857ac_env_GST_CFLAGS_set=${GST_CFLAGS+set}
858ac_env_GST_CFLAGS_value=$GST_CFLAGS
859ac_cv_env_GST_CFLAGS_set=${GST_CFLAGS+set}
860ac_cv_env_GST_CFLAGS_value=$GST_CFLAGS
861ac_env_GST_LIBS_set=${GST_LIBS+set}
862ac_env_GST_LIBS_value=$GST_LIBS
863ac_cv_env_GST_LIBS_set=${GST_LIBS+set}
864ac_cv_env_GST_LIBS_value=$GST_LIBS
a848cd7e
SC
865
866#
867# Report the --help message.
868#
869if test "$ac_init_help" = "long"; then
870 # Omit some internal or obsolete options to make the list less imposing.
871 # This message is too long to be a string in the A/UX 3.1 sh.
872 cat <<_ACEOF
f1e3914f 873\`configure' configures wxWidgets 2.7.1 to adapt to many kinds of systems.
a848cd7e
SC
874
875Usage: $0 [OPTION]... [VAR=VALUE]...
876
877To assign environment variables (e.g., CC, CFLAGS...), specify them as
878VAR=VALUE. See below for descriptions of some of the useful variables.
879
880Defaults for the options are specified in brackets.
881
882Configuration:
883 -h, --help display this help and exit
884 --help=short display options specific to this package
885 --help=recursive display the short help of all the included packages
886 -V, --version display version information and exit
887 -q, --quiet, --silent do not print \`checking...' messages
888 --cache-file=FILE cache test results in FILE [disabled]
889 -C, --config-cache alias for \`--cache-file=config.cache'
890 -n, --no-create do not create output files
891 --srcdir=DIR find the sources in DIR [configure dir or \`..']
892
893_ACEOF
894
895 cat <<_ACEOF
896Installation directories:
897 --prefix=PREFIX install architecture-independent files in PREFIX
ac1cb8d3 898 [$ac_default_prefix]
a848cd7e 899 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
ac1cb8d3 900 [PREFIX]
a848cd7e
SC
901
902By default, \`make install' will install all the files in
903\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
904an installation prefix other than \`$ac_default_prefix' using \`--prefix',
905for instance \`--prefix=\$HOME'.
906
907For better control, use the options below.
908
909Fine tuning of the installation directories:
910 --bindir=DIR user executables [EPREFIX/bin]
911 --sbindir=DIR system admin executables [EPREFIX/sbin]
912 --libexecdir=DIR program executables [EPREFIX/libexec]
913 --datadir=DIR read-only architecture-independent data [PREFIX/share]
914 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
915 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
916 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
917 --libdir=DIR object code libraries [EPREFIX/lib]
918 --includedir=DIR C header files [PREFIX/include]
919 --oldincludedir=DIR C header files for non-gcc [/usr/include]
920 --infodir=DIR info documentation [PREFIX/info]
921 --mandir=DIR man documentation [PREFIX/man]
922_ACEOF
923
924 cat <<\_ACEOF
925
926X features:
927 --x-includes=DIR X include files are in DIR
928 --x-libraries=DIR X library files are in DIR
929
930System types:
931 --build=BUILD configure for building on BUILD [guessed]
932 --host=HOST cross-compile to build programs to run on HOST [BUILD]
933 --target=TARGET configure for building compilers for TARGET [HOST]
934_ACEOF
935fi
936
937if test -n "$ac_init_help"; then
938 case $ac_init_help in
f1e3914f 939 short | recursive ) echo "Configuration of wxWidgets 2.7.1:";;
a848cd7e
SC
940 esac
941 cat <<\_ACEOF
942
943Optional Features:
944 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
945 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
946 --enable-gui use GUI classes
77ffb593
JS
947 --enable-monolithic build wxWidgets as single library
948 --enable-plugins build parts of wxWidgets as loadable components
949 --enable-universal use wxWidgets GUI controls instead of native ones
a848cd7e 950 --enable-nanox use NanoX
f34ca037 951 --disable-gtk2 use GTK+ 1.2 instead of 2.0
a848cd7e
SC
952 --enable-gpe use GNOME PDA Environment features if possible
953 --enable-shared create shared library code
954 --enable-optimise create optimised code
955 --enable-debug same as debug_flag and debug_info
956 --enable-stl use STL for containers
957 --enable-omf use OMF object format
958 --enable-debug_flag set __WXDEBUG__ flag (recommended for developers!)
959 --enable-debug_info create code with debugging information
960 --enable-debug_gdb create code with extra GDB debugging information
961 --enable-debug_cntxt use wxDebugContext
962 --enable-mem_tracing create code with memory tracing
963 --enable-profile create code with profiling information
964 --enable-no_rtti create code without RTTI information
965 --enable-no_exceptions create code without C++ exceptions handling
966 --enable-permissive compile code disregarding strict ANSI
967 --enable-no_deps create code without dependency information
95768535 968 --enable-universal_binary[=SDK] create Mac PowerPC and Intel Universal binary (not yet working)
dee1a63f
MB
969 --enable-compat24 enable wxWidgets 2.4 compatibility
970 --disable-compat26 disable wxWidgets 2.6 compatibility
ffa0583f 971 --disable-rpath disable use of rpath for uninstalled builds
a848cd7e
SC
972 --enable-intl use internationalization system
973 --enable-config use wxConfig (and derived) classes
974 --enable-protocols use wxProtocol and derived classes
975 --enable-ftp use wxFTP (requires wxProtocol
976 --enable-http use wxHTTP (requires wxProtocol
977 --enable-fileproto use wxFileProto class (requires wxProtocol
978 --enable-sockets use socket/network classes
979 --enable-ole use OLE classes (Win32 only)
980 --enable-dataobj use data object classes
981 --enable-ipc use interprocess communication (wxSocket etc.)
982 --enable-apple_ieee use the Apple IEEE codec
81f90336 983 --enable-arcstream use wxArchive streams
eaff0f0d 984 --enable-backtrace use wxStackWalker class for getting backtraces
36b6448c 985 --enable-catch_segvs catch signals in wxApp::OnFatalException (Unix only)
a848cd7e
SC
986 --enable-cmdline use wxCmdLineParser class
987 --enable-datetime use wxDateTime class
36b6448c 988 --enable-debugreport use wxDebugReport class
a848cd7e
SC
989 --enable-dialupman use dialup network classes
990 --enable-dynlib use wxLibrary class for DLL loading
991 --enable-dynamicloader use (new) wxDynamicLibrary class
992 --enable-exceptions build exception-safe library
993 --enable-ffile use wxFFile class
994 --enable-file use wxFile class
995 --enable-filesystem use virtual file systems classes
996 --enable-fontmap use font encodings conversion classes
997 --enable-fs_inet use virtual HTTP/FTP filesystems
998 --enable-fs_zip use virtual ZIP filesystems
999 --enable-geometry use geometry class
1000 --enable-log use logging system
1001 --enable-longlong use wxLongLong class
1002 --enable-mimetype use wxMimeTypesManager
1003 --enable-mslu use MS Layer for Unicode on Windows 9x (Win32 only)
1004 --enable-snglinst use wxSingleInstanceChecker class
a848cd7e 1005 --enable-std_iostreams use standard C++ stream classes
59746b65 1006 --enable-std_string use standard C++ string classes
07158944 1007 --enable-stdpaths use wxStandardPaths class
a848cd7e 1008 --enable-stopwatch use wxStopWatch class
07158944 1009 --enable-streams use wxStream etc classes
a848cd7e
SC
1010 --enable-sysoptions use wxSystemOptions
1011 --enable-textbuf use wxTextBuffer class
1012 --enable-textfile use wxTextFile class
1013 --enable-timer use wxTimer class
1014 --enable-unicode compile wxString with Unicode support
1015 --enable-sound use wxSound class
3b57de8b 1016 --enable-mediactrl use wxMediaCtrl class
15291213 1017 --enable-gstreamer8 force GStreamer 0.8 instead of 0.10 with the wxMediaCtrl class on unix
8b6682b9 1018 --enable-printfposparam use wxVsnprintf() which supports positional parameters
81f90336 1019 --enable-zipstream use wxZip streams
a848cd7e 1020 --enable-url use wxURL class
ca5c6ac3 1021 --enable-variant use wxVariant class
a848cd7e
SC
1022 --enable-protocol use wxProtocol class
1023 --enable-protocol-http HTTP support in wxProtocol
1024 --enable-protocol-ftp FTP support in wxProtocol
1025 --enable-protocol-file FILE support in wxProtocol
1026 --enable-threads use threads
1027 --enable-docview use document view architecture
1028 --enable-help use help subsystem
1029 --enable-mshtmlhelp use MS HTML Help (win32)
1030 --enable-html use wxHTML sub-library
1031 --enable-htmlhelp use wxHTML-based help
9a8f0513 1032 --enable-xrc use XRC resources sub-library
3f60522a 1033 --enable-aui use AUI docking library
a848cd7e
SC
1034 --enable-constraints use layout-constraints system
1035 --enable-printarch use printing architecture
1036 --enable-mdi use multiple document interface architecture
8a7b1113 1037 --enable-mdidoc use docview architecture with MDI
a848cd7e
SC
1038 --enable-loggui use standard GUI logger
1039 --enable-logwin use wxLogWindow
1040 --enable-logdialog use wxLogDialog
646b6ec1 1041 --enable-webkit use wxWebKitCtrl (Mac)
91dea314 1042 --enable-richtext use wxRichTextCtrl
f43426c1 1043 --enable-graphics_ctx use graphics context 2D drawing API
a848cd7e
SC
1044 --enable-postscript use wxPostscriptDC device context (default for gtk+)
1045 --enable-prologio not available; see contrib
1046 --enable-resources not available; see contrib
1047 --enable-clipboard use wxClipboard class
1048 --enable-dnd use Drag'n'Drop classes
1049 --enable-metafile use win32 metafiles
1050 --enable-controls use all usual controls
1051 --enable-accel use accelerators
3ea50042 1052 --enable-animatectrl use wxAnimationCtrl class
a848cd7e
SC
1053 --enable-button use wxButton class
1054 --enable-bmpbutton use wxBitmapButton class
95a46303 1055 --enable-bmpcombobox use wxBitmapComboBox class
a848cd7e
SC
1056 --enable-calendar use wxCalendarCtrl class
1057 --enable-caret use wxCaret class
1058 --enable-checkbox use wxCheckBox class
1059 --enable-checklst use wxCheckListBox (listbox with checkboxes) class
1060 --enable-choice use wxChoice class
92bbdbcd 1061 --enable-choicebook use wxChoicebook class
e9263684 1062 --enable-colourpicker use wxColourPickerCtrl class
a848cd7e 1063 --enable-combobox use wxComboBox class
a57d600f 1064 --enable-comboctrl use wxComboCtrl class
da98e9be 1065 --enable-datepick use wxDatePickerCtrl class
e9263684 1066 --enable-dirpicker use wxDirPickerCtrl class
a848cd7e 1067 --enable-display use wxDisplay class
88bbc332 1068 --enable-detect_sm use code to detect X11 session manager
e9263684
VZ
1069 --enable-filepicker use wxFilePickerCtrl class
1070 --enable-fontpicker use wxFontPickerCtrl class
a848cd7e
SC
1071 --enable-gauge use wxGauge class
1072 --enable-grid use wxGrid class
20e34ecc 1073 --enable-dataviewctrl, use wxDataViewCtrl class
6954625c 1074 --enable-hyperlink use wxHyperlinkCtrl class
a848cd7e
SC
1075 --enable-imaglist use wxImageList class
1076 --enable-listbook use wxListbook class
1077 --enable-listbox use wxListBox class
1078 --enable-listctrl use wxListCtrl class
1079 --enable-notebook use wxNotebook class
a57d600f 1080 --enable-odcombobox use wxOwnerDrawnComboBox class
a848cd7e
SC
1081 --enable-radiobox use wxRadioBox class
1082 --enable-radiobtn use wxRadioButton class
1083 --enable-sash use wxSashWindow class
1084 --enable-scrollbar use wxScrollBar class and scrollable windows
1085 --enable-slider use wxSlider class
1086 --enable-spinbtn use wxSpinButton class
1087 --enable-spinctrl use wxSpinCtrl class
1088 --enable-splitter use wxSplitterWindow class
1089 --enable-statbmp use wxStaticBitmap class
1090 --enable-statbox use wxStaticBox class
1091 --enable-statline use wxStaticLine class
1092 --enable-stattext use wxStaticText class
1093 --enable-statusbar use wxStatusBar class
1094 --enable-tabdialog use wxTabControl class
1095 --enable-textctrl use wxTextCtrl class
1096 --enable-togglebtn use wxToggleButton class
1097 --enable-toolbar use wxToolBar class
1098 --enable-tbarnative use native wxToolBar class
0093c2fc 1099 --enable-treebook use wxTreebook class
5ec3bc43 1100 --enable-toolbook use wxToolbook class
a848cd7e
SC
1101 --enable-treectrl use wxTreeCtrl class
1102 --enable-tipwindow use wxTipWindow class
1103 --enable-popupwin use wxPopUpWindow class
1104 --enable-commondlg use all common dialogs
319c5ed4 1105 --enable-aboutdlg use wxAboutBox
a848cd7e
SC
1106 --enable-choicedlg use wxChoiceDialog
1107 --enable-coldlg use wxColourDialog
1108 --enable-filedlg use wxFileDialog
1109 --enable-finddlg use wxFindReplaceDialog
1110 --enable-fontdlg use wxFontDialog
1111 --enable-dirdlg use wxDirDialog
1112 --enable-msgdlg use wxMessageDialog
1113 --enable-numberdlg use wxNumberEntryDialog
1114 --enable-splash use wxSplashScreen
1115 --enable-textdlg use wxTextDialog
1116 --enable-tipdlg use startup tips
1117 --enable-progressdlg use wxProgressDialog
1118 --enable-wizarddlg use wxWizard
1119 --enable-menus use wxMenu/wxMenuBar/wxMenuItem classes
1120 --enable-miniframe use wxMiniFrame class
1121 --enable-tooltips use wxToolTip class
1122 --enable-splines use spline drawing code
fbe2ca43 1123 --enable-mousewheel use mousewheel
a848cd7e
SC
1124 --enable-validators use wxValidator and derived classes
1125 --enable-busyinfo use wxBusyInfo
4cb1d3da 1126 --enable-joystick use wxJoystick
38b4a946 1127 --enable-metafiles use wxMetaFile (Win32 only)
a848cd7e
SC
1128 --enable-dragimage use wxDragImage
1129 --enable-accessibility enable accessibility support
38b4a946 1130 --enable-dccache cache temporary wxDC objects (Win32 only)
a848cd7e
SC
1131 --enable-palette use wxPalette class
1132 --enable-image use wxImage class
1133 --enable-gif use gif images (GIF file format)
1134 --enable-pcx use pcx images (PCX file format)
1135 --enable-iff use iff images (IFF file format)
1136 --enable-pnm use pnm images (PNM file format)
1137 --enable-xpm use xpm images (XPM file format)
1138 --enable-icocur use Windows ICO and CUR formats
77ffb593 1139 --enable-official_build official build of wxWidgets (win32 DLL only)
a848cd7e
SC
1140 --enable-vendor=VENDOR vendor name (win32 DLL only)
1141 --disable-largefile omit support for large files
1142 --disable-gtktest do not try to compile and run a test GTK+ program
1143 --disable-gtktest Do not try to compile and run a test GTK program
1144 --disable-sdltest Do not try to compile and run a test SDL program
1145 --enable-omf use OMF object format (OS/2)
f10e38c4
VZ
1146 --disable-dependency-tracking
1147 don't use dependency tracking even if the compiler
1148 can
ebee3cd0
VS
1149 --disable-precomp-headers
1150 don't use precompiled headers even if compiler can
a848cd7e
SC
1151
1152Optional Packages:
1153 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1154 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1c14217d 1155 --without-subdirs don't generate makefiles for samples/demos/...
f34ca037 1156 --with-gtk[=VERSION] use GTK+, VERSION can be 2 (default), 1 or "any"
a848cd7e
SC
1157 --with-motif use Motif/Lesstif
1158 --with-mac use Mac OS X
1159 --with-cocoa use Cocoa
1160 --with-wine use Wine
1161 --with-msw use MS-Windows
1162 --with-pm use OS/2 Presentation Manager
1163 --with-mgl use SciTech MGL
b3c86150 1164 --with-directfb use DirectFB
a848cd7e
SC
1165 --with-microwin use MicroWindows
1166 --with-x11 use X11
1167 --with-libpng use libpng (PNG image format)
1168 --with-libjpeg use libjpeg (JPEG file format)
1169 --with-libtiff use libtiff (TIFF file format)
1170 --with-libxpm use libxpm (XPM file format)
1171 --with-libmspack use libmspack (CHM help files loading)
1172 --with-sdl use SDL for audio on Unix
2b850ae1
RR
1173 --with-gnomeprint use GNOME print for printing under GNOME
1174 --with-gnomevfs use GNOME VFS for associating MIME types
3565d135 1175 --with-hildon use Hildon framework for Nokia 770
a848cd7e 1176 --with-opengl use OpenGL (or Mesa)
4353a8df 1177 --with-themes=all|list use only the specified comma-separated list of wxUniversal themes
a848cd7e
SC
1178 --with-dmalloc use dmalloc library (http://dmalloc.com/)
1179 --with-regex enable support for wxRegEx class
1180 --with-zlib use zlib for LZW compression
1181 --with-odbc use the IODBC and wxODBC classes
1182 --with-expat enable XML support using expat parser
ceec2216 1183 --with-flavour=NAME specify a name to identify this build
a848cd7e
SC
1184 --with-gtk-prefix=PFX Prefix where GTK is installed (optional)
1185 --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional)
1186 --with-x use the X Window System
1187 --with-libiconv-prefix=DIR search for libiconv in DIR/include and DIR/lib
1188 --with-sdl-prefix=PFX Prefix where SDL is installed (optional)
1189 --with-sdl-exec-prefix=PFX Exec prefix where SDL is installed (optional)
1190 --with-cppunit-prefix=PFX Prefix where CppUnit is installed (optional)
1191 --with-cppunit-exec-prefix=PFX Exec prefix where CppUnit is installed (optional)
1192
1193Some influential environment variables:
dcc1b6ad
VS
1194 CC C compiler command
1195 CFLAGS C compiler flags
1196 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1197 nonstandard directory <lib dir>
1198 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1199 headers in a nonstandard directory <include dir>
1200 CPP C preprocessor
1201 CXX C++ compiler command
1202 CXXFLAGS C++ compiler flags
1203 CXXCPP C++ preprocessor
3ecd9f92 1204 PKG_CONFIG path to pkg-config utility
b3c86150
VS
1205 DIRECTFB_CFLAGS
1206 C compiler flags for DIRECTFB, overriding pkg-config
1207 DIRECTFB_LIBS
1208 linker flags for DIRECTFB, overriding pkg-config
3ecd9f92
MW
1209 PANGOX_CFLAGS
1210 C compiler flags for PANGOX, overriding pkg-config
1211 PANGOX_LIBS linker flags for PANGOX, overriding pkg-config
1212 PANGOFT2_CFLAGS
1213 C compiler flags for PANGOFT2, overriding pkg-config
1214 PANGOFT2_LIBS
1215 linker flags for PANGOFT2, overriding pkg-config
1216 PANGOXFT_CFLAGS
1217 C compiler flags for PANGOXFT, overriding pkg-config
1218 PANGOXFT_LIBS
1219 linker flags for PANGOXFT, overriding pkg-config
1220 LIBGNOMEPRINTUI_CFLAGS
1221 C compiler flags for LIBGNOMEPRINTUI, overriding pkg-config
1222 LIBGNOMEPRINTUI_LIBS
1223 linker flags for LIBGNOMEPRINTUI, overriding pkg-config
1224 GNOMEVFS_CFLAGS
1225 C compiler flags for GNOMEVFS, overriding pkg-config
1226 GNOMEVFS_LIBS
1227 linker flags for GNOMEVFS, overriding pkg-config
1228 HILDON_CFLAGS
1229 C compiler flags for HILDON, overriding pkg-config
1230 HILDON_LIBS linker flags for HILDON, overriding pkg-config
64b75e64
RD
1231 CAIRO_CFLAGS
1232 C compiler flags for CAIRO, overriding pkg-config
1233 CAIRO_LIBS linker flags for CAIRO, overriding pkg-config
3ecd9f92
MW
1234 GST_CFLAGS C compiler flags for GST, overriding pkg-config
1235 GST_LIBS linker flags for GST, overriding pkg-config
a848cd7e
SC
1236
1237Use these variables to override the choices made by `configure' or to help
1238it to find libraries and programs with nonstandard names/locations.
1239
77ffb593 1240Report bugs to <wx-dev@lists.wxwidgets.org>.
a848cd7e
SC
1241_ACEOF
1242fi
1243
1244if test "$ac_init_help" = "recursive"; then
1245 # If there are subdirs, report their specific --help.
1246 ac_popdir=`pwd`
1247 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1248 test -d $ac_dir || continue
1249 ac_builddir=.
1250
1251if test "$ac_dir" != .; then
1252 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1253 # A "../" for each directory in $ac_dir_suffix.
1254 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1255else
1256 ac_dir_suffix= ac_top_builddir=
1257fi
1258
1259case $srcdir in
1260 .) # No --srcdir option. We are building in place.
1261 ac_srcdir=.
1262 if test -z "$ac_top_builddir"; then
1263 ac_top_srcdir=.
1264 else
1265 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1266 fi ;;
1267 [\\/]* | ?:[\\/]* ) # Absolute path.
1268 ac_srcdir=$srcdir$ac_dir_suffix;
1269 ac_top_srcdir=$srcdir ;;
1270 *) # Relative path.
1271 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1272 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1273esac
ac1cb8d3
VS
1274
1275# Do not use `cd foo && pwd` to compute absolute paths, because
1276# the directories may not exist.
1277case `pwd` in
1278.) ac_abs_builddir="$ac_dir";;
1279*)
1280 case "$ac_dir" in
1281 .) ac_abs_builddir=`pwd`;;
1282 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1283 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1284 esac;;
1285esac
1286case $ac_abs_builddir in
1287.) ac_abs_top_builddir=${ac_top_builddir}.;;
1288*)
1289 case ${ac_top_builddir}. in
1290 .) ac_abs_top_builddir=$ac_abs_builddir;;
1291 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1292 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1293 esac;;
1294esac
1295case $ac_abs_builddir in
1296.) ac_abs_srcdir=$ac_srcdir;;
1297*)
1298 case $ac_srcdir in
1299 .) ac_abs_srcdir=$ac_abs_builddir;;
1300 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1301 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1302 esac;;
1303esac
1304case $ac_abs_builddir in
1305.) ac_abs_top_srcdir=$ac_top_srcdir;;
1306*)
1307 case $ac_top_srcdir in
1308 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1309 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1310 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1311 esac;;
1312esac
a848cd7e
SC
1313
1314 cd $ac_dir
1315 # Check for guested configure; otherwise get Cygnus style configure.
1316 if test -f $ac_srcdir/configure.gnu; then
1317 echo
1318 $SHELL $ac_srcdir/configure.gnu --help=recursive
1319 elif test -f $ac_srcdir/configure; then
1320 echo
1321 $SHELL $ac_srcdir/configure --help=recursive
1322 elif test -f $ac_srcdir/configure.ac ||
ac1cb8d3 1323 test -f $ac_srcdir/configure.in; then
a848cd7e
SC
1324 echo
1325 $ac_configure --help
1326 else
1327 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1328 fi
479c790c 1329 cd "$ac_popdir"
a848cd7e
SC
1330 done
1331fi
1332
1333test -n "$ac_init_help" && exit 0
1334if $ac_init_version; then
1335 cat <<\_ACEOF
f1e3914f 1336wxWidgets configure 2.7.1
ac1cb8d3 1337generated by GNU Autoconf 2.59
a848cd7e 1338
ac1cb8d3 1339Copyright (C) 2003 Free Software Foundation, Inc.
a848cd7e
SC
1340This configure script is free software; the Free Software Foundation
1341gives unlimited permission to copy, distribute and modify it.
1342_ACEOF
1343 exit 0
1344fi
1345exec 5>config.log
1346cat >&5 <<_ACEOF
1347This file contains any messages produced by compilers while
1348running configure, to aid debugging if configure makes a mistake.
1349
f1e3914f 1350It was created by wxWidgets $as_me 2.7.1, which was
ac1cb8d3 1351generated by GNU Autoconf 2.59. Invocation command line was
a848cd7e
SC
1352
1353 $ $0 $@
1354
1355_ACEOF
1356{
1357cat <<_ASUNAME
1358## --------- ##
1359## Platform. ##
1360## --------- ##
1361
1362hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1363uname -m = `(uname -m) 2>/dev/null || echo unknown`
1364uname -r = `(uname -r) 2>/dev/null || echo unknown`
1365uname -s = `(uname -s) 2>/dev/null || echo unknown`
1366uname -v = `(uname -v) 2>/dev/null || echo unknown`
1367
1368/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1369/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1370
1371/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1372/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1373/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1374hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1375/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1376/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1377/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1378
1379_ASUNAME
1380
1381as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1382for as_dir in $PATH
1383do
1384 IFS=$as_save_IFS
1385 test -z "$as_dir" && as_dir=.
1386 echo "PATH: $as_dir"
1387done
1388
1389} >&5
1390
1391cat >&5 <<_ACEOF
1392
1393
1394## ----------- ##
1395## Core tests. ##
1396## ----------- ##
1397
1398_ACEOF
1399
1400
1401# Keep a trace of the command line.
1402# Strip out --no-create and --no-recursion so they do not pile up.
1403# Strip out --silent because we don't want to record it for future runs.
1404# Also quote any args containing shell meta-characters.
1405# Make two passes to allow for proper duplicate-argument suppression.
1406ac_configure_args=
1407ac_configure_args0=
1408ac_configure_args1=
1409ac_sep=
1410ac_must_keep_next=false
1411for ac_pass in 1 2
1412do
1413 for ac_arg
1414 do
1415 case $ac_arg in
1416 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1417 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1418 | -silent | --silent | --silen | --sile | --sil)
1419 continue ;;
1420 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1421 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1422 esac
1423 case $ac_pass in
1424 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1425 2)
1426 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1427 if test $ac_must_keep_next = true; then
ac1cb8d3 1428 ac_must_keep_next=false # Got value, back to normal.
a848cd7e 1429 else
ac1cb8d3
VS
1430 case $ac_arg in
1431 *=* | --config-cache | -C | -disable-* | --disable-* \
1432 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1433 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1434 | -with-* | --with-* | -without-* | --without-* | --x)
1435 case "$ac_configure_args0 " in
1436 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1437 esac
1438 ;;
1439 -* ) ac_must_keep_next=true ;;
1440 esac
a848cd7e
SC
1441 fi
1442 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1443 # Get rid of the leading space.
1444 ac_sep=" "
1445 ;;
1446 esac
1447 done
1448done
1449$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1450$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1451
1452# When interrupted or exit'd, cleanup temporary files, and complete
1453# config.log. We remove comments because anyway the quotes in there
1454# would cause problems or look ugly.
1455# WARNING: Be sure not to use single quotes in there, as some shells,
1456# such as our DU 5.0 friend, will then `close' the trap.
1457trap 'exit_status=$?
1458 # Save into config.log some information that might help in debugging.
1459 {
1460 echo
1461
1462 cat <<\_ASBOX
1463## ---------------- ##
1464## Cache variables. ##
1465## ---------------- ##
1466_ASBOX
1467 echo
1468 # The following way of writing the cache mishandles newlines in values,
1469{
1470 (set) 2>&1 |
1471 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1472 *ac_space=\ *)
1473 sed -n \
ac1cb8d3
VS
1474 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1475 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
a848cd7e
SC
1476 ;;
1477 *)
1478 sed -n \
ac1cb8d3 1479 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
a848cd7e
SC
1480 ;;
1481 esac;
1482}
1483 echo
1484
1485 cat <<\_ASBOX
1486## ----------------- ##
1487## Output variables. ##
1488## ----------------- ##
1489_ASBOX
1490 echo
1491 for ac_var in $ac_subst_vars
1492 do
1493 eval ac_val=$`echo $ac_var`
1494 echo "$ac_var='"'"'$ac_val'"'"'"
1495 done | sort
1496 echo
1497
1498 if test -n "$ac_subst_files"; then
1499 cat <<\_ASBOX
1500## ------------- ##
1501## Output files. ##
1502## ------------- ##
1503_ASBOX
1504 echo
1505 for ac_var in $ac_subst_files
1506 do
1507 eval ac_val=$`echo $ac_var`
ac1cb8d3 1508 echo "$ac_var='"'"'$ac_val'"'"'"
a848cd7e
SC
1509 done | sort
1510 echo
1511 fi
1512
1513 if test -s confdefs.h; then
1514 cat <<\_ASBOX
1515## ----------- ##
1516## confdefs.h. ##
1517## ----------- ##
1518_ASBOX
1519 echo
1520 sed "/^$/d" confdefs.h | sort
1521 echo
1522 fi
1523 test "$ac_signal" != 0 &&
1524 echo "$as_me: caught signal $ac_signal"
1525 echo "$as_me: exit $exit_status"
1526 } >&5
ac1cb8d3 1527 rm -f core *.core &&
a848cd7e
SC
1528 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1529 exit $exit_status
1530 ' 0
1531for ac_signal in 1 2 13 15; do
1532 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1533done
1534ac_signal=0
1535
1536# confdefs.h avoids OS command line length limits that DEFS can exceed.
1537rm -rf conftest* confdefs.h
1538# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1539echo >confdefs.h
1540
1541# Predefined preprocessor variables.
1542
1543cat >>confdefs.h <<_ACEOF
1544#define PACKAGE_NAME "$PACKAGE_NAME"
1545_ACEOF
1546
1547
1548cat >>confdefs.h <<_ACEOF
1549#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1550_ACEOF
1551
1552
1553cat >>confdefs.h <<_ACEOF
1554#define PACKAGE_VERSION "$PACKAGE_VERSION"
1555_ACEOF
1556
1557
1558cat >>confdefs.h <<_ACEOF
1559#define PACKAGE_STRING "$PACKAGE_STRING"
1560_ACEOF
1561
1562
1563cat >>confdefs.h <<_ACEOF
1564#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1565_ACEOF
1566
1567
1568# Let the site file select an alternate cache file if it wants to.
1569# Prefer explicitly selected file to automatically selected ones.
1570if test -z "$CONFIG_SITE"; then
1571 if test "x$prefix" != xNONE; then
1572 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1573 else
1574 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1575 fi
1576fi
1577for ac_site_file in $CONFIG_SITE; do
1578 if test -r "$ac_site_file"; then
1579 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1580echo "$as_me: loading site script $ac_site_file" >&6;}
1581 sed 's/^/| /' "$ac_site_file" >&5
1582 . "$ac_site_file"
1583 fi
1584done
1585
1586if test -r "$cache_file"; then
1587 # Some versions of bash will fail to source /dev/null (special
1588 # files actually), so we avoid doing that.
1589 if test -f "$cache_file"; then
1590 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1591echo "$as_me: loading cache $cache_file" >&6;}
1592 case $cache_file in
1593 [\\/]* | ?:[\\/]* ) . $cache_file;;
1594 *) . ./$cache_file;;
1595 esac
1596 fi
1597else
1598 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1599echo "$as_me: creating cache $cache_file" >&6;}
1600 >$cache_file
1601fi
1602
1603# Check that the precious variables saved in the cache have kept the same
1604# value.
1605ac_cache_corrupted=false
1606for ac_var in `(set) 2>&1 |
ac1cb8d3 1607 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
a848cd7e
SC
1608 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1609 eval ac_new_set=\$ac_env_${ac_var}_set
1610 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1611 eval ac_new_val="\$ac_env_${ac_var}_value"
1612 case $ac_old_set,$ac_new_set in
1613 set,)
1614 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1615echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1616 ac_cache_corrupted=: ;;
1617 ,set)
1618 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1619echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1620 ac_cache_corrupted=: ;;
1621 ,);;
1622 *)
1623 if test "x$ac_old_val" != "x$ac_new_val"; then
ac1cb8d3 1624 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
a848cd7e 1625echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
ac1cb8d3 1626 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
a848cd7e 1627echo "$as_me: former value: $ac_old_val" >&2;}
ac1cb8d3 1628 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
a848cd7e 1629echo "$as_me: current value: $ac_new_val" >&2;}
ac1cb8d3 1630 ac_cache_corrupted=:
a848cd7e
SC
1631 fi;;
1632 esac
1633 # Pass precious variables to config.status.
1634 if test "$ac_new_set" = set; then
1635 case $ac_new_val in
1636 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1637 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1638 *) ac_arg=$ac_var=$ac_new_val ;;
1639 esac
1640 case " $ac_configure_args " in
1641 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1642 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1643 esac
1644 fi
1645done
1646if $ac_cache_corrupted; then
1647 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1648echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1649 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1650echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1651 { (exit 1); exit 1; }; }
1652fi
1653
1654ac_ext=c
1655ac_cpp='$CPP $CPPFLAGS'
1656ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1657ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1658ac_compiler_gnu=$ac_cv_c_compiler_gnu
1659
1660
1661
1662
1663
1664
1665
1666
1667
1668
1669
1670
1671
1672
1673
1674
1675
1676
1677
1678
1679
1680
1681
1682
1683
1684
1685
1686
1687
1688
1689ac_aux_dir=
1690for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1691 if test -f $ac_dir/install-sh; then
1692 ac_aux_dir=$ac_dir
1693 ac_install_sh="$ac_aux_dir/install-sh -c"
1694 break
1695 elif test -f $ac_dir/install.sh; then
1696 ac_aux_dir=$ac_dir
1697 ac_install_sh="$ac_aux_dir/install.sh -c"
1698 break
1699 elif test -f $ac_dir/shtool; then
1700 ac_aux_dir=$ac_dir
1701 ac_install_sh="$ac_aux_dir/shtool install -c"
1702 break
1703 fi
1704done
1705if test -z "$ac_aux_dir"; then
1706 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1707echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1708 { (exit 1); exit 1; }; }
1709fi
1710ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1711ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1712ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1713
1714# Make sure we can run config.sub.
1715$ac_config_sub sun4 >/dev/null 2>&1 ||
1716 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1717echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1718 { (exit 1); exit 1; }; }
1719
1720echo "$as_me:$LINENO: checking build system type" >&5
1721echo $ECHO_N "checking build system type... $ECHO_C" >&6
1722if test "${ac_cv_build+set}" = set; then
1723 echo $ECHO_N "(cached) $ECHO_C" >&6
1724else
1725 ac_cv_build_alias=$build_alias
1726test -z "$ac_cv_build_alias" &&
1727 ac_cv_build_alias=`$ac_config_guess`
1728test -z "$ac_cv_build_alias" &&
1729 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1730echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1731 { (exit 1); exit 1; }; }
1732ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1733 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1734echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1735 { (exit 1); exit 1; }; }
1736
1737fi
1738echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1739echo "${ECHO_T}$ac_cv_build" >&6
1740build=$ac_cv_build
1741build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1742build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1743build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1744
1745
1746echo "$as_me:$LINENO: checking host system type" >&5
1747echo $ECHO_N "checking host system type... $ECHO_C" >&6
1748if test "${ac_cv_host+set}" = set; then
1749 echo $ECHO_N "(cached) $ECHO_C" >&6
1750else
1751 ac_cv_host_alias=$host_alias
1752test -z "$ac_cv_host_alias" &&
1753 ac_cv_host_alias=$ac_cv_build_alias
1754ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1755 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1756echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1757 { (exit 1); exit 1; }; }
1758
1759fi
1760echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1761echo "${ECHO_T}$ac_cv_host" >&6
1762host=$ac_cv_host
1763host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1764host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1765host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1766
1767
1768echo "$as_me:$LINENO: checking target system type" >&5
1769echo $ECHO_N "checking target system type... $ECHO_C" >&6
1770if test "${ac_cv_target+set}" = set; then
1771 echo $ECHO_N "(cached) $ECHO_C" >&6
1772else
1773 ac_cv_target_alias=$target_alias
1774test "x$ac_cv_target_alias" = "x" &&
1775 ac_cv_target_alias=$ac_cv_host_alias
1776ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1777 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1778echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1779 { (exit 1); exit 1; }; }
1780
1781fi
1782echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1783echo "${ECHO_T}$ac_cv_target" >&6
1784target=$ac_cv_target
1785target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1786target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1787target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1788
1789
1790# The aliases save the names the user supplied, while $host etc.
1791# will get canonicalized.
1792test -n "$target_alias" &&
1793 test "$program_prefix$program_suffix$program_transform_name" = \
1794 NONENONEs,x,x, &&
1795 program_prefix=${target_alias}-
1796
1797
1798
ceec2216 1799wx_major_version_number=2
dd8df4fc 1800wx_minor_version_number=7
f1e3914f 1801wx_release_number=1
81bfc17c 1802wx_subrelease_number=2
a848cd7e 1803
ceec2216
RL
1804WX_RELEASE=$wx_major_version_number.$wx_minor_version_number
1805WX_VERSION=$WX_RELEASE.$wx_release_number
1806WX_SUBVERSION=$WX_VERSION.$wx_subrelease_number
a848cd7e 1807
ceec2216 1808WX_MSW_VERSION=$wx_major_version_number$wx_minor_version_number$wx_release_number
a848cd7e 1809
a848cd7e
SC
1810
1811
1812
1813USE_UNIX=1
1814USE_OS2=0
1815USE_WIN32=0
1816USE_DOS=0
1817USE_BEOS=0
1818USE_MAC=0
1819
1820USE_AIX=
1821USE_BSD= USE_DARWIN= USE_FREEBSD=
1822USE_GNU= USE_HPUX=
1823USE_LINUX=
1824USE_NETBSD=
1825USE_OPENBSD=
1826USE_OSF= USE_SGI=
1827USE_SOLARIS= USE_SUN= USE_SUNOS= USE_SVR4= USE_SYSV= USE_VMS=
1828USE_ULTRIX=
1829USE_UNIXWARE=
1830
1831USE_ALPHA=
1832
1833NEEDS_D_REENTRANT_FOR_R_FUNCS=0
1834
b3c86150 1835ALL_TOOLKITS="COCOA GTK MAC MGL MICROWIN MOTIF MSW PM X11 DFB"
a848cd7e
SC
1836
1837DEFAULT_wxUSE_COCOA=0
1838DEFAULT_wxUSE_GTK=0
1839DEFAULT_wxUSE_MAC=0
1840DEFAULT_wxUSE_MGL=0
1841DEFAULT_wxUSE_MICROWIN=0
1842DEFAULT_wxUSE_MOTIF=0
1843DEFAULT_wxUSE_MSW=0
1844DEFAULT_wxUSE_PM=0
1845DEFAULT_wxUSE_X11=0
b3c86150 1846DEFAULT_wxUSE_DFB=0
a848cd7e
SC
1847
1848DEFAULT_DEFAULT_wxUSE_COCOA=0
1849DEFAULT_DEFAULT_wxUSE_GTK=0
1850DEFAULT_DEFAULT_wxUSE_MAC=0
1851DEFAULT_DEFAULT_wxUSE_MGL=0
1852DEFAULT_DEFAULT_wxUSE_MICROWIN=0
1853DEFAULT_DEFAULT_wxUSE_MOTIF=0
1854DEFAULT_DEFAULT_wxUSE_MSW=0
1855DEFAULT_DEFAULT_wxUSE_PM=0
1856DEFAULT_DEFAULT_wxUSE_X11=0
b3c86150 1857DEFAULT_DEFAULT_wxUSE_DFB=0
a848cd7e
SC
1858
1859PROGRAM_EXT=
1860SO_SUFFIX=so
1861SAMPLES_RPATH_FLAG=
1862SAMPLES_RPATH_POSTLINK=
1863
a03b8b04
RD
1864DEFAULT_STD_FLAG=yes
1865
a848cd7e
SC
1866case "${host}" in
1867 *-hp-hpux* )
1868 USE_HPUX=1
1869 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1870 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
1871 SO_SUFFIX=sl
1872 cat >>confdefs.h <<\_ACEOF
1873#define __HPUX__ 1
1874_ACEOF
1875
2eef8513 1876
c92ad099 1877 CPPFLAGS="-D_HPUX_SOURCE $CPPFLAGS"
a848cd7e
SC
1878 ;;
1879 *-*-linux* )
1880 USE_LINUX=1
1881 cat >>confdefs.h <<\_ACEOF
1882#define __LINUX__ 1
1883_ACEOF
1884
1885 TMP=`uname -m`
1886 if test "x$TMP" = "xalpha"; then
1887 USE_ALPHA=1
1888 cat >>confdefs.h <<\_ACEOF
1889#define __ALPHA__ 1
1890_ACEOF
1891
1892 fi
1893 DEFAULT_DEFAULT_wxUSE_GTK=1
1894 ;;
1895 *-*-gnu* | *-*-k*bsd*-gnu )
1896 USE_GNU=1
1897 TMP=`uname -m`
1898 if test "x$TMP" = "xalpha"; then
1899 USE_ALPHA=1
1900 cat >>confdefs.h <<\_ACEOF
1901#define __ALPHA__ 1
1902_ACEOF
1903
1904 fi
1905 DEFAULT_DEFAULT_wxUSE_GTK=1
1906 ;;
1907 *-*-irix5* | *-*-irix6* )
1908 USE_SGI=1
1909 USE_SVR4=1
1910 cat >>confdefs.h <<\_ACEOF
1911#define __SGI__ 1
1912_ACEOF
1913
1914 cat >>confdefs.h <<\_ACEOF
1915#define __SVR4__ 1
1916_ACEOF
1917
1918 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1919 ;;
1920 *-*-solaris2* )
1921 USE_SUN=1
1922 USE_SOLARIS=1
1923 USE_SVR4=1
1924 cat >>confdefs.h <<\_ACEOF
1925#define __SUN__ 1
1926_ACEOF
1927
1928 cat >>confdefs.h <<\_ACEOF
1929#define __SOLARIS__ 1
1930_ACEOF
1931
1932 cat >>confdefs.h <<\_ACEOF
1933#define __SVR4__ 1
1934_ACEOF
1935
1936 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1937 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
1938 ;;
1939 *-*-sunos4* )
1940 USE_SUN=1
1941 USE_SUNOS=1
1942 USE_BSD=1
1943 cat >>confdefs.h <<\_ACEOF
1944#define __SUN__ 1
1945_ACEOF
1946
1947 cat >>confdefs.h <<\_ACEOF
1948#define __SUNOS__ 1
1949_ACEOF
1950
1951 cat >>confdefs.h <<\_ACEOF
1952#define __BSD__ 1
1953_ACEOF
1954
1955 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1956 ;;
1957 *-*-freebsd*)
1958 USE_BSD=1
1959 USE_FREEBSD=1
1960 cat >>confdefs.h <<\_ACEOF
1961#define __FREEBSD__ 1
1962_ACEOF
1963
1964 cat >>confdefs.h <<\_ACEOF
1965#define __BSD__ 1
1966_ACEOF
1967
1968 DEFAULT_DEFAULT_wxUSE_GTK=1
1969 ;;
c9a66001 1970 *-*-openbsd*|*-*-mirbsd*)
a848cd7e
SC
1971 USE_BSD=1
1972 USE_OPENBSD=1
1973 cat >>confdefs.h <<\_ACEOF
1974#define __OPENBSD__ 1
1975_ACEOF
1976
1977 cat >>confdefs.h <<\_ACEOF
1978#define __BSD__ 1
1979_ACEOF
1980
1981 DEFAULT_DEFAULT_wxUSE_GTK=1
1982 ;;
1983 *-*-netbsd*)
1984 USE_BSD=1
1985 USE_NETBSD=1
1986 cat >>confdefs.h <<\_ACEOF
1987#define __NETBSD__ 1
1988_ACEOF
1989
1990 cat >>confdefs.h <<\_ACEOF
1991#define __BSD__ 1
1992_ACEOF
1993
1994 DEFAULT_DEFAULT_wxUSE_GTK=1
728258f4 1995 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
def7c04a 1996
def7c04a 1997 CPPFLAGS="-D_NETBSD_SOURCE -D_LIBC $CPPFLAGS"
a848cd7e
SC
1998 ;;
1999 *-*-osf* )
2000 USE_ALPHA=1
2001 USE_OSF=1
2002 cat >>confdefs.h <<\_ACEOF
2003#define __ALPHA__ 1
2004_ACEOF
2005
2006 cat >>confdefs.h <<\_ACEOF
2007#define __OSF__ 1
2008_ACEOF
2009
2010 DEFAULT_DEFAULT_wxUSE_MOTIF=1
2011 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
2012 ;;
2013 *-*-dgux5* )
2014 USE_ALPHA=1
2015 USE_SVR4=1
2016 cat >>confdefs.h <<\_ACEOF
2017#define __ALPHA__ 1
2018_ACEOF
2019
2020 cat >>confdefs.h <<\_ACEOF
2021#define __SVR4__ 1
2022_ACEOF
2023
2024 DEFAULT_DEFAULT_wxUSE_MOTIF=1
2025 ;;
2026 *-*-sysv5* )
2027 USE_SYSV=1
2028 USE_SVR4=1
2029 cat >>confdefs.h <<\_ACEOF
2030#define __SYSV__ 1
2031_ACEOF
2032
2033 cat >>confdefs.h <<\_ACEOF
2034#define __SVR4__ 1
2035_ACEOF
2036
2037 DEFAULT_DEFAULT_wxUSE_MOTIF=1
2038 ;;
2039 *-*-aix* )
2040 USE_AIX=1
2041 USE_SYSV=1
2042 USE_SVR4=1
2043 SO_SUFFIX=a
2044 cat >>confdefs.h <<\_ACEOF
2045#define __AIX__ 1
2046_ACEOF
2047
2048 cat >>confdefs.h <<\_ACEOF
2049#define __SYSV__ 1
2050_ACEOF
2051
2052 cat >>confdefs.h <<\_ACEOF
2053#define __SVR4__ 1
2054_ACEOF
2055
2056 DEFAULT_DEFAULT_wxUSE_MOTIF=1
2057 ;;
2058
2059 *-*-*UnixWare*)
2060 USE_SYSV=1
2061 USE_SVR4=1
2062 USE_UNIXWARE=1
2063 cat >>confdefs.h <<\_ACEOF
2064#define __UNIXWARE__ 1
2065_ACEOF
2066
2067 ;;
2068
2069 *-*-cygwin* | *-*-mingw32* )
2070 SO_SUFFIX=dll
2071 PROGRAM_EXT=".exe"
a848cd7e 2072 DEFAULT_DEFAULT_wxUSE_MSW=1
a03b8b04 2073 DEFAULT_STD_FLAG=no
a848cd7e
SC
2074 ;;
2075
2076 *-pc-msdosdjgpp )
2077 USE_UNIX=0
2078 USE_DOS=1
2079 cat >>confdefs.h <<\_ACEOF
2080#define __DOS__ 1
2081_ACEOF
2082
2083 PROGRAM_EXT=".exe"
2084 DEFAULT_DEFAULT_wxUSE_MGL=1
a848cd7e
SC
2085 ;;
2086
2087 *-pc-os2_emx | *-pc-os2-emx )
2088 cat >>confdefs.h <<\_ACEOF
2089#define __EMX__ 1
2090_ACEOF
2091
2092 USE_OS2=1
2093 cat >>confdefs.h <<\_ACEOF
2094#define __OS2__ 1
2095_ACEOF
2096
2097 PROGRAM_EXT=".exe"
2098 DEFAULT_DEFAULT_wxUSE_PM=1
2099 CXX=gcc
2100 LDFLAGS="$LDFLAGS -Zcrtdll"
2101 ac_executable_extensions=".exe"
2102 export ac_executable_extensions
2103 ac_save_IFS="$IFS"
2104 IFS='\\'
2105 ac_TEMP_PATH=
2106 for ac_dir in $PATH; do
2107 IFS=$ac_save_IFS
2108 if test -z "$ac_TEMP_PATH"; then
2109 ac_TEMP_PATH="$ac_dir"
2110 else
2111 ac_TEMP_PATH="$ac_TEMP_PATH/$ac_dir"
2112 fi
2113 done
2114 export PATH="$ac_TEMP_PATH"
2115 unset ac_TEMP_PATH
a03b8b04 2116 DEFAULT_STD_FLAG=no
a848cd7e
SC
2117 ;;
2118
cfda0ea8 2119 *-*-darwin* )
a848cd7e
SC
2120 USE_BSD=1
2121 USE_DARWIN=1
2122 SO_SUFFIX=dylib
2123 cat >>confdefs.h <<\_ACEOF
2124#define __BSD__ 1
2125_ACEOF
2126
2127 cat >>confdefs.h <<\_ACEOF
2128#define __DARWIN__ 1
a848cd7e
SC
2129_ACEOF
2130
2131 cat >>confdefs.h <<\_ACEOF
2132#define TARGET_CARBON 1
2133_ACEOF
2134
2135 DEFAULT_DEFAULT_wxUSE_MAC=1
a03b8b04 2136 DEFAULT_STD_FLAG=no
a848cd7e 2137 ;;
1e9e8aba
DE
2138 powerpc-apple-macos* )
2139 USE_UNIX=0
2140 ac_cv_c_bigendian=yes
2141 SO_SUFFIX=shlib
2142 DEFAULT_DEFAULT_wxUSE_MAC=1
a03b8b04 2143 DEFAULT_STD_FLAG=no
1e9e8aba 2144 ;;
a848cd7e
SC
2145
2146 *-*-beos* )
2147 USE_BEOS=1
2148 cat >>confdefs.h <<\_ACEOF
2149#define __BEOS__ 1
2150_ACEOF
2151
2152 ;;
2153
2154 *)
c9a66001
VZ
2155 { echo "$as_me:$LINENO: WARNING: *** System type ${host} is unknown, assuming generic Unix and continuing nevertheless." >&5
2156echo "$as_me: WARNING: *** System type ${host} is unknown, assuming generic Unix and continuing nevertheless." >&2;}
2157 { echo "$as_me:$LINENO: WARNING: *** Please report the build results to wx-dev@lists.wxwidgets.org." >&5
2158echo "$as_me: WARNING: *** Please report the build results to wx-dev@lists.wxwidgets.org." >&2;}
5acfd58d
MW
2159
2160 DEFAULT_DEFAULT_wxUSE_X11=1
2161 DEFAULT_wxUSE_SHARED=no
a848cd7e
SC
2162esac
2163
2164
2165
2166
2167 wx_arg_cache_file="configarg.cache"
2168 echo "loading argument cache $wx_arg_cache_file"
2169 rm -f ${wx_arg_cache_file}.tmp
2170 touch ${wx_arg_cache_file}.tmp
2171 touch ${wx_arg_cache_file}
2172
2173
2174DEBUG_CONFIGURE=0
2175if test $DEBUG_CONFIGURE = 1; then
2176 DEFAULT_wxUSE_UNIVERSAL=no
2177 DEFAULT_wxUSE_STL=no
2178
2179 DEFAULT_wxUSE_NANOX=no
2180
2181 DEFAULT_wxUSE_THREADS=yes
2182
5acfd58d 2183 DEFAULT_wxUSE_SHARED=${DEFAULT_wxUSE_SHARED:-yes}
a848cd7e
SC
2184 DEFAULT_wxUSE_OPTIMISE=no
2185 DEFAULT_wxUSE_PROFILE=no
2186 DEFAULT_wxUSE_NO_DEPS=no
2187 DEFAULT_wxUSE_NO_RTTI=no
2188 DEFAULT_wxUSE_NO_EXCEPTIONS=no
7afc46ab 2189 DEFAULT_wxUSE_UNIVERSAL_BINARY=no
ffa0583f 2190 DEFAULT_wxUSE_RPATH=yes
a848cd7e
SC
2191 DEFAULT_wxUSE_PERMISSIVE=no
2192 DEFAULT_wxUSE_DEBUG_FLAG=yes
2193 DEFAULT_wxUSE_DEBUG_INFO=yes
2194 DEFAULT_wxUSE_DEBUG_GDB=yes
2195 DEFAULT_wxUSE_MEM_TRACING=no
2196 DEFAULT_wxUSE_DEBUG_CONTEXT=no
2197 DEFAULT_wxUSE_DMALLOC=no
2198 DEFAULT_wxUSE_APPLE_IEEE=no
2199
2200 DEFAULT_wxUSE_EXCEPTIONS=no
2201 DEFAULT_wxUSE_LOG=yes
2202 DEFAULT_wxUSE_LOGWINDOW=no
2203 DEFAULT_wxUSE_LOGGUI=no
2204 DEFAULT_wxUSE_LOGDIALOG=no
2205
2206 DEFAULT_wxUSE_GUI=yes
2207 DEFAULT_wxUSE_CONTROLS=no
2208
2209 DEFAULT_wxUSE_REGEX=no
2210 DEFAULT_wxUSE_XML=no
2211 DEFAULT_wxUSE_EXPAT=no
2212 DEFAULT_wxUSE_ZLIB=no
2213 DEFAULT_wxUSE_LIBPNG=no
2214 DEFAULT_wxUSE_LIBJPEG=no
2215 DEFAULT_wxUSE_LIBTIFF=no
2216 DEFAULT_wxUSE_LIBXPM=no
2217 DEFAULT_wxUSE_LIBMSPACK=no
2218 DEFAULT_wxUSE_LIBSDL=no
d1c38808 2219 DEFAULT_wxUSE_LIBGNOMEPRINT=no
2b850ae1 2220 DEFAULT_wxUSE_LIBGNOMEVFS=no
3565d135 2221 DEFAULT_wxUSE_LIBHILDON=no
a848cd7e
SC
2222 DEFAULT_wxUSE_ODBC=no
2223 DEFAULT_wxUSE_OPENGL=no
2224
2225 DEFAULT_wxUSE_ON_FATAL_EXCEPTION=no
eaff0f0d 2226 DEFAULT_wxUSE_STACKWALKER=no
36b6448c 2227 DEFAULT_wxUSE_DEBUGREPORT=no
a848cd7e
SC
2228 DEFAULT_wxUSE_SNGLINST_CHECKER=no
2229 DEFAULT_wxUSE_STD_IOSTREAM=no
59746b65 2230 DEFAULT_wxUSE_STD_STRING=no
a848cd7e
SC
2231 DEFAULT_wxUSE_CMDLINE_PARSER=no
2232 DEFAULT_wxUSE_DATETIME=no
2233 DEFAULT_wxUSE_TIMER=no
2234 DEFAULT_wxUSE_STOPWATCH=no
2235 DEFAULT_wxUSE_FILE=no
2236 DEFAULT_wxUSE_FFILE=no
07158944 2237 DEFAULT_wxUSE_STDPATHS=no
a848cd7e
SC
2238 DEFAULT_wxUSE_TEXTBUFFER=no
2239 DEFAULT_wxUSE_TEXTFILE=no
2240 DEFAULT_wxUSE_SOUND=no
3b57de8b 2241 DEFAULT_wxUSE_MEDIACTRL=no
f10e38c4 2242 DEFAULT_wxUSE_GSTREAMER8=no
8f3773fd 2243 DEFAULT_wxUSE_PRINTF_POS_PARAMS=no
a848cd7e
SC
2244 DEFAULT_wxUSE_INTL=no
2245 DEFAULT_wxUSE_CONFIG=no
2246 DEFAULT_wxUSE_FONTMAP=no
2247 DEFAULT_wxUSE_STREAMS=no
2248 DEFAULT_wxUSE_SOCKETS=no
2249 DEFAULT_wxUSE_OLE=no
2250 DEFAULT_wxUSE_DATAOBJ=no
2251 DEFAULT_wxUSE_DIALUP_MANAGER=no
2252 DEFAULT_wxUSE_JOYSTICK=no
2253 DEFAULT_wxUSE_DYNLIB_CLASS=no
2254 DEFAULT_wxUSE_DYNAMIC_LOADER=no
2255 DEFAULT_wxUSE_LONGLONG=no
2256 DEFAULT_wxUSE_GEOMETRY=no
2257
2258 DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=no
2259 DEFAULT_wxUSE_NORMALIZED_PS_FONTS=no
2260 DEFAULT_wxUSE_POSTSCRIPT=no
2261
2262 DEFAULT_wxUSE_CLIPBOARD=no
2263 DEFAULT_wxUSE_TOOLTIPS=no
2264 DEFAULT_wxUSE_DRAG_AND_DROP=no
2265 DEFAULT_wxUSE_DRAGIMAGE=no
2266 DEFAULT_wxUSE_SPLINES=no
fbe2ca43 2267 DEFAULT_wxUSE_MOUSEWHEEL=no
a848cd7e 2268
8a7b1113 2269 DEFAULT_wxUSE_MDI=no
a848cd7e
SC
2270 DEFAULT_wxUSE_MDI_ARCHITECTURE=no
2271 DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=no
2272 DEFAULT_wxUSE_PRINTING_ARCHITECTURE=no
2273
2274 DEFAULT_wxUSE_RESOURCES=no
2275 DEFAULT_wxUSE_CONSTRAINTS=no
2276 DEFAULT_wxUSE_IPC=no
2277 DEFAULT_wxUSE_HELP=no
2278 DEFAULT_wxUSE_MS_HTML_HELP=no
2279 DEFAULT_wxUSE_WXHTML_HELP=no
2280 DEFAULT_wxUSE_TREELAYOUT=no
2281 DEFAULT_wxUSE_METAFILE=no
2282 DEFAULT_wxUSE_MIMETYPE=no
2283 DEFAULT_wxUSE_SYSTEM_OPTIONS=no
2284 DEFAULT_wxUSE_PROTOCOL=no
2285 DEFAULT_wxUSE_PROTOCOL_HTTP=no
2286 DEFAULT_wxUSE_PROTOCOL_FTP=no
2287 DEFAULT_wxUSE_PROTOCOL_FILE=no
2288 DEFAULT_wxUSE_URL=no
ca5c6ac3 2289 DEFAULT_wxUSE_VARIANT=no
a848cd7e 2290
319c5ed4 2291 DEFAULT_wxUSE_ABOUTDLG=no
a848cd7e
SC
2292 DEFAULT_wxUSE_COMMONDLGS=no
2293 DEFAULT_wxUSE_CHOICEDLG=no
2294 DEFAULT_wxUSE_COLOURDLG=no
2295 DEFAULT_wxUSE_DIRDLG=no
2296 DEFAULT_wxUSE_FILEDLG=no
2297 DEFAULT_wxUSE_FINDREPLDLG=no
2298 DEFAULT_wxUSE_FONTDLG=no
2299 DEFAULT_wxUSE_MSGDLG=no
2300 DEFAULT_wxUSE_NUMBERDLG=no
2301 DEFAULT_wxUSE_TEXTDLG=no
2302 DEFAULT_wxUSE_SPLASH=no
2303 DEFAULT_wxUSE_STARTUP_TIPS=no
2304 DEFAULT_wxUSE_PROGRESSDLG=no
2305 DEFAULT_wxUSE_WIZARDDLG=no
2306
2307 DEFAULT_wxUSE_MENUS=no
2308 DEFAULT_wxUSE_MINIFRAME=no
2309 DEFAULT_wxUSE_HTML=no
91dea314 2310 DEFAULT_wxUSE_RICHTEXT=no
9a8f0513 2311 DEFAULT_wxUSE_XRC=no
3f60522a 2312 DEFAULT_wxUSE_AUI=no
646b6ec1 2313 DEFAULT_wxUSE_WEBKIT=no
a848cd7e
SC
2314 DEFAULT_wxUSE_FILESYSTEM=no
2315 DEFAULT_wxUSE_FS_INET=no
2316 DEFAULT_wxUSE_FS_ZIP=no
2317 DEFAULT_wxUSE_BUSYINFO=no
9e8e867f 2318 DEFAULT_wxUSE_ARCHIVE_STREAMS=no
a848cd7e 2319 DEFAULT_wxUSE_ZIPSTREAM=no
a848cd7e
SC
2320 DEFAULT_wxUSE_VALIDATORS=no
2321
2322 DEFAULT_wxUSE_ACCEL=no
3ea50042 2323 DEFAULT_wxUSE_ANIMATIONCTRL=no
a848cd7e
SC
2324 DEFAULT_wxUSE_BUTTON=no
2325 DEFAULT_wxUSE_BMPBUTTON=no
95a46303 2326 DEFAULT_wxUSE_BITMAPCOMBOBOX=no
a848cd7e
SC
2327 DEFAULT_wxUSE_CALCTRL=no
2328 DEFAULT_wxUSE_CARET=no
2329 DEFAULT_wxUSE_CHECKBOX=no
2330 DEFAULT_wxUSE_CHECKLST=no
2331 DEFAULT_wxUSE_CHOICE=no
92bbdbcd 2332 DEFAULT_wxUSE_CHOICEBOOK=no
e9263684 2333 DEFAULT_wxUSE_COLOURPICKERCTRL=no
a848cd7e 2334 DEFAULT_wxUSE_COMBOBOX=no
a57d600f 2335 DEFAULT_wxUSE_COMBOCTRL=no
da98e9be 2336 DEFAULT_wxUSE_DATEPICKCTRL=no
a848cd7e 2337 DEFAULT_wxUSE_DISPLAY=no
88bbc332 2338 DEFAULT_wxUSE_DETECT_SM=no
e9263684
VZ
2339 DEFAULT_wxUSE_DIRPICKERCTRL=no
2340 DEFAULT_wxUSE_FILEPICKERCTRL=no
2341 DEFAULT_wxUSE_FONTPICKERCTRL=no
a848cd7e 2342 DEFAULT_wxUSE_GAUGE=no
f43426c1 2343 DEFAULT_wxUSE_GRAPHICS_CONTEXT=no
a848cd7e 2344 DEFAULT_wxUSE_GRID=no
6954625c 2345 DEFAULT_wxUSE_HYPERLINKCTRL=no
20e34ecc 2346 DEFAULT_wxUSE_DATAVIEWCTRL=no
a848cd7e
SC
2347 DEFAULT_wxUSE_IMAGLIST=no
2348 DEFAULT_wxUSE_LISTBOOK=no
2349 DEFAULT_wxUSE_LISTBOX=no
2350 DEFAULT_wxUSE_LISTCTRL=no
2351 DEFAULT_wxUSE_NOTEBOOK=no
a57d600f 2352 DEFAULT_wxUSE_ODCOMBOBOX=no
a848cd7e
SC
2353 DEFAULT_wxUSE_RADIOBOX=no
2354 DEFAULT_wxUSE_RADIOBTN=no
2355 DEFAULT_wxUSE_SASH=no
2356 DEFAULT_wxUSE_SCROLLBAR=no
2357 DEFAULT_wxUSE_SLIDER=no
2358 DEFAULT_wxUSE_SPINBTN=no
2359 DEFAULT_wxUSE_SPINCTRL=no
2360 DEFAULT_wxUSE_SPLITTER=no
2361 DEFAULT_wxUSE_STATBMP=no
2362 DEFAULT_wxUSE_STATBOX=no
2363 DEFAULT_wxUSE_STATLINE=no
2364 DEFAULT_wxUSE_STATTEXT=no
2365 DEFAULT_wxUSE_STATUSBAR=yes
f10e38c4 2366 DEFAULT_wxUSE_TAB_DIALOG=no
a848cd7e
SC
2367 DEFAULT_wxUSE_TEXTCTRL=no
2368 DEFAULT_wxUSE_TOGGLEBTN=no
2369 DEFAULT_wxUSE_TOOLBAR=no
2370 DEFAULT_wxUSE_TOOLBAR_NATIVE=no
0093c2fc 2371 DEFAULT_wxUSE_TREEBOOK=no
5ec3bc43 2372 DEFAULT_wxUSE_TOOLBOOK=no
a848cd7e
SC
2373 DEFAULT_wxUSE_TREECTRL=no
2374 DEFAULT_wxUSE_POPUPWIN=no
2375 DEFAULT_wxUSE_TIPWINDOW=no
2376
2377 DEFAULT_wxUSE_UNICODE=no
2378 DEFAULT_wxUSE_UNICODE_MSLU=no
2379 DEFAULT_wxUSE_WCSRTOMBS=no
2380
2381 DEFAULT_wxUSE_PALETTE=no
2382 DEFAULT_wxUSE_IMAGE=no
2383 DEFAULT_wxUSE_GIF=no
2384 DEFAULT_wxUSE_PCX=no
2385 DEFAULT_wxUSE_PNM=no
2386 DEFAULT_wxUSE_IFF=no
2387 DEFAULT_wxUSE_XPM=no
2388 DEFAULT_wxUSE_ICO_CUR=no
2389 DEFAULT_wxUSE_ACCESSIBILITY=no
2390
2391 DEFAULT_wxUSE_MONOLITHIC=no
2392 DEFAULT_wxUSE_PLUGINS=no
2393 DEFAULT_wxUSE_OFFICIAL_BUILD=no
2394else
2395 DEFAULT_wxUSE_UNIVERSAL=no
2396 DEFAULT_wxUSE_STL=no
2397
2398 DEFAULT_wxUSE_NANOX=no
2399
2400 DEFAULT_wxUSE_THREADS=yes
2401
5acfd58d 2402 DEFAULT_wxUSE_SHARED=${DEFAULT_wxUSE_SHARED:-yes}
a848cd7e
SC
2403 DEFAULT_wxUSE_OPTIMISE=yes
2404 DEFAULT_wxUSE_PROFILE=no
2405 DEFAULT_wxUSE_NO_DEPS=no
2406 DEFAULT_wxUSE_NO_RTTI=no
2407 DEFAULT_wxUSE_NO_EXCEPTIONS=no
7afc46ab 2408 DEFAULT_wxUSE_UNIVERSAL_BINARY=no
ffa0583f 2409 DEFAULT_wxUSE_RPATH=yes
a848cd7e
SC
2410 DEFAULT_wxUSE_PERMISSIVE=no
2411 DEFAULT_wxUSE_DEBUG_FLAG=no
2412 DEFAULT_wxUSE_DEBUG_INFO=no
2413 DEFAULT_wxUSE_DEBUG_GDB=no
2414 DEFAULT_wxUSE_MEM_TRACING=no
2415 DEFAULT_wxUSE_DEBUG_CONTEXT=no
2416 DEFAULT_wxUSE_DMALLOC=no
2417 DEFAULT_wxUSE_APPLE_IEEE=yes
2418
2419 DEFAULT_wxUSE_EXCEPTIONS=yes
2420 DEFAULT_wxUSE_LOG=yes
2421 DEFAULT_wxUSE_LOGWINDOW=yes
2422 DEFAULT_wxUSE_LOGGUI=yes
2423 DEFAULT_wxUSE_LOGDIALOG=yes
2424
2425 DEFAULT_wxUSE_GUI=yes
2426
2427 DEFAULT_wxUSE_REGEX=yes
2428 DEFAULT_wxUSE_XML=yes
2429 DEFAULT_wxUSE_EXPAT=yes
2430 DEFAULT_wxUSE_ZLIB=yes
2431 DEFAULT_wxUSE_LIBPNG=yes
2432 DEFAULT_wxUSE_LIBJPEG=yes
2433 DEFAULT_wxUSE_LIBTIFF=yes
2434 DEFAULT_wxUSE_LIBXPM=yes
2435 DEFAULT_wxUSE_LIBMSPACK=yes
2436 DEFAULT_wxUSE_LIBSDL=no
a03b8b04 2437 DEFAULT_wxUSE_LIBGNOMEPRINT=no
2b850ae1 2438 DEFAULT_wxUSE_LIBGNOMEVFS=no
3565d135 2439 DEFAULT_wxUSE_LIBHILDON=no
a848cd7e 2440 DEFAULT_wxUSE_ODBC=no
52cb607e 2441 DEFAULT_wxUSE_OPENGL=no
a848cd7e
SC
2442
2443 DEFAULT_wxUSE_ON_FATAL_EXCEPTION=yes
eaff0f0d 2444 DEFAULT_wxUSE_STACKWALKER=yes
6671c68b 2445 DEFAULT_wxUSE_DEBUGREPORT=yes
a848cd7e 2446 DEFAULT_wxUSE_SNGLINST_CHECKER=yes
a03b8b04
RD
2447 DEFAULT_wxUSE_STD_IOSTREAM=$DEFAULT_STD_FLAG
2448 DEFAULT_wxUSE_STD_STRING=$DEFAULT_STD_FLAG
a848cd7e
SC
2449 DEFAULT_wxUSE_CMDLINE_PARSER=yes
2450 DEFAULT_wxUSE_DATETIME=yes
2451 DEFAULT_wxUSE_TIMER=yes
2452 DEFAULT_wxUSE_STOPWATCH=yes
2453 DEFAULT_wxUSE_FILE=yes
2454 DEFAULT_wxUSE_FFILE=yes
07158944 2455 DEFAULT_wxUSE_STDPATHS=yes
a848cd7e
SC
2456 DEFAULT_wxUSE_TEXTBUFFER=yes
2457 DEFAULT_wxUSE_TEXTFILE=yes
2458 DEFAULT_wxUSE_SOUND=yes
3b57de8b 2459 DEFAULT_wxUSE_MEDIACTRL=no
f10e38c4 2460 DEFAULT_wxUSE_GSTREAMER8=no
15291213 2461 DEFAULT_wxUSE_PRINTF_POS_PARAMS=yes
a848cd7e
SC
2462 DEFAULT_wxUSE_INTL=yes
2463 DEFAULT_wxUSE_CONFIG=yes
2464 DEFAULT_wxUSE_FONTMAP=yes
2465 DEFAULT_wxUSE_STREAMS=yes
2466 DEFAULT_wxUSE_SOCKETS=yes
2467 DEFAULT_wxUSE_OLE=yes
2468 DEFAULT_wxUSE_DATAOBJ=yes
2469 DEFAULT_wxUSE_DIALUP_MANAGER=yes
2470 DEFAULT_wxUSE_JOYSTICK=yes
2471 DEFAULT_wxUSE_DYNLIB_CLASS=yes
2472 DEFAULT_wxUSE_DYNAMIC_LOADER=yes
2473 DEFAULT_wxUSE_LONGLONG=yes
2474 DEFAULT_wxUSE_GEOMETRY=yes
2475
2476 DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=yes
2477 DEFAULT_wxUSE_NORMALIZED_PS_FONTS=yes
2478 DEFAULT_wxUSE_POSTSCRIPT=yes
2479
2480 DEFAULT_wxUSE_CLIPBOARD=yes
2481 DEFAULT_wxUSE_TOOLTIPS=yes
2482 DEFAULT_wxUSE_DRAG_AND_DROP=yes
2483 DEFAULT_wxUSE_DRAGIMAGE=yes
2484 DEFAULT_wxUSE_SPLINES=yes
fbe2ca43 2485 DEFAULT_wxUSE_MOUSEWHEEL=yes
a848cd7e 2486
8a7b1113 2487 DEFAULT_wxUSE_MDI=yes
a848cd7e
SC
2488 DEFAULT_wxUSE_MDI_ARCHITECTURE=yes
2489 DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=yes
2490 DEFAULT_wxUSE_PRINTING_ARCHITECTURE=yes
2491
2492 DEFAULT_wxUSE_RESOURCES=no
2493 DEFAULT_wxUSE_CONSTRAINTS=yes
2494 DEFAULT_wxUSE_IPC=yes
2495 DEFAULT_wxUSE_HELP=yes
2496 DEFAULT_wxUSE_MS_HTML_HELP=yes
2497 DEFAULT_wxUSE_WXHTML_HELP=yes
2498 DEFAULT_wxUSE_TREELAYOUT=yes
2499 DEFAULT_wxUSE_METAFILE=yes
2500 DEFAULT_wxUSE_MIMETYPE=yes
2501 DEFAULT_wxUSE_SYSTEM_OPTIONS=yes
2502 DEFAULT_wxUSE_PROTOCOL=yes
2503 DEFAULT_wxUSE_PROTOCOL_HTTP=yes
2504 DEFAULT_wxUSE_PROTOCOL_FTP=yes
2505 DEFAULT_wxUSE_PROTOCOL_FILE=yes
2506 DEFAULT_wxUSE_URL=yes
ca5c6ac3 2507 DEFAULT_wxUSE_VARIANT=yes
a848cd7e 2508
319c5ed4 2509 DEFAULT_wxUSE_ABOUTDLG=yes
a848cd7e
SC
2510 DEFAULT_wxUSE_COMMONDLGS=yes
2511 DEFAULT_wxUSE_CHOICEDLG=yes
2512 DEFAULT_wxUSE_COLOURDLG=yes
2513 DEFAULT_wxUSE_DIRDLG=yes
2514 DEFAULT_wxUSE_FILEDLG=yes
2515 DEFAULT_wxUSE_FINDREPLDLG=yes
2516 DEFAULT_wxUSE_FONTDLG=yes
2517 DEFAULT_wxUSE_MSGDLG=yes
2518 DEFAULT_wxUSE_NUMBERDLG=yes
2519 DEFAULT_wxUSE_TEXTDLG=yes
2520 DEFAULT_wxUSE_SPLASH=yes
2521 DEFAULT_wxUSE_STARTUP_TIPS=yes
2522 DEFAULT_wxUSE_PROGRESSDLG=yes
2523 DEFAULT_wxUSE_WIZARDDLG=yes
2524
2525 DEFAULT_wxUSE_MENUS=yes
2526 DEFAULT_wxUSE_MINIFRAME=yes
2527 DEFAULT_wxUSE_HTML=yes
91dea314 2528 DEFAULT_wxUSE_RICHTEXT=yes
9a8f0513 2529 DEFAULT_wxUSE_XRC=yes
3f60522a 2530 DEFAULT_wxUSE_AUI=yes
646b6ec1 2531 DEFAULT_wxUSE_WEBKIT=yes
a848cd7e
SC
2532 DEFAULT_wxUSE_FILESYSTEM=yes
2533 DEFAULT_wxUSE_FS_INET=yes
2534 DEFAULT_wxUSE_FS_ZIP=yes
2535 DEFAULT_wxUSE_BUSYINFO=yes
9e8e867f 2536 DEFAULT_wxUSE_ARCHIVE_STREAMS=yes
a848cd7e 2537 DEFAULT_wxUSE_ZIPSTREAM=yes
a848cd7e
SC
2538 DEFAULT_wxUSE_VALIDATORS=yes
2539
2540 DEFAULT_wxUSE_ACCEL=yes
3ea50042 2541 DEFAULT_wxUSE_ANIMATIONCTRL=yes
a848cd7e
SC
2542 DEFAULT_wxUSE_BUTTON=yes
2543 DEFAULT_wxUSE_BMPBUTTON=yes
95a46303 2544 DEFAULT_wxUSE_BITMAPCOMBOBOX=yes
a848cd7e
SC
2545 DEFAULT_wxUSE_CALCTRL=yes
2546 DEFAULT_wxUSE_CARET=yes
2547 DEFAULT_wxUSE_CHECKBOX=yes
2548 DEFAULT_wxUSE_CHECKLST=yes
2549 DEFAULT_wxUSE_CHOICE=yes
92bbdbcd 2550 DEFAULT_wxUSE_CHOICEBOOK=yes
e9263684 2551 DEFAULT_wxUSE_COLOURPICKERCTRL=yes
a848cd7e 2552 DEFAULT_wxUSE_COMBOBOX=yes
a57d600f 2553 DEFAULT_wxUSE_COMBOCTRL=yes
da98e9be 2554 DEFAULT_wxUSE_DATEPICKCTRL=yes
a848cd7e 2555 DEFAULT_wxUSE_DISPLAY=yes
88bbc332 2556 DEFAULT_wxUSE_DETECT_SM=yes
e9263684
VZ
2557 DEFAULT_wxUSE_DIRPICKERCTRL=yes
2558 DEFAULT_wxUSE_FILEPICKERCTRL=yes
2559 DEFAULT_wxUSE_FONTPICKERCTRL=yes
a848cd7e
SC
2560 DEFAULT_wxUSE_GAUGE=yes
2561 DEFAULT_wxUSE_GRID=yes
f43426c1 2562 DEFAULT_wxUSE_GRAPHICS_CONTEXT=no
6954625c 2563 DEFAULT_wxUSE_HYPERLINKCTRL=yes
20e34ecc 2564 DEFAULT_wxUSE_DATAVIEWCTRL=no
a848cd7e
SC
2565 DEFAULT_wxUSE_IMAGLIST=yes
2566 DEFAULT_wxUSE_LISTBOOK=yes
2567 DEFAULT_wxUSE_LISTBOX=yes
2568 DEFAULT_wxUSE_LISTCTRL=yes
2569 DEFAULT_wxUSE_NOTEBOOK=yes
a57d600f 2570 DEFAULT_wxUSE_ODCOMBOBOX=yes
a848cd7e
SC
2571 DEFAULT_wxUSE_RADIOBOX=yes
2572 DEFAULT_wxUSE_RADIOBTN=yes
2573 DEFAULT_wxUSE_SASH=yes
2574 DEFAULT_wxUSE_SCROLLBAR=yes
2575 DEFAULT_wxUSE_SLIDER=yes
2576 DEFAULT_wxUSE_SPINBTN=yes
2577 DEFAULT_wxUSE_SPINCTRL=yes
2578 DEFAULT_wxUSE_SPLITTER=yes
2579 DEFAULT_wxUSE_STATBMP=yes
2580 DEFAULT_wxUSE_STATBOX=yes
2581 DEFAULT_wxUSE_STATLINE=yes
2582 DEFAULT_wxUSE_STATTEXT=yes
2583 DEFAULT_wxUSE_STATUSBAR=yes
f10e38c4 2584 DEFAULT_wxUSE_TAB_DIALOG=no
a848cd7e
SC
2585 DEFAULT_wxUSE_TEXTCTRL=yes
2586 DEFAULT_wxUSE_TOGGLEBTN=yes
2587 DEFAULT_wxUSE_TOOLBAR=yes
2588 DEFAULT_wxUSE_TOOLBAR_NATIVE=yes
0093c2fc 2589 DEFAULT_wxUSE_TREEBOOK=yes
5ec3bc43 2590 DEFAULT_wxUSE_TOOLBOOK=yes
a848cd7e
SC
2591 DEFAULT_wxUSE_TREECTRL=yes
2592 DEFAULT_wxUSE_POPUPWIN=yes
2593 DEFAULT_wxUSE_TIPWINDOW=yes
2594
78de529b 2595 DEFAULT_wxUSE_UNICODE=no
a848cd7e
SC
2596 DEFAULT_wxUSE_UNICODE_MSLU=yes
2597 DEFAULT_wxUSE_WCSRTOMBS=no
2598
2599 DEFAULT_wxUSE_PALETTE=yes
2600 DEFAULT_wxUSE_IMAGE=yes
2601 DEFAULT_wxUSE_GIF=yes
2602 DEFAULT_wxUSE_PCX=yes
2603 DEFAULT_wxUSE_IFF=no
2604 DEFAULT_wxUSE_PNM=yes
2605 DEFAULT_wxUSE_XPM=yes
2606 DEFAULT_wxUSE_ICO_CUR=yes
2607 DEFAULT_wxUSE_ACCESSIBILITY=no
2608
2609 DEFAULT_wxUSE_MONOLITHIC=no
2610 DEFAULT_wxUSE_PLUGINS=no
2611 DEFAULT_wxUSE_OFFICIAL_BUILD=no
9f45f08e 2612
f34ca037 2613 DEFAULT_wxUSE_GTK2=yes
a848cd7e
SC
2614fi
2615
2616
2617
f34ca037 2618
a848cd7e
SC
2619for toolkit in `echo $ALL_TOOLKITS`; do
2620 LINE=`grep "wxUSE_$toolkit=" ${wx_arg_cache_file}`
2621 if test "x$LINE" != "x" ; then
2622 has_toolkit_in_cache=1
2623 eval "DEFAULT_$LINE"
2624 eval "CACHE_$toolkit=1"
f34ca037
MW
2625
2626 LINE=`grep "wx${toolkit}_VERSION=" ${wx_arg_cache_file}`
2627 if test "x$LINE" != "x" ; then
2628 eval "DEFAULT_$LINE"
2629 fi
a848cd7e
SC
2630 fi
2631done
2632
2633
2634
2635 enablestring=
2636 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gui" >&5
2637echo $ECHO_N "checking for --${enablestring:-enable}-gui... $ECHO_C" >&6
2638 no_cache=0
2639 # Check whether --enable-gui or --disable-gui was given.
2640if test "${enable_gui+set}" = set; then
2641 enableval="$enable_gui"
2642
2643 if test "$enableval" = yes; then
2644 ac_cv_use_gui='wxUSE_GUI=yes'
2645 else
2646 ac_cv_use_gui='wxUSE_GUI=no'
2647 fi
2648
2649else
2650
2651 LINE=`grep "wxUSE_GUI" ${wx_arg_cache_file}`
2652 if test "x$LINE" != x ; then
2653 eval "DEFAULT_$LINE"
2654 else
2655 no_cache=1
2656 fi
2657
2658 ac_cv_use_gui='wxUSE_GUI='$DEFAULT_wxUSE_GUI
2659
2660fi;
2661
2662 eval "$ac_cv_use_gui"
2663 if test "$no_cache" != 1; then
2664 echo $ac_cv_use_gui >> ${wx_arg_cache_file}.tmp
2665 fi
2666
2667 if test "$wxUSE_GUI" = yes; then
2668 echo "$as_me:$LINENO: result: yes" >&5
2669echo "${ECHO_T}yes" >&6
2670 else
2671 echo "$as_me:$LINENO: result: no" >&5
2672echo "${ECHO_T}no" >&6
2673 fi
2674
2675
2676 enablestring=
2677 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-monolithic" >&5
2678echo $ECHO_N "checking for --${enablestring:-enable}-monolithic... $ECHO_C" >&6
2679 no_cache=0
2680 # Check whether --enable-monolithic or --disable-monolithic was given.
2681if test "${enable_monolithic+set}" = set; then
2682 enableval="$enable_monolithic"
2683
2684 if test "$enableval" = yes; then
2685 ac_cv_use_monolithic='wxUSE_MONOLITHIC=yes'
2686 else
2687 ac_cv_use_monolithic='wxUSE_MONOLITHIC=no'
2688 fi
2689
2690else
2691
2692 LINE=`grep "wxUSE_MONOLITHIC" ${wx_arg_cache_file}`
2693 if test "x$LINE" != x ; then
2694 eval "DEFAULT_$LINE"
2695 else
2696 no_cache=1
2697 fi
2698
2699 ac_cv_use_monolithic='wxUSE_MONOLITHIC='$DEFAULT_wxUSE_MONOLITHIC
2700
2701fi;
2702
2703 eval "$ac_cv_use_monolithic"
2704 if test "$no_cache" != 1; then
2705 echo $ac_cv_use_monolithic >> ${wx_arg_cache_file}.tmp
2706 fi
2707
2708 if test "$wxUSE_MONOLITHIC" = yes; then
2709 echo "$as_me:$LINENO: result: yes" >&5
2710echo "${ECHO_T}yes" >&6
2711 else
2712 echo "$as_me:$LINENO: result: no" >&5
2713echo "${ECHO_T}no" >&6
2714 fi
2715
2716
2717 enablestring=
2718 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-plugins" >&5
2719echo $ECHO_N "checking for --${enablestring:-enable}-plugins... $ECHO_C" >&6
2720 no_cache=0
2721 # Check whether --enable-plugins or --disable-plugins was given.
2722if test "${enable_plugins+set}" = set; then
2723 enableval="$enable_plugins"
2724
2725 if test "$enableval" = yes; then
2726 ac_cv_use_plugins='wxUSE_PLUGINS=yes'
2727 else
2728 ac_cv_use_plugins='wxUSE_PLUGINS=no'
2729 fi
2730
2731else
2732
2733 LINE=`grep "wxUSE_PLUGINS" ${wx_arg_cache_file}`
2734 if test "x$LINE" != x ; then
2735 eval "DEFAULT_$LINE"
2736 else
2737 no_cache=1
2738 fi
2739
2740 ac_cv_use_plugins='wxUSE_PLUGINS='$DEFAULT_wxUSE_PLUGINS
2741
2742fi;
2743
2744 eval "$ac_cv_use_plugins"
2745 if test "$no_cache" != 1; then
2746 echo $ac_cv_use_plugins >> ${wx_arg_cache_file}.tmp
2747 fi
2748
2749 if test "$wxUSE_PLUGINS" = yes; then
2750 echo "$as_me:$LINENO: result: yes" >&5
2751echo "${ECHO_T}yes" >&6
2752 else
2753 echo "$as_me:$LINENO: result: no" >&5
2754echo "${ECHO_T}no" >&6
2755 fi
2756
2757
1c14217d
VZ
2758 withstring=without
2759 echo "$as_me:$LINENO: checking for --${withstring:-with}-subdirs" >&5
2760echo $ECHO_N "checking for --${withstring:-with}-subdirs... $ECHO_C" >&6
2761 no_cache=0
2762
2763# Check whether --with-subdirs or --without-subdirs was given.
2764if test "${with_subdirs+set}" = set; then
2765 withval="$with_subdirs"
2766
2767 if test "$withval" = yes; then
2768 ac_cv_use_subdirs='wxWITH_SUBDIRS=yes'
2769 else
2770 ac_cv_use_subdirs='wxWITH_SUBDIRS=no'
2771 fi
2772
2773else
2774
2775 LINE=`grep "wxWITH_SUBDIRS" ${wx_arg_cache_file}`
2776 if test "x$LINE" != x ; then
2777 eval "DEFAULT_$LINE"
2778 else
2779 no_cache=1
2780 fi
2781
2782 ac_cv_use_subdirs='wxWITH_SUBDIRS='$DEFAULT_wxWITH_SUBDIRS
2783
2784fi;
2785
2786 eval "$ac_cv_use_subdirs"
2787 if test "$no_cache" != 1; then
2788 echo $ac_cv_use_subdirs >> ${wx_arg_cache_file}.tmp
2789 fi
2790
2791 if test "$wxWITH_SUBDIRS" = yes; then
2792 echo "$as_me:$LINENO: result: yes" >&5
2793echo "${ECHO_T}yes" >&6
2794 else
2795 echo "$as_me:$LINENO: result: no" >&5
2796echo "${ECHO_T}no" >&6
2797 fi
2798
2799
a848cd7e
SC
2800if test "$wxUSE_GUI" = "yes"; then
2801
2802
2803 enablestring=
2804 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-universal" >&5
2805echo $ECHO_N "checking for --${enablestring:-enable}-universal... $ECHO_C" >&6
2806 no_cache=0
2807 # Check whether --enable-universal or --disable-universal was given.
2808if test "${enable_universal+set}" = set; then
2809 enableval="$enable_universal"
2810
2811 if test "$enableval" = yes; then
2812 ac_cv_use_universal='wxUSE_UNIVERSAL=yes'
2813 else
2814 ac_cv_use_universal='wxUSE_UNIVERSAL=no'
2815 fi
2816
2817else
2818
2819 LINE=`grep "wxUSE_UNIVERSAL" ${wx_arg_cache_file}`
2820 if test "x$LINE" != x ; then
2821 eval "DEFAULT_$LINE"
2822 else
2823 no_cache=1
2824 fi
2825
2826 ac_cv_use_universal='wxUSE_UNIVERSAL='$DEFAULT_wxUSE_UNIVERSAL
2827
2828fi;
2829
2830 eval "$ac_cv_use_universal"
2831 if test "$no_cache" != 1; then
2832 echo $ac_cv_use_universal >> ${wx_arg_cache_file}.tmp
2833 fi
2834
2835 if test "$wxUSE_UNIVERSAL" = yes; then
2836 echo "$as_me:$LINENO: result: yes" >&5
2837echo "${ECHO_T}yes" >&6
2838 else
2839 echo "$as_me:$LINENO: result: no" >&5
2840echo "${ECHO_T}no" >&6
2841 fi
2842
2843
2844# Check whether --with-gtk or --without-gtk was given.
2845if test "${with_gtk+set}" = set; then
2846 withval="$with_gtk"
2847 wxUSE_GTK="$withval" CACHE_GTK=1 TOOLKIT_GIVEN=1
2848fi;
2849
2850# Check whether --with-motif or --without-motif was given.
2851if test "${with_motif+set}" = set; then
2852 withval="$with_motif"
2853 wxUSE_MOTIF="$withval" CACHE_MOTIF=1 TOOLKIT_GIVEN=1
2854fi;
2855
2856# Check whether --with-mac or --without-mac was given.
2857if test "${with_mac+set}" = set; then
2858 withval="$with_mac"
c228d3a4 2859 wxUSE_MAC="$withval" CACHE_MAC=1 TOOLKIT_GIVEN=1
a848cd7e
SC
2860fi;
2861
2862# Check whether --with-cocoa or --without-cocoa was given.
2863if test "${with_cocoa+set}" = set; then
2864 withval="$with_cocoa"
c228d3a4 2865 wxUSE_COCOA="$withval" CACHE_COCOA=1 TOOLKIT_GIVEN=1
a848cd7e
SC
2866fi;
2867
2868# Check whether --with-wine or --without-wine was given.
2869if test "${with_wine+set}" = set; then
2870 withval="$with_wine"
2871 wxUSE_WINE="$withval" CACHE_WINE=1
2872fi;
2873
2874# Check whether --with-msw or --without-msw was given.
2875if test "${with_msw+set}" = set; then
2876 withval="$with_msw"
2877 wxUSE_MSW="$withval" CACHE_MSW=1 TOOLKIT_GIVEN=1
2878fi;
2879
2880# Check whether --with-pm or --without-pm was given.
2881if test "${with_pm+set}" = set; then
2882 withval="$with_pm"
2883 wxUSE_PM="$withval" CACHE_PM=1 TOOLKIT_GIVEN=1
2884fi;
2885
2886# Check whether --with-mgl or --without-mgl was given.
2887if test "${with_mgl+set}" = set; then
2888 withval="$with_mgl"
2889 wxUSE_MGL="$withval" wxUSE_UNIVERSAL="yes" CACHE_MGL=1 TOOLKIT_GIVEN=1
2890fi;
2891
b3c86150
VS
2892# Check whether --with-directfb or --without-directfb was given.
2893if test "${with_directfb+set}" = set; then
2894 withval="$with_directfb"
2895 wxUSE_DFB="$withval" wxUSE_UNIVERSAL="yes" CACHE_DFB=1 TOOLKIT_GIVEN=1
2896fi;
2897
a848cd7e
SC
2898# Check whether --with-microwin or --without-microwin was given.
2899if test "${with_microwin+set}" = set; then
2900 withval="$with_microwin"
2901 wxUSE_MICROWIN="$withval" CACHE_MICROWIN=1 TOOLKIT_GIVEN=1
2902fi;
2903
2904# Check whether --with-x11 or --without-x11 was given.
2905if test "${with_x11+set}" = set; then
2906 withval="$with_x11"
2907 wxUSE_X11="$withval" wxUSE_UNIVERSAL="yes" CACHE_X11=1 TOOLKIT_GIVEN=1
2908fi;
2909
2910 enablestring=
2911 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-nanox" >&5
2912echo $ECHO_N "checking for --${enablestring:-enable}-nanox... $ECHO_C" >&6
2913 no_cache=0
2914 # Check whether --enable-nanox or --disable-nanox was given.
2915if test "${enable_nanox+set}" = set; then
2916 enableval="$enable_nanox"
2917
2918 if test "$enableval" = yes; then
2919 ac_cv_use_nanox='wxUSE_NANOX=yes'
2920 else
2921 ac_cv_use_nanox='wxUSE_NANOX=no'
2922 fi
2923
2924else
2925
2926 LINE=`grep "wxUSE_NANOX" ${wx_arg_cache_file}`
2927 if test "x$LINE" != x ; then
2928 eval "DEFAULT_$LINE"
2929 else
2930 no_cache=1
2931 fi
2932
2933 ac_cv_use_nanox='wxUSE_NANOX='$DEFAULT_wxUSE_NANOX
2934
2935fi;
2936
2937 eval "$ac_cv_use_nanox"
2938 if test "$no_cache" != 1; then
2939 echo $ac_cv_use_nanox >> ${wx_arg_cache_file}.tmp
2940 fi
2941
2942 if test "$wxUSE_NANOX" = yes; then
2943 echo "$as_me:$LINENO: result: yes" >&5
2944echo "${ECHO_T}yes" >&6
2945 else
2946 echo "$as_me:$LINENO: result: no" >&5
2947echo "${ECHO_T}no" >&6
2948 fi
2949
2950
f34ca037
MW
2951# Check whether --enable-gtk2 or --disable-gtk2 was given.
2952if test "${enable_gtk2+set}" = set; then
2953 enableval="$enable_gtk2"
2954 wxUSE_GTK2="$enableval"
2955fi;
a848cd7e 2956
a848cd7e
SC
2957 enablestring=
2958 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gpe" >&5
2959echo $ECHO_N "checking for --${enablestring:-enable}-gpe... $ECHO_C" >&6
2960 no_cache=0
2961 # Check whether --enable-gpe or --disable-gpe was given.
2962if test "${enable_gpe+set}" = set; then
2963 enableval="$enable_gpe"
2964
2965 if test "$enableval" = yes; then
2966 ac_cv_use_gpe='wxUSE_GPE=yes'
2967 else
2968 ac_cv_use_gpe='wxUSE_GPE=no'
2969 fi
2970
2971else
2972
2973 LINE=`grep "wxUSE_GPE" ${wx_arg_cache_file}`
2974 if test "x$LINE" != x ; then
2975 eval "DEFAULT_$LINE"
2976 else
2977 no_cache=1
2978 fi
2979
2980 ac_cv_use_gpe='wxUSE_GPE='$DEFAULT_wxUSE_GPE
2981
2982fi;
2983
2984 eval "$ac_cv_use_gpe"
2985 if test "$no_cache" != 1; then
2986 echo $ac_cv_use_gpe >> ${wx_arg_cache_file}.tmp
2987 fi
2988
2989 if test "$wxUSE_GPE" = yes; then
2990 echo "$as_me:$LINENO: result: yes" >&5
2991echo "${ECHO_T}yes" >&6
2992 else
2993 echo "$as_me:$LINENO: result: no" >&5
2994echo "${ECHO_T}no" >&6
2995 fi
2996
2997
2998
2999 echo "$as_me:$LINENO: checking for --with-libpng" >&5
3000echo $ECHO_N "checking for --with-libpng... $ECHO_C" >&6
3001 no_cache=0
3002
3003# Check whether --with-libpng or --without-libpng was given.
3004if test "${with_libpng+set}" = set; then
3005 withval="$with_libpng"
3006
3007 if test "$withval" = yes; then
3008 ac_cv_use_libpng='wxUSE_LIBPNG=yes'
3009 elif test "$withval" = no; then
3010 ac_cv_use_libpng='wxUSE_LIBPNG=no'
3011 elif test "$withval" = sys; then
3012 ac_cv_use_libpng='wxUSE_LIBPNG=sys'
3013 elif test "$withval" = builtin; then
3014 ac_cv_use_libpng='wxUSE_LIBPNG=builtin'
3015 else
3016 { { echo "$as_me:$LINENO: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&5
3017echo "$as_me: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&2;}
3018 { (exit 1); exit 1; }; }
3019 fi
3020
3021else
3022
3023 LINE=`grep "wxUSE_LIBPNG" ${wx_arg_cache_file}`
3024 if test "x$LINE" != x ; then
3025 eval "DEFAULT_$LINE"
3026 else
3027 no_cache=1
3028 fi
3029
3030 ac_cv_use_libpng='wxUSE_LIBPNG='$DEFAULT_wxUSE_LIBPNG
3031
3032fi;
3033
3034 eval "$ac_cv_use_libpng"
3035 if test "$no_cache" != 1; then
3036 echo $ac_cv_use_libpng >> ${wx_arg_cache_file}.tmp
3037 fi
3038
3039 if test "$wxUSE_LIBPNG" = yes; then
3040 echo "$as_me:$LINENO: result: yes" >&5
3041echo "${ECHO_T}yes" >&6
3042 elif test "$wxUSE_LIBPNG" = no; then
3043 echo "$as_me:$LINENO: result: no" >&5
3044echo "${ECHO_T}no" >&6
3045 elif test "$wxUSE_LIBPNG" = sys; then
3046 echo "$as_me:$LINENO: result: system version" >&5
3047echo "${ECHO_T}system version" >&6
3048 elif test "$wxUSE_LIBPNG" = builtin; then
3049 echo "$as_me:$LINENO: result: builtin version" >&5
3050echo "${ECHO_T}builtin version" >&6
3051 else
3052 { { echo "$as_me:$LINENO: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&5
3053echo "$as_me: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&2;}
3054 { (exit 1); exit 1; }; }
3055 fi
3056
3057
3058 echo "$as_me:$LINENO: checking for --with-libjpeg" >&5
3059echo $ECHO_N "checking for --with-libjpeg... $ECHO_C" >&6
3060 no_cache=0
3061
3062# Check whether --with-libjpeg or --without-libjpeg was given.
3063if test "${with_libjpeg+set}" = set; then
3064 withval="$with_libjpeg"
3065
3066 if test "$withval" = yes; then
3067 ac_cv_use_libjpeg='wxUSE_LIBJPEG=yes'
3068 elif test "$withval" = no; then
3069 ac_cv_use_libjpeg='wxUSE_LIBJPEG=no'
3070 elif test "$withval" = sys; then
3071 ac_cv_use_libjpeg='wxUSE_LIBJPEG=sys'
3072 elif test "$withval" = builtin; then
3073 ac_cv_use_libjpeg='wxUSE_LIBJPEG=builtin'
3074 else
3075 { { echo "$as_me:$LINENO: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&5
3076echo "$as_me: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&2;}
3077 { (exit 1); exit 1; }; }
3078 fi
3079
3080else
3081
3082 LINE=`grep "wxUSE_LIBJPEG" ${wx_arg_cache_file}`
3083 if test "x$LINE" != x ; then
3084 eval "DEFAULT_$LINE"
3085 else
3086 no_cache=1
3087 fi
3088
3089 ac_cv_use_libjpeg='wxUSE_LIBJPEG='$DEFAULT_wxUSE_LIBJPEG
3090
3091fi;
3092
3093 eval "$ac_cv_use_libjpeg"
3094 if test "$no_cache" != 1; then
3095 echo $ac_cv_use_libjpeg >> ${wx_arg_cache_file}.tmp
3096 fi
3097
3098 if test "$wxUSE_LIBJPEG" = yes; then
3099 echo "$as_me:$LINENO: result: yes" >&5
3100echo "${ECHO_T}yes" >&6
3101 elif test "$wxUSE_LIBJPEG" = no; then
3102 echo "$as_me:$LINENO: result: no" >&5
3103echo "${ECHO_T}no" >&6
3104 elif test "$wxUSE_LIBJPEG" = sys; then
3105 echo "$as_me:$LINENO: result: system version" >&5
3106echo "${ECHO_T}system version" >&6
3107 elif test "$wxUSE_LIBJPEG" = builtin; then
3108 echo "$as_me:$LINENO: result: builtin version" >&5
3109echo "${ECHO_T}builtin version" >&6
3110 else
3111 { { echo "$as_me:$LINENO: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&5
3112echo "$as_me: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&2;}
3113 { (exit 1); exit 1; }; }
3114 fi
3115
3116
3117 echo "$as_me:$LINENO: checking for --with-libtiff" >&5
3118echo $ECHO_N "checking for --with-libtiff... $ECHO_C" >&6
3119 no_cache=0
3120
3121# Check whether --with-libtiff or --without-libtiff was given.
3122if test "${with_libtiff+set}" = set; then
3123 withval="$with_libtiff"
3124
3125 if test "$withval" = yes; then
3126 ac_cv_use_libtiff='wxUSE_LIBTIFF=yes'
3127 elif test "$withval" = no; then
3128 ac_cv_use_libtiff='wxUSE_LIBTIFF=no'
3129 elif test "$withval" = sys; then
3130 ac_cv_use_libtiff='wxUSE_LIBTIFF=sys'
3131 elif test "$withval" = builtin; then
3132 ac_cv_use_libtiff='wxUSE_LIBTIFF=builtin'
3133 else
3134 { { echo "$as_me:$LINENO: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&5
3135echo "$as_me: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&2;}
3136 { (exit 1); exit 1; }; }
3137 fi
3138
3139else
3140
3141 LINE=`grep "wxUSE_LIBTIFF" ${wx_arg_cache_file}`
3142 if test "x$LINE" != x ; then
3143 eval "DEFAULT_$LINE"
3144 else
3145 no_cache=1
3146 fi
3147
3148 ac_cv_use_libtiff='wxUSE_LIBTIFF='$DEFAULT_wxUSE_LIBTIFF
3149
3150fi;
3151
3152 eval "$ac_cv_use_libtiff"
3153 if test "$no_cache" != 1; then
3154 echo $ac_cv_use_libtiff >> ${wx_arg_cache_file}.tmp
3155 fi
3156
3157 if test "$wxUSE_LIBTIFF" = yes; then
3158 echo "$as_me:$LINENO: result: yes" >&5
3159echo "${ECHO_T}yes" >&6
3160 elif test "$wxUSE_LIBTIFF" = no; then
3161 echo "$as_me:$LINENO: result: no" >&5
3162echo "${ECHO_T}no" >&6
3163 elif test "$wxUSE_LIBTIFF" = sys; then
3164 echo "$as_me:$LINENO: result: system version" >&5
3165echo "${ECHO_T}system version" >&6
3166 elif test "$wxUSE_LIBTIFF" = builtin; then
3167 echo "$as_me:$LINENO: result: builtin version" >&5
3168echo "${ECHO_T}builtin version" >&6
3169 else
3170 { { echo "$as_me:$LINENO: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&5
3171echo "$as_me: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&2;}
3172 { (exit 1); exit 1; }; }
3173 fi
3174
3175
3176 echo "$as_me:$LINENO: checking for --with-libxpm" >&5
3177echo $ECHO_N "checking for --with-libxpm... $ECHO_C" >&6
3178 no_cache=0
3179
3180# Check whether --with-libxpm or --without-libxpm was given.
3181if test "${with_libxpm+set}" = set; then
3182 withval="$with_libxpm"
3183
3184 if test "$withval" = yes; then
3185 ac_cv_use_libxpm='wxUSE_LIBXPM=yes'
3186 elif test "$withval" = no; then
3187 ac_cv_use_libxpm='wxUSE_LIBXPM=no'
3188 elif test "$withval" = sys; then
3189 ac_cv_use_libxpm='wxUSE_LIBXPM=sys'
3190 elif test "$withval" = builtin; then
3191 ac_cv_use_libxpm='wxUSE_LIBXPM=builtin'
3192 else
3193 { { echo "$as_me:$LINENO: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&5
3194echo "$as_me: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&2;}
3195 { (exit 1); exit 1; }; }
3196 fi
3197
3198else
3199
3200 LINE=`grep "wxUSE_LIBXPM" ${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_libxpm='wxUSE_LIBXPM='$DEFAULT_wxUSE_LIBXPM
3208
3209fi;
3210
3211 eval "$ac_cv_use_libxpm"
3212 if test "$no_cache" != 1; then
3213 echo $ac_cv_use_libxpm >> ${wx_arg_cache_file}.tmp
3214 fi
3215
3216 if test "$wxUSE_LIBXPM" = yes; then
3217 echo "$as_me:$LINENO: result: yes" >&5
3218echo "${ECHO_T}yes" >&6
3219 elif test "$wxUSE_LIBXPM" = no; then
3220 echo "$as_me:$LINENO: result: no" >&5
3221echo "${ECHO_T}no" >&6
3222 elif test "$wxUSE_LIBXPM" = sys; then
3223 echo "$as_me:$LINENO: result: system version" >&5
3224echo "${ECHO_T}system version" >&6
3225 elif test "$wxUSE_LIBXPM" = builtin; then
3226 echo "$as_me:$LINENO: result: builtin version" >&5
3227echo "${ECHO_T}builtin version" >&6
3228 else
3229 { { echo "$as_me:$LINENO: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&5
3230echo "$as_me: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&2;}
3231 { (exit 1); exit 1; }; }
3232 fi
3233
3234
1c14217d
VZ
3235 withstring=
3236 echo "$as_me:$LINENO: checking for --${withstring:-with}-libmspack" >&5
3237echo $ECHO_N "checking for --${withstring:-with}-libmspack... $ECHO_C" >&6
a848cd7e
SC
3238 no_cache=0
3239
3240# Check whether --with-libmspack or --without-libmspack was given.
3241if test "${with_libmspack+set}" = set; then
3242 withval="$with_libmspack"
3243
3244 if test "$withval" = yes; then
3245 ac_cv_use_libmspack='wxUSE_LIBMSPACK=yes'
3246 else
3247 ac_cv_use_libmspack='wxUSE_LIBMSPACK=no'
3248 fi
3249
3250else
3251
3252 LINE=`grep "wxUSE_LIBMSPACK" ${wx_arg_cache_file}`
3253 if test "x$LINE" != x ; then
3254 eval "DEFAULT_$LINE"
3255 else
3256 no_cache=1
3257 fi
3258
3259 ac_cv_use_libmspack='wxUSE_LIBMSPACK='$DEFAULT_wxUSE_LIBMSPACK
3260
3261fi;
3262
3263 eval "$ac_cv_use_libmspack"
3264 if test "$no_cache" != 1; then
3265 echo $ac_cv_use_libmspack >> ${wx_arg_cache_file}.tmp
3266 fi
3267
3268 if test "$wxUSE_LIBMSPACK" = yes; then
3269 echo "$as_me:$LINENO: result: yes" >&5
3270echo "${ECHO_T}yes" >&6
3271 else
3272 echo "$as_me:$LINENO: result: no" >&5
3273echo "${ECHO_T}no" >&6
3274 fi
3275
3276
1c14217d
VZ
3277 withstring=
3278 echo "$as_me:$LINENO: checking for --${withstring:-with}-sdl" >&5
3279echo $ECHO_N "checking for --${withstring:-with}-sdl... $ECHO_C" >&6
a848cd7e
SC
3280 no_cache=0
3281
3282# Check whether --with-sdl or --without-sdl was given.
3283if test "${with_sdl+set}" = set; then
3284 withval="$with_sdl"
3285
3286 if test "$withval" = yes; then
3287 ac_cv_use_sdl='wxUSE_LIBSDL=yes'
3288 else
3289 ac_cv_use_sdl='wxUSE_LIBSDL=no'
3290 fi
3291
3292else
3293
3294 LINE=`grep "wxUSE_LIBSDL" ${wx_arg_cache_file}`
3295 if test "x$LINE" != x ; then
3296 eval "DEFAULT_$LINE"
3297 else
3298 no_cache=1
3299 fi
3300
3301 ac_cv_use_sdl='wxUSE_LIBSDL='$DEFAULT_wxUSE_LIBSDL
3302
3303fi;
3304
3305 eval "$ac_cv_use_sdl"
3306 if test "$no_cache" != 1; then
3307 echo $ac_cv_use_sdl >> ${wx_arg_cache_file}.tmp
3308 fi
3309
3310 if test "$wxUSE_LIBSDL" = yes; then
3311 echo "$as_me:$LINENO: result: yes" >&5
3312echo "${ECHO_T}yes" >&6
3313 else
3314 echo "$as_me:$LINENO: result: no" >&5
3315echo "${ECHO_T}no" >&6
3316 fi
3317
3318
1c14217d
VZ
3319 withstring=
3320 echo "$as_me:$LINENO: checking for --${withstring:-with}-gnomeprint" >&5
3321echo $ECHO_N "checking for --${withstring:-with}-gnomeprint... $ECHO_C" >&6
d1c38808
VZ
3322 no_cache=0
3323
3324# Check whether --with-gnomeprint or --without-gnomeprint was given.
3325if test "${with_gnomeprint+set}" = set; then
3326 withval="$with_gnomeprint"
3327
3328 if test "$withval" = yes; then
3329 ac_cv_use_gnomeprint='wxUSE_LIBGNOMEPRINT=yes'
3330 else
3331 ac_cv_use_gnomeprint='wxUSE_LIBGNOMEPRINT=no'
3332 fi
3333
3334else
3335
3336 LINE=`grep "wxUSE_LIBGNOMEPRINT" ${wx_arg_cache_file}`
3337 if test "x$LINE" != x ; then
3338 eval "DEFAULT_$LINE"
3339 else
3340 no_cache=1
3341 fi
3342
3343 ac_cv_use_gnomeprint='wxUSE_LIBGNOMEPRINT='$DEFAULT_wxUSE_LIBGNOMEPRINT
3344
3345fi;
3346
3347 eval "$ac_cv_use_gnomeprint"
3348 if test "$no_cache" != 1; then
3349 echo $ac_cv_use_gnomeprint >> ${wx_arg_cache_file}.tmp
3350 fi
3351
3352 if test "$wxUSE_LIBGNOMEPRINT" = yes; then
3353 echo "$as_me:$LINENO: result: yes" >&5
3354echo "${ECHO_T}yes" >&6
3355 else
3356 echo "$as_me:$LINENO: result: no" >&5
3357echo "${ECHO_T}no" >&6
3358 fi
3359
3360
2b850ae1
RR
3361 withstring=
3362 echo "$as_me:$LINENO: checking for --${withstring:-with}-gnomevfs" >&5
3363echo $ECHO_N "checking for --${withstring:-with}-gnomevfs... $ECHO_C" >&6
3364 no_cache=0
3365
3366# Check whether --with-gnomevfs or --without-gnomevfs was given.
3367if test "${with_gnomevfs+set}" = set; then
3368 withval="$with_gnomevfs"
3369
3370 if test "$withval" = yes; then
3371 ac_cv_use_gnomevfs='wxUSE_LIBGNOMEVFS=yes'
3372 else
3373 ac_cv_use_gnomevfs='wxUSE_LIBGNOMEVFS=no'
3374 fi
3375
3376else
3377
3378 LINE=`grep "wxUSE_LIBGNOMEVFS" ${wx_arg_cache_file}`
3379 if test "x$LINE" != x ; then
3380 eval "DEFAULT_$LINE"
3381 else
3382 no_cache=1
3383 fi
3384
3385 ac_cv_use_gnomevfs='wxUSE_LIBGNOMEVFS='$DEFAULT_wxUSE_LIBGNOMEVFS
3386
3387fi;
3388
3389 eval "$ac_cv_use_gnomevfs"
3390 if test "$no_cache" != 1; then
3391 echo $ac_cv_use_gnomevfs >> ${wx_arg_cache_file}.tmp
3392 fi
3393
3394 if test "$wxUSE_LIBGNOMEVFS" = yes; then
3395 echo "$as_me:$LINENO: result: yes" >&5
3396echo "${ECHO_T}yes" >&6
3397 else
3398 echo "$as_me:$LINENO: result: no" >&5
3399echo "${ECHO_T}no" >&6
3400 fi
3401
3402
3565d135
RR
3403 withstring=
3404 echo "$as_me:$LINENO: checking for --${withstring:-with}-hildon" >&5
3405echo $ECHO_N "checking for --${withstring:-with}-hildon... $ECHO_C" >&6
3406 no_cache=0
3407
3408# Check whether --with-hildon or --without-hildon was given.
3409if test "${with_hildon+set}" = set; then
3410 withval="$with_hildon"
3411
3412 if test "$withval" = yes; then
3413 ac_cv_use_hildon='wxUSE_LIBHILDON=yes'
3414 else
3415 ac_cv_use_hildon='wxUSE_LIBHILDON=no'
3416 fi
3417
3418else
3419
3420 LINE=`grep "wxUSE_LIBHILDON" ${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_hildon='wxUSE_LIBHILDON='$DEFAULT_wxUSE_LIBHILDON
3428
3429fi;
3430
3431 eval "$ac_cv_use_hildon"
3432 if test "$no_cache" != 1; then
3433 echo $ac_cv_use_hildon >> ${wx_arg_cache_file}.tmp
3434 fi
3435
3436 if test "$wxUSE_LIBHILDON" = yes; then
3437 echo "$as_me:$LINENO: result: yes" >&5
3438echo "${ECHO_T}yes" >&6
3439 else
3440 echo "$as_me:$LINENO: result: no" >&5
3441echo "${ECHO_T}no" >&6
3442 fi
3443
3444
1c14217d
VZ
3445 withstring=
3446 echo "$as_me:$LINENO: checking for --${withstring:-with}-opengl" >&5
3447echo $ECHO_N "checking for --${withstring:-with}-opengl... $ECHO_C" >&6
a848cd7e
SC
3448 no_cache=0
3449
3450# Check whether --with-opengl or --without-opengl was given.
3451if test "${with_opengl+set}" = set; then
3452 withval="$with_opengl"
3453
3454 if test "$withval" = yes; then
3455 ac_cv_use_opengl='wxUSE_OPENGL=yes'
3456 else
3457 ac_cv_use_opengl='wxUSE_OPENGL=no'
3458 fi
3459
3460else
3461
3462 LINE=`grep "wxUSE_OPENGL" ${wx_arg_cache_file}`
3463 if test "x$LINE" != x ; then
3464 eval "DEFAULT_$LINE"
3465 else
3466 no_cache=1
3467 fi
3468
3469 ac_cv_use_opengl='wxUSE_OPENGL='$DEFAULT_wxUSE_OPENGL
3470
3471fi;
3472
3473 eval "$ac_cv_use_opengl"
3474 if test "$no_cache" != 1; then
3475 echo $ac_cv_use_opengl >> ${wx_arg_cache_file}.tmp
3476 fi
3477
3478 if test "$wxUSE_OPENGL" = yes; then
3479 echo "$as_me:$LINENO: result: yes" >&5
3480echo "${ECHO_T}yes" >&6
3481 else
3482 echo "$as_me:$LINENO: result: no" >&5
3483echo "${ECHO_T}no" >&6
3484 fi
3485
3486
4353a8df
VZ
3487if test "$wxUSE_UNIVERSAL" = "yes"; then
3488
3489# Check whether --with-themes or --without-themes was given.
3490if test "${with_themes+set}" = set; then
3491 withval="$with_themes"
3492 wxUNIV_THEMES="$withval"
3493fi;
3494fi
3495
a848cd7e
SC
3496fi
3497
3498
1c14217d
VZ
3499 withstring=
3500 echo "$as_me:$LINENO: checking for --${withstring:-with}-dmalloc" >&5
3501echo $ECHO_N "checking for --${withstring:-with}-dmalloc... $ECHO_C" >&6
a848cd7e
SC
3502 no_cache=0
3503
3504# Check whether --with-dmalloc or --without-dmalloc was given.
3505if test "${with_dmalloc+set}" = set; then
3506 withval="$with_dmalloc"
3507
3508 if test "$withval" = yes; then
3509 ac_cv_use_dmalloc='wxUSE_DMALLOC=yes'
3510 else
3511 ac_cv_use_dmalloc='wxUSE_DMALLOC=no'
3512 fi
3513
3514else
3515
3516 LINE=`grep "wxUSE_DMALLOC" ${wx_arg_cache_file}`
3517 if test "x$LINE" != x ; then
3518 eval "DEFAULT_$LINE"
3519 else
3520 no_cache=1
3521 fi
3522
3523 ac_cv_use_dmalloc='wxUSE_DMALLOC='$DEFAULT_wxUSE_DMALLOC
3524
3525fi;
3526
3527 eval "$ac_cv_use_dmalloc"
3528 if test "$no_cache" != 1; then
3529 echo $ac_cv_use_dmalloc >> ${wx_arg_cache_file}.tmp
3530 fi
3531
3532 if test "$wxUSE_DMALLOC" = yes; then
3533 echo "$as_me:$LINENO: result: yes" >&5
3534echo "${ECHO_T}yes" >&6
3535 else
3536 echo "$as_me:$LINENO: result: no" >&5
3537echo "${ECHO_T}no" >&6
3538 fi
3539
3540
3541 echo "$as_me:$LINENO: checking for --with-regex" >&5
3542echo $ECHO_N "checking for --with-regex... $ECHO_C" >&6
3543 no_cache=0
3544
3545# Check whether --with-regex or --without-regex was given.
3546if test "${with_regex+set}" = set; then
3547 withval="$with_regex"
3548
3549 if test "$withval" = yes; then
3550 ac_cv_use_regex='wxUSE_REGEX=yes'
3551 elif test "$withval" = no; then
3552 ac_cv_use_regex='wxUSE_REGEX=no'
3553 elif test "$withval" = sys; then
3554 ac_cv_use_regex='wxUSE_REGEX=sys'
3555 elif test "$withval" = builtin; then
3556 ac_cv_use_regex='wxUSE_REGEX=builtin'
3557 else
3558 { { echo "$as_me:$LINENO: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&5
3559echo "$as_me: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&2;}
3560 { (exit 1); exit 1; }; }
3561 fi
3562
3563else
3564
3565 LINE=`grep "wxUSE_REGEX" ${wx_arg_cache_file}`
3566 if test "x$LINE" != x ; then
3567 eval "DEFAULT_$LINE"
3568 else
3569 no_cache=1
3570 fi
3571
3572 ac_cv_use_regex='wxUSE_REGEX='$DEFAULT_wxUSE_REGEX
3573
3574fi;
3575
3576 eval "$ac_cv_use_regex"
3577 if test "$no_cache" != 1; then
3578 echo $ac_cv_use_regex >> ${wx_arg_cache_file}.tmp
3579 fi
3580
3581 if test "$wxUSE_REGEX" = yes; then
3582 echo "$as_me:$LINENO: result: yes" >&5
3583echo "${ECHO_T}yes" >&6
3584 elif test "$wxUSE_REGEX" = no; then
3585 echo "$as_me:$LINENO: result: no" >&5
3586echo "${ECHO_T}no" >&6
3587 elif test "$wxUSE_REGEX" = sys; then
3588 echo "$as_me:$LINENO: result: system version" >&5
3589echo "${ECHO_T}system version" >&6
3590 elif test "$wxUSE_REGEX" = builtin; then
3591 echo "$as_me:$LINENO: result: builtin version" >&5
3592echo "${ECHO_T}builtin version" >&6
3593 else
3594 { { echo "$as_me:$LINENO: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&5
3595echo "$as_me: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&2;}
3596 { (exit 1); exit 1; }; }
3597 fi
3598
3599
3600 echo "$as_me:$LINENO: checking for --with-zlib" >&5
3601echo $ECHO_N "checking for --with-zlib... $ECHO_C" >&6
3602 no_cache=0
3603
3604# Check whether --with-zlib or --without-zlib was given.
3605if test "${with_zlib+set}" = set; then
3606 withval="$with_zlib"
3607
3608 if test "$withval" = yes; then
3609 ac_cv_use_zlib='wxUSE_ZLIB=yes'
3610 elif test "$withval" = no; then
3611 ac_cv_use_zlib='wxUSE_ZLIB=no'
3612 elif test "$withval" = sys; then
3613 ac_cv_use_zlib='wxUSE_ZLIB=sys'
3614 elif test "$withval" = builtin; then
3615 ac_cv_use_zlib='wxUSE_ZLIB=builtin'
3616 else
3617 { { echo "$as_me:$LINENO: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&5
3618echo "$as_me: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&2;}
3619 { (exit 1); exit 1; }; }
3620 fi
3621
3622else
3623
3624 LINE=`grep "wxUSE_ZLIB" ${wx_arg_cache_file}`
3625 if test "x$LINE" != x ; then
3626 eval "DEFAULT_$LINE"
3627 else
3628 no_cache=1
3629 fi
3630
3631 ac_cv_use_zlib='wxUSE_ZLIB='$DEFAULT_wxUSE_ZLIB
3632
3633fi;
3634
3635 eval "$ac_cv_use_zlib"
3636 if test "$no_cache" != 1; then
3637 echo $ac_cv_use_zlib >> ${wx_arg_cache_file}.tmp
3638 fi
3639
3640 if test "$wxUSE_ZLIB" = yes; then
3641 echo "$as_me:$LINENO: result: yes" >&5
3642echo "${ECHO_T}yes" >&6
3643 elif test "$wxUSE_ZLIB" = no; then
3644 echo "$as_me:$LINENO: result: no" >&5
3645echo "${ECHO_T}no" >&6
3646 elif test "$wxUSE_ZLIB" = sys; then
3647 echo "$as_me:$LINENO: result: system version" >&5
3648echo "${ECHO_T}system version" >&6
3649 elif test "$wxUSE_ZLIB" = builtin; then
3650 echo "$as_me:$LINENO: result: builtin version" >&5
3651echo "${ECHO_T}builtin version" >&6
3652 else
3653 { { echo "$as_me:$LINENO: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&5
3654echo "$as_me: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&2;}
3655 { (exit 1); exit 1; }; }
3656 fi
3657
3658
3659 echo "$as_me:$LINENO: checking for --with-odbc" >&5
3660echo $ECHO_N "checking for --with-odbc... $ECHO_C" >&6
3661 no_cache=0
3662
3663# Check whether --with-odbc or --without-odbc was given.
3664if test "${with_odbc+set}" = set; then
3665 withval="$with_odbc"
3666
3667 if test "$withval" = yes; then
3668 ac_cv_use_odbc='wxUSE_ODBC=yes'
3669 elif test "$withval" = no; then
3670 ac_cv_use_odbc='wxUSE_ODBC=no'
3671 elif test "$withval" = sys; then
3672 ac_cv_use_odbc='wxUSE_ODBC=sys'
3673 elif test "$withval" = builtin; then
3674 ac_cv_use_odbc='wxUSE_ODBC=builtin'
3675 else
3676 { { echo "$as_me:$LINENO: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&5
3677echo "$as_me: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&2;}
3678 { (exit 1); exit 1; }; }
3679 fi
3680
3681else
3682
3683 LINE=`grep "wxUSE_ODBC" ${wx_arg_cache_file}`
3684 if test "x$LINE" != x ; then
3685 eval "DEFAULT_$LINE"
3686 else
3687 no_cache=1
3688 fi
3689
3690 ac_cv_use_odbc='wxUSE_ODBC='$DEFAULT_wxUSE_ODBC
3691
3692fi;
3693
3694 eval "$ac_cv_use_odbc"
3695 if test "$no_cache" != 1; then
3696 echo $ac_cv_use_odbc >> ${wx_arg_cache_file}.tmp
3697 fi
3698
3699 if test "$wxUSE_ODBC" = yes; then
3700 echo "$as_me:$LINENO: result: yes" >&5
3701echo "${ECHO_T}yes" >&6
3702 elif test "$wxUSE_ODBC" = no; then
3703 echo "$as_me:$LINENO: result: no" >&5
3704echo "${ECHO_T}no" >&6
3705 elif test "$wxUSE_ODBC" = sys; then
3706 echo "$as_me:$LINENO: result: system version" >&5
3707echo "${ECHO_T}system version" >&6
3708 elif test "$wxUSE_ODBC" = builtin; then
3709 echo "$as_me:$LINENO: result: builtin version" >&5
3710echo "${ECHO_T}builtin version" >&6
3711 else
3712 { { echo "$as_me:$LINENO: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&5
3713echo "$as_me: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&2;}
3714 { (exit 1); exit 1; }; }
3715 fi
3716
3717
3718 echo "$as_me:$LINENO: checking for --with-expat" >&5
3719echo $ECHO_N "checking for --with-expat... $ECHO_C" >&6
3720 no_cache=0
3721
3722# Check whether --with-expat or --without-expat was given.
3723if test "${with_expat+set}" = set; then
3724 withval="$with_expat"
3725
3726 if test "$withval" = yes; then
3727 ac_cv_use_expat='wxUSE_EXPAT=yes'
3728 elif test "$withval" = no; then
3729 ac_cv_use_expat='wxUSE_EXPAT=no'
3730 elif test "$withval" = sys; then
3731 ac_cv_use_expat='wxUSE_EXPAT=sys'
3732 elif test "$withval" = builtin; then
3733 ac_cv_use_expat='wxUSE_EXPAT=builtin'
3734 else
3735 { { echo "$as_me:$LINENO: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&5
3736echo "$as_me: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&2;}
3737 { (exit 1); exit 1; }; }
3738 fi
3739
3740else
3741
3742 LINE=`grep "wxUSE_EXPAT" ${wx_arg_cache_file}`
3743 if test "x$LINE" != x ; then
3744 eval "DEFAULT_$LINE"
3745 else
3746 no_cache=1
3747 fi
3748
3749 ac_cv_use_expat='wxUSE_EXPAT='$DEFAULT_wxUSE_EXPAT
3750
3751fi;
3752
3753 eval "$ac_cv_use_expat"
3754 if test "$no_cache" != 1; then
3755 echo $ac_cv_use_expat >> ${wx_arg_cache_file}.tmp
3756 fi
3757
3758 if test "$wxUSE_EXPAT" = yes; then
3759 echo "$as_me:$LINENO: result: yes" >&5
3760echo "${ECHO_T}yes" >&6
3761 elif test "$wxUSE_EXPAT" = no; then
3762 echo "$as_me:$LINENO: result: no" >&5
3763echo "${ECHO_T}no" >&6
3764 elif test "$wxUSE_EXPAT" = sys; then
3765 echo "$as_me:$LINENO: result: system version" >&5
3766echo "${ECHO_T}system version" >&6
3767 elif test "$wxUSE_EXPAT" = builtin; then
3768 echo "$as_me:$LINENO: result: builtin version" >&5
3769echo "${ECHO_T}builtin version" >&6
3770 else
3771 { { echo "$as_me:$LINENO: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&5
3772echo "$as_me: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&2;}
3773 { (exit 1); exit 1; }; }
3774 fi
3775
3776
3777
3778
3779 enablestring=
3780 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-shared" >&5
3781echo $ECHO_N "checking for --${enablestring:-enable}-shared... $ECHO_C" >&6
3782 no_cache=0
3783 # Check whether --enable-shared or --disable-shared was given.
3784if test "${enable_shared+set}" = set; then
3785 enableval="$enable_shared"
3786
3787 if test "$enableval" = yes; then
3788 ac_cv_use_shared='wxUSE_SHARED=yes'
3789 else
3790 ac_cv_use_shared='wxUSE_SHARED=no'
3791 fi
3792
3793else
3794
3795 LINE=`grep "wxUSE_SHARED" ${wx_arg_cache_file}`
3796 if test "x$LINE" != x ; then
3797 eval "DEFAULT_$LINE"
3798 else
3799 no_cache=1
3800 fi
3801
3802 ac_cv_use_shared='wxUSE_SHARED='$DEFAULT_wxUSE_SHARED
3803
3804fi;
3805
3806 eval "$ac_cv_use_shared"
3807 if test "$no_cache" != 1; then
3808 echo $ac_cv_use_shared >> ${wx_arg_cache_file}.tmp
3809 fi
3810
3811 if test "$wxUSE_SHARED" = yes; then
3812 echo "$as_me:$LINENO: result: yes" >&5
3813echo "${ECHO_T}yes" >&6
3814 else
3815 echo "$as_me:$LINENO: result: no" >&5
3816echo "${ECHO_T}no" >&6
3817 fi
3818
3819
3820 enablestring=
3821 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-optimise" >&5
3822echo $ECHO_N "checking for --${enablestring:-enable}-optimise... $ECHO_C" >&6
3823 no_cache=0
3824 # Check whether --enable-optimise or --disable-optimise was given.
3825if test "${enable_optimise+set}" = set; then
3826 enableval="$enable_optimise"
3827
3828 if test "$enableval" = yes; then
3829 ac_cv_use_optimise='wxUSE_OPTIMISE=yes'
3830 else
3831 ac_cv_use_optimise='wxUSE_OPTIMISE=no'
3832 fi
3833
3834else
3835
3836 LINE=`grep "wxUSE_OPTIMISE" ${wx_arg_cache_file}`
3837 if test "x$LINE" != x ; then
3838 eval "DEFAULT_$LINE"
3839 else
3840 no_cache=1
3841 fi
3842
3843 ac_cv_use_optimise='wxUSE_OPTIMISE='$DEFAULT_wxUSE_OPTIMISE
3844
3845fi;
3846
3847 eval "$ac_cv_use_optimise"
3848 if test "$no_cache" != 1; then
3849 echo $ac_cv_use_optimise >> ${wx_arg_cache_file}.tmp
3850 fi
3851
3852 if test "$wxUSE_OPTIMISE" = yes; then
3853 echo "$as_me:$LINENO: result: yes" >&5
3854echo "${ECHO_T}yes" >&6
3855 else
3856 echo "$as_me:$LINENO: result: no" >&5
3857echo "${ECHO_T}no" >&6
3858 fi
3859
3860
3861 enablestring=
3862 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug" >&5
3863echo $ECHO_N "checking for --${enablestring:-enable}-debug... $ECHO_C" >&6
3864 no_cache=0
3865 # Check whether --enable-debug or --disable-debug was given.
3866if test "${enable_debug+set}" = set; then
3867 enableval="$enable_debug"
3868
3869 if test "$enableval" = yes; then
3870 ac_cv_use_debug='wxUSE_DEBUG=yes'
3871 else
3872 ac_cv_use_debug='wxUSE_DEBUG=no'
3873 fi
3874
3875else
3876
3877 LINE=`grep "wxUSE_DEBUG" ${wx_arg_cache_file}`
3878 if test "x$LINE" != x ; then
3879 eval "DEFAULT_$LINE"
3880 else
3881 no_cache=1
3882 fi
3883
3884 ac_cv_use_debug='wxUSE_DEBUG='$DEFAULT_wxUSE_DEBUG
3885
3886fi;
3887
3888 eval "$ac_cv_use_debug"
3889 if test "$no_cache" != 1; then
3890 echo $ac_cv_use_debug >> ${wx_arg_cache_file}.tmp
3891 fi
3892
3893 if test "$wxUSE_DEBUG" = yes; then
3894 echo "$as_me:$LINENO: result: yes" >&5
3895echo "${ECHO_T}yes" >&6
3896 else
3897 echo "$as_me:$LINENO: result: no" >&5
3898echo "${ECHO_T}no" >&6
3899 fi
3900
3901
3902 enablestring=
3903 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stl" >&5
3904echo $ECHO_N "checking for --${enablestring:-enable}-stl... $ECHO_C" >&6
3905 no_cache=0
3906 # Check whether --enable-stl or --disable-stl was given.
3907if test "${enable_stl+set}" = set; then
3908 enableval="$enable_stl"
3909
3910 if test "$enableval" = yes; then
3911 ac_cv_use_stl='wxUSE_STL=yes'
3912 else
3913 ac_cv_use_stl='wxUSE_STL=no'
3914 fi
3915
3916else
3917
3918 LINE=`grep "wxUSE_STL" ${wx_arg_cache_file}`
3919 if test "x$LINE" != x ; then
3920 eval "DEFAULT_$LINE"
3921 else
3922 no_cache=1
3923 fi
3924
3925 ac_cv_use_stl='wxUSE_STL='$DEFAULT_wxUSE_STL
3926
3927fi;
3928
3929 eval "$ac_cv_use_stl"
3930 if test "$no_cache" != 1; then
3931 echo $ac_cv_use_stl >> ${wx_arg_cache_file}.tmp
3932 fi
3933
3934 if test "$wxUSE_STL" = yes; then
3935 echo "$as_me:$LINENO: result: yes" >&5
3936echo "${ECHO_T}yes" >&6
3937 else
3938 echo "$as_me:$LINENO: result: no" >&5
3939echo "${ECHO_T}no" >&6
3940 fi
3941
3942if test "$USE_OS2" = "1"; then
69120ee4 3943 DEFAULT_wxUSE_OMF=no
a848cd7e
SC
3944
3945 enablestring=
3946 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-omf" >&5
3947echo $ECHO_N "checking for --${enablestring:-enable}-omf... $ECHO_C" >&6
3948 no_cache=0
3949 # Check whether --enable-omf or --disable-omf was given.
3950if test "${enable_omf+set}" = set; then
3951 enableval="$enable_omf"
3952
3953 if test "$enableval" = yes; then
3954 ac_cv_use_omf='wxUSE_OMF=yes'
3955 else
3956 ac_cv_use_omf='wxUSE_OMF=no'
3957 fi
3958
3959else
3960
3961 LINE=`grep "wxUSE_OMF" ${wx_arg_cache_file}`
3962 if test "x$LINE" != x ; then
3963 eval "DEFAULT_$LINE"
3964 else
3965 no_cache=1
3966 fi
3967
3968 ac_cv_use_omf='wxUSE_OMF='$DEFAULT_wxUSE_OMF
3969
3970fi;
3971
3972 eval "$ac_cv_use_omf"
3973 if test "$no_cache" != 1; then
3974 echo $ac_cv_use_omf >> ${wx_arg_cache_file}.tmp
3975 fi
3976
3977 if test "$wxUSE_OMF" = yes; then
3978 echo "$as_me:$LINENO: result: yes" >&5
3979echo "${ECHO_T}yes" >&6
3980 else
3981 echo "$as_me:$LINENO: result: no" >&5
3982echo "${ECHO_T}no" >&6
3983 fi
3984
3985fi
3986
3987if test "$wxUSE_DEBUG" = "yes"; then
3988 DEFAULT_wxUSE_DEBUG_FLAG=yes
3989 DEFAULT_wxUSE_DEBUG_INFO=yes
3990 BUILD=debug
3991elif test "$wxUSE_DEBUG" = "no"; then
3992 DEFAULT_wxUSE_DEBUG_FLAG=no
3993 DEFAULT_wxUSE_DEBUG_INFO=no
3994 BUILD=release
3995fi
3996
3997
3998 enablestring=
3999 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_flag" >&5
4000echo $ECHO_N "checking for --${enablestring:-enable}-debug_flag... $ECHO_C" >&6
4001 no_cache=0
4002 # Check whether --enable-debug_flag or --disable-debug_flag was given.
4003if test "${enable_debug_flag+set}" = set; then
4004 enableval="$enable_debug_flag"
4005
4006 if test "$enableval" = yes; then
4007 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=yes'
4008 else
4009 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=no'
4010 fi
4011
4012else
4013
4014 LINE=`grep "wxUSE_DEBUG_FLAG" ${wx_arg_cache_file}`
4015 if test "x$LINE" != x ; then
4016 eval "DEFAULT_$LINE"
4017 else
4018 no_cache=1
4019 fi
4020
4021 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG='$DEFAULT_wxUSE_DEBUG_FLAG
4022
4023fi;
4024
4025 eval "$ac_cv_use_debug_flag"
4026 if test "$no_cache" != 1; then
4027 echo $ac_cv_use_debug_flag >> ${wx_arg_cache_file}.tmp
4028 fi
4029
4030 if test "$wxUSE_DEBUG_FLAG" = yes; then
4031 echo "$as_me:$LINENO: result: yes" >&5
4032echo "${ECHO_T}yes" >&6
4033 else
4034 echo "$as_me:$LINENO: result: no" >&5
4035echo "${ECHO_T}no" >&6
4036 fi
4037
4038
4039 enablestring=
4040 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_info" >&5
4041echo $ECHO_N "checking for --${enablestring:-enable}-debug_info... $ECHO_C" >&6
4042 no_cache=0
4043 # Check whether --enable-debug_info or --disable-debug_info was given.
4044if test "${enable_debug_info+set}" = set; then
4045 enableval="$enable_debug_info"
4046
4047 if test "$enableval" = yes; then
4048 ac_cv_use_debug_info='wxUSE_DEBUG_INFO=yes'
4049 else
4050 ac_cv_use_debug_info='wxUSE_DEBUG_INFO=no'
4051 fi
4052
4053else
4054
4055 LINE=`grep "wxUSE_DEBUG_INFO" ${wx_arg_cache_file}`
4056 if test "x$LINE" != x ; then
4057 eval "DEFAULT_$LINE"
4058 else
4059 no_cache=1
4060 fi
4061
4062 ac_cv_use_debug_info='wxUSE_DEBUG_INFO='$DEFAULT_wxUSE_DEBUG_INFO
4063
4064fi;
4065
4066 eval "$ac_cv_use_debug_info"
4067 if test "$no_cache" != 1; then
4068 echo $ac_cv_use_debug_info >> ${wx_arg_cache_file}.tmp
4069 fi
4070
4071 if test "$wxUSE_DEBUG_INFO" = yes; then
4072 echo "$as_me:$LINENO: result: yes" >&5
4073echo "${ECHO_T}yes" >&6
4074 else
4075 echo "$as_me:$LINENO: result: no" >&5
4076echo "${ECHO_T}no" >&6
4077 fi
4078
4079
4080 enablestring=
4081 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_gdb" >&5
4082echo $ECHO_N "checking for --${enablestring:-enable}-debug_gdb... $ECHO_C" >&6
4083 no_cache=0
4084 # Check whether --enable-debug_gdb or --disable-debug_gdb was given.
4085if test "${enable_debug_gdb+set}" = set; then
4086 enableval="$enable_debug_gdb"
4087
4088 if test "$enableval" = yes; then
4089 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=yes'
4090 else
4091 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=no'
4092 fi
4093
4094else
4095
4096 LINE=`grep "wxUSE_DEBUG_GDB" ${wx_arg_cache_file}`
4097 if test "x$LINE" != x ; then
4098 eval "DEFAULT_$LINE"
4099 else
4100 no_cache=1
4101 fi
4102
4103 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB='$DEFAULT_wxUSE_DEBUG_GDB
4104
4105fi;
4106
4107 eval "$ac_cv_use_debug_gdb"
4108 if test "$no_cache" != 1; then
4109 echo $ac_cv_use_debug_gdb >> ${wx_arg_cache_file}.tmp
4110 fi
4111
4112 if test "$wxUSE_DEBUG_GDB" = yes; then
4113 echo "$as_me:$LINENO: result: yes" >&5
4114echo "${ECHO_T}yes" >&6
4115 else
4116 echo "$as_me:$LINENO: result: no" >&5
4117echo "${ECHO_T}no" >&6
4118 fi
4119
4120
4121 enablestring=
4122 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_cntxt" >&5
4123echo $ECHO_N "checking for --${enablestring:-enable}-debug_cntxt... $ECHO_C" >&6
4124 no_cache=0
4125 # Check whether --enable-debug_cntxt or --disable-debug_cntxt was given.
4126if test "${enable_debug_cntxt+set}" = set; then
4127 enableval="$enable_debug_cntxt"
4128
4129 if test "$enableval" = yes; then
4130 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=yes'
4131 else
4132 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=no'
4133 fi
4134
4135else
4136
4137 LINE=`grep "wxUSE_DEBUG_CONTEXT" ${wx_arg_cache_file}`
4138 if test "x$LINE" != x ; then
4139 eval "DEFAULT_$LINE"
4140 else
4141 no_cache=1
4142 fi
4143
4144 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT='$DEFAULT_wxUSE_DEBUG_CONTEXT
4145
4146fi;
4147
4148 eval "$ac_cv_use_debug_cntxt"
4149 if test "$no_cache" != 1; then
4150 echo $ac_cv_use_debug_cntxt >> ${wx_arg_cache_file}.tmp
4151 fi
4152
4153 if test "$wxUSE_DEBUG_CONTEXT" = yes; then
4154 echo "$as_me:$LINENO: result: yes" >&5
4155echo "${ECHO_T}yes" >&6
4156 else
4157 echo "$as_me:$LINENO: result: no" >&5
4158echo "${ECHO_T}no" >&6
4159 fi
4160
4161
4162 enablestring=
4163 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mem_tracing" >&5
4164echo $ECHO_N "checking for --${enablestring:-enable}-mem_tracing... $ECHO_C" >&6
4165 no_cache=0
4166 # Check whether --enable-mem_tracing or --disable-mem_tracing was given.
4167if test "${enable_mem_tracing+set}" = set; then
4168 enableval="$enable_mem_tracing"
4169
4170 if test "$enableval" = yes; then
4171 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=yes'
4172 else
4173 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=no'
4174 fi
4175
4176else
4177
4178 LINE=`grep "wxUSE_MEM_TRACING" ${wx_arg_cache_file}`
4179 if test "x$LINE" != x ; then
4180 eval "DEFAULT_$LINE"
4181 else
4182 no_cache=1
4183 fi
4184
4185 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING='$DEFAULT_wxUSE_MEM_TRACING
4186
4187fi;
4188
4189 eval "$ac_cv_use_mem_tracing"
4190 if test "$no_cache" != 1; then
4191 echo $ac_cv_use_mem_tracing >> ${wx_arg_cache_file}.tmp
4192 fi
4193
4194 if test "$wxUSE_MEM_TRACING" = yes; then
4195 echo "$as_me:$LINENO: result: yes" >&5
4196echo "${ECHO_T}yes" >&6
4197 else
4198 echo "$as_me:$LINENO: result: no" >&5
4199echo "${ECHO_T}no" >&6
4200 fi
4201
4202
4203 enablestring=
4204 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-profile" >&5
4205echo $ECHO_N "checking for --${enablestring:-enable}-profile... $ECHO_C" >&6
4206 no_cache=0
4207 # Check whether --enable-profile or --disable-profile was given.
4208if test "${enable_profile+set}" = set; then
4209 enableval="$enable_profile"
4210
4211 if test "$enableval" = yes; then
4212 ac_cv_use_profile='wxUSE_PROFILE=yes'
4213 else
4214 ac_cv_use_profile='wxUSE_PROFILE=no'
4215 fi
4216
4217else
4218
4219 LINE=`grep "wxUSE_PROFILE" ${wx_arg_cache_file}`
4220 if test "x$LINE" != x ; then
4221 eval "DEFAULT_$LINE"
4222 else
4223 no_cache=1
4224 fi
4225
4226 ac_cv_use_profile='wxUSE_PROFILE='$DEFAULT_wxUSE_PROFILE
4227
4228fi;
4229
4230 eval "$ac_cv_use_profile"
4231 if test "$no_cache" != 1; then
4232 echo $ac_cv_use_profile >> ${wx_arg_cache_file}.tmp
4233 fi
4234
4235 if test "$wxUSE_PROFILE" = yes; then
4236 echo "$as_me:$LINENO: result: yes" >&5
4237echo "${ECHO_T}yes" >&6
4238 else
4239 echo "$as_me:$LINENO: result: no" >&5
4240echo "${ECHO_T}no" >&6
4241 fi
4242
4243
4244 enablestring=
4245 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_rtti" >&5
4246echo $ECHO_N "checking for --${enablestring:-enable}-no_rtti... $ECHO_C" >&6
4247 no_cache=0
4248 # Check whether --enable-no_rtti or --disable-no_rtti was given.
4249if test "${enable_no_rtti+set}" = set; then
4250 enableval="$enable_no_rtti"
4251
4252 if test "$enableval" = yes; then
4253 ac_cv_use_no_rtti='wxUSE_NO_RTTI=yes'
4254 else
4255 ac_cv_use_no_rtti='wxUSE_NO_RTTI=no'
4256 fi
4257
4258else
4259
4260 LINE=`grep "wxUSE_NO_RTTI" ${wx_arg_cache_file}`
4261 if test "x$LINE" != x ; then
4262 eval "DEFAULT_$LINE"
4263 else
4264 no_cache=1
4265 fi
4266
4267 ac_cv_use_no_rtti='wxUSE_NO_RTTI='$DEFAULT_wxUSE_NO_RTTI
4268
4269fi;
4270
4271 eval "$ac_cv_use_no_rtti"
4272 if test "$no_cache" != 1; then
4273 echo $ac_cv_use_no_rtti >> ${wx_arg_cache_file}.tmp
4274 fi
4275
4276 if test "$wxUSE_NO_RTTI" = yes; then
4277 echo "$as_me:$LINENO: result: yes" >&5
4278echo "${ECHO_T}yes" >&6
4279 else
4280 echo "$as_me:$LINENO: result: no" >&5
4281echo "${ECHO_T}no" >&6
4282 fi
4283
4284
4285 enablestring=
4286 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_exceptions" >&5
4287echo $ECHO_N "checking for --${enablestring:-enable}-no_exceptions... $ECHO_C" >&6
4288 no_cache=0
4289 # Check whether --enable-no_exceptions or --disable-no_exceptions was given.
4290if test "${enable_no_exceptions+set}" = set; then
4291 enableval="$enable_no_exceptions"
4292
4293 if test "$enableval" = yes; then
4294 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=yes'
4295 else
4296 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=no'
4297 fi
4298
4299else
4300
4301 LINE=`grep "wxUSE_NO_EXCEPTIONS" ${wx_arg_cache_file}`
4302 if test "x$LINE" != x ; then
4303 eval "DEFAULT_$LINE"
4304 else
4305 no_cache=1
4306 fi
4307
4308 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS='$DEFAULT_wxUSE_NO_EXCEPTIONS
4309
4310fi;
4311
4312 eval "$ac_cv_use_no_exceptions"
4313 if test "$no_cache" != 1; then
4314 echo $ac_cv_use_no_exceptions >> ${wx_arg_cache_file}.tmp
4315 fi
4316
4317 if test "$wxUSE_NO_EXCEPTIONS" = yes; then
4318 echo "$as_me:$LINENO: result: yes" >&5
4319echo "${ECHO_T}yes" >&6
4320 else
4321 echo "$as_me:$LINENO: result: no" >&5
4322echo "${ECHO_T}no" >&6
4323 fi
4324
4325
4326 enablestring=
4327 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-permissive" >&5
4328echo $ECHO_N "checking for --${enablestring:-enable}-permissive... $ECHO_C" >&6
4329 no_cache=0
4330 # Check whether --enable-permissive or --disable-permissive was given.
4331if test "${enable_permissive+set}" = set; then
4332 enableval="$enable_permissive"
4333
4334 if test "$enableval" = yes; then
4335 ac_cv_use_permissive='wxUSE_PERMISSIVE=yes'
4336 else
4337 ac_cv_use_permissive='wxUSE_PERMISSIVE=no'
4338 fi
4339
4340else
4341
4342 LINE=`grep "wxUSE_PERMISSIVE" ${wx_arg_cache_file}`
4343 if test "x$LINE" != x ; then
4344 eval "DEFAULT_$LINE"
4345 else
4346 no_cache=1
4347 fi
4348
4349 ac_cv_use_permissive='wxUSE_PERMISSIVE='$DEFAULT_wxUSE_PERMISSIVE
4350
4351fi;
4352
4353 eval "$ac_cv_use_permissive"
4354 if test "$no_cache" != 1; then
4355 echo $ac_cv_use_permissive >> ${wx_arg_cache_file}.tmp
4356 fi
4357
4358 if test "$wxUSE_PERMISSIVE" = yes; then
4359 echo "$as_me:$LINENO: result: yes" >&5
4360echo "${ECHO_T}yes" >&6
4361 else
4362 echo "$as_me:$LINENO: result: no" >&5
4363echo "${ECHO_T}no" >&6
4364 fi
4365
4366
4367 enablestring=
4368 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_deps" >&5
4369echo $ECHO_N "checking for --${enablestring:-enable}-no_deps... $ECHO_C" >&6
4370 no_cache=0
4371 # Check whether --enable-no_deps or --disable-no_deps was given.
4372if test "${enable_no_deps+set}" = set; then
4373 enableval="$enable_no_deps"
4374
4375 if test "$enableval" = yes; then
4376 ac_cv_use_no_deps='wxUSE_NO_DEPS=yes'
4377 else
4378 ac_cv_use_no_deps='wxUSE_NO_DEPS=no'
4379 fi
4380
4381else
4382
4383 LINE=`grep "wxUSE_NO_DEPS" ${wx_arg_cache_file}`
4384 if test "x$LINE" != x ; then
4385 eval "DEFAULT_$LINE"
4386 else
4387 no_cache=1
4388 fi
4389
4390 ac_cv_use_no_deps='wxUSE_NO_DEPS='$DEFAULT_wxUSE_NO_DEPS
4391
4392fi;
4393
4394 eval "$ac_cv_use_no_deps"
4395 if test "$no_cache" != 1; then
4396 echo $ac_cv_use_no_deps >> ${wx_arg_cache_file}.tmp
4397 fi
4398
4399 if test "$wxUSE_NO_DEPS" = yes; then
4400 echo "$as_me:$LINENO: result: yes" >&5
4401echo "${ECHO_T}yes" >&6
4402 else
4403 echo "$as_me:$LINENO: result: no" >&5
4404echo "${ECHO_T}no" >&6
4405 fi
4406
4407
95768535 4408 enablestring=
7afc46ab
KO
4409 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-universal_binary" >&5
4410echo $ECHO_N "checking for --${enablestring:-enable}-universal_binary... $ECHO_C" >&6
4411 no_cache=0
4412 # Check whether --enable-universal_binary or --disable-universal_binary was given.
4413if test "${enable_universal_binary+set}" = set; then
4414 enableval="$enable_universal_binary"
4415
95768535 4416 wx_cv_use_universal_binary="wxUSE_UNIVERSAL_BINARY='$enableval'"
7afc46ab
KO
4417
4418else
4419
4420 LINE=`grep "wxUSE_UNIVERSAL_BINARY" ${wx_arg_cache_file}`
4421 if test "x$LINE" != x ; then
4422 eval "DEFAULT_$LINE"
95768535 4423 wx_cv_use_universal_binary='wxUSE_UNIVERSAL_BINARY='$DEFAULT_wxUSE_UNIVERSAL_BINARY
7afc46ab
KO
4424 else
4425 no_cache=1
95768535 4426 wx_cv_use_universal_binary="wxUSE_UNIVERSAL_BINARY=no"
7afc46ab
KO
4427 fi
4428
7afc46ab
KO
4429fi;
4430
95768535 4431 eval "$wx_cv_use_universal_binary"
7afc46ab 4432 if test "$no_cache" != 1; then
95768535 4433 echo $wx_cv_use_universal_binary >> ${wx_arg_cache_file}.tmp
7afc46ab
KO
4434 fi
4435
95768535
MW
4436 echo "$as_me:$LINENO: result: $wxUSE_UNIVERSAL_BINARY" >&5
4437echo "${ECHO_T}$wxUSE_UNIVERSAL_BINARY" >&6
7afc46ab
KO
4438
4439
a848cd7e 4440
dee1a63f
MB
4441 enablestring=enable
4442 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-compat24" >&5
4443echo $ECHO_N "checking for --${enablestring:-enable}-compat24... $ECHO_C" >&6
a848cd7e 4444 no_cache=0
dee1a63f
MB
4445 # Check whether --enable-compat24 or --disable-compat24 was given.
4446if test "${enable_compat24+set}" = set; then
4447 enableval="$enable_compat24"
a848cd7e
SC
4448
4449 if test "$enableval" = yes; then
dee1a63f 4450 ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4=yes'
a848cd7e 4451 else
dee1a63f 4452 ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4=no'
a848cd7e
SC
4453 fi
4454
4455else
4456
dee1a63f 4457 LINE=`grep "WXWIN_COMPATIBILITY_2_4" ${wx_arg_cache_file}`
a848cd7e
SC
4458 if test "x$LINE" != x ; then
4459 eval "DEFAULT_$LINE"
4460 else
4461 no_cache=1
4462 fi
4463
dee1a63f 4464 ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4='$DEFAULT_WXWIN_COMPATIBILITY_2_4
a848cd7e
SC
4465
4466fi;
4467
dee1a63f 4468 eval "$ac_cv_use_compat24"
a848cd7e 4469 if test "$no_cache" != 1; then
dee1a63f 4470 echo $ac_cv_use_compat24 >> ${wx_arg_cache_file}.tmp
a848cd7e
SC
4471 fi
4472
dee1a63f 4473 if test "$WXWIN_COMPATIBILITY_2_4" = yes; then
a848cd7e
SC
4474 echo "$as_me:$LINENO: result: yes" >&5
4475echo "${ECHO_T}yes" >&6
4476 else
4477 echo "$as_me:$LINENO: result: no" >&5
4478echo "${ECHO_T}no" >&6
4479 fi
4480
4481
4482 enablestring=disable
dee1a63f
MB
4483 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-compat26" >&5
4484echo $ECHO_N "checking for --${enablestring:-enable}-compat26... $ECHO_C" >&6
a848cd7e 4485 no_cache=0
dee1a63f
MB
4486 # Check whether --enable-compat26 or --disable-compat26 was given.
4487if test "${enable_compat26+set}" = set; then
4488 enableval="$enable_compat26"
a848cd7e
SC
4489
4490 if test "$enableval" = yes; then
dee1a63f 4491 ac_cv_use_compat26='WXWIN_COMPATIBILITY_2_6=yes'
a848cd7e 4492 else
dee1a63f 4493 ac_cv_use_compat26='WXWIN_COMPATIBILITY_2_6=no'
a848cd7e
SC
4494 fi
4495
4496else
4497
dee1a63f 4498 LINE=`grep "WXWIN_COMPATIBILITY_2_6" ${wx_arg_cache_file}`
a848cd7e
SC
4499 if test "x$LINE" != x ; then
4500 eval "DEFAULT_$LINE"
4501 else
4502 no_cache=1
4503 fi
4504
dee1a63f 4505 ac_cv_use_compat26='WXWIN_COMPATIBILITY_2_6='$DEFAULT_WXWIN_COMPATIBILITY_2_6
a848cd7e
SC
4506
4507fi;
4508
dee1a63f 4509 eval "$ac_cv_use_compat26"
a848cd7e 4510 if test "$no_cache" != 1; then
dee1a63f 4511 echo $ac_cv_use_compat26 >> ${wx_arg_cache_file}.tmp
a848cd7e
SC
4512 fi
4513
dee1a63f 4514 if test "$WXWIN_COMPATIBILITY_2_6" = yes; then
a848cd7e
SC
4515 echo "$as_me:$LINENO: result: yes" >&5
4516echo "${ECHO_T}yes" >&6
4517 else
4518 echo "$as_me:$LINENO: result: no" >&5
4519echo "${ECHO_T}no" >&6
4520 fi
4521
4522
ffa0583f
RL
4523
4524 enablestring=
4525 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-rpath" >&5
4526echo $ECHO_N "checking for --${enablestring:-enable}-rpath... $ECHO_C" >&6
4527 no_cache=0
4528 # Check whether --enable-rpath or --disable-rpath was given.
a848cd7e
SC
4529if test "${enable_rpath+set}" = set; then
4530 enableval="$enable_rpath"
ffa0583f
RL
4531
4532 if test "$enableval" = yes; then
4533 ac_cv_use_rpath='wxUSE_RPATH=yes'
4534 else
4535 ac_cv_use_rpath='wxUSE_RPATH=no'
4536 fi
4537
4538else
4539
4540 LINE=`grep "wxUSE_RPATH" ${wx_arg_cache_file}`
4541 if test "x$LINE" != x ; then
4542 eval "DEFAULT_$LINE"
4543 else
4544 no_cache=1
4545 fi
4546
4547 ac_cv_use_rpath='wxUSE_RPATH='$DEFAULT_wxUSE_RPATH
4548
a848cd7e
SC
4549fi;
4550
ffa0583f
RL
4551 eval "$ac_cv_use_rpath"
4552 if test "$no_cache" != 1; then
4553 echo $ac_cv_use_rpath >> ${wx_arg_cache_file}.tmp
4554 fi
4555
4556 if test "$wxUSE_RPATH" = yes; then
4557 echo "$as_me:$LINENO: result: yes" >&5
4558echo "${ECHO_T}yes" >&6
4559 else
4560 echo "$as_me:$LINENO: result: no" >&5
4561echo "${ECHO_T}no" >&6
4562 fi
4563
a848cd7e
SC
4564
4565
4566
4567
4568 enablestring=
4569 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-intl" >&5
4570echo $ECHO_N "checking for --${enablestring:-enable}-intl... $ECHO_C" >&6
4571 no_cache=0
4572 # Check whether --enable-intl or --disable-intl was given.
4573if test "${enable_intl+set}" = set; then
4574 enableval="$enable_intl"
4575
4576 if test "$enableval" = yes; then
4577 ac_cv_use_intl='wxUSE_INTL=yes'
4578 else
4579 ac_cv_use_intl='wxUSE_INTL=no'
4580 fi
4581
4582else
4583
4584 LINE=`grep "wxUSE_INTL" ${wx_arg_cache_file}`
4585 if test "x$LINE" != x ; then
4586 eval "DEFAULT_$LINE"
4587 else
4588 no_cache=1
4589 fi
4590
4591 ac_cv_use_intl='wxUSE_INTL='$DEFAULT_wxUSE_INTL
4592
4593fi;
4594
4595 eval "$ac_cv_use_intl"
4596 if test "$no_cache" != 1; then
4597 echo $ac_cv_use_intl >> ${wx_arg_cache_file}.tmp
4598 fi
4599
4600 if test "$wxUSE_INTL" = yes; then
4601 echo "$as_me:$LINENO: result: yes" >&5
4602echo "${ECHO_T}yes" >&6
4603 else
4604 echo "$as_me:$LINENO: result: no" >&5
4605echo "${ECHO_T}no" >&6
4606 fi
4607
4608
4609 enablestring=
4610 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-config" >&5
4611echo $ECHO_N "checking for --${enablestring:-enable}-config... $ECHO_C" >&6
4612 no_cache=0
4613 # Check whether --enable-config or --disable-config was given.
4614if test "${enable_config+set}" = set; then
4615 enableval="$enable_config"
4616
4617 if test "$enableval" = yes; then
4618 ac_cv_use_config='wxUSE_CONFIG=yes'
4619 else
4620 ac_cv_use_config='wxUSE_CONFIG=no'
4621 fi
4622
4623else
4624
4625 LINE=`grep "wxUSE_CONFIG" ${wx_arg_cache_file}`
4626 if test "x$LINE" != x ; then
4627 eval "DEFAULT_$LINE"
4628 else
4629 no_cache=1
4630 fi
4631
4632 ac_cv_use_config='wxUSE_CONFIG='$DEFAULT_wxUSE_CONFIG
4633
4634fi;
4635
4636 eval "$ac_cv_use_config"
4637 if test "$no_cache" != 1; then
4638 echo $ac_cv_use_config >> ${wx_arg_cache_file}.tmp
4639 fi
4640
4641 if test "$wxUSE_CONFIG" = yes; then
4642 echo "$as_me:$LINENO: result: yes" >&5
4643echo "${ECHO_T}yes" >&6
4644 else
4645 echo "$as_me:$LINENO: result: no" >&5
4646echo "${ECHO_T}no" >&6
4647 fi
4648
4649
4650
4651 enablestring=
4652 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocols" >&5
4653echo $ECHO_N "checking for --${enablestring:-enable}-protocols... $ECHO_C" >&6
4654 no_cache=0
4655 # Check whether --enable-protocols or --disable-protocols was given.
4656if test "${enable_protocols+set}" = set; then
4657 enableval="$enable_protocols"
4658
4659 if test "$enableval" = yes; then
4660 ac_cv_use_protocols='wxUSE_PROTOCOL=yes'
4661 else
4662 ac_cv_use_protocols='wxUSE_PROTOCOL=no'
4663 fi
4664
4665else
4666
4667 LINE=`grep "wxUSE_PROTOCOL" ${wx_arg_cache_file}`
4668 if test "x$LINE" != x ; then
4669 eval "DEFAULT_$LINE"
4670 else
4671 no_cache=1
4672 fi
4673
4674 ac_cv_use_protocols='wxUSE_PROTOCOL='$DEFAULT_wxUSE_PROTOCOL
4675
4676fi;
4677
4678 eval "$ac_cv_use_protocols"
4679 if test "$no_cache" != 1; then
4680 echo $ac_cv_use_protocols >> ${wx_arg_cache_file}.tmp
4681 fi
4682
4683 if test "$wxUSE_PROTOCOL" = yes; then
4684 echo "$as_me:$LINENO: result: yes" >&5
4685echo "${ECHO_T}yes" >&6
4686 else
4687 echo "$as_me:$LINENO: result: no" >&5
4688echo "${ECHO_T}no" >&6
4689 fi
4690
4691
4692 enablestring=
4693 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ftp" >&5
4694echo $ECHO_N "checking for --${enablestring:-enable}-ftp... $ECHO_C" >&6
4695 no_cache=0
4696 # Check whether --enable-ftp or --disable-ftp was given.
4697if test "${enable_ftp+set}" = set; then
4698 enableval="$enable_ftp"
4699
4700 if test "$enableval" = yes; then
4701 ac_cv_use_ftp='wxUSE_PROTOCOL_FTP=yes'
4702 else
4703 ac_cv_use_ftp='wxUSE_PROTOCOL_FTP=no'
4704 fi
4705
4706else
4707
4708 LINE=`grep "wxUSE_PROTOCOL_FTP" ${wx_arg_cache_file}`
4709 if test "x$LINE" != x ; then
4710 eval "DEFAULT_$LINE"
4711 else
4712 no_cache=1
4713 fi
4714
4715 ac_cv_use_ftp='wxUSE_PROTOCOL_FTP='$DEFAULT_wxUSE_PROTOCOL_FTP
4716
4717fi;
4718
4719 eval "$ac_cv_use_ftp"
4720 if test "$no_cache" != 1; then
4721 echo $ac_cv_use_ftp >> ${wx_arg_cache_file}.tmp
4722 fi
4723
4724 if test "$wxUSE_PROTOCOL_FTP" = yes; then
4725 echo "$as_me:$LINENO: result: yes" >&5
4726echo "${ECHO_T}yes" >&6
4727 else
4728 echo "$as_me:$LINENO: result: no" >&5
4729echo "${ECHO_T}no" >&6
4730 fi
4731
4732
4733 enablestring=
4734 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-http" >&5
4735echo $ECHO_N "checking for --${enablestring:-enable}-http... $ECHO_C" >&6
4736 no_cache=0
4737 # Check whether --enable-http or --disable-http was given.
4738if test "${enable_http+set}" = set; then
4739 enableval="$enable_http"
4740
4741 if test "$enableval" = yes; then
4742 ac_cv_use_http='wxUSE_PROTOCOL_HTTP=yes'
4743 else
4744 ac_cv_use_http='wxUSE_PROTOCOL_HTTP=no'
4745 fi
4746
4747else
4748
4749 LINE=`grep "wxUSE_PROTOCOL_HTTP" ${wx_arg_cache_file}`
4750 if test "x$LINE" != x ; then
4751 eval "DEFAULT_$LINE"
4752 else
4753 no_cache=1
4754 fi
4755
4756 ac_cv_use_http='wxUSE_PROTOCOL_HTTP='$DEFAULT_wxUSE_PROTOCOL_HTTP
4757
4758fi;
4759
4760 eval "$ac_cv_use_http"
4761 if test "$no_cache" != 1; then
4762 echo $ac_cv_use_http >> ${wx_arg_cache_file}.tmp
4763 fi
4764
4765 if test "$wxUSE_PROTOCOL_HTTP" = yes; then
4766 echo "$as_me:$LINENO: result: yes" >&5
4767echo "${ECHO_T}yes" >&6
4768 else
4769 echo "$as_me:$LINENO: result: no" >&5
4770echo "${ECHO_T}no" >&6
4771 fi
4772
4773
4774 enablestring=
4775 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fileproto" >&5
4776echo $ECHO_N "checking for --${enablestring:-enable}-fileproto... $ECHO_C" >&6
4777 no_cache=0
4778 # Check whether --enable-fileproto or --disable-fileproto was given.
4779if test "${enable_fileproto+set}" = set; then
4780 enableval="$enable_fileproto"
4781
4782 if test "$enableval" = yes; then
4783 ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE=yes'
4784 else
4785 ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE=no'
4786 fi
4787
4788else
4789
4790 LINE=`grep "wxUSE_PROTOCOL_FILE" ${wx_arg_cache_file}`
4791 if test "x$LINE" != x ; then
4792 eval "DEFAULT_$LINE"
4793 else
4794 no_cache=1
4795 fi
4796
4797 ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE='$DEFAULT_wxUSE_PROTOCOL_FILE
4798
4799fi;
4800
4801 eval "$ac_cv_use_fileproto"
4802 if test "$no_cache" != 1; then
4803 echo $ac_cv_use_fileproto >> ${wx_arg_cache_file}.tmp
4804 fi
4805
4806 if test "$wxUSE_PROTOCOL_FILE" = yes; then
4807 echo "$as_me:$LINENO: result: yes" >&5
4808echo "${ECHO_T}yes" >&6
4809 else
4810 echo "$as_me:$LINENO: result: no" >&5
4811echo "${ECHO_T}no" >&6
4812 fi
4813
4814
4815 enablestring=
4816 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sockets" >&5
4817echo $ECHO_N "checking for --${enablestring:-enable}-sockets... $ECHO_C" >&6
4818 no_cache=0
4819 # Check whether --enable-sockets or --disable-sockets was given.
4820if test "${enable_sockets+set}" = set; then
4821 enableval="$enable_sockets"
4822
4823 if test "$enableval" = yes; then
4824 ac_cv_use_sockets='wxUSE_SOCKETS=yes'
4825 else
4826 ac_cv_use_sockets='wxUSE_SOCKETS=no'
4827 fi
4828
4829else
4830
4831 LINE=`grep "wxUSE_SOCKETS" ${wx_arg_cache_file}`
4832 if test "x$LINE" != x ; then
4833 eval "DEFAULT_$LINE"
4834 else
4835 no_cache=1
4836 fi
4837
4838 ac_cv_use_sockets='wxUSE_SOCKETS='$DEFAULT_wxUSE_SOCKETS
4839
4840fi;
4841
4842 eval "$ac_cv_use_sockets"
4843 if test "$no_cache" != 1; then
4844 echo $ac_cv_use_sockets >> ${wx_arg_cache_file}.tmp
4845 fi
4846
4847 if test "$wxUSE_SOCKETS" = yes; then
4848 echo "$as_me:$LINENO: result: yes" >&5
4849echo "${ECHO_T}yes" >&6
4850 else
4851 echo "$as_me:$LINENO: result: no" >&5
4852echo "${ECHO_T}no" >&6
4853 fi
4854
4855
4856 enablestring=
4857 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ole" >&5
4858echo $ECHO_N "checking for --${enablestring:-enable}-ole... $ECHO_C" >&6
4859 no_cache=0
4860 # Check whether --enable-ole or --disable-ole was given.
4861if test "${enable_ole+set}" = set; then
4862 enableval="$enable_ole"
4863
4864 if test "$enableval" = yes; then
4865 ac_cv_use_ole='wxUSE_OLE=yes'
4866 else
4867 ac_cv_use_ole='wxUSE_OLE=no'
4868 fi
4869
4870else
4871
4872 LINE=`grep "wxUSE_OLE" ${wx_arg_cache_file}`
4873 if test "x$LINE" != x ; then
4874 eval "DEFAULT_$LINE"
4875 else
4876 no_cache=1
4877 fi
4878
4879 ac_cv_use_ole='wxUSE_OLE='$DEFAULT_wxUSE_OLE
4880
4881fi;
4882
4883 eval "$ac_cv_use_ole"
4884 if test "$no_cache" != 1; then
4885 echo $ac_cv_use_ole >> ${wx_arg_cache_file}.tmp
4886 fi
4887
4888 if test "$wxUSE_OLE" = yes; then
4889 echo "$as_me:$LINENO: result: yes" >&5
4890echo "${ECHO_T}yes" >&6
4891 else
4892 echo "$as_me:$LINENO: result: no" >&5
4893echo "${ECHO_T}no" >&6
4894 fi
4895
4896
4897 enablestring=
4898 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dataobj" >&5
4899echo $ECHO_N "checking for --${enablestring:-enable}-dataobj... $ECHO_C" >&6
4900 no_cache=0
4901 # Check whether --enable-dataobj or --disable-dataobj was given.
4902if test "${enable_dataobj+set}" = set; then
4903 enableval="$enable_dataobj"
4904
4905 if test "$enableval" = yes; then
4906 ac_cv_use_dataobj='wxUSE_DATAOBJ=yes'
4907 else
4908 ac_cv_use_dataobj='wxUSE_DATAOBJ=no'
4909 fi
4910
4911else
4912
4913 LINE=`grep "wxUSE_DATAOBJ" ${wx_arg_cache_file}`
4914 if test "x$LINE" != x ; then
4915 eval "DEFAULT_$LINE"
4916 else
4917 no_cache=1
4918 fi
4919
4920 ac_cv_use_dataobj='wxUSE_DATAOBJ='$DEFAULT_wxUSE_DATAOBJ
4921
4922fi;
4923
4924 eval "$ac_cv_use_dataobj"
4925 if test "$no_cache" != 1; then
4926 echo $ac_cv_use_dataobj >> ${wx_arg_cache_file}.tmp
4927 fi
4928
4929 if test "$wxUSE_DATAOBJ" = yes; then
4930 echo "$as_me:$LINENO: result: yes" >&5
4931echo "${ECHO_T}yes" >&6
4932 else
4933 echo "$as_me:$LINENO: result: no" >&5
4934echo "${ECHO_T}no" >&6
4935 fi
4936
4937
4938
4939 enablestring=
4940 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ipc" >&5
4941echo $ECHO_N "checking for --${enablestring:-enable}-ipc... $ECHO_C" >&6
4942 no_cache=0
4943 # Check whether --enable-ipc or --disable-ipc was given.
4944if test "${enable_ipc+set}" = set; then
4945 enableval="$enable_ipc"
4946
4947 if test "$enableval" = yes; then
4948 ac_cv_use_ipc='wxUSE_IPC=yes'
4949 else
4950 ac_cv_use_ipc='wxUSE_IPC=no'
4951 fi
4952
4953else
4954
4955 LINE=`grep "wxUSE_IPC" ${wx_arg_cache_file}`
4956 if test "x$LINE" != x ; then
4957 eval "DEFAULT_$LINE"
4958 else
4959 no_cache=1
4960 fi
4961
4962 ac_cv_use_ipc='wxUSE_IPC='$DEFAULT_wxUSE_IPC
4963
4964fi;
4965
4966 eval "$ac_cv_use_ipc"
4967 if test "$no_cache" != 1; then
4968 echo $ac_cv_use_ipc >> ${wx_arg_cache_file}.tmp
4969 fi
4970
4971 if test "$wxUSE_IPC" = yes; then
4972 echo "$as_me:$LINENO: result: yes" >&5
4973echo "${ECHO_T}yes" >&6
4974 else
4975 echo "$as_me:$LINENO: result: no" >&5
4976echo "${ECHO_T}no" >&6
4977 fi
4978
4979
4980
4981 enablestring=
4982 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-apple_ieee" >&5
4983echo $ECHO_N "checking for --${enablestring:-enable}-apple_ieee... $ECHO_C" >&6
4984 no_cache=0
4985 # Check whether --enable-apple_ieee or --disable-apple_ieee was given.
4986if test "${enable_apple_ieee+set}" = set; then
4987 enableval="$enable_apple_ieee"
4988
4989 if test "$enableval" = yes; then
4990 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=yes'
4991 else
4992 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=no'
4993 fi
4994
4995else
4996
4997 LINE=`grep "wxUSE_APPLE_IEEE" ${wx_arg_cache_file}`
4998 if test "x$LINE" != x ; then
4999 eval "DEFAULT_$LINE"
5000 else
5001 no_cache=1
5002 fi
5003
5004 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE='$DEFAULT_wxUSE_APPLE_IEEE
5005
5006fi;
5007
5008 eval "$ac_cv_use_apple_ieee"
5009 if test "$no_cache" != 1; then
5010 echo $ac_cv_use_apple_ieee >> ${wx_arg_cache_file}.tmp
5011 fi
5012
5013 if test "$wxUSE_APPLE_IEEE" = yes; then
5014 echo "$as_me:$LINENO: result: yes" >&5
5015echo "${ECHO_T}yes" >&6
5016 else
5017 echo "$as_me:$LINENO: result: no" >&5
5018echo "${ECHO_T}no" >&6
5019 fi
5020
5021
81f90336
MW
5022 enablestring=
5023 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-arcstream" >&5
5024echo $ECHO_N "checking for --${enablestring:-enable}-arcstream... $ECHO_C" >&6
5025 no_cache=0
5026 # Check whether --enable-arcstream or --disable-arcstream was given.
5027if test "${enable_arcstream+set}" = set; then
5028 enableval="$enable_arcstream"
5029
5030 if test "$enableval" = yes; then
9e8e867f 5031 ac_cv_use_arcstream='wxUSE_ARCHIVE_STREAMS=yes'
81f90336 5032 else
9e8e867f 5033 ac_cv_use_arcstream='wxUSE_ARCHIVE_STREAMS=no'
81f90336
MW
5034 fi
5035
5036else
5037
9e8e867f 5038 LINE=`grep "wxUSE_ARCHIVE_STREAMS" ${wx_arg_cache_file}`
81f90336
MW
5039 if test "x$LINE" != x ; then
5040 eval "DEFAULT_$LINE"
5041 else
5042 no_cache=1
5043 fi
5044
9e8e867f 5045 ac_cv_use_arcstream='wxUSE_ARCHIVE_STREAMS='$DEFAULT_wxUSE_ARCHIVE_STREAMS
81f90336
MW
5046
5047fi;
5048
5049 eval "$ac_cv_use_arcstream"
5050 if test "$no_cache" != 1; then
5051 echo $ac_cv_use_arcstream >> ${wx_arg_cache_file}.tmp
5052 fi
5053
9e8e867f 5054 if test "$wxUSE_ARCHIVE_STREAMS" = yes; then
81f90336
MW
5055 echo "$as_me:$LINENO: result: yes" >&5
5056echo "${ECHO_T}yes" >&6
5057 else
5058 echo "$as_me:$LINENO: result: no" >&5
5059echo "${ECHO_T}no" >&6
5060 fi
5061
5062
a848cd7e 5063 enablestring=
36b6448c
VZ
5064 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-backtrace" >&5
5065echo $ECHO_N "checking for --${enablestring:-enable}-backtrace... $ECHO_C" >&6
a848cd7e 5066 no_cache=0
36b6448c
VZ
5067 # Check whether --enable-backtrace or --disable-backtrace was given.
5068if test "${enable_backtrace+set}" = set; then
5069 enableval="$enable_backtrace"
a848cd7e
SC
5070
5071 if test "$enableval" = yes; then
36b6448c 5072 ac_cv_use_backtrace='wxUSE_STACKWALKER=yes'
a848cd7e 5073 else
36b6448c 5074 ac_cv_use_backtrace='wxUSE_STACKWALKER=no'
a848cd7e
SC
5075 fi
5076
5077else
5078
36b6448c 5079 LINE=`grep "wxUSE_STACKWALKER" ${wx_arg_cache_file}`
a848cd7e
SC
5080 if test "x$LINE" != x ; then
5081 eval "DEFAULT_$LINE"
5082 else
5083 no_cache=1
5084 fi
5085
36b6448c 5086 ac_cv_use_backtrace='wxUSE_STACKWALKER='$DEFAULT_wxUSE_STACKWALKER
a848cd7e
SC
5087
5088fi;
5089
36b6448c 5090 eval "$ac_cv_use_backtrace"
a848cd7e 5091 if test "$no_cache" != 1; then
36b6448c 5092 echo $ac_cv_use_backtrace >> ${wx_arg_cache_file}.tmp
a848cd7e
SC
5093 fi
5094
36b6448c 5095 if test "$wxUSE_STACKWALKER" = yes; then
a848cd7e
SC
5096 echo "$as_me:$LINENO: result: yes" >&5
5097echo "${ECHO_T}yes" >&6
5098 else
5099 echo "$as_me:$LINENO: result: no" >&5
5100echo "${ECHO_T}no" >&6
5101 fi
5102
5103
eaff0f0d 5104 enablestring=
36b6448c
VZ
5105 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-catch_segvs" >&5
5106echo $ECHO_N "checking for --${enablestring:-enable}-catch_segvs... $ECHO_C" >&6
eaff0f0d 5107 no_cache=0
36b6448c
VZ
5108 # Check whether --enable-catch_segvs or --disable-catch_segvs was given.
5109if test "${enable_catch_segvs+set}" = set; then
5110 enableval="$enable_catch_segvs"
eaff0f0d
VZ
5111
5112 if test "$enableval" = yes; then
36b6448c 5113 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=yes'
eaff0f0d 5114 else
36b6448c 5115 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=no'
eaff0f0d
VZ
5116 fi
5117
5118else
5119
36b6448c 5120 LINE=`grep "wxUSE_ON_FATAL_EXCEPTION" ${wx_arg_cache_file}`
eaff0f0d
VZ
5121 if test "x$LINE" != x ; then
5122 eval "DEFAULT_$LINE"
5123 else
5124 no_cache=1
5125 fi
5126
36b6448c 5127 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION='$DEFAULT_wxUSE_ON_FATAL_EXCEPTION
eaff0f0d
VZ
5128
5129fi;
5130
36b6448c 5131 eval "$ac_cv_use_catch_segvs"
eaff0f0d 5132 if test "$no_cache" != 1; then
36b6448c 5133 echo $ac_cv_use_catch_segvs >> ${wx_arg_cache_file}.tmp
eaff0f0d
VZ
5134 fi
5135
36b6448c 5136 if test "$wxUSE_ON_FATAL_EXCEPTION" = yes; then
eaff0f0d
VZ
5137 echo "$as_me:$LINENO: result: yes" >&5
5138echo "${ECHO_T}yes" >&6
5139 else
5140 echo "$as_me:$LINENO: result: no" >&5
5141echo "${ECHO_T}no" >&6
5142 fi
5143
5144
a848cd7e
SC
5145 enablestring=
5146 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-cmdline" >&5
5147echo $ECHO_N "checking for --${enablestring:-enable}-cmdline... $ECHO_C" >&6
5148 no_cache=0
5149 # Check whether --enable-cmdline or --disable-cmdline was given.
5150if test "${enable_cmdline+set}" = set; then
5151 enableval="$enable_cmdline"
5152
5153 if test "$enableval" = yes; then
5154 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=yes'
5155 else
5156 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=no'
5157 fi
5158
5159else
5160
5161 LINE=`grep "wxUSE_CMDLINE_PARSER" ${wx_arg_cache_file}`
5162 if test "x$LINE" != x ; then
5163 eval "DEFAULT_$LINE"
5164 else
5165 no_cache=1
5166 fi
5167
5168 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER='$DEFAULT_wxUSE_CMDLINE_PARSER
5169
5170fi;
5171
5172 eval "$ac_cv_use_cmdline"
5173 if test "$no_cache" != 1; then
5174 echo $ac_cv_use_cmdline >> ${wx_arg_cache_file}.tmp
5175 fi
5176
5177 if test "$wxUSE_CMDLINE_PARSER" = yes; then
5178 echo "$as_me:$LINENO: result: yes" >&5
5179echo "${ECHO_T}yes" >&6
5180 else
5181 echo "$as_me:$LINENO: result: no" >&5
5182echo "${ECHO_T}no" >&6
5183 fi
5184
5185
5186 enablestring=
5187 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-datetime" >&5
5188echo $ECHO_N "checking for --${enablestring:-enable}-datetime... $ECHO_C" >&6
5189 no_cache=0
5190 # Check whether --enable-datetime or --disable-datetime was given.
5191if test "${enable_datetime+set}" = set; then
5192 enableval="$enable_datetime"
5193
5194 if test "$enableval" = yes; then
5195 ac_cv_use_datetime='wxUSE_DATETIME=yes'
5196 else
5197 ac_cv_use_datetime='wxUSE_DATETIME=no'
5198 fi
5199
5200else
5201
5202 LINE=`grep "wxUSE_DATETIME" ${wx_arg_cache_file}`
5203 if test "x$LINE" != x ; then
5204 eval "DEFAULT_$LINE"
5205 else
5206 no_cache=1
5207 fi
5208
5209 ac_cv_use_datetime='wxUSE_DATETIME='$DEFAULT_wxUSE_DATETIME
5210
5211fi;
5212
5213 eval "$ac_cv_use_datetime"
5214 if test "$no_cache" != 1; then
5215 echo $ac_cv_use_datetime >> ${wx_arg_cache_file}.tmp
5216 fi
5217
5218 if test "$wxUSE_DATETIME" = yes; then
5219 echo "$as_me:$LINENO: result: yes" >&5
5220echo "${ECHO_T}yes" >&6
5221 else
5222 echo "$as_me:$LINENO: result: no" >&5
5223echo "${ECHO_T}no" >&6
5224 fi
5225
5226
36b6448c
VZ
5227 enablestring=
5228 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debugreport" >&5
5229echo $ECHO_N "checking for --${enablestring:-enable}-debugreport... $ECHO_C" >&6
5230 no_cache=0
5231 # Check whether --enable-debugreport or --disable-debugreport was given.
5232if test "${enable_debugreport+set}" = set; then
5233 enableval="$enable_debugreport"
5234
5235 if test "$enableval" = yes; then
5236 ac_cv_use_debugreport='wxUSE_DEBUGREPORT=yes'
5237 else
5238 ac_cv_use_debugreport='wxUSE_DEBUGREPORT=no'
5239 fi
5240
5241else
5242
5243 LINE=`grep "wxUSE_DEBUGREPORT" ${wx_arg_cache_file}`
5244 if test "x$LINE" != x ; then
5245 eval "DEFAULT_$LINE"
5246 else
5247 no_cache=1
5248 fi
5249
5250 ac_cv_use_debugreport='wxUSE_DEBUGREPORT='$DEFAULT_wxUSE_DEBUGREPORT
5251
5252fi;
5253
5254 eval "$ac_cv_use_debugreport"
5255 if test "$no_cache" != 1; then
5256 echo $ac_cv_use_debugreport >> ${wx_arg_cache_file}.tmp
5257 fi
5258
5259 if test "$wxUSE_DEBUGREPORT" = yes; then
5260 echo "$as_me:$LINENO: result: yes" >&5
5261echo "${ECHO_T}yes" >&6
5262 else
5263 echo "$as_me:$LINENO: result: no" >&5
5264echo "${ECHO_T}no" >&6
5265 fi
5266
5267
a848cd7e
SC
5268 enablestring=
5269 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dialupman" >&5
5270echo $ECHO_N "checking for --${enablestring:-enable}-dialupman... $ECHO_C" >&6
5271 no_cache=0
5272 # Check whether --enable-dialupman or --disable-dialupman was given.
5273if test "${enable_dialupman+set}" = set; then
5274 enableval="$enable_dialupman"
5275
5276 if test "$enableval" = yes; then
5277 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=yes'
5278 else
5279 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=no'
5280 fi
5281
5282else
5283
5284 LINE=`grep "wxUSE_DIALUP_MANAGER" ${wx_arg_cache_file}`
5285 if test "x$LINE" != x ; then
5286 eval "DEFAULT_$LINE"
5287 else
5288 no_cache=1
5289 fi
5290
5291 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER='$DEFAULT_wxUSE_DIALUP_MANAGER
5292
5293fi;
5294
5295 eval "$ac_cv_use_dialupman"
5296 if test "$no_cache" != 1; then
5297 echo $ac_cv_use_dialupman >> ${wx_arg_cache_file}.tmp
5298 fi
5299
5300 if test "$wxUSE_DIALUP_MANAGER" = yes; then
5301 echo "$as_me:$LINENO: result: yes" >&5
5302echo "${ECHO_T}yes" >&6
5303 else
5304 echo "$as_me:$LINENO: result: no" >&5
5305echo "${ECHO_T}no" >&6
5306 fi
5307
5308
5309 enablestring=
5310 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dynlib" >&5
5311echo $ECHO_N "checking for --${enablestring:-enable}-dynlib... $ECHO_C" >&6
5312 no_cache=0
5313 # Check whether --enable-dynlib or --disable-dynlib was given.
5314if test "${enable_dynlib+set}" = set; then
5315 enableval="$enable_dynlib"
5316
5317 if test "$enableval" = yes; then
5318 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=yes'
5319 else
5320 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=no'
5321 fi
5322
5323else
5324
5325 LINE=`grep "wxUSE_DYNLIB_CLASS" ${wx_arg_cache_file}`
5326 if test "x$LINE" != x ; then
5327 eval "DEFAULT_$LINE"
5328 else
5329 no_cache=1
5330 fi
5331
5332 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS='$DEFAULT_wxUSE_DYNLIB_CLASS
5333
5334fi;
5335
5336 eval "$ac_cv_use_dynlib"
5337 if test "$no_cache" != 1; then
5338 echo $ac_cv_use_dynlib >> ${wx_arg_cache_file}.tmp
5339 fi
5340
5341 if test "$wxUSE_DYNLIB_CLASS" = yes; then
5342 echo "$as_me:$LINENO: result: yes" >&5
5343echo "${ECHO_T}yes" >&6
5344 else
5345 echo "$as_me:$LINENO: result: no" >&5
5346echo "${ECHO_T}no" >&6
5347 fi
5348
5349
5350 enablestring=
5351 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dynamicloader" >&5
5352echo $ECHO_N "checking for --${enablestring:-enable}-dynamicloader... $ECHO_C" >&6
5353 no_cache=0
5354 # Check whether --enable-dynamicloader or --disable-dynamicloader was given.
5355if test "${enable_dynamicloader+set}" = set; then
5356 enableval="$enable_dynamicloader"
5357
5358 if test "$enableval" = yes; then
5359 ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=yes'
5360 else
5361 ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=no'
5362 fi
5363
5364else
5365
5366 LINE=`grep "wxUSE_DYNAMIC_LOADER" ${wx_arg_cache_file}`
5367 if test "x$LINE" != x ; then
5368 eval "DEFAULT_$LINE"
5369 else
5370 no_cache=1
5371 fi
5372
5373 ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER='$DEFAULT_wxUSE_DYNAMIC_LOADER
5374
5375fi;
5376
5377 eval "$ac_cv_use_dynamicloader"
5378 if test "$no_cache" != 1; then
5379 echo $ac_cv_use_dynamicloader >> ${wx_arg_cache_file}.tmp
5380 fi
5381
5382 if test "$wxUSE_DYNAMIC_LOADER" = yes; then
5383 echo "$as_me:$LINENO: result: yes" >&5
5384echo "${ECHO_T}yes" >&6
5385 else
5386 echo "$as_me:$LINENO: result: no" >&5
5387echo "${ECHO_T}no" >&6
5388 fi
5389
5390
5391 enablestring=
5392 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-exceptions" >&5
5393echo $ECHO_N "checking for --${enablestring:-enable}-exceptions... $ECHO_C" >&6
5394 no_cache=0
5395 # Check whether --enable-exceptions or --disable-exceptions was given.
5396if test "${enable_exceptions+set}" = set; then
5397 enableval="$enable_exceptions"
5398
5399 if test "$enableval" = yes; then
5400 ac_cv_use_exceptions='wxUSE_EXCEPTIONS=yes'
5401 else
5402 ac_cv_use_exceptions='wxUSE_EXCEPTIONS=no'
5403 fi
5404
5405else
5406
5407 LINE=`grep "wxUSE_EXCEPTIONS" ${wx_arg_cache_file}`
5408 if test "x$LINE" != x ; then
5409 eval "DEFAULT_$LINE"
5410 else
5411 no_cache=1
5412 fi
5413
5414 ac_cv_use_exceptions='wxUSE_EXCEPTIONS='$DEFAULT_wxUSE_EXCEPTIONS
5415
5416fi;
5417
5418 eval "$ac_cv_use_exceptions"
5419 if test "$no_cache" != 1; then
5420 echo $ac_cv_use_exceptions >> ${wx_arg_cache_file}.tmp
5421 fi
5422
5423 if test "$wxUSE_EXCEPTIONS" = yes; then
5424 echo "$as_me:$LINENO: result: yes" >&5
5425echo "${ECHO_T}yes" >&6
5426 else
5427 echo "$as_me:$LINENO: result: no" >&5
5428echo "${ECHO_T}no" >&6
5429 fi
5430
5431
5432 enablestring=
5433 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ffile" >&5
5434echo $ECHO_N "checking for --${enablestring:-enable}-ffile... $ECHO_C" >&6
5435 no_cache=0
5436 # Check whether --enable-ffile or --disable-ffile was given.
5437if test "${enable_ffile+set}" = set; then
5438 enableval="$enable_ffile"
5439
5440 if test "$enableval" = yes; then
5441 ac_cv_use_ffile='wxUSE_FFILE=yes'
5442 else
5443 ac_cv_use_ffile='wxUSE_FFILE=no'
5444 fi
5445
5446else
5447
5448 LINE=`grep "wxUSE_FFILE" ${wx_arg_cache_file}`
5449 if test "x$LINE" != x ; then
5450 eval "DEFAULT_$LINE"
5451 else
5452 no_cache=1
5453 fi
5454
5455 ac_cv_use_ffile='wxUSE_FFILE='$DEFAULT_wxUSE_FFILE
5456
5457fi;
5458
5459 eval "$ac_cv_use_ffile"
5460 if test "$no_cache" != 1; then
5461 echo $ac_cv_use_ffile >> ${wx_arg_cache_file}.tmp
5462 fi
5463
5464 if test "$wxUSE_FFILE" = yes; then
5465 echo "$as_me:$LINENO: result: yes" >&5
5466echo "${ECHO_T}yes" >&6
5467 else
5468 echo "$as_me:$LINENO: result: no" >&5
5469echo "${ECHO_T}no" >&6
5470 fi
5471
5472
5473 enablestring=
5474 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-file" >&5
5475echo $ECHO_N "checking for --${enablestring:-enable}-file... $ECHO_C" >&6
5476 no_cache=0
5477 # Check whether --enable-file or --disable-file was given.
5478if test "${enable_file+set}" = set; then
5479 enableval="$enable_file"
5480
5481 if test "$enableval" = yes; then
5482 ac_cv_use_file='wxUSE_FILE=yes'
5483 else
5484 ac_cv_use_file='wxUSE_FILE=no'
5485 fi
5486
5487else
5488
5489 LINE=`grep "wxUSE_FILE" ${wx_arg_cache_file}`
5490 if test "x$LINE" != x ; then
5491 eval "DEFAULT_$LINE"
5492 else
5493 no_cache=1
5494 fi
5495
5496 ac_cv_use_file='wxUSE_FILE='$DEFAULT_wxUSE_FILE
5497
5498fi;
5499
5500 eval "$ac_cv_use_file"
5501 if test "$no_cache" != 1; then
5502 echo $ac_cv_use_file >> ${wx_arg_cache_file}.tmp
5503 fi
5504
5505 if test "$wxUSE_FILE" = yes; then
5506 echo "$as_me:$LINENO: result: yes" >&5
5507echo "${ECHO_T}yes" >&6
5508 else
5509 echo "$as_me:$LINENO: result: no" >&5
5510echo "${ECHO_T}no" >&6
5511 fi
5512
5513
5514 enablestring=
5515 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-filesystem" >&5
5516echo $ECHO_N "checking for --${enablestring:-enable}-filesystem... $ECHO_C" >&6
5517 no_cache=0
5518 # Check whether --enable-filesystem or --disable-filesystem was given.
5519if test "${enable_filesystem+set}" = set; then
5520 enableval="$enable_filesystem"
5521
5522 if test "$enableval" = yes; then
5523 ac_cv_use_filesystem='wxUSE_FILESYSTEM=yes'
5524 else
5525 ac_cv_use_filesystem='wxUSE_FILESYSTEM=no'
5526 fi
5527
5528else
5529
5530 LINE=`grep "wxUSE_FILESYSTEM" ${wx_arg_cache_file}`
5531 if test "x$LINE" != x ; then
5532 eval "DEFAULT_$LINE"
5533 else
5534 no_cache=1
5535 fi
5536
5537 ac_cv_use_filesystem='wxUSE_FILESYSTEM='$DEFAULT_wxUSE_FILESYSTEM
5538
5539fi;
5540
5541 eval "$ac_cv_use_filesystem"
5542 if test "$no_cache" != 1; then
5543 echo $ac_cv_use_filesystem >> ${wx_arg_cache_file}.tmp
5544 fi
5545
5546 if test "$wxUSE_FILESYSTEM" = yes; then
5547 echo "$as_me:$LINENO: result: yes" >&5
5548echo "${ECHO_T}yes" >&6
5549 else
5550 echo "$as_me:$LINENO: result: no" >&5
5551echo "${ECHO_T}no" >&6
5552 fi
5553
5554
5555 enablestring=
5556 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fontmap" >&5
5557echo $ECHO_N "checking for --${enablestring:-enable}-fontmap... $ECHO_C" >&6
5558 no_cache=0
5559 # Check whether --enable-fontmap or --disable-fontmap was given.
5560if test "${enable_fontmap+set}" = set; then
5561 enableval="$enable_fontmap"
5562
5563 if test "$enableval" = yes; then
5564 ac_cv_use_fontmap='wxUSE_FONTMAP=yes'
5565 else
5566 ac_cv_use_fontmap='wxUSE_FONTMAP=no'
5567 fi
5568
5569else
5570
5571 LINE=`grep "wxUSE_FONTMAP" ${wx_arg_cache_file}`
5572 if test "x$LINE" != x ; then
5573 eval "DEFAULT_$LINE"
5574 else
5575 no_cache=1
5576 fi
5577
5578 ac_cv_use_fontmap='wxUSE_FONTMAP='$DEFAULT_wxUSE_FONTMAP
5579
5580fi;
5581
5582 eval "$ac_cv_use_fontmap"
5583 if test "$no_cache" != 1; then
5584 echo $ac_cv_use_fontmap >> ${wx_arg_cache_file}.tmp
5585 fi
5586
5587 if test "$wxUSE_FONTMAP" = yes; then
5588 echo "$as_me:$LINENO: result: yes" >&5
5589echo "${ECHO_T}yes" >&6
5590 else
5591 echo "$as_me:$LINENO: result: no" >&5
5592echo "${ECHO_T}no" >&6
5593 fi
5594
5595
5596 enablestring=
5597 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fs_inet" >&5
5598echo $ECHO_N "checking for --${enablestring:-enable}-fs_inet... $ECHO_C" >&6
5599 no_cache=0
5600 # Check whether --enable-fs_inet or --disable-fs_inet was given.
5601if test "${enable_fs_inet+set}" = set; then
5602 enableval="$enable_fs_inet"
5603
5604 if test "$enableval" = yes; then
5605 ac_cv_use_fs_inet='wxUSE_FS_INET=yes'
5606 else
5607 ac_cv_use_fs_inet='wxUSE_FS_INET=no'
5608 fi
5609
5610else
5611
5612 LINE=`grep "wxUSE_FS_INET" ${wx_arg_cache_file}`
5613 if test "x$LINE" != x ; then
5614 eval "DEFAULT_$LINE"
5615 else
5616 no_cache=1
5617 fi
5618
5619 ac_cv_use_fs_inet='wxUSE_FS_INET='$DEFAULT_wxUSE_FS_INET
5620
5621fi;
5622
5623 eval "$ac_cv_use_fs_inet"
5624 if test "$no_cache" != 1; then
5625 echo $ac_cv_use_fs_inet >> ${wx_arg_cache_file}.tmp
5626 fi
5627
5628 if test "$wxUSE_FS_INET" = yes; then
5629 echo "$as_me:$LINENO: result: yes" >&5
5630echo "${ECHO_T}yes" >&6
5631 else
5632 echo "$as_me:$LINENO: result: no" >&5
5633echo "${ECHO_T}no" >&6
5634 fi
5635
5636
5637 enablestring=
5638 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fs_zip" >&5
5639echo $ECHO_N "checking for --${enablestring:-enable}-fs_zip... $ECHO_C" >&6
5640 no_cache=0
5641 # Check whether --enable-fs_zip or --disable-fs_zip was given.
5642if test "${enable_fs_zip+set}" = set; then
5643 enableval="$enable_fs_zip"
5644
5645 if test "$enableval" = yes; then
5646 ac_cv_use_fs_zip='wxUSE_FS_ZIP=yes'
5647 else
5648 ac_cv_use_fs_zip='wxUSE_FS_ZIP=no'
5649 fi
5650
5651else
5652
5653 LINE=`grep "wxUSE_FS_ZIP" ${wx_arg_cache_file}`
5654 if test "x$LINE" != x ; then
5655 eval "DEFAULT_$LINE"
5656 else
5657 no_cache=1
5658 fi
5659
5660 ac_cv_use_fs_zip='wxUSE_FS_ZIP='$DEFAULT_wxUSE_FS_ZIP
5661
5662fi;
5663
5664 eval "$ac_cv_use_fs_zip"
5665 if test "$no_cache" != 1; then
5666 echo $ac_cv_use_fs_zip >> ${wx_arg_cache_file}.tmp
5667 fi
5668
5669 if test "$wxUSE_FS_ZIP" = yes; then
5670 echo "$as_me:$LINENO: result: yes" >&5
5671echo "${ECHO_T}yes" >&6
5672 else
5673 echo "$as_me:$LINENO: result: no" >&5
5674echo "${ECHO_T}no" >&6
5675 fi
5676
5677
5678 enablestring=
5679 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-geometry" >&5
5680echo $ECHO_N "checking for --${enablestring:-enable}-geometry... $ECHO_C" >&6
5681 no_cache=0
5682 # Check whether --enable-geometry or --disable-geometry was given.
5683if test "${enable_geometry+set}" = set; then
5684 enableval="$enable_geometry"
5685
5686 if test "$enableval" = yes; then
5687 ac_cv_use_geometry='wxUSE_GEOMETRY=yes'
5688 else
5689 ac_cv_use_geometry='wxUSE_GEOMETRY=no'
5690 fi
5691
5692else
5693
5694 LINE=`grep "wxUSE_GEOMETRY" ${wx_arg_cache_file}`
5695 if test "x$LINE" != x ; then
5696 eval "DEFAULT_$LINE"
5697 else
5698 no_cache=1
5699 fi
5700
5701 ac_cv_use_geometry='wxUSE_GEOMETRY='$DEFAULT_wxUSE_GEOMETRY
5702
5703fi;
5704
5705 eval "$ac_cv_use_geometry"
5706 if test "$no_cache" != 1; then
5707 echo $ac_cv_use_geometry >> ${wx_arg_cache_file}.tmp
5708 fi
5709
5710 if test "$wxUSE_GEOMETRY" = yes; then
5711 echo "$as_me:$LINENO: result: yes" >&5
5712echo "${ECHO_T}yes" >&6
5713 else
5714 echo "$as_me:$LINENO: result: no" >&5
5715echo "${ECHO_T}no" >&6
5716 fi
5717
5718
5719 enablestring=
5720 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-log" >&5
5721echo $ECHO_N "checking for --${enablestring:-enable}-log... $ECHO_C" >&6
5722 no_cache=0
5723 # Check whether --enable-log or --disable-log was given.
5724if test "${enable_log+set}" = set; then
5725 enableval="$enable_log"
5726
5727 if test "$enableval" = yes; then
5728 ac_cv_use_log='wxUSE_LOG=yes'
5729 else
5730 ac_cv_use_log='wxUSE_LOG=no'
5731 fi
5732
5733else
5734
5735 LINE=`grep "wxUSE_LOG" ${wx_arg_cache_file}`
5736 if test "x$LINE" != x ; then
5737 eval "DEFAULT_$LINE"
5738 else
5739 no_cache=1
5740 fi
5741
5742 ac_cv_use_log='wxUSE_LOG='$DEFAULT_wxUSE_LOG
5743
5744fi;
5745
5746 eval "$ac_cv_use_log"
5747 if test "$no_cache" != 1; then
5748 echo $ac_cv_use_log >> ${wx_arg_cache_file}.tmp
5749 fi
5750
5751 if test "$wxUSE_LOG" = yes; then
5752 echo "$as_me:$LINENO: result: yes" >&5
5753echo "${ECHO_T}yes" >&6
5754 else
5755 echo "$as_me:$LINENO: result: no" >&5
5756echo "${ECHO_T}no" >&6
5757 fi
5758
5759
5760 enablestring=
5761 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-longlong" >&5
5762echo $ECHO_N "checking for --${enablestring:-enable}-longlong... $ECHO_C" >&6
5763 no_cache=0
5764 # Check whether --enable-longlong or --disable-longlong was given.
5765if test "${enable_longlong+set}" = set; then
5766 enableval="$enable_longlong"
5767
5768 if test "$enableval" = yes; then
5769 ac_cv_use_longlong='wxUSE_LONGLONG=yes'
5770 else
5771 ac_cv_use_longlong='wxUSE_LONGLONG=no'
5772 fi
5773
5774else
5775
5776 LINE=`grep "wxUSE_LONGLONG" ${wx_arg_cache_file}`
5777 if test "x$LINE" != x ; then
5778 eval "DEFAULT_$LINE"
5779 else
5780 no_cache=1
5781 fi
5782
5783 ac_cv_use_longlong='wxUSE_LONGLONG='$DEFAULT_wxUSE_LONGLONG
5784
5785fi;
5786
5787 eval "$ac_cv_use_longlong"
5788 if test "$no_cache" != 1; then
5789 echo $ac_cv_use_longlong >> ${wx_arg_cache_file}.tmp
5790 fi
5791
5792 if test "$wxUSE_LONGLONG" = yes; then
5793 echo "$as_me:$LINENO: result: yes" >&5
5794echo "${ECHO_T}yes" >&6
5795 else
5796 echo "$as_me:$LINENO: result: no" >&5
5797echo "${ECHO_T}no" >&6
5798 fi
5799
5800
5801 enablestring=
5802 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mimetype" >&5
5803echo $ECHO_N "checking for --${enablestring:-enable}-mimetype... $ECHO_C" >&6
5804 no_cache=0
5805 # Check whether --enable-mimetype or --disable-mimetype was given.
5806if test "${enable_mimetype+set}" = set; then
5807 enableval="$enable_mimetype"
5808
5809 if test "$enableval" = yes; then
5810 ac_cv_use_mimetype='wxUSE_MIMETYPE=yes'
5811 else
5812 ac_cv_use_mimetype='wxUSE_MIMETYPE=no'
5813 fi
5814
5815else
5816
5817 LINE=`grep "wxUSE_MIMETYPE" ${wx_arg_cache_file}`
5818 if test "x$LINE" != x ; then
5819 eval "DEFAULT_$LINE"
5820 else
5821 no_cache=1
5822 fi
5823
5824 ac_cv_use_mimetype='wxUSE_MIMETYPE='$DEFAULT_wxUSE_MIMETYPE
5825
5826fi;
5827
5828 eval "$ac_cv_use_mimetype"
5829 if test "$no_cache" != 1; then
5830 echo $ac_cv_use_mimetype >> ${wx_arg_cache_file}.tmp
5831 fi
5832
5833 if test "$wxUSE_MIMETYPE" = yes; then
5834 echo "$as_me:$LINENO: result: yes" >&5
5835echo "${ECHO_T}yes" >&6
5836 else
5837 echo "$as_me:$LINENO: result: no" >&5
5838echo "${ECHO_T}no" >&6
5839 fi
5840
5841
5842 enablestring=
5843 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mslu" >&5
5844echo $ECHO_N "checking for --${enablestring:-enable}-mslu... $ECHO_C" >&6
5845 no_cache=0
5846 # Check whether --enable-mslu or --disable-mslu was given.
5847if test "${enable_mslu+set}" = set; then
5848 enableval="$enable_mslu"
5849
5850 if test "$enableval" = yes; then
5851 ac_cv_use_mslu='wxUSE_UNICODE_MSLU=yes'
5852 else
5853 ac_cv_use_mslu='wxUSE_UNICODE_MSLU=no'
5854 fi
5855
5856else
5857
5858 LINE=`grep "wxUSE_UNICODE_MSLU" ${wx_arg_cache_file}`
5859 if test "x$LINE" != x ; then
5860 eval "DEFAULT_$LINE"
5861 else
5862 no_cache=1
5863 fi
5864
5865 ac_cv_use_mslu='wxUSE_UNICODE_MSLU='$DEFAULT_wxUSE_UNICODE_MSLU
5866
5867fi;
5868
5869 eval "$ac_cv_use_mslu"
5870 if test "$no_cache" != 1; then
5871 echo $ac_cv_use_mslu >> ${wx_arg_cache_file}.tmp
5872 fi
5873
5874 if test "$wxUSE_UNICODE_MSLU" = yes; then
5875 echo "$as_me:$LINENO: result: yes" >&5
5876echo "${ECHO_T}yes" >&6
5877 else
5878 echo "$as_me:$LINENO: result: no" >&5
5879echo "${ECHO_T}no" >&6
5880 fi
5881
5882
5883 enablestring=
5884 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-snglinst" >&5
5885echo $ECHO_N "checking for --${enablestring:-enable}-snglinst... $ECHO_C" >&6
5886 no_cache=0
5887 # Check whether --enable-snglinst or --disable-snglinst was given.
5888if test "${enable_snglinst+set}" = set; then
5889 enableval="$enable_snglinst"
5890
5891 if test "$enableval" = yes; then
5892 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=yes'
5893 else
5894 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=no'
5895 fi
5896
5897else
5898
5899 LINE=`grep "wxUSE_SNGLINST_CHECKER" ${wx_arg_cache_file}`
5900 if test "x$LINE" != x ; then
5901 eval "DEFAULT_$LINE"
5902 else
5903 no_cache=1
5904 fi
5905
5906 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER='$DEFAULT_wxUSE_SNGLINST_CHECKER
5907
5908fi;
5909
5910 eval "$ac_cv_use_snglinst"
5911 if test "$no_cache" != 1; then
5912 echo $ac_cv_use_snglinst >> ${wx_arg_cache_file}.tmp
5913 fi
5914
5915 if test "$wxUSE_SNGLINST_CHECKER" = yes; then
5916 echo "$as_me:$LINENO: result: yes" >&5
5917echo "${ECHO_T}yes" >&6
5918 else
5919 echo "$as_me:$LINENO: result: no" >&5
5920echo "${ECHO_T}no" >&6
5921 fi
5922
5923
5924 enablestring=
07158944
VZ
5925 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-std_iostreams" >&5
5926echo $ECHO_N "checking for --${enablestring:-enable}-std_iostreams... $ECHO_C" >&6
a848cd7e 5927 no_cache=0
07158944
VZ
5928 # Check whether --enable-std_iostreams or --disable-std_iostreams was given.
5929if test "${enable_std_iostreams+set}" = set; then
5930 enableval="$enable_std_iostreams"
a848cd7e
SC
5931
5932 if test "$enableval" = yes; then
07158944 5933 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=yes'
a848cd7e 5934 else
07158944 5935 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=no'
a848cd7e
SC
5936 fi
5937
5938else
5939
07158944 5940 LINE=`grep "wxUSE_STD_IOSTREAM" ${wx_arg_cache_file}`
a848cd7e
SC
5941 if test "x$LINE" != x ; then
5942 eval "DEFAULT_$LINE"
5943 else
5944 no_cache=1
5945 fi
5946
07158944 5947 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM='$DEFAULT_wxUSE_STD_IOSTREAM
a848cd7e
SC
5948
5949fi;
5950
07158944 5951 eval "$ac_cv_use_std_iostreams"
a848cd7e 5952 if test "$no_cache" != 1; then
07158944 5953 echo $ac_cv_use_std_iostreams >> ${wx_arg_cache_file}.tmp
a848cd7e
SC
5954 fi
5955
07158944 5956 if test "$wxUSE_STD_IOSTREAM" = yes; then
a848cd7e
SC
5957 echo "$as_me:$LINENO: result: yes" >&5
5958echo "${ECHO_T}yes" >&6
5959 else
5960 echo "$as_me:$LINENO: result: no" >&5
5961echo "${ECHO_T}no" >&6
5962 fi
5963
5964
59746b65
MW
5965 enablestring=
5966 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-std_string" >&5
5967echo $ECHO_N "checking for --${enablestring:-enable}-std_string... $ECHO_C" >&6
5968 no_cache=0
5969 # Check whether --enable-std_string or --disable-std_string was given.
5970if test "${enable_std_string+set}" = set; then
5971 enableval="$enable_std_string"
5972
5973 if test "$enableval" = yes; then
5974 ac_cv_use_std_string='wxUSE_STD_STRING=yes'
5975 else
5976 ac_cv_use_std_string='wxUSE_STD_STRING=no'
5977 fi
5978
5979else
5980
5981 LINE=`grep "wxUSE_STD_STRING" ${wx_arg_cache_file}`
5982 if test "x$LINE" != x ; then
5983 eval "DEFAULT_$LINE"
5984 else
5985 no_cache=1
5986 fi
5987
5988 ac_cv_use_std_string='wxUSE_STD_STRING='$DEFAULT_wxUSE_STD_STRING
5989
5990fi;
5991
5992 eval "$ac_cv_use_std_string"
5993 if test "$no_cache" != 1; then
5994 echo $ac_cv_use_std_string >> ${wx_arg_cache_file}.tmp
5995 fi
5996
5997 if test "$wxUSE_STD_STRING" = yes; then
5998 echo "$as_me:$LINENO: result: yes" >&5
5999echo "${ECHO_T}yes" >&6
6000 else
6001 echo "$as_me:$LINENO: result: no" >&5
6002echo "${ECHO_T}no" >&6
6003 fi
6004
6005
a848cd7e 6006 enablestring=
07158944
VZ
6007 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stdpaths" >&5
6008echo $ECHO_N "checking for --${enablestring:-enable}-stdpaths... $ECHO_C" >&6
a848cd7e 6009 no_cache=0
07158944
VZ
6010 # Check whether --enable-stdpaths or --disable-stdpaths was given.
6011if test "${enable_stdpaths+set}" = set; then
6012 enableval="$enable_stdpaths"
a848cd7e
SC
6013
6014 if test "$enableval" = yes; then
07158944 6015 ac_cv_use_stdpaths='wxUSE_STDPATHS=yes'
a848cd7e 6016 else
07158944 6017 ac_cv_use_stdpaths='wxUSE_STDPATHS=no'
a848cd7e
SC
6018 fi
6019
6020else
6021
07158944 6022 LINE=`grep "wxUSE_STDPATHS" ${wx_arg_cache_file}`
a848cd7e
SC
6023 if test "x$LINE" != x ; then
6024 eval "DEFAULT_$LINE"
6025 else
6026 no_cache=1
6027 fi
6028
07158944 6029 ac_cv_use_stdpaths='wxUSE_STDPATHS='$DEFAULT_wxUSE_STDPATHS
a848cd7e
SC
6030
6031fi;
6032
07158944 6033 eval "$ac_cv_use_stdpaths"
a848cd7e 6034 if test "$no_cache" != 1; then
07158944 6035 echo $ac_cv_use_stdpaths >> ${wx_arg_cache_file}.tmp
a848cd7e
SC
6036 fi
6037
07158944 6038 if test "$wxUSE_STDPATHS" = yes; then
a848cd7e
SC
6039 echo "$as_me:$LINENO: result: yes" >&5
6040echo "${ECHO_T}yes" >&6
6041 else
6042 echo "$as_me:$LINENO: result: no" >&5
6043echo "${ECHO_T}no" >&6
6044 fi
6045
6046
6047 enablestring=
6048 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stopwatch" >&5
6049echo $ECHO_N "checking for --${enablestring:-enable}-stopwatch... $ECHO_C" >&6
6050 no_cache=0
6051 # Check whether --enable-stopwatch or --disable-stopwatch was given.
6052if test "${enable_stopwatch+set}" = set; then
6053 enableval="$enable_stopwatch"
6054
6055 if test "$enableval" = yes; then
6056 ac_cv_use_stopwatch='wxUSE_STOPWATCH=yes'
6057 else
6058 ac_cv_use_stopwatch='wxUSE_STOPWATCH=no'
6059 fi
6060
6061else
6062
6063 LINE=`grep "wxUSE_STOPWATCH" ${wx_arg_cache_file}`
6064 if test "x$LINE" != x ; then
6065 eval "DEFAULT_$LINE"
6066 else
6067 no_cache=1
6068 fi
6069
6070 ac_cv_use_stopwatch='wxUSE_STOPWATCH='$DEFAULT_wxUSE_STOPWATCH
6071
6072fi;
6073
6074 eval "$ac_cv_use_stopwatch"
6075 if test "$no_cache" != 1; then
6076 echo $ac_cv_use_stopwatch >> ${wx_arg_cache_file}.tmp
6077 fi
6078
6079 if test "$wxUSE_STOPWATCH" = yes; then
6080 echo "$as_me:$LINENO: result: yes" >&5
6081echo "${ECHO_T}yes" >&6
6082 else
6083 echo "$as_me:$LINENO: result: no" >&5
6084echo "${ECHO_T}no" >&6
6085 fi
6086
6087
07158944
VZ
6088 enablestring=
6089 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-streams" >&5
6090echo $ECHO_N "checking for --${enablestring:-enable}-streams... $ECHO_C" >&6
6091 no_cache=0
6092 # Check whether --enable-streams or --disable-streams was given.
6093if test "${enable_streams+set}" = set; then
6094 enableval="$enable_streams"
6095
6096 if test "$enableval" = yes; then
6097 ac_cv_use_streams='wxUSE_STREAMS=yes'
6098 else
6099 ac_cv_use_streams='wxUSE_STREAMS=no'
6100 fi
6101
6102else
6103
6104 LINE=`grep "wxUSE_STREAMS" ${wx_arg_cache_file}`
6105 if test "x$LINE" != x ; then
6106 eval "DEFAULT_$LINE"
6107 else
6108 no_cache=1
6109 fi
6110
6111 ac_cv_use_streams='wxUSE_STREAMS='$DEFAULT_wxUSE_STREAMS
6112
6113fi;
6114
6115 eval "$ac_cv_use_streams"
6116 if test "$no_cache" != 1; then
6117 echo $ac_cv_use_streams >> ${wx_arg_cache_file}.tmp
6118 fi
6119
6120 if test "$wxUSE_STREAMS" = yes; then
6121 echo "$as_me:$LINENO: result: yes" >&5
6122echo "${ECHO_T}yes" >&6
6123 else
6124 echo "$as_me:$LINENO: result: no" >&5
6125echo "${ECHO_T}no" >&6
6126 fi
6127
6128
a848cd7e
SC
6129 enablestring=
6130 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-system_options" >&5
6131echo $ECHO_N "checking for --${enablestring:-enable}-system_options... $ECHO_C" >&6
6132 no_cache=0
6133 # Check whether --enable-system_options or --disable-system_options was given.
6134if test "${enable_system_options+set}" = set; then
6135 enableval="$enable_system_options"
6136
6137 if test "$enableval" = yes; then
6138 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=yes'
6139 else
6140 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=no'
6141 fi
6142
6143else
6144
6145 LINE=`grep "wxUSE_SYSTEM_OPTIONS" ${wx_arg_cache_file}`
6146 if test "x$LINE" != x ; then
6147 eval "DEFAULT_$LINE"
6148 else
6149 no_cache=1
6150 fi
6151
6152 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS='$DEFAULT_wxUSE_SYSTEM_OPTIONS
6153
6154fi;
6155
6156 eval "$ac_cv_use_system_options"
6157 if test "$no_cache" != 1; then
6158 echo $ac_cv_use_system_options >> ${wx_arg_cache_file}.tmp
6159 fi
6160
6161 if test "$wxUSE_SYSTEM_OPTIONS" = yes; then
6162 echo "$as_me:$LINENO: result: yes" >&5
6163echo "${ECHO_T}yes" >&6
6164 else
6165 echo "$as_me:$LINENO: result: no" >&5
6166echo "${ECHO_T}no" >&6
6167 fi
6168
6169
6170 enablestring=
6171 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textbuf" >&5
6172echo $ECHO_N "checking for --${enablestring:-enable}-textbuf... $ECHO_C" >&6
6173 no_cache=0
6174 # Check whether --enable-textbuf or --disable-textbuf was given.
6175if test "${enable_textbuf+set}" = set; then
6176 enableval="$enable_textbuf"
6177
6178 if test "$enableval" = yes; then
6179 ac_cv_use_textbuf='wxUSE_TEXTBUFFER=yes'
6180 else
6181 ac_cv_use_textbuf='wxUSE_TEXTBUFFER=no'
6182 fi
6183
6184else
6185
6186 LINE=`grep "wxUSE_TEXTBUFFER" ${wx_arg_cache_file}`
6187 if test "x$LINE" != x ; then
6188 eval "DEFAULT_$LINE"
6189 else
6190 no_cache=1
6191 fi
6192
6193 ac_cv_use_textbuf='wxUSE_TEXTBUFFER='$DEFAULT_wxUSE_TEXTBUFFER
6194
6195fi;
6196
6197 eval "$ac_cv_use_textbuf"
6198 if test "$no_cache" != 1; then
6199 echo $ac_cv_use_textbuf >> ${wx_arg_cache_file}.tmp
6200 fi
6201
6202 if test "$wxUSE_TEXTBUFFER" = yes; then
6203 echo "$as_me:$LINENO: result: yes" >&5
6204echo "${ECHO_T}yes" >&6
6205 else
6206 echo "$as_me:$LINENO: result: no" >&5
6207echo "${ECHO_T}no" >&6
6208 fi
6209
6210
6211 enablestring=
6212 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textfile" >&5
6213echo $ECHO_N "checking for --${enablestring:-enable}-textfile... $ECHO_C" >&6
6214 no_cache=0
6215 # Check whether --enable-textfile or --disable-textfile was given.
6216if test "${enable_textfile+set}" = set; then
6217 enableval="$enable_textfile"
6218
6219 if test "$enableval" = yes; then
6220 ac_cv_use_textfile='wxUSE_TEXTFILE=yes'
6221 else
6222 ac_cv_use_textfile='wxUSE_TEXTFILE=no'
6223 fi
6224
6225else
6226
6227 LINE=`grep "wxUSE_TEXTFILE" ${wx_arg_cache_file}`
6228 if test "x$LINE" != x ; then
6229 eval "DEFAULT_$LINE"
6230 else
6231 no_cache=1
6232 fi
6233
6234 ac_cv_use_textfile='wxUSE_TEXTFILE='$DEFAULT_wxUSE_TEXTFILE
6235
6236fi;
6237
6238 eval "$ac_cv_use_textfile"
6239 if test "$no_cache" != 1; then
6240 echo $ac_cv_use_textfile >> ${wx_arg_cache_file}.tmp
6241 fi
6242
6243 if test "$wxUSE_TEXTFILE" = yes; then
6244 echo "$as_me:$LINENO: result: yes" >&5
6245echo "${ECHO_T}yes" >&6
6246 else
6247 echo "$as_me:$LINENO: result: no" >&5
6248echo "${ECHO_T}no" >&6
6249 fi
6250
6251
6252 enablestring=
6253 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-timer" >&5
6254echo $ECHO_N "checking for --${enablestring:-enable}-timer... $ECHO_C" >&6
6255 no_cache=0
6256 # Check whether --enable-timer or --disable-timer was given.
6257if test "${enable_timer+set}" = set; then
6258 enableval="$enable_timer"
6259
6260 if test "$enableval" = yes; then
6261 ac_cv_use_timer='wxUSE_TIMER=yes'
6262 else
6263 ac_cv_use_timer='wxUSE_TIMER=no'
6264 fi
6265
6266else
6267
6268 LINE=`grep "wxUSE_TIMER" ${wx_arg_cache_file}`
6269 if test "x$LINE" != x ; then
6270 eval "DEFAULT_$LINE"
6271 else
6272 no_cache=1
6273 fi
6274
6275 ac_cv_use_timer='wxUSE_TIMER='$DEFAULT_wxUSE_TIMER
6276
6277fi;
6278
6279 eval "$ac_cv_use_timer"
6280 if test "$no_cache" != 1; then
6281 echo $ac_cv_use_timer >> ${wx_arg_cache_file}.tmp
6282 fi
6283
6284 if test "$wxUSE_TIMER" = yes; then
6285 echo "$as_me:$LINENO: result: yes" >&5
6286echo "${ECHO_T}yes" >&6
6287 else
6288 echo "$as_me:$LINENO: result: no" >&5
6289echo "${ECHO_T}no" >&6
6290 fi
6291
6292
6293 enablestring=
6294 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-unicode" >&5
6295echo $ECHO_N "checking for --${enablestring:-enable}-unicode... $ECHO_C" >&6
6296 no_cache=0
6297 # Check whether --enable-unicode or --disable-unicode was given.
6298if test "${enable_unicode+set}" = set; then
6299 enableval="$enable_unicode"
6300
6301 if test "$enableval" = yes; then
6302 ac_cv_use_unicode='wxUSE_UNICODE=yes'
6303 else
6304 ac_cv_use_unicode='wxUSE_UNICODE=no'
6305 fi
6306
6307else
6308
6309 LINE=`grep "wxUSE_UNICODE" ${wx_arg_cache_file}`
6310 if test "x$LINE" != x ; then
6311 eval "DEFAULT_$LINE"
6312 else
6313 no_cache=1
6314 fi
6315
6316 ac_cv_use_unicode='wxUSE_UNICODE='$DEFAULT_wxUSE_UNICODE
6317
6318fi;
6319
6320 eval "$ac_cv_use_unicode"
6321 if test "$no_cache" != 1; then
6322 echo $ac_cv_use_unicode >> ${wx_arg_cache_file}.tmp
6323 fi
6324
6325 if test "$wxUSE_UNICODE" = yes; then
6326 echo "$as_me:$LINENO: result: yes" >&5
6327echo "${ECHO_T}yes" >&6
6328 else
6329 echo "$as_me:$LINENO: result: no" >&5
6330echo "${ECHO_T}no" >&6
6331 fi
6332
6333
6334 enablestring=
6335 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sound" >&5
6336echo $ECHO_N "checking for --${enablestring:-enable}-sound... $ECHO_C" >&6
6337 no_cache=0
6338 # Check whether --enable-sound or --disable-sound was given.
6339if test "${enable_sound+set}" = set; then
6340 enableval="$enable_sound"
6341
6342 if test "$enableval" = yes; then
6343 ac_cv_use_sound='wxUSE_SOUND=yes'
6344 else
6345 ac_cv_use_sound='wxUSE_SOUND=no'
6346 fi
6347
6348else
6349
6350 LINE=`grep "wxUSE_SOUND" ${wx_arg_cache_file}`
6351 if test "x$LINE" != x ; then
6352 eval "DEFAULT_$LINE"
6353 else
6354 no_cache=1
6355 fi
6356
6357 ac_cv_use_sound='wxUSE_SOUND='$DEFAULT_wxUSE_SOUND
6358
6359fi;
6360
6361 eval "$ac_cv_use_sound"
6362 if test "$no_cache" != 1; then
6363 echo $ac_cv_use_sound >> ${wx_arg_cache_file}.tmp
6364 fi
6365
6366 if test "$wxUSE_SOUND" = yes; then
6367 echo "$as_me:$LINENO: result: yes" >&5
6368echo "${ECHO_T}yes" >&6
6369 else
6370 echo "$as_me:$LINENO: result: no" >&5
6371echo "${ECHO_T}no" >&6
6372 fi
6373
6374
3b57de8b
RL
6375 enablestring=
6376 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mediactrl" >&5
6377echo $ECHO_N "checking for --${enablestring:-enable}-mediactrl... $ECHO_C" >&6
6378 no_cache=0
6379 # Check whether --enable-mediactrl or --disable-mediactrl was given.
6380if test "${enable_mediactrl+set}" = set; then
6381 enableval="$enable_mediactrl"
6382
6383 if test "$enableval" = yes; then
6384 ac_cv_use_mediactrl='wxUSE_MEDIACTRL=yes'
6385 else
6386 ac_cv_use_mediactrl='wxUSE_MEDIACTRL=no'
6387 fi
6388
6389else
6390
6391 LINE=`grep "wxUSE_MEDIACTRL" ${wx_arg_cache_file}`
6392 if test "x$LINE" != x ; then
6393 eval "DEFAULT_$LINE"
6394 else
6395 no_cache=1
6396 fi
6397
6398 ac_cv_use_mediactrl='wxUSE_MEDIACTRL='$DEFAULT_wxUSE_MEDIACTRL
6399
6400fi;
6401
6402 eval "$ac_cv_use_mediactrl"
6403 if test "$no_cache" != 1; then
6404 echo $ac_cv_use_mediactrl >> ${wx_arg_cache_file}.tmp
6405 fi
6406
6407 if test "$wxUSE_MEDIACTRL" = yes; then
6408 echo "$as_me:$LINENO: result: yes" >&5
6409echo "${ECHO_T}yes" >&6
6410 else
6411 echo "$as_me:$LINENO: result: no" >&5
6412echo "${ECHO_T}no" >&6
6413 fi
6414
6415
f10e38c4
VZ
6416 enablestring=
6417 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gstreamer8" >&5
6418echo $ECHO_N "checking for --${enablestring:-enable}-gstreamer8... $ECHO_C" >&6
6419 no_cache=0
6420 # Check whether --enable-gstreamer8 or --disable-gstreamer8 was given.
6421if test "${enable_gstreamer8+set}" = set; then
6422 enableval="$enable_gstreamer8"
6423
6424 if test "$enableval" = yes; then
6425 ac_cv_use_gstreamer8='wxUSE_GSTREAMER8=yes'
6426 else
6427 ac_cv_use_gstreamer8='wxUSE_GSTREAMER8=no'
6428 fi
6429
6430else
6431
6432 LINE=`grep "wxUSE_GSTREAMER8" ${wx_arg_cache_file}`
6433 if test "x$LINE" != x ; then
6434 eval "DEFAULT_$LINE"
6435 else
6436 no_cache=1
6437 fi
6438
6439 ac_cv_use_gstreamer8='wxUSE_GSTREAMER8='$DEFAULT_wxUSE_GSTREAMER8
6440
6441fi;
6442
6443 eval "$ac_cv_use_gstreamer8"
6444 if test "$no_cache" != 1; then
6445 echo $ac_cv_use_gstreamer8 >> ${wx_arg_cache_file}.tmp
6446 fi
6447
6448 if test "$wxUSE_GSTREAMER8" = yes; then
6449 echo "$as_me:$LINENO: result: yes" >&5
6450echo "${ECHO_T}yes" >&6
6451 else
6452 echo "$as_me:$LINENO: result: no" >&5
6453echo "${ECHO_T}no" >&6
6454 fi
6455
6456
a848cd7e 6457 enablestring=
8b6682b9
JS
6458 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-printfposparam" >&5
6459echo $ECHO_N "checking for --${enablestring:-enable}-printfposparam... $ECHO_C" >&6
a848cd7e 6460 no_cache=0
8b6682b9
JS
6461 # Check whether --enable-printfposparam or --disable-printfposparam was given.
6462if test "${enable_printfposparam+set}" = set; then
6463 enableval="$enable_printfposparam"
a848cd7e
SC
6464
6465 if test "$enableval" = yes; then
8b6682b9 6466 ac_cv_use_printfposparam='wxUSE_PRINTF_POS_PARAMS=yes'
a848cd7e 6467 else
8b6682b9 6468 ac_cv_use_printfposparam='wxUSE_PRINTF_POS_PARAMS=no'
a848cd7e
SC
6469 fi
6470
6471else
6472
8b6682b9 6473 LINE=`grep "wxUSE_PRINTF_POS_PARAMS" ${wx_arg_cache_file}`
a848cd7e
SC
6474 if test "x$LINE" != x ; then
6475 eval "DEFAULT_$LINE"
6476 else
6477 no_cache=1
6478 fi
6479
8b6682b9 6480 ac_cv_use_printfposparam='wxUSE_PRINTF_POS_PARAMS='$DEFAULT_wxUSE_PRINTF_POS_PARAMS
a848cd7e
SC
6481
6482fi;
6483
8b6682b9 6484 eval "$ac_cv_use_printfposparam"
a848cd7e 6485 if test "$no_cache" != 1; then
8b6682b9 6486 echo $ac_cv_use_printfposparam >> ${wx_arg_cache_file}.tmp
a848cd7e
SC
6487 fi
6488
8b6682b9 6489 if test "$wxUSE_PRINTF_POS_PARAMS" = yes; then
a848cd7e
SC
6490 echo "$as_me:$LINENO: result: yes" >&5
6491echo "${ECHO_T}yes" >&6
6492 else
6493 echo "$as_me:$LINENO: result: no" >&5
6494echo "${ECHO_T}no" >&6
6495 fi
6496
6497
6498 enablestring=
6499 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-zipstream" >&5
6500echo $ECHO_N "checking for --${enablestring:-enable}-zipstream... $ECHO_C" >&6
6501 no_cache=0
6502 # Check whether --enable-zipstream or --disable-zipstream was given.
6503if test "${enable_zipstream+set}" = set; then
6504 enableval="$enable_zipstream"
6505
6506 if test "$enableval" = yes; then
6507 ac_cv_use_zipstream='wxUSE_ZIPSTREAM=yes'
6508 else
6509 ac_cv_use_zipstream='wxUSE_ZIPSTREAM=no'
6510 fi
6511
6512else
6513
6514 LINE=`grep "wxUSE_ZIPSTREAM" ${wx_arg_cache_file}`
6515 if test "x$LINE" != x ; then
6516 eval "DEFAULT_$LINE"
6517 else
6518 no_cache=1
6519 fi
6520
6521 ac_cv_use_zipstream='wxUSE_ZIPSTREAM='$DEFAULT_wxUSE_ZIPSTREAM
6522
6523fi;
6524
6525 eval "$ac_cv_use_zipstream"
6526 if test "$no_cache" != 1; then
6527 echo $ac_cv_use_zipstream >> ${wx_arg_cache_file}.tmp
6528 fi
6529
6530 if test "$wxUSE_ZIPSTREAM" = yes; then
6531 echo "$as_me:$LINENO: result: yes" >&5
6532echo "${ECHO_T}yes" >&6
6533 else
6534 echo "$as_me:$LINENO: result: no" >&5
6535echo "${ECHO_T}no" >&6
6536 fi
6537
6538
a848cd7e
SC
6539
6540 enablestring=
6541 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-url" >&5
6542echo $ECHO_N "checking for --${enablestring:-enable}-url... $ECHO_C" >&6
6543 no_cache=0
6544 # Check whether --enable-url or --disable-url was given.
6545if test "${enable_url+set}" = set; then
6546 enableval="$enable_url"
6547
6548 if test "$enableval" = yes; then
6549 ac_cv_use_url='wxUSE_URL=yes'
6550 else
6551 ac_cv_use_url='wxUSE_URL=no'
6552 fi
6553
6554else
6555
6556 LINE=`grep "wxUSE_URL" ${wx_arg_cache_file}`
6557 if test "x$LINE" != x ; then
6558 eval "DEFAULT_$LINE"
6559 else
6560 no_cache=1
6561 fi
6562
6563 ac_cv_use_url='wxUSE_URL='$DEFAULT_wxUSE_URL
6564
6565fi;
6566
6567 eval "$ac_cv_use_url"
6568 if test "$no_cache" != 1; then
6569 echo $ac_cv_use_url >> ${wx_arg_cache_file}.tmp
6570 fi
6571
6572 if test "$wxUSE_URL" = yes; then
6573 echo "$as_me:$LINENO: result: yes" >&5
6574echo "${ECHO_T}yes" >&6
6575 else
6576 echo "$as_me:$LINENO: result: no" >&5
6577echo "${ECHO_T}no" >&6
6578 fi
6579
6580
ca5c6ac3
VZ
6581 enablestring=
6582 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-variant" >&5
6583echo $ECHO_N "checking for --${enablestring:-enable}-variant... $ECHO_C" >&6
6584 no_cache=0
6585 # Check whether --enable-variant or --disable-variant was given.
6586if test "${enable_variant+set}" = set; then
6587 enableval="$enable_variant"
6588
6589 if test "$enableval" = yes; then
6590 ac_cv_use_variant='wxUSE_VARIANT=yes'
6591 else
6592 ac_cv_use_variant='wxUSE_VARIANT=no'
6593 fi
6594
6595else
6596
6597 LINE=`grep "wxUSE_VARIANT" ${wx_arg_cache_file}`
6598 if test "x$LINE" != x ; then
6599 eval "DEFAULT_$LINE"
6600 else
6601 no_cache=1
6602 fi
6603
6604 ac_cv_use_variant='wxUSE_VARIANT='$DEFAULT_wxUSE_VARIANT
6605
6606fi;
6607
6608 eval "$ac_cv_use_variant"
6609 if test "$no_cache" != 1; then
6610 echo $ac_cv_use_variant >> ${wx_arg_cache_file}.tmp
6611 fi
6612
6613 if test "$wxUSE_VARIANT" = yes; then
6614 echo "$as_me:$LINENO: result: yes" >&5
6615echo "${ECHO_T}yes" >&6
6616 else
6617 echo "$as_me:$LINENO: result: no" >&5
6618echo "${ECHO_T}no" >&6
6619 fi
6620
6621
a848cd7e
SC
6622 enablestring=
6623 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol" >&5
6624echo $ECHO_N "checking for --${enablestring:-enable}-protocol... $ECHO_C" >&6
6625 no_cache=0
6626 # Check whether --enable-protocol or --disable-protocol was given.
6627if test "${enable_protocol+set}" = set; then
6628 enableval="$enable_protocol"
6629
6630 if test "$enableval" = yes; then
6631 ac_cv_use_protocol='wxUSE_PROTOCOL=yes'
6632 else
6633 ac_cv_use_protocol='wxUSE_PROTOCOL=no'
6634 fi
6635
6636else
6637
6638 LINE=`grep "wxUSE_PROTOCOL" ${wx_arg_cache_file}`
6639 if test "x$LINE" != x ; then
6640 eval "DEFAULT_$LINE"
6641 else
6642 no_cache=1
6643 fi
6644
6645 ac_cv_use_protocol='wxUSE_PROTOCOL='$DEFAULT_wxUSE_PROTOCOL
6646
6647fi;
6648
6649 eval "$ac_cv_use_protocol"
6650 if test "$no_cache" != 1; then
6651 echo $ac_cv_use_protocol >> ${wx_arg_cache_file}.tmp
6652 fi
6653
6654 if test "$wxUSE_PROTOCOL" = yes; then
6655 echo "$as_me:$LINENO: result: yes" >&5
6656echo "${ECHO_T}yes" >&6
6657 else
6658 echo "$as_me:$LINENO: result: no" >&5
6659echo "${ECHO_T}no" >&6
6660 fi
6661
6662
6663 enablestring=
6664 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_http" >&5
6665echo $ECHO_N "checking for --${enablestring:-enable}-protocol_http... $ECHO_C" >&6
6666 no_cache=0
6667 # Check whether --enable-protocol_http or --disable-protocol_http was given.
6668if test "${enable_protocol_http+set}" = set; then
6669 enableval="$enable_protocol_http"
6670
6671 if test "$enableval" = yes; then
6672 ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=yes'
6673 else
6674 ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=no'
6675 fi
6676
6677else
6678
6679 LINE=`grep "wxUSE_PROTOCOL_HTTP" ${wx_arg_cache_file}`
6680 if test "x$LINE" != x ; then
6681 eval "DEFAULT_$LINE"
6682 else
6683 no_cache=1
6684 fi
6685
6686 ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP='$DEFAULT_wxUSE_PROTOCOL_HTTP
6687
6688fi;
6689
6690 eval "$ac_cv_use_protocol_http"
6691 if test "$no_cache" != 1; then
6692 echo $ac_cv_use_protocol_http >> ${wx_arg_cache_file}.tmp
6693 fi
6694
6695 if test "$wxUSE_PROTOCOL_HTTP" = yes; then
6696 echo "$as_me:$LINENO: result: yes" >&5
6697echo "${ECHO_T}yes" >&6
6698 else
6699 echo "$as_me:$LINENO: result: no" >&5
6700echo "${ECHO_T}no" >&6
6701 fi
6702
6703
6704 enablestring=
6705 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_ftp" >&5
6706echo $ECHO_N "checking for --${enablestring:-enable}-protocol_ftp... $ECHO_C" >&6
6707 no_cache=0
6708 # Check whether --enable-protocol_ftp or --disable-protocol_ftp was given.
6709if test "${enable_protocol_ftp+set}" = set; then
6710 enableval="$enable_protocol_ftp"
6711
6712 if test "$enableval" = yes; then
6713 ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=yes'
6714 else
6715 ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=no'
6716 fi
6717
6718else
6719
6720 LINE=`grep "wxUSE_PROTOCOL_FTP" ${wx_arg_cache_file}`
6721 if test "x$LINE" != x ; then
6722 eval "DEFAULT_$LINE"
6723 else
6724 no_cache=1
6725 fi
6726
6727 ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP='$DEFAULT_wxUSE_PROTOCOL_FTP
6728
6729fi;
6730
6731 eval "$ac_cv_use_protocol_ftp"
6732 if test "$no_cache" != 1; then
6733 echo $ac_cv_use_protocol_ftp >> ${wx_arg_cache_file}.tmp
6734 fi
6735
6736 if test "$wxUSE_PROTOCOL_FTP" = yes; then
6737 echo "$as_me:$LINENO: result: yes" >&5
6738echo "${ECHO_T}yes" >&6
6739 else
6740 echo "$as_me:$LINENO: result: no" >&5
6741echo "${ECHO_T}no" >&6
6742 fi
6743
6744
6745 enablestring=
6746 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_file" >&5
6747echo $ECHO_N "checking for --${enablestring:-enable}-protocol_file... $ECHO_C" >&6
6748 no_cache=0
6749 # Check whether --enable-protocol_file or --disable-protocol_file was given.
6750if test "${enable_protocol_file+set}" = set; then
6751 enableval="$enable_protocol_file"
6752
6753 if test "$enableval" = yes; then
6754 ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=yes'
6755 else
6756 ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=no'
6757 fi
6758
6759else
6760
6761 LINE=`grep "wxUSE_PROTOCOL_FILE" ${wx_arg_cache_file}`
6762 if test "x$LINE" != x ; then
6763 eval "DEFAULT_$LINE"
6764 else
6765 no_cache=1
6766 fi
6767
6768 ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE='$DEFAULT_wxUSE_PROTOCOL_FILE
6769
6770fi;
6771
6772 eval "$ac_cv_use_protocol_file"
6773 if test "$no_cache" != 1; then
6774 echo $ac_cv_use_protocol_file >> ${wx_arg_cache_file}.tmp
6775 fi
6776
6777 if test "$wxUSE_PROTOCOL_FILE" = yes; then
6778 echo "$as_me:$LINENO: result: yes" >&5
6779echo "${ECHO_T}yes" >&6
6780 else
6781 echo "$as_me:$LINENO: result: no" >&5
6782echo "${ECHO_T}no" >&6
6783 fi
6784
6785
6786
6787
6788
6789 enablestring=
6790 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-threads" >&5
6791echo $ECHO_N "checking for --${enablestring:-enable}-threads... $ECHO_C" >&6
6792 no_cache=0
6793 # Check whether --enable-threads or --disable-threads was given.
6794if test "${enable_threads+set}" = set; then
6795 enableval="$enable_threads"
6796
6797 if test "$enableval" = yes; then
6798 ac_cv_use_threads='wxUSE_THREADS=yes'
6799 else
6800 ac_cv_use_threads='wxUSE_THREADS=no'
6801 fi
6802
6803else
6804
6805 LINE=`grep "wxUSE_THREADS" ${wx_arg_cache_file}`
6806 if test "x$LINE" != x ; then
6807 eval "DEFAULT_$LINE"
6808 else
6809 no_cache=1
6810 fi
6811
6812 ac_cv_use_threads='wxUSE_THREADS='$DEFAULT_wxUSE_THREADS
6813
6814fi;
6815
6816 eval "$ac_cv_use_threads"
6817 if test "$no_cache" != 1; then
6818 echo $ac_cv_use_threads >> ${wx_arg_cache_file}.tmp
6819 fi
6820
6821 if test "$wxUSE_THREADS" = yes; then
6822 echo "$as_me:$LINENO: result: yes" >&5
6823echo "${ECHO_T}yes" >&6
6824 else
6825 echo "$as_me:$LINENO: result: no" >&5
6826echo "${ECHO_T}no" >&6
6827 fi
6828
6829
6830if test "$wxUSE_GUI" = "yes"; then
6831
6832
6833
6834 enablestring=
6835 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-docview" >&5
6836echo $ECHO_N "checking for --${enablestring:-enable}-docview... $ECHO_C" >&6
6837 no_cache=0
6838 # Check whether --enable-docview or --disable-docview was given.
6839if test "${enable_docview+set}" = set; then
6840 enableval="$enable_docview"
6841
6842 if test "$enableval" = yes; then
6843 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=yes'
6844 else
6845 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=no'
6846 fi
6847
6848else
6849
6850 LINE=`grep "wxUSE_DOC_VIEW_ARCHITECTURE" ${wx_arg_cache_file}`
6851 if test "x$LINE" != x ; then
6852 eval "DEFAULT_$LINE"
6853 else
6854 no_cache=1
6855 fi
6856
6857 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE='$DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE
6858
6859fi;
6860
6861 eval "$ac_cv_use_docview"
6862 if test "$no_cache" != 1; then
6863 echo $ac_cv_use_docview >> ${wx_arg_cache_file}.tmp
6864 fi
6865
6866 if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = yes; then
6867 echo "$as_me:$LINENO: result: yes" >&5
6868echo "${ECHO_T}yes" >&6
6869 else
6870 echo "$as_me:$LINENO: result: no" >&5
6871echo "${ECHO_T}no" >&6
6872 fi
6873
6874
6875 enablestring=
6876 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-help" >&5
6877echo $ECHO_N "checking for --${enablestring:-enable}-help... $ECHO_C" >&6
6878 no_cache=0
6879 # Check whether --enable-help or --disable-help was given.
6880if test "${enable_help+set}" = set; then
6881 enableval="$enable_help"
6882
6883 if test "$enableval" = yes; then
6884 ac_cv_use_help='wxUSE_HELP=yes'
6885 else
6886 ac_cv_use_help='wxUSE_HELP=no'
6887 fi
6888
6889else
6890
6891 LINE=`grep "wxUSE_HELP" ${wx_arg_cache_file}`
6892 if test "x$LINE" != x ; then
6893 eval "DEFAULT_$LINE"
6894 else
6895 no_cache=1
6896 fi
6897
6898 ac_cv_use_help='wxUSE_HELP='$DEFAULT_wxUSE_HELP
6899
6900fi;
6901
6902 eval "$ac_cv_use_help"
6903 if test "$no_cache" != 1; then
6904 echo $ac_cv_use_help >> ${wx_arg_cache_file}.tmp
6905 fi
6906
6907 if test "$wxUSE_HELP" = yes; then
6908 echo "$as_me:$LINENO: result: yes" >&5
6909echo "${ECHO_T}yes" >&6
6910 else
6911 echo "$as_me:$LINENO: result: no" >&5
6912echo "${ECHO_T}no" >&6
6913 fi
6914
6915
6916 enablestring=
6917 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mshtmlhelp" >&5
6918echo $ECHO_N "checking for --${enablestring:-enable}-mshtmlhelp... $ECHO_C" >&6
6919 no_cache=0
6920 # Check whether --enable-mshtmlhelp or --disable-mshtmlhelp was given.
6921if test "${enable_mshtmlhelp+set}" = set; then
6922 enableval="$enable_mshtmlhelp"
6923
6924 if test "$enableval" = yes; then
6925 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=yes'
6926 else
6927 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=no'
6928 fi
6929
6930else
6931
6932 LINE=`grep "wxUSE_MS_HTML_HELP" ${wx_arg_cache_file}`
6933 if test "x$LINE" != x ; then
6934 eval "DEFAULT_$LINE"
6935 else
6936 no_cache=1
6937 fi
6938
6939 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP='$DEFAULT_wxUSE_MS_HTML_HELP
6940
6941fi;
6942
6943 eval "$ac_cv_use_mshtmlhelp"
6944 if test "$no_cache" != 1; then
6945 echo $ac_cv_use_mshtmlhelp >> ${wx_arg_cache_file}.tmp
6946 fi
6947
6948 if test "$wxUSE_MS_HTML_HELP" = yes; then
6949 echo "$as_me:$LINENO: result: yes" >&5
6950echo "${ECHO_T}yes" >&6
6951 else
6952 echo "$as_me:$LINENO: result: no" >&5
6953echo "${ECHO_T}no" >&6
6954 fi
6955
6956
6957 enablestring=
6958 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-html" >&5
6959echo $ECHO_N "checking for --${enablestring:-enable}-html... $ECHO_C" >&6
6960 no_cache=0
6961 # Check whether --enable-html or --disable-html was given.
6962if test "${enable_html+set}" = set; then
6963 enableval="$enable_html"
6964
6965 if test "$enableval" = yes; then
6966 ac_cv_use_html='wxUSE_HTML=yes'
6967 else
6968 ac_cv_use_html='wxUSE_HTML=no'
6969 fi
6970
6971else
6972
6973 LINE=`grep "wxUSE_HTML" ${wx_arg_cache_file}`
6974 if test "x$LINE" != x ; then
6975 eval "DEFAULT_$LINE"
6976 else
6977 no_cache=1
6978 fi
6979
6980 ac_cv_use_html='wxUSE_HTML='$DEFAULT_wxUSE_HTML
6981
6982fi;
6983
6984 eval "$ac_cv_use_html"
6985 if test "$no_cache" != 1; then
6986 echo $ac_cv_use_html >> ${wx_arg_cache_file}.tmp
6987 fi
6988
6989 if test "$wxUSE_HTML" = yes; then
6990 echo "$as_me:$LINENO: result: yes" >&5
6991echo "${ECHO_T}yes" >&6
6992 else
6993 echo "$as_me:$LINENO: result: no" >&5
6994echo "${ECHO_T}no" >&6
6995 fi
6996
6997
6998 enablestring=
6999 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-htmlhelp" >&5
7000echo $ECHO_N "checking for --${enablestring:-enable}-htmlhelp... $ECHO_C" >&6
7001 no_cache=0
7002 # Check whether --enable-htmlhelp or --disable-htmlhelp was given.
7003if test "${enable_htmlhelp+set}" = set; then
7004 enableval="$enable_htmlhelp"
7005
7006 if test "$enableval" = yes; then
7007 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=yes'
7008 else
7009 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=no'
7010 fi
7011
7012else
7013
7014 LINE=`grep "wxUSE_WXHTML_HELP" ${wx_arg_cache_file}`
7015 if test "x$LINE" != x ; then
7016 eval "DEFAULT_$LINE"
7017 else
7018 no_cache=1
7019 fi
7020
7021 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP='$DEFAULT_wxUSE_WXHTML_HELP
7022
7023fi;
7024
7025 eval "$ac_cv_use_htmlhelp"
7026 if test "$no_cache" != 1; then
7027 echo $ac_cv_use_htmlhelp >> ${wx_arg_cache_file}.tmp
7028 fi
7029
7030 if test "$wxUSE_WXHTML_HELP" = yes; then
7031 echo "$as_me:$LINENO: result: yes" >&5
7032echo "${ECHO_T}yes" >&6
7033 else
7034 echo "$as_me:$LINENO: result: no" >&5
7035echo "${ECHO_T}no" >&6
7036 fi
7037
7038
9a8f0513
VS
7039 enablestring=
7040 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-xrc" >&5
7041echo $ECHO_N "checking for --${enablestring:-enable}-xrc... $ECHO_C" >&6
7042 no_cache=0
7043 # Check whether --enable-xrc or --disable-xrc was given.
7044if test "${enable_xrc+set}" = set; then
7045 enableval="$enable_xrc"
7046
7047 if test "$enableval" = yes; then
7048 ac_cv_use_xrc='wxUSE_XRC=yes'
7049 else
7050 ac_cv_use_xrc='wxUSE_XRC=no'
7051 fi
7052
7053else
7054
7055 LINE=`grep "wxUSE_XRC" ${wx_arg_cache_file}`
7056 if test "x$LINE" != x ; then
7057 eval "DEFAULT_$LINE"
7058 else
7059 no_cache=1
7060 fi
7061
7062 ac_cv_use_xrc='wxUSE_XRC='$DEFAULT_wxUSE_XRC
7063
7064fi;
7065
7066 eval "$ac_cv_use_xrc"
7067 if test "$no_cache" != 1; then
7068 echo $ac_cv_use_xrc >> ${wx_arg_cache_file}.tmp
7069 fi
7070
7071 if test "$wxUSE_XRC" = yes; then
7072 echo "$as_me:$LINENO: result: yes" >&5
7073echo "${ECHO_T}yes" >&6
7074 else
7075 echo "$as_me:$LINENO: result: no" >&5
7076echo "${ECHO_T}no" >&6
7077 fi
7078
7079
3f60522a
JS
7080 enablestring=
7081 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-aui" >&5
7082echo $ECHO_N "checking for --${enablestring:-enable}-aui... $ECHO_C" >&6
7083 no_cache=0
7084 # Check whether --enable-aui or --disable-aui was given.
7085if test "${enable_aui+set}" = set; then
7086 enableval="$enable_aui"
7087
7088 if test "$enableval" = yes; then
7089 ac_cv_use_aui='wxUSE_AUI=yes'
7090 else
7091 ac_cv_use_aui='wxUSE_AUI=no'
7092 fi
7093
7094else
7095
7096 LINE=`grep "wxUSE_AUI" ${wx_arg_cache_file}`
7097 if test "x$LINE" != x ; then
7098 eval "DEFAULT_$LINE"
7099 else
7100 no_cache=1
7101 fi
7102
7103 ac_cv_use_aui='wxUSE_AUI='$DEFAULT_wxUSE_AUI
7104
7105fi;
7106
7107 eval "$ac_cv_use_aui"
7108 if test "$no_cache" != 1; then
7109 echo $ac_cv_use_aui >> ${wx_arg_cache_file}.tmp
7110 fi
7111
7112 if test "$wxUSE_AUI" = yes; then
7113 echo "$as_me:$LINENO: result: yes" >&5
7114echo "${ECHO_T}yes" >&6
7115 else
7116 echo "$as_me:$LINENO: result: no" >&5
7117echo "${ECHO_T}no" >&6
7118 fi
7119
7120
a848cd7e
SC
7121 enablestring=
7122 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-constraints" >&5
7123echo $ECHO_N "checking for --${enablestring:-enable}-constraints... $ECHO_C" >&6
7124 no_cache=0
7125 # Check whether --enable-constraints or --disable-constraints was given.
7126if test "${enable_constraints+set}" = set; then
7127 enableval="$enable_constraints"
7128
7129 if test "$enableval" = yes; then
7130 ac_cv_use_constraints='wxUSE_CONSTRAINTS=yes'
7131 else
7132 ac_cv_use_constraints='wxUSE_CONSTRAINTS=no'
7133 fi
7134
7135else
7136
7137 LINE=`grep "wxUSE_CONSTRAINTS" ${wx_arg_cache_file}`
7138 if test "x$LINE" != x ; then
7139 eval "DEFAULT_$LINE"
7140 else
7141 no_cache=1
7142 fi
7143
7144 ac_cv_use_constraints='wxUSE_CONSTRAINTS='$DEFAULT_wxUSE_CONSTRAINTS
7145
7146fi;
7147
7148 eval "$ac_cv_use_constraints"
7149 if test "$no_cache" != 1; then
7150 echo $ac_cv_use_constraints >> ${wx_arg_cache_file}.tmp
7151 fi
7152
7153 if test "$wxUSE_CONSTRAINTS" = yes; then
7154 echo "$as_me:$LINENO: result: yes" >&5
7155echo "${ECHO_T}yes" >&6
7156 else
7157 echo "$as_me:$LINENO: result: no" >&5
7158echo "${ECHO_T}no" >&6
7159 fi
7160
7161
7162 enablestring=
7163 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-printarch" >&5
7164echo $ECHO_N "checking for --${enablestring:-enable}-printarch... $ECHO_C" >&6
7165 no_cache=0
7166 # Check whether --enable-printarch or --disable-printarch was given.
7167if test "${enable_printarch+set}" = set; then
7168 enableval="$enable_printarch"
7169
7170 if test "$enableval" = yes; then
7171 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=yes'
7172 else
7173 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=no'
7174 fi
7175
7176else
7177
7178 LINE=`grep "wxUSE_PRINTING_ARCHITECTURE" ${wx_arg_cache_file}`
7179 if test "x$LINE" != x ; then
7180 eval "DEFAULT_$LINE"
7181 else
7182 no_cache=1
7183 fi
7184
7185 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE='$DEFAULT_wxUSE_PRINTING_ARCHITECTURE
7186
7187fi;
7188
7189 eval "$ac_cv_use_printarch"
7190 if test "$no_cache" != 1; then
7191 echo $ac_cv_use_printarch >> ${wx_arg_cache_file}.tmp
7192 fi
7193
7194 if test "$wxUSE_PRINTING_ARCHITECTURE" = yes; then
7195 echo "$as_me:$LINENO: result: yes" >&5
7196echo "${ECHO_T}yes" >&6
7197 else
7198 echo "$as_me:$LINENO: result: no" >&5
7199echo "${ECHO_T}no" >&6
7200 fi
7201
7202
7203 enablestring=
7204 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mdi" >&5
7205echo $ECHO_N "checking for --${enablestring:-enable}-mdi... $ECHO_C" >&6
7206 no_cache=0
7207 # Check whether --enable-mdi or --disable-mdi was given.
7208if test "${enable_mdi+set}" = set; then
7209 enableval="$enable_mdi"
7210
7211 if test "$enableval" = yes; then
8a7b1113 7212 ac_cv_use_mdi='wxUSE_MDI=yes'
a848cd7e 7213 else
8a7b1113 7214 ac_cv_use_mdi='wxUSE_MDI=no'
a848cd7e
SC
7215 fi
7216
7217else
7218
8a7b1113 7219 LINE=`grep "wxUSE_MDI" ${wx_arg_cache_file}`
a848cd7e
SC
7220 if test "x$LINE" != x ; then
7221 eval "DEFAULT_$LINE"
7222 else
7223 no_cache=1
7224 fi
7225
8a7b1113 7226 ac_cv_use_mdi='wxUSE_MDI='$DEFAULT_wxUSE_MDI
a848cd7e
SC
7227
7228fi;
7229
7230 eval "$ac_cv_use_mdi"
7231 if test "$no_cache" != 1; then
7232 echo $ac_cv_use_mdi >> ${wx_arg_cache_file}.tmp
7233 fi
7234
8a7b1113
VZ
7235 if test "$wxUSE_MDI" = yes; then
7236 echo "$as_me:$LINENO: result: yes" >&5
7237echo "${ECHO_T}yes" >&6
7238 else
7239 echo "$as_me:$LINENO: result: no" >&5
7240echo "${ECHO_T}no" >&6
7241 fi
7242
7243
7244 enablestring=
7245 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mdidoc" >&5
7246echo $ECHO_N "checking for --${enablestring:-enable}-mdidoc... $ECHO_C" >&6
7247 no_cache=0
7248 # Check whether --enable-mdidoc or --disable-mdidoc was given.
7249if test "${enable_mdidoc+set}" = set; then
7250 enableval="$enable_mdidoc"
7251
7252 if test "$enableval" = yes; then
7253 ac_cv_use_mdidoc='wxUSE_MDI_ARCHITECTURE=yes'
7254 else
7255 ac_cv_use_mdidoc='wxUSE_MDI_ARCHITECTURE=no'
7256 fi
7257
7258else
7259
7260 LINE=`grep "wxUSE_MDI_ARCHITECTURE" ${wx_arg_cache_file}`
7261 if test "x$LINE" != x ; then
7262 eval "DEFAULT_$LINE"
7263 else
7264 no_cache=1
7265 fi
7266
7267 ac_cv_use_mdidoc='wxUSE_MDI_ARCHITECTURE='$DEFAULT_wxUSE_MDI_ARCHITECTURE
7268
7269fi;
7270
7271 eval "$ac_cv_use_mdidoc"
7272 if test "$no_cache" != 1; then
7273 echo $ac_cv_use_mdidoc >> ${wx_arg_cache_file}.tmp
7274 fi
7275
a848cd7e
SC
7276 if test "$wxUSE_MDI_ARCHITECTURE" = yes; then
7277 echo "$as_me:$LINENO: result: yes" >&5
7278echo "${ECHO_T}yes" >&6
7279 else
7280 echo "$as_me:$LINENO: result: no" >&5
7281echo "${ECHO_T}no" >&6
7282 fi
7283
7284
7285 enablestring=
7286 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-loggui" >&5
7287echo $ECHO_N "checking for --${enablestring:-enable}-loggui... $ECHO_C" >&6
7288 no_cache=0
7289 # Check whether --enable-loggui or --disable-loggui was given.
7290if test "${enable_loggui+set}" = set; then
7291 enableval="$enable_loggui"
7292
7293 if test "$enableval" = yes; then
7294 ac_cv_use_loggui='wxUSE_LOGGUI=yes'
7295 else
7296 ac_cv_use_loggui='wxUSE_LOGGUI=no'
7297 fi
7298
7299else
7300
7301 LINE=`grep "wxUSE_LOGGUI" ${wx_arg_cache_file}`
7302 if test "x$LINE" != x ; then
7303 eval "DEFAULT_$LINE"
7304 else
7305 no_cache=1
7306 fi
7307
7308 ac_cv_use_loggui='wxUSE_LOGGUI='$DEFAULT_wxUSE_LOGGUI
7309
7310fi;
7311
7312 eval "$ac_cv_use_loggui"
7313 if test "$no_cache" != 1; then
7314 echo $ac_cv_use_loggui >> ${wx_arg_cache_file}.tmp
7315 fi
7316
7317 if test "$wxUSE_LOGGUI" = yes; then
7318 echo "$as_me:$LINENO: result: yes" >&5
7319echo "${ECHO_T}yes" >&6
7320 else
7321 echo "$as_me:$LINENO: result: no" >&5
7322echo "${ECHO_T}no" >&6
7323 fi
7324
7325
7326 enablestring=
7327 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-logwin" >&5
7328echo $ECHO_N "checking for --${enablestring:-enable}-logwin... $ECHO_C" >&6
7329 no_cache=0
7330 # Check whether --enable-logwin or --disable-logwin was given.
7331if test "${enable_logwin+set}" = set; then
7332 enableval="$enable_logwin"
7333
7334 if test "$enableval" = yes; then
7335 ac_cv_use_logwin='wxUSE_LOGWINDOW=yes'
7336 else
7337 ac_cv_use_logwin='wxUSE_LOGWINDOW=no'
7338 fi
7339
7340else
7341
7342 LINE=`grep "wxUSE_LOGWINDOW" ${wx_arg_cache_file}`
7343 if test "x$LINE" != x ; then
7344 eval "DEFAULT_$LINE"
7345 else
7346 no_cache=1
7347 fi
7348
7349 ac_cv_use_logwin='wxUSE_LOGWINDOW='$DEFAULT_wxUSE_LOGWINDOW
7350
7351fi;
7352
7353 eval "$ac_cv_use_logwin"
7354 if test "$no_cache" != 1; then
7355 echo $ac_cv_use_logwin >> ${wx_arg_cache_file}.tmp
7356 fi
7357
7358 if test "$wxUSE_LOGWINDOW" = yes; then
7359 echo "$as_me:$LINENO: result: yes" >&5
7360echo "${ECHO_T}yes" >&6
7361 else
7362 echo "$as_me:$LINENO: result: no" >&5
7363echo "${ECHO_T}no" >&6
7364 fi
7365
7366
7367 enablestring=
7368 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-logdialog" >&5
7369echo $ECHO_N "checking for --${enablestring:-enable}-logdialog... $ECHO_C" >&6
7370 no_cache=0
7371 # Check whether --enable-logdialog or --disable-logdialog was given.
7372if test "${enable_logdialog+set}" = set; then
7373 enableval="$enable_logdialog"
7374
7375 if test "$enableval" = yes; then
7376 ac_cv_use_logdialog='wxUSE_LOGDIALOG=yes'
7377 else
7378 ac_cv_use_logdialog='wxUSE_LOGDIALOG=no'
7379 fi
7380
7381else
7382
7383 LINE=`grep "wxUSE_LOGDIALOG" ${wx_arg_cache_file}`
7384 if test "x$LINE" != x ; then
7385 eval "DEFAULT_$LINE"
7386 else
7387 no_cache=1
7388 fi
7389
7390 ac_cv_use_logdialog='wxUSE_LOGDIALOG='$DEFAULT_wxUSE_LOGDIALOG
7391
7392fi;
7393
7394 eval "$ac_cv_use_logdialog"
7395 if test "$no_cache" != 1; then
7396 echo $ac_cv_use_logdialog >> ${wx_arg_cache_file}.tmp
7397 fi
7398
7399 if test "$wxUSE_LOGDIALOG" = yes; then
7400 echo "$as_me:$LINENO: result: yes" >&5
7401echo "${ECHO_T}yes" >&6
7402 else
7403 echo "$as_me:$LINENO: result: no" >&5
7404echo "${ECHO_T}no" >&6
7405 fi
7406
7407
646b6ec1
VS
7408 enablestring=
7409 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-webkit" >&5
7410echo $ECHO_N "checking for --${enablestring:-enable}-webkit... $ECHO_C" >&6
7411 no_cache=0
7412 # Check whether --enable-webkit or --disable-webkit was given.
7413if test "${enable_webkit+set}" = set; then
7414 enableval="$enable_webkit"
7415
7416 if test "$enableval" = yes; then
7417 ac_cv_use_webkit='wxUSE_WEBKIT=yes'
7418 else
7419 ac_cv_use_webkit='wxUSE_WEBKIT=no'
7420 fi
7421
7422else
7423
7424 LINE=`grep "wxUSE_WEBKIT" ${wx_arg_cache_file}`
7425 if test "x$LINE" != x ; then
7426 eval "DEFAULT_$LINE"
7427 else
7428 no_cache=1
7429 fi
7430
7431 ac_cv_use_webkit='wxUSE_WEBKIT='$DEFAULT_wxUSE_WEBKIT
7432
7433fi;
7434
7435 eval "$ac_cv_use_webkit"
7436 if test "$no_cache" != 1; then
7437 echo $ac_cv_use_webkit >> ${wx_arg_cache_file}.tmp
7438 fi
7439
7440 if test "$wxUSE_WEBKIT" = yes; then
7441 echo "$as_me:$LINENO: result: yes" >&5
7442echo "${ECHO_T}yes" >&6
7443 else
7444 echo "$as_me:$LINENO: result: no" >&5
7445echo "${ECHO_T}no" >&6
7446 fi
7447
7448
91dea314
MW
7449 enablestring=
7450 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-html" >&5
7451echo $ECHO_N "checking for --${enablestring:-enable}-html... $ECHO_C" >&6
7452 no_cache=0
7453 # Check whether --enable-html or --disable-html was given.
7454if test "${enable_html+set}" = set; then
7455 enableval="$enable_html"
7456
7457 if test "$enableval" = yes; then
7458 ac_cv_use_html='wxUSE_RICHTEXT=yes'
7459 else
7460 ac_cv_use_html='wxUSE_RICHTEXT=no'
7461 fi
7462
7463else
7464
7465 LINE=`grep "wxUSE_RICHTEXT" ${wx_arg_cache_file}`
7466 if test "x$LINE" != x ; then
7467 eval "DEFAULT_$LINE"
7468 else
7469 no_cache=1
7470 fi
7471
7472 ac_cv_use_html='wxUSE_RICHTEXT='$DEFAULT_wxUSE_RICHTEXT
7473
7474fi;
7475
7476 eval "$ac_cv_use_html"
7477 if test "$no_cache" != 1; then
7478 echo $ac_cv_use_html >> ${wx_arg_cache_file}.tmp
7479 fi
7480
7481 if test "$wxUSE_RICHTEXT" = yes; then
7482 echo "$as_me:$LINENO: result: yes" >&5
7483echo "${ECHO_T}yes" >&6
7484 else
7485 echo "$as_me:$LINENO: result: no" >&5
7486echo "${ECHO_T}no" >&6
7487 fi
7488
7489
f43426c1
RD
7490 enablestring=
7491 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-graphics_ctx" >&5
7492echo $ECHO_N "checking for --${enablestring:-enable}-graphics_ctx... $ECHO_C" >&6
7493 no_cache=0
7494 # Check whether --enable-graphics_ctx or --disable-graphics_ctx was given.
7495if test "${enable_graphics_ctx+set}" = set; then
7496 enableval="$enable_graphics_ctx"
7497
7498 if test "$enableval" = yes; then
7499 ac_cv_use_graphics_ctx='wxUSE_GRAPHICS_CONTEXT=yes'
7500 else
7501 ac_cv_use_graphics_ctx='wxUSE_GRAPHICS_CONTEXT=no'
7502 fi
7503
7504else
7505
7506 LINE=`grep "wxUSE_GRAPHICS_CONTEXT" ${wx_arg_cache_file}`
7507 if test "x$LINE" != x ; then
7508 eval "DEFAULT_$LINE"
7509 else
7510 no_cache=1
7511 fi
7512
7513 ac_cv_use_graphics_ctx='wxUSE_GRAPHICS_CONTEXT='$DEFAULT_wxUSE_GRAPHICS_CONTEXT
7514
7515fi;
7516
7517 eval "$ac_cv_use_graphics_ctx"
7518 if test "$no_cache" != 1; then
7519 echo $ac_cv_use_graphics_ctx >> ${wx_arg_cache_file}.tmp
7520 fi
7521
7522 if test "$wxUSE_GRAPHICS_CONTEXT" = yes; then
7523 echo "$as_me:$LINENO: result: yes" >&5
7524echo "${ECHO_T}yes" >&6
7525 else
7526 echo "$as_me:$LINENO: result: no" >&5
7527echo "${ECHO_T}no" >&6
7528 fi
7529
7530
a848cd7e
SC
7531
7532 enablestring=
7533 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-postscript" >&5
7534echo $ECHO_N "checking for --${enablestring:-enable}-postscript... $ECHO_C" >&6
7535 no_cache=0
7536 # Check whether --enable-postscript or --disable-postscript was given.
7537if test "${enable_postscript+set}" = set; then
7538 enableval="$enable_postscript"
7539
7540 if test "$enableval" = yes; then
7541 ac_cv_use_postscript='wxUSE_POSTSCRIPT=yes'
7542 else
7543 ac_cv_use_postscript='wxUSE_POSTSCRIPT=no'
7544 fi
7545
7546else
7547
7548 LINE=`grep "wxUSE_POSTSCRIPT" ${wx_arg_cache_file}`
7549 if test "x$LINE" != x ; then
7550 eval "DEFAULT_$LINE"
7551 else
7552 no_cache=1
7553 fi
7554
7555 ac_cv_use_postscript='wxUSE_POSTSCRIPT='$DEFAULT_wxUSE_POSTSCRIPT
7556
7557fi;
7558
7559 eval "$ac_cv_use_postscript"
7560 if test "$no_cache" != 1; then
7561 echo $ac_cv_use_postscript >> ${wx_arg_cache_file}.tmp
7562 fi
7563
7564 if test "$wxUSE_POSTSCRIPT" = yes; then
7565 echo "$as_me:$LINENO: result: yes" >&5
7566echo "${ECHO_T}yes" >&6
7567 else
7568 echo "$as_me:$LINENO: result: no" >&5
7569echo "${ECHO_T}no" >&6
7570 fi
7571
7572
7573
7574
7575
7576 enablestring=
7577 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-prologio" >&5
7578echo $ECHO_N "checking for --${enablestring:-enable}-prologio... $ECHO_C" >&6
7579 no_cache=0
7580 # Check whether --enable-prologio or --disable-prologio was given.
7581if test "${enable_prologio+set}" = set; then
7582 enableval="$enable_prologio"
7583
7584 if test "$enableval" = yes; then
7585 ac_cv_use_prologio='wxUSE_PROLOGIO=yes'
7586 else
7587 ac_cv_use_prologio='wxUSE_PROLOGIO=no'
7588 fi
7589
7590else
7591
7592 LINE=`grep "wxUSE_PROLOGIO" ${wx_arg_cache_file}`
7593 if test "x$LINE" != x ; then
7594 eval "DEFAULT_$LINE"
7595 else
7596 no_cache=1
7597 fi
7598
7599 ac_cv_use_prologio='wxUSE_PROLOGIO='$DEFAULT_wxUSE_PROLOGIO
7600
7601fi;
7602
7603 eval "$ac_cv_use_prologio"
7604 if test "$no_cache" != 1; then
7605 echo $ac_cv_use_prologio >> ${wx_arg_cache_file}.tmp
7606 fi
7607
7608 if test "$wxUSE_PROLOGIO" = yes; then
7609 echo "$as_me:$LINENO: result: yes" >&5
7610echo "${ECHO_T}yes" >&6
7611 else
7612 echo "$as_me:$LINENO: result: no" >&5
7613echo "${ECHO_T}no" >&6
7614 fi
7615
7616
7617 enablestring=
7618 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-resources" >&5
7619echo $ECHO_N "checking for --${enablestring:-enable}-resources... $ECHO_C" >&6
7620 no_cache=0
7621 # Check whether --enable-resources or --disable-resources was given.
7622if test "${enable_resources+set}" = set; then
7623 enableval="$enable_resources"
7624
7625 if test "$enableval" = yes; then
7626 ac_cv_use_resources='wxUSE_RESOURCES=yes'
7627 else
7628 ac_cv_use_resources='wxUSE_RESOURCES=no'
7629 fi
7630
7631else
7632
7633 LINE=`grep "wxUSE_RESOURCES" ${wx_arg_cache_file}`
7634 if test "x$LINE" != x ; then
7635 eval "DEFAULT_$LINE"
7636 else
7637 no_cache=1
7638 fi
7639
7640 ac_cv_use_resources='wxUSE_RESOURCES='$DEFAULT_wxUSE_RESOURCES
7641
7642fi;
7643
7644 eval "$ac_cv_use_resources"
7645 if test "$no_cache" != 1; then
7646 echo $ac_cv_use_resources >> ${wx_arg_cache_file}.tmp
7647 fi
7648
7649 if test "$wxUSE_RESOURCES" = yes; then
7650 echo "$as_me:$LINENO: result: yes" >&5
7651echo "${ECHO_T}yes" >&6
7652 else
7653 echo "$as_me:$LINENO: result: no" >&5
7654echo "${ECHO_T}no" >&6
7655 fi
7656
7657
7658
7659
7660 enablestring=
7661 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-clipboard" >&5
7662echo $ECHO_N "checking for --${enablestring:-enable}-clipboard... $ECHO_C" >&6
7663 no_cache=0
7664 # Check whether --enable-clipboard or --disable-clipboard was given.
7665if test "${enable_clipboard+set}" = set; then
7666 enableval="$enable_clipboard"
7667
7668 if test "$enableval" = yes; then
7669 ac_cv_use_clipboard='wxUSE_CLIPBOARD=yes'
7670 else
7671 ac_cv_use_clipboard='wxUSE_CLIPBOARD=no'
7672 fi
7673
7674else
7675
7676 LINE=`grep "wxUSE_CLIPBOARD" ${wx_arg_cache_file}`
7677 if test "x$LINE" != x ; then
7678 eval "DEFAULT_$LINE"
7679 else
7680 no_cache=1
7681 fi
7682
7683 ac_cv_use_clipboard='wxUSE_CLIPBOARD='$DEFAULT_wxUSE_CLIPBOARD
7684
7685fi;
7686
7687 eval "$ac_cv_use_clipboard"
7688 if test "$no_cache" != 1; then
7689 echo $ac_cv_use_clipboard >> ${wx_arg_cache_file}.tmp
7690 fi
7691
7692 if test "$wxUSE_CLIPBOARD" = yes; then
7693 echo "$as_me:$LINENO: result: yes" >&5
7694echo "${ECHO_T}yes" >&6
7695 else
7696 echo "$as_me:$LINENO: result: no" >&5
7697echo "${ECHO_T}no" >&6
7698 fi
7699
7700
7701 enablestring=
7702 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dnd" >&5
7703echo $ECHO_N "checking for --${enablestring:-enable}-dnd... $ECHO_C" >&6
7704 no_cache=0
7705 # Check whether --enable-dnd or --disable-dnd was given.
7706if test "${enable_dnd+set}" = set; then
7707 enableval="$enable_dnd"
7708
7709 if test "$enableval" = yes; then
7710 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=yes'
7711 else
7712 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=no'
7713 fi
7714
7715else
7716
7717 LINE=`grep "wxUSE_DRAG_AND_DROP" ${wx_arg_cache_file}`
7718 if test "x$LINE" != x ; then
7719 eval "DEFAULT_$LINE"
7720 else
7721 no_cache=1
7722 fi
7723
7724 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP='$DEFAULT_wxUSE_DRAG_AND_DROP
7725
7726fi;
7727
7728 eval "$ac_cv_use_dnd"
7729 if test "$no_cache" != 1; then
7730 echo $ac_cv_use_dnd >> ${wx_arg_cache_file}.tmp
7731 fi
7732
7733 if test "$wxUSE_DRAG_AND_DROP" = yes; then
7734 echo "$as_me:$LINENO: result: yes" >&5
7735echo "${ECHO_T}yes" >&6
7736 else
7737 echo "$as_me:$LINENO: result: no" >&5
7738echo "${ECHO_T}no" >&6
7739 fi
7740
7741
7742 enablestring=
7743 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-metafile" >&5
7744echo $ECHO_N "checking for --${enablestring:-enable}-metafile... $ECHO_C" >&6
7745 no_cache=0
7746 # Check whether --enable-metafile or --disable-metafile was given.
7747if test "${enable_metafile+set}" = set; then
7748 enableval="$enable_metafile"
7749
7750 if test "$enableval" = yes; then
7751 ac_cv_use_metafile='wxUSE_METAFILE=yes'
7752 else
7753 ac_cv_use_metafile='wxUSE_METAFILE=no'
7754 fi
7755
7756else
7757
7758 LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}`
7759 if test "x$LINE" != x ; then
7760 eval "DEFAULT_$LINE"
7761 else
7762 no_cache=1
7763 fi
7764
7765 ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE
7766
7767fi;
7768
7769 eval "$ac_cv_use_metafile"
7770 if test "$no_cache" != 1; then
7771 echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp
7772 fi
7773
7774 if test "$wxUSE_METAFILE" = yes; then
7775 echo "$as_me:$LINENO: result: yes" >&5
7776echo "${ECHO_T}yes" >&6
7777 else
7778 echo "$as_me:$LINENO: result: no" >&5
7779echo "${ECHO_T}no" >&6
7780 fi
7781
7782
7783
7784
7785
7786 enablestring=
7787 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-controls" >&5
7788echo $ECHO_N "checking for --${enablestring:-enable}-controls... $ECHO_C" >&6
7789 no_cache=0
7790 # Check whether --enable-controls or --disable-controls was given.
7791if test "${enable_controls+set}" = set; then
7792 enableval="$enable_controls"
7793
7794 if test "$enableval" = yes; then
7795 ac_cv_use_controls='wxUSE_CONTROLS=yes'
7796 else
7797 ac_cv_use_controls='wxUSE_CONTROLS=no'
7798 fi
7799
7800else
7801
7802 LINE=`grep "wxUSE_CONTROLS" ${wx_arg_cache_file}`
7803 if test "x$LINE" != x ; then
7804 eval "DEFAULT_$LINE"
7805 else
7806 no_cache=1
7807 fi
7808
7809 ac_cv_use_controls='wxUSE_CONTROLS='$DEFAULT_wxUSE_CONTROLS
7810
7811fi;
7812
7813 eval "$ac_cv_use_controls"
7814 if test "$no_cache" != 1; then
7815 echo $ac_cv_use_controls >> ${wx_arg_cache_file}.tmp
7816 fi
7817
7818 if test "$wxUSE_CONTROLS" = yes; then
7819 echo "$as_me:$LINENO: result: yes" >&5
7820echo "${ECHO_T}yes" >&6
7821 else
7822 echo "$as_me:$LINENO: result: no" >&5
7823echo "${ECHO_T}no" >&6
7824 fi
7825
7826
7827if test "$wxUSE_CONTROLS" = "yes"; then
7828 DEFAULT_wxUSE_ACCEL=yes
3ea50042 7829 DEFAULT_wxUSE_ANIMATIONCTRL=yes
a848cd7e
SC
7830 DEFAULT_wxUSE_BMPBUTTON=yes
7831 DEFAULT_wxUSE_BUTTON=yes
da98e9be 7832 DEFAULT_wxUSE_CALCTRL=yes
a848cd7e
SC
7833 DEFAULT_wxUSE_CARET=yes
7834 DEFAULT_wxUSE_COMBOBOX=yes
7835 DEFAULT_wxUSE_CHECKBOX=yes
7836 DEFAULT_wxUSE_CHECKLISTBOX=yes
7837 DEFAULT_wxUSE_CHOICE=yes
92bbdbcd 7838 DEFAULT_wxUSE_CHOICEBOOK=yes
e9263684
VZ
7839 DEFAULT_wxUSE_COLOURPICKERCTRL=yes
7840 DEFAULT_wxUSE_COMBOBOX=yes
da98e9be 7841 DEFAULT_wxUSE_DATEPICKCTRL=yes
e9263684 7842 DEFAULT_wxUSE_DISPLAY=yes
88bbc332 7843 DEFAULT_wxUSE_DETECT_SM=yes
e9263684
VZ
7844 DEFAULT_wxUSE_DIRPICKERCTRL=yes
7845 DEFAULT_wxUSE_FILEPICKERCTRL=yes
7846 DEFAULT_wxUSE_FONTPICKERCTRL=yes
a848cd7e
SC
7847 DEFAULT_wxUSE_GAUGE=yes
7848 DEFAULT_wxUSE_GRID=yes
6954625c 7849 DEFAULT_wxUSE_HYPERLINKCTRL=yes
20e34ecc 7850 DEFAULT_wxUSE_DATAVIEWCTRL=no
a848cd7e
SC
7851 DEFAULT_wxUSE_IMAGLIST=yes
7852 DEFAULT_wxUSE_LISTBOOK=yes
7853 DEFAULT_wxUSE_LISTBOX=yes
7854 DEFAULT_wxUSE_LISTCTRL=yes
7855 DEFAULT_wxUSE_NOTEBOOK=yes
7856 DEFAULT_wxUSE_RADIOBOX=yes
7857 DEFAULT_wxUSE_RADIOBTN=yes
7858 DEFAULT_wxUSE_SASH=yes
7859 DEFAULT_wxUSE_SCROLLBAR=yes
7860 DEFAULT_wxUSE_SLIDER=yes
7861 DEFAULT_wxUSE_SPINBTN=yes
7862 DEFAULT_wxUSE_SPINCTRL=yes
7863 DEFAULT_wxUSE_SPLITTER=yes
7864 DEFAULT_wxUSE_STATBMP=yes
7865 DEFAULT_wxUSE_STATBOX=yes
7866 DEFAULT_wxUSE_STATLINE=yes
7867 DEFAULT_wxUSE_STATUSBAR=yes
7868 DEFAULT_wxUSE_TAB_DIALOG=yes
7869 DEFAULT_wxUSE_TOGGLEBTN=yes
7870 DEFAULT_wxUSE_TOOLBAR=yes
7871 DEFAULT_wxUSE_TOOLBAR_NATIVE=yes
a848cd7e 7872 DEFAULT_wxUSE_TOOLTIPS=yes
0093c2fc 7873 DEFAULT_wxUSE_TREEBOOK=yes
5ec3bc43 7874 DEFAULT_wxUSE_TOOLBOOK=yes
a848cd7e
SC
7875 DEFAULT_wxUSE_TREECTRL=yes
7876 DEFAULT_wxUSE_POPUPWIN=yes
7877 DEFAULT_wxUSE_TIPWINDOW=yes
7878elif test "$wxUSE_CONTROLS" = "no"; then
7879 DEFAULT_wxUSE_ACCEL=no
3ea50042 7880 DEFAULT_wxUSE_ANIMATIONCTRL=no
a848cd7e
SC
7881 DEFAULT_wxUSE_BMPBUTTON=no
7882 DEFAULT_wxUSE_BUTTON=no
7883 DEFAULT_wxUSE_CALCTRL=no
7884 DEFAULT_wxUSE_CARET=no
7885 DEFAULT_wxUSE_COMBOBOX=no
7886 DEFAULT_wxUSE_CHECKBOX=no
7887 DEFAULT_wxUSE_CHECKLISTBOX=no
7888 DEFAULT_wxUSE_CHOICE=no
92bbdbcd 7889 DEFAULT_wxUSE_CHOICEBOOK=no
e9263684
VZ
7890 DEFAULT_wxUSE_COLOURPICKERCTRL=no
7891 DEFAULT_wxUSE_COMBOBOX=no
da98e9be 7892 DEFAULT_wxUSE_DATEPICKCTRL=no
e9263684 7893 DEFAULT_wxUSE_DISPLAY=no
88bbc332 7894 DEFAULT_wxUSE_DETECT_SM=no
e9263684
VZ
7895 DEFAULT_wxUSE_DIRPICKERCTRL=no
7896 DEFAULT_wxUSE_FILEPICKERCTRL=no
7897 DEFAULT_wxUSE_FONTPICKERCTRL=no
a848cd7e
SC
7898 DEFAULT_wxUSE_GAUGE=no
7899 DEFAULT_wxUSE_GRID=no
6954625c 7900 DEFAULT_wxUSE_HYPERLINKCTRL=no
20e34ecc 7901 DEFAULT_wxUSE_DATAVIEWCTRL=no
a848cd7e
SC
7902 DEFAULT_wxUSE_IMAGLIST=no
7903 DEFAULT_wxUSE_LISTBOOK=no
7904 DEFAULT_wxUSE_LISTBOX=no
7905 DEFAULT_wxUSE_LISTCTRL=no
7906 DEFAULT_wxUSE_NOTEBOOK=no
7907 DEFAULT_wxUSE_RADIOBOX=no
7908 DEFAULT_wxUSE_RADIOBTN=no
7909 DEFAULT_wxUSE_SASH=no
7910 DEFAULT_wxUSE_SCROLLBAR=no
7911 DEFAULT_wxUSE_SLIDER=no
7912 DEFAULT_wxUSE_SPINBTN=no
7913 DEFAULT_wxUSE_SPINCTRL=no
7914 DEFAULT_wxUSE_SPLITTER=no
7915 DEFAULT_wxUSE_STATBMP=no
7916 DEFAULT_wxUSE_STATBOX=no
7917 DEFAULT_wxUSE_STATLINE=no
7918 DEFAULT_wxUSE_STATUSBAR=no
7919 DEFAULT_wxUSE_TAB_DIALOG=no
7920 DEFAULT_wxUSE_TOGGLEBTN=no
7921 DEFAULT_wxUSE_TOOLBAR=no
7922 DEFAULT_wxUSE_TOOLBAR_NATIVE=no
a848cd7e 7923 DEFAULT_wxUSE_TOOLTIPS=no
0093c2fc 7924 DEFAULT_wxUSE_TREEBOOK=no
5ec3bc43 7925 DEFAULT_wxUSE_TOOLBOOK=no
a848cd7e
SC
7926 DEFAULT_wxUSE_TREECTRL=no
7927 DEFAULT_wxUSE_POPUPWIN=no
7928 DEFAULT_wxUSE_TIPWINDOW=no
7929fi
7930
a848cd7e
SC
7931
7932 enablestring=
7933 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-accel" >&5
7934echo $ECHO_N "checking for --${enablestring:-enable}-accel... $ECHO_C" >&6
7935 no_cache=0
7936 # Check whether --enable-accel or --disable-accel was given.
7937if test "${enable_accel+set}" = set; then
7938 enableval="$enable_accel"
7939
7940 if test "$enableval" = yes; then
7941 ac_cv_use_accel='wxUSE_ACCEL=yes'
7942 else
7943 ac_cv_use_accel='wxUSE_ACCEL=no'
7944 fi
7945
7946else
7947
7948 LINE=`grep "wxUSE_ACCEL" ${wx_arg_cache_file}`
7949 if test "x$LINE" != x ; then
7950 eval "DEFAULT_$LINE"
7951 else
7952 no_cache=1
7953 fi
7954
7955 ac_cv_use_accel='wxUSE_ACCEL='$DEFAULT_wxUSE_ACCEL
7956
7957fi;
7958
7959 eval "$ac_cv_use_accel"
7960 if test "$no_cache" != 1; then
7961 echo $ac_cv_use_accel >> ${wx_arg_cache_file}.tmp
7962 fi
7963
7964 if test "$wxUSE_ACCEL" = yes; then
7965 echo "$as_me:$LINENO: result: yes" >&5
7966echo "${ECHO_T}yes" >&6
7967 else
7968 echo "$as_me:$LINENO: result: no" >&5
7969echo "${ECHO_T}no" >&6
7970 fi
7971
7972
3ea50042
VZ
7973 enablestring=
7974 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-animatectrl" >&5
7975echo $ECHO_N "checking for --${enablestring:-enable}-animatectrl... $ECHO_C" >&6
7976 no_cache=0
7977 # Check whether --enable-animatectrl or --disable-animatectrl was given.
7978if test "${enable_animatectrl+set}" = set; then
7979 enableval="$enable_animatectrl"
7980
7981 if test "$enableval" = yes; then
7982 ac_cv_use_animatectrl='wxUSE_ANIMATIONCTRL=yes'
7983 else
7984 ac_cv_use_animatectrl='wxUSE_ANIMATIONCTRL=no'
7985 fi
7986
7987else
7988
7989 LINE=`grep "wxUSE_ANIMATIONCTRL" ${wx_arg_cache_file}`
7990 if test "x$LINE" != x ; then
7991 eval "DEFAULT_$LINE"
7992 else
7993 no_cache=1
7994 fi
7995
7996 ac_cv_use_animatectrl='wxUSE_ANIMATIONCTRL='$DEFAULT_wxUSE_ANIMATIONCTRL
7997
7998fi;
7999
8000 eval "$ac_cv_use_animatectrl"
8001 if test "$no_cache" != 1; then
8002 echo $ac_cv_use_animatectrl >> ${wx_arg_cache_file}.tmp
8003 fi
8004
8005 if test "$wxUSE_ANIMATIONCTRL" = yes; then
8006 echo "$as_me:$LINENO: result: yes" >&5
8007echo "${ECHO_T}yes" >&6
8008 else
8009 echo "$as_me:$LINENO: result: no" >&5
8010echo "${ECHO_T}no" >&6
8011 fi
8012
8013
a848cd7e
SC
8014 enablestring=
8015 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-button" >&5
8016echo $ECHO_N "checking for --${enablestring:-enable}-button... $ECHO_C" >&6
8017 no_cache=0
8018 # Check whether --enable-button or --disable-button was given.
8019if test "${enable_button+set}" = set; then
8020 enableval="$enable_button"
8021
8022 if test "$enableval" = yes; then
8023 ac_cv_use_button='wxUSE_BUTTON=yes'
8024 else
8025 ac_cv_use_button='wxUSE_BUTTON=no'
8026 fi
8027
8028else
8029
8030 LINE=`grep "wxUSE_BUTTON" ${wx_arg_cache_file}`
8031 if test "x$LINE" != x ; then
8032 eval "DEFAULT_$LINE"
8033 else
8034 no_cache=1
8035 fi
8036
8037 ac_cv_use_button='wxUSE_BUTTON='$DEFAULT_wxUSE_BUTTON
8038
8039fi;
8040
8041 eval "$ac_cv_use_button"
8042 if test "$no_cache" != 1; then
8043 echo $ac_cv_use_button >> ${wx_arg_cache_file}.tmp
8044 fi
8045
8046 if test "$wxUSE_BUTTON" = yes; then
8047 echo "$as_me:$LINENO: result: yes" >&5
8048echo "${ECHO_T}yes" >&6
8049 else
8050 echo "$as_me:$LINENO: result: no" >&5
8051echo "${ECHO_T}no" >&6
8052 fi
8053
8054
8055 enablestring=
8056 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-bmpbutton" >&5
8057echo $ECHO_N "checking for --${enablestring:-enable}-bmpbutton... $ECHO_C" >&6
8058 no_cache=0
8059 # Check whether --enable-bmpbutton or --disable-bmpbutton was given.
8060if test "${enable_bmpbutton+set}" = set; then
8061 enableval="$enable_bmpbutton"
8062
8063 if test "$enableval" = yes; then
8064 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=yes'
8065 else
8066 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=no'
8067 fi
8068
8069else
8070
8071 LINE=`grep "wxUSE_BMPBUTTON" ${wx_arg_cache_file}`
8072 if test "x$LINE" != x ; then
8073 eval "DEFAULT_$LINE"
8074 else
8075 no_cache=1
8076 fi
8077
8078 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON='$DEFAULT_wxUSE_BMPBUTTON
8079
8080fi;
8081
8082 eval "$ac_cv_use_bmpbutton"
8083 if test "$no_cache" != 1; then
8084 echo $ac_cv_use_bmpbutton >> ${wx_arg_cache_file}.tmp
8085 fi
8086
8087 if test "$wxUSE_BMPBUTTON" = yes; then
8088 echo "$as_me:$LINENO: result: yes" >&5
8089echo "${ECHO_T}yes" >&6
8090 else
8091 echo "$as_me:$LINENO: result: no" >&5
8092echo "${ECHO_T}no" >&6
8093 fi
8094
8095
95a46303
RR
8096 enablestring=
8097 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-bmpcombobox" >&5
8098echo $ECHO_N "checking for --${enablestring:-enable}-bmpcombobox... $ECHO_C" >&6
8099 no_cache=0
8100 # Check whether --enable-bmpcombobox or --disable-bmpcombobox was given.
8101if test "${enable_bmpcombobox+set}" = set; then
8102 enableval="$enable_bmpcombobox"
8103
8104 if test "$enableval" = yes; then
8105 ac_cv_use_bmpcombobox='wxUSE_BITMAPCOMBOBOX=yes'
8106 else
8107 ac_cv_use_bmpcombobox='wxUSE_BITMAPCOMBOBOX=no'
8108 fi
8109
8110else
8111
8112 LINE=`grep "wxUSE_BITMAPCOMBOBOX" ${wx_arg_cache_file}`
8113 if test "x$LINE" != x ; then
8114 eval "DEFAULT_$LINE"
8115 else
8116 no_cache=1
8117 fi
8118
8119 ac_cv_use_bmpcombobox='wxUSE_BITMAPCOMBOBOX='$DEFAULT_wxUSE_BITMAPCOMBOBOX
8120
8121fi;
8122
8123 eval "$ac_cv_use_bmpcombobox"
8124 if test "$no_cache" != 1; then
8125 echo $ac_cv_use_bmpcombobox >> ${wx_arg_cache_file}.tmp
8126 fi
8127
8128 if test "$wxUSE_BITMAPCOMBOBOX" = yes; then
8129 echo "$as_me:$LINENO: result: yes" >&5
8130echo "${ECHO_T}yes" >&6
8131 else
8132 echo "$as_me:$LINENO: result: no" >&5
8133echo "${ECHO_T}no" >&6
8134 fi
8135
8136
a848cd7e
SC
8137 enablestring=
8138 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-calendar" >&5
8139echo $ECHO_N "checking for --${enablestring:-enable}-calendar... $ECHO_C" >&6
8140 no_cache=0
8141 # Check whether --enable-calendar or --disable-calendar was given.
8142if test "${enable_calendar+set}" = set; then
8143 enableval="$enable_calendar"
8144
8145 if test "$enableval" = yes; then
8146 ac_cv_use_calendar='wxUSE_CALCTRL=yes'
8147 else
8148 ac_cv_use_calendar='wxUSE_CALCTRL=no'
8149 fi
8150
8151else
8152
8153 LINE=`grep "wxUSE_CALCTRL" ${wx_arg_cache_file}`
8154 if test "x$LINE" != x ; then
8155 eval "DEFAULT_$LINE"
8156 else
8157 no_cache=1
8158 fi
8159
8160 ac_cv_use_calendar='wxUSE_CALCTRL='$DEFAULT_wxUSE_CALCTRL
8161
8162fi;
8163
8164 eval "$ac_cv_use_calendar"
8165 if test "$no_cache" != 1; then
8166 echo $ac_cv_use_calendar >> ${wx_arg_cache_file}.tmp
8167 fi
8168
8169 if test "$wxUSE_CALCTRL" = yes; then
8170 echo "$as_me:$LINENO: result: yes" >&5
8171echo "${ECHO_T}yes" >&6
8172 else
8173 echo "$as_me:$LINENO: result: no" >&5
8174echo "${ECHO_T}no" >&6
8175 fi
8176
8177
8178 enablestring=
8179 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-caret" >&5
8180echo $ECHO_N "checking for --${enablestring:-enable}-caret... $ECHO_C" >&6
8181 no_cache=0
8182 # Check whether --enable-caret or --disable-caret was given.
8183if test "${enable_caret+set}" = set; then
8184 enableval="$enable_caret"
8185
8186 if test "$enableval" = yes; then
8187 ac_cv_use_caret='wxUSE_CARET=yes'
8188 else
8189 ac_cv_use_caret='wxUSE_CARET=no'
8190 fi
8191
8192else
8193
8194 LINE=`grep "wxUSE_CARET" ${wx_arg_cache_file}`
8195 if test "x$LINE" != x ; then
8196 eval "DEFAULT_$LINE"
8197 else
8198 no_cache=1
8199 fi
8200
8201 ac_cv_use_caret='wxUSE_CARET='$DEFAULT_wxUSE_CARET
8202
8203fi;
8204
8205 eval "$ac_cv_use_caret"
8206 if test "$no_cache" != 1; then
8207 echo $ac_cv_use_caret >> ${wx_arg_cache_file}.tmp
8208 fi
8209
8210 if test "$wxUSE_CARET" = yes; then
8211 echo "$as_me:$LINENO: result: yes" >&5
8212echo "${ECHO_T}yes" >&6
8213 else
8214 echo "$as_me:$LINENO: result: no" >&5
8215echo "${ECHO_T}no" >&6
8216 fi
8217
8218
8219 enablestring=
8220 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-checkbox" >&5
8221echo $ECHO_N "checking for --${enablestring:-enable}-checkbox... $ECHO_C" >&6
8222 no_cache=0
8223 # Check whether --enable-checkbox or --disable-checkbox was given.
8224if test "${enable_checkbox+set}" = set; then
8225 enableval="$enable_checkbox"
8226
8227 if test "$enableval" = yes; then
8228 ac_cv_use_checkbox='wxUSE_CHECKBOX=yes'
8229 else
8230 ac_cv_use_checkbox='wxUSE_CHECKBOX=no'
8231 fi
8232
8233else
8234
8235 LINE=`grep "wxUSE_CHECKBOX" ${wx_arg_cache_file}`
8236 if test "x$LINE" != x ; then
8237 eval "DEFAULT_$LINE"
8238 else
8239 no_cache=1
8240 fi
8241
8242 ac_cv_use_checkbox='wxUSE_CHECKBOX='$DEFAULT_wxUSE_CHECKBOX
8243
8244fi;
8245
8246 eval "$ac_cv_use_checkbox"
8247 if test "$no_cache" != 1; then
8248 echo $ac_cv_use_checkbox >> ${wx_arg_cache_file}.tmp
8249 fi
8250
8251 if test "$wxUSE_CHECKBOX" = yes; then
8252 echo "$as_me:$LINENO: result: yes" >&5
8253echo "${ECHO_T}yes" >&6
8254 else
8255 echo "$as_me:$LINENO: result: no" >&5
8256echo "${ECHO_T}no" >&6
8257 fi
8258
8259
8260 enablestring=
8261 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-checklst" >&5
8262echo $ECHO_N "checking for --${enablestring:-enable}-checklst... $ECHO_C" >&6
8263 no_cache=0
8264 # Check whether --enable-checklst or --disable-checklst was given.
8265if test "${enable_checklst+set}" = set; then
8266 enableval="$enable_checklst"
8267
8268 if test "$enableval" = yes; then
8269 ac_cv_use_checklst='wxUSE_CHECKLST=yes'
8270 else
8271 ac_cv_use_checklst='wxUSE_CHECKLST=no'
8272 fi
8273
8274else
8275
8276 LINE=`grep "wxUSE_CHECKLST" ${wx_arg_cache_file}`
8277 if test "x$LINE" != x ; then
8278 eval "DEFAULT_$LINE"
8279 else
8280 no_cache=1
8281 fi
8282
8283 ac_cv_use_checklst='wxUSE_CHECKLST='$DEFAULT_wxUSE_CHECKLST
8284
8285fi;
8286
8287 eval "$ac_cv_use_checklst"
8288 if test "$no_cache" != 1; then
8289 echo $ac_cv_use_checklst >> ${wx_arg_cache_file}.tmp
8290 fi
8291
8292 if test "$wxUSE_CHECKLST" = yes; then
8293 echo "$as_me:$LINENO: result: yes" >&5
8294echo "${ECHO_T}yes" >&6
8295 else
8296 echo "$as_me:$LINENO: result: no" >&5
8297echo "${ECHO_T}no" >&6
8298 fi
8299
8300
8301 enablestring=
8302 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choice" >&5
8303echo $ECHO_N "checking for --${enablestring:-enable}-choice... $ECHO_C" >&6
8304 no_cache=0
8305 # Check whether --enable-choice or --disable-choice was given.
8306if test "${enable_choice+set}" = set; then
8307 enableval="$enable_choice"
8308
8309 if test "$enableval" = yes; then
8310 ac_cv_use_choice='wxUSE_CHOICE=yes'
8311 else
8312 ac_cv_use_choice='wxUSE_CHOICE=no'
8313 fi
8314
8315else
8316
8317 LINE=`grep "wxUSE_CHOICE" ${wx_arg_cache_file}`
8318 if test "x$LINE" != x ; then
8319 eval "DEFAULT_$LINE"
8320 else
8321 no_cache=1
8322 fi
8323
8324 ac_cv_use_choice='wxUSE_CHOICE='$DEFAULT_wxUSE_CHOICE
8325
8326fi;
8327
8328 eval "$ac_cv_use_choice"
8329 if test "$no_cache" != 1; then
8330 echo $ac_cv_use_choice >> ${wx_arg_cache_file}.tmp
8331 fi
8332
8333 if test "$wxUSE_CHOICE" = yes; then
8334 echo "$as_me:$LINENO: result: yes" >&5
8335echo "${ECHO_T}yes" >&6
8336 else
8337 echo "$as_me:$LINENO: result: no" >&5
8338echo "${ECHO_T}no" >&6
8339 fi
8340
8341
92bbdbcd
WS
8342 enablestring=
8343 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choicebook" >&5
8344echo $ECHO_N "checking for --${enablestring:-enable}-choicebook... $ECHO_C" >&6
8345 no_cache=0
8346 # Check whether --enable-choicebook or --disable-choicebook was given.
8347if test "${enable_choicebook+set}" = set; then
8348 enableval="$enable_choicebook"
8349
8350 if test "$enableval" = yes; then
8351 ac_cv_use_choicebook='wxUSE_CHOICEBOOK=yes'
8352 else
8353 ac_cv_use_choicebook='wxUSE_CHOICEBOOK=no'
8354 fi
8355
8356else
8357
8358 LINE=`grep "wxUSE_CHOICEBOOK" ${wx_arg_cache_file}`
8359 if test "x$LINE" != x ; then
8360 eval "DEFAULT_$LINE"
8361 else
8362 no_cache=1
8363 fi
8364
8365 ac_cv_use_choicebook='wxUSE_CHOICEBOOK='$DEFAULT_wxUSE_CHOICEBOOK
8366
8367fi;
8368
8369 eval "$ac_cv_use_choicebook"
8370 if test "$no_cache" != 1; then
8371 echo $ac_cv_use_choicebook >> ${wx_arg_cache_file}.tmp
8372 fi
8373
8374 if test "$wxUSE_CHOICEBOOK" = yes; then
8375 echo "$as_me:$LINENO: result: yes" >&5
8376echo "${ECHO_T}yes" >&6
8377 else
8378 echo "$as_me:$LINENO: result: no" >&5
8379echo "${ECHO_T}no" >&6
8380 fi
8381
8382
e9263684
VZ
8383 enablestring=
8384 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-colourpicker" >&5
8385echo $ECHO_N "checking for --${enablestring:-enable}-colourpicker... $ECHO_C" >&6
8386 no_cache=0
8387 # Check whether --enable-colourpicker or --disable-colourpicker was given.
8388if test "${enable_colourpicker+set}" = set; then
8389 enableval="$enable_colourpicker"
8390
8391 if test "$enableval" = yes; then
8392 ac_cv_use_colourpicker='wxUSE_COLOURPICKERCTRL=yes'
8393 else
8394 ac_cv_use_colourpicker='wxUSE_COLOURPICKERCTRL=no'
8395 fi
8396
8397else
8398
8399 LINE=`grep "wxUSE_COLOURPICKERCTRL" ${wx_arg_cache_file}`
8400 if test "x$LINE" != x ; then
8401 eval "DEFAULT_$LINE"
8402 else
8403 no_cache=1
8404 fi
8405
8406 ac_cv_use_colourpicker='wxUSE_COLOURPICKERCTRL='$DEFAULT_wxUSE_COLOURPICKERCTRL
8407
8408fi;
8409
8410 eval "$ac_cv_use_colourpicker"
8411 if test "$no_cache" != 1; then
8412 echo $ac_cv_use_colourpicker >> ${wx_arg_cache_file}.tmp
8413 fi
8414
8415 if test "$wxUSE_COLOURPICKERCTRL" = yes; then
8416 echo "$as_me:$LINENO: result: yes" >&5
8417echo "${ECHO_T}yes" >&6
8418 else
8419 echo "$as_me:$LINENO: result: no" >&5
8420echo "${ECHO_T}no" >&6
8421 fi
8422
8423
a848cd7e
SC
8424 enablestring=
8425 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-combobox" >&5
8426echo $ECHO_N "checking for --${enablestring:-enable}-combobox... $ECHO_C" >&6
8427 no_cache=0
8428 # Check whether --enable-combobox or --disable-combobox was given.
8429if test "${enable_combobox+set}" = set; then
8430 enableval="$enable_combobox"
8431
8432 if test "$enableval" = yes; then
8433 ac_cv_use_combobox='wxUSE_COMBOBOX=yes'
8434 else
8435 ac_cv_use_combobox='wxUSE_COMBOBOX=no'
8436 fi
8437
8438else
8439
8440 LINE=`grep "wxUSE_COMBOBOX" ${wx_arg_cache_file}`
8441 if test "x$LINE" != x ; then
8442 eval "DEFAULT_$LINE"
8443 else
8444 no_cache=1
8445 fi
8446
8447 ac_cv_use_combobox='wxUSE_COMBOBOX='$DEFAULT_wxUSE_COMBOBOX
8448
8449fi;
8450
8451 eval "$ac_cv_use_combobox"
8452 if test "$no_cache" != 1; then
8453 echo $ac_cv_use_combobox >> ${wx_arg_cache_file}.tmp
8454 fi
8455
8456 if test "$wxUSE_COMBOBOX" = yes; then
8457 echo "$as_me:$LINENO: result: yes" >&5
8458echo "${ECHO_T}yes" >&6
8459 else
8460 echo "$as_me:$LINENO: result: no" >&5
8461echo "${ECHO_T}no" >&6
8462 fi
8463
8464
642bcba9 8465 enablestring=
a57d600f
VZ
8466 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-comboctrl" >&5
8467echo $ECHO_N "checking for --${enablestring:-enable}-comboctrl... $ECHO_C" >&6
642bcba9 8468 no_cache=0
a57d600f
VZ
8469 # Check whether --enable-comboctrl or --disable-comboctrl was given.
8470if test "${enable_comboctrl+set}" = set; then
8471 enableval="$enable_comboctrl"
642bcba9
VZ
8472
8473 if test "$enableval" = yes; then
a57d600f 8474 ac_cv_use_comboctrl='wxUSE_COMBOCTRL=yes'
642bcba9 8475 else
a57d600f 8476 ac_cv_use_comboctrl='wxUSE_COMBOCTRL=no'
642bcba9
VZ
8477 fi
8478
8479else
8480
a57d600f 8481 LINE=`grep "wxUSE_COMBOCTRL" ${wx_arg_cache_file}`
642bcba9
VZ
8482 if test "x$LINE" != x ; then
8483 eval "DEFAULT_$LINE"
8484 else
8485 no_cache=1
8486 fi
8487
a57d600f 8488 ac_cv_use_comboctrl='wxUSE_COMBOCTRL='$DEFAULT_wxUSE_COMBOCTRL
642bcba9
VZ
8489
8490fi;
8491
a57d600f 8492 eval "$ac_cv_use_comboctrl"
642bcba9 8493 if test "$no_cache" != 1; then
a57d600f 8494 echo $ac_cv_use_comboctrl >> ${wx_arg_cache_file}.tmp
642bcba9
VZ
8495 fi
8496
a57d600f 8497 if test "$wxUSE_COMBOCTRL" = yes; then
642bcba9
VZ
8498 echo "$as_me:$LINENO: result: yes" >&5
8499echo "${ECHO_T}yes" >&6
8500 else
8501 echo "$as_me:$LINENO: result: no" >&5
8502echo "${ECHO_T}no" >&6
8503 fi
8504
8505
da98e9be
VZ
8506 enablestring=
8507 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-datepick" >&5
8508echo $ECHO_N "checking for --${enablestring:-enable}-datepick... $ECHO_C" >&6
8509 no_cache=0
8510 # Check whether --enable-datepick or --disable-datepick was given.
8511if test "${enable_datepick+set}" = set; then
8512 enableval="$enable_datepick"
8513
8514 if test "$enableval" = yes; then
8515 ac_cv_use_datepick='wxUSE_DATEPICKCTRL=yes'
8516 else
8517 ac_cv_use_datepick='wxUSE_DATEPICKCTRL=no'
8518 fi
8519
8520else
8521
8522 LINE=`grep "wxUSE_DATEPICKCTRL" ${wx_arg_cache_file}`
8523 if test "x$LINE" != x ; then
8524 eval "DEFAULT_$LINE"
8525 else
8526 no_cache=1
8527 fi
8528
8529 ac_cv_use_datepick='wxUSE_DATEPICKCTRL='$DEFAULT_wxUSE_DATEPICKCTRL
8530
8531fi;
8532
8533 eval "$ac_cv_use_datepick"
8534 if test "$no_cache" != 1; then
8535 echo $ac_cv_use_datepick >> ${wx_arg_cache_file}.tmp
8536 fi
8537
8538 if test "$wxUSE_DATEPICKCTRL" = yes; then
8539 echo "$as_me:$LINENO: result: yes" >&5
8540echo "${ECHO_T}yes" >&6
8541 else
8542 echo "$as_me:$LINENO: result: no" >&5
8543echo "${ECHO_T}no" >&6
8544 fi
8545
8546
e9263684
VZ
8547 enablestring=
8548 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dirpicker" >&5
8549echo $ECHO_N "checking for --${enablestring:-enable}-dirpicker... $ECHO_C" >&6
8550 no_cache=0
8551 # Check whether --enable-dirpicker or --disable-dirpicker was given.
8552if test "${enable_dirpicker+set}" = set; then
8553 enableval="$enable_dirpicker"
8554
8555 if test "$enableval" = yes; then
8556 ac_cv_use_dirpicker='wxUSE_DIRPICKERCTRL=yes'
8557 else
8558 ac_cv_use_dirpicker='wxUSE_DIRPICKERCTRL=no'
8559 fi
8560
8561else
8562
8563 LINE=`grep "wxUSE_DIRPICKERCTRL" ${wx_arg_cache_file}`
8564 if test "x$LINE" != x ; then
8565 eval "DEFAULT_$LINE"
8566 else
8567 no_cache=1
8568 fi
8569
8570 ac_cv_use_dirpicker='wxUSE_DIRPICKERCTRL='$DEFAULT_wxUSE_DIRPICKERCTRL
8571
8572fi;
8573
8574 eval "$ac_cv_use_dirpicker"
8575 if test "$no_cache" != 1; then
8576 echo $ac_cv_use_dirpicker >> ${wx_arg_cache_file}.tmp
8577 fi
8578
8579 if test "$wxUSE_DIRPICKERCTRL" = yes; then
8580 echo "$as_me:$LINENO: result: yes" >&5
8581echo "${ECHO_T}yes" >&6
8582 else
8583 echo "$as_me:$LINENO: result: no" >&5
8584echo "${ECHO_T}no" >&6
8585 fi
8586
8587
a848cd7e
SC
8588 enablestring=
8589 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-display" >&5
8590echo $ECHO_N "checking for --${enablestring:-enable}-display... $ECHO_C" >&6
8591 no_cache=0
8592 # Check whether --enable-display or --disable-display was given.
8593if test "${enable_display+set}" = set; then
8594 enableval="$enable_display"
8595
8596 if test "$enableval" = yes; then
8597 ac_cv_use_display='wxUSE_DISPLAY=yes'
8598 else
8599 ac_cv_use_display='wxUSE_DISPLAY=no'
8600 fi
8601
8602else
8603
8604 LINE=`grep "wxUSE_DISPLAY" ${wx_arg_cache_file}`
8605 if test "x$LINE" != x ; then
8606 eval "DEFAULT_$LINE"
8607 else
8608 no_cache=1
8609 fi
8610
8611 ac_cv_use_display='wxUSE_DISPLAY='$DEFAULT_wxUSE_DISPLAY
8612
8613fi;
8614
8615 eval "$ac_cv_use_display"
8616 if test "$no_cache" != 1; then
8617 echo $ac_cv_use_display >> ${wx_arg_cache_file}.tmp
8618 fi
8619
8620 if test "$wxUSE_DISPLAY" = yes; then
8621 echo "$as_me:$LINENO: result: yes" >&5
8622echo "${ECHO_T}yes" >&6
8623 else
8624 echo "$as_me:$LINENO: result: no" >&5
8625echo "${ECHO_T}no" >&6
8626 fi
8627
8628
88bbc332
RR
8629 enablestring=
8630 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-detect_sm" >&5
8631echo $ECHO_N "checking for --${enablestring:-enable}-detect_sm... $ECHO_C" >&6
8632 no_cache=0
8633 # Check whether --enable-detect_sm or --disable-detect_sm was given.
8634if test "${enable_detect_sm+set}" = set; then
8635 enableval="$enable_detect_sm"
8636
8637 if test "$enableval" = yes; then
8638 ac_cv_use_detect_sm='wxUSE_DETECT_SM=yes'
8639 else
8640 ac_cv_use_detect_sm='wxUSE_DETECT_SM=no'
8641 fi
8642
8643else
8644
8645 LINE=`grep "wxUSE_DETECT_SM" ${wx_arg_cache_file}`
8646 if test "x$LINE" != x ; then
8647 eval "DEFAULT_$LINE"
8648 else
8649 no_cache=1
8650 fi
8651
8652 ac_cv_use_detect_sm='wxUSE_DETECT_SM='$DEFAULT_wxUSE_DETECT_SM
8653
8654fi;
8655
8656 eval "$ac_cv_use_detect_sm"
8657 if test "$no_cache" != 1; then
8658 echo $ac_cv_use_detect_sm >> ${wx_arg_cache_file}.tmp
8659 fi
8660
8661 if test "$wxUSE_DETECT_SM" = yes; then
8662 echo "$as_me:$LINENO: result: yes" >&5
8663echo "${ECHO_T}yes" >&6
8664 else
8665 echo "$as_me:$LINENO: result: no" >&5
8666echo "${ECHO_T}no" >&6
8667 fi
8668
8669
e9263684
VZ
8670 enablestring=
8671 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-filepicker" >&5
8672echo $ECHO_N "checking for --${enablestring:-enable}-filepicker... $ECHO_C" >&6
8673 no_cache=0
8674 # Check whether --enable-filepicker or --disable-filepicker was given.
8675if test "${enable_filepicker+set}" = set; then
8676 enableval="$enable_filepicker"
8677
8678 if test "$enableval" = yes; then
8679 ac_cv_use_filepicker='wxUSE_FILEPICKERCTRL=yes'
8680 else
8681 ac_cv_use_filepicker='wxUSE_FILEPICKERCTRL=no'
8682 fi
8683
8684else
8685
8686 LINE=`grep "wxUSE_FILEPICKERCTRL" ${wx_arg_cache_file}`
8687 if test "x$LINE" != x ; then
8688 eval "DEFAULT_$LINE"
8689 else
8690 no_cache=1
8691 fi
8692
8693 ac_cv_use_filepicker='wxUSE_FILEPICKERCTRL='$DEFAULT_wxUSE_FILEPICKERCTRL
8694
8695fi;
8696
8697 eval "$ac_cv_use_filepicker"
8698 if test "$no_cache" != 1; then
8699 echo $ac_cv_use_filepicker >> ${wx_arg_cache_file}.tmp
8700 fi
8701
8702 if test "$wxUSE_FILEPICKERCTRL" = yes; then
8703 echo "$as_me:$LINENO: result: yes" >&5
8704echo "${ECHO_T}yes" >&6
8705 else
8706 echo "$as_me:$LINENO: result: no" >&5
8707echo "${ECHO_T}no" >&6
8708 fi
8709
8710
8711 enablestring=
8712 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fontpicker" >&5
8713echo $ECHO_N "checking for --${enablestring:-enable}-fontpicker... $ECHO_C" >&6
8714 no_cache=0
8715 # Check whether --enable-fontpicker or --disable-fontpicker was given.
8716if test "${enable_fontpicker+set}" = set; then
8717 enableval="$enable_fontpicker"
8718
8719 if test "$enableval" = yes; then
8720 ac_cv_use_fontpicker='wxUSE_FONTPICKERCTRL=yes'
8721 else
8722 ac_cv_use_fontpicker='wxUSE_FONTPICKERCTRL=no'
8723 fi
8724
8725else
8726
8727 LINE=`grep "wxUSE_FONTPICKERCTRL" ${wx_arg_cache_file}`
8728 if test "x$LINE" != x ; then
8729 eval "DEFAULT_$LINE"
8730 else
8731 no_cache=1
8732 fi
8733
8734 ac_cv_use_fontpicker='wxUSE_FONTPICKERCTRL='$DEFAULT_wxUSE_FONTPICKERCTRL
8735
8736fi;
8737
8738 eval "$ac_cv_use_fontpicker"
8739 if test "$no_cache" != 1; then
8740 echo $ac_cv_use_fontpicker >> ${wx_arg_cache_file}.tmp
8741 fi
8742
8743 if test "$wxUSE_FONTPICKERCTRL" = yes; then
8744 echo "$as_me:$LINENO: result: yes" >&5
8745echo "${ECHO_T}yes" >&6
8746 else
8747 echo "$as_me:$LINENO: result: no" >&5
8748echo "${ECHO_T}no" >&6
8749 fi
8750
8751
a848cd7e
SC
8752 enablestring=
8753 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gauge" >&5
8754echo $ECHO_N "checking for --${enablestring:-enable}-gauge... $ECHO_C" >&6
8755 no_cache=0
8756 # Check whether --enable-gauge or --disable-gauge was given.
8757if test "${enable_gauge+set}" = set; then
8758 enableval="$enable_gauge"
8759
8760 if test "$enableval" = yes; then
8761 ac_cv_use_gauge='wxUSE_GAUGE=yes'
8762 else
8763 ac_cv_use_gauge='wxUSE_GAUGE=no'
8764 fi
8765
8766else
8767
8768 LINE=`grep "wxUSE_GAUGE" ${wx_arg_cache_file}`
8769 if test "x$LINE" != x ; then
8770 eval "DEFAULT_$LINE"
8771 else
8772 no_cache=1
8773 fi
8774
8775 ac_cv_use_gauge='wxUSE_GAUGE='$DEFAULT_wxUSE_GAUGE
8776
8777fi;
8778
8779 eval "$ac_cv_use_gauge"
8780 if test "$no_cache" != 1; then
8781 echo $ac_cv_use_gauge >> ${wx_arg_cache_file}.tmp
8782 fi
8783
8784 if test "$wxUSE_GAUGE" = yes; then
8785 echo "$as_me:$LINENO: result: yes" >&5
8786echo "${ECHO_T}yes" >&6
8787 else
8788 echo "$as_me:$LINENO: result: no" >&5
8789echo "${ECHO_T}no" >&6
8790 fi
8791
8792
8793 enablestring=
8794 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-grid" >&5
8795echo $ECHO_N "checking for --${enablestring:-enable}-grid... $ECHO_C" >&6
8796 no_cache=0
8797 # Check whether --enable-grid or --disable-grid was given.
8798if test "${enable_grid+set}" = set; then
8799 enableval="$enable_grid"
8800
8801 if test "$enableval" = yes; then
8802 ac_cv_use_grid='wxUSE_GRID=yes'
8803 else
8804 ac_cv_use_grid='wxUSE_GRID=no'
8805 fi
8806
8807else
8808
8809 LINE=`grep "wxUSE_GRID" ${wx_arg_cache_file}`
8810 if test "x$LINE" != x ; then
8811 eval "DEFAULT_$LINE"
8812 else
8813 no_cache=1
8814 fi
8815
8816 ac_cv_use_grid='wxUSE_GRID='$DEFAULT_wxUSE_GRID
8817
8818fi;
8819
8820 eval "$ac_cv_use_grid"
8821 if test "$no_cache" != 1; then
8822 echo $ac_cv_use_grid >> ${wx_arg_cache_file}.tmp
8823 fi
8824
8825 if test "$wxUSE_GRID" = yes; then
8826 echo "$as_me:$LINENO: result: yes" >&5
8827echo "${ECHO_T}yes" >&6
8828 else
8829 echo "$as_me:$LINENO: result: no" >&5
8830echo "${ECHO_T}no" >&6
8831 fi
8832
8833
20e34ecc
RR
8834 enablestring=
8835 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dataviewctrl" >&5
8836echo $ECHO_N "checking for --${enablestring:-enable}-dataviewctrl... $ECHO_C" >&6
8837 no_cache=0
8838 # Check whether --enable-dataviewctrl or --disable-dataviewctrl was given.
8839if test "${enable_dataviewctrl+set}" = set; then
8840 enableval="$enable_dataviewctrl"
8841
8842 if test "$enableval" = yes; then
8843 ac_cv_use_dataviewctrl='wxUSE_DATAVIEWCTRL=yes'
8844 else
8845 ac_cv_use_dataviewctrl='wxUSE_DATAVIEWCTRL=no'
8846 fi
8847
8848else
8849
8850 LINE=`grep "wxUSE_DATAVIEWCTRL" ${wx_arg_cache_file}`
8851 if test "x$LINE" != x ; then
8852 eval "DEFAULT_$LINE"
8853 else
8854 no_cache=1
8855 fi
8856
8857 ac_cv_use_dataviewctrl='wxUSE_DATAVIEWCTRL='$DEFAULT_wxUSE_DATAVIEWCTRL
8858
8859fi;
8860
8861 eval "$ac_cv_use_dataviewctrl"
8862 if test "$no_cache" != 1; then
8863 echo $ac_cv_use_dataviewctrl >> ${wx_arg_cache_file}.tmp
8864 fi
8865
8866 if test "$wxUSE_DATAVIEWCTRL" = yes; then
8867 echo "$as_me:$LINENO: result: yes" >&5
8868echo "${ECHO_T}yes" >&6
8869 else
8870 echo "$as_me:$LINENO: result: no" >&5
8871echo "${ECHO_T}no" >&6
8872 fi
8873
8874
6954625c
VZ
8875 enablestring=
8876 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-hyperlink" >&5
8877echo $ECHO_N "checking for --${enablestring:-enable}-hyperlink... $ECHO_C" >&6
8878 no_cache=0
8879 # Check whether --enable-hyperlink or --disable-hyperlink was given.
8880if test "${enable_hyperlink+set}" = set; then
8881 enableval="$enable_hyperlink"
8882
8883 if test "$enableval" = yes; then
8884 ac_cv_use_hyperlink='wxUSE_HYPERLINKCTRL=yes'
8885 else
8886 ac_cv_use_hyperlink='wxUSE_HYPERLINKCTRL=no'
8887 fi
8888
8889else
8890
8891 LINE=`grep "wxUSE_HYPERLINKCTRL" ${wx_arg_cache_file}`
8892 if test "x$LINE" != x ; then
8893 eval "DEFAULT_$LINE"
8894 else
8895 no_cache=1
8896 fi
8897
8898 ac_cv_use_hyperlink='wxUSE_HYPERLINKCTRL='$DEFAULT_wxUSE_HYPERLINKCTRL
8899
8900fi;
8901
8902 eval "$ac_cv_use_hyperlink"
8903 if test "$no_cache" != 1; then
8904 echo $ac_cv_use_hyperlink >> ${wx_arg_cache_file}.tmp
8905 fi
8906
8907 if test "$wxUSE_HYPERLINKCTRL" = yes; then
8908 echo "$as_me:$LINENO: result: yes" >&5
8909echo "${ECHO_T}yes" >&6
8910 else
8911 echo "$as_me:$LINENO: result: no" >&5
8912echo "${ECHO_T}no" >&6
8913 fi
8914
8915
a848cd7e
SC
8916 enablestring=
8917 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-imaglist" >&5
8918echo $ECHO_N "checking for --${enablestring:-enable}-imaglist... $ECHO_C" >&6
8919 no_cache=0
8920 # Check whether --enable-imaglist or --disable-imaglist was given.
8921if test "${enable_imaglist+set}" = set; then
8922 enableval="$enable_imaglist"
8923
8924 if test "$enableval" = yes; then
8925 ac_cv_use_imaglist='wxUSE_IMAGLIST=yes'
8926 else
8927 ac_cv_use_imaglist='wxUSE_IMAGLIST=no'
8928 fi
8929
8930else
8931
8932 LINE=`grep "wxUSE_IMAGLIST" ${wx_arg_cache_file}`
8933 if test "x$LINE" != x ; then
8934 eval "DEFAULT_$LINE"
8935 else
8936 no_cache=1
8937 fi
8938
8939 ac_cv_use_imaglist='wxUSE_IMAGLIST='$DEFAULT_wxUSE_IMAGLIST
8940
8941fi;
8942
8943 eval "$ac_cv_use_imaglist"
8944 if test "$no_cache" != 1; then
8945 echo $ac_cv_use_imaglist >> ${wx_arg_cache_file}.tmp
8946 fi
8947
8948 if test "$wxUSE_IMAGLIST" = yes; then
8949 echo "$as_me:$LINENO: result: yes" >&5
8950echo "${ECHO_T}yes" >&6
8951 else
8952 echo "$as_me:$LINENO: result: no" >&5
8953echo "${ECHO_T}no" >&6
8954 fi
8955
8956
8957 enablestring=
8958 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listbook" >&5
8959echo $ECHO_N "checking for --${enablestring:-enable}-listbook... $ECHO_C" >&6
8960 no_cache=0
8961 # Check whether --enable-listbook or --disable-listbook was given.
8962if test "${enable_listbook+set}" = set; then
8963 enableval="$enable_listbook"
8964
8965 if test "$enableval" = yes; then
8966 ac_cv_use_listbook='wxUSE_LISTBOOK=yes'
8967 else
8968 ac_cv_use_listbook='wxUSE_LISTBOOK=no'
8969 fi
8970
8971else
8972
8973 LINE=`grep "wxUSE_LISTBOOK" ${wx_arg_cache_file}`
8974 if test "x$LINE" != x ; then
8975 eval "DEFAULT_$LINE"
8976 else
8977 no_cache=1
8978 fi
8979
8980 ac_cv_use_listbook='wxUSE_LISTBOOK='$DEFAULT_wxUSE_LISTBOOK
8981
8982fi;
8983
8984 eval "$ac_cv_use_listbook"
8985 if test "$no_cache" != 1; then
8986 echo $ac_cv_use_listbook >> ${wx_arg_cache_file}.tmp
8987 fi
8988
8989 if test "$wxUSE_LISTBOOK" = yes; then
8990 echo "$as_me:$LINENO: result: yes" >&5
8991echo "${ECHO_T}yes" >&6
8992 else
8993 echo "$as_me:$LINENO: result: no" >&5
8994echo "${ECHO_T}no" >&6
8995 fi
8996
8997
8998 enablestring=
8999 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listbox" >&5
9000echo $ECHO_N "checking for --${enablestring:-enable}-listbox... $ECHO_C" >&6
9001 no_cache=0
9002 # Check whether --enable-listbox or --disable-listbox was given.
9003if test "${enable_listbox+set}" = set; then
9004 enableval="$enable_listbox"
9005
9006 if test "$enableval" = yes; then
9007 ac_cv_use_listbox='wxUSE_LISTBOX=yes'
9008 else
9009 ac_cv_use_listbox='wxUSE_LISTBOX=no'
9010 fi
9011
9012else
9013
9014 LINE=`grep "wxUSE_LISTBOX" ${wx_arg_cache_file}`
9015 if test "x$LINE" != x ; then
9016 eval "DEFAULT_$LINE"
9017 else
9018 no_cache=1
9019 fi
9020
9021 ac_cv_use_listbox='wxUSE_LISTBOX='$DEFAULT_wxUSE_LISTBOX
9022
9023fi;
9024
9025 eval "$ac_cv_use_listbox"
9026 if test "$no_cache" != 1; then
9027 echo $ac_cv_use_listbox >> ${wx_arg_cache_file}.tmp
9028 fi
9029
9030 if test "$wxUSE_LISTBOX" = yes; then
9031 echo "$as_me:$LINENO: result: yes" >&5
9032echo "${ECHO_T}yes" >&6
9033 else
9034 echo "$as_me:$LINENO: result: no" >&5
9035echo "${ECHO_T}no" >&6
9036 fi
9037
9038
9039 enablestring=
9040 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listctrl" >&5
9041echo $ECHO_N "checking for --${enablestring:-enable}-listctrl... $ECHO_C" >&6
9042 no_cache=0
9043 # Check whether --enable-listctrl or --disable-listctrl was given.
9044if test "${enable_listctrl+set}" = set; then
9045 enableval="$enable_listctrl"
9046
9047 if test "$enableval" = yes; then
9048 ac_cv_use_listctrl='wxUSE_LISTCTRL=yes'
9049 else
9050 ac_cv_use_listctrl='wxUSE_LISTCTRL=no'
9051 fi
9052
9053else
9054
9055 LINE=`grep "wxUSE_LISTCTRL" ${wx_arg_cache_file}`
9056 if test "x$LINE" != x ; then
9057 eval "DEFAULT_$LINE"
9058 else
9059 no_cache=1
9060 fi
9061
9062 ac_cv_use_listctrl='wxUSE_LISTCTRL='$DEFAULT_wxUSE_LISTCTRL
9063
9064fi;
9065
9066 eval "$ac_cv_use_listctrl"
9067 if test "$no_cache" != 1; then
9068 echo $ac_cv_use_listctrl >> ${wx_arg_cache_file}.tmp
9069 fi
9070
9071 if test "$wxUSE_LISTCTRL" = yes; then
9072 echo "$as_me:$LINENO: result: yes" >&5
9073echo "${ECHO_T}yes" >&6
9074 else
9075 echo "$as_me:$LINENO: result: no" >&5
9076echo "${ECHO_T}no" >&6
9077 fi
9078
9079
9080 enablestring=
9081 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-notebook" >&5
9082echo $ECHO_N "checking for --${enablestring:-enable}-notebook... $ECHO_C" >&6
9083 no_cache=0
9084 # Check whether --enable-notebook or --disable-notebook was given.
9085if test "${enable_notebook+set}" = set; then
9086 enableval="$enable_notebook"
9087
9088 if test "$enableval" = yes; then
9089 ac_cv_use_notebook='wxUSE_NOTEBOOK=yes'
9090 else
9091 ac_cv_use_notebook='wxUSE_NOTEBOOK=no'
9092 fi
9093
9094else
9095
9096 LINE=`grep "wxUSE_NOTEBOOK" ${wx_arg_cache_file}`
9097 if test "x$LINE" != x ; then
9098 eval "DEFAULT_$LINE"
9099 else
9100 no_cache=1
9101 fi
9102
9103 ac_cv_use_notebook='wxUSE_NOTEBOOK='$DEFAULT_wxUSE_NOTEBOOK
9104
9105fi;
9106
9107 eval "$ac_cv_use_notebook"
9108 if test "$no_cache" != 1; then
9109 echo $ac_cv_use_notebook >> ${wx_arg_cache_file}.tmp
9110 fi
9111
9112 if test "$wxUSE_NOTEBOOK" = yes; then
9113 echo "$as_me:$LINENO: result: yes" >&5
9114echo "${ECHO_T}yes" >&6
9115 else
9116 echo "$as_me:$LINENO: result: no" >&5
9117echo "${ECHO_T}no" >&6
9118 fi
9119
9120
642bcba9 9121 enablestring=
a57d600f
VZ
9122 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-odcombobox" >&5
9123echo $ECHO_N "checking for --${enablestring:-enable}-odcombobox... $ECHO_C" >&6
642bcba9 9124 no_cache=0
a57d600f
VZ
9125 # Check whether --enable-odcombobox or --disable-odcombobox was given.
9126if test "${enable_odcombobox+set}" = set; then
9127 enableval="$enable_odcombobox"
642bcba9
VZ
9128
9129 if test "$enableval" = yes; then
a57d600f 9130 ac_cv_use_odcombobox='wxUSE_ODCOMBOBOX=yes'
642bcba9 9131 else
a57d600f 9132 ac_cv_use_odcombobox='wxUSE_ODCOMBOBOX=no'
642bcba9
VZ
9133 fi
9134
9135else
9136
a57d600f 9137 LINE=`grep "wxUSE_ODCOMBOBOX" ${wx_arg_cache_file}`
642bcba9
VZ
9138 if test "x$LINE" != x ; then
9139 eval "DEFAULT_$LINE"
9140 else
9141 no_cache=1
9142 fi
9143
a57d600f 9144 ac_cv_use_odcombobox='wxUSE_ODCOMBOBOX='$DEFAULT_wxUSE_ODCOMBOBOX
642bcba9
VZ
9145
9146fi;
9147
a57d600f 9148 eval "$ac_cv_use_odcombobox"
642bcba9 9149 if test "$no_cache" != 1; then
a57d600f 9150 echo $ac_cv_use_odcombobox >> ${wx_arg_cache_file}.tmp
642bcba9
VZ
9151 fi
9152
a57d600f 9153 if test "$wxUSE_ODCOMBOBOX" = yes; then
642bcba9
VZ
9154 echo "$as_me:$LINENO: result: yes" >&5
9155echo "${ECHO_T}yes" >&6
9156 else
9157 echo "$as_me:$LINENO: result: no" >&5
9158echo "${ECHO_T}no" >&6
9159 fi
9160
9161
a848cd7e
SC
9162 enablestring=
9163 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-radiobox" >&5
9164echo $ECHO_N "checking for --${enablestring:-enable}-radiobox... $ECHO_C" >&6
9165 no_cache=0
9166 # Check whether --enable-radiobox or --disable-radiobox was given.
9167if test "${enable_radiobox+set}" = set; then
9168 enableval="$enable_radiobox"
9169
9170 if test "$enableval" = yes; then
9171 ac_cv_use_radiobox='wxUSE_RADIOBOX=yes'
9172 else
9173 ac_cv_use_radiobox='wxUSE_RADIOBOX=no'
9174 fi
9175
9176else
9177
9178 LINE=`grep "wxUSE_RADIOBOX" ${wx_arg_cache_file}`
9179 if test "x$LINE" != x ; then
9180 eval "DEFAULT_$LINE"
9181 else
9182 no_cache=1
9183 fi
9184
9185 ac_cv_use_radiobox='wxUSE_RADIOBOX='$DEFAULT_wxUSE_RADIOBOX
9186
9187fi;
9188
9189 eval "$ac_cv_use_radiobox"
9190 if test "$no_cache" != 1; then
9191 echo $ac_cv_use_radiobox >> ${wx_arg_cache_file}.tmp
9192 fi
9193
9194 if test "$wxUSE_RADIOBOX" = yes; then
9195 echo "$as_me:$LINENO: result: yes" >&5
9196echo "${ECHO_T}yes" >&6
9197 else
9198 echo "$as_me:$LINENO: result: no" >&5
9199echo "${ECHO_T}no" >&6
9200 fi
9201
9202
9203 enablestring=
9204 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-radiobtn" >&5
9205echo $ECHO_N "checking for --${enablestring:-enable}-radiobtn... $ECHO_C" >&6
9206 no_cache=0
9207 # Check whether --enable-radiobtn or --disable-radiobtn was given.
9208if test "${enable_radiobtn+set}" = set; then
9209 enableval="$enable_radiobtn"
9210
9211 if test "$enableval" = yes; then
9212 ac_cv_use_radiobtn='wxUSE_RADIOBTN=yes'
9213 else
9214 ac_cv_use_radiobtn='wxUSE_RADIOBTN=no'
9215 fi
9216
9217else
9218
9219 LINE=`grep "wxUSE_RADIOBTN" ${wx_arg_cache_file}`
9220 if test "x$LINE" != x ; then
9221 eval "DEFAULT_$LINE"
9222 else
9223 no_cache=1
9224 fi
9225
9226 ac_cv_use_radiobtn='wxUSE_RADIOBTN='$DEFAULT_wxUSE_RADIOBTN
9227
9228fi;
9229
9230 eval "$ac_cv_use_radiobtn"
9231 if test "$no_cache" != 1; then
9232 echo $ac_cv_use_radiobtn >> ${wx_arg_cache_file}.tmp
9233 fi
9234
9235 if test "$wxUSE_RADIOBTN" = yes; then
9236 echo "$as_me:$LINENO: result: yes" >&5
9237echo "${ECHO_T}yes" >&6
9238 else
9239 echo "$as_me:$LINENO: result: no" >&5
9240echo "${ECHO_T}no" >&6
9241 fi
9242
9243
9244 enablestring=
9245 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sash" >&5
9246echo $ECHO_N "checking for --${enablestring:-enable}-sash... $ECHO_C" >&6
9247 no_cache=0
9248 # Check whether --enable-sash or --disable-sash was given.
9249if test "${enable_sash+set}" = set; then
9250 enableval="$enable_sash"
9251
9252 if test "$enableval" = yes; then
9253 ac_cv_use_sash='wxUSE_SASH=yes'
9254 else
9255 ac_cv_use_sash='wxUSE_SASH=no'
9256 fi
9257
9258else
9259
9260 LINE=`grep "wxUSE_SASH" ${wx_arg_cache_file}`
9261 if test "x$LINE" != x ; then
9262 eval "DEFAULT_$LINE"
9263 else
9264 no_cache=1
9265 fi
9266
9267 ac_cv_use_sash='wxUSE_SASH='$DEFAULT_wxUSE_SASH
9268
9269fi;
9270
9271 eval "$ac_cv_use_sash"
9272 if test "$no_cache" != 1; then
9273 echo $ac_cv_use_sash >> ${wx_arg_cache_file}.tmp
9274 fi
9275
9276 if test "$wxUSE_SASH" = yes; then
9277 echo "$as_me:$LINENO: result: yes" >&5
9278echo "${ECHO_T}yes" >&6
9279 else
9280 echo "$as_me:$LINENO: result: no" >&5
9281echo "${ECHO_T}no" >&6
9282 fi
9283
9284
9285 enablestring=
9286 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-scrollbar" >&5
9287echo $ECHO_N "checking for --${enablestring:-enable}-scrollbar... $ECHO_C" >&6
9288 no_cache=0
9289 # Check whether --enable-scrollbar or --disable-scrollbar was given.
9290if test "${enable_scrollbar+set}" = set; then
9291 enableval="$enable_scrollbar"
9292
9293 if test "$enableval" = yes; then
9294 ac_cv_use_scrollbar='wxUSE_SCROLLBAR=yes'
9295 else
9296 ac_cv_use_scrollbar='wxUSE_SCROLLBAR=no'
9297 fi
9298
9299else
9300
9301 LINE=`grep "wxUSE_SCROLLBAR" ${wx_arg_cache_file}`
9302 if test "x$LINE" != x ; then
9303 eval "DEFAULT_$LINE"
9304 else
9305 no_cache=1
9306 fi
9307
9308 ac_cv_use_scrollbar='wxUSE_SCROLLBAR='$DEFAULT_wxUSE_SCROLLBAR
9309
9310fi;
9311
9312 eval "$ac_cv_use_scrollbar"
9313 if test "$no_cache" != 1; then
9314 echo $ac_cv_use_scrollbar >> ${wx_arg_cache_file}.tmp
9315 fi
9316
9317 if test "$wxUSE_SCROLLBAR" = yes; then
9318 echo "$as_me:$LINENO: result: yes" >&5
9319echo "${ECHO_T}yes" >&6
9320 else
9321 echo "$as_me:$LINENO: result: no" >&5
9322echo "${ECHO_T}no" >&6
9323 fi
9324
9325
9326 enablestring=
9327 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-slider" >&5
9328echo $ECHO_N "checking for --${enablestring:-enable}-slider... $ECHO_C" >&6
9329 no_cache=0
9330 # Check whether --enable-slider or --disable-slider was given.
9331if test "${enable_slider+set}" = set; then
9332 enableval="$enable_slider"
9333
9334 if test "$enableval" = yes; then
9335 ac_cv_use_slider='wxUSE_SLIDER=yes'
9336 else
9337 ac_cv_use_slider='wxUSE_SLIDER=no'
9338 fi
9339
9340else
9341
9342 LINE=`grep "wxUSE_SLIDER" ${wx_arg_cache_file}`
9343 if test "x$LINE" != x ; then
9344 eval "DEFAULT_$LINE"
9345 else
9346 no_cache=1
9347 fi
9348
9349 ac_cv_use_slider='wxUSE_SLIDER='$DEFAULT_wxUSE_SLIDER
9350
9351fi;
9352
9353 eval "$ac_cv_use_slider"
9354 if test "$no_cache" != 1; then
9355 echo $ac_cv_use_slider >> ${wx_arg_cache_file}.tmp
9356 fi
9357
9358 if test "$wxUSE_SLIDER" = yes; then
9359 echo "$as_me:$LINENO: result: yes" >&5
9360echo "${ECHO_T}yes" >&6
9361 else
9362 echo "$as_me:$LINENO: result: no" >&5
9363echo "${ECHO_T}no" >&6
9364 fi
9365
9366
9367 enablestring=
9368 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-spinbtn" >&5
9369echo $ECHO_N "checking for --${enablestring:-enable}-spinbtn... $ECHO_C" >&6
9370 no_cache=0
9371 # Check whether --enable-spinbtn or --disable-spinbtn was given.
9372if test "${enable_spinbtn+set}" = set; then
9373 enableval="$enable_spinbtn"
9374
9375 if test "$enableval" = yes; then
9376 ac_cv_use_spinbtn='wxUSE_SPINBTN=yes'
9377 else
9378 ac_cv_use_spinbtn='wxUSE_SPINBTN=no'
9379 fi
9380
9381else
9382
9383 LINE=`grep "wxUSE_SPINBTN" ${wx_arg_cache_file}`
9384 if test "x$LINE" != x ; then
9385 eval "DEFAULT_$LINE"
9386 else
9387 no_cache=1
9388 fi
9389
9390 ac_cv_use_spinbtn='wxUSE_SPINBTN='$DEFAULT_wxUSE_SPINBTN
9391
9392fi;
9393
9394 eval "$ac_cv_use_spinbtn"
9395 if test "$no_cache" != 1; then
9396 echo $ac_cv_use_spinbtn >> ${wx_arg_cache_file}.tmp
9397 fi
9398
9399 if test "$wxUSE_SPINBTN" = yes; then
9400 echo "$as_me:$LINENO: result: yes" >&5
9401echo "${ECHO_T}yes" >&6
9402 else
9403 echo "$as_me:$LINENO: result: no" >&5
9404echo "${ECHO_T}no" >&6
9405 fi
9406
9407
9408 enablestring=
9409 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-spinctrl" >&5
9410echo $ECHO_N "checking for --${enablestring:-enable}-spinctrl... $ECHO_C" >&6
9411 no_cache=0
9412 # Check whether --enable-spinctrl or --disable-spinctrl was given.
9413if test "${enable_spinctrl+set}" = set; then
9414 enableval="$enable_spinctrl"
9415
9416 if test "$enableval" = yes; then
9417 ac_cv_use_spinctrl='wxUSE_SPINCTRL=yes'
9418 else
9419 ac_cv_use_spinctrl='wxUSE_SPINCTRL=no'
9420 fi
9421
9422else
9423
9424 LINE=`grep "wxUSE_SPINCTRL" ${wx_arg_cache_file}`
9425 if test "x$LINE" != x ; then
9426 eval "DEFAULT_$LINE"
9427 else
9428 no_cache=1
9429 fi
9430
9431 ac_cv_use_spinctrl='wxUSE_SPINCTRL='$DEFAULT_wxUSE_SPINCTRL
9432
9433fi;
9434
9435 eval "$ac_cv_use_spinctrl"
9436 if test "$no_cache" != 1; then
9437 echo $ac_cv_use_spinctrl >> ${wx_arg_cache_file}.tmp
9438 fi
9439
9440 if test "$wxUSE_SPINCTRL" = yes; then
9441 echo "$as_me:$LINENO: result: yes" >&5
9442echo "${ECHO_T}yes" >&6
9443 else
9444 echo "$as_me:$LINENO: result: no" >&5
9445echo "${ECHO_T}no" >&6
9446 fi
9447
9448
9449 enablestring=
9450 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splitter" >&5
9451echo $ECHO_N "checking for --${enablestring:-enable}-splitter... $ECHO_C" >&6
9452 no_cache=0
9453 # Check whether --enable-splitter or --disable-splitter was given.
9454if test "${enable_splitter+set}" = set; then
9455 enableval="$enable_splitter"
9456
9457 if test "$enableval" = yes; then
9458 ac_cv_use_splitter='wxUSE_SPLITTER=yes'
9459 else
9460 ac_cv_use_splitter='wxUSE_SPLITTER=no'
9461 fi
9462
9463else
9464
9465 LINE=`grep "wxUSE_SPLITTER" ${wx_arg_cache_file}`
9466 if test "x$LINE" != x ; then
9467 eval "DEFAULT_$LINE"
9468 else
9469 no_cache=1
9470 fi
9471
9472 ac_cv_use_splitter='wxUSE_SPLITTER='$DEFAULT_wxUSE_SPLITTER
9473
9474fi;
9475
9476 eval "$ac_cv_use_splitter"
9477 if test "$no_cache" != 1; then
9478 echo $ac_cv_use_splitter >> ${wx_arg_cache_file}.tmp
9479 fi
9480
9481 if test "$wxUSE_SPLITTER" = yes; then
9482 echo "$as_me:$LINENO: result: yes" >&5
9483echo "${ECHO_T}yes" >&6
9484 else
9485 echo "$as_me:$LINENO: result: no" >&5
9486echo "${ECHO_T}no" >&6
9487 fi
9488
9489
9490 enablestring=
9491 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statbmp" >&5
9492echo $ECHO_N "checking for --${enablestring:-enable}-statbmp... $ECHO_C" >&6
9493 no_cache=0
9494 # Check whether --enable-statbmp or --disable-statbmp was given.
9495if test "${enable_statbmp+set}" = set; then
9496 enableval="$enable_statbmp"
9497
9498 if test "$enableval" = yes; then
9499 ac_cv_use_statbmp='wxUSE_STATBMP=yes'
9500 else
9501 ac_cv_use_statbmp='wxUSE_STATBMP=no'
9502 fi
9503
9504else
9505
9506 LINE=`grep "wxUSE_STATBMP" ${wx_arg_cache_file}`
9507 if test "x$LINE" != x ; then
9508 eval "DEFAULT_$LINE"
9509 else
9510 no_cache=1
9511 fi
9512
9513 ac_cv_use_statbmp='wxUSE_STATBMP='$DEFAULT_wxUSE_STATBMP
9514
9515fi;
9516
9517 eval "$ac_cv_use_statbmp"
9518 if test "$no_cache" != 1; then
9519 echo $ac_cv_use_statbmp >> ${wx_arg_cache_file}.tmp
9520 fi
9521
9522 if test "$wxUSE_STATBMP" = yes; then
9523 echo "$as_me:$LINENO: result: yes" >&5
9524echo "${ECHO_T}yes" >&6
9525 else
9526 echo "$as_me:$LINENO: result: no" >&5
9527echo "${ECHO_T}no" >&6
9528 fi
9529
9530
9531 enablestring=
9532 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statbox" >&5
9533echo $ECHO_N "checking for --${enablestring:-enable}-statbox... $ECHO_C" >&6
9534 no_cache=0
9535 # Check whether --enable-statbox or --disable-statbox was given.
9536if test "${enable_statbox+set}" = set; then
9537 enableval="$enable_statbox"
9538
9539 if test "$enableval" = yes; then
9540 ac_cv_use_statbox='wxUSE_STATBOX=yes'
9541 else
9542 ac_cv_use_statbox='wxUSE_STATBOX=no'
9543 fi
9544
9545else
9546
9547 LINE=`grep "wxUSE_STATBOX" ${wx_arg_cache_file}`
9548 if test "x$LINE" != x ; then
9549 eval "DEFAULT_$LINE"
9550 else
9551 no_cache=1
9552 fi
9553
9554 ac_cv_use_statbox='wxUSE_STATBOX='$DEFAULT_wxUSE_STATBOX
9555
9556fi;
9557
9558 eval "$ac_cv_use_statbox"
9559 if test "$no_cache" != 1; then
9560 echo $ac_cv_use_statbox >> ${wx_arg_cache_file}.tmp
9561 fi
9562
9563 if test "$wxUSE_STATBOX" = yes; then
9564 echo "$as_me:$LINENO: result: yes" >&5
9565echo "${ECHO_T}yes" >&6
9566 else
9567 echo "$as_me:$LINENO: result: no" >&5
9568echo "${ECHO_T}no" >&6
9569 fi
9570
9571
9572 enablestring=
9573 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statline" >&5
9574echo $ECHO_N "checking for --${enablestring:-enable}-statline... $ECHO_C" >&6
9575 no_cache=0
9576 # Check whether --enable-statline or --disable-statline was given.
9577if test "${enable_statline+set}" = set; then
9578 enableval="$enable_statline"
9579
9580 if test "$enableval" = yes; then
9581 ac_cv_use_statline='wxUSE_STATLINE=yes'
9582 else
9583 ac_cv_use_statline='wxUSE_STATLINE=no'
9584 fi
9585
9586else
9587
9588 LINE=`grep "wxUSE_STATLINE" ${wx_arg_cache_file}`
9589 if test "x$LINE" != x ; then
9590 eval "DEFAULT_$LINE"
9591 else
9592 no_cache=1
9593 fi
9594
9595 ac_cv_use_statline='wxUSE_STATLINE='$DEFAULT_wxUSE_STATLINE
9596
9597fi;
9598
9599 eval "$ac_cv_use_statline"
9600 if test "$no_cache" != 1; then
9601 echo $ac_cv_use_statline >> ${wx_arg_cache_file}.tmp
9602 fi
9603
9604 if test "$wxUSE_STATLINE" = yes; then
9605 echo "$as_me:$LINENO: result: yes" >&5
9606echo "${ECHO_T}yes" >&6
9607 else
9608 echo "$as_me:$LINENO: result: no" >&5
9609echo "${ECHO_T}no" >&6
9610 fi
9611
9612
9613 enablestring=
9614 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stattext" >&5
9615echo $ECHO_N "checking for --${enablestring:-enable}-stattext... $ECHO_C" >&6
9616 no_cache=0
9617 # Check whether --enable-stattext or --disable-stattext was given.
9618if test "${enable_stattext+set}" = set; then
9619 enableval="$enable_stattext"
9620
9621 if test "$enableval" = yes; then
9622 ac_cv_use_stattext='wxUSE_STATTEXT=yes'
9623 else
9624 ac_cv_use_stattext='wxUSE_STATTEXT=no'
9625 fi
9626
9627else
9628
9629 LINE=`grep "wxUSE_STATTEXT" ${wx_arg_cache_file}`
9630 if test "x$LINE" != x ; then
9631 eval "DEFAULT_$LINE"
9632 else
9633 no_cache=1
9634 fi
9635
9636 ac_cv_use_stattext='wxUSE_STATTEXT='$DEFAULT_wxUSE_STATTEXT
9637
9638fi;
9639
9640 eval "$ac_cv_use_stattext"
9641 if test "$no_cache" != 1; then
9642 echo $ac_cv_use_stattext >> ${wx_arg_cache_file}.tmp
9643 fi
9644
9645 if test "$wxUSE_STATTEXT" = yes; then
9646 echo "$as_me:$LINENO: result: yes" >&5
9647echo "${ECHO_T}yes" >&6
9648 else
9649 echo "$as_me:$LINENO: result: no" >&5
9650echo "${ECHO_T}no" >&6
9651 fi
9652
9653
9654 enablestring=
9655 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statusbar" >&5
9656echo $ECHO_N "checking for --${enablestring:-enable}-statusbar... $ECHO_C" >&6
9657 no_cache=0
9658 # Check whether --enable-statusbar or --disable-statusbar was given.
9659if test "${enable_statusbar+set}" = set; then
9660 enableval="$enable_statusbar"
9661
9662 if test "$enableval" = yes; then
9663 ac_cv_use_statusbar='wxUSE_STATUSBAR=yes'
9664 else
9665 ac_cv_use_statusbar='wxUSE_STATUSBAR=no'
9666 fi
9667
9668else
9669
9670 LINE=`grep "wxUSE_STATUSBAR" ${wx_arg_cache_file}`
9671 if test "x$LINE" != x ; then
9672 eval "DEFAULT_$LINE"
9673 else
9674 no_cache=1
9675 fi
9676
9677 ac_cv_use_statusbar='wxUSE_STATUSBAR='$DEFAULT_wxUSE_STATUSBAR
9678
9679fi;
9680
9681 eval "$ac_cv_use_statusbar"
9682 if test "$no_cache" != 1; then
9683 echo $ac_cv_use_statusbar >> ${wx_arg_cache_file}.tmp
9684 fi
9685
9686 if test "$wxUSE_STATUSBAR" = yes; then
9687 echo "$as_me:$LINENO: result: yes" >&5
9688echo "${ECHO_T}yes" >&6
9689 else
9690 echo "$as_me:$LINENO: result: no" >&5
9691echo "${ECHO_T}no" >&6
9692 fi
9693
9694
9695 enablestring=
9696 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tabdialog" >&5
9697echo $ECHO_N "checking for --${enablestring:-enable}-tabdialog... $ECHO_C" >&6
9698 no_cache=0
9699 # Check whether --enable-tabdialog or --disable-tabdialog was given.
9700if test "${enable_tabdialog+set}" = set; then
9701 enableval="$enable_tabdialog"
9702
9703 if test "$enableval" = yes; then
f10e38c4 9704 ac_cv_use_tabdialog='wxUSE_TAB_DIALOG=yes'
a848cd7e 9705 else
f10e38c4 9706 ac_cv_use_tabdialog='wxUSE_TAB_DIALOG=no'
a848cd7e
SC
9707 fi
9708
9709else
9710
f10e38c4 9711 LINE=`grep "wxUSE_TAB_DIALOG" ${wx_arg_cache_file}`
a848cd7e
SC
9712 if test "x$LINE" != x ; then
9713 eval "DEFAULT_$LINE"
9714 else
9715 no_cache=1
9716 fi
9717
f10e38c4 9718 ac_cv_use_tabdialog='wxUSE_TAB_DIALOG='$DEFAULT_wxUSE_TAB_DIALOG
a848cd7e
SC
9719
9720fi;
9721
9722 eval "$ac_cv_use_tabdialog"
9723 if test "$no_cache" != 1; then
9724 echo $ac_cv_use_tabdialog >> ${wx_arg_cache_file}.tmp
9725 fi
9726
f10e38c4 9727 if test "$wxUSE_TAB_DIALOG" = yes; then
a848cd7e
SC
9728 echo "$as_me:$LINENO: result: yes" >&5
9729echo "${ECHO_T}yes" >&6
9730 else
9731 echo "$as_me:$LINENO: result: no" >&5
9732echo "${ECHO_T}no" >&6
9733 fi
9734
9735
9736 enablestring=
9737 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textctrl" >&5
9738echo $ECHO_N "checking for --${enablestring:-enable}-textctrl... $ECHO_C" >&6
9739 no_cache=0
9740 # Check whether --enable-textctrl or --disable-textctrl was given.
9741if test "${enable_textctrl+set}" = set; then
9742 enableval="$enable_textctrl"
9743
9744 if test "$enableval" = yes; then
9745 ac_cv_use_textctrl='wxUSE_TEXTCTRL=yes'
9746 else
9747 ac_cv_use_textctrl='wxUSE_TEXTCTRL=no'
9748 fi
9749
9750else
9751
9752 LINE=`grep "wxUSE_TEXTCTRL" ${wx_arg_cache_file}`
9753 if test "x$LINE" != x ; then
9754 eval "DEFAULT_$LINE"
9755 else
9756 no_cache=1
9757 fi
9758
9759 ac_cv_use_textctrl='wxUSE_TEXTCTRL='$DEFAULT_wxUSE_TEXTCTRL
9760
9761fi;
9762
9763 eval "$ac_cv_use_textctrl"
9764 if test "$no_cache" != 1; then
9765 echo $ac_cv_use_textctrl >> ${wx_arg_cache_file}.tmp
9766 fi
9767
9768 if test "$wxUSE_TEXTCTRL" = yes; then
9769 echo "$as_me:$LINENO: result: yes" >&5
9770echo "${ECHO_T}yes" >&6
9771 else
9772 echo "$as_me:$LINENO: result: no" >&5
9773echo "${ECHO_T}no" >&6
9774 fi
9775
9776
9777 enablestring=
9778 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-togglebtn" >&5
9779echo $ECHO_N "checking for --${enablestring:-enable}-togglebtn... $ECHO_C" >&6
9780 no_cache=0
9781 # Check whether --enable-togglebtn or --disable-togglebtn was given.
9782if test "${enable_togglebtn+set}" = set; then
9783 enableval="$enable_togglebtn"
9784
9785 if test "$enableval" = yes; then
9786 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=yes'
9787 else
9788 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=no'
9789 fi
9790
9791else
9792
9793 LINE=`grep "wxUSE_TOGGLEBTN" ${wx_arg_cache_file}`
9794 if test "x$LINE" != x ; then
9795 eval "DEFAULT_$LINE"
9796 else
9797 no_cache=1
9798 fi
9799
9800 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN='$DEFAULT_wxUSE_TOGGLEBTN
9801
9802fi;
9803
9804 eval "$ac_cv_use_togglebtn"
9805 if test "$no_cache" != 1; then
9806 echo $ac_cv_use_togglebtn >> ${wx_arg_cache_file}.tmp
9807 fi
9808
9809 if test "$wxUSE_TOGGLEBTN" = yes; then
9810 echo "$as_me:$LINENO: result: yes" >&5
9811echo "${ECHO_T}yes" >&6
9812 else
9813 echo "$as_me:$LINENO: result: no" >&5
9814echo "${ECHO_T}no" >&6
9815 fi
9816
9817
9818 enablestring=
9819 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-toolbar" >&5
9820echo $ECHO_N "checking for --${enablestring:-enable}-toolbar... $ECHO_C" >&6
9821 no_cache=0
9822 # Check whether --enable-toolbar or --disable-toolbar was given.
9823if test "${enable_toolbar+set}" = set; then
9824 enableval="$enable_toolbar"
9825
9826 if test "$enableval" = yes; then
9827 ac_cv_use_toolbar='wxUSE_TOOLBAR=yes'
9828 else
9829 ac_cv_use_toolbar='wxUSE_TOOLBAR=no'
9830 fi
9831
9832else
9833
9834 LINE=`grep "wxUSE_TOOLBAR" ${wx_arg_cache_file}`
9835 if test "x$LINE" != x ; then
9836 eval "DEFAULT_$LINE"
9837 else
9838 no_cache=1
9839 fi
9840
9841 ac_cv_use_toolbar='wxUSE_TOOLBAR='$DEFAULT_wxUSE_TOOLBAR
9842
9843fi;
9844
9845 eval "$ac_cv_use_toolbar"
9846 if test "$no_cache" != 1; then
9847 echo $ac_cv_use_toolbar >> ${wx_arg_cache_file}.tmp
9848 fi
9849
9850 if test "$wxUSE_TOOLBAR" = yes; then
9851 echo "$as_me:$LINENO: result: yes" >&5
9852echo "${ECHO_T}yes" >&6
9853 else
9854 echo "$as_me:$LINENO: result: no" >&5
9855echo "${ECHO_T}no" >&6
9856 fi
9857
9858
9859 enablestring=
9860 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tbarnative" >&5
9861echo $ECHO_N "checking for --${enablestring:-enable}-tbarnative... $ECHO_C" >&6
9862 no_cache=0
9863 # Check whether --enable-tbarnative or --disable-tbarnative was given.
9864if test "${enable_tbarnative+set}" = set; then
9865 enableval="$enable_tbarnative"
9866
9867 if test "$enableval" = yes; then
9868 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=yes'
9869 else
9870 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=no'
9871 fi
9872
9873else
9874
9875 LINE=`grep "wxUSE_TOOLBAR_NATIVE" ${wx_arg_cache_file}`
9876 if test "x$LINE" != x ; then
9877 eval "DEFAULT_$LINE"
9878 else
9879 no_cache=1
9880 fi
9881
9882 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE='$DEFAULT_wxUSE_TOOLBAR_NATIVE
9883
9884fi;
9885
9886 eval "$ac_cv_use_tbarnative"
9887 if test "$no_cache" != 1; then
9888 echo $ac_cv_use_tbarnative >> ${wx_arg_cache_file}.tmp
9889 fi
9890
9891 if test "$wxUSE_TOOLBAR_NATIVE" = yes; then
9892 echo "$as_me:$LINENO: result: yes" >&5
9893echo "${ECHO_T}yes" >&6
9894 else
9895 echo "$as_me:$LINENO: result: no" >&5
9896echo "${ECHO_T}no" >&6
9897 fi
9898
9899
0093c2fc
VZ
9900 enablestring=
9901 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-treebook" >&5
9902echo $ECHO_N "checking for --${enablestring:-enable}-treebook... $ECHO_C" >&6
9903 no_cache=0
9904 # Check whether --enable-treebook or --disable-treebook was given.
9905if test "${enable_treebook+set}" = set; then
9906 enableval="$enable_treebook"
9907
9908 if test "$enableval" = yes; then
9909 ac_cv_use_treebook='wxUSE_TREEBOOK=yes'
9910 else
9911 ac_cv_use_treebook='wxUSE_TREEBOOK=no'
9912 fi
9913
9914else
9915
9916 LINE=`grep "wxUSE_TREEBOOK" ${wx_arg_cache_file}`
9917 if test "x$LINE" != x ; then
9918 eval "DEFAULT_$LINE"
9919 else
9920 no_cache=1
9921 fi
9922
9923 ac_cv_use_treebook='wxUSE_TREEBOOK='$DEFAULT_wxUSE_TREEBOOK
9924
9925fi;
9926
9927 eval "$ac_cv_use_treebook"
9928 if test "$no_cache" != 1; then
9929 echo $ac_cv_use_treebook >> ${wx_arg_cache_file}.tmp
9930 fi
9931
9932 if test "$wxUSE_TREEBOOK" = yes; then
9933 echo "$as_me:$LINENO: result: yes" >&5
9934echo "${ECHO_T}yes" >&6
9935 else
9936 echo "$as_me:$LINENO: result: no" >&5
9937echo "${ECHO_T}no" >&6
9938 fi
9939
9940
5ec3bc43
JS
9941 enablestring=
9942 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-toolbook" >&5
9943echo $ECHO_N "checking for --${enablestring:-enable}-toolbook... $ECHO_C" >&6
9944 no_cache=0
9945 # Check whether --enable-toolbook or --disable-toolbook was given.
9946if test "${enable_toolbook+set}" = set; then
9947 enableval="$enable_toolbook"
9948
9949 if test "$enableval" = yes; then
9950 ac_cv_use_toolbook='wxUSE_TOOLBOOK=yes'
9951 else
9952 ac_cv_use_toolbook='wxUSE_TOOLBOOK=no'
9953 fi
9954
9955else
9956
9957 LINE=`grep "wxUSE_TOOLBOOK" ${wx_arg_cache_file}`
9958 if test "x$LINE" != x ; then
9959 eval "DEFAULT_$LINE"
9960 else
9961 no_cache=1
9962 fi
9963
9964 ac_cv_use_toolbook='wxUSE_TOOLBOOK='$DEFAULT_wxUSE_TOOLBOOK
9965
9966fi;
9967
9968 eval "$ac_cv_use_toolbook"
9969 if test "$no_cache" != 1; then
9970 echo $ac_cv_use_toolbook >> ${wx_arg_cache_file}.tmp
9971 fi
9972
9973 if test "$wxUSE_TOOLBOOK" = yes; then
9974 echo "$as_me:$LINENO: result: yes" >&5
9975echo "${ECHO_T}yes" >&6
9976 else
9977 echo "$as_me:$LINENO: result: no" >&5
9978echo "${ECHO_T}no" >&6
9979 fi
9980
9981
a848cd7e
SC
9982 enablestring=
9983 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-treectrl" >&5
9984echo $ECHO_N "checking for --${enablestring:-enable}-treectrl... $ECHO_C" >&6
9985 no_cache=0
9986 # Check whether --enable-treectrl or --disable-treectrl was given.
9987if test "${enable_treectrl+set}" = set; then
9988 enableval="$enable_treectrl"
9989
9990 if test "$enableval" = yes; then
9991 ac_cv_use_treectrl='wxUSE_TREECTRL=yes'
9992 else
9993 ac_cv_use_treectrl='wxUSE_TREECTRL=no'
9994 fi
9995
9996else
9997
9998 LINE=`grep "wxUSE_TREECTRL" ${wx_arg_cache_file}`
9999 if test "x$LINE" != x ; then
10000 eval "DEFAULT_$LINE"
10001 else
10002 no_cache=1
10003 fi
10004
10005 ac_cv_use_treectrl='wxUSE_TREECTRL='$DEFAULT_wxUSE_TREECTRL
10006
10007fi;
10008
10009 eval "$ac_cv_use_treectrl"
10010 if test "$no_cache" != 1; then
10011 echo $ac_cv_use_treectrl >> ${wx_arg_cache_file}.tmp
10012 fi
10013
10014 if test "$wxUSE_TREECTRL" = yes; then
10015 echo "$as_me:$LINENO: result: yes" >&5
10016echo "${ECHO_T}yes" >&6
10017 else
10018 echo "$as_me:$LINENO: result: no" >&5
10019echo "${ECHO_T}no" >&6
10020 fi
10021
10022
10023 enablestring=
10024 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tipwindow" >&5
10025echo $ECHO_N "checking for --${enablestring:-enable}-tipwindow... $ECHO_C" >&6
10026 no_cache=0
10027 # Check whether --enable-tipwindow or --disable-tipwindow was given.
10028if test "${enable_tipwindow+set}" = set; then
10029 enableval="$enable_tipwindow"
10030
10031 if test "$enableval" = yes; then
10032 ac_cv_use_tipwindow='wxUSE_TIPWINDOW=yes'
10033 else
10034 ac_cv_use_tipwindow='wxUSE_TIPWINDOW=no'
10035 fi
10036
10037else
10038
10039 LINE=`grep "wxUSE_TIPWINDOW" ${wx_arg_cache_file}`
10040 if test "x$LINE" != x ; then
10041 eval "DEFAULT_$LINE"
10042 else
10043 no_cache=1
10044 fi
10045
10046 ac_cv_use_tipwindow='wxUSE_TIPWINDOW='$DEFAULT_wxUSE_TIPWINDOW
10047
10048fi;
10049
10050 eval "$ac_cv_use_tipwindow"
10051 if test "$no_cache" != 1; then
10052 echo $ac_cv_use_tipwindow >> ${wx_arg_cache_file}.tmp
10053 fi
10054
10055 if test "$wxUSE_TIPWINDOW" = yes; then
10056 echo "$as_me:$LINENO: result: yes" >&5
10057echo "${ECHO_T}yes" >&6
10058 else
10059 echo "$as_me:$LINENO: result: no" >&5
10060echo "${ECHO_T}no" >&6
10061 fi
10062
10063
10064 enablestring=
10065 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-popupwin" >&5
10066echo $ECHO_N "checking for --${enablestring:-enable}-popupwin... $ECHO_C" >&6
10067 no_cache=0
10068 # Check whether --enable-popupwin or --disable-popupwin was given.
10069if test "${enable_popupwin+set}" = set; then
10070 enableval="$enable_popupwin"
10071
10072 if test "$enableval" = yes; then
10073 ac_cv_use_popupwin='wxUSE_POPUPWIN=yes'
10074 else
10075 ac_cv_use_popupwin='wxUSE_POPUPWIN=no'
10076 fi
10077
10078else
10079
10080 LINE=`grep "wxUSE_POPUPWIN" ${wx_arg_cache_file}`
10081 if test "x$LINE" != x ; then
10082 eval "DEFAULT_$LINE"
10083 else
10084 no_cache=1
10085 fi
10086
10087 ac_cv_use_popupwin='wxUSE_POPUPWIN='$DEFAULT_wxUSE_POPUPWIN
10088
10089fi;
10090
10091 eval "$ac_cv_use_popupwin"
10092 if test "$no_cache" != 1; then
10093 echo $ac_cv_use_popupwin >> ${wx_arg_cache_file}.tmp
10094 fi
10095
10096 if test "$wxUSE_POPUPWIN" = yes; then
10097 echo "$as_me:$LINENO: result: yes" >&5
10098echo "${ECHO_T}yes" >&6
10099 else
10100 echo "$as_me:$LINENO: result: no" >&5
10101echo "${ECHO_T}no" >&6
10102 fi
10103
10104
10105
10106
10107 enablestring=
10108 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-commondlg" >&5
10109echo $ECHO_N "checking for --${enablestring:-enable}-commondlg... $ECHO_C" >&6
10110 no_cache=0
10111 # Check whether --enable-commondlg or --disable-commondlg was given.
10112if test "${enable_commondlg+set}" = set; then
10113 enableval="$enable_commondlg"
10114
10115 if test "$enableval" = yes; then
10116 ac_cv_use_commondlg='wxUSE_COMMONDLGS=yes'
10117 else
10118 ac_cv_use_commondlg='wxUSE_COMMONDLGS=no'
10119 fi
10120
10121else
10122
10123 LINE=`grep "wxUSE_COMMONDLGS" ${wx_arg_cache_file}`
10124 if test "x$LINE" != x ; then
10125 eval "DEFAULT_$LINE"
10126 else
10127 no_cache=1
10128 fi
10129
10130 ac_cv_use_commondlg='wxUSE_COMMONDLGS='$DEFAULT_wxUSE_COMMONDLGS
10131
10132fi;
10133
10134 eval "$ac_cv_use_commondlg"
10135 if test "$no_cache" != 1; then
10136 echo $ac_cv_use_commondlg >> ${wx_arg_cache_file}.tmp
10137 fi
10138
10139 if test "$wxUSE_COMMONDLGS" = yes; then
10140 echo "$as_me:$LINENO: result: yes" >&5
10141echo "${ECHO_T}yes" >&6
10142 else
10143 echo "$as_me:$LINENO: result: no" >&5
10144echo "${ECHO_T}no" >&6
10145 fi
10146
10147
319c5ed4
VZ
10148 enablestring=
10149 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-aboutdlg" >&5
10150echo $ECHO_N "checking for --${enablestring:-enable}-aboutdlg... $ECHO_C" >&6
10151 no_cache=0
10152 # Check whether --enable-aboutdlg or --disable-aboutdlg was given.
10153if test "${enable_aboutdlg+set}" = set; then
10154 enableval="$enable_aboutdlg"
10155
10156 if test "$enableval" = yes; then
10157 ac_cv_use_aboutdlg='wxUSE_ABOUTDLG=yes'
10158 else
10159 ac_cv_use_aboutdlg='wxUSE_ABOUTDLG=no'
10160 fi
10161
10162else
10163
10164 LINE=`grep "wxUSE_ABOUTDLG" ${wx_arg_cache_file}`
10165 if test "x$LINE" != x ; then
10166 eval "DEFAULT_$LINE"
10167 else
10168 no_cache=1
10169 fi
10170
10171 ac_cv_use_aboutdlg='wxUSE_ABOUTDLG='$DEFAULT_wxUSE_ABOUTDLG
10172
10173fi;
10174
10175 eval "$ac_cv_use_aboutdlg"
10176 if test "$no_cache" != 1; then
10177 echo $ac_cv_use_aboutdlg >> ${wx_arg_cache_file}.tmp
10178 fi
10179
10180 if test "$wxUSE_ABOUTDLG" = yes; then
10181 echo "$as_me:$LINENO: result: yes" >&5
10182echo "${ECHO_T}yes" >&6
10183 else
10184 echo "$as_me:$LINENO: result: no" >&5
10185echo "${ECHO_T}no" >&6
10186 fi
10187
10188
a848cd7e
SC
10189 enablestring=
10190 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choicedlg" >&5
10191echo $ECHO_N "checking for --${enablestring:-enable}-choicedlg... $ECHO_C" >&6
10192 no_cache=0
10193 # Check whether --enable-choicedlg or --disable-choicedlg was given.
10194if test "${enable_choicedlg+set}" = set; then
10195 enableval="$enable_choicedlg"
10196
10197 if test "$enableval" = yes; then
10198 ac_cv_use_choicedlg='wxUSE_CHOICEDLG=yes'
10199 else
10200 ac_cv_use_choicedlg='wxUSE_CHOICEDLG=no'
10201 fi
10202
10203else
10204
10205 LINE=`grep "wxUSE_CHOICEDLG" ${wx_arg_cache_file}`
10206 if test "x$LINE" != x ; then
10207 eval "DEFAULT_$LINE"
10208 else
10209 no_cache=1
10210 fi
10211
10212 ac_cv_use_choicedlg='wxUSE_CHOICEDLG='$DEFAULT_wxUSE_CHOICEDLG
10213
10214fi;
10215
10216 eval "$ac_cv_use_choicedlg"
10217 if test "$no_cache" != 1; then
10218 echo $ac_cv_use_choicedlg >> ${wx_arg_cache_file}.tmp
10219 fi
10220
10221 if test "$wxUSE_CHOICEDLG" = yes; then
10222 echo "$as_me:$LINENO: result: yes" >&5
10223echo "${ECHO_T}yes" >&6
10224 else
10225 echo "$as_me:$LINENO: result: no" >&5
10226echo "${ECHO_T}no" >&6
10227 fi
10228
10229
10230 enablestring=
10231 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-coldlg" >&5
10232echo $ECHO_N "checking for --${enablestring:-enable}-coldlg... $ECHO_C" >&6
10233 no_cache=0
10234 # Check whether --enable-coldlg or --disable-coldlg was given.
10235if test "${enable_coldlg+set}" = set; then
10236 enableval="$enable_coldlg"
10237
10238 if test "$enableval" = yes; then
10239 ac_cv_use_coldlg='wxUSE_COLOURDLG=yes'
10240 else
10241 ac_cv_use_coldlg='wxUSE_COLOURDLG=no'
10242 fi
10243
10244else
10245
10246 LINE=`grep "wxUSE_COLOURDLG" ${wx_arg_cache_file}`
10247 if test "x$LINE" != x ; then
10248 eval "DEFAULT_$LINE"
10249 else
10250 no_cache=1
10251 fi
10252
10253 ac_cv_use_coldlg='wxUSE_COLOURDLG='$DEFAULT_wxUSE_COLOURDLG
10254
10255fi;
10256
10257 eval "$ac_cv_use_coldlg"
10258 if test "$no_cache" != 1; then
10259 echo $ac_cv_use_coldlg >> ${wx_arg_cache_file}.tmp
10260 fi
10261
10262 if test "$wxUSE_COLOURDLG" = yes; then
10263 echo "$as_me:$LINENO: result: yes" >&5
10264echo "${ECHO_T}yes" >&6
10265 else
10266 echo "$as_me:$LINENO: result: no" >&5
10267echo "${ECHO_T}no" >&6
10268 fi
10269
10270
10271 enablestring=
10272 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-filedlg" >&5
10273echo $ECHO_N "checking for --${enablestring:-enable}-filedlg... $ECHO_C" >&6
10274 no_cache=0
10275 # Check whether --enable-filedlg or --disable-filedlg was given.
10276if test "${enable_filedlg+set}" = set; then
10277 enableval="$enable_filedlg"
10278
10279 if test "$enableval" = yes; then
10280 ac_cv_use_filedlg='wxUSE_FILEDLG=yes'
10281 else
10282 ac_cv_use_filedlg='wxUSE_FILEDLG=no'
10283 fi
10284
10285else
10286
10287 LINE=`grep "wxUSE_FILEDLG" ${wx_arg_cache_file}`
10288 if test "x$LINE" != x ; then
10289 eval "DEFAULT_$LINE"
10290 else
10291 no_cache=1
10292 fi
10293
10294 ac_cv_use_filedlg='wxUSE_FILEDLG='$DEFAULT_wxUSE_FILEDLG
10295
10296fi;
10297
10298 eval "$ac_cv_use_filedlg"
10299 if test "$no_cache" != 1; then
10300 echo $ac_cv_use_filedlg >> ${wx_arg_cache_file}.tmp
10301 fi
10302
10303 if test "$wxUSE_FILEDLG" = yes; then
10304 echo "$as_me:$LINENO: result: yes" >&5
10305echo "${ECHO_T}yes" >&6
10306 else
10307 echo "$as_me:$LINENO: result: no" >&5
10308echo "${ECHO_T}no" >&6
10309 fi
10310
10311
10312 enablestring=
10313 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-finddlg" >&5
10314echo $ECHO_N "checking for --${enablestring:-enable}-finddlg... $ECHO_C" >&6
10315 no_cache=0
10316 # Check whether --enable-finddlg or --disable-finddlg was given.
10317if test "${enable_finddlg+set}" = set; then
10318 enableval="$enable_finddlg"
10319
10320 if test "$enableval" = yes; then
10321 ac_cv_use_finddlg='wxUSE_FINDREPLDLG=yes'
10322 else
10323 ac_cv_use_finddlg='wxUSE_FINDREPLDLG=no'
10324 fi
10325
10326else
10327
10328 LINE=`grep "wxUSE_FINDREPLDLG" ${wx_arg_cache_file}`
10329 if test "x$LINE" != x ; then
10330 eval "DEFAULT_$LINE"
10331 else
10332 no_cache=1
10333 fi
10334
10335 ac_cv_use_finddlg='wxUSE_FINDREPLDLG='$DEFAULT_wxUSE_FINDREPLDLG
10336
10337fi;
10338
10339 eval "$ac_cv_use_finddlg"
10340 if test "$no_cache" != 1; then
10341 echo $ac_cv_use_finddlg >> ${wx_arg_cache_file}.tmp
10342 fi
10343
10344 if test "$wxUSE_FINDREPLDLG" = yes; then
10345 echo "$as_me:$LINENO: result: yes" >&5
10346echo "${ECHO_T}yes" >&6
10347 else
10348 echo "$as_me:$LINENO: result: no" >&5
10349echo "${ECHO_T}no" >&6
10350 fi
10351
10352
10353 enablestring=
10354 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fontdlg" >&5
10355echo $ECHO_N "checking for --${enablestring:-enable}-fontdlg... $ECHO_C" >&6
10356 no_cache=0
10357 # Check whether --enable-fontdlg or --disable-fontdlg was given.
10358if test "${enable_fontdlg+set}" = set; then
10359 enableval="$enable_fontdlg"
10360
10361 if test "$enableval" = yes; then
10362 ac_cv_use_fontdlg='wxUSE_FONTDLG=yes'
10363 else
10364 ac_cv_use_fontdlg='wxUSE_FONTDLG=no'
10365 fi
10366
10367else
10368
10369 LINE=`grep "wxUSE_FONTDLG" ${wx_arg_cache_file}`
10370 if test "x$LINE" != x ; then
10371 eval "DEFAULT_$LINE"
10372 else
10373 no_cache=1
10374 fi
10375
10376 ac_cv_use_fontdlg='wxUSE_FONTDLG='$DEFAULT_wxUSE_FONTDLG
10377
10378fi;
10379
10380 eval "$ac_cv_use_fontdlg"
10381 if test "$no_cache" != 1; then
10382 echo $ac_cv_use_fontdlg >> ${wx_arg_cache_file}.tmp
10383 fi
10384
10385 if test "$wxUSE_FONTDLG" = yes; then
10386 echo "$as_me:$LINENO: result: yes" >&5
10387echo "${ECHO_T}yes" >&6
10388 else
10389 echo "$as_me:$LINENO: result: no" >&5
10390echo "${ECHO_T}no" >&6
10391 fi
10392
10393
10394 enablestring=
10395 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dirdlg" >&5
10396echo $ECHO_N "checking for --${enablestring:-enable}-dirdlg... $ECHO_C" >&6
10397 no_cache=0
10398 # Check whether --enable-dirdlg or --disable-dirdlg was given.
10399if test "${enable_dirdlg+set}" = set; then
10400 enableval="$enable_dirdlg"
10401
10402 if test "$enableval" = yes; then
10403 ac_cv_use_dirdlg='wxUSE_DIRDLG=yes'
10404 else
10405 ac_cv_use_dirdlg='wxUSE_DIRDLG=no'
10406 fi
10407
10408else
10409
10410 LINE=`grep "wxUSE_DIRDLG" ${wx_arg_cache_file}`
10411 if test "x$LINE" != x ; then
10412 eval "DEFAULT_$LINE"
10413 else
10414 no_cache=1
10415 fi
10416
10417 ac_cv_use_dirdlg='wxUSE_DIRDLG='$DEFAULT_wxUSE_DIRDLG
10418
10419fi;
10420
10421 eval "$ac_cv_use_dirdlg"
10422 if test "$no_cache" != 1; then
10423 echo $ac_cv_use_dirdlg >> ${wx_arg_cache_file}.tmp
10424 fi
10425
10426 if test "$wxUSE_DIRDLG" = yes; then
10427 echo "$as_me:$LINENO: result: yes" >&5
10428echo "${ECHO_T}yes" >&6
10429 else
10430 echo "$as_me:$LINENO: result: no" >&5
10431echo "${ECHO_T}no" >&6
10432 fi
10433
10434
10435 enablestring=
10436 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-msgdlg" >&5
10437echo $ECHO_N "checking for --${enablestring:-enable}-msgdlg... $ECHO_C" >&6
10438 no_cache=0
10439 # Check whether --enable-msgdlg or --disable-msgdlg was given.
10440if test "${enable_msgdlg+set}" = set; then
10441 enableval="$enable_msgdlg"
10442
10443 if test "$enableval" = yes; then
10444 ac_cv_use_msgdlg='wxUSE_MSGDLG=yes'
10445 else
10446 ac_cv_use_msgdlg='wxUSE_MSGDLG=no'
10447 fi
10448
10449else
10450
10451 LINE=`grep "wxUSE_MSGDLG" ${wx_arg_cache_file}`
10452 if test "x$LINE" != x ; then
10453 eval "DEFAULT_$LINE"
10454 else
10455 no_cache=1
10456 fi
10457
10458 ac_cv_use_msgdlg='wxUSE_MSGDLG='$DEFAULT_wxUSE_MSGDLG
10459
10460fi;
10461
10462 eval "$ac_cv_use_msgdlg"
10463 if test "$no_cache" != 1; then
10464 echo $ac_cv_use_msgdlg >> ${wx_arg_cache_file}.tmp
10465 fi
10466
10467 if test "$wxUSE_MSGDLG" = yes; then
10468 echo "$as_me:$LINENO: result: yes" >&5
10469echo "${ECHO_T}yes" >&6
10470 else
10471 echo "$as_me:$LINENO: result: no" >&5
10472echo "${ECHO_T}no" >&6
10473 fi
10474
10475
10476 enablestring=
10477 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-numberdlg" >&5
10478echo $ECHO_N "checking for --${enablestring:-enable}-numberdlg... $ECHO_C" >&6
10479 no_cache=0
10480 # Check whether --enable-numberdlg or --disable-numberdlg was given.
10481if test "${enable_numberdlg+set}" = set; then
10482 enableval="$enable_numberdlg"
10483
10484 if test "$enableval" = yes; then
10485 ac_cv_use_numberdlg='wxUSE_NUMBERDLG=yes'
10486 else
10487 ac_cv_use_numberdlg='wxUSE_NUMBERDLG=no'
10488 fi
10489
10490else
10491
10492 LINE=`grep "wxUSE_NUMBERDLG" ${wx_arg_cache_file}`
10493 if test "x$LINE" != x ; then
10494 eval "DEFAULT_$LINE"
10495 else
10496 no_cache=1
10497 fi
10498
10499 ac_cv_use_numberdlg='wxUSE_NUMBERDLG='$DEFAULT_wxUSE_NUMBERDLG
10500
10501fi;
10502
10503 eval "$ac_cv_use_numberdlg"
10504 if test "$no_cache" != 1; then
10505 echo $ac_cv_use_numberdlg >> ${wx_arg_cache_file}.tmp
10506 fi
10507
10508 if test "$wxUSE_NUMBERDLG" = yes; then
10509 echo "$as_me:$LINENO: result: yes" >&5
10510echo "${ECHO_T}yes" >&6
10511 else
10512 echo "$as_me:$LINENO: result: no" >&5
10513echo "${ECHO_T}no" >&6
10514 fi
10515
10516
10517 enablestring=
10518 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splash" >&5
10519echo $ECHO_N "checking for --${enablestring:-enable}-splash... $ECHO_C" >&6
10520 no_cache=0
10521 # Check whether --enable-splash or --disable-splash was given.
10522if test "${enable_splash+set}" = set; then
10523 enableval="$enable_splash"
10524
10525 if test "$enableval" = yes; then
10526 ac_cv_use_splash='wxUSE_SPLASH=yes'
10527 else
10528 ac_cv_use_splash='wxUSE_SPLASH=no'
10529 fi
10530
10531else
10532
10533 LINE=`grep "wxUSE_SPLASH" ${wx_arg_cache_file}`
10534 if test "x$LINE" != x ; then
10535 eval "DEFAULT_$LINE"
10536 else
10537 no_cache=1
10538 fi
10539
10540 ac_cv_use_splash='wxUSE_SPLASH='$DEFAULT_wxUSE_SPLASH
10541
10542fi;
10543
10544 eval "$ac_cv_use_splash"
10545 if test "$no_cache" != 1; then
10546 echo $ac_cv_use_splash >> ${wx_arg_cache_file}.tmp
10547 fi
10548
10549 if test "$wxUSE_SPLASH" = yes; then
10550 echo "$as_me:$LINENO: result: yes" >&5
10551echo "${ECHO_T}yes" >&6
10552 else
10553 echo "$as_me:$LINENO: result: no" >&5
10554echo "${ECHO_T}no" >&6
10555 fi
10556
10557
10558 enablestring=
10559 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textdlg" >&5
10560echo $ECHO_N "checking for --${enablestring:-enable}-textdlg... $ECHO_C" >&6
10561 no_cache=0
10562 # Check whether --enable-textdlg or --disable-textdlg was given.
10563if test "${enable_textdlg+set}" = set; then
10564 enableval="$enable_textdlg"
10565
10566 if test "$enableval" = yes; then
10567 ac_cv_use_textdlg='wxUSE_TEXTDLG=yes'
10568 else
10569 ac_cv_use_textdlg='wxUSE_TEXTDLG=no'
10570 fi
10571
10572else
10573
10574 LINE=`grep "wxUSE_TEXTDLG" ${wx_arg_cache_file}`
10575 if test "x$LINE" != x ; then
10576 eval "DEFAULT_$LINE"
10577 else
10578 no_cache=1
10579 fi
10580
10581 ac_cv_use_textdlg='wxUSE_TEXTDLG='$DEFAULT_wxUSE_TEXTDLG
10582
10583fi;
10584
10585 eval "$ac_cv_use_textdlg"
10586 if test "$no_cache" != 1; then
10587 echo $ac_cv_use_textdlg >> ${wx_arg_cache_file}.tmp
10588 fi
10589
10590 if test "$wxUSE_TEXTDLG" = yes; then
10591 echo "$as_me:$LINENO: result: yes" >&5
10592echo "${ECHO_T}yes" >&6
10593 else
10594 echo "$as_me:$LINENO: result: no" >&5
10595echo "${ECHO_T}no" >&6
10596 fi
10597
10598
10599 enablestring=
10600 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tipdlg" >&5
10601echo $ECHO_N "checking for --${enablestring:-enable}-tipdlg... $ECHO_C" >&6
10602 no_cache=0
10603 # Check whether --enable-tipdlg or --disable-tipdlg was given.
10604if test "${enable_tipdlg+set}" = set; then
10605 enableval="$enable_tipdlg"
10606
10607 if test "$enableval" = yes; then
10608 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=yes'
10609 else
10610 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=no'
10611 fi
10612
10613else
10614
10615 LINE=`grep "wxUSE_STARTUP_TIPS" ${wx_arg_cache_file}`
10616 if test "x$LINE" != x ; then
10617 eval "DEFAULT_$LINE"
10618 else
10619 no_cache=1
10620 fi
10621
10622 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS='$DEFAULT_wxUSE_STARTUP_TIPS
10623
10624fi;
10625
10626 eval "$ac_cv_use_tipdlg"
10627 if test "$no_cache" != 1; then
10628 echo $ac_cv_use_tipdlg >> ${wx_arg_cache_file}.tmp
10629 fi
10630
10631 if test "$wxUSE_STARTUP_TIPS" = yes; then
10632 echo "$as_me:$LINENO: result: yes" >&5
10633echo "${ECHO_T}yes" >&6
10634 else
10635 echo "$as_me:$LINENO: result: no" >&5
10636echo "${ECHO_T}no" >&6
10637 fi
10638
10639
10640 enablestring=
10641 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-progressdlg" >&5
10642echo $ECHO_N "checking for --${enablestring:-enable}-progressdlg... $ECHO_C" >&6
10643 no_cache=0
10644 # Check whether --enable-progressdlg or --disable-progressdlg was given.
10645if test "${enable_progressdlg+set}" = set; then
10646 enableval="$enable_progressdlg"
10647
10648 if test "$enableval" = yes; then
10649 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=yes'
10650 else
10651 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=no'
10652 fi
10653
10654else
10655
10656 LINE=`grep "wxUSE_PROGRESSDLG" ${wx_arg_cache_file}`
10657 if test "x$LINE" != x ; then
10658 eval "DEFAULT_$LINE"
10659 else
10660 no_cache=1
10661 fi
10662
10663 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG='$DEFAULT_wxUSE_PROGRESSDLG
10664
10665fi;
10666
10667 eval "$ac_cv_use_progressdlg"
10668 if test "$no_cache" != 1; then
10669 echo $ac_cv_use_progressdlg >> ${wx_arg_cache_file}.tmp
10670 fi
10671
10672 if test "$wxUSE_PROGRESSDLG" = yes; then
10673 echo "$as_me:$LINENO: result: yes" >&5
10674echo "${ECHO_T}yes" >&6
10675 else
10676 echo "$as_me:$LINENO: result: no" >&5
10677echo "${ECHO_T}no" >&6
10678 fi
10679
10680
10681 enablestring=
10682 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-wizarddlg" >&5
10683echo $ECHO_N "checking for --${enablestring:-enable}-wizarddlg... $ECHO_C" >&6
10684 no_cache=0
10685 # Check whether --enable-wizarddlg or --disable-wizarddlg was given.
10686if test "${enable_wizarddlg+set}" = set; then
10687 enableval="$enable_wizarddlg"
10688
10689 if test "$enableval" = yes; then
10690 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=yes'
10691 else
10692 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=no'
10693 fi
10694
10695else
10696
10697 LINE=`grep "wxUSE_WIZARDDLG" ${wx_arg_cache_file}`
10698 if test "x$LINE" != x ; then
10699 eval "DEFAULT_$LINE"
10700 else
10701 no_cache=1
10702 fi
10703
10704 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG='$DEFAULT_wxUSE_WIZARDDLG
10705
10706fi;
10707
10708 eval "$ac_cv_use_wizarddlg"
10709 if test "$no_cache" != 1; then
10710 echo $ac_cv_use_wizarddlg >> ${wx_arg_cache_file}.tmp
10711 fi
10712
10713 if test "$wxUSE_WIZARDDLG" = yes; then
10714 echo "$as_me:$LINENO: result: yes" >&5
10715echo "${ECHO_T}yes" >&6
10716 else
10717 echo "$as_me:$LINENO: result: no" >&5
10718echo "${ECHO_T}no" >&6
10719 fi
10720
10721
10722
10723
10724 enablestring=
10725 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-menus" >&5
10726echo $ECHO_N "checking for --${enablestring:-enable}-menus... $ECHO_C" >&6
10727 no_cache=0
10728 # Check whether --enable-menus or --disable-menus was given.
10729if test "${enable_menus+set}" = set; then
10730 enableval="$enable_menus"
10731
10732 if test "$enableval" = yes; then
10733 ac_cv_use_menus='wxUSE_MENUS=yes'
10734 else
10735 ac_cv_use_menus='wxUSE_MENUS=no'
10736 fi
10737
10738else
10739
10740 LINE=`grep "wxUSE_MENUS" ${wx_arg_cache_file}`
10741 if test "x$LINE" != x ; then
10742 eval "DEFAULT_$LINE"
10743 else
10744 no_cache=1
10745 fi
10746
10747 ac_cv_use_menus='wxUSE_MENUS='$DEFAULT_wxUSE_MENUS
10748
10749fi;
10750
10751 eval "$ac_cv_use_menus"
10752 if test "$no_cache" != 1; then
10753 echo $ac_cv_use_menus >> ${wx_arg_cache_file}.tmp
10754 fi
10755
10756 if test "$wxUSE_MENUS" = yes; then
10757 echo "$as_me:$LINENO: result: yes" >&5
10758echo "${ECHO_T}yes" >&6
10759 else
10760 echo "$as_me:$LINENO: result: no" >&5
10761echo "${ECHO_T}no" >&6
10762 fi
10763
10764
10765 enablestring=
10766 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-miniframe" >&5
10767echo $ECHO_N "checking for --${enablestring:-enable}-miniframe... $ECHO_C" >&6
10768 no_cache=0
10769 # Check whether --enable-miniframe or --disable-miniframe was given.
10770if test "${enable_miniframe+set}" = set; then
10771 enableval="$enable_miniframe"
10772
10773 if test "$enableval" = yes; then
10774 ac_cv_use_miniframe='wxUSE_MINIFRAME=yes'
10775 else
10776 ac_cv_use_miniframe='wxUSE_MINIFRAME=no'
10777 fi
10778
10779else
10780
10781 LINE=`grep "wxUSE_MINIFRAME" ${wx_arg_cache_file}`
10782 if test "x$LINE" != x ; then
10783 eval "DEFAULT_$LINE"
10784 else
10785 no_cache=1
10786 fi
10787
10788 ac_cv_use_miniframe='wxUSE_MINIFRAME='$DEFAULT_wxUSE_MINIFRAME
10789
10790fi;
10791
10792 eval "$ac_cv_use_miniframe"
10793 if test "$no_cache" != 1; then
10794 echo $ac_cv_use_miniframe >> ${wx_arg_cache_file}.tmp
10795 fi
10796
10797 if test "$wxUSE_MINIFRAME" = yes; then
10798 echo "$as_me:$LINENO: result: yes" >&5
10799echo "${ECHO_T}yes" >&6
10800 else
10801 echo "$as_me:$LINENO: result: no" >&5
10802echo "${ECHO_T}no" >&6
10803 fi
10804
10805
10806 enablestring=
10807 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tooltips" >&5
10808echo $ECHO_N "checking for --${enablestring:-enable}-tooltips... $ECHO_C" >&6
10809 no_cache=0
10810 # Check whether --enable-tooltips or --disable-tooltips was given.
10811if test "${enable_tooltips+set}" = set; then
10812 enableval="$enable_tooltips"
10813
10814 if test "$enableval" = yes; then
10815 ac_cv_use_tooltips='wxUSE_TOOLTIPS=yes'
10816 else
10817 ac_cv_use_tooltips='wxUSE_TOOLTIPS=no'
10818 fi
10819
10820else
10821
10822 LINE=`grep "wxUSE_TOOLTIPS" ${wx_arg_cache_file}`
10823 if test "x$LINE" != x ; then
10824 eval "DEFAULT_$LINE"
10825 else
10826 no_cache=1
10827 fi
10828
10829 ac_cv_use_tooltips='wxUSE_TOOLTIPS='$DEFAULT_wxUSE_TOOLTIPS
10830
10831fi;
10832
10833 eval "$ac_cv_use_tooltips"
10834 if test "$no_cache" != 1; then
10835 echo $ac_cv_use_tooltips >> ${wx_arg_cache_file}.tmp
10836 fi
10837
10838 if test "$wxUSE_TOOLTIPS" = yes; then
10839 echo "$as_me:$LINENO: result: yes" >&5
10840echo "${ECHO_T}yes" >&6
10841 else
10842 echo "$as_me:$LINENO: result: no" >&5
10843echo "${ECHO_T}no" >&6
10844 fi
10845
10846
10847 enablestring=
10848 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splines" >&5
10849echo $ECHO_N "checking for --${enablestring:-enable}-splines... $ECHO_C" >&6
10850 no_cache=0
10851 # Check whether --enable-splines or --disable-splines was given.
10852if test "${enable_splines+set}" = set; then
10853 enableval="$enable_splines"
10854
10855 if test "$enableval" = yes; then
10856 ac_cv_use_splines='wxUSE_SPLINES=yes'
10857 else
10858 ac_cv_use_splines='wxUSE_SPLINES=no'
10859 fi
10860
10861else
10862
10863 LINE=`grep "wxUSE_SPLINES" ${wx_arg_cache_file}`
10864 if test "x$LINE" != x ; then
10865 eval "DEFAULT_$LINE"
10866 else
10867 no_cache=1
10868 fi
10869
10870 ac_cv_use_splines='wxUSE_SPLINES='$DEFAULT_wxUSE_SPLINES
10871
10872fi;
10873
10874 eval "$ac_cv_use_splines"
10875 if test "$no_cache" != 1; then
10876 echo $ac_cv_use_splines >> ${wx_arg_cache_file}.tmp
10877 fi
10878
10879 if test "$wxUSE_SPLINES" = yes; then
10880 echo "$as_me:$LINENO: result: yes" >&5
10881echo "${ECHO_T}yes" >&6
10882 else
10883 echo "$as_me:$LINENO: result: no" >&5
10884echo "${ECHO_T}no" >&6
10885 fi
10886
10887
fbe2ca43
SN
10888 enablestring=
10889 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mousewheel" >&5
10890echo $ECHO_N "checking for --${enablestring:-enable}-mousewheel... $ECHO_C" >&6
10891 no_cache=0
10892 # Check whether --enable-mousewheel or --disable-mousewheel was given.
10893if test "${enable_mousewheel+set}" = set; then
10894 enableval="$enable_mousewheel"
10895
10896 if test "$enableval" = yes; then
10897 ac_cv_use_mousewheel='wxUSE_MOUSEWHEEL=yes'
10898 else
10899 ac_cv_use_mousewheel='wxUSE_MOUSEWHEEL=no'
10900 fi
10901
10902else
10903
10904 LINE=`grep "wxUSE_MOUSEWHEEL" ${wx_arg_cache_file}`
10905 if test "x$LINE" != x ; then
10906 eval "DEFAULT_$LINE"
10907 else
10908 no_cache=1
10909 fi
10910
10911 ac_cv_use_mousewheel='wxUSE_MOUSEWHEEL='$DEFAULT_wxUSE_MOUSEWHEEL
10912
10913fi;
10914
10915 eval "$ac_cv_use_mousewheel"
10916 if test "$no_cache" != 1; then
10917 echo $ac_cv_use_mousewheel >> ${wx_arg_cache_file}.tmp
10918 fi
10919
10920 if test "$wxUSE_MOUSEWHEEL" = yes; then
10921 echo "$as_me:$LINENO: result: yes" >&5
10922echo "${ECHO_T}yes" >&6
10923 else
10924 echo "$as_me:$LINENO: result: no" >&5
10925echo "${ECHO_T}no" >&6
10926 fi
10927
10928
a848cd7e
SC
10929 enablestring=
10930 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-validators" >&5
10931echo $ECHO_N "checking for --${enablestring:-enable}-validators... $ECHO_C" >&6
10932 no_cache=0
10933 # Check whether --enable-validators or --disable-validators was given.
10934if test "${enable_validators+set}" = set; then
10935 enableval="$enable_validators"
10936
10937 if test "$enableval" = yes; then
10938 ac_cv_use_validators='wxUSE_VALIDATORS=yes'
10939 else
10940 ac_cv_use_validators='wxUSE_VALIDATORS=no'
10941 fi
10942
10943else
10944
10945 LINE=`grep "wxUSE_VALIDATORS" ${wx_arg_cache_file}`
10946 if test "x$LINE" != x ; then
10947 eval "DEFAULT_$LINE"
10948 else
10949 no_cache=1
10950 fi
10951
10952 ac_cv_use_validators='wxUSE_VALIDATORS='$DEFAULT_wxUSE_VALIDATORS
10953
10954fi;
10955
10956 eval "$ac_cv_use_validators"
10957 if test "$no_cache" != 1; then
10958 echo $ac_cv_use_validators >> ${wx_arg_cache_file}.tmp
10959 fi
10960
10961 if test "$wxUSE_VALIDATORS" = yes; then
10962 echo "$as_me:$LINENO: result: yes" >&5
10963echo "${ECHO_T}yes" >&6
10964 else
10965 echo "$as_me:$LINENO: result: no" >&5
10966echo "${ECHO_T}no" >&6
10967 fi
10968
10969
10970 enablestring=
10971 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-busyinfo" >&5
10972echo $ECHO_N "checking for --${enablestring:-enable}-busyinfo... $ECHO_C" >&6
10973 no_cache=0
10974 # Check whether --enable-busyinfo or --disable-busyinfo was given.
10975if test "${enable_busyinfo+set}" = set; then
10976 enableval="$enable_busyinfo"
10977
10978 if test "$enableval" = yes; then
10979 ac_cv_use_busyinfo='wxUSE_BUSYINFO=yes'
10980 else
10981 ac_cv_use_busyinfo='wxUSE_BUSYINFO=no'
10982 fi
10983
10984else
10985
10986 LINE=`grep "wxUSE_BUSYINFO" ${wx_arg_cache_file}`
10987 if test "x$LINE" != x ; then
10988 eval "DEFAULT_$LINE"
10989 else
10990 no_cache=1
10991 fi
10992
10993 ac_cv_use_busyinfo='wxUSE_BUSYINFO='$DEFAULT_wxUSE_BUSYINFO
10994
10995fi;
10996
10997 eval "$ac_cv_use_busyinfo"
10998 if test "$no_cache" != 1; then
10999 echo $ac_cv_use_busyinfo >> ${wx_arg_cache_file}.tmp
11000 fi
11001
11002 if test "$wxUSE_BUSYINFO" = yes; then
11003 echo "$as_me:$LINENO: result: yes" >&5
11004echo "${ECHO_T}yes" >&6
11005 else
11006 echo "$as_me:$LINENO: result: no" >&5
11007echo "${ECHO_T}no" >&6
11008 fi
11009
11010
11011 enablestring=
11012 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-joystick" >&5
11013echo $ECHO_N "checking for --${enablestring:-enable}-joystick... $ECHO_C" >&6
11014 no_cache=0
11015 # Check whether --enable-joystick or --disable-joystick was given.
11016if test "${enable_joystick+set}" = set; then
11017 enableval="$enable_joystick"
11018
11019 if test "$enableval" = yes; then
11020 ac_cv_use_joystick='wxUSE_JOYSTICK=yes'
11021 else
11022 ac_cv_use_joystick='wxUSE_JOYSTICK=no'
11023 fi
11024
11025else
11026
11027 LINE=`grep "wxUSE_JOYSTICK" ${wx_arg_cache_file}`
11028 if test "x$LINE" != x ; then
11029 eval "DEFAULT_$LINE"
11030 else
11031 no_cache=1
11032 fi
11033
11034 ac_cv_use_joystick='wxUSE_JOYSTICK='$DEFAULT_wxUSE_JOYSTICK
11035
11036fi;
11037
11038 eval "$ac_cv_use_joystick"
11039 if test "$no_cache" != 1; then
11040 echo $ac_cv_use_joystick >> ${wx_arg_cache_file}.tmp
11041 fi
11042
11043 if test "$wxUSE_JOYSTICK" = yes; then
11044 echo "$as_me:$LINENO: result: yes" >&5
11045echo "${ECHO_T}yes" >&6
11046 else
11047 echo "$as_me:$LINENO: result: no" >&5
11048echo "${ECHO_T}no" >&6
11049 fi
11050
11051
11052 enablestring=
11053 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-metafile" >&5
11054echo $ECHO_N "checking for --${enablestring:-enable}-metafile... $ECHO_C" >&6
11055 no_cache=0
11056 # Check whether --enable-metafile or --disable-metafile was given.
11057if test "${enable_metafile+set}" = set; then
11058 enableval="$enable_metafile"
11059
11060 if test "$enableval" = yes; then
11061 ac_cv_use_metafile='wxUSE_METAFILE=yes'
11062 else
11063 ac_cv_use_metafile='wxUSE_METAFILE=no'
11064 fi
11065
11066else
11067
11068 LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}`
11069 if test "x$LINE" != x ; then
11070 eval "DEFAULT_$LINE"
11071 else
11072 no_cache=1
11073 fi
11074
11075 ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE
11076
11077fi;
11078
11079 eval "$ac_cv_use_metafile"
11080 if test "$no_cache" != 1; then
11081 echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp
11082 fi
11083
11084 if test "$wxUSE_METAFILE" = yes; then
11085 echo "$as_me:$LINENO: result: yes" >&5
11086echo "${ECHO_T}yes" >&6
11087 else
11088 echo "$as_me:$LINENO: result: no" >&5
11089echo "${ECHO_T}no" >&6
11090 fi
11091
11092
11093 enablestring=
11094 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dragimage" >&5
11095echo $ECHO_N "checking for --${enablestring:-enable}-dragimage... $ECHO_C" >&6
11096 no_cache=0
11097 # Check whether --enable-dragimage or --disable-dragimage was given.
11098if test "${enable_dragimage+set}" = set; then
11099 enableval="$enable_dragimage"
11100
11101 if test "$enableval" = yes; then
11102 ac_cv_use_dragimage='wxUSE_DRAGIMAGE=yes'
11103 else
11104 ac_cv_use_dragimage='wxUSE_DRAGIMAGE=no'
11105 fi
11106
11107else
11108
11109 LINE=`grep "wxUSE_DRAGIMAGE" ${wx_arg_cache_file}`
11110 if test "x$LINE" != x ; then
11111 eval "DEFAULT_$LINE"
11112 else
11113 no_cache=1
11114 fi
11115
11116 ac_cv_use_dragimage='wxUSE_DRAGIMAGE='$DEFAULT_wxUSE_DRAGIMAGE
11117
11118fi;
11119
11120 eval "$ac_cv_use_dragimage"
11121 if test "$no_cache" != 1; then
11122 echo $ac_cv_use_dragimage >> ${wx_arg_cache_file}.tmp
11123 fi
11124
11125 if test "$wxUSE_DRAGIMAGE" = yes; then
11126 echo "$as_me:$LINENO: result: yes" >&5
11127echo "${ECHO_T}yes" >&6
11128 else
11129 echo "$as_me:$LINENO: result: no" >&5
11130echo "${ECHO_T}no" >&6
11131 fi
11132
11133
11134 enablestring=
11135 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-accessibility" >&5
11136echo $ECHO_N "checking for --${enablestring:-enable}-accessibility... $ECHO_C" >&6
11137 no_cache=0
11138 # Check whether --enable-accessibility or --disable-accessibility was given.
11139if test "${enable_accessibility+set}" = set; then
11140 enableval="$enable_accessibility"
11141
11142 if test "$enableval" = yes; then
11143 ac_cv_use_accessibility='wxUSE_ACCESSIBILITY=yes'
11144 else
11145 ac_cv_use_accessibility='wxUSE_ACCESSIBILITY=no'
11146 fi
11147
11148else
11149
11150 LINE=`grep "wxUSE_ACCESSIBILITY" ${wx_arg_cache_file}`
11151 if test "x$LINE" != x ; then
11152 eval "DEFAULT_$LINE"
11153 else
11154 no_cache=1
11155 fi
11156
11157 ac_cv_use_accessibility='wxUSE_ACCESSIBILITY='$DEFAULT_wxUSE_ACCESSIBILITY
11158
11159fi;
11160
11161 eval "$ac_cv_use_accessibility"
11162 if test "$no_cache" != 1; then
11163 echo $ac_cv_use_accessibility >> ${wx_arg_cache_file}.tmp
11164 fi
11165
11166 if test "$wxUSE_ACCESSIBILITY" = yes; then
11167 echo "$as_me:$LINENO: result: yes" >&5
11168echo "${ECHO_T}yes" >&6
11169 else
11170 echo "$as_me:$LINENO: result: no" >&5
11171echo "${ECHO_T}no" >&6
11172 fi
11173
11174
38b4a946
VZ
11175if test "$wxUSE_MSW" = "1"; then
11176
11177 enablestring=
11178 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dccache" >&5
11179echo $ECHO_N "checking for --${enablestring:-enable}-dccache... $ECHO_C" >&6
11180 no_cache=0
11181 # Check whether --enable-dccache or --disable-dccache was given.
11182if test "${enable_dccache+set}" = set; then
11183 enableval="$enable_dccache"
11184
11185 if test "$enableval" = yes; then
11186 ac_cv_use_dccache='wxUSE_DC_CACHEING=yes'
11187 else
11188 ac_cv_use_dccache='wxUSE_DC_CACHEING=no'
11189 fi
11190
11191else
11192
11193 LINE=`grep "wxUSE_DC_CACHEING" ${wx_arg_cache_file}`
11194 if test "x$LINE" != x ; then
11195 eval "DEFAULT_$LINE"
11196 else
11197 no_cache=1
11198 fi
11199
11200 ac_cv_use_dccache='wxUSE_DC_CACHEING='$DEFAULT_wxUSE_DC_CACHEING
11201
11202fi;
11203
11204 eval "$ac_cv_use_dccache"
11205 if test "$no_cache" != 1; then
11206 echo $ac_cv_use_dccache >> ${wx_arg_cache_file}.tmp
11207 fi
11208
11209 if test "$wxUSE_DC_CACHEING" = yes; then
11210 echo "$as_me:$LINENO: result: yes" >&5
11211echo "${ECHO_T}yes" >&6
11212 else
11213 echo "$as_me:$LINENO: result: no" >&5
11214echo "${ECHO_T}no" >&6
11215 fi
11216
11217fi
11218
a848cd7e
SC
11219
11220
11221 enablestring=
11222 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-palette" >&5
11223echo $ECHO_N "checking for --${enablestring:-enable}-palette... $ECHO_C" >&6
11224 no_cache=0
11225 # Check whether --enable-palette or --disable-palette was given.
11226if test "${enable_palette+set}" = set; then
11227 enableval="$enable_palette"
11228
11229 if test "$enableval" = yes; then
11230 ac_cv_use_palette='wxUSE_PALETTE=yes'
11231 else
11232 ac_cv_use_palette='wxUSE_PALETTE=no'
11233 fi
11234
11235else
11236
11237 LINE=`grep "wxUSE_PALETTE" ${wx_arg_cache_file}`
11238 if test "x$LINE" != x ; then
11239 eval "DEFAULT_$LINE"
11240 else
11241 no_cache=1
11242 fi
11243
11244 ac_cv_use_palette='wxUSE_PALETTE='$DEFAULT_wxUSE_PALETTE
11245
11246fi;
11247
11248 eval "$ac_cv_use_palette"
11249 if test "$no_cache" != 1; then
11250 echo $ac_cv_use_palette >> ${wx_arg_cache_file}.tmp
11251 fi
11252
11253 if test "$wxUSE_PALETTE" = yes; then
11254 echo "$as_me:$LINENO: result: yes" >&5
11255echo "${ECHO_T}yes" >&6
11256 else
11257 echo "$as_me:$LINENO: result: no" >&5
11258echo "${ECHO_T}no" >&6
11259 fi
11260
11261
11262 enablestring=
11263 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-image" >&5
11264echo $ECHO_N "checking for --${enablestring:-enable}-image... $ECHO_C" >&6
11265 no_cache=0
11266 # Check whether --enable-image or --disable-image was given.
11267if test "${enable_image+set}" = set; then
11268 enableval="$enable_image"
11269
11270 if test "$enableval" = yes; then
11271 ac_cv_use_image='wxUSE_IMAGE=yes'
11272 else
11273 ac_cv_use_image='wxUSE_IMAGE=no'
11274 fi
11275
11276else
11277
11278 LINE=`grep "wxUSE_IMAGE" ${wx_arg_cache_file}`
11279 if test "x$LINE" != x ; then
11280 eval "DEFAULT_$LINE"
11281 else
11282 no_cache=1
11283 fi
11284
11285 ac_cv_use_image='wxUSE_IMAGE='$DEFAULT_wxUSE_IMAGE
11286
11287fi;
11288
11289 eval "$ac_cv_use_image"
11290 if test "$no_cache" != 1; then
11291 echo $ac_cv_use_image >> ${wx_arg_cache_file}.tmp
11292 fi
11293
11294 if test "$wxUSE_IMAGE" = yes; then
11295 echo "$as_me:$LINENO: result: yes" >&5
11296echo "${ECHO_T}yes" >&6
11297 else
11298 echo "$as_me:$LINENO: result: no" >&5
11299echo "${ECHO_T}no" >&6
11300 fi
11301
11302
11303 enablestring=
11304 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gif" >&5
11305echo $ECHO_N "checking for --${enablestring:-enable}-gif... $ECHO_C" >&6
11306 no_cache=0
11307 # Check whether --enable-gif or --disable-gif was given.
11308if test "${enable_gif+set}" = set; then
11309 enableval="$enable_gif"
11310
11311 if test "$enableval" = yes; then
11312 ac_cv_use_gif='wxUSE_GIF=yes'
11313 else
11314 ac_cv_use_gif='wxUSE_GIF=no'
11315 fi
11316
11317else
11318
11319 LINE=`grep "wxUSE_GIF" ${wx_arg_cache_file}`
11320 if test "x$LINE" != x ; then
11321 eval "DEFAULT_$LINE"
11322 else
11323 no_cache=1
11324 fi
11325
11326 ac_cv_use_gif='wxUSE_GIF='$DEFAULT_wxUSE_GIF
11327
11328fi;
11329
11330 eval "$ac_cv_use_gif"
11331 if test "$no_cache" != 1; then
11332 echo $ac_cv_use_gif >> ${wx_arg_cache_file}.tmp
11333 fi
11334
11335 if test "$wxUSE_GIF" = yes; then
11336 echo "$as_me:$LINENO: result: yes" >&5
11337echo "${ECHO_T}yes" >&6
11338 else
11339 echo "$as_me:$LINENO: result: no" >&5
11340echo "${ECHO_T}no" >&6
11341 fi
11342
11343
11344 enablestring=
11345 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-pcx" >&5
11346echo $ECHO_N "checking for --${enablestring:-enable}-pcx... $ECHO_C" >&6
11347 no_cache=0
11348 # Check whether --enable-pcx or --disable-pcx was given.
11349if test "${enable_pcx+set}" = set; then
11350 enableval="$enable_pcx"
11351
11352 if test "$enableval" = yes; then
11353 ac_cv_use_pcx='wxUSE_PCX=yes'
11354 else
11355 ac_cv_use_pcx='wxUSE_PCX=no'
11356 fi
11357
11358else
11359
11360 LINE=`grep "wxUSE_PCX" ${wx_arg_cache_file}`
11361 if test "x$LINE" != x ; then
11362 eval "DEFAULT_$LINE"
11363 else
11364 no_cache=1
11365 fi
11366
11367 ac_cv_use_pcx='wxUSE_PCX='$DEFAULT_wxUSE_PCX
11368
11369fi;
11370
11371 eval "$ac_cv_use_pcx"
11372 if test "$no_cache" != 1; then
11373 echo $ac_cv_use_pcx >> ${wx_arg_cache_file}.tmp
11374 fi
11375
11376 if test "$wxUSE_PCX" = yes; then
11377 echo "$as_me:$LINENO: result: yes" >&5
11378echo "${ECHO_T}yes" >&6
11379 else
11380 echo "$as_me:$LINENO: result: no" >&5
11381echo "${ECHO_T}no" >&6
11382 fi
11383
11384
11385 enablestring=
11386 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-iff" >&5
11387echo $ECHO_N "checking for --${enablestring:-enable}-iff... $ECHO_C" >&6
11388 no_cache=0
11389 # Check whether --enable-iff or --disable-iff was given.
11390if test "${enable_iff+set}" = set; then
11391 enableval="$enable_iff"
11392
11393 if test "$enableval" = yes; then
11394 ac_cv_use_iff='wxUSE_IFF=yes'
11395 else
11396 ac_cv_use_iff='wxUSE_IFF=no'
11397 fi
11398
11399else
11400
11401 LINE=`grep "wxUSE_IFF" ${wx_arg_cache_file}`
11402 if test "x$LINE" != x ; then
11403 eval "DEFAULT_$LINE"
11404 else
11405 no_cache=1
11406 fi
11407
11408 ac_cv_use_iff='wxUSE_IFF='$DEFAULT_wxUSE_IFF
11409
11410fi;
11411
11412 eval "$ac_cv_use_iff"
11413 if test "$no_cache" != 1; then
11414 echo $ac_cv_use_iff >> ${wx_arg_cache_file}.tmp
11415 fi
11416
11417 if test "$wxUSE_IFF" = yes; then
11418 echo "$as_me:$LINENO: result: yes" >&5
11419echo "${ECHO_T}yes" >&6
11420 else
11421 echo "$as_me:$LINENO: result: no" >&5
11422echo "${ECHO_T}no" >&6
11423 fi
11424
11425
11426 enablestring=
11427 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-pnm" >&5
11428echo $ECHO_N "checking for --${enablestring:-enable}-pnm... $ECHO_C" >&6
11429 no_cache=0
11430 # Check whether --enable-pnm or --disable-pnm was given.
11431if test "${enable_pnm+set}" = set; then
11432 enableval="$enable_pnm"
11433
11434 if test "$enableval" = yes; then
11435 ac_cv_use_pnm='wxUSE_PNM=yes'
11436 else
11437 ac_cv_use_pnm='wxUSE_PNM=no'
11438 fi
11439
11440else
11441
11442 LINE=`grep "wxUSE_PNM" ${wx_arg_cache_file}`
11443 if test "x$LINE" != x ; then
11444 eval "DEFAULT_$LINE"
11445 else
11446 no_cache=1
11447 fi
11448
11449 ac_cv_use_pnm='wxUSE_PNM='$DEFAULT_wxUSE_PNM
11450
11451fi;
11452
11453 eval "$ac_cv_use_pnm"
11454 if test "$no_cache" != 1; then
11455 echo $ac_cv_use_pnm >> ${wx_arg_cache_file}.tmp
11456 fi
11457
11458 if test "$wxUSE_PNM" = yes; then
11459 echo "$as_me:$LINENO: result: yes" >&5
11460echo "${ECHO_T}yes" >&6
11461 else
11462 echo "$as_me:$LINENO: result: no" >&5
11463echo "${ECHO_T}no" >&6
11464 fi
11465
11466
11467 enablestring=
11468 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-xpm" >&5
11469echo $ECHO_N "checking for --${enablestring:-enable}-xpm... $ECHO_C" >&6
11470 no_cache=0
11471 # Check whether --enable-xpm or --disable-xpm was given.
11472if test "${enable_xpm+set}" = set; then
11473 enableval="$enable_xpm"
11474
11475 if test "$enableval" = yes; then
11476 ac_cv_use_xpm='wxUSE_XPM=yes'
11477 else
11478 ac_cv_use_xpm='wxUSE_XPM=no'
11479 fi
11480
11481else
11482
11483 LINE=`grep "wxUSE_XPM" ${wx_arg_cache_file}`
11484 if test "x$LINE" != x ; then
11485 eval "DEFAULT_$LINE"
11486 else
11487 no_cache=1
11488 fi
11489
11490 ac_cv_use_xpm='wxUSE_XPM='$DEFAULT_wxUSE_XPM
11491
11492fi;
11493
11494 eval "$ac_cv_use_xpm"
11495 if test "$no_cache" != 1; then
11496 echo $ac_cv_use_xpm >> ${wx_arg_cache_file}.tmp
11497 fi
11498
11499 if test "$wxUSE_XPM" = yes; then
11500 echo "$as_me:$LINENO: result: yes" >&5
11501echo "${ECHO_T}yes" >&6
11502 else
11503 echo "$as_me:$LINENO: result: no" >&5
11504echo "${ECHO_T}no" >&6
11505 fi
11506
11507
11508 enablestring=
11509 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ico_cur" >&5
11510echo $ECHO_N "checking for --${enablestring:-enable}-ico_cur... $ECHO_C" >&6
11511 no_cache=0
11512 # Check whether --enable-ico_cur or --disable-ico_cur was given.
11513if test "${enable_ico_cur+set}" = set; then
11514 enableval="$enable_ico_cur"
11515
11516 if test "$enableval" = yes; then
11517 ac_cv_use_ico_cur='wxUSE_ICO_CUR=yes'
11518 else
11519 ac_cv_use_ico_cur='wxUSE_ICO_CUR=no'
11520 fi
11521
11522else
11523
11524 LINE=`grep "wxUSE_ICO_CUR" ${wx_arg_cache_file}`
11525 if test "x$LINE" != x ; then
11526 eval "DEFAULT_$LINE"
11527 else
11528 no_cache=1
11529 fi
11530
11531 ac_cv_use_ico_cur='wxUSE_ICO_CUR='$DEFAULT_wxUSE_ICO_CUR
11532
11533fi;
11534
11535 eval "$ac_cv_use_ico_cur"
11536 if test "$no_cache" != 1; then
11537 echo $ac_cv_use_ico_cur >> ${wx_arg_cache_file}.tmp
11538 fi
11539
11540 if test "$wxUSE_ICO_CUR" = yes; then
11541 echo "$as_me:$LINENO: result: yes" >&5
11542echo "${ECHO_T}yes" >&6
11543 else
11544 echo "$as_me:$LINENO: result: no" >&5
11545echo "${ECHO_T}no" >&6
11546 fi
11547
11548
11549fi
11550
11551
11552
ceec2216
RL
11553# Check whether --with-flavour or --without-flavour was given.
11554if test "${with_flavour+set}" = set; then
11555 withval="$with_flavour"
11556 WX_FLAVOUR="$withval"
11557fi;
11558
11559
11560
a848cd7e
SC
11561 enablestring=
11562 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-official_build" >&5
11563echo $ECHO_N "checking for --${enablestring:-enable}-official_build... $ECHO_C" >&6
11564 no_cache=0
11565 # Check whether --enable-official_build or --disable-official_build was given.
11566if test "${enable_official_build+set}" = set; then
11567 enableval="$enable_official_build"
11568
11569 if test "$enableval" = yes; then
11570 ac_cv_use_official_build='wxUSE_OFFICIAL_BUILD=yes'
11571 else
11572 ac_cv_use_official_build='wxUSE_OFFICIAL_BUILD=no'
11573 fi
11574
11575else
11576
11577 LINE=`grep "wxUSE_OFFICIAL_BUILD" ${wx_arg_cache_file}`
11578 if test "x$LINE" != x ; then
11579 eval "DEFAULT_$LINE"
11580 else
11581 no_cache=1
11582 fi
11583
11584 ac_cv_use_official_build='wxUSE_OFFICIAL_BUILD='$DEFAULT_wxUSE_OFFICIAL_BUILD
11585
11586fi;
11587
11588 eval "$ac_cv_use_official_build"
11589 if test "$no_cache" != 1; then
11590 echo $ac_cv_use_official_build >> ${wx_arg_cache_file}.tmp
11591 fi
11592
11593 if test "$wxUSE_OFFICIAL_BUILD" = yes; then
11594 echo "$as_me:$LINENO: result: yes" >&5
11595echo "${ECHO_T}yes" >&6
11596 else
11597 echo "$as_me:$LINENO: result: no" >&5
11598echo "${ECHO_T}no" >&6
11599 fi
11600
11601# Check whether --enable-vendor or --disable-vendor was given.
11602if test "${enable_vendor+set}" = set; then
11603 enableval="$enable_vendor"
11604 VENDOR="$enableval"
11605fi;
11606if test "x$VENDOR" = "x"; then
11607 VENDOR="custom"
11608fi
11609
a848cd7e
SC
11610
11611
11612
11613 echo "saving argument cache $wx_arg_cache_file"
11614 mv ${wx_arg_cache_file}.tmp ${wx_arg_cache_file}
11615
11616
11617
11618echo "$as_me:$LINENO: checking for toolkit" >&5
11619echo $ECHO_N "checking for toolkit... $ECHO_C" >&6
11620
11621# In Wine, we need to default to MSW, not GTK or MOTIF
11622if test "$wxUSE_WINE" = "yes"; then
11623 DEFAULT_DEFAULT_wxUSE_GTK=0
11624 DEFAULT_DEFAULT_wxUSE_MOTIF=0
11625 DEFAULT_DEFAULT_wxUSE_MSW=1
11626 wxUSE_SHARED=no
11627fi
11628
f597b41c 11629
a848cd7e
SC
11630if test "$wxUSE_GUI" = "yes"; then
11631
11632 if test "$USE_BEOS" = 1; then
11633 { { echo "$as_me:$LINENO: error: BeOS GUI is not supported yet, use --disable-gui" >&5
11634echo "$as_me: error: BeOS GUI is not supported yet, use --disable-gui" >&2;}
11635 { (exit 1); exit 1; }; }
11636 fi
11637
11638 if test "$TOOLKIT_GIVEN" = 1; then
11639 for toolkit in `echo $ALL_TOOLKITS`; do
11640 var=wxUSE_$toolkit
11641 eval "value=\$${var}"
f34ca037
MW
11642 if test "x$value" = "xno"; then
11643 eval "$var=0"
11644 elif test "x$value" != "x"; then
11645 eval "$var=1"
11646 fi
11647
11648 if test "x$value" != "x" -a "x$value" != "xyes" -a "x$value" != "xno"; then
11649 eval "wx${toolkit}_VERSION=$value"
11650 fi
a848cd7e
SC
11651 done
11652 else
11653 for toolkit in `echo $ALL_TOOLKITS`; do
11654 if test "$has_toolkit_in_cache" != 1; then
11655 var=DEFAULT_DEFAULT_wxUSE_$toolkit
11656 else
11657 var=DEFAULT_wxUSE_$toolkit
f34ca037
MW
11658
11659 eval "version=\$DEFAULT_wx${toolkit}_VERSION"
11660 if test "x$version" != "x"; then
11661 eval "wx${toolkit}_VERSION=$version"
11662 fi
a848cd7e
SC
11663 fi
11664 eval "wxUSE_$toolkit=\$${var}"
11665 done
11666 fi
11667
11668 NUM_TOOLKITS=`expr ${wxUSE_COCOA:-0} + ${wxUSE_GTK:-0} + ${wxUSE_MAC:-0} \
b3c86150 11669 + ${wxUSE_MGL:-0} + ${wxUSE_DFB:-0} + ${wxUSE_MICROWIN:-0} \
a848cd7e
SC
11670 + ${wxUSE_MOTIF:-0} + ${wxUSE_MSW:-0} + ${wxUSE_X11:-0}`
11671
11672 case "${host}" in
11673 *-pc-os2_emx | *-pc-os2-emx )
11674 NUM_TOOLKITS=`expr ${NUM_TOOLKITS} + ${wxUSE_PM:-0}`
11675 esac
11676
11677 case "$NUM_TOOLKITS" in
11678 1)
11679 ;;
11680 0)
11681 { { echo "$as_me:$LINENO: error: Please specify a toolkit -- cannot determine the default for ${host}" >&5
11682echo "$as_me: error: Please specify a toolkit -- cannot determine the default for ${host}" >&2;}
11683 { (exit 1); exit 1; }; }
11684 ;;
11685 *)
11686 { { echo "$as_me:$LINENO: error: Please specify at most one toolkit (maybe some are cached in configarg.cache?)" >&5
11687echo "$as_me: error: Please specify at most one toolkit (maybe some are cached in configarg.cache?)" >&2;}
11688 { (exit 1); exit 1; }; }
11689 esac
11690
f34ca037
MW
11691 # to be removed when --disable-gtk2 isn't needed
11692 if test "x$wxUSE_GTK2" = "xyes"; then
11693 wxGTK_VERSION=2
11694 elif test "x$wxUSE_GTK2" = "xno"; then
11695 wxGTK_VERSION=1
11696 fi
11697
a848cd7e
SC
11698 for toolkit in `echo $ALL_TOOLKITS`; do
11699 var=wxUSE_$toolkit
11700 eval "value=\$${var}"
11701 if test "x$value" != x; then
11702 cache_var=CACHE_$toolkit
11703 eval "cache=\$${cache_var}"
11704 if test "$cache" = 1; then
11705 echo "$var=$value" >> ${wx_arg_cache_file}
f34ca037
MW
11706 eval "version=\$wx${toolkit}_VERSION"
11707 if test "x$version" != "x"; then
11708 echo "wx${toolkit}_VERSION=$version" >> ${wx_arg_cache_file}
11709 fi
a848cd7e
SC
11710 fi
11711 if test "$value" = 1; then
11712 toolkit_echo=`echo $toolkit | tr "[A-Z]" "[a-z]"`
11713 echo "$as_me:$LINENO: result: $toolkit_echo" >&5
11714echo "${ECHO_T}$toolkit_echo" >&6
11715 fi
11716 fi
11717 done
11718else
11719 if test "x$host_alias" != "x"; then
11720 echo "$as_me:$LINENO: result: base ($host_alias hosted) only" >&5
11721echo "${ECHO_T}base ($host_alias hosted) only" >&6
11722 else
11723 echo "$as_me:$LINENO: result: base only" >&5
11724echo "${ECHO_T}base only" >&6
11725 fi
11726fi
11727
11728wants_win32=0
11729doesnt_want_win32=0
11730case "${host}" in
11731 *-*-cygwin*)
11732 if test "$wxUSE_MSW" = 1 ; then
11733 wants_win32=1
7275146d 11734 BAKEFILE_FORCE_PLATFORM=win32
a848cd7e
SC
11735 else
11736 doesnt_want_win32=1
11737 fi
11738 ;;
11739 *-*-mingw*)
11740 wants_win32=1
11741 ;;
11742esac
11743
11744if test "$wxUSE_WINE" = "yes"; then
11745 wants_win32=1
11746 CC=winegcc
11747 CXX=wineg++
a848cd7e
SC
11748 LDFLAGS_GUI="-mwindows"
11749fi
11750
11751if test "$wants_win32" = 1 ; then
11752 USE_UNIX=0
11753 USE_WIN32=1
11754 cat >>confdefs.h <<\_ACEOF
11755#define __WIN32__ 1
11756_ACEOF
11757
11758 cat >>confdefs.h <<\_ACEOF
11759#define __WIN95__ 1
11760_ACEOF
11761
11762 cat >>confdefs.h <<\_ACEOF
11763#define __WINDOWS__ 1
11764_ACEOF
11765
11766 cat >>confdefs.h <<\_ACEOF
11767#define __GNUWIN32__ 1
11768_ACEOF
11769
11770 cat >>confdefs.h <<\_ACEOF
11771#define STRICT 1
11772_ACEOF
11773
11774 cat >>confdefs.h <<\_ACEOF
11775#define WINVER 0x0400
11776_ACEOF
11777
11778fi
11779if test "$doesnt_want_win32" = 1 ; then
11780 USE_UNIX=1
11781 USE_WIN32=0
11782fi
11783
11784if test "$USE_UNIX" = 1 ; then
11785 wxUSE_UNIX=yes
11786 cat >>confdefs.h <<\_ACEOF
11787#define __UNIX__ 1
11788_ACEOF
11789
11790fi
11791
11792
11793cat >confcache <<\_ACEOF
11794# This file is a shell script that caches the results of configure
11795# tests run on this system so they can be shared between configure
11796# scripts and configure runs, see configure's option --config-cache.
11797# It is not useful on other systems. If it contains results you don't
11798# want to keep, you may remove or edit it.
11799#
11800# config.status only pays attention to the cache file if you give it
11801# the --recheck option to rerun configure.
11802#
11803# `ac_cv_env_foo' variables (set or unset) will be overridden when
11804# loading this file, other *unset* `ac_cv_foo' will be assigned the
11805# following values.
11806
11807_ACEOF
11808
11809# The following way of writing the cache mishandles newlines in values,
11810# but we know of no workaround that is simple, portable, and efficient.
11811# So, don't put newlines in cache variables' values.
11812# Ultrix sh set writes to stderr and can't be redirected directly,
11813# and sets the high bit in the cache file unless we assign to the vars.
11814{
11815 (set) 2>&1 |
11816 case `(ac_space=' '; set | grep ac_space) 2>&1` in
11817 *ac_space=\ *)
11818 # `set' does not quote correctly, so add quotes (double-quote
11819 # substitution turns \\\\ into \\, and sed turns \\ into \).
11820 sed -n \
ac1cb8d3
VS
11821 "s/'/'\\\\''/g;
11822 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
a848cd7e
SC
11823 ;;
11824 *)
11825 # `set' quotes correctly as required by POSIX, so do not add quotes.
11826 sed -n \
ac1cb8d3 11827 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
a848cd7e
SC
11828 ;;
11829 esac;
11830} |
11831 sed '
11832 t clear
11833 : clear
11834 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
11835 t end
11836 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11837 : end' >>confcache
11838if diff $cache_file confcache >/dev/null 2>&1; then :; else
11839 if test -w $cache_file; then
11840 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
11841 cat confcache >$cache_file
11842 else
11843 echo "not updating unwritable cache $cache_file"
11844 fi
11845fi
11846rm -f confcache
11847
a848cd7e 11848CFLAGS=${CFLAGS:=}
6dcfc289
DE
11849
11850
3006edc0 11851
6dcfc289 11852 ac_ext=c
a848cd7e
SC
11853ac_cpp='$CPP $CPPFLAGS'
11854ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11855ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11856ac_compiler_gnu=$ac_cv_c_compiler_gnu
11857if test -n "$ac_tool_prefix"; then
11858 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
11859set dummy ${ac_tool_prefix}gcc; ac_word=$2
11860echo "$as_me:$LINENO: checking for $ac_word" >&5
11861echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11862if test "${ac_cv_prog_CC+set}" = set; then
11863 echo $ECHO_N "(cached) $ECHO_C" >&6
11864else
11865 if test -n "$CC"; then
11866 ac_cv_prog_CC="$CC" # Let the user override the test.
11867else
11868as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11869for as_dir in $PATH
11870do
11871 IFS=$as_save_IFS
11872 test -z "$as_dir" && as_dir=.
11873 for ac_exec_ext in '' $ac_executable_extensions; do
11874 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11875 ac_cv_prog_CC="${ac_tool_prefix}gcc"
11876 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11877 break 2
11878 fi
11879done
11880done
11881
11882fi
11883fi
11884CC=$ac_cv_prog_CC
11885if test -n "$CC"; then
11886 echo "$as_me:$LINENO: result: $CC" >&5
11887echo "${ECHO_T}$CC" >&6
11888else
11889 echo "$as_me:$LINENO: result: no" >&5
11890echo "${ECHO_T}no" >&6
11891fi
11892
11893fi
11894if test -z "$ac_cv_prog_CC"; then
11895 ac_ct_CC=$CC
11896 # Extract the first word of "gcc", so it can be a program name with args.
11897set dummy gcc; ac_word=$2
11898echo "$as_me:$LINENO: checking for $ac_word" >&5
11899echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11900if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
11901 echo $ECHO_N "(cached) $ECHO_C" >&6
11902else
11903 if test -n "$ac_ct_CC"; then
11904 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
11905else
11906as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11907for as_dir in $PATH
11908do
11909 IFS=$as_save_IFS
11910 test -z "$as_dir" && as_dir=.
11911 for ac_exec_ext in '' $ac_executable_extensions; do
11912 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11913 ac_cv_prog_ac_ct_CC="gcc"
11914 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11915 break 2
11916 fi
11917done
11918done
11919
11920fi
11921fi
11922ac_ct_CC=$ac_cv_prog_ac_ct_CC
11923if test -n "$ac_ct_CC"; then
11924 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
11925echo "${ECHO_T}$ac_ct_CC" >&6
11926else
11927 echo "$as_me:$LINENO: result: no" >&5
11928echo "${ECHO_T}no" >&6
11929fi
11930
11931 CC=$ac_ct_CC
11932else
11933 CC="$ac_cv_prog_CC"
11934fi
11935
11936if test -z "$CC"; then
11937 if test -n "$ac_tool_prefix"; then
11938 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
11939set dummy ${ac_tool_prefix}cc; ac_word=$2
11940echo "$as_me:$LINENO: checking for $ac_word" >&5
11941echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11942if test "${ac_cv_prog_CC+set}" = set; then
11943 echo $ECHO_N "(cached) $ECHO_C" >&6
11944else
11945 if test -n "$CC"; then
11946 ac_cv_prog_CC="$CC" # Let the user override the test.
11947else
11948as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11949for as_dir in $PATH
11950do
11951 IFS=$as_save_IFS
11952 test -z "$as_dir" && as_dir=.
11953 for ac_exec_ext in '' $ac_executable_extensions; do
11954 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11955 ac_cv_prog_CC="${ac_tool_prefix}cc"
11956 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11957 break 2
11958 fi
11959done
11960done
11961
11962fi
11963fi
11964CC=$ac_cv_prog_CC
11965if test -n "$CC"; then
11966 echo "$as_me:$LINENO: result: $CC" >&5
11967echo "${ECHO_T}$CC" >&6
11968else
11969 echo "$as_me:$LINENO: result: no" >&5
11970echo "${ECHO_T}no" >&6
11971fi
11972
11973fi
11974if test -z "$ac_cv_prog_CC"; then
11975 ac_ct_CC=$CC
11976 # Extract the first word of "cc", so it can be a program name with args.
11977set dummy cc; ac_word=$2
11978echo "$as_me:$LINENO: checking for $ac_word" >&5
11979echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11980if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
11981 echo $ECHO_N "(cached) $ECHO_C" >&6
11982else
11983 if test -n "$ac_ct_CC"; then
11984 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
11985else
11986as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11987for as_dir in $PATH
11988do
11989 IFS=$as_save_IFS
11990 test -z "$as_dir" && as_dir=.
11991 for ac_exec_ext in '' $ac_executable_extensions; do
11992 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11993 ac_cv_prog_ac_ct_CC="cc"
11994 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11995 break 2
11996 fi
11997done
11998done
11999
12000fi
12001fi
12002ac_ct_CC=$ac_cv_prog_ac_ct_CC
12003if test -n "$ac_ct_CC"; then
12004 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
12005echo "${ECHO_T}$ac_ct_CC" >&6
12006else
12007 echo "$as_me:$LINENO: result: no" >&5
12008echo "${ECHO_T}no" >&6
12009fi
12010
12011 CC=$ac_ct_CC
12012else
12013 CC="$ac_cv_prog_CC"
12014fi
12015
12016fi
12017if test -z "$CC"; then
12018 # Extract the first word of "cc", so it can be a program name with args.
12019set dummy cc; ac_word=$2
12020echo "$as_me:$LINENO: checking for $ac_word" >&5
12021echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12022if test "${ac_cv_prog_CC+set}" = set; then
12023 echo $ECHO_N "(cached) $ECHO_C" >&6
12024else
12025 if test -n "$CC"; then
12026 ac_cv_prog_CC="$CC" # Let the user override the test.
12027else
12028 ac_prog_rejected=no
12029as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12030for as_dir in $PATH
12031do
12032 IFS=$as_save_IFS
12033 test -z "$as_dir" && as_dir=.
12034 for ac_exec_ext in '' $ac_executable_extensions; do
12035 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12036 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
12037 ac_prog_rejected=yes
12038 continue
12039 fi
12040 ac_cv_prog_CC="cc"
12041 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12042 break 2
12043 fi
12044done
12045done
12046
12047if test $ac_prog_rejected = yes; then
12048 # We found a bogon in the path, so make sure we never use it.
12049 set dummy $ac_cv_prog_CC
12050 shift
12051 if test $# != 0; then
12052 # We chose a different compiler from the bogus one.
12053 # However, it has the same basename, so the bogon will be chosen
12054 # first if we set CC to just the basename; use the full file name.
12055 shift
12056 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
12057 fi
12058fi
12059fi
12060fi
12061CC=$ac_cv_prog_CC
12062if test -n "$CC"; then
12063 echo "$as_me:$LINENO: result: $CC" >&5
12064echo "${ECHO_T}$CC" >&6
12065else
12066 echo "$as_me:$LINENO: result: no" >&5
12067echo "${ECHO_T}no" >&6
12068fi
12069
12070fi
12071if test -z "$CC"; then
12072 if test -n "$ac_tool_prefix"; then
12073 for ac_prog in cl
12074 do
12075 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12076set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12077echo "$as_me:$LINENO: checking for $ac_word" >&5
12078echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12079if test "${ac_cv_prog_CC+set}" = set; then
12080 echo $ECHO_N "(cached) $ECHO_C" >&6
12081else
12082 if test -n "$CC"; then
12083 ac_cv_prog_CC="$CC" # Let the user override the test.
12084else
12085as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12086for as_dir in $PATH
12087do
12088 IFS=$as_save_IFS
12089 test -z "$as_dir" && as_dir=.
12090 for ac_exec_ext in '' $ac_executable_extensions; do
12091 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12092 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
12093 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12094 break 2
12095 fi
12096done
12097done
12098
12099fi
12100fi
12101CC=$ac_cv_prog_CC
12102if test -n "$CC"; then
12103 echo "$as_me:$LINENO: result: $CC" >&5
12104echo "${ECHO_T}$CC" >&6
12105else
12106 echo "$as_me:$LINENO: result: no" >&5
12107echo "${ECHO_T}no" >&6
12108fi
12109
12110 test -n "$CC" && break
12111 done
12112fi
12113if test -z "$CC"; then
12114 ac_ct_CC=$CC
12115 for ac_prog in cl
12116do
12117 # Extract the first word of "$ac_prog", so it can be a program name with args.
12118set dummy $ac_prog; ac_word=$2
12119echo "$as_me:$LINENO: checking for $ac_word" >&5
12120echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12121if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
12122 echo $ECHO_N "(cached) $ECHO_C" >&6
12123else
12124 if test -n "$ac_ct_CC"; then
12125 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
12126else
12127as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12128for as_dir in $PATH
12129do
12130 IFS=$as_save_IFS
12131 test -z "$as_dir" && as_dir=.
12132 for ac_exec_ext in '' $ac_executable_extensions; do
12133 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12134 ac_cv_prog_ac_ct_CC="$ac_prog"
12135 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12136 break 2
12137 fi
12138done
12139done
12140
12141fi
12142fi
12143ac_ct_CC=$ac_cv_prog_ac_ct_CC
12144if test -n "$ac_ct_CC"; then
12145 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
12146echo "${ECHO_T}$ac_ct_CC" >&6
12147else
12148 echo "$as_me:$LINENO: result: no" >&5
12149echo "${ECHO_T}no" >&6
12150fi
12151
12152 test -n "$ac_ct_CC" && break
12153done
12154
12155 CC=$ac_ct_CC
12156fi
12157
12158fi
12159
12160
12161test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
12162See \`config.log' for more details." >&5
12163echo "$as_me: error: no acceptable C compiler found in \$PATH
12164See \`config.log' for more details." >&2;}
12165 { (exit 1); exit 1; }; }
12166
12167# Provide some information about the compiler.
12168echo "$as_me:$LINENO:" \
12169 "checking for C compiler version" >&5
12170ac_compiler=`set X $ac_compile; echo $2`
12171{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
12172 (eval $ac_compiler --version </dev/null >&5) 2>&5
12173 ac_status=$?
12174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12175 (exit $ac_status); }
12176{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
12177 (eval $ac_compiler -v </dev/null >&5) 2>&5
12178 ac_status=$?
12179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12180 (exit $ac_status); }
12181{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
12182 (eval $ac_compiler -V </dev/null >&5) 2>&5
12183 ac_status=$?
12184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12185 (exit $ac_status); }
12186
12187cat >conftest.$ac_ext <<_ACEOF
12188/* confdefs.h. */
12189_ACEOF
12190cat confdefs.h >>conftest.$ac_ext
12191cat >>conftest.$ac_ext <<_ACEOF
12192/* end confdefs.h. */
12193
12194int
12195main ()
12196{
12197
12198 ;
12199 return 0;
12200}
12201_ACEOF
12202ac_clean_files_save=$ac_clean_files
12203ac_clean_files="$ac_clean_files a.out a.exe b.out"
12204# Try to create an executable without -o first, disregard a.out.
12205# It will help us diagnose broken compilers, and finding out an intuition
12206# of exeext.
ac1cb8d3
VS
12207echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
12208echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
a848cd7e
SC
12209ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
12210if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
12211 (eval $ac_link_default) 2>&5
12212 ac_status=$?
12213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12214 (exit $ac_status); }; then
12215 # Find the output, starting from the most likely. This scheme is
12216# not robust to junk in `.', hence go to wildcards (a.*) only as a last
12217# resort.
12218
12219# Be careful to initialize this variable, since it used to be cached.
12220# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
12221ac_cv_exeext=
12222# b.out is created by i960 compilers.
12223for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
12224do
12225 test -f "$ac_file" || continue
12226 case $ac_file in
12227 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
ac1cb8d3 12228 ;;
a848cd7e 12229 conftest.$ac_ext )
ac1cb8d3
VS
12230 # This is the source file.
12231 ;;
a848cd7e 12232 [ab].out )
ac1cb8d3
VS
12233 # We found the default executable, but exeext='' is most
12234 # certainly right.
12235 break;;
a848cd7e 12236 *.* )
ac1cb8d3
VS
12237 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
12238 # FIXME: I believe we export ac_cv_exeext for Libtool,
12239 # but it would be cool to find out if it's true. Does anybody
12240 # maintain Libtool? --akim.
12241 export ac_cv_exeext
12242 break;;
a848cd7e 12243 * )
ac1cb8d3 12244 break;;
a848cd7e
SC
12245 esac
12246done
12247else
12248 echo "$as_me: failed program was:" >&5
12249sed 's/^/| /' conftest.$ac_ext >&5
12250
12251{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
12252See \`config.log' for more details." >&5
12253echo "$as_me: error: C compiler cannot create executables
12254See \`config.log' for more details." >&2;}
12255 { (exit 77); exit 77; }; }
12256fi
12257
12258ac_exeext=$ac_cv_exeext
12259echo "$as_me:$LINENO: result: $ac_file" >&5
12260echo "${ECHO_T}$ac_file" >&6
12261
12262# Check the compiler produces executables we can run. If not, either
12263# the compiler is broken, or we cross compile.
12264echo "$as_me:$LINENO: checking whether the C compiler works" >&5
12265echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
12266# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
12267# If not cross compiling, check that we can run a simple program.
12268if test "$cross_compiling" != yes; then
12269 if { ac_try='./$ac_file'
12270 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12271 (eval $ac_try) 2>&5
12272 ac_status=$?
12273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12274 (exit $ac_status); }; }; then
12275 cross_compiling=no
12276 else
12277 if test "$cross_compiling" = maybe; then
12278 cross_compiling=yes
12279 else
12280 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
12281If you meant to cross compile, use \`--host'.
12282See \`config.log' for more details." >&5
12283echo "$as_me: error: cannot run C compiled programs.
12284If you meant to cross compile, use \`--host'.
12285See \`config.log' for more details." >&2;}
12286 { (exit 1); exit 1; }; }
12287 fi
12288 fi
12289fi
12290echo "$as_me:$LINENO: result: yes" >&5
12291echo "${ECHO_T}yes" >&6
12292
12293rm -f a.out a.exe conftest$ac_cv_exeext b.out
12294ac_clean_files=$ac_clean_files_save
12295# Check the compiler produces executables we can run. If not, either
12296# the compiler is broken, or we cross compile.
12297echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
12298echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
12299echo "$as_me:$LINENO: result: $cross_compiling" >&5
12300echo "${ECHO_T}$cross_compiling" >&6
12301
12302echo "$as_me:$LINENO: checking for suffix of executables" >&5
12303echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
12304if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12305 (eval $ac_link) 2>&5
12306 ac_status=$?
12307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12308 (exit $ac_status); }; then
12309 # If both `conftest.exe' and `conftest' are `present' (well, observable)
12310# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
12311# work properly (i.e., refer to `conftest.exe'), while it won't with
12312# `rm'.
12313for ac_file in conftest.exe conftest conftest.*; do
12314 test -f "$ac_file" || continue
12315 case $ac_file in
12316 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
12317 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
ac1cb8d3
VS
12318 export ac_cv_exeext
12319 break;;
a848cd7e
SC
12320 * ) break;;
12321 esac
12322done
12323else
12324 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
12325See \`config.log' for more details." >&5
12326echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
12327See \`config.log' for more details." >&2;}
12328 { (exit 1); exit 1; }; }
12329fi
12330
12331rm -f conftest$ac_cv_exeext
12332echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
12333echo "${ECHO_T}$ac_cv_exeext" >&6
12334
12335rm -f conftest.$ac_ext
12336EXEEXT=$ac_cv_exeext
12337ac_exeext=$EXEEXT
12338echo "$as_me:$LINENO: checking for suffix of object files" >&5
12339echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
12340if test "${ac_cv_objext+set}" = set; then
12341 echo $ECHO_N "(cached) $ECHO_C" >&6
12342else
12343 cat >conftest.$ac_ext <<_ACEOF
12344/* confdefs.h. */
12345_ACEOF
12346cat confdefs.h >>conftest.$ac_ext
12347cat >>conftest.$ac_ext <<_ACEOF
12348/* end confdefs.h. */
12349
12350int
12351main ()
12352{
12353
12354 ;
12355 return 0;
12356}
12357_ACEOF
12358rm -f conftest.o conftest.obj
12359if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12360 (eval $ac_compile) 2>&5
12361 ac_status=$?
12362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12363 (exit $ac_status); }; then
12364 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
12365 case $ac_file in
12366 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
12367 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
12368 break;;
12369 esac
12370done
12371else
12372 echo "$as_me: failed program was:" >&5
12373sed 's/^/| /' conftest.$ac_ext >&5
12374
12375{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
12376See \`config.log' for more details." >&5
12377echo "$as_me: error: cannot compute suffix of object files: cannot compile
12378See \`config.log' for more details." >&2;}
12379 { (exit 1); exit 1; }; }
12380fi
12381
12382rm -f conftest.$ac_cv_objext conftest.$ac_ext
12383fi
12384echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
12385echo "${ECHO_T}$ac_cv_objext" >&6
12386OBJEXT=$ac_cv_objext
12387ac_objext=$OBJEXT
12388echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
12389echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
12390if test "${ac_cv_c_compiler_gnu+set}" = set; then
12391 echo $ECHO_N "(cached) $ECHO_C" >&6
12392else
12393 cat >conftest.$ac_ext <<_ACEOF
12394/* confdefs.h. */
12395_ACEOF
12396cat confdefs.h >>conftest.$ac_ext
12397cat >>conftest.$ac_ext <<_ACEOF
12398/* end confdefs.h. */
12399
12400int
12401main ()
12402{
12403#ifndef __GNUC__
12404 choke me
12405#endif
12406
12407 ;
12408 return 0;
12409}
12410_ACEOF
12411rm -f conftest.$ac_objext
12412if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 12413 (eval $ac_compile) 2>conftest.er1
a848cd7e 12414 ac_status=$?
ac1cb8d3
VS
12415 grep -v '^ *+' conftest.er1 >conftest.err
12416 rm -f conftest.er1
12417 cat conftest.err >&5
a848cd7e
SC
12418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12419 (exit $ac_status); } &&
479c790c 12420 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
12421 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12422 (eval $ac_try) 2>&5
12423 ac_status=$?
12424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12425 (exit $ac_status); }; } &&
12426 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
12427 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12428 (eval $ac_try) 2>&5
12429 ac_status=$?
12430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12431 (exit $ac_status); }; }; then
12432 ac_compiler_gnu=yes
12433else
12434 echo "$as_me: failed program was:" >&5
12435sed 's/^/| /' conftest.$ac_ext >&5
12436
12437ac_compiler_gnu=no
12438fi
ac1cb8d3 12439rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
12440ac_cv_c_compiler_gnu=$ac_compiler_gnu
12441
12442fi
12443echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
12444echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
12445GCC=`test $ac_compiler_gnu = yes && echo yes`
12446ac_test_CFLAGS=${CFLAGS+set}
12447ac_save_CFLAGS=$CFLAGS
15291213 12448CFLAGS="-g"
a848cd7e
SC
12449echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
12450echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
12451if test "${ac_cv_prog_cc_g+set}" = set; then
12452 echo $ECHO_N "(cached) $ECHO_C" >&6
12453else
12454 cat >conftest.$ac_ext <<_ACEOF
12455/* confdefs.h. */
12456_ACEOF
12457cat confdefs.h >>conftest.$ac_ext
12458cat >>conftest.$ac_ext <<_ACEOF
12459/* end confdefs.h. */
12460
12461int
12462main ()
12463{
12464
12465 ;
12466 return 0;
12467}
12468_ACEOF
12469rm -f conftest.$ac_objext
12470if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 12471 (eval $ac_compile) 2>conftest.er1
a848cd7e 12472 ac_status=$?
ac1cb8d3
VS
12473 grep -v '^ *+' conftest.er1 >conftest.err
12474 rm -f conftest.er1
12475 cat conftest.err >&5
a848cd7e
SC
12476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12477 (exit $ac_status); } &&
479c790c 12478 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
12479 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12480 (eval $ac_try) 2>&5
12481 ac_status=$?
12482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12483 (exit $ac_status); }; } &&
12484 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
12485 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12486 (eval $ac_try) 2>&5
12487 ac_status=$?
12488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12489 (exit $ac_status); }; }; then
12490 ac_cv_prog_cc_g=yes
12491else
12492 echo "$as_me: failed program was:" >&5
12493sed 's/^/| /' conftest.$ac_ext >&5
12494
12495ac_cv_prog_cc_g=no
12496fi
ac1cb8d3 12497rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
12498fi
12499echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
12500echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
12501if test "$ac_test_CFLAGS" = set; then
12502 CFLAGS=$ac_save_CFLAGS
12503elif test $ac_cv_prog_cc_g = yes; then
12504 if test "$GCC" = yes; then
12505 CFLAGS="-g -O2"
12506 else
12507 CFLAGS="-g"
12508 fi
12509else
12510 if test "$GCC" = yes; then
12511 CFLAGS="-O2"
12512 else
12513 CFLAGS=
12514 fi
12515fi
12516echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
12517echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
12518if test "${ac_cv_prog_cc_stdc+set}" = set; then
12519 echo $ECHO_N "(cached) $ECHO_C" >&6
12520else
12521 ac_cv_prog_cc_stdc=no
12522ac_save_CC=$CC
12523cat >conftest.$ac_ext <<_ACEOF
12524/* confdefs.h. */
12525_ACEOF
12526cat confdefs.h >>conftest.$ac_ext
12527cat >>conftest.$ac_ext <<_ACEOF
12528/* end confdefs.h. */
12529#include <stdarg.h>
12530#include <stdio.h>
12531#include <sys/types.h>
12532#include <sys/stat.h>
12533/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
12534struct buf { int x; };
12535FILE * (*rcsopen) (struct buf *, struct stat *, int);
12536static char *e (p, i)
12537 char **p;
12538 int i;
12539{
12540 return p[i];
12541}
12542static char *f (char * (*g) (char **, int), char **p, ...)
12543{
12544 char *s;
12545 va_list v;
12546 va_start (v,p);
12547 s = g (p, va_arg (v,int));
12548 va_end (v);
12549 return s;
12550}
ac1cb8d3
VS
12551
12552/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
12553 function prototypes and stuff, but not '\xHH' hex character constants.
12554 These don't provoke an error unfortunately, instead are silently treated
12555 as 'x'. The following induces an error, until -std1 is added to get
12556 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
12557 array size at least. It's necessary to write '\x00'==0 to get something
12558 that's true only with -std1. */
12559int osf4_cc_array ['\x00' == 0 ? 1 : -1];
12560
a848cd7e
SC
12561int test (int i, double x);
12562struct s1 {int (*f) (int a);};
12563struct s2 {int (*f) (double a);};
12564int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
12565int argc;
12566char **argv;
12567int
12568main ()
12569{
12570return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
12571 ;
12572 return 0;
12573}
12574_ACEOF
12575# Don't try gcc -ansi; that turns off useful extensions and
12576# breaks some systems' header files.
12577# AIX -qlanglvl=ansi
12578# Ultrix and OSF/1 -std1
12579# HP-UX 10.20 and later -Ae
12580# HP-UX older versions -Aa -D_HPUX_SOURCE
12581# SVR4 -Xc -D__EXTENSIONS__
12582for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
12583do
12584 CC="$ac_save_CC $ac_arg"
12585 rm -f conftest.$ac_objext
12586if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 12587 (eval $ac_compile) 2>conftest.er1
a848cd7e 12588 ac_status=$?
ac1cb8d3
VS
12589 grep -v '^ *+' conftest.er1 >conftest.err
12590 rm -f conftest.er1
12591 cat conftest.err >&5
a848cd7e
SC
12592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12593 (exit $ac_status); } &&
479c790c 12594 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
12595 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12596 (eval $ac_try) 2>&5
12597 ac_status=$?
12598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12599 (exit $ac_status); }; } &&
12600 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
12601 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12602 (eval $ac_try) 2>&5
12603 ac_status=$?
12604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12605 (exit $ac_status); }; }; then
12606 ac_cv_prog_cc_stdc=$ac_arg
12607break
12608else
12609 echo "$as_me: failed program was:" >&5
12610sed 's/^/| /' conftest.$ac_ext >&5
12611
12612fi
ac1cb8d3 12613rm -f conftest.err conftest.$ac_objext
a848cd7e
SC
12614done
12615rm -f conftest.$ac_ext conftest.$ac_objext
12616CC=$ac_save_CC
12617
12618fi
12619
12620case "x$ac_cv_prog_cc_stdc" in
12621 x|xno)
12622 echo "$as_me:$LINENO: result: none needed" >&5
12623echo "${ECHO_T}none needed" >&6 ;;
12624 *)
12625 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
12626echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
12627 CC="$CC $ac_cv_prog_cc_stdc" ;;
12628esac
12629
12630# Some people use a C++ compiler to compile C. Since we use `exit',
12631# in C++ we need to declare it. In case someone uses the same compiler
12632# for both compiling C and C++ we need to have the C++ compiler decide
12633# the declaration of exit, since it's the most demanding environment.
12634cat >conftest.$ac_ext <<_ACEOF
12635#ifndef __cplusplus
12636 choke me
12637#endif
12638_ACEOF
12639rm -f conftest.$ac_objext
12640if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 12641 (eval $ac_compile) 2>conftest.er1
a848cd7e 12642 ac_status=$?
ac1cb8d3
VS
12643 grep -v '^ *+' conftest.er1 >conftest.err
12644 rm -f conftest.er1
12645 cat conftest.err >&5
a848cd7e
SC
12646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12647 (exit $ac_status); } &&
479c790c 12648 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
12649 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12650 (eval $ac_try) 2>&5
12651 ac_status=$?
12652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12653 (exit $ac_status); }; } &&
12654 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
12655 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12656 (eval $ac_try) 2>&5
12657 ac_status=$?
12658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12659 (exit $ac_status); }; }; then
12660 for ac_declaration in \
ac1cb8d3 12661 '' \
a848cd7e
SC
12662 'extern "C" void std::exit (int) throw (); using std::exit;' \
12663 'extern "C" void std::exit (int); using std::exit;' \
12664 'extern "C" void exit (int) throw ();' \
12665 'extern "C" void exit (int);' \
12666 'void exit (int);'
12667do
12668 cat >conftest.$ac_ext <<_ACEOF
12669/* confdefs.h. */
12670_ACEOF
12671cat confdefs.h >>conftest.$ac_ext
12672cat >>conftest.$ac_ext <<_ACEOF
12673/* end confdefs.h. */
de59c161 12674$ac_declaration
ac1cb8d3 12675#include <stdlib.h>
a848cd7e
SC
12676int
12677main ()
12678{
12679exit (42);
12680 ;
12681 return 0;
12682}
12683_ACEOF
12684rm -f conftest.$ac_objext
12685if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 12686 (eval $ac_compile) 2>conftest.er1
a848cd7e 12687 ac_status=$?
ac1cb8d3
VS
12688 grep -v '^ *+' conftest.er1 >conftest.err
12689 rm -f conftest.er1
12690 cat conftest.err >&5
a848cd7e
SC
12691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12692 (exit $ac_status); } &&
479c790c 12693 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
12694 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12695 (eval $ac_try) 2>&5
12696 ac_status=$?
12697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12698 (exit $ac_status); }; } &&
12699 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
12700 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12701 (eval $ac_try) 2>&5
12702 ac_status=$?
12703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12704 (exit $ac_status); }; }; then
12705 :
12706else
12707 echo "$as_me: failed program was:" >&5
12708sed 's/^/| /' conftest.$ac_ext >&5
12709
12710continue
12711fi
ac1cb8d3 12712rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
12713 cat >conftest.$ac_ext <<_ACEOF
12714/* confdefs.h. */
12715_ACEOF
12716cat confdefs.h >>conftest.$ac_ext
12717cat >>conftest.$ac_ext <<_ACEOF
12718/* end confdefs.h. */
12719$ac_declaration
12720int
12721main ()
12722{
12723exit (42);
12724 ;
12725 return 0;
12726}
12727_ACEOF
12728rm -f conftest.$ac_objext
12729if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 12730 (eval $ac_compile) 2>conftest.er1
a848cd7e 12731 ac_status=$?
ac1cb8d3
VS
12732 grep -v '^ *+' conftest.er1 >conftest.err
12733 rm -f conftest.er1
12734 cat conftest.err >&5
a848cd7e
SC
12735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12736 (exit $ac_status); } &&
479c790c 12737 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
12738 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12739 (eval $ac_try) 2>&5
12740 ac_status=$?
12741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12742 (exit $ac_status); }; } &&
12743 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
12744 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12745 (eval $ac_try) 2>&5
12746 ac_status=$?
12747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12748 (exit $ac_status); }; }; then
12749 break
12750else
12751 echo "$as_me: failed program was:" >&5
12752sed 's/^/| /' conftest.$ac_ext >&5
12753
12754fi
ac1cb8d3 12755rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
12756done
12757rm -f conftest*
12758if test -n "$ac_declaration"; then
12759 echo '#ifdef __cplusplus' >>confdefs.h
12760 echo $ac_declaration >>confdefs.h
12761 echo '#endif' >>confdefs.h
12762fi
12763
12764else
12765 echo "$as_me: failed program was:" >&5
12766sed 's/^/| /' conftest.$ac_ext >&5
12767
12768fi
ac1cb8d3 12769rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
12770ac_ext=c
12771ac_cpp='$CPP $CPPFLAGS'
12772ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12773ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12774ac_compiler_gnu=$ac_cv_c_compiler_gnu
12775
ab0ad5f1
VZ
12776
12777
12778 ac_ext=c
12779ac_cpp='$CPP $CPPFLAGS'
12780ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12781ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12782ac_compiler_gnu=$ac_cv_c_compiler_gnu
12783
12784 echo "$as_me:$LINENO: checking whether we are using the Intel C compiler" >&5
12785echo $ECHO_N "checking whether we are using the Intel C compiler... $ECHO_C" >&6
12786if test "${bakefile_cv_c_compiler___INTEL_COMPILER+set}" = set; then
12787 echo $ECHO_N "(cached) $ECHO_C" >&6
12788else
12789 cat >conftest.$ac_ext <<_ACEOF
12790/* confdefs.h. */
12791_ACEOF
12792cat confdefs.h >>conftest.$ac_ext
12793cat >>conftest.$ac_ext <<_ACEOF
12794/* end confdefs.h. */
12795
12796int
12797main ()
12798{
12799
12800 #ifndef __INTEL_COMPILER
12801 choke me
12802 #endif
12803
12804 ;
12805 return 0;
12806}
12807_ACEOF
12808rm -f conftest.$ac_objext
12809if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12810 (eval $ac_compile) 2>conftest.er1
12811 ac_status=$?
12812 grep -v '^ *+' conftest.er1 >conftest.err
12813 rm -f conftest.er1
12814 cat conftest.err >&5
12815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12816 (exit $ac_status); } &&
479c790c 12817 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ab0ad5f1
VZ
12818 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12819 (eval $ac_try) 2>&5
12820 ac_status=$?
12821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12822 (exit $ac_status); }; } &&
12823 { ac_try='test -s conftest.$ac_objext'
12824 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12825 (eval $ac_try) 2>&5
12826 ac_status=$?
12827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12828 (exit $ac_status); }; }; then
12829 bakefile_cv_c_compiler___INTEL_COMPILER=yes
12830else
12831 echo "$as_me: failed program was:" >&5
12832sed 's/^/| /' conftest.$ac_ext >&5
12833
12834bakefile_cv_c_compiler___INTEL_COMPILER=no
12835
12836fi
12837rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12838
12839
12840fi
12841echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___INTEL_COMPILER" >&5
12842echo "${ECHO_T}$bakefile_cv_c_compiler___INTEL_COMPILER" >&6
12843 ac_ext=c
12844ac_cpp='$CPP $CPPFLAGS'
12845ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12846ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12847ac_compiler_gnu=$ac_cv_c_compiler_gnu
12848
12849 if test "x$bakefile_cv_c_compiler___INTEL_COMPILER" = "xyes"; then
12850 :; INTELCC=yes
12851 else
12852 :;
12853 fi
12854
12855
12856 if test "x$GCC" != "xyes"; then
3006edc0
VZ
12857 if test "xCC" = "xC"; then
12858 echo "$as_me:$LINENO: checking if the C compiler requires -ext o" >&5
480ccd21 12859echo $ECHO_N "checking if the C compiler requires -ext o... $ECHO_C" >&6
0093c2fc 12860if test "${bakefile_cv_c_exto+set}" = set; then
480ccd21
DE
12861 echo $ECHO_N "(cached) $ECHO_C" >&6
12862else
12863 cat >conftest.$ac_ext <<_ACEOF
12864/* confdefs.h. */
12865_ACEOF
12866cat confdefs.h >>conftest.$ac_ext
12867cat >>conftest.$ac_ext <<_ACEOF
12868/* end confdefs.h. */
12869
12870int
12871main ()
12872{
12873
12874 ;
12875 return 0;
12876}
12877_ACEOF
12878rm -f conftest.$ac_objext conftest.$ac_ext.o
12879if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12880 (eval $ac_compile) 2>&5
12881 ac_status=$?
12882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12883 (exit $ac_status); }; then
12884 for ac_file in `(ls conftest.* 2>/dev/null)`; do
12885 case $ac_file in
12886 conftest.$ac_ext.o)
0093c2fc 12887 bakefile_cv_c_exto="-ext o"
480ccd21
DE
12888 ;;
12889 *)
12890 ;;
12891 esac
12892done
12893else
12894 { { echo "$as_me:$LINENO: error: cannot figure out if compiler needs -ext o: cannot compile
12895See \`config.log' for more details." >&5
12896echo "$as_me: error: cannot figure out if compiler needs -ext o: cannot compile
12897See \`config.log' for more details." >&2;}
12898 { (exit 1); exit 1; }; }
12899
12900fi
12901
12902rm -f conftest.$ac_ext.o conftest.$ac_objext conftest.$ac_ext
12903
12904fi
0093c2fc
VZ
12905echo "$as_me:$LINENO: result: $bakefile_cv_c_exto" >&5
12906echo "${ECHO_T}$bakefile_cv_c_exto" >&6
12907if test "x$bakefile_cv_c_exto" '!=' "x"; then
480ccd21 12908 if test "c" = "c"; then
0093c2fc 12909 CFLAGS="$bakefile_cv_c_exto $CFLAGS"
480ccd21
DE
12910 fi
12911 if test "c" = "cxx"; then
0093c2fc 12912 CXXFLAGS="$bakefile_cv_c_exto $CXXFLAGS"
480ccd21
DE
12913 fi
12914fi
12915
0093c2fc 12916 if test "x$bakefile_cv_c_exto" '!=' "x"; then
3006edc0
VZ
12917 unset ac_cv_prog_cc_g
12918 ac_test_CFLAGS=${CFLAGS+set}
480ccd21 12919ac_save_CFLAGS=$CFLAGS
15291213 12920CFLAGS="-g"
480ccd21
DE
12921echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
12922echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
12923if test "${ac_cv_prog_cc_g+set}" = set; then
12924 echo $ECHO_N "(cached) $ECHO_C" >&6
12925else
12926 cat >conftest.$ac_ext <<_ACEOF
12927/* confdefs.h. */
12928_ACEOF
12929cat confdefs.h >>conftest.$ac_ext
12930cat >>conftest.$ac_ext <<_ACEOF
12931/* end confdefs.h. */
12932
12933int
12934main ()
12935{
12936
12937 ;
12938 return 0;
12939}
12940_ACEOF
12941rm -f conftest.$ac_objext
12942if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12943 (eval $ac_compile) 2>conftest.er1
12944 ac_status=$?
12945 grep -v '^ *+' conftest.er1 >conftest.err
12946 rm -f conftest.er1
12947 cat conftest.err >&5
12948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12949 (exit $ac_status); } &&
479c790c 12950 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
480ccd21
DE
12951 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12952 (eval $ac_try) 2>&5
12953 ac_status=$?
12954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12955 (exit $ac_status); }; } &&
12956 { ac_try='test -s conftest.$ac_objext'
12957 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12958 (eval $ac_try) 2>&5
12959 ac_status=$?
12960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12961 (exit $ac_status); }; }; then
12962 ac_cv_prog_cc_g=yes
12963else
12964 echo "$as_me: failed program was:" >&5
12965sed 's/^/| /' conftest.$ac_ext >&5
12966
12967ac_cv_prog_cc_g=no
12968fi
12969rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12970fi
12971echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
12972echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
12973if test "$ac_test_CFLAGS" = set; then
12974 CFLAGS=$ac_save_CFLAGS
12975elif test $ac_cv_prog_cc_g = yes; then
12976 if test "$GCC" = yes; then
12977 CFLAGS="-g -O2"
12978 else
12979 CFLAGS="-g"
12980 fi
12981else
12982 if test "$GCC" = yes; then
12983 CFLAGS="-O2"
12984 else
12985 CFLAGS=
12986 fi
12987fi
3006edc0 12988 fi
ab0ad5f1 12989 fi
3006edc0
VZ
12990
12991 case `uname -s` in
12992 AIX*)
12993 ac_ext=c
12994ac_cpp='$CPP $CPPFLAGS'
12995ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12996ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12997ac_compiler_gnu=$ac_cv_c_compiler_gnu
12998
12999echo "$as_me:$LINENO: checking whether we are using the IBM xlC C compiler" >&5
13000echo $ECHO_N "checking whether we are using the IBM xlC C compiler... $ECHO_C" >&6
0093c2fc 13001if test "${bakefile_cv_c_compiler_xlc+set}" = set; then
3006edc0
VZ
13002 echo $ECHO_N "(cached) $ECHO_C" >&6
13003else
13004 cat >conftest.$ac_ext <<_ACEOF
13005/* confdefs.h. */
13006_ACEOF
13007cat confdefs.h >>conftest.$ac_ext
13008cat >>conftest.$ac_ext <<_ACEOF
13009/* end confdefs.h. */
13010
13011int
13012main ()
13013{
13014#ifndef __xlC__
13015 choke me
13016#endif
13017
13018 ;
13019 return 0;
13020}
13021_ACEOF
13022rm -f conftest.$ac_objext
13023if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13024 (eval $ac_compile) 2>conftest.er1
13025 ac_status=$?
13026 grep -v '^ *+' conftest.er1 >conftest.err
13027 rm -f conftest.er1
13028 cat conftest.err >&5
13029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13030 (exit $ac_status); } &&
479c790c 13031 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3006edc0
VZ
13032 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13033 (eval $ac_try) 2>&5
13034 ac_status=$?
13035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13036 (exit $ac_status); }; } &&
13037 { ac_try='test -s conftest.$ac_objext'
13038 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13039 (eval $ac_try) 2>&5
13040 ac_status=$?
13041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13042 (exit $ac_status); }; }; then
0093c2fc 13043 bakefile_compiler_xlc=yes
3006edc0
VZ
13044else
13045 echo "$as_me: failed program was:" >&5
13046sed 's/^/| /' conftest.$ac_ext >&5
13047
0093c2fc 13048bakefile_compiler_xlc=no
3006edc0
VZ
13049fi
13050rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
0093c2fc 13051 bakefile_cv_c_compiler_xlc=$bakefile_compiler_xlc
3006edc0
VZ
13052
13053fi
0093c2fc
VZ
13054echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler_xlc" >&5
13055echo "${ECHO_T}$bakefile_cv_c_compiler_xlc" >&6
3006edc0 13056
0093c2fc 13057XLCC=`test $bakefile_cv_c_compiler_xlc = yes && echo yes`
3006edc0
VZ
13058ac_ext=c
13059ac_cpp='$CPP $CPPFLAGS'
13060ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13061ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13062ac_compiler_gnu=$ac_cv_c_compiler_gnu
13063
13064
13065 ;;
13066
13067 Darwin)
13068 ac_ext=c
95986553
DE
13069ac_cpp='$CPP $CPPFLAGS'
13070ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13071ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13072ac_compiler_gnu=$ac_cv_c_compiler_gnu
13073
13074echo "$as_me:$LINENO: checking whether we are using the Metrowerks C compiler" >&5
13075echo $ECHO_N "checking whether we are using the Metrowerks C compiler... $ECHO_C" >&6
13076if test "${bakefile_cv_c_compiler_mwerks+set}" = set; then
13077 echo $ECHO_N "(cached) $ECHO_C" >&6
13078else
13079 cat >conftest.$ac_ext <<_ACEOF
13080/* confdefs.h. */
13081_ACEOF
13082cat confdefs.h >>conftest.$ac_ext
13083cat >>conftest.$ac_ext <<_ACEOF
13084/* end confdefs.h. */
13085
13086int
13087main ()
13088{
13089#ifndef __MWERKS__
13090 choke me
13091#endif
13092
13093 ;
13094 return 0;
13095}
13096_ACEOF
13097rm -f conftest.$ac_objext
13098if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13099 (eval $ac_compile) 2>conftest.er1
13100 ac_status=$?
13101 grep -v '^ *+' conftest.er1 >conftest.err
13102 rm -f conftest.er1
13103 cat conftest.err >&5
13104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13105 (exit $ac_status); } &&
479c790c 13106 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
95986553
DE
13107 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13108 (eval $ac_try) 2>&5
13109 ac_status=$?
13110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13111 (exit $ac_status); }; } &&
13112 { ac_try='test -s conftest.$ac_objext'
13113 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13114 (eval $ac_try) 2>&5
13115 ac_status=$?
13116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13117 (exit $ac_status); }; }; then
13118 bakefile_compiler_mwerks=yes
13119else
13120 echo "$as_me: failed program was:" >&5
13121sed 's/^/| /' conftest.$ac_ext >&5
13122
13123bakefile_compiler_mwerks=no
13124fi
13125rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13126 bakefile_cv_c_compiler_mwerks=$bakefile_compiler_mwerks
13127
13128fi
13129echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler_mwerks" >&5
13130echo "${ECHO_T}$bakefile_cv_c_compiler_mwerks" >&6
13131
0e6fa1d9 13132MWCC=`test $bakefile_cv_c_compiler_mwerks = yes && echo yes`
95986553
DE
13133ac_ext=c
13134ac_cpp='$CPP $CPPFLAGS'
13135ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13136ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13137ac_compiler_gnu=$ac_cv_c_compiler_gnu
13138
13139
3006edc0 13140 ac_ext=c
9273ffba
DE
13141ac_cpp='$CPP $CPPFLAGS'
13142ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13143ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13144ac_compiler_gnu=$ac_cv_c_compiler_gnu
13145
13146echo "$as_me:$LINENO: checking whether we are using the IBM xlC C compiler" >&5
13147echo $ECHO_N "checking whether we are using the IBM xlC C compiler... $ECHO_C" >&6
0093c2fc 13148if test "${bakefile_cv_c_compiler_xlc+set}" = set; then
9273ffba
DE
13149 echo $ECHO_N "(cached) $ECHO_C" >&6
13150else
13151 cat >conftest.$ac_ext <<_ACEOF
13152/* confdefs.h. */
13153_ACEOF
13154cat confdefs.h >>conftest.$ac_ext
13155cat >>conftest.$ac_ext <<_ACEOF
13156/* end confdefs.h. */
13157
13158int
13159main ()
13160{
13161#ifndef __xlC__
13162 choke me
13163#endif
13164
13165 ;
13166 return 0;
13167}
13168_ACEOF
13169rm -f conftest.$ac_objext
13170if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13171 (eval $ac_compile) 2>conftest.er1
13172 ac_status=$?
13173 grep -v '^ *+' conftest.er1 >conftest.err
13174 rm -f conftest.er1
13175 cat conftest.err >&5
13176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13177 (exit $ac_status); } &&
479c790c 13178 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9273ffba
DE
13179 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13180 (eval $ac_try) 2>&5
13181 ac_status=$?
13182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13183 (exit $ac_status); }; } &&
13184 { ac_try='test -s conftest.$ac_objext'
13185 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13186 (eval $ac_try) 2>&5
13187 ac_status=$?
13188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13189 (exit $ac_status); }; }; then
0093c2fc 13190 bakefile_compiler_xlc=yes
9273ffba
DE
13191else
13192 echo "$as_me: failed program was:" >&5
13193sed 's/^/| /' conftest.$ac_ext >&5
13194
0093c2fc 13195bakefile_compiler_xlc=no
9273ffba
DE
13196fi
13197rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
0093c2fc 13198 bakefile_cv_c_compiler_xlc=$bakefile_compiler_xlc
9273ffba
DE
13199
13200fi
0093c2fc
VZ
13201echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler_xlc" >&5
13202echo "${ECHO_T}$bakefile_cv_c_compiler_xlc" >&6
9273ffba 13203
0093c2fc 13204XLCC=`test $bakefile_cv_c_compiler_xlc = yes && echo yes`
9273ffba
DE
13205ac_ext=c
13206ac_cpp='$CPP $CPPFLAGS'
13207ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13208ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13209ac_compiler_gnu=$ac_cv_c_compiler_gnu
13210
13211
3006edc0
VZ
13212 ;;
13213
13214 IRIX*)
a848cd7e 13215
6dcfc289 13216
0ad5d837
VZ
13217 ac_ext=c
13218ac_cpp='$CPP $CPPFLAGS'
13219ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13220ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13221ac_compiler_gnu=$ac_cv_c_compiler_gnu
13222
13223 echo "$as_me:$LINENO: checking whether we are using the SGI C compiler" >&5
13224echo $ECHO_N "checking whether we are using the SGI C compiler... $ECHO_C" >&6
13225if test "${bakefile_cv_c_compiler__SGI_COMPILER_VERSION+set}" = set; then
13226 echo $ECHO_N "(cached) $ECHO_C" >&6
13227else
13228 cat >conftest.$ac_ext <<_ACEOF
13229/* confdefs.h. */
13230_ACEOF
13231cat confdefs.h >>conftest.$ac_ext
13232cat >>conftest.$ac_ext <<_ACEOF
13233/* end confdefs.h. */
13234
13235int
13236main ()
13237{
13238
13239 #ifndef _SGI_COMPILER_VERSION
13240 choke me
13241 #endif
13242
13243 ;
13244 return 0;
13245}
13246_ACEOF
13247rm -f conftest.$ac_objext
13248if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13249 (eval $ac_compile) 2>conftest.er1
13250 ac_status=$?
13251 grep -v '^ *+' conftest.er1 >conftest.err
13252 rm -f conftest.er1
13253 cat conftest.err >&5
13254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13255 (exit $ac_status); } &&
479c790c 13256 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
0ad5d837
VZ
13257 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13258 (eval $ac_try) 2>&5
13259 ac_status=$?
13260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13261 (exit $ac_status); }; } &&
13262 { ac_try='test -s conftest.$ac_objext'
13263 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13264 (eval $ac_try) 2>&5
13265 ac_status=$?
13266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13267 (exit $ac_status); }; }; then
13268 bakefile_cv_c_compiler__SGI_COMPILER_VERSION=yes
13269else
13270 echo "$as_me: failed program was:" >&5
13271sed 's/^/| /' conftest.$ac_ext >&5
13272
13273bakefile_cv_c_compiler__SGI_COMPILER_VERSION=no
13274
13275fi
13276rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13277
13278
13279fi
13280echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler__SGI_COMPILER_VERSION" >&5
13281echo "${ECHO_T}$bakefile_cv_c_compiler__SGI_COMPILER_VERSION" >&6
13282 ac_ext=c
13283ac_cpp='$CPP $CPPFLAGS'
13284ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13285ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13286ac_compiler_gnu=$ac_cv_c_compiler_gnu
13287
13288 if test "x$bakefile_cv_c_compiler__SGI_COMPILER_VERSION" = "xyes"; then
13289 :; SGICC=yes
13290 else
13291 :;
13292 fi
13293
13294
3006edc0
VZ
13295 ;;
13296
0093c2fc 13297 HP-UX*)
3006edc0
VZ
13298
13299
13300 ac_ext=c
13301ac_cpp='$CPP $CPPFLAGS'
13302ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13303ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13304ac_compiler_gnu=$ac_cv_c_compiler_gnu
13305
0093c2fc
VZ
13306 echo "$as_me:$LINENO: checking whether we are using the HP C compiler" >&5
13307echo $ECHO_N "checking whether we are using the HP C compiler... $ECHO_C" >&6
13308if test "${bakefile_cv_c_compiler___HP_cc+set}" = set; then
3006edc0
VZ
13309 echo $ECHO_N "(cached) $ECHO_C" >&6
13310else
13311 cat >conftest.$ac_ext <<_ACEOF
13312/* confdefs.h. */
13313_ACEOF
13314cat confdefs.h >>conftest.$ac_ext
13315cat >>conftest.$ac_ext <<_ACEOF
13316/* end confdefs.h. */
13317
13318int
13319main ()
13320{
13321
0093c2fc 13322 #ifndef __HP_cc
3006edc0
VZ
13323 choke me
13324 #endif
13325
13326 ;
13327 return 0;
13328}
13329_ACEOF
13330rm -f conftest.$ac_objext
13331if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13332 (eval $ac_compile) 2>conftest.er1
13333 ac_status=$?
13334 grep -v '^ *+' conftest.er1 >conftest.err
13335 rm -f conftest.er1
13336 cat conftest.err >&5
13337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13338 (exit $ac_status); } &&
479c790c 13339 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3006edc0
VZ
13340 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13341 (eval $ac_try) 2>&5
13342 ac_status=$?
13343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13344 (exit $ac_status); }; } &&
13345 { ac_try='test -s conftest.$ac_objext'
13346 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13347 (eval $ac_try) 2>&5
13348 ac_status=$?
13349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13350 (exit $ac_status); }; }; then
0093c2fc 13351 bakefile_cv_c_compiler___HP_cc=yes
3006edc0
VZ
13352else
13353 echo "$as_me: failed program was:" >&5
13354sed 's/^/| /' conftest.$ac_ext >&5
13355
0093c2fc 13356bakefile_cv_c_compiler___HP_cc=no
3006edc0
VZ
13357
13358fi
13359rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13360
13361
13362fi
0093c2fc
VZ
13363echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___HP_cc" >&5
13364echo "${ECHO_T}$bakefile_cv_c_compiler___HP_cc" >&6
3006edc0
VZ
13365 ac_ext=c
13366ac_cpp='$CPP $CPPFLAGS'
13367ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13368ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13369ac_compiler_gnu=$ac_cv_c_compiler_gnu
13370
0093c2fc
VZ
13371 if test "x$bakefile_cv_c_compiler___HP_cc" = "xyes"; then
13372 :; HPCC=yes
a1aa0349
VZ
13373 else
13374 :;
13375 fi
13376
13377
13378 ;;
13379
0093c2fc 13380 OSF1)
a1aa0349
VZ
13381
13382
13383 ac_ext=c
13384ac_cpp='$CPP $CPPFLAGS'
13385ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13386ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13387ac_compiler_gnu=$ac_cv_c_compiler_gnu
13388
0093c2fc
VZ
13389 echo "$as_me:$LINENO: checking whether we are using the Compaq C compiler" >&5
13390echo $ECHO_N "checking whether we are using the Compaq C compiler... $ECHO_C" >&6
13391if test "${bakefile_cv_c_compiler___DECC+set}" = set; then
a1aa0349
VZ
13392 echo $ECHO_N "(cached) $ECHO_C" >&6
13393else
13394 cat >conftest.$ac_ext <<_ACEOF
13395/* confdefs.h. */
13396_ACEOF
13397cat confdefs.h >>conftest.$ac_ext
13398cat >>conftest.$ac_ext <<_ACEOF
13399/* end confdefs.h. */
13400
13401int
13402main ()
13403{
13404
0093c2fc 13405 #ifndef __DECC
a1aa0349
VZ
13406 choke me
13407 #endif
13408
13409 ;
13410 return 0;
13411}
13412_ACEOF
13413rm -f conftest.$ac_objext
13414if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13415 (eval $ac_compile) 2>conftest.er1
13416 ac_status=$?
13417 grep -v '^ *+' conftest.er1 >conftest.err
13418 rm -f conftest.er1
13419 cat conftest.err >&5
13420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13421 (exit $ac_status); } &&
479c790c 13422 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
a1aa0349
VZ
13423 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13424 (eval $ac_try) 2>&5
13425 ac_status=$?
13426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13427 (exit $ac_status); }; } &&
13428 { ac_try='test -s conftest.$ac_objext'
13429 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13430 (eval $ac_try) 2>&5
13431 ac_status=$?
13432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13433 (exit $ac_status); }; }; then
0093c2fc 13434 bakefile_cv_c_compiler___DECC=yes
a1aa0349
VZ
13435else
13436 echo "$as_me: failed program was:" >&5
13437sed 's/^/| /' conftest.$ac_ext >&5
13438
0093c2fc 13439bakefile_cv_c_compiler___DECC=no
a1aa0349
VZ
13440
13441fi
13442rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13443
13444
13445fi
0093c2fc
VZ
13446echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___DECC" >&5
13447echo "${ECHO_T}$bakefile_cv_c_compiler___DECC" >&6
a1aa0349
VZ
13448 ac_ext=c
13449ac_cpp='$CPP $CPPFLAGS'
13450ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13451ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13452ac_compiler_gnu=$ac_cv_c_compiler_gnu
13453
0093c2fc
VZ
13454 if test "x$bakefile_cv_c_compiler___DECC" = "xyes"; then
13455 :; COMPAQCC=yes
13456 else
13457 :;
13458 fi
13459
13460
13461 ;;
13462
13463 SunOS)
13464
13465
13466 ac_ext=c
13467ac_cpp='$CPP $CPPFLAGS'
13468ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13469ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13470ac_compiler_gnu=$ac_cv_c_compiler_gnu
13471
13472 echo "$as_me:$LINENO: checking whether we are using the Sun C compiler" >&5
13473echo $ECHO_N "checking whether we are using the Sun C compiler... $ECHO_C" >&6
13474if test "${bakefile_cv_c_compiler___SUNPRO_C+set}" = set; then
13475 echo $ECHO_N "(cached) $ECHO_C" >&6
13476else
13477 cat >conftest.$ac_ext <<_ACEOF
13478/* confdefs.h. */
13479_ACEOF
13480cat confdefs.h >>conftest.$ac_ext
13481cat >>conftest.$ac_ext <<_ACEOF
13482/* end confdefs.h. */
13483
13484int
13485main ()
13486{
13487
13488 #ifndef __SUNPRO_C
13489 choke me
13490 #endif
13491
13492 ;
13493 return 0;
13494}
13495_ACEOF
13496rm -f conftest.$ac_objext
13497if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13498 (eval $ac_compile) 2>conftest.er1
13499 ac_status=$?
13500 grep -v '^ *+' conftest.er1 >conftest.err
13501 rm -f conftest.er1
13502 cat conftest.err >&5
13503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13504 (exit $ac_status); } &&
479c790c 13505 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
0093c2fc
VZ
13506 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13507 (eval $ac_try) 2>&5
13508 ac_status=$?
13509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13510 (exit $ac_status); }; } &&
13511 { ac_try='test -s conftest.$ac_objext'
13512 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13513 (eval $ac_try) 2>&5
13514 ac_status=$?
13515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13516 (exit $ac_status); }; }; then
13517 bakefile_cv_c_compiler___SUNPRO_C=yes
13518else
13519 echo "$as_me: failed program was:" >&5
13520sed 's/^/| /' conftest.$ac_ext >&5
13521
13522bakefile_cv_c_compiler___SUNPRO_C=no
13523
13524fi
13525rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13526
13527
13528fi
13529echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___SUNPRO_C" >&5
13530echo "${ECHO_T}$bakefile_cv_c_compiler___SUNPRO_C" >&6
13531 ac_ext=c
13532ac_cpp='$CPP $CPPFLAGS'
13533ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13534ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13535ac_compiler_gnu=$ac_cv_c_compiler_gnu
13536
13537 if test "x$bakefile_cv_c_compiler___SUNPRO_C" = "xyes"; then
13538 :; SUNCC=yes
3006edc0
VZ
13539 else
13540 :;
13541 fi
13542
13543
13544 ;;
13545 esac
ab0ad5f1 13546 fi
a9e5b1f0
MW
13547
13548
3006edc0 13549
a848cd7e
SC
13550ac_ext=c
13551ac_cpp='$CPP $CPPFLAGS'
13552ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13553ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13554ac_compiler_gnu=$ac_cv_c_compiler_gnu
13555echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
13556echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
13557# On Suns, sometimes $CPP names a directory.
13558if test -n "$CPP" && test -d "$CPP"; then
13559 CPP=
13560fi
13561if test -z "$CPP"; then
13562 if test "${ac_cv_prog_CPP+set}" = set; then
13563 echo $ECHO_N "(cached) $ECHO_C" >&6
13564else
13565 # Double quotes because CPP needs to be expanded
13566 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
13567 do
13568 ac_preproc_ok=false
13569for ac_c_preproc_warn_flag in '' yes
13570do
13571 # Use a header file that comes with gcc, so configuring glibc
13572 # with a fresh cross-compiler works.
13573 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13574 # <limits.h> exists even on freestanding compilers.
13575 # On the NeXT, cc -E runs the code through the compiler's parser,
13576 # not just through cpp. "Syntax error" is here to catch this case.
13577 cat >conftest.$ac_ext <<_ACEOF
13578/* confdefs.h. */
13579_ACEOF
13580cat confdefs.h >>conftest.$ac_ext
13581cat >>conftest.$ac_ext <<_ACEOF
13582/* end confdefs.h. */
13583#ifdef __STDC__
13584# include <limits.h>
13585#else
13586# include <assert.h>
13587#endif
ac1cb8d3 13588 Syntax error
a848cd7e
SC
13589_ACEOF
13590if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13591 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13592 ac_status=$?
13593 grep -v '^ *+' conftest.er1 >conftest.err
13594 rm -f conftest.er1
13595 cat conftest.err >&5
13596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13597 (exit $ac_status); } >/dev/null; then
13598 if test -s conftest.err; then
13599 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 13600 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
13601 else
13602 ac_cpp_err=
13603 fi
13604else
13605 ac_cpp_err=yes
13606fi
13607if test -z "$ac_cpp_err"; then
13608 :
13609else
13610 echo "$as_me: failed program was:" >&5
13611sed 's/^/| /' conftest.$ac_ext >&5
13612
13613 # Broken: fails on valid input.
13614continue
13615fi
13616rm -f conftest.err conftest.$ac_ext
13617
13618 # OK, works on sane cases. Now check whether non-existent headers
13619 # can be detected and how.
13620 cat >conftest.$ac_ext <<_ACEOF
13621/* confdefs.h. */
13622_ACEOF
13623cat confdefs.h >>conftest.$ac_ext
13624cat >>conftest.$ac_ext <<_ACEOF
13625/* end confdefs.h. */
13626#include <ac_nonexistent.h>
13627_ACEOF
13628if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13629 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13630 ac_status=$?
13631 grep -v '^ *+' conftest.er1 >conftest.err
13632 rm -f conftest.er1
13633 cat conftest.err >&5
13634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13635 (exit $ac_status); } >/dev/null; then
13636 if test -s conftest.err; then
13637 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 13638 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
13639 else
13640 ac_cpp_err=
13641 fi
13642else
13643 ac_cpp_err=yes
13644fi
13645if test -z "$ac_cpp_err"; then
13646 # Broken: success on invalid input.
13647continue
13648else
13649 echo "$as_me: failed program was:" >&5
13650sed 's/^/| /' conftest.$ac_ext >&5
13651
13652 # Passes both tests.
13653ac_preproc_ok=:
13654break
13655fi
13656rm -f conftest.err conftest.$ac_ext
13657
13658done
13659# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13660rm -f conftest.err conftest.$ac_ext
13661if $ac_preproc_ok; then
13662 break
13663fi
13664
13665 done
13666 ac_cv_prog_CPP=$CPP
13667
13668fi
13669 CPP=$ac_cv_prog_CPP
13670else
13671 ac_cv_prog_CPP=$CPP
13672fi
13673echo "$as_me:$LINENO: result: $CPP" >&5
13674echo "${ECHO_T}$CPP" >&6
13675ac_preproc_ok=false
13676for ac_c_preproc_warn_flag in '' yes
13677do
13678 # Use a header file that comes with gcc, so configuring glibc
13679 # with a fresh cross-compiler works.
13680 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13681 # <limits.h> exists even on freestanding compilers.
13682 # On the NeXT, cc -E runs the code through the compiler's parser,
13683 # not just through cpp. "Syntax error" is here to catch this case.
13684 cat >conftest.$ac_ext <<_ACEOF
13685/* confdefs.h. */
13686_ACEOF
13687cat confdefs.h >>conftest.$ac_ext
13688cat >>conftest.$ac_ext <<_ACEOF
13689/* end confdefs.h. */
13690#ifdef __STDC__
13691# include <limits.h>
13692#else
13693# include <assert.h>
13694#endif
ac1cb8d3 13695 Syntax error
a848cd7e
SC
13696_ACEOF
13697if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13698 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13699 ac_status=$?
13700 grep -v '^ *+' conftest.er1 >conftest.err
13701 rm -f conftest.er1
13702 cat conftest.err >&5
13703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13704 (exit $ac_status); } >/dev/null; then
13705 if test -s conftest.err; then
13706 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 13707 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
13708 else
13709 ac_cpp_err=
13710 fi
13711else
13712 ac_cpp_err=yes
13713fi
13714if test -z "$ac_cpp_err"; then
13715 :
13716else
13717 echo "$as_me: failed program was:" >&5
13718sed 's/^/| /' conftest.$ac_ext >&5
13719
13720 # Broken: fails on valid input.
13721continue
13722fi
13723rm -f conftest.err conftest.$ac_ext
13724
13725 # OK, works on sane cases. Now check whether non-existent headers
13726 # can be detected and how.
13727 cat >conftest.$ac_ext <<_ACEOF
13728/* confdefs.h. */
13729_ACEOF
13730cat confdefs.h >>conftest.$ac_ext
13731cat >>conftest.$ac_ext <<_ACEOF
13732/* end confdefs.h. */
13733#include <ac_nonexistent.h>
13734_ACEOF
13735if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13736 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13737 ac_status=$?
13738 grep -v '^ *+' conftest.er1 >conftest.err
13739 rm -f conftest.er1
13740 cat conftest.err >&5
13741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13742 (exit $ac_status); } >/dev/null; then
13743 if test -s conftest.err; then
13744 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 13745 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
13746 else
13747 ac_cpp_err=
13748 fi
13749else
13750 ac_cpp_err=yes
13751fi
13752if test -z "$ac_cpp_err"; then
13753 # Broken: success on invalid input.
13754continue
13755else
13756 echo "$as_me: failed program was:" >&5
13757sed 's/^/| /' conftest.$ac_ext >&5
13758
13759 # Passes both tests.
13760ac_preproc_ok=:
13761break
13762fi
13763rm -f conftest.err conftest.$ac_ext
13764
13765done
13766# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13767rm -f conftest.err conftest.$ac_ext
13768if $ac_preproc_ok; then
13769 :
13770else
13771 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
13772See \`config.log' for more details." >&5
13773echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
13774See \`config.log' for more details." >&2;}
13775 { (exit 1); exit 1; }; }
13776fi
13777
13778ac_ext=c
13779ac_cpp='$CPP $CPPFLAGS'
13780ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13781ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13782ac_compiler_gnu=$ac_cv_c_compiler_gnu
13783
13784
13785echo "$as_me:$LINENO: checking for egrep" >&5
13786echo $ECHO_N "checking for egrep... $ECHO_C" >&6
13787if test "${ac_cv_prog_egrep+set}" = set; then
13788 echo $ECHO_N "(cached) $ECHO_C" >&6
13789else
13790 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
13791 then ac_cv_prog_egrep='grep -E'
13792 else ac_cv_prog_egrep='egrep'
13793 fi
13794fi
13795echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
13796echo "${ECHO_T}$ac_cv_prog_egrep" >&6
13797 EGREP=$ac_cv_prog_egrep
13798
13799
13800if test $ac_cv_c_compiler_gnu = yes; then
13801 echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
13802echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
13803if test "${ac_cv_prog_gcc_traditional+set}" = set; then
13804 echo $ECHO_N "(cached) $ECHO_C" >&6
13805else
13806 ac_pattern="Autoconf.*'x'"
13807 cat >conftest.$ac_ext <<_ACEOF
13808/* confdefs.h. */
13809_ACEOF
13810cat confdefs.h >>conftest.$ac_ext
13811cat >>conftest.$ac_ext <<_ACEOF
13812/* end confdefs.h. */
13813#include <sgtty.h>
13814Autoconf TIOCGETP
13815_ACEOF
13816if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13817 $EGREP "$ac_pattern" >/dev/null 2>&1; then
13818 ac_cv_prog_gcc_traditional=yes
13819else
13820 ac_cv_prog_gcc_traditional=no
13821fi
13822rm -f conftest*
13823
13824
13825 if test $ac_cv_prog_gcc_traditional = no; then
13826 cat >conftest.$ac_ext <<_ACEOF
13827/* confdefs.h. */
13828_ACEOF
13829cat confdefs.h >>conftest.$ac_ext
13830cat >>conftest.$ac_ext <<_ACEOF
13831/* end confdefs.h. */
13832#include <termio.h>
13833Autoconf TCGETA
13834_ACEOF
13835if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13836 $EGREP "$ac_pattern" >/dev/null 2>&1; then
13837 ac_cv_prog_gcc_traditional=yes
13838fi
13839rm -f conftest*
13840
13841 fi
13842fi
13843echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
13844echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
13845 if test $ac_cv_prog_gcc_traditional = yes; then
13846 CC="$CC -traditional"
13847 fi
13848fi
13849
13850
a848cd7e
SC
13851ac_ext=cc
13852ac_cpp='$CXXCPP $CPPFLAGS'
13853ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13854ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13855ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13856
13857
13858CXXFLAGS=${CXXFLAGS:=}
6dcfc289
DE
13859
13860
3006edc0 13861
6dcfc289 13862 ac_ext=cc
a848cd7e
SC
13863ac_cpp='$CXXCPP $CPPFLAGS'
13864ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13865ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13866ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13867if test -n "$ac_tool_prefix"; then
13868 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
13869 do
13870 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
13871set dummy $ac_tool_prefix$ac_prog; ac_word=$2
13872echo "$as_me:$LINENO: checking for $ac_word" >&5
13873echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13874if test "${ac_cv_prog_CXX+set}" = set; then
13875 echo $ECHO_N "(cached) $ECHO_C" >&6
13876else
13877 if test -n "$CXX"; then
13878 ac_cv_prog_CXX="$CXX" # Let the user override the test.
13879else
13880as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13881for as_dir in $PATH
13882do
13883 IFS=$as_save_IFS
13884 test -z "$as_dir" && as_dir=.
13885 for ac_exec_ext in '' $ac_executable_extensions; do
13886 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13887 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
13888 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13889 break 2
13890 fi
13891done
13892done
13893
13894fi
13895fi
13896CXX=$ac_cv_prog_CXX
13897if test -n "$CXX"; then
13898 echo "$as_me:$LINENO: result: $CXX" >&5
13899echo "${ECHO_T}$CXX" >&6
13900else
13901 echo "$as_me:$LINENO: result: no" >&5
13902echo "${ECHO_T}no" >&6
13903fi
13904
13905 test -n "$CXX" && break
13906 done
13907fi
13908if test -z "$CXX"; then
13909 ac_ct_CXX=$CXX
13910 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
13911do
13912 # Extract the first word of "$ac_prog", so it can be a program name with args.
13913set dummy $ac_prog; ac_word=$2
13914echo "$as_me:$LINENO: checking for $ac_word" >&5
13915echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13916if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
13917 echo $ECHO_N "(cached) $ECHO_C" >&6
13918else
13919 if test -n "$ac_ct_CXX"; then
13920 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
13921else
13922as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13923for as_dir in $PATH
13924do
13925 IFS=$as_save_IFS
13926 test -z "$as_dir" && as_dir=.
13927 for ac_exec_ext in '' $ac_executable_extensions; do
13928 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13929 ac_cv_prog_ac_ct_CXX="$ac_prog"
13930 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13931 break 2
13932 fi
13933done
13934done
13935
13936fi
13937fi
13938ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
13939if test -n "$ac_ct_CXX"; then
13940 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
13941echo "${ECHO_T}$ac_ct_CXX" >&6
13942else
13943 echo "$as_me:$LINENO: result: no" >&5
13944echo "${ECHO_T}no" >&6
13945fi
13946
13947 test -n "$ac_ct_CXX" && break
13948done
13949test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
13950
13951 CXX=$ac_ct_CXX
13952fi
13953
13954
13955# Provide some information about the compiler.
13956echo "$as_me:$LINENO:" \
13957 "checking for C++ compiler version" >&5
13958ac_compiler=`set X $ac_compile; echo $2`
13959{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
13960 (eval $ac_compiler --version </dev/null >&5) 2>&5
13961 ac_status=$?
13962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13963 (exit $ac_status); }
13964{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
13965 (eval $ac_compiler -v </dev/null >&5) 2>&5
13966 ac_status=$?
13967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13968 (exit $ac_status); }
13969{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
13970 (eval $ac_compiler -V </dev/null >&5) 2>&5
13971 ac_status=$?
13972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13973 (exit $ac_status); }
13974
13975echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
13976echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
13977if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
13978 echo $ECHO_N "(cached) $ECHO_C" >&6
13979else
13980 cat >conftest.$ac_ext <<_ACEOF
13981/* confdefs.h. */
13982_ACEOF
13983cat confdefs.h >>conftest.$ac_ext
13984cat >>conftest.$ac_ext <<_ACEOF
13985/* end confdefs.h. */
13986
13987int
13988main ()
13989{
13990#ifndef __GNUC__
13991 choke me
13992#endif
13993
13994 ;
13995 return 0;
13996}
13997_ACEOF
13998rm -f conftest.$ac_objext
13999if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 14000 (eval $ac_compile) 2>conftest.er1
a848cd7e 14001 ac_status=$?
ac1cb8d3
VS
14002 grep -v '^ *+' conftest.er1 >conftest.err
14003 rm -f conftest.er1
14004 cat conftest.err >&5
a848cd7e
SC
14005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14006 (exit $ac_status); } &&
479c790c 14007 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
14008 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14009 (eval $ac_try) 2>&5
14010 ac_status=$?
14011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14012 (exit $ac_status); }; } &&
14013 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
14014 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14015 (eval $ac_try) 2>&5
14016 ac_status=$?
14017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14018 (exit $ac_status); }; }; then
14019 ac_compiler_gnu=yes
14020else
14021 echo "$as_me: failed program was:" >&5
14022sed 's/^/| /' conftest.$ac_ext >&5
14023
14024ac_compiler_gnu=no
14025fi
ac1cb8d3 14026rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
14027ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
14028
14029fi
14030echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
14031echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
14032GXX=`test $ac_compiler_gnu = yes && echo yes`
14033ac_test_CXXFLAGS=${CXXFLAGS+set}
14034ac_save_CXXFLAGS=$CXXFLAGS
14035CXXFLAGS="-g"
14036echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
14037echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
14038if test "${ac_cv_prog_cxx_g+set}" = set; then
14039 echo $ECHO_N "(cached) $ECHO_C" >&6
14040else
14041 cat >conftest.$ac_ext <<_ACEOF
14042/* confdefs.h. */
14043_ACEOF
14044cat confdefs.h >>conftest.$ac_ext
14045cat >>conftest.$ac_ext <<_ACEOF
14046/* end confdefs.h. */
14047
14048int
14049main ()
14050{
14051
14052 ;
14053 return 0;
14054}
14055_ACEOF
14056rm -f conftest.$ac_objext
14057if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 14058 (eval $ac_compile) 2>conftest.er1
a848cd7e 14059 ac_status=$?
ac1cb8d3
VS
14060 grep -v '^ *+' conftest.er1 >conftest.err
14061 rm -f conftest.er1
14062 cat conftest.err >&5
a848cd7e
SC
14063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14064 (exit $ac_status); } &&
479c790c 14065 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
14066 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14067 (eval $ac_try) 2>&5
14068 ac_status=$?
14069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14070 (exit $ac_status); }; } &&
14071 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
14072 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14073 (eval $ac_try) 2>&5
14074 ac_status=$?
14075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14076 (exit $ac_status); }; }; then
14077 ac_cv_prog_cxx_g=yes
14078else
14079 echo "$as_me: failed program was:" >&5
14080sed 's/^/| /' conftest.$ac_ext >&5
14081
14082ac_cv_prog_cxx_g=no
14083fi
ac1cb8d3 14084rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
14085fi
14086echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
14087echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
14088if test "$ac_test_CXXFLAGS" = set; then
14089 CXXFLAGS=$ac_save_CXXFLAGS
14090elif test $ac_cv_prog_cxx_g = yes; then
14091 if test "$GXX" = yes; then
15291213 14092 CXXFLAGS="-g -O2"
a848cd7e 14093 else
15291213 14094 CXXFLAGS="-g"
a848cd7e
SC
14095 fi
14096else
14097 if test "$GXX" = yes; then
14098 CXXFLAGS="-O2"
14099 else
14100 CXXFLAGS=
14101 fi
14102fi
14103for ac_declaration in \
ac1cb8d3 14104 '' \
a848cd7e
SC
14105 'extern "C" void std::exit (int) throw (); using std::exit;' \
14106 'extern "C" void std::exit (int); using std::exit;' \
14107 'extern "C" void exit (int) throw ();' \
14108 'extern "C" void exit (int);' \
14109 'void exit (int);'
14110do
14111 cat >conftest.$ac_ext <<_ACEOF
14112/* confdefs.h. */
14113_ACEOF
14114cat confdefs.h >>conftest.$ac_ext
14115cat >>conftest.$ac_ext <<_ACEOF
14116/* end confdefs.h. */
de59c161 14117$ac_declaration
ac1cb8d3 14118#include <stdlib.h>
a848cd7e
SC
14119int
14120main ()
14121{
14122exit (42);
14123 ;
14124 return 0;
14125}
14126_ACEOF
14127rm -f conftest.$ac_objext
14128if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 14129 (eval $ac_compile) 2>conftest.er1
a848cd7e 14130 ac_status=$?
ac1cb8d3
VS
14131 grep -v '^ *+' conftest.er1 >conftest.err
14132 rm -f conftest.er1
14133 cat conftest.err >&5
a848cd7e
SC
14134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14135 (exit $ac_status); } &&
479c790c 14136 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
14137 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14138 (eval $ac_try) 2>&5
14139 ac_status=$?
14140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14141 (exit $ac_status); }; } &&
14142 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
14143 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14144 (eval $ac_try) 2>&5
14145 ac_status=$?
14146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14147 (exit $ac_status); }; }; then
14148 :
14149else
14150 echo "$as_me: failed program was:" >&5
14151sed 's/^/| /' conftest.$ac_ext >&5
14152
14153continue
14154fi
ac1cb8d3 14155rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
14156 cat >conftest.$ac_ext <<_ACEOF
14157/* confdefs.h. */
14158_ACEOF
14159cat confdefs.h >>conftest.$ac_ext
14160cat >>conftest.$ac_ext <<_ACEOF
14161/* end confdefs.h. */
14162$ac_declaration
14163int
14164main ()
14165{
14166exit (42);
14167 ;
14168 return 0;
14169}
14170_ACEOF
14171rm -f conftest.$ac_objext
14172if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 14173 (eval $ac_compile) 2>conftest.er1
a848cd7e 14174 ac_status=$?
ac1cb8d3
VS
14175 grep -v '^ *+' conftest.er1 >conftest.err
14176 rm -f conftest.er1
14177 cat conftest.err >&5
a848cd7e
SC
14178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14179 (exit $ac_status); } &&
479c790c 14180 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
14181 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14182 (eval $ac_try) 2>&5
14183 ac_status=$?
14184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14185 (exit $ac_status); }; } &&
14186 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
14187 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14188 (eval $ac_try) 2>&5
14189 ac_status=$?
14190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14191 (exit $ac_status); }; }; then
14192 break
14193else
14194 echo "$as_me: failed program was:" >&5
14195sed 's/^/| /' conftest.$ac_ext >&5
14196
14197fi
ac1cb8d3 14198rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
14199done
14200rm -f conftest*
14201if test -n "$ac_declaration"; then
14202 echo '#ifdef __cplusplus' >>confdefs.h
14203 echo $ac_declaration >>confdefs.h
14204 echo '#endif' >>confdefs.h
14205fi
14206
14207ac_ext=cc
14208ac_cpp='$CXXCPP $CPPFLAGS'
14209ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14210ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14211ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14212
ab0ad5f1
VZ
14213
14214
14215 ac_ext=cc
14216ac_cpp='$CXXCPP $CPPFLAGS'
14217ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14218ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14219ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14220
14221 echo "$as_me:$LINENO: checking whether we are using the Intel C++ compiler" >&5
14222echo $ECHO_N "checking whether we are using the Intel C++ compiler... $ECHO_C" >&6
14223if test "${bakefile_cv_cxx_compiler___INTEL_COMPILER+set}" = set; then
14224 echo $ECHO_N "(cached) $ECHO_C" >&6
14225else
14226 cat >conftest.$ac_ext <<_ACEOF
14227/* confdefs.h. */
14228_ACEOF
14229cat confdefs.h >>conftest.$ac_ext
14230cat >>conftest.$ac_ext <<_ACEOF
14231/* end confdefs.h. */
14232
14233int
14234main ()
14235{
14236
14237 #ifndef __INTEL_COMPILER
14238 choke me
14239 #endif
14240
14241 ;
14242 return 0;
14243}
14244_ACEOF
14245rm -f conftest.$ac_objext
14246if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14247 (eval $ac_compile) 2>conftest.er1
14248 ac_status=$?
14249 grep -v '^ *+' conftest.er1 >conftest.err
14250 rm -f conftest.er1
14251 cat conftest.err >&5
14252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14253 (exit $ac_status); } &&
479c790c 14254 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ab0ad5f1
VZ
14255 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14256 (eval $ac_try) 2>&5
14257 ac_status=$?
14258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14259 (exit $ac_status); }; } &&
14260 { ac_try='test -s conftest.$ac_objext'
14261 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14262 (eval $ac_try) 2>&5
14263 ac_status=$?
14264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14265 (exit $ac_status); }; }; then
14266 bakefile_cv_cxx_compiler___INTEL_COMPILER=yes
14267else
14268 echo "$as_me: failed program was:" >&5
14269sed 's/^/| /' conftest.$ac_ext >&5
14270
14271bakefile_cv_cxx_compiler___INTEL_COMPILER=no
14272
14273fi
14274rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14275
14276
14277fi
14278echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___INTEL_COMPILER" >&5
14279echo "${ECHO_T}$bakefile_cv_cxx_compiler___INTEL_COMPILER" >&6
14280 ac_ext=cc
14281ac_cpp='$CXXCPP $CPPFLAGS'
14282ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14283ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14284ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14285
14286 if test "x$bakefile_cv_cxx_compiler___INTEL_COMPILER" = "xyes"; then
14287 :; INTELCXX=yes
14288 else
14289 :;
14290 fi
14291
14292
3006edc0
VZ
14293 if test "x$GCXX" != "xyes"; then
14294 if test "xCXX" = "xC"; then
14295 echo "$as_me:$LINENO: checking if the C++ compiler requires -ext o" >&5
480ccd21 14296echo $ECHO_N "checking if the C++ compiler requires -ext o... $ECHO_C" >&6
0093c2fc 14297if test "${bakefile_cv_cxx_exto+set}" = set; then
480ccd21
DE
14298 echo $ECHO_N "(cached) $ECHO_C" >&6
14299else
14300 cat >conftest.$ac_ext <<_ACEOF
14301/* confdefs.h. */
14302_ACEOF
14303cat confdefs.h >>conftest.$ac_ext
14304cat >>conftest.$ac_ext <<_ACEOF
14305/* end confdefs.h. */
14306
14307int
14308main ()
14309{
14310
14311 ;
14312 return 0;
14313}
14314_ACEOF
14315rm -f conftest.$ac_objext conftest.$ac_ext.o
14316if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14317 (eval $ac_compile) 2>&5
14318 ac_status=$?
14319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14320 (exit $ac_status); }; then
14321 for ac_file in `(ls conftest.* 2>/dev/null)`; do
14322 case $ac_file in
14323 conftest.$ac_ext.o)
0093c2fc 14324 bakefile_cv_cxx_exto="-ext o"
480ccd21
DE
14325 ;;
14326 *)
14327 ;;
14328 esac
14329done
14330else
14331 { { echo "$as_me:$LINENO: error: cannot figure out if compiler needs -ext o: cannot compile
14332See \`config.log' for more details." >&5
14333echo "$as_me: error: cannot figure out if compiler needs -ext o: cannot compile
14334See \`config.log' for more details." >&2;}
14335 { (exit 1); exit 1; }; }
14336
14337fi
14338
14339rm -f conftest.$ac_ext.o conftest.$ac_objext conftest.$ac_ext
14340
14341fi
0093c2fc
VZ
14342echo "$as_me:$LINENO: result: $bakefile_cv_cxx_exto" >&5
14343echo "${ECHO_T}$bakefile_cv_cxx_exto" >&6
14344if test "x$bakefile_cv_cxx_exto" '!=' "x"; then
480ccd21 14345 if test "cxx" = "c"; then
0093c2fc 14346 CFLAGS="$bakefile_cv_cxx_exto $CFLAGS"
480ccd21
DE
14347 fi
14348 if test "cxx" = "cxx"; then
0093c2fc 14349 CXXFLAGS="$bakefile_cv_cxx_exto $CXXFLAGS"
480ccd21
DE
14350 fi
14351fi
14352
0093c2fc 14353 if test "x$bakefile_cv_c_exto" '!=' "x"; then
3006edc0
VZ
14354 unset ac_cv_prog_cc_g
14355 ac_test_CFLAGS=${CFLAGS+set}
14356ac_save_CFLAGS=$CFLAGS
15291213 14357CFLAGS="-g"
3006edc0
VZ
14358echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
14359echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
14360if test "${ac_cv_prog_cc_g+set}" = set; then
480ccd21
DE
14361 echo $ECHO_N "(cached) $ECHO_C" >&6
14362else
14363 cat >conftest.$ac_ext <<_ACEOF
14364/* confdefs.h. */
14365_ACEOF
14366cat confdefs.h >>conftest.$ac_ext
14367cat >>conftest.$ac_ext <<_ACEOF
14368/* end confdefs.h. */
14369
14370int
14371main ()
14372{
14373
14374 ;
14375 return 0;
14376}
14377_ACEOF
14378rm -f conftest.$ac_objext
14379if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14380 (eval $ac_compile) 2>conftest.er1
14381 ac_status=$?
14382 grep -v '^ *+' conftest.er1 >conftest.err
14383 rm -f conftest.er1
14384 cat conftest.err >&5
14385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14386 (exit $ac_status); } &&
479c790c 14387 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
480ccd21
DE
14388 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14389 (eval $ac_try) 2>&5
14390 ac_status=$?
14391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14392 (exit $ac_status); }; } &&
14393 { ac_try='test -s conftest.$ac_objext'
14394 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14395 (eval $ac_try) 2>&5
14396 ac_status=$?
14397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14398 (exit $ac_status); }; }; then
3006edc0 14399 ac_cv_prog_cc_g=yes
480ccd21
DE
14400else
14401 echo "$as_me: failed program was:" >&5
14402sed 's/^/| /' conftest.$ac_ext >&5
14403
3006edc0 14404ac_cv_prog_cc_g=no
480ccd21
DE
14405fi
14406rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14407fi
3006edc0
VZ
14408echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
14409echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
14410if test "$ac_test_CFLAGS" = set; then
14411 CFLAGS=$ac_save_CFLAGS
14412elif test $ac_cv_prog_cc_g = yes; then
14413 if test "$GCC" = yes; then
14414 CFLAGS="-g -O2"
480ccd21 14415 else
3006edc0 14416 CFLAGS="-g"
480ccd21
DE
14417 fi
14418else
3006edc0
VZ
14419 if test "$GCC" = yes; then
14420 CFLAGS="-O2"
480ccd21 14421 else
3006edc0 14422 CFLAGS=
480ccd21
DE
14423 fi
14424fi
3006edc0 14425 fi
ab0ad5f1 14426 fi
3006edc0
VZ
14427
14428 case `uname -s` in
14429 AIX*)
14430 ac_ext=cc
14431ac_cpp='$CXXCPP $CPPFLAGS'
14432ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14433ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14434ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14435
14436echo "$as_me:$LINENO: checking whether we are using the IBM xlC C++ compiler" >&5
14437echo $ECHO_N "checking whether we are using the IBM xlC C++ compiler... $ECHO_C" >&6
0093c2fc 14438if test "${bakefile_cv_cxx_compiler_xlc+set}" = set; then
3006edc0
VZ
14439 echo $ECHO_N "(cached) $ECHO_C" >&6
14440else
14441 cat >conftest.$ac_ext <<_ACEOF
14442/* confdefs.h. */
14443_ACEOF
14444cat confdefs.h >>conftest.$ac_ext
14445cat >>conftest.$ac_ext <<_ACEOF
14446/* end confdefs.h. */
14447
14448int
14449main ()
14450{
14451#ifndef __xlC__
14452 choke me
14453#endif
14454
14455 ;
14456 return 0;
14457}
14458_ACEOF
14459rm -f conftest.$ac_objext
14460if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14461 (eval $ac_compile) 2>conftest.er1
14462 ac_status=$?
14463 grep -v '^ *+' conftest.er1 >conftest.err
14464 rm -f conftest.er1
14465 cat conftest.err >&5
14466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14467 (exit $ac_status); } &&
479c790c 14468 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3006edc0
VZ
14469 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14470 (eval $ac_try) 2>&5
14471 ac_status=$?
14472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14473 (exit $ac_status); }; } &&
14474 { ac_try='test -s conftest.$ac_objext'
14475 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14476 (eval $ac_try) 2>&5
14477 ac_status=$?
14478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14479 (exit $ac_status); }; }; then
0093c2fc 14480 bakefile_compiler_xlc=yes
3006edc0
VZ
14481else
14482 echo "$as_me: failed program was:" >&5
14483sed 's/^/| /' conftest.$ac_ext >&5
14484
0093c2fc 14485bakefile_compiler_xlc=no
3006edc0
VZ
14486fi
14487rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
0093c2fc 14488 bakefile_cv_cxx_compiler_xlc=$bakefile_compiler_xlc
3006edc0
VZ
14489
14490fi
0093c2fc
VZ
14491echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler_xlc" >&5
14492echo "${ECHO_T}$bakefile_cv_cxx_compiler_xlc" >&6
3006edc0 14493
0093c2fc 14494XLCXX=`test $bakefile_cv_cxx_compiler_xlc = yes && echo yes`
3006edc0
VZ
14495ac_ext=cc
14496ac_cpp='$CXXCPP $CPPFLAGS'
14497ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14498ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14499ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14500
14501
14502 ;;
14503
14504 Darwin)
14505 ac_ext=cc
95986553
DE
14506ac_cpp='$CXXCPP $CPPFLAGS'
14507ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14508ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14509ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14510
14511echo "$as_me:$LINENO: checking whether we are using the Metrowerks C++ compiler" >&5
14512echo $ECHO_N "checking whether we are using the Metrowerks C++ compiler... $ECHO_C" >&6
14513if test "${bakefile_cv_cxx_compiler_mwerks+set}" = set; then
14514 echo $ECHO_N "(cached) $ECHO_C" >&6
14515else
14516 cat >conftest.$ac_ext <<_ACEOF
14517/* confdefs.h. */
14518_ACEOF
14519cat confdefs.h >>conftest.$ac_ext
14520cat >>conftest.$ac_ext <<_ACEOF
14521/* end confdefs.h. */
14522
14523int
14524main ()
14525{
14526#ifndef __MWERKS__
14527 choke me
14528#endif
14529
14530 ;
14531 return 0;
14532}
14533_ACEOF
14534rm -f conftest.$ac_objext
14535if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14536 (eval $ac_compile) 2>conftest.er1
14537 ac_status=$?
14538 grep -v '^ *+' conftest.er1 >conftest.err
14539 rm -f conftest.er1
14540 cat conftest.err >&5
14541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14542 (exit $ac_status); } &&
479c790c 14543 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
95986553
DE
14544 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14545 (eval $ac_try) 2>&5
14546 ac_status=$?
14547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14548 (exit $ac_status); }; } &&
14549 { ac_try='test -s conftest.$ac_objext'
14550 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14551 (eval $ac_try) 2>&5
14552 ac_status=$?
14553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14554 (exit $ac_status); }; }; then
14555 bakefile_compiler_mwerks=yes
14556else
14557 echo "$as_me: failed program was:" >&5
14558sed 's/^/| /' conftest.$ac_ext >&5
14559
14560bakefile_compiler_mwerks=no
14561fi
14562rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14563 bakefile_cv_cxx_compiler_mwerks=$bakefile_compiler_mwerks
14564
14565fi
14566echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler_mwerks" >&5
14567echo "${ECHO_T}$bakefile_cv_cxx_compiler_mwerks" >&6
14568
0e6fa1d9 14569MWCXX=`test $bakefile_cv_cxx_compiler_mwerks = yes && echo yes`
95986553
DE
14570ac_ext=cc
14571ac_cpp='$CXXCPP $CPPFLAGS'
14572ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14573ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14574ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14575
14576
3006edc0 14577 ac_ext=cc
9273ffba
DE
14578ac_cpp='$CXXCPP $CPPFLAGS'
14579ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14580ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14581ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14582
14583echo "$as_me:$LINENO: checking whether we are using the IBM xlC C++ compiler" >&5
14584echo $ECHO_N "checking whether we are using the IBM xlC C++ compiler... $ECHO_C" >&6
0093c2fc 14585if test "${bakefile_cv_cxx_compiler_xlc+set}" = set; then
9273ffba
DE
14586 echo $ECHO_N "(cached) $ECHO_C" >&6
14587else
14588 cat >conftest.$ac_ext <<_ACEOF
14589/* confdefs.h. */
14590_ACEOF
14591cat confdefs.h >>conftest.$ac_ext
14592cat >>conftest.$ac_ext <<_ACEOF
14593/* end confdefs.h. */
14594
14595int
14596main ()
14597{
14598#ifndef __xlC__
14599 choke me
14600#endif
14601
14602 ;
14603 return 0;
14604}
14605_ACEOF
14606rm -f conftest.$ac_objext
14607if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14608 (eval $ac_compile) 2>conftest.er1
14609 ac_status=$?
14610 grep -v '^ *+' conftest.er1 >conftest.err
14611 rm -f conftest.er1
14612 cat conftest.err >&5
14613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14614 (exit $ac_status); } &&
479c790c 14615 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
9273ffba
DE
14616 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14617 (eval $ac_try) 2>&5
14618 ac_status=$?
14619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14620 (exit $ac_status); }; } &&
14621 { ac_try='test -s conftest.$ac_objext'
14622 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14623 (eval $ac_try) 2>&5
14624 ac_status=$?
14625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14626 (exit $ac_status); }; }; then
0093c2fc 14627 bakefile_compiler_xlc=yes
9273ffba
DE
14628else
14629 echo "$as_me: failed program was:" >&5
14630sed 's/^/| /' conftest.$ac_ext >&5
14631
0093c2fc 14632bakefile_compiler_xlc=no
9273ffba
DE
14633fi
14634rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
0093c2fc 14635 bakefile_cv_cxx_compiler_xlc=$bakefile_compiler_xlc
9273ffba
DE
14636
14637fi
0093c2fc
VZ
14638echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler_xlc" >&5
14639echo "${ECHO_T}$bakefile_cv_cxx_compiler_xlc" >&6
9273ffba 14640
0093c2fc 14641XLCXX=`test $bakefile_cv_cxx_compiler_xlc = yes && echo yes`
9273ffba
DE
14642ac_ext=cc
14643ac_cpp='$CXXCPP $CPPFLAGS'
14644ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14645ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14646ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14647
14648
3006edc0
VZ
14649 ;;
14650
14651 IRIX*)
95986553 14652
6dcfc289 14653
0ad5d837
VZ
14654 ac_ext=cc
14655ac_cpp='$CXXCPP $CPPFLAGS'
14656ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14657ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14658ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14659
14660 echo "$as_me:$LINENO: checking whether we are using the SGI C++ compiler" >&5
14661echo $ECHO_N "checking whether we are using the SGI C++ compiler... $ECHO_C" >&6
14662if test "${bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION+set}" = set; then
14663 echo $ECHO_N "(cached) $ECHO_C" >&6
14664else
14665 cat >conftest.$ac_ext <<_ACEOF
14666/* confdefs.h. */
14667_ACEOF
14668cat confdefs.h >>conftest.$ac_ext
14669cat >>conftest.$ac_ext <<_ACEOF
14670/* end confdefs.h. */
14671
14672int
14673main ()
14674{
14675
14676 #ifndef _SGI_COMPILER_VERSION
14677 choke me
14678 #endif
14679
14680 ;
14681 return 0;
14682}
14683_ACEOF
14684rm -f conftest.$ac_objext
14685if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14686 (eval $ac_compile) 2>conftest.er1
14687 ac_status=$?
14688 grep -v '^ *+' conftest.er1 >conftest.err
14689 rm -f conftest.er1
14690 cat conftest.err >&5
14691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14692 (exit $ac_status); } &&
479c790c 14693 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
0ad5d837
VZ
14694 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14695 (eval $ac_try) 2>&5
14696 ac_status=$?
14697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14698 (exit $ac_status); }; } &&
14699 { ac_try='test -s conftest.$ac_objext'
14700 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14701 (eval $ac_try) 2>&5
14702 ac_status=$?
14703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14704 (exit $ac_status); }; }; then
14705 bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION=yes
14706else
14707 echo "$as_me: failed program was:" >&5
14708sed 's/^/| /' conftest.$ac_ext >&5
14709
14710bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION=no
14711
14712fi
14713rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14714
14715
14716fi
14717echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION" >&5
14718echo "${ECHO_T}$bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION" >&6
14719 ac_ext=cc
14720ac_cpp='$CXXCPP $CPPFLAGS'
14721ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14722ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14723ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14724
14725 if test "x$bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION" = "xyes"; then
14726 :; SGICXX=yes
14727 else
14728 :;
14729 fi
14730
14731
3006edc0
VZ
14732 ;;
14733
0093c2fc 14734 HP-UX*)
3006edc0
VZ
14735
14736
14737 ac_ext=cc
14738ac_cpp='$CXXCPP $CPPFLAGS'
14739ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14740ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14741ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14742
0093c2fc
VZ
14743 echo "$as_me:$LINENO: checking whether we are using the HP C++ compiler" >&5
14744echo $ECHO_N "checking whether we are using the HP C++ compiler... $ECHO_C" >&6
14745if test "${bakefile_cv_cxx_compiler___HP_aCC+set}" = set; then
3006edc0
VZ
14746 echo $ECHO_N "(cached) $ECHO_C" >&6
14747else
14748 cat >conftest.$ac_ext <<_ACEOF
14749/* confdefs.h. */
14750_ACEOF
14751cat confdefs.h >>conftest.$ac_ext
14752cat >>conftest.$ac_ext <<_ACEOF
14753/* end confdefs.h. */
14754
14755int
14756main ()
14757{
14758
0093c2fc 14759 #ifndef __HP_aCC
3006edc0
VZ
14760 choke me
14761 #endif
14762
14763 ;
14764 return 0;
14765}
14766_ACEOF
14767rm -f conftest.$ac_objext
14768if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14769 (eval $ac_compile) 2>conftest.er1
14770 ac_status=$?
14771 grep -v '^ *+' conftest.er1 >conftest.err
14772 rm -f conftest.er1
14773 cat conftest.err >&5
14774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14775 (exit $ac_status); } &&
479c790c 14776 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3006edc0
VZ
14777 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14778 (eval $ac_try) 2>&5
14779 ac_status=$?
14780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14781 (exit $ac_status); }; } &&
14782 { ac_try='test -s conftest.$ac_objext'
14783 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14784 (eval $ac_try) 2>&5
14785 ac_status=$?
14786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14787 (exit $ac_status); }; }; then
0093c2fc 14788 bakefile_cv_cxx_compiler___HP_aCC=yes
3006edc0
VZ
14789else
14790 echo "$as_me: failed program was:" >&5
14791sed 's/^/| /' conftest.$ac_ext >&5
14792
0093c2fc 14793bakefile_cv_cxx_compiler___HP_aCC=no
3006edc0
VZ
14794
14795fi
14796rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14797
14798
14799fi
0093c2fc
VZ
14800echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___HP_aCC" >&5
14801echo "${ECHO_T}$bakefile_cv_cxx_compiler___HP_aCC" >&6
3006edc0
VZ
14802 ac_ext=cc
14803ac_cpp='$CXXCPP $CPPFLAGS'
14804ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14805ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14806ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14807
0093c2fc
VZ
14808 if test "x$bakefile_cv_cxx_compiler___HP_aCC" = "xyes"; then
14809 :; HPCXX=yes
a1aa0349
VZ
14810 else
14811 :;
14812 fi
14813
14814
14815 ;;
14816
0093c2fc 14817 OSF1)
a1aa0349
VZ
14818
14819
14820 ac_ext=cc
14821ac_cpp='$CXXCPP $CPPFLAGS'
14822ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14823ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14824ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14825
0093c2fc
VZ
14826 echo "$as_me:$LINENO: checking whether we are using the Compaq C++ compiler" >&5
14827echo $ECHO_N "checking whether we are using the Compaq C++ compiler... $ECHO_C" >&6
14828if test "${bakefile_cv_cxx_compiler___DECCXX+set}" = set; then
a1aa0349
VZ
14829 echo $ECHO_N "(cached) $ECHO_C" >&6
14830else
14831 cat >conftest.$ac_ext <<_ACEOF
14832/* confdefs.h. */
14833_ACEOF
14834cat confdefs.h >>conftest.$ac_ext
14835cat >>conftest.$ac_ext <<_ACEOF
14836/* end confdefs.h. */
14837
14838int
14839main ()
14840{
14841
0093c2fc 14842 #ifndef __DECCXX
a1aa0349
VZ
14843 choke me
14844 #endif
14845
14846 ;
14847 return 0;
14848}
14849_ACEOF
14850rm -f conftest.$ac_objext
14851if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14852 (eval $ac_compile) 2>conftest.er1
14853 ac_status=$?
14854 grep -v '^ *+' conftest.er1 >conftest.err
14855 rm -f conftest.er1
14856 cat conftest.err >&5
14857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14858 (exit $ac_status); } &&
479c790c 14859 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
a1aa0349
VZ
14860 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14861 (eval $ac_try) 2>&5
14862 ac_status=$?
14863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14864 (exit $ac_status); }; } &&
14865 { ac_try='test -s conftest.$ac_objext'
14866 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14867 (eval $ac_try) 2>&5
14868 ac_status=$?
14869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14870 (exit $ac_status); }; }; then
0093c2fc 14871 bakefile_cv_cxx_compiler___DECCXX=yes
a1aa0349
VZ
14872else
14873 echo "$as_me: failed program was:" >&5
14874sed 's/^/| /' conftest.$ac_ext >&5
14875
0093c2fc 14876bakefile_cv_cxx_compiler___DECCXX=no
a1aa0349
VZ
14877
14878fi
14879rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14880
14881
14882fi
0093c2fc
VZ
14883echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___DECCXX" >&5
14884echo "${ECHO_T}$bakefile_cv_cxx_compiler___DECCXX" >&6
a1aa0349
VZ
14885 ac_ext=cc
14886ac_cpp='$CXXCPP $CPPFLAGS'
14887ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14888ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14889ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14890
0093c2fc
VZ
14891 if test "x$bakefile_cv_cxx_compiler___DECCXX" = "xyes"; then
14892 :; COMPAQCXX=yes
14893 else
14894 :;
14895 fi
14896
14897
14898 ;;
14899
14900 SunOS)
14901
14902
14903 ac_ext=cc
14904ac_cpp='$CXXCPP $CPPFLAGS'
14905ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14906ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14907ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14908
14909 echo "$as_me:$LINENO: checking whether we are using the Sun C++ compiler" >&5
14910echo $ECHO_N "checking whether we are using the Sun C++ compiler... $ECHO_C" >&6
14911if test "${bakefile_cv_cxx_compiler___SUNPRO_CC+set}" = set; then
14912 echo $ECHO_N "(cached) $ECHO_C" >&6
14913else
14914 cat >conftest.$ac_ext <<_ACEOF
14915/* confdefs.h. */
14916_ACEOF
14917cat confdefs.h >>conftest.$ac_ext
14918cat >>conftest.$ac_ext <<_ACEOF
14919/* end confdefs.h. */
14920
14921int
14922main ()
14923{
14924
14925 #ifndef __SUNPRO_CC
14926 choke me
14927 #endif
14928
14929 ;
14930 return 0;
14931}
14932_ACEOF
14933rm -f conftest.$ac_objext
14934if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14935 (eval $ac_compile) 2>conftest.er1
14936 ac_status=$?
14937 grep -v '^ *+' conftest.er1 >conftest.err
14938 rm -f conftest.er1
14939 cat conftest.err >&5
14940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14941 (exit $ac_status); } &&
479c790c 14942 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
0093c2fc
VZ
14943 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14944 (eval $ac_try) 2>&5
14945 ac_status=$?
14946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14947 (exit $ac_status); }; } &&
14948 { ac_try='test -s conftest.$ac_objext'
14949 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14950 (eval $ac_try) 2>&5
14951 ac_status=$?
14952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14953 (exit $ac_status); }; }; then
14954 bakefile_cv_cxx_compiler___SUNPRO_CC=yes
14955else
14956 echo "$as_me: failed program was:" >&5
14957sed 's/^/| /' conftest.$ac_ext >&5
14958
14959bakefile_cv_cxx_compiler___SUNPRO_CC=no
14960
14961fi
14962rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14963
14964
14965fi
14966echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___SUNPRO_CC" >&5
14967echo "${ECHO_T}$bakefile_cv_cxx_compiler___SUNPRO_CC" >&6
14968 ac_ext=cc
14969ac_cpp='$CXXCPP $CPPFLAGS'
14970ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14971ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14972ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14973
14974 if test "x$bakefile_cv_cxx_compiler___SUNPRO_CC" = "xyes"; then
14975 :; SUNCXX=yes
3006edc0
VZ
14976 else
14977 :;
ab0ad5f1 14978 fi
a9e5b1f0
MW
14979
14980
3006edc0
VZ
14981 ;;
14982 esac
14983 fi
14984
14985
14986
a848cd7e
SC
14987if test -n "$ac_tool_prefix"; then
14988 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
14989set dummy ${ac_tool_prefix}ranlib; ac_word=$2
14990echo "$as_me:$LINENO: checking for $ac_word" >&5
14991echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14992if test "${ac_cv_prog_RANLIB+set}" = set; then
14993 echo $ECHO_N "(cached) $ECHO_C" >&6
14994else
14995 if test -n "$RANLIB"; then
14996 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
14997else
14998as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14999for as_dir in $PATH
15000do
15001 IFS=$as_save_IFS
15002 test -z "$as_dir" && as_dir=.
15003 for ac_exec_ext in '' $ac_executable_extensions; do
15004 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15005 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
15006 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15007 break 2
15008 fi
15009done
15010done
15011
15012fi
15013fi
15014RANLIB=$ac_cv_prog_RANLIB
15015if test -n "$RANLIB"; then
15016 echo "$as_me:$LINENO: result: $RANLIB" >&5
15017echo "${ECHO_T}$RANLIB" >&6
15018else
15019 echo "$as_me:$LINENO: result: no" >&5
15020echo "${ECHO_T}no" >&6
15021fi
15022
15023fi
15024if test -z "$ac_cv_prog_RANLIB"; then
15025 ac_ct_RANLIB=$RANLIB
15026 # Extract the first word of "ranlib", so it can be a program name with args.
15027set dummy ranlib; ac_word=$2
15028echo "$as_me:$LINENO: checking for $ac_word" >&5
15029echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15030if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
15031 echo $ECHO_N "(cached) $ECHO_C" >&6
15032else
15033 if test -n "$ac_ct_RANLIB"; then
15034 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
15035else
15036as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15037for as_dir in $PATH
15038do
15039 IFS=$as_save_IFS
15040 test -z "$as_dir" && as_dir=.
15041 for ac_exec_ext in '' $ac_executable_extensions; do
15042 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15043 ac_cv_prog_ac_ct_RANLIB="ranlib"
15044 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15045 break 2
15046 fi
15047done
15048done
15049
15050 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
15051fi
15052fi
15053ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
15054if test -n "$ac_ct_RANLIB"; then
15055 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
15056echo "${ECHO_T}$ac_ct_RANLIB" >&6
15057else
15058 echo "$as_me:$LINENO: result: no" >&5
15059echo "${ECHO_T}no" >&6
15060fi
15061
15062 RANLIB=$ac_ct_RANLIB
15063else
15064 RANLIB="$ac_cv_prog_RANLIB"
15065fi
15066
15067
8c80d384
DE
15068if test -n "$ac_tool_prefix"; then
15069 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
15070set dummy ${ac_tool_prefix}ar; ac_word=$2
a848cd7e
SC
15071echo "$as_me:$LINENO: checking for $ac_word" >&5
15072echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15073if test "${ac_cv_prog_AR+set}" = set; then
15074 echo $ECHO_N "(cached) $ECHO_C" >&6
15075else
15076 if test -n "$AR"; then
15077 ac_cv_prog_AR="$AR" # Let the user override the test.
15078else
15079as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15080for as_dir in $PATH
15081do
15082 IFS=$as_save_IFS
15083 test -z "$as_dir" && as_dir=.
15084 for ac_exec_ext in '' $ac_executable_extensions; do
15085 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8c80d384 15086 ac_cv_prog_AR="${ac_tool_prefix}ar"
a848cd7e
SC
15087 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15088 break 2
15089 fi
15090done
15091done
15092
15093fi
15094fi
15095AR=$ac_cv_prog_AR
15096if test -n "$AR"; then
15097 echo "$as_me:$LINENO: result: $AR" >&5
15098echo "${ECHO_T}$AR" >&6
15099else
15100 echo "$as_me:$LINENO: result: no" >&5
15101echo "${ECHO_T}no" >&6
15102fi
15103
8c80d384
DE
15104fi
15105if test -z "$ac_cv_prog_AR"; then
15106 ac_ct_AR=$AR
15107 # Extract the first word of "ar", so it can be a program name with args.
15108set dummy ar; ac_word=$2
15109echo "$as_me:$LINENO: checking for $ac_word" >&5
15110echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15111if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
15112 echo $ECHO_N "(cached) $ECHO_C" >&6
15113else
15114 if test -n "$ac_ct_AR"; then
15115 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
15116else
15117as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15118for as_dir in $PATH
15119do
15120 IFS=$as_save_IFS
15121 test -z "$as_dir" && as_dir=.
15122 for ac_exec_ext in '' $ac_executable_extensions; do
15123 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15124 ac_cv_prog_ac_ct_AR="ar"
15125 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15126 break 2
15127 fi
15128done
15129done
15130
15131fi
15132fi
15133ac_ct_AR=$ac_cv_prog_ac_ct_AR
15134if test -n "$ac_ct_AR"; then
15135 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
15136echo "${ECHO_T}$ac_ct_AR" >&6
15137else
15138 echo "$as_me:$LINENO: result: no" >&5
15139echo "${ECHO_T}no" >&6
15140fi
15141
15142 AR=$ac_ct_AR
15143else
15144 AR="$ac_cv_prog_AR"
15145fi
15146
a848cd7e 15147if test "x$AR" = "x" ; then
77ffb593
JS
15148 { { echo "$as_me:$LINENO: error: ar is needed to build wxWidgets" >&5
15149echo "$as_me: error: ar is needed to build wxWidgets" >&2;}
a848cd7e
SC
15150 { (exit 1); exit 1; }; }
15151fi
15152
15153# Find a good install program. We prefer a C program (faster),
15154# so one script is as good as another. But avoid the broken or
15155# incompatible versions:
15156# SysV /etc/install, /usr/sbin/install
15157# SunOS /usr/etc/install
15158# IRIX /sbin/install
15159# AIX /bin/install
15160# AmigaOS /C/install, which installs bootblocks on floppy discs
15161# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
15162# AFS /usr/afsws/bin/install, which mishandles nonexistent args
15163# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
ac1cb8d3 15164# OS/2's system install, which has a completely different semantic
a848cd7e
SC
15165# ./install, which can be erroneously created by make from ./install.sh.
15166echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
15167echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
15168if test -z "$INSTALL"; then
15169if test "${ac_cv_path_install+set}" = set; then
15170 echo $ECHO_N "(cached) $ECHO_C" >&6
15171else
15172 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15173for as_dir in $PATH
15174do
15175 IFS=$as_save_IFS
15176 test -z "$as_dir" && as_dir=.
15177 # Account for people who put trailing slashes in PATH elements.
15178case $as_dir/ in
15179 ./ | .// | /cC/* | \
15180 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
ac1cb8d3 15181 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
a848cd7e
SC
15182 /usr/ucb/* ) ;;
15183 *)
15184 # OSF1 and SCO ODT 3.0 have their own names for install.
15185 # Don't use installbsd from OSF since it installs stuff as root
15186 # by default.
15187 for ac_prog in ginstall scoinst install; do
15188 for ac_exec_ext in '' $ac_executable_extensions; do
ac1cb8d3
VS
15189 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
15190 if test $ac_prog = install &&
15191 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
15192 # AIX install. It has an incompatible calling convention.
15193 :
15194 elif test $ac_prog = install &&
15195 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
15196 # program-specific install script used by HP pwplus--don't use.
15197 :
15198 else
15199 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
15200 break 3
15201 fi
15202 fi
a848cd7e
SC
15203 done
15204 done
15205 ;;
15206esac
15207done
15208
15209
15210fi
15211 if test "${ac_cv_path_install+set}" = set; then
15212 INSTALL=$ac_cv_path_install
15213 else
15214 # As a last resort, use the slow shell script. We don't cache a
15215 # path for INSTALL within a source directory, because that will
15216 # break other packages using the cache if that directory is
15217 # removed, or if the path is relative.
15218 INSTALL=$ac_install_sh
15219 fi
15220fi
15221echo "$as_me:$LINENO: result: $INSTALL" >&5
15222echo "${ECHO_T}$INSTALL" >&6
15223
15224# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
15225# It thinks the first close brace ends the variable substitution.
15226test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
15227
15228test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
15229
15230test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
15231
15232
15233case ${INSTALL} in
15234 /* ) # Absolute
15235 ;;
15236 ?:* ) # Drive letter, considered as absolute.
15237 ;;
15238 *)
15239 INSTALL=`pwd`/${INSTALL} ;;
15240esac
15241
a848cd7e
SC
15242
15243case "${host}" in
15244
cfda0ea8 15245 *-*-darwin* )
a848cd7e
SC
15246 INSTALL_PROGRAM="cp -fp"
15247 INSTALL_DATA="cp -fp"
15248 ;;
15249 *)
15250 ;;
15251esac
15252
8c80d384
DE
15253if test -n "$ac_tool_prefix"; then
15254 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
15255set dummy ${ac_tool_prefix}strip; ac_word=$2
a848cd7e
SC
15256echo "$as_me:$LINENO: checking for $ac_word" >&5
15257echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15258if test "${ac_cv_prog_STRIP+set}" = set; then
15259 echo $ECHO_N "(cached) $ECHO_C" >&6
15260else
15261 if test -n "$STRIP"; then
15262 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
15263else
15264as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15265for as_dir in $PATH
15266do
15267 IFS=$as_save_IFS
15268 test -z "$as_dir" && as_dir=.
15269 for ac_exec_ext in '' $ac_executable_extensions; do
15270 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8c80d384 15271 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
a848cd7e
SC
15272 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15273 break 2
15274 fi
15275done
15276done
15277
a848cd7e
SC
15278fi
15279fi
15280STRIP=$ac_cv_prog_STRIP
15281if test -n "$STRIP"; then
15282 echo "$as_me:$LINENO: result: $STRIP" >&5
15283echo "${ECHO_T}$STRIP" >&6
15284else
15285 echo "$as_me:$LINENO: result: no" >&5
15286echo "${ECHO_T}no" >&6
15287fi
15288
8c80d384
DE
15289fi
15290if test -z "$ac_cv_prog_STRIP"; then
15291 ac_ct_STRIP=$STRIP
15292 # Extract the first word of "strip", so it can be a program name with args.
15293set dummy strip; ac_word=$2
15294echo "$as_me:$LINENO: checking for $ac_word" >&5
15295echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15296if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
15297 echo $ECHO_N "(cached) $ECHO_C" >&6
15298else
15299 if test -n "$ac_ct_STRIP"; then
15300 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
15301else
15302as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15303for as_dir in $PATH
15304do
15305 IFS=$as_save_IFS
15306 test -z "$as_dir" && as_dir=.
15307 for ac_exec_ext in '' $ac_executable_extensions; do
15308 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15309 ac_cv_prog_ac_ct_STRIP="strip"
15310 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15311 break 2
15312 fi
15313done
15314done
15315
15316 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP="true"
15317fi
15318fi
15319ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
15320if test -n "$ac_ct_STRIP"; then
15321 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
15322echo "${ECHO_T}$ac_ct_STRIP" >&6
15323else
15324 echo "$as_me:$LINENO: result: no" >&5
15325echo "${ECHO_T}no" >&6
15326fi
15327
15328 STRIP=$ac_ct_STRIP
15329else
15330 STRIP="$ac_cv_prog_STRIP"
15331fi
15332
15333
15334if test "$wxUSE_WINE" = "yes"; then
15335 if test -n "$ac_tool_prefix"; then
15336 # Extract the first word of "${ac_tool_prefix}wrc", so it can be a program name with args.
15337set dummy ${ac_tool_prefix}wrc; ac_word=$2
15338echo "$as_me:$LINENO: checking for $ac_word" >&5
15339echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8ced02f6 15340if test "${ac_cv_prog_WINDRES+set}" = set; then
8c80d384
DE
15341 echo $ECHO_N "(cached) $ECHO_C" >&6
15342else
8ced02f6
DE
15343 if test -n "$WINDRES"; then
15344 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
8c80d384
DE
15345else
15346as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15347for as_dir in $PATH
15348do
15349 IFS=$as_save_IFS
15350 test -z "$as_dir" && as_dir=.
15351 for ac_exec_ext in '' $ac_executable_extensions; do
15352 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8ced02f6 15353 ac_cv_prog_WINDRES="${ac_tool_prefix}wrc"
8c80d384
DE
15354 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15355 break 2
15356 fi
15357done
15358done
15359
15360fi
15361fi
8ced02f6
DE
15362WINDRES=$ac_cv_prog_WINDRES
15363if test -n "$WINDRES"; then
15364 echo "$as_me:$LINENO: result: $WINDRES" >&5
15365echo "${ECHO_T}$WINDRES" >&6
8c80d384
DE
15366else
15367 echo "$as_me:$LINENO: result: no" >&5
15368echo "${ECHO_T}no" >&6
15369fi
15370
15371fi
8ced02f6
DE
15372if test -z "$ac_cv_prog_WINDRES"; then
15373 ac_ct_WINDRES=$WINDRES
8c80d384
DE
15374 # Extract the first word of "wrc", so it can be a program name with args.
15375set dummy wrc; ac_word=$2
15376echo "$as_me:$LINENO: checking for $ac_word" >&5
15377echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8ced02f6 15378if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then
8c80d384
DE
15379 echo $ECHO_N "(cached) $ECHO_C" >&6
15380else
8ced02f6
DE
15381 if test -n "$ac_ct_WINDRES"; then
15382 ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
8c80d384
DE
15383else
15384as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15385for as_dir in $PATH
15386do
15387 IFS=$as_save_IFS
15388 test -z "$as_dir" && as_dir=.
15389 for ac_exec_ext in '' $ac_executable_extensions; do
15390 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8ced02f6 15391 ac_cv_prog_ac_ct_WINDRES="wrc"
8c80d384
DE
15392 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15393 break 2
15394 fi
15395done
15396done
15397
15398fi
15399fi
8ced02f6
DE
15400ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
15401if test -n "$ac_ct_WINDRES"; then
15402 echo "$as_me:$LINENO: result: $ac_ct_WINDRES" >&5
15403echo "${ECHO_T}$ac_ct_WINDRES" >&6
8c80d384
DE
15404else
15405 echo "$as_me:$LINENO: result: no" >&5
15406echo "${ECHO_T}no" >&6
15407fi
15408
8ced02f6 15409 WINDRES=$ac_ct_WINDRES
8c80d384 15410else
8ced02f6 15411 WINDRES="$ac_cv_prog_WINDRES"
8c80d384
DE
15412fi
15413
004ee6da 15414 RESCOMP="$WINDRES"
8c80d384
DE
15415else
15416 case "${host}" in
15417 *-*-cygwin* | *-*-mingw32* )
004ee6da
RL
15418 if test -n "$ac_tool_prefix"; then
15419 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
15420set dummy ${ac_tool_prefix}windres; ac_word=$2
15421echo "$as_me:$LINENO: checking for $ac_word" >&5
15422echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15423if test "${ac_cv_prog_WINDRES+set}" = set; then
15424 echo $ECHO_N "(cached) $ECHO_C" >&6
15425else
15426 if test -n "$WINDRES"; then
15427 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
15428else
15429as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15430for as_dir in $PATH
15431do
15432 IFS=$as_save_IFS
15433 test -z "$as_dir" && as_dir=.
15434 for ac_exec_ext in '' $ac_executable_extensions; do
15435 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15436 ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
15437 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15438 break 2
15439 fi
15440done
15441done
15442
15443fi
15444fi
15445WINDRES=$ac_cv_prog_WINDRES
15446if test -n "$WINDRES"; then
15447 echo "$as_me:$LINENO: result: $WINDRES" >&5
15448echo "${ECHO_T}$WINDRES" >&6
15449else
15450 echo "$as_me:$LINENO: result: no" >&5
15451echo "${ECHO_T}no" >&6
15452fi
15453
15454fi
15455if test -z "$ac_cv_prog_WINDRES"; then
15456 ac_ct_WINDRES=$WINDRES
15457 # Extract the first word of "windres", so it can be a program name with args.
15458set dummy windres; ac_word=$2
15459echo "$as_me:$LINENO: checking for $ac_word" >&5
15460echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15461if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then
15462 echo $ECHO_N "(cached) $ECHO_C" >&6
15463else
15464 if test -n "$ac_ct_WINDRES"; then
15465 ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
15466else
15467as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15468for as_dir in $PATH
15469do
15470 IFS=$as_save_IFS
15471 test -z "$as_dir" && as_dir=.
15472 for ac_exec_ext in '' $ac_executable_extensions; do
15473 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15474 ac_cv_prog_ac_ct_WINDRES="windres"
15475 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15476 break 2
15477 fi
15478done
15479done
15480
15481fi
15482fi
15483ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
15484if test -n "$ac_ct_WINDRES"; then
15485 echo "$as_me:$LINENO: result: $ac_ct_WINDRES" >&5
15486echo "${ECHO_T}$ac_ct_WINDRES" >&6
15487else
15488 echo "$as_me:$LINENO: result: no" >&5
15489echo "${ECHO_T}no" >&6
15490fi
15491
15492 WINDRES=$ac_ct_WINDRES
15493else
15494 WINDRES="$ac_cv_prog_WINDRES"
15495fi
15496
15497 RESCOMP="$WINDRES"
15498 if test -n "$ac_tool_prefix"; then
8c80d384
DE
15499 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
15500set dummy ${ac_tool_prefix}dlltool; ac_word=$2
15501echo "$as_me:$LINENO: checking for $ac_word" >&5
15502echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15503if test "${ac_cv_prog_DLLTOOL+set}" = set; then
15504 echo $ECHO_N "(cached) $ECHO_C" >&6
15505else
15506 if test -n "$DLLTOOL"; then
15507 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
15508else
15509as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15510for as_dir in $PATH
15511do
15512 IFS=$as_save_IFS
15513 test -z "$as_dir" && as_dir=.
15514 for ac_exec_ext in '' $ac_executable_extensions; do
15515 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15516 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
15517 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15518 break 2
15519 fi
15520done
15521done
15522
15523fi
15524fi
15525DLLTOOL=$ac_cv_prog_DLLTOOL
15526if test -n "$DLLTOOL"; then
15527 echo "$as_me:$LINENO: result: $DLLTOOL" >&5
15528echo "${ECHO_T}$DLLTOOL" >&6
15529else
15530 echo "$as_me:$LINENO: result: no" >&5
15531echo "${ECHO_T}no" >&6
15532fi
15533
15534fi
15535if test -z "$ac_cv_prog_DLLTOOL"; then
15536 ac_ct_DLLTOOL=$DLLTOOL
15537 # Extract the first word of "dlltool", so it can be a program name with args.
15538set dummy dlltool; ac_word=$2
15539echo "$as_me:$LINENO: checking for $ac_word" >&5
15540echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15541if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
15542 echo $ECHO_N "(cached) $ECHO_C" >&6
15543else
15544 if test -n "$ac_ct_DLLTOOL"; then
15545 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
15546else
15547as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15548for as_dir in $PATH
15549do
15550 IFS=$as_save_IFS
15551 test -z "$as_dir" && as_dir=.
15552 for ac_exec_ext in '' $ac_executable_extensions; do
15553 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15554 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
15555 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15556 break 2
15557 fi
15558done
15559done
15560
15561fi
15562fi
15563ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
15564if test -n "$ac_ct_DLLTOOL"; then
15565 echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
15566echo "${ECHO_T}$ac_ct_DLLTOOL" >&6
15567else
15568 echo "$as_me:$LINENO: result: no" >&5
15569echo "${ECHO_T}no" >&6
15570fi
15571
15572 DLLTOOL=$ac_ct_DLLTOOL
15573else
15574 DLLTOOL="$ac_cv_prog_DLLTOOL"
15575fi
15576
15577 ;;
15578 esac
15579fi
a848cd7e
SC
15580
15581echo "$as_me:$LINENO: checking if make is GNU make" >&5
15582echo $ECHO_N "checking if make is GNU make... $ECHO_C" >&6
15583if test "${wx_cv_prog_makeisgnu+set}" = set; then
15584 echo $ECHO_N "(cached) $ECHO_C" >&6
15585else
15586
15587 if ( ${SHELL-sh} -c "${MAKE-make} --version" 2> /dev/null |
15588 egrep -s GNU > /dev/null); then
15589 wx_cv_prog_makeisgnu="yes"
15590 else
15591 wx_cv_prog_makeisgnu="no"
15592 fi
15593
15594fi
15595echo "$as_me:$LINENO: result: $wx_cv_prog_makeisgnu" >&5
15596echo "${ECHO_T}$wx_cv_prog_makeisgnu" >&6
15597
15598if test "x$wx_cv_prog_makeisgnu" = "xyes"; then
15599 IF_GNU_MAKE=""
15600else
15601 IF_GNU_MAKE="#"
15602fi
15603
15604
15605
15606if test "x$wx_cv_prog_makeisgnu" != "xyes"; then
15607echo "$as_me:$LINENO: checking if make supports VPATH" >&5
15608echo $ECHO_N "checking if make supports VPATH... $ECHO_C" >&6
15609if test "${wx_cv_prog_makevpath+set}" = set; then
15610 echo $ECHO_N "(cached) $ECHO_C" >&6
15611else
15612
15613cat - << EOF > confMake
15614check : file
15615 cp \$? \$@
15616 cp \$? final_file
15617EOF
15618
15619if test ! -d sub ; then
15620 mkdir sub
15621fi
15622echo dummy > sub/file
15623${MAKE-make} -f confMake VPATH=sub 2>&5 > /dev/null
15624RESULT=$?
15625rm -f sub/file check final_file confMake
15626rmdir sub
15627if test "$RESULT" = 0; then
15628 wx_cv_prog_makevpath="yes"
15629else
15630 wx_cv_prog_makevpath="no"
15631fi
15632
15633fi
15634echo "$as_me:$LINENO: result: $wx_cv_prog_makevpath" >&5
15635echo "${ECHO_T}$wx_cv_prog_makevpath" >&6
15636
15637if test "x$wx_cv_prog_makevpath" != "xyes"; then
15638{ { echo "$as_me:$LINENO: error:
15639You need a make-utility that is able to use the variable
15640VPATH correctly.
15641If your version of make does not support VPATH correctly,
15642please install GNU-make (possibly as gmake), and start
15643configure with the following command:
15644export MAKE=gmake; ./configure for sh-type shells
15645setenv MAKE gmake; ./configure for csh-type shells
15646Also please do remember to use gmake in this case every time
15647you are trying to compile.
15648" >&5
15649echo "$as_me: error:
15650You need a make-utility that is able to use the variable
15651VPATH correctly.
15652If your version of make does not support VPATH correctly,
15653please install GNU-make (possibly as gmake), and start
15654configure with the following command:
15655export MAKE=gmake; ./configure for sh-type shells
15656setenv MAKE gmake; ./configure for csh-type shells
15657Also please do remember to use gmake in this case every time
15658you are trying to compile.
15659" >&2;}
15660 { (exit 1); exit 1; }; }
15661fi fi
15662echo "$as_me:$LINENO: checking whether ln -s works" >&5
15663echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
15664LN_S=$as_ln_s
15665if test "$LN_S" = "ln -s"; then
15666 echo "$as_me:$LINENO: result: yes" >&5
15667echo "${ECHO_T}yes" >&6
15668else
15669 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
15670echo "${ECHO_T}no, using $LN_S" >&6
15671fi
15672
15673
bcaab0f9 15674
a848cd7e 15675
2113bc77 15676if test "x$XLCXX" = "xyes" -a "x$USE_AIX" = "x1"; then
c92ad099 15677 CXXFLAGS="-qunique $CXXFLAGS"
9273ffba
DE
15678fi
15679
4d7ec9f1
DE
15680case "${host}" in
15681 powerpc-*-darwin* )
15682 echo "$as_me:$LINENO: checking if __POWERPC__ is already defined" >&5
15683echo $ECHO_N "checking if __POWERPC__ is already defined... $ECHO_C" >&6
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
15691int
15692main ()
15693{
15694#ifndef __POWERPC__
15695 choke me for lack of PowerPC
15696#endif
15697
15698 ;
15699 return 0;
15700}
15701_ACEOF
15702rm -f conftest.$ac_objext
15703if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15704 (eval $ac_compile) 2>conftest.er1
15705 ac_status=$?
15706 grep -v '^ *+' conftest.er1 >conftest.err
15707 rm -f conftest.er1
15708 cat conftest.err >&5
15709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15710 (exit $ac_status); } &&
479c790c 15711 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
4d7ec9f1
DE
15712 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15713 (eval $ac_try) 2>&5
15714 ac_status=$?
15715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15716 (exit $ac_status); }; } &&
15717 { ac_try='test -s conftest.$ac_objext'
15718 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15719 (eval $ac_try) 2>&5
15720 ac_status=$?
15721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15722 (exit $ac_status); }; }; then
15723 echo "$as_me:$LINENO: result: yes" >&5
15724echo "${ECHO_T}yes" >&6
15725else
15726 echo "$as_me: failed program was:" >&5
15727sed 's/^/| /' conftest.$ac_ext >&5
15728
15729echo "$as_me:$LINENO: result: no" >&5
15730echo "${ECHO_T}no" >&6
15731 cat >>confdefs.h <<\_ACEOF
15732#define __POWERPC__ 1
15733_ACEOF
15734
15735
15736fi
15737rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
cfda0ea8
DE
15738 ;;
15739esac
15740
15741case "${host}" in
15742 *-*-darwin* )
4d7ec9f1
DE
15743 echo "$as_me:$LINENO: checking if CoreFoundation/CFBase.h is usable" >&5
15744echo $ECHO_N "checking if CoreFoundation/CFBase.h is usable... $ECHO_C" >&6
15745 cat >conftest.$ac_ext <<_ACEOF
15746/* confdefs.h. */
15747_ACEOF
15748cat confdefs.h >>conftest.$ac_ext
15749cat >>conftest.$ac_ext <<_ACEOF
15750/* end confdefs.h. */
15751#include <CoreFoundation/CFBase.h>
15752
15753int
15754main ()
15755{
15756
15757 ;
15758 return 0;
15759}
15760_ACEOF
15761rm -f conftest.$ac_objext
15762if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15763 (eval $ac_compile) 2>conftest.er1
15764 ac_status=$?
15765 grep -v '^ *+' conftest.er1 >conftest.err
15766 rm -f conftest.er1
15767 cat conftest.err >&5
15768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15769 (exit $ac_status); } &&
479c790c 15770 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
4d7ec9f1
DE
15771 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15772 (eval $ac_try) 2>&5
15773 ac_status=$?
15774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15775 (exit $ac_status); }; } &&
15776 { ac_try='test -s conftest.$ac_objext'
15777 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15778 (eval $ac_try) 2>&5
15779 ac_status=$?
15780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15781 (exit $ac_status); }; }; then
15782 echo "$as_me:$LINENO: result: yes" >&5
15783echo "${ECHO_T}yes" >&6
15784else
15785 echo "$as_me: failed program was:" >&5
15786sed 's/^/| /' conftest.$ac_ext >&5
15787
15788echo "$as_me:$LINENO: result: no" >&5
15789echo "${ECHO_T}no" >&6
15790 echo "$as_me:$LINENO: checking if __CF_USE_FRAMEWORK_INCLUDES__ is required" >&5
15791echo $ECHO_N "checking if __CF_USE_FRAMEWORK_INCLUDES__ is required... $ECHO_C" >&6
15792 cat >conftest.$ac_ext <<_ACEOF
15793/* confdefs.h. */
15794_ACEOF
15795cat confdefs.h >>conftest.$ac_ext
15796cat >>conftest.$ac_ext <<_ACEOF
15797/* end confdefs.h. */
15798#define __CF_USE_FRAMEWORK_INCLUDES__
15799#include <CoreFoundation/CFBase.h>
15800
15801int
15802main ()
15803{
15804
15805 ;
15806 return 0;
15807}
15808_ACEOF
15809rm -f conftest.$ac_objext
15810if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15811 (eval $ac_compile) 2>conftest.er1
15812 ac_status=$?
15813 grep -v '^ *+' conftest.er1 >conftest.err
15814 rm -f conftest.er1
15815 cat conftest.err >&5
15816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15817 (exit $ac_status); } &&
479c790c 15818 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
4d7ec9f1
DE
15819 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15820 (eval $ac_try) 2>&5
15821 ac_status=$?
15822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15823 (exit $ac_status); }; } &&
15824 { ac_try='test -s conftest.$ac_objext'
15825 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15826 (eval $ac_try) 2>&5
15827 ac_status=$?
15828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15829 (exit $ac_status); }; }; then
15830 echo "$as_me:$LINENO: result: yes" >&5
15831echo "${ECHO_T}yes" >&6
c92ad099 15832 CPPFLAGS="-D__CF_USE_FRAMEWORK_INCLUDES__ $CPPFLAGS"
4d7ec9f1
DE
15833else
15834 echo "$as_me: failed program was:" >&5
15835sed 's/^/| /' conftest.$ac_ext >&5
15836
15837{ { echo "$as_me:$LINENO: error: no. CoreFoundation not available.
15838See \`config.log' for more details." >&5
15839echo "$as_me: error: no. CoreFoundation not available.
15840See \`config.log' for more details." >&2;}
15841 { (exit 1); exit 1; }; }
15842
15843fi
15844rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15845
15846
15847fi
15848rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15849 ;;
15850esac
15851
a848cd7e
SC
15852case "${host}" in
15853 *-pc-os2_emx | *-pc-os2-emx )
6ba87b06
SN
15854 ac_ext=c
15855ac_cpp='$CPP $CPPFLAGS'
15856ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15857ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15858ac_compiler_gnu=$ac_cv_c_compiler_gnu
15859
15860 if test "$wxUSE_MOTIF" = 1 -o "$wxUSE_GTK" = 1 -o "$wxUSE_X11" = 1; then
a848cd7e
SC
15861 echo "$as_me:$LINENO: checking for drand48 in -lcExt" >&5
15862echo $ECHO_N "checking for drand48 in -lcExt... $ECHO_C" >&6
15863if test "${ac_cv_lib_cExt_drand48+set}" = set; then
15864 echo $ECHO_N "(cached) $ECHO_C" >&6
15865else
15866 ac_check_lib_save_LIBS=$LIBS
15867LIBS="-lcExt $LIBS"
15868cat >conftest.$ac_ext <<_ACEOF
15869/* confdefs.h. */
15870_ACEOF
15871cat confdefs.h >>conftest.$ac_ext
15872cat >>conftest.$ac_ext <<_ACEOF
15873/* end confdefs.h. */
15874
15875/* Override any gcc2 internal prototype to avoid an error. */
15876#ifdef __cplusplus
15877extern "C"
15878#endif
15879/* We use char because int might match the return type of a gcc2
15880 builtin and then its argument prototype would still apply. */
15881char drand48 ();
15882int
15883main ()
15884{
15885drand48 ();
15886 ;
15887 return 0;
15888}
15889_ACEOF
15890rm -f conftest.$ac_objext conftest$ac_exeext
15891if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 15892 (eval $ac_link) 2>conftest.er1
a848cd7e 15893 ac_status=$?
ac1cb8d3
VS
15894 grep -v '^ *+' conftest.er1 >conftest.err
15895 rm -f conftest.er1
15896 cat conftest.err >&5
a848cd7e
SC
15897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15898 (exit $ac_status); } &&
479c790c 15899 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
15900 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15901 (eval $ac_try) 2>&5
15902 ac_status=$?
15903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15904 (exit $ac_status); }; } &&
15905 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
15906 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15907 (eval $ac_try) 2>&5
15908 ac_status=$?
15909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15910 (exit $ac_status); }; }; then
15911 ac_cv_lib_cExt_drand48=yes
15912else
15913 echo "$as_me: failed program was:" >&5
15914sed 's/^/| /' conftest.$ac_ext >&5
15915
15916ac_cv_lib_cExt_drand48=no
15917fi
ac1cb8d3
VS
15918rm -f conftest.err conftest.$ac_objext \
15919 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
15920LIBS=$ac_check_lib_save_LIBS
15921fi
15922echo "$as_me:$LINENO: result: $ac_cv_lib_cExt_drand48" >&5
15923echo "${ECHO_T}$ac_cv_lib_cExt_drand48" >&6
15924if test $ac_cv_lib_cExt_drand48 = yes; then
15925 LIBS="$LIBS -lcExt"
15926fi
15927
15928 else
15929 RESPROGRAMOBJ="\${top_srcdir}/include/wx/os2/wx.res"
15930 fi
69120ee4
VZ
15931 echo "$as_me:$LINENO: checking for gcc/libc version" >&5
15932echo $ECHO_N "checking for gcc/libc version... $ECHO_C" >&6
a848cd7e
SC
15933if test "${wx_cv_gccversion+set}" = set; then
15934 echo $ECHO_N "(cached) $ECHO_C" >&6
15935else
15936
391a765e
VS
15937 if test "$cross_compiling" = yes; then
15938 wx_cv_gccversion="EMX2"
15939
15940else
15941 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
15942/* confdefs.h. */
15943_ACEOF
15944cat confdefs.h >>conftest.$ac_ext
15945cat >>conftest.$ac_ext <<_ACEOF
15946/* end confdefs.h. */
15947
391a765e 15948 #include <stdio.h>
a848cd7e 15949
391a765e
VS
15950 int main()
15951 {
15952 FILE *f=fopen("conftestval", "w");
15953 if (!f) exit(1);
15954 fprintf(f,
a848cd7e 15955 #if (__GNUC__ < 3)
391a765e
VS
15956 "EMX2"
15957 #elif (__GNUC__==3) && ((__GNUC_MINOR__ < 2) || ((__GNUC_MINOR__==2) && (__GNUC_PATCHLEVEL__<2)))
15958 "EMX3"
15959 #elif (__GNUC__==3) && (__GNUC_MINOR__==2) && (__GNUC_PATCHLEVEL__==2)
15960 "Innotek5"
15961 #else
15962 "Innotek6"
a848cd7e 15963 #endif
5039a2df 15964 );
391a765e
VS
15965 exit(0);
15966 }
a848cd7e 15967
a848cd7e 15968_ACEOF
391a765e
VS
15969rm -f conftest$ac_exeext
15970if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15971 (eval $ac_link) 2>&5
ac1cb8d3
VS
15972 ac_status=$?
15973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
391a765e 15974 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
a848cd7e
SC
15975 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15976 (eval $ac_try) 2>&5
15977 ac_status=$?
15978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15979 (exit $ac_status); }; }; then
391a765e 15980 wx_cv_gccversion=`cat conftestval`
a848cd7e 15981else
391a765e
VS
15982 echo "$as_me: program exited with status $ac_status" >&5
15983echo "$as_me: failed program was:" >&5
a848cd7e
SC
15984sed 's/^/| /' conftest.$ac_ext >&5
15985
391a765e
VS
15986( exit $ac_status )
15987wx_cv_gccversion="EMX2"
a848cd7e 15988fi
391a765e 15989rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e 15990fi
a848cd7e
SC
15991
15992fi
15993echo "$as_me:$LINENO: result: $wx_cv_gccversion" >&5
15994echo "${ECHO_T}$wx_cv_gccversion" >&6
6ba87b06
SN
15995 ac_ext=cc
15996ac_cpp='$CXXCPP $CPPFLAGS'
15997ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15998ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15999ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16000
391a765e 16001 if test "$wx_cv_gccversion" = "EMX2"; then
a848cd7e
SC
16002 LIBS="$LIBS -lstdcpp"
16003 LDFLAGS="$LDFLAGS -Zsysv-signals"
16004 else
391a765e 16005 if test "$wx_cv_gccversion" = "EMX3"; then
ddd14b14 16006 LIBS="$LIBS -lstdcxx -lgcc"
a848cd7e
SC
16007 LDFLAGS="$LDFLAGS -Zsysv-signals"
16008 else
16009 LIBS="$LIBS -lstdc++"
16010 fi
16011 fi
94acd38e
DE
16012 if test "$wxUSE_SHARED" = "yes" -a "$wxUSE_OMF" = "no"; then
16013 { echo "$as_me:$LINENO: WARNING: Building DLLs requires OMF mode, enabled" >&5
16014echo "$as_me: WARNING: Building DLLs requires OMF mode, enabled" >&2;}
16015 wxUSE_OMF=yes
2da0c077 16016 enable_omf=yes
a848cd7e
SC
16017 fi
16018 ;;
16019 *)
16020
95986553 16021 echo "$as_me:$LINENO: checking for strcasecmp() in string.h" >&5
a848cd7e
SC
16022echo $ECHO_N "checking for strcasecmp() in string.h... $ECHO_C" >&6
16023if test "${ac_cv_string_strcasecmp+set}" = set; then
16024 echo $ECHO_N "(cached) $ECHO_C" >&6
16025else
16026
16027 cat >conftest.$ac_ext <<_ACEOF
16028/* confdefs.h. */
16029_ACEOF
16030cat confdefs.h >>conftest.$ac_ext
16031cat >>conftest.$ac_ext <<_ACEOF
16032/* end confdefs.h. */
16033
16034 #include <string.h>
16035
16036int
16037main ()
16038{
16039
16040 strcasecmp("foo", "bar");
16041
16042 ;
16043 return 0;
16044}
16045_ACEOF
16046rm -f conftest.$ac_objext conftest$ac_exeext
16047if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 16048 (eval $ac_link) 2>conftest.er1
a848cd7e 16049 ac_status=$?
ac1cb8d3
VS
16050 grep -v '^ *+' conftest.er1 >conftest.err
16051 rm -f conftest.er1
16052 cat conftest.err >&5
a848cd7e
SC
16053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16054 (exit $ac_status); } &&
479c790c 16055 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16056 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16057 (eval $ac_try) 2>&5
16058 ac_status=$?
16059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16060 (exit $ac_status); }; } &&
16061 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
16062 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16063 (eval $ac_try) 2>&5
16064 ac_status=$?
16065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16066 (exit $ac_status); }; }; then
16067 ac_cv_string_strcasecmp=yes
16068else
16069 echo "$as_me: failed program was:" >&5
16070sed 's/^/| /' conftest.$ac_ext >&5
16071
16072ac_cv_string_strcasecmp=no
16073
16074fi
ac1cb8d3
VS
16075rm -f conftest.err conftest.$ac_objext \
16076 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
16077
16078fi
16079echo "$as_me:$LINENO: result: $ac_cv_string_strcasecmp" >&5
16080echo "${ECHO_T}$ac_cv_string_strcasecmp" >&6
16081
16082 if test x"$ac_cv_string_strcasecmp" = "xyes"; then
16083 cat >>confdefs.h <<\_ACEOF
16084#define HAVE_STRCASECMP_IN_STRING_H 1
16085_ACEOF
16086
16087 else
16088 echo "$as_me:$LINENO: checking for strcasecmp() in strings.h" >&5
16089echo $ECHO_N "checking for strcasecmp() in strings.h... $ECHO_C" >&6
16090if test "${ac_cv_strings_strcasecmp+set}" = set; then
16091 echo $ECHO_N "(cached) $ECHO_C" >&6
16092else
16093
16094 cat >conftest.$ac_ext <<_ACEOF
16095/* confdefs.h. */
16096_ACEOF
16097cat confdefs.h >>conftest.$ac_ext
16098cat >>conftest.$ac_ext <<_ACEOF
16099/* end confdefs.h. */
16100
16101 #include <strings.h>
16102
16103int
16104main ()
16105{
16106
16107 strcasecmp("foo", "bar");
16108
16109 ;
16110 return 0;
16111}
16112_ACEOF
16113rm -f conftest.$ac_objext conftest$ac_exeext
16114if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 16115 (eval $ac_link) 2>conftest.er1
a848cd7e 16116 ac_status=$?
ac1cb8d3
VS
16117 grep -v '^ *+' conftest.er1 >conftest.err
16118 rm -f conftest.er1
16119 cat conftest.err >&5
a848cd7e
SC
16120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16121 (exit $ac_status); } &&
479c790c 16122 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16123 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16124 (eval $ac_try) 2>&5
16125 ac_status=$?
16126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16127 (exit $ac_status); }; } &&
16128 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
16129 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16130 (eval $ac_try) 2>&5
16131 ac_status=$?
16132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16133 (exit $ac_status); }; }; then
16134 ac_cv_strings_strcasecmp=yes
16135else
16136 echo "$as_me: failed program was:" >&5
16137sed 's/^/| /' conftest.$ac_ext >&5
16138
16139ac_cv_strings_strcasecmp=no
16140
16141fi
ac1cb8d3
VS
16142rm -f conftest.err conftest.$ac_objext \
16143 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
16144
16145fi
16146echo "$as_me:$LINENO: result: $ac_cv_strings_strcasecmp" >&5
16147echo "${ECHO_T}$ac_cv_strings_strcasecmp" >&6
16148
0c3c69fc 16149 if test x"$ac_cv_strings_strcasecmp" = "xyes"; then
a848cd7e
SC
16150 cat >>confdefs.h <<\_ACEOF
16151#define HAVE_STRCASECMP_IN_STRINGS_H 1
16152_ACEOF
16153
16154 else
16155 { { echo "$as_me:$LINENO: error: No case-insensitive string comparison function found." >&5
16156echo "$as_me: error: No case-insensitive string comparison function found." >&2;}
16157 { (exit 1); exit 1; }; }
16158 fi
16159 fi
16160
a848cd7e
SC
16161 ;;
16162esac
16163
16164
5d7b7554
VZ
16165ac_ext=cc
16166ac_cpp='$CXXCPP $CPPFLAGS'
16167ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16168ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16169ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16170echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
16171echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
16172if test -z "$CXXCPP"; then
16173 if test "${ac_cv_prog_CXXCPP+set}" = set; then
16174 echo $ECHO_N "(cached) $ECHO_C" >&6
16175else
16176 # Double quotes because CXXCPP needs to be expanded
16177 for CXXCPP in "$CXX -E" "/lib/cpp"
16178 do
16179 ac_preproc_ok=false
16180for ac_cxx_preproc_warn_flag in '' yes
16181do
16182 # Use a header file that comes with gcc, so configuring glibc
16183 # with a fresh cross-compiler works.
16184 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16185 # <limits.h> exists even on freestanding compilers.
16186 # On the NeXT, cc -E runs the code through the compiler's parser,
16187 # not just through cpp. "Syntax error" is here to catch this case.
16188 cat >conftest.$ac_ext <<_ACEOF
16189/* confdefs.h. */
16190_ACEOF
16191cat confdefs.h >>conftest.$ac_ext
16192cat >>conftest.$ac_ext <<_ACEOF
16193/* end confdefs.h. */
16194#ifdef __STDC__
16195# include <limits.h>
16196#else
16197# include <assert.h>
16198#endif
16199 Syntax error
16200_ACEOF
16201if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16202 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16203 ac_status=$?
16204 grep -v '^ *+' conftest.er1 >conftest.err
16205 rm -f conftest.er1
16206 cat conftest.err >&5
16207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16208 (exit $ac_status); } >/dev/null; then
16209 if test -s conftest.err; then
16210 ac_cpp_err=$ac_cxx_preproc_warn_flag
16211 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
16212 else
16213 ac_cpp_err=
16214 fi
16215else
16216 ac_cpp_err=yes
16217fi
16218if test -z "$ac_cpp_err"; then
16219 :
16220else
16221 echo "$as_me: failed program was:" >&5
16222sed 's/^/| /' conftest.$ac_ext >&5
16223
16224 # Broken: fails on valid input.
16225continue
16226fi
16227rm -f conftest.err conftest.$ac_ext
16228
16229 # OK, works on sane cases. Now check whether non-existent headers
16230 # can be detected and how.
16231 cat >conftest.$ac_ext <<_ACEOF
16232/* confdefs.h. */
16233_ACEOF
16234cat confdefs.h >>conftest.$ac_ext
16235cat >>conftest.$ac_ext <<_ACEOF
16236/* end confdefs.h. */
16237#include <ac_nonexistent.h>
16238_ACEOF
16239if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16240 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16241 ac_status=$?
16242 grep -v '^ *+' conftest.er1 >conftest.err
16243 rm -f conftest.er1
16244 cat conftest.err >&5
16245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16246 (exit $ac_status); } >/dev/null; then
16247 if test -s conftest.err; then
16248 ac_cpp_err=$ac_cxx_preproc_warn_flag
16249 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
16250 else
16251 ac_cpp_err=
16252 fi
16253else
16254 ac_cpp_err=yes
16255fi
16256if test -z "$ac_cpp_err"; then
16257 # Broken: success on invalid input.
16258continue
16259else
16260 echo "$as_me: failed program was:" >&5
16261sed 's/^/| /' conftest.$ac_ext >&5
16262
16263 # Passes both tests.
16264ac_preproc_ok=:
16265break
16266fi
16267rm -f conftest.err conftest.$ac_ext
16268
16269done
16270# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
16271rm -f conftest.err conftest.$ac_ext
16272if $ac_preproc_ok; then
16273 break
16274fi
16275
16276 done
16277 ac_cv_prog_CXXCPP=$CXXCPP
16278
16279fi
16280 CXXCPP=$ac_cv_prog_CXXCPP
16281else
16282 ac_cv_prog_CXXCPP=$CXXCPP
16283fi
16284echo "$as_me:$LINENO: result: $CXXCPP" >&5
16285echo "${ECHO_T}$CXXCPP" >&6
16286ac_preproc_ok=false
16287for ac_cxx_preproc_warn_flag in '' yes
16288do
16289 # Use a header file that comes with gcc, so configuring glibc
16290 # with a fresh cross-compiler works.
16291 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16292 # <limits.h> exists even on freestanding compilers.
16293 # On the NeXT, cc -E runs the code through the compiler's parser,
16294 # not just through cpp. "Syntax error" is here to catch this case.
16295 cat >conftest.$ac_ext <<_ACEOF
16296/* confdefs.h. */
16297_ACEOF
16298cat confdefs.h >>conftest.$ac_ext
16299cat >>conftest.$ac_ext <<_ACEOF
16300/* end confdefs.h. */
16301#ifdef __STDC__
16302# include <limits.h>
16303#else
16304# include <assert.h>
16305#endif
16306 Syntax error
16307_ACEOF
16308if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16309 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16310 ac_status=$?
16311 grep -v '^ *+' conftest.er1 >conftest.err
16312 rm -f conftest.er1
16313 cat conftest.err >&5
16314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16315 (exit $ac_status); } >/dev/null; then
16316 if test -s conftest.err; then
16317 ac_cpp_err=$ac_cxx_preproc_warn_flag
16318 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
16319 else
16320 ac_cpp_err=
16321 fi
16322else
16323 ac_cpp_err=yes
16324fi
16325if test -z "$ac_cpp_err"; then
16326 :
16327else
16328 echo "$as_me: failed program was:" >&5
16329sed 's/^/| /' conftest.$ac_ext >&5
16330
16331 # Broken: fails on valid input.
16332continue
16333fi
16334rm -f conftest.err conftest.$ac_ext
16335
16336 # OK, works on sane cases. Now check whether non-existent headers
16337 # can be detected and how.
16338 cat >conftest.$ac_ext <<_ACEOF
16339/* confdefs.h. */
16340_ACEOF
16341cat confdefs.h >>conftest.$ac_ext
16342cat >>conftest.$ac_ext <<_ACEOF
16343/* end confdefs.h. */
16344#include <ac_nonexistent.h>
16345_ACEOF
16346if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16347 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16348 ac_status=$?
16349 grep -v '^ *+' conftest.er1 >conftest.err
16350 rm -f conftest.er1
16351 cat conftest.err >&5
16352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16353 (exit $ac_status); } >/dev/null; then
16354 if test -s conftest.err; then
16355 ac_cpp_err=$ac_cxx_preproc_warn_flag
16356 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
16357 else
16358 ac_cpp_err=
16359 fi
16360else
16361 ac_cpp_err=yes
16362fi
16363if test -z "$ac_cpp_err"; then
16364 # Broken: success on invalid input.
16365continue
16366else
16367 echo "$as_me: failed program was:" >&5
16368sed 's/^/| /' conftest.$ac_ext >&5
16369
16370 # Passes both tests.
16371ac_preproc_ok=:
16372break
16373fi
16374rm -f conftest.err conftest.$ac_ext
16375
16376done
16377# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
16378rm -f conftest.err conftest.$ac_ext
16379if $ac_preproc_ok; then
16380 :
16381else
16382 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
16383See \`config.log' for more details." >&5
16384echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
16385See \`config.log' for more details." >&2;}
16386 { (exit 1); exit 1; }; }
16387fi
16388
16389ac_ext=cc
16390ac_cpp='$CXXCPP $CPPFLAGS'
16391ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16392ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16393ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16394
16395
a848cd7e
SC
16396echo "$as_me:$LINENO: checking for ANSI C header files" >&5
16397echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
16398if test "${ac_cv_header_stdc+set}" = set; then
16399 echo $ECHO_N "(cached) $ECHO_C" >&6
16400else
16401 cat >conftest.$ac_ext <<_ACEOF
16402/* confdefs.h. */
16403_ACEOF
16404cat confdefs.h >>conftest.$ac_ext
16405cat >>conftest.$ac_ext <<_ACEOF
16406/* end confdefs.h. */
16407#include <stdlib.h>
16408#include <stdarg.h>
16409#include <string.h>
16410#include <float.h>
16411
16412int
16413main ()
16414{
16415
16416 ;
16417 return 0;
16418}
16419_ACEOF
16420rm -f conftest.$ac_objext
16421if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16422 (eval $ac_compile) 2>conftest.er1
a848cd7e 16423 ac_status=$?
ac1cb8d3
VS
16424 grep -v '^ *+' conftest.er1 >conftest.err
16425 rm -f conftest.er1
16426 cat conftest.err >&5
a848cd7e
SC
16427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16428 (exit $ac_status); } &&
479c790c 16429 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16430 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16431 (eval $ac_try) 2>&5
16432 ac_status=$?
16433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16434 (exit $ac_status); }; } &&
16435 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16436 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16437 (eval $ac_try) 2>&5
16438 ac_status=$?
16439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16440 (exit $ac_status); }; }; then
16441 ac_cv_header_stdc=yes
16442else
16443 echo "$as_me: failed program was:" >&5
16444sed 's/^/| /' conftest.$ac_ext >&5
16445
16446ac_cv_header_stdc=no
16447fi
ac1cb8d3 16448rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16449
16450if test $ac_cv_header_stdc = yes; then
16451 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
16452 cat >conftest.$ac_ext <<_ACEOF
16453/* confdefs.h. */
16454_ACEOF
16455cat confdefs.h >>conftest.$ac_ext
16456cat >>conftest.$ac_ext <<_ACEOF
16457/* end confdefs.h. */
16458#include <string.h>
16459
16460_ACEOF
16461if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16462 $EGREP "memchr" >/dev/null 2>&1; then
16463 :
16464else
16465 ac_cv_header_stdc=no
16466fi
16467rm -f conftest*
16468
16469fi
16470
16471if test $ac_cv_header_stdc = yes; then
16472 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
16473 cat >conftest.$ac_ext <<_ACEOF
16474/* confdefs.h. */
16475_ACEOF
16476cat confdefs.h >>conftest.$ac_ext
16477cat >>conftest.$ac_ext <<_ACEOF
16478/* end confdefs.h. */
16479#include <stdlib.h>
16480
16481_ACEOF
16482if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16483 $EGREP "free" >/dev/null 2>&1; then
16484 :
16485else
16486 ac_cv_header_stdc=no
16487fi
16488rm -f conftest*
16489
16490fi
16491
16492if test $ac_cv_header_stdc = yes; then
16493 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
16494 if test "$cross_compiling" = yes; then
16495 :
16496else
16497 cat >conftest.$ac_ext <<_ACEOF
16498/* confdefs.h. */
16499_ACEOF
16500cat confdefs.h >>conftest.$ac_ext
16501cat >>conftest.$ac_ext <<_ACEOF
16502/* end confdefs.h. */
16503#include <ctype.h>
16504#if ((' ' & 0x0FF) == 0x020)
16505# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
16506# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
16507#else
16508# define ISLOWER(c) \
ac1cb8d3
VS
16509 (('a' <= (c) && (c) <= 'i') \
16510 || ('j' <= (c) && (c) <= 'r') \
16511 || ('s' <= (c) && (c) <= 'z'))
a848cd7e
SC
16512# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
16513#endif
16514
16515#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
16516int
16517main ()
16518{
16519 int i;
16520 for (i = 0; i < 256; i++)
16521 if (XOR (islower (i), ISLOWER (i))
ac1cb8d3 16522 || toupper (i) != TOUPPER (i))
a848cd7e
SC
16523 exit(2);
16524 exit (0);
16525}
16526_ACEOF
16527rm -f conftest$ac_exeext
16528if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16529 (eval $ac_link) 2>&5
16530 ac_status=$?
16531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16532 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16533 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16534 (eval $ac_try) 2>&5
16535 ac_status=$?
16536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16537 (exit $ac_status); }; }; then
16538 :
16539else
16540 echo "$as_me: program exited with status $ac_status" >&5
16541echo "$as_me: failed program was:" >&5
16542sed 's/^/| /' conftest.$ac_ext >&5
16543
16544( exit $ac_status )
16545ac_cv_header_stdc=no
16546fi
ac1cb8d3 16547rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16548fi
16549fi
16550fi
16551echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
16552echo "${ECHO_T}$ac_cv_header_stdc" >&6
16553if test $ac_cv_header_stdc = yes; then
16554
16555cat >>confdefs.h <<\_ACEOF
16556#define STDC_HEADERS 1
16557_ACEOF
16558
16559fi
16560
16561# On IRIX 5.3, sys/types and inttypes.h are conflicting.
16562
16563
16564
16565
16566
16567
16568
16569
16570
16571for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
ac1cb8d3 16572 inttypes.h stdint.h unistd.h
a848cd7e
SC
16573do
16574as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16575echo "$as_me:$LINENO: checking for $ac_header" >&5
16576echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16577if eval "test \"\${$as_ac_Header+set}\" = set"; then
16578 echo $ECHO_N "(cached) $ECHO_C" >&6
16579else
16580 cat >conftest.$ac_ext <<_ACEOF
16581/* confdefs.h. */
16582_ACEOF
16583cat confdefs.h >>conftest.$ac_ext
16584cat >>conftest.$ac_ext <<_ACEOF
16585/* end confdefs.h. */
16586$ac_includes_default
16587
16588#include <$ac_header>
16589_ACEOF
16590rm -f conftest.$ac_objext
16591if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16592 (eval $ac_compile) 2>conftest.er1
a848cd7e 16593 ac_status=$?
ac1cb8d3
VS
16594 grep -v '^ *+' conftest.er1 >conftest.err
16595 rm -f conftest.er1
16596 cat conftest.err >&5
a848cd7e
SC
16597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16598 (exit $ac_status); } &&
479c790c 16599 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16600 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16601 (eval $ac_try) 2>&5
16602 ac_status=$?
16603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16604 (exit $ac_status); }; } &&
16605 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16606 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16607 (eval $ac_try) 2>&5
16608 ac_status=$?
16609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16610 (exit $ac_status); }; }; then
16611 eval "$as_ac_Header=yes"
16612else
16613 echo "$as_me: failed program was:" >&5
16614sed 's/^/| /' conftest.$ac_ext >&5
16615
16616eval "$as_ac_Header=no"
16617fi
ac1cb8d3 16618rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16619fi
16620echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16621echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16622if test `eval echo '${'$as_ac_Header'}'` = yes; then
16623 cat >>confdefs.h <<_ACEOF
16624#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16625_ACEOF
16626
16627fi
16628
16629done
16630
16631
16632
16633for ac_header in stdlib.h
16634do
16635as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16636if eval "test \"\${$as_ac_Header+set}\" = set"; then
16637 echo "$as_me:$LINENO: checking for $ac_header" >&5
16638echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16639if eval "test \"\${$as_ac_Header+set}\" = set"; then
16640 echo $ECHO_N "(cached) $ECHO_C" >&6
16641fi
16642echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16643echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16644else
16645 # Is the header compilable?
16646echo "$as_me:$LINENO: checking $ac_header usability" >&5
16647echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16648cat >conftest.$ac_ext <<_ACEOF
16649/* confdefs.h. */
16650_ACEOF
16651cat confdefs.h >>conftest.$ac_ext
16652cat >>conftest.$ac_ext <<_ACEOF
16653/* end confdefs.h. */
16654$ac_includes_default
16655#include <$ac_header>
16656_ACEOF
16657rm -f conftest.$ac_objext
16658if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16659 (eval $ac_compile) 2>conftest.er1
a848cd7e 16660 ac_status=$?
ac1cb8d3
VS
16661 grep -v '^ *+' conftest.er1 >conftest.err
16662 rm -f conftest.er1
16663 cat conftest.err >&5
a848cd7e
SC
16664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16665 (exit $ac_status); } &&
479c790c 16666 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16667 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16668 (eval $ac_try) 2>&5
16669 ac_status=$?
16670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16671 (exit $ac_status); }; } &&
16672 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16673 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16674 (eval $ac_try) 2>&5
16675 ac_status=$?
16676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16677 (exit $ac_status); }; }; then
16678 ac_header_compiler=yes
16679else
16680 echo "$as_me: failed program was:" >&5
16681sed 's/^/| /' conftest.$ac_ext >&5
16682
16683ac_header_compiler=no
16684fi
ac1cb8d3 16685rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16686echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16687echo "${ECHO_T}$ac_header_compiler" >&6
16688
16689# Is the header present?
16690echo "$as_me:$LINENO: checking $ac_header presence" >&5
16691echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16692cat >conftest.$ac_ext <<_ACEOF
16693/* confdefs.h. */
16694_ACEOF
16695cat confdefs.h >>conftest.$ac_ext
16696cat >>conftest.$ac_ext <<_ACEOF
16697/* end confdefs.h. */
16698#include <$ac_header>
16699_ACEOF
16700if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16701 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16702 ac_status=$?
16703 grep -v '^ *+' conftest.er1 >conftest.err
16704 rm -f conftest.er1
16705 cat conftest.err >&5
16706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16707 (exit $ac_status); } >/dev/null; then
16708 if test -s conftest.err; then
5d7b7554
VZ
16709 ac_cpp_err=$ac_cxx_preproc_warn_flag
16710 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
16711 else
16712 ac_cpp_err=
16713 fi
16714else
16715 ac_cpp_err=yes
16716fi
16717if test -z "$ac_cpp_err"; then
16718 ac_header_preproc=yes
16719else
16720 echo "$as_me: failed program was:" >&5
16721sed 's/^/| /' conftest.$ac_ext >&5
16722
16723 ac_header_preproc=no
16724fi
16725rm -f conftest.err conftest.$ac_ext
16726echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16727echo "${ECHO_T}$ac_header_preproc" >&6
16728
16729# So? What about this header?
5d7b7554 16730case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
ac1cb8d3 16731 yes:no: )
a848cd7e
SC
16732 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16733echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
16734 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16735echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16736 ac_header_preproc=yes
a848cd7e 16737 ;;
ac1cb8d3 16738 no:yes:* )
a848cd7e
SC
16739 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16740echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
16741 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16742echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16743 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16744echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16745 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16746echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
16747 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16748echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
16749 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16750echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
16751 (
16752 cat <<\_ASBOX
ac1cb8d3
VS
16753## ----------------------------------------- ##
16754## Report this to wx-dev@lists.wxwidgets.org ##
16755## ----------------------------------------- ##
a848cd7e
SC
16756_ASBOX
16757 ) |
16758 sed "s/^/$as_me: WARNING: /" >&2
16759 ;;
16760esac
16761echo "$as_me:$LINENO: checking for $ac_header" >&5
16762echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16763if eval "test \"\${$as_ac_Header+set}\" = set"; then
16764 echo $ECHO_N "(cached) $ECHO_C" >&6
16765else
ac1cb8d3 16766 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
16767fi
16768echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16769echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16770
16771fi
16772if test `eval echo '${'$as_ac_Header'}'` = yes; then
16773 cat >>confdefs.h <<_ACEOF
16774#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16775_ACEOF
16776
16777fi
16778
16779done
16780
16781
16782for ac_header in malloc.h
16783do
16784as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16785if eval "test \"\${$as_ac_Header+set}\" = set"; then
16786 echo "$as_me:$LINENO: checking for $ac_header" >&5
16787echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16788if eval "test \"\${$as_ac_Header+set}\" = set"; then
16789 echo $ECHO_N "(cached) $ECHO_C" >&6
16790fi
16791echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16792echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16793else
16794 # Is the header compilable?
16795echo "$as_me:$LINENO: checking $ac_header usability" >&5
16796echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16797cat >conftest.$ac_ext <<_ACEOF
16798/* confdefs.h. */
16799_ACEOF
16800cat confdefs.h >>conftest.$ac_ext
16801cat >>conftest.$ac_ext <<_ACEOF
16802/* end confdefs.h. */
16803$ac_includes_default
16804#include <$ac_header>
16805_ACEOF
16806rm -f conftest.$ac_objext
16807if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16808 (eval $ac_compile) 2>conftest.er1
a848cd7e 16809 ac_status=$?
ac1cb8d3
VS
16810 grep -v '^ *+' conftest.er1 >conftest.err
16811 rm -f conftest.er1
16812 cat conftest.err >&5
a848cd7e
SC
16813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16814 (exit $ac_status); } &&
479c790c 16815 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16816 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16817 (eval $ac_try) 2>&5
16818 ac_status=$?
16819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16820 (exit $ac_status); }; } &&
16821 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16822 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16823 (eval $ac_try) 2>&5
16824 ac_status=$?
16825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16826 (exit $ac_status); }; }; then
16827 ac_header_compiler=yes
16828else
16829 echo "$as_me: failed program was:" >&5
16830sed 's/^/| /' conftest.$ac_ext >&5
16831
16832ac_header_compiler=no
16833fi
ac1cb8d3 16834rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16835echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16836echo "${ECHO_T}$ac_header_compiler" >&6
16837
16838# Is the header present?
16839echo "$as_me:$LINENO: checking $ac_header presence" >&5
16840echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16841cat >conftest.$ac_ext <<_ACEOF
16842/* confdefs.h. */
16843_ACEOF
16844cat confdefs.h >>conftest.$ac_ext
16845cat >>conftest.$ac_ext <<_ACEOF
16846/* end confdefs.h. */
16847#include <$ac_header>
16848_ACEOF
16849if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16850 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16851 ac_status=$?
16852 grep -v '^ *+' conftest.er1 >conftest.err
16853 rm -f conftest.er1
16854 cat conftest.err >&5
16855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16856 (exit $ac_status); } >/dev/null; then
16857 if test -s conftest.err; then
5d7b7554
VZ
16858 ac_cpp_err=$ac_cxx_preproc_warn_flag
16859 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
16860 else
16861 ac_cpp_err=
16862 fi
16863else
16864 ac_cpp_err=yes
16865fi
16866if test -z "$ac_cpp_err"; then
16867 ac_header_preproc=yes
16868else
16869 echo "$as_me: failed program was:" >&5
16870sed 's/^/| /' conftest.$ac_ext >&5
16871
16872 ac_header_preproc=no
16873fi
16874rm -f conftest.err conftest.$ac_ext
16875echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16876echo "${ECHO_T}$ac_header_preproc" >&6
16877
16878# So? What about this header?
5d7b7554 16879case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
ac1cb8d3 16880 yes:no: )
a848cd7e
SC
16881 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16882echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
16883 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16884echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16885 ac_header_preproc=yes
a848cd7e 16886 ;;
ac1cb8d3 16887 no:yes:* )
a848cd7e
SC
16888 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16889echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
16890 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16891echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16892 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16893echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16894 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16895echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
16896 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16897echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
16898 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16899echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
16900 (
16901 cat <<\_ASBOX
ac1cb8d3
VS
16902## ----------------------------------------- ##
16903## Report this to wx-dev@lists.wxwidgets.org ##
16904## ----------------------------------------- ##
a848cd7e
SC
16905_ASBOX
16906 ) |
16907 sed "s/^/$as_me: WARNING: /" >&2
16908 ;;
16909esac
16910echo "$as_me:$LINENO: checking for $ac_header" >&5
16911echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16912if eval "test \"\${$as_ac_Header+set}\" = set"; then
16913 echo $ECHO_N "(cached) $ECHO_C" >&6
16914else
ac1cb8d3 16915 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
16916fi
16917echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16918echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16919
16920fi
16921if test `eval echo '${'$as_ac_Header'}'` = yes; then
16922 cat >>confdefs.h <<_ACEOF
16923#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16924_ACEOF
16925
16926fi
16927
16928done
16929
16930
16931for ac_header in unistd.h
16932do
16933as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16934if eval "test \"\${$as_ac_Header+set}\" = set"; then
16935 echo "$as_me:$LINENO: checking for $ac_header" >&5
16936echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16937if eval "test \"\${$as_ac_Header+set}\" = set"; then
16938 echo $ECHO_N "(cached) $ECHO_C" >&6
16939fi
16940echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16941echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16942else
16943 # Is the header compilable?
16944echo "$as_me:$LINENO: checking $ac_header usability" >&5
16945echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16946cat >conftest.$ac_ext <<_ACEOF
16947/* confdefs.h. */
16948_ACEOF
16949cat confdefs.h >>conftest.$ac_ext
16950cat >>conftest.$ac_ext <<_ACEOF
16951/* end confdefs.h. */
16952$ac_includes_default
16953#include <$ac_header>
16954_ACEOF
16955rm -f conftest.$ac_objext
16956if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16957 (eval $ac_compile) 2>conftest.er1
a848cd7e 16958 ac_status=$?
ac1cb8d3
VS
16959 grep -v '^ *+' conftest.er1 >conftest.err
16960 rm -f conftest.er1
16961 cat conftest.err >&5
a848cd7e
SC
16962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16963 (exit $ac_status); } &&
479c790c 16964 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16965 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16966 (eval $ac_try) 2>&5
16967 ac_status=$?
16968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16969 (exit $ac_status); }; } &&
16970 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16971 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16972 (eval $ac_try) 2>&5
16973 ac_status=$?
16974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16975 (exit $ac_status); }; }; then
16976 ac_header_compiler=yes
16977else
16978 echo "$as_me: failed program was:" >&5
16979sed 's/^/| /' conftest.$ac_ext >&5
16980
16981ac_header_compiler=no
16982fi
ac1cb8d3 16983rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16984echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16985echo "${ECHO_T}$ac_header_compiler" >&6
16986
16987# Is the header present?
16988echo "$as_me:$LINENO: checking $ac_header presence" >&5
16989echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16990cat >conftest.$ac_ext <<_ACEOF
16991/* confdefs.h. */
16992_ACEOF
16993cat confdefs.h >>conftest.$ac_ext
16994cat >>conftest.$ac_ext <<_ACEOF
16995/* end confdefs.h. */
16996#include <$ac_header>
16997_ACEOF
16998if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16999 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17000 ac_status=$?
17001 grep -v '^ *+' conftest.er1 >conftest.err
17002 rm -f conftest.er1
17003 cat conftest.err >&5
17004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17005 (exit $ac_status); } >/dev/null; then
17006 if test -s conftest.err; then
5d7b7554
VZ
17007 ac_cpp_err=$ac_cxx_preproc_warn_flag
17008 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
17009 else
17010 ac_cpp_err=
17011 fi
17012else
17013 ac_cpp_err=yes
17014fi
17015if test -z "$ac_cpp_err"; then
17016 ac_header_preproc=yes
17017else
17018 echo "$as_me: failed program was:" >&5
17019sed 's/^/| /' conftest.$ac_ext >&5
17020
17021 ac_header_preproc=no
17022fi
17023rm -f conftest.err conftest.$ac_ext
17024echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17025echo "${ECHO_T}$ac_header_preproc" >&6
17026
17027# So? What about this header?
5d7b7554 17028case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
ac1cb8d3 17029 yes:no: )
a848cd7e
SC
17030 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17031echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
17032 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17033echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17034 ac_header_preproc=yes
a848cd7e 17035 ;;
ac1cb8d3 17036 no:yes:* )
a848cd7e
SC
17037 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17038echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
17039 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17040echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17041 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17042echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17043 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17044echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
17045 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17046echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
17047 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17048echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
17049 (
17050 cat <<\_ASBOX
ac1cb8d3
VS
17051## ----------------------------------------- ##
17052## Report this to wx-dev@lists.wxwidgets.org ##
17053## ----------------------------------------- ##
a848cd7e
SC
17054_ASBOX
17055 ) |
17056 sed "s/^/$as_me: WARNING: /" >&2
17057 ;;
17058esac
17059echo "$as_me:$LINENO: checking for $ac_header" >&5
17060echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17061if eval "test \"\${$as_ac_Header+set}\" = set"; then
17062 echo $ECHO_N "(cached) $ECHO_C" >&6
17063else
ac1cb8d3 17064 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
17065fi
17066echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17067echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17068
17069fi
17070if test `eval echo '${'$as_ac_Header'}'` = yes; then
17071 cat >>confdefs.h <<_ACEOF
17072#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17073_ACEOF
17074
17075fi
17076
17077done
17078
17079
17080for ac_header in wchar.h
17081do
17082as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17083if eval "test \"\${$as_ac_Header+set}\" = set"; then
17084 echo "$as_me:$LINENO: checking for $ac_header" >&5
17085echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17086if eval "test \"\${$as_ac_Header+set}\" = set"; then
17087 echo $ECHO_N "(cached) $ECHO_C" >&6
17088fi
17089echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17090echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17091else
17092 # Is the header compilable?
17093echo "$as_me:$LINENO: checking $ac_header usability" >&5
17094echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
17095cat >conftest.$ac_ext <<_ACEOF
17096/* confdefs.h. */
17097_ACEOF
17098cat confdefs.h >>conftest.$ac_ext
17099cat >>conftest.$ac_ext <<_ACEOF
17100/* end confdefs.h. */
17101$ac_includes_default
17102#include <$ac_header>
17103_ACEOF
17104rm -f conftest.$ac_objext
17105if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17106 (eval $ac_compile) 2>conftest.er1
a848cd7e 17107 ac_status=$?
ac1cb8d3
VS
17108 grep -v '^ *+' conftest.er1 >conftest.err
17109 rm -f conftest.er1
17110 cat conftest.err >&5
a848cd7e
SC
17111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17112 (exit $ac_status); } &&
479c790c 17113 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17114 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17115 (eval $ac_try) 2>&5
17116 ac_status=$?
17117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17118 (exit $ac_status); }; } &&
17119 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17120 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17121 (eval $ac_try) 2>&5
17122 ac_status=$?
17123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17124 (exit $ac_status); }; }; then
17125 ac_header_compiler=yes
17126else
17127 echo "$as_me: failed program was:" >&5
17128sed 's/^/| /' conftest.$ac_ext >&5
17129
17130ac_header_compiler=no
17131fi
ac1cb8d3 17132rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17133echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17134echo "${ECHO_T}$ac_header_compiler" >&6
17135
17136# Is the header present?
17137echo "$as_me:$LINENO: checking $ac_header presence" >&5
17138echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
17139cat >conftest.$ac_ext <<_ACEOF
17140/* confdefs.h. */
17141_ACEOF
17142cat confdefs.h >>conftest.$ac_ext
17143cat >>conftest.$ac_ext <<_ACEOF
17144/* end confdefs.h. */
17145#include <$ac_header>
17146_ACEOF
17147if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17148 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17149 ac_status=$?
17150 grep -v '^ *+' conftest.er1 >conftest.err
17151 rm -f conftest.er1
17152 cat conftest.err >&5
17153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17154 (exit $ac_status); } >/dev/null; then
17155 if test -s conftest.err; then
5d7b7554
VZ
17156 ac_cpp_err=$ac_cxx_preproc_warn_flag
17157 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
17158 else
17159 ac_cpp_err=
17160 fi
17161else
17162 ac_cpp_err=yes
17163fi
17164if test -z "$ac_cpp_err"; then
17165 ac_header_preproc=yes
17166else
17167 echo "$as_me: failed program was:" >&5
17168sed 's/^/| /' conftest.$ac_ext >&5
17169
17170 ac_header_preproc=no
17171fi
17172rm -f conftest.err conftest.$ac_ext
17173echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17174echo "${ECHO_T}$ac_header_preproc" >&6
17175
17176# So? What about this header?
5d7b7554 17177case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
ac1cb8d3 17178 yes:no: )
a848cd7e
SC
17179 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17180echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
17181 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17182echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17183 ac_header_preproc=yes
a848cd7e 17184 ;;
ac1cb8d3 17185 no:yes:* )
a848cd7e
SC
17186 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17187echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
17188 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17189echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17190 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17191echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17192 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17193echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
17194 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17195echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
17196 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17197echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
17198 (
17199 cat <<\_ASBOX
ac1cb8d3
VS
17200## ----------------------------------------- ##
17201## Report this to wx-dev@lists.wxwidgets.org ##
17202## ----------------------------------------- ##
a848cd7e
SC
17203_ASBOX
17204 ) |
17205 sed "s/^/$as_me: WARNING: /" >&2
17206 ;;
17207esac
17208echo "$as_me:$LINENO: checking for $ac_header" >&5
17209echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17210if eval "test \"\${$as_ac_Header+set}\" = set"; then
17211 echo $ECHO_N "(cached) $ECHO_C" >&6
17212else
ac1cb8d3 17213 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
17214fi
17215echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17216echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17217
17218fi
17219if test `eval echo '${'$as_ac_Header'}'` = yes; then
17220 cat >>confdefs.h <<_ACEOF
17221#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17222_ACEOF
17223
17224fi
17225
17226done
17227
17228
17229if test "$ac_cv_header_wchar_h" != "yes"; then
17230
17231for ac_header in wcstr.h
17232do
17233as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17234if eval "test \"\${$as_ac_Header+set}\" = set"; then
17235 echo "$as_me:$LINENO: checking for $ac_header" >&5
17236echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17237if eval "test \"\${$as_ac_Header+set}\" = set"; then
17238 echo $ECHO_N "(cached) $ECHO_C" >&6
17239fi
17240echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17241echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17242else
17243 # Is the header compilable?
17244echo "$as_me:$LINENO: checking $ac_header usability" >&5
17245echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
17246cat >conftest.$ac_ext <<_ACEOF
17247/* confdefs.h. */
17248_ACEOF
17249cat confdefs.h >>conftest.$ac_ext
17250cat >>conftest.$ac_ext <<_ACEOF
17251/* end confdefs.h. */
17252$ac_includes_default
17253#include <$ac_header>
17254_ACEOF
17255rm -f conftest.$ac_objext
17256if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17257 (eval $ac_compile) 2>conftest.er1
a848cd7e 17258 ac_status=$?
ac1cb8d3
VS
17259 grep -v '^ *+' conftest.er1 >conftest.err
17260 rm -f conftest.er1
17261 cat conftest.err >&5
a848cd7e
SC
17262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17263 (exit $ac_status); } &&
479c790c 17264 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17265 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17266 (eval $ac_try) 2>&5
17267 ac_status=$?
17268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17269 (exit $ac_status); }; } &&
17270 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17271 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17272 (eval $ac_try) 2>&5
17273 ac_status=$?
17274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17275 (exit $ac_status); }; }; then
17276 ac_header_compiler=yes
17277else
17278 echo "$as_me: failed program was:" >&5
17279sed 's/^/| /' conftest.$ac_ext >&5
17280
17281ac_header_compiler=no
17282fi
ac1cb8d3 17283rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17284echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17285echo "${ECHO_T}$ac_header_compiler" >&6
17286
17287# Is the header present?
17288echo "$as_me:$LINENO: checking $ac_header presence" >&5
17289echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
17290cat >conftest.$ac_ext <<_ACEOF
17291/* confdefs.h. */
17292_ACEOF
17293cat confdefs.h >>conftest.$ac_ext
17294cat >>conftest.$ac_ext <<_ACEOF
17295/* end confdefs.h. */
17296#include <$ac_header>
17297_ACEOF
17298if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17299 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17300 ac_status=$?
17301 grep -v '^ *+' conftest.er1 >conftest.err
17302 rm -f conftest.er1
17303 cat conftest.err >&5
17304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17305 (exit $ac_status); } >/dev/null; then
17306 if test -s conftest.err; then
5d7b7554
VZ
17307 ac_cpp_err=$ac_cxx_preproc_warn_flag
17308 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
17309 else
17310 ac_cpp_err=
17311 fi
17312else
17313 ac_cpp_err=yes
17314fi
17315if test -z "$ac_cpp_err"; then
17316 ac_header_preproc=yes
17317else
17318 echo "$as_me: failed program was:" >&5
17319sed 's/^/| /' conftest.$ac_ext >&5
17320
17321 ac_header_preproc=no
17322fi
17323rm -f conftest.err conftest.$ac_ext
17324echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17325echo "${ECHO_T}$ac_header_preproc" >&6
17326
17327# So? What about this header?
5d7b7554 17328case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
ac1cb8d3 17329 yes:no: )
a848cd7e
SC
17330 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17331echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
17332 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17333echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17334 ac_header_preproc=yes
a848cd7e 17335 ;;
ac1cb8d3 17336 no:yes:* )
a848cd7e
SC
17337 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17338echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
17339 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17340echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17341 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17342echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17343 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17344echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
17345 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17346echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
17347 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17348echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
17349 (
17350 cat <<\_ASBOX
ac1cb8d3
VS
17351## ----------------------------------------- ##
17352## Report this to wx-dev@lists.wxwidgets.org ##
17353## ----------------------------------------- ##
a848cd7e
SC
17354_ASBOX
17355 ) |
17356 sed "s/^/$as_me: WARNING: /" >&2
17357 ;;
17358esac
17359echo "$as_me:$LINENO: checking for $ac_header" >&5
17360echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17361if eval "test \"\${$as_ac_Header+set}\" = set"; then
17362 echo $ECHO_N "(cached) $ECHO_C" >&6
17363else
ac1cb8d3 17364 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
17365fi
17366echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17367echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17368
17369fi
17370if test `eval echo '${'$as_ac_Header'}'` = yes; then
17371 cat >>confdefs.h <<_ACEOF
17372#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17373_ACEOF
17374
17375fi
17376
17377done
17378
17379fi
17380
17381
17382for ac_header in fnmatch.h
17383do
17384as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17385if eval "test \"\${$as_ac_Header+set}\" = set"; then
17386 echo "$as_me:$LINENO: checking for $ac_header" >&5
17387echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17388if eval "test \"\${$as_ac_Header+set}\" = set"; then
17389 echo $ECHO_N "(cached) $ECHO_C" >&6
17390fi
17391echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17392echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17393else
17394 # Is the header compilable?
17395echo "$as_me:$LINENO: checking $ac_header usability" >&5
17396echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
17397cat >conftest.$ac_ext <<_ACEOF
17398/* confdefs.h. */
17399_ACEOF
17400cat confdefs.h >>conftest.$ac_ext
17401cat >>conftest.$ac_ext <<_ACEOF
17402/* end confdefs.h. */
17403$ac_includes_default
17404#include <$ac_header>
17405_ACEOF
17406rm -f conftest.$ac_objext
17407if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17408 (eval $ac_compile) 2>conftest.er1
a848cd7e 17409 ac_status=$?
ac1cb8d3
VS
17410 grep -v '^ *+' conftest.er1 >conftest.err
17411 rm -f conftest.er1
17412 cat conftest.err >&5
a848cd7e
SC
17413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17414 (exit $ac_status); } &&
479c790c 17415 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17416 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17417 (eval $ac_try) 2>&5
17418 ac_status=$?
17419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17420 (exit $ac_status); }; } &&
17421 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17422 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17423 (eval $ac_try) 2>&5
17424 ac_status=$?
17425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17426 (exit $ac_status); }; }; then
17427 ac_header_compiler=yes
17428else
17429 echo "$as_me: failed program was:" >&5
17430sed 's/^/| /' conftest.$ac_ext >&5
17431
17432ac_header_compiler=no
17433fi
ac1cb8d3 17434rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17435echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17436echo "${ECHO_T}$ac_header_compiler" >&6
17437
17438# Is the header present?
17439echo "$as_me:$LINENO: checking $ac_header presence" >&5
17440echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
17441cat >conftest.$ac_ext <<_ACEOF
17442/* confdefs.h. */
17443_ACEOF
17444cat confdefs.h >>conftest.$ac_ext
17445cat >>conftest.$ac_ext <<_ACEOF
17446/* end confdefs.h. */
17447#include <$ac_header>
17448_ACEOF
17449if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17450 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17451 ac_status=$?
17452 grep -v '^ *+' conftest.er1 >conftest.err
17453 rm -f conftest.er1
17454 cat conftest.err >&5
17455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17456 (exit $ac_status); } >/dev/null; then
17457 if test -s conftest.err; then
5d7b7554
VZ
17458 ac_cpp_err=$ac_cxx_preproc_warn_flag
17459 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
17460 else
17461 ac_cpp_err=
17462 fi
17463else
17464 ac_cpp_err=yes
17465fi
17466if test -z "$ac_cpp_err"; then
17467 ac_header_preproc=yes
17468else
17469 echo "$as_me: failed program was:" >&5
17470sed 's/^/| /' conftest.$ac_ext >&5
17471
17472 ac_header_preproc=no
17473fi
17474rm -f conftest.err conftest.$ac_ext
17475echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17476echo "${ECHO_T}$ac_header_preproc" >&6
17477
17478# So? What about this header?
5d7b7554 17479case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
ac1cb8d3 17480 yes:no: )
a848cd7e
SC
17481 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17482echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
17483 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17484echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17485 ac_header_preproc=yes
a848cd7e 17486 ;;
ac1cb8d3 17487 no:yes:* )
a848cd7e
SC
17488 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17489echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
17490 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17491echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17492 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17493echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17494 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17495echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
17496 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17497echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
17498 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17499echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
17500 (
17501 cat <<\_ASBOX
ac1cb8d3
VS
17502## ----------------------------------------- ##
17503## Report this to wx-dev@lists.wxwidgets.org ##
17504## ----------------------------------------- ##
a848cd7e
SC
17505_ASBOX
17506 ) |
17507 sed "s/^/$as_me: WARNING: /" >&2
17508 ;;
17509esac
17510echo "$as_me:$LINENO: checking for $ac_header" >&5
17511echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17512if eval "test \"\${$as_ac_Header+set}\" = set"; then
17513 echo $ECHO_N "(cached) $ECHO_C" >&6
17514else
ac1cb8d3 17515 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
17516fi
17517echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17518echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17519
17520fi
17521if test `eval echo '${'$as_ac_Header'}'` = yes; then
17522 cat >>confdefs.h <<_ACEOF
17523#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17524_ACEOF
17525
17526fi
17527
17528done
17529
17530
a848cd7e
SC
17531
17532for ac_header in langinfo.h
17533do
17534as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17535if eval "test \"\${$as_ac_Header+set}\" = set"; then
17536 echo "$as_me:$LINENO: checking for $ac_header" >&5
17537echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17538if eval "test \"\${$as_ac_Header+set}\" = set"; then
17539 echo $ECHO_N "(cached) $ECHO_C" >&6
17540fi
17541echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17542echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17543else
17544 # Is the header compilable?
17545echo "$as_me:$LINENO: checking $ac_header usability" >&5
17546echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
17547cat >conftest.$ac_ext <<_ACEOF
17548/* confdefs.h. */
17549_ACEOF
17550cat confdefs.h >>conftest.$ac_ext
17551cat >>conftest.$ac_ext <<_ACEOF
17552/* end confdefs.h. */
17553$ac_includes_default
17554#include <$ac_header>
17555_ACEOF
17556rm -f conftest.$ac_objext
17557if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17558 (eval $ac_compile) 2>conftest.er1
a848cd7e 17559 ac_status=$?
ac1cb8d3
VS
17560 grep -v '^ *+' conftest.er1 >conftest.err
17561 rm -f conftest.er1
17562 cat conftest.err >&5
a848cd7e
SC
17563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17564 (exit $ac_status); } &&
479c790c 17565 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
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); }; } &&
17571 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17572 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17573 (eval $ac_try) 2>&5
17574 ac_status=$?
17575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17576 (exit $ac_status); }; }; then
17577 ac_header_compiler=yes
17578else
17579 echo "$as_me: failed program was:" >&5
17580sed 's/^/| /' conftest.$ac_ext >&5
17581
17582ac_header_compiler=no
17583fi
ac1cb8d3 17584rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17585echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17586echo "${ECHO_T}$ac_header_compiler" >&6
17587
17588# Is the header present?
17589echo "$as_me:$LINENO: checking $ac_header presence" >&5
17590echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
17591cat >conftest.$ac_ext <<_ACEOF
17592/* confdefs.h. */
17593_ACEOF
17594cat confdefs.h >>conftest.$ac_ext
17595cat >>conftest.$ac_ext <<_ACEOF
17596/* end confdefs.h. */
17597#include <$ac_header>
17598_ACEOF
17599if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17600 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17601 ac_status=$?
17602 grep -v '^ *+' conftest.er1 >conftest.err
17603 rm -f conftest.er1
17604 cat conftest.err >&5
17605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17606 (exit $ac_status); } >/dev/null; then
17607 if test -s conftest.err; then
5d7b7554
VZ
17608 ac_cpp_err=$ac_cxx_preproc_warn_flag
17609 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
17610 else
17611 ac_cpp_err=
17612 fi
17613else
17614 ac_cpp_err=yes
17615fi
17616if test -z "$ac_cpp_err"; then
17617 ac_header_preproc=yes
17618else
17619 echo "$as_me: failed program was:" >&5
17620sed 's/^/| /' conftest.$ac_ext >&5
17621
17622 ac_header_preproc=no
17623fi
17624rm -f conftest.err conftest.$ac_ext
17625echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17626echo "${ECHO_T}$ac_header_preproc" >&6
17627
17628# So? What about this header?
5d7b7554 17629case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
ac1cb8d3 17630 yes:no: )
a848cd7e
SC
17631 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17632echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
17633 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17634echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17635 ac_header_preproc=yes
a848cd7e 17636 ;;
ac1cb8d3 17637 no:yes:* )
a848cd7e
SC
17638 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17639echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
17640 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17641echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17642 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17643echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17644 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17645echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
17646 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17647echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
17648 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17649echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
17650 (
17651 cat <<\_ASBOX
ac1cb8d3
VS
17652## ----------------------------------------- ##
17653## Report this to wx-dev@lists.wxwidgets.org ##
17654## ----------------------------------------- ##
a848cd7e
SC
17655_ASBOX
17656 ) |
17657 sed "s/^/$as_me: WARNING: /" >&2
17658 ;;
17659esac
17660echo "$as_me:$LINENO: checking for $ac_header" >&5
17661echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17662if eval "test \"\${$as_ac_Header+set}\" = set"; then
17663 echo $ECHO_N "(cached) $ECHO_C" >&6
17664else
ac1cb8d3 17665 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
17666fi
17667echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17668echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17669
17670fi
17671if test `eval echo '${'$as_ac_Header'}'` = yes; then
17672 cat >>confdefs.h <<_ACEOF
17673#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17674_ACEOF
17675
17676fi
17677
17678done
17679
17680
17681case "${host}" in
17682 *-pc-os2_emx | *-pc-os2-emx )
391a765e
VS
17683 if test $ac_cv_header_langinfo_h = "yes" \
17684 -a \( "$wx_cv_gccversion" = "EMX2" \
17685 -o "$wx_cv_gccversion" = "EMX3" \
17686 -o "$wx_cv_gccversion" = "Innotek5" \); then
a848cd7e
SC
17687 LIBS="$LIBS -lintl"
17688 fi
17689 ;;
17690esac
17691
bc023abb
MW
17692if test "$USE_UNIX" = 1 ; then
17693
17694for ac_header in sys/select.h
17695do
17696as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17697if eval "test \"\${$as_ac_Header+set}\" = set"; then
17698 echo "$as_me:$LINENO: checking for $ac_header" >&5
17699echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17700if eval "test \"\${$as_ac_Header+set}\" = set"; then
17701 echo $ECHO_N "(cached) $ECHO_C" >&6
17702fi
17703echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17704echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17705else
17706 # Is the header compilable?
17707echo "$as_me:$LINENO: checking $ac_header usability" >&5
17708echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
17709cat >conftest.$ac_ext <<_ACEOF
17710/* confdefs.h. */
17711_ACEOF
17712cat confdefs.h >>conftest.$ac_ext
17713cat >>conftest.$ac_ext <<_ACEOF
17714/* end confdefs.h. */
17715$ac_includes_default
17716#include <$ac_header>
17717_ACEOF
17718rm -f conftest.$ac_objext
17719if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17720 (eval $ac_compile) 2>conftest.er1
17721 ac_status=$?
17722 grep -v '^ *+' conftest.er1 >conftest.err
17723 rm -f conftest.er1
17724 cat conftest.err >&5
17725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17726 (exit $ac_status); } &&
479c790c 17727 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
bc023abb
MW
17728 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17729 (eval $ac_try) 2>&5
17730 ac_status=$?
17731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17732 (exit $ac_status); }; } &&
17733 { ac_try='test -s conftest.$ac_objext'
17734 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17735 (eval $ac_try) 2>&5
17736 ac_status=$?
17737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17738 (exit $ac_status); }; }; then
17739 ac_header_compiler=yes
17740else
17741 echo "$as_me: failed program was:" >&5
17742sed 's/^/| /' conftest.$ac_ext >&5
17743
17744ac_header_compiler=no
17745fi
17746rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17747echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17748echo "${ECHO_T}$ac_header_compiler" >&6
17749
17750# Is the header present?
17751echo "$as_me:$LINENO: checking $ac_header presence" >&5
17752echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
17753cat >conftest.$ac_ext <<_ACEOF
17754/* confdefs.h. */
17755_ACEOF
17756cat confdefs.h >>conftest.$ac_ext
17757cat >>conftest.$ac_ext <<_ACEOF
17758/* end confdefs.h. */
17759#include <$ac_header>
17760_ACEOF
17761if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17762 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17763 ac_status=$?
17764 grep -v '^ *+' conftest.er1 >conftest.err
17765 rm -f conftest.er1
17766 cat conftest.err >&5
17767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17768 (exit $ac_status); } >/dev/null; then
17769 if test -s conftest.err; then
17770 ac_cpp_err=$ac_cxx_preproc_warn_flag
17771 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
17772 else
17773 ac_cpp_err=
17774 fi
17775else
17776 ac_cpp_err=yes
17777fi
17778if test -z "$ac_cpp_err"; then
17779 ac_header_preproc=yes
17780else
17781 echo "$as_me: failed program was:" >&5
17782sed 's/^/| /' conftest.$ac_ext >&5
17783
17784 ac_header_preproc=no
17785fi
17786rm -f conftest.err conftest.$ac_ext
17787echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17788echo "${ECHO_T}$ac_header_preproc" >&6
17789
17790# So? What about this header?
17791case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
17792 yes:no: )
17793 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17794echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17795 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17796echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17797 ac_header_preproc=yes
17798 ;;
17799 no:yes:* )
17800 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17801echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17802 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17803echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17804 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17805echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17806 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17807echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17808 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17809echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17810 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17811echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17812 (
17813 cat <<\_ASBOX
17814## ----------------------------------------- ##
17815## Report this to wx-dev@lists.wxwidgets.org ##
17816## ----------------------------------------- ##
17817_ASBOX
17818 ) |
17819 sed "s/^/$as_me: WARNING: /" >&2
17820 ;;
17821esac
17822echo "$as_me:$LINENO: checking for $ac_header" >&5
17823echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17824if eval "test \"\${$as_ac_Header+set}\" = set"; then
17825 echo $ECHO_N "(cached) $ECHO_C" >&6
17826else
17827 eval "$as_ac_Header=\$ac_header_preproc"
17828fi
17829echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17830echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17831
17832fi
17833if test `eval echo '${'$as_ac_Header'}'` = yes; then
17834 cat >>confdefs.h <<_ACEOF
17835#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17836_ACEOF
17837
17838fi
17839
17840done
17841
17842fi
17843
a848cd7e
SC
17844
17845echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
17846echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
17847if test "${ac_cv_c_const+set}" = set; then
17848 echo $ECHO_N "(cached) $ECHO_C" >&6
17849else
17850 cat >conftest.$ac_ext <<_ACEOF
17851/* confdefs.h. */
17852_ACEOF
17853cat confdefs.h >>conftest.$ac_ext
17854cat >>conftest.$ac_ext <<_ACEOF
17855/* end confdefs.h. */
17856
17857int
17858main ()
17859{
17860/* FIXME: Include the comments suggested by Paul. */
17861#ifndef __cplusplus
17862 /* Ultrix mips cc rejects this. */
17863 typedef int charset[2];
17864 const charset x;
17865 /* SunOS 4.1.1 cc rejects this. */
17866 char const *const *ccp;
17867 char **p;
17868 /* NEC SVR4.0.2 mips cc rejects this. */
17869 struct point {int x, y;};
17870 static struct point const zero = {0,0};
17871 /* AIX XL C 1.02.0.0 rejects this.
17872 It does not let you subtract one const X* pointer from another in
17873 an arm of an if-expression whose if-part is not a constant
17874 expression */
17875 const char *g = "string";
17876 ccp = &g + (g ? g-g : 0);
17877 /* HPUX 7.0 cc rejects these. */
17878 ++ccp;
17879 p = (char**) ccp;
17880 ccp = (char const *const *) p;
17881 { /* SCO 3.2v4 cc rejects this. */
17882 char *t;
17883 char const *s = 0 ? (char *) 0 : (char const *) 0;
17884
17885 *t++ = 0;
17886 }
17887 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
17888 int x[] = {25, 17};
17889 const int *foo = &x[0];
17890 ++foo;
17891 }
17892 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
17893 typedef const int *iptr;
17894 iptr p = 0;
17895 ++p;
17896 }
17897 { /* AIX XL C 1.02.0.0 rejects this saying
17898 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
17899 struct s { int j; const int *ap[3]; };
17900 struct s *b; b->j = 5;
17901 }
17902 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
17903 const int foo = 10;
17904 }
17905#endif
17906
17907 ;
17908 return 0;
17909}
17910_ACEOF
17911rm -f conftest.$ac_objext
17912if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17913 (eval $ac_compile) 2>conftest.er1
a848cd7e 17914 ac_status=$?
ac1cb8d3
VS
17915 grep -v '^ *+' conftest.er1 >conftest.err
17916 rm -f conftest.er1
17917 cat conftest.err >&5
a848cd7e
SC
17918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17919 (exit $ac_status); } &&
479c790c 17920 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17921 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17922 (eval $ac_try) 2>&5
17923 ac_status=$?
17924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17925 (exit $ac_status); }; } &&
17926 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17927 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17928 (eval $ac_try) 2>&5
17929 ac_status=$?
17930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17931 (exit $ac_status); }; }; then
17932 ac_cv_c_const=yes
17933else
17934 echo "$as_me: failed program was:" >&5
17935sed 's/^/| /' conftest.$ac_ext >&5
17936
17937ac_cv_c_const=no
17938fi
ac1cb8d3 17939rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17940fi
17941echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
17942echo "${ECHO_T}$ac_cv_c_const" >&6
17943if test $ac_cv_c_const = no; then
17944
17945cat >>confdefs.h <<\_ACEOF
17946#define const
17947_ACEOF
17948
17949fi
17950
17951echo "$as_me:$LINENO: checking for inline" >&5
17952echo $ECHO_N "checking for inline... $ECHO_C" >&6
17953if test "${ac_cv_c_inline+set}" = set; then
17954 echo $ECHO_N "(cached) $ECHO_C" >&6
17955else
17956 ac_cv_c_inline=no
17957for ac_kw in inline __inline__ __inline; do
17958 cat >conftest.$ac_ext <<_ACEOF
17959/* confdefs.h. */
17960_ACEOF
17961cat confdefs.h >>conftest.$ac_ext
17962cat >>conftest.$ac_ext <<_ACEOF
17963/* end confdefs.h. */
17964#ifndef __cplusplus
17965typedef int foo_t;
17966static $ac_kw foo_t static_foo () {return 0; }
17967$ac_kw foo_t foo () {return 0; }
17968#endif
17969
17970_ACEOF
17971rm -f conftest.$ac_objext
17972if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17973 (eval $ac_compile) 2>conftest.er1
a848cd7e 17974 ac_status=$?
ac1cb8d3
VS
17975 grep -v '^ *+' conftest.er1 >conftest.err
17976 rm -f conftest.er1
17977 cat conftest.err >&5
a848cd7e
SC
17978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17979 (exit $ac_status); } &&
479c790c 17980 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17981 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17982 (eval $ac_try) 2>&5
17983 ac_status=$?
17984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17985 (exit $ac_status); }; } &&
17986 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17987 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17988 (eval $ac_try) 2>&5
17989 ac_status=$?
17990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17991 (exit $ac_status); }; }; then
17992 ac_cv_c_inline=$ac_kw; break
17993else
17994 echo "$as_me: failed program was:" >&5
17995sed 's/^/| /' conftest.$ac_ext >&5
17996
17997fi
ac1cb8d3 17998rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17999done
18000
18001fi
18002echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
18003echo "${ECHO_T}$ac_cv_c_inline" >&6
ac1cb8d3
VS
18004
18005
a848cd7e
SC
18006case $ac_cv_c_inline in
18007 inline | yes) ;;
ac1cb8d3
VS
18008 *)
18009 case $ac_cv_c_inline in
18010 no) ac_val=;;
18011 *) ac_val=$ac_cv_c_inline;;
18012 esac
18013 cat >>confdefs.h <<_ACEOF
18014#ifndef __cplusplus
18015#define inline $ac_val
18016#endif
de59c161 18017_ACEOF
ac1cb8d3 18018 ;;
a848cd7e
SC
18019esac
18020
18021
18022echo "$as_me:$LINENO: checking for char" >&5
18023echo $ECHO_N "checking for char... $ECHO_C" >&6
18024if test "${ac_cv_type_char+set}" = set; then
18025 echo $ECHO_N "(cached) $ECHO_C" >&6
18026else
18027 cat >conftest.$ac_ext <<_ACEOF
18028/* confdefs.h. */
18029_ACEOF
18030cat confdefs.h >>conftest.$ac_ext
18031cat >>conftest.$ac_ext <<_ACEOF
18032/* end confdefs.h. */
18033$ac_includes_default
18034int
18035main ()
18036{
18037if ((char *) 0)
18038 return 0;
18039if (sizeof (char))
18040 return 0;
18041 ;
18042 return 0;
18043}
18044_ACEOF
18045rm -f conftest.$ac_objext
18046if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18047 (eval $ac_compile) 2>conftest.er1
a848cd7e 18048 ac_status=$?
ac1cb8d3
VS
18049 grep -v '^ *+' conftest.er1 >conftest.err
18050 rm -f conftest.er1
18051 cat conftest.err >&5
a848cd7e
SC
18052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18053 (exit $ac_status); } &&
479c790c 18054 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18055 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18056 (eval $ac_try) 2>&5
18057 ac_status=$?
18058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18059 (exit $ac_status); }; } &&
18060 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18061 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18062 (eval $ac_try) 2>&5
18063 ac_status=$?
18064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18065 (exit $ac_status); }; }; then
18066 ac_cv_type_char=yes
18067else
18068 echo "$as_me: failed program was:" >&5
18069sed 's/^/| /' conftest.$ac_ext >&5
18070
18071ac_cv_type_char=no
18072fi
ac1cb8d3 18073rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18074fi
18075echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
18076echo "${ECHO_T}$ac_cv_type_char" >&6
18077
18078echo "$as_me:$LINENO: checking size of char" >&5
18079echo $ECHO_N "checking size of char... $ECHO_C" >&6
18080if test "${ac_cv_sizeof_char+set}" = set; then
18081 echo $ECHO_N "(cached) $ECHO_C" >&6
18082else
18083 if test "$ac_cv_type_char" = yes; then
18084 # The cast to unsigned long works around a bug in the HP C Compiler
18085 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
18086 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
18087 # This bug is HP SR number 8606223364.
18088 if test "$cross_compiling" = yes; then
18089 # Depending upon the size, compute the lo and hi bounds.
18090cat >conftest.$ac_ext <<_ACEOF
18091/* confdefs.h. */
18092_ACEOF
18093cat confdefs.h >>conftest.$ac_ext
18094cat >>conftest.$ac_ext <<_ACEOF
18095/* end confdefs.h. */
18096$ac_includes_default
18097int
18098main ()
18099{
18100static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)];
18101test_array [0] = 0
18102
18103 ;
18104 return 0;
18105}
18106_ACEOF
18107rm -f conftest.$ac_objext
18108if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18109 (eval $ac_compile) 2>conftest.er1
a848cd7e 18110 ac_status=$?
ac1cb8d3
VS
18111 grep -v '^ *+' conftest.er1 >conftest.err
18112 rm -f conftest.er1
18113 cat conftest.err >&5
a848cd7e
SC
18114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18115 (exit $ac_status); } &&
479c790c 18116 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18117 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18118 (eval $ac_try) 2>&5
18119 ac_status=$?
18120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18121 (exit $ac_status); }; } &&
18122 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18123 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18124 (eval $ac_try) 2>&5
18125 ac_status=$?
18126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18127 (exit $ac_status); }; }; then
18128 ac_lo=0 ac_mid=0
18129 while :; do
18130 cat >conftest.$ac_ext <<_ACEOF
18131/* confdefs.h. */
18132_ACEOF
18133cat confdefs.h >>conftest.$ac_ext
18134cat >>conftest.$ac_ext <<_ACEOF
18135/* end confdefs.h. */
18136$ac_includes_default
18137int
18138main ()
18139{
18140static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
18141test_array [0] = 0
18142
18143 ;
18144 return 0;
18145}
18146_ACEOF
18147rm -f conftest.$ac_objext
18148if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18149 (eval $ac_compile) 2>conftest.er1
a848cd7e 18150 ac_status=$?
ac1cb8d3
VS
18151 grep -v '^ *+' conftest.er1 >conftest.err
18152 rm -f conftest.er1
18153 cat conftest.err >&5
a848cd7e
SC
18154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18155 (exit $ac_status); } &&
479c790c 18156 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18157 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18158 (eval $ac_try) 2>&5
18159 ac_status=$?
18160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18161 (exit $ac_status); }; } &&
18162 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18163 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18164 (eval $ac_try) 2>&5
18165 ac_status=$?
18166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18167 (exit $ac_status); }; }; then
18168 ac_hi=$ac_mid; break
18169else
18170 echo "$as_me: failed program was:" >&5
18171sed 's/^/| /' conftest.$ac_ext >&5
18172
18173ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
18174 if test $ac_lo -le $ac_mid; then
18175 ac_lo= ac_hi=
18176 break
18177 fi
18178 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 18179fi
ac1cb8d3 18180rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18181 done
18182else
18183 echo "$as_me: failed program was:" >&5
18184sed 's/^/| /' conftest.$ac_ext >&5
18185
18186cat >conftest.$ac_ext <<_ACEOF
18187/* confdefs.h. */
18188_ACEOF
18189cat confdefs.h >>conftest.$ac_ext
18190cat >>conftest.$ac_ext <<_ACEOF
18191/* end confdefs.h. */
18192$ac_includes_default
18193int
18194main ()
18195{
18196static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)];
18197test_array [0] = 0
18198
18199 ;
18200 return 0;
18201}
18202_ACEOF
18203rm -f conftest.$ac_objext
18204if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18205 (eval $ac_compile) 2>conftest.er1
a848cd7e 18206 ac_status=$?
ac1cb8d3
VS
18207 grep -v '^ *+' conftest.er1 >conftest.err
18208 rm -f conftest.er1
18209 cat conftest.err >&5
a848cd7e
SC
18210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18211 (exit $ac_status); } &&
479c790c 18212 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18213 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18214 (eval $ac_try) 2>&5
18215 ac_status=$?
18216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18217 (exit $ac_status); }; } &&
18218 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18219 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18220 (eval $ac_try) 2>&5
18221 ac_status=$?
18222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18223 (exit $ac_status); }; }; then
18224 ac_hi=-1 ac_mid=-1
18225 while :; do
18226 cat >conftest.$ac_ext <<_ACEOF
18227/* confdefs.h. */
18228_ACEOF
18229cat confdefs.h >>conftest.$ac_ext
18230cat >>conftest.$ac_ext <<_ACEOF
18231/* end confdefs.h. */
18232$ac_includes_default
18233int
18234main ()
18235{
18236static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)];
18237test_array [0] = 0
18238
18239 ;
18240 return 0;
18241}
18242_ACEOF
18243rm -f conftest.$ac_objext
18244if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18245 (eval $ac_compile) 2>conftest.er1
a848cd7e 18246 ac_status=$?
ac1cb8d3
VS
18247 grep -v '^ *+' conftest.er1 >conftest.err
18248 rm -f conftest.er1
18249 cat conftest.err >&5
a848cd7e
SC
18250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18251 (exit $ac_status); } &&
479c790c 18252 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18253 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18254 (eval $ac_try) 2>&5
18255 ac_status=$?
18256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18257 (exit $ac_status); }; } &&
18258 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18259 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18260 (eval $ac_try) 2>&5
18261 ac_status=$?
18262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18263 (exit $ac_status); }; }; then
18264 ac_lo=$ac_mid; break
18265else
18266 echo "$as_me: failed program was:" >&5
18267sed 's/^/| /' conftest.$ac_ext >&5
18268
18269ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
18270 if test $ac_mid -le $ac_hi; then
18271 ac_lo= ac_hi=
18272 break
18273 fi
18274 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 18275fi
ac1cb8d3 18276rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18277 done
18278else
18279 echo "$as_me: failed program was:" >&5
18280sed 's/^/| /' conftest.$ac_ext >&5
18281
18282ac_lo= ac_hi=
18283fi
ac1cb8d3 18284rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 18285fi
ac1cb8d3 18286rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18287# Binary search between lo and hi bounds.
18288while test "x$ac_lo" != "x$ac_hi"; do
18289 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
18290 cat >conftest.$ac_ext <<_ACEOF
18291/* confdefs.h. */
18292_ACEOF
18293cat confdefs.h >>conftest.$ac_ext
18294cat >>conftest.$ac_ext <<_ACEOF
18295/* end confdefs.h. */
18296$ac_includes_default
18297int
18298main ()
18299{
18300static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
18301test_array [0] = 0
18302
18303 ;
18304 return 0;
18305}
18306_ACEOF
18307rm -f conftest.$ac_objext
18308if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18309 (eval $ac_compile) 2>conftest.er1
a848cd7e 18310 ac_status=$?
ac1cb8d3
VS
18311 grep -v '^ *+' conftest.er1 >conftest.err
18312 rm -f conftest.er1
18313 cat conftest.err >&5
a848cd7e
SC
18314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18315 (exit $ac_status); } &&
479c790c 18316 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18317 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18318 (eval $ac_try) 2>&5
18319 ac_status=$?
18320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18321 (exit $ac_status); }; } &&
18322 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18323 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18324 (eval $ac_try) 2>&5
18325 ac_status=$?
18326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18327 (exit $ac_status); }; }; then
18328 ac_hi=$ac_mid
18329else
18330 echo "$as_me: failed program was:" >&5
18331sed 's/^/| /' conftest.$ac_ext >&5
18332
18333ac_lo=`expr '(' $ac_mid ')' + 1`
18334fi
ac1cb8d3 18335rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18336done
18337case $ac_lo in
18338?*) ac_cv_sizeof_char=$ac_lo;;
18339'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
18340See \`config.log' for more details." >&5
18341echo "$as_me: error: cannot compute sizeof (char), 77
18342See \`config.log' for more details." >&2;}
18343 { (exit 1); exit 1; }; } ;;
18344esac
18345else
18346 if test "$cross_compiling" = yes; then
479c790c
VZ
18347 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
18348echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
a848cd7e
SC
18349 { (exit 1); exit 1; }; }
18350else
18351 cat >conftest.$ac_ext <<_ACEOF
18352/* confdefs.h. */
18353_ACEOF
18354cat confdefs.h >>conftest.$ac_ext
18355cat >>conftest.$ac_ext <<_ACEOF
18356/* end confdefs.h. */
18357$ac_includes_default
18358long longval () { return (long) (sizeof (char)); }
18359unsigned long ulongval () { return (long) (sizeof (char)); }
18360#include <stdio.h>
18361#include <stdlib.h>
18362int
18363main ()
18364{
18365
18366 FILE *f = fopen ("conftest.val", "w");
18367 if (! f)
18368 exit (1);
18369 if (((long) (sizeof (char))) < 0)
18370 {
18371 long i = longval ();
18372 if (i != ((long) (sizeof (char))))
18373 exit (1);
18374 fprintf (f, "%ld\n", i);
18375 }
18376 else
18377 {
18378 unsigned long i = ulongval ();
18379 if (i != ((long) (sizeof (char))))
18380 exit (1);
18381 fprintf (f, "%lu\n", i);
18382 }
18383 exit (ferror (f) || fclose (f) != 0);
18384
18385 ;
18386 return 0;
18387}
18388_ACEOF
18389rm -f conftest$ac_exeext
18390if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18391 (eval $ac_link) 2>&5
18392 ac_status=$?
18393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18394 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18395 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18396 (eval $ac_try) 2>&5
18397 ac_status=$?
18398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18399 (exit $ac_status); }; }; then
18400 ac_cv_sizeof_char=`cat conftest.val`
18401else
18402 echo "$as_me: program exited with status $ac_status" >&5
18403echo "$as_me: failed program was:" >&5
18404sed 's/^/| /' conftest.$ac_ext >&5
18405
18406( exit $ac_status )
18407{ { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
18408See \`config.log' for more details." >&5
18409echo "$as_me: error: cannot compute sizeof (char), 77
18410See \`config.log' for more details." >&2;}
18411 { (exit 1); exit 1; }; }
18412fi
ac1cb8d3 18413rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18414fi
18415fi
18416rm -f conftest.val
18417else
18418 ac_cv_sizeof_char=0
18419fi
18420fi
18421echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
18422echo "${ECHO_T}$ac_cv_sizeof_char" >&6
18423cat >>confdefs.h <<_ACEOF
18424#define SIZEOF_CHAR $ac_cv_sizeof_char
18425_ACEOF
18426
18427
18428echo "$as_me:$LINENO: checking for short" >&5
18429echo $ECHO_N "checking for short... $ECHO_C" >&6
18430if test "${ac_cv_type_short+set}" = set; then
18431 echo $ECHO_N "(cached) $ECHO_C" >&6
18432else
18433 cat >conftest.$ac_ext <<_ACEOF
18434/* confdefs.h. */
18435_ACEOF
18436cat confdefs.h >>conftest.$ac_ext
18437cat >>conftest.$ac_ext <<_ACEOF
18438/* end confdefs.h. */
18439$ac_includes_default
18440int
18441main ()
18442{
18443if ((short *) 0)
18444 return 0;
18445if (sizeof (short))
18446 return 0;
18447 ;
18448 return 0;
18449}
18450_ACEOF
18451rm -f conftest.$ac_objext
18452if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18453 (eval $ac_compile) 2>conftest.er1
a848cd7e 18454 ac_status=$?
ac1cb8d3
VS
18455 grep -v '^ *+' conftest.er1 >conftest.err
18456 rm -f conftest.er1
18457 cat conftest.err >&5
a848cd7e
SC
18458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18459 (exit $ac_status); } &&
479c790c 18460 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18461 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18462 (eval $ac_try) 2>&5
18463 ac_status=$?
18464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18465 (exit $ac_status); }; } &&
18466 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18467 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18468 (eval $ac_try) 2>&5
18469 ac_status=$?
18470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18471 (exit $ac_status); }; }; then
18472 ac_cv_type_short=yes
18473else
18474 echo "$as_me: failed program was:" >&5
18475sed 's/^/| /' conftest.$ac_ext >&5
18476
18477ac_cv_type_short=no
18478fi
ac1cb8d3 18479rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18480fi
18481echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
18482echo "${ECHO_T}$ac_cv_type_short" >&6
18483
18484echo "$as_me:$LINENO: checking size of short" >&5
18485echo $ECHO_N "checking size of short... $ECHO_C" >&6
18486if test "${ac_cv_sizeof_short+set}" = set; then
18487 echo $ECHO_N "(cached) $ECHO_C" >&6
18488else
18489 if test "$ac_cv_type_short" = yes; then
18490 # The cast to unsigned long works around a bug in the HP C Compiler
18491 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
18492 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
18493 # This bug is HP SR number 8606223364.
18494 if test "$cross_compiling" = yes; then
18495 # Depending upon the size, compute the lo and hi bounds.
18496cat >conftest.$ac_ext <<_ACEOF
18497/* confdefs.h. */
18498_ACEOF
18499cat confdefs.h >>conftest.$ac_ext
18500cat >>conftest.$ac_ext <<_ACEOF
18501/* end confdefs.h. */
18502$ac_includes_default
18503int
18504main ()
18505{
18506static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
18507test_array [0] = 0
18508
18509 ;
18510 return 0;
18511}
18512_ACEOF
18513rm -f conftest.$ac_objext
18514if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18515 (eval $ac_compile) 2>conftest.er1
a848cd7e 18516 ac_status=$?
ac1cb8d3
VS
18517 grep -v '^ *+' conftest.er1 >conftest.err
18518 rm -f conftest.er1
18519 cat conftest.err >&5
a848cd7e
SC
18520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18521 (exit $ac_status); } &&
479c790c 18522 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18523 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18524 (eval $ac_try) 2>&5
18525 ac_status=$?
18526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18527 (exit $ac_status); }; } &&
18528 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18529 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18530 (eval $ac_try) 2>&5
18531 ac_status=$?
18532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18533 (exit $ac_status); }; }; then
18534 ac_lo=0 ac_mid=0
18535 while :; do
18536 cat >conftest.$ac_ext <<_ACEOF
18537/* confdefs.h. */
18538_ACEOF
18539cat confdefs.h >>conftest.$ac_ext
18540cat >>conftest.$ac_ext <<_ACEOF
18541/* end confdefs.h. */
18542$ac_includes_default
18543int
18544main ()
18545{
18546static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
18547test_array [0] = 0
18548
18549 ;
18550 return 0;
18551}
18552_ACEOF
18553rm -f conftest.$ac_objext
18554if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18555 (eval $ac_compile) 2>conftest.er1
a848cd7e 18556 ac_status=$?
ac1cb8d3
VS
18557 grep -v '^ *+' conftest.er1 >conftest.err
18558 rm -f conftest.er1
18559 cat conftest.err >&5
a848cd7e
SC
18560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18561 (exit $ac_status); } &&
479c790c 18562 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18563 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18564 (eval $ac_try) 2>&5
18565 ac_status=$?
18566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18567 (exit $ac_status); }; } &&
18568 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18569 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18570 (eval $ac_try) 2>&5
18571 ac_status=$?
18572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18573 (exit $ac_status); }; }; then
18574 ac_hi=$ac_mid; break
18575else
18576 echo "$as_me: failed program was:" >&5
18577sed 's/^/| /' conftest.$ac_ext >&5
18578
18579ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
18580 if test $ac_lo -le $ac_mid; then
18581 ac_lo= ac_hi=
18582 break
18583 fi
18584 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 18585fi
ac1cb8d3 18586rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18587 done
18588else
18589 echo "$as_me: failed program was:" >&5
18590sed 's/^/| /' conftest.$ac_ext >&5
18591
18592cat >conftest.$ac_ext <<_ACEOF
18593/* confdefs.h. */
18594_ACEOF
18595cat confdefs.h >>conftest.$ac_ext
18596cat >>conftest.$ac_ext <<_ACEOF
18597/* end confdefs.h. */
18598$ac_includes_default
18599int
18600main ()
18601{
18602static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
18603test_array [0] = 0
18604
18605 ;
18606 return 0;
18607}
18608_ACEOF
18609rm -f conftest.$ac_objext
18610if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18611 (eval $ac_compile) 2>conftest.er1
a848cd7e 18612 ac_status=$?
ac1cb8d3
VS
18613 grep -v '^ *+' conftest.er1 >conftest.err
18614 rm -f conftest.er1
18615 cat conftest.err >&5
a848cd7e
SC
18616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18617 (exit $ac_status); } &&
479c790c 18618 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18619 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18620 (eval $ac_try) 2>&5
18621 ac_status=$?
18622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18623 (exit $ac_status); }; } &&
18624 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18625 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18626 (eval $ac_try) 2>&5
18627 ac_status=$?
18628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18629 (exit $ac_status); }; }; then
18630 ac_hi=-1 ac_mid=-1
18631 while :; do
18632 cat >conftest.$ac_ext <<_ACEOF
18633/* confdefs.h. */
18634_ACEOF
18635cat confdefs.h >>conftest.$ac_ext
18636cat >>conftest.$ac_ext <<_ACEOF
18637/* end confdefs.h. */
18638$ac_includes_default
18639int
18640main ()
18641{
18642static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
18643test_array [0] = 0
18644
18645 ;
18646 return 0;
18647}
18648_ACEOF
18649rm -f conftest.$ac_objext
18650if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18651 (eval $ac_compile) 2>conftest.er1
a848cd7e 18652 ac_status=$?
ac1cb8d3
VS
18653 grep -v '^ *+' conftest.er1 >conftest.err
18654 rm -f conftest.er1
18655 cat conftest.err >&5
a848cd7e
SC
18656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18657 (exit $ac_status); } &&
479c790c 18658 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18659 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18660 (eval $ac_try) 2>&5
18661 ac_status=$?
18662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18663 (exit $ac_status); }; } &&
18664 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18665 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18666 (eval $ac_try) 2>&5
18667 ac_status=$?
18668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18669 (exit $ac_status); }; }; then
18670 ac_lo=$ac_mid; break
18671else
18672 echo "$as_me: failed program was:" >&5
18673sed 's/^/| /' conftest.$ac_ext >&5
18674
18675ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
18676 if test $ac_mid -le $ac_hi; then
18677 ac_lo= ac_hi=
18678 break
18679 fi
18680 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 18681fi
ac1cb8d3 18682rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18683 done
18684else
18685 echo "$as_me: failed program was:" >&5
18686sed 's/^/| /' conftest.$ac_ext >&5
18687
18688ac_lo= ac_hi=
18689fi
ac1cb8d3 18690rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 18691fi
ac1cb8d3 18692rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18693# Binary search between lo and hi bounds.
18694while test "x$ac_lo" != "x$ac_hi"; do
18695 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
18696 cat >conftest.$ac_ext <<_ACEOF
18697/* confdefs.h. */
18698_ACEOF
18699cat confdefs.h >>conftest.$ac_ext
18700cat >>conftest.$ac_ext <<_ACEOF
18701/* end confdefs.h. */
18702$ac_includes_default
18703int
18704main ()
18705{
18706static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
18707test_array [0] = 0
18708
18709 ;
18710 return 0;
18711}
18712_ACEOF
18713rm -f conftest.$ac_objext
18714if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18715 (eval $ac_compile) 2>conftest.er1
a848cd7e 18716 ac_status=$?
ac1cb8d3
VS
18717 grep -v '^ *+' conftest.er1 >conftest.err
18718 rm -f conftest.er1
18719 cat conftest.err >&5
a848cd7e
SC
18720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18721 (exit $ac_status); } &&
479c790c 18722 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18723 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18724 (eval $ac_try) 2>&5
18725 ac_status=$?
18726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18727 (exit $ac_status); }; } &&
18728 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18729 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18730 (eval $ac_try) 2>&5
18731 ac_status=$?
18732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18733 (exit $ac_status); }; }; then
18734 ac_hi=$ac_mid
18735else
18736 echo "$as_me: failed program was:" >&5
18737sed 's/^/| /' conftest.$ac_ext >&5
18738
18739ac_lo=`expr '(' $ac_mid ')' + 1`
18740fi
ac1cb8d3 18741rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18742done
18743case $ac_lo in
18744?*) ac_cv_sizeof_short=$ac_lo;;
18745'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
18746See \`config.log' for more details." >&5
18747echo "$as_me: error: cannot compute sizeof (short), 77
18748See \`config.log' for more details." >&2;}
18749 { (exit 1); exit 1; }; } ;;
18750esac
18751else
18752 if test "$cross_compiling" = yes; then
479c790c
VZ
18753 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
18754echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
a848cd7e
SC
18755 { (exit 1); exit 1; }; }
18756else
18757 cat >conftest.$ac_ext <<_ACEOF
18758/* confdefs.h. */
18759_ACEOF
18760cat confdefs.h >>conftest.$ac_ext
18761cat >>conftest.$ac_ext <<_ACEOF
18762/* end confdefs.h. */
18763$ac_includes_default
18764long longval () { return (long) (sizeof (short)); }
18765unsigned long ulongval () { return (long) (sizeof (short)); }
18766#include <stdio.h>
18767#include <stdlib.h>
18768int
18769main ()
18770{
18771
18772 FILE *f = fopen ("conftest.val", "w");
18773 if (! f)
18774 exit (1);
18775 if (((long) (sizeof (short))) < 0)
18776 {
18777 long i = longval ();
18778 if (i != ((long) (sizeof (short))))
18779 exit (1);
18780 fprintf (f, "%ld\n", i);
18781 }
18782 else
18783 {
18784 unsigned long i = ulongval ();
18785 if (i != ((long) (sizeof (short))))
18786 exit (1);
18787 fprintf (f, "%lu\n", i);
18788 }
18789 exit (ferror (f) || fclose (f) != 0);
18790
18791 ;
18792 return 0;
18793}
18794_ACEOF
18795rm -f conftest$ac_exeext
18796if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18797 (eval $ac_link) 2>&5
18798 ac_status=$?
18799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18800 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18801 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18802 (eval $ac_try) 2>&5
18803 ac_status=$?
18804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18805 (exit $ac_status); }; }; then
18806 ac_cv_sizeof_short=`cat conftest.val`
18807else
18808 echo "$as_me: program exited with status $ac_status" >&5
18809echo "$as_me: failed program was:" >&5
18810sed 's/^/| /' conftest.$ac_ext >&5
18811
18812( exit $ac_status )
18813{ { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
18814See \`config.log' for more details." >&5
18815echo "$as_me: error: cannot compute sizeof (short), 77
18816See \`config.log' for more details." >&2;}
18817 { (exit 1); exit 1; }; }
18818fi
ac1cb8d3 18819rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18820fi
18821fi
18822rm -f conftest.val
18823else
18824 ac_cv_sizeof_short=0
18825fi
18826fi
18827echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
18828echo "${ECHO_T}$ac_cv_sizeof_short" >&6
18829cat >>confdefs.h <<_ACEOF
18830#define SIZEOF_SHORT $ac_cv_sizeof_short
18831_ACEOF
18832
18833
18834echo "$as_me:$LINENO: checking for void *" >&5
18835echo $ECHO_N "checking for void *... $ECHO_C" >&6
18836if test "${ac_cv_type_void_p+set}" = set; then
18837 echo $ECHO_N "(cached) $ECHO_C" >&6
18838else
18839 cat >conftest.$ac_ext <<_ACEOF
18840/* confdefs.h. */
18841_ACEOF
18842cat confdefs.h >>conftest.$ac_ext
18843cat >>conftest.$ac_ext <<_ACEOF
18844/* end confdefs.h. */
18845$ac_includes_default
18846int
18847main ()
18848{
18849if ((void * *) 0)
18850 return 0;
18851if (sizeof (void *))
18852 return 0;
18853 ;
18854 return 0;
18855}
18856_ACEOF
18857rm -f conftest.$ac_objext
18858if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18859 (eval $ac_compile) 2>conftest.er1
a848cd7e 18860 ac_status=$?
ac1cb8d3
VS
18861 grep -v '^ *+' conftest.er1 >conftest.err
18862 rm -f conftest.er1
18863 cat conftest.err >&5
a848cd7e
SC
18864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18865 (exit $ac_status); } &&
479c790c 18866 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18867 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18868 (eval $ac_try) 2>&5
18869 ac_status=$?
18870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18871 (exit $ac_status); }; } &&
18872 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18873 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18874 (eval $ac_try) 2>&5
18875 ac_status=$?
18876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18877 (exit $ac_status); }; }; then
18878 ac_cv_type_void_p=yes
18879else
18880 echo "$as_me: failed program was:" >&5
18881sed 's/^/| /' conftest.$ac_ext >&5
18882
18883ac_cv_type_void_p=no
18884fi
ac1cb8d3 18885rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18886fi
18887echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
18888echo "${ECHO_T}$ac_cv_type_void_p" >&6
18889
18890echo "$as_me:$LINENO: checking size of void *" >&5
18891echo $ECHO_N "checking size of void *... $ECHO_C" >&6
18892if test "${ac_cv_sizeof_void_p+set}" = set; then
18893 echo $ECHO_N "(cached) $ECHO_C" >&6
18894else
18895 if test "$ac_cv_type_void_p" = yes; then
18896 # The cast to unsigned long works around a bug in the HP C Compiler
18897 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
18898 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
18899 # This bug is HP SR number 8606223364.
18900 if test "$cross_compiling" = yes; then
18901 # Depending upon the size, compute the lo and hi bounds.
18902cat >conftest.$ac_ext <<_ACEOF
18903/* confdefs.h. */
18904_ACEOF
18905cat confdefs.h >>conftest.$ac_ext
18906cat >>conftest.$ac_ext <<_ACEOF
18907/* end confdefs.h. */
18908$ac_includes_default
18909int
18910main ()
18911{
18912static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)];
18913test_array [0] = 0
18914
18915 ;
18916 return 0;
18917}
18918_ACEOF
18919rm -f conftest.$ac_objext
18920if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18921 (eval $ac_compile) 2>conftest.er1
a848cd7e 18922 ac_status=$?
ac1cb8d3
VS
18923 grep -v '^ *+' conftest.er1 >conftest.err
18924 rm -f conftest.er1
18925 cat conftest.err >&5
a848cd7e
SC
18926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18927 (exit $ac_status); } &&
479c790c 18928 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18929 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18930 (eval $ac_try) 2>&5
18931 ac_status=$?
18932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18933 (exit $ac_status); }; } &&
18934 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18935 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18936 (eval $ac_try) 2>&5
18937 ac_status=$?
18938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18939 (exit $ac_status); }; }; then
18940 ac_lo=0 ac_mid=0
18941 while :; do
18942 cat >conftest.$ac_ext <<_ACEOF
18943/* confdefs.h. */
18944_ACEOF
18945cat confdefs.h >>conftest.$ac_ext
18946cat >>conftest.$ac_ext <<_ACEOF
18947/* end confdefs.h. */
18948$ac_includes_default
18949int
18950main ()
18951{
18952static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
18953test_array [0] = 0
18954
18955 ;
18956 return 0;
18957}
18958_ACEOF
18959rm -f conftest.$ac_objext
18960if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18961 (eval $ac_compile) 2>conftest.er1
a848cd7e 18962 ac_status=$?
ac1cb8d3
VS
18963 grep -v '^ *+' conftest.er1 >conftest.err
18964 rm -f conftest.er1
18965 cat conftest.err >&5
a848cd7e
SC
18966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18967 (exit $ac_status); } &&
479c790c 18968 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18969 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18970 (eval $ac_try) 2>&5
18971 ac_status=$?
18972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18973 (exit $ac_status); }; } &&
18974 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18975 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18976 (eval $ac_try) 2>&5
18977 ac_status=$?
18978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18979 (exit $ac_status); }; }; then
18980 ac_hi=$ac_mid; break
18981else
18982 echo "$as_me: failed program was:" >&5
18983sed 's/^/| /' conftest.$ac_ext >&5
18984
18985ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
18986 if test $ac_lo -le $ac_mid; then
18987 ac_lo= ac_hi=
18988 break
18989 fi
18990 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 18991fi
ac1cb8d3 18992rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18993 done
18994else
18995 echo "$as_me: failed program was:" >&5
18996sed 's/^/| /' conftest.$ac_ext >&5
18997
18998cat >conftest.$ac_ext <<_ACEOF
18999/* confdefs.h. */
19000_ACEOF
19001cat confdefs.h >>conftest.$ac_ext
19002cat >>conftest.$ac_ext <<_ACEOF
19003/* end confdefs.h. */
19004$ac_includes_default
19005int
19006main ()
19007{
19008static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)];
19009test_array [0] = 0
19010
19011 ;
19012 return 0;
19013}
19014_ACEOF
19015rm -f conftest.$ac_objext
19016if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19017 (eval $ac_compile) 2>conftest.er1
a848cd7e 19018 ac_status=$?
ac1cb8d3
VS
19019 grep -v '^ *+' conftest.er1 >conftest.err
19020 rm -f conftest.er1
19021 cat conftest.err >&5
a848cd7e
SC
19022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19023 (exit $ac_status); } &&
479c790c 19024 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19025 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19026 (eval $ac_try) 2>&5
19027 ac_status=$?
19028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19029 (exit $ac_status); }; } &&
19030 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19031 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19032 (eval $ac_try) 2>&5
19033 ac_status=$?
19034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19035 (exit $ac_status); }; }; then
19036 ac_hi=-1 ac_mid=-1
19037 while :; do
19038 cat >conftest.$ac_ext <<_ACEOF
19039/* confdefs.h. */
19040_ACEOF
19041cat confdefs.h >>conftest.$ac_ext
19042cat >>conftest.$ac_ext <<_ACEOF
19043/* end confdefs.h. */
19044$ac_includes_default
19045int
19046main ()
19047{
19048static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)];
19049test_array [0] = 0
19050
19051 ;
19052 return 0;
19053}
19054_ACEOF
19055rm -f conftest.$ac_objext
19056if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19057 (eval $ac_compile) 2>conftest.er1
a848cd7e 19058 ac_status=$?
ac1cb8d3
VS
19059 grep -v '^ *+' conftest.er1 >conftest.err
19060 rm -f conftest.er1
19061 cat conftest.err >&5
a848cd7e
SC
19062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19063 (exit $ac_status); } &&
479c790c 19064 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19065 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19066 (eval $ac_try) 2>&5
19067 ac_status=$?
19068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19069 (exit $ac_status); }; } &&
19070 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19071 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19072 (eval $ac_try) 2>&5
19073 ac_status=$?
19074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19075 (exit $ac_status); }; }; then
19076 ac_lo=$ac_mid; break
19077else
19078 echo "$as_me: failed program was:" >&5
19079sed 's/^/| /' conftest.$ac_ext >&5
19080
19081ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
19082 if test $ac_mid -le $ac_hi; then
19083 ac_lo= ac_hi=
19084 break
19085 fi
19086 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 19087fi
ac1cb8d3 19088rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19089 done
19090else
19091 echo "$as_me: failed program was:" >&5
19092sed 's/^/| /' conftest.$ac_ext >&5
19093
19094ac_lo= ac_hi=
19095fi
ac1cb8d3 19096rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 19097fi
ac1cb8d3 19098rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19099# Binary search between lo and hi bounds.
19100while test "x$ac_lo" != "x$ac_hi"; do
19101 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
19102 cat >conftest.$ac_ext <<_ACEOF
19103/* confdefs.h. */
19104_ACEOF
19105cat confdefs.h >>conftest.$ac_ext
19106cat >>conftest.$ac_ext <<_ACEOF
19107/* end confdefs.h. */
19108$ac_includes_default
19109int
19110main ()
19111{
19112static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
19113test_array [0] = 0
19114
19115 ;
19116 return 0;
19117}
19118_ACEOF
19119rm -f conftest.$ac_objext
19120if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19121 (eval $ac_compile) 2>conftest.er1
a848cd7e 19122 ac_status=$?
ac1cb8d3
VS
19123 grep -v '^ *+' conftest.er1 >conftest.err
19124 rm -f conftest.er1
19125 cat conftest.err >&5
a848cd7e
SC
19126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19127 (exit $ac_status); } &&
479c790c 19128 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19129 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19130 (eval $ac_try) 2>&5
19131 ac_status=$?
19132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19133 (exit $ac_status); }; } &&
19134 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19135 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19136 (eval $ac_try) 2>&5
19137 ac_status=$?
19138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19139 (exit $ac_status); }; }; then
19140 ac_hi=$ac_mid
19141else
19142 echo "$as_me: failed program was:" >&5
19143sed 's/^/| /' conftest.$ac_ext >&5
19144
19145ac_lo=`expr '(' $ac_mid ')' + 1`
19146fi
ac1cb8d3 19147rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19148done
19149case $ac_lo in
19150?*) ac_cv_sizeof_void_p=$ac_lo;;
19151'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
19152See \`config.log' for more details." >&5
19153echo "$as_me: error: cannot compute sizeof (void *), 77
19154See \`config.log' for more details." >&2;}
19155 { (exit 1); exit 1; }; } ;;
19156esac
19157else
19158 if test "$cross_compiling" = yes; then
479c790c
VZ
19159 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
19160echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
a848cd7e
SC
19161 { (exit 1); exit 1; }; }
19162else
19163 cat >conftest.$ac_ext <<_ACEOF
19164/* confdefs.h. */
19165_ACEOF
19166cat confdefs.h >>conftest.$ac_ext
19167cat >>conftest.$ac_ext <<_ACEOF
19168/* end confdefs.h. */
19169$ac_includes_default
19170long longval () { return (long) (sizeof (void *)); }
19171unsigned long ulongval () { return (long) (sizeof (void *)); }
19172#include <stdio.h>
19173#include <stdlib.h>
19174int
19175main ()
19176{
19177
19178 FILE *f = fopen ("conftest.val", "w");
19179 if (! f)
19180 exit (1);
19181 if (((long) (sizeof (void *))) < 0)
19182 {
19183 long i = longval ();
19184 if (i != ((long) (sizeof (void *))))
19185 exit (1);
19186 fprintf (f, "%ld\n", i);
19187 }
19188 else
19189 {
19190 unsigned long i = ulongval ();
19191 if (i != ((long) (sizeof (void *))))
19192 exit (1);
19193 fprintf (f, "%lu\n", i);
19194 }
19195 exit (ferror (f) || fclose (f) != 0);
19196
19197 ;
19198 return 0;
19199}
19200_ACEOF
19201rm -f conftest$ac_exeext
19202if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19203 (eval $ac_link) 2>&5
19204 ac_status=$?
19205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19206 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19207 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19208 (eval $ac_try) 2>&5
19209 ac_status=$?
19210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19211 (exit $ac_status); }; }; then
19212 ac_cv_sizeof_void_p=`cat conftest.val`
19213else
19214 echo "$as_me: program exited with status $ac_status" >&5
19215echo "$as_me: failed program was:" >&5
19216sed 's/^/| /' conftest.$ac_ext >&5
19217
19218( exit $ac_status )
19219{ { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
19220See \`config.log' for more details." >&5
19221echo "$as_me: error: cannot compute sizeof (void *), 77
19222See \`config.log' for more details." >&2;}
19223 { (exit 1); exit 1; }; }
19224fi
ac1cb8d3 19225rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19226fi
19227fi
19228rm -f conftest.val
19229else
19230 ac_cv_sizeof_void_p=0
19231fi
19232fi
19233echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
19234echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
19235cat >>confdefs.h <<_ACEOF
19236#define SIZEOF_VOID_P $ac_cv_sizeof_void_p
19237_ACEOF
19238
19239
19240echo "$as_me:$LINENO: checking for int" >&5
19241echo $ECHO_N "checking for int... $ECHO_C" >&6
19242if test "${ac_cv_type_int+set}" = set; then
19243 echo $ECHO_N "(cached) $ECHO_C" >&6
19244else
19245 cat >conftest.$ac_ext <<_ACEOF
19246/* confdefs.h. */
19247_ACEOF
19248cat confdefs.h >>conftest.$ac_ext
19249cat >>conftest.$ac_ext <<_ACEOF
19250/* end confdefs.h. */
19251$ac_includes_default
19252int
19253main ()
19254{
19255if ((int *) 0)
19256 return 0;
19257if (sizeof (int))
19258 return 0;
19259 ;
19260 return 0;
19261}
19262_ACEOF
19263rm -f conftest.$ac_objext
19264if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19265 (eval $ac_compile) 2>conftest.er1
a848cd7e 19266 ac_status=$?
ac1cb8d3
VS
19267 grep -v '^ *+' conftest.er1 >conftest.err
19268 rm -f conftest.er1
19269 cat conftest.err >&5
a848cd7e
SC
19270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19271 (exit $ac_status); } &&
479c790c 19272 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19273 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19274 (eval $ac_try) 2>&5
19275 ac_status=$?
19276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19277 (exit $ac_status); }; } &&
19278 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19279 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19280 (eval $ac_try) 2>&5
19281 ac_status=$?
19282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19283 (exit $ac_status); }; }; then
19284 ac_cv_type_int=yes
19285else
19286 echo "$as_me: failed program was:" >&5
19287sed 's/^/| /' conftest.$ac_ext >&5
19288
19289ac_cv_type_int=no
19290fi
ac1cb8d3 19291rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19292fi
19293echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
19294echo "${ECHO_T}$ac_cv_type_int" >&6
19295
19296echo "$as_me:$LINENO: checking size of int" >&5
19297echo $ECHO_N "checking size of int... $ECHO_C" >&6
19298if test "${ac_cv_sizeof_int+set}" = set; then
19299 echo $ECHO_N "(cached) $ECHO_C" >&6
19300else
19301 if test "$ac_cv_type_int" = yes; then
19302 # The cast to unsigned long works around a bug in the HP C Compiler
19303 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
19304 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
19305 # This bug is HP SR number 8606223364.
19306 if test "$cross_compiling" = yes; then
19307 # Depending upon the size, compute the lo and hi bounds.
19308cat >conftest.$ac_ext <<_ACEOF
19309/* confdefs.h. */
19310_ACEOF
19311cat confdefs.h >>conftest.$ac_ext
19312cat >>conftest.$ac_ext <<_ACEOF
19313/* end confdefs.h. */
19314$ac_includes_default
19315int
19316main ()
19317{
19318static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
19319test_array [0] = 0
19320
19321 ;
19322 return 0;
19323}
19324_ACEOF
19325rm -f conftest.$ac_objext
19326if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19327 (eval $ac_compile) 2>conftest.er1
a848cd7e 19328 ac_status=$?
ac1cb8d3
VS
19329 grep -v '^ *+' conftest.er1 >conftest.err
19330 rm -f conftest.er1
19331 cat conftest.err >&5
a848cd7e
SC
19332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19333 (exit $ac_status); } &&
479c790c 19334 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19335 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19336 (eval $ac_try) 2>&5
19337 ac_status=$?
19338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19339 (exit $ac_status); }; } &&
19340 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19341 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19342 (eval $ac_try) 2>&5
19343 ac_status=$?
19344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19345 (exit $ac_status); }; }; then
19346 ac_lo=0 ac_mid=0
19347 while :; do
19348 cat >conftest.$ac_ext <<_ACEOF
19349/* confdefs.h. */
19350_ACEOF
19351cat confdefs.h >>conftest.$ac_ext
19352cat >>conftest.$ac_ext <<_ACEOF
19353/* end confdefs.h. */
19354$ac_includes_default
19355int
19356main ()
19357{
19358static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
19359test_array [0] = 0
19360
19361 ;
19362 return 0;
19363}
19364_ACEOF
19365rm -f conftest.$ac_objext
19366if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19367 (eval $ac_compile) 2>conftest.er1
a848cd7e 19368 ac_status=$?
ac1cb8d3
VS
19369 grep -v '^ *+' conftest.er1 >conftest.err
19370 rm -f conftest.er1
19371 cat conftest.err >&5
a848cd7e
SC
19372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19373 (exit $ac_status); } &&
479c790c 19374 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19375 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19376 (eval $ac_try) 2>&5
19377 ac_status=$?
19378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19379 (exit $ac_status); }; } &&
19380 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19381 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19382 (eval $ac_try) 2>&5
19383 ac_status=$?
19384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19385 (exit $ac_status); }; }; then
19386 ac_hi=$ac_mid; break
19387else
19388 echo "$as_me: failed program was:" >&5
19389sed 's/^/| /' conftest.$ac_ext >&5
19390
19391ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
19392 if test $ac_lo -le $ac_mid; then
19393 ac_lo= ac_hi=
19394 break
19395 fi
19396 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 19397fi
ac1cb8d3 19398rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19399 done
19400else
19401 echo "$as_me: failed program was:" >&5
19402sed 's/^/| /' conftest.$ac_ext >&5
19403
19404cat >conftest.$ac_ext <<_ACEOF
19405/* confdefs.h. */
19406_ACEOF
19407cat confdefs.h >>conftest.$ac_ext
19408cat >>conftest.$ac_ext <<_ACEOF
19409/* end confdefs.h. */
19410$ac_includes_default
19411int
19412main ()
19413{
19414static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
19415test_array [0] = 0
19416
19417 ;
19418 return 0;
19419}
19420_ACEOF
19421rm -f conftest.$ac_objext
19422if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19423 (eval $ac_compile) 2>conftest.er1
a848cd7e 19424 ac_status=$?
ac1cb8d3
VS
19425 grep -v '^ *+' conftest.er1 >conftest.err
19426 rm -f conftest.er1
19427 cat conftest.err >&5
a848cd7e
SC
19428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19429 (exit $ac_status); } &&
479c790c 19430 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19431 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19432 (eval $ac_try) 2>&5
19433 ac_status=$?
19434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19435 (exit $ac_status); }; } &&
19436 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19437 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19438 (eval $ac_try) 2>&5
19439 ac_status=$?
19440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19441 (exit $ac_status); }; }; then
19442 ac_hi=-1 ac_mid=-1
19443 while :; do
19444 cat >conftest.$ac_ext <<_ACEOF
19445/* confdefs.h. */
19446_ACEOF
19447cat confdefs.h >>conftest.$ac_ext
19448cat >>conftest.$ac_ext <<_ACEOF
19449/* end confdefs.h. */
19450$ac_includes_default
19451int
19452main ()
19453{
19454static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
19455test_array [0] = 0
19456
19457 ;
19458 return 0;
19459}
19460_ACEOF
19461rm -f conftest.$ac_objext
19462if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19463 (eval $ac_compile) 2>conftest.er1
a848cd7e 19464 ac_status=$?
ac1cb8d3
VS
19465 grep -v '^ *+' conftest.er1 >conftest.err
19466 rm -f conftest.er1
19467 cat conftest.err >&5
a848cd7e
SC
19468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19469 (exit $ac_status); } &&
479c790c 19470 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19471 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19472 (eval $ac_try) 2>&5
19473 ac_status=$?
19474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19475 (exit $ac_status); }; } &&
19476 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19477 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19478 (eval $ac_try) 2>&5
19479 ac_status=$?
19480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19481 (exit $ac_status); }; }; then
19482 ac_lo=$ac_mid; break
19483else
19484 echo "$as_me: failed program was:" >&5
19485sed 's/^/| /' conftest.$ac_ext >&5
19486
19487ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
19488 if test $ac_mid -le $ac_hi; then
19489 ac_lo= ac_hi=
19490 break
19491 fi
19492 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 19493fi
ac1cb8d3 19494rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19495 done
19496else
19497 echo "$as_me: failed program was:" >&5
19498sed 's/^/| /' conftest.$ac_ext >&5
19499
19500ac_lo= ac_hi=
19501fi
ac1cb8d3 19502rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 19503fi
ac1cb8d3 19504rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19505# Binary search between lo and hi bounds.
19506while test "x$ac_lo" != "x$ac_hi"; do
19507 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
19508 cat >conftest.$ac_ext <<_ACEOF
19509/* confdefs.h. */
19510_ACEOF
19511cat confdefs.h >>conftest.$ac_ext
19512cat >>conftest.$ac_ext <<_ACEOF
19513/* end confdefs.h. */
19514$ac_includes_default
19515int
19516main ()
19517{
19518static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
19519test_array [0] = 0
19520
19521 ;
19522 return 0;
19523}
19524_ACEOF
19525rm -f conftest.$ac_objext
19526if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19527 (eval $ac_compile) 2>conftest.er1
a848cd7e 19528 ac_status=$?
ac1cb8d3
VS
19529 grep -v '^ *+' conftest.er1 >conftest.err
19530 rm -f conftest.er1
19531 cat conftest.err >&5
a848cd7e
SC
19532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19533 (exit $ac_status); } &&
479c790c 19534 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19535 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19536 (eval $ac_try) 2>&5
19537 ac_status=$?
19538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19539 (exit $ac_status); }; } &&
19540 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19541 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19542 (eval $ac_try) 2>&5
19543 ac_status=$?
19544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19545 (exit $ac_status); }; }; then
19546 ac_hi=$ac_mid
19547else
19548 echo "$as_me: failed program was:" >&5
19549sed 's/^/| /' conftest.$ac_ext >&5
19550
19551ac_lo=`expr '(' $ac_mid ')' + 1`
19552fi
ac1cb8d3 19553rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19554done
19555case $ac_lo in
19556?*) ac_cv_sizeof_int=$ac_lo;;
19557'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
19558See \`config.log' for more details." >&5
19559echo "$as_me: error: cannot compute sizeof (int), 77
19560See \`config.log' for more details." >&2;}
19561 { (exit 1); exit 1; }; } ;;
19562esac
19563else
19564 if test "$cross_compiling" = yes; then
479c790c
VZ
19565 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
19566echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
a848cd7e
SC
19567 { (exit 1); exit 1; }; }
19568else
19569 cat >conftest.$ac_ext <<_ACEOF
19570/* confdefs.h. */
19571_ACEOF
19572cat confdefs.h >>conftest.$ac_ext
19573cat >>conftest.$ac_ext <<_ACEOF
19574/* end confdefs.h. */
19575$ac_includes_default
19576long longval () { return (long) (sizeof (int)); }
19577unsigned long ulongval () { return (long) (sizeof (int)); }
19578#include <stdio.h>
19579#include <stdlib.h>
19580int
19581main ()
19582{
19583
19584 FILE *f = fopen ("conftest.val", "w");
19585 if (! f)
19586 exit (1);
19587 if (((long) (sizeof (int))) < 0)
19588 {
19589 long i = longval ();
19590 if (i != ((long) (sizeof (int))))
19591 exit (1);
19592 fprintf (f, "%ld\n", i);
19593 }
19594 else
19595 {
19596 unsigned long i = ulongval ();
19597 if (i != ((long) (sizeof (int))))
19598 exit (1);
19599 fprintf (f, "%lu\n", i);
19600 }
19601 exit (ferror (f) || fclose (f) != 0);
19602
19603 ;
19604 return 0;
19605}
19606_ACEOF
19607rm -f conftest$ac_exeext
19608if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19609 (eval $ac_link) 2>&5
19610 ac_status=$?
19611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19612 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19613 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19614 (eval $ac_try) 2>&5
19615 ac_status=$?
19616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19617 (exit $ac_status); }; }; then
19618 ac_cv_sizeof_int=`cat conftest.val`
19619else
19620 echo "$as_me: program exited with status $ac_status" >&5
19621echo "$as_me: failed program was:" >&5
19622sed 's/^/| /' conftest.$ac_ext >&5
19623
19624( exit $ac_status )
19625{ { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
19626See \`config.log' for more details." >&5
19627echo "$as_me: error: cannot compute sizeof (int), 77
19628See \`config.log' for more details." >&2;}
19629 { (exit 1); exit 1; }; }
19630fi
ac1cb8d3 19631rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19632fi
19633fi
19634rm -f conftest.val
19635else
19636 ac_cv_sizeof_int=0
19637fi
19638fi
19639echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
19640echo "${ECHO_T}$ac_cv_sizeof_int" >&6
19641cat >>confdefs.h <<_ACEOF
19642#define SIZEOF_INT $ac_cv_sizeof_int
19643_ACEOF
19644
19645
19646echo "$as_me:$LINENO: checking for long" >&5
19647echo $ECHO_N "checking for long... $ECHO_C" >&6
19648if test "${ac_cv_type_long+set}" = set; then
19649 echo $ECHO_N "(cached) $ECHO_C" >&6
19650else
19651 cat >conftest.$ac_ext <<_ACEOF
19652/* confdefs.h. */
19653_ACEOF
19654cat confdefs.h >>conftest.$ac_ext
19655cat >>conftest.$ac_ext <<_ACEOF
19656/* end confdefs.h. */
19657$ac_includes_default
19658int
19659main ()
19660{
19661if ((long *) 0)
19662 return 0;
19663if (sizeof (long))
19664 return 0;
19665 ;
19666 return 0;
19667}
19668_ACEOF
19669rm -f conftest.$ac_objext
19670if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19671 (eval $ac_compile) 2>conftest.er1
a848cd7e 19672 ac_status=$?
ac1cb8d3
VS
19673 grep -v '^ *+' conftest.er1 >conftest.err
19674 rm -f conftest.er1
19675 cat conftest.err >&5
a848cd7e
SC
19676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19677 (exit $ac_status); } &&
479c790c 19678 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19679 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19680 (eval $ac_try) 2>&5
19681 ac_status=$?
19682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19683 (exit $ac_status); }; } &&
19684 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19685 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19686 (eval $ac_try) 2>&5
19687 ac_status=$?
19688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19689 (exit $ac_status); }; }; then
19690 ac_cv_type_long=yes
19691else
19692 echo "$as_me: failed program was:" >&5
19693sed 's/^/| /' conftest.$ac_ext >&5
19694
19695ac_cv_type_long=no
19696fi
ac1cb8d3 19697rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19698fi
19699echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
19700echo "${ECHO_T}$ac_cv_type_long" >&6
19701
19702echo "$as_me:$LINENO: checking size of long" >&5
19703echo $ECHO_N "checking size of long... $ECHO_C" >&6
19704if test "${ac_cv_sizeof_long+set}" = set; then
19705 echo $ECHO_N "(cached) $ECHO_C" >&6
19706else
19707 if test "$ac_cv_type_long" = yes; then
19708 # The cast to unsigned long works around a bug in the HP C Compiler
19709 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
19710 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
19711 # This bug is HP SR number 8606223364.
19712 if test "$cross_compiling" = yes; then
19713 # Depending upon the size, compute the lo and hi bounds.
19714cat >conftest.$ac_ext <<_ACEOF
19715/* confdefs.h. */
19716_ACEOF
19717cat confdefs.h >>conftest.$ac_ext
19718cat >>conftest.$ac_ext <<_ACEOF
19719/* end confdefs.h. */
19720$ac_includes_default
19721int
19722main ()
19723{
19724static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
19725test_array [0] = 0
19726
19727 ;
19728 return 0;
19729}
19730_ACEOF
19731rm -f conftest.$ac_objext
19732if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19733 (eval $ac_compile) 2>conftest.er1
a848cd7e 19734 ac_status=$?
ac1cb8d3
VS
19735 grep -v '^ *+' conftest.er1 >conftest.err
19736 rm -f conftest.er1
19737 cat conftest.err >&5
a848cd7e
SC
19738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19739 (exit $ac_status); } &&
479c790c 19740 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19741 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19742 (eval $ac_try) 2>&5
19743 ac_status=$?
19744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19745 (exit $ac_status); }; } &&
19746 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19747 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19748 (eval $ac_try) 2>&5
19749 ac_status=$?
19750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19751 (exit $ac_status); }; }; then
19752 ac_lo=0 ac_mid=0
19753 while :; do
19754 cat >conftest.$ac_ext <<_ACEOF
19755/* confdefs.h. */
19756_ACEOF
19757cat confdefs.h >>conftest.$ac_ext
19758cat >>conftest.$ac_ext <<_ACEOF
19759/* end confdefs.h. */
19760$ac_includes_default
19761int
19762main ()
19763{
19764static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
19765test_array [0] = 0
19766
19767 ;
19768 return 0;
19769}
19770_ACEOF
19771rm -f conftest.$ac_objext
19772if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19773 (eval $ac_compile) 2>conftest.er1
a848cd7e 19774 ac_status=$?
ac1cb8d3
VS
19775 grep -v '^ *+' conftest.er1 >conftest.err
19776 rm -f conftest.er1
19777 cat conftest.err >&5
a848cd7e
SC
19778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19779 (exit $ac_status); } &&
479c790c 19780 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19781 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19782 (eval $ac_try) 2>&5
19783 ac_status=$?
19784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19785 (exit $ac_status); }; } &&
19786 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19787 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19788 (eval $ac_try) 2>&5
19789 ac_status=$?
19790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19791 (exit $ac_status); }; }; then
19792 ac_hi=$ac_mid; break
19793else
19794 echo "$as_me: failed program was:" >&5
19795sed 's/^/| /' conftest.$ac_ext >&5
19796
19797ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
19798 if test $ac_lo -le $ac_mid; then
19799 ac_lo= ac_hi=
19800 break
19801 fi
19802 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 19803fi
ac1cb8d3 19804rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19805 done
19806else
19807 echo "$as_me: failed program was:" >&5
19808sed 's/^/| /' conftest.$ac_ext >&5
19809
19810cat >conftest.$ac_ext <<_ACEOF
19811/* confdefs.h. */
19812_ACEOF
19813cat confdefs.h >>conftest.$ac_ext
19814cat >>conftest.$ac_ext <<_ACEOF
19815/* end confdefs.h. */
19816$ac_includes_default
19817int
19818main ()
19819{
19820static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
19821test_array [0] = 0
19822
19823 ;
19824 return 0;
19825}
19826_ACEOF
19827rm -f conftest.$ac_objext
19828if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19829 (eval $ac_compile) 2>conftest.er1
a848cd7e 19830 ac_status=$?
ac1cb8d3
VS
19831 grep -v '^ *+' conftest.er1 >conftest.err
19832 rm -f conftest.er1
19833 cat conftest.err >&5
a848cd7e
SC
19834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19835 (exit $ac_status); } &&
479c790c 19836 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19837 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19838 (eval $ac_try) 2>&5
19839 ac_status=$?
19840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19841 (exit $ac_status); }; } &&
19842 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19843 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19844 (eval $ac_try) 2>&5
19845 ac_status=$?
19846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19847 (exit $ac_status); }; }; then
19848 ac_hi=-1 ac_mid=-1
19849 while :; do
19850 cat >conftest.$ac_ext <<_ACEOF
19851/* confdefs.h. */
19852_ACEOF
19853cat confdefs.h >>conftest.$ac_ext
19854cat >>conftest.$ac_ext <<_ACEOF
19855/* end confdefs.h. */
19856$ac_includes_default
19857int
19858main ()
19859{
19860static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
19861test_array [0] = 0
19862
19863 ;
19864 return 0;
19865}
19866_ACEOF
19867rm -f conftest.$ac_objext
19868if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19869 (eval $ac_compile) 2>conftest.er1
a848cd7e 19870 ac_status=$?
ac1cb8d3
VS
19871 grep -v '^ *+' conftest.er1 >conftest.err
19872 rm -f conftest.er1
19873 cat conftest.err >&5
a848cd7e
SC
19874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19875 (exit $ac_status); } &&
479c790c 19876 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19877 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19878 (eval $ac_try) 2>&5
19879 ac_status=$?
19880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19881 (exit $ac_status); }; } &&
19882 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19883 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19884 (eval $ac_try) 2>&5
19885 ac_status=$?
19886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19887 (exit $ac_status); }; }; then
19888 ac_lo=$ac_mid; break
19889else
19890 echo "$as_me: failed program was:" >&5
19891sed 's/^/| /' conftest.$ac_ext >&5
19892
19893ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
19894 if test $ac_mid -le $ac_hi; then
19895 ac_lo= ac_hi=
19896 break
19897 fi
19898 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 19899fi
ac1cb8d3 19900rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19901 done
19902else
19903 echo "$as_me: failed program was:" >&5
19904sed 's/^/| /' conftest.$ac_ext >&5
19905
19906ac_lo= ac_hi=
19907fi
ac1cb8d3 19908rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 19909fi
ac1cb8d3 19910rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19911# Binary search between lo and hi bounds.
19912while test "x$ac_lo" != "x$ac_hi"; do
19913 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
19914 cat >conftest.$ac_ext <<_ACEOF
19915/* confdefs.h. */
19916_ACEOF
19917cat confdefs.h >>conftest.$ac_ext
19918cat >>conftest.$ac_ext <<_ACEOF
19919/* end confdefs.h. */
19920$ac_includes_default
19921int
19922main ()
19923{
19924static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
19925test_array [0] = 0
19926
19927 ;
19928 return 0;
19929}
19930_ACEOF
19931rm -f conftest.$ac_objext
19932if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19933 (eval $ac_compile) 2>conftest.er1
a848cd7e 19934 ac_status=$?
ac1cb8d3
VS
19935 grep -v '^ *+' conftest.er1 >conftest.err
19936 rm -f conftest.er1
19937 cat conftest.err >&5
a848cd7e
SC
19938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19939 (exit $ac_status); } &&
479c790c 19940 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19941 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19942 (eval $ac_try) 2>&5
19943 ac_status=$?
19944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19945 (exit $ac_status); }; } &&
19946 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19947 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19948 (eval $ac_try) 2>&5
19949 ac_status=$?
19950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19951 (exit $ac_status); }; }; then
19952 ac_hi=$ac_mid
19953else
19954 echo "$as_me: failed program was:" >&5
19955sed 's/^/| /' conftest.$ac_ext >&5
19956
19957ac_lo=`expr '(' $ac_mid ')' + 1`
19958fi
ac1cb8d3 19959rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19960done
19961case $ac_lo in
19962?*) ac_cv_sizeof_long=$ac_lo;;
19963'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
19964See \`config.log' for more details." >&5
19965echo "$as_me: error: cannot compute sizeof (long), 77
19966See \`config.log' for more details." >&2;}
19967 { (exit 1); exit 1; }; } ;;
19968esac
19969else
19970 if test "$cross_compiling" = yes; then
479c790c
VZ
19971 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
19972echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
a848cd7e
SC
19973 { (exit 1); exit 1; }; }
19974else
19975 cat >conftest.$ac_ext <<_ACEOF
19976/* confdefs.h. */
19977_ACEOF
19978cat confdefs.h >>conftest.$ac_ext
19979cat >>conftest.$ac_ext <<_ACEOF
19980/* end confdefs.h. */
19981$ac_includes_default
19982long longval () { return (long) (sizeof (long)); }
19983unsigned long ulongval () { return (long) (sizeof (long)); }
19984#include <stdio.h>
19985#include <stdlib.h>
19986int
19987main ()
19988{
19989
19990 FILE *f = fopen ("conftest.val", "w");
19991 if (! f)
19992 exit (1);
19993 if (((long) (sizeof (long))) < 0)
19994 {
19995 long i = longval ();
19996 if (i != ((long) (sizeof (long))))
19997 exit (1);
19998 fprintf (f, "%ld\n", i);
19999 }
20000 else
20001 {
20002 unsigned long i = ulongval ();
20003 if (i != ((long) (sizeof (long))))
20004 exit (1);
20005 fprintf (f, "%lu\n", i);
20006 }
20007 exit (ferror (f) || fclose (f) != 0);
20008
20009 ;
20010 return 0;
20011}
20012_ACEOF
20013rm -f conftest$ac_exeext
20014if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20015 (eval $ac_link) 2>&5
20016 ac_status=$?
20017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20018 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20019 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20020 (eval $ac_try) 2>&5
20021 ac_status=$?
20022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20023 (exit $ac_status); }; }; then
20024 ac_cv_sizeof_long=`cat conftest.val`
20025else
20026 echo "$as_me: program exited with status $ac_status" >&5
20027echo "$as_me: failed program was:" >&5
20028sed 's/^/| /' conftest.$ac_ext >&5
20029
20030( exit $ac_status )
20031{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
20032See \`config.log' for more details." >&5
20033echo "$as_me: error: cannot compute sizeof (long), 77
20034See \`config.log' for more details." >&2;}
20035 { (exit 1); exit 1; }; }
20036fi
ac1cb8d3 20037rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20038fi
20039fi
20040rm -f conftest.val
20041else
20042 ac_cv_sizeof_long=0
20043fi
20044fi
20045echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
20046echo "${ECHO_T}$ac_cv_sizeof_long" >&6
20047cat >>confdefs.h <<_ACEOF
20048#define SIZEOF_LONG $ac_cv_sizeof_long
20049_ACEOF
20050
20051
20052echo "$as_me:$LINENO: checking for size_t" >&5
20053echo $ECHO_N "checking for size_t... $ECHO_C" >&6
20054if test "${ac_cv_type_size_t+set}" = set; then
20055 echo $ECHO_N "(cached) $ECHO_C" >&6
20056else
20057 cat >conftest.$ac_ext <<_ACEOF
20058/* confdefs.h. */
20059_ACEOF
20060cat confdefs.h >>conftest.$ac_ext
20061cat >>conftest.$ac_ext <<_ACEOF
20062/* end confdefs.h. */
20063$ac_includes_default
20064int
20065main ()
20066{
20067if ((size_t *) 0)
20068 return 0;
20069if (sizeof (size_t))
20070 return 0;
20071 ;
20072 return 0;
20073}
20074_ACEOF
20075rm -f conftest.$ac_objext
20076if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20077 (eval $ac_compile) 2>conftest.er1
a848cd7e 20078 ac_status=$?
ac1cb8d3
VS
20079 grep -v '^ *+' conftest.er1 >conftest.err
20080 rm -f conftest.er1
20081 cat conftest.err >&5
a848cd7e
SC
20082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20083 (exit $ac_status); } &&
479c790c 20084 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
20085 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20086 (eval $ac_try) 2>&5
20087 ac_status=$?
20088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20089 (exit $ac_status); }; } &&
20090 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20091 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20092 (eval $ac_try) 2>&5
20093 ac_status=$?
20094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20095 (exit $ac_status); }; }; then
20096 ac_cv_type_size_t=yes
20097else
20098 echo "$as_me: failed program was:" >&5
20099sed 's/^/| /' conftest.$ac_ext >&5
20100
20101ac_cv_type_size_t=no
20102fi
ac1cb8d3 20103rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20104fi
20105echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
20106echo "${ECHO_T}$ac_cv_type_size_t" >&6
20107
20108echo "$as_me:$LINENO: checking size of size_t" >&5
20109echo $ECHO_N "checking size of size_t... $ECHO_C" >&6
20110if test "${ac_cv_sizeof_size_t+set}" = set; then
20111 echo $ECHO_N "(cached) $ECHO_C" >&6
20112else
20113 if test "$ac_cv_type_size_t" = yes; then
20114 # The cast to unsigned long works around a bug in the HP C Compiler
20115 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
20116 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
20117 # This bug is HP SR number 8606223364.
20118 if test "$cross_compiling" = yes; then
20119 # Depending upon the size, compute the lo and hi bounds.
20120cat >conftest.$ac_ext <<_ACEOF
20121/* confdefs.h. */
20122_ACEOF
20123cat confdefs.h >>conftest.$ac_ext
20124cat >>conftest.$ac_ext <<_ACEOF
20125/* end confdefs.h. */
20126$ac_includes_default
20127int
20128main ()
20129{
20130static int test_array [1 - 2 * !(((long) (sizeof (size_t))) >= 0)];
20131test_array [0] = 0
20132
20133 ;
20134 return 0;
20135}
20136_ACEOF
20137rm -f conftest.$ac_objext
20138if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20139 (eval $ac_compile) 2>conftest.er1
a848cd7e 20140 ac_status=$?
ac1cb8d3
VS
20141 grep -v '^ *+' conftest.er1 >conftest.err
20142 rm -f conftest.er1
20143 cat conftest.err >&5
a848cd7e
SC
20144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20145 (exit $ac_status); } &&
479c790c 20146 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
20147 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20148 (eval $ac_try) 2>&5
20149 ac_status=$?
20150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20151 (exit $ac_status); }; } &&
20152 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20153 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20154 (eval $ac_try) 2>&5
20155 ac_status=$?
20156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20157 (exit $ac_status); }; }; then
20158 ac_lo=0 ac_mid=0
20159 while :; do
20160 cat >conftest.$ac_ext <<_ACEOF
20161/* confdefs.h. */
20162_ACEOF
20163cat confdefs.h >>conftest.$ac_ext
20164cat >>conftest.$ac_ext <<_ACEOF
20165/* end confdefs.h. */
20166$ac_includes_default
20167int
20168main ()
20169{
20170static int test_array [1 - 2 * !(((long) (sizeof (size_t))) <= $ac_mid)];
20171test_array [0] = 0
20172
20173 ;
20174 return 0;
20175}
20176_ACEOF
20177rm -f conftest.$ac_objext
20178if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20179 (eval $ac_compile) 2>conftest.er1
a848cd7e 20180 ac_status=$?
ac1cb8d3
VS
20181 grep -v '^ *+' conftest.er1 >conftest.err
20182 rm -f conftest.er1
20183 cat conftest.err >&5
a848cd7e
SC
20184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20185 (exit $ac_status); } &&
479c790c 20186 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
20187 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20188 (eval $ac_try) 2>&5
20189 ac_status=$?
20190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20191 (exit $ac_status); }; } &&
20192 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20193 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20194 (eval $ac_try) 2>&5
20195 ac_status=$?
20196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20197 (exit $ac_status); }; }; then
20198 ac_hi=$ac_mid; break
20199else
20200 echo "$as_me: failed program was:" >&5
20201sed 's/^/| /' conftest.$ac_ext >&5
20202
20203ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
20204 if test $ac_lo -le $ac_mid; then
20205 ac_lo= ac_hi=
20206 break
20207 fi
20208 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 20209fi
ac1cb8d3 20210rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20211 done
20212else
20213 echo "$as_me: failed program was:" >&5
20214sed 's/^/| /' conftest.$ac_ext >&5
20215
20216cat >conftest.$ac_ext <<_ACEOF
20217/* confdefs.h. */
20218_ACEOF
20219cat confdefs.h >>conftest.$ac_ext
20220cat >>conftest.$ac_ext <<_ACEOF
20221/* end confdefs.h. */
20222$ac_includes_default
20223int
20224main ()
20225{
20226static int test_array [1 - 2 * !(((long) (sizeof (size_t))) < 0)];
20227test_array [0] = 0
20228
20229 ;
20230 return 0;
20231}
20232_ACEOF
20233rm -f conftest.$ac_objext
20234if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20235 (eval $ac_compile) 2>conftest.er1
a848cd7e 20236 ac_status=$?
ac1cb8d3
VS
20237 grep -v '^ *+' conftest.er1 >conftest.err
20238 rm -f conftest.er1
20239 cat conftest.err >&5
a848cd7e
SC
20240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20241 (exit $ac_status); } &&
479c790c 20242 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
20243 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20244 (eval $ac_try) 2>&5
20245 ac_status=$?
20246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20247 (exit $ac_status); }; } &&
20248 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20249 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20250 (eval $ac_try) 2>&5
20251 ac_status=$?
20252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20253 (exit $ac_status); }; }; then
20254 ac_hi=-1 ac_mid=-1
20255 while :; do
20256 cat >conftest.$ac_ext <<_ACEOF
20257/* confdefs.h. */
20258_ACEOF
20259cat confdefs.h >>conftest.$ac_ext
20260cat >>conftest.$ac_ext <<_ACEOF
20261/* end confdefs.h. */
20262$ac_includes_default
20263int
20264main ()
20265{
20266static int test_array [1 - 2 * !(((long) (sizeof (size_t))) >= $ac_mid)];
20267test_array [0] = 0
20268
20269 ;
20270 return 0;
20271}
20272_ACEOF
20273rm -f conftest.$ac_objext
20274if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20275 (eval $ac_compile) 2>conftest.er1
a848cd7e 20276 ac_status=$?
ac1cb8d3
VS
20277 grep -v '^ *+' conftest.er1 >conftest.err
20278 rm -f conftest.er1
20279 cat conftest.err >&5
a848cd7e
SC
20280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20281 (exit $ac_status); } &&
479c790c 20282 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
20283 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20284 (eval $ac_try) 2>&5
20285 ac_status=$?
20286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20287 (exit $ac_status); }; } &&
20288 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20289 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20290 (eval $ac_try) 2>&5
20291 ac_status=$?
20292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20293 (exit $ac_status); }; }; then
20294 ac_lo=$ac_mid; break
20295else
20296 echo "$as_me: failed program was:" >&5
20297sed 's/^/| /' conftest.$ac_ext >&5
20298
20299ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
20300 if test $ac_mid -le $ac_hi; then
20301 ac_lo= ac_hi=
20302 break
20303 fi
20304 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 20305fi
ac1cb8d3 20306rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20307 done
20308else
20309 echo "$as_me: failed program was:" >&5
20310sed 's/^/| /' conftest.$ac_ext >&5
20311
20312ac_lo= ac_hi=
20313fi
ac1cb8d3 20314rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 20315fi
ac1cb8d3 20316rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20317# Binary search between lo and hi bounds.
20318while test "x$ac_lo" != "x$ac_hi"; do
20319 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
20320 cat >conftest.$ac_ext <<_ACEOF
20321/* confdefs.h. */
20322_ACEOF
20323cat confdefs.h >>conftest.$ac_ext
20324cat >>conftest.$ac_ext <<_ACEOF
20325/* end confdefs.h. */
20326$ac_includes_default
20327int
20328main ()
20329{
20330static int test_array [1 - 2 * !(((long) (sizeof (size_t))) <= $ac_mid)];
20331test_array [0] = 0
20332
20333 ;
20334 return 0;
20335}
20336_ACEOF
20337rm -f conftest.$ac_objext
20338if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20339 (eval $ac_compile) 2>conftest.er1
a848cd7e 20340 ac_status=$?
ac1cb8d3
VS
20341 grep -v '^ *+' conftest.er1 >conftest.err
20342 rm -f conftest.er1
20343 cat conftest.err >&5
a848cd7e
SC
20344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20345 (exit $ac_status); } &&
479c790c 20346 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
20347 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20348 (eval $ac_try) 2>&5
20349 ac_status=$?
20350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20351 (exit $ac_status); }; } &&
20352 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20353 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20354 (eval $ac_try) 2>&5
20355 ac_status=$?
20356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20357 (exit $ac_status); }; }; then
20358 ac_hi=$ac_mid
20359else
20360 echo "$as_me: failed program was:" >&5
20361sed 's/^/| /' conftest.$ac_ext >&5
20362
20363ac_lo=`expr '(' $ac_mid ')' + 1`
20364fi
ac1cb8d3 20365rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20366done
20367case $ac_lo in
20368?*) ac_cv_sizeof_size_t=$ac_lo;;
20369'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t), 77
20370See \`config.log' for more details." >&5
20371echo "$as_me: error: cannot compute sizeof (size_t), 77
20372See \`config.log' for more details." >&2;}
20373 { (exit 1); exit 1; }; } ;;
20374esac
20375else
20376 if test "$cross_compiling" = yes; then
479c790c
VZ
20377 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
20378echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
a848cd7e
SC
20379 { (exit 1); exit 1; }; }
20380else
20381 cat >conftest.$ac_ext <<_ACEOF
20382/* confdefs.h. */
20383_ACEOF
20384cat confdefs.h >>conftest.$ac_ext
20385cat >>conftest.$ac_ext <<_ACEOF
20386/* end confdefs.h. */
20387$ac_includes_default
20388long longval () { return (long) (sizeof (size_t)); }
20389unsigned long ulongval () { return (long) (sizeof (size_t)); }
20390#include <stdio.h>
20391#include <stdlib.h>
20392int
20393main ()
20394{
20395
20396 FILE *f = fopen ("conftest.val", "w");
20397 if (! f)
20398 exit (1);
20399 if (((long) (sizeof (size_t))) < 0)
20400 {
20401 long i = longval ();
20402 if (i != ((long) (sizeof (size_t))))
20403 exit (1);
20404 fprintf (f, "%ld\n", i);
20405 }
20406 else
20407 {
20408 unsigned long i = ulongval ();
20409 if (i != ((long) (sizeof (size_t))))
20410 exit (1);
20411 fprintf (f, "%lu\n", i);
20412 }
20413 exit (ferror (f) || fclose (f) != 0);
20414
20415 ;
20416 return 0;
20417}
20418_ACEOF
20419rm -f conftest$ac_exeext
20420if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20421 (eval $ac_link) 2>&5
20422 ac_status=$?
20423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20424 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20425 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20426 (eval $ac_try) 2>&5
20427 ac_status=$?
20428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20429 (exit $ac_status); }; }; then
20430 ac_cv_sizeof_size_t=`cat conftest.val`
20431else
20432 echo "$as_me: program exited with status $ac_status" >&5
20433echo "$as_me: failed program was:" >&5
20434sed 's/^/| /' conftest.$ac_ext >&5
20435
20436( exit $ac_status )
20437{ { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t), 77
20438See \`config.log' for more details." >&5
20439echo "$as_me: error: cannot compute sizeof (size_t), 77
20440See \`config.log' for more details." >&2;}
20441 { (exit 1); exit 1; }; }
20442fi
ac1cb8d3 20443rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20444fi
20445fi
20446rm -f conftest.val
20447else
20448 ac_cv_sizeof_size_t=0
20449fi
20450fi
20451echo "$as_me:$LINENO: result: $ac_cv_sizeof_size_t" >&5
20452echo "${ECHO_T}$ac_cv_sizeof_size_t" >&6
20453cat >>confdefs.h <<_ACEOF
20454#define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
20455_ACEOF
20456
20457
20458
20459case "${host}" in
20460 arm-*-linux* )
20461 echo "$as_me:$LINENO: checking for long long" >&5
20462echo $ECHO_N "checking for long long... $ECHO_C" >&6
20463if test "${ac_cv_type_long_long+set}" = set; then
20464 echo $ECHO_N "(cached) $ECHO_C" >&6
20465else
20466 cat >conftest.$ac_ext <<_ACEOF
20467/* confdefs.h. */
20468_ACEOF
20469cat confdefs.h >>conftest.$ac_ext
20470cat >>conftest.$ac_ext <<_ACEOF
20471/* end confdefs.h. */
20472$ac_includes_default
20473int
20474main ()
20475{
20476if ((long long *) 0)
20477 return 0;
20478if (sizeof (long long))
20479 return 0;
20480 ;
20481 return 0;
20482}
20483_ACEOF
20484rm -f conftest.$ac_objext
20485if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20486 (eval $ac_compile) 2>conftest.er1
a848cd7e 20487 ac_status=$?
ac1cb8d3
VS
20488 grep -v '^ *+' conftest.er1 >conftest.err
20489 rm -f conftest.er1
20490 cat conftest.err >&5
a848cd7e
SC
20491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20492 (exit $ac_status); } &&
479c790c 20493 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
20494 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20495 (eval $ac_try) 2>&5
20496 ac_status=$?
20497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20498 (exit $ac_status); }; } &&
20499 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20500 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20501 (eval $ac_try) 2>&5
20502 ac_status=$?
20503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20504 (exit $ac_status); }; }; then
20505 ac_cv_type_long_long=yes
20506else
20507 echo "$as_me: failed program was:" >&5
20508sed 's/^/| /' conftest.$ac_ext >&5
20509
20510ac_cv_type_long_long=no
20511fi
ac1cb8d3 20512rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20513fi
20514echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
20515echo "${ECHO_T}$ac_cv_type_long_long" >&6
20516
20517echo "$as_me:$LINENO: checking size of long long" >&5
20518echo $ECHO_N "checking size of long long... $ECHO_C" >&6
20519if test "${ac_cv_sizeof_long_long+set}" = set; then
20520 echo $ECHO_N "(cached) $ECHO_C" >&6
20521else
20522 if test "$ac_cv_type_long_long" = yes; then
20523 # The cast to unsigned long works around a bug in the HP C Compiler
20524 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
20525 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
20526 # This bug is HP SR number 8606223364.
20527 if test "$cross_compiling" = yes; then
20528 # Depending upon the size, compute the lo and hi bounds.
20529cat >conftest.$ac_ext <<_ACEOF
20530/* confdefs.h. */
20531_ACEOF
20532cat confdefs.h >>conftest.$ac_ext
20533cat >>conftest.$ac_ext <<_ACEOF
20534/* end confdefs.h. */
20535$ac_includes_default
20536int
20537main ()
20538{
20539static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
20540test_array [0] = 0
20541
20542 ;
20543 return 0;
20544}
20545_ACEOF
20546rm -f conftest.$ac_objext
20547if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20548 (eval $ac_compile) 2>conftest.er1
a848cd7e 20549 ac_status=$?
ac1cb8d3
VS
20550 grep -v '^ *+' conftest.er1 >conftest.err
20551 rm -f conftest.er1
20552 cat conftest.err >&5
a848cd7e
SC
20553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20554 (exit $ac_status); } &&
479c790c 20555 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
20556 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20557 (eval $ac_try) 2>&5
20558 ac_status=$?
20559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20560 (exit $ac_status); }; } &&
20561 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20562 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20563 (eval $ac_try) 2>&5
20564 ac_status=$?
20565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20566 (exit $ac_status); }; }; then
20567 ac_lo=0 ac_mid=0
20568 while :; do
20569 cat >conftest.$ac_ext <<_ACEOF
20570/* confdefs.h. */
20571_ACEOF
20572cat confdefs.h >>conftest.$ac_ext
20573cat >>conftest.$ac_ext <<_ACEOF
20574/* end confdefs.h. */
20575$ac_includes_default
20576int
20577main ()
20578{
20579static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
20580test_array [0] = 0
20581
20582 ;
20583 return 0;
20584}
20585_ACEOF
20586rm -f conftest.$ac_objext
20587if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20588 (eval $ac_compile) 2>conftest.er1
a848cd7e 20589 ac_status=$?
ac1cb8d3
VS
20590 grep -v '^ *+' conftest.er1 >conftest.err
20591 rm -f conftest.er1
20592 cat conftest.err >&5
a848cd7e
SC
20593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20594 (exit $ac_status); } &&
479c790c 20595 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
20596 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20597 (eval $ac_try) 2>&5
20598 ac_status=$?
20599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20600 (exit $ac_status); }; } &&
20601 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20602 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20603 (eval $ac_try) 2>&5
20604 ac_status=$?
20605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20606 (exit $ac_status); }; }; then
20607 ac_hi=$ac_mid; break
20608else
20609 echo "$as_me: failed program was:" >&5
20610sed 's/^/| /' conftest.$ac_ext >&5
20611
20612ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
20613 if test $ac_lo -le $ac_mid; then
20614 ac_lo= ac_hi=
20615 break
20616 fi
20617 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 20618fi
ac1cb8d3 20619rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20620 done
20621else
20622 echo "$as_me: failed program was:" >&5
20623sed 's/^/| /' conftest.$ac_ext >&5
20624
20625cat >conftest.$ac_ext <<_ACEOF
20626/* confdefs.h. */
20627_ACEOF
20628cat confdefs.h >>conftest.$ac_ext
20629cat >>conftest.$ac_ext <<_ACEOF
20630/* end confdefs.h. */
20631$ac_includes_default
20632int
20633main ()
20634{
20635static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
20636test_array [0] = 0
20637
20638 ;
20639 return 0;
20640}
20641_ACEOF
20642rm -f conftest.$ac_objext
20643if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20644 (eval $ac_compile) 2>conftest.er1
a848cd7e 20645 ac_status=$?
ac1cb8d3
VS
20646 grep -v '^ *+' conftest.er1 >conftest.err
20647 rm -f conftest.er1
20648 cat conftest.err >&5
a848cd7e
SC
20649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20650 (exit $ac_status); } &&
479c790c 20651 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
20652 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20653 (eval $ac_try) 2>&5
20654 ac_status=$?
20655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20656 (exit $ac_status); }; } &&
20657 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20658 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20659 (eval $ac_try) 2>&5
20660 ac_status=$?
20661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20662 (exit $ac_status); }; }; then
20663 ac_hi=-1 ac_mid=-1
20664 while :; do
20665 cat >conftest.$ac_ext <<_ACEOF
20666/* confdefs.h. */
20667_ACEOF
20668cat confdefs.h >>conftest.$ac_ext
20669cat >>conftest.$ac_ext <<_ACEOF
20670/* end confdefs.h. */
20671$ac_includes_default
20672int
20673main ()
20674{
20675static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
20676test_array [0] = 0
20677
20678 ;
20679 return 0;
20680}
20681_ACEOF
20682rm -f conftest.$ac_objext
20683if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20684 (eval $ac_compile) 2>conftest.er1
a848cd7e 20685 ac_status=$?
ac1cb8d3
VS
20686 grep -v '^ *+' conftest.er1 >conftest.err
20687 rm -f conftest.er1
20688 cat conftest.err >&5
a848cd7e
SC
20689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20690 (exit $ac_status); } &&
479c790c 20691 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
20692 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20693 (eval $ac_try) 2>&5
20694 ac_status=$?
20695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20696 (exit $ac_status); }; } &&
20697 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20698 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20699 (eval $ac_try) 2>&5
20700 ac_status=$?
20701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20702 (exit $ac_status); }; }; then
20703 ac_lo=$ac_mid; break
20704else
20705 echo "$as_me: failed program was:" >&5
20706sed 's/^/| /' conftest.$ac_ext >&5
20707
20708ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
20709 if test $ac_mid -le $ac_hi; then
20710 ac_lo= ac_hi=
20711 break
20712 fi
20713 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 20714fi
ac1cb8d3 20715rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20716 done
20717else
20718 echo "$as_me: failed program was:" >&5
20719sed 's/^/| /' conftest.$ac_ext >&5
20720
20721ac_lo= ac_hi=
20722fi
ac1cb8d3 20723rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 20724fi
ac1cb8d3 20725rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20726# Binary search between lo and hi bounds.
20727while test "x$ac_lo" != "x$ac_hi"; do
20728 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
20729 cat >conftest.$ac_ext <<_ACEOF
20730/* confdefs.h. */
20731_ACEOF
20732cat confdefs.h >>conftest.$ac_ext
20733cat >>conftest.$ac_ext <<_ACEOF
20734/* end confdefs.h. */
20735$ac_includes_default
20736int
20737main ()
20738{
20739static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
20740test_array [0] = 0
20741
20742 ;
20743 return 0;
20744}
20745_ACEOF
20746rm -f conftest.$ac_objext
20747if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20748 (eval $ac_compile) 2>conftest.er1
a848cd7e 20749 ac_status=$?
ac1cb8d3
VS
20750 grep -v '^ *+' conftest.er1 >conftest.err
20751 rm -f conftest.er1
20752 cat conftest.err >&5
a848cd7e
SC
20753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20754 (exit $ac_status); } &&
479c790c 20755 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
20756 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20757 (eval $ac_try) 2>&5
20758 ac_status=$?
20759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20760 (exit $ac_status); }; } &&
20761 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20762 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20763 (eval $ac_try) 2>&5
20764 ac_status=$?
20765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20766 (exit $ac_status); }; }; then
20767 ac_hi=$ac_mid
20768else
20769 echo "$as_me: failed program was:" >&5
20770sed 's/^/| /' conftest.$ac_ext >&5
20771
20772ac_lo=`expr '(' $ac_mid ')' + 1`
20773fi
ac1cb8d3 20774rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20775done
20776case $ac_lo in
20777?*) ac_cv_sizeof_long_long=$ac_lo;;
20778'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
20779See \`config.log' for more details." >&5
20780echo "$as_me: error: cannot compute sizeof (long long), 77
20781See \`config.log' for more details." >&2;}
20782 { (exit 1); exit 1; }; } ;;
20783esac
20784else
20785 if test "$cross_compiling" = yes; then
479c790c
VZ
20786 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
20787echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
a848cd7e
SC
20788 { (exit 1); exit 1; }; }
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
20797long longval () { return (long) (sizeof (long long)); }
20798unsigned long ulongval () { return (long) (sizeof (long long)); }
20799#include <stdio.h>
20800#include <stdlib.h>
20801int
20802main ()
20803{
20804
20805 FILE *f = fopen ("conftest.val", "w");
20806 if (! f)
20807 exit (1);
20808 if (((long) (sizeof (long long))) < 0)
20809 {
20810 long i = longval ();
20811 if (i != ((long) (sizeof (long long))))
20812 exit (1);
20813 fprintf (f, "%ld\n", i);
20814 }
20815 else
20816 {
20817 unsigned long i = ulongval ();
20818 if (i != ((long) (sizeof (long long))))
20819 exit (1);
20820 fprintf (f, "%lu\n", i);
20821 }
20822 exit (ferror (f) || fclose (f) != 0);
20823
20824 ;
20825 return 0;
20826}
20827_ACEOF
20828rm -f conftest$ac_exeext
20829if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20830 (eval $ac_link) 2>&5
20831 ac_status=$?
20832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20833 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20834 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20835 (eval $ac_try) 2>&5
20836 ac_status=$?
20837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20838 (exit $ac_status); }; }; then
20839 ac_cv_sizeof_long_long=`cat conftest.val`
20840else
20841 echo "$as_me: program exited with status $ac_status" >&5
20842echo "$as_me: failed program was:" >&5
20843sed 's/^/| /' conftest.$ac_ext >&5
20844
20845( exit $ac_status )
20846{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
20847See \`config.log' for more details." >&5
20848echo "$as_me: error: cannot compute sizeof (long long), 77
20849See \`config.log' for more details." >&2;}
20850 { (exit 1); exit 1; }; }
20851fi
ac1cb8d3 20852rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20853fi
20854fi
20855rm -f conftest.val
20856else
20857 ac_cv_sizeof_long_long=0
20858fi
20859fi
20860echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
20861echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
20862cat >>confdefs.h <<_ACEOF
20863#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
20864_ACEOF
20865
20866
20867 ;;
20868 *-hp-hpux* )
20869 echo "$as_me:$LINENO: checking for long long" >&5
20870echo $ECHO_N "checking for long long... $ECHO_C" >&6
20871if test "${ac_cv_type_long_long+set}" = set; then
20872 echo $ECHO_N "(cached) $ECHO_C" >&6
20873else
20874 cat >conftest.$ac_ext <<_ACEOF
20875/* confdefs.h. */
20876_ACEOF
20877cat confdefs.h >>conftest.$ac_ext
20878cat >>conftest.$ac_ext <<_ACEOF
20879/* end confdefs.h. */
20880$ac_includes_default
20881int
20882main ()
20883{
20884if ((long long *) 0)
20885 return 0;
20886if (sizeof (long long))
20887 return 0;
20888 ;
20889 return 0;
20890}
20891_ACEOF
20892rm -f conftest.$ac_objext
20893if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20894 (eval $ac_compile) 2>conftest.er1
a848cd7e 20895 ac_status=$?
ac1cb8d3
VS
20896 grep -v '^ *+' conftest.er1 >conftest.err
20897 rm -f conftest.er1
20898 cat conftest.err >&5
a848cd7e
SC
20899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20900 (exit $ac_status); } &&
479c790c 20901 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
20902 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20903 (eval $ac_try) 2>&5
20904 ac_status=$?
20905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20906 (exit $ac_status); }; } &&
20907 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20908 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20909 (eval $ac_try) 2>&5
20910 ac_status=$?
20911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20912 (exit $ac_status); }; }; then
20913 ac_cv_type_long_long=yes
20914else
20915 echo "$as_me: failed program was:" >&5
20916sed 's/^/| /' conftest.$ac_ext >&5
20917
20918ac_cv_type_long_long=no
20919fi
ac1cb8d3 20920rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20921fi
20922echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
20923echo "${ECHO_T}$ac_cv_type_long_long" >&6
20924
20925echo "$as_me:$LINENO: checking size of long long" >&5
20926echo $ECHO_N "checking size of long long... $ECHO_C" >&6
20927if test "${ac_cv_sizeof_long_long+set}" = set; then
20928 echo $ECHO_N "(cached) $ECHO_C" >&6
20929else
20930 if test "$ac_cv_type_long_long" = yes; then
20931 # The cast to unsigned long works around a bug in the HP C Compiler
20932 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
20933 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
20934 # This bug is HP SR number 8606223364.
20935 if test "$cross_compiling" = yes; then
20936 # Depending upon the size, compute the lo and hi bounds.
20937cat >conftest.$ac_ext <<_ACEOF
20938/* confdefs.h. */
20939_ACEOF
20940cat confdefs.h >>conftest.$ac_ext
20941cat >>conftest.$ac_ext <<_ACEOF
20942/* end confdefs.h. */
20943$ac_includes_default
20944int
20945main ()
20946{
20947static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
20948test_array [0] = 0
20949
20950 ;
20951 return 0;
20952}
20953_ACEOF
20954rm -f conftest.$ac_objext
20955if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20956 (eval $ac_compile) 2>conftest.er1
a848cd7e 20957 ac_status=$?
ac1cb8d3
VS
20958 grep -v '^ *+' conftest.er1 >conftest.err
20959 rm -f conftest.er1
20960 cat conftest.err >&5
a848cd7e
SC
20961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20962 (exit $ac_status); } &&
479c790c 20963 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
20964 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20965 (eval $ac_try) 2>&5
20966 ac_status=$?
20967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20968 (exit $ac_status); }; } &&
20969 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20970 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20971 (eval $ac_try) 2>&5
20972 ac_status=$?
20973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20974 (exit $ac_status); }; }; then
20975 ac_lo=0 ac_mid=0
20976 while :; do
20977 cat >conftest.$ac_ext <<_ACEOF
20978/* confdefs.h. */
20979_ACEOF
20980cat confdefs.h >>conftest.$ac_ext
20981cat >>conftest.$ac_ext <<_ACEOF
20982/* end confdefs.h. */
20983$ac_includes_default
20984int
20985main ()
20986{
20987static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
20988test_array [0] = 0
20989
20990 ;
20991 return 0;
20992}
20993_ACEOF
20994rm -f conftest.$ac_objext
20995if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20996 (eval $ac_compile) 2>conftest.er1
a848cd7e 20997 ac_status=$?
ac1cb8d3
VS
20998 grep -v '^ *+' conftest.er1 >conftest.err
20999 rm -f conftest.er1
21000 cat conftest.err >&5
a848cd7e
SC
21001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21002 (exit $ac_status); } &&
479c790c 21003 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
21004 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21005 (eval $ac_try) 2>&5
21006 ac_status=$?
21007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21008 (exit $ac_status); }; } &&
21009 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
21010 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21011 (eval $ac_try) 2>&5
21012 ac_status=$?
21013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21014 (exit $ac_status); }; }; then
21015 ac_hi=$ac_mid; break
21016else
21017 echo "$as_me: failed program was:" >&5
21018sed 's/^/| /' conftest.$ac_ext >&5
21019
21020ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
21021 if test $ac_lo -le $ac_mid; then
21022 ac_lo= ac_hi=
21023 break
21024 fi
21025 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 21026fi
ac1cb8d3 21027rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
21028 done
21029else
21030 echo "$as_me: failed program was:" >&5
21031sed 's/^/| /' conftest.$ac_ext >&5
21032
21033cat >conftest.$ac_ext <<_ACEOF
21034/* confdefs.h. */
21035_ACEOF
21036cat confdefs.h >>conftest.$ac_ext
21037cat >>conftest.$ac_ext <<_ACEOF
21038/* end confdefs.h. */
21039$ac_includes_default
21040int
21041main ()
21042{
21043static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
21044test_array [0] = 0
21045
21046 ;
21047 return 0;
21048}
21049_ACEOF
21050rm -f conftest.$ac_objext
21051if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21052 (eval $ac_compile) 2>conftest.er1
a848cd7e 21053 ac_status=$?
ac1cb8d3
VS
21054 grep -v '^ *+' conftest.er1 >conftest.err
21055 rm -f conftest.er1
21056 cat conftest.err >&5
a848cd7e
SC
21057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21058 (exit $ac_status); } &&
479c790c 21059 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
21060 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21061 (eval $ac_try) 2>&5
21062 ac_status=$?
21063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21064 (exit $ac_status); }; } &&
21065 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
21066 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21067 (eval $ac_try) 2>&5
21068 ac_status=$?
21069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21070 (exit $ac_status); }; }; then
21071 ac_hi=-1 ac_mid=-1
21072 while :; do
21073 cat >conftest.$ac_ext <<_ACEOF
21074/* confdefs.h. */
21075_ACEOF
21076cat confdefs.h >>conftest.$ac_ext
21077cat >>conftest.$ac_ext <<_ACEOF
21078/* end confdefs.h. */
21079$ac_includes_default
21080int
21081main ()
21082{
21083static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
21084test_array [0] = 0
21085
21086 ;
21087 return 0;
21088}
21089_ACEOF
21090rm -f conftest.$ac_objext
21091if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21092 (eval $ac_compile) 2>conftest.er1
a848cd7e 21093 ac_status=$?
ac1cb8d3
VS
21094 grep -v '^ *+' conftest.er1 >conftest.err
21095 rm -f conftest.er1
21096 cat conftest.err >&5
a848cd7e
SC
21097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21098 (exit $ac_status); } &&
479c790c 21099 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
21100 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21101 (eval $ac_try) 2>&5
21102 ac_status=$?
21103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21104 (exit $ac_status); }; } &&
21105 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
21106 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21107 (eval $ac_try) 2>&5
21108 ac_status=$?
21109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21110 (exit $ac_status); }; }; then
21111 ac_lo=$ac_mid; break
21112else
21113 echo "$as_me: failed program was:" >&5
21114sed 's/^/| /' conftest.$ac_ext >&5
21115
21116ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
21117 if test $ac_mid -le $ac_hi; then
21118 ac_lo= ac_hi=
21119 break
21120 fi
21121 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 21122fi
ac1cb8d3 21123rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
21124 done
21125else
21126 echo "$as_me: failed program was:" >&5
21127sed 's/^/| /' conftest.$ac_ext >&5
21128
21129ac_lo= ac_hi=
21130fi
ac1cb8d3 21131rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 21132fi
ac1cb8d3 21133rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
21134# Binary search between lo and hi bounds.
21135while test "x$ac_lo" != "x$ac_hi"; do
21136 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
21137 cat >conftest.$ac_ext <<_ACEOF
21138/* confdefs.h. */
21139_ACEOF
21140cat confdefs.h >>conftest.$ac_ext
21141cat >>conftest.$ac_ext <<_ACEOF
21142/* end confdefs.h. */
21143$ac_includes_default
21144int
21145main ()
21146{
21147static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
21148test_array [0] = 0
21149
21150 ;
21151 return 0;
21152}
21153_ACEOF
21154rm -f conftest.$ac_objext
21155if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21156 (eval $ac_compile) 2>conftest.er1
a848cd7e 21157 ac_status=$?
ac1cb8d3
VS
21158 grep -v '^ *+' conftest.er1 >conftest.err
21159 rm -f conftest.er1
21160 cat conftest.err >&5
a848cd7e
SC
21161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21162 (exit $ac_status); } &&
479c790c 21163 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
21164 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21165 (eval $ac_try) 2>&5
21166 ac_status=$?
21167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21168 (exit $ac_status); }; } &&
21169 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
21170 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21171 (eval $ac_try) 2>&5
21172 ac_status=$?
21173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21174 (exit $ac_status); }; }; then
21175 ac_hi=$ac_mid
21176else
21177 echo "$as_me: failed program was:" >&5
21178sed 's/^/| /' conftest.$ac_ext >&5
21179
21180ac_lo=`expr '(' $ac_mid ')' + 1`
21181fi
ac1cb8d3 21182rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
21183done
21184case $ac_lo in
21185?*) ac_cv_sizeof_long_long=$ac_lo;;
21186'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
21187See \`config.log' for more details." >&5
21188echo "$as_me: error: cannot compute sizeof (long long), 77
21189See \`config.log' for more details." >&2;}
21190 { (exit 1); exit 1; }; } ;;
21191esac
21192else
21193 if test "$cross_compiling" = yes; then
479c790c
VZ
21194 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
21195echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
a848cd7e
SC
21196 { (exit 1); exit 1; }; }
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$ac_includes_default
21205long longval () { return (long) (sizeof (long long)); }
21206unsigned long ulongval () { return (long) (sizeof (long long)); }
21207#include <stdio.h>
21208#include <stdlib.h>
21209int
21210main ()
21211{
21212
21213 FILE *f = fopen ("conftest.val", "w");
21214 if (! f)
21215 exit (1);
21216 if (((long) (sizeof (long long))) < 0)
21217 {
21218 long i = longval ();
21219 if (i != ((long) (sizeof (long long))))
21220 exit (1);
21221 fprintf (f, "%ld\n", i);
21222 }
21223 else
21224 {
21225 unsigned long i = ulongval ();
21226 if (i != ((long) (sizeof (long long))))
21227 exit (1);
21228 fprintf (f, "%lu\n", i);
21229 }
21230 exit (ferror (f) || fclose (f) != 0);
21231
21232 ;
21233 return 0;
21234}
21235_ACEOF
21236rm -f conftest$ac_exeext
21237if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21238 (eval $ac_link) 2>&5
21239 ac_status=$?
21240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21241 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21242 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21243 (eval $ac_try) 2>&5
21244 ac_status=$?
21245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21246 (exit $ac_status); }; }; then
21247 ac_cv_sizeof_long_long=`cat conftest.val`
21248else
21249 echo "$as_me: program exited with status $ac_status" >&5
21250echo "$as_me: failed program was:" >&5
21251sed 's/^/| /' conftest.$ac_ext >&5
21252
21253( exit $ac_status )
21254{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
21255See \`config.log' for more details." >&5
21256echo "$as_me: error: cannot compute sizeof (long long), 77
21257See \`config.log' for more details." >&2;}
21258 { (exit 1); exit 1; }; }
21259fi
ac1cb8d3 21260rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
21261fi
21262fi
21263rm -f conftest.val
21264else
21265 ac_cv_sizeof_long_long=0
21266fi
21267fi
21268echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
21269echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
21270cat >>confdefs.h <<_ACEOF
21271#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
21272_ACEOF
21273
21274
21275 if test "$ac_cv_sizeof_long_long" != "0"; then
c92ad099 21276 CPPFLAGS="-D_INCLUDE_LONGLONG $CPPFLAGS"
a848cd7e
SC
21277 fi
21278 ;;
21279 * )
21280 echo "$as_me:$LINENO: checking for long long" >&5
21281echo $ECHO_N "checking for long long... $ECHO_C" >&6
21282if test "${ac_cv_type_long_long+set}" = set; then
21283 echo $ECHO_N "(cached) $ECHO_C" >&6
21284else
21285 cat >conftest.$ac_ext <<_ACEOF
21286/* confdefs.h. */
21287_ACEOF
21288cat confdefs.h >>conftest.$ac_ext
21289cat >>conftest.$ac_ext <<_ACEOF
21290/* end confdefs.h. */
21291$ac_includes_default
21292int
21293main ()
21294{
21295if ((long long *) 0)
21296 return 0;
21297if (sizeof (long long))
21298 return 0;
21299 ;
21300 return 0;
21301}
21302_ACEOF
21303rm -f conftest.$ac_objext
21304if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21305 (eval $ac_compile) 2>conftest.er1
a848cd7e 21306 ac_status=$?
ac1cb8d3
VS
21307 grep -v '^ *+' conftest.er1 >conftest.err
21308 rm -f conftest.er1
21309 cat conftest.err >&5
a848cd7e
SC
21310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21311 (exit $ac_status); } &&
479c790c 21312 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
21313 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21314 (eval $ac_try) 2>&5
21315 ac_status=$?
21316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21317 (exit $ac_status); }; } &&
21318 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
21319 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21320 (eval $ac_try) 2>&5
21321 ac_status=$?
21322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21323 (exit $ac_status); }; }; then
21324 ac_cv_type_long_long=yes
21325else
21326 echo "$as_me: failed program was:" >&5
21327sed 's/^/| /' conftest.$ac_ext >&5
21328
21329ac_cv_type_long_long=no
21330fi
ac1cb8d3 21331rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
21332fi
21333echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
21334echo "${ECHO_T}$ac_cv_type_long_long" >&6
21335
21336echo "$as_me:$LINENO: checking size of long long" >&5
21337echo $ECHO_N "checking size of long long... $ECHO_C" >&6
21338if test "${ac_cv_sizeof_long_long+set}" = set; then
21339 echo $ECHO_N "(cached) $ECHO_C" >&6
21340else
21341 if test "$ac_cv_type_long_long" = yes; then
21342 # The cast to unsigned long works around a bug in the HP C Compiler
21343 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21344 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21345 # This bug is HP SR number 8606223364.
21346 if test "$cross_compiling" = yes; then
21347 # Depending upon the size, compute the lo and hi bounds.
21348cat >conftest.$ac_ext <<_ACEOF
21349/* confdefs.h. */
21350_ACEOF
21351cat confdefs.h >>conftest.$ac_ext
21352cat >>conftest.$ac_ext <<_ACEOF
21353/* end confdefs.h. */
21354$ac_includes_default
21355int
21356main ()
21357{
21358static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
21359test_array [0] = 0
21360
21361 ;
21362 return 0;
21363}
21364_ACEOF
21365rm -f conftest.$ac_objext
21366if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21367 (eval $ac_compile) 2>conftest.er1
a848cd7e 21368 ac_status=$?
ac1cb8d3
VS
21369 grep -v '^ *+' conftest.er1 >conftest.err
21370 rm -f conftest.er1
21371 cat conftest.err >&5
a848cd7e
SC
21372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21373 (exit $ac_status); } &&
479c790c 21374 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
21375 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21376 (eval $ac_try) 2>&5
21377 ac_status=$?
21378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21379 (exit $ac_status); }; } &&
21380 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
21381 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21382 (eval $ac_try) 2>&5
21383 ac_status=$?
21384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21385 (exit $ac_status); }; }; then
21386 ac_lo=0 ac_mid=0
21387 while :; do
21388 cat >conftest.$ac_ext <<_ACEOF
21389/* confdefs.h. */
21390_ACEOF
21391cat confdefs.h >>conftest.$ac_ext
21392cat >>conftest.$ac_ext <<_ACEOF
21393/* end confdefs.h. */
21394$ac_includes_default
21395int
21396main ()
21397{
21398static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
21399test_array [0] = 0
21400
21401 ;
21402 return 0;
21403}
21404_ACEOF
21405rm -f conftest.$ac_objext
21406if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21407 (eval $ac_compile) 2>conftest.er1
a848cd7e 21408 ac_status=$?
ac1cb8d3
VS
21409 grep -v '^ *+' conftest.er1 >conftest.err
21410 rm -f conftest.er1
21411 cat conftest.err >&5
a848cd7e
SC
21412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21413 (exit $ac_status); } &&
479c790c 21414 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
21415 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21416 (eval $ac_try) 2>&5
21417 ac_status=$?
21418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21419 (exit $ac_status); }; } &&
21420 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
21421 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21422 (eval $ac_try) 2>&5
21423 ac_status=$?
21424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21425 (exit $ac_status); }; }; then
21426 ac_hi=$ac_mid; break
21427else
21428 echo "$as_me: failed program was:" >&5
21429sed 's/^/| /' conftest.$ac_ext >&5
21430
21431ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
21432 if test $ac_lo -le $ac_mid; then
21433 ac_lo= ac_hi=
21434 break
21435 fi
21436 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 21437fi
ac1cb8d3 21438rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
21439 done
21440else
21441 echo "$as_me: failed program was:" >&5
21442sed 's/^/| /' conftest.$ac_ext >&5
21443
21444cat >conftest.$ac_ext <<_ACEOF
21445/* confdefs.h. */
21446_ACEOF
21447cat confdefs.h >>conftest.$ac_ext
21448cat >>conftest.$ac_ext <<_ACEOF
21449/* end confdefs.h. */
21450$ac_includes_default
21451int
21452main ()
21453{
21454static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
21455test_array [0] = 0
21456
21457 ;
21458 return 0;
21459}
21460_ACEOF
21461rm -f conftest.$ac_objext
21462if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21463 (eval $ac_compile) 2>conftest.er1
a848cd7e 21464 ac_status=$?
ac1cb8d3
VS
21465 grep -v '^ *+' conftest.er1 >conftest.err
21466 rm -f conftest.er1
21467 cat conftest.err >&5
a848cd7e
SC
21468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21469 (exit $ac_status); } &&
479c790c 21470 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
21471 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21472 (eval $ac_try) 2>&5
21473 ac_status=$?
21474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21475 (exit $ac_status); }; } &&
21476 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
21477 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21478 (eval $ac_try) 2>&5
21479 ac_status=$?
21480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21481 (exit $ac_status); }; }; then
21482 ac_hi=-1 ac_mid=-1
21483 while :; do
21484 cat >conftest.$ac_ext <<_ACEOF
21485/* confdefs.h. */
21486_ACEOF
21487cat confdefs.h >>conftest.$ac_ext
21488cat >>conftest.$ac_ext <<_ACEOF
21489/* end confdefs.h. */
21490$ac_includes_default
21491int
21492main ()
21493{
21494static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
21495test_array [0] = 0
21496
21497 ;
21498 return 0;
21499}
21500_ACEOF
21501rm -f conftest.$ac_objext
21502if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21503 (eval $ac_compile) 2>conftest.er1
a848cd7e 21504 ac_status=$?
ac1cb8d3
VS
21505 grep -v '^ *+' conftest.er1 >conftest.err
21506 rm -f conftest.er1
21507 cat conftest.err >&5
a848cd7e
SC
21508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21509 (exit $ac_status); } &&
479c790c 21510 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
21511 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21512 (eval $ac_try) 2>&5
21513 ac_status=$?
21514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21515 (exit $ac_status); }; } &&
21516 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
21517 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21518 (eval $ac_try) 2>&5
21519 ac_status=$?
21520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21521 (exit $ac_status); }; }; then
21522 ac_lo=$ac_mid; break
21523else
21524 echo "$as_me: failed program was:" >&5
21525sed 's/^/| /' conftest.$ac_ext >&5
21526
21527ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
21528 if test $ac_mid -le $ac_hi; then
21529 ac_lo= ac_hi=
21530 break
21531 fi
21532 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 21533fi
ac1cb8d3 21534rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
21535 done
21536else
21537 echo "$as_me: failed program was:" >&5
21538sed 's/^/| /' conftest.$ac_ext >&5
21539
21540ac_lo= ac_hi=
21541fi
ac1cb8d3 21542rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 21543fi
ac1cb8d3 21544rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
21545# Binary search between lo and hi bounds.
21546while test "x$ac_lo" != "x$ac_hi"; do
21547 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
21548 cat >conftest.$ac_ext <<_ACEOF
21549/* confdefs.h. */
21550_ACEOF
21551cat confdefs.h >>conftest.$ac_ext
21552cat >>conftest.$ac_ext <<_ACEOF
21553/* end confdefs.h. */
21554$ac_includes_default
21555int
21556main ()
21557{
21558static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
21559test_array [0] = 0
21560
21561 ;
21562 return 0;
21563}
21564_ACEOF
21565rm -f conftest.$ac_objext
21566if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21567 (eval $ac_compile) 2>conftest.er1
a848cd7e 21568 ac_status=$?
ac1cb8d3
VS
21569 grep -v '^ *+' conftest.er1 >conftest.err
21570 rm -f conftest.er1
21571 cat conftest.err >&5
a848cd7e
SC
21572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21573 (exit $ac_status); } &&
479c790c 21574 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
21575 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21576 (eval $ac_try) 2>&5
21577 ac_status=$?
21578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21579 (exit $ac_status); }; } &&
21580 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
21581 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21582 (eval $ac_try) 2>&5
21583 ac_status=$?
21584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21585 (exit $ac_status); }; }; then
21586 ac_hi=$ac_mid
21587else
21588 echo "$as_me: failed program was:" >&5
21589sed 's/^/| /' conftest.$ac_ext >&5
21590
21591ac_lo=`expr '(' $ac_mid ')' + 1`
21592fi
ac1cb8d3 21593rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
21594done
21595case $ac_lo in
21596?*) ac_cv_sizeof_long_long=$ac_lo;;
21597'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
21598See \`config.log' for more details." >&5
21599echo "$as_me: error: cannot compute sizeof (long long), 77
21600See \`config.log' for more details." >&2;}
21601 { (exit 1); exit 1; }; } ;;
21602esac
21603else
21604 if test "$cross_compiling" = yes; then
479c790c
VZ
21605 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
21606echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
a848cd7e
SC
21607 { (exit 1); exit 1; }; }
21608else
21609 cat >conftest.$ac_ext <<_ACEOF
21610/* confdefs.h. */
21611_ACEOF
21612cat confdefs.h >>conftest.$ac_ext
21613cat >>conftest.$ac_ext <<_ACEOF
21614/* end confdefs.h. */
21615$ac_includes_default
21616long longval () { return (long) (sizeof (long long)); }
21617unsigned long ulongval () { return (long) (sizeof (long long)); }
21618#include <stdio.h>
21619#include <stdlib.h>
21620int
21621main ()
21622{
21623
21624 FILE *f = fopen ("conftest.val", "w");
21625 if (! f)
21626 exit (1);
21627 if (((long) (sizeof (long long))) < 0)
21628 {
21629 long i = longval ();
21630 if (i != ((long) (sizeof (long long))))
21631 exit (1);
21632 fprintf (f, "%ld\n", i);
21633 }
21634 else
21635 {
21636 unsigned long i = ulongval ();
21637 if (i != ((long) (sizeof (long long))))
21638 exit (1);
21639 fprintf (f, "%lu\n", i);
21640 }
21641 exit (ferror (f) || fclose (f) != 0);
21642
21643 ;
21644 return 0;
21645}
21646_ACEOF
21647rm -f conftest$ac_exeext
21648if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21649 (eval $ac_link) 2>&5
21650 ac_status=$?
21651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21652 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21653 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21654 (eval $ac_try) 2>&5
21655 ac_status=$?
21656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21657 (exit $ac_status); }; }; then
21658 ac_cv_sizeof_long_long=`cat conftest.val`
21659else
21660 echo "$as_me: program exited with status $ac_status" >&5
21661echo "$as_me: failed program was:" >&5
21662sed 's/^/| /' conftest.$ac_ext >&5
21663
21664( exit $ac_status )
21665{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
21666See \`config.log' for more details." >&5
21667echo "$as_me: error: cannot compute sizeof (long long), 77
21668See \`config.log' for more details." >&2;}
21669 { (exit 1); exit 1; }; }
21670fi
ac1cb8d3 21671rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
21672fi
21673fi
21674rm -f conftest.val
21675else
21676 ac_cv_sizeof_long_long=0
21677fi
21678fi
21679echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
21680echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
21681cat >>confdefs.h <<_ACEOF
21682#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
21683_ACEOF
21684
21685
21686esac
21687
238ecede
MW
21688echo "$as_me:$LINENO: checking for wchar_t" >&5
21689echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6
21690if test "${ac_cv_type_wchar_t+set}" = set; then
21691 echo $ECHO_N "(cached) $ECHO_C" >&6
21692else
21693 cat >conftest.$ac_ext <<_ACEOF
21694/* confdefs.h. */
21695_ACEOF
21696cat confdefs.h >>conftest.$ac_ext
21697cat >>conftest.$ac_ext <<_ACEOF
21698/* end confdefs.h. */
21699
83d8eb47
MW
21700 /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
21701 #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
238ecede
MW
21702 # error "fake wchar_t"
21703 #endif
21704 #ifdef HAVE_WCHAR_H
21705 # ifdef __CYGWIN__
21706 # include <stddef.h>
21707 # endif
21708 # include <wchar.h>
21709 #endif
21710 #ifdef HAVE_STDLIB_H
21711 # include <stdlib.h>
21712 #endif
21713 #include <stdio.h>
21714
21715
21716
21717int
21718main ()
21719{
21720if ((wchar_t *) 0)
21721 return 0;
21722if (sizeof (wchar_t))
21723 return 0;
21724 ;
21725 return 0;
21726}
21727_ACEOF
21728rm -f conftest.$ac_objext
21729if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21730 (eval $ac_compile) 2>conftest.er1
21731 ac_status=$?
21732 grep -v '^ *+' conftest.er1 >conftest.err
21733 rm -f conftest.er1
21734 cat conftest.err >&5
21735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21736 (exit $ac_status); } &&
479c790c 21737 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
238ecede
MW
21738 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21739 (eval $ac_try) 2>&5
21740 ac_status=$?
21741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21742 (exit $ac_status); }; } &&
21743 { ac_try='test -s conftest.$ac_objext'
21744 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21745 (eval $ac_try) 2>&5
21746 ac_status=$?
21747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21748 (exit $ac_status); }; }; then
21749 ac_cv_type_wchar_t=yes
21750else
21751 echo "$as_me: failed program was:" >&5
21752sed 's/^/| /' conftest.$ac_ext >&5
21753
21754ac_cv_type_wchar_t=no
21755fi
21756rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21757fi
21758echo "$as_me:$LINENO: result: $ac_cv_type_wchar_t" >&5
21759echo "${ECHO_T}$ac_cv_type_wchar_t" >&6
21760
a848cd7e
SC
21761echo "$as_me:$LINENO: checking size of wchar_t" >&5
21762echo $ECHO_N "checking size of wchar_t... $ECHO_C" >&6
238ecede 21763if test "${ac_cv_sizeof_wchar_t+set}" = set; then
a848cd7e
SC
21764 echo $ECHO_N "(cached) $ECHO_C" >&6
21765else
238ecede
MW
21766 if test "$ac_cv_type_wchar_t" = yes; then
21767 # The cast to unsigned long works around a bug in the HP C Compiler
21768 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21769 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21770 # This bug is HP SR number 8606223364.
21771 if test "$cross_compiling" = yes; then
21772 # Depending upon the size, compute the lo and hi bounds.
21773cat >conftest.$ac_ext <<_ACEOF
21774/* confdefs.h. */
21775_ACEOF
21776cat confdefs.h >>conftest.$ac_ext
21777cat >>conftest.$ac_ext <<_ACEOF
21778/* end confdefs.h. */
21779
83d8eb47
MW
21780 /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
21781 #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
238ecede
MW
21782 # error "fake wchar_t"
21783 #endif
21784 #ifdef HAVE_WCHAR_H
21785 # ifdef __CYGWIN__
21786 # include <stddef.h>
21787 # endif
21788 # include <wchar.h>
21789 #endif
21790 #ifdef HAVE_STDLIB_H
21791 # include <stdlib.h>
21792 #endif
21793 #include <stdio.h>
21794
21795
21796
21797int
21798main ()
21799{
21800static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) >= 0)];
21801test_array [0] = 0
21802
21803 ;
21804 return 0;
21805}
21806_ACEOF
21807rm -f conftest.$ac_objext
21808if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21809 (eval $ac_compile) 2>conftest.er1
21810 ac_status=$?
21811 grep -v '^ *+' conftest.er1 >conftest.err
21812 rm -f conftest.er1
21813 cat conftest.err >&5
21814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21815 (exit $ac_status); } &&
479c790c 21816 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
238ecede
MW
21817 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21818 (eval $ac_try) 2>&5
21819 ac_status=$?
21820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21821 (exit $ac_status); }; } &&
21822 { ac_try='test -s conftest.$ac_objext'
21823 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21824 (eval $ac_try) 2>&5
21825 ac_status=$?
21826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21827 (exit $ac_status); }; }; then
21828 ac_lo=0 ac_mid=0
21829 while :; do
21830 cat >conftest.$ac_ext <<_ACEOF
21831/* confdefs.h. */
21832_ACEOF
21833cat confdefs.h >>conftest.$ac_ext
21834cat >>conftest.$ac_ext <<_ACEOF
21835/* end confdefs.h. */
21836
83d8eb47
MW
21837 /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
21838 #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
238ecede
MW
21839 # error "fake wchar_t"
21840 #endif
21841 #ifdef HAVE_WCHAR_H
21842 # ifdef __CYGWIN__
21843 # include <stddef.h>
21844 # endif
21845 # include <wchar.h>
21846 #endif
21847 #ifdef HAVE_STDLIB_H
21848 # include <stdlib.h>
21849 #endif
21850 #include <stdio.h>
21851
21852
21853
21854int
21855main ()
21856{
21857static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) <= $ac_mid)];
21858test_array [0] = 0
21859
21860 ;
21861 return 0;
21862}
21863_ACEOF
21864rm -f conftest.$ac_objext
21865if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21866 (eval $ac_compile) 2>conftest.er1
21867 ac_status=$?
21868 grep -v '^ *+' conftest.er1 >conftest.err
21869 rm -f conftest.er1
21870 cat conftest.err >&5
21871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21872 (exit $ac_status); } &&
479c790c 21873 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
238ecede
MW
21874 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21875 (eval $ac_try) 2>&5
21876 ac_status=$?
21877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21878 (exit $ac_status); }; } &&
21879 { ac_try='test -s conftest.$ac_objext'
21880 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21881 (eval $ac_try) 2>&5
21882 ac_status=$?
21883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21884 (exit $ac_status); }; }; then
21885 ac_hi=$ac_mid; break
21886else
21887 echo "$as_me: failed program was:" >&5
21888sed 's/^/| /' conftest.$ac_ext >&5
21889
21890ac_lo=`expr $ac_mid + 1`
21891 if test $ac_lo -le $ac_mid; then
21892 ac_lo= ac_hi=
21893 break
21894 fi
21895 ac_mid=`expr 2 '*' $ac_mid + 1`
21896fi
21897rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21898 done
21899else
21900 echo "$as_me: failed program was:" >&5
21901sed 's/^/| /' conftest.$ac_ext >&5
21902
21903cat >conftest.$ac_ext <<_ACEOF
21904/* confdefs.h. */
21905_ACEOF
21906cat confdefs.h >>conftest.$ac_ext
21907cat >>conftest.$ac_ext <<_ACEOF
21908/* end confdefs.h. */
21909
83d8eb47
MW
21910 /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
21911 #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
238ecede
MW
21912 # error "fake wchar_t"
21913 #endif
21914 #ifdef HAVE_WCHAR_H
21915 # ifdef __CYGWIN__
21916 # include <stddef.h>
21917 # endif
21918 # include <wchar.h>
21919 #endif
21920 #ifdef HAVE_STDLIB_H
21921 # include <stdlib.h>
21922 #endif
21923 #include <stdio.h>
21924
21925
21926
21927int
21928main ()
21929{
21930static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) < 0)];
21931test_array [0] = 0
21932
21933 ;
21934 return 0;
21935}
21936_ACEOF
21937rm -f conftest.$ac_objext
21938if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21939 (eval $ac_compile) 2>conftest.er1
21940 ac_status=$?
21941 grep -v '^ *+' conftest.er1 >conftest.err
21942 rm -f conftest.er1
21943 cat conftest.err >&5
21944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21945 (exit $ac_status); } &&
479c790c 21946 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
238ecede
MW
21947 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21948 (eval $ac_try) 2>&5
21949 ac_status=$?
21950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21951 (exit $ac_status); }; } &&
21952 { ac_try='test -s conftest.$ac_objext'
21953 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21954 (eval $ac_try) 2>&5
21955 ac_status=$?
21956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21957 (exit $ac_status); }; }; then
21958 ac_hi=-1 ac_mid=-1
21959 while :; do
21960 cat >conftest.$ac_ext <<_ACEOF
21961/* confdefs.h. */
21962_ACEOF
21963cat confdefs.h >>conftest.$ac_ext
21964cat >>conftest.$ac_ext <<_ACEOF
21965/* end confdefs.h. */
21966
83d8eb47
MW
21967 /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
21968 #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
238ecede
MW
21969 # error "fake wchar_t"
21970 #endif
21971 #ifdef HAVE_WCHAR_H
21972 # ifdef __CYGWIN__
21973 # include <stddef.h>
21974 # endif
21975 # include <wchar.h>
21976 #endif
21977 #ifdef HAVE_STDLIB_H
21978 # include <stdlib.h>
21979 #endif
21980 #include <stdio.h>
21981
21982
21983
21984int
21985main ()
21986{
21987static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) >= $ac_mid)];
21988test_array [0] = 0
21989
21990 ;
21991 return 0;
21992}
21993_ACEOF
21994rm -f conftest.$ac_objext
21995if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21996 (eval $ac_compile) 2>conftest.er1
21997 ac_status=$?
21998 grep -v '^ *+' conftest.er1 >conftest.err
21999 rm -f conftest.er1
22000 cat conftest.err >&5
22001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22002 (exit $ac_status); } &&
479c790c 22003 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
238ecede
MW
22004 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22005 (eval $ac_try) 2>&5
22006 ac_status=$?
22007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22008 (exit $ac_status); }; } &&
22009 { ac_try='test -s conftest.$ac_objext'
22010 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22011 (eval $ac_try) 2>&5
22012 ac_status=$?
22013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22014 (exit $ac_status); }; }; then
22015 ac_lo=$ac_mid; break
22016else
22017 echo "$as_me: failed program was:" >&5
22018sed 's/^/| /' conftest.$ac_ext >&5
22019
22020ac_hi=`expr '(' $ac_mid ')' - 1`
22021 if test $ac_mid -le $ac_hi; then
22022 ac_lo= ac_hi=
22023 break
22024 fi
22025 ac_mid=`expr 2 '*' $ac_mid`
22026fi
22027rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22028 done
22029else
22030 echo "$as_me: failed program was:" >&5
22031sed 's/^/| /' conftest.$ac_ext >&5
22032
22033ac_lo= ac_hi=
22034fi
22035rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22036fi
22037rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22038# Binary search between lo and hi bounds.
22039while test "x$ac_lo" != "x$ac_hi"; do
22040 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
22041 cat >conftest.$ac_ext <<_ACEOF
22042/* confdefs.h. */
22043_ACEOF
22044cat confdefs.h >>conftest.$ac_ext
22045cat >>conftest.$ac_ext <<_ACEOF
22046/* end confdefs.h. */
22047
83d8eb47
MW
22048 /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
22049 #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
238ecede
MW
22050 # error "fake wchar_t"
22051 #endif
22052 #ifdef HAVE_WCHAR_H
22053 # ifdef __CYGWIN__
22054 # include <stddef.h>
22055 # endif
22056 # include <wchar.h>
22057 #endif
22058 #ifdef HAVE_STDLIB_H
22059 # include <stdlib.h>
22060 #endif
22061 #include <stdio.h>
a848cd7e 22062
a848cd7e 22063
a848cd7e 22064
238ecede
MW
22065int
22066main ()
22067{
22068static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) <= $ac_mid)];
22069test_array [0] = 0
a848cd7e 22070
238ecede
MW
22071 ;
22072 return 0;
22073}
22074_ACEOF
22075rm -f conftest.$ac_objext
22076if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22077 (eval $ac_compile) 2>conftest.er1
22078 ac_status=$?
22079 grep -v '^ *+' conftest.er1 >conftest.err
22080 rm -f conftest.er1
22081 cat conftest.err >&5
22082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22083 (exit $ac_status); } &&
479c790c 22084 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
238ecede
MW
22085 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22086 (eval $ac_try) 2>&5
22087 ac_status=$?
22088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22089 (exit $ac_status); }; } &&
22090 { ac_try='test -s conftest.$ac_objext'
22091 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22092 (eval $ac_try) 2>&5
22093 ac_status=$?
22094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22095 (exit $ac_status); }; }; then
22096 ac_hi=$ac_mid
22097else
22098 echo "$as_me: failed program was:" >&5
22099sed 's/^/| /' conftest.$ac_ext >&5
22100
22101ac_lo=`expr '(' $ac_mid ')' + 1`
22102fi
22103rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22104done
22105case $ac_lo in
22106?*) ac_cv_sizeof_wchar_t=$ac_lo;;
22107'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t), 77
22108See \`config.log' for more details." >&5
22109echo "$as_me: error: cannot compute sizeof (wchar_t), 77
22110See \`config.log' for more details." >&2;}
22111 { (exit 1); exit 1; }; } ;;
22112esac
22113else
22114 if test "$cross_compiling" = yes; then
479c790c
VZ
22115 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
22116echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
238ecede 22117 { (exit 1); exit 1; }; }
a848cd7e
SC
22118else
22119 cat >conftest.$ac_ext <<_ACEOF
22120/* confdefs.h. */
22121_ACEOF
22122cat confdefs.h >>conftest.$ac_ext
22123cat >>conftest.$ac_ext <<_ACEOF
22124/* end confdefs.h. */
22125
83d8eb47
MW
22126 /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
22127 #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
238ecede
MW
22128 # error "fake wchar_t"
22129 #endif
22130 #ifdef HAVE_WCHAR_H
22131 # ifdef __CYGWIN__
22132 # include <stddef.h>
22133 # endif
22134 # include <wchar.h>
22135 #endif
22136 #ifdef HAVE_STDLIB_H
22137 # include <stdlib.h>
22138 #endif
22139 #include <stdio.h>
22140
22141
22142
22143long longval () { return (long) (sizeof (wchar_t)); }
22144unsigned long ulongval () { return (long) (sizeof (wchar_t)); }
22145#include <stdio.h>
22146#include <stdlib.h>
22147int
22148main ()
22149{
a848cd7e 22150
238ecede
MW
22151 FILE *f = fopen ("conftest.val", "w");
22152 if (! f)
22153 exit (1);
22154 if (((long) (sizeof (wchar_t))) < 0)
22155 {
22156 long i = longval ();
22157 if (i != ((long) (sizeof (wchar_t))))
22158 exit (1);
22159 fprintf (f, "%ld\n", i);
22160 }
22161 else
22162 {
22163 unsigned long i = ulongval ();
22164 if (i != ((long) (sizeof (wchar_t))))
22165 exit (1);
22166 fprintf (f, "%lu\n", i);
22167 }
22168 exit (ferror (f) || fclose (f) != 0);
22169
22170 ;
22171 return 0;
22172}
a848cd7e
SC
22173_ACEOF
22174rm -f conftest$ac_exeext
22175if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22176 (eval $ac_link) 2>&5
22177 ac_status=$?
22178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22179 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22180 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22181 (eval $ac_try) 2>&5
22182 ac_status=$?
22183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22184 (exit $ac_status); }; }; then
238ecede 22185 ac_cv_sizeof_wchar_t=`cat conftest.val`
a848cd7e
SC
22186else
22187 echo "$as_me: program exited with status $ac_status" >&5
22188echo "$as_me: failed program was:" >&5
22189sed 's/^/| /' conftest.$ac_ext >&5
22190
22191( exit $ac_status )
238ecede
MW
22192{ { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t), 77
22193See \`config.log' for more details." >&5
22194echo "$as_me: error: cannot compute sizeof (wchar_t), 77
22195See \`config.log' for more details." >&2;}
22196 { (exit 1); exit 1; }; }
a848cd7e 22197fi
ac1cb8d3 22198rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e 22199fi
a848cd7e 22200fi
238ecede
MW
22201rm -f conftest.val
22202else
22203 ac_cv_sizeof_wchar_t=0
22204fi
22205fi
22206echo "$as_me:$LINENO: result: $ac_cv_sizeof_wchar_t" >&5
22207echo "${ECHO_T}$ac_cv_sizeof_wchar_t" >&6
a848cd7e 22208cat >>confdefs.h <<_ACEOF
238ecede 22209#define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t
a848cd7e
SC
22210_ACEOF
22211
22212
47a7e797
MW
22213if test "$ac_cv_sizeof_wchar_t" != "0"; then
22214 wxUSE_WCHAR_T=yes
22215else
22216 wxUSE_WCHAR_T=no
22217fi
238ecede 22218
ba3d13e1
VZ
22219echo "$as_me:$LINENO: checking for va_copy" >&5
22220echo $ECHO_N "checking for va_copy... $ECHO_C" >&6
22221if test "${wx_cv_func_va_copy+set}" = set; then
22222 echo $ECHO_N "(cached) $ECHO_C" >&6
22223else
22224
22225 cat >conftest.$ac_ext <<_ACEOF
22226
22227 #include <stdarg.h>
22228 void foo(char *f, ...)
22229 {
22230 va_list ap1, ap2;
22231 va_start(ap1, f);
22232 va_copy(ap2, ap1);
22233 va_end(ap2);
22234 va_end(ap1);
22235 }
5886b072
VZ
22236 int main()
22237 {
b902e639
VZ
22238 foo("hi", 17);
22239 return 0;
5886b072 22240 }
ba3d13e1
VZ
22241_ACEOF
22242rm -f conftest.$ac_objext conftest$ac_exeext
22243if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22244 (eval $ac_link) 2>conftest.er1
22245 ac_status=$?
22246 grep -v '^ *+' conftest.er1 >conftest.err
22247 rm -f conftest.er1
22248 cat conftest.err >&5
22249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22250 (exit $ac_status); } &&
479c790c 22251 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ba3d13e1
VZ
22252 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22253 (eval $ac_try) 2>&5
22254 ac_status=$?
22255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22256 (exit $ac_status); }; } &&
22257 { ac_try='test -s conftest$ac_exeext'
22258 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22259 (eval $ac_try) 2>&5
22260 ac_status=$?
22261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22262 (exit $ac_status); }; }; then
22263 wx_cv_func_va_copy=yes
22264else
22265 echo "$as_me: failed program was:" >&5
22266sed 's/^/| /' conftest.$ac_ext >&5
22267
22268wx_cv_func_va_copy=no
22269
22270fi
22271rm -f conftest.err conftest.$ac_objext \
22272 conftest$ac_exeext conftest.$ac_ext
22273
22274
22275fi
22276echo "$as_me:$LINENO: result: $wx_cv_func_va_copy" >&5
22277echo "${ECHO_T}$wx_cv_func_va_copy" >&6
22278
22279if test $wx_cv_func_va_copy = "yes"; then
22280 cat >>confdefs.h <<\_ACEOF
22281#define HAVE_VA_COPY 1
22282_ACEOF
22283
22284else
22285 echo "$as_me:$LINENO: checking if va_list can be copied by value" >&5
22286echo $ECHO_N "checking if va_list can be copied by value... $ECHO_C" >&6
22287if test "${wx_cv_type_va_list_lvalue+set}" = set; then
22288 echo $ECHO_N "(cached) $ECHO_C" >&6
22289else
22290
22291 if test "$cross_compiling" = yes; then
22292 wx_cv_type_va_list_lvalue=yes
22293
22294else
22295 cat >conftest.$ac_ext <<_ACEOF
22296
22297 #include <stdarg.h>
22298 int foo(char *f, ...)
22299 {
22300 va_list ap1, ap2;
22301 va_start(ap1, f);
22302 ap2 = ap1;
22303 if ( va_arg(ap1, int) != 17 || va_arg(ap2, int) != 17 )
22304 return 1;
22305 va_end(ap2);
22306 va_end(ap1);
22307 return 0;
22308 }
22309 int main()
22310 {
22311 return foo("hi", 17);
22312 }
22313_ACEOF
22314rm -f conftest$ac_exeext
22315if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22316 (eval $ac_link) 2>&5
22317 ac_status=$?
22318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22319 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22320 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22321 (eval $ac_try) 2>&5
22322 ac_status=$?
22323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22324 (exit $ac_status); }; }; then
22325 wx_cv_type_va_list_lvalue=yes
22326else
22327 echo "$as_me: program exited with status $ac_status" >&5
22328echo "$as_me: failed program was:" >&5
22329sed 's/^/| /' conftest.$ac_ext >&5
22330
22331( exit $ac_status )
22332wx_cv_type_va_list_lvalue=no
22333fi
22334rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22335fi
22336
22337
22338fi
22339echo "$as_me:$LINENO: result: $wx_cv_type_va_list_lvalue" >&5
22340echo "${ECHO_T}$wx_cv_type_va_list_lvalue" >&6
22341
22342 if test $wx_cv_type_va_list_lvalue != "yes"; then
22343 cat >>confdefs.h <<\_ACEOF
22344#define VA_LIST_IS_ARRAY 1
22345_ACEOF
22346
22347 fi
22348fi
22349
ca766534
VS
22350echo "$as_me:$LINENO: checking whether the compiler supports variadic macros" >&5
22351echo $ECHO_N "checking whether the compiler supports variadic macros... $ECHO_C" >&6
22352if test "${wx_cv_have_variadic_macros+set}" = set; then
22353 echo $ECHO_N "(cached) $ECHO_C" >&6
22354else
22355
22356 cat >conftest.$ac_ext <<_ACEOF
22357/* confdefs.h. */
22358_ACEOF
22359cat confdefs.h >>conftest.$ac_ext
22360cat >>conftest.$ac_ext <<_ACEOF
22361/* end confdefs.h. */
22362
22363 #include <stdio.h>
22364 #define test(fmt, ...) printf(fmt, __VA_ARGS__)
22365
22366int
22367main ()
22368{
22369
22370 test("%s %d %p", "test", 1, 0);
22371
22372
22373 ;
22374 return 0;
22375}
22376_ACEOF
22377rm -f conftest.$ac_objext
22378if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22379 (eval $ac_compile) 2>conftest.er1
22380 ac_status=$?
22381 grep -v '^ *+' conftest.er1 >conftest.err
22382 rm -f conftest.er1
22383 cat conftest.err >&5
22384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22385 (exit $ac_status); } &&
479c790c 22386 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ca766534
VS
22387 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22388 (eval $ac_try) 2>&5
22389 ac_status=$?
22390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22391 (exit $ac_status); }; } &&
22392 { ac_try='test -s conftest.$ac_objext'
22393 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22394 (eval $ac_try) 2>&5
22395 ac_status=$?
22396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22397 (exit $ac_status); }; }; then
22398 wx_cv_have_variadic_macros=yes
22399else
22400 echo "$as_me: failed program was:" >&5
22401sed 's/^/| /' conftest.$ac_ext >&5
22402
22403wx_cv_have_variadic_macros=no
22404
22405fi
22406rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22407
22408
22409fi
22410echo "$as_me:$LINENO: result: $wx_cv_have_variadic_macros" >&5
22411echo "${ECHO_T}$wx_cv_have_variadic_macros" >&6
22412
22413if test $wx_cv_have_variadic_macros = "yes"; then
22414 cat >>confdefs.h <<\_ACEOF
22415#define HAVE_VARIADIC_MACROS 1
22416_ACEOF
22417
22418fi
22419
a848cd7e
SC
22420# Check whether --enable-largefile or --disable-largefile was given.
22421if test "${enable_largefile+set}" = set; then
22422 enableval="$enable_largefile"
22423
22424fi;
22425if test "$enable_largefile" != no; then
22426 wx_largefile=no
22427
22428 echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
22429echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
22430if test "${ac_cv_sys_file_offset_bits+set}" = set; then
22431 echo $ECHO_N "(cached) $ECHO_C" >&6
22432else
22433
22434 cat >conftest.$ac_ext <<_ACEOF
22435/* confdefs.h. */
22436_ACEOF
22437cat confdefs.h >>conftest.$ac_ext
22438cat >>conftest.$ac_ext <<_ACEOF
22439/* end confdefs.h. */
22440#define _FILE_OFFSET_BITS 64
22441 #include <sys/types.h>
22442int
22443main ()
22444{
22445typedef struct {
22446 unsigned int field: sizeof(off_t) == 8;
22447} wxlf;
22448
22449 ;
22450 return 0;
22451}
22452_ACEOF
22453rm -f conftest.$ac_objext
22454if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 22455 (eval $ac_compile) 2>conftest.er1
a848cd7e 22456 ac_status=$?
ac1cb8d3
VS
22457 grep -v '^ *+' conftest.er1 >conftest.err
22458 rm -f conftest.er1
22459 cat conftest.err >&5
a848cd7e
SC
22460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22461 (exit $ac_status); } &&
479c790c 22462 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
22463 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22464 (eval $ac_try) 2>&5
22465 ac_status=$?
22466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22467 (exit $ac_status); }; } &&
22468 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
22469 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22470 (eval $ac_try) 2>&5
22471 ac_status=$?
22472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22473 (exit $ac_status); }; }; then
22474 ac_cv_sys_file_offset_bits=64
22475else
22476 echo "$as_me: failed program was:" >&5
22477sed 's/^/| /' conftest.$ac_ext >&5
22478
22479ac_cv_sys_file_offset_bits=no
22480fi
ac1cb8d3 22481rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
22482
22483
22484fi
22485echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
22486echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
22487
22488 if test "$ac_cv_sys_file_offset_bits" != no; then
22489 wx_largefile=yes
22490 cat >>confdefs.h <<_ACEOF
22491#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
22492_ACEOF
22493
22494 fi
22495
22496 if test "x$wx_largefile" != "xyes"; then
22497
22498 echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
22499echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
22500if test "${ac_cv_sys_large_files+set}" = set; then
22501 echo $ECHO_N "(cached) $ECHO_C" >&6
22502else
22503
22504 cat >conftest.$ac_ext <<_ACEOF
22505/* confdefs.h. */
22506_ACEOF
22507cat confdefs.h >>conftest.$ac_ext
22508cat >>conftest.$ac_ext <<_ACEOF
22509/* end confdefs.h. */
22510#define _LARGE_FILES 1
22511 #include <sys/types.h>
22512int
22513main ()
22514{
22515typedef struct {
22516 unsigned int field: sizeof(off_t) == 8;
22517} wxlf;
22518
22519 ;
22520 return 0;
22521}
22522_ACEOF
22523rm -f conftest.$ac_objext
22524if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 22525 (eval $ac_compile) 2>conftest.er1
a848cd7e 22526 ac_status=$?
ac1cb8d3
VS
22527 grep -v '^ *+' conftest.er1 >conftest.err
22528 rm -f conftest.er1
22529 cat conftest.err >&5
a848cd7e
SC
22530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22531 (exit $ac_status); } &&
479c790c 22532 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
22533 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22534 (eval $ac_try) 2>&5
22535 ac_status=$?
22536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22537 (exit $ac_status); }; } &&
22538 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
22539 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22540 (eval $ac_try) 2>&5
22541 ac_status=$?
22542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22543 (exit $ac_status); }; }; then
22544 ac_cv_sys_large_files=1
22545else
22546 echo "$as_me: failed program was:" >&5
22547sed 's/^/| /' conftest.$ac_ext >&5
22548
22549ac_cv_sys_large_files=no
22550fi
ac1cb8d3 22551rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
22552
22553
22554fi
22555echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
22556echo "${ECHO_T}$ac_cv_sys_large_files" >&6
22557
22558 if test "$ac_cv_sys_large_files" != no; then
22559 wx_largefile=yes
22560 cat >>confdefs.h <<_ACEOF
22561#define _LARGE_FILES $ac_cv_sys_large_files
22562_ACEOF
22563
22564 fi
22565
22566 fi
22567
22568 echo "$as_me:$LINENO: checking if large file support is available" >&5
22569echo $ECHO_N "checking if large file support is available... $ECHO_C" >&6
22570 if test "x$wx_largefile" = "xyes"; then
22571 cat >>confdefs.h <<\_ACEOF
22572#define HAVE_LARGEFILE_SUPPORT 1
22573_ACEOF
22574
22575 fi
22576 echo "$as_me:$LINENO: result: $wx_largefile" >&5
22577echo "${ECHO_T}$wx_largefile" >&6
22578fi
22579
5b674b9d
DE
22580
22581if test "x$wx_largefile" = "xyes"; then
22582 if test "x$ac_cv_sys_file_offset_bits" = "x64"; then
5ff751d6 22583 WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES"
00421666
MW
22584
22585 if test "$USE_HPUX" = 1 -a "$GXX" = "yes"; then
22586 echo "$as_me:$LINENO: checking if -D__STDC_EXT__ is required" >&5
22587echo $ECHO_N "checking if -D__STDC_EXT__ is required... $ECHO_C" >&6
22588if test "${wx_cv_STDC_EXT_required+set}" = set; then
22589 echo $ECHO_N "(cached) $ECHO_C" >&6
22590else
22591
00421666
MW
22592 cat >conftest.$ac_ext <<_ACEOF
22593/* confdefs.h. */
22594_ACEOF
22595cat confdefs.h >>conftest.$ac_ext
22596cat >>conftest.$ac_ext <<_ACEOF
22597/* end confdefs.h. */
22598
22599int
22600main ()
22601{
22602
22603 #ifndef __STDC_EXT__
22604 choke me
22605 #endif
22606
22607 ;
22608 return 0;
22609}
22610_ACEOF
22611rm -f conftest.$ac_objext
22612if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22613 (eval $ac_compile) 2>conftest.er1
22614 ac_status=$?
22615 grep -v '^ *+' conftest.er1 >conftest.err
22616 rm -f conftest.er1
22617 cat conftest.err >&5
22618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22619 (exit $ac_status); } &&
479c790c 22620 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
00421666
MW
22621 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22622 (eval $ac_try) 2>&5
22623 ac_status=$?
22624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22625 (exit $ac_status); }; } &&
22626 { ac_try='test -s conftest.$ac_objext'
22627 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22628 (eval $ac_try) 2>&5
22629 ac_status=$?
22630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22631 (exit $ac_status); }; }; then
22632 wx_cv_STDC_EXT_required=no
22633else
22634 echo "$as_me: failed program was:" >&5
22635sed 's/^/| /' conftest.$ac_ext >&5
22636
22637wx_cv_STDC_EXT_required=yes
22638
22639fi
22640rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
00421666
MW
22641
22642
22643fi
22644echo "$as_me:$LINENO: result: $wx_cv_STDC_EXT_required" >&5
22645echo "${ECHO_T}$wx_cv_STDC_EXT_required" >&6
22646 if test "x$wx_cv_STDC_EXT_required" = "xyes"; then
5ff751d6 22647 WXCONFIG_CXXFLAGS="$WXCONFIG_CXXFLAGS -D__STDC_EXT__"
00421666
MW
22648 fi
22649 fi
5b674b9d 22650 else
5ff751d6 22651 WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS -D_LARGE_FILES"
5b674b9d
DE
22652 fi
22653 echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
5294a27e
VZ
22654echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6
22655if test "${ac_cv_sys_largefile_source+set}" = set; then
22656 echo $ECHO_N "(cached) $ECHO_C" >&6
22657else
22658 while :; do
22659 ac_cv_sys_largefile_source=no
22660 cat >conftest.$ac_ext <<_ACEOF
22661/* confdefs.h. */
22662_ACEOF
22663cat confdefs.h >>conftest.$ac_ext
22664cat >>conftest.$ac_ext <<_ACEOF
22665/* end confdefs.h. */
22666#include <stdio.h>
22667int
22668main ()
22669{
22670return !fseeko;
22671 ;
22672 return 0;
22673}
22674_ACEOF
22675rm -f conftest.$ac_objext
22676if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22677 (eval $ac_compile) 2>conftest.er1
22678 ac_status=$?
22679 grep -v '^ *+' conftest.er1 >conftest.err
22680 rm -f conftest.er1
22681 cat conftest.err >&5
22682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22683 (exit $ac_status); } &&
479c790c 22684 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5294a27e
VZ
22685 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22686 (eval $ac_try) 2>&5
22687 ac_status=$?
22688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22689 (exit $ac_status); }; } &&
22690 { ac_try='test -s conftest.$ac_objext'
22691 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22692 (eval $ac_try) 2>&5
22693 ac_status=$?
22694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22695 (exit $ac_status); }; }; then
22696 break
22697else
22698 echo "$as_me: failed program was:" >&5
22699sed 's/^/| /' conftest.$ac_ext >&5
22700
22701fi
22702rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22703 cat >conftest.$ac_ext <<_ACEOF
22704/* confdefs.h. */
22705_ACEOF
22706cat confdefs.h >>conftest.$ac_ext
22707cat >>conftest.$ac_ext <<_ACEOF
22708/* end confdefs.h. */
22709#define _LARGEFILE_SOURCE 1
22710#include <stdio.h>
22711int
22712main ()
22713{
22714return !fseeko;
22715 ;
22716 return 0;
22717}
22718_ACEOF
22719rm -f conftest.$ac_objext
22720if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22721 (eval $ac_compile) 2>conftest.er1
22722 ac_status=$?
22723 grep -v '^ *+' conftest.er1 >conftest.err
22724 rm -f conftest.er1
22725 cat conftest.err >&5
22726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22727 (exit $ac_status); } &&
479c790c 22728 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5294a27e
VZ
22729 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22730 (eval $ac_try) 2>&5
22731 ac_status=$?
22732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22733 (exit $ac_status); }; } &&
22734 { ac_try='test -s conftest.$ac_objext'
22735 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22736 (eval $ac_try) 2>&5
22737 ac_status=$?
22738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22739 (exit $ac_status); }; }; then
22740 ac_cv_sys_largefile_source=1; break
22741else
22742 echo "$as_me: failed program was:" >&5
22743sed 's/^/| /' conftest.$ac_ext >&5
22744
22745fi
22746rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22747 break
22748done
22749fi
22750echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
22751echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6
22752if test "$ac_cv_sys_largefile_source" != no; then
22753
22754cat >>confdefs.h <<_ACEOF
22755#define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
22756_ACEOF
22757
22758fi
22759rm -f conftest*
22760
22761# We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
22762# in glibc 2.1.3, but that breaks too many other things.
22763# If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
22764echo "$as_me:$LINENO: checking for fseeko" >&5
22765echo $ECHO_N "checking for fseeko... $ECHO_C" >&6
22766if test "${ac_cv_func_fseeko+set}" = set; then
22767 echo $ECHO_N "(cached) $ECHO_C" >&6
22768else
22769 cat >conftest.$ac_ext <<_ACEOF
22770/* confdefs.h. */
22771_ACEOF
22772cat confdefs.h >>conftest.$ac_ext
22773cat >>conftest.$ac_ext <<_ACEOF
22774/* end confdefs.h. */
22775#include <stdio.h>
22776int
22777main ()
22778{
22779return fseeko && fseeko (stdin, 0, 0);
22780 ;
22781 return 0;
22782}
22783_ACEOF
22784rm -f conftest.$ac_objext conftest$ac_exeext
22785if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22786 (eval $ac_link) 2>conftest.er1
22787 ac_status=$?
22788 grep -v '^ *+' conftest.er1 >conftest.err
22789 rm -f conftest.er1
22790 cat conftest.err >&5
22791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22792 (exit $ac_status); } &&
479c790c 22793 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5294a27e
VZ
22794 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22795 (eval $ac_try) 2>&5
22796 ac_status=$?
22797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22798 (exit $ac_status); }; } &&
22799 { ac_try='test -s conftest$ac_exeext'
22800 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22801 (eval $ac_try) 2>&5
22802 ac_status=$?
22803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22804 (exit $ac_status); }; }; then
22805 ac_cv_func_fseeko=yes
22806else
22807 echo "$as_me: failed program was:" >&5
22808sed 's/^/| /' conftest.$ac_ext >&5
22809
22810ac_cv_func_fseeko=no
22811fi
22812rm -f conftest.err conftest.$ac_objext \
22813 conftest$ac_exeext conftest.$ac_ext
22814fi
22815echo "$as_me:$LINENO: result: $ac_cv_func_fseeko" >&5
22816echo "${ECHO_T}$ac_cv_func_fseeko" >&6
22817if test $ac_cv_func_fseeko = yes; then
22818
22819cat >>confdefs.h <<\_ACEOF
22820#define HAVE_FSEEKO 1
22821_ACEOF
22822
22823fi
22824
5b674b9d 22825 if test "$ac_cv_sys_largefile_source" != no; then
5ff751d6 22826 WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS -D_LARGEFILE_SOURCE=$ac_cv_sys_largefile_source"
a848cd7e 22827 fi
a848cd7e
SC
22828fi
22829
22830echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
22831echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
22832if test "${ac_cv_c_bigendian+set}" = set; then
22833 echo $ECHO_N "(cached) $ECHO_C" >&6
22834else
22835 ac_cv_c_bigendian=unknown
22836# See if sys/param.h defines the BYTE_ORDER macro.
22837cat >conftest.$ac_ext <<_ACEOF
22838/* confdefs.h. */
22839_ACEOF
22840cat confdefs.h >>conftest.$ac_ext
22841cat >>conftest.$ac_ext <<_ACEOF
22842/* end confdefs.h. */
22843#include <sys/types.h>
22844#include <sys/param.h>
22845int
22846main ()
22847{
22848
22849#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
22850 bogus endian macros
22851#endif
22852 ;
22853 return 0;
22854}
22855_ACEOF
22856rm -f conftest.$ac_objext
22857if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 22858 (eval $ac_compile) 2>conftest.er1
a848cd7e 22859 ac_status=$?
ac1cb8d3
VS
22860 grep -v '^ *+' conftest.er1 >conftest.err
22861 rm -f conftest.er1
22862 cat conftest.err >&5
a848cd7e
SC
22863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22864 (exit $ac_status); } &&
479c790c 22865 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
22866 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22867 (eval $ac_try) 2>&5
22868 ac_status=$?
22869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22870 (exit $ac_status); }; } &&
22871 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
22872 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22873 (eval $ac_try) 2>&5
22874 ac_status=$?
22875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22876 (exit $ac_status); }; }; then
22877 # It does; now see whether it defined to BIG_ENDIAN or not.
22878cat >conftest.$ac_ext <<_ACEOF
22879/* confdefs.h. */
22880_ACEOF
22881cat confdefs.h >>conftest.$ac_ext
22882cat >>conftest.$ac_ext <<_ACEOF
22883/* end confdefs.h. */
22884#include <sys/types.h>
22885#include <sys/param.h>
22886int
22887main ()
22888{
22889
22890#if BYTE_ORDER != BIG_ENDIAN
22891 not big endian
22892#endif
22893 ;
22894 return 0;
22895}
22896_ACEOF
22897rm -f conftest.$ac_objext
22898if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 22899 (eval $ac_compile) 2>conftest.er1
a848cd7e 22900 ac_status=$?
ac1cb8d3
VS
22901 grep -v '^ *+' conftest.er1 >conftest.err
22902 rm -f conftest.er1
22903 cat conftest.err >&5
a848cd7e
SC
22904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22905 (exit $ac_status); } &&
479c790c 22906 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
22907 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22908 (eval $ac_try) 2>&5
22909 ac_status=$?
22910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22911 (exit $ac_status); }; } &&
22912 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
22913 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22914 (eval $ac_try) 2>&5
22915 ac_status=$?
22916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22917 (exit $ac_status); }; }; then
22918 ac_cv_c_bigendian=yes
22919else
22920 echo "$as_me: failed program was:" >&5
22921sed 's/^/| /' conftest.$ac_ext >&5
22922
22923ac_cv_c_bigendian=no
22924fi
ac1cb8d3 22925rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
22926else
22927 echo "$as_me: failed program was:" >&5
22928sed 's/^/| /' conftest.$ac_ext >&5
22929
22930fi
ac1cb8d3 22931rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
22932if test $ac_cv_c_bigendian = unknown; then
22933if test "$cross_compiling" = yes; then
22934 ac_cv_c_bigendian=unknown
22935else
22936 cat >conftest.$ac_ext <<_ACEOF
22937/* confdefs.h. */
22938_ACEOF
22939cat confdefs.h >>conftest.$ac_ext
22940cat >>conftest.$ac_ext <<_ACEOF
22941/* end confdefs.h. */
22942main () {
22943 /* Are we little or big endian? From Harbison&Steele. */
22944 union
22945 {
22946 long l;
22947 char c[sizeof (long)];
22948 } u;
22949 u.l = 1;
22950 exit (u.c[sizeof (long) - 1] == 1);
22951}
22952_ACEOF
22953rm -f conftest$ac_exeext
22954if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22955 (eval $ac_link) 2>&5
22956 ac_status=$?
22957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22958 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22959 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22960 (eval $ac_try) 2>&5
22961 ac_status=$?
22962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22963 (exit $ac_status); }; }; then
22964 ac_cv_c_bigendian=no
22965else
22966 echo "$as_me: program exited with status $ac_status" >&5
22967echo "$as_me: failed program was:" >&5
22968sed 's/^/| /' conftest.$ac_ext >&5
22969
22970( exit $ac_status )
22971ac_cv_c_bigendian=yes
22972fi
ac1cb8d3 22973rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
22974fi
22975fi
22976fi
22977echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
22978echo "${ECHO_T}$ac_cv_c_bigendian" >&6
22979if test $ac_cv_c_bigendian = unknown; then
22980 { 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
22981echo "$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;}
22982fi
22983if test $ac_cv_c_bigendian = yes; then
22984 cat >>confdefs.h <<\_ACEOF
22985#define WORDS_BIGENDIAN 1
22986_ACEOF
22987
22988fi
22989
22990
a848cd7e
SC
22991
22992
22993
22994 ac_ext=cc
22995ac_cpp='$CXXCPP $CPPFLAGS'
22996ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22997ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22998ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22999
23000
23001
23002for ac_header in iostream
23003do
23004as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
23005if eval "test \"\${$as_ac_Header+set}\" = set"; then
23006 echo "$as_me:$LINENO: checking for $ac_header" >&5
23007echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
23008if eval "test \"\${$as_ac_Header+set}\" = set"; then
23009 echo $ECHO_N "(cached) $ECHO_C" >&6
23010fi
23011echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
23012echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
23013else
23014 # Is the header compilable?
23015echo "$as_me:$LINENO: checking $ac_header usability" >&5
23016echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
23017cat >conftest.$ac_ext <<_ACEOF
23018/* confdefs.h. */
23019_ACEOF
23020cat confdefs.h >>conftest.$ac_ext
23021cat >>conftest.$ac_ext <<_ACEOF
23022/* end confdefs.h. */
23023$ac_includes_default
23024#include <$ac_header>
23025_ACEOF
23026rm -f conftest.$ac_objext
23027if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 23028 (eval $ac_compile) 2>conftest.er1
a848cd7e 23029 ac_status=$?
ac1cb8d3
VS
23030 grep -v '^ *+' conftest.er1 >conftest.err
23031 rm -f conftest.er1
23032 cat conftest.err >&5
a848cd7e
SC
23033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23034 (exit $ac_status); } &&
479c790c 23035 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
23036 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23037 (eval $ac_try) 2>&5
23038 ac_status=$?
23039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23040 (exit $ac_status); }; } &&
23041 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
23042 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23043 (eval $ac_try) 2>&5
23044 ac_status=$?
23045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23046 (exit $ac_status); }; }; then
23047 ac_header_compiler=yes
23048else
23049 echo "$as_me: failed program was:" >&5
23050sed 's/^/| /' conftest.$ac_ext >&5
23051
23052ac_header_compiler=no
23053fi
ac1cb8d3 23054rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
23055echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23056echo "${ECHO_T}$ac_header_compiler" >&6
23057
23058# Is the header present?
23059echo "$as_me:$LINENO: checking $ac_header presence" >&5
23060echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
23061cat >conftest.$ac_ext <<_ACEOF
23062/* confdefs.h. */
23063_ACEOF
23064cat confdefs.h >>conftest.$ac_ext
23065cat >>conftest.$ac_ext <<_ACEOF
23066/* end confdefs.h. */
23067#include <$ac_header>
23068_ACEOF
23069if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
23070 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
23071 ac_status=$?
23072 grep -v '^ *+' conftest.er1 >conftest.err
23073 rm -f conftest.er1
23074 cat conftest.err >&5
23075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23076 (exit $ac_status); } >/dev/null; then
23077 if test -s conftest.err; then
23078 ac_cpp_err=$ac_cxx_preproc_warn_flag
ac1cb8d3 23079 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
23080 else
23081 ac_cpp_err=
23082 fi
23083else
23084 ac_cpp_err=yes
23085fi
23086if test -z "$ac_cpp_err"; then
23087 ac_header_preproc=yes
23088else
23089 echo "$as_me: failed program was:" >&5
23090sed 's/^/| /' conftest.$ac_ext >&5
23091
23092 ac_header_preproc=no
23093fi
23094rm -f conftest.err conftest.$ac_ext
23095echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23096echo "${ECHO_T}$ac_header_preproc" >&6
23097
23098# So? What about this header?
ac1cb8d3
VS
23099case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
23100 yes:no: )
a848cd7e
SC
23101 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23102echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
23103 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23104echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23105 ac_header_preproc=yes
a848cd7e 23106 ;;
ac1cb8d3 23107 no:yes:* )
a848cd7e
SC
23108 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23109echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
23110 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
23111echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
23112 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23113echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23114 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
23115echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
23116 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23117echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
23118 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23119echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
23120 (
23121 cat <<\_ASBOX
ac1cb8d3
VS
23122## ----------------------------------------- ##
23123## Report this to wx-dev@lists.wxwidgets.org ##
23124## ----------------------------------------- ##
a848cd7e
SC
23125_ASBOX
23126 ) |
23127 sed "s/^/$as_me: WARNING: /" >&2
23128 ;;
23129esac
23130echo "$as_me:$LINENO: checking for $ac_header" >&5
23131echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
23132if eval "test \"\${$as_ac_Header+set}\" = set"; then
23133 echo $ECHO_N "(cached) $ECHO_C" >&6
23134else
ac1cb8d3 23135 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
23136fi
23137echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
23138echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
23139
23140fi
23141if test `eval echo '${'$as_ac_Header'}'` = yes; then
23142 cat >>confdefs.h <<_ACEOF
23143#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
23144_ACEOF
23145
23146fi
23147
23148done
23149
23150
23151 if test "$ac_cv_header_iostream" = "yes" ; then
23152 :
23153 else
23154 cat >>confdefs.h <<\_ACEOF
23155#define wxUSE_IOSTREAMH 1
23156_ACEOF
23157
23158 fi
23159
5d7b7554
VZ
23160 ac_ext=cc
23161ac_cpp='$CXXCPP $CPPFLAGS'
23162ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23163ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23164ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
a848cd7e
SC
23165
23166
23167
23168
23169 echo "$as_me:$LINENO: checking if C++ compiler supports bool" >&5
23170echo $ECHO_N "checking if C++ compiler supports bool... $ECHO_C" >&6
23171if test "${wx_cv_cpp_bool+set}" = set; then
23172 echo $ECHO_N "(cached) $ECHO_C" >&6
23173else
23174
23175
23176
23177 ac_ext=cc
23178ac_cpp='$CXXCPP $CPPFLAGS'
23179ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23180ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23181ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23182
23183
23184 cat >conftest.$ac_ext <<_ACEOF
23185/* confdefs.h. */
23186_ACEOF
23187cat confdefs.h >>conftest.$ac_ext
23188cat >>conftest.$ac_ext <<_ACEOF
23189/* end confdefs.h. */
23190
23191
23192int
23193main ()
23194{
23195
23196 bool b = true;
23197
23198 return 0;
23199
23200 ;
23201 return 0;
23202}
23203_ACEOF
23204rm -f conftest.$ac_objext
23205if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 23206 (eval $ac_compile) 2>conftest.er1
a848cd7e 23207 ac_status=$?
ac1cb8d3
VS
23208 grep -v '^ *+' conftest.er1 >conftest.err
23209 rm -f conftest.er1
23210 cat conftest.err >&5
a848cd7e
SC
23211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23212 (exit $ac_status); } &&
479c790c 23213 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
23214 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23215 (eval $ac_try) 2>&5
23216 ac_status=$?
23217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23218 (exit $ac_status); }; } &&
23219 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
23220 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23221 (eval $ac_try) 2>&5
23222 ac_status=$?
23223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23224 (exit $ac_status); }; }; then
23225
23226 wx_cv_cpp_bool=yes
23227
23228else
23229 echo "$as_me: failed program was:" >&5
23230sed 's/^/| /' conftest.$ac_ext >&5
23231
23232
23233 wx_cv_cpp_bool=no
23234
23235
23236fi
ac1cb8d3 23237rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 23238
5d7b7554
VZ
23239 ac_ext=cc
23240ac_cpp='$CXXCPP $CPPFLAGS'
23241ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23242ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23243ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
a848cd7e
SC
23244
23245
23246fi
23247echo "$as_me:$LINENO: result: $wx_cv_cpp_bool" >&5
23248echo "${ECHO_T}$wx_cv_cpp_bool" >&6
23249
23250 if test "$wx_cv_cpp_bool" = "yes"; then
23251 cat >>confdefs.h <<\_ACEOF
23252#define HAVE_BOOL 1
23253_ACEOF
23254
23255 fi
23256
23257
23258
23259 echo "$as_me:$LINENO: checking if C++ compiler supports the explicit keyword" >&5
23260echo $ECHO_N "checking if C++ compiler supports the explicit keyword... $ECHO_C" >&6
23261if test "${wx_cv_explicit+set}" = set; then
23262 echo $ECHO_N "(cached) $ECHO_C" >&6
23263else
23264
23265
23266
23267 ac_ext=cc
23268ac_cpp='$CXXCPP $CPPFLAGS'
23269ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23270ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23271ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23272
23273
23274 cat >conftest.$ac_ext <<_ACEOF
23275/* confdefs.h. */
23276_ACEOF
23277cat confdefs.h >>conftest.$ac_ext
23278cat >>conftest.$ac_ext <<_ACEOF
23279/* end confdefs.h. */
23280
23281 class Foo { public: explicit Foo(int) {} };
23282
23283int
23284main ()
23285{
23286
23287 return 0;
23288
23289 ;
23290 return 0;
23291}
23292_ACEOF
23293rm -f conftest.$ac_objext
23294if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 23295 (eval $ac_compile) 2>conftest.er1
a848cd7e 23296 ac_status=$?
ac1cb8d3
VS
23297 grep -v '^ *+' conftest.er1 >conftest.err
23298 rm -f conftest.er1
23299 cat conftest.err >&5
a848cd7e
SC
23300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23301 (exit $ac_status); } &&
479c790c 23302 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
23303 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23304 (eval $ac_try) 2>&5
23305 ac_status=$?
23306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23307 (exit $ac_status); }; } &&
23308 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
23309 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23310 (eval $ac_try) 2>&5
23311 ac_status=$?
23312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23313 (exit $ac_status); }; }; then
23314
23315 cat >conftest.$ac_ext <<_ACEOF
23316/* confdefs.h. */
23317_ACEOF
23318cat confdefs.h >>conftest.$ac_ext
23319cat >>conftest.$ac_ext <<_ACEOF
23320/* end confdefs.h. */
23321
23322 class Foo { public: explicit Foo(int) {} };
23323 static void TakeFoo(const Foo& foo) { }
23324
23325int
23326main ()
23327{
23328
23329 TakeFoo(17);
23330 return 0;
23331
23332 ;
23333 return 0;
23334}
23335_ACEOF
23336rm -f conftest.$ac_objext
23337if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 23338 (eval $ac_compile) 2>conftest.er1
a848cd7e 23339 ac_status=$?
ac1cb8d3
VS
23340 grep -v '^ *+' conftest.er1 >conftest.err
23341 rm -f conftest.er1
23342 cat conftest.err >&5
a848cd7e
SC
23343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23344 (exit $ac_status); } &&
479c790c 23345 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
23346 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23347 (eval $ac_try) 2>&5
23348 ac_status=$?
23349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23350 (exit $ac_status); }; } &&
23351 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
23352 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23353 (eval $ac_try) 2>&5
23354 ac_status=$?
23355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23356 (exit $ac_status); }; }; then
23357 wx_cv_explicit=no
23358else
23359 echo "$as_me: failed program was:" >&5
23360sed 's/^/| /' conftest.$ac_ext >&5
23361
23362wx_cv_explicit=yes
23363
23364fi
ac1cb8d3 23365rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
23366
23367else
23368 echo "$as_me: failed program was:" >&5
23369sed 's/^/| /' conftest.$ac_ext >&5
23370
23371wx_cv_explicit=no
23372
23373fi
ac1cb8d3 23374rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 23375
5d7b7554
VZ
23376 ac_ext=cc
23377ac_cpp='$CXXCPP $CPPFLAGS'
23378ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23379ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23380ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
a848cd7e
SC
23381
23382
23383fi
23384echo "$as_me:$LINENO: result: $wx_cv_explicit" >&5
23385echo "${ECHO_T}$wx_cv_explicit" >&6
23386
23387 if test "$wx_cv_explicit" = "yes"; then
23388 cat >>confdefs.h <<\_ACEOF
23389#define HAVE_EXPLICIT 1
23390_ACEOF
23391
23392 fi
23393
23394
23395echo "$as_me:$LINENO: checking whether the compiler supports const_cast<>" >&5
23396echo $ECHO_N "checking whether the compiler supports const_cast<>... $ECHO_C" >&6
23397if test "${ac_cv_cxx_const_cast+set}" = set; then
23398 echo $ECHO_N "(cached) $ECHO_C" >&6
23399else
23400
23401
23402 ac_ext=cc
23403ac_cpp='$CXXCPP $CPPFLAGS'
23404ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23405ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23406ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23407
23408 cat >conftest.$ac_ext <<_ACEOF
23409/* confdefs.h. */
23410_ACEOF
23411cat confdefs.h >>conftest.$ac_ext
23412cat >>conftest.$ac_ext <<_ACEOF
23413/* end confdefs.h. */
23414
23415int
23416main ()
23417{
23418int x = 0;const int& y = x;int& z = const_cast<int&>(y);return z;
23419 ;
23420 return 0;
23421}
23422_ACEOF
23423rm -f conftest.$ac_objext
23424if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 23425 (eval $ac_compile) 2>conftest.er1
a848cd7e 23426 ac_status=$?
ac1cb8d3
VS
23427 grep -v '^ *+' conftest.er1 >conftest.err
23428 rm -f conftest.er1
23429 cat conftest.err >&5
a848cd7e
SC
23430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23431 (exit $ac_status); } &&
479c790c 23432 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
23433 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23434 (eval $ac_try) 2>&5
23435 ac_status=$?
23436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23437 (exit $ac_status); }; } &&
23438 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
23439 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23440 (eval $ac_try) 2>&5
23441 ac_status=$?
23442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23443 (exit $ac_status); }; }; then
23444 ac_cv_cxx_const_cast=yes
23445else
23446 echo "$as_me: failed program was:" >&5
23447sed 's/^/| /' conftest.$ac_ext >&5
23448
23449ac_cv_cxx_const_cast=no
23450fi
ac1cb8d3 23451rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5d7b7554
VZ
23452 ac_ext=cc
23453ac_cpp='$CXXCPP $CPPFLAGS'
23454ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23455ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23456ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
a848cd7e
SC
23457
23458
23459fi
23460echo "$as_me:$LINENO: result: $ac_cv_cxx_const_cast" >&5
23461echo "${ECHO_T}$ac_cv_cxx_const_cast" >&6
23462if test "$ac_cv_cxx_const_cast" = yes; then
23463
23464cat >>confdefs.h <<\_ACEOF
23465#define HAVE_CONST_CAST
23466_ACEOF
23467
23468fi
23469
7714864e
RL
23470echo "$as_me:$LINENO: checking whether the compiler supports reinterpret_cast<>" >&5
23471echo $ECHO_N "checking whether the compiler supports reinterpret_cast<>... $ECHO_C" >&6
23472if test "${ac_cv_cxx_reinterpret_cast+set}" = set; then
23473 echo $ECHO_N "(cached) $ECHO_C" >&6
23474else
23475
23476
23477 ac_ext=cc
23478ac_cpp='$CXXCPP $CPPFLAGS'
23479ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23480ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23481ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23482
23483 cat >conftest.$ac_ext <<_ACEOF
23484/* confdefs.h. */
23485_ACEOF
23486cat confdefs.h >>conftest.$ac_ext
23487cat >>conftest.$ac_ext <<_ACEOF
23488/* end confdefs.h. */
23489#include <typeinfo>
23490class Base { public : Base () {} virtual void f () = 0;};
23491class Derived : public Base { public : Derived () {} virtual void f () {} };
23492class Unrelated { public : Unrelated () {} };
23493int g (Unrelated&) { return 0; }
23494int
23495main ()
23496{
23497
23498Derived d;Base& b=d;Unrelated& e=reinterpret_cast<Unrelated&>(b);return g(e);
23499 ;
23500 return 0;
23501}
23502_ACEOF
23503rm -f conftest.$ac_objext
23504if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23505 (eval $ac_compile) 2>conftest.er1
23506 ac_status=$?
23507 grep -v '^ *+' conftest.er1 >conftest.err
23508 rm -f conftest.er1
23509 cat conftest.err >&5
23510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23511 (exit $ac_status); } &&
479c790c 23512 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
7714864e
RL
23513 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23514 (eval $ac_try) 2>&5
23515 ac_status=$?
23516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23517 (exit $ac_status); }; } &&
23518 { ac_try='test -s conftest.$ac_objext'
23519 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23520 (eval $ac_try) 2>&5
23521 ac_status=$?
23522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23523 (exit $ac_status); }; }; then
23524 ac_cv_cxx_reinterpret_cast=yes
23525else
23526 echo "$as_me: failed program was:" >&5
23527sed 's/^/| /' conftest.$ac_ext >&5
23528
23529ac_cv_cxx_reinterpret_cast=no
23530fi
23531rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5d7b7554
VZ
23532 ac_ext=cc
23533ac_cpp='$CXXCPP $CPPFLAGS'
23534ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23535ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23536ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7714864e
RL
23537
23538
23539fi
23540echo "$as_me:$LINENO: result: $ac_cv_cxx_reinterpret_cast" >&5
23541echo "${ECHO_T}$ac_cv_cxx_reinterpret_cast" >&6
23542if test "$ac_cv_cxx_reinterpret_cast" = yes; then
23543
23544cat >>confdefs.h <<\_ACEOF
23545#define HAVE_REINTERPRET_CAST
23546_ACEOF
23547
23548fi
23549
a848cd7e
SC
23550echo "$as_me:$LINENO: checking whether the compiler supports static_cast<>" >&5
23551echo $ECHO_N "checking whether the compiler supports static_cast<>... $ECHO_C" >&6
23552if test "${ac_cv_cxx_static_cast+set}" = set; then
23553 echo $ECHO_N "(cached) $ECHO_C" >&6
23554else
23555
23556
23557 ac_ext=cc
23558ac_cpp='$CXXCPP $CPPFLAGS'
23559ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23560ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23561ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23562
23563 cat >conftest.$ac_ext <<_ACEOF
23564/* confdefs.h. */
23565_ACEOF
23566cat confdefs.h >>conftest.$ac_ext
23567cat >>conftest.$ac_ext <<_ACEOF
23568/* end confdefs.h. */
23569#include <typeinfo>
23570class Base { public : Base () {} virtual void f () = 0; };
23571class Derived : public Base { public : Derived () {} virtual void f () {} };
23572int g (Derived&) { return 0; }
23573int
23574main ()
23575{
23576
23577Derived d; Base& b = d; Derived& s = static_cast<Derived&> (b); return g (s);
23578 ;
23579 return 0;
23580}
23581_ACEOF
23582rm -f conftest.$ac_objext
23583if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 23584 (eval $ac_compile) 2>conftest.er1
a848cd7e 23585 ac_status=$?
ac1cb8d3
VS
23586 grep -v '^ *+' conftest.er1 >conftest.err
23587 rm -f conftest.er1
23588 cat conftest.err >&5
a848cd7e
SC
23589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23590 (exit $ac_status); } &&
479c790c 23591 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
23592 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23593 (eval $ac_try) 2>&5
23594 ac_status=$?
23595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23596 (exit $ac_status); }; } &&
23597 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
23598 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23599 (eval $ac_try) 2>&5
23600 ac_status=$?
23601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23602 (exit $ac_status); }; }; then
23603 ac_cv_cxx_static_cast=yes
23604else
23605 echo "$as_me: failed program was:" >&5
23606sed 's/^/| /' conftest.$ac_ext >&5
23607
23608ac_cv_cxx_static_cast=no
23609fi
ac1cb8d3 23610rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5d7b7554
VZ
23611 ac_ext=cc
23612ac_cpp='$CXXCPP $CPPFLAGS'
23613ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23614ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23615ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
a848cd7e
SC
23616
23617
23618fi
23619echo "$as_me:$LINENO: result: $ac_cv_cxx_static_cast" >&5
23620echo "${ECHO_T}$ac_cv_cxx_static_cast" >&6
23621if test "$ac_cv_cxx_static_cast" = yes; then
23622
23623cat >>confdefs.h <<\_ACEOF
23624#define HAVE_STATIC_CAST
23625_ACEOF
23626
23627fi
23628
23629
3c28b7cb 23630if test "x$SUNCXX" = xyes; then
c92ad099 23631 CXXFLAGS="-features=tmplife $CXXFLAGS"
3c28b7cb
MW
23632fi
23633
9122d155 23634if test "x$SUNCC" = xyes; then
c92ad099 23635 CFLAGS="-erroff=E_NO_EXPLICIT_TYPE_GIVEN $CFLAGS"
9122d155
VZ
23636fi
23637
0ad5d837 23638if test "x$SGICC" = "xyes"; then
c92ad099 23639 CFLAGS="-woff 3970 $CFLAGS"
0ad5d837
VZ
23640fi
23641if test "x$SGICXX" = "xyes"; then
c92ad099 23642 CXXFLAGS="-woff 3970 $CXXFLAGS"
0ad5d837
VZ
23643fi
23644
2eef8513 23645if test "x$HPCC" = "xyes"; then
c92ad099 23646 CFLAGS="+W 2011,2450 $CFLAGS"
2eef8513
VZ
23647fi
23648if test "x$HPCXX" = "xyes"; then
c92ad099 23649 CXXFLAGS="+W 2340 $CXXFLAGS"
2eef8513
VZ
23650fi
23651
23652if test "x$COMPAQCXX" = "xyes"; then
23653 CXXFLAGS="-w0 -msg_disable basclsnondto,unrimpret,intconlosbit"
23654fi
23655
f56c22b4 23656if test "$wxUSE_STD_STRING" = "yes" -o "$wxUSE_STL" = "yes"; then
f56c22b4
MW
23657 if test "$wxUSE_UNICODE" = "yes"; then
23658 std_string="std::wstring"
23659 char_type="wchar_t"
23660 else
23661 std_string="std::string"
23662 char_type="char"
23663 fi
23664
23665 echo "$as_me:$LINENO: checking for $std_string in <string>" >&5
23666echo $ECHO_N "checking for $std_string in <string>... $ECHO_C" >&6
a848cd7e
SC
23667 cat >conftest.$ac_ext <<_ACEOF
23668/* confdefs.h. */
23669_ACEOF
23670cat confdefs.h >>conftest.$ac_ext
23671cat >>conftest.$ac_ext <<_ACEOF
23672/* end confdefs.h. */
23673#include <string>
a848cd7e
SC
23674int
23675main ()
23676{
f56c22b4 23677$std_string foo;
a848cd7e
SC
23678 ;
23679 return 0;
23680}
23681_ACEOF
23682rm -f conftest.$ac_objext
23683if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 23684 (eval $ac_compile) 2>conftest.er1
a848cd7e 23685 ac_status=$?
ac1cb8d3
VS
23686 grep -v '^ *+' conftest.er1 >conftest.err
23687 rm -f conftest.er1
23688 cat conftest.err >&5
a848cd7e
SC
23689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23690 (exit $ac_status); } &&
479c790c 23691 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
23692 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23693 (eval $ac_try) 2>&5
23694 ac_status=$?
23695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23696 (exit $ac_status); }; } &&
23697 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
23698 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23699 (eval $ac_try) 2>&5
23700 ac_status=$?
23701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23702 (exit $ac_status); }; }; then
23703 echo "$as_me:$LINENO: result: yes" >&5
23704echo "${ECHO_T}yes" >&6
0a08f02a
MB
23705 cat >>confdefs.h <<\_ACEOF
23706#define HAVE_STD_WSTRING 1
23707_ACEOF
23708
a848cd7e
SC
23709else
23710 echo "$as_me: failed program was:" >&5
23711sed 's/^/| /' conftest.$ac_ext >&5
23712
23713echo "$as_me:$LINENO: result: no" >&5
23714echo "${ECHO_T}no" >&6
f56c22b4
MW
23715 echo "$as_me:$LINENO: checking if std::basic_string<$char_type> works" >&5
23716echo $ECHO_N "checking if std::basic_string<$char_type> works... $ECHO_C" >&6
0a08f02a
MB
23717 cat >conftest.$ac_ext <<_ACEOF
23718/* confdefs.h. */
23719_ACEOF
23720cat confdefs.h >>conftest.$ac_ext
23721cat >>conftest.$ac_ext <<_ACEOF
23722/* end confdefs.h. */
23723
23724 #ifdef HAVE_WCHAR_H
23725 # ifdef __CYGWIN__
23726 # include <stddef.h>
23727 # endif
23728 # include <wchar.h>
23729 #endif
23730 #ifdef HAVE_STDLIB_H
23731 # include <stdlib.h>
23732 #endif
23733 #include <stdio.h>
23734 #include <string>
23735
23736int
23737main ()
23738{
f56c22b4
MW
23739std::basic_string<$char_type> foo;
23740 const $char_type* dummy = foo.c_str();
0a08f02a
MB
23741 ;
23742 return 0;
23743}
23744_ACEOF
23745rm -f conftest.$ac_objext
23746if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23747 (eval $ac_compile) 2>conftest.er1
23748 ac_status=$?
23749 grep -v '^ *+' conftest.er1 >conftest.err
23750 rm -f conftest.er1
23751 cat conftest.err >&5
23752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23753 (exit $ac_status); } &&
479c790c 23754 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
0a08f02a
MB
23755 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23756 (eval $ac_try) 2>&5
23757 ac_status=$?
23758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23759 (exit $ac_status); }; } &&
23760 { ac_try='test -s conftest.$ac_objext'
23761 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23762 (eval $ac_try) 2>&5
23763 ac_status=$?
23764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23765 (exit $ac_status); }; }; then
23766 echo "$as_me:$LINENO: result: yes" >&5
23767echo "${ECHO_T}yes" >&6
23768else
23769 echo "$as_me: failed program was:" >&5
23770sed 's/^/| /' conftest.$ac_ext >&5
23771
23772echo "$as_me:$LINENO: result: no" >&5
23773echo "${ECHO_T}no" >&6
f56c22b4 23774 if test "$wxUSE_STL" = "yes"; then
4b9918c5
MW
23775 { { echo "$as_me:$LINENO: error: Can't use --enable-stl without $std_string or std::basic_string<$char_type>" >&5
23776echo "$as_me: error: Can't use --enable-stl without $std_string or std::basic_string<$char_type>" >&2;}
23777 { (exit 1); exit 1; }; }
23778 elif grep wxUSE_STD_STRING $wx_arg_cache_file >/dev/null; then
23779 { { echo "$as_me:$LINENO: error: Can't use --enable-std_string without $std_string or std::basic_string<$char_type>" >&5
23780echo "$as_me: error: Can't use --enable-std_string without $std_string or std::basic_string<$char_type>" >&2;}
a848cd7e 23781 { (exit 1); exit 1; }; }
f56c22b4
MW
23782 else
23783 { echo "$as_me:$LINENO: WARNING: No $std_string or std::basic_string<$char_type>, switching to --disable-std_string" >&5
23784echo "$as_me: WARNING: No $std_string or std::basic_string<$char_type>, switching to --disable-std_string" >&2;}
23785 wxUSE_STD_STRING=no
23786 fi
23787
0a08f02a 23788
a848cd7e 23789fi
ac1cb8d3 23790rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 23791
0a08f02a
MB
23792fi
23793rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
f56c22b4
MW
23794fi
23795
23796if test "$wxUSE_STD_IOSTREAM" = "yes"; then
f56c22b4
MW
23797 echo "$as_me:$LINENO: checking for std::istream" >&5
23798echo $ECHO_N "checking for std::istream... $ECHO_C" >&6
23799if test "${ac_cv_type_std__istream+set}" = set; then
23800 echo $ECHO_N "(cached) $ECHO_C" >&6
23801else
23802 cat >conftest.$ac_ext <<_ACEOF
23803/* confdefs.h. */
23804_ACEOF
23805cat confdefs.h >>conftest.$ac_ext
23806cat >>conftest.$ac_ext <<_ACEOF
23807/* end confdefs.h. */
23808#include <iostream>
23809
23810int
23811main ()
23812{
23813if ((std::istream *) 0)
23814 return 0;
23815if (sizeof (std::istream))
23816 return 0;
23817 ;
23818 return 0;
23819}
23820_ACEOF
23821rm -f conftest.$ac_objext
23822if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23823 (eval $ac_compile) 2>conftest.er1
23824 ac_status=$?
23825 grep -v '^ *+' conftest.er1 >conftest.err
23826 rm -f conftest.er1
23827 cat conftest.err >&5
23828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23829 (exit $ac_status); } &&
479c790c 23830 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
f56c22b4
MW
23831 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23832 (eval $ac_try) 2>&5
23833 ac_status=$?
23834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23835 (exit $ac_status); }; } &&
23836 { ac_try='test -s conftest.$ac_objext'
23837 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23838 (eval $ac_try) 2>&5
23839 ac_status=$?
23840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23841 (exit $ac_status); }; }; then
23842 ac_cv_type_std__istream=yes
23843else
23844 echo "$as_me: failed program was:" >&5
23845sed 's/^/| /' conftest.$ac_ext >&5
23846
23847ac_cv_type_std__istream=no
23848fi
23849rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23850fi
23851echo "$as_me:$LINENO: result: $ac_cv_type_std__istream" >&5
23852echo "${ECHO_T}$ac_cv_type_std__istream" >&6
23853if test $ac_cv_type_std__istream = yes; then
23854
23855cat >>confdefs.h <<_ACEOF
23856#define HAVE_STD__ISTREAM 1
23857_ACEOF
23858
23859
23860else
23861 wxUSE_STD_IOSTREAM=no
23862fi
23863echo "$as_me:$LINENO: checking for std::ostream" >&5
23864echo $ECHO_N "checking for std::ostream... $ECHO_C" >&6
23865if test "${ac_cv_type_std__ostream+set}" = set; then
23866 echo $ECHO_N "(cached) $ECHO_C" >&6
23867else
23868 cat >conftest.$ac_ext <<_ACEOF
23869/* confdefs.h. */
23870_ACEOF
23871cat confdefs.h >>conftest.$ac_ext
23872cat >>conftest.$ac_ext <<_ACEOF
23873/* end confdefs.h. */
23874#include <iostream>
23875
23876int
23877main ()
23878{
23879if ((std::ostream *) 0)
23880 return 0;
23881if (sizeof (std::ostream))
23882 return 0;
23883 ;
23884 return 0;
23885}
23886_ACEOF
23887rm -f conftest.$ac_objext
23888if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23889 (eval $ac_compile) 2>conftest.er1
23890 ac_status=$?
23891 grep -v '^ *+' conftest.er1 >conftest.err
23892 rm -f conftest.er1
23893 cat conftest.err >&5
23894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23895 (exit $ac_status); } &&
479c790c 23896 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
f56c22b4
MW
23897 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23898 (eval $ac_try) 2>&5
23899 ac_status=$?
23900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23901 (exit $ac_status); }; } &&
23902 { ac_try='test -s conftest.$ac_objext'
23903 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23904 (eval $ac_try) 2>&5
23905 ac_status=$?
23906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23907 (exit $ac_status); }; }; then
23908 ac_cv_type_std__ostream=yes
23909else
23910 echo "$as_me: failed program was:" >&5
23911sed 's/^/| /' conftest.$ac_ext >&5
23912
23913ac_cv_type_std__ostream=no
23914fi
23915rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23916fi
23917echo "$as_me:$LINENO: result: $ac_cv_type_std__ostream" >&5
23918echo "${ECHO_T}$ac_cv_type_std__ostream" >&6
23919if test $ac_cv_type_std__ostream = yes; then
23920
23921cat >>confdefs.h <<_ACEOF
23922#define HAVE_STD__OSTREAM 1
23923_ACEOF
23924
23925
23926else
23927 wxUSE_STD_IOSTREAM=no
23928fi
23929
23930
23931 if test "$wxUSE_STD_IOSTREAM" != "yes"; then
4b9918c5
MW
23932 if grep wxUSE_STD_IOSTREAM $wx_arg_cache_file >/dev/null; then
23933 { { echo "$as_me:$LINENO: error: Can't use --enable-std_iostreams without std::istream and std::ostream" >&5
23934echo "$as_me: error: Can't use --enable-std_iostreams without std::istream and std::ostream" >&2;}
23935 { (exit 1); exit 1; }; }
23936 else
23937 { echo "$as_me:$LINENO: WARNING: No std::iostreams, switching to --disable-std_iostreams" >&5
f56c22b4 23938echo "$as_me: WARNING: No std::iostreams, switching to --disable-std_iostreams" >&2;}
4b9918c5 23939 fi
f56c22b4 23940 fi
0a08f02a
MB
23941fi
23942
23943if test "$wxUSE_STL" = "yes"; then
0a08f02a
MB
23944 echo "$as_me:$LINENO: checking for basic STL functionality" >&5
23945echo $ECHO_N "checking for basic STL functionality... $ECHO_C" >&6
a848cd7e
SC
23946 cat >conftest.$ac_ext <<_ACEOF
23947/* confdefs.h. */
23948_ACEOF
23949cat confdefs.h >>conftest.$ac_ext
23950cat >>conftest.$ac_ext <<_ACEOF
23951/* end confdefs.h. */
23952#include <string>
0a08f02a
MB
23953 #include <functional>
23954 #include <algorithm>
23955 #include <vector>
23956 #include <list>
a848cd7e
SC
23957int
23958main ()
23959{
0a08f02a
MB
23960std::vector<int> moo;
23961 std::list<int> foo;
23962 std::vector<int>::iterator it =
23963 std::find_if(moo.begin(), moo.end(),
23964 std::bind2nd(std::less<int>(), 3));
a848cd7e
SC
23965 ;
23966 return 0;
23967}
23968_ACEOF
23969rm -f conftest.$ac_objext
23970if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 23971 (eval $ac_compile) 2>conftest.er1
a848cd7e 23972 ac_status=$?
ac1cb8d3
VS
23973 grep -v '^ *+' conftest.er1 >conftest.err
23974 rm -f conftest.er1
23975 cat conftest.err >&5
a848cd7e
SC
23976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23977 (exit $ac_status); } &&
479c790c 23978 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
23979 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23980 (eval $ac_try) 2>&5
23981 ac_status=$?
23982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23983 (exit $ac_status); }; } &&
23984 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
23985 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23986 (eval $ac_try) 2>&5
23987 ac_status=$?
23988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23989 (exit $ac_status); }; }; then
23990 echo "$as_me:$LINENO: result: yes" >&5
23991echo "${ECHO_T}yes" >&6
a848cd7e
SC
23992else
23993 echo "$as_me: failed program was:" >&5
23994sed 's/^/| /' conftest.$ac_ext >&5
23995
23996echo "$as_me:$LINENO: result: no" >&5
23997echo "${ECHO_T}no" >&6
0a08f02a
MB
23998 { { echo "$as_me:$LINENO: error: Basic STL functionality missing" >&5
23999echo "$as_me: error: Basic STL functionality missing" >&2;}
24000 { (exit 1); exit 1; }; }
a848cd7e 24001fi
ac1cb8d3 24002rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
24003
24004 echo "$as_me:$LINENO: checking for compliant std::string::compare" >&5
24005echo $ECHO_N "checking for compliant std::string::compare... $ECHO_C" >&6
24006 cat >conftest.$ac_ext <<_ACEOF
24007/* confdefs.h. */
24008_ACEOF
24009cat confdefs.h >>conftest.$ac_ext
24010cat >>conftest.$ac_ext <<_ACEOF
24011/* end confdefs.h. */
24012#include <string>
24013int
24014main ()
24015{
24016std::string foo, bar;
24017 foo.compare(bar);
24018 foo.compare(1, 1, bar);
24019 foo.compare(1, 1, bar, 1, 1);
24020 foo.compare("");
24021 foo.compare(1, 1, "");
24022 foo.compare(1, 1, "", 2);
24023 ;
24024 return 0;
24025}
24026_ACEOF
24027rm -f conftest.$ac_objext
24028if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 24029 (eval $ac_compile) 2>conftest.er1
a848cd7e 24030 ac_status=$?
ac1cb8d3
VS
24031 grep -v '^ *+' conftest.er1 >conftest.err
24032 rm -f conftest.er1
24033 cat conftest.err >&5
a848cd7e
SC
24034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24035 (exit $ac_status); } &&
479c790c 24036 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
24037 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24038 (eval $ac_try) 2>&5
24039 ac_status=$?
24040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24041 (exit $ac_status); }; } &&
24042 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
24043 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24044 (eval $ac_try) 2>&5
24045 ac_status=$?
24046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24047 (exit $ac_status); }; }; then
24048 echo "$as_me:$LINENO: result: yes" >&5
24049echo "${ECHO_T}yes" >&6
24050 cat >>confdefs.h <<\_ACEOF
24051#define HAVE_STD_STRING_COMPARE 1
24052_ACEOF
24053
24054else
24055 echo "$as_me: failed program was:" >&5
24056sed 's/^/| /' conftest.$ac_ext >&5
24057
24058echo "$as_me:$LINENO: result: no" >&5
24059echo "${ECHO_T}no" >&6
24060fi
ac1cb8d3 24061rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bdcade0a
MB
24062
24063 if test "${ac_cv_header_hash_map+set}" = set; then
24064 echo "$as_me:$LINENO: checking for hash_map" >&5
24065echo $ECHO_N "checking for hash_map... $ECHO_C" >&6
24066if test "${ac_cv_header_hash_map+set}" = set; then
24067 echo $ECHO_N "(cached) $ECHO_C" >&6
24068fi
24069echo "$as_me:$LINENO: result: $ac_cv_header_hash_map" >&5
24070echo "${ECHO_T}$ac_cv_header_hash_map" >&6
24071else
24072 # Is the header compilable?
24073echo "$as_me:$LINENO: checking hash_map usability" >&5
24074echo $ECHO_N "checking hash_map usability... $ECHO_C" >&6
24075cat >conftest.$ac_ext <<_ACEOF
24076/* confdefs.h. */
24077_ACEOF
24078cat confdefs.h >>conftest.$ac_ext
24079cat >>conftest.$ac_ext <<_ACEOF
24080/* end confdefs.h. */
24081$ac_includes_default
24082#include <hash_map>
24083_ACEOF
24084rm -f conftest.$ac_objext
24085if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 24086 (eval $ac_compile) 2>conftest.er1
bdcade0a 24087 ac_status=$?
ac1cb8d3
VS
24088 grep -v '^ *+' conftest.er1 >conftest.err
24089 rm -f conftest.er1
24090 cat conftest.err >&5
bdcade0a
MB
24091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24092 (exit $ac_status); } &&
479c790c 24093 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
24094 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24095 (eval $ac_try) 2>&5
24096 ac_status=$?
24097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24098 (exit $ac_status); }; } &&
24099 { ac_try='test -s conftest.$ac_objext'
bdcade0a
MB
24100 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24101 (eval $ac_try) 2>&5
24102 ac_status=$?
24103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24104 (exit $ac_status); }; }; then
24105 ac_header_compiler=yes
24106else
24107 echo "$as_me: failed program was:" >&5
24108sed 's/^/| /' conftest.$ac_ext >&5
24109
24110ac_header_compiler=no
24111fi
ac1cb8d3 24112rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bdcade0a
MB
24113echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24114echo "${ECHO_T}$ac_header_compiler" >&6
24115
24116# Is the header present?
24117echo "$as_me:$LINENO: checking hash_map presence" >&5
24118echo $ECHO_N "checking hash_map presence... $ECHO_C" >&6
24119cat >conftest.$ac_ext <<_ACEOF
24120/* confdefs.h. */
24121_ACEOF
24122cat confdefs.h >>conftest.$ac_ext
24123cat >>conftest.$ac_ext <<_ACEOF
24124/* end confdefs.h. */
24125#include <hash_map>
24126_ACEOF
24127if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
24128 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
24129 ac_status=$?
24130 grep -v '^ *+' conftest.er1 >conftest.err
24131 rm -f conftest.er1
24132 cat conftest.err >&5
24133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24134 (exit $ac_status); } >/dev/null; then
24135 if test -s conftest.err; then
24136 ac_cpp_err=$ac_cxx_preproc_warn_flag
ac1cb8d3 24137 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
bdcade0a
MB
24138 else
24139 ac_cpp_err=
24140 fi
24141else
24142 ac_cpp_err=yes
24143fi
24144if test -z "$ac_cpp_err"; then
24145 ac_header_preproc=yes
24146else
24147 echo "$as_me: failed program was:" >&5
24148sed 's/^/| /' conftest.$ac_ext >&5
24149
24150 ac_header_preproc=no
24151fi
24152rm -f conftest.err conftest.$ac_ext
24153echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24154echo "${ECHO_T}$ac_header_preproc" >&6
24155
24156# So? What about this header?
ac1cb8d3
VS
24157case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
24158 yes:no: )
bdcade0a
MB
24159 { echo "$as_me:$LINENO: WARNING: hash_map: accepted by the compiler, rejected by the preprocessor!" >&5
24160echo "$as_me: WARNING: hash_map: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
24161 { echo "$as_me:$LINENO: WARNING: hash_map: proceeding with the compiler's result" >&5
24162echo "$as_me: WARNING: hash_map: proceeding with the compiler's result" >&2;}
24163 ac_header_preproc=yes
bdcade0a 24164 ;;
ac1cb8d3 24165 no:yes:* )
bdcade0a
MB
24166 { echo "$as_me:$LINENO: WARNING: hash_map: present but cannot be compiled" >&5
24167echo "$as_me: WARNING: hash_map: present but cannot be compiled" >&2;}
ac1cb8d3
VS
24168 { echo "$as_me:$LINENO: WARNING: hash_map: check for missing prerequisite headers?" >&5
24169echo "$as_me: WARNING: hash_map: check for missing prerequisite headers?" >&2;}
24170 { echo "$as_me:$LINENO: WARNING: hash_map: see the Autoconf documentation" >&5
24171echo "$as_me: WARNING: hash_map: see the Autoconf documentation" >&2;}
24172 { echo "$as_me:$LINENO: WARNING: hash_map: section \"Present But Cannot Be Compiled\"" >&5
24173echo "$as_me: WARNING: hash_map: section \"Present But Cannot Be Compiled\"" >&2;}
bdcade0a
MB
24174 { echo "$as_me:$LINENO: WARNING: hash_map: proceeding with the preprocessor's result" >&5
24175echo "$as_me: WARNING: hash_map: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
24176 { echo "$as_me:$LINENO: WARNING: hash_map: in the future, the compiler will take precedence" >&5
24177echo "$as_me: WARNING: hash_map: in the future, the compiler will take precedence" >&2;}
bdcade0a
MB
24178 (
24179 cat <<\_ASBOX
ac1cb8d3
VS
24180## ----------------------------------------- ##
24181## Report this to wx-dev@lists.wxwidgets.org ##
24182## ----------------------------------------- ##
bdcade0a
MB
24183_ASBOX
24184 ) |
24185 sed "s/^/$as_me: WARNING: /" >&2
24186 ;;
24187esac
24188echo "$as_me:$LINENO: checking for hash_map" >&5
24189echo $ECHO_N "checking for hash_map... $ECHO_C" >&6
24190if test "${ac_cv_header_hash_map+set}" = set; then
24191 echo $ECHO_N "(cached) $ECHO_C" >&6
24192else
24193 ac_cv_header_hash_map=$ac_header_preproc
24194fi
24195echo "$as_me:$LINENO: result: $ac_cv_header_hash_map" >&5
24196echo "${ECHO_T}$ac_cv_header_hash_map" >&6
24197
24198fi
24199if test $ac_cv_header_hash_map = yes; then
24200 echo "$as_me:$LINENO: checking for hash_map and hash_set" >&5
24201echo $ECHO_N "checking for hash_map and hash_set... $ECHO_C" >&6
24202 cat >conftest.$ac_ext <<_ACEOF
24203/* confdefs.h. */
24204_ACEOF
24205cat confdefs.h >>conftest.$ac_ext
24206cat >>conftest.$ac_ext <<_ACEOF
24207/* end confdefs.h. */
24208#include <hash_map>
24209 #include <hash_set>
24210int
24211main ()
24212{
24213std::hash_map<double*, char*, std::hash<double*>, std::equal_to<double*> > test1;
24214 std::hash_set<char*, std::hash<char*>, std::equal_to<char*> > test2;
24215 ;
24216 return 0;
24217}
24218_ACEOF
24219rm -f conftest.$ac_objext
24220if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 24221 (eval $ac_compile) 2>conftest.er1
bdcade0a 24222 ac_status=$?
ac1cb8d3
VS
24223 grep -v '^ *+' conftest.er1 >conftest.err
24224 rm -f conftest.er1
24225 cat conftest.err >&5
bdcade0a
MB
24226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24227 (exit $ac_status); } &&
479c790c 24228 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
24229 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24230 (eval $ac_try) 2>&5
24231 ac_status=$?
24232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24233 (exit $ac_status); }; } &&
24234 { ac_try='test -s conftest.$ac_objext'
bdcade0a
MB
24235 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24236 (eval $ac_try) 2>&5
24237 ac_status=$?
24238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24239 (exit $ac_status); }; }; then
24240 echo "$as_me:$LINENO: result: yes" >&5
24241echo "${ECHO_T}yes" >&6
24242 cat >>confdefs.h <<\_ACEOF
24243#define HAVE_HASH_MAP 1
24244_ACEOF
24245
24246 cat >>confdefs.h <<\_ACEOF
24247#define HAVE_STD_HASH_MAP 1
24248_ACEOF
24249
24250else
24251 echo "$as_me: failed program was:" >&5
24252sed 's/^/| /' conftest.$ac_ext >&5
24253
24254echo "$as_me:$LINENO: result: no" >&5
24255echo "${ECHO_T}no" >&6
24256fi
ac1cb8d3 24257rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bdcade0a
MB
24258
24259fi
24260
24261
24262
24263 if test "${ac_cv_header_ext_hash_map+set}" = set; then
24264 echo "$as_me:$LINENO: checking for ext/hash_map" >&5
24265echo $ECHO_N "checking for ext/hash_map... $ECHO_C" >&6
24266if test "${ac_cv_header_ext_hash_map+set}" = set; then
24267 echo $ECHO_N "(cached) $ECHO_C" >&6
24268fi
24269echo "$as_me:$LINENO: result: $ac_cv_header_ext_hash_map" >&5
24270echo "${ECHO_T}$ac_cv_header_ext_hash_map" >&6
24271else
24272 # Is the header compilable?
24273echo "$as_me:$LINENO: checking ext/hash_map usability" >&5
24274echo $ECHO_N "checking ext/hash_map usability... $ECHO_C" >&6
24275cat >conftest.$ac_ext <<_ACEOF
24276/* confdefs.h. */
24277_ACEOF
24278cat confdefs.h >>conftest.$ac_ext
24279cat >>conftest.$ac_ext <<_ACEOF
24280/* end confdefs.h. */
24281$ac_includes_default
24282#include <ext/hash_map>
24283_ACEOF
24284rm -f conftest.$ac_objext
24285if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 24286 (eval $ac_compile) 2>conftest.er1
bdcade0a 24287 ac_status=$?
ac1cb8d3
VS
24288 grep -v '^ *+' conftest.er1 >conftest.err
24289 rm -f conftest.er1
24290 cat conftest.err >&5
bdcade0a
MB
24291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24292 (exit $ac_status); } &&
479c790c 24293 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
24294 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24295 (eval $ac_try) 2>&5
24296 ac_status=$?
24297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24298 (exit $ac_status); }; } &&
24299 { ac_try='test -s conftest.$ac_objext'
bdcade0a
MB
24300 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24301 (eval $ac_try) 2>&5
24302 ac_status=$?
24303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24304 (exit $ac_status); }; }; then
24305 ac_header_compiler=yes
24306else
24307 echo "$as_me: failed program was:" >&5
24308sed 's/^/| /' conftest.$ac_ext >&5
24309
24310ac_header_compiler=no
24311fi
ac1cb8d3 24312rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bdcade0a
MB
24313echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24314echo "${ECHO_T}$ac_header_compiler" >&6
24315
24316# Is the header present?
24317echo "$as_me:$LINENO: checking ext/hash_map presence" >&5
24318echo $ECHO_N "checking ext/hash_map presence... $ECHO_C" >&6
24319cat >conftest.$ac_ext <<_ACEOF
24320/* confdefs.h. */
24321_ACEOF
24322cat confdefs.h >>conftest.$ac_ext
24323cat >>conftest.$ac_ext <<_ACEOF
24324/* end confdefs.h. */
24325#include <ext/hash_map>
24326_ACEOF
24327if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
24328 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
24329 ac_status=$?
24330 grep -v '^ *+' conftest.er1 >conftest.err
24331 rm -f conftest.er1
24332 cat conftest.err >&5
24333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24334 (exit $ac_status); } >/dev/null; then
24335 if test -s conftest.err; then
24336 ac_cpp_err=$ac_cxx_preproc_warn_flag
ac1cb8d3 24337 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
bdcade0a
MB
24338 else
24339 ac_cpp_err=
24340 fi
24341else
24342 ac_cpp_err=yes
24343fi
24344if test -z "$ac_cpp_err"; then
24345 ac_header_preproc=yes
24346else
24347 echo "$as_me: failed program was:" >&5
24348sed 's/^/| /' conftest.$ac_ext >&5
24349
24350 ac_header_preproc=no
24351fi
24352rm -f conftest.err conftest.$ac_ext
24353echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24354echo "${ECHO_T}$ac_header_preproc" >&6
24355
24356# So? What about this header?
ac1cb8d3
VS
24357case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
24358 yes:no: )
bdcade0a
MB
24359 { echo "$as_me:$LINENO: WARNING: ext/hash_map: accepted by the compiler, rejected by the preprocessor!" >&5
24360echo "$as_me: WARNING: ext/hash_map: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
24361 { echo "$as_me:$LINENO: WARNING: ext/hash_map: proceeding with the compiler's result" >&5
24362echo "$as_me: WARNING: ext/hash_map: proceeding with the compiler's result" >&2;}
24363 ac_header_preproc=yes
bdcade0a 24364 ;;
ac1cb8d3 24365 no:yes:* )
bdcade0a
MB
24366 { echo "$as_me:$LINENO: WARNING: ext/hash_map: present but cannot be compiled" >&5
24367echo "$as_me: WARNING: ext/hash_map: present but cannot be compiled" >&2;}
ac1cb8d3
VS
24368 { echo "$as_me:$LINENO: WARNING: ext/hash_map: check for missing prerequisite headers?" >&5
24369echo "$as_me: WARNING: ext/hash_map: check for missing prerequisite headers?" >&2;}
24370 { echo "$as_me:$LINENO: WARNING: ext/hash_map: see the Autoconf documentation" >&5
24371echo "$as_me: WARNING: ext/hash_map: see the Autoconf documentation" >&2;}
24372 { echo "$as_me:$LINENO: WARNING: ext/hash_map: section \"Present But Cannot Be Compiled\"" >&5
24373echo "$as_me: WARNING: ext/hash_map: section \"Present But Cannot Be Compiled\"" >&2;}
bdcade0a
MB
24374 { echo "$as_me:$LINENO: WARNING: ext/hash_map: proceeding with the preprocessor's result" >&5
24375echo "$as_me: WARNING: ext/hash_map: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
24376 { echo "$as_me:$LINENO: WARNING: ext/hash_map: in the future, the compiler will take precedence" >&5
24377echo "$as_me: WARNING: ext/hash_map: in the future, the compiler will take precedence" >&2;}
bdcade0a
MB
24378 (
24379 cat <<\_ASBOX
ac1cb8d3
VS
24380## ----------------------------------------- ##
24381## Report this to wx-dev@lists.wxwidgets.org ##
24382## ----------------------------------------- ##
bdcade0a
MB
24383_ASBOX
24384 ) |
24385 sed "s/^/$as_me: WARNING: /" >&2
24386 ;;
24387esac
24388echo "$as_me:$LINENO: checking for ext/hash_map" >&5
24389echo $ECHO_N "checking for ext/hash_map... $ECHO_C" >&6
24390if test "${ac_cv_header_ext_hash_map+set}" = set; then
24391 echo $ECHO_N "(cached) $ECHO_C" >&6
24392else
24393 ac_cv_header_ext_hash_map=$ac_header_preproc
24394fi
24395echo "$as_me:$LINENO: result: $ac_cv_header_ext_hash_map" >&5
24396echo "${ECHO_T}$ac_cv_header_ext_hash_map" >&6
24397
24398fi
24399if test $ac_cv_header_ext_hash_map = yes; then
24400 echo "$as_me:$LINENO: checking for hash_map and hash_set" >&5
24401echo $ECHO_N "checking for hash_map and hash_set... $ECHO_C" >&6
24402 cat >conftest.$ac_ext <<_ACEOF
24403/* confdefs.h. */
24404_ACEOF
24405cat confdefs.h >>conftest.$ac_ext
24406cat >>conftest.$ac_ext <<_ACEOF
24407/* end confdefs.h. */
24408#include <ext/hash_map>
24409 #include <ext/hash_set>
24410int
24411main ()
24412{
24413__gnu_cxx::hash_map<double*, char*, __gnu_cxx::hash<double*>, std::equal_to<double*> > test1;
24414 __gnu_cxx::hash_set<char*, __gnu_cxx::hash<char*>, std::equal_to<char*> > test2;
24415 ;
24416 return 0;
24417}
24418_ACEOF
24419rm -f conftest.$ac_objext
24420if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 24421 (eval $ac_compile) 2>conftest.er1
bdcade0a 24422 ac_status=$?
ac1cb8d3
VS
24423 grep -v '^ *+' conftest.er1 >conftest.err
24424 rm -f conftest.er1
24425 cat conftest.err >&5
bdcade0a
MB
24426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24427 (exit $ac_status); } &&
479c790c 24428 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
24429 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24430 (eval $ac_try) 2>&5
24431 ac_status=$?
24432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24433 (exit $ac_status); }; } &&
24434 { ac_try='test -s conftest.$ac_objext'
bdcade0a
MB
24435 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24436 (eval $ac_try) 2>&5
24437 ac_status=$?
24438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24439 (exit $ac_status); }; }; then
24440 echo "$as_me:$LINENO: result: yes" >&5
24441echo "${ECHO_T}yes" >&6
24442 cat >>confdefs.h <<\_ACEOF
24443#define HAVE_EXT_HASH_MAP 1
24444_ACEOF
24445
24446 cat >>confdefs.h <<\_ACEOF
24447#define HAVE_GNU_CXX_HASH_MAP 1
24448_ACEOF
24449
24450else
24451 echo "$as_me: failed program was:" >&5
24452sed 's/^/| /' conftest.$ac_ext >&5
24453
24454echo "$as_me:$LINENO: result: no" >&5
24455echo "${ECHO_T}no" >&6
24456fi
ac1cb8d3 24457rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bdcade0a
MB
24458
24459fi
24460
24461
a848cd7e
SC
24462fi
24463
24464
24465SEARCH_INCLUDE="\
24466 /usr/local/include \
24467 \
24468 /usr/Motif-2.1/include \
24469 /usr/Motif-1.2/include \
24470 /usr/include/Motif1.2 \
a848cd7e
SC
24471 \
24472 /usr/dt/include \
24473 /usr/openwin/include \
24474 \
24475 /usr/include/Xm \
24476 \
24477 /usr/X11R6/include \
24478 /usr/X11R6.4/include \
24479 /usr/X11R5/include \
24480 /usr/X11R4/include \
24481 \
24482 /usr/include/X11R6 \
24483 /usr/include/X11R5 \
24484 /usr/include/X11R4 \
24485 \
24486 /usr/local/X11R6/include \
24487 /usr/local/X11R5/include \
24488 /usr/local/X11R4/include \
24489 \
24490 /usr/local/include/X11R6 \
24491 /usr/local/include/X11R5 \
24492 /usr/local/include/X11R4 \
24493 \
24494 /usr/X11/include \
24495 /usr/include/X11 \
24496 /usr/local/X11/include \
24497 /usr/local/include/X11 \
24498 \
a848cd7e 24499 /usr/XFree86/include/X11 \
e051b34e
MW
24500 /usr/pkg/include \
24501 \
a848cd7e
SC
24502 /usr/openwin/share/include"
24503
6f9cf1e6 24504echo "$as_me:$LINENO: checking for libraries directory" >&5
0ad5d837 24505echo $ECHO_N "checking for libraries directory... $ECHO_C" >&6
6f9cf1e6
MW
24506
24507case "${host}" in
24508 *-*-irix6* )
24509 if test "${wx_cv_std_libpath+set}" = set; then
0ad5d837
VZ
24510 echo $ECHO_N "(cached) $ECHO_C" >&6
24511else
24512
c687b303
VZ
24513 for d in /usr/lib /usr/lib32 /usr/lib/64 /usr/lib64; do
24514 for e in a so sl dylib dll.a; do
24515 libc="$d/libc.$e"
24516 if test -f $libc; then
24517 save_LIBS="$LIBS"
24518 LIBS="$libc"
24519 cat >conftest.$ac_ext <<_ACEOF
0ad5d837
VZ
24520int main() { return 0; }
24521_ACEOF
24522rm -f conftest.$ac_objext conftest$ac_exeext
24523if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24524 (eval $ac_link) 2>conftest.er1
24525 ac_status=$?
24526 grep -v '^ *+' conftest.er1 >conftest.err
24527 rm -f conftest.er1
24528 cat conftest.err >&5
24529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24530 (exit $ac_status); } &&
479c790c 24531 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
0ad5d837
VZ
24532 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24533 (eval $ac_try) 2>&5
24534 ac_status=$?
24535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24536 (exit $ac_status); }; } &&
24537 { ac_try='test -s conftest$ac_exeext'
24538 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24539 (eval $ac_try) 2>&5
24540 ac_status=$?
24541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24542 (exit $ac_status); }; }; then
24543 wx_cv_std_libpath=`echo $d | sed s@/usr/@@`
24544else
24545 echo "$as_me: failed program was:" >&5
24546sed 's/^/| /' conftest.$ac_ext >&5
24547
24548fi
24549rm -f conftest.err conftest.$ac_objext \
24550 conftest$ac_exeext conftest.$ac_ext
c687b303
VZ
24551 LIBS="$save_LIBS"
24552 if test "x$wx_cv_std_libpath" != "x"; then
24553 break 2
24554 fi
24555 fi
24556 done
24557 done
24558 if test "x$wx_cv_std_libpath" = "x"; then
24559 wx_cv_std_libpath="lib"
0ad5d837 24560 fi
0ad5d837
VZ
24561
24562
24563fi
6f9cf1e6
MW
24564
24565 ;;
24566
24567 *-*-solaris2* )
24568 if test "$ac_cv_sizeof_void_p" = 8 -a -d "/usr/lib/64"; then
24569 wx_cv_std_libpath="lib/64"
24570 else
24571 wx_cv_std_libpath="lib"
24572 fi
24573 ;;
24574
24575 *-*-linux* )
24576 if test "$ac_cv_sizeof_void_p" = 8 -a \
24577 -d "/usr/lib64" -a ! -h "/usr/lib64"; then
24578 wx_cv_std_libpath="lib64"
24579 else
24580 wx_cv_std_libpath="lib"
24581 fi
c687b303
VZ
24582 ;;
24583
24584 *)
24585 wx_cv_std_libpath="lib";
24586 ;;
24587esac
0ad5d837 24588
6f9cf1e6
MW
24589echo "$as_me:$LINENO: result: $wx_cv_std_libpath" >&5
24590echo "${ECHO_T}$wx_cv_std_libpath" >&6
24591
24592SEARCH_LIB="`echo "$SEARCH_INCLUDE" | sed s@include@$wx_cv_std_libpath@g` /usr/$wx_cv_std_libpath"
a848cd7e 24593
3eca31dc
MW
24594if test "$build" != "$host" -a "$GCC" = yes; then
24595 if cross_root=`$CC -print-prog-name=ld 2>/dev/null`; then
24596 cross_root=`dirname $cross_root`
24597 cross_root=`dirname $cross_root`
24598
24599 SEARCH_LIB=`for x in $SEARCH_LIB; do echo $x; done | sed -ne "s|^/usr|$cross_root|p"`
24600 SEARCH_INCLUDE=`for x in $SEARCH_INCLUDE; do echo $x; done | sed -ne "s|^/usr|$cross_root|p"`
5c60e845 24601 SEARCH_INCLUDE="$SEARCH_INCLUDE $cross_root/include"
3eca31dc
MW
24602
24603 if test -z "$PKG_CONFIG_PATH"; then
24604 PKG_CONFIG_PATH="$cross_root/local/lib/pkgconfig:$cross_root/lib/pkgconfig"
24605 export PKG_CONFIG_PATH
24606 fi
24607
24608 if test -z "$x_includes" -o "$x_includes" = NONE; then
24609
24610ac_find_includes=
24611for ac_dir in $SEARCH_INCLUDE /usr/include;
24612 do
24613 if test -f "$ac_dir/X11/Intrinsic.h"; then
24614 ac_find_includes=$ac_dir
24615 break
24616 fi
24617 done
24618
24619 x_includes=$ac_find_includes
24620 fi
24621 if test -z "$x_libraries" -o "$x_libraries" = NONE; then
24622
0ad5d837
VZ
24623 ac_find_libraries=
24624 for ac_dir in $SEARCH_LIB;
3eca31dc
MW
24625 do
24626 for ac_extension in a so sl dylib dll.a; do
24627 if test -f "$ac_dir/libXt.$ac_extension"; then
24628 ac_find_libraries=$ac_dir
24629 break 2
24630 fi
24631 done
24632 done
24633
24634 x_libraries=$ac_find_libraries
24635 fi
24636 fi
24637fi
24638
a848cd7e
SC
24639
24640cat >confcache <<\_ACEOF
24641# This file is a shell script that caches the results of configure
24642# tests run on this system so they can be shared between configure
24643# scripts and configure runs, see configure's option --config-cache.
24644# It is not useful on other systems. If it contains results you don't
24645# want to keep, you may remove or edit it.
24646#
24647# config.status only pays attention to the cache file if you give it
24648# the --recheck option to rerun configure.
24649#
24650# `ac_cv_env_foo' variables (set or unset) will be overridden when
24651# loading this file, other *unset* `ac_cv_foo' will be assigned the
24652# following values.
24653
24654_ACEOF
24655
24656# The following way of writing the cache mishandles newlines in values,
24657# but we know of no workaround that is simple, portable, and efficient.
24658# So, don't put newlines in cache variables' values.
24659# Ultrix sh set writes to stderr and can't be redirected directly,
24660# and sets the high bit in the cache file unless we assign to the vars.
24661{
24662 (set) 2>&1 |
24663 case `(ac_space=' '; set | grep ac_space) 2>&1` in
24664 *ac_space=\ *)
24665 # `set' does not quote correctly, so add quotes (double-quote
24666 # substitution turns \\\\ into \\, and sed turns \\ into \).
24667 sed -n \
ac1cb8d3
VS
24668 "s/'/'\\\\''/g;
24669 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
a848cd7e
SC
24670 ;;
24671 *)
24672 # `set' quotes correctly as required by POSIX, so do not add quotes.
24673 sed -n \
ac1cb8d3 24674 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
a848cd7e
SC
24675 ;;
24676 esac;
24677} |
24678 sed '
24679 t clear
24680 : clear
24681 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
24682 t end
24683 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
24684 : end' >>confcache
24685if diff $cache_file confcache >/dev/null 2>&1; then :; else
24686 if test -w $cache_file; then
24687 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
24688 cat confcache >$cache_file
24689 else
24690 echo "not updating unwritable cache $cache_file"
24691 fi
24692fi
24693rm -f confcache
24694
24695if test "$USE_LINUX" = 1 -o "$USE_GNU" = 1; then
24696 echo "$as_me:$LINENO: checking for glibc 2.1 or later" >&5
24697echo $ECHO_N "checking for glibc 2.1 or later... $ECHO_C" >&6
24698if test "${wx_cv_lib_glibc21+set}" = set; then
24699 echo $ECHO_N "(cached) $ECHO_C" >&6
24700else
24701
24702 cat >conftest.$ac_ext <<_ACEOF
24703/* confdefs.h. */
24704_ACEOF
24705cat confdefs.h >>conftest.$ac_ext
24706cat >>conftest.$ac_ext <<_ACEOF
24707/* end confdefs.h. */
24708#include <features.h>
24709int
24710main ()
24711{
24712
24713 #if (__GLIBC__ < 2) || (__GLIBC_MINOR__ < 1)
04e525a0 24714 not glibc 2.1
a848cd7e
SC
24715 #endif
24716
24717 ;
24718 return 0;
24719}
24720_ACEOF
24721rm -f conftest.$ac_objext
24722if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 24723 (eval $ac_compile) 2>conftest.er1
a848cd7e 24724 ac_status=$?
ac1cb8d3
VS
24725 grep -v '^ *+' conftest.er1 >conftest.err
24726 rm -f conftest.er1
24727 cat conftest.err >&5
a848cd7e
SC
24728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24729 (exit $ac_status); } &&
479c790c 24730 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
24731 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24732 (eval $ac_try) 2>&5
24733 ac_status=$?
24734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24735 (exit $ac_status); }; } &&
24736 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
24737 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24738 (eval $ac_try) 2>&5
24739 ac_status=$?
24740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24741 (exit $ac_status); }; }; then
24742
24743 wx_cv_lib_glibc21=yes
24744
24745else
24746 echo "$as_me: failed program was:" >&5
24747sed 's/^/| /' conftest.$ac_ext >&5
24748
24749
24750 wx_cv_lib_glibc21=no
24751
24752
24753fi
ac1cb8d3 24754rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
24755
24756fi
24757echo "$as_me:$LINENO: result: $wx_cv_lib_glibc21" >&5
24758echo "${ECHO_T}$wx_cv_lib_glibc21" >&6
24759 if test "$wx_cv_lib_glibc21" = "yes"; then
24760 cat >>confdefs.h <<\_ACEOF
24761#define wxHAVE_GLIBC2 1
24762_ACEOF
24763
24764 fi
24765fi
24766
24767if test "x$wx_cv_lib_glibc21" = "xyes"; then
24768 if test "$wxUSE_UNICODE" = "yes" -o "$wxUSE_THREADS" = "yes"; then
24769 cat >>confdefs.h <<\_ACEOF
24770#define _GNU_SOURCE 1
24771_ACEOF
24772
24773 fi
24774fi
24775
5d7b7554
VZ
24776have_cos=0
24777have_floor=0
a848cd7e 24778
5d7b7554
VZ
24779for ac_func in cos
24780do
24781as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24782echo "$as_me:$LINENO: checking for $ac_func" >&5
24783echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
24784if eval "test \"\${$as_ac_var+set}\" = set"; then
a848cd7e 24785 echo $ECHO_N "(cached) $ECHO_C" >&6
a848cd7e 24786else
5d7b7554 24787 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
24788/* confdefs.h. */
24789_ACEOF
24790cat confdefs.h >>conftest.$ac_ext
24791cat >>conftest.$ac_ext <<_ACEOF
24792/* end confdefs.h. */
5d7b7554
VZ
24793/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24794 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24795#define $ac_func innocuous_$ac_func
24796
24797/* System header to define __stub macros and hopefully few prototypes,
24798 which can conflict with char $ac_func (); below.
24799 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24800 <limits.h> exists even on freestanding compilers. */
24801
24802#ifdef __STDC__
24803# include <limits.h>
24804#else
24805# include <assert.h>
24806#endif
24807
24808#undef $ac_func
24809
24810/* Override any gcc2 internal prototype to avoid an error. */
24811#ifdef __cplusplus
24812extern "C"
24813{
24814#endif
24815/* We use char because int might match the return type of a gcc2
24816 builtin and then its argument prototype would still apply. */
24817char $ac_func ();
24818/* The GNU C library defines this for functions which it implements
24819 to always fail with ENOSYS. Some functions are actually named
24820 something starting with __ and the normal name is an alias. */
24821#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
24822choke me
24823#else
24824char (*f) () = $ac_func;
24825#endif
24826#ifdef __cplusplus
24827}
24828#endif
24829
24830int
24831main ()
24832{
24833return f != $ac_func;
24834 ;
24835 return 0;
24836}
a848cd7e 24837_ACEOF
5d7b7554
VZ
24838rm -f conftest.$ac_objext conftest$ac_exeext
24839if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24840 (eval $ac_link) 2>conftest.er1
a848cd7e 24841 ac_status=$?
ac1cb8d3
VS
24842 grep -v '^ *+' conftest.er1 >conftest.err
24843 rm -f conftest.er1
24844 cat conftest.err >&5
a848cd7e
SC
24845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24846 (exit $ac_status); } &&
479c790c 24847 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
24848 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24849 (eval $ac_try) 2>&5
24850 ac_status=$?
24851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24852 (exit $ac_status); }; } &&
5d7b7554 24853 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
24854 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24855 (eval $ac_try) 2>&5
24856 ac_status=$?
24857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24858 (exit $ac_status); }; }; then
5d7b7554 24859 eval "$as_ac_var=yes"
a848cd7e
SC
24860else
24861 echo "$as_me: failed program was:" >&5
24862sed 's/^/| /' conftest.$ac_ext >&5
24863
5d7b7554 24864eval "$as_ac_var=no"
a848cd7e 24865fi
5d7b7554
VZ
24866rm -f conftest.err conftest.$ac_objext \
24867 conftest$ac_exeext conftest.$ac_ext
a848cd7e 24868fi
5d7b7554
VZ
24869echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
24870echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
24871if test `eval echo '${'$as_ac_var'}'` = yes; then
24872 cat >>confdefs.h <<_ACEOF
24873#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24874_ACEOF
24875 have_cos=1
a848cd7e 24876fi
5d7b7554 24877done
a848cd7e 24878
ab0f0edd 24879
5d7b7554 24880for ac_func in floor
a848cd7e
SC
24881do
24882as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24883echo "$as_me:$LINENO: checking for $ac_func" >&5
24884echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
24885if eval "test \"\${$as_ac_var+set}\" = set"; then
24886 echo $ECHO_N "(cached) $ECHO_C" >&6
24887else
24888 cat >conftest.$ac_ext <<_ACEOF
24889/* confdefs.h. */
24890_ACEOF
24891cat confdefs.h >>conftest.$ac_ext
24892cat >>conftest.$ac_ext <<_ACEOF
24893/* end confdefs.h. */
ac1cb8d3
VS
24894/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24895 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24896#define $ac_func innocuous_$ac_func
24897
a848cd7e
SC
24898/* System header to define __stub macros and hopefully few prototypes,
24899 which can conflict with char $ac_func (); below.
24900 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24901 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 24902
a848cd7e
SC
24903#ifdef __STDC__
24904# include <limits.h>
24905#else
24906# include <assert.h>
24907#endif
ac1cb8d3
VS
24908
24909#undef $ac_func
24910
a848cd7e
SC
24911/* Override any gcc2 internal prototype to avoid an error. */
24912#ifdef __cplusplus
24913extern "C"
24914{
24915#endif
24916/* We use char because int might match the return type of a gcc2
24917 builtin and then its argument prototype would still apply. */
24918char $ac_func ();
24919/* The GNU C library defines this for functions which it implements
24920 to always fail with ENOSYS. Some functions are actually named
24921 something starting with __ and the normal name is an alias. */
24922#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
24923choke me
24924#else
24925char (*f) () = $ac_func;
24926#endif
24927#ifdef __cplusplus
24928}
24929#endif
24930
24931int
24932main ()
24933{
24934return f != $ac_func;
24935 ;
24936 return 0;
24937}
24938_ACEOF
24939rm -f conftest.$ac_objext conftest$ac_exeext
24940if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 24941 (eval $ac_link) 2>conftest.er1
a848cd7e 24942 ac_status=$?
ac1cb8d3
VS
24943 grep -v '^ *+' conftest.er1 >conftest.err
24944 rm -f conftest.er1
24945 cat conftest.err >&5
a848cd7e
SC
24946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24947 (exit $ac_status); } &&
479c790c 24948 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5d7b7554
VZ
24949 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24950 (eval $ac_try) 2>&5
24951 ac_status=$?
24952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24953 (exit $ac_status); }; } &&
24954 { ac_try='test -s conftest$ac_exeext'
24955 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24956 (eval $ac_try) 2>&5
24957 ac_status=$?
24958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24959 (exit $ac_status); }; }; then
24960 eval "$as_ac_var=yes"
24961else
24962 echo "$as_me: failed program was:" >&5
24963sed 's/^/| /' conftest.$ac_ext >&5
24964
24965eval "$as_ac_var=no"
24966fi
24967rm -f conftest.err conftest.$ac_objext \
24968 conftest$ac_exeext conftest.$ac_ext
24969fi
24970echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
24971echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
24972if test `eval echo '${'$as_ac_var'}'` = yes; then
24973 cat >>confdefs.h <<_ACEOF
24974#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24975_ACEOF
24976 have_floor=1
24977fi
24978done
24979
24980echo "$as_me:$LINENO: checking if floating point functions link without -lm" >&5
24981echo $ECHO_N "checking if floating point functions link without -lm... $ECHO_C" >&6
24982if test "$have_cos" = 1 -a "$have_floor" = 1; then
24983 echo "$as_me:$LINENO: result: yes" >&5
24984echo "${ECHO_T}yes" >&6
24985else
24986 echo "$as_me:$LINENO: result: no" >&5
24987echo "${ECHO_T}no" >&6
24988 LIBS="$LIBS -lm"
24989 # use different functions to avoid configure caching
24990 have_sin=0
24991 have_ceil=0
24992
24993for ac_func in sin
24994do
24995as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24996echo "$as_me:$LINENO: checking for $ac_func" >&5
24997echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
24998if eval "test \"\${$as_ac_var+set}\" = set"; then
24999 echo $ECHO_N "(cached) $ECHO_C" >&6
25000else
25001 cat >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/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25008 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25009#define $ac_func innocuous_$ac_func
25010
25011/* System header to define __stub macros and hopefully few prototypes,
25012 which can conflict with char $ac_func (); below.
25013 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25014 <limits.h> exists even on freestanding compilers. */
25015
25016#ifdef __STDC__
25017# include <limits.h>
25018#else
25019# include <assert.h>
25020#endif
25021
25022#undef $ac_func
25023
25024/* Override any gcc2 internal prototype to avoid an error. */
25025#ifdef __cplusplus
25026extern "C"
25027{
25028#endif
25029/* We use char because int might match the return type of a gcc2
25030 builtin and then its argument prototype would still apply. */
25031char $ac_func ();
25032/* The GNU C library defines this for functions which it implements
25033 to always fail with ENOSYS. Some functions are actually named
25034 something starting with __ and the normal name is an alias. */
25035#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
25036choke me
25037#else
25038char (*f) () = $ac_func;
25039#endif
25040#ifdef __cplusplus
25041}
25042#endif
25043
25044int
25045main ()
25046{
25047return f != $ac_func;
25048 ;
25049 return 0;
25050}
25051_ACEOF
25052rm -f conftest.$ac_objext conftest$ac_exeext
25053if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25054 (eval $ac_link) 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); } &&
479c790c 25061 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5d7b7554
VZ
25062 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25063 (eval $ac_try) 2>&5
25064 ac_status=$?
25065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25066 (exit $ac_status); }; } &&
25067 { ac_try='test -s conftest$ac_exeext'
25068 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25069 (eval $ac_try) 2>&5
25070 ac_status=$?
25071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25072 (exit $ac_status); }; }; then
25073 eval "$as_ac_var=yes"
25074else
25075 echo "$as_me: failed program was:" >&5
25076sed 's/^/| /' conftest.$ac_ext >&5
25077
25078eval "$as_ac_var=no"
25079fi
25080rm -f conftest.err conftest.$ac_objext \
25081 conftest$ac_exeext conftest.$ac_ext
25082fi
25083echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
25084echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
25085if test `eval echo '${'$as_ac_var'}'` = yes; then
25086 cat >>confdefs.h <<_ACEOF
25087#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25088_ACEOF
25089 have_sin=1
25090fi
25091done
25092
25093
25094for ac_func in ceil
25095do
25096as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25097echo "$as_me:$LINENO: checking for $ac_func" >&5
25098echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
25099if eval "test \"\${$as_ac_var+set}\" = set"; then
25100 echo $ECHO_N "(cached) $ECHO_C" >&6
25101else
25102 cat >conftest.$ac_ext <<_ACEOF
25103/* confdefs.h. */
25104_ACEOF
25105cat confdefs.h >>conftest.$ac_ext
25106cat >>conftest.$ac_ext <<_ACEOF
25107/* end confdefs.h. */
25108/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25109 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25110#define $ac_func innocuous_$ac_func
25111
25112/* System header to define __stub macros and hopefully few prototypes,
25113 which can conflict with char $ac_func (); below.
25114 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25115 <limits.h> exists even on freestanding compilers. */
25116
25117#ifdef __STDC__
25118# include <limits.h>
25119#else
25120# include <assert.h>
25121#endif
25122
25123#undef $ac_func
25124
25125/* Override any gcc2 internal prototype to avoid an error. */
25126#ifdef __cplusplus
25127extern "C"
25128{
25129#endif
25130/* We use char because int might match the return type of a gcc2
25131 builtin and then its argument prototype would still apply. */
25132char $ac_func ();
25133/* The GNU C library defines this for functions which it implements
25134 to always fail with ENOSYS. Some functions are actually named
25135 something starting with __ and the normal name is an alias. */
25136#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
25137choke me
25138#else
25139char (*f) () = $ac_func;
25140#endif
25141#ifdef __cplusplus
25142}
25143#endif
25144
25145int
25146main ()
25147{
25148return f != $ac_func;
25149 ;
25150 return 0;
25151}
25152_ACEOF
25153rm -f conftest.$ac_objext conftest$ac_exeext
25154if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25155 (eval $ac_link) 2>conftest.er1
25156 ac_status=$?
25157 grep -v '^ *+' conftest.er1 >conftest.err
25158 rm -f conftest.er1
25159 cat conftest.err >&5
25160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25161 (exit $ac_status); } &&
479c790c 25162 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5d7b7554
VZ
25163 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25164 (eval $ac_try) 2>&5
25165 ac_status=$?
25166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25167 (exit $ac_status); }; } &&
25168 { ac_try='test -s conftest$ac_exeext'
25169 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25170 (eval $ac_try) 2>&5
25171 ac_status=$?
25172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25173 (exit $ac_status); }; }; then
25174 eval "$as_ac_var=yes"
25175else
25176 echo "$as_me: failed program was:" >&5
25177sed 's/^/| /' conftest.$ac_ext >&5
25178
25179eval "$as_ac_var=no"
25180fi
25181rm -f conftest.err conftest.$ac_objext \
25182 conftest$ac_exeext conftest.$ac_ext
25183fi
25184echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
25185echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
25186if test `eval echo '${'$as_ac_var'}'` = yes; then
25187 cat >>confdefs.h <<_ACEOF
25188#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25189_ACEOF
25190 have_ceil=1
25191fi
25192done
25193
25194 echo "$as_me:$LINENO: checking if floating point functions link with -lm" >&5
25195echo $ECHO_N "checking if floating point functions link with -lm... $ECHO_C" >&6
25196 if test "$have_sin" = 1 -a "$have_ceil" = 1; then
25197 echo "$as_me:$LINENO: result: yes" >&5
25198echo "${ECHO_T}yes" >&6
25199 else
25200 echo "$as_me:$LINENO: result: no" >&5
25201echo "${ECHO_T}no" >&6
25202 # not sure we should warn the user, crash, etc.
25203 fi
25204fi
25205
25206
25207
25208if test "$wxUSE_REGEX" != "no"; then
25209 cat >>confdefs.h <<\_ACEOF
25210#define wxUSE_REGEX 1
25211_ACEOF
25212
25213
25214 if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_REGEX" = "yes"; then
25215 { echo "$as_me:$LINENO: WARNING: Defaulting to the the builtin regex library for Unicode build." >&5
25216echo "$as_me: WARNING: Defaulting to the the builtin regex library for Unicode build." >&2;}
25217 wxUSE_REGEX=builtin
25218 fi
25219
25220 if test "$wxUSE_REGEX" = "sys" -o "$wxUSE_REGEX" = "yes" ; then
25221 if test "${ac_cv_header_regex_h+set}" = set; then
25222 echo "$as_me:$LINENO: checking for regex.h" >&5
25223echo $ECHO_N "checking for regex.h... $ECHO_C" >&6
25224if test "${ac_cv_header_regex_h+set}" = set; then
25225 echo $ECHO_N "(cached) $ECHO_C" >&6
25226fi
25227echo "$as_me:$LINENO: result: $ac_cv_header_regex_h" >&5
25228echo "${ECHO_T}$ac_cv_header_regex_h" >&6
25229else
25230 # Is the header compilable?
25231echo "$as_me:$LINENO: checking regex.h usability" >&5
25232echo $ECHO_N "checking regex.h usability... $ECHO_C" >&6
25233cat >conftest.$ac_ext <<_ACEOF
25234/* confdefs.h. */
25235_ACEOF
25236cat confdefs.h >>conftest.$ac_ext
25237cat >>conftest.$ac_ext <<_ACEOF
25238/* end confdefs.h. */
25239$ac_includes_default
25240#include <regex.h>
25241_ACEOF
25242rm -f conftest.$ac_objext
25243if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25244 (eval $ac_compile) 2>conftest.er1
25245 ac_status=$?
25246 grep -v '^ *+' conftest.er1 >conftest.err
25247 rm -f conftest.er1
25248 cat conftest.err >&5
25249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25250 (exit $ac_status); } &&
479c790c 25251 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5d7b7554
VZ
25252 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25253 (eval $ac_try) 2>&5
25254 ac_status=$?
25255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25256 (exit $ac_status); }; } &&
25257 { ac_try='test -s conftest.$ac_objext'
25258 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25259 (eval $ac_try) 2>&5
25260 ac_status=$?
25261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25262 (exit $ac_status); }; }; then
25263 ac_header_compiler=yes
25264else
25265 echo "$as_me: failed program was:" >&5
25266sed 's/^/| /' conftest.$ac_ext >&5
25267
25268ac_header_compiler=no
25269fi
25270rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25271echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25272echo "${ECHO_T}$ac_header_compiler" >&6
25273
25274# Is the header present?
25275echo "$as_me:$LINENO: checking regex.h presence" >&5
25276echo $ECHO_N "checking regex.h presence... $ECHO_C" >&6
25277cat >conftest.$ac_ext <<_ACEOF
25278/* confdefs.h. */
25279_ACEOF
25280cat confdefs.h >>conftest.$ac_ext
25281cat >>conftest.$ac_ext <<_ACEOF
25282/* end confdefs.h. */
25283#include <regex.h>
25284_ACEOF
25285if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25286 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25287 ac_status=$?
25288 grep -v '^ *+' conftest.er1 >conftest.err
25289 rm -f conftest.er1
25290 cat conftest.err >&5
25291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25292 (exit $ac_status); } >/dev/null; then
25293 if test -s conftest.err; then
25294 ac_cpp_err=$ac_cxx_preproc_warn_flag
25295 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
25296 else
25297 ac_cpp_err=
25298 fi
25299else
25300 ac_cpp_err=yes
25301fi
25302if test -z "$ac_cpp_err"; then
25303 ac_header_preproc=yes
25304else
25305 echo "$as_me: failed program was:" >&5
25306sed 's/^/| /' conftest.$ac_ext >&5
25307
25308 ac_header_preproc=no
25309fi
25310rm -f conftest.err conftest.$ac_ext
25311echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25312echo "${ECHO_T}$ac_header_preproc" >&6
25313
25314# So? What about this header?
25315case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
25316 yes:no: )
25317 { echo "$as_me:$LINENO: WARNING: regex.h: accepted by the compiler, rejected by the preprocessor!" >&5
25318echo "$as_me: WARNING: regex.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
25319 { echo "$as_me:$LINENO: WARNING: regex.h: proceeding with the compiler's result" >&5
25320echo "$as_me: WARNING: regex.h: proceeding with the compiler's result" >&2;}
25321 ac_header_preproc=yes
25322 ;;
25323 no:yes:* )
25324 { echo "$as_me:$LINENO: WARNING: regex.h: present but cannot be compiled" >&5
25325echo "$as_me: WARNING: regex.h: present but cannot be compiled" >&2;}
25326 { echo "$as_me:$LINENO: WARNING: regex.h: check for missing prerequisite headers?" >&5
25327echo "$as_me: WARNING: regex.h: check for missing prerequisite headers?" >&2;}
25328 { echo "$as_me:$LINENO: WARNING: regex.h: see the Autoconf documentation" >&5
25329echo "$as_me: WARNING: regex.h: see the Autoconf documentation" >&2;}
25330 { echo "$as_me:$LINENO: WARNING: regex.h: section \"Present But Cannot Be Compiled\"" >&5
25331echo "$as_me: WARNING: regex.h: section \"Present But Cannot Be Compiled\"" >&2;}
25332 { echo "$as_me:$LINENO: WARNING: regex.h: proceeding with the preprocessor's result" >&5
25333echo "$as_me: WARNING: regex.h: proceeding with the preprocessor's result" >&2;}
25334 { echo "$as_me:$LINENO: WARNING: regex.h: in the future, the compiler will take precedence" >&5
25335echo "$as_me: WARNING: regex.h: in the future, the compiler will take precedence" >&2;}
25336 (
25337 cat <<\_ASBOX
25338## ----------------------------------------- ##
25339## Report this to wx-dev@lists.wxwidgets.org ##
25340## ----------------------------------------- ##
25341_ASBOX
25342 ) |
25343 sed "s/^/$as_me: WARNING: /" >&2
25344 ;;
25345esac
25346echo "$as_me:$LINENO: checking for regex.h" >&5
25347echo $ECHO_N "checking for regex.h... $ECHO_C" >&6
25348if test "${ac_cv_header_regex_h+set}" = set; then
25349 echo $ECHO_N "(cached) $ECHO_C" >&6
25350else
25351 ac_cv_header_regex_h=$ac_header_preproc
25352fi
25353echo "$as_me:$LINENO: result: $ac_cv_header_regex_h" >&5
25354echo "${ECHO_T}$ac_cv_header_regex_h" >&6
25355
25356fi
25357if test $ac_cv_header_regex_h = yes; then
25358
25359
25360for ac_func in regcomp re_search
25361do
25362as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25363echo "$as_me:$LINENO: checking for $ac_func" >&5
25364echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
25365if eval "test \"\${$as_ac_var+set}\" = set"; then
25366 echo $ECHO_N "(cached) $ECHO_C" >&6
25367else
25368 cat >conftest.$ac_ext <<_ACEOF
25369/* confdefs.h. */
25370_ACEOF
25371cat confdefs.h >>conftest.$ac_ext
25372cat >>conftest.$ac_ext <<_ACEOF
25373/* end confdefs.h. */
25374/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25375 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25376#define $ac_func innocuous_$ac_func
25377
25378/* System header to define __stub macros and hopefully few prototypes,
25379 which can conflict with char $ac_func (); below.
25380 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25381 <limits.h> exists even on freestanding compilers. */
25382
25383#ifdef __STDC__
25384# include <limits.h>
25385#else
25386# include <assert.h>
25387#endif
25388
25389#undef $ac_func
25390
25391/* Override any gcc2 internal prototype to avoid an error. */
25392#ifdef __cplusplus
25393extern "C"
25394{
25395#endif
25396/* We use char because int might match the return type of a gcc2
25397 builtin and then its argument prototype would still apply. */
25398char $ac_func ();
25399/* The GNU C library defines this for functions which it implements
25400 to always fail with ENOSYS. Some functions are actually named
25401 something starting with __ and the normal name is an alias. */
25402#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
25403choke me
25404#else
25405char (*f) () = $ac_func;
25406#endif
25407#ifdef __cplusplus
25408}
25409#endif
25410
25411int
25412main ()
25413{
25414return f != $ac_func;
25415 ;
25416 return 0;
25417}
25418_ACEOF
25419rm -f conftest.$ac_objext conftest$ac_exeext
25420if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25421 (eval $ac_link) 2>conftest.er1
25422 ac_status=$?
25423 grep -v '^ *+' conftest.er1 >conftest.err
25424 rm -f conftest.er1
25425 cat conftest.err >&5
25426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25427 (exit $ac_status); } &&
479c790c 25428 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
25429 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25430 (eval $ac_try) 2>&5
25431 ac_status=$?
25432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25433 (exit $ac_status); }; } &&
25434 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
25435 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25436 (eval $ac_try) 2>&5
25437 ac_status=$?
25438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25439 (exit $ac_status); }; }; then
25440 eval "$as_ac_var=yes"
25441else
25442 echo "$as_me: failed program was:" >&5
25443sed 's/^/| /' conftest.$ac_ext >&5
25444
25445eval "$as_ac_var=no"
25446fi
ac1cb8d3
VS
25447rm -f conftest.err conftest.$ac_objext \
25448 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
25449fi
25450echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
25451echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
25452if test `eval echo '${'$as_ac_var'}'` = yes; then
25453 cat >>confdefs.h <<_ACEOF
25454#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25455_ACEOF
25456
25457fi
25458done
25459
25460fi
25461
25462
25463
25464 if test "x$ac_cv_func_regcomp" != "xyes"; then
25465 if test "$wxUSE_REGEX" = "sys" ; then
25466 { { echo "$as_me:$LINENO: error: system regex library not found! Use --with-regex to use built-in version" >&5
25467echo "$as_me: error: system regex library not found! Use --with-regex to use built-in version" >&2;}
25468 { (exit 1); exit 1; }; }
25469 else
25470 { echo "$as_me:$LINENO: WARNING: system regex library not found, will use built-in instead" >&5
25471echo "$as_me: WARNING: system regex library not found, will use built-in instead" >&2;}
25472 wxUSE_REGEX=builtin
25473 fi
25474 else
25475 wxUSE_REGEX=sys
25476 cat >>confdefs.h <<\_ACEOF
25477#define WX_NO_REGEX_ADVANCED 1
25478_ACEOF
25479
25480 fi
25481 fi
25482fi
25483
25484
25485ZLIB_LINK=
25486if test "$wxUSE_ZLIB" != "no" ; then
25487 cat >>confdefs.h <<\_ACEOF
25488#define wxUSE_ZLIB 1
25489_ACEOF
25490
25491
25492 if test "$wxUSE_ZLIB" = "sys" -o "$wxUSE_ZLIB" = "yes" ; then
25493 if test "$USE_DARWIN" = 1; then
25494 system_zlib_h_ok="yes"
25495 else
25496 echo "$as_me:$LINENO: checking for zlib.h >= 1.1.4" >&5
25497echo $ECHO_N "checking for zlib.h >= 1.1.4... $ECHO_C" >&6
25498if test "${ac_cv_header_zlib_h+set}" = set; then
25499 echo $ECHO_N "(cached) $ECHO_C" >&6
25500else
25501 if test "$cross_compiling" = yes; then
25502 unset ac_cv_header_zlib_h
25503
25504else
25505 cat >conftest.$ac_ext <<_ACEOF
25506/* confdefs.h. */
25507_ACEOF
25508cat confdefs.h >>conftest.$ac_ext
25509cat >>conftest.$ac_ext <<_ACEOF
25510/* end confdefs.h. */
25511
25512 #include <zlib.h>
25513 #include <stdio.h>
25514
25515 int main()
25516 {
25517 FILE *f=fopen("conftestval", "w");
25518 if (!f) exit(1);
25519 fprintf(f, "%s",
25520 ZLIB_VERSION[0] == '1' &&
25521 (ZLIB_VERSION[2] > '1' ||
25522 (ZLIB_VERSION[2] == '1' &&
25523 ZLIB_VERSION[4] >= '4')) ? "yes" : "no");
25524 exit(0);
25525 }
25526
25527_ACEOF
25528rm -f conftest$ac_exeext
25529if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25530 (eval $ac_link) 2>&5
25531 ac_status=$?
25532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25533 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25534 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25535 (eval $ac_try) 2>&5
25536 ac_status=$?
25537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25538 (exit $ac_status); }; }; then
25539 ac_cv_header_zlib_h=`cat conftestval`
25540else
25541 echo "$as_me: program exited with status $ac_status" >&5
25542echo "$as_me: failed program was:" >&5
25543sed 's/^/| /' conftest.$ac_ext >&5
25544
25545( exit $ac_status )
25546ac_cv_header_zlib_h=no
25547fi
ac1cb8d3 25548rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
25549fi
25550
25551fi
25552echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
25553echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
25554 if test "${ac_cv_header_zlib_h+set}" = set; then
25555 echo "$as_me:$LINENO: checking for zlib.h" >&5
25556echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6
25557if test "${ac_cv_header_zlib_h+set}" = set; then
25558 echo $ECHO_N "(cached) $ECHO_C" >&6
25559fi
25560echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
25561echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
25562else
25563 # Is the header compilable?
25564echo "$as_me:$LINENO: checking zlib.h usability" >&5
25565echo $ECHO_N "checking zlib.h usability... $ECHO_C" >&6
25566cat >conftest.$ac_ext <<_ACEOF
25567/* confdefs.h. */
25568_ACEOF
25569cat confdefs.h >>conftest.$ac_ext
25570cat >>conftest.$ac_ext <<_ACEOF
25571/* end confdefs.h. */
25572$ac_includes_default
25573#include <zlib.h>
25574_ACEOF
25575rm -f conftest.$ac_objext
25576if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 25577 (eval $ac_compile) 2>conftest.er1
a848cd7e 25578 ac_status=$?
ac1cb8d3
VS
25579 grep -v '^ *+' conftest.er1 >conftest.err
25580 rm -f conftest.er1
25581 cat conftest.err >&5
a848cd7e
SC
25582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25583 (exit $ac_status); } &&
479c790c 25584 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
25585 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25586 (eval $ac_try) 2>&5
25587 ac_status=$?
25588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25589 (exit $ac_status); }; } &&
25590 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
25591 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25592 (eval $ac_try) 2>&5
25593 ac_status=$?
25594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25595 (exit $ac_status); }; }; then
25596 ac_header_compiler=yes
25597else
25598 echo "$as_me: failed program was:" >&5
25599sed 's/^/| /' conftest.$ac_ext >&5
25600
25601ac_header_compiler=no
25602fi
ac1cb8d3 25603rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
25604echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25605echo "${ECHO_T}$ac_header_compiler" >&6
25606
25607# Is the header present?
25608echo "$as_me:$LINENO: checking zlib.h presence" >&5
25609echo $ECHO_N "checking zlib.h presence... $ECHO_C" >&6
25610cat >conftest.$ac_ext <<_ACEOF
25611/* confdefs.h. */
25612_ACEOF
25613cat confdefs.h >>conftest.$ac_ext
25614cat >>conftest.$ac_ext <<_ACEOF
25615/* end confdefs.h. */
25616#include <zlib.h>
25617_ACEOF
25618if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25619 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25620 ac_status=$?
25621 grep -v '^ *+' conftest.er1 >conftest.err
25622 rm -f conftest.er1
25623 cat conftest.err >&5
25624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25625 (exit $ac_status); } >/dev/null; then
25626 if test -s conftest.err; then
5d7b7554
VZ
25627 ac_cpp_err=$ac_cxx_preproc_warn_flag
25628 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
25629 else
25630 ac_cpp_err=
25631 fi
25632else
25633 ac_cpp_err=yes
25634fi
25635if test -z "$ac_cpp_err"; then
25636 ac_header_preproc=yes
25637else
25638 echo "$as_me: failed program was:" >&5
25639sed 's/^/| /' conftest.$ac_ext >&5
25640
25641 ac_header_preproc=no
25642fi
25643rm -f conftest.err conftest.$ac_ext
25644echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25645echo "${ECHO_T}$ac_header_preproc" >&6
25646
25647# So? What about this header?
5d7b7554 25648case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
ac1cb8d3 25649 yes:no: )
a848cd7e
SC
25650 { echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
25651echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
25652 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the compiler's result" >&5
25653echo "$as_me: WARNING: zlib.h: proceeding with the compiler's result" >&2;}
25654 ac_header_preproc=yes
a848cd7e 25655 ;;
ac1cb8d3 25656 no:yes:* )
a848cd7e
SC
25657 { echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5
25658echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
25659 { echo "$as_me:$LINENO: WARNING: zlib.h: check for missing prerequisite headers?" >&5
25660echo "$as_me: WARNING: zlib.h: check for missing prerequisite headers?" >&2;}
25661 { echo "$as_me:$LINENO: WARNING: zlib.h: see the Autoconf documentation" >&5
25662echo "$as_me: WARNING: zlib.h: see the Autoconf documentation" >&2;}
25663 { echo "$as_me:$LINENO: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&5
25664echo "$as_me: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
25665 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
25666echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
25667 { echo "$as_me:$LINENO: WARNING: zlib.h: in the future, the compiler will take precedence" >&5
25668echo "$as_me: WARNING: zlib.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
25669 (
25670 cat <<\_ASBOX
ac1cb8d3
VS
25671## ----------------------------------------- ##
25672## Report this to wx-dev@lists.wxwidgets.org ##
25673## ----------------------------------------- ##
a848cd7e
SC
25674_ASBOX
25675 ) |
25676 sed "s/^/$as_me: WARNING: /" >&2
25677 ;;
25678esac
25679echo "$as_me:$LINENO: checking for zlib.h" >&5
25680echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6
25681if test "${ac_cv_header_zlib_h+set}" = set; then
25682 echo $ECHO_N "(cached) $ECHO_C" >&6
25683else
25684 ac_cv_header_zlib_h=$ac_header_preproc
25685fi
25686echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
25687echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
25688
25689fi
25690
25691
25692
25693 system_zlib_h_ok=$ac_cv_header_zlib_h
25694 fi
25695
25696 if test "$system_zlib_h_ok" = "yes"; then
25697 echo "$as_me:$LINENO: checking for deflate in -lz" >&5
25698echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6
25699if test "${ac_cv_lib_z_deflate+set}" = set; then
25700 echo $ECHO_N "(cached) $ECHO_C" >&6
25701else
25702 ac_check_lib_save_LIBS=$LIBS
25703LIBS="-lz $LIBS"
25704cat >conftest.$ac_ext <<_ACEOF
25705/* confdefs.h. */
25706_ACEOF
25707cat confdefs.h >>conftest.$ac_ext
25708cat >>conftest.$ac_ext <<_ACEOF
25709/* end confdefs.h. */
25710
25711/* Override any gcc2 internal prototype to avoid an error. */
25712#ifdef __cplusplus
25713extern "C"
25714#endif
25715/* We use char because int might match the return type of a gcc2
25716 builtin and then its argument prototype would still apply. */
25717char deflate ();
25718int
25719main ()
25720{
25721deflate ();
25722 ;
25723 return 0;
25724}
25725_ACEOF
25726rm -f conftest.$ac_objext conftest$ac_exeext
25727if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 25728 (eval $ac_link) 2>conftest.er1
a848cd7e 25729 ac_status=$?
ac1cb8d3
VS
25730 grep -v '^ *+' conftest.er1 >conftest.err
25731 rm -f conftest.er1
25732 cat conftest.err >&5
a848cd7e
SC
25733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25734 (exit $ac_status); } &&
479c790c 25735 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
25736 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25737 (eval $ac_try) 2>&5
25738 ac_status=$?
25739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25740 (exit $ac_status); }; } &&
25741 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
25742 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25743 (eval $ac_try) 2>&5
25744 ac_status=$?
25745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25746 (exit $ac_status); }; }; then
25747 ac_cv_lib_z_deflate=yes
25748else
25749 echo "$as_me: failed program was:" >&5
25750sed 's/^/| /' conftest.$ac_ext >&5
25751
25752ac_cv_lib_z_deflate=no
25753fi
ac1cb8d3
VS
25754rm -f conftest.err conftest.$ac_objext \
25755 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
25756LIBS=$ac_check_lib_save_LIBS
25757fi
25758echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
25759echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6
25760if test $ac_cv_lib_z_deflate = yes; then
25761 ZLIB_LINK=" -lz"
25762fi
25763
25764 fi
25765
25766 if test "x$ZLIB_LINK" = "x" ; then
25767 if test "$wxUSE_ZLIB" = "sys" ; then
25768 { { echo "$as_me:$LINENO: error: zlib library not found or too old! Use --with-zlib=builtin to use built-in version" >&5
25769echo "$as_me: error: zlib library not found or too old! Use --with-zlib=builtin to use built-in version" >&2;}
25770 { (exit 1); exit 1; }; }
25771 else
25772 { echo "$as_me:$LINENO: WARNING: zlib library not found or too old, will use built-in instead" >&5
25773echo "$as_me: WARNING: zlib library not found or too old, will use built-in instead" >&2;}
25774 wxUSE_ZLIB=builtin
25775 fi
25776 else
25777 wxUSE_ZLIB=sys
25778 fi
25779 fi
25780fi
25781
25782
25783PNG_LINK=
25784if test "$wxUSE_LIBPNG" != "no" ; then
25785 cat >>confdefs.h <<\_ACEOF
25786#define wxUSE_LIBPNG 1
25787_ACEOF
25788
25789
25790 if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBPNG" = "builtin" ; then
25791 { echo "$as_me:$LINENO: WARNING: wxMGL doesn't work with builtin png library, will use MGL one instead" >&5
25792echo "$as_me: WARNING: wxMGL doesn't work with builtin png library, will use MGL one instead" >&2;}
25793 wxUSE_LIBPNG=sys
25794 fi
25795
25796 if test "$wxUSE_MGL" != 1 -a "$wxUSE_LIBPNG" = "sys" -a "$wxUSE_ZLIB" != "sys" ; then
25797 { echo "$as_me:$LINENO: WARNING: system png library doesn't work without system zlib, will use built-in instead" >&5
25798echo "$as_me: WARNING: system png library doesn't work without system zlib, will use built-in instead" >&2;}
25799 wxUSE_LIBPNG=builtin
25800 fi
25801
25802 if test "$wxUSE_MGL" != 1 ; then
25803 if test "$wxUSE_LIBPNG" = "sys" -o "$wxUSE_LIBPNG" = "yes" ; then
25804 echo "$as_me:$LINENO: checking for png.h > 0.90" >&5
25805echo $ECHO_N "checking for png.h > 0.90... $ECHO_C" >&6
25806if test "${ac_cv_header_png_h+set}" = set; then
25807 echo $ECHO_N "(cached) $ECHO_C" >&6
25808else
25809 if test "$cross_compiling" = yes; then
25810 unset ac_cv_header_png_h
25811
25812else
25813 cat >conftest.$ac_ext <<_ACEOF
25814/* confdefs.h. */
25815_ACEOF
25816cat confdefs.h >>conftest.$ac_ext
25817cat >>conftest.$ac_ext <<_ACEOF
25818/* end confdefs.h. */
25819
25820 #include <png.h>
25821 #include <stdio.h>
25822
25823 int main()
25824 {
25825 FILE *f=fopen("conftestval", "w");
25826 if (!f) exit(1);
25827 fprintf(f, "%s",
25828 PNG_LIBPNG_VER > 90 ? "yes" : "no");
25829 exit(0);
25830 }
25831
25832_ACEOF
25833rm -f conftest$ac_exeext
25834if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25835 (eval $ac_link) 2>&5
25836 ac_status=$?
25837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25838 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25839 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25840 (eval $ac_try) 2>&5
25841 ac_status=$?
25842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25843 (exit $ac_status); }; }; then
25844 ac_cv_header_png_h=`cat conftestval`
25845else
25846 echo "$as_me: program exited with status $ac_status" >&5
25847echo "$as_me: failed program was:" >&5
25848sed 's/^/| /' conftest.$ac_ext >&5
25849
25850( exit $ac_status )
25851ac_cv_header_png_h=no
25852fi
ac1cb8d3 25853rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
25854fi
25855
25856fi
25857echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
25858echo "${ECHO_T}$ac_cv_header_png_h" >&6
25859 if test "${ac_cv_header_png_h+set}" = set; then
25860 echo "$as_me:$LINENO: checking for png.h" >&5
25861echo $ECHO_N "checking for png.h... $ECHO_C" >&6
25862if test "${ac_cv_header_png_h+set}" = set; then
25863 echo $ECHO_N "(cached) $ECHO_C" >&6
25864fi
25865echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
25866echo "${ECHO_T}$ac_cv_header_png_h" >&6
25867else
25868 # Is the header compilable?
25869echo "$as_me:$LINENO: checking png.h usability" >&5
25870echo $ECHO_N "checking png.h usability... $ECHO_C" >&6
25871cat >conftest.$ac_ext <<_ACEOF
25872/* confdefs.h. */
25873_ACEOF
25874cat confdefs.h >>conftest.$ac_ext
25875cat >>conftest.$ac_ext <<_ACEOF
25876/* end confdefs.h. */
25877$ac_includes_default
25878#include <png.h>
25879_ACEOF
25880rm -f conftest.$ac_objext
25881if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 25882 (eval $ac_compile) 2>conftest.er1
a848cd7e 25883 ac_status=$?
ac1cb8d3
VS
25884 grep -v '^ *+' conftest.er1 >conftest.err
25885 rm -f conftest.er1
25886 cat conftest.err >&5
a848cd7e
SC
25887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25888 (exit $ac_status); } &&
479c790c 25889 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
25890 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25891 (eval $ac_try) 2>&5
25892 ac_status=$?
25893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25894 (exit $ac_status); }; } &&
25895 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
25896 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25897 (eval $ac_try) 2>&5
25898 ac_status=$?
25899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25900 (exit $ac_status); }; }; then
25901 ac_header_compiler=yes
25902else
25903 echo "$as_me: failed program was:" >&5
25904sed 's/^/| /' conftest.$ac_ext >&5
25905
25906ac_header_compiler=no
25907fi
ac1cb8d3 25908rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
25909echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25910echo "${ECHO_T}$ac_header_compiler" >&6
25911
25912# Is the header present?
25913echo "$as_me:$LINENO: checking png.h presence" >&5
25914echo $ECHO_N "checking png.h presence... $ECHO_C" >&6
25915cat >conftest.$ac_ext <<_ACEOF
25916/* confdefs.h. */
25917_ACEOF
25918cat confdefs.h >>conftest.$ac_ext
25919cat >>conftest.$ac_ext <<_ACEOF
25920/* end confdefs.h. */
25921#include <png.h>
25922_ACEOF
25923if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25924 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25925 ac_status=$?
25926 grep -v '^ *+' conftest.er1 >conftest.err
25927 rm -f conftest.er1
25928 cat conftest.err >&5
25929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25930 (exit $ac_status); } >/dev/null; then
25931 if test -s conftest.err; then
5d7b7554
VZ
25932 ac_cpp_err=$ac_cxx_preproc_warn_flag
25933 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
25934 else
25935 ac_cpp_err=
25936 fi
25937else
25938 ac_cpp_err=yes
25939fi
25940if test -z "$ac_cpp_err"; then
25941 ac_header_preproc=yes
25942else
25943 echo "$as_me: failed program was:" >&5
25944sed 's/^/| /' conftest.$ac_ext >&5
25945
25946 ac_header_preproc=no
25947fi
25948rm -f conftest.err conftest.$ac_ext
25949echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25950echo "${ECHO_T}$ac_header_preproc" >&6
25951
25952# So? What about this header?
5d7b7554 25953case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
ac1cb8d3 25954 yes:no: )
a848cd7e
SC
25955 { echo "$as_me:$LINENO: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&5
25956echo "$as_me: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
25957 { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the compiler's result" >&5
25958echo "$as_me: WARNING: png.h: proceeding with the compiler's result" >&2;}
25959 ac_header_preproc=yes
a848cd7e 25960 ;;
ac1cb8d3 25961 no:yes:* )
a848cd7e
SC
25962 { echo "$as_me:$LINENO: WARNING: png.h: present but cannot be compiled" >&5
25963echo "$as_me: WARNING: png.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
25964 { echo "$as_me:$LINENO: WARNING: png.h: check for missing prerequisite headers?" >&5
25965echo "$as_me: WARNING: png.h: check for missing prerequisite headers?" >&2;}
25966 { echo "$as_me:$LINENO: WARNING: png.h: see the Autoconf documentation" >&5
25967echo "$as_me: WARNING: png.h: see the Autoconf documentation" >&2;}
25968 { echo "$as_me:$LINENO: WARNING: png.h: section \"Present But Cannot Be Compiled\"" >&5
25969echo "$as_me: WARNING: png.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
25970 { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the preprocessor's result" >&5
25971echo "$as_me: WARNING: png.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
25972 { echo "$as_me:$LINENO: WARNING: png.h: in the future, the compiler will take precedence" >&5
25973echo "$as_me: WARNING: png.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
25974 (
25975 cat <<\_ASBOX
ac1cb8d3
VS
25976## ----------------------------------------- ##
25977## Report this to wx-dev@lists.wxwidgets.org ##
25978## ----------------------------------------- ##
a848cd7e
SC
25979_ASBOX
25980 ) |
25981 sed "s/^/$as_me: WARNING: /" >&2
25982 ;;
25983esac
25984echo "$as_me:$LINENO: checking for png.h" >&5
25985echo $ECHO_N "checking for png.h... $ECHO_C" >&6
25986if test "${ac_cv_header_png_h+set}" = set; then
25987 echo $ECHO_N "(cached) $ECHO_C" >&6
25988else
25989 ac_cv_header_png_h=$ac_header_preproc
25990fi
25991echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
25992echo "${ECHO_T}$ac_cv_header_png_h" >&6
25993
25994fi
25995
25996
25997
25998 if test "$ac_cv_header_png_h" = "yes"; then
25999 echo "$as_me:$LINENO: checking for png_check_sig in -lpng" >&5
26000echo $ECHO_N "checking for png_check_sig in -lpng... $ECHO_C" >&6
26001if test "${ac_cv_lib_png_png_check_sig+set}" = set; then
26002 echo $ECHO_N "(cached) $ECHO_C" >&6
26003else
26004 ac_check_lib_save_LIBS=$LIBS
26005LIBS="-lpng -lz -lm $LIBS"
26006cat >conftest.$ac_ext <<_ACEOF
26007/* confdefs.h. */
26008_ACEOF
26009cat confdefs.h >>conftest.$ac_ext
26010cat >>conftest.$ac_ext <<_ACEOF
26011/* end confdefs.h. */
26012
26013/* Override any gcc2 internal prototype to avoid an error. */
26014#ifdef __cplusplus
26015extern "C"
26016#endif
26017/* We use char because int might match the return type of a gcc2
26018 builtin and then its argument prototype would still apply. */
26019char png_check_sig ();
26020int
26021main ()
26022{
26023png_check_sig ();
26024 ;
26025 return 0;
26026}
26027_ACEOF
26028rm -f conftest.$ac_objext conftest$ac_exeext
26029if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 26030 (eval $ac_link) 2>conftest.er1
a848cd7e 26031 ac_status=$?
ac1cb8d3
VS
26032 grep -v '^ *+' conftest.er1 >conftest.err
26033 rm -f conftest.er1
26034 cat conftest.err >&5
a848cd7e
SC
26035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26036 (exit $ac_status); } &&
479c790c 26037 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
26038 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26039 (eval $ac_try) 2>&5
26040 ac_status=$?
26041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26042 (exit $ac_status); }; } &&
26043 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
26044 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26045 (eval $ac_try) 2>&5
26046 ac_status=$?
26047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26048 (exit $ac_status); }; }; then
26049 ac_cv_lib_png_png_check_sig=yes
26050else
26051 echo "$as_me: failed program was:" >&5
26052sed 's/^/| /' conftest.$ac_ext >&5
26053
26054ac_cv_lib_png_png_check_sig=no
26055fi
ac1cb8d3
VS
26056rm -f conftest.err conftest.$ac_objext \
26057 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
26058LIBS=$ac_check_lib_save_LIBS
26059fi
26060echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_check_sig" >&5
26061echo "${ECHO_T}$ac_cv_lib_png_png_check_sig" >&6
26062if test $ac_cv_lib_png_png_check_sig = yes; then
26063 PNG_LINK=" -lpng -lz"
26064fi
26065
26066 fi
26067
26068 if test "x$PNG_LINK" = "x" ; then
26069 if test "$wxUSE_LIBPNG" = "sys" ; then
26070 { { echo "$as_me:$LINENO: error: system png library not found or too old! Use --with-libpng=builtin to use built-in version" >&5
26071echo "$as_me: error: system png library not found or too old! Use --with-libpng=builtin to use built-in version" >&2;}
26072 { (exit 1); exit 1; }; }
26073 else
26074 { echo "$as_me:$LINENO: WARNING: system png library not found or too old, will use built-in instead" >&5
26075echo "$as_me: WARNING: system png library not found or too old, will use built-in instead" >&2;}
26076 wxUSE_LIBPNG=builtin
26077 fi
26078 else
26079 wxUSE_LIBPNG=sys
26080 fi
26081 fi
26082 fi
26083
26084 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS png"
26085fi
26086
26087
26088JPEG_LINK=
26089if test "$wxUSE_LIBJPEG" != "no" ; then
26090 cat >>confdefs.h <<\_ACEOF
26091#define wxUSE_LIBJPEG 1
26092_ACEOF
26093
26094
26095 if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBJPEG" = "builtin" ; then
26096 { echo "$as_me:$LINENO: WARNING: wxMGL doesn't work with builtin jpeg library, will use MGL one instead" >&5
26097echo "$as_me: WARNING: wxMGL doesn't work with builtin jpeg library, will use MGL one instead" >&2;}
26098 wxUSE_LIBJPEG=sys
26099 fi
26100
26101 if test "$wxUSE_MGL" != 1 ; then
26102 if test "$wxUSE_LIBJPEG" = "sys" -o "$wxUSE_LIBJPEG" = "yes" ; then
26103 echo "$as_me:$LINENO: checking for jpeglib.h" >&5
26104echo $ECHO_N "checking for jpeglib.h... $ECHO_C" >&6
26105 if test "${ac_cv_header_jpeglib_h+set}" = set; then
26106 echo $ECHO_N "(cached) $ECHO_C" >&6
26107else
26108 cat >conftest.$ac_ext <<_ACEOF
26109/* confdefs.h. */
26110_ACEOF
26111cat confdefs.h >>conftest.$ac_ext
26112cat >>conftest.$ac_ext <<_ACEOF
26113/* end confdefs.h. */
26114
26115 #undef HAVE_STDLIB_H
26116 #include <stdio.h>
26117 #include <jpeglib.h>
26118
26119int
26120main ()
26121{
26122
26123
26124 ;
26125 return 0;
26126}
26127_ACEOF
26128rm -f conftest.$ac_objext
26129if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 26130 (eval $ac_compile) 2>conftest.er1
a848cd7e 26131 ac_status=$?
ac1cb8d3
VS
26132 grep -v '^ *+' conftest.er1 >conftest.err
26133 rm -f conftest.er1
26134 cat conftest.err >&5
a848cd7e
SC
26135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26136 (exit $ac_status); } &&
479c790c 26137 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
26138 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26139 (eval $ac_try) 2>&5
26140 ac_status=$?
26141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26142 (exit $ac_status); }; } &&
26143 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
26144 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26145 (eval $ac_try) 2>&5
26146 ac_status=$?
26147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26148 (exit $ac_status); }; }; then
26149 ac_cv_header_jpeglib_h=yes
26150else
26151 echo "$as_me: failed program was:" >&5
26152sed 's/^/| /' conftest.$ac_ext >&5
26153
26154ac_cv_header_jpeglib_h=no
26155
26156fi
ac1cb8d3 26157rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
26158
26159fi
26160
26161 echo "$as_me:$LINENO: result: $ac_cv_header_jpeglib_h" >&5
26162echo "${ECHO_T}$ac_cv_header_jpeglib_h" >&6
26163
26164 if test "$ac_cv_header_jpeglib_h" = "yes"; then
26165 echo "$as_me:$LINENO: checking for jpeg_read_header in -ljpeg" >&5
26166echo $ECHO_N "checking for jpeg_read_header in -ljpeg... $ECHO_C" >&6
26167if test "${ac_cv_lib_jpeg_jpeg_read_header+set}" = set; then
26168 echo $ECHO_N "(cached) $ECHO_C" >&6
26169else
26170 ac_check_lib_save_LIBS=$LIBS
26171LIBS="-ljpeg $LIBS"
26172cat >conftest.$ac_ext <<_ACEOF
26173/* confdefs.h. */
26174_ACEOF
26175cat confdefs.h >>conftest.$ac_ext
26176cat >>conftest.$ac_ext <<_ACEOF
26177/* end confdefs.h. */
26178
26179/* Override any gcc2 internal prototype to avoid an error. */
26180#ifdef __cplusplus
26181extern "C"
26182#endif
26183/* We use char because int might match the return type of a gcc2
26184 builtin and then its argument prototype would still apply. */
26185char jpeg_read_header ();
26186int
26187main ()
26188{
26189jpeg_read_header ();
26190 ;
26191 return 0;
26192}
26193_ACEOF
26194rm -f conftest.$ac_objext conftest$ac_exeext
26195if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 26196 (eval $ac_link) 2>conftest.er1
a848cd7e 26197 ac_status=$?
ac1cb8d3
VS
26198 grep -v '^ *+' conftest.er1 >conftest.err
26199 rm -f conftest.er1
26200 cat conftest.err >&5
a848cd7e
SC
26201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26202 (exit $ac_status); } &&
479c790c 26203 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
26204 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26205 (eval $ac_try) 2>&5
26206 ac_status=$?
26207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26208 (exit $ac_status); }; } &&
26209 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
26210 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26211 (eval $ac_try) 2>&5
26212 ac_status=$?
26213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26214 (exit $ac_status); }; }; then
26215 ac_cv_lib_jpeg_jpeg_read_header=yes
26216else
26217 echo "$as_me: failed program was:" >&5
26218sed 's/^/| /' conftest.$ac_ext >&5
26219
26220ac_cv_lib_jpeg_jpeg_read_header=no
26221fi
ac1cb8d3
VS
26222rm -f conftest.err conftest.$ac_objext \
26223 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
26224LIBS=$ac_check_lib_save_LIBS
26225fi
26226echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_read_header" >&5
26227echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_read_header" >&6
26228if test $ac_cv_lib_jpeg_jpeg_read_header = yes; then
26229 JPEG_LINK=" -ljpeg"
26230fi
26231
26232 fi
26233
26234 if test "x$JPEG_LINK" = "x" ; then
26235 if test "$wxUSE_LIBJPEG" = "sys" ; then
26236 { { echo "$as_me:$LINENO: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" >&5
26237echo "$as_me: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" >&2;}
26238 { (exit 1); exit 1; }; }
26239 else
26240 { echo "$as_me:$LINENO: WARNING: system jpeg library not found, will use built-in instead" >&5
26241echo "$as_me: WARNING: system jpeg library not found, will use built-in instead" >&2;}
26242 wxUSE_LIBJPEG=builtin
26243 fi
26244 else
26245 wxUSE_LIBJPEG=sys
26246 fi
26247 fi
26248 fi
26249fi
26250
26251
26252TIFF_LINK=
26253TIFF_PREREQ_LINKS=-lm
26254if test "$wxUSE_LIBTIFF" != "no" ; then
26255 cat >>confdefs.h <<\_ACEOF
26256#define wxUSE_LIBTIFF 1
26257_ACEOF
26258
26259
26260 if test "$wxUSE_LIBTIFF" = "sys" -o "$wxUSE_LIBTIFF" = "yes" ; then
26261 if test "$wxUSE_LIBJPEG" = "sys"; then
26262 TIFF_PREREQ_LINKS="$TIFF_PREREQ_LINKS $JPEG_LINK"
26263 fi
26264 if test "$wxUSE_ZLIB" = "sys"; then
26265 TIFF_PREREQ_LINKS="$TIFF_PREREQ_LINKS $ZLIB_LINK"
26266 fi
26267 if test "${ac_cv_header_tiffio_h+set}" = set; then
26268 echo "$as_me:$LINENO: checking for tiffio.h" >&5
26269echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
26270if test "${ac_cv_header_tiffio_h+set}" = set; then
26271 echo $ECHO_N "(cached) $ECHO_C" >&6
26272fi
26273echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
26274echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
26275else
26276 # Is the header compilable?
26277echo "$as_me:$LINENO: checking tiffio.h usability" >&5
26278echo $ECHO_N "checking tiffio.h usability... $ECHO_C" >&6
26279cat >conftest.$ac_ext <<_ACEOF
26280/* confdefs.h. */
26281_ACEOF
26282cat confdefs.h >>conftest.$ac_ext
26283cat >>conftest.$ac_ext <<_ACEOF
26284/* end confdefs.h. */
26285$ac_includes_default
26286#include <tiffio.h>
26287_ACEOF
26288rm -f conftest.$ac_objext
26289if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 26290 (eval $ac_compile) 2>conftest.er1
a848cd7e 26291 ac_status=$?
ac1cb8d3
VS
26292 grep -v '^ *+' conftest.er1 >conftest.err
26293 rm -f conftest.er1
26294 cat conftest.err >&5
a848cd7e
SC
26295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26296 (exit $ac_status); } &&
479c790c 26297 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
26298 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26299 (eval $ac_try) 2>&5
26300 ac_status=$?
26301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26302 (exit $ac_status); }; } &&
26303 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
26304 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26305 (eval $ac_try) 2>&5
26306 ac_status=$?
26307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26308 (exit $ac_status); }; }; then
26309 ac_header_compiler=yes
26310else
26311 echo "$as_me: failed program was:" >&5
26312sed 's/^/| /' conftest.$ac_ext >&5
26313
26314ac_header_compiler=no
26315fi
ac1cb8d3 26316rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
26317echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26318echo "${ECHO_T}$ac_header_compiler" >&6
26319
26320# Is the header present?
26321echo "$as_me:$LINENO: checking tiffio.h presence" >&5
26322echo $ECHO_N "checking tiffio.h presence... $ECHO_C" >&6
26323cat >conftest.$ac_ext <<_ACEOF
26324/* confdefs.h. */
26325_ACEOF
26326cat confdefs.h >>conftest.$ac_ext
26327cat >>conftest.$ac_ext <<_ACEOF
26328/* end confdefs.h. */
26329#include <tiffio.h>
26330_ACEOF
26331if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26332 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26333 ac_status=$?
26334 grep -v '^ *+' conftest.er1 >conftest.err
26335 rm -f conftest.er1
26336 cat conftest.err >&5
26337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26338 (exit $ac_status); } >/dev/null; then
26339 if test -s conftest.err; then
5d7b7554
VZ
26340 ac_cpp_err=$ac_cxx_preproc_warn_flag
26341 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
26342 else
26343 ac_cpp_err=
26344 fi
26345else
26346 ac_cpp_err=yes
26347fi
26348if test -z "$ac_cpp_err"; then
26349 ac_header_preproc=yes
26350else
26351 echo "$as_me: failed program was:" >&5
26352sed 's/^/| /' conftest.$ac_ext >&5
26353
26354 ac_header_preproc=no
26355fi
26356rm -f conftest.err conftest.$ac_ext
26357echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26358echo "${ECHO_T}$ac_header_preproc" >&6
26359
26360# So? What about this header?
5d7b7554 26361case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
ac1cb8d3 26362 yes:no: )
a848cd7e
SC
26363 { echo "$as_me:$LINENO: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&5
26364echo "$as_me: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
26365 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the compiler's result" >&5
26366echo "$as_me: WARNING: tiffio.h: proceeding with the compiler's result" >&2;}
26367 ac_header_preproc=yes
a848cd7e 26368 ;;
ac1cb8d3 26369 no:yes:* )
a848cd7e
SC
26370 { echo "$as_me:$LINENO: WARNING: tiffio.h: present but cannot be compiled" >&5
26371echo "$as_me: WARNING: tiffio.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
26372 { echo "$as_me:$LINENO: WARNING: tiffio.h: check for missing prerequisite headers?" >&5
26373echo "$as_me: WARNING: tiffio.h: check for missing prerequisite headers?" >&2;}
26374 { echo "$as_me:$LINENO: WARNING: tiffio.h: see the Autoconf documentation" >&5
26375echo "$as_me: WARNING: tiffio.h: see the Autoconf documentation" >&2;}
26376 { echo "$as_me:$LINENO: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&5
26377echo "$as_me: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
26378 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result" >&5
26379echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
26380 { echo "$as_me:$LINENO: WARNING: tiffio.h: in the future, the compiler will take precedence" >&5
26381echo "$as_me: WARNING: tiffio.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
26382 (
26383 cat <<\_ASBOX
ac1cb8d3
VS
26384## ----------------------------------------- ##
26385## Report this to wx-dev@lists.wxwidgets.org ##
26386## ----------------------------------------- ##
a848cd7e
SC
26387_ASBOX
26388 ) |
26389 sed "s/^/$as_me: WARNING: /" >&2
26390 ;;
26391esac
26392echo "$as_me:$LINENO: checking for tiffio.h" >&5
26393echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
26394if test "${ac_cv_header_tiffio_h+set}" = set; then
26395 echo $ECHO_N "(cached) $ECHO_C" >&6
26396else
26397 ac_cv_header_tiffio_h=$ac_header_preproc
26398fi
26399echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
26400echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
26401
26402fi
26403if test $ac_cv_header_tiffio_h = yes; then
26404
26405 echo "$as_me:$LINENO: checking for TIFFError in -ltiff" >&5
26406echo $ECHO_N "checking for TIFFError in -ltiff... $ECHO_C" >&6
26407if test "${ac_cv_lib_tiff_TIFFError+set}" = set; then
26408 echo $ECHO_N "(cached) $ECHO_C" >&6
26409else
26410 ac_check_lib_save_LIBS=$LIBS
26411LIBS="-ltiff $TIFF_PREREQ_LINKS $LIBS"
26412cat >conftest.$ac_ext <<_ACEOF
26413/* confdefs.h. */
26414_ACEOF
26415cat confdefs.h >>conftest.$ac_ext
26416cat >>conftest.$ac_ext <<_ACEOF
26417/* end confdefs.h. */
26418
26419/* Override any gcc2 internal prototype to avoid an error. */
26420#ifdef __cplusplus
26421extern "C"
26422#endif
26423/* We use char because int might match the return type of a gcc2
26424 builtin and then its argument prototype would still apply. */
26425char TIFFError ();
26426int
26427main ()
26428{
26429TIFFError ();
26430 ;
26431 return 0;
26432}
26433_ACEOF
26434rm -f conftest.$ac_objext conftest$ac_exeext
26435if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 26436 (eval $ac_link) 2>conftest.er1
a848cd7e 26437 ac_status=$?
ac1cb8d3
VS
26438 grep -v '^ *+' conftest.er1 >conftest.err
26439 rm -f conftest.er1
26440 cat conftest.err >&5
a848cd7e
SC
26441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26442 (exit $ac_status); } &&
479c790c 26443 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
26444 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26445 (eval $ac_try) 2>&5
26446 ac_status=$?
26447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26448 (exit $ac_status); }; } &&
26449 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
26450 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26451 (eval $ac_try) 2>&5
26452 ac_status=$?
26453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26454 (exit $ac_status); }; }; then
26455 ac_cv_lib_tiff_TIFFError=yes
26456else
26457 echo "$as_me: failed program was:" >&5
26458sed 's/^/| /' conftest.$ac_ext >&5
26459
26460ac_cv_lib_tiff_TIFFError=no
26461fi
ac1cb8d3
VS
26462rm -f conftest.err conftest.$ac_objext \
26463 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
26464LIBS=$ac_check_lib_save_LIBS
26465fi
26466echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFError" >&5
26467echo "${ECHO_T}$ac_cv_lib_tiff_TIFFError" >&6
26468if test $ac_cv_lib_tiff_TIFFError = yes; then
26469 TIFF_LINK=" -ltiff"
26470fi
26471
26472
26473
26474fi
26475
26476
26477
26478 if test "x$TIFF_LINK" = "x" ; then
26479 if test "$wxUSE_LIBTIFF" = "sys" ; then
26480 { { echo "$as_me:$LINENO: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" >&5
26481echo "$as_me: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" >&2;}
26482 { (exit 1); exit 1; }; }
26483 else
26484 { echo "$as_me:$LINENO: WARNING: system tiff library not found, will use built-in instead" >&5
26485echo "$as_me: WARNING: system tiff library not found, will use built-in instead" >&2;}
26486 wxUSE_LIBTIFF=builtin
26487 fi
26488 else
26489 wxUSE_LIBTIFF=sys
26490 fi
26491 fi
26492fi
26493
26494
47a7e797
MW
26495if test "$wxUSE_WCHAR_T" != "yes"; then
26496 if test "$wxUSE_EXPAT" != "no"; then
26497 { echo "$as_me:$LINENO: WARNING: wxWidgets requires wchar_t to use expat, disabling" >&5
26498echo "$as_me: WARNING: wxWidgets requires wchar_t to use expat, disabling" >&2;}
26499 wxUSE_EXPAT=no
26500 fi
26501 if test "$wxUSE_XML" != "no"; then
26502 { echo "$as_me:$LINENO: WARNING: wxWidgets requires wchar_t to use xml, disabling" >&5
26503echo "$as_me: WARNING: wxWidgets requires wchar_t to use xml, disabling" >&2;}
26504 wxUSE_XML=no
26505 fi
26506fi
26507
a848cd7e
SC
26508if test "$wxUSE_EXPAT" != "no"; then
26509 wxUSE_XML=yes
26510 cat >>confdefs.h <<\_ACEOF
26511#define wxUSE_EXPAT 1
26512_ACEOF
26513
26514 cat >>confdefs.h <<\_ACEOF
26515#define wxUSE_XML 1
26516_ACEOF
26517
26518
26519 if test "$wxUSE_EXPAT" = "sys" -o "$wxUSE_EXPAT" = "yes" ; then
26520 if test "${ac_cv_header_expat_h+set}" = set; then
26521 echo "$as_me:$LINENO: checking for expat.h" >&5
26522echo $ECHO_N "checking for expat.h... $ECHO_C" >&6
26523if test "${ac_cv_header_expat_h+set}" = set; then
26524 echo $ECHO_N "(cached) $ECHO_C" >&6
26525fi
26526echo "$as_me:$LINENO: result: $ac_cv_header_expat_h" >&5
26527echo "${ECHO_T}$ac_cv_header_expat_h" >&6
26528else
26529 # Is the header compilable?
26530echo "$as_me:$LINENO: checking expat.h usability" >&5
26531echo $ECHO_N "checking expat.h usability... $ECHO_C" >&6
26532cat >conftest.$ac_ext <<_ACEOF
26533/* confdefs.h. */
26534_ACEOF
26535cat confdefs.h >>conftest.$ac_ext
26536cat >>conftest.$ac_ext <<_ACEOF
26537/* end confdefs.h. */
26538$ac_includes_default
26539#include <expat.h>
26540_ACEOF
26541rm -f conftest.$ac_objext
26542if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 26543 (eval $ac_compile) 2>conftest.er1
a848cd7e 26544 ac_status=$?
ac1cb8d3
VS
26545 grep -v '^ *+' conftest.er1 >conftest.err
26546 rm -f conftest.er1
26547 cat conftest.err >&5
a848cd7e
SC
26548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26549 (exit $ac_status); } &&
479c790c 26550 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
26551 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26552 (eval $ac_try) 2>&5
26553 ac_status=$?
26554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26555 (exit $ac_status); }; } &&
26556 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
26557 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26558 (eval $ac_try) 2>&5
26559 ac_status=$?
26560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26561 (exit $ac_status); }; }; then
26562 ac_header_compiler=yes
26563else
26564 echo "$as_me: failed program was:" >&5
26565sed 's/^/| /' conftest.$ac_ext >&5
26566
26567ac_header_compiler=no
26568fi
ac1cb8d3 26569rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
26570echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26571echo "${ECHO_T}$ac_header_compiler" >&6
26572
26573# Is the header present?
26574echo "$as_me:$LINENO: checking expat.h presence" >&5
26575echo $ECHO_N "checking expat.h presence... $ECHO_C" >&6
26576cat >conftest.$ac_ext <<_ACEOF
26577/* confdefs.h. */
26578_ACEOF
26579cat confdefs.h >>conftest.$ac_ext
26580cat >>conftest.$ac_ext <<_ACEOF
26581/* end confdefs.h. */
26582#include <expat.h>
26583_ACEOF
26584if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26585 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26586 ac_status=$?
26587 grep -v '^ *+' conftest.er1 >conftest.err
26588 rm -f conftest.er1
26589 cat conftest.err >&5
26590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26591 (exit $ac_status); } >/dev/null; then
26592 if test -s conftest.err; then
5d7b7554
VZ
26593 ac_cpp_err=$ac_cxx_preproc_warn_flag
26594 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
26595 else
26596 ac_cpp_err=
26597 fi
26598else
26599 ac_cpp_err=yes
26600fi
26601if test -z "$ac_cpp_err"; then
26602 ac_header_preproc=yes
26603else
26604 echo "$as_me: failed program was:" >&5
26605sed 's/^/| /' conftest.$ac_ext >&5
26606
26607 ac_header_preproc=no
26608fi
26609rm -f conftest.err conftest.$ac_ext
26610echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26611echo "${ECHO_T}$ac_header_preproc" >&6
26612
26613# So? What about this header?
5d7b7554 26614case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
ac1cb8d3 26615 yes:no: )
a848cd7e
SC
26616 { echo "$as_me:$LINENO: WARNING: expat.h: accepted by the compiler, rejected by the preprocessor!" >&5
26617echo "$as_me: WARNING: expat.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
26618 { echo "$as_me:$LINENO: WARNING: expat.h: proceeding with the compiler's result" >&5
26619echo "$as_me: WARNING: expat.h: proceeding with the compiler's result" >&2;}
26620 ac_header_preproc=yes
a848cd7e 26621 ;;
ac1cb8d3 26622 no:yes:* )
a848cd7e
SC
26623 { echo "$as_me:$LINENO: WARNING: expat.h: present but cannot be compiled" >&5
26624echo "$as_me: WARNING: expat.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
26625 { echo "$as_me:$LINENO: WARNING: expat.h: check for missing prerequisite headers?" >&5
26626echo "$as_me: WARNING: expat.h: check for missing prerequisite headers?" >&2;}
26627 { echo "$as_me:$LINENO: WARNING: expat.h: see the Autoconf documentation" >&5
26628echo "$as_me: WARNING: expat.h: see the Autoconf documentation" >&2;}
26629 { echo "$as_me:$LINENO: WARNING: expat.h: section \"Present But Cannot Be Compiled\"" >&5
26630echo "$as_me: WARNING: expat.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
26631 { echo "$as_me:$LINENO: WARNING: expat.h: proceeding with the preprocessor's result" >&5
26632echo "$as_me: WARNING: expat.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
26633 { echo "$as_me:$LINENO: WARNING: expat.h: in the future, the compiler will take precedence" >&5
26634echo "$as_me: WARNING: expat.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
26635 (
26636 cat <<\_ASBOX
ac1cb8d3
VS
26637## ----------------------------------------- ##
26638## Report this to wx-dev@lists.wxwidgets.org ##
26639## ----------------------------------------- ##
a848cd7e
SC
26640_ASBOX
26641 ) |
26642 sed "s/^/$as_me: WARNING: /" >&2
26643 ;;
26644esac
26645echo "$as_me:$LINENO: checking for expat.h" >&5
26646echo $ECHO_N "checking for expat.h... $ECHO_C" >&6
26647if test "${ac_cv_header_expat_h+set}" = set; then
26648 echo $ECHO_N "(cached) $ECHO_C" >&6
26649else
26650 ac_cv_header_expat_h=$ac_header_preproc
26651fi
26652echo "$as_me:$LINENO: result: $ac_cv_header_expat_h" >&5
26653echo "${ECHO_T}$ac_cv_header_expat_h" >&6
26654
26655fi
26656if test $ac_cv_header_expat_h = yes; then
26657 found_expat_h=1
26658fi
26659
26660
26661 if test "x$found_expat_h" = "x1"; then
26662 echo "$as_me:$LINENO: checking if expat.h is valid C++ header" >&5
26663echo $ECHO_N "checking if expat.h is valid C++ header... $ECHO_C" >&6
26664if test "${wx_cv_expat_is_not_broken+set}" = set; then
26665 echo $ECHO_N "(cached) $ECHO_C" >&6
26666else
26667
a848cd7e
SC
26668 cat >conftest.$ac_ext <<_ACEOF
26669/* confdefs.h. */
26670_ACEOF
26671cat confdefs.h >>conftest.$ac_ext
26672cat >>conftest.$ac_ext <<_ACEOF
26673/* end confdefs.h. */
26674#include <expat.h>
26675int
26676main ()
26677{
26678
26679 ;
26680 return 0;
26681}
26682_ACEOF
26683rm -f conftest.$ac_objext
26684if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 26685 (eval $ac_compile) 2>conftest.er1
a848cd7e 26686 ac_status=$?
ac1cb8d3
VS
26687 grep -v '^ *+' conftest.er1 >conftest.err
26688 rm -f conftest.er1
26689 cat conftest.err >&5
a848cd7e
SC
26690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26691 (exit $ac_status); } &&
479c790c 26692 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
26693 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26694 (eval $ac_try) 2>&5
26695 ac_status=$?
26696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26697 (exit $ac_status); }; } &&
26698 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
26699 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26700 (eval $ac_try) 2>&5
26701 ac_status=$?
26702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26703 (exit $ac_status); }; }; then
26704 wx_cv_expat_is_not_broken=yes
26705else
26706 echo "$as_me: failed program was:" >&5
26707sed 's/^/| /' conftest.$ac_ext >&5
26708
26709wx_cv_expat_is_not_broken=no
26710
26711fi
ac1cb8d3 26712rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
26713
26714
26715fi
26716echo "$as_me:$LINENO: result: $wx_cv_expat_is_not_broken" >&5
26717echo "${ECHO_T}$wx_cv_expat_is_not_broken" >&6
26718 if test "$wx_cv_expat_is_not_broken" = "yes" ; then
26719 echo "$as_me:$LINENO: checking for XML_ParserCreate in -lexpat" >&5
26720echo $ECHO_N "checking for XML_ParserCreate in -lexpat... $ECHO_C" >&6
26721if test "${ac_cv_lib_expat_XML_ParserCreate+set}" = set; then
26722 echo $ECHO_N "(cached) $ECHO_C" >&6
26723else
26724 ac_check_lib_save_LIBS=$LIBS
26725LIBS="-lexpat $LIBS"
26726cat >conftest.$ac_ext <<_ACEOF
26727/* confdefs.h. */
26728_ACEOF
26729cat confdefs.h >>conftest.$ac_ext
26730cat >>conftest.$ac_ext <<_ACEOF
26731/* end confdefs.h. */
26732
26733/* Override any gcc2 internal prototype to avoid an error. */
26734#ifdef __cplusplus
26735extern "C"
26736#endif
26737/* We use char because int might match the return type of a gcc2
26738 builtin and then its argument prototype would still apply. */
26739char XML_ParserCreate ();
26740int
26741main ()
26742{
26743XML_ParserCreate ();
26744 ;
26745 return 0;
26746}
26747_ACEOF
26748rm -f conftest.$ac_objext conftest$ac_exeext
26749if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 26750 (eval $ac_link) 2>conftest.er1
a848cd7e 26751 ac_status=$?
ac1cb8d3
VS
26752 grep -v '^ *+' conftest.er1 >conftest.err
26753 rm -f conftest.er1
26754 cat conftest.err >&5
a848cd7e
SC
26755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26756 (exit $ac_status); } &&
479c790c 26757 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
26758 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26759 (eval $ac_try) 2>&5
26760 ac_status=$?
26761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26762 (exit $ac_status); }; } &&
26763 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
26764 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26765 (eval $ac_try) 2>&5
26766 ac_status=$?
26767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26768 (exit $ac_status); }; }; then
26769 ac_cv_lib_expat_XML_ParserCreate=yes
26770else
26771 echo "$as_me: failed program was:" >&5
26772sed 's/^/| /' conftest.$ac_ext >&5
26773
26774ac_cv_lib_expat_XML_ParserCreate=no
26775fi
ac1cb8d3
VS
26776rm -f conftest.err conftest.$ac_objext \
26777 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
26778LIBS=$ac_check_lib_save_LIBS
26779fi
26780echo "$as_me:$LINENO: result: $ac_cv_lib_expat_XML_ParserCreate" >&5
26781echo "${ECHO_T}$ac_cv_lib_expat_XML_ParserCreate" >&6
26782if test $ac_cv_lib_expat_XML_ParserCreate = yes; then
26783 EXPAT_LINK=" -lexpat"
26784fi
26785
26786 fi
26787 fi
26788 if test "x$EXPAT_LINK" = "x" ; then
26789 if test "$wxUSE_EXPAT" = "sys" ; then
26790 { { echo "$as_me:$LINENO: error: system expat library not found! Use --with-expat=builtin to use built-in version" >&5
26791echo "$as_me: error: system expat library not found! Use --with-expat=builtin to use built-in version" >&2;}
26792 { (exit 1); exit 1; }; }
26793 else
26794 { echo "$as_me:$LINENO: WARNING: system expat library not found, will use built-in instead" >&5
26795echo "$as_me: WARNING: system expat library not found, will use built-in instead" >&2;}
26796 wxUSE_EXPAT=builtin
26797 fi
26798 else
26799 wxUSE_EXPAT=sys
26800 fi
26801 fi
26802 if test "$wxUSE_EXPAT" = "builtin" ; then
26803
26804
26805subdirs="$subdirs src/expat"
26806
26807 fi
26808fi
26809
26810
26811
26812if test "$wxUSE_LIBMSPACK" != "no"; then
a848cd7e
SC
26813 if test "${ac_cv_header_mspack_h+set}" = set; then
26814 echo "$as_me:$LINENO: checking for mspack.h" >&5
26815echo $ECHO_N "checking for mspack.h... $ECHO_C" >&6
26816if test "${ac_cv_header_mspack_h+set}" = set; then
26817 echo $ECHO_N "(cached) $ECHO_C" >&6
26818fi
26819echo "$as_me:$LINENO: result: $ac_cv_header_mspack_h" >&5
26820echo "${ECHO_T}$ac_cv_header_mspack_h" >&6
26821else
26822 # Is the header compilable?
26823echo "$as_me:$LINENO: checking mspack.h usability" >&5
26824echo $ECHO_N "checking mspack.h usability... $ECHO_C" >&6
26825cat >conftest.$ac_ext <<_ACEOF
26826/* confdefs.h. */
26827_ACEOF
26828cat confdefs.h >>conftest.$ac_ext
26829cat >>conftest.$ac_ext <<_ACEOF
26830/* end confdefs.h. */
26831$ac_includes_default
26832#include <mspack.h>
26833_ACEOF
26834rm -f conftest.$ac_objext
26835if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 26836 (eval $ac_compile) 2>conftest.er1
a848cd7e 26837 ac_status=$?
ac1cb8d3
VS
26838 grep -v '^ *+' conftest.er1 >conftest.err
26839 rm -f conftest.er1
26840 cat conftest.err >&5
a848cd7e
SC
26841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26842 (exit $ac_status); } &&
479c790c 26843 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
26844 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26845 (eval $ac_try) 2>&5
26846 ac_status=$?
26847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26848 (exit $ac_status); }; } &&
26849 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
26850 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26851 (eval $ac_try) 2>&5
26852 ac_status=$?
26853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26854 (exit $ac_status); }; }; then
26855 ac_header_compiler=yes
26856else
26857 echo "$as_me: failed program was:" >&5
26858sed 's/^/| /' conftest.$ac_ext >&5
26859
26860ac_header_compiler=no
26861fi
ac1cb8d3 26862rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
26863echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26864echo "${ECHO_T}$ac_header_compiler" >&6
26865
26866# Is the header present?
26867echo "$as_me:$LINENO: checking mspack.h presence" >&5
26868echo $ECHO_N "checking mspack.h presence... $ECHO_C" >&6
26869cat >conftest.$ac_ext <<_ACEOF
26870/* confdefs.h. */
26871_ACEOF
26872cat confdefs.h >>conftest.$ac_ext
26873cat >>conftest.$ac_ext <<_ACEOF
26874/* end confdefs.h. */
26875#include <mspack.h>
26876_ACEOF
26877if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26878 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26879 ac_status=$?
26880 grep -v '^ *+' conftest.er1 >conftest.err
26881 rm -f conftest.er1
26882 cat conftest.err >&5
26883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26884 (exit $ac_status); } >/dev/null; then
26885 if test -s conftest.err; then
5d7b7554
VZ
26886 ac_cpp_err=$ac_cxx_preproc_warn_flag
26887 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
26888 else
26889 ac_cpp_err=
26890 fi
26891else
26892 ac_cpp_err=yes
26893fi
26894if test -z "$ac_cpp_err"; then
26895 ac_header_preproc=yes
26896else
26897 echo "$as_me: failed program was:" >&5
26898sed 's/^/| /' conftest.$ac_ext >&5
26899
26900 ac_header_preproc=no
26901fi
26902rm -f conftest.err conftest.$ac_ext
26903echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26904echo "${ECHO_T}$ac_header_preproc" >&6
26905
26906# So? What about this header?
5d7b7554 26907case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
ac1cb8d3 26908 yes:no: )
a848cd7e
SC
26909 { echo "$as_me:$LINENO: WARNING: mspack.h: accepted by the compiler, rejected by the preprocessor!" >&5
26910echo "$as_me: WARNING: mspack.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
26911 { echo "$as_me:$LINENO: WARNING: mspack.h: proceeding with the compiler's result" >&5
26912echo "$as_me: WARNING: mspack.h: proceeding with the compiler's result" >&2;}
26913 ac_header_preproc=yes
a848cd7e 26914 ;;
ac1cb8d3 26915 no:yes:* )
a848cd7e
SC
26916 { echo "$as_me:$LINENO: WARNING: mspack.h: present but cannot be compiled" >&5
26917echo "$as_me: WARNING: mspack.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
26918 { echo "$as_me:$LINENO: WARNING: mspack.h: check for missing prerequisite headers?" >&5
26919echo "$as_me: WARNING: mspack.h: check for missing prerequisite headers?" >&2;}
26920 { echo "$as_me:$LINENO: WARNING: mspack.h: see the Autoconf documentation" >&5
26921echo "$as_me: WARNING: mspack.h: see the Autoconf documentation" >&2;}
26922 { echo "$as_me:$LINENO: WARNING: mspack.h: section \"Present But Cannot Be Compiled\"" >&5
26923echo "$as_me: WARNING: mspack.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
26924 { echo "$as_me:$LINENO: WARNING: mspack.h: proceeding with the preprocessor's result" >&5
26925echo "$as_me: WARNING: mspack.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
26926 { echo "$as_me:$LINENO: WARNING: mspack.h: in the future, the compiler will take precedence" >&5
26927echo "$as_me: WARNING: mspack.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
26928 (
26929 cat <<\_ASBOX
ac1cb8d3
VS
26930## ----------------------------------------- ##
26931## Report this to wx-dev@lists.wxwidgets.org ##
26932## ----------------------------------------- ##
a848cd7e
SC
26933_ASBOX
26934 ) |
26935 sed "s/^/$as_me: WARNING: /" >&2
26936 ;;
26937esac
26938echo "$as_me:$LINENO: checking for mspack.h" >&5
26939echo $ECHO_N "checking for mspack.h... $ECHO_C" >&6
26940if test "${ac_cv_header_mspack_h+set}" = set; then
26941 echo $ECHO_N "(cached) $ECHO_C" >&6
26942else
26943 ac_cv_header_mspack_h=$ac_header_preproc
26944fi
26945echo "$as_me:$LINENO: result: $ac_cv_header_mspack_h" >&5
26946echo "${ECHO_T}$ac_cv_header_mspack_h" >&6
26947
26948fi
26949if test $ac_cv_header_mspack_h = yes; then
26950 found_mspack_h=1
26951fi
26952
26953
26954 if test "x$found_mspack_h" = "x1"; then
26955 echo "$as_me:$LINENO: checking for mspack_create_chm_decompressor in -lmspack" >&5
26956echo $ECHO_N "checking for mspack_create_chm_decompressor in -lmspack... $ECHO_C" >&6
26957if test "${ac_cv_lib_mspack_mspack_create_chm_decompressor+set}" = set; then
26958 echo $ECHO_N "(cached) $ECHO_C" >&6
26959else
26960 ac_check_lib_save_LIBS=$LIBS
26961LIBS="-lmspack $LIBS"
26962cat >conftest.$ac_ext <<_ACEOF
26963/* confdefs.h. */
26964_ACEOF
26965cat confdefs.h >>conftest.$ac_ext
26966cat >>conftest.$ac_ext <<_ACEOF
26967/* end confdefs.h. */
26968
26969/* Override any gcc2 internal prototype to avoid an error. */
26970#ifdef __cplusplus
26971extern "C"
26972#endif
26973/* We use char because int might match the return type of a gcc2
26974 builtin and then its argument prototype would still apply. */
26975char mspack_create_chm_decompressor ();
26976int
26977main ()
26978{
26979mspack_create_chm_decompressor ();
26980 ;
26981 return 0;
26982}
26983_ACEOF
26984rm -f conftest.$ac_objext conftest$ac_exeext
26985if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 26986 (eval $ac_link) 2>conftest.er1
a848cd7e 26987 ac_status=$?
ac1cb8d3
VS
26988 grep -v '^ *+' conftest.er1 >conftest.err
26989 rm -f conftest.er1
26990 cat conftest.err >&5
a848cd7e
SC
26991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26992 (exit $ac_status); } &&
479c790c 26993 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
26994 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26995 (eval $ac_try) 2>&5
26996 ac_status=$?
26997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26998 (exit $ac_status); }; } &&
26999 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
27000 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27001 (eval $ac_try) 2>&5
27002 ac_status=$?
27003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27004 (exit $ac_status); }; }; then
27005 ac_cv_lib_mspack_mspack_create_chm_decompressor=yes
27006else
27007 echo "$as_me: failed program was:" >&5
27008sed 's/^/| /' conftest.$ac_ext >&5
27009
27010ac_cv_lib_mspack_mspack_create_chm_decompressor=no
27011fi
ac1cb8d3
VS
27012rm -f conftest.err conftest.$ac_objext \
27013 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
27014LIBS=$ac_check_lib_save_LIBS
27015fi
27016echo "$as_me:$LINENO: result: $ac_cv_lib_mspack_mspack_create_chm_decompressor" >&5
27017echo "${ECHO_T}$ac_cv_lib_mspack_mspack_create_chm_decompressor" >&6
27018if test $ac_cv_lib_mspack_mspack_create_chm_decompressor = yes; then
27019 MSPACK_LINK=" -lmspack"
27020fi
27021
27022 fi
27023 if test "x$MSPACK_LINK" = "x" ; then
27024 wxUSE_LIBMSPACK=no
dd3a2d96
VZ
27025 fi
27026fi
27027
27028if test "$wxUSE_LIBMSPACK" != "no"; then
27029 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
27030#define wxUSE_LIBMSPACK 1
27031_ACEOF
27032
a848cd7e
SC
27033fi
27034
27035
27036
27037AFMINSTALL=
27038WIN32INSTALL=
27039
27040TOOLKIT=
27041TOOLKIT_INCLUDE=
27042WIDGET_SET=
27043
27044if test "$USE_WIN32" = 1 ; then
27045
27046for ac_header in w32api.h
27047do
27048as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
27049if eval "test \"\${$as_ac_Header+set}\" = set"; then
27050 echo "$as_me:$LINENO: checking for $ac_header" >&5
27051echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27052if eval "test \"\${$as_ac_Header+set}\" = set"; then
27053 echo $ECHO_N "(cached) $ECHO_C" >&6
27054fi
27055echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27056echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27057else
27058 # Is the header compilable?
27059echo "$as_me:$LINENO: checking $ac_header usability" >&5
27060echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
27061cat >conftest.$ac_ext <<_ACEOF
27062/* confdefs.h. */
27063_ACEOF
27064cat confdefs.h >>conftest.$ac_ext
27065cat >>conftest.$ac_ext <<_ACEOF
27066/* end confdefs.h. */
27067$ac_includes_default
27068#include <$ac_header>
27069_ACEOF
27070rm -f conftest.$ac_objext
27071if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 27072 (eval $ac_compile) 2>conftest.er1
a848cd7e 27073 ac_status=$?
ac1cb8d3
VS
27074 grep -v '^ *+' conftest.er1 >conftest.err
27075 rm -f conftest.er1
27076 cat conftest.err >&5
a848cd7e
SC
27077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27078 (exit $ac_status); } &&
479c790c 27079 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
27080 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27081 (eval $ac_try) 2>&5
27082 ac_status=$?
27083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27084 (exit $ac_status); }; } &&
27085 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
27086 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27087 (eval $ac_try) 2>&5
27088 ac_status=$?
27089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27090 (exit $ac_status); }; }; then
27091 ac_header_compiler=yes
27092else
27093 echo "$as_me: failed program was:" >&5
27094sed 's/^/| /' conftest.$ac_ext >&5
27095
27096ac_header_compiler=no
27097fi
ac1cb8d3 27098rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
27099echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27100echo "${ECHO_T}$ac_header_compiler" >&6
27101
27102# Is the header present?
27103echo "$as_me:$LINENO: checking $ac_header presence" >&5
27104echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
27105cat >conftest.$ac_ext <<_ACEOF
27106/* confdefs.h. */
27107_ACEOF
27108cat confdefs.h >>conftest.$ac_ext
27109cat >>conftest.$ac_ext <<_ACEOF
27110/* end confdefs.h. */
27111#include <$ac_header>
27112_ACEOF
27113if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
27114 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
27115 ac_status=$?
27116 grep -v '^ *+' conftest.er1 >conftest.err
27117 rm -f conftest.er1
27118 cat conftest.err >&5
27119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27120 (exit $ac_status); } >/dev/null; then
27121 if test -s conftest.err; then
5d7b7554
VZ
27122 ac_cpp_err=$ac_cxx_preproc_warn_flag
27123 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
27124 else
27125 ac_cpp_err=
27126 fi
27127else
27128 ac_cpp_err=yes
27129fi
27130if test -z "$ac_cpp_err"; then
27131 ac_header_preproc=yes
27132else
27133 echo "$as_me: failed program was:" >&5
27134sed 's/^/| /' conftest.$ac_ext >&5
27135
27136 ac_header_preproc=no
27137fi
27138rm -f conftest.err conftest.$ac_ext
27139echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27140echo "${ECHO_T}$ac_header_preproc" >&6
27141
27142# So? What about this header?
5d7b7554 27143case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
ac1cb8d3 27144 yes:no: )
a848cd7e
SC
27145 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
27146echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
27147 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
27148echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
27149 ac_header_preproc=yes
a848cd7e 27150 ;;
ac1cb8d3 27151 no:yes:* )
a848cd7e
SC
27152 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
27153echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
27154 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
27155echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
27156 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
27157echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
27158 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
27159echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
27160 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27161echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
27162 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
27163echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
27164 (
27165 cat <<\_ASBOX
ac1cb8d3
VS
27166## ----------------------------------------- ##
27167## Report this to wx-dev@lists.wxwidgets.org ##
27168## ----------------------------------------- ##
a848cd7e
SC
27169_ASBOX
27170 ) |
27171 sed "s/^/$as_me: WARNING: /" >&2
27172 ;;
27173esac
27174echo "$as_me:$LINENO: checking for $ac_header" >&5
27175echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27176if eval "test \"\${$as_ac_Header+set}\" = set"; then
27177 echo $ECHO_N "(cached) $ECHO_C" >&6
27178else
ac1cb8d3 27179 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
27180fi
27181echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27182echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27183
27184fi
27185if test `eval echo '${'$as_ac_Header'}'` = yes; then
27186 cat >>confdefs.h <<_ACEOF
27187#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27188_ACEOF
27189
27190fi
27191
27192done
27193
27194 if test "${ac_cv_header_windows_h+set}" = set; then
27195 echo "$as_me:$LINENO: checking for windows.h" >&5
27196echo $ECHO_N "checking for windows.h... $ECHO_C" >&6
27197if test "${ac_cv_header_windows_h+set}" = set; then
27198 echo $ECHO_N "(cached) $ECHO_C" >&6
27199fi
27200echo "$as_me:$LINENO: result: $ac_cv_header_windows_h" >&5
27201echo "${ECHO_T}$ac_cv_header_windows_h" >&6
27202else
27203 # Is the header compilable?
27204echo "$as_me:$LINENO: checking windows.h usability" >&5
27205echo $ECHO_N "checking windows.h usability... $ECHO_C" >&6
27206cat >conftest.$ac_ext <<_ACEOF
27207/* confdefs.h. */
27208_ACEOF
27209cat confdefs.h >>conftest.$ac_ext
27210cat >>conftest.$ac_ext <<_ACEOF
27211/* end confdefs.h. */
27212$ac_includes_default
27213#include <windows.h>
27214_ACEOF
27215rm -f conftest.$ac_objext
27216if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 27217 (eval $ac_compile) 2>conftest.er1
a848cd7e 27218 ac_status=$?
ac1cb8d3
VS
27219 grep -v '^ *+' conftest.er1 >conftest.err
27220 rm -f conftest.er1
27221 cat conftest.err >&5
a848cd7e
SC
27222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27223 (exit $ac_status); } &&
479c790c 27224 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
27225 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27226 (eval $ac_try) 2>&5
27227 ac_status=$?
27228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27229 (exit $ac_status); }; } &&
27230 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
27231 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27232 (eval $ac_try) 2>&5
27233 ac_status=$?
27234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27235 (exit $ac_status); }; }; then
27236 ac_header_compiler=yes
27237else
27238 echo "$as_me: failed program was:" >&5
27239sed 's/^/| /' conftest.$ac_ext >&5
27240
27241ac_header_compiler=no
27242fi
ac1cb8d3 27243rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
27244echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27245echo "${ECHO_T}$ac_header_compiler" >&6
27246
27247# Is the header present?
27248echo "$as_me:$LINENO: checking windows.h presence" >&5
27249echo $ECHO_N "checking windows.h presence... $ECHO_C" >&6
27250cat >conftest.$ac_ext <<_ACEOF
27251/* confdefs.h. */
27252_ACEOF
27253cat confdefs.h >>conftest.$ac_ext
27254cat >>conftest.$ac_ext <<_ACEOF
27255/* end confdefs.h. */
27256#include <windows.h>
27257_ACEOF
27258if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
27259 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
27260 ac_status=$?
27261 grep -v '^ *+' conftest.er1 >conftest.err
27262 rm -f conftest.er1
27263 cat conftest.err >&5
27264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27265 (exit $ac_status); } >/dev/null; then
27266 if test -s conftest.err; then
5d7b7554
VZ
27267 ac_cpp_err=$ac_cxx_preproc_warn_flag
27268 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
27269 else
27270 ac_cpp_err=
27271 fi
27272else
27273 ac_cpp_err=yes
27274fi
27275if test -z "$ac_cpp_err"; then
27276 ac_header_preproc=yes
27277else
27278 echo "$as_me: failed program was:" >&5
27279sed 's/^/| /' conftest.$ac_ext >&5
27280
27281 ac_header_preproc=no
27282fi
27283rm -f conftest.err conftest.$ac_ext
27284echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27285echo "${ECHO_T}$ac_header_preproc" >&6
27286
27287# So? What about this header?
5d7b7554 27288case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
ac1cb8d3 27289 yes:no: )
a848cd7e
SC
27290 { echo "$as_me:$LINENO: WARNING: windows.h: accepted by the compiler, rejected by the preprocessor!" >&5
27291echo "$as_me: WARNING: windows.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
27292 { echo "$as_me:$LINENO: WARNING: windows.h: proceeding with the compiler's result" >&5
27293echo "$as_me: WARNING: windows.h: proceeding with the compiler's result" >&2;}
27294 ac_header_preproc=yes
a848cd7e 27295 ;;
ac1cb8d3 27296 no:yes:* )
a848cd7e
SC
27297 { echo "$as_me:$LINENO: WARNING: windows.h: present but cannot be compiled" >&5
27298echo "$as_me: WARNING: windows.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
27299 { echo "$as_me:$LINENO: WARNING: windows.h: check for missing prerequisite headers?" >&5
27300echo "$as_me: WARNING: windows.h: check for missing prerequisite headers?" >&2;}
27301 { echo "$as_me:$LINENO: WARNING: windows.h: see the Autoconf documentation" >&5
27302echo "$as_me: WARNING: windows.h: see the Autoconf documentation" >&2;}
27303 { echo "$as_me:$LINENO: WARNING: windows.h: section \"Present But Cannot Be Compiled\"" >&5
27304echo "$as_me: WARNING: windows.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
27305 { echo "$as_me:$LINENO: WARNING: windows.h: proceeding with the preprocessor's result" >&5
27306echo "$as_me: WARNING: windows.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
27307 { echo "$as_me:$LINENO: WARNING: windows.h: in the future, the compiler will take precedence" >&5
27308echo "$as_me: WARNING: windows.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
27309 (
27310 cat <<\_ASBOX
ac1cb8d3
VS
27311## ----------------------------------------- ##
27312## Report this to wx-dev@lists.wxwidgets.org ##
27313## ----------------------------------------- ##
a848cd7e
SC
27314_ASBOX
27315 ) |
27316 sed "s/^/$as_me: WARNING: /" >&2
27317 ;;
27318esac
27319echo "$as_me:$LINENO: checking for windows.h" >&5
27320echo $ECHO_N "checking for windows.h... $ECHO_C" >&6
27321if test "${ac_cv_header_windows_h+set}" = set; then
27322 echo $ECHO_N "(cached) $ECHO_C" >&6
27323else
27324 ac_cv_header_windows_h=$ac_header_preproc
27325fi
27326echo "$as_me:$LINENO: result: $ac_cv_header_windows_h" >&5
27327echo "${ECHO_T}$ac_cv_header_windows_h" >&6
27328
27329fi
27330if test $ac_cv_header_windows_h = yes; then
27331 :
27332else
27333
27334 { { echo "$as_me:$LINENO: error: please set CFLAGS to contain the location of windows.h" >&5
27335echo "$as_me: error: please set CFLAGS to contain the location of windows.h" >&2;}
27336 { (exit 1); exit 1; }; }
27337
27338fi
27339
27340
27341
27342 LIBS="$LIBS -lwinspool -lwinmm -lshell32 -lcomctl32 -lcomdlg32 -lctl3d32 -ladvapi32 -lwsock32 -lgdi32"
27343
27344 if test "$wxUSE_ACCESSIBILITY" = "yes" ; then
27345 LIBS="$LIBS -loleacc"
27346 fi
27347
27348 case "${host}" in
27349 *-*-cygwin* )
27350 LIBS="$LIBS -lkernel32 -luser32"
a848cd7e
SC
27351 esac
27352
27353 if test "$wxUSE_ODBC" = "sys" ; then
27354 wxUSE_ODBC = "yes"
27355 fi
27356 if test "$wxUSE_ODBC" = "yes" ; then
27357 LIBS=" -lodbc32 -lole32 -loleaut32 $LIBS"
27358 cat >>confdefs.h <<\_ACEOF
27359#define wxUSE_ODBC 1
27360_ACEOF
27361
27362 fi
27363
370d2fd7 27364 RESFLAGS="--include-dir \$(top_srcdir)/include --include-dir \$(top_srcdir)/\$(program_dir) --define __WIN32__ --define __WIN95__ --define __GNUWIN32__"
a848cd7e
SC
27365 RESPROGRAMOBJ="\$(PROGRAM)_resources.o"
27366
004ee6da 27367 WXCONFIG_RESFLAGS="--define __WIN32__ --define __WIN95__ --define __GNUWIN32__"
370d2fd7 27368
a848cd7e 27369 WIN32INSTALL=win32install
5f41d1bf
MW
27370
27371 echo "$as_me:$LINENO: checking for boolean" >&5
27372echo $ECHO_N "checking for boolean... $ECHO_C" >&6
27373if test "${ac_cv_type_boolean+set}" = set; then
27374 echo $ECHO_N "(cached) $ECHO_C" >&6
27375else
27376 cat >conftest.$ac_ext <<_ACEOF
27377/* confdefs.h. */
27378_ACEOF
27379cat confdefs.h >>conftest.$ac_ext
27380cat >>conftest.$ac_ext <<_ACEOF
27381/* end confdefs.h. */
27382#include <windows.h>
27383
27384int
27385main ()
27386{
27387if ((boolean *) 0)
27388 return 0;
27389if (sizeof (boolean))
27390 return 0;
27391 ;
27392 return 0;
27393}
27394_ACEOF
27395rm -f conftest.$ac_objext
27396if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27397 (eval $ac_compile) 2>conftest.er1
27398 ac_status=$?
27399 grep -v '^ *+' conftest.er1 >conftest.err
27400 rm -f conftest.er1
27401 cat conftest.err >&5
27402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27403 (exit $ac_status); } &&
479c790c 27404 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5f41d1bf
MW
27405 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27406 (eval $ac_try) 2>&5
27407 ac_status=$?
27408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27409 (exit $ac_status); }; } &&
27410 { ac_try='test -s conftest.$ac_objext'
27411 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27412 (eval $ac_try) 2>&5
27413 ac_status=$?
27414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27415 (exit $ac_status); }; }; then
27416 ac_cv_type_boolean=yes
27417else
27418 echo "$as_me: failed program was:" >&5
27419sed 's/^/| /' conftest.$ac_ext >&5
27420
27421ac_cv_type_boolean=no
27422fi
27423rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27424fi
27425echo "$as_me:$LINENO: result: $ac_cv_type_boolean" >&5
27426echo "${ECHO_T}$ac_cv_type_boolean" >&6
27427if test $ac_cv_type_boolean = yes; then
27428
27429cat >>confdefs.h <<_ACEOF
27430#define HAVE_BOOLEAN 1
27431_ACEOF
27432
27433
27434fi
27435
dcfd4ac4
MW
27436
27437
27438for ac_header in pbt.h
27439do
27440as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
27441if eval "test \"\${$as_ac_Header+set}\" = set"; then
27442 echo "$as_me:$LINENO: checking for $ac_header" >&5
27443echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27444if eval "test \"\${$as_ac_Header+set}\" = set"; then
27445 echo $ECHO_N "(cached) $ECHO_C" >&6
27446fi
27447echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27448echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27449else
27450 # Is the header compilable?
27451echo "$as_me:$LINENO: checking $ac_header usability" >&5
27452echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
27453cat >conftest.$ac_ext <<_ACEOF
27454/* confdefs.h. */
27455_ACEOF
27456cat confdefs.h >>conftest.$ac_ext
27457cat >>conftest.$ac_ext <<_ACEOF
27458/* end confdefs.h. */
27459$ac_includes_default
27460#include <$ac_header>
27461_ACEOF
27462rm -f conftest.$ac_objext
27463if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27464 (eval $ac_compile) 2>conftest.er1
27465 ac_status=$?
27466 grep -v '^ *+' conftest.er1 >conftest.err
27467 rm -f conftest.er1
27468 cat conftest.err >&5
27469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27470 (exit $ac_status); } &&
479c790c 27471 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
dcfd4ac4
MW
27472 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27473 (eval $ac_try) 2>&5
27474 ac_status=$?
27475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27476 (exit $ac_status); }; } &&
27477 { ac_try='test -s conftest.$ac_objext'
27478 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27479 (eval $ac_try) 2>&5
27480 ac_status=$?
27481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27482 (exit $ac_status); }; }; then
27483 ac_header_compiler=yes
27484else
27485 echo "$as_me: failed program was:" >&5
27486sed 's/^/| /' conftest.$ac_ext >&5
27487
27488ac_header_compiler=no
27489fi
27490rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27491echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27492echo "${ECHO_T}$ac_header_compiler" >&6
27493
27494# Is the header present?
27495echo "$as_me:$LINENO: checking $ac_header presence" >&5
27496echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
27497cat >conftest.$ac_ext <<_ACEOF
27498/* confdefs.h. */
27499_ACEOF
27500cat confdefs.h >>conftest.$ac_ext
27501cat >>conftest.$ac_ext <<_ACEOF
27502/* end confdefs.h. */
27503#include <$ac_header>
27504_ACEOF
27505if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
27506 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
27507 ac_status=$?
27508 grep -v '^ *+' conftest.er1 >conftest.err
27509 rm -f conftest.er1
27510 cat conftest.err >&5
27511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27512 (exit $ac_status); } >/dev/null; then
27513 if test -s conftest.err; then
27514 ac_cpp_err=$ac_cxx_preproc_warn_flag
27515 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
27516 else
27517 ac_cpp_err=
27518 fi
27519else
27520 ac_cpp_err=yes
27521fi
27522if test -z "$ac_cpp_err"; then
27523 ac_header_preproc=yes
27524else
27525 echo "$as_me: failed program was:" >&5
27526sed 's/^/| /' conftest.$ac_ext >&5
27527
27528 ac_header_preproc=no
27529fi
27530rm -f conftest.err conftest.$ac_ext
27531echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27532echo "${ECHO_T}$ac_header_preproc" >&6
27533
27534# So? What about this header?
27535case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
27536 yes:no: )
27537 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
27538echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
27539 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
27540echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
27541 ac_header_preproc=yes
27542 ;;
27543 no:yes:* )
27544 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
27545echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
27546 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
27547echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
27548 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
27549echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
27550 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
27551echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
27552 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27553echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
27554 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
27555echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
27556 (
27557 cat <<\_ASBOX
27558## ----------------------------------------- ##
27559## Report this to wx-dev@lists.wxwidgets.org ##
27560## ----------------------------------------- ##
27561_ASBOX
27562 ) |
27563 sed "s/^/$as_me: WARNING: /" >&2
27564 ;;
27565esac
27566echo "$as_me:$LINENO: checking for $ac_header" >&5
27567echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27568if eval "test \"\${$as_ac_Header+set}\" = set"; then
27569 echo $ECHO_N "(cached) $ECHO_C" >&6
27570else
27571 eval "$as_ac_Header=\$ac_header_preproc"
27572fi
27573echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27574echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27575
27576fi
27577if test `eval echo '${'$as_ac_Header'}'` = yes; then
27578 cat >>confdefs.h <<_ACEOF
27579#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27580_ACEOF
27581
27582else
27583 cat >>confdefs.h <<\_ACEOF
27584#define NEED_PBT_H 1
27585_ACEOF
27586
27587fi
27588
27589done
27590
a848cd7e
SC
27591fi
27592
27593if test "$wxUSE_GUI" = "yes"; then
27594 USE_GUI=1
27595
27596 GUI_TK_LIBRARY=
27597
27598 WXGTK12=
27599 WXGTK127=
27600 WXGTK20=
27601 WXGPE=
27602
207bc66c
RN
27603 if test "$wxUSE_COCOA" = 1 ; then
27604 if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes"; then
27605 { echo "$as_me:$LINENO: WARNING: Printing not supported under wxCocoa yet, disabled" >&5
27606echo "$as_me: WARNING: Printing not supported under wxCocoa yet, disabled" >&2;}
27607 wxUSE_PRINTING_ARCHITECTURE=no
27608 fi
27609 if test "$wxUSE_DRAG_AND_DROP" = "yes"; then
27610 { echo "$as_me:$LINENO: WARNING: Drag and Drop not supported under wxCocoa yet, disabled" >&5
27611echo "$as_me: WARNING: Drag and Drop not supported under wxCocoa yet, disabled" >&2;}
27612 wxUSE_DRAG_AND_DROP=no
27613 fi
27614 if test "$wxUSE_DRAGIMAGE" = "yes"; then
27615 { echo "$as_me:$LINENO: WARNING: Drag Image and DandD not supported under wxCocoa yet, disabled" >&5
27616echo "$as_me: WARNING: Drag Image and DandD not supported under wxCocoa yet, disabled" >&2;}
27617 wxUSE_DRAGIMAGE=no
27618 fi
27619 fi
27620
a848cd7e
SC
27621 if test "$wxUSE_MSW" = 1 ; then
27622 TOOLKIT=MSW
27623 GUIDIST=MSW_DIST
27624
ceec2216 27625 case "${host}" in
a848cd7e
SC
27626 *-*-mingw32* )
27627 WXCONFIG_LDFLAGS_GUI="$LDFLAGS -Wl,--subsystem,windows -mwindows"
27628 esac
27629 fi
27630
27631 if test "$wxUSE_GTK" = 1; then
5d7b7554
VZ
27632 ac_ext=c
27633ac_cpp='$CPP $CPPFLAGS'
27634ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27635ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27636ac_compiler_gnu=$ac_cv_c_compiler_gnu
27637
27638
a848cd7e
SC
27639 echo "$as_me:$LINENO: checking for GTK+ version" >&5
27640echo $ECHO_N "checking for GTK+ version... $ECHO_C" >&6
27641
27642 gtk_version_cached=1
27643 if test "${wx_cv_lib_gtk+set}" = set; then
27644 echo $ECHO_N "(cached) $ECHO_C" >&6
27645else
27646
27647 gtk_version_cached=0
27648 echo "$as_me:$LINENO: result: " >&5
27649echo "${ECHO_T}" >&6
27650
27651 GTK_MODULES=
27652 if test "$wxUSE_THREADS" = "yes"; then
27653 GTK_MODULES=gthread
27654 fi
27655
f597b41c 27656 wx_cv_lib_gtk=
5001df0d
MW
27657 if test "x$wxGTK_VERSION" != "x1"
27658 then
27659 case "${host}" in
27660 *-*-solaris2* )
27661 if test "$wxUSE_THREADS" = "yes" -a "$GCC" = yes; then
5ff751d6 27662 enable_gtktest=no
5001df0d
MW
27663 fi
27664 esac
27665
a848cd7e
SC
27666 # Check whether --enable-gtktest or --disable-gtktest was given.
27667if test "${enable_gtktest+set}" = set; then
27668 enableval="$enable_gtktest"
27669
27670else
27671 enable_gtktest=yes
27672fi;
27673
27674 pkg_config_args=gtk+-2.0
27675 for module in . $GTK_MODULES
27676 do
27677 case "$module" in
27678 gthread)
27679 pkg_config_args="$pkg_config_args gthread-2.0"
27680 ;;
27681 esac
27682 done
27683
27684 no_gtk=""
27685
27686 # Extract the first word of "pkg-config", so it can be a program name with args.
27687set dummy pkg-config; ac_word=$2
27688echo "$as_me:$LINENO: checking for $ac_word" >&5
27689echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
27690if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
27691 echo $ECHO_N "(cached) $ECHO_C" >&6
27692else
27693 case $PKG_CONFIG in
27694 [\\/]* | ?:[\\/]*)
27695 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
27696 ;;
27697 *)
27698 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27699for as_dir in $PATH
27700do
27701 IFS=$as_save_IFS
27702 test -z "$as_dir" && as_dir=.
27703 for ac_exec_ext in '' $ac_executable_extensions; do
27704 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
27705 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
27706 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
27707 break 2
27708 fi
27709done
27710done
27711
27712 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
27713 ;;
27714esac
27715fi
27716PKG_CONFIG=$ac_cv_path_PKG_CONFIG
27717
27718if test -n "$PKG_CONFIG"; then
27719 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
27720echo "${ECHO_T}$PKG_CONFIG" >&6
27721else
27722 echo "$as_me:$LINENO: result: no" >&5
27723echo "${ECHO_T}no" >&6
27724fi
27725
27726
27727 if test x$PKG_CONFIG != xno ; then
27728 if pkg-config --atleast-pkgconfig-version 0.7 ; then
27729 :
27730 else
c2218763 27731 echo "*** pkg-config too old; version 0.7 or better required."
a848cd7e
SC
27732 no_gtk=yes
27733 PKG_CONFIG=no
27734 fi
27735 else
27736 no_gtk=yes
27737 fi
27738
27739 min_gtk_version=2.0.0
27740 echo "$as_me:$LINENO: checking for GTK+ - version >= $min_gtk_version" >&5
27741echo $ECHO_N "checking for GTK+ - version >= $min_gtk_version... $ECHO_C" >&6
27742
27743 if test x$PKG_CONFIG != xno ; then
27744 ## don't try to run the test against uninstalled libtool libs
27745 if $PKG_CONFIG --uninstalled $pkg_config_args; then
27746 echo "Will use uninstalled version of GTK+ found in PKG_CONFIG_PATH"
27747 enable_gtktest=no
27748 fi
27749
27750 if $PKG_CONFIG --atleast-version $min_gtk_version $pkg_config_args; then
27751 :
27752 else
27753 no_gtk=yes
27754 fi
27755 fi
27756
27757 if test x"$no_gtk" = x ; then
27758 GTK_CFLAGS=`$PKG_CONFIG $pkg_config_args --cflags`
27759 GTK_LIBS=`$PKG_CONFIG $pkg_config_args --libs`
27760 gtk_config_major_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
27761 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
27762 gtk_config_minor_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
27763 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
27764 gtk_config_micro_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
27765 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
27766 if test "x$enable_gtktest" = "xyes" ; then
27767 ac_save_CFLAGS="$CFLAGS"
27768 ac_save_LIBS="$LIBS"
27769 CFLAGS="$CFLAGS $GTK_CFLAGS"
27770 LIBS="$GTK_LIBS $LIBS"
27771 rm -f conf.gtktest
27772 if test "$cross_compiling" = yes; then
27773 echo $ac_n "cross compiling; assumed OK... $ac_c"
27774else
27775 cat >conftest.$ac_ext <<_ACEOF
27776/* confdefs.h. */
27777_ACEOF
27778cat confdefs.h >>conftest.$ac_ext
27779cat >>conftest.$ac_ext <<_ACEOF
27780/* end confdefs.h. */
27781
27782#include <gtk/gtk.h>
27783#include <stdio.h>
27784#include <stdlib.h>
27785
27786int
27787main ()
27788{
27789 int major, minor, micro;
27790 char *tmp_version;
27791
27792 system ("touch conf.gtktest");
27793
27794 /* HP/UX 9 (%@#!) writes to sscanf strings */
27795 tmp_version = g_strdup("$min_gtk_version");
27796 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
27797 printf("%s, bad version string\n", "$min_gtk_version");
27798 exit(1);
27799 }
27800
27801 if ((gtk_major_version != $gtk_config_major_version) ||
27802 (gtk_minor_version != $gtk_config_minor_version) ||
27803 (gtk_micro_version != $gtk_config_micro_version))
27804 {
27805 printf("\n*** 'pkg-config --modversion gtk+-2.0' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
27806 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
27807 gtk_major_version, gtk_minor_version, gtk_micro_version);
27808 printf ("*** was found! If pkg-config was correct, then it is best\n");
27809 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
27810 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
27811 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
27812 printf("*** required on your system.\n");
27813 printf("*** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH\n");
27814 printf("*** to point to the correct configuration files\n");
27815 }
27816 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
27817 (gtk_minor_version != GTK_MINOR_VERSION) ||
27818 (gtk_micro_version != GTK_MICRO_VERSION))
27819 {
27820 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
27821 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
27822 printf("*** library (version %d.%d.%d)\n",
27823 gtk_major_version, gtk_minor_version, gtk_micro_version);
27824 }
27825 else
27826 {
27827 if ((gtk_major_version > major) ||
27828 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
27829 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
27830 {
27831 return 0;
27832 }
27833 else
27834 {
27835 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
27836 gtk_major_version, gtk_minor_version, gtk_micro_version);
27837 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
27838 major, minor, micro);
27839 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
27840 printf("***\n");
27841 printf("*** If you have already installed a sufficiently new version, this error\n");
27842 printf("*** probably means that the wrong copy of the pkg-config shell script is\n");
27843 printf("*** being found. The easiest way to fix this is to remove the old version\n");
27844 printf("*** of GTK+, but you can also set the PKG_CONFIG environment to point to the\n");
27845 printf("*** correct copy of pkg-config. (In this case, you will have to\n");
27846 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
27847 printf("*** so that the correct libraries are found at run-time))\n");
27848 }
27849 }
27850 return 1;
27851}
27852
27853_ACEOF
27854rm -f conftest$ac_exeext
27855if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27856 (eval $ac_link) 2>&5
27857 ac_status=$?
27858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27859 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27860 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27861 (eval $ac_try) 2>&5
27862 ac_status=$?
27863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27864 (exit $ac_status); }; }; then
27865 :
27866else
27867 echo "$as_me: program exited with status $ac_status" >&5
27868echo "$as_me: failed program was:" >&5
27869sed 's/^/| /' conftest.$ac_ext >&5
27870
27871( exit $ac_status )
27872no_gtk=yes
27873fi
ac1cb8d3 27874rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
27875fi
27876 CFLAGS="$ac_save_CFLAGS"
27877 LIBS="$ac_save_LIBS"
27878 fi
27879 fi
27880 if test "x$no_gtk" = x ; then
27881 echo "$as_me:$LINENO: result: yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&5
27882echo "${ECHO_T}yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&6
27883 wx_cv_lib_gtk=2.0
27884 else
27885 echo "$as_me:$LINENO: result: no" >&5
27886echo "${ECHO_T}no" >&6
27887 if test "$PKG_CONFIG" = "no" ; then
27888 echo "*** A new enough version of pkg-config was not found."
27889 echo "*** See http://pkgconfig.sourceforge.net"
27890 else
27891 if test -f conf.gtktest ; then
27892 :
27893 else
27894 echo "*** Could not run GTK+ test program, checking why..."
27895 ac_save_CFLAGS="$CFLAGS"
27896 ac_save_LIBS="$LIBS"
27897 CFLAGS="$CFLAGS $GTK_CFLAGS"
27898 LIBS="$LIBS $GTK_LIBS"
27899 cat >conftest.$ac_ext <<_ACEOF
27900/* confdefs.h. */
27901_ACEOF
27902cat confdefs.h >>conftest.$ac_ext
27903cat >>conftest.$ac_ext <<_ACEOF
27904/* end confdefs.h. */
27905
27906#include <gtk/gtk.h>
27907#include <stdio.h>
27908
27909int
27910main ()
27911{
27912 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
27913 ;
27914 return 0;
27915}
27916_ACEOF
27917rm -f conftest.$ac_objext conftest$ac_exeext
27918if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 27919 (eval $ac_link) 2>conftest.er1
a848cd7e 27920 ac_status=$?
ac1cb8d3
VS
27921 grep -v '^ *+' conftest.er1 >conftest.err
27922 rm -f conftest.er1
27923 cat conftest.err >&5
a848cd7e
SC
27924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27925 (exit $ac_status); } &&
479c790c 27926 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
27927 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27928 (eval $ac_try) 2>&5
27929 ac_status=$?
27930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27931 (exit $ac_status); }; } &&
27932 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
27933 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27934 (eval $ac_try) 2>&5
27935 ac_status=$?
27936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27937 (exit $ac_status); }; }; then
27938 echo "*** The test program compiled, but did not run. This usually means"
27939 echo "*** that the run-time linker is not finding GTK+ or finding the wrong"
27940 echo "*** version of GTK+. If it is not finding GTK+, you'll need to set your"
27941 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
27942 echo "*** to the installed location Also, make sure you have run ldconfig if that"
27943 echo "*** is required on your system"
27944 echo "***"
27945 echo "*** If you have an old version installed, it is best to remove it, although"
27946 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
27947else
27948 echo "$as_me: failed program was:" >&5
27949sed 's/^/| /' conftest.$ac_ext >&5
27950
27951 echo "*** The test program failed to compile or link. See the file config.log for the"
27952 echo "*** exact error that occured. This usually means GTK+ is incorrectly installed."
27953fi
ac1cb8d3
VS
27954rm -f conftest.err conftest.$ac_objext \
27955 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
27956 CFLAGS="$ac_save_CFLAGS"
27957 LIBS="$ac_save_LIBS"
27958 fi
27959 fi
27960 GTK_CFLAGS=""
27961 GTK_LIBS=""
27962 :
27963 fi
27964
27965
27966 rm -f conf.gtktest
27967
5001df0d
MW
27968
27969 case "${host}" in
27970 *-*-solaris2* )
27971 if test "$wxUSE_THREADS" = "yes" -a "$GCC" = yes; then
27972 GTK_CFLAGS=`echo $GTK_CFLAGS | sed 's/-mt//'`
27973 GTK_LIBS=`echo $GTK_LIBS | sed 's/-mt//'`
27974 fi
27975 if test "$wxUSE_SHARED" != "yes"; then
27976 GTK_LIBS="$GTK_LIBS -lX11"
27977 fi
27978 esac
f597b41c
MW
27979 fi
27980
f34ca037
MW
27981 if test -z "$wx_cv_lib_gtk"; then
27982 if test "x$wxGTK_VERSION" = "x1" -o "x$wxGTK_VERSION" = "xany" ; then
a848cd7e
SC
27983
27984# Check whether --with-gtk-prefix or --without-gtk-prefix was given.
27985if test "${with_gtk_prefix+set}" = set; then
27986 withval="$with_gtk_prefix"
27987 gtk_config_prefix="$withval"
27988else
27989 gtk_config_prefix=""
27990fi;
27991
27992# Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
27993if test "${with_gtk_exec_prefix+set}" = set; then
27994 withval="$with_gtk_exec_prefix"
27995 gtk_config_exec_prefix="$withval"
27996else
27997 gtk_config_exec_prefix=""
27998fi;
27999# Check whether --enable-gtktest or --disable-gtktest was given.
28000if test "${enable_gtktest+set}" = set; then
28001 enableval="$enable_gtktest"
28002
28003else
28004 enable_gtktest=yes
28005fi;
28006
28007 for module in . $GTK_MODULES
28008 do
28009 case "$module" in
28010 gthread)
28011 gtk_config_args="$gtk_config_args gthread"
28012 ;;
28013 esac
28014 done
28015
28016 if test x$gtk_config_exec_prefix != x ; then
28017 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
28018 if test x${GTK_CONFIG+set} != xset ; then
28019 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
28020 fi
28021 fi
28022 if test x$gtk_config_prefix != x ; then
28023 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
28024 if test x${GTK_CONFIG+set} != xset ; then
28025 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
28026 fi
28027 fi
28028
28029 # Extract the first word of "gtk-config", so it can be a program name with args.
28030set dummy gtk-config; ac_word=$2
28031echo "$as_me:$LINENO: checking for $ac_word" >&5
28032echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
28033if test "${ac_cv_path_GTK_CONFIG+set}" = set; then
28034 echo $ECHO_N "(cached) $ECHO_C" >&6
28035else
28036 case $GTK_CONFIG in
28037 [\\/]* | ?:[\\/]*)
28038 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
28039 ;;
28040 *)
28041 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28042for as_dir in $PATH
28043do
28044 IFS=$as_save_IFS
28045 test -z "$as_dir" && as_dir=.
28046 for ac_exec_ext in '' $ac_executable_extensions; do
28047 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
28048 ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext"
28049 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
28050 break 2
28051 fi
28052done
28053done
28054
28055 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
28056 ;;
28057esac
28058fi
28059GTK_CONFIG=$ac_cv_path_GTK_CONFIG
28060
28061if test -n "$GTK_CONFIG"; then
28062 echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5
28063echo "${ECHO_T}$GTK_CONFIG" >&6
28064else
28065 echo "$as_me:$LINENO: result: no" >&5
28066echo "${ECHO_T}no" >&6
28067fi
28068
28069 min_gtk_version=1.2.7
28070 echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5
28071echo $ECHO_N "checking for GTK - version >= $min_gtk_version... $ECHO_C" >&6
28072 no_gtk=""
28073 if test "$GTK_CONFIG" = "no" ; then
28074 no_gtk=yes
28075 else
28076 GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
28077 GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
28078 gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
28079 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
28080 gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
28081 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
28082 gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
28083 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
28084 if test "x$enable_gtktest" = "xyes" ; then
28085 ac_save_CFLAGS="$CFLAGS"
28086 ac_save_LIBS="$LIBS"
28087 CFLAGS="$CFLAGS $GTK_CFLAGS"
28088 LIBS="$GTK_LIBS $LIBS"
28089 rm -f conf.gtktest
28090 if test "$cross_compiling" = yes; then
28091 echo $ac_n "cross compiling; assumed OK... $ac_c"
28092else
28093 cat >conftest.$ac_ext <<_ACEOF
28094/* confdefs.h. */
28095_ACEOF
28096cat confdefs.h >>conftest.$ac_ext
28097cat >>conftest.$ac_ext <<_ACEOF
28098/* end confdefs.h. */
28099
28100#include <gtk/gtk.h>
28101#include <stdio.h>
28102#include <stdlib.h>
28103
28104int
28105main ()
28106{
28107 int major, minor, micro;
28108 char *tmp_version;
28109
28110 system ("touch conf.gtktest");
28111
28112 /* HP/UX 9 (%@#!) writes to sscanf strings */
28113 tmp_version = g_strdup("$min_gtk_version");
28114 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
28115 printf("%s, bad version string\n", "$min_gtk_version");
28116 exit(1);
28117 }
28118
28119 if ((gtk_major_version != $gtk_config_major_version) ||
28120 (gtk_minor_version != $gtk_config_minor_version) ||
28121 (gtk_micro_version != $gtk_config_micro_version))
28122 {
28123 printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
28124 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
28125 gtk_major_version, gtk_minor_version, gtk_micro_version);
28126 printf ("*** was found! If gtk-config was correct, then it is best\n");
28127 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
28128 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
28129 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
28130 printf("*** required on your system.\n");
28131 printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
28132 printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
28133 printf("*** before re-running configure\n");
28134 }
28135#if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
28136 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
28137 (gtk_minor_version != GTK_MINOR_VERSION) ||
28138 (gtk_micro_version != GTK_MICRO_VERSION))
28139 {
28140 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
28141 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
28142 printf("*** library (version %d.%d.%d)\n",
28143 gtk_major_version, gtk_minor_version, gtk_micro_version);
28144 }
28145#endif /* defined (GTK_MAJOR_VERSION) ... */
28146 else
28147 {
28148 if ((gtk_major_version > major) ||
28149 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
28150 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
28151 {
28152 return 0;
28153 }
28154 else
28155 {
28156 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
28157 gtk_major_version, gtk_minor_version, gtk_micro_version);
28158 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
28159 major, minor, micro);
28160 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
28161 printf("***\n");
28162 printf("*** If you have already installed a sufficiently new version, this error\n");
28163 printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
28164 printf("*** being found. The easiest way to fix this is to remove the old version\n");
28165 printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
28166 printf("*** correct copy of gtk-config. (In this case, you will have to\n");
28167 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
28168 printf("*** so that the correct libraries are found at run-time))\n");
28169 }
28170 }
28171 return 1;
28172}
28173
28174_ACEOF
28175rm -f conftest$ac_exeext
28176if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28177 (eval $ac_link) 2>&5
28178 ac_status=$?
28179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28180 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28181 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28182 (eval $ac_try) 2>&5
28183 ac_status=$?
28184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28185 (exit $ac_status); }; }; then
28186 :
28187else
28188 echo "$as_me: program exited with status $ac_status" >&5
28189echo "$as_me: failed program was:" >&5
28190sed 's/^/| /' conftest.$ac_ext >&5
28191
28192( exit $ac_status )
28193no_gtk=yes
28194fi
ac1cb8d3 28195rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
28196fi
28197 CFLAGS="$ac_save_CFLAGS"
28198 LIBS="$ac_save_LIBS"
28199 fi
28200 fi
28201 if test "x$no_gtk" = x ; then
28202 echo "$as_me:$LINENO: result: yes" >&5
28203echo "${ECHO_T}yes" >&6
28204 wx_cv_lib_gtk=1.2.7
28205 else
28206 echo "$as_me:$LINENO: result: no" >&5
28207echo "${ECHO_T}no" >&6
28208 if test "$GTK_CONFIG" = "no" ; then
28209 echo "*** The gtk-config script installed by GTK could not be found"
28210 echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
28211 echo "*** your path, or set the GTK_CONFIG environment variable to the"
28212 echo "*** full path to gtk-config."
28213 else
28214 if test -f conf.gtktest ; then
28215 :
28216 else
28217 echo "*** Could not run GTK test program, checking why..."
28218 CFLAGS="$CFLAGS $GTK_CFLAGS"
28219 LIBS="$LIBS $GTK_LIBS"
28220 cat >conftest.$ac_ext <<_ACEOF
28221/* confdefs.h. */
28222_ACEOF
28223cat confdefs.h >>conftest.$ac_ext
28224cat >>conftest.$ac_ext <<_ACEOF
28225/* end confdefs.h. */
28226
28227#include <gtk/gtk.h>
28228#include <stdio.h>
28229
28230int
28231main ()
28232{
28233 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
28234 ;
28235 return 0;
28236}
28237_ACEOF
28238rm -f conftest.$ac_objext conftest$ac_exeext
28239if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 28240 (eval $ac_link) 2>conftest.er1
a848cd7e 28241 ac_status=$?
ac1cb8d3
VS
28242 grep -v '^ *+' conftest.er1 >conftest.err
28243 rm -f conftest.er1
28244 cat conftest.err >&5
a848cd7e
SC
28245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28246 (exit $ac_status); } &&
479c790c 28247 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
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); }; } &&
28253 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
28254 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28255 (eval $ac_try) 2>&5
28256 ac_status=$?
28257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28258 (exit $ac_status); }; }; then
28259 echo "*** The test program compiled, but did not run. This usually means"
28260 echo "*** that the run-time linker is not finding GTK or finding the wrong"
28261 echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
28262 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
28263 echo "*** to the installed location Also, make sure you have run ldconfig if that"
28264 echo "*** is required on your system"
28265 echo "***"
28266 echo "*** If you have an old version installed, it is best to remove it, although"
28267 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
28268 echo "***"
28269 echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
28270 echo "*** came with the system with the command"
28271 echo "***"
28272 echo "*** rpm --erase --nodeps gtk gtk-devel"
28273else
28274 echo "$as_me: failed program was:" >&5
28275sed 's/^/| /' conftest.$ac_ext >&5
28276
28277 echo "*** The test program failed to compile or link. See the file config.log for the"
28278 echo "*** exact error that occured. This usually means GTK was incorrectly installed"
28279 echo "*** or that you have moved GTK since it was installed. In the latter case, you"
28280 echo "*** may want to edit the gtk-config script: $GTK_CONFIG"
28281fi
ac1cb8d3
VS
28282rm -f conftest.err conftest.$ac_objext \
28283 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
28284 CFLAGS="$ac_save_CFLAGS"
28285 LIBS="$ac_save_LIBS"
28286 fi
28287 fi
28288 GTK_CFLAGS=""
28289 GTK_LIBS=""
28290 :
28291 fi
28292
28293
28294 rm -f conf.gtktest
28295
28296
f34ca037 28297 if test -z "$wx_cv_lib_gtk"; then
a848cd7e
SC
28298
28299# Check whether --with-gtk-prefix or --without-gtk-prefix was given.
28300if test "${with_gtk_prefix+set}" = set; then
28301 withval="$with_gtk_prefix"
28302 gtk_config_prefix="$withval"
28303else
28304 gtk_config_prefix=""
28305fi;
28306
28307# Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
28308if test "${with_gtk_exec_prefix+set}" = set; then
28309 withval="$with_gtk_exec_prefix"
28310 gtk_config_exec_prefix="$withval"
28311else
28312 gtk_config_exec_prefix=""
28313fi;
28314# Check whether --enable-gtktest or --disable-gtktest was given.
28315if test "${enable_gtktest+set}" = set; then
28316 enableval="$enable_gtktest"
28317
28318else
28319 enable_gtktest=yes
28320fi;
28321
28322 for module in . $GTK_MODULES
28323 do
28324 case "$module" in
28325 gthread)
28326 gtk_config_args="$gtk_config_args gthread"
28327 ;;
28328 esac
28329 done
28330
28331 if test x$gtk_config_exec_prefix != x ; then
28332 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
28333 if test x${GTK_CONFIG+set} != xset ; then
28334 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
28335 fi
28336 fi
28337 if test x$gtk_config_prefix != x ; then
28338 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
28339 if test x${GTK_CONFIG+set} != xset ; then
28340 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
28341 fi
28342 fi
28343
28344 # Extract the first word of "gtk-config", so it can be a program name with args.
28345set dummy gtk-config; ac_word=$2
28346echo "$as_me:$LINENO: checking for $ac_word" >&5
28347echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
28348if test "${ac_cv_path_GTK_CONFIG+set}" = set; then
28349 echo $ECHO_N "(cached) $ECHO_C" >&6
28350else
28351 case $GTK_CONFIG in
28352 [\\/]* | ?:[\\/]*)
28353 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
28354 ;;
28355 *)
28356 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28357for as_dir in $PATH
28358do
28359 IFS=$as_save_IFS
28360 test -z "$as_dir" && as_dir=.
28361 for ac_exec_ext in '' $ac_executable_extensions; do
28362 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
28363 ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext"
28364 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
28365 break 2
28366 fi
28367done
28368done
28369
28370 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
28371 ;;
28372esac
28373fi
28374GTK_CONFIG=$ac_cv_path_GTK_CONFIG
28375
28376if test -n "$GTK_CONFIG"; then
28377 echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5
28378echo "${ECHO_T}$GTK_CONFIG" >&6
28379else
28380 echo "$as_me:$LINENO: result: no" >&5
28381echo "${ECHO_T}no" >&6
28382fi
28383
28384 min_gtk_version=1.2.3
28385 echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5
28386echo $ECHO_N "checking for GTK - version >= $min_gtk_version... $ECHO_C" >&6
28387 no_gtk=""
28388 if test "$GTK_CONFIG" = "no" ; then
28389 no_gtk=yes
28390 else
28391 GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
28392 GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
28393 gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
28394 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
28395 gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
28396 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
28397 gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
28398 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
28399 if test "x$enable_gtktest" = "xyes" ; then
28400 ac_save_CFLAGS="$CFLAGS"
28401 ac_save_LIBS="$LIBS"
28402 CFLAGS="$CFLAGS $GTK_CFLAGS"
28403 LIBS="$GTK_LIBS $LIBS"
28404 rm -f conf.gtktest
28405 if test "$cross_compiling" = yes; then
28406 echo $ac_n "cross compiling; assumed OK... $ac_c"
28407else
28408 cat >conftest.$ac_ext <<_ACEOF
28409/* confdefs.h. */
28410_ACEOF
28411cat confdefs.h >>conftest.$ac_ext
28412cat >>conftest.$ac_ext <<_ACEOF
28413/* end confdefs.h. */
28414
28415#include <gtk/gtk.h>
28416#include <stdio.h>
28417#include <stdlib.h>
28418
28419int
28420main ()
28421{
28422 int major, minor, micro;
28423 char *tmp_version;
28424
28425 system ("touch conf.gtktest");
28426
28427 /* HP/UX 9 (%@#!) writes to sscanf strings */
28428 tmp_version = g_strdup("$min_gtk_version");
28429 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
28430 printf("%s, bad version string\n", "$min_gtk_version");
28431 exit(1);
28432 }
28433
28434 if ((gtk_major_version != $gtk_config_major_version) ||
28435 (gtk_minor_version != $gtk_config_minor_version) ||
28436 (gtk_micro_version != $gtk_config_micro_version))
28437 {
28438 printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
28439 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
28440 gtk_major_version, gtk_minor_version, gtk_micro_version);
28441 printf ("*** was found! If gtk-config was correct, then it is best\n");
28442 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
28443 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
28444 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
28445 printf("*** required on your system.\n");
28446 printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
28447 printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
28448 printf("*** before re-running configure\n");
28449 }
28450#if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
28451 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
28452 (gtk_minor_version != GTK_MINOR_VERSION) ||
28453 (gtk_micro_version != GTK_MICRO_VERSION))
28454 {
28455 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
28456 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
28457 printf("*** library (version %d.%d.%d)\n",
28458 gtk_major_version, gtk_minor_version, gtk_micro_version);
28459 }
28460#endif /* defined (GTK_MAJOR_VERSION) ... */
28461 else
28462 {
28463 if ((gtk_major_version > major) ||
28464 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
28465 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
28466 {
28467 return 0;
28468 }
28469 else
28470 {
28471 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
28472 gtk_major_version, gtk_minor_version, gtk_micro_version);
28473 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
28474 major, minor, micro);
28475 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
28476 printf("***\n");
28477 printf("*** If you have already installed a sufficiently new version, this error\n");
28478 printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
28479 printf("*** being found. The easiest way to fix this is to remove the old version\n");
28480 printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
28481 printf("*** correct copy of gtk-config. (In this case, you will have to\n");
28482 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
28483 printf("*** so that the correct libraries are found at run-time))\n");
28484 }
28485 }
28486 return 1;
28487}
28488
28489_ACEOF
28490rm -f conftest$ac_exeext
28491if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28492 (eval $ac_link) 2>&5
28493 ac_status=$?
28494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28495 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28496 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28497 (eval $ac_try) 2>&5
28498 ac_status=$?
28499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28500 (exit $ac_status); }; }; then
28501 :
28502else
28503 echo "$as_me: program exited with status $ac_status" >&5
28504echo "$as_me: failed program was:" >&5
28505sed 's/^/| /' conftest.$ac_ext >&5
28506
28507( exit $ac_status )
28508no_gtk=yes
28509fi
ac1cb8d3 28510rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
28511fi
28512 CFLAGS="$ac_save_CFLAGS"
28513 LIBS="$ac_save_LIBS"
28514 fi
28515 fi
28516 if test "x$no_gtk" = x ; then
28517 echo "$as_me:$LINENO: result: yes" >&5
28518echo "${ECHO_T}yes" >&6
28519 wx_cv_lib_gtk=1.2.3
28520 else
28521 echo "$as_me:$LINENO: result: no" >&5
28522echo "${ECHO_T}no" >&6
28523 if test "$GTK_CONFIG" = "no" ; then
28524 echo "*** The gtk-config script installed by GTK could not be found"
28525 echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
28526 echo "*** your path, or set the GTK_CONFIG environment variable to the"
28527 echo "*** full path to gtk-config."
28528 else
28529 if test -f conf.gtktest ; then
28530 :
28531 else
28532 echo "*** Could not run GTK test program, checking why..."
28533 CFLAGS="$CFLAGS $GTK_CFLAGS"
28534 LIBS="$LIBS $GTK_LIBS"
28535 cat >conftest.$ac_ext <<_ACEOF
28536/* confdefs.h. */
28537_ACEOF
28538cat confdefs.h >>conftest.$ac_ext
28539cat >>conftest.$ac_ext <<_ACEOF
28540/* end confdefs.h. */
28541
28542#include <gtk/gtk.h>
28543#include <stdio.h>
28544
28545int
28546main ()
28547{
28548 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
28549 ;
28550 return 0;
28551}
28552_ACEOF
28553rm -f conftest.$ac_objext conftest$ac_exeext
28554if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 28555 (eval $ac_link) 2>conftest.er1
a848cd7e 28556 ac_status=$?
ac1cb8d3
VS
28557 grep -v '^ *+' conftest.er1 >conftest.err
28558 rm -f conftest.er1
28559 cat conftest.err >&5
a848cd7e
SC
28560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28561 (exit $ac_status); } &&
479c790c 28562 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
28563 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28564 (eval $ac_try) 2>&5
28565 ac_status=$?
28566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28567 (exit $ac_status); }; } &&
28568 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
28569 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28570 (eval $ac_try) 2>&5
28571 ac_status=$?
28572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28573 (exit $ac_status); }; }; then
28574 echo "*** The test program compiled, but did not run. This usually means"
28575 echo "*** that the run-time linker is not finding GTK or finding the wrong"
28576 echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
28577 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
28578 echo "*** to the installed location Also, make sure you have run ldconfig if that"
28579 echo "*** is required on your system"
28580 echo "***"
28581 echo "*** If you have an old version installed, it is best to remove it, although"
28582 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
28583 echo "***"
28584 echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
28585 echo "*** came with the system with the command"
28586 echo "***"
28587 echo "*** rpm --erase --nodeps gtk gtk-devel"
28588else
28589 echo "$as_me: failed program was:" >&5
28590sed 's/^/| /' conftest.$ac_ext >&5
28591
28592 echo "*** The test program failed to compile or link. See the file config.log for the"
28593 echo "*** exact error that occured. This usually means GTK was incorrectly installed"
28594 echo "*** or that you have moved GTK since it was installed. In the latter case, you"
28595 echo "*** may want to edit the gtk-config script: $GTK_CONFIG"
28596fi
ac1cb8d3
VS
28597rm -f conftest.err conftest.$ac_objext \
28598 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
28599 CFLAGS="$ac_save_CFLAGS"
28600 LIBS="$ac_save_LIBS"
28601 fi
28602 fi
28603 GTK_CFLAGS=""
28604 GTK_LIBS=""
28605 :
28606 fi
28607
28608
28609 rm -f conf.gtktest
28610
f34ca037 28611 fi
a848cd7e
SC
28612 fi
28613 fi
28614
28615 if test -z "$wx_cv_lib_gtk"; then
28616 wx_cv_lib_gtk=none
28617 else
28618 wx_cv_cflags_gtk=$GTK_CFLAGS
d2822091 28619 wx_cv_libs_gtk=`echo $GTK_LIBS | sed -e 's/ -l[^ ]*cairo[^ ]*//g'`
a848cd7e
SC
28620 fi
28621
28622
28623fi
28624
28625
28626 if test "$gtk_version_cached" = 1; then
28627 echo "$as_me:$LINENO: result: $wx_cv_lib_gtk" >&5
28628echo "${ECHO_T}$wx_cv_lib_gtk" >&6
28629 fi
28630
28631 case "$wx_cv_lib_gtk" in
28632 2.0) WXGTK20=1
28633 TOOLKIT_VERSION=2
28634 ;;
28635 1.2.7) WXGTK127=1
28636 WXGTK12=1
28637 ;;
28638 1.2.3) WXGTK12=1
28639 ;;
28640 *) { { echo "$as_me:$LINENO: error:
f597b41c
MW
28641The development files for GTK+ were not found. For GTK+ 2, please
28642ensure that pkg-config is in the path and that gtk+-2.0.pc is
28643installed. For GTK+ 1.2 please check that gtk-config is in the path,
28644and that the version is 1.2.3 or above. Also check that the
28645libraries returned by 'pkg-config gtk+-2.0 --libs' or 'gtk-config
28646--libs' are in the LD_LIBRARY_PATH or equivalent.
a848cd7e
SC
28647 " >&5
28648echo "$as_me: error:
f597b41c
MW
28649The development files for GTK+ were not found. For GTK+ 2, please
28650ensure that pkg-config is in the path and that gtk+-2.0.pc is
28651installed. For GTK+ 1.2 please check that gtk-config is in the path,
28652and that the version is 1.2.3 or above. Also check that the
28653libraries returned by 'pkg-config gtk+-2.0 --libs' or 'gtk-config
28654--libs' are in the LD_LIBRARY_PATH or equivalent.
a848cd7e
SC
28655 " >&2;}
28656 { (exit 1); exit 1; }; }
28657 ;;
28658 esac
28659
28660 if test "$WXGTK20" = 1; then
6954625c 28661 save_CFLAGS="$CFLAGS"
304205f1 28662 save_LIBS="$LIBS"
6954625c 28663 CFLAGS="$wx_cv_cflags_gtk $CFLAGS"
abc736fd 28664 LIBS="$LIBS $wx_cv_libs_gtk"
304205f1 28665
58e65954
MW
28666 echo "$as_me:$LINENO: checking whether gtk_icon_size_lookup is declared" >&5
28667echo $ECHO_N "checking whether gtk_icon_size_lookup is declared... $ECHO_C" >&6
28668if test "${ac_cv_have_decl_gtk_icon_size_lookup+set}" = set; then
28669 echo $ECHO_N "(cached) $ECHO_C" >&6
28670else
28671 cat >conftest.$ac_ext <<_ACEOF
304205f1
VS
28672/* confdefs.h. */
28673_ACEOF
28674cat confdefs.h >>conftest.$ac_ext
28675cat >>conftest.$ac_ext <<_ACEOF
28676/* end confdefs.h. */
58e65954 28677#include <gtk/gtk.h>
304205f1 28678
d12aef51
VZ
28679int
28680main ()
28681{
58e65954
MW
28682#ifndef gtk_icon_size_lookup
28683 char *p = (char *) gtk_icon_size_lookup;
28684#endif
abc736fd
MW
28685
28686 ;
28687 return 0;
28688}
28689_ACEOF
28690rm -f conftest.$ac_objext
28691if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28692 (eval $ac_compile) 2>conftest.er1
28693 ac_status=$?
28694 grep -v '^ *+' conftest.er1 >conftest.err
28695 rm -f conftest.er1
28696 cat conftest.err >&5
28697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28698 (exit $ac_status); } &&
479c790c 28699 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
abc736fd
MW
28700 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28701 (eval $ac_try) 2>&5
28702 ac_status=$?
28703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28704 (exit $ac_status); }; } &&
28705 { ac_try='test -s conftest.$ac_objext'
28706 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28707 (eval $ac_try) 2>&5
28708 ac_status=$?
28709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28710 (exit $ac_status); }; }; then
58e65954 28711 ac_cv_have_decl_gtk_icon_size_lookup=yes
abc736fd
MW
28712else
28713 echo "$as_me: failed program was:" >&5
28714sed 's/^/| /' conftest.$ac_ext >&5
28715
58e65954
MW
28716ac_cv_have_decl_gtk_icon_size_lookup=no
28717fi
28718rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28719fi
28720echo "$as_me:$LINENO: result: $ac_cv_have_decl_gtk_icon_size_lookup" >&5
28721echo "${ECHO_T}$ac_cv_have_decl_gtk_icon_size_lookup" >&6
28722if test $ac_cv_have_decl_gtk_icon_size_lookup = yes; then
abc736fd 28723
58e65954
MW
28724cat >>confdefs.h <<_ACEOF
28725#define HAVE_DECL_GTK_ICON_SIZE_LOOKUP 1
abc736fd
MW
28726_ACEOF
28727
58e65954
MW
28728
28729else
28730 cat >>confdefs.h <<_ACEOF
28731#define HAVE_DECL_GTK_ICON_SIZE_LOOKUP 0
28732_ACEOF
28733
28734cat >>confdefs.h <<\_ACEOF
28735#define NEED_GTK_ICON_SIZE_LOOKUP 1
28736_ACEOF
abc736fd
MW
28737
28738fi
58e65954
MW
28739
28740
abc736fd 28741
e9263684
VZ
28742 echo "$as_me:$LINENO: checking if GTK+ is version >= 2.6" >&5
28743echo $ECHO_N "checking if GTK+ is version >= 2.6... $ECHO_C" >&6
28744 cat >conftest.$ac_ext <<_ACEOF
28745/* confdefs.h. */
28746_ACEOF
28747cat confdefs.h >>conftest.$ac_ext
28748cat >>conftest.$ac_ext <<_ACEOF
28749/* end confdefs.h. */
28750
28751 #include <gtk/gtk.h>
28752
28753int
28754main ()
28755{
28756
28757 #if !GTK_CHECK_VERSION(2,6,0)
28758 Not GTK+ 2.6
28759 #endif
28760
28761 ;
28762 return 0;
28763}
28764_ACEOF
28765rm -f conftest.$ac_objext
28766if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28767 (eval $ac_compile) 2>conftest.er1
28768 ac_status=$?
28769 grep -v '^ *+' conftest.er1 >conftest.err
28770 rm -f conftest.er1
28771 cat conftest.err >&5
28772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28773 (exit $ac_status); } &&
479c790c 28774 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
e9263684
VZ
28775 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28776 (eval $ac_try) 2>&5
28777 ac_status=$?
28778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28779 (exit $ac_status); }; } &&
28780 { ac_try='test -s conftest.$ac_objext'
28781 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28782 (eval $ac_try) 2>&5
28783 ac_status=$?
28784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28785 (exit $ac_status); }; }; then
28786
28787 cat >>confdefs.h <<\_ACEOF
28788#define __WXGTK26__ 1
28789_ACEOF
28790
28791 cat >>confdefs.h <<\_ACEOF
28792#define __WXGTK24__ 1
28793_ACEOF
28794
28795 echo "$as_me:$LINENO: result: yes" >&5
28796echo "${ECHO_T}yes" >&6
28797 ac_wxgtk26=1
28798
28799else
28800 echo "$as_me: failed program was:" >&5
28801sed 's/^/| /' conftest.$ac_ext >&5
28802
28803
28804 echo "$as_me:$LINENO: result: no" >&5
28805echo "${ECHO_T}no" >&6
28806 ac_wxgtk26=0
28807
28808fi
28809rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28810
28811 if test "$ac_wxgtk26" = 0; then
9755e73b
VS
28812 echo "$as_me:$LINENO: checking if GTK+ is version >= 2.4" >&5
28813echo $ECHO_N "checking if GTK+ is version >= 2.4... $ECHO_C" >&6
28814 cat >conftest.$ac_ext <<_ACEOF
28815/* confdefs.h. */
28816_ACEOF
28817cat confdefs.h >>conftest.$ac_ext
28818cat >>conftest.$ac_ext <<_ACEOF
28819/* end confdefs.h. */
28820
28821 #include <gtk/gtk.h>
28822
28823int
28824main ()
28825{
28826
28827 #if !GTK_CHECK_VERSION(2,4,0)
04e525a0 28828 Not GTK+ 2.4
9755e73b
VS
28829 #endif
28830
28831 ;
28832 return 0;
28833}
28834_ACEOF
28835rm -f conftest.$ac_objext
28836if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28837 (eval $ac_compile) 2>conftest.er1
28838 ac_status=$?
28839 grep -v '^ *+' conftest.er1 >conftest.err
28840 rm -f conftest.er1
28841 cat conftest.err >&5
28842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28843 (exit $ac_status); } &&
479c790c 28844 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9755e73b
VS
28845 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28846 (eval $ac_try) 2>&5
28847 ac_status=$?
28848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28849 (exit $ac_status); }; } &&
28850 { ac_try='test -s conftest.$ac_objext'
28851 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28852 (eval $ac_try) 2>&5
28853 ac_status=$?
28854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28855 (exit $ac_status); }; }; then
28856
28857 cat >>confdefs.h <<\_ACEOF
28858#define __WXGTK24__ 1
28859_ACEOF
28860
28861 echo "$as_me:$LINENO: result: yes" >&5
28862echo "${ECHO_T}yes" >&6
28863
28864else
28865 echo "$as_me: failed program was:" >&5
28866sed 's/^/| /' conftest.$ac_ext >&5
28867
28868
28869 echo "$as_me:$LINENO: result: no" >&5
28870echo "${ECHO_T}no" >&6
28871
28872fi
28873rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e9263684 28874 fi
9755e73b 28875
6954625c 28876 CFLAGS="$save_CFLAGS"
304205f1 28877 LIBS="$save_LIBS"
a848cd7e
SC
28878 else
28879 if test "$wxUSE_UNICODE" = "yes"; then
28880 { echo "$as_me:$LINENO: WARNING: Unicode configuration not supported with GTK+ 1.x" >&5
28881echo "$as_me: WARNING: Unicode configuration not supported with GTK+ 1.x" >&2;}
28882 wxUSE_UNICODE=no
28883 fi
64b75e64
RD
28884
28885 echo "$as_me:$LINENO: checking for gdk_im_open in -lgdk" >&5
28886echo $ECHO_N "checking for gdk_im_open in -lgdk... $ECHO_C" >&6
28887if test "${ac_cv_lib_gdk_gdk_im_open+set}" = set; then
28888 echo $ECHO_N "(cached) $ECHO_C" >&6
28889else
28890 ac_check_lib_save_LIBS=$LIBS
28891LIBS="-lgdk $LIBS"
28892cat >conftest.$ac_ext <<_ACEOF
28893/* confdefs.h. */
28894_ACEOF
28895cat confdefs.h >>conftest.$ac_ext
28896cat >>conftest.$ac_ext <<_ACEOF
28897/* end confdefs.h. */
28898
28899/* Override any gcc2 internal prototype to avoid an error. */
28900#ifdef __cplusplus
28901extern "C"
28902#endif
28903/* We use char because int might match the return type of a gcc2
28904 builtin and then its argument prototype would still apply. */
28905char gdk_im_open ();
28906int
28907main ()
28908{
28909gdk_im_open ();
28910 ;
28911 return 0;
28912}
28913_ACEOF
28914rm -f conftest.$ac_objext conftest$ac_exeext
28915if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28916 (eval $ac_link) 2>conftest.er1
28917 ac_status=$?
28918 grep -v '^ *+' conftest.er1 >conftest.err
28919 rm -f conftest.er1
28920 cat conftest.err >&5
28921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28922 (exit $ac_status); } &&
479c790c 28923 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
64b75e64
RD
28924 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28925 (eval $ac_try) 2>&5
28926 ac_status=$?
28927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28928 (exit $ac_status); }; } &&
28929 { ac_try='test -s conftest$ac_exeext'
28930 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28931 (eval $ac_try) 2>&5
28932 ac_status=$?
28933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28934 (exit $ac_status); }; }; then
28935 ac_cv_lib_gdk_gdk_im_open=yes
28936else
28937 echo "$as_me: failed program was:" >&5
28938sed 's/^/| /' conftest.$ac_ext >&5
28939
28940ac_cv_lib_gdk_gdk_im_open=no
28941fi
28942rm -f conftest.err conftest.$ac_objext \
28943 conftest$ac_exeext conftest.$ac_ext
28944LIBS=$ac_check_lib_save_LIBS
28945fi
28946echo "$as_me:$LINENO: result: $ac_cv_lib_gdk_gdk_im_open" >&5
28947echo "${ECHO_T}$ac_cv_lib_gdk_gdk_im_open" >&6
28948if test $ac_cv_lib_gdk_gdk_im_open = yes; then
28949 cat >>confdefs.h <<\_ACEOF
28950#define HAVE_XIM 1
28951_ACEOF
28952
28953fi
28954
a848cd7e
SC
28955 fi
28956
e56f4f9e
VZ
28957 ac_ext=cc
28958ac_cpp='$CXXCPP $CPPFLAGS'
28959ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28960ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28961ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28962
28963
a848cd7e
SC
28964 if test "$USE_DARWIN" != 1; then
28965
28966for ac_func in poll
28967do
28968as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28969echo "$as_me:$LINENO: checking for $ac_func" >&5
28970echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
28971if eval "test \"\${$as_ac_var+set}\" = set"; then
28972 echo $ECHO_N "(cached) $ECHO_C" >&6
28973else
28974 cat >conftest.$ac_ext <<_ACEOF
28975/* confdefs.h. */
28976_ACEOF
28977cat confdefs.h >>conftest.$ac_ext
28978cat >>conftest.$ac_ext <<_ACEOF
28979/* end confdefs.h. */
ac1cb8d3
VS
28980/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28981 For example, HP-UX 11i <limits.h> declares gettimeofday. */
28982#define $ac_func innocuous_$ac_func
28983
a848cd7e
SC
28984/* System header to define __stub macros and hopefully few prototypes,
28985 which can conflict with char $ac_func (); below.
28986 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28987 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 28988
a848cd7e
SC
28989#ifdef __STDC__
28990# include <limits.h>
28991#else
28992# include <assert.h>
28993#endif
ac1cb8d3
VS
28994
28995#undef $ac_func
28996
a848cd7e
SC
28997/* Override any gcc2 internal prototype to avoid an error. */
28998#ifdef __cplusplus
28999extern "C"
29000{
29001#endif
29002/* We use char because int might match the return type of a gcc2
29003 builtin and then its argument prototype would still apply. */
29004char $ac_func ();
29005/* The GNU C library defines this for functions which it implements
29006 to always fail with ENOSYS. Some functions are actually named
29007 something starting with __ and the normal name is an alias. */
29008#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
29009choke me
29010#else
29011char (*f) () = $ac_func;
29012#endif
29013#ifdef __cplusplus
29014}
29015#endif
29016
29017int
29018main ()
29019{
29020return f != $ac_func;
29021 ;
29022 return 0;
29023}
29024_ACEOF
29025rm -f conftest.$ac_objext conftest$ac_exeext
29026if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 29027 (eval $ac_link) 2>conftest.er1
a848cd7e 29028 ac_status=$?
ac1cb8d3
VS
29029 grep -v '^ *+' conftest.er1 >conftest.err
29030 rm -f conftest.er1
29031 cat conftest.err >&5
a848cd7e
SC
29032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29033 (exit $ac_status); } &&
479c790c 29034 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
29035 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29036 (eval $ac_try) 2>&5
29037 ac_status=$?
29038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29039 (exit $ac_status); }; } &&
29040 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
29041 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29042 (eval $ac_try) 2>&5
29043 ac_status=$?
29044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29045 (exit $ac_status); }; }; then
29046 eval "$as_ac_var=yes"
29047else
29048 echo "$as_me: failed program was:" >&5
29049sed 's/^/| /' conftest.$ac_ext >&5
29050
29051eval "$as_ac_var=no"
29052fi
ac1cb8d3
VS
29053rm -f conftest.err conftest.$ac_objext \
29054 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
29055fi
29056echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
29057echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
29058if test `eval echo '${'$as_ac_var'}'` = yes; then
29059 cat >>confdefs.h <<_ACEOF
29060#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29061_ACEOF
29062
29063fi
29064done
29065
29066 fi
29067
29068 TOOLKIT_INCLUDE="$wx_cv_cflags_gtk"
29069 GUI_TK_LIBRARY="$wx_cv_libs_gtk $GUI_TK_LIBRARY"
29070
29071 AFMINSTALL=afminstall
29072 TOOLKIT=GTK
29073 GUIDIST=GTK_DIST
29074
a848cd7e
SC
29075 if test "$wxUSE_GPE" = "yes"; then
29076 echo "$as_me:$LINENO: checking for gpewidget library" >&5
29077echo $ECHO_N "checking for gpewidget library... $ECHO_C" >&6
29078
0ad5d837
VZ
29079 ac_find_libraries=
29080 for ac_dir in $SEARCH_LIB;
a848cd7e 29081 do
3eca31dc 29082 for ac_extension in a so sl dylib dll.a; do
a848cd7e
SC
29083 if test -f "$ac_dir/libgpewidget.$ac_extension"; then
29084 ac_find_libraries=$ac_dir
29085 break 2
29086 fi
29087 done
29088 done
29089
29090 if test "$ac_find_libraries" != "" ; then
29091
0ad5d837 29092 if test "$ac_find_libraries" = "default location"; then
a848cd7e
SC
29093 ac_path_to_link=""
29094 else
0ad5d837
VZ
29095 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
29096 result=$?
29097 if test $result = 0; then
29098 ac_path_to_link=""
29099 else
29100 ac_path_to_link=" -L$ac_find_libraries"
29101 fi
a848cd7e
SC
29102 fi
29103
29104 GUI_TK_LIBRARY="-L${prefix}/lib -lgpewidget $GUI_TK_LIBRARY"
29105 WXGPE=1
0ad5d837
VZ
29106 echo "$as_me:$LINENO: result: found in $ac_find_libraries" >&5
29107echo "${ECHO_T}found in $ac_find_libraries" >&6
a848cd7e
SC
29108 else
29109 echo "$as_me:$LINENO: result: not found" >&5
29110echo "${ECHO_T}not found" >&6
29111 fi
29112
29113 fi
29114 fi
29115
29116 if test "$wxUSE_MGL" = 1; then
29117 echo "$as_me:$LINENO: checking for SciTech MGL library" >&5
29118echo $ECHO_N "checking for SciTech MGL library... $ECHO_C" >&6
29119 if test "x$MGL_ROOT" = x ; then
29120 echo "$as_me:$LINENO: result: not found" >&5
29121echo "${ECHO_T}not found" >&6
29122 { { echo "$as_me:$LINENO: error: Cannot find MGL library. Make sure MGL_ROOT is set." >&5
29123echo "$as_me: error: Cannot find MGL library. Make sure MGL_ROOT is set." >&2;}
29124 { (exit 1); exit 1; }; }
29125 else
29126 echo "$as_me:$LINENO: result: $MGL_ROOT" >&5
29127echo "${ECHO_T}$MGL_ROOT" >&6
29128 fi
29129
29130 echo "$as_me:$LINENO: checking for libmgl location" >&5
29131echo $ECHO_N "checking for libmgl location... $ECHO_C" >&6
29132 case "${host}" in
29133 *-*-linux* )
29134 if test "x$wxUSE_SHARED" = xyes ; then
29135 mgl_os_candidates="linux/gcc/x86/so linux/gcc/x86/a linux/gcc/glibc.so linux/gcc/glibc"
29136 else
29137 mgl_os_candidates="linux/gcc/x86/a linux/gcc/x86/so linux/gcc/glibc linux/gcc/glibc.so"
29138 fi
29139 ;;
29140 *-pc-msdosdjgpp )
29141 mgl_os_candidates="dos32/dj2"
29142 ;;
29143 *)
29144 { { echo "$as_me:$LINENO: error: This system type ${host} is not yet supported by wxMGL." >&5
29145echo "$as_me: error: This system type ${host} is not yet supported by wxMGL." >&2;}
29146 { (exit 1); exit 1; }; }
29147 esac
29148
29149 mgl_lib_type=""
29150 mgl_os=""
29151
29152 for mgl_os_i in $mgl_os_candidates ; do
29153 if test "x$mgl_os" = x ; then
29154 if test "$wxUSE_DEBUG_FLAG" = yes ; then
29155 if test -f $MGL_ROOT/lib/debug/$mgl_os_i/libmgl.a -o \
29156 -f $MGL_ROOT/lib/debug/$mgl_os_i/libmgl.so; then
29157 mgl_lib_type=debug
29158 mgl_os=$mgl_os_i
29159 fi
29160 fi
29161 if test "x$mgl_lib_type" = x ; then
29162 if test -f $MGL_ROOT/lib/release/$mgl_os_i/libmgl.a -o \
29163 -f $MGL_ROOT/lib/release/$mgl_os_i/libmgl.so; then
29164 mgl_lib_type=release
29165 mgl_os=$mgl_os_i
29166 fi
29167 fi
29168 fi
29169 done
29170
29171 if test "x$mgl_os" = x ; then
29172 echo "$as_me:$LINENO: result: not found" >&5
29173echo "${ECHO_T}not found" >&6
29174 { { echo "$as_me:$LINENO: error: Cannot find MGL libraries, make sure they are compiled." >&5
29175echo "$as_me: error: Cannot find MGL libraries, make sure they are compiled." >&2;}
29176 { (exit 1); exit 1; }; }
29177 fi
29178 echo "$as_me:$LINENO: result: \"$MGL_ROOT/lib/$mgl_lib_type/$mgl_os\"" >&5
29179echo "${ECHO_T}\"$MGL_ROOT/lib/$mgl_lib_type/$mgl_os\"" >&6
29180
29181 wxUSE_UNIVERSAL="yes"
29182
29183 TOOLKIT_INCLUDE="-I$MGL_ROOT/include"
29184 GUI_TK_LIBRARY="-L$MGL_ROOT/lib/$mgl_lib_type/$mgl_os -lmgl -lmglcpp -lpm"
29185
29186 AFMINSTALL=afminstall
29187 TOOLKIT=MGL
29188 GUIDIST=MGL_DIST
29189 fi
29190
b3c86150
VS
29191 if test "$wxUSE_DFB" = 1; then
29192
29193
29194if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
29195 if test -n "$ac_tool_prefix"; then
29196 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
29197set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
29198echo "$as_me:$LINENO: checking for $ac_word" >&5
29199echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
29200if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
29201 echo $ECHO_N "(cached) $ECHO_C" >&6
29202else
29203 case $PKG_CONFIG in
29204 [\\/]* | ?:[\\/]*)
29205 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
29206 ;;
29207 *)
29208 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29209for as_dir in $PATH
29210do
29211 IFS=$as_save_IFS
29212 test -z "$as_dir" && as_dir=.
29213 for ac_exec_ext in '' $ac_executable_extensions; do
29214 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
29215 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
29216 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
29217 break 2
29218 fi
29219done
29220done
29221
29222 ;;
29223esac
29224fi
29225PKG_CONFIG=$ac_cv_path_PKG_CONFIG
29226
29227if test -n "$PKG_CONFIG"; then
29228 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
29229echo "${ECHO_T}$PKG_CONFIG" >&6
29230else
29231 echo "$as_me:$LINENO: result: no" >&5
29232echo "${ECHO_T}no" >&6
29233fi
29234
29235fi
29236if test -z "$ac_cv_path_PKG_CONFIG"; then
29237 ac_pt_PKG_CONFIG=$PKG_CONFIG
29238 # Extract the first word of "pkg-config", so it can be a program name with args.
29239set dummy pkg-config; ac_word=$2
29240echo "$as_me:$LINENO: checking for $ac_word" >&5
29241echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
29242if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
29243 echo $ECHO_N "(cached) $ECHO_C" >&6
29244else
29245 case $ac_pt_PKG_CONFIG in
29246 [\\/]* | ?:[\\/]*)
29247 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
29248 ;;
29249 *)
29250 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29251for as_dir in $PATH
29252do
29253 IFS=$as_save_IFS
29254 test -z "$as_dir" && as_dir=.
29255 for ac_exec_ext in '' $ac_executable_extensions; do
29256 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
29257 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
29258 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
29259 break 2
29260 fi
29261done
29262done
29263
29264 ;;
29265esac
29266fi
29267ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
29268
29269if test -n "$ac_pt_PKG_CONFIG"; then
29270 echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
29271echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6
29272else
29273 echo "$as_me:$LINENO: result: no" >&5
29274echo "${ECHO_T}no" >&6
29275fi
29276
29277 PKG_CONFIG=$ac_pt_PKG_CONFIG
29278else
29279 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
29280fi
29281
29282fi
29283if test -n "$PKG_CONFIG"; then
29284 _pkg_min_version=0.9.0
29285 echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
29286echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6
29287 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
29288 echo "$as_me:$LINENO: result: yes" >&5
29289echo "${ECHO_T}yes" >&6
29290 else
29291 echo "$as_me:$LINENO: result: no" >&5
29292echo "${ECHO_T}no" >&6
29293 PKG_CONFIG=""
29294 fi
29295
29296fi
29297
479c790c 29298
b3c86150
VS
29299pkg_failed=no
29300echo "$as_me:$LINENO: checking for DIRECTFB" >&5
29301echo $ECHO_N "checking for DIRECTFB... $ECHO_C" >&6
29302
29303if test -n "$PKG_CONFIG"; then
29304 if test -n "$DIRECTFB_CFLAGS"; then
29305 pkg_cv_DIRECTFB_CFLAGS="$DIRECTFB_CFLAGS"
29306 else
29307 if test -n "$PKG_CONFIG" && \
737d3175
VZ
29308 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"directfb >= 0.9.22\"") >&5
29309 ($PKG_CONFIG --exists --print-errors "directfb >= 0.9.22") 2>&5
b3c86150
VS
29310 ac_status=$?
29311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29312 (exit $ac_status); }; then
737d3175 29313 pkg_cv_DIRECTFB_CFLAGS=`$PKG_CONFIG --cflags "directfb >= 0.9.22" 2>/dev/null`
b3c86150
VS
29314else
29315 pkg_failed=yes
29316fi
29317 fi
29318else
29319 pkg_failed=untried
29320fi
29321if test -n "$PKG_CONFIG"; then
29322 if test -n "$DIRECTFB_LIBS"; then
29323 pkg_cv_DIRECTFB_LIBS="$DIRECTFB_LIBS"
29324 else
29325 if test -n "$PKG_CONFIG" && \
737d3175
VZ
29326 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"directfb >= 0.9.22\"") >&5
29327 ($PKG_CONFIG --exists --print-errors "directfb >= 0.9.22") 2>&5
b3c86150
VS
29328 ac_status=$?
29329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29330 (exit $ac_status); }; then
737d3175 29331 pkg_cv_DIRECTFB_LIBS=`$PKG_CONFIG --libs "directfb >= 0.9.22" 2>/dev/null`
b3c86150
VS
29332else
29333 pkg_failed=yes
29334fi
29335 fi
29336else
29337 pkg_failed=untried
29338fi
29339
29340
29341
29342if test $pkg_failed = yes; then
29343
29344if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
29345 _pkg_short_errors_supported=yes
29346else
29347 _pkg_short_errors_supported=no
29348fi
29349 if test $_pkg_short_errors_supported = yes; then
737d3175 29350 DIRECTFB_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "directfb >= 0.9.22"`
b3c86150 29351 else
737d3175 29352 DIRECTFB_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "directfb >= 0.9.22"`
b3c86150
VS
29353 fi
29354 # Put the nasty error message in config.log where it belongs
29355 echo "$DIRECTFB_PKG_ERRORS" >&5
29356
29357
29358 { { echo "$as_me:$LINENO: error: DirectFB not found." >&5
29359echo "$as_me: error: DirectFB not found." >&2;}
29360 { (exit 1); exit 1; }; }
29361
29362
29363elif test $pkg_failed = untried; then
29364
29365 { { echo "$as_me:$LINENO: error: DirectFB not found." >&5
29366echo "$as_me: error: DirectFB not found." >&2;}
29367 { (exit 1); exit 1; }; }
29368
29369
29370else
29371 DIRECTFB_CFLAGS=$pkg_cv_DIRECTFB_CFLAGS
29372 DIRECTFB_LIBS=$pkg_cv_DIRECTFB_LIBS
29373 echo "$as_me:$LINENO: result: yes" >&5
29374echo "${ECHO_T}yes" >&6
29375
29376 wxUSE_UNIVERSAL="yes"
29377 TOOLKIT_INCLUDE="$DIRECTFB_CFLAGS"
29378 GUI_TK_LIBRARY="$DIRECTFB_LIBS"
29379 TOOLKIT=DFB
29380 GUIDIST=DFB_DIST
29381
29382fi
29383 fi
29384
a848cd7e
SC
29385 if test "$wxUSE_MICROWIN" = 1; then
29386 echo "$as_me:$LINENO: checking for MicroWindows" >&5
29387echo $ECHO_N "checking for MicroWindows... $ECHO_C" >&6
29388 if test "x$MICROWINDOWS" = x ; then
29389 echo "$as_me:$LINENO: result: not found" >&5
29390echo "${ECHO_T}not found" >&6
29391 { { echo "$as_me:$LINENO: error: Cannot find MicroWindows library. Make sure MICROWINDOWS is set." >&5
29392echo "$as_me: error: Cannot find MicroWindows library. Make sure MICROWINDOWS is set." >&2;}
29393 { (exit 1); exit 1; }; }
29394 else
29395 echo "$as_me:$LINENO: result: $MICROWINDOWS" >&5
29396echo "${ECHO_T}$MICROWINDOWS" >&6
29397 fi
29398
29399 if test -f $MICROWINDOWS/lib/libmwin.a; then
29400 echo "$as_me:$LINENO: result: MicroWindows' libraries found." >&5
29401echo "${ECHO_T}MicroWindows' libraries found." >&6
29402 else
29403 { { echo "$as_me:$LINENO: error: Cannot find MicroWindows libraries, make sure they are compiled." >&5
29404echo "$as_me: error: Cannot find MicroWindows libraries, make sure they are compiled." >&2;}
29405 { (exit 1); exit 1; }; }
29406 fi
29407
29408 TOOLKIT_INCLUDE="-I$MICROWINDOWS/include"
29409 GUI_TK_LIBRARY="-L$MICROWINDOWS/lib -lmwin -lmwengine -mwfonts -mwdrivers -mwinlib"
29410
29411 wxUSE_UNIVERSAL="yes"
29412
29413 AFMINSTALL=afminstall
29414 TOOLKIT=MICROWIN
29415 GUIDIST=MICROWIN_DIST
29416
29417 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXMSW__ -D__WIN95__ -D__WIN32__ -DMWIN -DMICROWIN_NOCONTROLS -DMICROWIN_TODO=1"
29418 fi
29419
74b84332 29420 if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then
479c790c
VZ
29421
29422if test "x$ac_path_x_has_been_run" != xyes; then
29423 echo "$as_me:$LINENO: checking for X" >&5
a848cd7e
SC
29424echo $ECHO_N "checking for X... $ECHO_C" >&6
29425
479c790c 29426ac_path_x_has_been_run=yes
a848cd7e
SC
29427
29428# Check whether --with-x or --without-x was given.
29429if test "${with_x+set}" = set; then
29430 withval="$with_x"
29431
29432fi;
29433# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
29434if test "x$with_x" = xno; then
29435 # The user explicitly disabled X.
29436 have_x=disabled
29437else
29438 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
29439 # Both variables are already set.
29440 have_x=yes
29441 else
29442 if test "${ac_cv_have_x+set}" = set; then
29443 echo $ECHO_N "(cached) $ECHO_C" >&6
29444else
29445 # One or both of the vars are not set, and there is no cached value.
29446ac_x_includes=no ac_x_libraries=no
29447rm -fr conftest.dir
29448if mkdir conftest.dir; then
29449 cd conftest.dir
29450 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
29451 cat >Imakefile <<'_ACEOF'
29452acfindx:
29453 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
29454_ACEOF
29455 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
29456 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
29457 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
29458 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
29459 for ac_extension in a so sl; do
29460 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
ac1cb8d3
VS
29461 test -f $ac_im_libdir/libX11.$ac_extension; then
29462 ac_im_usrlibdir=$ac_im_libdir; break
a848cd7e
SC
29463 fi
29464 done
29465 # Screen out bogus values from the imake configuration. They are
29466 # bogus both because they are the default anyway, and because
29467 # using them would break gcc on systems where it needs fixed includes.
29468 case $ac_im_incroot in
29469 /usr/include) ;;
29470 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
29471 esac
29472 case $ac_im_usrlibdir in
29473 /usr/lib | /lib) ;;
29474 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
29475 esac
29476 fi
29477 cd ..
29478 rm -fr conftest.dir
29479fi
29480
29481# Standard set of common directories for X headers.
29482# Check X11 before X11Rn because it is often a symlink to the current release.
29483ac_x_header_dirs='
29484/usr/X11/include
29485/usr/X11R6/include
29486/usr/X11R5/include
29487/usr/X11R4/include
29488
29489/usr/include/X11
29490/usr/include/X11R6
29491/usr/include/X11R5
29492/usr/include/X11R4
29493
29494/usr/local/X11/include
29495/usr/local/X11R6/include
29496/usr/local/X11R5/include
29497/usr/local/X11R4/include
29498
29499/usr/local/include/X11
29500/usr/local/include/X11R6
29501/usr/local/include/X11R5
29502/usr/local/include/X11R4
29503
29504/usr/X386/include
29505/usr/x386/include
29506/usr/XFree86/include/X11
29507
29508/usr/include
29509/usr/local/include
29510/usr/unsupported/include
29511/usr/athena/include
29512/usr/local/x11r5/include
29513/usr/lpp/Xamples/include
29514
29515/usr/openwin/include
29516/usr/openwin/share/include'
29517
29518if test "$ac_x_includes" = no; then
479c790c 29519 # Guess where to find include files, by looking for a specified header file.
a848cd7e
SC
29520 # First, try using that file with no special directory specified.
29521 cat >conftest.$ac_ext <<_ACEOF
29522/* confdefs.h. */
29523_ACEOF
29524cat confdefs.h >>conftest.$ac_ext
29525cat >>conftest.$ac_ext <<_ACEOF
29526/* end confdefs.h. */
479c790c 29527#include <X11/Xlib.h>
a848cd7e
SC
29528_ACEOF
29529if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
29530 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
29531 ac_status=$?
29532 grep -v '^ *+' conftest.er1 >conftest.err
29533 rm -f conftest.er1
29534 cat conftest.err >&5
29535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29536 (exit $ac_status); } >/dev/null; then
29537 if test -s conftest.err; then
5d7b7554
VZ
29538 ac_cpp_err=$ac_cxx_preproc_warn_flag
29539 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
29540 else
29541 ac_cpp_err=
29542 fi
29543else
29544 ac_cpp_err=yes
29545fi
29546if test -z "$ac_cpp_err"; then
29547 # We can compile using X headers with no special include directory.
29548ac_x_includes=
29549else
29550 echo "$as_me: failed program was:" >&5
29551sed 's/^/| /' conftest.$ac_ext >&5
29552
29553 for ac_dir in $ac_x_header_dirs; do
479c790c 29554 if test -r "$ac_dir/X11/Xlib.h"; then
a848cd7e
SC
29555 ac_x_includes=$ac_dir
29556 break
29557 fi
29558done
29559fi
29560rm -f conftest.err conftest.$ac_ext
29561fi # $ac_x_includes = no
29562
29563if test "$ac_x_libraries" = no; then
29564 # Check for the libraries.
29565 # See if we find them without any special options.
29566 # Don't add to $LIBS permanently.
29567 ac_save_LIBS=$LIBS
479c790c 29568 LIBS="-lX11 $LIBS"
a848cd7e
SC
29569 cat >conftest.$ac_ext <<_ACEOF
29570/* confdefs.h. */
29571_ACEOF
29572cat confdefs.h >>conftest.$ac_ext
29573cat >>conftest.$ac_ext <<_ACEOF
29574/* end confdefs.h. */
479c790c 29575#include <X11/Xlib.h>
a848cd7e
SC
29576int
29577main ()
29578{
479c790c 29579XrmInitialize ()
a848cd7e
SC
29580 ;
29581 return 0;
29582}
29583_ACEOF
29584rm -f conftest.$ac_objext conftest$ac_exeext
29585if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 29586 (eval $ac_link) 2>conftest.er1
a848cd7e 29587 ac_status=$?
ac1cb8d3
VS
29588 grep -v '^ *+' conftest.er1 >conftest.err
29589 rm -f conftest.er1
29590 cat conftest.err >&5
a848cd7e
SC
29591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29592 (exit $ac_status); } &&
479c790c 29593 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
29594 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29595 (eval $ac_try) 2>&5
29596 ac_status=$?
29597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29598 (exit $ac_status); }; } &&
29599 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
29600 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29601 (eval $ac_try) 2>&5
29602 ac_status=$?
29603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29604 (exit $ac_status); }; }; then
29605 LIBS=$ac_save_LIBS
29606# We can link X programs with no special library path.
29607ac_x_libraries=
29608else
29609 echo "$as_me: failed program was:" >&5
29610sed 's/^/| /' conftest.$ac_ext >&5
29611
29612LIBS=$ac_save_LIBS
29613for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
29614do
29615 # Don't even attempt the hair of trying to link an X program!
29616 for ac_extension in a so sl; do
479c790c 29617 if test -r $ac_dir/libX11.$ac_extension; then
a848cd7e
SC
29618 ac_x_libraries=$ac_dir
29619 break 2
29620 fi
29621 done
29622done
29623fi
ac1cb8d3
VS
29624rm -f conftest.err conftest.$ac_objext \
29625 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
29626fi # $ac_x_libraries = no
29627
29628if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
29629 # Didn't find X anywhere. Cache the known absence of X.
29630 ac_cv_have_x="have_x=no"
29631else
29632 # Record where we found X for the cache.
29633 ac_cv_have_x="have_x=yes \
ac1cb8d3 29634 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
a848cd7e
SC
29635fi
29636fi
29637
29638 fi
29639 eval "$ac_cv_have_x"
29640fi # $with_x != no
29641
29642if test "$have_x" != yes; then
29643 echo "$as_me:$LINENO: result: $have_x" >&5
29644echo "${ECHO_T}$have_x" >&6
29645 no_x=yes
29646else
29647 # If each of the values was on the command line, it overrides each guess.
29648 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
29649 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
29650 # Update the cache value to reflect the command line values.
29651 ac_cv_have_x="have_x=yes \
29652 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
479c790c
VZ
29653 # It might be that x_includes is empty (headers are found in the
29654 # standard search path. Then output the corresponding message
29655 ac_out_x_includes=$x_includes
29656 test "x$x_includes" = x && ac_out_x_includes="in standard search path"
29657 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $ac_out_x_includes" >&5
29658echo "${ECHO_T}libraries $x_libraries, headers $ac_out_x_includes" >&6
a848cd7e
SC
29659fi
29660
479c790c 29661fi
a848cd7e
SC
29662if test "$no_x" = yes; then
29663 # Not all programs may use this symbol, but it does not hurt to define it.
29664
29665cat >>confdefs.h <<\_ACEOF
29666#define X_DISPLAY_MISSING 1
29667_ACEOF
29668
29669 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
29670else
29671 if test -n "$x_includes"; then
29672 X_CFLAGS="$X_CFLAGS -I$x_includes"
29673 fi
29674
29675 # It would also be nice to do this for all -L options, not just this one.
29676 if test -n "$x_libraries"; then
29677 X_LIBS="$X_LIBS -L$x_libraries"
29678 # For Solaris; some versions of Sun CC require a space after -R and
29679 # others require no space. Words are not sufficient . . . .
29680 case `(uname -sr) 2>/dev/null` in
29681 "SunOS 5"*)
29682 echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
29683echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
29684 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
29685 cat >conftest.$ac_ext <<_ACEOF
29686/* confdefs.h. */
29687_ACEOF
29688cat confdefs.h >>conftest.$ac_ext
29689cat >>conftest.$ac_ext <<_ACEOF
29690/* end confdefs.h. */
29691
29692int
29693main ()
29694{
29695
29696 ;
29697 return 0;
29698}
29699_ACEOF
29700rm -f conftest.$ac_objext conftest$ac_exeext
29701if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 29702 (eval $ac_link) 2>conftest.er1
a848cd7e 29703 ac_status=$?
ac1cb8d3
VS
29704 grep -v '^ *+' conftest.er1 >conftest.err
29705 rm -f conftest.er1
29706 cat conftest.err >&5
a848cd7e
SC
29707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29708 (exit $ac_status); } &&
479c790c 29709 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
29710 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29711 (eval $ac_try) 2>&5
29712 ac_status=$?
29713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29714 (exit $ac_status); }; } &&
29715 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
29716 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29717 (eval $ac_try) 2>&5
29718 ac_status=$?
29719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29720 (exit $ac_status); }; }; then
29721 ac_R_nospace=yes
29722else
29723 echo "$as_me: failed program was:" >&5
29724sed 's/^/| /' conftest.$ac_ext >&5
29725
29726ac_R_nospace=no
29727fi
ac1cb8d3
VS
29728rm -f conftest.err conftest.$ac_objext \
29729 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
29730 if test $ac_R_nospace = yes; then
29731 echo "$as_me:$LINENO: result: no" >&5
29732echo "${ECHO_T}no" >&6
29733 X_LIBS="$X_LIBS -R$x_libraries"
29734 else
29735 LIBS="$ac_xsave_LIBS -R $x_libraries"
29736 cat >conftest.$ac_ext <<_ACEOF
29737/* confdefs.h. */
29738_ACEOF
29739cat confdefs.h >>conftest.$ac_ext
29740cat >>conftest.$ac_ext <<_ACEOF
29741/* end confdefs.h. */
29742
29743int
29744main ()
29745{
29746
29747 ;
29748 return 0;
29749}
29750_ACEOF
29751rm -f conftest.$ac_objext conftest$ac_exeext
29752if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 29753 (eval $ac_link) 2>conftest.er1
a848cd7e 29754 ac_status=$?
ac1cb8d3
VS
29755 grep -v '^ *+' conftest.er1 >conftest.err
29756 rm -f conftest.er1
29757 cat conftest.err >&5
a848cd7e
SC
29758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29759 (exit $ac_status); } &&
479c790c 29760 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
29761 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29762 (eval $ac_try) 2>&5
29763 ac_status=$?
29764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29765 (exit $ac_status); }; } &&
29766 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
29767 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29768 (eval $ac_try) 2>&5
29769 ac_status=$?
29770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29771 (exit $ac_status); }; }; then
29772 ac_R_space=yes
29773else
29774 echo "$as_me: failed program was:" >&5
29775sed 's/^/| /' conftest.$ac_ext >&5
29776
29777ac_R_space=no
29778fi
ac1cb8d3
VS
29779rm -f conftest.err conftest.$ac_objext \
29780 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
29781 if test $ac_R_space = yes; then
29782 echo "$as_me:$LINENO: result: yes" >&5
29783echo "${ECHO_T}yes" >&6
29784 X_LIBS="$X_LIBS -R $x_libraries"
29785 else
29786 echo "$as_me:$LINENO: result: neither works" >&5
29787echo "${ECHO_T}neither works" >&6
29788 fi
29789 fi
29790 LIBS=$ac_xsave_LIBS
29791 esac
29792 fi
29793
29794 # Check for system-dependent libraries X programs must link with.
29795 # Do this before checking for the system-independent R6 libraries
29796 # (-lICE), since we may need -lsocket or whatever for X linking.
29797
29798 if test "$ISC" = yes; then
29799 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
29800 else
29801 # Martyn Johnson says this is needed for Ultrix, if the X
29802 # libraries were built with DECnet support. And Karl Berry says
29803 # the Alpha needs dnet_stub (dnet does not exist).
29804 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
29805 cat >conftest.$ac_ext <<_ACEOF
29806/* confdefs.h. */
29807_ACEOF
29808cat confdefs.h >>conftest.$ac_ext
29809cat >>conftest.$ac_ext <<_ACEOF
29810/* end confdefs.h. */
29811
29812/* Override any gcc2 internal prototype to avoid an error. */
29813#ifdef __cplusplus
29814extern "C"
29815#endif
29816/* We use char because int might match the return type of a gcc2
29817 builtin and then its argument prototype would still apply. */
29818char XOpenDisplay ();
29819int
29820main ()
29821{
29822XOpenDisplay ();
29823 ;
29824 return 0;
29825}
29826_ACEOF
29827rm -f conftest.$ac_objext conftest$ac_exeext
29828if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 29829 (eval $ac_link) 2>conftest.er1
a848cd7e 29830 ac_status=$?
ac1cb8d3
VS
29831 grep -v '^ *+' conftest.er1 >conftest.err
29832 rm -f conftest.er1
29833 cat conftest.err >&5
a848cd7e
SC
29834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29835 (exit $ac_status); } &&
479c790c 29836 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
29837 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29838 (eval $ac_try) 2>&5
29839 ac_status=$?
29840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29841 (exit $ac_status); }; } &&
29842 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
29843 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29844 (eval $ac_try) 2>&5
29845 ac_status=$?
29846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29847 (exit $ac_status); }; }; then
29848 :
29849else
29850 echo "$as_me: failed program was:" >&5
29851sed 's/^/| /' conftest.$ac_ext >&5
29852
29853echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
29854echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
29855if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
29856 echo $ECHO_N "(cached) $ECHO_C" >&6
29857else
29858 ac_check_lib_save_LIBS=$LIBS
29859LIBS="-ldnet $LIBS"
29860cat >conftest.$ac_ext <<_ACEOF
29861/* confdefs.h. */
29862_ACEOF
29863cat confdefs.h >>conftest.$ac_ext
29864cat >>conftest.$ac_ext <<_ACEOF
29865/* end confdefs.h. */
29866
29867/* Override any gcc2 internal prototype to avoid an error. */
29868#ifdef __cplusplus
29869extern "C"
29870#endif
29871/* We use char because int might match the return type of a gcc2
29872 builtin and then its argument prototype would still apply. */
29873char dnet_ntoa ();
29874int
29875main ()
29876{
29877dnet_ntoa ();
29878 ;
29879 return 0;
29880}
29881_ACEOF
29882rm -f conftest.$ac_objext conftest$ac_exeext
29883if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 29884 (eval $ac_link) 2>conftest.er1
a848cd7e 29885 ac_status=$?
ac1cb8d3
VS
29886 grep -v '^ *+' conftest.er1 >conftest.err
29887 rm -f conftest.er1
29888 cat conftest.err >&5
a848cd7e
SC
29889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29890 (exit $ac_status); } &&
479c790c 29891 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
29892 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29893 (eval $ac_try) 2>&5
29894 ac_status=$?
29895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29896 (exit $ac_status); }; } &&
29897 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
29898 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29899 (eval $ac_try) 2>&5
29900 ac_status=$?
29901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29902 (exit $ac_status); }; }; then
29903 ac_cv_lib_dnet_dnet_ntoa=yes
29904else
29905 echo "$as_me: failed program was:" >&5
29906sed 's/^/| /' conftest.$ac_ext >&5
29907
29908ac_cv_lib_dnet_dnet_ntoa=no
29909fi
ac1cb8d3
VS
29910rm -f conftest.err conftest.$ac_objext \
29911 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
29912LIBS=$ac_check_lib_save_LIBS
29913fi
29914echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
29915echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
29916if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
29917 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
29918fi
29919
29920 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
29921 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
29922echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
29923if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
29924 echo $ECHO_N "(cached) $ECHO_C" >&6
29925else
29926 ac_check_lib_save_LIBS=$LIBS
29927LIBS="-ldnet_stub $LIBS"
29928cat >conftest.$ac_ext <<_ACEOF
29929/* confdefs.h. */
29930_ACEOF
29931cat confdefs.h >>conftest.$ac_ext
29932cat >>conftest.$ac_ext <<_ACEOF
29933/* end confdefs.h. */
29934
29935/* Override any gcc2 internal prototype to avoid an error. */
29936#ifdef __cplusplus
29937extern "C"
29938#endif
29939/* We use char because int might match the return type of a gcc2
29940 builtin and then its argument prototype would still apply. */
29941char dnet_ntoa ();
29942int
29943main ()
29944{
29945dnet_ntoa ();
29946 ;
29947 return 0;
29948}
29949_ACEOF
29950rm -f conftest.$ac_objext conftest$ac_exeext
29951if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 29952 (eval $ac_link) 2>conftest.er1
a848cd7e 29953 ac_status=$?
ac1cb8d3
VS
29954 grep -v '^ *+' conftest.er1 >conftest.err
29955 rm -f conftest.er1
29956 cat conftest.err >&5
a848cd7e
SC
29957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29958 (exit $ac_status); } &&
479c790c 29959 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
29960 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29961 (eval $ac_try) 2>&5
29962 ac_status=$?
29963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29964 (exit $ac_status); }; } &&
29965 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
29966 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29967 (eval $ac_try) 2>&5
29968 ac_status=$?
29969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29970 (exit $ac_status); }; }; then
29971 ac_cv_lib_dnet_stub_dnet_ntoa=yes
29972else
29973 echo "$as_me: failed program was:" >&5
29974sed 's/^/| /' conftest.$ac_ext >&5
29975
29976ac_cv_lib_dnet_stub_dnet_ntoa=no
29977fi
ac1cb8d3
VS
29978rm -f conftest.err conftest.$ac_objext \
29979 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
29980LIBS=$ac_check_lib_save_LIBS
29981fi
29982echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
29983echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
29984if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
29985 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
29986fi
29987
29988 fi
29989fi
ac1cb8d3
VS
29990rm -f conftest.err conftest.$ac_objext \
29991 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
29992 LIBS="$ac_xsave_LIBS"
29993
29994 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
29995 # to get the SysV transport functions.
29996 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
29997 # needs -lnsl.
29998 # The nsl library prevents programs from opening the X display
29999 # on Irix 5.2, according to T.E. Dickey.
30000 # The functions gethostbyname, getservbyname, and inet_addr are
30001 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
30002 echo "$as_me:$LINENO: checking for gethostbyname" >&5
30003echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
30004if test "${ac_cv_func_gethostbyname+set}" = set; then
30005 echo $ECHO_N "(cached) $ECHO_C" >&6
30006else
30007 cat >conftest.$ac_ext <<_ACEOF
30008/* confdefs.h. */
30009_ACEOF
30010cat confdefs.h >>conftest.$ac_ext
30011cat >>conftest.$ac_ext <<_ACEOF
30012/* end confdefs.h. */
ac1cb8d3
VS
30013/* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
30014 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30015#define gethostbyname innocuous_gethostbyname
30016
a848cd7e
SC
30017/* System header to define __stub macros and hopefully few prototypes,
30018 which can conflict with char gethostbyname (); below.
30019 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30020 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 30021
a848cd7e
SC
30022#ifdef __STDC__
30023# include <limits.h>
30024#else
30025# include <assert.h>
30026#endif
ac1cb8d3
VS
30027
30028#undef gethostbyname
30029
a848cd7e
SC
30030/* Override any gcc2 internal prototype to avoid an error. */
30031#ifdef __cplusplus
30032extern "C"
30033{
30034#endif
30035/* We use char because int might match the return type of a gcc2
30036 builtin and then its argument prototype would still apply. */
30037char gethostbyname ();
30038/* The GNU C library defines this for functions which it implements
30039 to always fail with ENOSYS. Some functions are actually named
30040 something starting with __ and the normal name is an alias. */
30041#if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
30042choke me
30043#else
30044char (*f) () = gethostbyname;
30045#endif
30046#ifdef __cplusplus
30047}
30048#endif
30049
30050int
30051main ()
30052{
30053return f != gethostbyname;
30054 ;
30055 return 0;
30056}
30057_ACEOF
30058rm -f conftest.$ac_objext conftest$ac_exeext
30059if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 30060 (eval $ac_link) 2>conftest.er1
a848cd7e 30061 ac_status=$?
ac1cb8d3
VS
30062 grep -v '^ *+' conftest.er1 >conftest.err
30063 rm -f conftest.er1
30064 cat conftest.err >&5
a848cd7e
SC
30065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30066 (exit $ac_status); } &&
479c790c 30067 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
30068 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30069 (eval $ac_try) 2>&5
30070 ac_status=$?
30071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30072 (exit $ac_status); }; } &&
30073 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
30074 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30075 (eval $ac_try) 2>&5
30076 ac_status=$?
30077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30078 (exit $ac_status); }; }; then
30079 ac_cv_func_gethostbyname=yes
30080else
30081 echo "$as_me: failed program was:" >&5
30082sed 's/^/| /' conftest.$ac_ext >&5
30083
30084ac_cv_func_gethostbyname=no
30085fi
ac1cb8d3
VS
30086rm -f conftest.err conftest.$ac_objext \
30087 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
30088fi
30089echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
30090echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
30091
30092 if test $ac_cv_func_gethostbyname = no; then
30093 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
30094echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
30095if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
30096 echo $ECHO_N "(cached) $ECHO_C" >&6
30097else
30098 ac_check_lib_save_LIBS=$LIBS
30099LIBS="-lnsl $LIBS"
30100cat >conftest.$ac_ext <<_ACEOF
30101/* confdefs.h. */
30102_ACEOF
30103cat confdefs.h >>conftest.$ac_ext
30104cat >>conftest.$ac_ext <<_ACEOF
30105/* end confdefs.h. */
30106
30107/* Override any gcc2 internal prototype to avoid an error. */
30108#ifdef __cplusplus
30109extern "C"
30110#endif
30111/* We use char because int might match the return type of a gcc2
30112 builtin and then its argument prototype would still apply. */
30113char gethostbyname ();
30114int
30115main ()
30116{
30117gethostbyname ();
30118 ;
30119 return 0;
30120}
30121_ACEOF
30122rm -f conftest.$ac_objext conftest$ac_exeext
30123if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3
VS
30124 (eval $ac_link) 2>conftest.er1
30125 ac_status=$?
30126 grep -v '^ *+' conftest.er1 >conftest.err
30127 rm -f conftest.er1
30128 cat conftest.err >&5
30129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30130 (exit $ac_status); } &&
479c790c 30131 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
30132 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30133 (eval $ac_try) 2>&5
30134 ac_status=$?
30135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30136 (exit $ac_status); }; } &&
30137 { ac_try='test -s conftest$ac_exeext'
30138 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30139 (eval $ac_try) 2>&5
30140 ac_status=$?
30141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30142 (exit $ac_status); }; }; then
30143 ac_cv_lib_nsl_gethostbyname=yes
30144else
30145 echo "$as_me: failed program was:" >&5
30146sed 's/^/| /' conftest.$ac_ext >&5
30147
30148ac_cv_lib_nsl_gethostbyname=no
30149fi
30150rm -f conftest.err conftest.$ac_objext \
30151 conftest$ac_exeext conftest.$ac_ext
30152LIBS=$ac_check_lib_save_LIBS
30153fi
30154echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
30155echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
30156if test $ac_cv_lib_nsl_gethostbyname = yes; then
30157 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
30158fi
30159
30160 if test $ac_cv_lib_nsl_gethostbyname = no; then
30161 echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
30162echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
30163if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
30164 echo $ECHO_N "(cached) $ECHO_C" >&6
30165else
30166 ac_check_lib_save_LIBS=$LIBS
30167LIBS="-lbsd $LIBS"
30168cat >conftest.$ac_ext <<_ACEOF
30169/* confdefs.h. */
30170_ACEOF
30171cat confdefs.h >>conftest.$ac_ext
30172cat >>conftest.$ac_ext <<_ACEOF
30173/* end confdefs.h. */
30174
30175/* Override any gcc2 internal prototype to avoid an error. */
30176#ifdef __cplusplus
30177extern "C"
30178#endif
30179/* We use char because int might match the return type of a gcc2
30180 builtin and then its argument prototype would still apply. */
30181char gethostbyname ();
30182int
30183main ()
30184{
30185gethostbyname ();
30186 ;
30187 return 0;
30188}
30189_ACEOF
30190rm -f conftest.$ac_objext conftest$ac_exeext
30191if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30192 (eval $ac_link) 2>conftest.er1
a848cd7e 30193 ac_status=$?
ac1cb8d3
VS
30194 grep -v '^ *+' conftest.er1 >conftest.err
30195 rm -f conftest.er1
30196 cat conftest.err >&5
a848cd7e
SC
30197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30198 (exit $ac_status); } &&
479c790c 30199 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
a848cd7e
SC
30200 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30201 (eval $ac_try) 2>&5
30202 ac_status=$?
30203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
ac1cb8d3
VS
30204 (exit $ac_status); }; } &&
30205 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
30206 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30207 (eval $ac_try) 2>&5
30208 ac_status=$?
30209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30210 (exit $ac_status); }; }; then
30211 ac_cv_lib_bsd_gethostbyname=yes
30212else
30213 echo "$as_me: failed program was:" >&5
30214sed 's/^/| /' conftest.$ac_ext >&5
30215
30216ac_cv_lib_bsd_gethostbyname=no
30217fi
ac1cb8d3
VS
30218rm -f conftest.err conftest.$ac_objext \
30219 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
30220LIBS=$ac_check_lib_save_LIBS
30221fi
30222echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
30223echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
30224if test $ac_cv_lib_bsd_gethostbyname = yes; then
30225 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
30226fi
30227
30228 fi
30229 fi
30230
30231 # lieder@skyler.mavd.honeywell.com says without -lsocket,
30232 # socket/setsockopt and other routines are undefined under SCO ODT
30233 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
30234 # on later versions), says Simon Leinen: it contains gethostby*
30235 # variants that don't use the name server (or something). -lsocket
30236 # must be given before -lnsl if both are needed. We assume that
30237 # if connect needs -lnsl, so does gethostbyname.
30238 echo "$as_me:$LINENO: checking for connect" >&5
30239echo $ECHO_N "checking for connect... $ECHO_C" >&6
30240if test "${ac_cv_func_connect+set}" = set; then
30241 echo $ECHO_N "(cached) $ECHO_C" >&6
30242else
30243 cat >conftest.$ac_ext <<_ACEOF
30244/* confdefs.h. */
30245_ACEOF
30246cat confdefs.h >>conftest.$ac_ext
30247cat >>conftest.$ac_ext <<_ACEOF
30248/* end confdefs.h. */
ac1cb8d3
VS
30249/* Define connect to an innocuous variant, in case <limits.h> declares connect.
30250 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30251#define connect innocuous_connect
30252
a848cd7e
SC
30253/* System header to define __stub macros and hopefully few prototypes,
30254 which can conflict with char connect (); below.
30255 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30256 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 30257
a848cd7e
SC
30258#ifdef __STDC__
30259# include <limits.h>
30260#else
30261# include <assert.h>
30262#endif
ac1cb8d3
VS
30263
30264#undef connect
30265
a848cd7e
SC
30266/* Override any gcc2 internal prototype to avoid an error. */
30267#ifdef __cplusplus
30268extern "C"
30269{
30270#endif
30271/* We use char because int might match the return type of a gcc2
30272 builtin and then its argument prototype would still apply. */
30273char connect ();
30274/* The GNU C library defines this for functions which it implements
30275 to always fail with ENOSYS. Some functions are actually named
30276 something starting with __ and the normal name is an alias. */
30277#if defined (__stub_connect) || defined (__stub___connect)
30278choke me
30279#else
30280char (*f) () = connect;
30281#endif
30282#ifdef __cplusplus
30283}
30284#endif
30285
30286int
30287main ()
30288{
30289return f != connect;
30290 ;
30291 return 0;
30292}
30293_ACEOF
30294rm -f conftest.$ac_objext conftest$ac_exeext
30295if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 30296 (eval $ac_link) 2>conftest.er1
a848cd7e 30297 ac_status=$?
ac1cb8d3
VS
30298 grep -v '^ *+' conftest.er1 >conftest.err
30299 rm -f conftest.er1
30300 cat conftest.err >&5
a848cd7e
SC
30301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30302 (exit $ac_status); } &&
479c790c 30303 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
30304 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30305 (eval $ac_try) 2>&5
30306 ac_status=$?
30307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30308 (exit $ac_status); }; } &&
30309 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
30310 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30311 (eval $ac_try) 2>&5
30312 ac_status=$?
30313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30314 (exit $ac_status); }; }; then
30315 ac_cv_func_connect=yes
30316else
30317 echo "$as_me: failed program was:" >&5
30318sed 's/^/| /' conftest.$ac_ext >&5
30319
30320ac_cv_func_connect=no
30321fi
ac1cb8d3
VS
30322rm -f conftest.err conftest.$ac_objext \
30323 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
30324fi
30325echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
30326echo "${ECHO_T}$ac_cv_func_connect" >&6
30327
30328 if test $ac_cv_func_connect = no; then
30329 echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
30330echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
30331if test "${ac_cv_lib_socket_connect+set}" = set; then
30332 echo $ECHO_N "(cached) $ECHO_C" >&6
30333else
30334 ac_check_lib_save_LIBS=$LIBS
30335LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
30336cat >conftest.$ac_ext <<_ACEOF
30337/* confdefs.h. */
30338_ACEOF
30339cat confdefs.h >>conftest.$ac_ext
30340cat >>conftest.$ac_ext <<_ACEOF
30341/* end confdefs.h. */
30342
30343/* Override any gcc2 internal prototype to avoid an error. */
30344#ifdef __cplusplus
30345extern "C"
30346#endif
30347/* We use char because int might match the return type of a gcc2
30348 builtin and then its argument prototype would still apply. */
30349char connect ();
30350int
30351main ()
30352{
30353connect ();
30354 ;
30355 return 0;
30356}
30357_ACEOF
30358rm -f conftest.$ac_objext conftest$ac_exeext
30359if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 30360 (eval $ac_link) 2>conftest.er1
a848cd7e 30361 ac_status=$?
ac1cb8d3
VS
30362 grep -v '^ *+' conftest.er1 >conftest.err
30363 rm -f conftest.er1
30364 cat conftest.err >&5
a848cd7e
SC
30365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30366 (exit $ac_status); } &&
479c790c 30367 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
30368 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30369 (eval $ac_try) 2>&5
30370 ac_status=$?
30371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30372 (exit $ac_status); }; } &&
30373 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
30374 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30375 (eval $ac_try) 2>&5
30376 ac_status=$?
30377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30378 (exit $ac_status); }; }; then
30379 ac_cv_lib_socket_connect=yes
30380else
30381 echo "$as_me: failed program was:" >&5
30382sed 's/^/| /' conftest.$ac_ext >&5
30383
30384ac_cv_lib_socket_connect=no
30385fi
ac1cb8d3
VS
30386rm -f conftest.err conftest.$ac_objext \
30387 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
30388LIBS=$ac_check_lib_save_LIBS
30389fi
30390echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
30391echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
30392if test $ac_cv_lib_socket_connect = yes; then
30393 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
30394fi
30395
30396 fi
30397
30398 # Guillermo Gomez says -lposix is necessary on A/UX.
30399 echo "$as_me:$LINENO: checking for remove" >&5
30400echo $ECHO_N "checking for remove... $ECHO_C" >&6
30401if test "${ac_cv_func_remove+set}" = set; then
30402 echo $ECHO_N "(cached) $ECHO_C" >&6
30403else
30404 cat >conftest.$ac_ext <<_ACEOF
30405/* confdefs.h. */
30406_ACEOF
30407cat confdefs.h >>conftest.$ac_ext
30408cat >>conftest.$ac_ext <<_ACEOF
30409/* end confdefs.h. */
ac1cb8d3
VS
30410/* Define remove to an innocuous variant, in case <limits.h> declares remove.
30411 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30412#define remove innocuous_remove
30413
a848cd7e
SC
30414/* System header to define __stub macros and hopefully few prototypes,
30415 which can conflict with char remove (); below.
30416 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30417 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 30418
a848cd7e
SC
30419#ifdef __STDC__
30420# include <limits.h>
30421#else
30422# include <assert.h>
30423#endif
ac1cb8d3
VS
30424
30425#undef remove
30426
a848cd7e
SC
30427/* Override any gcc2 internal prototype to avoid an error. */
30428#ifdef __cplusplus
30429extern "C"
30430{
30431#endif
30432/* We use char because int might match the return type of a gcc2
30433 builtin and then its argument prototype would still apply. */
30434char remove ();
30435/* The GNU C library defines this for functions which it implements
30436 to always fail with ENOSYS. Some functions are actually named
30437 something starting with __ and the normal name is an alias. */
30438#if defined (__stub_remove) || defined (__stub___remove)
30439choke me
30440#else
30441char (*f) () = remove;
30442#endif
30443#ifdef __cplusplus
30444}
30445#endif
30446
30447int
30448main ()
30449{
30450return f != remove;
30451 ;
30452 return 0;
30453}
30454_ACEOF
30455rm -f conftest.$ac_objext conftest$ac_exeext
30456if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 30457 (eval $ac_link) 2>conftest.er1
a848cd7e 30458 ac_status=$?
ac1cb8d3
VS
30459 grep -v '^ *+' conftest.er1 >conftest.err
30460 rm -f conftest.er1
30461 cat conftest.err >&5
a848cd7e
SC
30462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30463 (exit $ac_status); } &&
479c790c 30464 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
30465 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30466 (eval $ac_try) 2>&5
30467 ac_status=$?
30468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30469 (exit $ac_status); }; } &&
30470 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
30471 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30472 (eval $ac_try) 2>&5
30473 ac_status=$?
30474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30475 (exit $ac_status); }; }; then
30476 ac_cv_func_remove=yes
30477else
30478 echo "$as_me: failed program was:" >&5
30479sed 's/^/| /' conftest.$ac_ext >&5
30480
30481ac_cv_func_remove=no
30482fi
ac1cb8d3
VS
30483rm -f conftest.err conftest.$ac_objext \
30484 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
30485fi
30486echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
30487echo "${ECHO_T}$ac_cv_func_remove" >&6
30488
30489 if test $ac_cv_func_remove = no; then
30490 echo "$as_me:$LINENO: checking for remove in -lposix" >&5
30491echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
30492if test "${ac_cv_lib_posix_remove+set}" = set; then
30493 echo $ECHO_N "(cached) $ECHO_C" >&6
30494else
30495 ac_check_lib_save_LIBS=$LIBS
30496LIBS="-lposix $LIBS"
30497cat >conftest.$ac_ext <<_ACEOF
30498/* confdefs.h. */
30499_ACEOF
30500cat confdefs.h >>conftest.$ac_ext
30501cat >>conftest.$ac_ext <<_ACEOF
30502/* end confdefs.h. */
30503
30504/* Override any gcc2 internal prototype to avoid an error. */
30505#ifdef __cplusplus
30506extern "C"
30507#endif
30508/* We use char because int might match the return type of a gcc2
30509 builtin and then its argument prototype would still apply. */
30510char remove ();
30511int
30512main ()
30513{
30514remove ();
30515 ;
30516 return 0;
30517}
30518_ACEOF
30519rm -f conftest.$ac_objext conftest$ac_exeext
30520if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 30521 (eval $ac_link) 2>conftest.er1
a848cd7e 30522 ac_status=$?
ac1cb8d3
VS
30523 grep -v '^ *+' conftest.er1 >conftest.err
30524 rm -f conftest.er1
30525 cat conftest.err >&5
a848cd7e
SC
30526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30527 (exit $ac_status); } &&
479c790c 30528 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
30529 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30530 (eval $ac_try) 2>&5
30531 ac_status=$?
30532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30533 (exit $ac_status); }; } &&
30534 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
30535 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30536 (eval $ac_try) 2>&5
30537 ac_status=$?
30538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30539 (exit $ac_status); }; }; then
30540 ac_cv_lib_posix_remove=yes
30541else
30542 echo "$as_me: failed program was:" >&5
30543sed 's/^/| /' conftest.$ac_ext >&5
30544
30545ac_cv_lib_posix_remove=no
30546fi
ac1cb8d3
VS
30547rm -f conftest.err conftest.$ac_objext \
30548 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
30549LIBS=$ac_check_lib_save_LIBS
30550fi
30551echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
30552echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
30553if test $ac_cv_lib_posix_remove = yes; then
30554 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
30555fi
30556
30557 fi
30558
30559 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
30560 echo "$as_me:$LINENO: checking for shmat" >&5
30561echo $ECHO_N "checking for shmat... $ECHO_C" >&6
30562if test "${ac_cv_func_shmat+set}" = set; then
30563 echo $ECHO_N "(cached) $ECHO_C" >&6
30564else
30565 cat >conftest.$ac_ext <<_ACEOF
30566/* confdefs.h. */
30567_ACEOF
30568cat confdefs.h >>conftest.$ac_ext
30569cat >>conftest.$ac_ext <<_ACEOF
30570/* end confdefs.h. */
ac1cb8d3
VS
30571/* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
30572 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30573#define shmat innocuous_shmat
30574
a848cd7e
SC
30575/* System header to define __stub macros and hopefully few prototypes,
30576 which can conflict with char shmat (); below.
30577 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30578 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 30579
a848cd7e
SC
30580#ifdef __STDC__
30581# include <limits.h>
30582#else
30583# include <assert.h>
30584#endif
ac1cb8d3
VS
30585
30586#undef shmat
30587
a848cd7e
SC
30588/* Override any gcc2 internal prototype to avoid an error. */
30589#ifdef __cplusplus
30590extern "C"
30591{
30592#endif
30593/* We use char because int might match the return type of a gcc2
30594 builtin and then its argument prototype would still apply. */
30595char shmat ();
30596/* The GNU C library defines this for functions which it implements
30597 to always fail with ENOSYS. Some functions are actually named
30598 something starting with __ and the normal name is an alias. */
30599#if defined (__stub_shmat) || defined (__stub___shmat)
30600choke me
30601#else
30602char (*f) () = shmat;
30603#endif
30604#ifdef __cplusplus
30605}
30606#endif
30607
30608int
30609main ()
30610{
30611return f != shmat;
30612 ;
30613 return 0;
30614}
30615_ACEOF
30616rm -f conftest.$ac_objext conftest$ac_exeext
30617if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 30618 (eval $ac_link) 2>conftest.er1
a848cd7e 30619 ac_status=$?
ac1cb8d3
VS
30620 grep -v '^ *+' conftest.er1 >conftest.err
30621 rm -f conftest.er1
30622 cat conftest.err >&5
a848cd7e
SC
30623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30624 (exit $ac_status); } &&
479c790c 30625 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
30626 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30627 (eval $ac_try) 2>&5
30628 ac_status=$?
30629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30630 (exit $ac_status); }; } &&
30631 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
30632 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30633 (eval $ac_try) 2>&5
30634 ac_status=$?
30635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30636 (exit $ac_status); }; }; then
30637 ac_cv_func_shmat=yes
30638else
30639 echo "$as_me: failed program was:" >&5
30640sed 's/^/| /' conftest.$ac_ext >&5
30641
30642ac_cv_func_shmat=no
30643fi
ac1cb8d3
VS
30644rm -f conftest.err conftest.$ac_objext \
30645 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
30646fi
30647echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
30648echo "${ECHO_T}$ac_cv_func_shmat" >&6
30649
30650 if test $ac_cv_func_shmat = no; then
30651 echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
30652echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
30653if test "${ac_cv_lib_ipc_shmat+set}" = set; then
30654 echo $ECHO_N "(cached) $ECHO_C" >&6
30655else
30656 ac_check_lib_save_LIBS=$LIBS
30657LIBS="-lipc $LIBS"
30658cat >conftest.$ac_ext <<_ACEOF
30659/* confdefs.h. */
30660_ACEOF
30661cat confdefs.h >>conftest.$ac_ext
30662cat >>conftest.$ac_ext <<_ACEOF
30663/* end confdefs.h. */
30664
30665/* Override any gcc2 internal prototype to avoid an error. */
30666#ifdef __cplusplus
30667extern "C"
30668#endif
30669/* We use char because int might match the return type of a gcc2
30670 builtin and then its argument prototype would still apply. */
30671char shmat ();
30672int
30673main ()
30674{
30675shmat ();
30676 ;
30677 return 0;
30678}
30679_ACEOF
30680rm -f conftest.$ac_objext conftest$ac_exeext
30681if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 30682 (eval $ac_link) 2>conftest.er1
a848cd7e 30683 ac_status=$?
ac1cb8d3
VS
30684 grep -v '^ *+' conftest.er1 >conftest.err
30685 rm -f conftest.er1
30686 cat conftest.err >&5
a848cd7e
SC
30687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30688 (exit $ac_status); } &&
479c790c 30689 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
30690 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30691 (eval $ac_try) 2>&5
30692 ac_status=$?
30693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30694 (exit $ac_status); }; } &&
30695 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
30696 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30697 (eval $ac_try) 2>&5
30698 ac_status=$?
30699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30700 (exit $ac_status); }; }; then
30701 ac_cv_lib_ipc_shmat=yes
30702else
30703 echo "$as_me: failed program was:" >&5
30704sed 's/^/| /' conftest.$ac_ext >&5
30705
30706ac_cv_lib_ipc_shmat=no
30707fi
ac1cb8d3
VS
30708rm -f conftest.err conftest.$ac_objext \
30709 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
30710LIBS=$ac_check_lib_save_LIBS
30711fi
30712echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
30713echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
30714if test $ac_cv_lib_ipc_shmat = yes; then
30715 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
30716fi
30717
30718 fi
30719 fi
30720
30721 # Check for libraries that X11R6 Xt/Xaw programs need.
30722 ac_save_LDFLAGS=$LDFLAGS
30723 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
30724 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
30725 # check for ICE first), but we must link in the order -lSM -lICE or
30726 # we get undefined symbols. So assume we have SM if we have ICE.
30727 # These have to be linked with before -lX11, unlike the other
30728 # libraries we check for below, so use a different variable.
30729 # John Interrante, Karl Berry
30730 echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
30731echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
30732if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
30733 echo $ECHO_N "(cached) $ECHO_C" >&6
30734else
30735 ac_check_lib_save_LIBS=$LIBS
30736LIBS="-lICE $X_EXTRA_LIBS $LIBS"
30737cat >conftest.$ac_ext <<_ACEOF
30738/* confdefs.h. */
30739_ACEOF
30740cat confdefs.h >>conftest.$ac_ext
30741cat >>conftest.$ac_ext <<_ACEOF
30742/* end confdefs.h. */
30743
30744/* Override any gcc2 internal prototype to avoid an error. */
30745#ifdef __cplusplus
30746extern "C"
30747#endif
30748/* We use char because int might match the return type of a gcc2
30749 builtin and then its argument prototype would still apply. */
30750char IceConnectionNumber ();
30751int
30752main ()
30753{
30754IceConnectionNumber ();
30755 ;
30756 return 0;
30757}
30758_ACEOF
30759rm -f conftest.$ac_objext conftest$ac_exeext
30760if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 30761 (eval $ac_link) 2>conftest.er1
a848cd7e 30762 ac_status=$?
ac1cb8d3
VS
30763 grep -v '^ *+' conftest.er1 >conftest.err
30764 rm -f conftest.er1
30765 cat conftest.err >&5
a848cd7e
SC
30766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30767 (exit $ac_status); } &&
479c790c 30768 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
30769 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30770 (eval $ac_try) 2>&5
30771 ac_status=$?
30772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30773 (exit $ac_status); }; } &&
30774 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
30775 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30776 (eval $ac_try) 2>&5
30777 ac_status=$?
30778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30779 (exit $ac_status); }; }; then
30780 ac_cv_lib_ICE_IceConnectionNumber=yes
30781else
30782 echo "$as_me: failed program was:" >&5
30783sed 's/^/| /' conftest.$ac_ext >&5
30784
30785ac_cv_lib_ICE_IceConnectionNumber=no
30786fi
ac1cb8d3
VS
30787rm -f conftest.err conftest.$ac_objext \
30788 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
30789LIBS=$ac_check_lib_save_LIBS
30790fi
30791echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
30792echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
30793if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
30794 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
30795fi
30796
30797 LDFLAGS=$ac_save_LDFLAGS
30798
30799fi
30800
30801
30802 if test "$no_x" = "yes"; then
89d90d6d
VZ
30803 { { echo "$as_me:$LINENO: error: X11 not found, please use --x-includes and/or --x-libraries options (see config.log for details)" >&5
30804echo "$as_me: error: X11 not found, please use --x-includes and/or --x-libraries options (see config.log for details)" >&2;}
30805 { (exit 1); exit 1; }; }
a848cd7e
SC
30806 fi
30807
74b84332
VS
30808 GUI_TK_LIBRARY=`echo $X_LIBS | sed 's/ -LNONE//' | sed 's/ -RNONE//'`
30809 TOOLKIT_INCLUDE=`echo $X_CFLAGS | sed 's/ -INONE//'`
a848cd7e
SC
30810 AFMINSTALL=afminstall
30811 COMPILED_X_PROGRAM=0
30812
74b84332
VS
30813 fi
30814
30815 if test "$wxUSE_X11" = 1; then
a848cd7e
SC
30816 if test "$wxUSE_NANOX" = "yes"; then
30817 echo "$as_me:$LINENO: checking for MicroWindows/NanoX distribution" >&5
30818echo $ECHO_N "checking for MicroWindows/NanoX distribution... $ECHO_C" >&6
30819 if test "x$MICROWIN" = x ; then
30820 echo "$as_me:$LINENO: result: not found" >&5
30821echo "${ECHO_T}not found" >&6
30822 { { echo "$as_me:$LINENO: error: Cannot find MicroWindows library. Make sure MICROWIN is set." >&5
30823echo "$as_me: error: Cannot find MicroWindows library. Make sure MICROWIN is set." >&2;}
30824 { (exit 1); exit 1; }; }
30825 else
30826 echo "$as_me:$LINENO: result: $MICROWIN" >&5
30827echo "${ECHO_T}$MICROWIN" >&6
30828 cat >>confdefs.h <<\_ACEOF
30829#define wxUSE_NANOX 1
30830_ACEOF
30831
30832 fi
30833 fi
30834
30835 if test "$wxUSE_UNICODE" = "yes"; then
30836
479c790c
VZ
30837
30838if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
30839 if test -n "$ac_tool_prefix"; then
30840 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
30841set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
30842echo "$as_me:$LINENO: checking for $ac_word" >&5
30843echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
30844if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
30845 echo $ECHO_N "(cached) $ECHO_C" >&6
30846else
30847 case $PKG_CONFIG in
30848 [\\/]* | ?:[\\/]*)
30849 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
30850 ;;
30851 *)
30852 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30853for as_dir in $PATH
30854do
30855 IFS=$as_save_IFS
30856 test -z "$as_dir" && as_dir=.
30857 for ac_exec_ext in '' $ac_executable_extensions; do
30858 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
30859 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
30860 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
30861 break 2
30862 fi
30863done
30864done
30865
30866 ;;
30867esac
30868fi
30869PKG_CONFIG=$ac_cv_path_PKG_CONFIG
30870
30871if test -n "$PKG_CONFIG"; then
30872 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
30873echo "${ECHO_T}$PKG_CONFIG" >&6
30874else
30875 echo "$as_me:$LINENO: result: no" >&5
30876echo "${ECHO_T}no" >&6
30877fi
30878
30879fi
30880if test -z "$ac_cv_path_PKG_CONFIG"; then
30881 ac_pt_PKG_CONFIG=$PKG_CONFIG
30882 # Extract the first word of "pkg-config", so it can be a program name with args.
30883set dummy pkg-config; ac_word=$2
30884echo "$as_me:$LINENO: checking for $ac_word" >&5
30885echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
30886if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
30887 echo $ECHO_N "(cached) $ECHO_C" >&6
30888else
30889 case $ac_pt_PKG_CONFIG in
30890 [\\/]* | ?:[\\/]*)
30891 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
30892 ;;
30893 *)
30894 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30895for as_dir in $PATH
30896do
30897 IFS=$as_save_IFS
30898 test -z "$as_dir" && as_dir=.
30899 for ac_exec_ext in '' $ac_executable_extensions; do
30900 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
30901 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
30902 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
30903 break 2
30904 fi
30905done
30906done
30907
30908 ;;
30909esac
30910fi
30911ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
30912
30913if test -n "$ac_pt_PKG_CONFIG"; then
30914 echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
30915echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6
30916else
30917 echo "$as_me:$LINENO: result: no" >&5
30918echo "${ECHO_T}no" >&6
30919fi
30920
30921 PKG_CONFIG=$ac_pt_PKG_CONFIG
30922else
30923 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
30924fi
30925
30926fi
30927if test -n "$PKG_CONFIG"; then
30928 _pkg_min_version=0.9.0
30929 echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
30930echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6
30931 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
30932 echo "$as_me:$LINENO: result: yes" >&5
30933echo "${ECHO_T}yes" >&6
30934 else
30935 echo "$as_me:$LINENO: result: no" >&5
30936echo "${ECHO_T}no" >&6
30937 PKG_CONFIG=""
30938 fi
30939
30940fi
30941
30942
3ecd9f92
MW
30943pkg_failed=no
30944echo "$as_me:$LINENO: checking for PANGOX" >&5
30945echo $ECHO_N "checking for PANGOX... $ECHO_C" >&6
a848cd7e 30946
3ecd9f92
MW
30947if test -n "$PKG_CONFIG"; then
30948 if test -n "$PANGOX_CFLAGS"; then
30949 pkg_cv_PANGOX_CFLAGS="$PANGOX_CFLAGS"
30950 else
30951 if test -n "$PKG_CONFIG" && \
30952 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pangox\"") >&5
30953 ($PKG_CONFIG --exists --print-errors "pangox") 2>&5
30954 ac_status=$?
30955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30956 (exit $ac_status); }; then
30957 pkg_cv_PANGOX_CFLAGS=`$PKG_CONFIG --cflags "pangox" 2>/dev/null`
30958else
30959 pkg_failed=yes
30960fi
30961 fi
30962else
30963 pkg_failed=untried
30964fi
30965if test -n "$PKG_CONFIG"; then
30966 if test -n "$PANGOX_LIBS"; then
30967 pkg_cv_PANGOX_LIBS="$PANGOX_LIBS"
30968 else
30969 if test -n "$PKG_CONFIG" && \
30970 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pangox\"") >&5
30971 ($PKG_CONFIG --exists --print-errors "pangox") 2>&5
30972 ac_status=$?
30973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30974 (exit $ac_status); }; then
30975 pkg_cv_PANGOX_LIBS=`$PKG_CONFIG --libs "pangox" 2>/dev/null`
30976else
30977 pkg_failed=yes
30978fi
30979 fi
30980else
30981 pkg_failed=untried
30982fi
30983
30984
30985
30986if test $pkg_failed = yes; then
30987
30988if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
30989 _pkg_short_errors_supported=yes
30990else
30991 _pkg_short_errors_supported=no
30992fi
30993 if test $_pkg_short_errors_supported = yes; then
30994 PANGOX_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "pangox"`
30995 else
30996 PANGOX_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangox"`
a848cd7e 30997 fi
3ecd9f92
MW
30998 # Put the nasty error message in config.log where it belongs
30999 echo "$PANGOX_PKG_ERRORS" >&5
a848cd7e
SC
31000
31001
479c790c 31002 { { echo "$as_me:$LINENO: error: pangox library not found, library cannot be compiled in Unicode mode" >&5
3ecd9f92
MW
31003echo "$as_me: error: pangox library not found, library cannot be compiled in Unicode mode" >&2;}
31004 { (exit 1); exit 1; }; }
a848cd7e 31005
a848cd7e 31006
3ecd9f92 31007elif test $pkg_failed = untried; then
a848cd7e 31008
479c790c 31009 { { echo "$as_me:$LINENO: error: pangox library not found, library cannot be compiled in Unicode mode" >&5
3ecd9f92
MW
31010echo "$as_me: error: pangox library not found, library cannot be compiled in Unicode mode" >&2;}
31011 { (exit 1); exit 1; }; }
31012
31013
31014else
31015 PANGOX_CFLAGS=$pkg_cv_PANGOX_CFLAGS
31016 PANGOX_LIBS=$pkg_cv_PANGOX_LIBS
31017 echo "$as_me:$LINENO: result: yes" >&5
31018echo "${ECHO_T}yes" >&6
31019
479c790c
VZ
31020 CXXFLAGS="$PANGOX_CFLAGS $CXXFLAGS"
31021 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOX_LIBS"
3ecd9f92
MW
31022
31023fi
31024
31025pkg_failed=no
31026echo "$as_me:$LINENO: checking for PANGOFT2" >&5
31027echo $ECHO_N "checking for PANGOFT2... $ECHO_C" >&6
31028
31029if test -n "$PKG_CONFIG"; then
31030 if test -n "$PANGOFT2_CFLAGS"; then
31031 pkg_cv_PANGOFT2_CFLAGS="$PANGOFT2_CFLAGS"
31032 else
31033 if test -n "$PKG_CONFIG" && \
31034 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pangoft2\"") >&5
31035 ($PKG_CONFIG --exists --print-errors "pangoft2") 2>&5
31036 ac_status=$?
31037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31038 (exit $ac_status); }; then
31039 pkg_cv_PANGOFT2_CFLAGS=`$PKG_CONFIG --cflags "pangoft2" 2>/dev/null`
31040else
31041 pkg_failed=yes
31042fi
31043 fi
31044else
31045 pkg_failed=untried
31046fi
31047if test -n "$PKG_CONFIG"; then
31048 if test -n "$PANGOFT2_LIBS"; then
31049 pkg_cv_PANGOFT2_LIBS="$PANGOFT2_LIBS"
31050 else
31051 if test -n "$PKG_CONFIG" && \
31052 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pangoft2\"") >&5
31053 ($PKG_CONFIG --exists --print-errors "pangoft2") 2>&5
31054 ac_status=$?
31055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31056 (exit $ac_status); }; then
31057 pkg_cv_PANGOFT2_LIBS=`$PKG_CONFIG --libs "pangoft2" 2>/dev/null`
31058else
31059 pkg_failed=yes
31060fi
31061 fi
31062else
31063 pkg_failed=untried
31064fi
31065
31066
31067
31068if test $pkg_failed = yes; then
31069
31070if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
31071 _pkg_short_errors_supported=yes
31072else
31073 _pkg_short_errors_supported=no
31074fi
31075 if test $_pkg_short_errors_supported = yes; then
31076 PANGOFT2_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "pangoft2"`
31077 else
31078 PANGOFT2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoft2"`
31079 fi
31080 # Put the nasty error message in config.log where it belongs
31081 echo "$PANGOFT2_PKG_ERRORS" >&5
a848cd7e 31082
a848cd7e 31083
479c790c 31084 { echo "$as_me:$LINENO: WARNING: pangoft2 library not found, library will be compiled without printing support" >&5
a848cd7e 31085echo "$as_me: WARNING: pangoft2 library not found, library will be compiled without printing support" >&2;}
479c790c 31086 wxUSE_PRINTING_ARCHITECTURE="no"
a848cd7e
SC
31087
31088
3ecd9f92 31089elif test $pkg_failed = untried; then
a848cd7e 31090
479c790c 31091 { echo "$as_me:$LINENO: WARNING: pangoft2 library not found, library will be compiled without printing support" >&5
3ecd9f92 31092echo "$as_me: WARNING: pangoft2 library not found, library will be compiled without printing support" >&2;}
479c790c 31093 wxUSE_PRINTING_ARCHITECTURE="no"
a848cd7e 31094
a848cd7e 31095
a848cd7e 31096else
3ecd9f92
MW
31097 PANGOFT2_CFLAGS=$pkg_cv_PANGOFT2_CFLAGS
31098 PANGOFT2_LIBS=$pkg_cv_PANGOFT2_LIBS
31099 echo "$as_me:$LINENO: result: yes" >&5
31100echo "${ECHO_T}yes" >&6
31101
479c790c
VZ
31102 CXXFLAGS="$PANGOFT2_CFLAGS $CXXFLAGS"
31103 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOFT2_LIBS"
a848cd7e 31104
a848cd7e 31105fi
3ecd9f92
MW
31106
31107pkg_failed=no
31108echo "$as_me:$LINENO: checking for PANGOXFT" >&5
31109echo $ECHO_N "checking for PANGOXFT... $ECHO_C" >&6
a848cd7e
SC
31110
31111if test -n "$PKG_CONFIG"; then
3ecd9f92
MW
31112 if test -n "$PANGOXFT_CFLAGS"; then
31113 pkg_cv_PANGOXFT_CFLAGS="$PANGOXFT_CFLAGS"
31114 else
31115 if test -n "$PKG_CONFIG" && \
31116 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pangoxft\"") >&5
31117 ($PKG_CONFIG --exists --print-errors "pangoxft") 2>&5
31118 ac_status=$?
31119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31120 (exit $ac_status); }; then
31121 pkg_cv_PANGOXFT_CFLAGS=`$PKG_CONFIG --cflags "pangoxft" 2>/dev/null`
a848cd7e 31122else
3ecd9f92
MW
31123 pkg_failed=yes
31124fi
31125 fi
31126else
31127 pkg_failed=untried
31128fi
31129if test -n "$PKG_CONFIG"; then
31130 if test -n "$PANGOXFT_LIBS"; then
31131 pkg_cv_PANGOXFT_LIBS="$PANGOXFT_LIBS"
31132 else
31133 if test -n "$PKG_CONFIG" && \
31134 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pangoxft\"") >&5
31135 ($PKG_CONFIG --exists --print-errors "pangoxft") 2>&5
31136 ac_status=$?
31137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31138 (exit $ac_status); }; then
31139 pkg_cv_PANGOXFT_LIBS=`$PKG_CONFIG --libs "pangoxft" 2>/dev/null`
31140else
31141 pkg_failed=yes
31142fi
31143 fi
31144else
31145 pkg_failed=untried
a848cd7e
SC
31146fi
31147
a848cd7e 31148
a848cd7e 31149
3ecd9f92 31150if test $pkg_failed = yes; then
a848cd7e 31151
3ecd9f92
MW
31152if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
31153 _pkg_short_errors_supported=yes
31154else
31155 _pkg_short_errors_supported=no
31156fi
31157 if test $_pkg_short_errors_supported = yes; then
31158 PANGOXFT_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "pangoxft"`
31159 else
31160 PANGOXFT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoxft"`
a848cd7e 31161 fi
3ecd9f92
MW
31162 # Put the nasty error message in config.log where it belongs
31163 echo "$PANGOXFT_PKG_ERRORS" >&5
a848cd7e
SC
31164
31165
479c790c 31166 { echo "$as_me:$LINENO: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&5
3ecd9f92
MW
31167echo "$as_me: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&2;}
31168
a848cd7e 31169
3ecd9f92 31170elif test $pkg_failed = untried; then
a848cd7e 31171
479c790c 31172 { echo "$as_me:$LINENO: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&5
3ecd9f92
MW
31173echo "$as_me: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&2;}
31174
31175
31176else
31177 PANGOXFT_CFLAGS=$pkg_cv_PANGOXFT_CFLAGS
31178 PANGOXFT_LIBS=$pkg_cv_PANGOXFT_LIBS
31179 echo "$as_me:$LINENO: result: yes" >&5
31180echo "${ECHO_T}yes" >&6
a848cd7e 31181
479c790c 31182 cat >>confdefs.h <<\_ACEOF
4ae1af05
MB
31183#define HAVE_PANGO_XFT 1
31184_ACEOF
31185
479c790c
VZ
31186 CXXFLAGS="$PANGOXFT_CFLAGS $CXXFLAGS"
31187 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOXFT_LIBS"
a848cd7e 31188
3ecd9f92 31189fi
479c790c
VZ
31190 save_CXXFLAGS="$CXXFLAGS"
31191 save_LIBS="$LIBS"
31192 CXXFLAGS="$PANGOX_CFLAGS $CXXFLAGS"
31193 LIBS="$LIBS $PANGOX_LIBS"
304205f1
VS
31194
31195for ac_func in pango_font_family_is_monospace
31196do
31197as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31198echo "$as_me:$LINENO: checking for $ac_func" >&5
31199echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
31200if eval "test \"\${$as_ac_var+set}\" = set"; then
31201 echo $ECHO_N "(cached) $ECHO_C" >&6
31202else
31203 cat >conftest.$ac_ext <<_ACEOF
31204/* confdefs.h. */
31205_ACEOF
31206cat confdefs.h >>conftest.$ac_ext
31207cat >>conftest.$ac_ext <<_ACEOF
31208/* end confdefs.h. */
31209/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31210 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31211#define $ac_func innocuous_$ac_func
31212
31213/* System header to define __stub macros and hopefully few prototypes,
31214 which can conflict with char $ac_func (); below.
31215 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31216 <limits.h> exists even on freestanding compilers. */
31217
31218#ifdef __STDC__
31219# include <limits.h>
31220#else
31221# include <assert.h>
31222#endif
31223
31224#undef $ac_func
31225
31226/* Override any gcc2 internal prototype to avoid an error. */
31227#ifdef __cplusplus
31228extern "C"
31229{
31230#endif
31231/* We use char because int might match the return type of a gcc2
31232 builtin and then its argument prototype would still apply. */
31233char $ac_func ();
31234/* The GNU C library defines this for functions which it implements
31235 to always fail with ENOSYS. Some functions are actually named
31236 something starting with __ and the normal name is an alias. */
31237#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
31238choke me
31239#else
31240char (*f) () = $ac_func;
31241#endif
31242#ifdef __cplusplus
31243}
31244#endif
31245
31246int
31247main ()
31248{
31249return f != $ac_func;
31250 ;
31251 return 0;
31252}
31253_ACEOF
31254rm -f conftest.$ac_objext conftest$ac_exeext
31255if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31256 (eval $ac_link) 2>conftest.er1
31257 ac_status=$?
31258 grep -v '^ *+' conftest.er1 >conftest.err
31259 rm -f conftest.er1
31260 cat conftest.err >&5
31261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31262 (exit $ac_status); } &&
479c790c 31263 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
304205f1
VS
31264 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31265 (eval $ac_try) 2>&5
31266 ac_status=$?
31267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31268 (exit $ac_status); }; } &&
31269 { ac_try='test -s conftest$ac_exeext'
31270 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31271 (eval $ac_try) 2>&5
31272 ac_status=$?
31273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31274 (exit $ac_status); }; }; then
31275 eval "$as_ac_var=yes"
31276else
31277 echo "$as_me: failed program was:" >&5
31278sed 's/^/| /' conftest.$ac_ext >&5
31279
31280eval "$as_ac_var=no"
31281fi
31282rm -f conftest.err conftest.$ac_objext \
31283 conftest$ac_exeext conftest.$ac_ext
31284fi
31285echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
31286echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
31287if test `eval echo '${'$as_ac_var'}'` = yes; then
31288 cat >>confdefs.h <<_ACEOF
31289#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31290_ACEOF
31291
31292fi
31293done
31294
479c790c
VZ
31295 CXXFLAGS="$save_CXXFLAGS"
31296 LIBS="$save_LIBS"
a848cd7e
SC
31297 fi
31298
31299 wxUSE_UNIVERSAL="yes"
31300
31301 if test "$wxUSE_NANOX" = "yes"; then
31302 TOOLKIT_INCLUDE="-I\$(top_srcdir)/include/wx/x11/nanox -I\$(MICROWIN)/src/include $TOOLKIT_INCLUDE"
31303 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"
31304 GUI_TK_LIBRARY="$GUI_TK_LIBRARY \$(MICROWIN)/src/lib/libnano-X.a"
31305 else
31306 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lX11"
31307 fi
31308
a848cd7e
SC
31309 TOOLKIT=X11
31310 GUIDIST=X11_DIST
31311 fi
31312
31313 if test "$wxUSE_MOTIF" = 1; then
0a08f02a
MB
31314 if test "$wxUSE_UNICODE" = "yes"; then
31315 { { echo "$as_me:$LINENO: error: Unicode configuration not supported with Motif" >&5
31316echo "$as_me: error: Unicode configuration not supported with Motif" >&2;}
31317 { (exit 1); exit 1; }; }
31318 fi
31319
74b84332
VS
31320 echo "$as_me:$LINENO: checking for Motif/Lesstif headers" >&5
31321echo $ECHO_N "checking for Motif/Lesstif headers... $ECHO_C" >&6
a848cd7e 31322
74b84332
VS
31323ac_find_includes=
31324for ac_dir in $SEARCH_INCLUDE /usr/include;
31325 do
31326 if test -f "$ac_dir/Xm/Xm.h"; then
31327 ac_find_includes=$ac_dir
31328 break
31329 fi
31330 done
a848cd7e 31331
74b84332
VS
31332 if test "$ac_find_includes" != "" ; then
31333 echo "$as_me:$LINENO: result: found in $ac_find_includes" >&5
31334echo "${ECHO_T}found in $ac_find_includes" >&6
31335
31336 if test "x$ac_find_includes" = "x/usr/include"; then
31337 ac_path_to_include=""
31338 else
31339 echo "$TOOLKIT_INCLUDE" | grep "\-I$ac_find_includes" > /dev/null
31340 result=$?
31341 if test $result = 0; then
31342 ac_path_to_include=""
31343 else
31344 ac_path_to_include=" -I$ac_find_includes"
31345 fi
a848cd7e
SC
31346 fi
31347
74b84332
VS
31348 TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE$ac_path_to_include"
31349 else
e56f4f9e
VZ
31350 save_CXXFLAGS=$CXXFLAGS
31351 CXXFLAGS="$TOOLKIT_INCLUDE $CXXFLAGS"
e051b34e 31352
74b84332 31353 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
31354/* confdefs.h. */
31355_ACEOF
31356cat confdefs.h >>conftest.$ac_ext
31357cat >>conftest.$ac_ext <<_ACEOF
31358/* end confdefs.h. */
31359
74b84332
VS
31360 #include <Xm/Xm.h>
31361
a848cd7e
SC
31362int
31363main ()
31364{
31365
74b84332
VS
31366 int version;
31367 version = xmUseVersion;
31368
a848cd7e
SC
31369 ;
31370 return 0;
31371}
31372_ACEOF
74b84332
VS
31373rm -f conftest.$ac_objext
31374if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31375 (eval $ac_compile) 2>conftest.er1
a848cd7e 31376 ac_status=$?
ac1cb8d3
VS
31377 grep -v '^ *+' conftest.er1 >conftest.err
31378 rm -f conftest.er1
31379 cat conftest.err >&5
a848cd7e
SC
31380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31381 (exit $ac_status); } &&
479c790c 31382 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
31383 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31384 (eval $ac_try) 2>&5
31385 ac_status=$?
31386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31387 (exit $ac_status); }; } &&
74b84332 31388 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
31389 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31390 (eval $ac_try) 2>&5
31391 ac_status=$?
31392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31393 (exit $ac_status); }; }; then
74b84332
VS
31394
31395 echo "$as_me:$LINENO: result: found in default search path" >&5
31396echo "${ECHO_T}found in default search path" >&6
31397 COMPILED_X_PROGRAM=1
31398
a848cd7e
SC
31399else
31400 echo "$as_me: failed program was:" >&5
31401sed 's/^/| /' conftest.$ac_ext >&5
31402
a848cd7e 31403
74b84332
VS
31404 echo "$as_me:$LINENO: result: no" >&5
31405echo "${ECHO_T}no" >&6
e051b34e
MW
31406 { { echo "$as_me:$LINENO: error: please set CPPFLAGS to contain the location of Xm/Xm.h" >&5
31407echo "$as_me: error: please set CPPFLAGS to contain the location of Xm/Xm.h" >&2;}
74b84332 31408 { (exit 1); exit 1; }; }
a848cd7e 31409
a848cd7e 31410
a848cd7e 31411fi
74b84332 31412rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e051b34e 31413
e56f4f9e 31414 CXXFLAGS=$save_CXXFLAGS
74b84332
VS
31415 fi
31416
0ad5d837
VZ
31417
31418 echo "$as_me:$LINENO: checking for Motif/Lesstif library" >&5
74b84332
VS
31419echo $ECHO_N "checking for Motif/Lesstif library... $ECHO_C" >&6
31420
0ad5d837
VZ
31421 ac_find_libraries=
31422 for ac_dir in $SEARCH_LIB;
74b84332 31423 do
3eca31dc 31424 for ac_extension in a so sl dylib dll.a; do
74b84332
VS
31425 if test -f "$ac_dir/libXm.$ac_extension"; then
31426 ac_find_libraries=$ac_dir
31427 break 2
a848cd7e 31428 fi
74b84332
VS
31429 done
31430 done
a848cd7e 31431
0ad5d837
VZ
31432
31433 if test "x$ac_find_libraries" != "x" ; then
31434 echo "$as_me:$LINENO: result: found in $ac_find_libraries" >&5
31435echo "${ECHO_T}found in $ac_find_libraries" >&6
a848cd7e 31436
74b84332 31437
0ad5d837 31438 if test "$ac_find_libraries" = "default location"; then
74b84332 31439 ac_path_to_link=""
a848cd7e 31440 else
0ad5d837
VZ
31441 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
31442 result=$?
31443 if test $result = 0; then
31444 ac_path_to_link=""
31445 else
31446 ac_path_to_link=" -L$ac_find_libraries"
31447 fi
74b84332
VS
31448 fi
31449
0ad5d837
VZ
31450 GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
31451 else
e56f4f9e
VZ
31452 save_CXXFLAGS=$CXXFLAGS
31453 CXXFLAGS="$TOOLKIT_INCLUDE $CXXFLAGS"
6f9cf1e6
MW
31454 save_LIBS="$LIBS"
31455 LIBS="$GUI_TK_LIBRARY -lXm -lXmu -lXext -lX11"
74b84332 31456
0ad5d837 31457 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
31458/* confdefs.h. */
31459_ACEOF
31460cat confdefs.h >>conftest.$ac_ext
31461cat >>conftest.$ac_ext <<_ACEOF
31462/* end confdefs.h. */
31463
0ad5d837 31464 #include <Xm/Xm.h>
74b84332 31465
a848cd7e
SC
31466int
31467main ()
31468{
74b84332 31469
0ad5d837
VZ
31470 int version;
31471 version = xmUseVersion;
74b84332 31472
a848cd7e
SC
31473 ;
31474 return 0;
31475}
31476_ACEOF
0ad5d837
VZ
31477rm -f conftest.$ac_objext conftest$ac_exeext
31478if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31479 (eval $ac_link) 2>conftest.er1
a848cd7e 31480 ac_status=$?
ac1cb8d3
VS
31481 grep -v '^ *+' conftest.er1 >conftest.err
31482 rm -f conftest.er1
31483 cat conftest.err >&5
a848cd7e
SC
31484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31485 (exit $ac_status); } &&
479c790c 31486 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
31487 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31488 (eval $ac_try) 2>&5
31489 ac_status=$?
31490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31491 (exit $ac_status); }; } &&
0ad5d837 31492 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
31493 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31494 (eval $ac_try) 2>&5
31495 ac_status=$?
31496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31497 (exit $ac_status); }; }; then
74b84332 31498
0ad5d837 31499 echo "$as_me:$LINENO: result: found in default search path" >&5
74b84332 31500echo "${ECHO_T}found in default search path" >&6
0ad5d837 31501 COMPILED_X_PROGRAM=1
74b84332 31502
a848cd7e
SC
31503else
31504 echo "$as_me: failed program was:" >&5
31505sed 's/^/| /' conftest.$ac_ext >&5
31506
74b84332 31507
6f9cf1e6 31508 echo "$as_me:$LINENO: result: no" >&5
74b84332 31509echo "${ECHO_T}no" >&6
6f9cf1e6 31510 { { echo "$as_me:$LINENO: error: please set LDFLAGS to contain the location of libXm" >&5
74b84332
VS
31511echo "$as_me: error: please set LDFLAGS to contain the location of libXm" >&2;}
31512 { (exit 1); exit 1; }; }
31513
31514
31515fi
0ad5d837
VZ
31516rm -f conftest.err conftest.$ac_objext \
31517 conftest$ac_exeext conftest.$ac_ext
74b84332 31518
e56f4f9e 31519 CXXFLAGS=$save_CXXFLAGS
6f9cf1e6 31520 LIBS="$save_LIBS"
74b84332
VS
31521 fi
31522
31523 echo "$as_me:$LINENO: checking if we need -lXp and/or -lSM -lICE" >&5
31524echo $ECHO_N "checking if we need -lXp and/or -lSM -lICE... $ECHO_C" >&6
31525 libp_link=""
31526 libsm_ice_link=""
31527 libs_found=0
31528 for libp in "" " -lXp"; do
31529 if test "$libs_found" = "0"; then
31530 for libsm_ice in "" " -lSM -lICE"; do
31531 if test "$libs_found" = "0"; then
31532 save_LIBS="$LIBS"
31533 LIBS="$GUI_TK_LIBRARY -lXm ${libp} -lXmu -lXext -lXt${libsm_ice} -lX11"
e56f4f9e
VZ
31534 save_CXXFLAGS=$CXXFLAGS
31535 CXXFLAGS="$TOOLKIT_INCLUDE $CXXFLAGS"
74b84332
VS
31536
31537 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
31538/* confdefs.h. */
31539_ACEOF
31540cat confdefs.h >>conftest.$ac_ext
31541cat >>conftest.$ac_ext <<_ACEOF
31542/* end confdefs.h. */
31543
74b84332
VS
31544 #include <Xm/Xm.h>
31545 #include <Xm/List.h>
31546
a848cd7e
SC
31547int
31548main ()
31549{
74b84332
VS
31550
31551 XmString string = NULL;
31552 Widget w = NULL;
31553 int position = 0;
31554 XmListAddItem(w, string, position);
31555
a848cd7e
SC
31556 ;
31557 return 0;
31558}
31559_ACEOF
31560rm -f conftest.$ac_objext conftest$ac_exeext
31561if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 31562 (eval $ac_link) 2>conftest.er1
a848cd7e 31563 ac_status=$?
ac1cb8d3
VS
31564 grep -v '^ *+' conftest.er1 >conftest.err
31565 rm -f conftest.er1
31566 cat conftest.err >&5
a848cd7e
SC
31567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31568 (exit $ac_status); } &&
479c790c 31569 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
31570 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31571 (eval $ac_try) 2>&5
31572 ac_status=$?
31573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31574 (exit $ac_status); }; } &&
31575 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
31576 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31577 (eval $ac_try) 2>&5
31578 ac_status=$?
31579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31580 (exit $ac_status); }; }; then
31581
31582 libp_link="$libp"
31583 libsm_ice_link="$libsm_ice"
31584 echo "$as_me:$LINENO: result: need${libp_link}${libsm_ice_link}" >&5
31585echo "${ECHO_T}need${libp_link}${libsm_ice_link}" >&6
31586 libs_found=1
31587
31588else
31589 echo "$as_me: failed program was:" >&5
31590sed 's/^/| /' conftest.$ac_ext >&5
31591
31592
31593
31594fi
ac1cb8d3
VS
31595rm -f conftest.err conftest.$ac_objext \
31596 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
31597
31598 LIBS="$save_LIBS"
e56f4f9e 31599 CXXFLAGS=$save_CXXFLAGS
a848cd7e
SC
31600 fi
31601 done
31602 fi
31603 done
31604
31605 if test "$libs_found" = "0"; then
31606 echo "$as_me:$LINENO: result: can't find the right libraries" >&5
31607echo "${ECHO_T}can't find the right libraries" >&6
31608 { { echo "$as_me:$LINENO: error: can't link a simple motif program" >&5
31609echo "$as_me: error: can't link a simple motif program" >&2;}
31610 { (exit 1); exit 1; }; }
31611 fi
31612
62fa8b3a
MW
31613 echo "$as_me:$LINENO: checking for SgCreateList in -lSgm" >&5
31614echo $ECHO_N "checking for SgCreateList in -lSgm... $ECHO_C" >&6
31615if test "${ac_cv_lib_Sgm_SgCreateList+set}" = set; then
31616 echo $ECHO_N "(cached) $ECHO_C" >&6
31617else
31618 ac_check_lib_save_LIBS=$LIBS
31619LIBS="-lSgm $LIBS"
31620cat >conftest.$ac_ext <<_ACEOF
31621/* confdefs.h. */
31622_ACEOF
31623cat confdefs.h >>conftest.$ac_ext
31624cat >>conftest.$ac_ext <<_ACEOF
31625/* end confdefs.h. */
31626
31627/* Override any gcc2 internal prototype to avoid an error. */
31628#ifdef __cplusplus
31629extern "C"
31630#endif
31631/* We use char because int might match the return type of a gcc2
31632 builtin and then its argument prototype would still apply. */
31633char SgCreateList ();
31634int
31635main ()
31636{
31637SgCreateList ();
31638 ;
31639 return 0;
31640}
31641_ACEOF
31642rm -f conftest.$ac_objext conftest$ac_exeext
31643if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31644 (eval $ac_link) 2>conftest.er1
31645 ac_status=$?
31646 grep -v '^ *+' conftest.er1 >conftest.err
31647 rm -f conftest.er1
31648 cat conftest.err >&5
31649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31650 (exit $ac_status); } &&
479c790c 31651 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
62fa8b3a
MW
31652 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31653 (eval $ac_try) 2>&5
31654 ac_status=$?
31655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31656 (exit $ac_status); }; } &&
31657 { ac_try='test -s conftest$ac_exeext'
31658 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31659 (eval $ac_try) 2>&5
31660 ac_status=$?
31661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31662 (exit $ac_status); }; }; then
31663 ac_cv_lib_Sgm_SgCreateList=yes
31664else
31665 echo "$as_me: failed program was:" >&5
31666sed 's/^/| /' conftest.$ac_ext >&5
31667
31668ac_cv_lib_Sgm_SgCreateList=no
31669fi
31670rm -f conftest.err conftest.$ac_objext \
31671 conftest$ac_exeext conftest.$ac_ext
31672LIBS=$ac_check_lib_save_LIBS
31673fi
31674echo "$as_me:$LINENO: result: $ac_cv_lib_Sgm_SgCreateList" >&5
31675echo "${ECHO_T}$ac_cv_lib_Sgm_SgCreateList" >&6
31676if test $ac_cv_lib_Sgm_SgCreateList = yes; then
31677 libsgm_link=" -lSgm"
31678fi
31679
31680
e56f4f9e
VZ
31681 save_CXXFLAGS=$CXXFLAGS
31682 CXXFLAGS="$TOOLKIT_INCLUDE $CXXFLAGS"
0ad5d837 31683
a848cd7e
SC
31684 echo "$as_me:$LINENO: checking for Motif 2" >&5
31685echo $ECHO_N "checking for Motif 2... $ECHO_C" >&6
0ad5d837
VZ
31686if test "${wx_cv_lib_motif2+set}" = set; then
31687 echo $ECHO_N "(cached) $ECHO_C" >&6
31688else
31689 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
31690/* confdefs.h. */
31691_ACEOF
31692cat confdefs.h >>conftest.$ac_ext
31693cat >>conftest.$ac_ext <<_ACEOF
31694/* end confdefs.h. */
31695
0ad5d837 31696 #include <Xm/Xm.h>
a848cd7e
SC
31697
31698int
31699main ()
31700{
31701
0ad5d837
VZ
31702 #if XmVersion < 2000
31703 Not Motif 2
31704 #endif
a848cd7e
SC
31705
31706 ;
31707 return 0;
31708}
31709_ACEOF
31710rm -f conftest.$ac_objext
31711if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 31712 (eval $ac_compile) 2>conftest.er1
a848cd7e 31713 ac_status=$?
ac1cb8d3
VS
31714 grep -v '^ *+' conftest.er1 >conftest.err
31715 rm -f conftest.er1
31716 cat conftest.err >&5
a848cd7e
SC
31717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31718 (exit $ac_status); } &&
479c790c 31719 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
31720 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31721 (eval $ac_try) 2>&5
31722 ac_status=$?
31723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31724 (exit $ac_status); }; } &&
31725 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
31726 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31727 (eval $ac_try) 2>&5
31728 ac_status=$?
31729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31730 (exit $ac_status); }; }; then
0ad5d837 31731 wx_cv_lib_motif2="yes"
a848cd7e
SC
31732else
31733 echo "$as_me: failed program was:" >&5
31734sed 's/^/| /' conftest.$ac_ext >&5
31735
0ad5d837
VZ
31736wx_cv_lib_motif2="no"
31737fi
31738rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
31739fi
31740echo "$as_me:$LINENO: result: $wx_cv_lib_motif2" >&5
31741echo "${ECHO_T}$wx_cv_lib_motif2" >&6
31742 if test "$wx_cv_lib_motif2" = "yes"; then
31743 cat >>confdefs.h <<\_ACEOF
31744#define __WXMOTIF20__ 1
31745_ACEOF
a848cd7e 31746
0ad5d837
VZ
31747 else
31748 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
31749#define __WXMOTIF20__ 0
31750_ACEOF
31751
0ad5d837 31752 fi
2113bc77
MW
31753
31754 echo "$as_me:$LINENO: checking whether Motif is Lesstif" >&5
31755echo $ECHO_N "checking whether Motif is Lesstif... $ECHO_C" >&6
0ad5d837
VZ
31756if test "${wx_cv_lib_lesstif+set}" = set; then
31757 echo $ECHO_N "(cached) $ECHO_C" >&6
31758else
31759 cat >conftest.$ac_ext <<_ACEOF
2113bc77
MW
31760/* confdefs.h. */
31761_ACEOF
31762cat confdefs.h >>conftest.$ac_ext
31763cat >>conftest.$ac_ext <<_ACEOF
31764/* end confdefs.h. */
31765
0ad5d837 31766 #include <Xm/Xm.h>
2113bc77
MW
31767
31768int
31769main ()
31770{
31771
0ad5d837
VZ
31772 #if !defined(LesstifVersion) || LesstifVersion <= 0
31773 Not Lesstif
31774 #endif
2113bc77
MW
31775
31776 ;
31777 return 0;
31778}
31779_ACEOF
31780rm -f conftest.$ac_objext
31781if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31782 (eval $ac_compile) 2>conftest.er1
31783 ac_status=$?
31784 grep -v '^ *+' conftest.er1 >conftest.err
31785 rm -f conftest.er1
31786 cat conftest.err >&5
31787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31788 (exit $ac_status); } &&
479c790c 31789 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
2113bc77
MW
31790 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31791 (eval $ac_try) 2>&5
31792 ac_status=$?
31793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31794 (exit $ac_status); }; } &&
31795 { ac_try='test -s conftest.$ac_objext'
31796 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31797 (eval $ac_try) 2>&5
31798 ac_status=$?
31799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31800 (exit $ac_status); }; }; then
0ad5d837 31801 wx_cv_lib_lesstif="yes"
2113bc77
MW
31802else
31803 echo "$as_me: failed program was:" >&5
31804sed 's/^/| /' conftest.$ac_ext >&5
31805
0ad5d837
VZ
31806wx_cv_lib_lesstif="no"
31807fi
31808rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2113bc77 31809
0ad5d837
VZ
31810fi
31811echo "$as_me:$LINENO: result: $wx_cv_lib_lesstif" >&5
31812echo "${ECHO_T}$wx_cv_lib_lesstif" >&6
31813 if test "$wx_cv_lib_lesstif" = "yes"; then
31814 cat >>confdefs.h <<\_ACEOF
31815#define __WXLESSTIF__ 1
31816_ACEOF
31817
31818 else
31819 cat >>confdefs.h <<\_ACEOF
2113bc77
MW
31820#define __WXLESSTIF__ 0
31821_ACEOF
31822
0ad5d837 31823 fi
2113bc77 31824
e56f4f9e 31825 CXXFLAGS=$save_CXXFLAGS
a848cd7e 31826
62fa8b3a 31827 GUI_TK_LIBRARY="$GUI_TK_LIBRARY${libsgm_link} -lXm${libp_link} -lXmu -lXext -lXt${libsm_ice_link} -lX11"
a848cd7e
SC
31828 TOOLKIT=MOTIF
31829 GUIDIST=MOTIF_DIST
31830 fi
31831
74b84332 31832 if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then
a848cd7e
SC
31833 if test "$wxUSE_LIBXPM" = "sys"; then
31834 echo "$as_me:$LINENO: checking for Xpm library" >&5
31835echo $ECHO_N "checking for Xpm library... $ECHO_C" >&6
31836
0ad5d837
VZ
31837 ac_find_libraries=
31838 for ac_dir in $SEARCH_LIB;
a848cd7e 31839 do
3eca31dc 31840 for ac_extension in a so sl dylib dll.a; do
a848cd7e
SC
31841 if test -f "$ac_dir/libXpm.$ac_extension"; then
31842 ac_find_libraries=$ac_dir
31843 break 2
31844 fi
31845 done
31846 done
31847
31848 if test "$ac_find_libraries" != "" ; then
31849
0ad5d837 31850 if test "$ac_find_libraries" = "default location"; then
a848cd7e
SC
31851 ac_path_to_link=""
31852 else
0ad5d837
VZ
31853 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
31854 result=$?
31855 if test $result = 0; then
31856 ac_path_to_link=""
31857 else
31858 ac_path_to_link=" -L$ac_find_libraries"
31859 fi
a848cd7e
SC
31860 fi
31861
31862 GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
0ad5d837
VZ
31863 echo "$as_me:$LINENO: result: found in $ac_find_libraries" >&5
31864echo "${ECHO_T}found in $ac_find_libraries" >&6
a848cd7e
SC
31865
31866 echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
31867echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6
31868if test "${wx_cv_x11_xpm_h+set}" = set; then
31869 echo $ECHO_N "(cached) $ECHO_C" >&6
31870else
31871
e56f4f9e
VZ
31872 save_CXXFLAGS=$CXXFLAGS
31873 CXXFLAGS="$TOOLKIT_INCLUDE $CXXFLAGS"
a848cd7e
SC
31874
31875 cat >conftest.$ac_ext <<_ACEOF
31876/* confdefs.h. */
31877_ACEOF
31878cat confdefs.h >>conftest.$ac_ext
31879cat >>conftest.$ac_ext <<_ACEOF
31880/* end confdefs.h. */
31881
31882 #include <X11/xpm.h>
31883
31884int
31885main ()
31886{
31887
31888 int version;
31889 version = XpmLibraryVersion();
31890
31891 ;
31892 return 0;
31893}
31894_ACEOF
31895rm -f conftest.$ac_objext
31896if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 31897 (eval $ac_compile) 2>conftest.er1
a848cd7e 31898 ac_status=$?
ac1cb8d3
VS
31899 grep -v '^ *+' conftest.er1 >conftest.err
31900 rm -f conftest.er1
31901 cat conftest.err >&5
a848cd7e
SC
31902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31903 (exit $ac_status); } &&
479c790c 31904 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
31905 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31906 (eval $ac_try) 2>&5
31907 ac_status=$?
31908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31909 (exit $ac_status); }; } &&
31910 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
31911 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31912 (eval $ac_try) 2>&5
31913 ac_status=$?
31914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31915 (exit $ac_status); }; }; then
31916 wx_cv_x11_xpm_h=yes
31917else
31918 echo "$as_me: failed program was:" >&5
31919sed 's/^/| /' conftest.$ac_ext >&5
31920
31921wx_cv_x11_xpm_h=no
31922
31923fi
ac1cb8d3 31924rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 31925
e56f4f9e 31926 CXXFLAGS=$save_CXXFLAGS
a848cd7e
SC
31927
31928
31929fi
31930echo "$as_me:$LINENO: result: $wx_cv_x11_xpm_h" >&5
31931echo "${ECHO_T}$wx_cv_x11_xpm_h" >&6
31932
31933 if test $wx_cv_x11_xpm_h = "yes"; then
31934 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXpm"
31935 cat >>confdefs.h <<\_ACEOF
31936#define wxHAVE_LIB_XPM 1
31937_ACEOF
31938
31939 else
31940 { echo "$as_me:$LINENO: WARNING: built-in less efficient XPM decoder will be used" >&5
31941echo "$as_me: WARNING: built-in less efficient XPM decoder will be used" >&2;}
31942 fi
31943 fi
31944
31945 fi
31946
31947 echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
31948echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6
31949if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
31950 echo $ECHO_N "(cached) $ECHO_C" >&6
31951else
31952 ac_check_lib_save_LIBS=$LIBS
31953LIBS="-lXext $GUI_TK_LIBRARY -lX11 $LIBS"
31954cat >conftest.$ac_ext <<_ACEOF
31955/* confdefs.h. */
31956_ACEOF
31957cat confdefs.h >>conftest.$ac_ext
31958cat >>conftest.$ac_ext <<_ACEOF
31959/* end confdefs.h. */
31960
31961/* Override any gcc2 internal prototype to avoid an error. */
31962#ifdef __cplusplus
31963extern "C"
31964#endif
31965/* We use char because int might match the return type of a gcc2
31966 builtin and then its argument prototype would still apply. */
31967char XShapeQueryExtension ();
31968int
31969main ()
31970{
31971XShapeQueryExtension ();
31972 ;
31973 return 0;
31974}
31975_ACEOF
31976rm -f conftest.$ac_objext conftest$ac_exeext
31977if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 31978 (eval $ac_link) 2>conftest.er1
a848cd7e 31979 ac_status=$?
ac1cb8d3
VS
31980 grep -v '^ *+' conftest.er1 >conftest.err
31981 rm -f conftest.er1
31982 cat conftest.err >&5
a848cd7e
SC
31983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31984 (exit $ac_status); } &&
479c790c 31985 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
31986 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31987 (eval $ac_try) 2>&5
31988 ac_status=$?
31989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31990 (exit $ac_status); }; } &&
31991 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
31992 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31993 (eval $ac_try) 2>&5
31994 ac_status=$?
31995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31996 (exit $ac_status); }; }; then
31997 ac_cv_lib_Xext_XShapeQueryExtension=yes
31998else
31999 echo "$as_me: failed program was:" >&5
32000sed 's/^/| /' conftest.$ac_ext >&5
32001
32002ac_cv_lib_Xext_XShapeQueryExtension=no
32003fi
ac1cb8d3
VS
32004rm -f conftest.err conftest.$ac_objext \
32005 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
32006LIBS=$ac_check_lib_save_LIBS
32007fi
32008echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
32009echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6
32010if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
32011
32012 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXext"
32013 wxHAVE_XEXT_LIB=1
32014
32015fi
32016
32017
32018 if test "$wxHAVE_XEXT_LIB" = 1; then
e56f4f9e
VZ
32019 save_CXXFLAGS="$CXXFLAGS"
32020 CXXFLAGS="$TOOLKIT_INCLUDE $CXXFLAGS"
a848cd7e
SC
32021
32022 echo "$as_me:$LINENO: checking for X11/extensions/shape.h" >&5
32023echo $ECHO_N "checking for X11/extensions/shape.h... $ECHO_C" >&6
32024 cat >conftest.$ac_ext <<_ACEOF
32025/* confdefs.h. */
32026_ACEOF
32027cat confdefs.h >>conftest.$ac_ext
32028cat >>conftest.$ac_ext <<_ACEOF
32029/* end confdefs.h. */
32030
32031 #include <X11/Xlib.h>
32032 #include <X11/extensions/shape.h>
32033
32034int
32035main ()
32036{
32037
32038 int dummy1, dummy2;
32039 XShapeQueryExtension((Display*)NULL,
32040 (int*)NULL, (int*)NULL);
32041
32042 ;
32043 return 0;
32044}
32045_ACEOF
32046rm -f conftest.$ac_objext
32047if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 32048 (eval $ac_compile) 2>conftest.er1
a848cd7e 32049 ac_status=$?
ac1cb8d3
VS
32050 grep -v '^ *+' conftest.er1 >conftest.err
32051 rm -f conftest.er1
32052 cat conftest.err >&5
a848cd7e
SC
32053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32054 (exit $ac_status); } &&
479c790c 32055 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
32056 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32057 (eval $ac_try) 2>&5
32058 ac_status=$?
32059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32060 (exit $ac_status); }; } &&
32061 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
32062 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32063 (eval $ac_try) 2>&5
32064 ac_status=$?
32065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32066 (exit $ac_status); }; }; then
32067
32068 cat >>confdefs.h <<\_ACEOF
32069#define HAVE_XSHAPE 1
32070_ACEOF
32071
32072 echo "$as_me:$LINENO: result: found" >&5
32073echo "${ECHO_T}found" >&6
32074
32075else
32076 echo "$as_me: failed program was:" >&5
32077sed 's/^/| /' conftest.$ac_ext >&5
32078
32079
32080 echo "$as_me:$LINENO: result: not found" >&5
32081echo "${ECHO_T}not found" >&6
32082
32083fi
ac1cb8d3 32084rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e56f4f9e 32085 CXXFLAGS="$save_CXXFLAGS"
a848cd7e
SC
32086
32087 fi
32088 fi
32089
32090 if test "$wxUSE_MAC" = 1; then
32091 echo "$as_me:$LINENO: checking for compiler syntax to enable Pascal strings" >&5
32092echo $ECHO_N "checking for compiler syntax to enable Pascal strings... $ECHO_C" >&6
32093 if test "$GCC" = yes; then
32094 echo "$as_me:$LINENO: result: gcc" >&5
32095echo "${ECHO_T}gcc" >&6
32096 CPPFLAGS_PASCAL="-fpascal-strings"
32097 elif test "`echo $CXX | sed -e 's@.*/@@'`" = "xlC"; then
32098 echo "$as_me:$LINENO: result: xlc" >&5
32099echo "${ECHO_T}xlc" >&6
32100 CPPFLAGS_PASCAL="-qmacpstr"
32101 else
32102 echo "$as_me:$LINENO: result: none" >&5
32103echo "${ECHO_T}none" >&6
32104 fi
32105
1e9e8aba 32106 if test "x$wxUSE_UNIX" = "xyes"; then
c92ad099 32107 CPPFLAGS="$CPPFLAGS_PASCAL -I\${top_srcdir}/src/mac/carbon/morefilex -I/Developer/Headers/FlatCarbon $CPPFLAGS"
1e9e8aba 32108 else
c92ad099 32109 CPPFLAGS="$CPPFLAGS_PASCAL -I\${top_srcdir}/src/mac/carbon/morefilex -DTARGET_CARBON $CPPFLAGS"
1e9e8aba 32110 fi
a848cd7e 32111
a848cd7e
SC
32112 TOOLKIT=MAC
32113 GUIDIST=MACX_DIST
dd21ced8 32114 WXBASEPORT="_carbon"
a848cd7e
SC
32115 fi
32116
32117 if test "$wxUSE_COCOA" = 1; then
a848cd7e
SC
32118 TOOLKIT=COCOA
32119 GUIDIST=COCOA_DIST
32120 fi
32121
32122 if test "$wxUSE_PM" = 1; then
32123 TOOLKIT=PM
de59c161
RD
32124 GUIDIST=PM_DIST
32125 echo "$as_me:$LINENO: checking for type SPBCDATA" >&5
32126echo $ECHO_N "checking for type SPBCDATA... $ECHO_C" >&6
32127if test "${wx_cv_spbcdata+set}" = set; then
32128 echo $ECHO_N "(cached) $ECHO_C" >&6
32129else
32130
32131 cat >conftest.$ac_ext <<_ACEOF
de59c161
RD
32132/* confdefs.h. */
32133_ACEOF
32134cat confdefs.h >>conftest.$ac_ext
32135cat >>conftest.$ac_ext <<_ACEOF
32136/* end confdefs.h. */
32137
32138 #define INCL_PM
32139 #include <os2.h>
32140
32141int
32142main ()
32143{
32144
32145 SPBCDATA test;
32146
32147 ;
32148 return 0;
32149}
32150_ACEOF
32151rm -f conftest.$ac_objext
32152if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 32153 (eval $ac_compile) 2>conftest.er1
de59c161 32154 ac_status=$?
ac1cb8d3
VS
32155 grep -v '^ *+' conftest.er1 >conftest.err
32156 rm -f conftest.er1
32157 cat conftest.err >&5
de59c161
RD
32158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32159 (exit $ac_status); } &&
479c790c 32160 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
32161 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32162 (eval $ac_try) 2>&5
32163 ac_status=$?
32164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32165 (exit $ac_status); }; } &&
32166 { ac_try='test -s conftest.$ac_objext'
de59c161
RD
32167 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32168 (eval $ac_try) 2>&5
32169 ac_status=$?
32170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32171 (exit $ac_status); }; }; then
32172 wx_cv_spbcdata=yes
32173else
32174 echo "$as_me: failed program was:" >&5
32175sed 's/^/| /' conftest.$ac_ext >&5
32176
32177wx_cv_spbcdata=no
32178
32179fi
ac1cb8d3 32180rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
de59c161
RD
32181
32182
32183fi
32184echo "$as_me:$LINENO: result: $wx_cv_spbcdata" >&5
32185echo "${ECHO_T}$wx_cv_spbcdata" >&6
32186
32187 if test $wx_cv_spbcdata = "yes"; then
32188 cat >>confdefs.h <<\_ACEOF
32189#define HAVE_SPBCDATA 1
32190_ACEOF
32191
32192 fi
a848cd7e
SC
32193 fi
32194
32195 if test "$TOOLKIT" = "PM" ; then
32196 TOOLKIT_DIR="os2"
32197 else
32198 TOOLKIT_DIR=`echo ${TOOLKIT} | tr "[A-Z]" "[a-z]"`
32199 fi
32200
a848cd7e 32201 if test "$wxUSE_UNIVERSAL" = "yes"; then
a848cd7e
SC
32202 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXUNIVERSAL__"
32203 WIDGET_SET=univ
a848cd7e
SC
32204 fi
32205
32206 GUIDIST="${GUIDIST} SAMPLES_DIST DEMOS_DIST UTILS_DIST MISC_DIST"
32207 DISTDIR="wx\$(TOOLKIT)"
32208else
32209 USE_GUI=0
32210
32211 TOOLKIT_DIR="base"
32212
32213 if test "$USE_WIN32" = 1 ; then
a848cd7e 32214 TOOLKIT="MSW"
a848cd7e
SC
32215 fi
32216
a848cd7e
SC
32217 GUIDIST="BASE_DIST"
32218 DISTDIR="wxBase"
32219fi
32220
32221
d12aef51
VZ
32222if test "$wxUSE_GUI" = "yes"; then
32223 if test "$wxUSE_UNIX" = "yes" -a "$wxUSE_PM" != 1; then
32224
32225for ac_header in X11/Xlib.h
32226do
32227as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
32228if eval "test \"\${$as_ac_Header+set}\" = set"; then
32229 echo "$as_me:$LINENO: checking for $ac_header" >&5
32230echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
32231if eval "test \"\${$as_ac_Header+set}\" = set"; then
32232 echo $ECHO_N "(cached) $ECHO_C" >&6
32233fi
32234echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
32235echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
32236else
32237 # Is the header compilable?
32238echo "$as_me:$LINENO: checking $ac_header usability" >&5
32239echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
32240cat >conftest.$ac_ext <<_ACEOF
32241/* confdefs.h. */
32242_ACEOF
32243cat confdefs.h >>conftest.$ac_ext
32244cat >>conftest.$ac_ext <<_ACEOF
32245/* end confdefs.h. */
32246$ac_includes_default
32247#include <$ac_header>
32248_ACEOF
32249rm -f conftest.$ac_objext
32250if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32251 (eval $ac_compile) 2>conftest.er1
32252 ac_status=$?
32253 grep -v '^ *+' conftest.er1 >conftest.err
32254 rm -f conftest.er1
32255 cat conftest.err >&5
32256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32257 (exit $ac_status); } &&
479c790c 32258 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
d12aef51
VZ
32259 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32260 (eval $ac_try) 2>&5
32261 ac_status=$?
32262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32263 (exit $ac_status); }; } &&
32264 { ac_try='test -s conftest.$ac_objext'
32265 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32266 (eval $ac_try) 2>&5
32267 ac_status=$?
32268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32269 (exit $ac_status); }; }; then
32270 ac_header_compiler=yes
32271else
32272 echo "$as_me: failed program was:" >&5
32273sed 's/^/| /' conftest.$ac_ext >&5
32274
32275ac_header_compiler=no
32276fi
32277rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32278echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
32279echo "${ECHO_T}$ac_header_compiler" >&6
32280
32281# Is the header present?
32282echo "$as_me:$LINENO: checking $ac_header presence" >&5
32283echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
32284cat >conftest.$ac_ext <<_ACEOF
32285/* confdefs.h. */
32286_ACEOF
32287cat confdefs.h >>conftest.$ac_ext
32288cat >>conftest.$ac_ext <<_ACEOF
32289/* end confdefs.h. */
32290#include <$ac_header>
32291_ACEOF
32292if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
32293 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
32294 ac_status=$?
32295 grep -v '^ *+' conftest.er1 >conftest.err
32296 rm -f conftest.er1
32297 cat conftest.err >&5
32298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32299 (exit $ac_status); } >/dev/null; then
32300 if test -s conftest.err; then
5d7b7554
VZ
32301 ac_cpp_err=$ac_cxx_preproc_warn_flag
32302 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
d12aef51
VZ
32303 else
32304 ac_cpp_err=
32305 fi
32306else
32307 ac_cpp_err=yes
32308fi
32309if test -z "$ac_cpp_err"; then
32310 ac_header_preproc=yes
32311else
32312 echo "$as_me: failed program was:" >&5
32313sed 's/^/| /' conftest.$ac_ext >&5
32314
32315 ac_header_preproc=no
32316fi
32317rm -f conftest.err conftest.$ac_ext
32318echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
32319echo "${ECHO_T}$ac_header_preproc" >&6
32320
32321# So? What about this header?
5d7b7554 32322case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
d12aef51
VZ
32323 yes:no: )
32324 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
32325echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
32326 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
32327echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
32328 ac_header_preproc=yes
32329 ;;
32330 no:yes:* )
32331 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
32332echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
32333 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
32334echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
32335 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
32336echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
32337 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
32338echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
32339 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
32340echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
32341 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
32342echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
32343 (
32344 cat <<\_ASBOX
32345## ----------------------------------------- ##
32346## Report this to wx-dev@lists.wxwidgets.org ##
32347## ----------------------------------------- ##
32348_ASBOX
32349 ) |
32350 sed "s/^/$as_me: WARNING: /" >&2
32351 ;;
32352esac
32353echo "$as_me:$LINENO: checking for $ac_header" >&5
32354echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
32355if eval "test \"\${$as_ac_Header+set}\" = set"; then
32356 echo $ECHO_N "(cached) $ECHO_C" >&6
32357else
32358 eval "$as_ac_Header=\$ac_header_preproc"
32359fi
32360echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
32361echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
32362
32363fi
32364if test `eval echo '${'$as_ac_Header'}'` = yes; then
32365 cat >>confdefs.h <<_ACEOF
32366#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
32367_ACEOF
32368
32369fi
32370
32371done
32372
32373
32374for ac_header in X11/XKBlib.h
32375do
32376as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
32377echo "$as_me:$LINENO: checking for $ac_header" >&5
32378echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
32379if eval "test \"\${$as_ac_Header+set}\" = set"; then
32380 echo $ECHO_N "(cached) $ECHO_C" >&6
32381else
32382 cat >conftest.$ac_ext <<_ACEOF
32383/* confdefs.h. */
32384_ACEOF
32385cat confdefs.h >>conftest.$ac_ext
32386cat >>conftest.$ac_ext <<_ACEOF
32387/* end confdefs.h. */
32388
32389 #if HAVE_X11_XLIB_H
32390 #include <X11/Xlib.h>
32391 #endif
32392
32393
32394#include <$ac_header>
32395_ACEOF
32396rm -f conftest.$ac_objext
32397if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32398 (eval $ac_compile) 2>conftest.er1
32399 ac_status=$?
32400 grep -v '^ *+' conftest.er1 >conftest.err
32401 rm -f conftest.er1
32402 cat conftest.err >&5
32403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32404 (exit $ac_status); } &&
479c790c 32405 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
d12aef51
VZ
32406 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32407 (eval $ac_try) 2>&5
32408 ac_status=$?
32409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32410 (exit $ac_status); }; } &&
32411 { ac_try='test -s conftest.$ac_objext'
32412 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32413 (eval $ac_try) 2>&5
32414 ac_status=$?
32415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32416 (exit $ac_status); }; }; then
32417 eval "$as_ac_Header=yes"
32418else
32419 echo "$as_me: failed program was:" >&5
32420sed 's/^/| /' conftest.$ac_ext >&5
32421
32422eval "$as_ac_Header=no"
32423fi
32424rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32425fi
32426echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
32427echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
32428if test `eval echo '${'$as_ac_Header'}'` = yes; then
32429 cat >>confdefs.h <<_ACEOF
32430#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
32431_ACEOF
32432
32433fi
32434
32435done
32436
32437 fi
32438fi
32439
a848cd7e
SC
32440
32441
32442IODBC_C_SRC=""
32443
32444
32445if test "$TOOLKIT" != "MSW" ; then
32446
32447 if test "$wxUSE_ODBC" = "sys" -o "$wxUSE_ODBC" = "yes" ; then
32448
32449 if test "${ac_cv_header_sql_h+set}" = set; then
32450 echo "$as_me:$LINENO: checking for sql.h" >&5
32451echo $ECHO_N "checking for sql.h... $ECHO_C" >&6
32452if test "${ac_cv_header_sql_h+set}" = set; then
32453 echo $ECHO_N "(cached) $ECHO_C" >&6
32454fi
32455echo "$as_me:$LINENO: result: $ac_cv_header_sql_h" >&5
32456echo "${ECHO_T}$ac_cv_header_sql_h" >&6
32457else
32458 # Is the header compilable?
32459echo "$as_me:$LINENO: checking sql.h usability" >&5
32460echo $ECHO_N "checking sql.h usability... $ECHO_C" >&6
32461cat >conftest.$ac_ext <<_ACEOF
32462/* confdefs.h. */
32463_ACEOF
32464cat confdefs.h >>conftest.$ac_ext
32465cat >>conftest.$ac_ext <<_ACEOF
32466/* end confdefs.h. */
32467$ac_includes_default
32468#include <sql.h>
32469_ACEOF
32470rm -f conftest.$ac_objext
32471if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 32472 (eval $ac_compile) 2>conftest.er1
a848cd7e 32473 ac_status=$?
ac1cb8d3
VS
32474 grep -v '^ *+' conftest.er1 >conftest.err
32475 rm -f conftest.er1
32476 cat conftest.err >&5
a848cd7e
SC
32477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32478 (exit $ac_status); } &&
479c790c 32479 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
32480 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32481 (eval $ac_try) 2>&5
32482 ac_status=$?
32483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32484 (exit $ac_status); }; } &&
32485 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
32486 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32487 (eval $ac_try) 2>&5
32488 ac_status=$?
32489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32490 (exit $ac_status); }; }; then
32491 ac_header_compiler=yes
32492else
32493 echo "$as_me: failed program was:" >&5
32494sed 's/^/| /' conftest.$ac_ext >&5
32495
32496ac_header_compiler=no
32497fi
ac1cb8d3 32498rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
32499echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
32500echo "${ECHO_T}$ac_header_compiler" >&6
32501
32502# Is the header present?
32503echo "$as_me:$LINENO: checking sql.h presence" >&5
32504echo $ECHO_N "checking sql.h presence... $ECHO_C" >&6
32505cat >conftest.$ac_ext <<_ACEOF
32506/* confdefs.h. */
32507_ACEOF
32508cat confdefs.h >>conftest.$ac_ext
32509cat >>conftest.$ac_ext <<_ACEOF
32510/* end confdefs.h. */
32511#include <sql.h>
32512_ACEOF
32513if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
32514 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
32515 ac_status=$?
32516 grep -v '^ *+' conftest.er1 >conftest.err
32517 rm -f conftest.er1
32518 cat conftest.err >&5
32519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32520 (exit $ac_status); } >/dev/null; then
32521 if test -s conftest.err; then
5d7b7554
VZ
32522 ac_cpp_err=$ac_cxx_preproc_warn_flag
32523 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
32524 else
32525 ac_cpp_err=
32526 fi
32527else
32528 ac_cpp_err=yes
32529fi
32530if test -z "$ac_cpp_err"; then
32531 ac_header_preproc=yes
32532else
32533 echo "$as_me: failed program was:" >&5
32534sed 's/^/| /' conftest.$ac_ext >&5
32535
32536 ac_header_preproc=no
32537fi
32538rm -f conftest.err conftest.$ac_ext
32539echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
32540echo "${ECHO_T}$ac_header_preproc" >&6
32541
32542# So? What about this header?
5d7b7554 32543case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
ac1cb8d3 32544 yes:no: )
a848cd7e
SC
32545 { echo "$as_me:$LINENO: WARNING: sql.h: accepted by the compiler, rejected by the preprocessor!" >&5
32546echo "$as_me: WARNING: sql.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
32547 { echo "$as_me:$LINENO: WARNING: sql.h: proceeding with the compiler's result" >&5
32548echo "$as_me: WARNING: sql.h: proceeding with the compiler's result" >&2;}
32549 ac_header_preproc=yes
a848cd7e 32550 ;;
ac1cb8d3 32551 no:yes:* )
a848cd7e
SC
32552 { echo "$as_me:$LINENO: WARNING: sql.h: present but cannot be compiled" >&5
32553echo "$as_me: WARNING: sql.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
32554 { echo "$as_me:$LINENO: WARNING: sql.h: check for missing prerequisite headers?" >&5
32555echo "$as_me: WARNING: sql.h: check for missing prerequisite headers?" >&2;}
32556 { echo "$as_me:$LINENO: WARNING: sql.h: see the Autoconf documentation" >&5
32557echo "$as_me: WARNING: sql.h: see the Autoconf documentation" >&2;}
32558 { echo "$as_me:$LINENO: WARNING: sql.h: section \"Present But Cannot Be Compiled\"" >&5
32559echo "$as_me: WARNING: sql.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
32560 { echo "$as_me:$LINENO: WARNING: sql.h: proceeding with the preprocessor's result" >&5
32561echo "$as_me: WARNING: sql.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
32562 { echo "$as_me:$LINENO: WARNING: sql.h: in the future, the compiler will take precedence" >&5
32563echo "$as_me: WARNING: sql.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
32564 (
32565 cat <<\_ASBOX
ac1cb8d3
VS
32566## ----------------------------------------- ##
32567## Report this to wx-dev@lists.wxwidgets.org ##
32568## ----------------------------------------- ##
a848cd7e
SC
32569_ASBOX
32570 ) |
32571 sed "s/^/$as_me: WARNING: /" >&2
32572 ;;
32573esac
32574echo "$as_me:$LINENO: checking for sql.h" >&5
32575echo $ECHO_N "checking for sql.h... $ECHO_C" >&6
32576if test "${ac_cv_header_sql_h+set}" = set; then
32577 echo $ECHO_N "(cached) $ECHO_C" >&6
32578else
32579 ac_cv_header_sql_h=$ac_header_preproc
32580fi
32581echo "$as_me:$LINENO: result: $ac_cv_header_sql_h" >&5
32582echo "${ECHO_T}$ac_cv_header_sql_h" >&6
32583
32584fi
32585if test $ac_cv_header_sql_h = yes; then
32586 found_sql_h=1
32587fi
32588
32589
32590 if test "x$found_sql_h" = "x1" ; then
32591 echo "$as_me:$LINENO: checking for SQLAllocEnv in -liodbc" >&5
32592echo $ECHO_N "checking for SQLAllocEnv in -liodbc... $ECHO_C" >&6
32593if test "${ac_cv_lib_iodbc_SQLAllocEnv+set}" = set; then
32594 echo $ECHO_N "(cached) $ECHO_C" >&6
32595else
32596 ac_check_lib_save_LIBS=$LIBS
32597LIBS="-liodbc $LIBS"
32598cat >conftest.$ac_ext <<_ACEOF
32599/* confdefs.h. */
32600_ACEOF
32601cat confdefs.h >>conftest.$ac_ext
32602cat >>conftest.$ac_ext <<_ACEOF
32603/* end confdefs.h. */
32604
32605/* Override any gcc2 internal prototype to avoid an error. */
32606#ifdef __cplusplus
32607extern "C"
32608#endif
32609/* We use char because int might match the return type of a gcc2
32610 builtin and then its argument prototype would still apply. */
32611char SQLAllocEnv ();
32612int
32613main ()
32614{
32615SQLAllocEnv ();
32616 ;
32617 return 0;
32618}
32619_ACEOF
32620rm -f conftest.$ac_objext conftest$ac_exeext
32621if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 32622 (eval $ac_link) 2>conftest.er1
a848cd7e 32623 ac_status=$?
ac1cb8d3
VS
32624 grep -v '^ *+' conftest.er1 >conftest.err
32625 rm -f conftest.er1
32626 cat conftest.err >&5
a848cd7e
SC
32627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32628 (exit $ac_status); } &&
479c790c 32629 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
32630 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32631 (eval $ac_try) 2>&5
32632 ac_status=$?
32633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32634 (exit $ac_status); }; } &&
32635 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
32636 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32637 (eval $ac_try) 2>&5
32638 ac_status=$?
32639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32640 (exit $ac_status); }; }; then
32641 ac_cv_lib_iodbc_SQLAllocEnv=yes
32642else
32643 echo "$as_me: failed program was:" >&5
32644sed 's/^/| /' conftest.$ac_ext >&5
32645
32646ac_cv_lib_iodbc_SQLAllocEnv=no
32647fi
ac1cb8d3
VS
32648rm -f conftest.err conftest.$ac_objext \
32649 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
32650LIBS=$ac_check_lib_save_LIBS
32651fi
32652echo "$as_me:$LINENO: result: $ac_cv_lib_iodbc_SQLAllocEnv" >&5
32653echo "${ECHO_T}$ac_cv_lib_iodbc_SQLAllocEnv" >&6
32654if test $ac_cv_lib_iodbc_SQLAllocEnv = yes; then
32655 ODBC_LINK=" -liodbc"
32656else
32657
32658 echo "$as_me:$LINENO: checking for SQLAllocEnv in -lunixodbc" >&5
32659echo $ECHO_N "checking for SQLAllocEnv in -lunixodbc... $ECHO_C" >&6
32660if test "${ac_cv_lib_unixodbc_SQLAllocEnv+set}" = set; then
32661 echo $ECHO_N "(cached) $ECHO_C" >&6
32662else
32663 ac_check_lib_save_LIBS=$LIBS
32664LIBS="-lunixodbc $LIBS"
32665cat >conftest.$ac_ext <<_ACEOF
32666/* confdefs.h. */
32667_ACEOF
32668cat confdefs.h >>conftest.$ac_ext
32669cat >>conftest.$ac_ext <<_ACEOF
32670/* end confdefs.h. */
32671
32672/* Override any gcc2 internal prototype to avoid an error. */
32673#ifdef __cplusplus
32674extern "C"
32675#endif
32676/* We use char because int might match the return type of a gcc2
32677 builtin and then its argument prototype would still apply. */
32678char SQLAllocEnv ();
32679int
32680main ()
32681{
32682SQLAllocEnv ();
32683 ;
32684 return 0;
32685}
32686_ACEOF
32687rm -f conftest.$ac_objext conftest$ac_exeext
32688if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 32689 (eval $ac_link) 2>conftest.er1
a848cd7e 32690 ac_status=$?
ac1cb8d3
VS
32691 grep -v '^ *+' conftest.er1 >conftest.err
32692 rm -f conftest.er1
32693 cat conftest.err >&5
a848cd7e
SC
32694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32695 (exit $ac_status); } &&
479c790c 32696 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
32697 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32698 (eval $ac_try) 2>&5
32699 ac_status=$?
32700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32701 (exit $ac_status); }; } &&
32702 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
32703 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32704 (eval $ac_try) 2>&5
32705 ac_status=$?
32706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32707 (exit $ac_status); }; }; then
32708 ac_cv_lib_unixodbc_SQLAllocEnv=yes
32709else
32710 echo "$as_me: failed program was:" >&5
32711sed 's/^/| /' conftest.$ac_ext >&5
32712
32713ac_cv_lib_unixodbc_SQLAllocEnv=no
32714fi
ac1cb8d3
VS
32715rm -f conftest.err conftest.$ac_objext \
32716 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
32717LIBS=$ac_check_lib_save_LIBS
32718fi
32719echo "$as_me:$LINENO: result: $ac_cv_lib_unixodbc_SQLAllocEnv" >&5
32720echo "${ECHO_T}$ac_cv_lib_unixodbc_SQLAllocEnv" >&6
32721if test $ac_cv_lib_unixodbc_SQLAllocEnv = yes; then
32722 ODBC_LINK=" -lunixodbc"
32723else
32724
32725 echo "$as_me:$LINENO: checking for SQLAllocEnv in -lodbc" >&5
32726echo $ECHO_N "checking for SQLAllocEnv in -lodbc... $ECHO_C" >&6
32727if test "${ac_cv_lib_odbc_SQLAllocEnv+set}" = set; then
32728 echo $ECHO_N "(cached) $ECHO_C" >&6
32729else
32730 ac_check_lib_save_LIBS=$LIBS
32731LIBS="-lodbc $LIBS"
32732cat >conftest.$ac_ext <<_ACEOF
32733/* confdefs.h. */
32734_ACEOF
32735cat confdefs.h >>conftest.$ac_ext
32736cat >>conftest.$ac_ext <<_ACEOF
32737/* end confdefs.h. */
32738
32739/* Override any gcc2 internal prototype to avoid an error. */
32740#ifdef __cplusplus
32741extern "C"
32742#endif
32743/* We use char because int might match the return type of a gcc2
32744 builtin and then its argument prototype would still apply. */
32745char SQLAllocEnv ();
32746int
32747main ()
32748{
32749SQLAllocEnv ();
32750 ;
32751 return 0;
32752}
32753_ACEOF
32754rm -f conftest.$ac_objext conftest$ac_exeext
32755if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 32756 (eval $ac_link) 2>conftest.er1
a848cd7e 32757 ac_status=$?
ac1cb8d3
VS
32758 grep -v '^ *+' conftest.er1 >conftest.err
32759 rm -f conftest.er1
32760 cat conftest.err >&5
a848cd7e
SC
32761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32762 (exit $ac_status); } &&
479c790c 32763 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
32764 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32765 (eval $ac_try) 2>&5
32766 ac_status=$?
32767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32768 (exit $ac_status); }; } &&
32769 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
32770 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32771 (eval $ac_try) 2>&5
32772 ac_status=$?
32773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32774 (exit $ac_status); }; }; then
32775 ac_cv_lib_odbc_SQLAllocEnv=yes
32776else
32777 echo "$as_me: failed program was:" >&5
32778sed 's/^/| /' conftest.$ac_ext >&5
32779
32780ac_cv_lib_odbc_SQLAllocEnv=no
32781fi
ac1cb8d3
VS
32782rm -f conftest.err conftest.$ac_objext \
32783 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
32784LIBS=$ac_check_lib_save_LIBS
32785fi
32786echo "$as_me:$LINENO: result: $ac_cv_lib_odbc_SQLAllocEnv" >&5
32787echo "${ECHO_T}$ac_cv_lib_odbc_SQLAllocEnv" >&6
32788if test $ac_cv_lib_odbc_SQLAllocEnv = yes; then
32789 ODBC_LINK=" -lodbc"
32790fi
32791
32792
32793fi
32794
32795
32796fi
32797
32798 fi
32799 if test "x$ODBC_LINK" = "x" ; then
32800 if test "$wxUSE_ODBC" = "sys" ; then
32801 { { echo "$as_me:$LINENO: error: system ODBC library not found! Use --with-odbc=builtin to use built-in version" >&5
32802echo "$as_me: error: system ODBC library not found! Use --with-odbc=builtin to use built-in version" >&2;}
32803 { (exit 1); exit 1; }; }
32804 else
32805 { echo "$as_me:$LINENO: WARNING: system ODBC library not found, will use built-in instead" >&5
32806echo "$as_me: WARNING: system ODBC library not found, will use built-in instead" >&2;}
32807 wxUSE_ODBC=builtin
32808 fi
32809 else
32810 wxUSE_ODBC=sys
32811 fi
32812 fi
a848cd7e 32813
2da0c077
RD
32814 if test "$wxUSE_ODBC" = "builtin" ; then
32815 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
32816#define wxUSE_BUILTIN_IODBC 1
32817_ACEOF
32818
a848cd7e
SC
32819 fi
32820fi
32821
2da0c077
RD
32822if test "$wxUSE_ODBC" != "no" ; then
32823 cat >>confdefs.h <<\_ACEOF
32824#define wxUSE_ODBC 1
32825_ACEOF
32826
32827 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS db"
32828
5ff751d6 32829 WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS -D_IODBC_"
2da0c077 32830fi
a848cd7e 32831
01cb68df 32832
a848cd7e 32833if test "$wxUSE_DISPLAY" = "yes"; then
2a5d7a98 32834 if test "$wxUSE_UNIX" = "yes" -a "$wxUSE_MAC" != 1 -a "$wxUSE_COCOA" != 1; then
a848cd7e
SC
32835 echo "$as_me:$LINENO: checking for Xinerama" >&5
32836echo $ECHO_N "checking for Xinerama... $ECHO_C" >&6
32837
0ad5d837
VZ
32838 ac_find_libraries=
32839 for ac_dir in $SEARCH_LIB;
32840 do
32841 for ac_extension in a so sl dylib dll.a; do
32842 if test -f "$ac_dir/libXinerama.$ac_extension"; then
32843 ac_find_libraries=$ac_dir
32844 break 2
32845 fi
32846 done
32847 done
32848
a848cd7e
SC
32849 if test "$ac_find_libraries" != "" ; then
32850
0ad5d837 32851 if test "$ac_find_libraries" = "default location"; then
a848cd7e
SC
32852 ac_path_to_link=""
32853 else
0ad5d837
VZ
32854 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
32855 result=$?
32856 if test $result = 0; then
32857 ac_path_to_link=""
32858 else
32859 ac_path_to_link=" -L$ac_find_libraries"
32860 fi
a848cd7e
SC
32861 fi
32862
32863 if test "$ac_path_to_link" != " -L/usr/lib" ; then
32864 LDFLAGS="$LDFLAGS $ac_path_to_link"
32865 fi
32866 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXinerama"
32867 echo "$as_me:$LINENO: result: yes" >&5
32868echo "${ECHO_T}yes" >&6
32869
32870 echo "$as_me:$LINENO: checking for Xxf86vm extension" >&5
32871echo $ECHO_N "checking for Xxf86vm extension... $ECHO_C" >&6
32872
0ad5d837
VZ
32873 ac_find_libraries=
32874 for ac_dir in $SEARCH_LIB;
a848cd7e 32875 do
3eca31dc 32876 for ac_extension in a so sl dylib dll.a; do
a848cd7e
SC
32877 if test -f "$ac_dir/libXxf86vm.$ac_extension"; then
32878 ac_find_libraries=$ac_dir
32879 break 2
32880 fi
32881 done
32882 done
32883
32884 if test "$ac_find_libraries" != "" ; then
32885 echo "$as_me:$LINENO: result: yes" >&5
32886echo "${ECHO_T}yes" >&6
32887
32888for ac_header in X11/extensions/xf86vmode.h
32889do
32890as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
32891echo "$as_me:$LINENO: checking for $ac_header" >&5
32892echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
32893if eval "test \"\${$as_ac_Header+set}\" = set"; then
32894 echo $ECHO_N "(cached) $ECHO_C" >&6
32895else
32896 cat >conftest.$ac_ext <<_ACEOF
32897/* confdefs.h. */
32898_ACEOF
32899cat confdefs.h >>conftest.$ac_ext
32900cat >>conftest.$ac_ext <<_ACEOF
32901/* end confdefs.h. */
32902
32903 #if HAVE_X11_XLIB_H
32904 #include <X11/Xlib.h>
32905 #endif
32906
32907
32908#include <$ac_header>
32909_ACEOF
32910rm -f conftest.$ac_objext
32911if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 32912 (eval $ac_compile) 2>conftest.er1
a848cd7e 32913 ac_status=$?
ac1cb8d3
VS
32914 grep -v '^ *+' conftest.er1 >conftest.err
32915 rm -f conftest.er1
32916 cat conftest.err >&5
a848cd7e
SC
32917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32918 (exit $ac_status); } &&
479c790c 32919 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
32920 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32921 (eval $ac_try) 2>&5
32922 ac_status=$?
32923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32924 (exit $ac_status); }; } &&
32925 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
32926 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32927 (eval $ac_try) 2>&5
32928 ac_status=$?
32929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32930 (exit $ac_status); }; }; then
32931 eval "$as_ac_Header=yes"
32932else
32933 echo "$as_me: failed program was:" >&5
32934sed 's/^/| /' conftest.$ac_ext >&5
32935
32936eval "$as_ac_Header=no"
32937fi
ac1cb8d3 32938rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
32939fi
32940echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
32941echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
32942if test `eval echo '${'$as_ac_Header'}'` = yes; then
32943 cat >>confdefs.h <<_ACEOF
32944#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
32945_ACEOF
32946
32947 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXxf86vm"
32948
32949fi
32950
32951done
32952
32953 else
32954 echo "$as_me:$LINENO: result: no" >&5
32955echo "${ECHO_T}no" >&6
32956 fi
32957
32958 else
32959 echo "$as_me:$LINENO: result: no" >&5
32960echo "${ECHO_T}no" >&6
dcc1b6ad
VS
32961 { echo "$as_me:$LINENO: WARNING: Xinerama not found; disabling wxDisplay" >&5
32962echo "$as_me: WARNING: Xinerama not found; disabling wxDisplay" >&2;}
a848cd7e
SC
32963 wxUSE_DISPLAY="no"
32964 fi
01cb68df
RG
32965 elif test "$wxUSE_MSW" = 1; then
32966
e5efa97e 32967for ac_header in ddraw.h
01cb68df
RG
32968do
32969as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5294a27e 32970echo "$as_me:$LINENO: checking for $ac_header" >&5
01cb68df
RG
32971echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
32972if eval "test \"\${$as_ac_Header+set}\" = set"; then
32973 echo $ECHO_N "(cached) $ECHO_C" >&6
01cb68df 32974else
5294a27e 32975 cat >conftest.$ac_ext <<_ACEOF
01cb68df
RG
32976/* confdefs.h. */
32977_ACEOF
32978cat confdefs.h >>conftest.$ac_ext
32979cat >>conftest.$ac_ext <<_ACEOF
32980/* end confdefs.h. */
5294a27e
VZ
32981#include <windows.h>
32982
01cb68df
RG
32983#include <$ac_header>
32984_ACEOF
32985rm -f conftest.$ac_objext
32986if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 32987 (eval $ac_compile) 2>conftest.er1
01cb68df 32988 ac_status=$?
ac1cb8d3
VS
32989 grep -v '^ *+' conftest.er1 >conftest.err
32990 rm -f conftest.er1
32991 cat conftest.err >&5
01cb68df
RG
32992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32993 (exit $ac_status); } &&
479c790c 32994 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
32995 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32996 (eval $ac_try) 2>&5
32997 ac_status=$?
32998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32999 (exit $ac_status); }; } &&
33000 { ac_try='test -s conftest.$ac_objext'
01cb68df
RG
33001 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33002 (eval $ac_try) 2>&5
33003 ac_status=$?
33004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33005 (exit $ac_status); }; }; then
5294a27e 33006 eval "$as_ac_Header=yes"
01cb68df
RG
33007else
33008 echo "$as_me: failed program was:" >&5
33009sed 's/^/| /' conftest.$ac_ext >&5
33010
5294a27e 33011eval "$as_ac_Header=no"
01cb68df 33012fi
ac1cb8d3 33013rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
01cb68df
RG
33014fi
33015echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
33016echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
01cb68df
RG
33017if test `eval echo '${'$as_ac_Header'}'` = yes; then
33018 cat >>confdefs.h <<_ACEOF
33019#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
33020_ACEOF
33021
01cb68df
RG
33022fi
33023
33024done
33025
a848cd7e
SC
33026 fi
33027fi
33028
88bbc332
RR
33029if test "$wxUSE_DETECT_SM" = "yes"; then
33030 if test "$wxUSE_UNIX" = "yes" -a "$wxUSE_MAC" != 1 -a "$wxUSE_COCOA" != 1; then
33031 echo "$as_me:$LINENO: checking for -lSM - X11 session management" >&5
33032echo $ECHO_N "checking for -lSM - X11 session management... $ECHO_C" >&6
33033
33034 ac_find_libraries=
33035 for ac_dir in $SEARCH_LIB;
33036 do
33037 for ac_extension in a so sl dylib dll.a; do
33038 if test -f "$ac_dir/libSM.$ac_extension"; then
33039 ac_find_libraries=$ac_dir
33040 break 2
33041 fi
33042 done
33043 done
33044
33045 if test "$ac_find_libraries" != "" ; then
33046
33047 if test "$ac_find_libraries" = "default location"; then
33048 ac_path_to_link=""
33049 else
33050 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
33051 result=$?
33052 if test $result = 0; then
33053 ac_path_to_link=""
33054 else
33055 ac_path_to_link=" -L$ac_find_libraries"
33056 fi
33057 fi
33058
33059 if test "$ac_path_to_link" != " -L/usr/lib" ; then
33060 LDFLAGS="$LDFLAGS $ac_path_to_link"
33061 fi
33062 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lSM"
33063 echo "$as_me:$LINENO: result: yes" >&5
33064echo "${ECHO_T}yes" >&6
33065 else
33066 echo "$as_me:$LINENO: result: no" >&5
33067echo "${ECHO_T}no" >&6
33068 { echo "$as_me:$LINENO: WARNING: libSM not found; disabling session management detection" >&5
33069echo "$as_me: WARNING: libSM not found; disabling session management detection" >&2;}
33070 wxUSE_DETECT_SM="no"
33071 fi
33072 else
33073 wxUSE_DETECT_SM="no"
33074 fi
33075fi
33076
33077
a848cd7e
SC
33078
33079USE_OPENGL=0
33080if test "$wxUSE_OPENGL" = "yes"; then
33081 if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = "1"; then
33082 OPENGL_LIBS="-framework OpenGL -framework AGL"
33083 elif test "$wxUSE_MSW" = 1; then
33084 OPENGL_LIBS="-lopengl32 -lglu32"
33085 else
33086
33087
33088ac_find_includes=
33089for ac_dir in $SEARCH_INCLUDE /usr/include;
33090 do
33091 if test -f "$ac_dir/GL/gl.h"; then
33092 ac_find_includes=$ac_dir
33093 break
33094 fi
33095 done
33096
33097 if test "$ac_find_includes" != "" ; then
33098 echo "$as_me:$LINENO: result: found in $ac_find_includes" >&5
33099echo "${ECHO_T}found in $ac_find_includes" >&6
33100
33101 if test "x$ac_find_includes" = "x/usr/include"; then
33102 ac_path_to_include=""
33103 else
33104 echo "$CPPFLAGS" | grep "\-I$ac_find_includes" > /dev/null
33105 result=$?
33106 if test $result = 0; then
33107 ac_path_to_include=""
33108 else
33109 ac_path_to_include=" -I$ac_find_includes"
33110 fi
33111 fi
33112
c92ad099 33113 CPPFLAGS="$ac_path_to_include $CPPFLAGS"
a848cd7e
SC
33114 fi
33115
33116 if test "${ac_cv_header_GL_gl_h+set}" = set; then
33117 echo "$as_me:$LINENO: checking for GL/gl.h" >&5
33118echo $ECHO_N "checking for GL/gl.h... $ECHO_C" >&6
33119if test "${ac_cv_header_GL_gl_h+set}" = set; then
33120 echo $ECHO_N "(cached) $ECHO_C" >&6
33121fi
33122echo "$as_me:$LINENO: result: $ac_cv_header_GL_gl_h" >&5
33123echo "${ECHO_T}$ac_cv_header_GL_gl_h" >&6
33124else
33125 # Is the header compilable?
33126echo "$as_me:$LINENO: checking GL/gl.h usability" >&5
33127echo $ECHO_N "checking GL/gl.h usability... $ECHO_C" >&6
33128cat >conftest.$ac_ext <<_ACEOF
33129/* confdefs.h. */
33130_ACEOF
33131cat confdefs.h >>conftest.$ac_ext
33132cat >>conftest.$ac_ext <<_ACEOF
33133/* end confdefs.h. */
33134$ac_includes_default
33135#include <GL/gl.h>
33136_ACEOF
33137rm -f conftest.$ac_objext
33138if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 33139 (eval $ac_compile) 2>conftest.er1
a848cd7e 33140 ac_status=$?
ac1cb8d3
VS
33141 grep -v '^ *+' conftest.er1 >conftest.err
33142 rm -f conftest.er1
33143 cat conftest.err >&5
a848cd7e
SC
33144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33145 (exit $ac_status); } &&
479c790c 33146 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
33147 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33148 (eval $ac_try) 2>&5
33149 ac_status=$?
33150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33151 (exit $ac_status); }; } &&
33152 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
33153 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33154 (eval $ac_try) 2>&5
33155 ac_status=$?
33156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33157 (exit $ac_status); }; }; then
33158 ac_header_compiler=yes
33159else
33160 echo "$as_me: failed program was:" >&5
33161sed 's/^/| /' conftest.$ac_ext >&5
33162
33163ac_header_compiler=no
33164fi
ac1cb8d3 33165rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
33166echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
33167echo "${ECHO_T}$ac_header_compiler" >&6
33168
33169# Is the header present?
33170echo "$as_me:$LINENO: checking GL/gl.h presence" >&5
33171echo $ECHO_N "checking GL/gl.h presence... $ECHO_C" >&6
33172cat >conftest.$ac_ext <<_ACEOF
33173/* confdefs.h. */
33174_ACEOF
33175cat confdefs.h >>conftest.$ac_ext
33176cat >>conftest.$ac_ext <<_ACEOF
33177/* end confdefs.h. */
33178#include <GL/gl.h>
33179_ACEOF
33180if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
33181 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
33182 ac_status=$?
33183 grep -v '^ *+' conftest.er1 >conftest.err
33184 rm -f conftest.er1
33185 cat conftest.err >&5
33186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33187 (exit $ac_status); } >/dev/null; then
33188 if test -s conftest.err; then
5d7b7554
VZ
33189 ac_cpp_err=$ac_cxx_preproc_warn_flag
33190 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
33191 else
33192 ac_cpp_err=
33193 fi
33194else
33195 ac_cpp_err=yes
33196fi
33197if test -z "$ac_cpp_err"; then
33198 ac_header_preproc=yes
33199else
33200 echo "$as_me: failed program was:" >&5
33201sed 's/^/| /' conftest.$ac_ext >&5
33202
33203 ac_header_preproc=no
33204fi
33205rm -f conftest.err conftest.$ac_ext
33206echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
33207echo "${ECHO_T}$ac_header_preproc" >&6
33208
33209# So? What about this header?
5d7b7554 33210case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
ac1cb8d3 33211 yes:no: )
a848cd7e
SC
33212 { echo "$as_me:$LINENO: WARNING: GL/gl.h: accepted by the compiler, rejected by the preprocessor!" >&5
33213echo "$as_me: WARNING: GL/gl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
33214 { echo "$as_me:$LINENO: WARNING: GL/gl.h: proceeding with the compiler's result" >&5
33215echo "$as_me: WARNING: GL/gl.h: proceeding with the compiler's result" >&2;}
33216 ac_header_preproc=yes
a848cd7e 33217 ;;
ac1cb8d3 33218 no:yes:* )
a848cd7e
SC
33219 { echo "$as_me:$LINENO: WARNING: GL/gl.h: present but cannot be compiled" >&5
33220echo "$as_me: WARNING: GL/gl.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
33221 { echo "$as_me:$LINENO: WARNING: GL/gl.h: check for missing prerequisite headers?" >&5
33222echo "$as_me: WARNING: GL/gl.h: check for missing prerequisite headers?" >&2;}
33223 { echo "$as_me:$LINENO: WARNING: GL/gl.h: see the Autoconf documentation" >&5
33224echo "$as_me: WARNING: GL/gl.h: see the Autoconf documentation" >&2;}
33225 { echo "$as_me:$LINENO: WARNING: GL/gl.h: section \"Present But Cannot Be Compiled\"" >&5
33226echo "$as_me: WARNING: GL/gl.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
33227 { echo "$as_me:$LINENO: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&5
33228echo "$as_me: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
33229 { echo "$as_me:$LINENO: WARNING: GL/gl.h: in the future, the compiler will take precedence" >&5
33230echo "$as_me: WARNING: GL/gl.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
33231 (
33232 cat <<\_ASBOX
ac1cb8d3
VS
33233## ----------------------------------------- ##
33234## Report this to wx-dev@lists.wxwidgets.org ##
33235## ----------------------------------------- ##
a848cd7e
SC
33236_ASBOX
33237 ) |
33238 sed "s/^/$as_me: WARNING: /" >&2
33239 ;;
33240esac
33241echo "$as_me:$LINENO: checking for GL/gl.h" >&5
33242echo $ECHO_N "checking for GL/gl.h... $ECHO_C" >&6
33243if test "${ac_cv_header_GL_gl_h+set}" = set; then
33244 echo $ECHO_N "(cached) $ECHO_C" >&6
33245else
33246 ac_cv_header_GL_gl_h=$ac_header_preproc
33247fi
33248echo "$as_me:$LINENO: result: $ac_cv_header_GL_gl_h" >&5
33249echo "${ECHO_T}$ac_cv_header_GL_gl_h" >&6
33250
33251fi
33252if test $ac_cv_header_GL_gl_h = yes; then
33253
33254 found_gl=0
33255
33256 echo "$as_me:$LINENO: checking for -lGL" >&5
33257echo $ECHO_N "checking for -lGL... $ECHO_C" >&6
33258
0ad5d837
VZ
33259 ac_find_libraries=
33260 for ac_dir in $SEARCH_LIB;
a848cd7e 33261 do
3eca31dc 33262 for ac_extension in a so sl dylib dll.a; do
a848cd7e
SC
33263 if test -f "$ac_dir/libGL.$ac_extension"; then
33264 ac_find_libraries=$ac_dir
33265 break 2
33266 fi
33267 done
33268 done
33269
33270 if test "$ac_find_libraries" != "" ; then
69120ee4
VZ
33271 echo "$as_me:$LINENO: result: yes" >&5
33272echo "${ECHO_T}yes" >&6
33273
a848cd7e 33274
0ad5d837 33275 if test "$ac_find_libraries" = "default location"; then
a848cd7e
SC
33276 ac_path_to_link=""
33277 else
0ad5d837
VZ
33278 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
33279 result=$?
33280 if test $result = 0; then
33281 ac_path_to_link=""
33282 else
33283 ac_path_to_link=" -L$ac_find_libraries"
33284 fi
a848cd7e
SC
33285 fi
33286
33287 if test "$ac_path_to_link" != " -L/usr/lib" ; then
33288 LDFLAGS_GL="$ac_path_to_link"
33289 fi
33290
69120ee4
VZ
33291 echo "$as_me:$LINENO: checking for -lGLU" >&5
33292echo $ECHO_N "checking for -lGLU... $ECHO_C" >&6
a848cd7e 33293
0ad5d837
VZ
33294 ac_find_libraries=
33295 for ac_dir in $SEARCH_LIB;
33296 do
33297 for ac_extension in a so sl dylib dll.a; do
33298 if test -f "$ac_dir/libGLU.$ac_extension"; then
33299 ac_find_libraries=$ac_dir
33300 break 2
33301 fi
33302 done
33303 done
33304
a848cd7e
SC
33305 if test "$ac_find_libraries" != "" ; then
33306
0ad5d837 33307 if test "$ac_find_libraries" = "default location"; then
a848cd7e
SC
33308 ac_path_to_link=""
33309 else
0ad5d837
VZ
33310 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
33311 result=$?
33312 if test $result = 0; then
33313 ac_path_to_link=""
33314 else
33315 ac_path_to_link=" -L$ac_find_libraries"
33316 fi
a848cd7e
SC
33317 fi
33318
33319 if test "$ac_path_to_link" != " -L/usr/lib" -a \
33320 "$ac_path_to_link" != "$LDFLAGS_GL"; then
33321 LDFLAGS_GL="$LDFLAGS_GL$ac_path_to_link"
33322 fi
33323
33324 found_gl=1
33325 OPENGL_LIBS="-lGL -lGLU"
33326 echo "$as_me:$LINENO: result: yes" >&5
33327echo "${ECHO_T}yes" >&6
69120ee4
VZ
33328 else
33329 echo "$as_me:$LINENO: result: no" >&5
33330echo "${ECHO_T}no" >&6
a848cd7e 33331 fi
69120ee4
VZ
33332 else
33333 echo "$as_me:$LINENO: result: no" >&5
33334echo "${ECHO_T}no" >&6
a848cd7e
SC
33335 fi
33336
33337 if test "$found_gl" != 1; then
a848cd7e
SC
33338 echo "$as_me:$LINENO: checking for -lMesaGL" >&5
33339echo $ECHO_N "checking for -lMesaGL... $ECHO_C" >&6
33340
0ad5d837
VZ
33341 ac_find_libraries=
33342 for ac_dir in $SEARCH_LIB;
a848cd7e 33343 do
3eca31dc 33344 for ac_extension in a so sl dylib dll.a; do
a848cd7e
SC
33345 if test -f "$ac_dir/libMesaGL.$ac_extension"; then
33346 ac_find_libraries=$ac_dir
33347 break 2
33348 fi
33349 done
33350 done
33351
33352 if test "$ac_find_libraries" != "" ; then
33353
0ad5d837 33354 if test "$ac_find_libraries" = "default location"; then
a848cd7e
SC
33355 ac_path_to_link=""
33356 else
0ad5d837
VZ
33357 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
33358 result=$?
33359 if test $result = 0; then
33360 ac_path_to_link=""
33361 else
33362 ac_path_to_link=" -L$ac_find_libraries"
33363 fi
a848cd7e
SC
33364 fi
33365
33366 LDFLAGS_GL="$LDFLAGS$ac_path_to_link"
33367 OPENGL_LIBS="-lMesaGL -lMesaGLU"
33368 echo "$as_me:$LINENO: result: yes" >&5
33369echo "${ECHO_T}yes" >&6
33370 else
33371 echo "$as_me:$LINENO: result: no" >&5
33372echo "${ECHO_T}no" >&6
33373 fi
33374 fi
33375
33376fi
33377
33378
33379
33380 if test "x$OPENGL_LIBS" = "x"; then
33381 { { echo "$as_me:$LINENO: error: OpenGL libraries not available" >&5
33382echo "$as_me: error: OpenGL libraries not available" >&2;}
33383 { (exit 1); exit 1; }; }
33384 fi
33385 fi
33386
33387 if test "$wxUSE_OPENGL" = "yes"; then
33388 USE_OPENGL=1
33389 cat >>confdefs.h <<\_ACEOF
33390#define wxUSE_OPENGL 1
33391_ACEOF
33392
33393 cat >>confdefs.h <<\_ACEOF
33394#define wxUSE_GLCANVAS 1
33395_ACEOF
33396
33397 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS opengl opengl/cube opengl/penguin opengl/isosurf"
33398 fi
33399fi
33400
a848cd7e
SC
33401
33402if test -n "$TOOLKIT" ; then
33403 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WX${TOOLKIT}__"
33404fi
33405
a848cd7e
SC
33406
33407
33408if test "$wxUSE_SHARED" = "yes"; then
33409 case "${host}" in
33410 *-pc-msdosdjgpp )
33411 wxUSE_SHARED=no
33412 { echo "$as_me:$LINENO: WARNING: Host system doesn't support shared libraries, disabling" >&5
33413echo "$as_me: WARNING: Host system doesn't support shared libraries, disabling" >&2;}
33414 ;;
33415 esac
33416fi
33417
a848cd7e 33418if test "$wxUSE_SHARED" = "yes"; then
a848cd7e
SC
33419
33420
33421 found_versioning=no
33422
33423
33424 if test $found_versioning = no ; then
33425 echo "$as_me:$LINENO: checking if the linker accepts --version-script" >&5
33426echo $ECHO_N "checking if the linker accepts --version-script... $ECHO_C" >&6
33427if test "${wx_cv_version_script+set}" = set; then
33428 echo $ECHO_N "(cached) $ECHO_C" >&6
33429else
33430
33431 echo "VER_1 { *; };" >conftest.sym
33432 echo "int main() { return 0; }" >conftest.cpp
33433
33434 if { ac_try='
33435 $CXX -o conftest.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp
33436 -Wl,--version-script,conftest.sym >/dev/null 2>conftest.stderr'
33437 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33438 (eval $ac_try) 2>&5
33439 ac_status=$?
33440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33441 (exit $ac_status); }; } ; then
33442 if test -s conftest.stderr ; then
33443 wx_cv_version_script=no
33444 else
33445 wx_cv_version_script=yes
33446 fi
33447 else
33448 wx_cv_version_script=no
33449 fi
e5d4b470
MW
33450
33451 if test $wx_cv_version_script = yes
33452 then
33453 echo "struct B { virtual ~B() { } }; \
33454 struct D : public B { }; \
33455 void F() { D d; }" > conftest.cpp
33456
33457 if { ac_try='
33458 $CXX -shared -fPIC -o conftest1.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp
33459 -Wl,--version-script,conftest.sym >/dev/null 2>/dev/null'
33460 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33461 (eval $ac_try) 2>&5
33462 ac_status=$?
33463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33464 (exit $ac_status); }; } &&
33465 { ac_try='
33466 $CXX -shared -fPIC -o conftest2.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp
33467 -Wl,--version-script,conftest.sym conftest1.output >/dev/null 2>/dev/null'
33468 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33469 (eval $ac_try) 2>&5
33470 ac_status=$?
33471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33472 (exit $ac_status); }; }
33473 then
33474 if { ac_try='
33475 $CXX -shared -fPIC -o conftest3.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp
33476 -Wl,--version-script,conftest.sym conftest2.output conftest1.output >/dev/null 2>/dev/null'
33477 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33478 (eval $ac_try) 2>&5
33479 ac_status=$?
33480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33481 (exit $ac_status); }; }
33482 then
33483 wx_cv_version_script=yes
33484 else
33485 wx_cv_version_script=no
33486 fi
33487 fi
33488 fi
33489
a848cd7e 33490 rm -f conftest.output conftest.stderr conftest.sym conftest.cpp
e5d4b470 33491 rm -f conftest1.output conftest2.output conftest3.output
a848cd7e
SC
33492
33493fi
33494echo "$as_me:$LINENO: result: $wx_cv_version_script" >&5
33495echo "${ECHO_T}$wx_cv_version_script" >&6
33496 if test $wx_cv_version_script = yes ; then
33497 LDFLAGS_VERSIONING="-Wl,--version-script,\$(top_builddir)version-script"
33498 fi
33499 fi
33500
33501
33502 case "${host}" in
33503 *-*-linux* | *-*-gnu* )
33504 SAMPLES_RPATH_FLAG="-Wl,-rpath,\$(top_builddir)lib"
ffa0583f 33505 WXCONFIG_RPATH="-Wl,-rpath,\$libdir"
6ebeb4c7 33506 ;;
a848cd7e
SC
33507
33508 *-*-solaris2* )
33509 if test "$GCC" = yes ; then
c92ad099 33510 CPPFLAGS="-isystem /usr/openwin/include $CPPFLAGS"
a848cd7e
SC
33511
33512 saveLdflags="$LDFLAGS"
33513 LDFLAGS="$saveLdflags -Wl,-rpath,/"
33514 echo "$as_me:$LINENO: checking if the linker accepts -rpath" >&5
33515echo $ECHO_N "checking if the linker accepts -rpath... $ECHO_C" >&6
33516 cat >conftest.$ac_ext <<_ACEOF
33517/* confdefs.h. */
33518_ACEOF
33519cat confdefs.h >>conftest.$ac_ext
33520cat >>conftest.$ac_ext <<_ACEOF
33521/* end confdefs.h. */
33522
33523int
33524main ()
33525{
33526
33527 ;
33528 return 0;
33529}
33530_ACEOF
33531rm -f conftest.$ac_objext conftest$ac_exeext
33532if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 33533 (eval $ac_link) 2>conftest.er1
a848cd7e 33534 ac_status=$?
ac1cb8d3
VS
33535 grep -v '^ *+' conftest.er1 >conftest.err
33536 rm -f conftest.er1
33537 cat conftest.err >&5
a848cd7e
SC
33538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33539 (exit $ac_status); } &&
479c790c 33540 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
33541 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33542 (eval $ac_try) 2>&5
33543 ac_status=$?
33544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33545 (exit $ac_status); }; } &&
33546 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
33547 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33548 (eval $ac_try) 2>&5
33549 ac_status=$?
33550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33551 (exit $ac_status); }; }; then
33552
33553 echo "$as_me:$LINENO: result: yes" >&5
33554echo "${ECHO_T}yes" >&6
33555 SAMPLES_RPATH_FLAG="-Wl,-rpath,\$(top_builddir)lib"
ffa0583f 33556 WXCONFIG_RPATH="-Wl,-rpath,\$libdir"
a848cd7e
SC
33557
33558else
33559 echo "$as_me: failed program was:" >&5
33560sed 's/^/| /' conftest.$ac_ext >&5
33561
33562
33563 echo "$as_me:$LINENO: result: no" >&5
33564echo "${ECHO_T}no" >&6
33565 echo "$as_me:$LINENO: checking if the linker accepts -R" >&5
33566echo $ECHO_N "checking if the linker accepts -R... $ECHO_C" >&6
33567 LDFLAGS="$saveLdflags -Wl,-R,/"
33568 cat >conftest.$ac_ext <<_ACEOF
33569/* confdefs.h. */
33570_ACEOF
33571cat confdefs.h >>conftest.$ac_ext
33572cat >>conftest.$ac_ext <<_ACEOF
33573/* end confdefs.h. */
33574
33575int
33576main ()
33577{
33578
33579 ;
33580 return 0;
33581}
33582_ACEOF
33583rm -f conftest.$ac_objext conftest$ac_exeext
33584if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 33585 (eval $ac_link) 2>conftest.er1
a848cd7e 33586 ac_status=$?
ac1cb8d3
VS
33587 grep -v '^ *+' conftest.er1 >conftest.err
33588 rm -f conftest.er1
33589 cat conftest.err >&5
a848cd7e
SC
33590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33591 (exit $ac_status); } &&
479c790c 33592 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
33593 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33594 (eval $ac_try) 2>&5
33595 ac_status=$?
33596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33597 (exit $ac_status); }; } &&
33598 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
33599 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33600 (eval $ac_try) 2>&5
33601 ac_status=$?
33602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33603 (exit $ac_status); }; }; then
33604
ffa0583f 33605 echo "$as_me:$LINENO: result: yes" >&5
a848cd7e 33606echo "${ECHO_T}yes" >&6
ffa0583f
RL
33607 SAMPLES_RPATH_FLAG="-Wl,-R,\$(top_builddir)lib"
33608 WXCONFIG_RPATH="-Wl,-R,\$libdir"
33609
a848cd7e
SC
33610else
33611 echo "$as_me: failed program was:" >&5
33612sed 's/^/| /' conftest.$ac_ext >&5
33613
33614
33615 echo "$as_me:$LINENO: result: no" >&5
33616echo "${ECHO_T}no" >&6
33617
33618fi
ac1cb8d3
VS
33619rm -f conftest.err conftest.$ac_objext \
33620 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
33621
33622fi
ac1cb8d3
VS
33623rm -f conftest.err conftest.$ac_objext \
33624 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
33625 LDFLAGS="$saveLdflags"
33626 else
a848cd7e 33627 SAMPLES_RPATH_FLAG="-R\$(top_builddir)lib"
ffa0583f 33628 WXCONFIG_RPATH="-R\$libdir"
a848cd7e
SC
33629 fi
33630 ;;
33631
cfda0ea8 33632 *-*-darwin* )
0caebc27
MW
33633 install_name_tool=`which install_name_tool`
33634 if test "$install_name_tool" -a -x "$install_name_tool"; then
33635 SAMPLES_RPATH_POSTLINK="\$(top_builddir)change-install-names \$(LIBDIRNAME) \$(prefix) \$@"
33636 cat <<EOF >change-install-names
a848cd7e
SC
33637#!/bin/sh
33638libnames=\`cd \${1} ; ls -1 | grep '\.[0-9][0-9]*\.dylib\$'\`
33639inst_cmd="install_name_tool "
33640for i in \${libnames} ; do
33641 inst_cmd="\${inst_cmd} -change \${2}/lib/\${i} \${1}/\${i}"
33642done
33643\${inst_cmd} \${3}
33644EOF
0caebc27
MW
33645 chmod +x change-install-names
33646 fi
a848cd7e
SC
33647 ;;
33648
33649 *-*-cygwin* | *-*-mingw32* )
5ff751d6
VZ
33650 WXCONFIG_ONLY_CPPFLAGS="$WXCONFIG_ONLY_CPPFLAGS -DWXUSINGDLL"
33651 ;;
a848cd7e 33652
81f90336
MW
33653 *-*-hpux* )
33654 SAMPLES_RPATH_FLAG="-Wl,+b,\$(top_builddir)lib"
33655 WXCONFIG_RPATH="-Wl,+b,\$libdir"
5ff751d6 33656 ;;
81f90336 33657
a848cd7e 33658 esac
ceec2216 33659
ffa0583f
RL
33660 if test $wxUSE_RPATH = "no"; then
33661 SAMPLES_RPATH_FLAG=''
33662 SAMPLES_RPATH_POSTLINK=''
33663 WXCONFIG_RPATH=''
33664 fi
33665
33666 SHARED=1
33667
33668else
33669
ceec2216
RL
33670 config_linkage_component="-static"
33671 SHARED=0
ffa0583f 33672
ceec2216 33673fi
a848cd7e 33674
a848cd7e 33675
ceec2216
RL
33676UNICODE=0
33677lib_unicode_suffix=
33678WX_CHARTYPE="ansi"
33679if test "$wxUSE_UNICODE" = "yes"; then
33680 lib_unicode_suffix=u
33681 WX_CHARTYPE="unicode"
33682 UNICODE=1
a848cd7e
SC
33683fi
33684
ceec2216
RL
33685lib_debug_suffix=
33686WX_DEBUGTYPE="release"
33687DEBUG_FLAG=0
33688if test "$wxUSE_DEBUG_FLAG" = "yes"; then
33689 lib_debug_suffix=d
33690 WX_DEBUGTYPE="debug"
33691 DEBUG_FLAG=1
33692fi
a848cd7e 33693
ceec2216
RL
33694WX_FLAVOUR=${WX_FLAVOUR:+-$WX_FLAVOUR}
33695WX_LIB_FLAVOUR=`echo $WX_FLAVOUR | tr '-' '_'`
a848cd7e 33696
ceec2216
RL
33697DEBUG_INFO=0
33698if test "$wxUSE_DEBUG_INFO" = "yes"; then
33699 DEBUG_INFO=1
33700fi
a848cd7e 33701
ceec2216 33702WX_VERSION_TAG=`echo WX${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}_${WX_RELEASE} | tr "[a-z]" "[A-Z]"`
a848cd7e 33703
ceec2216 33704TOOLCHAIN_NAME="${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}-${WX_RELEASE}"
a848cd7e 33705
ceec2216 33706TOOLCHAIN_FULLNAME="${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}-${WX_CHARTYPE}-${WX_DEBUGTYPE}${config_linkage_component}-${WX_RELEASE}${WX_FLAVOUR}"
a848cd7e 33707
ceec2216
RL
33708if test "$cross_compiling" = "yes"; then
33709 HOST_SUFFIX="-$host_alias"
33710 TOOLCHAIN_NAME="$TOOLCHAIN_NAME$HOST_SUFFIX"
33711 TOOLCHAIN_FULLNAME="${host_alias}-$TOOLCHAIN_FULLNAME"
a848cd7e
SC
33712fi
33713
dd21ced8 33714WX_LIBRARY_BASENAME_NOGUI="wx_base${WXBASEPORT}${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}"
abc736fd
MW
33715if test "${TOOLKIT_DIR}" = "os2"; then
33716 WX_LIBRARY_BASENAME_GUI="wx_pm${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}"
33717else
33718 WX_LIBRARY_BASENAME_GUI="wx_${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}"
33719fi
ceec2216
RL
33720
33721
33722
1d1af5ea
DE
33723if test "$wxUSE_COCOA" = 1; then
33724
33725
33726 ac_ext=c
33727ac_cpp='$CPP $CPPFLAGS'
33728ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33729ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33730ac_compiler_gnu=$ac_cv_c_compiler_gnu
33731
33732ac_ext=m
33733
33734 echo "$as_me:$LINENO: checking if AppKit/NSEvent.h conflicts with CoreFoundation" >&5
33735echo $ECHO_N "checking if AppKit/NSEvent.h conflicts with CoreFoundation... $ECHO_C" >&6
33736 cat >conftest.$ac_ext <<_ACEOF
33737/* confdefs.h. */
33738_ACEOF
33739cat confdefs.h >>conftest.$ac_ext
33740cat >>conftest.$ac_ext <<_ACEOF
33741/* end confdefs.h. */
33742#include <AppKit/NSEvent.h>
33743#include <CoreFoundation/CoreFoundation.h>
33744
33745int
33746main ()
33747{
33748
33749 ;
33750 return 0;
33751}
33752_ACEOF
33753rm -f conftest.$ac_objext
33754if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33755 (eval $ac_compile) 2>conftest.er1
33756 ac_status=$?
33757 grep -v '^ *+' conftest.er1 >conftest.err
33758 rm -f conftest.er1
33759 cat conftest.err >&5
33760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33761 (exit $ac_status); } &&
479c790c 33762 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
1d1af5ea
DE
33763 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33764 (eval $ac_try) 2>&5
33765 ac_status=$?
33766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33767 (exit $ac_status); }; } &&
33768 { ac_try='test -s conftest.$ac_objext'
33769 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33770 (eval $ac_try) 2>&5
33771 ac_status=$?
33772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33773 (exit $ac_status); }; }; then
33774 echo "$as_me:$LINENO: result: no" >&5
33775echo "${ECHO_T}no" >&6
33776else
33777 echo "$as_me: failed program was:" >&5
33778sed 's/^/| /' conftest.$ac_ext >&5
33779
33780echo "$as_me:$LINENO: result: yes" >&5
33781echo "${ECHO_T}yes" >&6
33782 echo "$as_me:$LINENO: checking if defining __Point__ will fix it" >&5
33783echo $ECHO_N "checking if defining __Point__ will fix it... $ECHO_C" >&6
33784 cat >conftest.$ac_ext <<_ACEOF
33785/* confdefs.h. */
33786_ACEOF
33787cat confdefs.h >>conftest.$ac_ext
33788cat >>conftest.$ac_ext <<_ACEOF
33789/* end confdefs.h. */
33790#define __Point__ 1
33791#include <AppKit/NSEvent.h>
33792#include <CoreFoundation/CoreFoundation.h>
33793
33794int
33795main ()
33796{
33797
33798 ;
33799 return 0;
33800}
33801_ACEOF
33802rm -f conftest.$ac_objext
33803if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33804 (eval $ac_compile) 2>conftest.er1
33805 ac_status=$?
33806 grep -v '^ *+' conftest.er1 >conftest.err
33807 rm -f conftest.er1
33808 cat conftest.err >&5
33809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33810 (exit $ac_status); } &&
479c790c 33811 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
1d1af5ea
DE
33812 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33813 (eval $ac_try) 2>&5
33814 ac_status=$?
33815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33816 (exit $ac_status); }; } &&
33817 { ac_try='test -s conftest.$ac_objext'
33818 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33819 (eval $ac_try) 2>&5
33820 ac_status=$?
33821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33822 (exit $ac_status); }; }; then
33823 echo "$as_me:$LINENO: result: yes" >&5
33824echo "${ECHO_T}yes" >&6
33825 cat >>confdefs.h <<\_ACEOF
33826#define __Point__ 1
33827_ACEOF
33828
33829
33830else
33831 echo "$as_me: failed program was:" >&5
33832sed 's/^/| /' conftest.$ac_ext >&5
33833
33834{ { echo "$as_me:$LINENO: error: no
33835See \`config.log' for more details." >&5
33836echo "$as_me: error: no
33837See \`config.log' for more details." >&2;}
33838 { (exit 1); exit 1; }; }
33839
33840fi
33841rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33842
33843fi
33844rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5d7b7554
VZ
33845 ac_ext=cc
33846ac_cpp='$CXXCPP $CPPFLAGS'
33847ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33848ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33849ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
1d1af5ea
DE
33850
33851fi
33852
a848cd7e 33853if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1; then
abb9aae7
VZ
33854 WX_RESOURCES_MACOSX_ASCII="libwx_${TOOLCHAIN_NAME}.${wx_release_number}.r"
33855 WX_RESOURCES_MACOSX_DATA="libwx_${TOOLCHAIN_NAME}.${wx_release_number}.rsrc"
ceec2216 33856
a848cd7e 33857 LIBWXMACRES="\$(top_builddir)lib/${WX_RESOURCES_MACOSX_ASCII}"
a848cd7e
SC
33858
33859 # Extract the first word of "Rez", so it can be a program name with args.
33860set dummy Rez; ac_word=$2
33861echo "$as_me:$LINENO: checking for $ac_word" >&5
33862echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8ced02f6 33863if test "${ac_cv_prog_REZ+set}" = set; then
a848cd7e
SC
33864 echo $ECHO_N "(cached) $ECHO_C" >&6
33865else
8ced02f6
DE
33866 if test -n "$REZ"; then
33867 ac_cv_prog_REZ="$REZ" # Let the user override the test.
a848cd7e
SC
33868else
33869as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33870for as_dir in $PATH
33871do
33872 IFS=$as_save_IFS
33873 test -z "$as_dir" && as_dir=.
33874 for ac_exec_ext in '' $ac_executable_extensions; do
33875 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8ced02f6 33876 ac_cv_prog_REZ="Rez"
a848cd7e
SC
33877 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
33878 break 2
33879 fi
33880done
33881done
33882
8ced02f6 33883 test -z "$ac_cv_prog_REZ" && ac_cv_prog_REZ="/Developer/Tools/Rez"
a848cd7e
SC
33884fi
33885fi
8ced02f6
DE
33886REZ=$ac_cv_prog_REZ
33887if test -n "$REZ"; then
33888 echo "$as_me:$LINENO: result: $REZ" >&5
33889echo "${ECHO_T}$REZ" >&6
a848cd7e
SC
33890else
33891 echo "$as_me:$LINENO: result: no" >&5
33892echo "${ECHO_T}no" >&6
33893fi
33894
33895 # Extract the first word of "DeRez", so it can be a program name with args.
33896set dummy DeRez; ac_word=$2
33897echo "$as_me:$LINENO: checking for $ac_word" >&5
33898echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
33899if test "${ac_cv_prog_DEREZ+set}" = set; then
33900 echo $ECHO_N "(cached) $ECHO_C" >&6
33901else
33902 if test -n "$DEREZ"; then
33903 ac_cv_prog_DEREZ="$DEREZ" # Let the user override the test.
33904else
33905as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33906for as_dir in $PATH
33907do
33908 IFS=$as_save_IFS
33909 test -z "$as_dir" && as_dir=.
33910 for ac_exec_ext in '' $ac_executable_extensions; do
33911 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
33912 ac_cv_prog_DEREZ="DeRez"
33913 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
33914 break 2
33915 fi
33916done
33917done
33918
33919 test -z "$ac_cv_prog_DEREZ" && ac_cv_prog_DEREZ="/Developer/Tools/DeRez"
33920fi
33921fi
33922DEREZ=$ac_cv_prog_DEREZ
33923if test -n "$DEREZ"; then
33924 echo "$as_me:$LINENO: result: $DEREZ" >&5
33925echo "${ECHO_T}$DEREZ" >&6
33926else
33927 echo "$as_me:$LINENO: result: no" >&5
33928echo "${ECHO_T}no" >&6
33929fi
33930
33931 # Extract the first word of "SetFile", so it can be a program name with args.
33932set dummy SetFile; ac_word=$2
33933echo "$as_me:$LINENO: checking for $ac_word" >&5
33934echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
33935if test "${ac_cv_prog_SETFILE+set}" = set; then
33936 echo $ECHO_N "(cached) $ECHO_C" >&6
33937else
33938 if test -n "$SETFILE"; then
33939 ac_cv_prog_SETFILE="$SETFILE" # Let the user override the test.
33940else
33941as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33942for as_dir in $PATH
33943do
33944 IFS=$as_save_IFS
33945 test -z "$as_dir" && as_dir=.
33946 for ac_exec_ext in '' $ac_executable_extensions; do
33947 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
33948 ac_cv_prog_SETFILE="SetFile"
33949 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
33950 break 2
33951 fi
33952done
33953done
33954
33955 test -z "$ac_cv_prog_SETFILE" && ac_cv_prog_SETFILE="/Developer/Tools/SetFile"
33956fi
33957fi
33958SETFILE=$ac_cv_prog_SETFILE
33959if test -n "$SETFILE"; then
33960 echo "$as_me:$LINENO: result: $SETFILE" >&5
33961echo "${ECHO_T}$SETFILE" >&6
33962else
33963 echo "$as_me:$LINENO: result: no" >&5
33964echo "${ECHO_T}no" >&6
33965fi
33966
33967
33968 MACSETFILE="\$(SETFILE)"
33969
33970 if test "$wxUSE_MAC" = 1; then
8ced02f6 33971 POSTLINK_COMMAND="\$(REZ) -d __DARWIN__ -t APPL Carbon.r -o"
004ee6da
RL
33972 RESCOMP="$REZ"
33973 WXCONFIG_RESFLAGS="-d __DARWIN__ -t APPL Carbon.r -o"
a848cd7e 33974 else
004ee6da
RL
33975 POSTLINK_COMMAND="echo -n | \$(REZ) -d __DARWIN__ -t APPL ${LIBWXMACRES}"
33976 RESCOMP="echo -n \| $REZ"
33977 WXCONFIG_RESFLAGS="-d __DARWIN__ -t APPL \$libdir/$WX_RESOURCES_MACOSX_ASCII"
a848cd7e 33978 fi
004ee6da 33979
a848cd7e 33980else
ffa0583f 33981 MACSETFILE="@true"
a848cd7e 33982
8ced02f6 33983 if test "$wxUSE_PM" = 1; then
004ee6da
RL
33984 RESCOMP="emxbind"
33985 WXCONFIG_RESFLAGS="-ep"
33986
33987 POSTLINK_COMMAND="$RESCOMP $WXCONFIG_RESFLAGS"
a848cd7e 33988 else
8ced02f6 33989 POSTLINK_COMMAND="@true"
a848cd7e 33990 fi
004ee6da 33991
a848cd7e
SC
33992fi
33993
33994
33995
33996echo "$as_me:$LINENO: checking for mode_t" >&5
33997echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
33998if test "${ac_cv_type_mode_t+set}" = set; then
33999 echo $ECHO_N "(cached) $ECHO_C" >&6
34000else
34001 cat >conftest.$ac_ext <<_ACEOF
34002/* confdefs.h. */
34003_ACEOF
34004cat confdefs.h >>conftest.$ac_ext
34005cat >>conftest.$ac_ext <<_ACEOF
34006/* end confdefs.h. */
34007$ac_includes_default
34008int
34009main ()
34010{
34011if ((mode_t *) 0)
34012 return 0;
34013if (sizeof (mode_t))
34014 return 0;
34015 ;
34016 return 0;
34017}
34018_ACEOF
34019rm -f conftest.$ac_objext
34020if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 34021 (eval $ac_compile) 2>conftest.er1
a848cd7e 34022 ac_status=$?
ac1cb8d3
VS
34023 grep -v '^ *+' conftest.er1 >conftest.err
34024 rm -f conftest.er1
34025 cat conftest.err >&5
a848cd7e
SC
34026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34027 (exit $ac_status); } &&
479c790c 34028 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
34029 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34030 (eval $ac_try) 2>&5
34031 ac_status=$?
34032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34033 (exit $ac_status); }; } &&
34034 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
34035 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34036 (eval $ac_try) 2>&5
34037 ac_status=$?
34038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34039 (exit $ac_status); }; }; then
34040 ac_cv_type_mode_t=yes
34041else
34042 echo "$as_me: failed program was:" >&5
34043sed 's/^/| /' conftest.$ac_ext >&5
34044
34045ac_cv_type_mode_t=no
34046fi
ac1cb8d3 34047rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
34048fi
34049echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
34050echo "${ECHO_T}$ac_cv_type_mode_t" >&6
34051if test $ac_cv_type_mode_t = yes; then
34052 :
34053else
34054
34055cat >>confdefs.h <<_ACEOF
34056#define mode_t int
34057_ACEOF
34058
34059fi
34060
34061echo "$as_me:$LINENO: checking for off_t" >&5
34062echo $ECHO_N "checking for off_t... $ECHO_C" >&6
34063if test "${ac_cv_type_off_t+set}" = set; then
34064 echo $ECHO_N "(cached) $ECHO_C" >&6
34065else
34066 cat >conftest.$ac_ext <<_ACEOF
34067/* confdefs.h. */
34068_ACEOF
34069cat confdefs.h >>conftest.$ac_ext
34070cat >>conftest.$ac_ext <<_ACEOF
34071/* end confdefs.h. */
34072$ac_includes_default
34073int
34074main ()
34075{
34076if ((off_t *) 0)
34077 return 0;
34078if (sizeof (off_t))
34079 return 0;
34080 ;
34081 return 0;
34082}
34083_ACEOF
34084rm -f conftest.$ac_objext
34085if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 34086 (eval $ac_compile) 2>conftest.er1
a848cd7e 34087 ac_status=$?
ac1cb8d3
VS
34088 grep -v '^ *+' conftest.er1 >conftest.err
34089 rm -f conftest.er1
34090 cat conftest.err >&5
a848cd7e
SC
34091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34092 (exit $ac_status); } &&
479c790c 34093 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
34094 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34095 (eval $ac_try) 2>&5
34096 ac_status=$?
34097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34098 (exit $ac_status); }; } &&
34099 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
34100 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34101 (eval $ac_try) 2>&5
34102 ac_status=$?
34103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34104 (exit $ac_status); }; }; then
34105 ac_cv_type_off_t=yes
34106else
34107 echo "$as_me: failed program was:" >&5
34108sed 's/^/| /' conftest.$ac_ext >&5
34109
34110ac_cv_type_off_t=no
34111fi
ac1cb8d3 34112rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
34113fi
34114echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
34115echo "${ECHO_T}$ac_cv_type_off_t" >&6
34116if test $ac_cv_type_off_t = yes; then
34117 :
34118else
34119
34120cat >>confdefs.h <<_ACEOF
34121#define off_t long
34122_ACEOF
34123
34124fi
34125
34126echo "$as_me:$LINENO: checking for pid_t" >&5
34127echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
34128if test "${ac_cv_type_pid_t+set}" = set; then
34129 echo $ECHO_N "(cached) $ECHO_C" >&6
34130else
34131 cat >conftest.$ac_ext <<_ACEOF
34132/* confdefs.h. */
34133_ACEOF
34134cat confdefs.h >>conftest.$ac_ext
34135cat >>conftest.$ac_ext <<_ACEOF
34136/* end confdefs.h. */
34137$ac_includes_default
34138int
34139main ()
34140{
34141if ((pid_t *) 0)
34142 return 0;
34143if (sizeof (pid_t))
34144 return 0;
34145 ;
34146 return 0;
34147}
34148_ACEOF
34149rm -f conftest.$ac_objext
34150if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 34151 (eval $ac_compile) 2>conftest.er1
a848cd7e 34152 ac_status=$?
ac1cb8d3
VS
34153 grep -v '^ *+' conftest.er1 >conftest.err
34154 rm -f conftest.er1
34155 cat conftest.err >&5
a848cd7e
SC
34156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34157 (exit $ac_status); } &&
479c790c 34158 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
34159 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34160 (eval $ac_try) 2>&5
34161 ac_status=$?
34162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34163 (exit $ac_status); }; } &&
34164 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
34165 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34166 (eval $ac_try) 2>&5
34167 ac_status=$?
34168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34169 (exit $ac_status); }; }; then
34170 ac_cv_type_pid_t=yes
34171else
34172 echo "$as_me: failed program was:" >&5
34173sed 's/^/| /' conftest.$ac_ext >&5
34174
34175ac_cv_type_pid_t=no
34176fi
ac1cb8d3 34177rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
34178fi
34179echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
34180echo "${ECHO_T}$ac_cv_type_pid_t" >&6
34181if test $ac_cv_type_pid_t = yes; then
34182 :
34183else
34184
34185cat >>confdefs.h <<_ACEOF
34186#define pid_t int
34187_ACEOF
34188
34189fi
34190
34191echo "$as_me:$LINENO: checking for size_t" >&5
34192echo $ECHO_N "checking for size_t... $ECHO_C" >&6
34193if test "${ac_cv_type_size_t+set}" = set; then
34194 echo $ECHO_N "(cached) $ECHO_C" >&6
34195else
34196 cat >conftest.$ac_ext <<_ACEOF
34197/* confdefs.h. */
34198_ACEOF
34199cat confdefs.h >>conftest.$ac_ext
34200cat >>conftest.$ac_ext <<_ACEOF
34201/* end confdefs.h. */
34202$ac_includes_default
34203int
34204main ()
34205{
34206if ((size_t *) 0)
34207 return 0;
34208if (sizeof (size_t))
34209 return 0;
34210 ;
34211 return 0;
34212}
34213_ACEOF
34214rm -f conftest.$ac_objext
34215if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 34216 (eval $ac_compile) 2>conftest.er1
a848cd7e 34217 ac_status=$?
ac1cb8d3
VS
34218 grep -v '^ *+' conftest.er1 >conftest.err
34219 rm -f conftest.er1
34220 cat conftest.err >&5
a848cd7e
SC
34221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34222 (exit $ac_status); } &&
479c790c 34223 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
34224 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34225 (eval $ac_try) 2>&5
34226 ac_status=$?
34227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34228 (exit $ac_status); }; } &&
34229 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
34230 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34231 (eval $ac_try) 2>&5
34232 ac_status=$?
34233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34234 (exit $ac_status); }; }; then
34235 ac_cv_type_size_t=yes
34236else
34237 echo "$as_me: failed program was:" >&5
34238sed 's/^/| /' conftest.$ac_ext >&5
34239
34240ac_cv_type_size_t=no
34241fi
ac1cb8d3 34242rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
34243fi
34244echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
34245echo "${ECHO_T}$ac_cv_type_size_t" >&6
34246if test $ac_cv_type_size_t = yes; then
34247 :
34248else
34249
34250cat >>confdefs.h <<_ACEOF
34251#define size_t unsigned
34252_ACEOF
34253
34254fi
34255
34256echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
34257echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
34258if test "${ac_cv_type_uid_t+set}" = set; then
34259 echo $ECHO_N "(cached) $ECHO_C" >&6
34260else
34261 cat >conftest.$ac_ext <<_ACEOF
34262/* confdefs.h. */
34263_ACEOF
34264cat confdefs.h >>conftest.$ac_ext
34265cat >>conftest.$ac_ext <<_ACEOF
34266/* end confdefs.h. */
34267#include <sys/types.h>
34268
34269_ACEOF
34270if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
34271 $EGREP "uid_t" >/dev/null 2>&1; then
34272 ac_cv_type_uid_t=yes
34273else
34274 ac_cv_type_uid_t=no
34275fi
34276rm -f conftest*
34277
34278fi
34279echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
34280echo "${ECHO_T}$ac_cv_type_uid_t" >&6
34281if test $ac_cv_type_uid_t = no; then
34282
34283cat >>confdefs.h <<\_ACEOF
34284#define uid_t int
34285_ACEOF
34286
34287
34288cat >>confdefs.h <<\_ACEOF
34289#define gid_t int
34290_ACEOF
34291
34292fi
34293
34294
d51253e8
RL
34295echo "$as_me:$LINENO: checking for ssize_t" >&5
34296echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
34297if test "${ac_cv_type_ssize_t+set}" = set; then
34298 echo $ECHO_N "(cached) $ECHO_C" >&6
34299else
34300 cat >conftest.$ac_ext <<_ACEOF
34301/* confdefs.h. */
34302_ACEOF
34303cat confdefs.h >>conftest.$ac_ext
34304cat >>conftest.$ac_ext <<_ACEOF
34305/* end confdefs.h. */
34306$ac_includes_default
34307int
34308main ()
34309{
34310if ((ssize_t *) 0)
34311 return 0;
34312if (sizeof (ssize_t))
34313 return 0;
34314 ;
34315 return 0;
34316}
34317_ACEOF
34318rm -f conftest.$ac_objext
34319if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34320 (eval $ac_compile) 2>conftest.er1
34321 ac_status=$?
34322 grep -v '^ *+' conftest.er1 >conftest.err
34323 rm -f conftest.er1
34324 cat conftest.err >&5
34325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34326 (exit $ac_status); } &&
479c790c 34327 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
d51253e8
RL
34328 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34329 (eval $ac_try) 2>&5
34330 ac_status=$?
34331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34332 (exit $ac_status); }; } &&
34333 { ac_try='test -s conftest.$ac_objext'
34334 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34335 (eval $ac_try) 2>&5
34336 ac_status=$?
34337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34338 (exit $ac_status); }; }; then
34339 ac_cv_type_ssize_t=yes
34340else
34341 echo "$as_me: failed program was:" >&5
34342sed 's/^/| /' conftest.$ac_ext >&5
34343
34344ac_cv_type_ssize_t=no
34345fi
34346rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34347fi
34348echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
34349echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
34350if test $ac_cv_type_ssize_t = yes; then
34351
34352cat >>confdefs.h <<_ACEOF
34353#define HAVE_SSIZE_T 1
34354_ACEOF
34355
34356
34357fi
34358
34359
a848cd7e
SC
34360echo "$as_me:$LINENO: checking if size_t is unsigned int" >&5
34361echo $ECHO_N "checking if size_t is unsigned int... $ECHO_C" >&6
34362if test "${wx_cv_size_t_is_uint+set}" = set; then
34363 echo $ECHO_N "(cached) $ECHO_C" >&6
34364else
34365
34366 cat >conftest.$ac_ext <<_ACEOF
34367/* confdefs.h. */
34368_ACEOF
34369cat confdefs.h >>conftest.$ac_ext
34370cat >>conftest.$ac_ext <<_ACEOF
34371/* end confdefs.h. */
34372#include <stddef.h>
34373int
34374main ()
34375{
34376
34377 return 0; }
34378
34379 struct Foo { void foo(size_t); void foo(unsigned int); };
34380
34381 int bar() {
34382
34383 ;
34384 return 0;
34385}
34386_ACEOF
34387rm -f conftest.$ac_objext
34388if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 34389 (eval $ac_compile) 2>conftest.er1
a848cd7e 34390 ac_status=$?
ac1cb8d3
VS
34391 grep -v '^ *+' conftest.er1 >conftest.err
34392 rm -f conftest.er1
34393 cat conftest.err >&5
a848cd7e
SC
34394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34395 (exit $ac_status); } &&
479c790c 34396 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
34397 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34398 (eval $ac_try) 2>&5
34399 ac_status=$?
34400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34401 (exit $ac_status); }; } &&
34402 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
34403 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34404 (eval $ac_try) 2>&5
34405 ac_status=$?
34406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34407 (exit $ac_status); }; }; then
34408 wx_cv_size_t_is_uint=no
34409else
34410 echo "$as_me: failed program was:" >&5
34411sed 's/^/| /' conftest.$ac_ext >&5
34412
34413wx_cv_size_t_is_uint=yes
34414
34415fi
ac1cb8d3 34416rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
34417
34418
34419fi
34420echo "$as_me:$LINENO: result: $wx_cv_size_t_is_uint" >&5
34421echo "${ECHO_T}$wx_cv_size_t_is_uint" >&6
34422
34423if test "$wx_cv_size_t_is_uint" = "yes"; then
34424 cat >>confdefs.h <<\_ACEOF
34425#define wxSIZE_T_IS_UINT 1
34426_ACEOF
34427
34428else
34429 echo "$as_me:$LINENO: checking if size_t is unsigned long" >&5
34430echo $ECHO_N "checking if size_t is unsigned long... $ECHO_C" >&6
34431if test "${wx_cv_size_t_is_ulong+set}" = set; then
34432 echo $ECHO_N "(cached) $ECHO_C" >&6
34433else
34434 cat >conftest.$ac_ext <<_ACEOF
34435/* confdefs.h. */
34436_ACEOF
34437cat confdefs.h >>conftest.$ac_ext
34438cat >>conftest.$ac_ext <<_ACEOF
34439/* end confdefs.h. */
34440#include <stddef.h>
34441int
34442main ()
34443{
34444
34445 return 0; }
34446
34447 struct Foo { void foo(size_t); void foo(unsigned long); };
34448
34449 int bar() {
34450
34451 ;
34452 return 0;
34453}
34454_ACEOF
34455rm -f conftest.$ac_objext
34456if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 34457 (eval $ac_compile) 2>conftest.er1
a848cd7e 34458 ac_status=$?
ac1cb8d3
VS
34459 grep -v '^ *+' conftest.er1 >conftest.err
34460 rm -f conftest.er1
34461 cat conftest.err >&5
a848cd7e
SC
34462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34463 (exit $ac_status); } &&
479c790c 34464 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
34465 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34466 (eval $ac_try) 2>&5
34467 ac_status=$?
34468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34469 (exit $ac_status); }; } &&
34470 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
34471 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34472 (eval $ac_try) 2>&5
34473 ac_status=$?
34474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34475 (exit $ac_status); }; }; then
34476 wx_cv_size_t_is_ulong=no
34477else
34478 echo "$as_me: failed program was:" >&5
34479sed 's/^/| /' conftest.$ac_ext >&5
34480
34481wx_cv_size_t_is_ulong=yes
34482
34483fi
ac1cb8d3 34484rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
34485
34486fi
34487echo "$as_me:$LINENO: result: $wx_cv_size_t_is_ulong" >&5
34488echo "${ECHO_T}$wx_cv_size_t_is_ulong" >&6
34489
34490 if test "$wx_cv_size_t_is_ulong" = "yes"; then
34491 cat >>confdefs.h <<\_ACEOF
34492#define wxSIZE_T_IS_ULONG 1
34493_ACEOF
34494
34495 fi
34496fi
34497
a848cd7e
SC
34498
34499echo "$as_me:$LINENO: checking for pw_gecos in struct passwd" >&5
34500echo $ECHO_N "checking for pw_gecos in struct passwd... $ECHO_C" >&6
34501if test "${wx_cv_struct_pw_gecos+set}" = set; then
34502 echo $ECHO_N "(cached) $ECHO_C" >&6
34503else
34504
34505 cat >conftest.$ac_ext <<_ACEOF
34506/* confdefs.h. */
34507_ACEOF
34508cat confdefs.h >>conftest.$ac_ext
34509cat >>conftest.$ac_ext <<_ACEOF
34510/* end confdefs.h. */
34511#include <pwd.h>
34512int
34513main ()
34514{
34515
34516 char *p;
34517 struct passwd *pw;
34518 p = pw->pw_gecos;
34519
34520 ;
34521 return 0;
34522}
34523_ACEOF
34524rm -f conftest.$ac_objext
34525if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 34526 (eval $ac_compile) 2>conftest.er1
a848cd7e 34527 ac_status=$?
ac1cb8d3
VS
34528 grep -v '^ *+' conftest.er1 >conftest.err
34529 rm -f conftest.er1
34530 cat conftest.err >&5
a848cd7e
SC
34531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34532 (exit $ac_status); } &&
479c790c 34533 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
34534 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34535 (eval $ac_try) 2>&5
34536 ac_status=$?
34537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34538 (exit $ac_status); }; } &&
34539 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
34540 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34541 (eval $ac_try) 2>&5
34542 ac_status=$?
34543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34544 (exit $ac_status); }; }; then
34545
34546 wx_cv_struct_pw_gecos=yes
34547
34548else
34549 echo "$as_me: failed program was:" >&5
34550sed 's/^/| /' conftest.$ac_ext >&5
34551
34552
34553 wx_cv_struct_pw_gecos=no
34554
34555
34556fi
ac1cb8d3 34557rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
34558
34559
34560fi
34561echo "$as_me:$LINENO: result: $wx_cv_struct_pw_gecos" >&5
34562echo "${ECHO_T}$wx_cv_struct_pw_gecos" >&6
34563
34564if test "$wx_cv_struct_pw_gecos" = "yes"; then
34565 cat >>confdefs.h <<\_ACEOF
34566#define HAVE_PW_GECOS 1
34567_ACEOF
34568
34569fi
34570
34571
47a7e797 34572if test "$wxUSE_WCHAR_T" = "yes"; then
a848cd7e
SC
34573 cat >>confdefs.h <<\_ACEOF
34574#define wxUSE_WCHAR_T 1
34575_ACEOF
34576
34577
34578 WCSLEN_FOUND=0
34579 WCHAR_LINK=
34580
34581for ac_func in wcslen
34582do
34583as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34584echo "$as_me:$LINENO: checking for $ac_func" >&5
34585echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
34586if eval "test \"\${$as_ac_var+set}\" = set"; then
34587 echo $ECHO_N "(cached) $ECHO_C" >&6
34588else
34589 cat >conftest.$ac_ext <<_ACEOF
34590/* confdefs.h. */
34591_ACEOF
34592cat confdefs.h >>conftest.$ac_ext
34593cat >>conftest.$ac_ext <<_ACEOF
34594/* end confdefs.h. */
ac1cb8d3
VS
34595/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34596 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34597#define $ac_func innocuous_$ac_func
34598
a848cd7e
SC
34599/* System header to define __stub macros and hopefully few prototypes,
34600 which can conflict with char $ac_func (); below.
34601 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34602 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 34603
a848cd7e
SC
34604#ifdef __STDC__
34605# include <limits.h>
34606#else
34607# include <assert.h>
34608#endif
ac1cb8d3
VS
34609
34610#undef $ac_func
34611
a848cd7e
SC
34612/* Override any gcc2 internal prototype to avoid an error. */
34613#ifdef __cplusplus
34614extern "C"
34615{
34616#endif
34617/* We use char because int might match the return type of a gcc2
34618 builtin and then its argument prototype would still apply. */
34619char $ac_func ();
34620/* The GNU C library defines this for functions which it implements
34621 to always fail with ENOSYS. Some functions are actually named
34622 something starting with __ and the normal name is an alias. */
34623#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
34624choke me
34625#else
34626char (*f) () = $ac_func;
34627#endif
34628#ifdef __cplusplus
34629}
34630#endif
34631
34632int
34633main ()
34634{
34635return f != $ac_func;
34636 ;
34637 return 0;
34638}
34639_ACEOF
34640rm -f conftest.$ac_objext conftest$ac_exeext
34641if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 34642 (eval $ac_link) 2>conftest.er1
a848cd7e 34643 ac_status=$?
ac1cb8d3
VS
34644 grep -v '^ *+' conftest.er1 >conftest.err
34645 rm -f conftest.er1
34646 cat conftest.err >&5
a848cd7e
SC
34647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34648 (exit $ac_status); } &&
479c790c 34649 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
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); }; } &&
34655 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
34656 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34657 (eval $ac_try) 2>&5
34658 ac_status=$?
34659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34660 (exit $ac_status); }; }; then
34661 eval "$as_ac_var=yes"
34662else
34663 echo "$as_me: failed program was:" >&5
34664sed 's/^/| /' conftest.$ac_ext >&5
34665
34666eval "$as_ac_var=no"
34667fi
ac1cb8d3
VS
34668rm -f conftest.err conftest.$ac_objext \
34669 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
34670fi
34671echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
34672echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
34673if test `eval echo '${'$as_ac_var'}'` = yes; then
34674 cat >>confdefs.h <<_ACEOF
34675#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34676_ACEOF
34677 WCSLEN_FOUND=1
34678fi
34679done
34680
34681
34682 if test "$WCSLEN_FOUND" = 0; then
34683 if test "$TOOLKIT" = "MSW"; then
34684 echo "$as_me:$LINENO: checking for wcslen in -lmsvcrt" >&5
34685echo $ECHO_N "checking for wcslen in -lmsvcrt... $ECHO_C" >&6
34686if test "${ac_cv_lib_msvcrt_wcslen+set}" = set; then
34687 echo $ECHO_N "(cached) $ECHO_C" >&6
34688else
34689 ac_check_lib_save_LIBS=$LIBS
34690LIBS="-lmsvcrt $LIBS"
34691cat >conftest.$ac_ext <<_ACEOF
34692/* confdefs.h. */
34693_ACEOF
34694cat confdefs.h >>conftest.$ac_ext
34695cat >>conftest.$ac_ext <<_ACEOF
34696/* end confdefs.h. */
34697
34698/* Override any gcc2 internal prototype to avoid an error. */
34699#ifdef __cplusplus
34700extern "C"
34701#endif
34702/* We use char because int might match the return type of a gcc2
34703 builtin and then its argument prototype would still apply. */
34704char wcslen ();
34705int
34706main ()
34707{
34708wcslen ();
34709 ;
34710 return 0;
34711}
34712_ACEOF
34713rm -f conftest.$ac_objext conftest$ac_exeext
34714if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 34715 (eval $ac_link) 2>conftest.er1
a848cd7e 34716 ac_status=$?
ac1cb8d3
VS
34717 grep -v '^ *+' conftest.er1 >conftest.err
34718 rm -f conftest.er1
34719 cat conftest.err >&5
a848cd7e
SC
34720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34721 (exit $ac_status); } &&
479c790c 34722 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
34723 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34724 (eval $ac_try) 2>&5
34725 ac_status=$?
34726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34727 (exit $ac_status); }; } &&
34728 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
34729 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34730 (eval $ac_try) 2>&5
34731 ac_status=$?
34732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34733 (exit $ac_status); }; }; then
34734 ac_cv_lib_msvcrt_wcslen=yes
34735else
34736 echo "$as_me: failed program was:" >&5
34737sed 's/^/| /' conftest.$ac_ext >&5
34738
34739ac_cv_lib_msvcrt_wcslen=no
34740fi
ac1cb8d3
VS
34741rm -f conftest.err conftest.$ac_objext \
34742 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
34743LIBS=$ac_check_lib_save_LIBS
34744fi
34745echo "$as_me:$LINENO: result: $ac_cv_lib_msvcrt_wcslen" >&5
34746echo "${ECHO_T}$ac_cv_lib_msvcrt_wcslen" >&6
34747if test $ac_cv_lib_msvcrt_wcslen = yes; then
34748 WCHAR_OK=1
34749fi
34750
34751 else
34752 echo "$as_me:$LINENO: checking for wcslen in -lw" >&5
34753echo $ECHO_N "checking for wcslen in -lw... $ECHO_C" >&6
34754if test "${ac_cv_lib_w_wcslen+set}" = set; then
34755 echo $ECHO_N "(cached) $ECHO_C" >&6
34756else
34757 ac_check_lib_save_LIBS=$LIBS
34758LIBS="-lw $LIBS"
34759cat >conftest.$ac_ext <<_ACEOF
34760/* confdefs.h. */
34761_ACEOF
34762cat confdefs.h >>conftest.$ac_ext
34763cat >>conftest.$ac_ext <<_ACEOF
34764/* end confdefs.h. */
34765
34766/* Override any gcc2 internal prototype to avoid an error. */
34767#ifdef __cplusplus
34768extern "C"
34769#endif
34770/* We use char because int might match the return type of a gcc2
34771 builtin and then its argument prototype would still apply. */
34772char wcslen ();
34773int
34774main ()
34775{
34776wcslen ();
34777 ;
34778 return 0;
34779}
34780_ACEOF
34781rm -f conftest.$ac_objext conftest$ac_exeext
34782if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 34783 (eval $ac_link) 2>conftest.er1
a848cd7e 34784 ac_status=$?
ac1cb8d3
VS
34785 grep -v '^ *+' conftest.er1 >conftest.err
34786 rm -f conftest.er1
34787 cat conftest.err >&5
a848cd7e
SC
34788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34789 (exit $ac_status); } &&
479c790c 34790 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
34791 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34792 (eval $ac_try) 2>&5
34793 ac_status=$?
34794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34795 (exit $ac_status); }; } &&
34796 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
34797 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34798 (eval $ac_try) 2>&5
34799 ac_status=$?
34800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34801 (exit $ac_status); }; }; then
34802 ac_cv_lib_w_wcslen=yes
34803else
34804 echo "$as_me: failed program was:" >&5
34805sed 's/^/| /' conftest.$ac_ext >&5
34806
34807ac_cv_lib_w_wcslen=no
34808fi
ac1cb8d3
VS
34809rm -f conftest.err conftest.$ac_objext \
34810 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
34811LIBS=$ac_check_lib_save_LIBS
34812fi
34813echo "$as_me:$LINENO: result: $ac_cv_lib_w_wcslen" >&5
34814echo "${ECHO_T}$ac_cv_lib_w_wcslen" >&6
34815if test $ac_cv_lib_w_wcslen = yes; then
34816
34817 WCHAR_LINK=" -lw"
34818 WCSLEN_FOUND=1
34819
34820fi
34821
34822 fi
34823 fi
34824
34825 if test "$WCSLEN_FOUND" = 1; then
34826 cat >>confdefs.h <<\_ACEOF
34827#define HAVE_WCSLEN 1
34828_ACEOF
34829
34830 fi
34831
efdf6afe 34832 if test "$USE_HPUX" = 1 -a "$GCC" != "yes"; then
c92ad099 34833 CPPFLAGS="-D_INCLUDE__STDC_A1_SOURCE $CPPFLAGS"
473276a9
VS
34834 fi
34835
efdf6afe
VZ
34836 echo "$as_me:$LINENO: checking for mbstate_t" >&5
34837echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6
34838if test "${ac_cv_type_mbstate_t+set}" = set; then
34839 echo $ECHO_N "(cached) $ECHO_C" >&6
34840else
34841 cat >conftest.$ac_ext <<_ACEOF
34842/* confdefs.h. */
34843_ACEOF
34844cat confdefs.h >>conftest.$ac_ext
34845cat >>conftest.$ac_ext <<_ACEOF
34846/* end confdefs.h. */
34847#include <wchar.h>
34848
34849int
34850main ()
34851{
34852if ((mbstate_t *) 0)
34853 return 0;
34854if (sizeof (mbstate_t))
34855 return 0;
34856 ;
34857 return 0;
34858}
34859_ACEOF
34860rm -f conftest.$ac_objext
34861if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34862 (eval $ac_compile) 2>conftest.er1
34863 ac_status=$?
34864 grep -v '^ *+' conftest.er1 >conftest.err
34865 rm -f conftest.er1
34866 cat conftest.err >&5
34867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34868 (exit $ac_status); } &&
479c790c 34869 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
efdf6afe
VZ
34870 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34871 (eval $ac_try) 2>&5
34872 ac_status=$?
34873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34874 (exit $ac_status); }; } &&
34875 { ac_try='test -s conftest.$ac_objext'
34876 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34877 (eval $ac_try) 2>&5
34878 ac_status=$?
34879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34880 (exit $ac_status); }; }; then
34881 ac_cv_type_mbstate_t=yes
34882else
34883 echo "$as_me: failed program was:" >&5
34884sed 's/^/| /' conftest.$ac_ext >&5
34885
34886ac_cv_type_mbstate_t=no
34887fi
34888rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34889fi
34890echo "$as_me:$LINENO: result: $ac_cv_type_mbstate_t" >&5
34891echo "${ECHO_T}$ac_cv_type_mbstate_t" >&6
34892if test $ac_cv_type_mbstate_t = yes; then
34893
34894cat >>confdefs.h <<_ACEOF
34895#define HAVE_MBSTATE_T 1
34896_ACEOF
34897
a848cd7e
SC
34898
34899for ac_func in wcsrtombs
34900do
34901as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34902echo "$as_me:$LINENO: checking for $ac_func" >&5
34903echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
34904if eval "test \"\${$as_ac_var+set}\" = set"; then
34905 echo $ECHO_N "(cached) $ECHO_C" >&6
34906else
34907 cat >conftest.$ac_ext <<_ACEOF
34908/* confdefs.h. */
34909_ACEOF
34910cat confdefs.h >>conftest.$ac_ext
34911cat >>conftest.$ac_ext <<_ACEOF
34912/* end confdefs.h. */
ac1cb8d3
VS
34913/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34914 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34915#define $ac_func innocuous_$ac_func
34916
a848cd7e
SC
34917/* System header to define __stub macros and hopefully few prototypes,
34918 which can conflict with char $ac_func (); below.
34919 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34920 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 34921
a848cd7e
SC
34922#ifdef __STDC__
34923# include <limits.h>
34924#else
34925# include <assert.h>
34926#endif
ac1cb8d3
VS
34927
34928#undef $ac_func
34929
a848cd7e
SC
34930/* Override any gcc2 internal prototype to avoid an error. */
34931#ifdef __cplusplus
34932extern "C"
34933{
34934#endif
34935/* We use char because int might match the return type of a gcc2
34936 builtin and then its argument prototype would still apply. */
34937char $ac_func ();
34938/* The GNU C library defines this for functions which it implements
34939 to always fail with ENOSYS. Some functions are actually named
34940 something starting with __ and the normal name is an alias. */
34941#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
34942choke me
34943#else
34944char (*f) () = $ac_func;
34945#endif
34946#ifdef __cplusplus
34947}
34948#endif
34949
34950int
34951main ()
34952{
34953return f != $ac_func;
34954 ;
34955 return 0;
34956}
34957_ACEOF
34958rm -f conftest.$ac_objext conftest$ac_exeext
34959if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 34960 (eval $ac_link) 2>conftest.er1
a848cd7e 34961 ac_status=$?
ac1cb8d3
VS
34962 grep -v '^ *+' conftest.er1 >conftest.err
34963 rm -f conftest.er1
34964 cat conftest.err >&5
a848cd7e
SC
34965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34966 (exit $ac_status); } &&
479c790c 34967 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
34968 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34969 (eval $ac_try) 2>&5
34970 ac_status=$?
34971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34972 (exit $ac_status); }; } &&
34973 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
34974 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34975 (eval $ac_try) 2>&5
34976 ac_status=$?
34977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34978 (exit $ac_status); }; }; then
34979 eval "$as_ac_var=yes"
34980else
34981 echo "$as_me: failed program was:" >&5
34982sed 's/^/| /' conftest.$ac_ext >&5
34983
34984eval "$as_ac_var=no"
34985fi
ac1cb8d3
VS
34986rm -f conftest.err conftest.$ac_objext \
34987 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
34988fi
34989echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
34990echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
34991if test `eval echo '${'$as_ac_var'}'` = yes; then
34992 cat >>confdefs.h <<_ACEOF
34993#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34994_ACEOF
34995
34996fi
34997done
34998
efdf6afe
VZ
34999fi
35000
a848cd7e
SC
35001else
35002 { echo "$as_me:$LINENO: WARNING: Wide character support is unavailable" >&5
35003echo "$as_me: WARNING: Wide character support is unavailable" >&2;}
35004fi
35005
a848cd7e 35006
4a767dd5
VZ
35007
35008for ac_func in snprintf vsnprintf
a848cd7e
SC
35009do
35010as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35011echo "$as_me:$LINENO: checking for $ac_func" >&5
35012echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
35013if eval "test \"\${$as_ac_var+set}\" = set"; then
35014 echo $ECHO_N "(cached) $ECHO_C" >&6
35015else
35016 cat >conftest.$ac_ext <<_ACEOF
35017/* confdefs.h. */
35018_ACEOF
35019cat confdefs.h >>conftest.$ac_ext
35020cat >>conftest.$ac_ext <<_ACEOF
35021/* end confdefs.h. */
ac1cb8d3
VS
35022/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
35023 For example, HP-UX 11i <limits.h> declares gettimeofday. */
35024#define $ac_func innocuous_$ac_func
35025
a848cd7e
SC
35026/* System header to define __stub macros and hopefully few prototypes,
35027 which can conflict with char $ac_func (); below.
35028 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35029 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 35030
a848cd7e
SC
35031#ifdef __STDC__
35032# include <limits.h>
35033#else
35034# include <assert.h>
35035#endif
ac1cb8d3
VS
35036
35037#undef $ac_func
35038
a848cd7e
SC
35039/* Override any gcc2 internal prototype to avoid an error. */
35040#ifdef __cplusplus
35041extern "C"
35042{
35043#endif
35044/* We use char because int might match the return type of a gcc2
35045 builtin and then its argument prototype would still apply. */
35046char $ac_func ();
35047/* The GNU C library defines this for functions which it implements
35048 to always fail with ENOSYS. Some functions are actually named
35049 something starting with __ and the normal name is an alias. */
35050#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
35051choke me
35052#else
35053char (*f) () = $ac_func;
35054#endif
35055#ifdef __cplusplus
35056}
35057#endif
35058
35059int
35060main ()
35061{
35062return f != $ac_func;
35063 ;
35064 return 0;
35065}
35066_ACEOF
35067rm -f conftest.$ac_objext conftest$ac_exeext
35068if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 35069 (eval $ac_link) 2>conftest.er1
a848cd7e 35070 ac_status=$?
ac1cb8d3
VS
35071 grep -v '^ *+' conftest.er1 >conftest.err
35072 rm -f conftest.er1
35073 cat conftest.err >&5
a848cd7e
SC
35074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35075 (exit $ac_status); } &&
479c790c 35076 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
35077 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35078 (eval $ac_try) 2>&5
35079 ac_status=$?
35080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35081 (exit $ac_status); }; } &&
35082 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
35083 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35084 (eval $ac_try) 2>&5
35085 ac_status=$?
35086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35087 (exit $ac_status); }; }; then
35088 eval "$as_ac_var=yes"
35089else
35090 echo "$as_me: failed program was:" >&5
35091sed 's/^/| /' conftest.$ac_ext >&5
35092
35093eval "$as_ac_var=no"
35094fi
ac1cb8d3
VS
35095rm -f conftest.err conftest.$ac_objext \
35096 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
35097fi
35098echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
35099echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
35100if test `eval echo '${'$as_ac_var'}'` = yes; then
35101 cat >>confdefs.h <<_ACEOF
35102#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35103_ACEOF
35104
35105fi
35106done
35107
35108
35109if test "$ac_cv_func_vsnprintf" = "yes"; then
35110 echo "$as_me:$LINENO: checking for vsnprintf declaration" >&5
35111echo $ECHO_N "checking for vsnprintf declaration... $ECHO_C" >&6
35112if test "${wx_cv_func_vsnprintf_decl+set}" = set; then
35113 echo $ECHO_N "(cached) $ECHO_C" >&6
35114else
35115
efdf6afe 35116 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
35117/* confdefs.h. */
35118_ACEOF
35119cat confdefs.h >>conftest.$ac_ext
35120cat >>conftest.$ac_ext <<_ACEOF
35121/* end confdefs.h. */
35122
35123 #include <stdio.h>
35124 #include <stdarg.h>
efdf6afe
VZ
35125 #ifdef __MSL__
35126 #if __MSL__ >= 0x6000
35127 namespace std {}
35128 using namespace std;
35129 #endif
35130 #endif
a848cd7e
SC
35131
35132int
35133main ()
35134{
35135
35136 char *buf;
35137 va_list ap;
62fa8b3a 35138 vsnprintf(buf, 10u, "%s", ap);
c122b164
DE
35139
35140 ;
35141 return 0;
35142}
35143_ACEOF
35144rm -f conftest.$ac_objext
35145if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35146 (eval $ac_compile) 2>conftest.er1
35147 ac_status=$?
35148 grep -v '^ *+' conftest.er1 >conftest.err
35149 rm -f conftest.er1
35150 cat conftest.err >&5
35151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35152 (exit $ac_status); } &&
479c790c 35153 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
c122b164
DE
35154 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35155 (eval $ac_try) 2>&5
35156 ac_status=$?
35157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35158 (exit $ac_status); }; } &&
35159 { ac_try='test -s conftest.$ac_objext'
35160 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35161 (eval $ac_try) 2>&5
35162 ac_status=$?
35163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35164 (exit $ac_status); }; }; then
35165 wx_cv_func_vsnprintf_decl=yes
35166else
35167 echo "$as_me: failed program was:" >&5
35168sed 's/^/| /' conftest.$ac_ext >&5
35169
a848cd7e
SC
35170wx_cv_func_vsnprintf_decl=no
35171
35172fi
ac1cb8d3 35173rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
35174
35175
35176fi
35177echo "$as_me:$LINENO: result: $wx_cv_func_vsnprintf_decl" >&5
35178echo "${ECHO_T}$wx_cv_func_vsnprintf_decl" >&6
35179
35180 if test "$wx_cv_func_vsnprintf_decl" = "yes"; then
35181 cat >>confdefs.h <<\_ACEOF
35182#define HAVE_VSNPRINTF_DECL 1
35183_ACEOF
35184
62fa8b3a
MW
35185
35186 echo "$as_me:$LINENO: checking if vsnprintf declaration is broken" >&5
35187echo $ECHO_N "checking if vsnprintf declaration is broken... $ECHO_C" >&6
35188if test "${wx_cv_func_broken_vsnprintf_decl+set}" = set; then
35189 echo $ECHO_N "(cached) $ECHO_C" >&6
35190else
35191
35192 cat >conftest.$ac_ext <<_ACEOF
35193/* confdefs.h. */
35194_ACEOF
35195cat confdefs.h >>conftest.$ac_ext
35196cat >>conftest.$ac_ext <<_ACEOF
35197/* end confdefs.h. */
35198
35199 #include <stdio.h>
35200 #include <stdarg.h>
35201 #ifdef __MSL__
35202 #if __MSL__ >= 0x6000
35203 namespace std {}
35204 using namespace std;
35205 #endif
35206 #endif
35207
35208int
35209main ()
35210{
35211
35212 char *buf;
35213 va_list ap;
35214 const char *fmt = "%s";
35215 vsnprintf(buf, 10u, fmt, ap);
35216
35217 ;
35218 return 0;
35219}
35220_ACEOF
35221rm -f conftest.$ac_objext
35222if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35223 (eval $ac_compile) 2>conftest.er1
35224 ac_status=$?
35225 grep -v '^ *+' conftest.er1 >conftest.err
35226 rm -f conftest.er1
35227 cat conftest.err >&5
35228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35229 (exit $ac_status); } &&
479c790c 35230 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
62fa8b3a
MW
35231 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35232 (eval $ac_try) 2>&5
35233 ac_status=$?
35234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35235 (exit $ac_status); }; } &&
35236 { ac_try='test -s conftest.$ac_objext'
35237 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35238 (eval $ac_try) 2>&5
35239 ac_status=$?
35240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35241 (exit $ac_status); }; }; then
35242 wx_cv_func_broken_vsnprintf_decl=no
35243else
35244 echo "$as_me: failed program was:" >&5
35245sed 's/^/| /' conftest.$ac_ext >&5
35246
35247wx_cv_func_broken_vsnprintf_decl=yes
35248
35249fi
35250rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35251
35252
35253fi
35254echo "$as_me:$LINENO: result: $wx_cv_func_broken_vsnprintf_decl" >&5
35255echo "${ECHO_T}$wx_cv_func_broken_vsnprintf_decl" >&6
35256
35257 if test "$wx_cv_func_broken_vsnprintf_decl" = "yes"; then
35258 cat >>confdefs.h <<\_ACEOF
35259#define HAVE_BROKEN_VSNPRINTF_DECL 1
35260_ACEOF
35261
35262 fi
a848cd7e
SC
35263 fi
35264fi
35265
4a767dd5
VZ
35266if test "$ac_cv_func_snprintf" = "yes"; then
35267 echo "$as_me:$LINENO: checking for snprintf declaration" >&5
35268echo $ECHO_N "checking for snprintf declaration... $ECHO_C" >&6
35269if test "${wx_cv_func_snprintf_decl+set}" = set; then
35270 echo $ECHO_N "(cached) $ECHO_C" >&6
35271else
35272
35273 cat >conftest.$ac_ext <<_ACEOF
35274/* confdefs.h. */
35275_ACEOF
35276cat confdefs.h >>conftest.$ac_ext
35277cat >>conftest.$ac_ext <<_ACEOF
35278/* end confdefs.h. */
35279
35280 #include <stdio.h>
35281 #include <stdarg.h>
35282 #ifdef __MSL__
35283 #if __MSL__ >= 0x6000
35284 namespace std {}
35285 using namespace std;
35286 #endif
35287 #endif
35288
35289int
35290main ()
35291{
35292
35293 char *buf;
62fa8b3a 35294 snprintf(buf, 10u, "%s", "wx");
4a767dd5
VZ
35295
35296 ;
35297 return 0;
35298}
35299_ACEOF
35300rm -f conftest.$ac_objext
35301if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35302 (eval $ac_compile) 2>conftest.er1
35303 ac_status=$?
35304 grep -v '^ *+' conftest.er1 >conftest.err
35305 rm -f conftest.er1
35306 cat conftest.err >&5
35307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35308 (exit $ac_status); } &&
479c790c 35309 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
4a767dd5
VZ
35310 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35311 (eval $ac_try) 2>&5
35312 ac_status=$?
35313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35314 (exit $ac_status); }; } &&
35315 { ac_try='test -s conftest.$ac_objext'
35316 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35317 (eval $ac_try) 2>&5
35318 ac_status=$?
35319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35320 (exit $ac_status); }; }; then
35321 wx_cv_func_snprintf_decl=yes
35322else
35323 echo "$as_me: failed program was:" >&5
35324sed 's/^/| /' conftest.$ac_ext >&5
35325
35326wx_cv_func_snprintf_decl=no
35327
35328fi
35329rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35330
35331
35332fi
35333echo "$as_me:$LINENO: result: $wx_cv_func_snprintf_decl" >&5
35334echo "${ECHO_T}$wx_cv_func_snprintf_decl" >&6
35335
35336 if test "$wx_cv_func_snprintf_decl" = "yes"; then
35337 cat >>confdefs.h <<\_ACEOF
35338#define HAVE_SNPRINTF_DECL 1
35339_ACEOF
35340
62fa8b3a
MW
35341
35342 echo "$as_me:$LINENO: checking if snprintf declaration is broken" >&5
35343echo $ECHO_N "checking if snprintf declaration is broken... $ECHO_C" >&6
35344if test "${wx_cv_func_broken_snprintf_decl+set}" = set; then
35345 echo $ECHO_N "(cached) $ECHO_C" >&6
35346else
35347
35348 cat >conftest.$ac_ext <<_ACEOF
35349/* confdefs.h. */
35350_ACEOF
35351cat confdefs.h >>conftest.$ac_ext
35352cat >>conftest.$ac_ext <<_ACEOF
35353/* end confdefs.h. */
35354
35355 #include <stdio.h>
35356 #include <stdarg.h>
35357 #ifdef __MSL__
35358 #if __MSL__ >= 0x6000
35359 namespace std {}
35360 using namespace std;
35361 #endif
35362 #endif
35363
35364int
35365main ()
35366{
35367
35368 char *buf;
35369 const char *fmt = "%s";
35370 snprintf(buf, 10u, fmt, "wx");
35371
35372 ;
35373 return 0;
35374}
35375_ACEOF
35376rm -f conftest.$ac_objext
35377if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35378 (eval $ac_compile) 2>conftest.er1
35379 ac_status=$?
35380 grep -v '^ *+' conftest.er1 >conftest.err
35381 rm -f conftest.er1
35382 cat conftest.err >&5
35383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35384 (exit $ac_status); } &&
479c790c 35385 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
62fa8b3a
MW
35386 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35387 (eval $ac_try) 2>&5
35388 ac_status=$?
35389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35390 (exit $ac_status); }; } &&
35391 { ac_try='test -s conftest.$ac_objext'
35392 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35393 (eval $ac_try) 2>&5
35394 ac_status=$?
35395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35396 (exit $ac_status); }; }; then
35397 wx_cv_func_broken_snprintf_decl=no
35398else
35399 echo "$as_me: failed program was:" >&5
35400sed 's/^/| /' conftest.$ac_ext >&5
35401
35402wx_cv_func_broken_snprintf_decl=yes
35403
35404fi
35405rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35406
35407
35408fi
35409echo "$as_me:$LINENO: result: $wx_cv_func_broken_snprintf_decl" >&5
35410echo "${ECHO_T}$wx_cv_func_broken_snprintf_decl" >&6
35411
35412 if test "$wx_cv_func_broken_snprintf_decl" = "yes"; then
35413 cat >>confdefs.h <<\_ACEOF
35414#define HAVE_BROKEN_SNPRINTF_DECL 1
8b6682b9
JS
35415_ACEOF
35416
35417 fi
35418 fi
35419
35420 if test "$wxUSE_PRINTF_POS_PARAMS" = "yes"; then
35421
35422 echo "$as_me:$LINENO: checking if snprintf supports positional arguments" >&5
35423echo $ECHO_N "checking if snprintf supports positional arguments... $ECHO_C" >&6
35424if test "${wx_cv_func_snprintf_pos_params+set}" = set; then
35425 echo $ECHO_N "(cached) $ECHO_C" >&6
35426else
35427
35428 if test "$cross_compiling" = yes; then
5039a2df
VZ
35429
35430 { echo "$as_me:$LINENO: WARNING: Assuming Unix98 printf() is not available,
35431define HAVE_UNIX98_PRINTF as 1 in setup.h if it is available." >&5
35432echo "$as_me: WARNING: Assuming Unix98 printf() is not available,
35433define HAVE_UNIX98_PRINTF as 1 in setup.h if it is available." >&2;}
35434 wx_cv_func_snprintf_pos_params=no
35435
35436
8b6682b9
JS
35437else
35438 cat >conftest.$ac_ext <<_ACEOF
35439/* confdefs.h. */
35440_ACEOF
35441cat confdefs.h >>conftest.$ac_ext
35442cat >>conftest.$ac_ext <<_ACEOF
35443/* end confdefs.h. */
35444
35445 #include <stdio.h>
35446
35447 int main (void)
35448 {
35449 char buffer[128];
35450 snprintf (buffer, 128, "%2\$d %3\$d %1\$d", 1, 2, 3);
35451 if (strcmp ("2 3 1", buffer) == 0)
35452 exit (0);
35453 exit (1);
35454 }
35455
35456_ACEOF
35457rm -f conftest$ac_exeext
35458if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35459 (eval $ac_link) 2>&5
35460 ac_status=$?
35461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35462 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
35463 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35464 (eval $ac_try) 2>&5
35465 ac_status=$?
35466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35467 (exit $ac_status); }; }; then
35468 wx_cv_func_snprintf_pos_params=no
35469else
35470 echo "$as_me: program exited with status $ac_status" >&5
35471echo "$as_me: failed program was:" >&5
35472sed 's/^/| /' conftest.$ac_ext >&5
35473
35474( exit $ac_status )
35475wx_cv_func_snprintf_pos_params=yes
8b6682b9
JS
35476fi
35477rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
35478fi
35479
35480
35481fi
35482echo "$as_me:$LINENO: result: $wx_cv_func_snprintf_pos_params" >&5
35483echo "${ECHO_T}$wx_cv_func_snprintf_pos_params" >&6
35484
35485 if test "$wx_cv_func_snprintf_pos_params" = "yes"; then
35486 cat >>confdefs.h <<\_ACEOF
35487#define HAVE_UNIX98_PRINTF 1
62fa8b3a
MW
35488_ACEOF
35489
35490 fi
4a767dd5
VZ
35491 fi
35492fi
35493
a848cd7e
SC
35494if test "$wxUSE_UNICODE" = yes; then
35495
35496
6a5c9b3f
RR
35497for ac_func in swprintf
35498do
35499as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35500echo "$as_me:$LINENO: checking for $ac_func" >&5
35501echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
35502if eval "test \"\${$as_ac_var+set}\" = set"; then
35503 echo $ECHO_N "(cached) $ECHO_C" >&6
35504else
35505 cat >conftest.$ac_ext <<_ACEOF
35506/* confdefs.h. */
35507_ACEOF
35508cat confdefs.h >>conftest.$ac_ext
35509cat >>conftest.$ac_ext <<_ACEOF
35510/* end confdefs.h. */
35511/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
35512 For example, HP-UX 11i <limits.h> declares gettimeofday. */
35513#define $ac_func innocuous_$ac_func
35514
35515/* System header to define __stub macros and hopefully few prototypes,
35516 which can conflict with char $ac_func (); below.
35517 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35518 <limits.h> exists even on freestanding compilers. */
35519
35520#ifdef __STDC__
35521# include <limits.h>
35522#else
35523# include <assert.h>
35524#endif
35525
35526#undef $ac_func
35527
35528/* Override any gcc2 internal prototype to avoid an error. */
35529#ifdef __cplusplus
35530extern "C"
35531{
35532#endif
35533/* We use char because int might match the return type of a gcc2
35534 builtin and then its argument prototype would still apply. */
35535char $ac_func ();
35536/* The GNU C library defines this for functions which it implements
35537 to always fail with ENOSYS. Some functions are actually named
35538 something starting with __ and the normal name is an alias. */
35539#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
35540choke me
35541#else
35542char (*f) () = $ac_func;
35543#endif
35544#ifdef __cplusplus
35545}
35546#endif
35547
35548int
35549main ()
35550{
35551return f != $ac_func;
35552 ;
35553 return 0;
35554}
35555_ACEOF
35556rm -f conftest.$ac_objext conftest$ac_exeext
35557if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35558 (eval $ac_link) 2>conftest.er1
35559 ac_status=$?
35560 grep -v '^ *+' conftest.er1 >conftest.err
35561 rm -f conftest.er1
35562 cat conftest.err >&5
35563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35564 (exit $ac_status); } &&
479c790c 35565 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6a5c9b3f
RR
35566 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35567 (eval $ac_try) 2>&5
35568 ac_status=$?
35569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35570 (exit $ac_status); }; } &&
35571 { ac_try='test -s conftest$ac_exeext'
35572 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35573 (eval $ac_try) 2>&5
35574 ac_status=$?
35575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35576 (exit $ac_status); }; }; then
35577 eval "$as_ac_var=yes"
35578else
35579 echo "$as_me: failed program was:" >&5
35580sed 's/^/| /' conftest.$ac_ext >&5
35581
35582eval "$as_ac_var=no"
35583fi
35584rm -f conftest.err conftest.$ac_objext \
35585 conftest$ac_exeext conftest.$ac_ext
35586fi
35587echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
35588echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
35589if test `eval echo '${'$as_ac_var'}'` = yes; then
35590 cat >>confdefs.h <<_ACEOF
35591#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35592_ACEOF
35593
35594fi
35595done
35596
35597
35598 if test "$ac_cv_func_swprintf" = "yes"; then
35599 echo "$as_me:$LINENO: checking if swprintf declaration is broken" >&5
35600echo $ECHO_N "checking if swprintf declaration is broken... $ECHO_C" >&6
35601if test "${wx_cv_func_broken_swprintf_decl+set}" = set; then
35602 echo $ECHO_N "(cached) $ECHO_C" >&6
35603else
35604
35605 cat >conftest.$ac_ext <<_ACEOF
35606/* confdefs.h. */
35607_ACEOF
35608cat confdefs.h >>conftest.$ac_ext
35609cat >>conftest.$ac_ext <<_ACEOF
35610/* end confdefs.h. */
35611
35612 #include <stdio.h>
35613 #include <stdarg.h>
35614 #include <wchar.h>
35615
35616int
35617main ()
35618{
35619
35620 wchar_t *buf;
35621 const wchar_t *fmt = L"test";
35622 swprintf(buf, 10u, fmt);
35623
35624 ;
35625 return 0;
35626}
35627_ACEOF
35628rm -f conftest.$ac_objext
35629if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35630 (eval $ac_compile) 2>conftest.er1
35631 ac_status=$?
35632 grep -v '^ *+' conftest.er1 >conftest.err
35633 rm -f conftest.er1
35634 cat conftest.err >&5
35635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35636 (exit $ac_status); } &&
479c790c 35637 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6a5c9b3f
RR
35638 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35639 (eval $ac_try) 2>&5
35640 ac_status=$?
35641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35642 (exit $ac_status); }; } &&
35643 { ac_try='test -s conftest.$ac_objext'
35644 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35645 (eval $ac_try) 2>&5
35646 ac_status=$?
35647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35648 (exit $ac_status); }; }; then
35649 wx_cv_func_broken_swprintf_decl=no
35650else
35651 echo "$as_me: failed program was:" >&5
35652sed 's/^/| /' conftest.$ac_ext >&5
35653
35654wx_cv_func_broken_swprintf_decl=yes
35655
35656fi
35657rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35658
35659
35660fi
35661echo "$as_me:$LINENO: result: $wx_cv_func_broken_swprintf_decl" >&5
35662echo "${ECHO_T}$wx_cv_func_broken_swprintf_decl" >&6
35663
35664 if test "$wx_cv_func_broken_swprintf_decl" = "yes"; then
35665 cat >>confdefs.h <<\_ACEOF
35666#define HAVE_BROKEN_SWPRINTF_DECL 1
35667_ACEOF
35668
35669 fi
35670 fi
35671
35672
35673
a848cd7e 35674
fbe47c7b
VS
35675
35676
35677
35678for ac_func in wputc wputchar putws fputws wprintf vswprintf
a848cd7e
SC
35679do
35680as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35681echo "$as_me:$LINENO: checking for $ac_func" >&5
35682echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
35683if eval "test \"\${$as_ac_var+set}\" = set"; then
35684 echo $ECHO_N "(cached) $ECHO_C" >&6
35685else
35686 cat >conftest.$ac_ext <<_ACEOF
35687/* confdefs.h. */
35688_ACEOF
35689cat confdefs.h >>conftest.$ac_ext
35690cat >>conftest.$ac_ext <<_ACEOF
35691/* end confdefs.h. */
ac1cb8d3
VS
35692/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
35693 For example, HP-UX 11i <limits.h> declares gettimeofday. */
35694#define $ac_func innocuous_$ac_func
35695
a848cd7e
SC
35696/* System header to define __stub macros and hopefully few prototypes,
35697 which can conflict with char $ac_func (); below.
35698 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35699 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 35700
a848cd7e
SC
35701#ifdef __STDC__
35702# include <limits.h>
35703#else
35704# include <assert.h>
35705#endif
ac1cb8d3
VS
35706
35707#undef $ac_func
35708
a848cd7e
SC
35709/* Override any gcc2 internal prototype to avoid an error. */
35710#ifdef __cplusplus
35711extern "C"
35712{
35713#endif
35714/* We use char because int might match the return type of a gcc2
35715 builtin and then its argument prototype would still apply. */
35716char $ac_func ();
35717/* The GNU C library defines this for functions which it implements
35718 to always fail with ENOSYS. Some functions are actually named
35719 something starting with __ and the normal name is an alias. */
35720#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
35721choke me
35722#else
35723char (*f) () = $ac_func;
35724#endif
35725#ifdef __cplusplus
35726}
35727#endif
35728
35729int
35730main ()
35731{
35732return f != $ac_func;
35733 ;
35734 return 0;
35735}
35736_ACEOF
35737rm -f conftest.$ac_objext conftest$ac_exeext
35738if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 35739 (eval $ac_link) 2>conftest.er1
a848cd7e 35740 ac_status=$?
ac1cb8d3
VS
35741 grep -v '^ *+' conftest.er1 >conftest.err
35742 rm -f conftest.er1
35743 cat conftest.err >&5
a848cd7e
SC
35744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35745 (exit $ac_status); } &&
479c790c 35746 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
35747 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35748 (eval $ac_try) 2>&5
35749 ac_status=$?
35750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35751 (exit $ac_status); }; } &&
35752 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
35753 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35754 (eval $ac_try) 2>&5
35755 ac_status=$?
35756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35757 (exit $ac_status); }; }; then
35758 eval "$as_ac_var=yes"
35759else
35760 echo "$as_me: failed program was:" >&5
35761sed 's/^/| /' conftest.$ac_ext >&5
35762
35763eval "$as_ac_var=no"
35764fi
ac1cb8d3
VS
35765rm -f conftest.err conftest.$ac_objext \
35766 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
35767fi
35768echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
35769echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
35770if test `eval echo '${'$as_ac_var'}'` = yes; then
35771 cat >>confdefs.h <<_ACEOF
35772#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35773_ACEOF
35774
35775fi
35776done
35777
35778
35779 echo "$as_me:$LINENO: checking for _vsnwprintf" >&5
35780echo $ECHO_N "checking for _vsnwprintf... $ECHO_C" >&6
35781 cat >conftest.$ac_ext <<_ACEOF
35782/* confdefs.h. */
35783_ACEOF
35784cat confdefs.h >>conftest.$ac_ext
35785cat >>conftest.$ac_ext <<_ACEOF
35786/* end confdefs.h. */
35787#include <wchar.h>
35788int
35789main ()
35790{
35791&_vsnwprintf;
35792 ;
35793 return 0;
35794}
35795_ACEOF
35796rm -f conftest.$ac_objext
35797if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 35798 (eval $ac_compile) 2>conftest.er1
a848cd7e 35799 ac_status=$?
ac1cb8d3
VS
35800 grep -v '^ *+' conftest.er1 >conftest.err
35801 rm -f conftest.er1
35802 cat conftest.err >&5
a848cd7e
SC
35803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35804 (exit $ac_status); } &&
479c790c 35805 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
35806 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35807 (eval $ac_try) 2>&5
35808 ac_status=$?
35809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35810 (exit $ac_status); }; } &&
35811 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
35812 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35813 (eval $ac_try) 2>&5
35814 ac_status=$?
35815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35816 (exit $ac_status); }; }; then
35817 echo "$as_me:$LINENO: result: yes" >&5
35818echo "${ECHO_T}yes" >&6
35819 cat >>confdefs.h <<\_ACEOF
35820#define HAVE__VSNWPRINTF 1
35821_ACEOF
35822
35823else
35824 echo "$as_me: failed program was:" >&5
35825sed 's/^/| /' conftest.$ac_ext >&5
35826
35827echo "$as_me:$LINENO: result: no" >&5
35828echo "${ECHO_T}no" >&6
35829fi
ac1cb8d3 35830rm -f conftest.err conftest.$ac_objext conftest.$ac_ext;
a848cd7e
SC
35831fi
35832
6ebeb4c7
VZ
35833if test "x$ac_cv_header_fnmatch_h" = "xyes"; then
35834
35835for ac_func in fnmatch
35836do
35837as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35838echo "$as_me:$LINENO: checking for $ac_func" >&5
35839echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
35840if eval "test \"\${$as_ac_var+set}\" = set"; then
35841 echo $ECHO_N "(cached) $ECHO_C" >&6
35842else
35843 cat >conftest.$ac_ext <<_ACEOF
35844/* confdefs.h. */
35845_ACEOF
35846cat confdefs.h >>conftest.$ac_ext
35847cat >>conftest.$ac_ext <<_ACEOF
35848/* end confdefs.h. */
35849/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
35850 For example, HP-UX 11i <limits.h> declares gettimeofday. */
35851#define $ac_func innocuous_$ac_func
35852
35853/* System header to define __stub macros and hopefully few prototypes,
35854 which can conflict with char $ac_func (); below.
35855 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35856 <limits.h> exists even on freestanding compilers. */
35857
35858#ifdef __STDC__
35859# include <limits.h>
35860#else
35861# include <assert.h>
35862#endif
35863
35864#undef $ac_func
35865
35866/* Override any gcc2 internal prototype to avoid an error. */
35867#ifdef __cplusplus
35868extern "C"
35869{
35870#endif
35871/* We use char because int might match the return type of a gcc2
35872 builtin and then its argument prototype would still apply. */
35873char $ac_func ();
35874/* The GNU C library defines this for functions which it implements
35875 to always fail with ENOSYS. Some functions are actually named
35876 something starting with __ and the normal name is an alias. */
35877#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
35878choke me
35879#else
35880char (*f) () = $ac_func;
35881#endif
35882#ifdef __cplusplus
35883}
35884#endif
35885
35886int
35887main ()
35888{
35889return f != $ac_func;
35890 ;
35891 return 0;
35892}
35893_ACEOF
35894rm -f conftest.$ac_objext conftest$ac_exeext
35895if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35896 (eval $ac_link) 2>conftest.er1
35897 ac_status=$?
35898 grep -v '^ *+' conftest.er1 >conftest.err
35899 rm -f conftest.er1
35900 cat conftest.err >&5
35901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35902 (exit $ac_status); } &&
479c790c 35903 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6ebeb4c7
VZ
35904 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35905 (eval $ac_try) 2>&5
35906 ac_status=$?
35907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35908 (exit $ac_status); }; } &&
35909 { ac_try='test -s conftest$ac_exeext'
35910 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35911 (eval $ac_try) 2>&5
35912 ac_status=$?
35913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35914 (exit $ac_status); }; }; then
35915 eval "$as_ac_var=yes"
35916else
35917 echo "$as_me: failed program was:" >&5
35918sed 's/^/| /' conftest.$ac_ext >&5
35919
35920eval "$as_ac_var=no"
35921fi
35922rm -f conftest.err conftest.$ac_objext \
35923 conftest$ac_exeext conftest.$ac_ext
35924fi
35925echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
35926echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
35927if test `eval echo '${'$as_ac_var'}'` = yes; then
35928 cat >>confdefs.h <<_ACEOF
35929#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35930_ACEOF
35931
35932fi
35933done
35934
35935fi
35936
35937if test "$wxUSE_FILE" = "yes"; then
35938
35939for ac_func in fsync
35940do
35941as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35942echo "$as_me:$LINENO: checking for $ac_func" >&5
35943echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
35944if eval "test \"\${$as_ac_var+set}\" = set"; then
35945 echo $ECHO_N "(cached) $ECHO_C" >&6
35946else
35947 cat >conftest.$ac_ext <<_ACEOF
35948/* confdefs.h. */
35949_ACEOF
35950cat confdefs.h >>conftest.$ac_ext
35951cat >>conftest.$ac_ext <<_ACEOF
35952/* end confdefs.h. */
35953/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
35954 For example, HP-UX 11i <limits.h> declares gettimeofday. */
35955#define $ac_func innocuous_$ac_func
35956
35957/* System header to define __stub macros and hopefully few prototypes,
35958 which can conflict with char $ac_func (); below.
35959 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35960 <limits.h> exists even on freestanding compilers. */
35961
35962#ifdef __STDC__
35963# include <limits.h>
35964#else
35965# include <assert.h>
35966#endif
35967
35968#undef $ac_func
35969
35970/* Override any gcc2 internal prototype to avoid an error. */
35971#ifdef __cplusplus
35972extern "C"
35973{
35974#endif
35975/* We use char because int might match the return type of a gcc2
35976 builtin and then its argument prototype would still apply. */
35977char $ac_func ();
35978/* The GNU C library defines this for functions which it implements
35979 to always fail with ENOSYS. Some functions are actually named
35980 something starting with __ and the normal name is an alias. */
35981#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
35982choke me
35983#else
35984char (*f) () = $ac_func;
35985#endif
35986#ifdef __cplusplus
35987}
35988#endif
35989
35990int
35991main ()
35992{
35993return f != $ac_func;
35994 ;
35995 return 0;
35996}
35997_ACEOF
35998rm -f conftest.$ac_objext conftest$ac_exeext
35999if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36000 (eval $ac_link) 2>conftest.er1
36001 ac_status=$?
36002 grep -v '^ *+' conftest.er1 >conftest.err
36003 rm -f conftest.er1
36004 cat conftest.err >&5
36005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36006 (exit $ac_status); } &&
479c790c 36007 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6ebeb4c7
VZ
36008 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36009 (eval $ac_try) 2>&5
36010 ac_status=$?
36011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36012 (exit $ac_status); }; } &&
36013 { ac_try='test -s conftest$ac_exeext'
36014 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36015 (eval $ac_try) 2>&5
36016 ac_status=$?
36017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36018 (exit $ac_status); }; }; then
36019 eval "$as_ac_var=yes"
36020else
36021 echo "$as_me: failed program was:" >&5
36022sed 's/^/| /' conftest.$ac_ext >&5
36023
36024eval "$as_ac_var=no"
36025fi
36026rm -f conftest.err conftest.$ac_objext \
36027 conftest$ac_exeext conftest.$ac_ext
36028fi
36029echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
36030echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
36031if test `eval echo '${'$as_ac_var'}'` = yes; then
36032 cat >>confdefs.h <<_ACEOF
36033#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36034_ACEOF
36035
36036fi
36037done
36038
36039fi
a848cd7e
SC
36040
36041
c2e9ada4
VZ
36042for ac_func in round
36043do
36044as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36045echo "$as_me:$LINENO: checking for $ac_func" >&5
36046echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
36047if eval "test \"\${$as_ac_var+set}\" = set"; then
36048 echo $ECHO_N "(cached) $ECHO_C" >&6
36049else
36050 cat >conftest.$ac_ext <<_ACEOF
36051/* confdefs.h. */
36052_ACEOF
36053cat confdefs.h >>conftest.$ac_ext
36054cat >>conftest.$ac_ext <<_ACEOF
36055/* end confdefs.h. */
36056/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
36057 For example, HP-UX 11i <limits.h> declares gettimeofday. */
36058#define $ac_func innocuous_$ac_func
36059
36060/* System header to define __stub macros and hopefully few prototypes,
36061 which can conflict with char $ac_func (); below.
36062 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36063 <limits.h> exists even on freestanding compilers. */
36064
36065#ifdef __STDC__
36066# include <limits.h>
36067#else
36068# include <assert.h>
36069#endif
36070
36071#undef $ac_func
36072
36073/* Override any gcc2 internal prototype to avoid an error. */
36074#ifdef __cplusplus
36075extern "C"
36076{
36077#endif
36078/* We use char because int might match the return type of a gcc2
36079 builtin and then its argument prototype would still apply. */
36080char $ac_func ();
36081/* The GNU C library defines this for functions which it implements
36082 to always fail with ENOSYS. Some functions are actually named
36083 something starting with __ and the normal name is an alias. */
36084#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
36085choke me
36086#else
36087char (*f) () = $ac_func;
36088#endif
36089#ifdef __cplusplus
36090}
36091#endif
36092
36093int
36094main ()
36095{
36096return f != $ac_func;
36097 ;
36098 return 0;
36099}
36100_ACEOF
36101rm -f conftest.$ac_objext conftest$ac_exeext
36102if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36103 (eval $ac_link) 2>conftest.er1
36104 ac_status=$?
36105 grep -v '^ *+' conftest.er1 >conftest.err
36106 rm -f conftest.er1
36107 cat conftest.err >&5
36108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36109 (exit $ac_status); } &&
479c790c 36110 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
c2e9ada4
VZ
36111 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36112 (eval $ac_try) 2>&5
36113 ac_status=$?
36114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36115 (exit $ac_status); }; } &&
36116 { ac_try='test -s conftest$ac_exeext'
36117 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36118 (eval $ac_try) 2>&5
36119 ac_status=$?
36120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36121 (exit $ac_status); }; }; then
36122 eval "$as_ac_var=yes"
36123else
36124 echo "$as_me: failed program was:" >&5
36125sed 's/^/| /' conftest.$ac_ext >&5
36126
36127eval "$as_ac_var=no"
36128fi
36129rm -f conftest.err conftest.$ac_objext \
36130 conftest$ac_exeext conftest.$ac_ext
36131fi
36132echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
36133echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
36134if test `eval echo '${'$as_ac_var'}'` = yes; then
36135 cat >>confdefs.h <<_ACEOF
36136#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36137_ACEOF
36138
36139fi
36140done
36141
36142if test "$ac_cv_func_round" = yes; then
36143 echo "$as_me:$LINENO: checking whether round is declared" >&5
36144echo $ECHO_N "checking whether round is declared... $ECHO_C" >&6
36145if test "${ac_cv_have_decl_round+set}" = set; then
36146 echo $ECHO_N "(cached) $ECHO_C" >&6
36147else
36148 cat >conftest.$ac_ext <<_ACEOF
36149/* confdefs.h. */
36150_ACEOF
36151cat confdefs.h >>conftest.$ac_ext
36152cat >>conftest.$ac_ext <<_ACEOF
36153/* end confdefs.h. */
36154#include <math.h>
36155
36156int
36157main ()
36158{
36159#ifndef round
36160 char *p = (char *) round;
36161#endif
36162
36163 ;
36164 return 0;
36165}
36166_ACEOF
36167rm -f conftest.$ac_objext
36168if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36169 (eval $ac_compile) 2>conftest.er1
36170 ac_status=$?
36171 grep -v '^ *+' conftest.er1 >conftest.err
36172 rm -f conftest.er1
36173 cat conftest.err >&5
36174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36175 (exit $ac_status); } &&
479c790c 36176 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
c2e9ada4
VZ
36177 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36178 (eval $ac_try) 2>&5
36179 ac_status=$?
36180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36181 (exit $ac_status); }; } &&
36182 { ac_try='test -s conftest.$ac_objext'
36183 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36184 (eval $ac_try) 2>&5
36185 ac_status=$?
36186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36187 (exit $ac_status); }; }; then
36188 ac_cv_have_decl_round=yes
36189else
36190 echo "$as_me: failed program was:" >&5
36191sed 's/^/| /' conftest.$ac_ext >&5
36192
36193ac_cv_have_decl_round=no
36194fi
36195rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36196fi
36197echo "$as_me:$LINENO: result: $ac_cv_have_decl_round" >&5
36198echo "${ECHO_T}$ac_cv_have_decl_round" >&6
36199if test $ac_cv_have_decl_round = yes; then
36200
36201cat >>confdefs.h <<_ACEOF
36202#define HAVE_DECL_ROUND 1
36203_ACEOF
36204
36205
36206else
36207 cat >>confdefs.h <<_ACEOF
36208#define HAVE_DECL_ROUND 0
36209_ACEOF
36210
36211
36212fi
36213
36214
36215fi
36216
36217
a848cd7e
SC
36218if test "$TOOLKIT" != "MSW"; then
36219
36220
a848cd7e
SC
36221
36222
36223
36224# Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
36225if test "${with_libiconv_prefix+set}" = set; then
36226 withval="$with_libiconv_prefix"
36227
36228 for dir in `echo "$withval" | tr : ' '`; do
36229 if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi
36230 if test -d $dir/lib; then LDFLAGS="$LDFLAGS -L$dir/lib"; fi
36231 done
36232
36233fi;
36234
36235 echo "$as_me:$LINENO: checking for iconv" >&5
36236echo $ECHO_N "checking for iconv... $ECHO_C" >&6
36237if test "${am_cv_func_iconv+set}" = set; then
36238 echo $ECHO_N "(cached) $ECHO_C" >&6
36239else
36240
36241 am_cv_func_iconv="no, consider installing GNU libiconv"
36242 am_cv_lib_iconv=no
36243 cat >conftest.$ac_ext <<_ACEOF
36244/* confdefs.h. */
36245_ACEOF
36246cat confdefs.h >>conftest.$ac_ext
36247cat >>conftest.$ac_ext <<_ACEOF
36248/* end confdefs.h. */
36249#include <stdlib.h>
36250#include <iconv.h>
36251int
36252main ()
36253{
36254iconv_t cd = iconv_open("","");
36255 iconv(cd,NULL,NULL,NULL,NULL);
36256 iconv_close(cd);
36257 ;
36258 return 0;
36259}
36260_ACEOF
36261rm -f conftest.$ac_objext conftest$ac_exeext
36262if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 36263 (eval $ac_link) 2>conftest.er1
a848cd7e 36264 ac_status=$?
ac1cb8d3
VS
36265 grep -v '^ *+' conftest.er1 >conftest.err
36266 rm -f conftest.er1
36267 cat conftest.err >&5
a848cd7e
SC
36268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36269 (exit $ac_status); } &&
479c790c 36270 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
36271 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36272 (eval $ac_try) 2>&5
36273 ac_status=$?
36274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36275 (exit $ac_status); }; } &&
36276 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
36277 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36278 (eval $ac_try) 2>&5
36279 ac_status=$?
36280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36281 (exit $ac_status); }; }; then
36282 am_cv_func_iconv=yes
36283else
36284 echo "$as_me: failed program was:" >&5
36285sed 's/^/| /' conftest.$ac_ext >&5
36286
36287fi
ac1cb8d3
VS
36288rm -f conftest.err conftest.$ac_objext \
36289 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
36290 if test "$am_cv_func_iconv" != yes; then
36291 am_save_LIBS="$LIBS"
36292 LIBS="$LIBS -liconv"
36293 cat >conftest.$ac_ext <<_ACEOF
36294/* confdefs.h. */
36295_ACEOF
36296cat confdefs.h >>conftest.$ac_ext
36297cat >>conftest.$ac_ext <<_ACEOF
36298/* end confdefs.h. */
36299#include <stdlib.h>
36300#include <iconv.h>
36301int
36302main ()
36303{
36304iconv_t cd = iconv_open("","");
36305 iconv(cd,NULL,NULL,NULL,NULL);
36306 iconv_close(cd);
36307 ;
36308 return 0;
36309}
36310_ACEOF
36311rm -f conftest.$ac_objext conftest$ac_exeext
36312if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 36313 (eval $ac_link) 2>conftest.er1
a848cd7e 36314 ac_status=$?
ac1cb8d3
VS
36315 grep -v '^ *+' conftest.er1 >conftest.err
36316 rm -f conftest.er1
36317 cat conftest.err >&5
a848cd7e
SC
36318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36319 (exit $ac_status); } &&
479c790c 36320 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
36321 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36322 (eval $ac_try) 2>&5
36323 ac_status=$?
36324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36325 (exit $ac_status); }; } &&
36326 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
36327 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36328 (eval $ac_try) 2>&5
36329 ac_status=$?
36330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36331 (exit $ac_status); }; }; then
36332 am_cv_lib_iconv=yes
36333 am_cv_func_iconv=yes
36334else
36335 echo "$as_me: failed program was:" >&5
36336sed 's/^/| /' conftest.$ac_ext >&5
36337
36338fi
ac1cb8d3
VS
36339rm -f conftest.err conftest.$ac_objext \
36340 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
36341 LIBS="$am_save_LIBS"
36342 fi
36343
36344fi
36345echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
36346echo "${ECHO_T}$am_cv_func_iconv" >&6
36347 if test "$am_cv_func_iconv" = yes; then
36348
36349cat >>confdefs.h <<\_ACEOF
36350#define HAVE_ICONV 1
36351_ACEOF
36352
36353 echo "$as_me:$LINENO: checking if iconv needs const" >&5
36354echo $ECHO_N "checking if iconv needs const... $ECHO_C" >&6
36355if test "${wx_cv_func_iconv_const+set}" = set; then
36356 echo $ECHO_N "(cached) $ECHO_C" >&6
36357else
36358 cat >conftest.$ac_ext <<_ACEOF
36359/* confdefs.h. */
36360_ACEOF
36361cat confdefs.h >>conftest.$ac_ext
36362cat >>conftest.$ac_ext <<_ACEOF
36363/* end confdefs.h. */
36364
36365#include <stdlib.h>
36366#include <iconv.h>
36367extern
36368#ifdef __cplusplus
36369"C"
36370#endif
36371#if defined(__STDC__) || defined(__cplusplus)
36372size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
36373#else
36374size_t iconv();
36375#endif
36376
36377int
36378main ()
36379{
36380
36381 ;
36382 return 0;
36383}
36384_ACEOF
36385rm -f conftest.$ac_objext
36386if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 36387 (eval $ac_compile) 2>conftest.er1
a848cd7e 36388 ac_status=$?
ac1cb8d3
VS
36389 grep -v '^ *+' conftest.er1 >conftest.err
36390 rm -f conftest.er1
36391 cat conftest.err >&5
a848cd7e
SC
36392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36393 (exit $ac_status); } &&
479c790c 36394 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
36395 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36396 (eval $ac_try) 2>&5
36397 ac_status=$?
36398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36399 (exit $ac_status); }; } &&
36400 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
36401 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36402 (eval $ac_try) 2>&5
36403 ac_status=$?
36404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36405 (exit $ac_status); }; }; then
36406 wx_cv_func_iconv_const="no"
36407else
36408 echo "$as_me: failed program was:" >&5
36409sed 's/^/| /' conftest.$ac_ext >&5
36410
36411wx_cv_func_iconv_const="yes"
36412
36413fi
ac1cb8d3 36414rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
36415
36416fi
36417echo "$as_me:$LINENO: result: $wx_cv_func_iconv_const" >&5
36418echo "${ECHO_T}$wx_cv_func_iconv_const" >&6
36419
36420 iconv_const=
36421 if test "x$wx_cv_func_iconv_const" = "xyes"; then
36422 iconv_const="const"
36423 fi
36424
36425
36426cat >>confdefs.h <<_ACEOF
36427#define ICONV_CONST $iconv_const
36428_ACEOF
36429
36430 fi
36431 LIBICONV=
36432 if test "$am_cv_lib_iconv" = yes; then
36433 LIBICONV="-liconv"
36434 fi
36435
36436
36437LIBS="$LIBICONV $LIBS"
a848cd7e
SC
36438
36439if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes" -a "$wxUSE_UNIX" = "yes"; then
36440
36441for ac_func in sigaction
36442do
36443as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36444echo "$as_me:$LINENO: checking for $ac_func" >&5
36445echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
36446if eval "test \"\${$as_ac_var+set}\" = set"; then
36447 echo $ECHO_N "(cached) $ECHO_C" >&6
36448else
36449 cat >conftest.$ac_ext <<_ACEOF
36450/* confdefs.h. */
36451_ACEOF
36452cat confdefs.h >>conftest.$ac_ext
36453cat >>conftest.$ac_ext <<_ACEOF
36454/* end confdefs.h. */
ac1cb8d3
VS
36455/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
36456 For example, HP-UX 11i <limits.h> declares gettimeofday. */
36457#define $ac_func innocuous_$ac_func
36458
a848cd7e
SC
36459/* System header to define __stub macros and hopefully few prototypes,
36460 which can conflict with char $ac_func (); below.
36461 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36462 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 36463
a848cd7e
SC
36464#ifdef __STDC__
36465# include <limits.h>
36466#else
36467# include <assert.h>
36468#endif
ac1cb8d3
VS
36469
36470#undef $ac_func
36471
a848cd7e
SC
36472/* Override any gcc2 internal prototype to avoid an error. */
36473#ifdef __cplusplus
36474extern "C"
36475{
36476#endif
36477/* We use char because int might match the return type of a gcc2
36478 builtin and then its argument prototype would still apply. */
36479char $ac_func ();
36480/* The GNU C library defines this for functions which it implements
36481 to always fail with ENOSYS. Some functions are actually named
36482 something starting with __ and the normal name is an alias. */
36483#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
36484choke me
36485#else
36486char (*f) () = $ac_func;
36487#endif
36488#ifdef __cplusplus
36489}
36490#endif
36491
36492int
36493main ()
36494{
36495return f != $ac_func;
36496 ;
36497 return 0;
36498}
36499_ACEOF
36500rm -f conftest.$ac_objext conftest$ac_exeext
36501if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 36502 (eval $ac_link) 2>conftest.er1
a848cd7e 36503 ac_status=$?
ac1cb8d3
VS
36504 grep -v '^ *+' conftest.er1 >conftest.err
36505 rm -f conftest.er1
36506 cat conftest.err >&5
a848cd7e
SC
36507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36508 (exit $ac_status); } &&
479c790c 36509 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
36510 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36511 (eval $ac_try) 2>&5
36512 ac_status=$?
36513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36514 (exit $ac_status); }; } &&
36515 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
36516 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36517 (eval $ac_try) 2>&5
36518 ac_status=$?
36519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36520 (exit $ac_status); }; }; then
36521 eval "$as_ac_var=yes"
36522else
36523 echo "$as_me: failed program was:" >&5
36524sed 's/^/| /' conftest.$ac_ext >&5
36525
36526eval "$as_ac_var=no"
36527fi
ac1cb8d3
VS
36528rm -f conftest.err conftest.$ac_objext \
36529 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
36530fi
36531echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
36532echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
36533if test `eval echo '${'$as_ac_var'}'` = yes; then
36534 cat >>confdefs.h <<_ACEOF
36535#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36536_ACEOF
36537
36538fi
36539done
36540
36541
36542 if test "$ac_cv_func_sigaction" = "no"; then
36543 { echo "$as_me:$LINENO: WARNING: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" >&5
36544echo "$as_me: WARNING: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" >&2;}
36545 wxUSE_ON_FATAL_EXCEPTION=no
36546 fi
36547
36548 if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
a848cd7e
SC
36549 echo "$as_me:$LINENO: checking for sa_handler type" >&5
36550echo $ECHO_N "checking for sa_handler type... $ECHO_C" >&6
36551if test "${wx_cv_type_sa_handler+set}" = set; then
36552 echo $ECHO_N "(cached) $ECHO_C" >&6
36553else
36554
36555 cat >conftest.$ac_ext <<_ACEOF
36556/* confdefs.h. */
36557_ACEOF
36558cat confdefs.h >>conftest.$ac_ext
36559cat >>conftest.$ac_ext <<_ACEOF
36560/* end confdefs.h. */
36561#include <signal.h>
36562int
36563main ()
36564{
36565
36566 extern void testSigHandler(int);
36567
36568 struct sigaction sa;
36569 sa.sa_handler = testSigHandler;
36570
36571 ;
36572 return 0;
36573}
36574_ACEOF
36575rm -f conftest.$ac_objext
36576if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 36577 (eval $ac_compile) 2>conftest.er1
a848cd7e 36578 ac_status=$?
ac1cb8d3
VS
36579 grep -v '^ *+' conftest.er1 >conftest.err
36580 rm -f conftest.er1
36581 cat conftest.err >&5
a848cd7e
SC
36582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36583 (exit $ac_status); } &&
479c790c 36584 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
36585 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36586 (eval $ac_try) 2>&5
36587 ac_status=$?
36588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36589 (exit $ac_status); }; } &&
36590 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
36591 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36592 (eval $ac_try) 2>&5
36593 ac_status=$?
36594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36595 (exit $ac_status); }; }; then
36596
36597 wx_cv_type_sa_handler=int
36598
36599else
36600 echo "$as_me: failed program was:" >&5
36601sed 's/^/| /' conftest.$ac_ext >&5
36602
36603
36604 wx_cv_type_sa_handler=void
36605
36606fi
ac1cb8d3 36607rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
36608
36609fi
36610echo "$as_me:$LINENO: result: $wx_cv_type_sa_handler" >&5
36611echo "${ECHO_T}$wx_cv_type_sa_handler" >&6
36612
a848cd7e
SC
36613 cat >>confdefs.h <<_ACEOF
36614#define wxTYPE_SA_HANDLER $wx_cv_type_sa_handler
36615_ACEOF
36616
36617 fi
36618fi
36619
eaff0f0d 36620if test "$wxUSE_STACKWALKER" = "yes" -a "$wxUSE_UNIX" = "yes"; then
eaff0f0d
VZ
36621 echo "$as_me:$LINENO: checking for backtrace() in <execinfo.h>" >&5
36622echo $ECHO_N "checking for backtrace() in <execinfo.h>... $ECHO_C" >&6
36623if test "${wx_cv_func_backtrace+set}" = set; then
36624 echo $ECHO_N "(cached) $ECHO_C" >&6
36625else
36626
36627 cat >conftest.$ac_ext <<_ACEOF
36628/* confdefs.h. */
36629_ACEOF
36630cat confdefs.h >>conftest.$ac_ext
36631cat >>conftest.$ac_ext <<_ACEOF
36632/* end confdefs.h. */
36633#include <execinfo.h>
36634int
36635main ()
36636{
36637
36638 void *trace[1];
36639 char **messages;
36640
36641 backtrace(trace, 1);
36642 messages = backtrace_symbols(trace, 1);
36643
36644 ;
36645 return 0;
36646}
36647_ACEOF
36648rm -f conftest.$ac_objext
36649if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36650 (eval $ac_compile) 2>conftest.er1
36651 ac_status=$?
36652 grep -v '^ *+' conftest.er1 >conftest.err
36653 rm -f conftest.er1
36654 cat conftest.err >&5
36655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36656 (exit $ac_status); } &&
479c790c 36657 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
eaff0f0d
VZ
36658 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36659 (eval $ac_try) 2>&5
36660 ac_status=$?
36661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36662 (exit $ac_status); }; } &&
36663 { ac_try='test -s conftest.$ac_objext'
36664 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36665 (eval $ac_try) 2>&5
36666 ac_status=$?
36667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36668 (exit $ac_status); }; }; then
36669 wx_cv_func_backtrace=yes
36670else
36671 echo "$as_me: failed program was:" >&5
36672sed 's/^/| /' conftest.$ac_ext >&5
36673
36674wx_cv_func_backtrace=no
36675
36676fi
36677rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36678
36679
36680fi
36681echo "$as_me:$LINENO: result: $wx_cv_func_backtrace" >&5
36682echo "${ECHO_T}$wx_cv_func_backtrace" >&6
36683
36684
36685 if test "$wx_cv_func_backtrace" = "no"; then
36686 { echo "$as_me:$LINENO: WARNING: backtrace() is not available, wxStackWalker will not be available" >&5
36687echo "$as_me: WARNING: backtrace() is not available, wxStackWalker will not be available" >&2;}
36688 wxUSE_STACKWALKER=no
36689 else
36690 echo "$as_me:$LINENO: checking for __cxa_demangle() in <cxxabi.h>" >&5
36691echo $ECHO_N "checking for __cxa_demangle() in <cxxabi.h>... $ECHO_C" >&6
36692if test "${wx_cv_func_cxa_demangle+set}" = set; then
36693 echo $ECHO_N "(cached) $ECHO_C" >&6
36694else
36695
36696 cat >conftest.$ac_ext <<_ACEOF
36697/* confdefs.h. */
36698_ACEOF
36699cat confdefs.h >>conftest.$ac_ext
36700cat >>conftest.$ac_ext <<_ACEOF
36701/* end confdefs.h. */
36702#include <cxxabi.h>
36703int
36704main ()
36705{
36706
36707 int rc;
36708 __cxxabiv1::__cxa_demangle("foo", 0, 0, &rc);
36709
36710 ;
36711 return 0;
36712}
36713_ACEOF
dfe0c803
JS
36714rm -f conftest.$ac_objext conftest$ac_exeext
36715if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36716 (eval $ac_link) 2>conftest.er1
eaff0f0d
VZ
36717 ac_status=$?
36718 grep -v '^ *+' conftest.er1 >conftest.err
36719 rm -f conftest.er1
36720 cat conftest.err >&5
36721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36722 (exit $ac_status); } &&
479c790c 36723 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
eaff0f0d
VZ
36724 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36725 (eval $ac_try) 2>&5
36726 ac_status=$?
36727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36728 (exit $ac_status); }; } &&
dfe0c803 36729 { ac_try='test -s conftest$ac_exeext'
eaff0f0d
VZ
36730 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36731 (eval $ac_try) 2>&5
36732 ac_status=$?
36733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36734 (exit $ac_status); }; }; then
36735 wx_cv_func_cxa_demangle=yes
36736else
36737 echo "$as_me: failed program was:" >&5
36738sed 's/^/| /' conftest.$ac_ext >&5
36739
36740wx_cv_func_cxa_demangle=no
36741
36742fi
dfe0c803
JS
36743rm -f conftest.err conftest.$ac_objext \
36744 conftest$ac_exeext conftest.$ac_ext
eaff0f0d
VZ
36745
36746
36747fi
36748echo "$as_me:$LINENO: result: $wx_cv_func_cxa_demangle" >&5
36749echo "${ECHO_T}$wx_cv_func_cxa_demangle" >&6
36750
36751 if test "$wx_cv_func_cxa_demangle" = "yes"; then
36752 cat >>confdefs.h <<\_ACEOF
36753#define HAVE_CXA_DEMANGLE 1
36754_ACEOF
36755
36756 fi
36757 fi
eaff0f0d
VZ
36758fi
36759
898beab1
DE
36760if test "$wxUSE_STACKWALKER" = "yes" -a "$USE_WIN32" != "1" -a "$USE_UNIX" != "1"; then
36761 { echo "$as_me:$LINENO: WARNING: wxStackWalker is only available on Win32 and UNIX... disabled" >&5
36762echo "$as_me: WARNING: wxStackWalker is only available on Win32 and UNIX... disabled" >&2;}
36763 wxUSE_STACKWALKER=no
36764fi
36765
36766
a848cd7e
SC
36767
36768
36769for ac_func in mkstemp mktemp
36770do
36771as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36772echo "$as_me:$LINENO: checking for $ac_func" >&5
36773echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
36774if eval "test \"\${$as_ac_var+set}\" = set"; then
36775 echo $ECHO_N "(cached) $ECHO_C" >&6
36776else
36777 cat >conftest.$ac_ext <<_ACEOF
36778/* confdefs.h. */
36779_ACEOF
36780cat confdefs.h >>conftest.$ac_ext
36781cat >>conftest.$ac_ext <<_ACEOF
36782/* end confdefs.h. */
ac1cb8d3
VS
36783/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
36784 For example, HP-UX 11i <limits.h> declares gettimeofday. */
36785#define $ac_func innocuous_$ac_func
36786
a848cd7e
SC
36787/* System header to define __stub macros and hopefully few prototypes,
36788 which can conflict with char $ac_func (); below.
36789 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36790 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 36791
a848cd7e
SC
36792#ifdef __STDC__
36793# include <limits.h>
36794#else
36795# include <assert.h>
36796#endif
ac1cb8d3
VS
36797
36798#undef $ac_func
36799
a848cd7e
SC
36800/* Override any gcc2 internal prototype to avoid an error. */
36801#ifdef __cplusplus
36802extern "C"
36803{
36804#endif
36805/* We use char because int might match the return type of a gcc2
36806 builtin and then its argument prototype would still apply. */
36807char $ac_func ();
36808/* The GNU C library defines this for functions which it implements
36809 to always fail with ENOSYS. Some functions are actually named
36810 something starting with __ and the normal name is an alias. */
36811#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
36812choke me
36813#else
36814char (*f) () = $ac_func;
36815#endif
36816#ifdef __cplusplus
36817}
36818#endif
36819
36820int
36821main ()
36822{
36823return f != $ac_func;
36824 ;
36825 return 0;
36826}
36827_ACEOF
36828rm -f conftest.$ac_objext conftest$ac_exeext
36829if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 36830 (eval $ac_link) 2>conftest.er1
a848cd7e 36831 ac_status=$?
ac1cb8d3
VS
36832 grep -v '^ *+' conftest.er1 >conftest.err
36833 rm -f conftest.er1
36834 cat conftest.err >&5
a848cd7e
SC
36835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36836 (exit $ac_status); } &&
479c790c 36837 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
36838 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36839 (eval $ac_try) 2>&5
36840 ac_status=$?
36841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36842 (exit $ac_status); }; } &&
36843 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
36844 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36845 (eval $ac_try) 2>&5
36846 ac_status=$?
36847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36848 (exit $ac_status); }; }; then
36849 eval "$as_ac_var=yes"
36850else
36851 echo "$as_me: failed program was:" >&5
36852sed 's/^/| /' conftest.$ac_ext >&5
36853
36854eval "$as_ac_var=no"
36855fi
ac1cb8d3
VS
36856rm -f conftest.err conftest.$ac_objext \
36857 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
36858fi
36859echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
36860echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
36861if test `eval echo '${'$as_ac_var'}'` = yes; then
36862 cat >>confdefs.h <<_ACEOF
36863#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36864_ACEOF
36865 break
36866fi
36867done
36868
36869
36870echo "$as_me:$LINENO: checking for statfs" >&5
36871echo $ECHO_N "checking for statfs... $ECHO_C" >&6
36872if test "${wx_cv_func_statfs+set}" = set; then
36873 echo $ECHO_N "(cached) $ECHO_C" >&6
36874else
36875 cat >conftest.$ac_ext <<_ACEOF
36876/* confdefs.h. */
36877_ACEOF
36878cat confdefs.h >>conftest.$ac_ext
36879cat >>conftest.$ac_ext <<_ACEOF
36880/* end confdefs.h. */
36881
36882 #if defined(__BSD__)
84ae7ca4
VZ
36883 #include <sys/param.h>
36884 #include <sys/mount.h>
a848cd7e 36885 #else
84ae7ca4 36886 #include <sys/vfs.h>
a848cd7e
SC
36887 #endif
36888
36889int
36890main ()
36891{
36892
36893 long l;
36894 struct statfs fs;
36895 statfs("/", &fs);
36896 l = fs.f_bsize;
36897 l += fs.f_blocks;
36898 l += fs.f_bavail;
36899
36900 ;
36901 return 0;
36902}
36903_ACEOF
36904rm -f conftest.$ac_objext
36905if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 36906 (eval $ac_compile) 2>conftest.er1
a848cd7e 36907 ac_status=$?
ac1cb8d3
VS
36908 grep -v '^ *+' conftest.er1 >conftest.err
36909 rm -f conftest.er1
36910 cat conftest.err >&5
a848cd7e
SC
36911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36912 (exit $ac_status); } &&
479c790c 36913 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
36914 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36915 (eval $ac_try) 2>&5
36916 ac_status=$?
36917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36918 (exit $ac_status); }; } &&
36919 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
36920 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36921 (eval $ac_try) 2>&5
36922 ac_status=$?
36923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36924 (exit $ac_status); }; }; then
84ae7ca4 36925 wx_cv_func_statfs=yes
a848cd7e
SC
36926else
36927 echo "$as_me: failed program was:" >&5
36928sed 's/^/| /' conftest.$ac_ext >&5
36929
84ae7ca4 36930wx_cv_func_statfs=no
a848cd7e
SC
36931
36932fi
ac1cb8d3 36933rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
36934
36935fi
36936echo "$as_me:$LINENO: result: $wx_cv_func_statfs" >&5
36937echo "${ECHO_T}$wx_cv_func_statfs" >&6
36938
36939if test "$wx_cv_func_statfs" = "yes"; then
5d7b7554 36940 echo "$as_me:$LINENO: checking for statfs declaration" >&5
84ae7ca4
VZ
36941echo $ECHO_N "checking for statfs declaration... $ECHO_C" >&6
36942if test "${wx_cv_func_statfs_decl+set}" = set; then
36943 echo $ECHO_N "(cached) $ECHO_C" >&6
36944else
0683aca6
VZ
36945 cat >conftest.$ac_ext <<_ACEOF
36946/* confdefs.h. */
36947_ACEOF
36948cat confdefs.h >>conftest.$ac_ext
36949cat >>conftest.$ac_ext <<_ACEOF
36950/* end confdefs.h. */
84ae7ca4 36951
0683aca6
VZ
36952 #if defined(__BSD__)
36953 #include <sys/param.h>
36954 #include <sys/mount.h>
36955 #else
36956 #include <sys/vfs.h>
36957 #endif
36958
36959int
36960main ()
36961{
36962
36963 struct statfs fs;
36964 statfs("", &fs);
36965
36966 ;
36967 return 0;
36968}
36969_ACEOF
36970rm -f conftest.$ac_objext
36971if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36972 (eval $ac_compile) 2>conftest.er1
36973 ac_status=$?
36974 grep -v '^ *+' conftest.er1 >conftest.err
36975 rm -f conftest.er1
36976 cat conftest.err >&5
36977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36978 (exit $ac_status); } &&
479c790c 36979 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
0683aca6
VZ
36980 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36981 (eval $ac_try) 2>&5
36982 ac_status=$?
36983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36984 (exit $ac_status); }; } &&
36985 { ac_try='test -s conftest.$ac_objext'
36986 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36987 (eval $ac_try) 2>&5
36988 ac_status=$?
36989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36990 (exit $ac_status); }; }; then
36991 wx_cv_func_statfs_decl=yes
36992else
36993 echo "$as_me: failed program was:" >&5
36994sed 's/^/| /' conftest.$ac_ext >&5
36995
36996wx_cv_func_statfs_decl=no
36997
36998fi
36999rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
84ae7ca4
VZ
37000
37001fi
37002echo "$as_me:$LINENO: result: $wx_cv_func_statfs_decl" >&5
37003echo "${ECHO_T}$wx_cv_func_statfs_decl" >&6
84ae7ca4
VZ
37004
37005 if test "$wx_cv_func_statfs_decl" = "yes"; then
37006 cat >>confdefs.h <<\_ACEOF
37007#define HAVE_STATFS_DECL 1
37008_ACEOF
37009
37010 fi
37011
a848cd7e
SC
37012 wx_cv_type_statvfs_t="struct statfs"
37013 cat >>confdefs.h <<\_ACEOF
37014#define HAVE_STATFS 1
37015_ACEOF
37016
37017else
37018 echo "$as_me:$LINENO: checking for statvfs" >&5
37019echo $ECHO_N "checking for statvfs... $ECHO_C" >&6
37020if test "${wx_cv_func_statvfs+set}" = set; then
37021 echo $ECHO_N "(cached) $ECHO_C" >&6
37022else
37023 cat >conftest.$ac_ext <<_ACEOF
37024/* confdefs.h. */
37025_ACEOF
37026cat confdefs.h >>conftest.$ac_ext
37027cat >>conftest.$ac_ext <<_ACEOF
37028/* end confdefs.h. */
37029
37030 #include <stddef.h>
37031 #include <sys/statvfs.h>
37032
37033int
37034main ()
37035{
37036
37037 statvfs("/", NULL);
37038
37039 ;
37040 return 0;
37041}
37042_ACEOF
37043rm -f conftest.$ac_objext
37044if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 37045 (eval $ac_compile) 2>conftest.er1
a848cd7e 37046 ac_status=$?
ac1cb8d3
VS
37047 grep -v '^ *+' conftest.er1 >conftest.err
37048 rm -f conftest.er1
37049 cat conftest.err >&5
a848cd7e
SC
37050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37051 (exit $ac_status); } &&
479c790c 37052 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
37053 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37054 (eval $ac_try) 2>&5
37055 ac_status=$?
37056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37057 (exit $ac_status); }; } &&
37058 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
37059 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37060 (eval $ac_try) 2>&5
37061 ac_status=$?
37062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37063 (exit $ac_status); }; }; then
37064 wx_cv_func_statvfs=yes
37065else
37066 echo "$as_me: failed program was:" >&5
37067sed 's/^/| /' conftest.$ac_ext >&5
37068
37069wx_cv_func_statvfs=no
37070
37071fi
ac1cb8d3 37072rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
37073
37074fi
37075echo "$as_me:$LINENO: result: $wx_cv_func_statvfs" >&5
37076echo "${ECHO_T}$wx_cv_func_statvfs" >&6
37077
37078 if test "$wx_cv_func_statvfs" = "yes"; then
5d7b7554 37079 echo "$as_me:$LINENO: checking for statvfs argument type" >&5
a848cd7e
SC
37080echo $ECHO_N "checking for statvfs argument type... $ECHO_C" >&6
37081if test "${wx_cv_type_statvfs_t+set}" = set; then
37082 echo $ECHO_N "(cached) $ECHO_C" >&6
37083else
37084 cat >conftest.$ac_ext <<_ACEOF
37085/* confdefs.h. */
37086_ACEOF
37087cat confdefs.h >>conftest.$ac_ext
37088cat >>conftest.$ac_ext <<_ACEOF
37089/* end confdefs.h. */
37090
37091 #include <sys/statvfs.h>
37092
37093int
37094main ()
37095{
37096
37097 long l;
37098 statvfs_t fs;
37099 statvfs("/", &fs);
37100 l = fs.f_bsize;
37101 l += fs.f_blocks;
37102 l += fs.f_bavail;
37103
37104 ;
37105 return 0;
37106}
37107_ACEOF
37108rm -f conftest.$ac_objext
37109if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 37110 (eval $ac_compile) 2>conftest.er1
a848cd7e 37111 ac_status=$?
ac1cb8d3
VS
37112 grep -v '^ *+' conftest.er1 >conftest.err
37113 rm -f conftest.er1
37114 cat conftest.err >&5
a848cd7e
SC
37115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37116 (exit $ac_status); } &&
479c790c 37117 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
37118 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37119 (eval $ac_try) 2>&5
37120 ac_status=$?
37121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37122 (exit $ac_status); }; } &&
37123 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
37124 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37125 (eval $ac_try) 2>&5
37126 ac_status=$?
37127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37128 (exit $ac_status); }; }; then
37129 wx_cv_type_statvfs_t=statvfs_t
37130else
37131 echo "$as_me: failed program was:" >&5
37132sed 's/^/| /' conftest.$ac_ext >&5
37133
37134
37135 cat >conftest.$ac_ext <<_ACEOF
37136/* confdefs.h. */
37137_ACEOF
37138cat confdefs.h >>conftest.$ac_ext
37139cat >>conftest.$ac_ext <<_ACEOF
37140/* end confdefs.h. */
37141
37142 #include <sys/statvfs.h>
37143
37144int
37145main ()
37146{
37147
37148 long l;
37149 struct statvfs fs;
37150 statvfs("/", &fs);
37151 l = fs.f_bsize;
37152 l += fs.f_blocks;
37153 l += fs.f_bavail;
37154
37155 ;
37156 return 0;
37157}
37158_ACEOF
37159rm -f conftest.$ac_objext
37160if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 37161 (eval $ac_compile) 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); } &&
479c790c 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_objext'
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 wx_cv_type_statvfs_t="struct statvfs"
37181else
37182 echo "$as_me: failed program was:" >&5
37183sed 's/^/| /' conftest.$ac_ext >&5
37184
37185wx_cv_type_statvfs_t="unknown"
37186
37187fi
ac1cb8d3 37188rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
37189
37190
37191fi
ac1cb8d3 37192rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
37193
37194fi
37195echo "$as_me:$LINENO: result: $wx_cv_type_statvfs_t" >&5
37196echo "${ECHO_T}$wx_cv_type_statvfs_t" >&6
37197
a848cd7e
SC
37198 if test "$wx_cv_type_statvfs_t" != "unknown"; then
37199 cat >>confdefs.h <<\_ACEOF
37200#define HAVE_STATVFS 1
37201_ACEOF
37202
37203 fi
37204 else
37205 wx_cv_type_statvfs_t="unknown"
37206 fi
37207fi
37208
37209if test "$wx_cv_type_statvfs_t" != "unknown"; then
37210 cat >>confdefs.h <<_ACEOF
37211#define WX_STATFS_T $wx_cv_type_statvfs_t
37212_ACEOF
37213
37214else
37215 { echo "$as_me:$LINENO: WARNING: wxGetDiskSpace() function won't work without statfs()" >&5
37216echo "$as_me: WARNING: wxGetDiskSpace() function won't work without statfs()" >&2;}
37217fi
37218
37219if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
37220
37221
37222for ac_func in fcntl flock
37223do
37224as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37225echo "$as_me:$LINENO: checking for $ac_func" >&5
37226echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
37227if eval "test \"\${$as_ac_var+set}\" = set"; then
37228 echo $ECHO_N "(cached) $ECHO_C" >&6
37229else
37230 cat >conftest.$ac_ext <<_ACEOF
37231/* confdefs.h. */
37232_ACEOF
37233cat confdefs.h >>conftest.$ac_ext
37234cat >>conftest.$ac_ext <<_ACEOF
37235/* end confdefs.h. */
ac1cb8d3
VS
37236/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37237 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37238#define $ac_func innocuous_$ac_func
37239
a848cd7e
SC
37240/* System header to define __stub macros and hopefully few prototypes,
37241 which can conflict with char $ac_func (); below.
37242 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37243 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 37244
a848cd7e
SC
37245#ifdef __STDC__
37246# include <limits.h>
37247#else
37248# include <assert.h>
37249#endif
ac1cb8d3
VS
37250
37251#undef $ac_func
37252
a848cd7e
SC
37253/* Override any gcc2 internal prototype to avoid an error. */
37254#ifdef __cplusplus
37255extern "C"
37256{
37257#endif
37258/* We use char because int might match the return type of a gcc2
37259 builtin and then its argument prototype would still apply. */
37260char $ac_func ();
37261/* The GNU C library defines this for functions which it implements
37262 to always fail with ENOSYS. Some functions are actually named
37263 something starting with __ and the normal name is an alias. */
37264#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
37265choke me
37266#else
37267char (*f) () = $ac_func;
37268#endif
37269#ifdef __cplusplus
37270}
37271#endif
37272
37273int
37274main ()
37275{
37276return f != $ac_func;
37277 ;
37278 return 0;
37279}
37280_ACEOF
37281rm -f conftest.$ac_objext conftest$ac_exeext
37282if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 37283 (eval $ac_link) 2>conftest.er1
a848cd7e 37284 ac_status=$?
ac1cb8d3
VS
37285 grep -v '^ *+' conftest.er1 >conftest.err
37286 rm -f conftest.er1
37287 cat conftest.err >&5
a848cd7e
SC
37288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37289 (exit $ac_status); } &&
479c790c 37290 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
37291 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37292 (eval $ac_try) 2>&5
37293 ac_status=$?
37294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37295 (exit $ac_status); }; } &&
37296 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
37297 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37298 (eval $ac_try) 2>&5
37299 ac_status=$?
37300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37301 (exit $ac_status); }; }; then
37302 eval "$as_ac_var=yes"
37303else
37304 echo "$as_me: failed program was:" >&5
37305sed 's/^/| /' conftest.$ac_ext >&5
37306
37307eval "$as_ac_var=no"
37308fi
ac1cb8d3
VS
37309rm -f conftest.err conftest.$ac_objext \
37310 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
37311fi
37312echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
37313echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
37314if test `eval echo '${'$as_ac_var'}'` = yes; then
37315 cat >>confdefs.h <<_ACEOF
37316#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37317_ACEOF
37318 break
37319fi
37320done
37321
37322
37323 if test "$ac_cv_func_fcntl" != "yes" -a "$ac_cv_func_flock" != "yes"; then
37324 { echo "$as_me:$LINENO: WARNING: wxSingleInstanceChecker not available" >&5
37325echo "$as_me: WARNING: wxSingleInstanceChecker not available" >&2;}
37326 wxUSE_SNGLINST_CHECKER=no
37327 fi
37328fi
37329
37330
37331for ac_func in timegm
37332do
37333as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37334echo "$as_me:$LINENO: checking for $ac_func" >&5
37335echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
37336if eval "test \"\${$as_ac_var+set}\" = set"; then
37337 echo $ECHO_N "(cached) $ECHO_C" >&6
37338else
37339 cat >conftest.$ac_ext <<_ACEOF
37340/* confdefs.h. */
37341_ACEOF
37342cat confdefs.h >>conftest.$ac_ext
37343cat >>conftest.$ac_ext <<_ACEOF
37344/* end confdefs.h. */
ac1cb8d3
VS
37345/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37346 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37347#define $ac_func innocuous_$ac_func
37348
a848cd7e
SC
37349/* System header to define __stub macros and hopefully few prototypes,
37350 which can conflict with char $ac_func (); below.
37351 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37352 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 37353
a848cd7e
SC
37354#ifdef __STDC__
37355# include <limits.h>
37356#else
37357# include <assert.h>
37358#endif
ac1cb8d3
VS
37359
37360#undef $ac_func
37361
a848cd7e
SC
37362/* Override any gcc2 internal prototype to avoid an error. */
37363#ifdef __cplusplus
37364extern "C"
37365{
37366#endif
37367/* We use char because int might match the return type of a gcc2
37368 builtin and then its argument prototype would still apply. */
37369char $ac_func ();
37370/* The GNU C library defines this for functions which it implements
37371 to always fail with ENOSYS. Some functions are actually named
37372 something starting with __ and the normal name is an alias. */
37373#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
37374choke me
37375#else
37376char (*f) () = $ac_func;
37377#endif
37378#ifdef __cplusplus
37379}
37380#endif
37381
37382int
37383main ()
37384{
37385return f != $ac_func;
37386 ;
37387 return 0;
37388}
37389_ACEOF
37390rm -f conftest.$ac_objext conftest$ac_exeext
37391if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 37392 (eval $ac_link) 2>conftest.er1
a848cd7e 37393 ac_status=$?
ac1cb8d3
VS
37394 grep -v '^ *+' conftest.er1 >conftest.err
37395 rm -f conftest.er1
37396 cat conftest.err >&5
a848cd7e
SC
37397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37398 (exit $ac_status); } &&
479c790c 37399 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
37400 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37401 (eval $ac_try) 2>&5
37402 ac_status=$?
37403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37404 (exit $ac_status); }; } &&
37405 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
37406 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37407 (eval $ac_try) 2>&5
37408 ac_status=$?
37409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37410 (exit $ac_status); }; }; then
37411 eval "$as_ac_var=yes"
37412else
37413 echo "$as_me: failed program was:" >&5
37414sed 's/^/| /' conftest.$ac_ext >&5
37415
37416eval "$as_ac_var=no"
37417fi
ac1cb8d3
VS
37418rm -f conftest.err conftest.$ac_objext \
37419 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
37420fi
37421echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
37422echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
37423if test `eval echo '${'$as_ac_var'}'` = yes; then
37424 cat >>confdefs.h <<_ACEOF
37425#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37426_ACEOF
37427
37428fi
37429done
37430
37431
37432
37433
37434for ac_func in putenv setenv
37435do
37436as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37437echo "$as_me:$LINENO: checking for $ac_func" >&5
37438echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
37439if eval "test \"\${$as_ac_var+set}\" = set"; then
37440 echo $ECHO_N "(cached) $ECHO_C" >&6
37441else
37442 cat >conftest.$ac_ext <<_ACEOF
37443/* confdefs.h. */
37444_ACEOF
37445cat confdefs.h >>conftest.$ac_ext
37446cat >>conftest.$ac_ext <<_ACEOF
37447/* end confdefs.h. */
ac1cb8d3
VS
37448/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37449 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37450#define $ac_func innocuous_$ac_func
37451
a848cd7e
SC
37452/* System header to define __stub macros and hopefully few prototypes,
37453 which can conflict with char $ac_func (); below.
37454 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37455 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 37456
a848cd7e
SC
37457#ifdef __STDC__
37458# include <limits.h>
37459#else
37460# include <assert.h>
37461#endif
ac1cb8d3
VS
37462
37463#undef $ac_func
37464
a848cd7e
SC
37465/* Override any gcc2 internal prototype to avoid an error. */
37466#ifdef __cplusplus
37467extern "C"
37468{
37469#endif
37470/* We use char because int might match the return type of a gcc2
37471 builtin and then its argument prototype would still apply. */
37472char $ac_func ();
37473/* The GNU C library defines this for functions which it implements
37474 to always fail with ENOSYS. Some functions are actually named
37475 something starting with __ and the normal name is an alias. */
37476#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
37477choke me
37478#else
37479char (*f) () = $ac_func;
37480#endif
37481#ifdef __cplusplus
37482}
37483#endif
37484
37485int
37486main ()
37487{
37488return f != $ac_func;
37489 ;
37490 return 0;
37491}
37492_ACEOF
37493rm -f conftest.$ac_objext conftest$ac_exeext
37494if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 37495 (eval $ac_link) 2>conftest.er1
a848cd7e 37496 ac_status=$?
ac1cb8d3
VS
37497 grep -v '^ *+' conftest.er1 >conftest.err
37498 rm -f conftest.er1
37499 cat conftest.err >&5
a848cd7e
SC
37500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37501 (exit $ac_status); } &&
479c790c 37502 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
37503 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37504 (eval $ac_try) 2>&5
37505 ac_status=$?
37506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37507 (exit $ac_status); }; } &&
37508 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
37509 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37510 (eval $ac_try) 2>&5
37511 ac_status=$?
37512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37513 (exit $ac_status); }; }; then
37514 eval "$as_ac_var=yes"
37515else
37516 echo "$as_me: failed program was:" >&5
37517sed 's/^/| /' conftest.$ac_ext >&5
37518
37519eval "$as_ac_var=no"
37520fi
ac1cb8d3
VS
37521rm -f conftest.err conftest.$ac_objext \
37522 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
37523fi
37524echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
37525echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
37526if test `eval echo '${'$as_ac_var'}'` = yes; then
37527 cat >>confdefs.h <<_ACEOF
37528#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37529_ACEOF
37530 break
37531fi
37532done
37533
37534
37535HAVE_SOME_SLEEP_FUNC=0
37536if test "$USE_BEOS" = 1; then
37537 cat >>confdefs.h <<\_ACEOF
37538#define HAVE_SLEEP 1
37539_ACEOF
37540
37541 HAVE_SOME_SLEEP_FUNC=1
37542fi
37543
37544if test "$USE_DARWIN" = 1; then
37545 cat >>confdefs.h <<\_ACEOF
37546#define HAVE_USLEEP 1
37547_ACEOF
37548
37549 HAVE_SOME_SLEEP_FUNC=1
37550fi
37551
37552if test "$HAVE_SOME_SLEEP_FUNC" != 1; then
37553 POSIX4_LINK=
37554
37555for ac_func in nanosleep
37556do
37557as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37558echo "$as_me:$LINENO: checking for $ac_func" >&5
37559echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
37560if eval "test \"\${$as_ac_var+set}\" = set"; then
37561 echo $ECHO_N "(cached) $ECHO_C" >&6
37562else
37563 cat >conftest.$ac_ext <<_ACEOF
37564/* confdefs.h. */
37565_ACEOF
37566cat confdefs.h >>conftest.$ac_ext
37567cat >>conftest.$ac_ext <<_ACEOF
37568/* end confdefs.h. */
ac1cb8d3
VS
37569/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37570 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37571#define $ac_func innocuous_$ac_func
37572
a848cd7e
SC
37573/* System header to define __stub macros and hopefully few prototypes,
37574 which can conflict with char $ac_func (); below.
37575 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37576 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 37577
a848cd7e
SC
37578#ifdef __STDC__
37579# include <limits.h>
37580#else
37581# include <assert.h>
37582#endif
ac1cb8d3
VS
37583
37584#undef $ac_func
37585
a848cd7e
SC
37586/* Override any gcc2 internal prototype to avoid an error. */
37587#ifdef __cplusplus
37588extern "C"
37589{
37590#endif
37591/* We use char because int might match the return type of a gcc2
37592 builtin and then its argument prototype would still apply. */
37593char $ac_func ();
37594/* The GNU C library defines this for functions which it implements
37595 to always fail with ENOSYS. Some functions are actually named
37596 something starting with __ and the normal name is an alias. */
37597#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
37598choke me
37599#else
37600char (*f) () = $ac_func;
37601#endif
37602#ifdef __cplusplus
37603}
37604#endif
37605
37606int
37607main ()
37608{
37609return f != $ac_func;
37610 ;
37611 return 0;
37612}
37613_ACEOF
37614rm -f conftest.$ac_objext conftest$ac_exeext
37615if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 37616 (eval $ac_link) 2>conftest.er1
a848cd7e 37617 ac_status=$?
ac1cb8d3
VS
37618 grep -v '^ *+' conftest.er1 >conftest.err
37619 rm -f conftest.er1
37620 cat conftest.err >&5
a848cd7e
SC
37621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37622 (exit $ac_status); } &&
479c790c 37623 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
37624 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37625 (eval $ac_try) 2>&5
37626 ac_status=$?
37627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37628 (exit $ac_status); }; } &&
37629 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
37630 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37631 (eval $ac_try) 2>&5
37632 ac_status=$?
37633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37634 (exit $ac_status); }; }; then
37635 eval "$as_ac_var=yes"
37636else
37637 echo "$as_me: failed program was:" >&5
37638sed 's/^/| /' conftest.$ac_ext >&5
37639
37640eval "$as_ac_var=no"
37641fi
ac1cb8d3
VS
37642rm -f conftest.err conftest.$ac_objext \
37643 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
37644fi
37645echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
37646echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
37647if test `eval echo '${'$as_ac_var'}'` = yes; then
37648 cat >>confdefs.h <<_ACEOF
37649#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37650_ACEOF
37651 cat >>confdefs.h <<\_ACEOF
37652#define HAVE_NANOSLEEP 1
37653_ACEOF
37654
37655else
37656
37657 echo "$as_me:$LINENO: checking for nanosleep in -lposix4" >&5
37658echo $ECHO_N "checking for nanosleep in -lposix4... $ECHO_C" >&6
37659if test "${ac_cv_lib_posix4_nanosleep+set}" = set; then
37660 echo $ECHO_N "(cached) $ECHO_C" >&6
37661else
37662 ac_check_lib_save_LIBS=$LIBS
37663LIBS="-lposix4 $LIBS"
37664cat >conftest.$ac_ext <<_ACEOF
37665/* confdefs.h. */
37666_ACEOF
37667cat confdefs.h >>conftest.$ac_ext
37668cat >>conftest.$ac_ext <<_ACEOF
37669/* end confdefs.h. */
37670
37671/* Override any gcc2 internal prototype to avoid an error. */
37672#ifdef __cplusplus
37673extern "C"
37674#endif
37675/* We use char because int might match the return type of a gcc2
37676 builtin and then its argument prototype would still apply. */
37677char nanosleep ();
37678int
37679main ()
37680{
37681nanosleep ();
37682 ;
37683 return 0;
37684}
37685_ACEOF
37686rm -f conftest.$ac_objext conftest$ac_exeext
37687if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 37688 (eval $ac_link) 2>conftest.er1
a848cd7e 37689 ac_status=$?
ac1cb8d3
VS
37690 grep -v '^ *+' conftest.er1 >conftest.err
37691 rm -f conftest.er1
37692 cat conftest.err >&5
a848cd7e
SC
37693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37694 (exit $ac_status); } &&
479c790c 37695 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
37696 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37697 (eval $ac_try) 2>&5
37698 ac_status=$?
37699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37700 (exit $ac_status); }; } &&
37701 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
37702 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37703 (eval $ac_try) 2>&5
37704 ac_status=$?
37705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37706 (exit $ac_status); }; }; then
37707 ac_cv_lib_posix4_nanosleep=yes
37708else
37709 echo "$as_me: failed program was:" >&5
37710sed 's/^/| /' conftest.$ac_ext >&5
37711
37712ac_cv_lib_posix4_nanosleep=no
37713fi
ac1cb8d3
VS
37714rm -f conftest.err conftest.$ac_objext \
37715 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
37716LIBS=$ac_check_lib_save_LIBS
37717fi
37718echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_nanosleep" >&5
37719echo "${ECHO_T}$ac_cv_lib_posix4_nanosleep" >&6
37720if test $ac_cv_lib_posix4_nanosleep = yes; then
37721
37722 cat >>confdefs.h <<\_ACEOF
37723#define HAVE_NANOSLEEP 1
37724_ACEOF
37725
37726 POSIX4_LINK=" -lposix4"
37727
37728else
37729
37730
37731for ac_func in usleep
37732do
37733as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37734echo "$as_me:$LINENO: checking for $ac_func" >&5
37735echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
37736if eval "test \"\${$as_ac_var+set}\" = set"; then
37737 echo $ECHO_N "(cached) $ECHO_C" >&6
37738else
37739 cat >conftest.$ac_ext <<_ACEOF
37740/* confdefs.h. */
37741_ACEOF
37742cat confdefs.h >>conftest.$ac_ext
37743cat >>conftest.$ac_ext <<_ACEOF
37744/* end confdefs.h. */
ac1cb8d3
VS
37745/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37746 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37747#define $ac_func innocuous_$ac_func
37748
a848cd7e
SC
37749/* System header to define __stub macros and hopefully few prototypes,
37750 which can conflict with char $ac_func (); below.
37751 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37752 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 37753
a848cd7e
SC
37754#ifdef __STDC__
37755# include <limits.h>
37756#else
37757# include <assert.h>
37758#endif
ac1cb8d3
VS
37759
37760#undef $ac_func
37761
a848cd7e
SC
37762/* Override any gcc2 internal prototype to avoid an error. */
37763#ifdef __cplusplus
37764extern "C"
37765{
37766#endif
37767/* We use char because int might match the return type of a gcc2
37768 builtin and then its argument prototype would still apply. */
37769char $ac_func ();
37770/* The GNU C library defines this for functions which it implements
37771 to always fail with ENOSYS. Some functions are actually named
37772 something starting with __ and the normal name is an alias. */
37773#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
37774choke me
37775#else
37776char (*f) () = $ac_func;
37777#endif
37778#ifdef __cplusplus
37779}
37780#endif
37781
37782int
37783main ()
37784{
37785return f != $ac_func;
37786 ;
37787 return 0;
37788}
37789_ACEOF
37790rm -f conftest.$ac_objext conftest$ac_exeext
37791if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 37792 (eval $ac_link) 2>conftest.er1
a848cd7e 37793 ac_status=$?
ac1cb8d3
VS
37794 grep -v '^ *+' conftest.er1 >conftest.err
37795 rm -f conftest.er1
37796 cat conftest.err >&5
a848cd7e
SC
37797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37798 (exit $ac_status); } &&
479c790c 37799 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
37800 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37801 (eval $ac_try) 2>&5
37802 ac_status=$?
37803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37804 (exit $ac_status); }; } &&
37805 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
37806 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37807 (eval $ac_try) 2>&5
37808 ac_status=$?
37809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37810 (exit $ac_status); }; }; then
37811 eval "$as_ac_var=yes"
37812else
37813 echo "$as_me: failed program was:" >&5
37814sed 's/^/| /' conftest.$ac_ext >&5
37815
37816eval "$as_ac_var=no"
37817fi
ac1cb8d3
VS
37818rm -f conftest.err conftest.$ac_objext \
37819 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
37820fi
37821echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
37822echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
37823if test `eval echo '${'$as_ac_var'}'` = yes; then
37824 cat >>confdefs.h <<_ACEOF
37825#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37826_ACEOF
37827 cat >>confdefs.h <<\_ACEOF
37828#define HAVE_USLEEP 1
37829_ACEOF
37830
37831else
37832 { echo "$as_me:$LINENO: WARNING: wxSleep() function will not work" >&5
37833echo "$as_me: WARNING: wxSleep() function will not work" >&2;}
37834
37835fi
37836done
37837
37838
37839
37840fi
37841
37842
37843
37844fi
37845done
37846
37847fi
37848
37849
37850
37851for ac_func in uname gethostname
37852do
37853as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37854echo "$as_me:$LINENO: checking for $ac_func" >&5
37855echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
37856if eval "test \"\${$as_ac_var+set}\" = set"; then
37857 echo $ECHO_N "(cached) $ECHO_C" >&6
37858else
37859 cat >conftest.$ac_ext <<_ACEOF
37860/* confdefs.h. */
37861_ACEOF
37862cat confdefs.h >>conftest.$ac_ext
37863cat >>conftest.$ac_ext <<_ACEOF
37864/* end confdefs.h. */
ac1cb8d3
VS
37865/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37866 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37867#define $ac_func innocuous_$ac_func
37868
a848cd7e
SC
37869/* System header to define __stub macros and hopefully few prototypes,
37870 which can conflict with char $ac_func (); below.
37871 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37872 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 37873
a848cd7e
SC
37874#ifdef __STDC__
37875# include <limits.h>
37876#else
37877# include <assert.h>
37878#endif
ac1cb8d3
VS
37879
37880#undef $ac_func
37881
a848cd7e
SC
37882/* Override any gcc2 internal prototype to avoid an error. */
37883#ifdef __cplusplus
37884extern "C"
37885{
37886#endif
37887/* We use char because int might match the return type of a gcc2
37888 builtin and then its argument prototype would still apply. */
37889char $ac_func ();
37890/* The GNU C library defines this for functions which it implements
37891 to always fail with ENOSYS. Some functions are actually named
37892 something starting with __ and the normal name is an alias. */
37893#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
37894choke me
37895#else
37896char (*f) () = $ac_func;
37897#endif
37898#ifdef __cplusplus
37899}
37900#endif
37901
37902int
37903main ()
37904{
37905return f != $ac_func;
37906 ;
37907 return 0;
37908}
37909_ACEOF
37910rm -f conftest.$ac_objext conftest$ac_exeext
37911if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 37912 (eval $ac_link) 2>conftest.er1
a848cd7e 37913 ac_status=$?
ac1cb8d3
VS
37914 grep -v '^ *+' conftest.er1 >conftest.err
37915 rm -f conftest.er1
37916 cat conftest.err >&5
a848cd7e
SC
37917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37918 (exit $ac_status); } &&
479c790c 37919 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
37920 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37921 (eval $ac_try) 2>&5
37922 ac_status=$?
37923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37924 (exit $ac_status); }; } &&
37925 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
37926 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37927 (eval $ac_try) 2>&5
37928 ac_status=$?
37929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37930 (exit $ac_status); }; }; then
37931 eval "$as_ac_var=yes"
37932else
37933 echo "$as_me: failed program was:" >&5
37934sed 's/^/| /' conftest.$ac_ext >&5
37935
37936eval "$as_ac_var=no"
37937fi
ac1cb8d3
VS
37938rm -f conftest.err conftest.$ac_objext \
37939 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
37940fi
37941echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
37942echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
37943if test `eval echo '${'$as_ac_var'}'` = yes; then
37944 cat >>confdefs.h <<_ACEOF
37945#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37946_ACEOF
37947 break
37948fi
37949done
37950
37951
56632e81
MW
37952
37953 for wx_func in strtok_r
37954 do
37955 echo "$as_me:$LINENO: checking for $wx_func" >&5
37956echo $ECHO_N "checking for $wx_func... $ECHO_C" >&6
37957if eval "test \"\${wx_cv_func_$wx_func+set}\" = set"; then
a848cd7e
SC
37958 echo $ECHO_N "(cached) $ECHO_C" >&6
37959else
56632e81
MW
37960
37961 cat >conftest.$ac_ext <<_ACEOF
37962
37963 /* confdefs.h. */
a848cd7e
SC
37964_ACEOF
37965cat confdefs.h >>conftest.$ac_ext
37966cat >>conftest.$ac_ext <<_ACEOF
37967/* end confdefs.h. */
56632e81
MW
37968
37969 #define _REENTRANT
37970 $ac_includes_default
37971
a848cd7e
SC
37972int
37973main ()
37974{
56632e81
MW
37975
37976 #ifndef $wx_func
37977 &$wx_func;
37978 #endif
37979
5acfd58d 37980
a848cd7e
SC
37981 ;
37982 return 0;
37983}
56632e81 37984
a848cd7e 37985_ACEOF
56632e81
MW
37986rm -f conftest.$ac_objext conftest$ac_exeext
37987if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37988 (eval $ac_link) 2>conftest.er1
a848cd7e 37989 ac_status=$?
ac1cb8d3
VS
37990 grep -v '^ *+' conftest.er1 >conftest.err
37991 rm -f conftest.er1
37992 cat conftest.err >&5
a848cd7e
SC
37993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37994 (exit $ac_status); } &&
479c790c 37995 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
37996 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37997 (eval $ac_try) 2>&5
37998 ac_status=$?
37999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38000 (exit $ac_status); }; } &&
56632e81 38001 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
38002 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38003 (eval $ac_try) 2>&5
38004 ac_status=$?
38005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38006 (exit $ac_status); }; }; then
56632e81 38007 eval wx_cv_func_$wx_func=yes
a848cd7e
SC
38008else
38009 echo "$as_me: failed program was:" >&5
38010sed 's/^/| /' conftest.$ac_ext >&5
38011
56632e81 38012eval wx_cv_func_$wx_func=no
a848cd7e 38013fi
56632e81
MW
38014rm -f conftest.err conftest.$ac_objext \
38015 conftest$ac_exeext conftest.$ac_ext
a848cd7e 38016
56632e81
MW
38017fi
38018echo "$as_me:$LINENO: result: `eval echo '${'wx_cv_func_$wx_func'}'`" >&5
38019echo "${ECHO_T}`eval echo '${'wx_cv_func_$wx_func'}'`" >&6
a848cd7e 38020
56632e81
MW
38021 if eval test \$wx_cv_func_$wx_func = yes
38022 then
38023 cat >>confdefs.h <<_ACEOF
38024#define HAVE_`echo $wx_func | tr 'a-z' 'A-Z'` 1
82a2636b
MW
38025_ACEOF
38026
38027
56632e81
MW
38028 else
38029 :
5acfd58d 38030
56632e81
MW
38031 fi
38032 done
5acfd58d 38033
a848cd7e 38034
a848cd7e
SC
38035INET_LINK=
38036
38037for ac_func in inet_addr
38038do
38039as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38040echo "$as_me:$LINENO: checking for $ac_func" >&5
38041echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
38042if eval "test \"\${$as_ac_var+set}\" = set"; then
38043 echo $ECHO_N "(cached) $ECHO_C" >&6
38044else
38045 cat >conftest.$ac_ext <<_ACEOF
38046/* confdefs.h. */
38047_ACEOF
38048cat confdefs.h >>conftest.$ac_ext
38049cat >>conftest.$ac_ext <<_ACEOF
38050/* end confdefs.h. */
ac1cb8d3
VS
38051/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38052 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38053#define $ac_func innocuous_$ac_func
38054
a848cd7e
SC
38055/* System header to define __stub macros and hopefully few prototypes,
38056 which can conflict with char $ac_func (); below.
38057 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38058 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 38059
a848cd7e
SC
38060#ifdef __STDC__
38061# include <limits.h>
38062#else
38063# include <assert.h>
38064#endif
ac1cb8d3
VS
38065
38066#undef $ac_func
38067
a848cd7e
SC
38068/* Override any gcc2 internal prototype to avoid an error. */
38069#ifdef __cplusplus
38070extern "C"
38071{
38072#endif
38073/* We use char because int might match the return type of a gcc2
38074 builtin and then its argument prototype would still apply. */
38075char $ac_func ();
38076/* The GNU C library defines this for functions which it implements
38077 to always fail with ENOSYS. Some functions are actually named
38078 something starting with __ and the normal name is an alias. */
38079#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
38080choke me
38081#else
38082char (*f) () = $ac_func;
38083#endif
38084#ifdef __cplusplus
38085}
38086#endif
38087
38088int
38089main ()
38090{
38091return f != $ac_func;
38092 ;
38093 return 0;
38094}
38095_ACEOF
38096rm -f conftest.$ac_objext conftest$ac_exeext
38097if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 38098 (eval $ac_link) 2>conftest.er1
a848cd7e 38099 ac_status=$?
ac1cb8d3
VS
38100 grep -v '^ *+' conftest.er1 >conftest.err
38101 rm -f conftest.er1
38102 cat conftest.err >&5
a848cd7e
SC
38103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38104 (exit $ac_status); } &&
479c790c 38105 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
38106 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38107 (eval $ac_try) 2>&5
38108 ac_status=$?
38109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38110 (exit $ac_status); }; } &&
38111 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
38112 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38113 (eval $ac_try) 2>&5
38114 ac_status=$?
38115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38116 (exit $ac_status); }; }; then
38117 eval "$as_ac_var=yes"
38118else
38119 echo "$as_me: failed program was:" >&5
38120sed 's/^/| /' conftest.$ac_ext >&5
38121
38122eval "$as_ac_var=no"
38123fi
ac1cb8d3
VS
38124rm -f conftest.err conftest.$ac_objext \
38125 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
38126fi
38127echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
38128echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
38129if test `eval echo '${'$as_ac_var'}'` = yes; then
38130 cat >>confdefs.h <<_ACEOF
38131#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38132_ACEOF
38133 cat >>confdefs.h <<\_ACEOF
38134#define HAVE_INET_ADDR 1
38135_ACEOF
38136
38137else
38138
38139 echo "$as_me:$LINENO: checking for inet_addr in -lnsl" >&5
38140echo $ECHO_N "checking for inet_addr in -lnsl... $ECHO_C" >&6
38141if test "${ac_cv_lib_nsl_inet_addr+set}" = set; then
38142 echo $ECHO_N "(cached) $ECHO_C" >&6
38143else
38144 ac_check_lib_save_LIBS=$LIBS
38145LIBS="-lnsl $LIBS"
38146cat >conftest.$ac_ext <<_ACEOF
38147/* confdefs.h. */
38148_ACEOF
38149cat confdefs.h >>conftest.$ac_ext
38150cat >>conftest.$ac_ext <<_ACEOF
38151/* end confdefs.h. */
38152
38153/* Override any gcc2 internal prototype to avoid an error. */
38154#ifdef __cplusplus
38155extern "C"
38156#endif
38157/* We use char because int might match the return type of a gcc2
38158 builtin and then its argument prototype would still apply. */
38159char inet_addr ();
38160int
38161main ()
38162{
38163inet_addr ();
38164 ;
38165 return 0;
38166}
38167_ACEOF
38168rm -f conftest.$ac_objext conftest$ac_exeext
38169if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 38170 (eval $ac_link) 2>conftest.er1
a848cd7e 38171 ac_status=$?
ac1cb8d3
VS
38172 grep -v '^ *+' conftest.er1 >conftest.err
38173 rm -f conftest.er1
38174 cat conftest.err >&5
a848cd7e
SC
38175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38176 (exit $ac_status); } &&
479c790c 38177 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
38178 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38179 (eval $ac_try) 2>&5
38180 ac_status=$?
38181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38182 (exit $ac_status); }; } &&
38183 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
38184 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38185 (eval $ac_try) 2>&5
38186 ac_status=$?
38187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38188 (exit $ac_status); }; }; then
38189 ac_cv_lib_nsl_inet_addr=yes
38190else
38191 echo "$as_me: failed program was:" >&5
38192sed 's/^/| /' conftest.$ac_ext >&5
38193
38194ac_cv_lib_nsl_inet_addr=no
38195fi
ac1cb8d3
VS
38196rm -f conftest.err conftest.$ac_objext \
38197 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
38198LIBS=$ac_check_lib_save_LIBS
38199fi
38200echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_inet_addr" >&5
38201echo "${ECHO_T}$ac_cv_lib_nsl_inet_addr" >&6
38202if test $ac_cv_lib_nsl_inet_addr = yes; then
38203 INET_LINK="nsl"
38204else
38205
38206 echo "$as_me:$LINENO: checking for inet_addr in -lresolv" >&5
38207echo $ECHO_N "checking for inet_addr in -lresolv... $ECHO_C" >&6
38208if test "${ac_cv_lib_resolv_inet_addr+set}" = set; then
38209 echo $ECHO_N "(cached) $ECHO_C" >&6
38210else
38211 ac_check_lib_save_LIBS=$LIBS
38212LIBS="-lresolv $LIBS"
38213cat >conftest.$ac_ext <<_ACEOF
38214/* confdefs.h. */
38215_ACEOF
38216cat confdefs.h >>conftest.$ac_ext
38217cat >>conftest.$ac_ext <<_ACEOF
38218/* end confdefs.h. */
38219
38220/* Override any gcc2 internal prototype to avoid an error. */
38221#ifdef __cplusplus
38222extern "C"
38223#endif
38224/* We use char because int might match the return type of a gcc2
38225 builtin and then its argument prototype would still apply. */
38226char inet_addr ();
38227int
38228main ()
38229{
38230inet_addr ();
38231 ;
38232 return 0;
38233}
38234_ACEOF
38235rm -f conftest.$ac_objext conftest$ac_exeext
38236if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 38237 (eval $ac_link) 2>conftest.er1
a848cd7e 38238 ac_status=$?
ac1cb8d3
VS
38239 grep -v '^ *+' conftest.er1 >conftest.err
38240 rm -f conftest.er1
38241 cat conftest.err >&5
a848cd7e
SC
38242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38243 (exit $ac_status); } &&
479c790c 38244 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
38245 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38246 (eval $ac_try) 2>&5
38247 ac_status=$?
38248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38249 (exit $ac_status); }; } &&
38250 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
38251 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38252 (eval $ac_try) 2>&5
38253 ac_status=$?
38254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38255 (exit $ac_status); }; }; then
38256 ac_cv_lib_resolv_inet_addr=yes
38257else
38258 echo "$as_me: failed program was:" >&5
38259sed 's/^/| /' conftest.$ac_ext >&5
38260
38261ac_cv_lib_resolv_inet_addr=no
38262fi
ac1cb8d3
VS
38263rm -f conftest.err conftest.$ac_objext \
38264 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
38265LIBS=$ac_check_lib_save_LIBS
38266fi
38267echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_inet_addr" >&5
38268echo "${ECHO_T}$ac_cv_lib_resolv_inet_addr" >&6
38269if test $ac_cv_lib_resolv_inet_addr = yes; then
38270 INET_LINK="resolv"
38271else
38272
38273 echo "$as_me:$LINENO: checking for inet_addr in -lsocket" >&5
38274echo $ECHO_N "checking for inet_addr in -lsocket... $ECHO_C" >&6
38275if test "${ac_cv_lib_socket_inet_addr+set}" = set; then
38276 echo $ECHO_N "(cached) $ECHO_C" >&6
38277else
38278 ac_check_lib_save_LIBS=$LIBS
38279LIBS="-lsocket $LIBS"
38280cat >conftest.$ac_ext <<_ACEOF
38281/* confdefs.h. */
38282_ACEOF
38283cat confdefs.h >>conftest.$ac_ext
38284cat >>conftest.$ac_ext <<_ACEOF
38285/* end confdefs.h. */
38286
38287/* Override any gcc2 internal prototype to avoid an error. */
38288#ifdef __cplusplus
38289extern "C"
38290#endif
38291/* We use char because int might match the return type of a gcc2
38292 builtin and then its argument prototype would still apply. */
38293char inet_addr ();
38294int
38295main ()
38296{
38297inet_addr ();
38298 ;
38299 return 0;
38300}
38301_ACEOF
38302rm -f conftest.$ac_objext conftest$ac_exeext
38303if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 38304 (eval $ac_link) 2>conftest.er1
a848cd7e 38305 ac_status=$?
ac1cb8d3
VS
38306 grep -v '^ *+' conftest.er1 >conftest.err
38307 rm -f conftest.er1
38308 cat conftest.err >&5
a848cd7e
SC
38309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38310 (exit $ac_status); } &&
479c790c 38311 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
38312 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38313 (eval $ac_try) 2>&5
38314 ac_status=$?
38315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38316 (exit $ac_status); }; } &&
38317 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
38318 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38319 (eval $ac_try) 2>&5
38320 ac_status=$?
38321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38322 (exit $ac_status); }; }; then
38323 ac_cv_lib_socket_inet_addr=yes
38324else
38325 echo "$as_me: failed program was:" >&5
38326sed 's/^/| /' conftest.$ac_ext >&5
38327
38328ac_cv_lib_socket_inet_addr=no
38329fi
ac1cb8d3
VS
38330rm -f conftest.err conftest.$ac_objext \
38331 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
38332LIBS=$ac_check_lib_save_LIBS
38333fi
38334echo "$as_me:$LINENO: result: $ac_cv_lib_socket_inet_addr" >&5
38335echo "${ECHO_T}$ac_cv_lib_socket_inet_addr" >&6
38336if test $ac_cv_lib_socket_inet_addr = yes; then
38337 INET_LINK="socket"
38338
38339fi
38340
38341
38342
38343fi
38344
38345
38346
38347fi
38348
38349
38350
38351fi
38352done
38353
38354
38355
38356for ac_func in inet_aton
38357do
38358as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38359echo "$as_me:$LINENO: checking for $ac_func" >&5
38360echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
38361if eval "test \"\${$as_ac_var+set}\" = set"; then
38362 echo $ECHO_N "(cached) $ECHO_C" >&6
38363else
38364 cat >conftest.$ac_ext <<_ACEOF
38365/* confdefs.h. */
38366_ACEOF
38367cat confdefs.h >>conftest.$ac_ext
38368cat >>conftest.$ac_ext <<_ACEOF
38369/* end confdefs.h. */
ac1cb8d3
VS
38370/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38371 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38372#define $ac_func innocuous_$ac_func
38373
a848cd7e
SC
38374/* System header to define __stub macros and hopefully few prototypes,
38375 which can conflict with char $ac_func (); below.
38376 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38377 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 38378
a848cd7e
SC
38379#ifdef __STDC__
38380# include <limits.h>
38381#else
38382# include <assert.h>
38383#endif
ac1cb8d3
VS
38384
38385#undef $ac_func
38386
a848cd7e
SC
38387/* Override any gcc2 internal prototype to avoid an error. */
38388#ifdef __cplusplus
38389extern "C"
38390{
38391#endif
38392/* We use char because int might match the return type of a gcc2
38393 builtin and then its argument prototype would still apply. */
38394char $ac_func ();
38395/* The GNU C library defines this for functions which it implements
38396 to always fail with ENOSYS. Some functions are actually named
38397 something starting with __ and the normal name is an alias. */
38398#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
38399choke me
38400#else
38401char (*f) () = $ac_func;
38402#endif
38403#ifdef __cplusplus
38404}
38405#endif
38406
38407int
38408main ()
38409{
38410return f != $ac_func;
38411 ;
38412 return 0;
38413}
38414_ACEOF
38415rm -f conftest.$ac_objext conftest$ac_exeext
38416if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 38417 (eval $ac_link) 2>conftest.er1
a848cd7e 38418 ac_status=$?
ac1cb8d3
VS
38419 grep -v '^ *+' conftest.er1 >conftest.err
38420 rm -f conftest.er1
38421 cat conftest.err >&5
a848cd7e
SC
38422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38423 (exit $ac_status); } &&
479c790c 38424 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
38425 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38426 (eval $ac_try) 2>&5
38427 ac_status=$?
38428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38429 (exit $ac_status); }; } &&
38430 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
38431 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38432 (eval $ac_try) 2>&5
38433 ac_status=$?
38434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38435 (exit $ac_status); }; }; then
38436 eval "$as_ac_var=yes"
38437else
38438 echo "$as_me: failed program was:" >&5
38439sed 's/^/| /' conftest.$ac_ext >&5
38440
38441eval "$as_ac_var=no"
38442fi
ac1cb8d3
VS
38443rm -f conftest.err conftest.$ac_objext \
38444 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
38445fi
38446echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
38447echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
38448if test `eval echo '${'$as_ac_var'}'` = yes; then
38449 cat >>confdefs.h <<_ACEOF
38450#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38451_ACEOF
38452 cat >>confdefs.h <<\_ACEOF
38453#define HAVE_INET_ATON 1
38454_ACEOF
38455
38456else
38457
38458 as_ac_Lib=`echo "ac_cv_lib_$INET_LINK''_inet_aton" | $as_tr_sh`
38459echo "$as_me:$LINENO: checking for inet_aton in -l$INET_LINK" >&5
38460echo $ECHO_N "checking for inet_aton in -l$INET_LINK... $ECHO_C" >&6
38461if eval "test \"\${$as_ac_Lib+set}\" = set"; then
38462 echo $ECHO_N "(cached) $ECHO_C" >&6
38463else
38464 ac_check_lib_save_LIBS=$LIBS
38465LIBS="-l$INET_LINK $LIBS"
38466cat >conftest.$ac_ext <<_ACEOF
38467/* confdefs.h. */
38468_ACEOF
38469cat confdefs.h >>conftest.$ac_ext
38470cat >>conftest.$ac_ext <<_ACEOF
38471/* end confdefs.h. */
38472
38473/* Override any gcc2 internal prototype to avoid an error. */
38474#ifdef __cplusplus
38475extern "C"
38476#endif
38477/* We use char because int might match the return type of a gcc2
38478 builtin and then its argument prototype would still apply. */
38479char inet_aton ();
38480int
38481main ()
38482{
38483inet_aton ();
38484 ;
38485 return 0;
38486}
38487_ACEOF
38488rm -f conftest.$ac_objext conftest$ac_exeext
38489if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 38490 (eval $ac_link) 2>conftest.er1
a848cd7e 38491 ac_status=$?
ac1cb8d3
VS
38492 grep -v '^ *+' conftest.er1 >conftest.err
38493 rm -f conftest.er1
38494 cat conftest.err >&5
a848cd7e
SC
38495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38496 (exit $ac_status); } &&
479c790c 38497 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
38498 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38499 (eval $ac_try) 2>&5
38500 ac_status=$?
38501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38502 (exit $ac_status); }; } &&
38503 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
38504 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38505 (eval $ac_try) 2>&5
38506 ac_status=$?
38507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38508 (exit $ac_status); }; }; then
38509 eval "$as_ac_Lib=yes"
38510else
38511 echo "$as_me: failed program was:" >&5
38512sed 's/^/| /' conftest.$ac_ext >&5
38513
38514eval "$as_ac_Lib=no"
38515fi
ac1cb8d3
VS
38516rm -f conftest.err conftest.$ac_objext \
38517 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
38518LIBS=$ac_check_lib_save_LIBS
38519fi
38520echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
38521echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
38522if test `eval echo '${'$as_ac_Lib'}'` = yes; then
38523 cat >>confdefs.h <<\_ACEOF
38524#define HAVE_INET_ATON 1
38525_ACEOF
38526
38527fi
38528
38529
38530fi
38531done
38532
38533
38534if test "x$INET_LINK" != "x"; then
38535 cat >>confdefs.h <<\_ACEOF
38536#define HAVE_INET_ADDR 1
38537_ACEOF
38538
38539 INET_LINK=" -l$INET_LINK"
38540fi
38541
38542fi
38543
38544
38545
38546EXTRALIBS_ESD=
38547echo "$as_me:$LINENO: checking for esd_close in -lesd" >&5
38548echo $ECHO_N "checking for esd_close in -lesd... $ECHO_C" >&6
38549if test "${ac_cv_lib_esd_esd_close+set}" = set; then
38550 echo $ECHO_N "(cached) $ECHO_C" >&6
38551else
38552 ac_check_lib_save_LIBS=$LIBS
38553LIBS="-lesd $LIBS"
38554cat >conftest.$ac_ext <<_ACEOF
38555/* confdefs.h. */
38556_ACEOF
38557cat confdefs.h >>conftest.$ac_ext
38558cat >>conftest.$ac_ext <<_ACEOF
38559/* end confdefs.h. */
38560
38561/* Override any gcc2 internal prototype to avoid an error. */
38562#ifdef __cplusplus
38563extern "C"
38564#endif
38565/* We use char because int might match the return type of a gcc2
38566 builtin and then its argument prototype would still apply. */
38567char esd_close ();
38568int
38569main ()
38570{
38571esd_close ();
38572 ;
38573 return 0;
38574}
38575_ACEOF
38576rm -f conftest.$ac_objext conftest$ac_exeext
38577if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 38578 (eval $ac_link) 2>conftest.er1
a848cd7e 38579 ac_status=$?
ac1cb8d3
VS
38580 grep -v '^ *+' conftest.er1 >conftest.err
38581 rm -f conftest.er1
38582 cat conftest.err >&5
a848cd7e
SC
38583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38584 (exit $ac_status); } &&
479c790c 38585 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
38586 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38587 (eval $ac_try) 2>&5
38588 ac_status=$?
38589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38590 (exit $ac_status); }; } &&
38591 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
38592 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38593 (eval $ac_try) 2>&5
38594 ac_status=$?
38595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38596 (exit $ac_status); }; }; then
38597 ac_cv_lib_esd_esd_close=yes
38598else
38599 echo "$as_me: failed program was:" >&5
38600sed 's/^/| /' conftest.$ac_ext >&5
38601
38602ac_cv_lib_esd_esd_close=no
38603fi
ac1cb8d3
VS
38604rm -f conftest.err conftest.$ac_objext \
38605 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
38606LIBS=$ac_check_lib_save_LIBS
38607fi
38608echo "$as_me:$LINENO: result: $ac_cv_lib_esd_esd_close" >&5
38609echo "${ECHO_T}$ac_cv_lib_esd_esd_close" >&6
38610if test $ac_cv_lib_esd_esd_close = yes; then
38611
38612
38613for ac_header in esd.h
38614do
38615as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
38616if eval "test \"\${$as_ac_Header+set}\" = set"; then
38617 echo "$as_me:$LINENO: checking for $ac_header" >&5
38618echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
38619if eval "test \"\${$as_ac_Header+set}\" = set"; then
38620 echo $ECHO_N "(cached) $ECHO_C" >&6
38621fi
38622echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
38623echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
38624else
38625 # Is the header compilable?
38626echo "$as_me:$LINENO: checking $ac_header usability" >&5
38627echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
38628cat >conftest.$ac_ext <<_ACEOF
38629/* confdefs.h. */
38630_ACEOF
38631cat confdefs.h >>conftest.$ac_ext
38632cat >>conftest.$ac_ext <<_ACEOF
38633/* end confdefs.h. */
38634$ac_includes_default
38635#include <$ac_header>
38636_ACEOF
38637rm -f conftest.$ac_objext
38638if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 38639 (eval $ac_compile) 2>conftest.er1
a848cd7e 38640 ac_status=$?
ac1cb8d3
VS
38641 grep -v '^ *+' conftest.er1 >conftest.err
38642 rm -f conftest.er1
38643 cat conftest.err >&5
a848cd7e
SC
38644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38645 (exit $ac_status); } &&
479c790c 38646 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
38647 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38648 (eval $ac_try) 2>&5
38649 ac_status=$?
38650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38651 (exit $ac_status); }; } &&
38652 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
38653 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38654 (eval $ac_try) 2>&5
38655 ac_status=$?
38656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38657 (exit $ac_status); }; }; then
38658 ac_header_compiler=yes
38659else
38660 echo "$as_me: failed program was:" >&5
38661sed 's/^/| /' conftest.$ac_ext >&5
38662
38663ac_header_compiler=no
38664fi
ac1cb8d3 38665rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
38666echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
38667echo "${ECHO_T}$ac_header_compiler" >&6
38668
38669# Is the header present?
38670echo "$as_me:$LINENO: checking $ac_header presence" >&5
38671echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
38672cat >conftest.$ac_ext <<_ACEOF
38673/* confdefs.h. */
38674_ACEOF
38675cat confdefs.h >>conftest.$ac_ext
38676cat >>conftest.$ac_ext <<_ACEOF
38677/* end confdefs.h. */
38678#include <$ac_header>
38679_ACEOF
38680if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
38681 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
38682 ac_status=$?
38683 grep -v '^ *+' conftest.er1 >conftest.err
38684 rm -f conftest.er1
38685 cat conftest.err >&5
38686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38687 (exit $ac_status); } >/dev/null; then
38688 if test -s conftest.err; then
5d7b7554
VZ
38689 ac_cpp_err=$ac_cxx_preproc_warn_flag
38690 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
38691 else
38692 ac_cpp_err=
38693 fi
38694else
38695 ac_cpp_err=yes
38696fi
38697if test -z "$ac_cpp_err"; then
38698 ac_header_preproc=yes
38699else
38700 echo "$as_me: failed program was:" >&5
38701sed 's/^/| /' conftest.$ac_ext >&5
38702
38703 ac_header_preproc=no
38704fi
38705rm -f conftest.err conftest.$ac_ext
38706echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
38707echo "${ECHO_T}$ac_header_preproc" >&6
38708
38709# So? What about this header?
5d7b7554 38710case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
ac1cb8d3 38711 yes:no: )
a848cd7e
SC
38712 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
38713echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
38714 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
38715echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
38716 ac_header_preproc=yes
a848cd7e 38717 ;;
ac1cb8d3 38718 no:yes:* )
a848cd7e
SC
38719 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
38720echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
38721 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
38722echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
38723 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
38724echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
38725 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
38726echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
38727 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
38728echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
38729 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
38730echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
38731 (
38732 cat <<\_ASBOX
ac1cb8d3
VS
38733## ----------------------------------------- ##
38734## Report this to wx-dev@lists.wxwidgets.org ##
38735## ----------------------------------------- ##
a848cd7e
SC
38736_ASBOX
38737 ) |
38738 sed "s/^/$as_me: WARNING: /" >&2
38739 ;;
38740esac
38741echo "$as_me:$LINENO: checking for $ac_header" >&5
38742echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
38743if eval "test \"\${$as_ac_Header+set}\" = set"; then
38744 echo $ECHO_N "(cached) $ECHO_C" >&6
38745else
ac1cb8d3 38746 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
38747fi
38748echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
38749echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
38750
38751fi
38752if test `eval echo '${'$as_ac_Header'}'` = yes; then
38753 cat >>confdefs.h <<_ACEOF
38754#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
38755_ACEOF
38756
38757 EXTRALIBS_ESD="-lesd"
38758
38759fi
38760
38761done
38762
38763
38764fi
38765
38766
38767
38768echo "$as_me:$LINENO: checking for known CD-ROM interface" >&5
38769echo $ECHO_N "checking for known CD-ROM interface... $ECHO_C" >&6
38770cat >conftest.$ac_ext <<_ACEOF
38771/* confdefs.h. */
38772_ACEOF
38773cat confdefs.h >>conftest.$ac_ext
38774cat >>conftest.$ac_ext <<_ACEOF
38775/* end confdefs.h. */
38776#ifdef __linux__
38777 #include <linux/cdrom.h>
38778 #else
38779 /* For Solaris */
38780 #include <sys/cdio.h>
38781 #endif
38782
38783int
38784main ()
38785{
38786struct cdrom_tocentry entry, old_entry;
38787 ;
38788 return 0;
38789}
38790_ACEOF
38791rm -f conftest.$ac_objext
38792if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 38793 (eval $ac_compile) 2>conftest.er1
a848cd7e 38794 ac_status=$?
ac1cb8d3
VS
38795 grep -v '^ *+' conftest.er1 >conftest.err
38796 rm -f conftest.er1
38797 cat conftest.err >&5
a848cd7e
SC
38798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38799 (exit $ac_status); } &&
479c790c 38800 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
38801 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38802 (eval $ac_try) 2>&5
38803 ac_status=$?
38804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38805 (exit $ac_status); }; } &&
38806 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
38807 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38808 (eval $ac_try) 2>&5
38809 ac_status=$?
38810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38811 (exit $ac_status); }; }; then
38812 echo "$as_me:$LINENO: result: yes" >&5
38813echo "${ECHO_T}yes" >&6
38814 cat >>confdefs.h <<\_ACEOF
38815#define HAVE_KNOWN_CDROM_INTERFACE 1
38816_ACEOF
38817
38818else
38819 echo "$as_me: failed program was:" >&5
38820sed 's/^/| /' conftest.$ac_ext >&5
38821
38822echo "$as_me:$LINENO: result: no" >&5
38823echo "${ECHO_T}no" >&6
38824fi
ac1cb8d3 38825rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
38826
38827
38828cat >confcache <<\_ACEOF
38829# This file is a shell script that caches the results of configure
38830# tests run on this system so they can be shared between configure
38831# scripts and configure runs, see configure's option --config-cache.
38832# It is not useful on other systems. If it contains results you don't
38833# want to keep, you may remove or edit it.
38834#
38835# config.status only pays attention to the cache file if you give it
38836# the --recheck option to rerun configure.
38837#
38838# `ac_cv_env_foo' variables (set or unset) will be overridden when
38839# loading this file, other *unset* `ac_cv_foo' will be assigned the
38840# following values.
38841
38842_ACEOF
38843
38844# The following way of writing the cache mishandles newlines in values,
38845# but we know of no workaround that is simple, portable, and efficient.
38846# So, don't put newlines in cache variables' values.
38847# Ultrix sh set writes to stderr and can't be redirected directly,
38848# and sets the high bit in the cache file unless we assign to the vars.
38849{
38850 (set) 2>&1 |
38851 case `(ac_space=' '; set | grep ac_space) 2>&1` in
38852 *ac_space=\ *)
38853 # `set' does not quote correctly, so add quotes (double-quote
38854 # substitution turns \\\\ into \\, and sed turns \\ into \).
38855 sed -n \
ac1cb8d3
VS
38856 "s/'/'\\\\''/g;
38857 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
a848cd7e
SC
38858 ;;
38859 *)
38860 # `set' quotes correctly as required by POSIX, so do not add quotes.
38861 sed -n \
ac1cb8d3 38862 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
a848cd7e
SC
38863 ;;
38864 esac;
38865} |
38866 sed '
38867 t clear
38868 : clear
38869 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
38870 t end
38871 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
38872 : end' >>confcache
38873if diff $cache_file confcache >/dev/null 2>&1; then :; else
38874 if test -w $cache_file; then
38875 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
38876 cat confcache >$cache_file
38877 else
38878 echo "not updating unwritable cache $cache_file"
38879 fi
38880fi
38881rm -f confcache
38882
38883
a848cd7e
SC
38884if test "$TOOLKIT" != "MSW" -a "$USE_OS2" != 1; then
38885
38886
38887 THREADS_LINK=
e56f4f9e 38888 THREADS_CXXFLAGS=
a848cd7e
SC
38889
38890 if test "$wxUSE_THREADS" = "yes" ; then
38891 if test "$USE_BEOS" = 1; then
38892 { echo "$as_me:$LINENO: WARNING: BeOS threads are not yet supported... disabled" >&5
38893echo "$as_me: WARNING: BeOS threads are not yet supported... disabled" >&2;}
38894 wxUSE_THREADS="no"
38895 fi
38896 fi
38897
38898 if test "$wxUSE_THREADS" = "yes" ; then
38899
38900
38901 THREAD_OPTS="-pthread"
38902 case "${host}" in
38903 *-*-solaris2* | *-*-sunos4* )
38904 if test "x$GCC" = "xyes"; then
38905 THREAD_OPTS="-pthreads $THREAD_OPTS"
38906 else
38907 THREAD_OPTS="-mt $THREAD_OPTS"
38908 fi
38909 ;;
38910 *-*-freebsd*)
38911 THREAD_OPTS="-kthread lthread $THREAD_OPTS c_r"
38912 ;;
38913 *-*-darwin* | *-*-cygwin* )
38914 THREAD_OPTS=""
38915 ;;
38916 *-*-aix*)
38917 THREAD_OPTS="pthreads"
38918 ;;
38919 *-hp-hpux* )
00421666
MW
38920 if test "x$GCC" = "xyes"; then
38921 $CXX -dumpspecs | grep 'pthread:' >/dev/null ||
38922 THREAD_OPTS=""
38923 else
0093c2fc 38924 THREAD_OPTS="-mt"
a848cd7e
SC
38925 fi
38926 ;;
38927
38928 *-*-irix* )
38929 if test "x$GCC" = "xyes"; then
38930 THREAD_OPTS=""
38931 fi
38932 ;;
38933
38934 *-*-*UnixWare*)
38935 if test "x$GCC" != "xyes"; then
38936 THREAD_OPTS="-Ethread"
38937 fi
38938 ;;
38939 esac
38940
38941 THREAD_OPTS="$THREAD_OPTS pthread none"
38942
38943 THREADS_OK=no
38944 for flag in $THREAD_OPTS; do
38945 case $flag in
38946 none)
38947 echo "$as_me:$LINENO: checking whether pthreads work without any flags" >&5
38948echo $ECHO_N "checking whether pthreads work without any flags... $ECHO_C" >&6
38949 ;;
38950
38951 -*)
38952 echo "$as_me:$LINENO: checking whether pthreads work with $flag" >&5
38953echo $ECHO_N "checking whether pthreads work with $flag... $ECHO_C" >&6
e56f4f9e 38954 THREADS_CXXFLAGS="$flag"
a848cd7e
SC
38955 ;;
38956
38957 *)
38958 echo "$as_me:$LINENO: checking for the pthreads library -l$flag" >&5
38959echo $ECHO_N "checking for the pthreads library -l$flag... $ECHO_C" >&6
38960 THREADS_LINK="-l$flag"
38961 ;;
38962 esac
38963
38964 save_LIBS="$LIBS"
e56f4f9e 38965 save_CXXFLAGS="$CXXFLAGS"
a848cd7e 38966 LIBS="$THREADS_LINK $LIBS"
e56f4f9e 38967 CXXFLAGS="$THREADS_CXXFLAGS $CXXFLAGS"
a848cd7e
SC
38968
38969 cat >conftest.$ac_ext <<_ACEOF
38970/* confdefs.h. */
38971_ACEOF
38972cat confdefs.h >>conftest.$ac_ext
38973cat >>conftest.$ac_ext <<_ACEOF
38974/* end confdefs.h. */
38975#include <pthread.h>
38976int
38977main ()
38978{
38979pthread_create(0,0,0,0);
38980 ;
38981 return 0;
38982}
38983_ACEOF
38984rm -f conftest.$ac_objext conftest$ac_exeext
38985if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 38986 (eval $ac_link) 2>conftest.er1
a848cd7e 38987 ac_status=$?
ac1cb8d3
VS
38988 grep -v '^ *+' conftest.er1 >conftest.err
38989 rm -f conftest.er1
38990 cat conftest.err >&5
a848cd7e
SC
38991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38992 (exit $ac_status); } &&
479c790c 38993 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
38994 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38995 (eval $ac_try) 2>&5
38996 ac_status=$?
38997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38998 (exit $ac_status); }; } &&
38999 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
39000 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39001 (eval $ac_try) 2>&5
39002 ac_status=$?
39003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39004 (exit $ac_status); }; }; then
39005 THREADS_OK=yes
39006else
39007 echo "$as_me: failed program was:" >&5
39008sed 's/^/| /' conftest.$ac_ext >&5
39009
39010fi
ac1cb8d3
VS
39011rm -f conftest.err conftest.$ac_objext \
39012 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
39013
39014 LIBS="$save_LIBS"
e56f4f9e 39015 CXXFLAGS="$save_CXXFLAGS"
a848cd7e
SC
39016
39017 echo "$as_me:$LINENO: result: $THREADS_OK" >&5
39018echo "${ECHO_T}$THREADS_OK" >&6
39019 if test "x$THREADS_OK" = "xyes"; then
39020 break;
39021 fi
39022
39023 THREADS_LINK=""
e56f4f9e 39024 THREADS_CXXFLAGS=""
a848cd7e
SC
39025 done
39026
39027 if test "x$THREADS_OK" != "xyes"; then
39028 wxUSE_THREADS=no
39029 { echo "$as_me:$LINENO: WARNING: No thread support on this system... disabled" >&5
39030echo "$as_me: WARNING: No thread support on this system... disabled" >&2;}
39031 else
e56f4f9e 39032 LDFLAGS="$THREADS_CXXFLAGS $LDFLAGS"
a848cd7e
SC
39033 LIBS="$THREADS_LINK $LIBS"
39034
39035 echo "$as_me:$LINENO: checking if more special flags are required for pthreads" >&5
39036echo $ECHO_N "checking if more special flags are required for pthreads... $ECHO_C" >&6
39037 flag=no
39038 case "${host}" in
39039 *-aix*)
39040 LDFLAGS="-L/usr/lib/threads $LDFLAGS"
39041 flag="-D_THREAD_SAFE"
39042 ;;
39043 *-freebsd*)
39044 flag="-D_THREAD_SAFE"
39045 ;;
39046 *-hp-hpux* )
39047 flag="-D_REENTRANT"
39048 if test "x$GCC" != "xyes"; then
39049 flag="$flag -D_RWSTD_MULTI_THREAD"
39050 fi
39051 ;;
39052 *solaris* | alpha*-osf*)
39053 flag="-D_REENTRANT"
39054 ;;
39055 esac
39056 echo "$as_me:$LINENO: result: ${flag}" >&5
39057echo "${ECHO_T}${flag}" >&6
39058 if test "x$flag" != xno; then
e56f4f9e 39059 THREADS_CXXFLAGS="$THREADS_CXXFLAGS $flag"
a848cd7e
SC
39060 fi
39061
e56f4f9e 39062 WXCONFIG_CXXFLAGS="$WXCONFIG_CXXFLAGS $THREADS_CXXFLAGS"
a848cd7e
SC
39063 fi
39064 fi
39065
39066 if test "$wxUSE_THREADS" = "yes" ; then
39067
39068for ac_func in thr_setconcurrency
39069do
39070as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39071echo "$as_me:$LINENO: checking for $ac_func" >&5
39072echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
39073if eval "test \"\${$as_ac_var+set}\" = set"; then
39074 echo $ECHO_N "(cached) $ECHO_C" >&6
39075else
39076 cat >conftest.$ac_ext <<_ACEOF
39077/* confdefs.h. */
39078_ACEOF
39079cat confdefs.h >>conftest.$ac_ext
39080cat >>conftest.$ac_ext <<_ACEOF
39081/* end confdefs.h. */
ac1cb8d3
VS
39082/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
39083 For example, HP-UX 11i <limits.h> declares gettimeofday. */
39084#define $ac_func innocuous_$ac_func
39085
a848cd7e
SC
39086/* System header to define __stub macros and hopefully few prototypes,
39087 which can conflict with char $ac_func (); below.
39088 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39089 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 39090
a848cd7e
SC
39091#ifdef __STDC__
39092# include <limits.h>
39093#else
39094# include <assert.h>
39095#endif
ac1cb8d3
VS
39096
39097#undef $ac_func
39098
a848cd7e
SC
39099/* Override any gcc2 internal prototype to avoid an error. */
39100#ifdef __cplusplus
39101extern "C"
39102{
39103#endif
39104/* We use char because int might match the return type of a gcc2
39105 builtin and then its argument prototype would still apply. */
39106char $ac_func ();
39107/* The GNU C library defines this for functions which it implements
39108 to always fail with ENOSYS. Some functions are actually named
39109 something starting with __ and the normal name is an alias. */
39110#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
39111choke me
39112#else
39113char (*f) () = $ac_func;
39114#endif
39115#ifdef __cplusplus
39116}
39117#endif
39118
39119int
39120main ()
39121{
39122return f != $ac_func;
39123 ;
39124 return 0;
39125}
39126_ACEOF
39127rm -f conftest.$ac_objext conftest$ac_exeext
39128if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 39129 (eval $ac_link) 2>conftest.er1
a848cd7e 39130 ac_status=$?
ac1cb8d3
VS
39131 grep -v '^ *+' conftest.er1 >conftest.err
39132 rm -f conftest.er1
39133 cat conftest.err >&5
a848cd7e
SC
39134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39135 (exit $ac_status); } &&
479c790c 39136 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
39137 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39138 (eval $ac_try) 2>&5
39139 ac_status=$?
39140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39141 (exit $ac_status); }; } &&
39142 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
39143 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39144 (eval $ac_try) 2>&5
39145 ac_status=$?
39146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39147 (exit $ac_status); }; }; then
39148 eval "$as_ac_var=yes"
39149else
39150 echo "$as_me: failed program was:" >&5
39151sed 's/^/| /' conftest.$ac_ext >&5
39152
39153eval "$as_ac_var=no"
39154fi
ac1cb8d3
VS
39155rm -f conftest.err conftest.$ac_objext \
39156 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
39157fi
39158echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
39159echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
39160if test `eval echo '${'$as_ac_var'}'` = yes; then
39161 cat >>confdefs.h <<_ACEOF
39162#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39163_ACEOF
39164
39165fi
39166done
39167
39168
6ebeb4c7
VZ
39169 echo "$as_me:$LINENO: checking for pthread_cleanup_push/pop" >&5
39170echo $ECHO_N "checking for pthread_cleanup_push/pop... $ECHO_C" >&6
39171if test "${wx_cv_func_pthread_cleanup+set}" = set; then
39172 echo $ECHO_N "(cached) $ECHO_C" >&6
39173else
39174
39175 cat >conftest.$ac_ext <<_ACEOF
39176/* confdefs.h. */
39177_ACEOF
39178cat confdefs.h >>conftest.$ac_ext
39179cat >>conftest.$ac_ext <<_ACEOF
39180/* end confdefs.h. */
39181#include <pthread.h>
39182 void ThreadCleanupFunc(void *p);
39183
39184int
39185main ()
39186{
39187
39188 void *p;
39189 pthread_cleanup_push(ThreadCleanupFunc, p);
39190 pthread_cleanup_pop(0);
39191
39192 ;
39193 return 0;
39194}
39195_ACEOF
39196rm -f conftest.$ac_objext
39197if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39198 (eval $ac_compile) 2>conftest.er1
39199 ac_status=$?
39200 grep -v '^ *+' conftest.er1 >conftest.err
39201 rm -f conftest.er1
39202 cat conftest.err >&5
39203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39204 (exit $ac_status); } &&
479c790c 39205 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6ebeb4c7
VZ
39206 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39207 (eval $ac_try) 2>&5
39208 ac_status=$?
39209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39210 (exit $ac_status); }; } &&
39211 { ac_try='test -s conftest.$ac_objext'
39212 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39213 (eval $ac_try) 2>&5
39214 ac_status=$?
39215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39216 (exit $ac_status); }; }; then
39217
39218 wx_cv_func_pthread_cleanup=yes
39219
39220else
39221 echo "$as_me: failed program was:" >&5
39222sed 's/^/| /' conftest.$ac_ext >&5
39223
39224
39225 wx_cv_func_pthread_cleanup=no
39226
39227
39228fi
39229rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39230
39231fi
39232echo "$as_me:$LINENO: result: $wx_cv_func_pthread_cleanup" >&5
39233echo "${ECHO_T}$wx_cv_func_pthread_cleanup" >&6
39234 if test "x$wx_cv_func_pthread_cleanup" = "xyes"; then
39235 cat >>confdefs.h <<\_ACEOF
39236#define wxHAVE_PTHREAD_CLEANUP 1
39237_ACEOF
39238
39239 fi
39240
a848cd7e
SC
39241
39242for ac_header in sched.h
39243do
39244as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
39245if eval "test \"\${$as_ac_Header+set}\" = set"; then
39246 echo "$as_me:$LINENO: checking for $ac_header" >&5
39247echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
39248if eval "test \"\${$as_ac_Header+set}\" = set"; then
39249 echo $ECHO_N "(cached) $ECHO_C" >&6
39250fi
39251echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
39252echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
39253else
39254 # Is the header compilable?
39255echo "$as_me:$LINENO: checking $ac_header usability" >&5
39256echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
39257cat >conftest.$ac_ext <<_ACEOF
39258/* confdefs.h. */
39259_ACEOF
39260cat confdefs.h >>conftest.$ac_ext
39261cat >>conftest.$ac_ext <<_ACEOF
39262/* end confdefs.h. */
39263$ac_includes_default
39264#include <$ac_header>
39265_ACEOF
39266rm -f conftest.$ac_objext
39267if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 39268 (eval $ac_compile) 2>conftest.er1
a848cd7e 39269 ac_status=$?
ac1cb8d3
VS
39270 grep -v '^ *+' conftest.er1 >conftest.err
39271 rm -f conftest.er1
39272 cat conftest.err >&5
a848cd7e
SC
39273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39274 (exit $ac_status); } &&
479c790c 39275 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
39276 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39277 (eval $ac_try) 2>&5
39278 ac_status=$?
39279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39280 (exit $ac_status); }; } &&
39281 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
39282 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39283 (eval $ac_try) 2>&5
39284 ac_status=$?
39285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39286 (exit $ac_status); }; }; then
39287 ac_header_compiler=yes
39288else
39289 echo "$as_me: failed program was:" >&5
39290sed 's/^/| /' conftest.$ac_ext >&5
39291
39292ac_header_compiler=no
39293fi
ac1cb8d3 39294rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
39295echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
39296echo "${ECHO_T}$ac_header_compiler" >&6
39297
39298# Is the header present?
39299echo "$as_me:$LINENO: checking $ac_header presence" >&5
39300echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
39301cat >conftest.$ac_ext <<_ACEOF
39302/* confdefs.h. */
39303_ACEOF
39304cat confdefs.h >>conftest.$ac_ext
39305cat >>conftest.$ac_ext <<_ACEOF
39306/* end confdefs.h. */
39307#include <$ac_header>
39308_ACEOF
39309if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
39310 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
39311 ac_status=$?
39312 grep -v '^ *+' conftest.er1 >conftest.err
39313 rm -f conftest.er1
39314 cat conftest.err >&5
39315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39316 (exit $ac_status); } >/dev/null; then
39317 if test -s conftest.err; then
5d7b7554
VZ
39318 ac_cpp_err=$ac_cxx_preproc_warn_flag
39319 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
39320 else
39321 ac_cpp_err=
39322 fi
39323else
39324 ac_cpp_err=yes
39325fi
39326if test -z "$ac_cpp_err"; then
39327 ac_header_preproc=yes
39328else
39329 echo "$as_me: failed program was:" >&5
39330sed 's/^/| /' conftest.$ac_ext >&5
39331
39332 ac_header_preproc=no
39333fi
39334rm -f conftest.err conftest.$ac_ext
39335echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
39336echo "${ECHO_T}$ac_header_preproc" >&6
39337
39338# So? What about this header?
5d7b7554 39339case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
ac1cb8d3 39340 yes:no: )
a848cd7e
SC
39341 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
39342echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
39343 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
39344echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
39345 ac_header_preproc=yes
a848cd7e 39346 ;;
ac1cb8d3 39347 no:yes:* )
a848cd7e
SC
39348 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
39349echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
39350 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
39351echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
39352 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
39353echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
39354 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
39355echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
39356 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
39357echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
39358 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
39359echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
39360 (
39361 cat <<\_ASBOX
ac1cb8d3
VS
39362## ----------------------------------------- ##
39363## Report this to wx-dev@lists.wxwidgets.org ##
39364## ----------------------------------------- ##
a848cd7e
SC
39365_ASBOX
39366 ) |
39367 sed "s/^/$as_me: WARNING: /" >&2
39368 ;;
39369esac
39370echo "$as_me:$LINENO: checking for $ac_header" >&5
39371echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
39372if eval "test \"\${$as_ac_Header+set}\" = set"; then
39373 echo $ECHO_N "(cached) $ECHO_C" >&6
39374else
ac1cb8d3 39375 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
39376fi
39377echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
39378echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
39379
39380fi
39381if test `eval echo '${'$as_ac_Header'}'` = yes; then
39382 cat >>confdefs.h <<_ACEOF
39383#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
39384_ACEOF
39385
39386fi
39387
39388done
39389
39390 if test "$ac_cv_header_sched_h" = "yes"; then
39391 echo "$as_me:$LINENO: checking for sched_yield" >&5
39392echo $ECHO_N "checking for sched_yield... $ECHO_C" >&6
39393if test "${ac_cv_func_sched_yield+set}" = set; then
39394 echo $ECHO_N "(cached) $ECHO_C" >&6
39395else
39396 cat >conftest.$ac_ext <<_ACEOF
39397/* confdefs.h. */
39398_ACEOF
39399cat confdefs.h >>conftest.$ac_ext
39400cat >>conftest.$ac_ext <<_ACEOF
39401/* end confdefs.h. */
ac1cb8d3
VS
39402/* Define sched_yield to an innocuous variant, in case <limits.h> declares sched_yield.
39403 For example, HP-UX 11i <limits.h> declares gettimeofday. */
39404#define sched_yield innocuous_sched_yield
39405
a848cd7e
SC
39406/* System header to define __stub macros and hopefully few prototypes,
39407 which can conflict with char sched_yield (); below.
39408 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39409 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 39410
a848cd7e
SC
39411#ifdef __STDC__
39412# include <limits.h>
39413#else
39414# include <assert.h>
39415#endif
ac1cb8d3
VS
39416
39417#undef sched_yield
39418
a848cd7e
SC
39419/* Override any gcc2 internal prototype to avoid an error. */
39420#ifdef __cplusplus
39421extern "C"
39422{
39423#endif
39424/* We use char because int might match the return type of a gcc2
39425 builtin and then its argument prototype would still apply. */
39426char sched_yield ();
39427/* The GNU C library defines this for functions which it implements
39428 to always fail with ENOSYS. Some functions are actually named
39429 something starting with __ and the normal name is an alias. */
39430#if defined (__stub_sched_yield) || defined (__stub___sched_yield)
39431choke me
39432#else
39433char (*f) () = sched_yield;
39434#endif
39435#ifdef __cplusplus
39436}
39437#endif
39438
39439int
39440main ()
39441{
39442return f != sched_yield;
39443 ;
39444 return 0;
39445}
39446_ACEOF
39447rm -f conftest.$ac_objext conftest$ac_exeext
39448if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 39449 (eval $ac_link) 2>conftest.er1
a848cd7e 39450 ac_status=$?
ac1cb8d3
VS
39451 grep -v '^ *+' conftest.er1 >conftest.err
39452 rm -f conftest.er1
39453 cat conftest.err >&5
a848cd7e
SC
39454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39455 (exit $ac_status); } &&
479c790c 39456 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
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_exeext'
a848cd7e
SC
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_sched_yield=yes
39469else
39470 echo "$as_me: failed program was:" >&5
39471sed 's/^/| /' conftest.$ac_ext >&5
39472
39473ac_cv_func_sched_yield=no
39474fi
ac1cb8d3
VS
39475rm -f conftest.err conftest.$ac_objext \
39476 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
39477fi
39478echo "$as_me:$LINENO: result: $ac_cv_func_sched_yield" >&5
39479echo "${ECHO_T}$ac_cv_func_sched_yield" >&6
39480if test $ac_cv_func_sched_yield = yes; then
39481 cat >>confdefs.h <<\_ACEOF
39482#define HAVE_SCHED_YIELD 1
39483_ACEOF
39484
39485else
39486
39487 echo "$as_me:$LINENO: checking for sched_yield in -lposix4" >&5
39488echo $ECHO_N "checking for sched_yield in -lposix4... $ECHO_C" >&6
39489if test "${ac_cv_lib_posix4_sched_yield+set}" = set; then
39490 echo $ECHO_N "(cached) $ECHO_C" >&6
39491else
39492 ac_check_lib_save_LIBS=$LIBS
39493LIBS="-lposix4 $LIBS"
39494cat >conftest.$ac_ext <<_ACEOF
39495/* confdefs.h. */
39496_ACEOF
39497cat confdefs.h >>conftest.$ac_ext
39498cat >>conftest.$ac_ext <<_ACEOF
39499/* end confdefs.h. */
39500
39501/* Override any gcc2 internal prototype to avoid an error. */
39502#ifdef __cplusplus
39503extern "C"
39504#endif
39505/* We use char because int might match the return type of a gcc2
39506 builtin and then its argument prototype would still apply. */
39507char sched_yield ();
39508int
39509main ()
39510{
39511sched_yield ();
39512 ;
39513 return 0;
39514}
39515_ACEOF
39516rm -f conftest.$ac_objext conftest$ac_exeext
39517if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 39518 (eval $ac_link) 2>conftest.er1
a848cd7e 39519 ac_status=$?
ac1cb8d3
VS
39520 grep -v '^ *+' conftest.er1 >conftest.err
39521 rm -f conftest.er1
39522 cat conftest.err >&5
a848cd7e
SC
39523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39524 (exit $ac_status); } &&
479c790c 39525 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
39526 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39527 (eval $ac_try) 2>&5
39528 ac_status=$?
39529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39530 (exit $ac_status); }; } &&
39531 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
39532 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39533 (eval $ac_try) 2>&5
39534 ac_status=$?
39535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39536 (exit $ac_status); }; }; then
39537 ac_cv_lib_posix4_sched_yield=yes
39538else
39539 echo "$as_me: failed program was:" >&5
39540sed 's/^/| /' conftest.$ac_ext >&5
39541
39542ac_cv_lib_posix4_sched_yield=no
39543fi
ac1cb8d3
VS
39544rm -f conftest.err conftest.$ac_objext \
39545 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
39546LIBS=$ac_check_lib_save_LIBS
39547fi
39548echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sched_yield" >&5
39549echo "${ECHO_T}$ac_cv_lib_posix4_sched_yield" >&6
39550if test $ac_cv_lib_posix4_sched_yield = yes; then
39551 cat >>confdefs.h <<\_ACEOF
39552#define HAVE_SCHED_YIELD 1
39553_ACEOF
39554 POSIX4_LINK=" -lposix4"
39555else
39556 { echo "$as_me:$LINENO: WARNING: wxThread::Yield will not work properly" >&5
39557echo "$as_me: WARNING: wxThread::Yield will not work properly" >&2;}
39558
39559fi
39560
39561
39562
39563fi
39564
39565 fi
39566
39567 HAVE_PRIOR_FUNCS=0
39568 echo "$as_me:$LINENO: checking for pthread_attr_getschedpolicy" >&5
39569echo $ECHO_N "checking for pthread_attr_getschedpolicy... $ECHO_C" >&6
39570if test "${ac_cv_func_pthread_attr_getschedpolicy+set}" = set; then
39571 echo $ECHO_N "(cached) $ECHO_C" >&6
39572else
39573 cat >conftest.$ac_ext <<_ACEOF
39574/* confdefs.h. */
39575_ACEOF
39576cat confdefs.h >>conftest.$ac_ext
39577cat >>conftest.$ac_ext <<_ACEOF
39578/* end confdefs.h. */
ac1cb8d3
VS
39579/* Define pthread_attr_getschedpolicy to an innocuous variant, in case <limits.h> declares pthread_attr_getschedpolicy.
39580 For example, HP-UX 11i <limits.h> declares gettimeofday. */
39581#define pthread_attr_getschedpolicy innocuous_pthread_attr_getschedpolicy
39582
a848cd7e
SC
39583/* System header to define __stub macros and hopefully few prototypes,
39584 which can conflict with char pthread_attr_getschedpolicy (); below.
39585 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39586 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 39587
a848cd7e
SC
39588#ifdef __STDC__
39589# include <limits.h>
39590#else
39591# include <assert.h>
39592#endif
ac1cb8d3
VS
39593
39594#undef pthread_attr_getschedpolicy
39595
a848cd7e
SC
39596/* Override any gcc2 internal prototype to avoid an error. */
39597#ifdef __cplusplus
39598extern "C"
39599{
39600#endif
39601/* We use char because int might match the return type of a gcc2
39602 builtin and then its argument prototype would still apply. */
39603char pthread_attr_getschedpolicy ();
39604/* The GNU C library defines this for functions which it implements
39605 to always fail with ENOSYS. Some functions are actually named
39606 something starting with __ and the normal name is an alias. */
39607#if defined (__stub_pthread_attr_getschedpolicy) || defined (__stub___pthread_attr_getschedpolicy)
39608choke me
39609#else
39610char (*f) () = pthread_attr_getschedpolicy;
39611#endif
39612#ifdef __cplusplus
39613}
39614#endif
39615
39616int
39617main ()
39618{
39619return f != pthread_attr_getschedpolicy;
39620 ;
39621 return 0;
39622}
39623_ACEOF
39624rm -f conftest.$ac_objext conftest$ac_exeext
39625if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 39626 (eval $ac_link) 2>conftest.er1
a848cd7e 39627 ac_status=$?
ac1cb8d3
VS
39628 grep -v '^ *+' conftest.er1 >conftest.err
39629 rm -f conftest.er1
39630 cat conftest.err >&5
a848cd7e
SC
39631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39632 (exit $ac_status); } &&
479c790c 39633 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
39634 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39635 (eval $ac_try) 2>&5
39636 ac_status=$?
39637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39638 (exit $ac_status); }; } &&
39639 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
39640 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39641 (eval $ac_try) 2>&5
39642 ac_status=$?
39643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39644 (exit $ac_status); }; }; then
39645 ac_cv_func_pthread_attr_getschedpolicy=yes
39646else
39647 echo "$as_me: failed program was:" >&5
39648sed 's/^/| /' conftest.$ac_ext >&5
39649
39650ac_cv_func_pthread_attr_getschedpolicy=no
39651fi
ac1cb8d3
VS
39652rm -f conftest.err conftest.$ac_objext \
39653 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
39654fi
39655echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_getschedpolicy" >&5
39656echo "${ECHO_T}$ac_cv_func_pthread_attr_getschedpolicy" >&6
39657if test $ac_cv_func_pthread_attr_getschedpolicy = yes; then
39658 echo "$as_me:$LINENO: checking for pthread_attr_setschedparam" >&5
39659echo $ECHO_N "checking for pthread_attr_setschedparam... $ECHO_C" >&6
39660if test "${ac_cv_func_pthread_attr_setschedparam+set}" = set; then
39661 echo $ECHO_N "(cached) $ECHO_C" >&6
39662else
39663 cat >conftest.$ac_ext <<_ACEOF
39664/* confdefs.h. */
39665_ACEOF
39666cat confdefs.h >>conftest.$ac_ext
39667cat >>conftest.$ac_ext <<_ACEOF
39668/* end confdefs.h. */
ac1cb8d3
VS
39669/* Define pthread_attr_setschedparam to an innocuous variant, in case <limits.h> declares pthread_attr_setschedparam.
39670 For example, HP-UX 11i <limits.h> declares gettimeofday. */
39671#define pthread_attr_setschedparam innocuous_pthread_attr_setschedparam
39672
a848cd7e
SC
39673/* System header to define __stub macros and hopefully few prototypes,
39674 which can conflict with char pthread_attr_setschedparam (); below.
39675 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39676 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 39677
a848cd7e
SC
39678#ifdef __STDC__
39679# include <limits.h>
39680#else
39681# include <assert.h>
39682#endif
ac1cb8d3
VS
39683
39684#undef pthread_attr_setschedparam
39685
a848cd7e
SC
39686/* Override any gcc2 internal prototype to avoid an error. */
39687#ifdef __cplusplus
39688extern "C"
39689{
39690#endif
39691/* We use char because int might match the return type of a gcc2
39692 builtin and then its argument prototype would still apply. */
39693char pthread_attr_setschedparam ();
39694/* The GNU C library defines this for functions which it implements
39695 to always fail with ENOSYS. Some functions are actually named
39696 something starting with __ and the normal name is an alias. */
39697#if defined (__stub_pthread_attr_setschedparam) || defined (__stub___pthread_attr_setschedparam)
39698choke me
39699#else
39700char (*f) () = pthread_attr_setschedparam;
39701#endif
39702#ifdef __cplusplus
39703}
39704#endif
39705
39706int
39707main ()
39708{
39709return f != pthread_attr_setschedparam;
39710 ;
39711 return 0;
39712}
39713_ACEOF
39714rm -f conftest.$ac_objext conftest$ac_exeext
39715if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 39716 (eval $ac_link) 2>conftest.er1
a848cd7e 39717 ac_status=$?
ac1cb8d3
VS
39718 grep -v '^ *+' conftest.er1 >conftest.err
39719 rm -f conftest.er1
39720 cat conftest.err >&5
a848cd7e
SC
39721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39722 (exit $ac_status); } &&
479c790c 39723 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
39724 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39725 (eval $ac_try) 2>&5
39726 ac_status=$?
39727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39728 (exit $ac_status); }; } &&
39729 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
39730 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39731 (eval $ac_try) 2>&5
39732 ac_status=$?
39733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39734 (exit $ac_status); }; }; then
39735 ac_cv_func_pthread_attr_setschedparam=yes
39736else
39737 echo "$as_me: failed program was:" >&5
39738sed 's/^/| /' conftest.$ac_ext >&5
39739
39740ac_cv_func_pthread_attr_setschedparam=no
39741fi
ac1cb8d3
VS
39742rm -f conftest.err conftest.$ac_objext \
39743 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
39744fi
39745echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_setschedparam" >&5
39746echo "${ECHO_T}$ac_cv_func_pthread_attr_setschedparam" >&6
39747if test $ac_cv_func_pthread_attr_setschedparam = yes; then
39748 echo "$as_me:$LINENO: checking for sched_get_priority_max" >&5
39749echo $ECHO_N "checking for sched_get_priority_max... $ECHO_C" >&6
39750if test "${ac_cv_func_sched_get_priority_max+set}" = set; then
39751 echo $ECHO_N "(cached) $ECHO_C" >&6
39752else
39753 cat >conftest.$ac_ext <<_ACEOF
39754/* confdefs.h. */
39755_ACEOF
39756cat confdefs.h >>conftest.$ac_ext
39757cat >>conftest.$ac_ext <<_ACEOF
39758/* end confdefs.h. */
ac1cb8d3
VS
39759/* Define sched_get_priority_max to an innocuous variant, in case <limits.h> declares sched_get_priority_max.
39760 For example, HP-UX 11i <limits.h> declares gettimeofday. */
39761#define sched_get_priority_max innocuous_sched_get_priority_max
39762
a848cd7e
SC
39763/* System header to define __stub macros and hopefully few prototypes,
39764 which can conflict with char sched_get_priority_max (); below.
39765 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39766 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 39767
a848cd7e
SC
39768#ifdef __STDC__
39769# include <limits.h>
39770#else
39771# include <assert.h>
39772#endif
ac1cb8d3
VS
39773
39774#undef sched_get_priority_max
39775
a848cd7e
SC
39776/* Override any gcc2 internal prototype to avoid an error. */
39777#ifdef __cplusplus
39778extern "C"
39779{
39780#endif
39781/* We use char because int might match the return type of a gcc2
39782 builtin and then its argument prototype would still apply. */
39783char sched_get_priority_max ();
39784/* The GNU C library defines this for functions which it implements
39785 to always fail with ENOSYS. Some functions are actually named
39786 something starting with __ and the normal name is an alias. */
39787#if defined (__stub_sched_get_priority_max) || defined (__stub___sched_get_priority_max)
39788choke me
39789#else
39790char (*f) () = sched_get_priority_max;
39791#endif
39792#ifdef __cplusplus
39793}
39794#endif
39795
39796int
39797main ()
39798{
39799return f != sched_get_priority_max;
39800 ;
39801 return 0;
39802}
39803_ACEOF
39804rm -f conftest.$ac_objext conftest$ac_exeext
39805if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 39806 (eval $ac_link) 2>conftest.er1
a848cd7e 39807 ac_status=$?
ac1cb8d3
VS
39808 grep -v '^ *+' conftest.er1 >conftest.err
39809 rm -f conftest.er1
39810 cat conftest.err >&5
a848cd7e
SC
39811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39812 (exit $ac_status); } &&
479c790c 39813 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
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_exeext'
a848cd7e
SC
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_sched_get_priority_max=yes
39826else
39827 echo "$as_me: failed program was:" >&5
39828sed 's/^/| /' conftest.$ac_ext >&5
39829
39830ac_cv_func_sched_get_priority_max=no
39831fi
ac1cb8d3
VS
39832rm -f conftest.err conftest.$ac_objext \
39833 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
39834fi
39835echo "$as_me:$LINENO: result: $ac_cv_func_sched_get_priority_max" >&5
39836echo "${ECHO_T}$ac_cv_func_sched_get_priority_max" >&6
39837if test $ac_cv_func_sched_get_priority_max = yes; then
39838 HAVE_PRIOR_FUNCS=1
39839else
39840 echo "$as_me:$LINENO: checking for sched_get_priority_max in -lposix4" >&5
39841echo $ECHO_N "checking for sched_get_priority_max in -lposix4... $ECHO_C" >&6
39842if test "${ac_cv_lib_posix4_sched_get_priority_max+set}" = set; then
39843 echo $ECHO_N "(cached) $ECHO_C" >&6
39844else
39845 ac_check_lib_save_LIBS=$LIBS
39846LIBS="-lposix4 $LIBS"
39847cat >conftest.$ac_ext <<_ACEOF
39848/* confdefs.h. */
39849_ACEOF
39850cat confdefs.h >>conftest.$ac_ext
39851cat >>conftest.$ac_ext <<_ACEOF
39852/* end confdefs.h. */
39853
39854/* Override any gcc2 internal prototype to avoid an error. */
39855#ifdef __cplusplus
39856extern "C"
39857#endif
39858/* We use char because int might match the return type of a gcc2
39859 builtin and then its argument prototype would still apply. */
39860char sched_get_priority_max ();
39861int
39862main ()
39863{
39864sched_get_priority_max ();
39865 ;
39866 return 0;
39867}
39868_ACEOF
39869rm -f conftest.$ac_objext conftest$ac_exeext
39870if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 39871 (eval $ac_link) 2>conftest.er1
a848cd7e 39872 ac_status=$?
ac1cb8d3
VS
39873 grep -v '^ *+' conftest.er1 >conftest.err
39874 rm -f conftest.er1
39875 cat conftest.err >&5
a848cd7e
SC
39876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39877 (exit $ac_status); } &&
479c790c 39878 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
39879 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39880 (eval $ac_try) 2>&5
39881 ac_status=$?
39882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39883 (exit $ac_status); }; } &&
39884 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
39885 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39886 (eval $ac_try) 2>&5
39887 ac_status=$?
39888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39889 (exit $ac_status); }; }; then
39890 ac_cv_lib_posix4_sched_get_priority_max=yes
39891else
39892 echo "$as_me: failed program was:" >&5
39893sed 's/^/| /' conftest.$ac_ext >&5
39894
39895ac_cv_lib_posix4_sched_get_priority_max=no
39896fi
ac1cb8d3
VS
39897rm -f conftest.err conftest.$ac_objext \
39898 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
39899LIBS=$ac_check_lib_save_LIBS
39900fi
39901echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sched_get_priority_max" >&5
39902echo "${ECHO_T}$ac_cv_lib_posix4_sched_get_priority_max" >&6
39903if test $ac_cv_lib_posix4_sched_get_priority_max = yes; then
39904
39905 HAVE_PRIOR_FUNCS=1
39906 POSIX4_LINK=" -lposix4"
39907
39908fi
39909
39910
39911fi
39912
39913
39914fi
39915
39916
39917fi
39918
39919
39920 if test "$HAVE_PRIOR_FUNCS" = 1; then
39921 cat >>confdefs.h <<\_ACEOF
39922#define HAVE_THREAD_PRIORITY_FUNCTIONS 1
39923_ACEOF
39924
39925 else
39926 { echo "$as_me:$LINENO: WARNING: Setting thread priority will not work" >&5
39927echo "$as_me: WARNING: Setting thread priority will not work" >&2;}
39928 fi
39929
39930 echo "$as_me:$LINENO: checking for pthread_cancel" >&5
39931echo $ECHO_N "checking for pthread_cancel... $ECHO_C" >&6
39932if test "${ac_cv_func_pthread_cancel+set}" = set; then
39933 echo $ECHO_N "(cached) $ECHO_C" >&6
39934else
39935 cat >conftest.$ac_ext <<_ACEOF
39936/* confdefs.h. */
39937_ACEOF
39938cat confdefs.h >>conftest.$ac_ext
39939cat >>conftest.$ac_ext <<_ACEOF
39940/* end confdefs.h. */
ac1cb8d3
VS
39941/* Define pthread_cancel to an innocuous variant, in case <limits.h> declares pthread_cancel.
39942 For example, HP-UX 11i <limits.h> declares gettimeofday. */
39943#define pthread_cancel innocuous_pthread_cancel
39944
a848cd7e
SC
39945/* System header to define __stub macros and hopefully few prototypes,
39946 which can conflict with char pthread_cancel (); below.
39947 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39948 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 39949
a848cd7e
SC
39950#ifdef __STDC__
39951# include <limits.h>
39952#else
39953# include <assert.h>
39954#endif
ac1cb8d3
VS
39955
39956#undef pthread_cancel
39957
a848cd7e
SC
39958/* Override any gcc2 internal prototype to avoid an error. */
39959#ifdef __cplusplus
39960extern "C"
39961{
39962#endif
39963/* We use char because int might match the return type of a gcc2
39964 builtin and then its argument prototype would still apply. */
39965char pthread_cancel ();
39966/* The GNU C library defines this for functions which it implements
39967 to always fail with ENOSYS. Some functions are actually named
39968 something starting with __ and the normal name is an alias. */
39969#if defined (__stub_pthread_cancel) || defined (__stub___pthread_cancel)
39970choke me
39971#else
39972char (*f) () = pthread_cancel;
39973#endif
39974#ifdef __cplusplus
39975}
39976#endif
39977
39978int
39979main ()
39980{
39981return f != pthread_cancel;
39982 ;
39983 return 0;
39984}
39985_ACEOF
39986rm -f conftest.$ac_objext conftest$ac_exeext
39987if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 39988 (eval $ac_link) 2>conftest.er1
a848cd7e 39989 ac_status=$?
ac1cb8d3
VS
39990 grep -v '^ *+' conftest.er1 >conftest.err
39991 rm -f conftest.er1
39992 cat conftest.err >&5
a848cd7e
SC
39993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39994 (exit $ac_status); } &&
479c790c 39995 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
39996 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39997 (eval $ac_try) 2>&5
39998 ac_status=$?
39999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40000 (exit $ac_status); }; } &&
40001 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
40002 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40003 (eval $ac_try) 2>&5
40004 ac_status=$?
40005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40006 (exit $ac_status); }; }; then
40007 ac_cv_func_pthread_cancel=yes
40008else
40009 echo "$as_me: failed program was:" >&5
40010sed 's/^/| /' conftest.$ac_ext >&5
40011
40012ac_cv_func_pthread_cancel=no
40013fi
ac1cb8d3
VS
40014rm -f conftest.err conftest.$ac_objext \
40015 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
40016fi
40017echo "$as_me:$LINENO: result: $ac_cv_func_pthread_cancel" >&5
40018echo "${ECHO_T}$ac_cv_func_pthread_cancel" >&6
40019if test $ac_cv_func_pthread_cancel = yes; then
40020 cat >>confdefs.h <<\_ACEOF
40021#define HAVE_PTHREAD_CANCEL 1
40022_ACEOF
40023
40024else
40025 { echo "$as_me:$LINENO: WARNING: wxThread::Kill() will not work properly" >&5
40026echo "$as_me: WARNING: wxThread::Kill() will not work properly" >&2;}
40027fi
40028
40029
abc736fd
MW
40030 echo "$as_me:$LINENO: checking for pthread_attr_setstacksize" >&5
40031echo $ECHO_N "checking for pthread_attr_setstacksize... $ECHO_C" >&6
40032if test "${ac_cv_func_pthread_attr_setstacksize+set}" = set; then
40033 echo $ECHO_N "(cached) $ECHO_C" >&6
40034else
40035 cat >conftest.$ac_ext <<_ACEOF
40036/* confdefs.h. */
40037_ACEOF
40038cat confdefs.h >>conftest.$ac_ext
40039cat >>conftest.$ac_ext <<_ACEOF
40040/* end confdefs.h. */
40041/* Define pthread_attr_setstacksize to an innocuous variant, in case <limits.h> declares pthread_attr_setstacksize.
40042 For example, HP-UX 11i <limits.h> declares gettimeofday. */
40043#define pthread_attr_setstacksize innocuous_pthread_attr_setstacksize
40044
40045/* System header to define __stub macros and hopefully few prototypes,
40046 which can conflict with char pthread_attr_setstacksize (); below.
40047 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40048 <limits.h> exists even on freestanding compilers. */
40049
40050#ifdef __STDC__
40051# include <limits.h>
40052#else
40053# include <assert.h>
40054#endif
40055
40056#undef pthread_attr_setstacksize
40057
40058/* Override any gcc2 internal prototype to avoid an error. */
40059#ifdef __cplusplus
40060extern "C"
40061{
40062#endif
40063/* We use char because int might match the return type of a gcc2
40064 builtin and then its argument prototype would still apply. */
40065char pthread_attr_setstacksize ();
40066/* The GNU C library defines this for functions which it implements
40067 to always fail with ENOSYS. Some functions are actually named
40068 something starting with __ and the normal name is an alias. */
40069#if defined (__stub_pthread_attr_setstacksize) || defined (__stub___pthread_attr_setstacksize)
40070choke me
40071#else
40072char (*f) () = pthread_attr_setstacksize;
40073#endif
40074#ifdef __cplusplus
40075}
40076#endif
40077
40078int
40079main ()
40080{
40081return f != pthread_attr_setstacksize;
40082 ;
40083 return 0;
40084}
40085_ACEOF
40086rm -f conftest.$ac_objext conftest$ac_exeext
40087if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40088 (eval $ac_link) 2>conftest.er1
40089 ac_status=$?
40090 grep -v '^ *+' conftest.er1 >conftest.err
40091 rm -f conftest.er1
40092 cat conftest.err >&5
40093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40094 (exit $ac_status); } &&
479c790c 40095 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
abc736fd
MW
40096 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40097 (eval $ac_try) 2>&5
40098 ac_status=$?
40099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40100 (exit $ac_status); }; } &&
40101 { ac_try='test -s conftest$ac_exeext'
40102 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40103 (eval $ac_try) 2>&5
40104 ac_status=$?
40105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40106 (exit $ac_status); }; }; then
40107 ac_cv_func_pthread_attr_setstacksize=yes
40108else
40109 echo "$as_me: failed program was:" >&5
40110sed 's/^/| /' conftest.$ac_ext >&5
40111
40112ac_cv_func_pthread_attr_setstacksize=no
40113fi
40114rm -f conftest.err conftest.$ac_objext \
40115 conftest$ac_exeext conftest.$ac_ext
40116fi
40117echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_setstacksize" >&5
40118echo "${ECHO_T}$ac_cv_func_pthread_attr_setstacksize" >&6
40119if test $ac_cv_func_pthread_attr_setstacksize = yes; then
40120 cat >>confdefs.h <<\_ACEOF
40121#define HAVE_PTHREAD_ATTR_SETSTACKSIZE 1
40122_ACEOF
40123
40124fi
40125
a848cd7e
SC
40126
40127
40128 echo "$as_me:$LINENO: checking for pthread_mutexattr_t" >&5
40129echo $ECHO_N "checking for pthread_mutexattr_t... $ECHO_C" >&6
40130if test "${wx_cv_type_pthread_mutexattr_t+set}" = set; then
40131 echo $ECHO_N "(cached) $ECHO_C" >&6
40132else
40133
40134 cat >conftest.$ac_ext <<_ACEOF
40135/* confdefs.h. */
40136_ACEOF
40137cat confdefs.h >>conftest.$ac_ext
40138cat >>conftest.$ac_ext <<_ACEOF
40139/* end confdefs.h. */
40140#include <pthread.h>
40141int
40142main ()
40143{
40144
40145 pthread_mutexattr_t attr;
40146 pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE);
40147
40148 ;
40149 return 0;
40150}
40151_ACEOF
40152rm -f conftest.$ac_objext
40153if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 40154 (eval $ac_compile) 2>conftest.er1
a848cd7e 40155 ac_status=$?
ac1cb8d3
VS
40156 grep -v '^ *+' conftest.er1 >conftest.err
40157 rm -f conftest.er1
40158 cat conftest.err >&5
a848cd7e
SC
40159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40160 (exit $ac_status); } &&
479c790c 40161 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
40162 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40163 (eval $ac_try) 2>&5
40164 ac_status=$?
40165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40166 (exit $ac_status); }; } &&
40167 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
40168 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40169 (eval $ac_try) 2>&5
40170 ac_status=$?
40171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40172 (exit $ac_status); }; }; then
123dca7d 40173 wx_cv_type_pthread_mutexattr_t=yes
a848cd7e
SC
40174else
40175 echo "$as_me: failed program was:" >&5
40176sed 's/^/| /' conftest.$ac_ext >&5
40177
123dca7d 40178wx_cv_type_pthread_mutexattr_t=no
a848cd7e
SC
40179
40180fi
ac1cb8d3 40181rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
40182
40183fi
40184echo "$as_me:$LINENO: result: $wx_cv_type_pthread_mutexattr_t" >&5
40185echo "${ECHO_T}$wx_cv_type_pthread_mutexattr_t" >&6
40186
40187 if test "$wx_cv_type_pthread_mutexattr_t" = "yes"; then
40188 cat >>confdefs.h <<\_ACEOF
40189#define HAVE_PTHREAD_MUTEXATTR_T 1
40190_ACEOF
40191
123dca7d
VZ
40192
40193 echo "$as_me:$LINENO: checking for pthread_mutexattr_settype declaration" >&5
40194echo $ECHO_N "checking for pthread_mutexattr_settype declaration... $ECHO_C" >&6
40195if test "${wx_cv_func_pthread_mutexattr_settype_decl+set}" = set; then
40196 echo $ECHO_N "(cached) $ECHO_C" >&6
40197else
40198
40199 cat >conftest.$ac_ext <<_ACEOF
40200/* confdefs.h. */
40201_ACEOF
40202cat confdefs.h >>conftest.$ac_ext
40203cat >>conftest.$ac_ext <<_ACEOF
40204/* end confdefs.h. */
40205#include <pthread.h>
40206int
40207main ()
40208{
40209
40210 pthread_mutexattr_t attr;
40211 pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE);
40212
40213 ;
40214 return 0;
40215}
40216_ACEOF
40217rm -f conftest.$ac_objext
40218if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40219 (eval $ac_compile) 2>conftest.er1
40220 ac_status=$?
40221 grep -v '^ *+' conftest.er1 >conftest.err
40222 rm -f conftest.er1
40223 cat conftest.err >&5
40224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40225 (exit $ac_status); } &&
479c790c 40226 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
123dca7d
VZ
40227 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40228 (eval $ac_try) 2>&5
40229 ac_status=$?
40230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40231 (exit $ac_status); }; } &&
40232 { ac_try='test -s conftest.$ac_objext'
40233 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40234 (eval $ac_try) 2>&5
40235 ac_status=$?
40236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40237 (exit $ac_status); }; }; then
40238 wx_cv_func_pthread_mutexattr_settype_decl=yes
40239else
40240 echo "$as_me: failed program was:" >&5
40241sed 's/^/| /' conftest.$ac_ext >&5
40242
40243wx_cv_func_pthread_mutexattr_settype_decl=no
40244
40245fi
40246rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40247
40248fi
40249echo "$as_me:$LINENO: result: $wx_cv_func_pthread_mutexattr_settype_decl" >&5
40250echo "${ECHO_T}$wx_cv_func_pthread_mutexattr_settype_decl" >&6
40251 if test "$wx_cv_func_pthread_mutexattr_settype_decl" = "yes"; then
40252 cat >>confdefs.h <<\_ACEOF
40253#define HAVE_PTHREAD_MUTEXATTR_SETTYPE_DECL 1
40254_ACEOF
40255
40256 fi
a848cd7e
SC
40257 else
40258 echo "$as_me:$LINENO: checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER" >&5
40259echo $ECHO_N "checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER... $ECHO_C" >&6
40260if test "${wx_cv_type_pthread_rec_mutex_init+set}" = set; then
40261 echo $ECHO_N "(cached) $ECHO_C" >&6
40262else
40263
40264 cat >conftest.$ac_ext <<_ACEOF
40265/* confdefs.h. */
40266_ACEOF
40267cat confdefs.h >>conftest.$ac_ext
40268cat >>conftest.$ac_ext <<_ACEOF
40269/* end confdefs.h. */
40270#include <pthread.h>
40271int
40272main ()
40273{
40274
40275 pthread_mutex_t attr = PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP;
40276
40277 ;
40278 return 0;
40279}
40280_ACEOF
40281rm -f conftest.$ac_objext
40282if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 40283 (eval $ac_compile) 2>conftest.er1
a848cd7e 40284 ac_status=$?
ac1cb8d3
VS
40285 grep -v '^ *+' conftest.er1 >conftest.err
40286 rm -f conftest.er1
40287 cat conftest.err >&5
a848cd7e
SC
40288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40289 (exit $ac_status); } &&
479c790c 40290 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
40291 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40292 (eval $ac_try) 2>&5
40293 ac_status=$?
40294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40295 (exit $ac_status); }; } &&
40296 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
40297 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40298 (eval $ac_try) 2>&5
40299 ac_status=$?
40300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40301 (exit $ac_status); }; }; then
40302
40303 wx_cv_type_pthread_rec_mutex_init=yes
40304
40305else
40306 echo "$as_me: failed program was:" >&5
40307sed 's/^/| /' conftest.$ac_ext >&5
40308
40309
40310 wx_cv_type_pthread_rec_mutex_init=no
40311
40312
40313fi
ac1cb8d3 40314rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
40315
40316fi
40317echo "$as_me:$LINENO: result: $wx_cv_type_pthread_rec_mutex_init" >&5
40318echo "${ECHO_T}$wx_cv_type_pthread_rec_mutex_init" >&6
40319 if test "$wx_cv_type_pthread_rec_mutex_init" = "yes"; then
40320 cat >>confdefs.h <<\_ACEOF
40321#define HAVE_PTHREAD_RECURSIVE_MUTEX_INITIALIZER 1
40322_ACEOF
40323
40324 else
40325 { echo "$as_me:$LINENO: WARNING: wxMutex won't be recursive on this platform" >&5
40326echo "$as_me: WARNING: wxMutex won't be recursive on this platform" >&2;}
40327 fi
40328 fi
40329 fi
40330
40331else
40332 if test "$wxUSE_THREADS" = "yes" ; then
40333 case "${host}" in
40334 *-*-mingw32* )
40335 echo "$as_me:$LINENO: checking if compiler supports -mthreads" >&5
40336echo $ECHO_N "checking if compiler supports -mthreads... $ECHO_C" >&6
40337if test "${wx_cv_cflags_mthread+set}" = set; then
40338 echo $ECHO_N "(cached) $ECHO_C" >&6
40339else
40340
e56f4f9e
VZ
40341 CXXFLAGS_OLD="$CXXFLAGS"
40342 CXXFLAGS="-mthreads $CXXFLAGS"
a848cd7e
SC
40343 cat >conftest.$ac_ext <<_ACEOF
40344/* confdefs.h. */
40345_ACEOF
40346cat confdefs.h >>conftest.$ac_ext
40347cat >>conftest.$ac_ext <<_ACEOF
40348/* end confdefs.h. */
40349
40350int
40351main ()
40352{
40353
40354 ;
40355 return 0;
40356}
40357_ACEOF
40358rm -f conftest.$ac_objext
40359if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 40360 (eval $ac_compile) 2>conftest.er1
a848cd7e 40361 ac_status=$?
ac1cb8d3
VS
40362 grep -v '^ *+' conftest.er1 >conftest.err
40363 rm -f conftest.er1
40364 cat conftest.err >&5
a848cd7e
SC
40365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40366 (exit $ac_status); } &&
479c790c 40367 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
40368 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40369 (eval $ac_try) 2>&5
40370 ac_status=$?
40371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40372 (exit $ac_status); }; } &&
40373 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
40374 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40375 (eval $ac_try) 2>&5
40376 ac_status=$?
40377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40378 (exit $ac_status); }; }; then
40379 wx_cv_cflags_mthread=yes
40380else
40381 echo "$as_me: failed program was:" >&5
40382sed 's/^/| /' conftest.$ac_ext >&5
40383
40384wx_cv_cflags_mthread=no
40385
40386fi
ac1cb8d3 40387rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
40388
40389
40390fi
40391echo "$as_me:$LINENO: result: $wx_cv_cflags_mthread" >&5
40392echo "${ECHO_T}$wx_cv_cflags_mthread" >&6
40393
40394 if test "$wx_cv_cflags_mthread" = "yes"; then
e56f4f9e 40395 WXCONFIG_CXXFLAGS="$WXCONFIG_CXXFLAGS -mthreads"
a848cd7e
SC
40396 LDFLAGS="$LDFLAGS -mthreads"
40397 else
e56f4f9e 40398 CXXFLAGS="$CXXFLAGS_OLD"
a848cd7e
SC
40399 fi
40400 ;;
40401 *-pc-os2*emx )
5ff751d6
VZ
40402 WXCONFIG_CFLAGS="$WXCONFIG_CFLAGS -Zmt -D__ST_MT_ERRNO__"
40403 WXCONFIG_CXXFLAGS="$WXCONFIG_CXXFLAGS -Zmt -D__ST_MT_ERRNO__"
a848cd7e
SC
40404 LDFLAGS="$LDFLAGS -Zmt"
40405 ;;
40406 esac
40407 fi
40408fi
40409
004ee6da
RL
40410echo "$as_me:$LINENO: checking for localtime_r" >&5
40411echo $ECHO_N "checking for localtime_r... $ECHO_C" >&6
40412if test "${ac_cv_func_localtime_r+set}" = set; then
a848cd7e
SC
40413 echo $ECHO_N "(cached) $ECHO_C" >&6
40414else
40415 cat >conftest.$ac_ext <<_ACEOF
40416/* confdefs.h. */
40417_ACEOF
40418cat confdefs.h >>conftest.$ac_ext
40419cat >>conftest.$ac_ext <<_ACEOF
40420/* end confdefs.h. */
004ee6da 40421/* Define localtime_r to an innocuous variant, in case <limits.h> declares localtime_r.
ac1cb8d3 40422 For example, HP-UX 11i <limits.h> declares gettimeofday. */
004ee6da 40423#define localtime_r innocuous_localtime_r
ac1cb8d3 40424
a848cd7e 40425/* System header to define __stub macros and hopefully few prototypes,
004ee6da 40426 which can conflict with char localtime_r (); below.
a848cd7e
SC
40427 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40428 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 40429
a848cd7e
SC
40430#ifdef __STDC__
40431# include <limits.h>
40432#else
40433# include <assert.h>
40434#endif
ac1cb8d3 40435
004ee6da 40436#undef localtime_r
ac1cb8d3 40437
a848cd7e
SC
40438/* Override any gcc2 internal prototype to avoid an error. */
40439#ifdef __cplusplus
40440extern "C"
40441{
40442#endif
40443/* We use char because int might match the return type of a gcc2
40444 builtin and then its argument prototype would still apply. */
004ee6da 40445char localtime_r ();
a848cd7e
SC
40446/* The GNU C library defines this for functions which it implements
40447 to always fail with ENOSYS. Some functions are actually named
40448 something starting with __ and the normal name is an alias. */
004ee6da 40449#if defined (__stub_localtime_r) || defined (__stub___localtime_r)
a848cd7e
SC
40450choke me
40451#else
004ee6da 40452char (*f) () = localtime_r;
a848cd7e
SC
40453#endif
40454#ifdef __cplusplus
40455}
40456#endif
40457
40458int
40459main ()
40460{
004ee6da
RL
40461return f != localtime_r;
40462 ;
40463 return 0;
40464}
40465_ACEOF
40466rm -f conftest.$ac_objext conftest$ac_exeext
40467if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40468 (eval $ac_link) 2>conftest.er1
40469 ac_status=$?
40470 grep -v '^ *+' conftest.er1 >conftest.err
40471 rm -f conftest.er1
40472 cat conftest.err >&5
40473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40474 (exit $ac_status); } &&
479c790c 40475 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
004ee6da
RL
40476 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40477 (eval $ac_try) 2>&5
40478 ac_status=$?
40479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40480 (exit $ac_status); }; } &&
40481 { ac_try='test -s conftest$ac_exeext'
40482 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40483 (eval $ac_try) 2>&5
40484 ac_status=$?
40485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40486 (exit $ac_status); }; }; then
40487 ac_cv_func_localtime_r=yes
40488else
40489 echo "$as_me: failed program was:" >&5
40490sed 's/^/| /' conftest.$ac_ext >&5
40491
40492ac_cv_func_localtime_r=no
40493fi
40494rm -f conftest.err conftest.$ac_objext \
40495 conftest$ac_exeext conftest.$ac_ext
40496fi
40497echo "$as_me:$LINENO: result: $ac_cv_func_localtime_r" >&5
40498echo "${ECHO_T}$ac_cv_func_localtime_r" >&6
40499if test $ac_cv_func_localtime_r = yes; then
40500 cat >>confdefs.h <<\_ACEOF
40501#define HAVE_LOCALTIME_R 1
40502_ACEOF
40503
40504fi
40505
40506echo "$as_me:$LINENO: checking for gmtime_r" >&5
40507echo $ECHO_N "checking for gmtime_r... $ECHO_C" >&6
40508if test "${ac_cv_func_gmtime_r+set}" = set; then
40509 echo $ECHO_N "(cached) $ECHO_C" >&6
40510else
40511 cat >conftest.$ac_ext <<_ACEOF
40512/* confdefs.h. */
40513_ACEOF
40514cat confdefs.h >>conftest.$ac_ext
40515cat >>conftest.$ac_ext <<_ACEOF
40516/* end confdefs.h. */
40517/* Define gmtime_r to an innocuous variant, in case <limits.h> declares gmtime_r.
40518 For example, HP-UX 11i <limits.h> declares gettimeofday. */
40519#define gmtime_r innocuous_gmtime_r
40520
40521/* System header to define __stub macros and hopefully few prototypes,
40522 which can conflict with char gmtime_r (); below.
40523 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40524 <limits.h> exists even on freestanding compilers. */
40525
40526#ifdef __STDC__
40527# include <limits.h>
40528#else
40529# include <assert.h>
40530#endif
40531
40532#undef gmtime_r
40533
40534/* Override any gcc2 internal prototype to avoid an error. */
40535#ifdef __cplusplus
40536extern "C"
40537{
40538#endif
40539/* We use char because int might match the return type of a gcc2
40540 builtin and then its argument prototype would still apply. */
40541char gmtime_r ();
40542/* The GNU C library defines this for functions which it implements
40543 to always fail with ENOSYS. Some functions are actually named
40544 something starting with __ and the normal name is an alias. */
40545#if defined (__stub_gmtime_r) || defined (__stub___gmtime_r)
40546choke me
40547#else
40548char (*f) () = gmtime_r;
40549#endif
40550#ifdef __cplusplus
40551}
40552#endif
40553
40554int
40555main ()
40556{
40557return f != gmtime_r;
40558 ;
40559 return 0;
40560}
40561_ACEOF
40562rm -f conftest.$ac_objext conftest$ac_exeext
40563if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40564 (eval $ac_link) 2>conftest.er1
40565 ac_status=$?
40566 grep -v '^ *+' conftest.er1 >conftest.err
40567 rm -f conftest.er1
40568 cat conftest.err >&5
40569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40570 (exit $ac_status); } &&
479c790c 40571 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
004ee6da
RL
40572 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40573 (eval $ac_try) 2>&5
40574 ac_status=$?
40575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40576 (exit $ac_status); }; } &&
40577 { ac_try='test -s conftest$ac_exeext'
40578 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40579 (eval $ac_try) 2>&5
40580 ac_status=$?
40581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40582 (exit $ac_status); }; }; then
40583 ac_cv_func_gmtime_r=yes
40584else
40585 echo "$as_me: failed program was:" >&5
40586sed 's/^/| /' conftest.$ac_ext >&5
40587
40588ac_cv_func_gmtime_r=no
40589fi
40590rm -f conftest.err conftest.$ac_objext \
40591 conftest$ac_exeext conftest.$ac_ext
40592fi
40593echo "$as_me:$LINENO: result: $ac_cv_func_gmtime_r" >&5
40594echo "${ECHO_T}$ac_cv_func_gmtime_r" >&6
40595if test $ac_cv_func_gmtime_r = yes; then
40596 cat >>confdefs.h <<\_ACEOF
40597#define HAVE_GMTIME_R 1
40598_ACEOF
40599
40600fi
40601
40602echo "$as_me:$LINENO: checking for readdir_r" >&5
40603echo $ECHO_N "checking for readdir_r... $ECHO_C" >&6
40604if test "${ac_cv_func_readdir_r+set}" = set; then
40605 echo $ECHO_N "(cached) $ECHO_C" >&6
40606else
40607 cat >conftest.$ac_ext <<_ACEOF
40608/* confdefs.h. */
40609_ACEOF
40610cat confdefs.h >>conftest.$ac_ext
40611cat >>conftest.$ac_ext <<_ACEOF
40612/* end confdefs.h. */
40613/* Define readdir_r to an innocuous variant, in case <limits.h> declares readdir_r.
40614 For example, HP-UX 11i <limits.h> declares gettimeofday. */
40615#define readdir_r innocuous_readdir_r
40616
40617/* System header to define __stub macros and hopefully few prototypes,
40618 which can conflict with char readdir_r (); below.
40619 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40620 <limits.h> exists even on freestanding compilers. */
40621
40622#ifdef __STDC__
40623# include <limits.h>
40624#else
40625# include <assert.h>
40626#endif
40627
40628#undef readdir_r
40629
40630/* Override any gcc2 internal prototype to avoid an error. */
40631#ifdef __cplusplus
40632extern "C"
40633{
40634#endif
40635/* We use char because int might match the return type of a gcc2
40636 builtin and then its argument prototype would still apply. */
40637char readdir_r ();
40638/* The GNU C library defines this for functions which it implements
40639 to always fail with ENOSYS. Some functions are actually named
40640 something starting with __ and the normal name is an alias. */
40641#if defined (__stub_readdir_r) || defined (__stub___readdir_r)
40642choke me
40643#else
40644char (*f) () = readdir_r;
40645#endif
40646#ifdef __cplusplus
40647}
40648#endif
40649
40650int
40651main ()
40652{
40653return f != readdir_r;
40654 ;
40655 return 0;
40656}
40657_ACEOF
40658rm -f conftest.$ac_objext conftest$ac_exeext
40659if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40660 (eval $ac_link) 2>conftest.er1
40661 ac_status=$?
40662 grep -v '^ *+' conftest.er1 >conftest.err
40663 rm -f conftest.er1
40664 cat conftest.err >&5
40665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40666 (exit $ac_status); } &&
479c790c 40667 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
004ee6da
RL
40668 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40669 (eval $ac_try) 2>&5
40670 ac_status=$?
40671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40672 (exit $ac_status); }; } &&
40673 { ac_try='test -s conftest$ac_exeext'
40674 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40675 (eval $ac_try) 2>&5
40676 ac_status=$?
40677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40678 (exit $ac_status); }; }; then
40679 ac_cv_func_readdir_r=yes
40680else
40681 echo "$as_me: failed program was:" >&5
40682sed 's/^/| /' conftest.$ac_ext >&5
40683
40684ac_cv_func_readdir_r=no
40685fi
40686rm -f conftest.err conftest.$ac_objext \
40687 conftest$ac_exeext conftest.$ac_ext
40688fi
40689echo "$as_me:$LINENO: result: $ac_cv_func_readdir_r" >&5
40690echo "${ECHO_T}$ac_cv_func_readdir_r" >&6
40691if test $ac_cv_func_readdir_r = yes; then
40692 cat >>confdefs.h <<\_ACEOF
40693#define HAVE_READDIR_R 1
40694_ACEOF
40695
40696fi
40697
004ee6da 40698
004ee6da
RL
40699
40700
40701 ac_ext=c
40702ac_cpp='$CPP $CPPFLAGS'
40703ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
40704ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
40705ac_compiler_gnu=$ac_cv_c_compiler_gnu
40706
40707 echo "$as_me:$LINENO: checking how many arguments gethostbyname_r() takes" >&5
40708echo $ECHO_N "checking how many arguments gethostbyname_r() takes... $ECHO_C" >&6
40709
40710 if test "${ac_cv_func_which_gethostbyname_r+set}" = set; then
40711 echo $ECHO_N "(cached) $ECHO_C" >&6
40712else
40713
40714
2f6c5bb5 40715################################################################
004ee6da
RL
40716
40717ac_cv_func_which_gethostbyname_r=unknown
40718
40719#
40720# ONE ARGUMENT (sanity check)
40721#
40722
40723# This should fail, as there is no variant of gethostbyname_r() that takes
40724# a single argument. If it actually compiles, then we can assume that
40725# netdb.h is not declaring the function, and the compiler is thereby
40726# assuming an implicit prototype. In which case, we're out of luck.
40727#
40728cat >conftest.$ac_ext <<_ACEOF
40729/* confdefs.h. */
40730_ACEOF
40731cat confdefs.h >>conftest.$ac_ext
40732cat >>conftest.$ac_ext <<_ACEOF
40733/* end confdefs.h. */
40734#include <netdb.h>
40735int
40736main ()
40737{
40738
40739 char *name = "www.gnu.org";
40740 (void)gethostbyname_r(name) /* ; */
40741
40742 ;
40743 return 0;
40744}
40745_ACEOF
40746rm -f conftest.$ac_objext
40747if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40748 (eval $ac_compile) 2>conftest.er1
40749 ac_status=$?
40750 grep -v '^ *+' conftest.er1 >conftest.err
40751 rm -f conftest.er1
40752 cat conftest.err >&5
40753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40754 (exit $ac_status); } &&
479c790c 40755 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
004ee6da
RL
40756 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40757 (eval $ac_try) 2>&5
40758 ac_status=$?
40759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40760 (exit $ac_status); }; } &&
40761 { ac_try='test -s conftest.$ac_objext'
40762 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40763 (eval $ac_try) 2>&5
40764 ac_status=$?
40765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40766 (exit $ac_status); }; }; then
40767 ac_cv_func_which_gethostbyname_r=no
40768else
40769 echo "$as_me: failed program was:" >&5
40770sed 's/^/| /' conftest.$ac_ext >&5
40771
40772fi
40773rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40774
40775#
40776# SIX ARGUMENTS
40777# (e.g. Linux)
40778#
40779
40780if test "$ac_cv_func_which_gethostbyname_r" = "unknown"; then
40781
40782cat >conftest.$ac_ext <<_ACEOF
40783/* confdefs.h. */
40784_ACEOF
40785cat confdefs.h >>conftest.$ac_ext
40786cat >>conftest.$ac_ext <<_ACEOF
40787/* end confdefs.h. */
40788#include <netdb.h>
40789int
40790main ()
40791{
40792
40793 char *name = "www.gnu.org";
40794 struct hostent ret, *retp;
40795 char buf[1024];
40796 int buflen = 1024;
40797 int my_h_errno;
40798 (void)gethostbyname_r(name, &ret, buf, buflen, &retp, &my_h_errno) /* ; */
40799
40800 ;
40801 return 0;
40802}
40803_ACEOF
40804rm -f conftest.$ac_objext
40805if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40806 (eval $ac_compile) 2>conftest.er1
40807 ac_status=$?
40808 grep -v '^ *+' conftest.er1 >conftest.err
40809 rm -f conftest.er1
40810 cat conftest.err >&5
40811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40812 (exit $ac_status); } &&
479c790c 40813 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
004ee6da
RL
40814 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40815 (eval $ac_try) 2>&5
40816 ac_status=$?
40817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40818 (exit $ac_status); }; } &&
40819 { ac_try='test -s conftest.$ac_objext'
40820 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40821 (eval $ac_try) 2>&5
40822 ac_status=$?
40823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40824 (exit $ac_status); }; }; then
40825 ac_cv_func_which_gethostbyname_r=six
40826else
40827 echo "$as_me: failed program was:" >&5
40828sed 's/^/| /' conftest.$ac_ext >&5
40829
40830fi
40831rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40832
40833fi
40834
40835#
40836# FIVE ARGUMENTS
40837# (e.g. Solaris)
40838#
40839
40840if test "$ac_cv_func_which_gethostbyname_r" = "unknown"; then
40841
40842cat >conftest.$ac_ext <<_ACEOF
40843/* confdefs.h. */
40844_ACEOF
40845cat confdefs.h >>conftest.$ac_ext
40846cat >>conftest.$ac_ext <<_ACEOF
40847/* end confdefs.h. */
40848#include <netdb.h>
40849int
40850main ()
40851{
40852
40853 char *name = "www.gnu.org";
40854 struct hostent ret;
40855 char buf[1024];
40856 int buflen = 1024;
40857 int my_h_errno;
40858 (void)gethostbyname_r(name, &ret, buf, buflen, &my_h_errno) /* ; */
40859
40860 ;
40861 return 0;
40862}
40863_ACEOF
40864rm -f conftest.$ac_objext
40865if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40866 (eval $ac_compile) 2>conftest.er1
40867 ac_status=$?
40868 grep -v '^ *+' conftest.er1 >conftest.err
40869 rm -f conftest.er1
40870 cat conftest.err >&5
40871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40872 (exit $ac_status); } &&
479c790c 40873 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
004ee6da
RL
40874 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40875 (eval $ac_try) 2>&5
40876 ac_status=$?
40877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40878 (exit $ac_status); }; } &&
40879 { ac_try='test -s conftest.$ac_objext'
40880 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40881 (eval $ac_try) 2>&5
40882 ac_status=$?
40883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40884 (exit $ac_status); }; }; then
40885 ac_cv_func_which_gethostbyname_r=five
40886else
40887 echo "$as_me: failed program was:" >&5
40888sed 's/^/| /' conftest.$ac_ext >&5
40889
40890fi
40891rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40892
40893fi
40894
40895#
40896# THREE ARGUMENTS
40897# (e.g. AIX, HP-UX, Tru64)
40898#
40899
40900if test "$ac_cv_func_which_gethostbyname_r" = "unknown"; then
40901
40902cat >conftest.$ac_ext <<_ACEOF
40903/* confdefs.h. */
40904_ACEOF
40905cat confdefs.h >>conftest.$ac_ext
40906cat >>conftest.$ac_ext <<_ACEOF
40907/* end confdefs.h. */
40908#include <netdb.h>
40909int
40910main ()
40911{
40912
40913 char *name = "www.gnu.org";
40914 struct hostent ret;
40915 struct hostent_data data;
40916 (void)gethostbyname_r(name, &ret, &data) /* ; */
40917
40918 ;
40919 return 0;
40920}
40921_ACEOF
40922rm -f conftest.$ac_objext
40923if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40924 (eval $ac_compile) 2>conftest.er1
40925 ac_status=$?
40926 grep -v '^ *+' conftest.er1 >conftest.err
40927 rm -f conftest.er1
40928 cat conftest.err >&5
40929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40930 (exit $ac_status); } &&
479c790c 40931 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
004ee6da
RL
40932 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40933 (eval $ac_try) 2>&5
40934 ac_status=$?
40935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40936 (exit $ac_status); }; } &&
40937 { ac_try='test -s conftest.$ac_objext'
40938 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40939 (eval $ac_try) 2>&5
40940 ac_status=$?
40941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40942 (exit $ac_status); }; }; then
40943 ac_cv_func_which_gethostbyname_r=three
40944else
40945 echo "$as_me: failed program was:" >&5
40946sed 's/^/| /' conftest.$ac_ext >&5
40947
40948fi
40949rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40950
40951fi
40952
2f6c5bb5 40953################################################################
004ee6da
RL
40954
40955
40956fi
40957
40958case "$ac_cv_func_which_gethostbyname_r" in
40959 three)
40960 echo "$as_me:$LINENO: result: three" >&5
40961echo "${ECHO_T}three" >&6
40962 cat >>confdefs.h <<\_ACEOF
40963#define HAVE_FUNC_GETHOSTBYNAME_R_3 1
40964_ACEOF
40965
40966 ;;
40967
40968 five)
40969 echo "$as_me:$LINENO: result: five" >&5
40970echo "${ECHO_T}five" >&6
40971 cat >>confdefs.h <<\_ACEOF
40972#define HAVE_FUNC_GETHOSTBYNAME_R_5 1
40973_ACEOF
40974
40975 ;;
40976
40977 six)
40978 echo "$as_me:$LINENO: result: six" >&5
40979echo "${ECHO_T}six" >&6
40980 cat >>confdefs.h <<\_ACEOF
40981#define HAVE_FUNC_GETHOSTBYNAME_R_6 1
40982_ACEOF
40983
40984 ;;
40985
40986 no)
40987 echo "$as_me:$LINENO: result: cannot find function declaration in netdb.h" >&5
40988echo "${ECHO_T}cannot find function declaration in netdb.h" >&6
40989 ;;
40990
40991 unknown)
40992 echo "$as_me:$LINENO: result: can't tell" >&5
40993echo "${ECHO_T}can't tell" >&6
40994 ;;
40995
40996 *)
40997 { { echo "$as_me:$LINENO: error: internal error" >&5
40998echo "$as_me: error: internal error" >&2;}
40999 { (exit 1); exit 1; }; }
41000 ;;
41001esac
41002
5ec3bc43
JS
41003ac_ext=cc
41004ac_cpp='$CXXCPP $CPPFLAGS'
41005ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
41006ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
41007ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
004ee6da
RL
41008
41009
41010
41011 if test "x$ac_cv_func_which_gethostbyname_r" = "xno" -o \
41012 "x$ac_cv_func_which_gethostbyname_r" = "xunknown" ; then
41013 echo "$as_me:$LINENO: checking for gethostbyname" >&5
41014echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
41015if test "${ac_cv_func_gethostbyname+set}" = set; then
41016 echo $ECHO_N "(cached) $ECHO_C" >&6
41017else
41018 cat >conftest.$ac_ext <<_ACEOF
41019/* confdefs.h. */
41020_ACEOF
41021cat confdefs.h >>conftest.$ac_ext
41022cat >>conftest.$ac_ext <<_ACEOF
41023/* end confdefs.h. */
41024/* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
41025 For example, HP-UX 11i <limits.h> declares gettimeofday. */
41026#define gethostbyname innocuous_gethostbyname
41027
41028/* System header to define __stub macros and hopefully few prototypes,
41029 which can conflict with char gethostbyname (); below.
41030 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41031 <limits.h> exists even on freestanding compilers. */
41032
41033#ifdef __STDC__
41034# include <limits.h>
41035#else
41036# include <assert.h>
41037#endif
41038
41039#undef gethostbyname
41040
41041/* Override any gcc2 internal prototype to avoid an error. */
41042#ifdef __cplusplus
41043extern "C"
41044{
41045#endif
41046/* We use char because int might match the return type of a gcc2
41047 builtin and then its argument prototype would still apply. */
41048char gethostbyname ();
41049/* The GNU C library defines this for functions which it implements
41050 to always fail with ENOSYS. Some functions are actually named
41051 something starting with __ and the normal name is an alias. */
41052#if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
41053choke me
41054#else
41055char (*f) () = gethostbyname;
41056#endif
41057#ifdef __cplusplus
41058}
41059#endif
41060
41061int
41062main ()
41063{
41064return f != gethostbyname;
41065 ;
41066 return 0;
41067}
41068_ACEOF
41069rm -f conftest.$ac_objext conftest$ac_exeext
41070if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41071 (eval $ac_link) 2>conftest.er1
41072 ac_status=$?
41073 grep -v '^ *+' conftest.er1 >conftest.err
41074 rm -f conftest.er1
41075 cat conftest.err >&5
41076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41077 (exit $ac_status); } &&
479c790c 41078 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
004ee6da
RL
41079 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41080 (eval $ac_try) 2>&5
41081 ac_status=$?
41082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41083 (exit $ac_status); }; } &&
41084 { ac_try='test -s conftest$ac_exeext'
41085 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41086 (eval $ac_try) 2>&5
41087 ac_status=$?
41088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41089 (exit $ac_status); }; }; then
41090 ac_cv_func_gethostbyname=yes
41091else
41092 echo "$as_me: failed program was:" >&5
41093sed 's/^/| /' conftest.$ac_ext >&5
41094
41095ac_cv_func_gethostbyname=no
41096fi
41097rm -f conftest.err conftest.$ac_objext \
41098 conftest$ac_exeext conftest.$ac_ext
41099fi
41100echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
41101echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
41102if test $ac_cv_func_gethostbyname = yes; then
41103 cat >>confdefs.h <<\_ACEOF
41104#define HAVE_GETHOSTBYNAME 1
41105_ACEOF
41106
41107fi
41108
41109 fi
3ecd9f92 41110
81c330c6
VZ
41111echo "$as_me:$LINENO: checking how many arguments getservbyname_r() takes" >&5
41112echo $ECHO_N "checking how many arguments getservbyname_r() takes... $ECHO_C" >&6
41113if test "${ac_cv_func_which_getservbyname_r+set}" = set; then
004ee6da
RL
41114 echo $ECHO_N "(cached) $ECHO_C" >&6
41115else
3ecd9f92
MW
41116
41117 cat >conftest.$ac_ext <<_ACEOF
004ee6da
RL
41118/* confdefs.h. */
41119_ACEOF
41120cat confdefs.h >>conftest.$ac_ext
41121cat >>conftest.$ac_ext <<_ACEOF
41122/* end confdefs.h. */
81c330c6 41123#include <netdb.h>
004ee6da
RL
41124int
41125main ()
41126{
41127
81c330c6
VZ
41128 char *name;
41129 char *proto;
41130 struct servent *se, *res;
41131 char buffer[2048];
41132 int buflen = 2048;
41133 (void) getservbyname_r(name, proto, se, buffer, buflen, &res)
004ee6da
RL
41134
41135 ;
41136 return 0;
41137}
41138_ACEOF
41139rm -f conftest.$ac_objext
41140if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41141 (eval $ac_compile) 2>conftest.er1
41142 ac_status=$?
41143 grep -v '^ *+' conftest.er1 >conftest.err
41144 rm -f conftest.er1
41145 cat conftest.err >&5
41146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41147 (exit $ac_status); } &&
479c790c 41148 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
004ee6da
RL
41149 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41150 (eval $ac_try) 2>&5
41151 ac_status=$?
41152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41153 (exit $ac_status); }; } &&
41154 { ac_try='test -s conftest.$ac_objext'
41155 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41156 (eval $ac_try) 2>&5
41157 ac_status=$?
41158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41159 (exit $ac_status); }; }; then
81c330c6 41160 ac_cv_func_which_getservbyname_r=six
004ee6da
RL
41161else
41162 echo "$as_me: failed program was:" >&5
41163sed 's/^/| /' conftest.$ac_ext >&5
41164
3ecd9f92 41165
81c330c6 41166 cat >conftest.$ac_ext <<_ACEOF
004ee6da
RL
41167/* confdefs.h. */
41168_ACEOF
41169cat confdefs.h >>conftest.$ac_ext
41170cat >>conftest.$ac_ext <<_ACEOF
41171/* end confdefs.h. */
81c330c6 41172#include <netdb.h>
004ee6da
RL
41173int
41174main ()
41175{
41176
81c330c6
VZ
41177 char *name;
41178 char *proto;
41179 struct servent *se;
41180 char buffer[2048];
41181 int buflen = 2048;
41182 (void) getservbyname_r(name, proto, se, buffer, buflen)
004ee6da
RL
41183
41184 ;
41185 return 0;
41186}
41187_ACEOF
41188rm -f conftest.$ac_objext
41189if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41190 (eval $ac_compile) 2>conftest.er1
41191 ac_status=$?
41192 grep -v '^ *+' conftest.er1 >conftest.err
41193 rm -f conftest.er1
41194 cat conftest.err >&5
41195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41196 (exit $ac_status); } &&
479c790c 41197 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
004ee6da
RL
41198 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41199 (eval $ac_try) 2>&5
41200 ac_status=$?
41201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41202 (exit $ac_status); }; } &&
41203 { ac_try='test -s conftest.$ac_objext'
41204 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41205 (eval $ac_try) 2>&5
41206 ac_status=$?
41207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41208 (exit $ac_status); }; }; then
81c330c6 41209 ac_cv_func_which_getservbyname_r=five
004ee6da
RL
41210else
41211 echo "$as_me: failed program was:" >&5
41212sed 's/^/| /' conftest.$ac_ext >&5
41213
3ecd9f92 41214
81c330c6 41215 cat >conftest.$ac_ext <<_ACEOF
004ee6da
RL
41216/* confdefs.h. */
41217_ACEOF
41218cat confdefs.h >>conftest.$ac_ext
41219cat >>conftest.$ac_ext <<_ACEOF
41220/* end confdefs.h. */
81c330c6 41221#include <netdb.h>
004ee6da
RL
41222int
41223main ()
41224{
41225
81c330c6
VZ
41226 char *name;
41227 char *proto;
41228 struct servent *se;
41229 struct servent_data data;
41230 (void) getservbyname_r(name, proto, se, &data);
004ee6da
RL
41231
41232 ;
41233 return 0;
41234}
41235_ACEOF
41236rm -f conftest.$ac_objext
41237if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41238 (eval $ac_compile) 2>conftest.er1
41239 ac_status=$?
41240 grep -v '^ *+' conftest.er1 >conftest.err
41241 rm -f conftest.er1
41242 cat conftest.err >&5
41243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41244 (exit $ac_status); } &&
479c790c 41245 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
004ee6da
RL
41246 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41247 (eval $ac_try) 2>&5
41248 ac_status=$?
41249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41250 (exit $ac_status); }; } &&
41251 { ac_try='test -s conftest.$ac_objext'
41252 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41253 (eval $ac_try) 2>&5
41254 ac_status=$?
41255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41256 (exit $ac_status); }; }; then
81c330c6 41257 ac_cv_func_which_getservbyname_r=four
004ee6da
RL
41258else
41259 echo "$as_me: failed program was:" >&5
41260sed 's/^/| /' conftest.$ac_ext >&5
41261
41262ac_cv_func_which_getservbyname_r=no
81c330c6 41263
004ee6da
RL
41264fi
41265rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
41266
3ecd9f92 41267
004ee6da
RL
41268fi
41269rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
41270
3ecd9f92 41271
004ee6da
RL
41272fi
41273rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3ecd9f92 41274
004ee6da 41275
3ecd9f92
MW
41276fi
41277echo "$as_me:$LINENO: result: $ac_cv_func_which_getservbyname_r" >&5
41278echo "${ECHO_T}$ac_cv_func_which_getservbyname_r" >&6
004ee6da
RL
41279
41280if test $ac_cv_func_which_getservbyname_r = six; then
41281 cat >>confdefs.h <<\_ACEOF
41282#define HAVE_FUNC_GETSERVBYNAME_R_6 1
41283_ACEOF
41284
41285elif test $ac_cv_func_which_getservbyname_r = five; then
41286 cat >>confdefs.h <<\_ACEOF
41287#define HAVE_FUNC_GETSERVBYNAME_R_5 1
41288_ACEOF
41289
41290elif test $ac_cv_func_which_getservbyname_r = four; then
41291 cat >>confdefs.h <<\_ACEOF
41292#define HAVE_FUNC_GETSERVBYNAME_R_4 1
41293_ACEOF
41294
004ee6da
RL
41295fi
41296
41297
41298 if test "x$ac_cv_func_which_getservbyname_r" = "xno" -o \
41299 "x$ac_cv_func_which_getservbyname_r" = "xunknown" ; then
41300
41301for ac_func in getservbyname
41302do
41303as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
41304echo "$as_me:$LINENO: checking for $ac_func" >&5
41305echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
41306if eval "test \"\${$as_ac_var+set}\" = set"; then
41307 echo $ECHO_N "(cached) $ECHO_C" >&6
41308else
41309 cat >conftest.$ac_ext <<_ACEOF
41310/* confdefs.h. */
41311_ACEOF
41312cat confdefs.h >>conftest.$ac_ext
41313cat >>conftest.$ac_ext <<_ACEOF
41314/* end confdefs.h. */
41315/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
41316 For example, HP-UX 11i <limits.h> declares gettimeofday. */
41317#define $ac_func innocuous_$ac_func
41318
41319/* System header to define __stub macros and hopefully few prototypes,
41320 which can conflict with char $ac_func (); below.
41321 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41322 <limits.h> exists even on freestanding compilers. */
41323
41324#ifdef __STDC__
41325# include <limits.h>
41326#else
41327# include <assert.h>
41328#endif
41329
41330#undef $ac_func
41331
41332/* Override any gcc2 internal prototype to avoid an error. */
41333#ifdef __cplusplus
41334extern "C"
41335{
41336#endif
41337/* We use char because int might match the return type of a gcc2
41338 builtin and then its argument prototype would still apply. */
41339char $ac_func ();
41340/* The GNU C library defines this for functions which it implements
41341 to always fail with ENOSYS. Some functions are actually named
41342 something starting with __ and the normal name is an alias. */
41343#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
41344choke me
41345#else
41346char (*f) () = $ac_func;
41347#endif
41348#ifdef __cplusplus
41349}
41350#endif
41351
41352int
41353main ()
41354{
41355return f != $ac_func;
41356 ;
41357 return 0;
41358}
41359_ACEOF
41360rm -f conftest.$ac_objext conftest$ac_exeext
41361if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41362 (eval $ac_link) 2>conftest.er1
41363 ac_status=$?
41364 grep -v '^ *+' conftest.er1 >conftest.err
41365 rm -f conftest.er1
41366 cat conftest.err >&5
41367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41368 (exit $ac_status); } &&
479c790c 41369 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
004ee6da
RL
41370 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41371 (eval $ac_try) 2>&5
41372 ac_status=$?
41373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41374 (exit $ac_status); }; } &&
41375 { ac_try='test -s conftest$ac_exeext'
41376 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41377 (eval $ac_try) 2>&5
41378 ac_status=$?
41379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41380 (exit $ac_status); }; }; then
41381 eval "$as_ac_var=yes"
41382else
41383 echo "$as_me: failed program was:" >&5
41384sed 's/^/| /' conftest.$ac_ext >&5
41385
41386eval "$as_ac_var=no"
41387fi
41388rm -f conftest.err conftest.$ac_objext \
41389 conftest$ac_exeext conftest.$ac_ext
41390fi
41391echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
41392echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
41393if test `eval echo '${'$as_ac_var'}'` = yes; then
41394 cat >>confdefs.h <<_ACEOF
41395#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
41396_ACEOF
41397 cat >>confdefs.h <<\_ACEOF
41398#define HAVE_GETSERVBYNAME 1
41399_ACEOF
41400
41401fi
41402done
41403
41404 fi
41405
004ee6da
RL
41406if test "$wxUSE_THREADS" = "yes"; then
41407 cat >>confdefs.h <<\_ACEOF
41408#define wxUSE_THREADS 1
41409_ACEOF
41410
41411
41412 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS thread"
41413else
56632e81 41414 if test "$wx_cv_func_strtok_r" = "yes"; then
004ee6da
RL
41415 echo "$as_me:$LINENO: checking if -D_REENTRANT is needed" >&5
41416echo $ECHO_N "checking if -D_REENTRANT is needed... $ECHO_C" >&6
41417 if test "$NEEDS_D_REENTRANT_FOR_R_FUNCS" = 1; then
41418 WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS -D_REENTRANT"
41419 echo "$as_me:$LINENO: result: yes" >&5
41420echo "${ECHO_T}yes" >&6
41421 else
41422 echo "$as_me:$LINENO: result: no" >&5
41423echo "${ECHO_T}no" >&6
41424 fi
41425 fi
41426fi
41427
41428if test "$WXGTK20" = 1 ; then
41429 cat >>confdefs.h <<_ACEOF
41430#define __WXGTK20__ $WXGTK20
41431_ACEOF
41432
41433 WXGTK12=1
41434fi
41435
41436if test "$WXGTK12" = 1 ; then
41437 cat >>confdefs.h <<_ACEOF
41438#define __WXGTK12__ $WXGTK12
41439_ACEOF
41440
41441fi
41442
41443if test "$WXGTK127" = 1 ; then
41444 cat >>confdefs.h <<_ACEOF
41445#define __WXGTK127__ $WXGTK127
41446_ACEOF
41447
41448fi
41449
41450if test "$WXGPE" = 1 ; then
41451 cat >>confdefs.h <<_ACEOF
41452#define __WXGPE__ $WXGPE
41453_ACEOF
41454
41455fi
41456
41457DEBUG_CFLAGS=
41458if test "$wxUSE_DEBUG_INFO" = "yes" ; then
41459 DEBUG_CFLAGS="-g"
41460 wxUSE_OPTIMISE=no
41461fi
41462
41463if test "$wxUSE_DEBUG_GDB" = "yes" ; then
41464 wxUSE_DEBUG_INFO=yes
41465 if test "$GCC" = yes; then
41466 DEBUG_CFLAGS="-ggdb"
41467 fi
41468fi
41469
41470if test "$wxUSE_DEBUG_FLAG" = "yes" ; then
41471 cat >>confdefs.h <<\_ACEOF
41472#define WXDEBUG 1
41473_ACEOF
41474
41475 WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS -D__WXDEBUG__"
41476else
41477 if test "$wxUSE_GTK" = 1 ; then
99879bbf
MR
41478 if test "x$wxGTK_VERSION" = "x1" ; then
41479 CPPFLAGS="-DGTK_NO_CHECK_CASTS $CPPFLAGS"
41480 fi
004ee6da
RL
41481 fi
41482fi
41483
41484if test "$wxUSE_MEM_TRACING" = "yes" ; then
41485 cat >>confdefs.h <<\_ACEOF
41486#define wxUSE_MEMORY_TRACING 1
41487_ACEOF
41488
41489 cat >>confdefs.h <<\_ACEOF
41490#define wxUSE_GLOBAL_MEMORY_OPERATORS 1
41491_ACEOF
41492
41493 cat >>confdefs.h <<\_ACEOF
41494#define wxUSE_DEBUG_NEW_ALWAYS 1
41495_ACEOF
41496
41497 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS memcheck"
41498fi
41499
41500if test "$wxUSE_DMALLOC" = "yes" ; then
41501 DMALLOC_LIBS="-ldmallocthcxx"
41502fi
41503
41504PROFILE_FLAGS=
41505if test "$wxUSE_PROFILE" = "yes" ; then
41506 PROFILE_FLAGS=" -pg"
41507fi
41508
41509if test "$GCC" = "yes" ; then
41510 if test "$wxUSE_NO_RTTI" = "yes" ; then
41511 WXCONFIG_CXXFLAGS="$WXCONFIG_CXXFLAGS -fno-rtti"
41512 fi
41513 if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then
41514 WXCONFIG_CXXFLAGS="$WXCONFIG_CXXFLAGS -fno-exceptions"
41515 fi
41516 if test "$wxUSE_PERMISSIVE" = "yes" ; then
41517 WXCONFIG_CFLAGS="$WXCONFIG_CFLAGS -fpermissive"
41518 fi
41519
41520 case "${host}" in
41521 powerpc*-*-aix* )
41522 WXCONFIG_CFLAGS="$WXCONFIG_CFLAGS -mminimal-toc"
41523 ;;
41524 *-hppa* )
41525 WXCONFIG_CFLAGS="$WXCONFIG_CFLAGS -ffunction-sections"
41526 ;;
41527 esac
41528fi
41529
41530OPTIMISE_CFLAGS=
41531if test "$wxUSE_OPTIMISE" = "no" ; then
41532 if test "$GCC" = yes ; then
41533 OPTIMISE_CFLAGS="-O0"
41534 fi
41535else
41536 if test "$GCC" = yes ; then
e5efa97e
VZ
41537 case "${host}" in
41538 *-pc-os2_emx | *-pc-os2-emx )
41539 OPTIMISE_CFLAGS="-O2"
41540 ;;
41541 *)
41542 OPTIMISE_CFLAGS="-O2 -fno-strict-aliasing"
41543 ;;
41544 esac
004ee6da
RL
41545 else
41546 OPTIMISE_CFLAGS="-O"
41547 fi
41548fi
41549
41550
41551if test "x$WXWIN_COMPATIBILITY_2_4" = "xyes"; then
41552 cat >>confdefs.h <<\_ACEOF
41553#define WXWIN_COMPATIBILITY_2_4 1
41554_ACEOF
41555
41556
41557 WXWIN_COMPATIBILITY_2_6="yes"
41558fi
41559
41560if test "x$WXWIN_COMPATIBILITY_2_6" != "xno"; then
41561 cat >>confdefs.h <<\_ACEOF
41562#define WXWIN_COMPATIBILITY_2_6 1
41563_ACEOF
41564
41565fi
41566
41567
41568if test "$wxUSE_GUI" = "yes"; then
41569 cat >>confdefs.h <<\_ACEOF
41570#define wxUSE_GUI 1
41571_ACEOF
41572
41573
41574 fi
41575
41576
41577if test "$wxUSE_UNIX" = "yes"; then
41578 cat >>confdefs.h <<\_ACEOF
41579#define wxUSE_UNIX 1
41580_ACEOF
41581
41582fi
41583
41584
41585if test "$TOOLKIT" != "MSW" -a "$USE_OS2" != 1; then
41586
41587 HAVE_DL_FUNCS=0
41588 HAVE_SHL_FUNCS=0
41589 if test "$wxUSE_DYNAMIC_LOADER" = "yes" -o "$wxUSE_DYNLIB_CLASS" = "yes" ; then
41590 if test "$USE_DARWIN" = 1; then
41591 HAVE_DL_FUNCS=1
41592 elif test "$USE_DOS" = 1; then
41593 HAVE_DL_FUNCS=0
41594 else
41595
41596for ac_func in dlopen
41597do
41598as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
41599echo "$as_me:$LINENO: checking for $ac_func" >&5
41600echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
41601if eval "test \"\${$as_ac_var+set}\" = set"; then
41602 echo $ECHO_N "(cached) $ECHO_C" >&6
41603else
41604 cat >conftest.$ac_ext <<_ACEOF
41605/* confdefs.h. */
41606_ACEOF
41607cat confdefs.h >>conftest.$ac_ext
41608cat >>conftest.$ac_ext <<_ACEOF
41609/* end confdefs.h. */
41610/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
41611 For example, HP-UX 11i <limits.h> declares gettimeofday. */
41612#define $ac_func innocuous_$ac_func
41613
41614/* System header to define __stub macros and hopefully few prototypes,
41615 which can conflict with char $ac_func (); below.
41616 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41617 <limits.h> exists even on freestanding compilers. */
41618
41619#ifdef __STDC__
41620# include <limits.h>
41621#else
41622# include <assert.h>
41623#endif
41624
41625#undef $ac_func
41626
41627/* Override any gcc2 internal prototype to avoid an error. */
41628#ifdef __cplusplus
41629extern "C"
41630{
41631#endif
41632/* We use char because int might match the return type of a gcc2
41633 builtin and then its argument prototype would still apply. */
41634char $ac_func ();
41635/* The GNU C library defines this for functions which it implements
41636 to always fail with ENOSYS. Some functions are actually named
41637 something starting with __ and the normal name is an alias. */
41638#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
41639choke me
41640#else
41641char (*f) () = $ac_func;
41642#endif
41643#ifdef __cplusplus
41644}
41645#endif
41646
41647int
41648main ()
41649{
41650return f != $ac_func;
a848cd7e
SC
41651 ;
41652 return 0;
41653}
41654_ACEOF
41655rm -f conftest.$ac_objext conftest$ac_exeext
41656if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 41657 (eval $ac_link) 2>conftest.er1
a848cd7e 41658 ac_status=$?
ac1cb8d3
VS
41659 grep -v '^ *+' conftest.er1 >conftest.err
41660 rm -f conftest.er1
41661 cat conftest.err >&5
a848cd7e
SC
41662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41663 (exit $ac_status); } &&
479c790c 41664 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
41665 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41666 (eval $ac_try) 2>&5
41667 ac_status=$?
41668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41669 (exit $ac_status); }; } &&
41670 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
41671 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41672 (eval $ac_try) 2>&5
41673 ac_status=$?
41674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41675 (exit $ac_status); }; }; then
41676 eval "$as_ac_var=yes"
41677else
41678 echo "$as_me: failed program was:" >&5
41679sed 's/^/| /' conftest.$ac_ext >&5
41680
41681eval "$as_ac_var=no"
41682fi
ac1cb8d3
VS
41683rm -f conftest.err conftest.$ac_objext \
41684 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
41685fi
41686echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
41687echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
41688if test `eval echo '${'$as_ac_var'}'` = yes; then
41689 cat >>confdefs.h <<_ACEOF
41690#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
41691_ACEOF
41692
41693 cat >>confdefs.h <<\_ACEOF
41694#define HAVE_DLOPEN 1
41695_ACEOF
41696
41697 HAVE_DL_FUNCS=1
41698
41699else
41700
41701 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
41702echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
41703if test "${ac_cv_lib_dl_dlopen+set}" = set; then
41704 echo $ECHO_N "(cached) $ECHO_C" >&6
41705else
41706 ac_check_lib_save_LIBS=$LIBS
41707LIBS="-ldl $LIBS"
41708cat >conftest.$ac_ext <<_ACEOF
41709/* confdefs.h. */
41710_ACEOF
41711cat confdefs.h >>conftest.$ac_ext
41712cat >>conftest.$ac_ext <<_ACEOF
41713/* end confdefs.h. */
41714
41715/* Override any gcc2 internal prototype to avoid an error. */
41716#ifdef __cplusplus
41717extern "C"
41718#endif
41719/* We use char because int might match the return type of a gcc2
41720 builtin and then its argument prototype would still apply. */
41721char dlopen ();
41722int
41723main ()
41724{
41725dlopen ();
41726 ;
41727 return 0;
41728}
41729_ACEOF
41730rm -f conftest.$ac_objext conftest$ac_exeext
41731if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 41732 (eval $ac_link) 2>conftest.er1
a848cd7e 41733 ac_status=$?
ac1cb8d3
VS
41734 grep -v '^ *+' conftest.er1 >conftest.err
41735 rm -f conftest.er1
41736 cat conftest.err >&5
a848cd7e
SC
41737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41738 (exit $ac_status); } &&
479c790c 41739 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
41740 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41741 (eval $ac_try) 2>&5
41742 ac_status=$?
41743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41744 (exit $ac_status); }; } &&
41745 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
41746 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41747 (eval $ac_try) 2>&5
41748 ac_status=$?
41749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41750 (exit $ac_status); }; }; then
41751 ac_cv_lib_dl_dlopen=yes
41752else
41753 echo "$as_me: failed program was:" >&5
41754sed 's/^/| /' conftest.$ac_ext >&5
41755
41756ac_cv_lib_dl_dlopen=no
41757fi
ac1cb8d3
VS
41758rm -f conftest.err conftest.$ac_objext \
41759 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
41760LIBS=$ac_check_lib_save_LIBS
41761fi
41762echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
41763echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
41764if test $ac_cv_lib_dl_dlopen = yes; then
41765
41766 cat >>confdefs.h <<\_ACEOF
41767#define HAVE_DLOPEN 1
41768_ACEOF
41769
41770 HAVE_DL_FUNCS=1
41771 DL_LINK=" -ldl$DL_LINK"
41772
41773else
41774
41775
41776for ac_func in shl_load
41777do
41778as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
41779echo "$as_me:$LINENO: checking for $ac_func" >&5
41780echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
41781if eval "test \"\${$as_ac_var+set}\" = set"; then
41782 echo $ECHO_N "(cached) $ECHO_C" >&6
41783else
41784 cat >conftest.$ac_ext <<_ACEOF
41785/* confdefs.h. */
41786_ACEOF
41787cat confdefs.h >>conftest.$ac_ext
41788cat >>conftest.$ac_ext <<_ACEOF
41789/* end confdefs.h. */
ac1cb8d3
VS
41790/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
41791 For example, HP-UX 11i <limits.h> declares gettimeofday. */
41792#define $ac_func innocuous_$ac_func
41793
a848cd7e
SC
41794/* System header to define __stub macros and hopefully few prototypes,
41795 which can conflict with char $ac_func (); below.
41796 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41797 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 41798
a848cd7e
SC
41799#ifdef __STDC__
41800# include <limits.h>
41801#else
41802# include <assert.h>
41803#endif
ac1cb8d3
VS
41804
41805#undef $ac_func
41806
a848cd7e
SC
41807/* Override any gcc2 internal prototype to avoid an error. */
41808#ifdef __cplusplus
41809extern "C"
41810{
41811#endif
41812/* We use char because int might match the return type of a gcc2
41813 builtin and then its argument prototype would still apply. */
41814char $ac_func ();
41815/* The GNU C library defines this for functions which it implements
41816 to always fail with ENOSYS. Some functions are actually named
41817 something starting with __ and the normal name is an alias. */
41818#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
41819choke me
41820#else
41821char (*f) () = $ac_func;
41822#endif
41823#ifdef __cplusplus
41824}
41825#endif
41826
41827int
41828main ()
41829{
41830return f != $ac_func;
41831 ;
41832 return 0;
41833}
41834_ACEOF
41835rm -f conftest.$ac_objext conftest$ac_exeext
41836if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 41837 (eval $ac_link) 2>conftest.er1
a848cd7e 41838 ac_status=$?
ac1cb8d3
VS
41839 grep -v '^ *+' conftest.er1 >conftest.err
41840 rm -f conftest.er1
41841 cat conftest.err >&5
a848cd7e
SC
41842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41843 (exit $ac_status); } &&
479c790c 41844 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
41845 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41846 (eval $ac_try) 2>&5
41847 ac_status=$?
41848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41849 (exit $ac_status); }; } &&
41850 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
41851 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41852 (eval $ac_try) 2>&5
41853 ac_status=$?
41854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41855 (exit $ac_status); }; }; then
41856 eval "$as_ac_var=yes"
41857else
41858 echo "$as_me: failed program was:" >&5
41859sed 's/^/| /' conftest.$ac_ext >&5
41860
41861eval "$as_ac_var=no"
41862fi
ac1cb8d3
VS
41863rm -f conftest.err conftest.$ac_objext \
41864 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
41865fi
41866echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
41867echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
41868if test `eval echo '${'$as_ac_var'}'` = yes; then
41869 cat >>confdefs.h <<_ACEOF
41870#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
41871_ACEOF
41872
41873 cat >>confdefs.h <<\_ACEOF
41874#define HAVE_SHL_LOAD 1
41875_ACEOF
41876
41877 HAVE_SHL_FUNCS=1
41878
41879else
41880
41881 echo "$as_me:$LINENO: checking for dld in -lshl_load" >&5
41882echo $ECHO_N "checking for dld in -lshl_load... $ECHO_C" >&6
41883if test "${ac_cv_lib_shl_load_dld+set}" = set; then
41884 echo $ECHO_N "(cached) $ECHO_C" >&6
41885else
41886 ac_check_lib_save_LIBS=$LIBS
41887LIBS="-lshl_load $LIBS"
41888cat >conftest.$ac_ext <<_ACEOF
41889/* confdefs.h. */
41890_ACEOF
41891cat confdefs.h >>conftest.$ac_ext
41892cat >>conftest.$ac_ext <<_ACEOF
41893/* end confdefs.h. */
41894
41895/* Override any gcc2 internal prototype to avoid an error. */
41896#ifdef __cplusplus
41897extern "C"
41898#endif
41899/* We use char because int might match the return type of a gcc2
41900 builtin and then its argument prototype would still apply. */
41901char dld ();
41902int
41903main ()
41904{
41905dld ();
41906 ;
41907 return 0;
41908}
41909_ACEOF
41910rm -f conftest.$ac_objext conftest$ac_exeext
41911if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 41912 (eval $ac_link) 2>conftest.er1
a848cd7e 41913 ac_status=$?
ac1cb8d3
VS
41914 grep -v '^ *+' conftest.er1 >conftest.err
41915 rm -f conftest.er1
41916 cat conftest.err >&5
a848cd7e
SC
41917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41918 (exit $ac_status); } &&
479c790c 41919 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
41920 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41921 (eval $ac_try) 2>&5
41922 ac_status=$?
41923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41924 (exit $ac_status); }; } &&
41925 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
41926 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41927 (eval $ac_try) 2>&5
41928 ac_status=$?
41929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41930 (exit $ac_status); }; }; then
41931 ac_cv_lib_shl_load_dld=yes
41932else
41933 echo "$as_me: failed program was:" >&5
41934sed 's/^/| /' conftest.$ac_ext >&5
41935
41936ac_cv_lib_shl_load_dld=no
41937fi
ac1cb8d3
VS
41938rm -f conftest.err conftest.$ac_objext \
41939 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
41940LIBS=$ac_check_lib_save_LIBS
41941fi
41942echo "$as_me:$LINENO: result: $ac_cv_lib_shl_load_dld" >&5
41943echo "${ECHO_T}$ac_cv_lib_shl_load_dld" >&6
41944if test $ac_cv_lib_shl_load_dld = yes; then
41945
41946 HAVE_SHL_FUNCS=1
41947 DL_LINK=" -ldld$DL_LINK"
41948
41949fi
41950
41951
41952fi
41953done
41954
41955
41956fi
41957
41958
41959fi
41960done
41961
41962
41963 if test "$HAVE_DL_FUNCS" = 1; then
41964
41965for ac_func in dlerror
41966do
41967as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
41968echo "$as_me:$LINENO: checking for $ac_func" >&5
41969echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
41970if eval "test \"\${$as_ac_var+set}\" = set"; then
41971 echo $ECHO_N "(cached) $ECHO_C" >&6
41972else
41973 cat >conftest.$ac_ext <<_ACEOF
41974/* confdefs.h. */
41975_ACEOF
41976cat confdefs.h >>conftest.$ac_ext
41977cat >>conftest.$ac_ext <<_ACEOF
41978/* end confdefs.h. */
ac1cb8d3
VS
41979/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
41980 For example, HP-UX 11i <limits.h> declares gettimeofday. */
41981#define $ac_func innocuous_$ac_func
41982
a848cd7e
SC
41983/* System header to define __stub macros and hopefully few prototypes,
41984 which can conflict with char $ac_func (); below.
41985 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41986 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 41987
a848cd7e
SC
41988#ifdef __STDC__
41989# include <limits.h>
41990#else
41991# include <assert.h>
41992#endif
ac1cb8d3
VS
41993
41994#undef $ac_func
41995
a848cd7e
SC
41996/* Override any gcc2 internal prototype to avoid an error. */
41997#ifdef __cplusplus
41998extern "C"
41999{
42000#endif
42001/* We use char because int might match the return type of a gcc2
42002 builtin and then its argument prototype would still apply. */
42003char $ac_func ();
42004/* The GNU C library defines this for functions which it implements
42005 to always fail with ENOSYS. Some functions are actually named
42006 something starting with __ and the normal name is an alias. */
42007#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
42008choke me
42009#else
42010char (*f) () = $ac_func;
42011#endif
42012#ifdef __cplusplus
42013}
42014#endif
42015
42016int
42017main ()
42018{
42019return f != $ac_func;
42020 ;
42021 return 0;
42022}
42023_ACEOF
42024rm -f conftest.$ac_objext conftest$ac_exeext
42025if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 42026 (eval $ac_link) 2>conftest.er1
a848cd7e 42027 ac_status=$?
ac1cb8d3
VS
42028 grep -v '^ *+' conftest.er1 >conftest.err
42029 rm -f conftest.er1
42030 cat conftest.err >&5
a848cd7e
SC
42031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42032 (exit $ac_status); } &&
479c790c 42033 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
42034 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42035 (eval $ac_try) 2>&5
42036 ac_status=$?
42037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42038 (exit $ac_status); }; } &&
42039 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
42040 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42041 (eval $ac_try) 2>&5
42042 ac_status=$?
42043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42044 (exit $ac_status); }; }; then
42045 eval "$as_ac_var=yes"
42046else
42047 echo "$as_me: failed program was:" >&5
42048sed 's/^/| /' conftest.$ac_ext >&5
42049
42050eval "$as_ac_var=no"
42051fi
ac1cb8d3
VS
42052rm -f conftest.err conftest.$ac_objext \
42053 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
42054fi
42055echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
42056echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
42057if test `eval echo '${'$as_ac_var'}'` = yes; then
42058 cat >>confdefs.h <<_ACEOF
42059#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
42060_ACEOF
42061 cat >>confdefs.h <<\_ACEOF
42062#define HAVE_DLERROR 1
42063_ACEOF
42064
42065else
42066
42067 echo "$as_me:$LINENO: checking for dlerror in -ldl" >&5
42068echo $ECHO_N "checking for dlerror in -ldl... $ECHO_C" >&6
42069if test "${ac_cv_lib_dl_dlerror+set}" = set; then
42070 echo $ECHO_N "(cached) $ECHO_C" >&6
42071else
42072 ac_check_lib_save_LIBS=$LIBS
42073LIBS="-ldl $LIBS"
42074cat >conftest.$ac_ext <<_ACEOF
42075/* confdefs.h. */
42076_ACEOF
42077cat confdefs.h >>conftest.$ac_ext
42078cat >>conftest.$ac_ext <<_ACEOF
42079/* end confdefs.h. */
42080
42081/* Override any gcc2 internal prototype to avoid an error. */
42082#ifdef __cplusplus
42083extern "C"
42084#endif
42085/* We use char because int might match the return type of a gcc2
42086 builtin and then its argument prototype would still apply. */
42087char dlerror ();
42088int
42089main ()
42090{
42091dlerror ();
42092 ;
42093 return 0;
42094}
42095_ACEOF
42096rm -f conftest.$ac_objext conftest$ac_exeext
42097if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 42098 (eval $ac_link) 2>conftest.er1
a848cd7e 42099 ac_status=$?
ac1cb8d3
VS
42100 grep -v '^ *+' conftest.er1 >conftest.err
42101 rm -f conftest.er1
42102 cat conftest.err >&5
a848cd7e
SC
42103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42104 (exit $ac_status); } &&
479c790c 42105 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
42106 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42107 (eval $ac_try) 2>&5
42108 ac_status=$?
42109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42110 (exit $ac_status); }; } &&
42111 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
42112 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42113 (eval $ac_try) 2>&5
42114 ac_status=$?
42115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42116 (exit $ac_status); }; }; then
42117 ac_cv_lib_dl_dlerror=yes
42118else
42119 echo "$as_me: failed program was:" >&5
42120sed 's/^/| /' conftest.$ac_ext >&5
42121
42122ac_cv_lib_dl_dlerror=no
42123fi
ac1cb8d3
VS
42124rm -f conftest.err conftest.$ac_objext \
42125 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
42126LIBS=$ac_check_lib_save_LIBS
42127fi
42128echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlerror" >&5
42129echo "${ECHO_T}$ac_cv_lib_dl_dlerror" >&6
42130if test $ac_cv_lib_dl_dlerror = yes; then
42131 cat >>confdefs.h <<\_ACEOF
42132#define HAVE_DLERROR 1
42133_ACEOF
42134
42135fi
42136
42137
42138
42139fi
42140done
42141
42142 fi
42143 fi
42144
42145 if test "$HAVE_DL_FUNCS" = 0; then
42146 if test "$HAVE_SHL_FUNCS" = 0; then
47a7e797 42147 if test "$USE_UNIX" = 1 -o "$USE_DOS" = 1; then
a848cd7e
SC
42148 { echo "$as_me:$LINENO: WARNING: Missing dynamic loading support, several features will be disabled" >&5
42149echo "$as_me: WARNING: Missing dynamic loading support, several features will be disabled" >&2;}
42150 wxUSE_DYNAMIC_LOADER=no
42151 wxUSE_DYNLIB_CLASS=no
42152 else
42153 { echo "$as_me:$LINENO: WARNING: Assuming wxLibrary class works on this platform" >&5
42154echo "$as_me: WARNING: Assuming wxLibrary class works on this platform" >&2;}
42155 fi
42156 fi
42157 fi
42158 fi
42159fi
42160
42161if test "$wxUSE_DYNAMIC_LOADER" = "yes" ; then
42162 cat >>confdefs.h <<\_ACEOF
42163#define wxUSE_DYNAMIC_LOADER 1
42164_ACEOF
42165
42166fi
42167if test "$wxUSE_DYNLIB_CLASS" = "yes" ; then
42168 cat >>confdefs.h <<\_ACEOF
42169#define wxUSE_DYNLIB_CLASS 1
42170_ACEOF
42171
42172fi
42173
42174
42175
42176if test "$wxUSE_PLUGINS" = "yes" ; then
42177 if test "$wxUSE_SHARED" = "no" ; then
42178 { echo "$as_me:$LINENO: WARNING: plugins supported only in shared build, disabling" >&5
42179echo "$as_me: WARNING: plugins supported only in shared build, disabling" >&2;}
42180 wxUSE_PLUGINS=no
42181 fi
42182 if test "$wxUSE_MONOLITHIC" = "yes" ; then
42183 { echo "$as_me:$LINENO: WARNING: plugins not supported monolithic build, disabling" >&5
42184echo "$as_me: WARNING: plugins not supported monolithic build, disabling" >&2;}
42185 wxUSE_PLUGINS=no
42186 fi
42187 if test "$wxUSE_DYNLIB_CLASS" = "no" ; then
42188 { echo "$as_me:$LINENO: WARNING: plugins require wxDynamicLibrary, disabling" >&5
42189echo "$as_me: WARNING: plugins require wxDynamicLibrary, disabling" >&2;}
42190 wxUSE_PLUGINS=no
42191 fi
42192 if test "$wxUSE_PLUGINS" = "yes" ; then
42193 cat >>confdefs.h <<\_ACEOF
42194#define wxUSE_PLUGINS 1
42195_ACEOF
42196
42197 fi
42198fi
42199
42200
42201if test "$wxUSE_STL" = "yes"; then
42202 cat >>confdefs.h <<\_ACEOF
42203#define wxUSE_STL 1
42204_ACEOF
42205
42206fi
42207
42208if test "$wxUSE_APPLE_IEEE" = "yes"; then
42209 cat >>confdefs.h <<\_ACEOF
42210#define wxUSE_APPLE_IEEE 1
42211_ACEOF
42212
42213fi
42214
42215if test "$wxUSE_TIMER" = "yes"; then
42216 cat >>confdefs.h <<\_ACEOF
42217#define wxUSE_TIMER 1
42218_ACEOF
42219
42220fi
42221
9c112555 42222if test "$USE_UNIX" = "1" ; then
31714590
VZ
42223 echo "$as_me:$LINENO: checking for SNDCTL_DSP_SPEED in sys/soundcard.h" >&5
42224echo $ECHO_N "checking for SNDCTL_DSP_SPEED in sys/soundcard.h... $ECHO_C" >&6
d12aef51 42225if test "${ac_cv_header_sys_soundcard+set}" = set; then
a848cd7e 42226 echo $ECHO_N "(cached) $ECHO_C" >&6
a848cd7e 42227else
d12aef51
VZ
42228
42229 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
42230/* confdefs.h. */
42231_ACEOF
42232cat confdefs.h >>conftest.$ac_ext
42233cat >>conftest.$ac_ext <<_ACEOF
42234/* end confdefs.h. */
d12aef51 42235
31714590 42236 #include <sys/ioctl.h>
d12aef51
VZ
42237 #include <sys/soundcard.h>
42238
42239int
42240main ()
42241{
42242
31714590 42243 ioctl(0, SNDCTL_DSP_SPEED, 0);
d12aef51
VZ
42244
42245 ;
42246 return 0;
42247}
a848cd7e 42248_ACEOF
d12aef51
VZ
42249rm -f conftest.$ac_objext conftest$ac_exeext
42250if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42251 (eval $ac_link) 2>conftest.er1
a848cd7e 42252 ac_status=$?
ac1cb8d3
VS
42253 grep -v '^ *+' conftest.er1 >conftest.err
42254 rm -f conftest.er1
42255 cat conftest.err >&5
a848cd7e
SC
42256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42257 (exit $ac_status); } &&
479c790c 42258 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
42259 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42260 (eval $ac_try) 2>&5
42261 ac_status=$?
42262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42263 (exit $ac_status); }; } &&
d12aef51 42264 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
42265 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42266 (eval $ac_try) 2>&5
42267 ac_status=$?
42268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42269 (exit $ac_status); }; }; then
d12aef51 42270 ac_cv_header_sys_soundcard=yes
a848cd7e
SC
42271else
42272 echo "$as_me: failed program was:" >&5
42273sed 's/^/| /' conftest.$ac_ext >&5
42274
a848cd7e 42275
d12aef51
VZ
42276 saveLibs="$LIBS"
42277 LIBS="$saveLibs -lossaudio"
42278 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
42279/* confdefs.h. */
42280_ACEOF
42281cat confdefs.h >>conftest.$ac_ext
42282cat >>conftest.$ac_ext <<_ACEOF
42283/* end confdefs.h. */
d12aef51 42284
31714590 42285 #include <sys/ioctl.h>
d12aef51
VZ
42286 #include <sys/soundcard.h>
42287
42288int
42289main ()
42290{
42291
31714590 42292 ioctl(0, SNDCTL_DSP_SPEED, 0);
d12aef51
VZ
42293
42294 ;
42295 return 0;
42296}
a848cd7e 42297_ACEOF
d12aef51
VZ
42298rm -f conftest.$ac_objext conftest$ac_exeext
42299if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42300 (eval $ac_link) 2>conftest.er1
a848cd7e
SC
42301 ac_status=$?
42302 grep -v '^ *+' conftest.er1 >conftest.err
42303 rm -f conftest.er1
42304 cat conftest.err >&5
42305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
d12aef51 42306 (exit $ac_status); } &&
479c790c 42307 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
d12aef51
VZ
42308 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42309 (eval $ac_try) 2>&5
42310 ac_status=$?
42311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42312 (exit $ac_status); }; } &&
42313 { ac_try='test -s conftest$ac_exeext'
42314 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42315 (eval $ac_try) 2>&5
42316 ac_status=$?
42317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42318 (exit $ac_status); }; }; then
42319 ac_cv_header_sys_soundcard=yes
a848cd7e
SC
42320else
42321 echo "$as_me: failed program was:" >&5
42322sed 's/^/| /' conftest.$ac_ext >&5
42323
a848cd7e 42324
d12aef51
VZ
42325 LIBS="$saveLibs"
42326 ac_cv_header_sys_soundcard=no
42327
42328
a848cd7e 42329fi
d12aef51
VZ
42330rm -f conftest.err conftest.$ac_objext \
42331 conftest$ac_exeext conftest.$ac_ext
42332
a848cd7e
SC
42333
42334fi
d12aef51
VZ
42335rm -f conftest.err conftest.$ac_objext \
42336 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
42337
42338fi
d12aef51
VZ
42339echo "$as_me:$LINENO: result: $ac_cv_header_sys_soundcard" >&5
42340echo "${ECHO_T}$ac_cv_header_sys_soundcard" >&6
a848cd7e 42341
d12aef51
VZ
42342 if test "$ac_cv_header_sys_soundcard" = "yes"; then
42343 cat >>confdefs.h <<\_ACEOF
42344#define HAVE_SYS_SOUNDCARD_H 1
42345_ACEOF
a848cd7e 42346
d12aef51
VZ
42347 else
42348 DISABLED_CONTRIB="$DISABLED_CONTRIB mmedia"
42349 fi
9c112555
MW
42350fi
42351WITH_PLUGIN_SDL=0
42352if test "$wxUSE_SOUND" = "yes"; then
42353 if test "$USE_UNIX" = "1" ; then
a848cd7e
SC
42354 if test "$wxUSE_LIBSDL" != "no"; then
42355
42356# Check whether --with-sdl-prefix or --without-sdl-prefix was given.
42357if test "${with_sdl_prefix+set}" = set; then
42358 withval="$with_sdl_prefix"
42359 sdl_prefix="$withval"
42360else
42361 sdl_prefix=""
42362fi;
42363
42364# Check whether --with-sdl-exec-prefix or --without-sdl-exec-prefix was given.
42365if test "${with_sdl_exec_prefix+set}" = set; then
42366 withval="$with_sdl_exec_prefix"
42367 sdl_exec_prefix="$withval"
42368else
42369 sdl_exec_prefix=""
42370fi;
42371# Check whether --enable-sdltest or --disable-sdltest was given.
42372if test "${enable_sdltest+set}" = set; then
42373 enableval="$enable_sdltest"
42374
42375else
42376 enable_sdltest=yes
42377fi;
42378
42379 if test x$sdl_exec_prefix != x ; then
3ecd9f92
MW
42380 sdl_args="$sdl_args --exec-prefix=$sdl_exec_prefix"
42381 if test x${SDL_CONFIG+set} != xset ; then
42382 SDL_CONFIG=$sdl_exec_prefix/bin/sdl-config
42383 fi
a848cd7e
SC
42384 fi
42385 if test x$sdl_prefix != x ; then
3ecd9f92
MW
42386 sdl_args="$sdl_args --prefix=$sdl_prefix"
42387 if test x${SDL_CONFIG+set} != xset ; then
42388 SDL_CONFIG=$sdl_prefix/bin/sdl-config
42389 fi
a848cd7e
SC
42390 fi
42391
3ecd9f92
MW
42392 if test "x$prefix" != xNONE; then
42393 PATH="$prefix/bin:$prefix/usr/bin:$PATH"
42394 fi
a848cd7e
SC
42395 # Extract the first word of "sdl-config", so it can be a program name with args.
42396set dummy sdl-config; ac_word=$2
42397echo "$as_me:$LINENO: checking for $ac_word" >&5
42398echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
42399if test "${ac_cv_path_SDL_CONFIG+set}" = set; then
42400 echo $ECHO_N "(cached) $ECHO_C" >&6
42401else
42402 case $SDL_CONFIG in
42403 [\\/]* | ?:[\\/]*)
42404 ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a path.
42405 ;;
42406 *)
42407 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
42408for as_dir in $PATH
42409do
42410 IFS=$as_save_IFS
42411 test -z "$as_dir" && as_dir=.
42412 for ac_exec_ext in '' $ac_executable_extensions; do
42413 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
42414 ac_cv_path_SDL_CONFIG="$as_dir/$ac_word$ac_exec_ext"
42415 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
42416 break 2
42417 fi
42418done
42419done
42420
42421 test -z "$ac_cv_path_SDL_CONFIG" && ac_cv_path_SDL_CONFIG="no"
42422 ;;
42423esac
42424fi
42425SDL_CONFIG=$ac_cv_path_SDL_CONFIG
42426
42427if test -n "$SDL_CONFIG"; then
42428 echo "$as_me:$LINENO: result: $SDL_CONFIG" >&5
42429echo "${ECHO_T}$SDL_CONFIG" >&6
42430else
42431 echo "$as_me:$LINENO: result: no" >&5
42432echo "${ECHO_T}no" >&6
42433fi
42434
42435 min_sdl_version=1.2.0
42436 echo "$as_me:$LINENO: checking for SDL - version >= $min_sdl_version" >&5
42437echo $ECHO_N "checking for SDL - version >= $min_sdl_version... $ECHO_C" >&6
42438 no_sdl=""
42439 if test "$SDL_CONFIG" = "no" ; then
42440 no_sdl=yes
42441 else
42442 SDL_CFLAGS=`$SDL_CONFIG $sdlconf_args --cflags`
42443 SDL_LIBS=`$SDL_CONFIG $sdlconf_args --libs`
42444
42445 sdl_major_version=`$SDL_CONFIG $sdl_args --version | \
42446 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
42447 sdl_minor_version=`$SDL_CONFIG $sdl_args --version | \
42448 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
42449 sdl_micro_version=`$SDL_CONFIG $sdl_config_args --version | \
42450 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
42451 if test "x$enable_sdltest" = "xyes" ; then
42452 ac_save_CFLAGS="$CFLAGS"
94acd38e 42453 ac_save_CXXFLAGS="$CXXFLAGS"
a848cd7e
SC
42454 ac_save_LIBS="$LIBS"
42455 CFLAGS="$CFLAGS $SDL_CFLAGS"
94acd38e 42456 CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
a848cd7e
SC
42457 LIBS="$LIBS $SDL_LIBS"
42458 rm -f conf.sdltest
42459 if test "$cross_compiling" = yes; then
42460 echo $ac_n "cross compiling; assumed OK... $ac_c"
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. */
42468
42469#include <stdio.h>
42470#include <stdlib.h>
42471#include <string.h>
42472#include "SDL.h"
42473
42474char*
42475my_strdup (char *str)
42476{
42477 char *new_str;
42478
42479 if (str)
42480 {
42481 new_str = (char *)malloc ((strlen (str) + 1) * sizeof(char));
42482 strcpy (new_str, str);
42483 }
42484 else
42485 new_str = NULL;
42486
42487 return new_str;
42488}
42489
42490int main (int argc, char *argv[])
42491{
42492 int major, minor, micro;
42493 char *tmp_version;
42494
42495 /* This hangs on some systems (?)
42496 system ("touch conf.sdltest");
42497 */
42498 { FILE *fp = fopen("conf.sdltest", "a"); if ( fp ) fclose(fp); }
42499
42500 /* HP/UX 9 (%@#!) writes to sscanf strings */
42501 tmp_version = my_strdup("$min_sdl_version");
42502 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
42503 printf("%s, bad version string\n", "$min_sdl_version");
42504 exit(1);
42505 }
42506
42507 if (($sdl_major_version > major) ||
42508 (($sdl_major_version == major) && ($sdl_minor_version > minor)) ||
42509 (($sdl_major_version == major) && ($sdl_minor_version == minor) && ($sdl_micro_version >= micro)))
42510 {
42511 return 0;
42512 }
42513 else
42514 {
42515 printf("\n*** 'sdl-config --version' returned %d.%d.%d, but the minimum version\n", $sdl_major_version, $sdl_minor_version, $sdl_micro_version);
42516 printf("*** of SDL required is %d.%d.%d. If sdl-config is correct, then it is\n", major, minor, micro);
42517 printf("*** best to upgrade to the required version.\n");
42518 printf("*** If sdl-config was wrong, set the environment variable SDL_CONFIG\n");
42519 printf("*** to point to the correct copy of sdl-config, and remove the file\n");
42520 printf("*** config.cache before re-running configure\n");
42521 return 1;
42522 }
42523}
42524
42525
42526_ACEOF
42527rm -f conftest$ac_exeext
42528if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42529 (eval $ac_link) 2>&5
42530 ac_status=$?
42531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42532 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
42533 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42534 (eval $ac_try) 2>&5
42535 ac_status=$?
42536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42537 (exit $ac_status); }; }; then
42538 :
42539else
42540 echo "$as_me: program exited with status $ac_status" >&5
42541echo "$as_me: failed program was:" >&5
42542sed 's/^/| /' conftest.$ac_ext >&5
42543
42544( exit $ac_status )
42545no_sdl=yes
42546fi
ac1cb8d3 42547rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
42548fi
42549 CFLAGS="$ac_save_CFLAGS"
94acd38e 42550 CXXFLAGS="$ac_save_CXXFLAGS"
a848cd7e
SC
42551 LIBS="$ac_save_LIBS"
42552 fi
42553 fi
42554 if test "x$no_sdl" = x ; then
42555 echo "$as_me:$LINENO: result: yes" >&5
42556echo "${ECHO_T}yes" >&6
42557
42558 EXTRALIBS_SDL="$SDL_LIBS"
c92ad099 42559 CXXFLAGS="$SDL_CFLAGS $CXXFLAGS"
a848cd7e
SC
42560 cat >>confdefs.h <<\_ACEOF
42561#define wxUSE_LIBSDL 1
42562_ACEOF
42563
42564
42565 else
42566 echo "$as_me:$LINENO: result: no" >&5
42567echo "${ECHO_T}no" >&6
42568 if test "$SDL_CONFIG" = "no" ; then
42569 echo "*** The sdl-config script installed by SDL could not be found"
42570 echo "*** If SDL was installed in PREFIX, make sure PREFIX/bin is in"
42571 echo "*** your path, or set the SDL_CONFIG environment variable to the"
42572 echo "*** full path to sdl-config."
42573 else
42574 if test -f conf.sdltest ; then
42575 :
42576 else
42577 echo "*** Could not run SDL test program, checking why..."
42578 CFLAGS="$CFLAGS $SDL_CFLAGS"
94acd38e 42579 CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
a848cd7e
SC
42580 LIBS="$LIBS $SDL_LIBS"
42581 cat >conftest.$ac_ext <<_ACEOF
42582/* confdefs.h. */
42583_ACEOF
42584cat confdefs.h >>conftest.$ac_ext
42585cat >>conftest.$ac_ext <<_ACEOF
42586/* end confdefs.h. */
42587
42588#include <stdio.h>
42589#include "SDL.h"
42590
42591int main(int argc, char *argv[])
42592{ return 0; }
42593#undef main
42594#define main K_and_R_C_main
42595
42596int
42597main ()
42598{
42599 return 0;
42600 ;
42601 return 0;
42602}
42603_ACEOF
42604rm -f conftest.$ac_objext conftest$ac_exeext
42605if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 42606 (eval $ac_link) 2>conftest.er1
a848cd7e 42607 ac_status=$?
ac1cb8d3
VS
42608 grep -v '^ *+' conftest.er1 >conftest.err
42609 rm -f conftest.er1
42610 cat conftest.err >&5
a848cd7e
SC
42611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42612 (exit $ac_status); } &&
479c790c 42613 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
42614 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42615 (eval $ac_try) 2>&5
42616 ac_status=$?
42617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42618 (exit $ac_status); }; } &&
42619 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
42620 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42621 (eval $ac_try) 2>&5
42622 ac_status=$?
42623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42624 (exit $ac_status); }; }; then
42625 echo "*** The test program compiled, but did not run. This usually means"
42626 echo "*** that the run-time linker is not finding SDL or finding the wrong"
42627 echo "*** version of SDL. If it is not finding SDL, you'll need to set your"
42628 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
42629 echo "*** to the installed location Also, make sure you have run ldconfig if that"
42630 echo "*** is required on your system"
42631 echo "***"
42632 echo "*** If you have an old version installed, it is best to remove it, although"
42633 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
42634else
42635 echo "$as_me: failed program was:" >&5
42636sed 's/^/| /' conftest.$ac_ext >&5
42637
42638 echo "*** The test program failed to compile or link. See the file config.log for the"
42639 echo "*** exact error that occured. This usually means SDL was incorrectly installed"
42640 echo "*** or that you have moved SDL since it was installed. In the latter case, you"
42641 echo "*** may want to edit the sdl-config script: $SDL_CONFIG"
42642fi
ac1cb8d3
VS
42643rm -f conftest.err conftest.$ac_objext \
42644 conftest$ac_exeext conftest.$ac_ext
a848cd7e 42645 CFLAGS="$ac_save_CFLAGS"
94acd38e 42646 CXXFLAGS="$ac_save_CXXFLAGS"
a848cd7e
SC
42647 LIBS="$ac_save_LIBS"
42648 fi
42649 fi
42650 SDL_CFLAGS=""
42651 SDL_LIBS=""
42652 wxUSE_LIBSDL="no"
42653 fi
42654
42655
42656 rm -f conf.sdltest
42657
42658 if test "$wxUSE_LIBSDL" = "yes" -a "$wxUSE_PLUGINS" = "yes" ; then
42659 WITH_PLUGIN_SDL=1
42660 fi
42661 fi
42662 fi
42663
42664 cat >>confdefs.h <<\_ACEOF
42665#define wxUSE_SOUND 1
42666_ACEOF
42667
42668 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sound"
42669fi
42670
d1c38808
VZ
42671if test "$WXGTK20" = 1; then
42672 if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then
42673 if test "$wxUSE_LIBGNOMEPRINT" = "yes" ; then
42674
42675
3ecd9f92
MW
42676pkg_failed=no
42677echo "$as_me:$LINENO: checking for LIBGNOMEPRINTUI" >&5
42678echo $ECHO_N "checking for LIBGNOMEPRINTUI... $ECHO_C" >&6
d1c38808 42679
3ecd9f92
MW
42680if test -n "$PKG_CONFIG"; then
42681 if test -n "$LIBGNOMEPRINTUI_CFLAGS"; then
42682 pkg_cv_LIBGNOMEPRINTUI_CFLAGS="$LIBGNOMEPRINTUI_CFLAGS"
42683 else
42684 if test -n "$PKG_CONFIG" && \
42685 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libgnomeprintui-2.2 >= 2.8\"") >&5
42686 ($PKG_CONFIG --exists --print-errors "libgnomeprintui-2.2 >= 2.8") 2>&5
42687 ac_status=$?
42688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42689 (exit $ac_status); }; then
42690 pkg_cv_LIBGNOMEPRINTUI_CFLAGS=`$PKG_CONFIG --cflags "libgnomeprintui-2.2 >= 2.8" 2>/dev/null`
d1c38808 42691else
3ecd9f92
MW
42692 pkg_failed=yes
42693fi
42694 fi
42695else
42696 pkg_failed=untried
d1c38808 42697fi
d1c38808 42698if test -n "$PKG_CONFIG"; then
3ecd9f92
MW
42699 if test -n "$LIBGNOMEPRINTUI_LIBS"; then
42700 pkg_cv_LIBGNOMEPRINTUI_LIBS="$LIBGNOMEPRINTUI_LIBS"
42701 else
42702 if test -n "$PKG_CONFIG" && \
42703 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libgnomeprintui-2.2 >= 2.8\"") >&5
42704 ($PKG_CONFIG --exists --print-errors "libgnomeprintui-2.2 >= 2.8") 2>&5
42705 ac_status=$?
42706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42707 (exit $ac_status); }; then
42708 pkg_cv_LIBGNOMEPRINTUI_LIBS=`$PKG_CONFIG --libs "libgnomeprintui-2.2 >= 2.8" 2>/dev/null`
d1c38808 42709else
3ecd9f92
MW
42710 pkg_failed=yes
42711fi
42712 fi
42713else
42714 pkg_failed=untried
d1c38808
VZ
42715fi
42716
d1c38808 42717
d1c38808 42718
3ecd9f92 42719if test $pkg_failed = yes; then
d1c38808 42720
3ecd9f92
MW
42721if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
42722 _pkg_short_errors_supported=yes
42723else
42724 _pkg_short_errors_supported=no
42725fi
42726 if test $_pkg_short_errors_supported = yes; then
42727 LIBGNOMEPRINTUI_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "libgnomeprintui-2.2 >= 2.8"`
42728 else
42729 LIBGNOMEPRINTUI_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libgnomeprintui-2.2 >= 2.8"`
d1c38808 42730 fi
3ecd9f92
MW
42731 # Put the nasty error message in config.log where it belongs
42732 echo "$LIBGNOMEPRINTUI_PKG_ERRORS" >&5
d1c38808
VZ
42733
42734
3ecd9f92
MW
42735 { echo "$as_me:$LINENO: WARNING: libgnomeprintui not found, library will use standard PostScript printing" >&5
42736echo "$as_me: WARNING: libgnomeprintui not found, library will use standard PostScript printing" >&2;}
42737 wxUSE_LIBGNOMEPRINT="no"
d1c38808
VZ
42738
42739
3ecd9f92 42740elif test $pkg_failed = untried; then
d1c38808
VZ
42741
42742 { echo "$as_me:$LINENO: WARNING: libgnomeprintui not found, library will use standard PostScript printing" >&5
42743echo "$as_me: WARNING: libgnomeprintui not found, library will use standard PostScript printing" >&2;}
42744 wxUSE_LIBGNOMEPRINT="no"
42745
42746
3ecd9f92
MW
42747else
42748 LIBGNOMEPRINTUI_CFLAGS=$pkg_cv_LIBGNOMEPRINTUI_CFLAGS
42749 LIBGNOMEPRINTUI_LIBS=$pkg_cv_LIBGNOMEPRINTUI_LIBS
42750 echo "$as_me:$LINENO: result: yes" >&5
42751echo "${ECHO_T}yes" >&6
d1c38808 42752
3ecd9f92
MW
42753 CXXFLAGS="$LIBGNOMEPRINTUI_CFLAGS $CXXFLAGS"
42754 cat >>confdefs.h <<\_ACEOF
42755#define wxUSE_LIBGNOMEPRINT 1
42756_ACEOF
42757
42758
42759fi
d1c38808
VZ
42760 fi
42761 fi
42762fi
42763
2b850ae1
RR
42764if test "$WXGTK20" = 1; then
42765 if test "$wxUSE_MIMETYPE" = "yes" ; then
42766 if test "$wxUSE_LIBGNOMEVFS" = "yes" ; then
42767
42768
3ecd9f92
MW
42769pkg_failed=no
42770echo "$as_me:$LINENO: checking for GNOMEVFS" >&5
42771echo $ECHO_N "checking for GNOMEVFS... $ECHO_C" >&6
2b850ae1 42772
3ecd9f92
MW
42773if test -n "$PKG_CONFIG"; then
42774 if test -n "$GNOMEVFS_CFLAGS"; then
42775 pkg_cv_GNOMEVFS_CFLAGS="$GNOMEVFS_CFLAGS"
42776 else
42777 if test -n "$PKG_CONFIG" && \
42778 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gnome-vfs-2.0 >= 2.0\"") >&5
42779 ($PKG_CONFIG --exists --print-errors "gnome-vfs-2.0 >= 2.0") 2>&5
42780 ac_status=$?
42781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42782 (exit $ac_status); }; then
42783 pkg_cv_GNOMEVFS_CFLAGS=`$PKG_CONFIG --cflags "gnome-vfs-2.0 >= 2.0" 2>/dev/null`
2b850ae1 42784else
3ecd9f92
MW
42785 pkg_failed=yes
42786fi
42787 fi
42788else
42789 pkg_failed=untried
2b850ae1 42790fi
2b850ae1 42791if test -n "$PKG_CONFIG"; then
3ecd9f92
MW
42792 if test -n "$GNOMEVFS_LIBS"; then
42793 pkg_cv_GNOMEVFS_LIBS="$GNOMEVFS_LIBS"
42794 else
42795 if test -n "$PKG_CONFIG" && \
42796 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gnome-vfs-2.0 >= 2.0\"") >&5
42797 ($PKG_CONFIG --exists --print-errors "gnome-vfs-2.0 >= 2.0") 2>&5
42798 ac_status=$?
42799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42800 (exit $ac_status); }; then
42801 pkg_cv_GNOMEVFS_LIBS=`$PKG_CONFIG --libs "gnome-vfs-2.0 >= 2.0" 2>/dev/null`
2b850ae1 42802else
3ecd9f92
MW
42803 pkg_failed=yes
42804fi
42805 fi
42806else
42807 pkg_failed=untried
2b850ae1
RR
42808fi
42809
2b850ae1 42810
2b850ae1 42811
3ecd9f92 42812if test $pkg_failed = yes; then
2b850ae1 42813
3ecd9f92
MW
42814if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
42815 _pkg_short_errors_supported=yes
42816else
42817 _pkg_short_errors_supported=no
42818fi
42819 if test $_pkg_short_errors_supported = yes; then
42820 GNOMEVFS_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "gnome-vfs-2.0 >= 2.0"`
42821 else
42822 GNOMEVFS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gnome-vfs-2.0 >= 2.0"`
2b850ae1 42823 fi
3ecd9f92
MW
42824 # Put the nasty error message in config.log where it belongs
42825 echo "$GNOMEVFS_PKG_ERRORS" >&5
2b850ae1
RR
42826
42827
3ecd9f92
MW
42828 { echo "$as_me:$LINENO: WARNING: libgnomevfs not found, library won't be able to associate MIME type" >&5
42829echo "$as_me: WARNING: libgnomevfs not found, library won't be able to associate MIME type" >&2;}
42830 wxUSE_LIBGNOMEVFS="no"
2b850ae1
RR
42831
42832
3ecd9f92 42833elif test $pkg_failed = untried; then
2b850ae1
RR
42834
42835 { echo "$as_me:$LINENO: WARNING: libgnomevfs not found, library won't be able to associate MIME type" >&5
42836echo "$as_me: WARNING: libgnomevfs not found, library won't be able to associate MIME type" >&2;}
42837 wxUSE_LIBGNOMEVFS="no"
42838
42839
3ecd9f92
MW
42840else
42841 GNOMEVFS_CFLAGS=$pkg_cv_GNOMEVFS_CFLAGS
42842 GNOMEVFS_LIBS=$pkg_cv_GNOMEVFS_LIBS
42843 echo "$as_me:$LINENO: result: yes" >&5
42844echo "${ECHO_T}yes" >&6
2b850ae1 42845
3ecd9f92
MW
42846 CXXFLAGS="$GNOMEVFS_CFLAGS $CXXFLAGS"
42847 cat >>confdefs.h <<\_ACEOF
42848#define wxUSE_LIBGNOMEVFS 1
42849_ACEOF
42850
42851
42852fi
2b850ae1
RR
42853 fi
42854 fi
42855fi
42856
3565d135
RR
42857if test "$WXGTK20" = 1; then
42858 if test "$wxUSE_LIBHILDON" = "yes" ; then
42859
3ecd9f92
MW
42860pkg_failed=no
42861echo "$as_me:$LINENO: checking for HILDON" >&5
42862echo $ECHO_N "checking for HILDON... $ECHO_C" >&6
3565d135 42863
3ecd9f92
MW
42864if test -n "$PKG_CONFIG"; then
42865 if test -n "$HILDON_CFLAGS"; then
42866 pkg_cv_HILDON_CFLAGS="$HILDON_CFLAGS"
42867 else
42868 if test -n "$PKG_CONFIG" && \
42869 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"hildon-lgpl >= 0.9\"") >&5
42870 ($PKG_CONFIG --exists --print-errors "hildon-lgpl >= 0.9") 2>&5
42871 ac_status=$?
42872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42873 (exit $ac_status); }; then
42874 pkg_cv_HILDON_CFLAGS=`$PKG_CONFIG --cflags "hildon-lgpl >= 0.9" 2>/dev/null`
3565d135 42875else
3ecd9f92
MW
42876 pkg_failed=yes
42877fi
42878 fi
42879else
42880 pkg_failed=untried
3565d135 42881fi
3565d135 42882if test -n "$PKG_CONFIG"; then
3ecd9f92
MW
42883 if test -n "$HILDON_LIBS"; then
42884 pkg_cv_HILDON_LIBS="$HILDON_LIBS"
42885 else
42886 if test -n "$PKG_CONFIG" && \
42887 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"hildon-lgpl >= 0.9\"") >&5
42888 ($PKG_CONFIG --exists --print-errors "hildon-lgpl >= 0.9") 2>&5
42889 ac_status=$?
42890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42891 (exit $ac_status); }; then
42892 pkg_cv_HILDON_LIBS=`$PKG_CONFIG --libs "hildon-lgpl >= 0.9" 2>/dev/null`
3565d135 42893else
3ecd9f92
MW
42894 pkg_failed=yes
42895fi
42896 fi
42897else
42898 pkg_failed=untried
3565d135
RR
42899fi
42900
3565d135 42901
3565d135 42902
3ecd9f92 42903if test $pkg_failed = yes; then
3565d135 42904
3ecd9f92
MW
42905if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
42906 _pkg_short_errors_supported=yes
42907else
42908 _pkg_short_errors_supported=no
42909fi
42910 if test $_pkg_short_errors_supported = yes; then
42911 HILDON_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "hildon-lgpl >= 0.9"`
42912 else
42913 HILDON_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "hildon-lgpl >= 0.9"`
3565d135 42914 fi
3ecd9f92
MW
42915 # Put the nasty error message in config.log where it belongs
42916 echo "$HILDON_PKG_ERRORS" >&5
3565d135
RR
42917
42918
3ecd9f92
MW
42919 { echo "$as_me:$LINENO: WARNING: libhildon_lgpl not found" >&5
42920echo "$as_me: WARNING: libhildon_lgpl not found" >&2;}
42921 wxUSE_LIBHILDON="no"
3565d135 42922
3565d135 42923
3ecd9f92
MW
42924elif test $pkg_failed = untried; then
42925
42926 { echo "$as_me:$LINENO: WARNING: libhildon_lgpl not found" >&5
42927echo "$as_me: WARNING: libhildon_lgpl not found" >&2;}
42928 wxUSE_LIBHILDON="no"
42929
42930
42931else
42932 HILDON_CFLAGS=$pkg_cv_HILDON_CFLAGS
42933 HILDON_LIBS=$pkg_cv_HILDON_LIBS
42934 echo "$as_me:$LINENO: result: yes" >&5
42935echo "${ECHO_T}yes" >&6
3565d135
RR
42936
42937 EXTRALIBS_HILDON="$HILDON_LIBS"
42938 CXXFLAGS="$CXXFLAGS $HILDON_CFLAGS"
42939 cat >>confdefs.h <<\_ACEOF
42940#define wxUSE_LIBHILDON 1
42941_ACEOF
42942
42943
3ecd9f92 42944fi
3565d135
RR
42945 fi
42946fi
d1c38808 42947
a848cd7e
SC
42948if test "$wxUSE_CMDLINE_PARSER" = "yes"; then
42949 cat >>confdefs.h <<\_ACEOF
42950#define wxUSE_CMDLINE_PARSER 1
42951_ACEOF
42952
42953fi
42954
42955if test "$wxUSE_STOPWATCH" = "yes"; then
42956 cat >>confdefs.h <<\_ACEOF
42957#define wxUSE_STOPWATCH 1
42958_ACEOF
42959
42960fi
42961
42962if test "$wxUSE_DATETIME" = "yes"; then
42963 cat >>confdefs.h <<\_ACEOF
42964#define wxUSE_DATETIME 1
42965_ACEOF
42966
42967fi
42968
42969if test "$wxUSE_FILE" = "yes"; then
42970 cat >>confdefs.h <<\_ACEOF
42971#define wxUSE_FILE 1
42972_ACEOF
42973
42974fi
42975
42976if test "$wxUSE_FFILE" = "yes"; then
42977 cat >>confdefs.h <<\_ACEOF
42978#define wxUSE_FFILE 1
42979_ACEOF
42980
42981fi
42982
42983if test "$wxUSE_FILESYSTEM" = "yes"; then
42984 cat >>confdefs.h <<\_ACEOF
42985#define wxUSE_FILESYSTEM 1
42986_ACEOF
42987
42988fi
42989
42990if test "$wxUSE_FS_ZIP" = "yes"; then
42991 cat >>confdefs.h <<\_ACEOF
42992#define wxUSE_FS_ZIP 1
42993_ACEOF
42994
42995fi
42996
9e8e867f 42997if test "$wxUSE_ARCHIVE_STREAMS" = "yes"; then
a848cd7e 42998 cat >>confdefs.h <<\_ACEOF
9e8e867f 42999#define wxUSE_ARCHIVE_STREAMS 1
81f90336
MW
43000_ACEOF
43001
43002fi
43003
43004if test "$wxUSE_ZIPSTREAM" = "yes"; then
9e8e867f 43005 if test "$wxUSE_ARCHIVE_STREAMS" != "yes"; then
81f90336
MW
43006 { echo "$as_me:$LINENO: WARNING: wxZip requires wxArchive... disabled" >&5
43007echo "$as_me: WARNING: wxZip requires wxArchive... disabled" >&2;}
43008 elif test "$wxUSE_ZLIB" = "no"; then
43009 { echo "$as_me:$LINENO: WARNING: wxZip requires wxZlib... disabled" >&5
43010echo "$as_me: WARNING: wxZip requires wxZlib... disabled" >&2;}
43011 else
43012 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
43013#define wxUSE_ZIPSTREAM 1
43014_ACEOF
43015
81f90336 43016 fi
a848cd7e
SC
43017fi
43018
a848cd7e 43019if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
18228ab4
MW
43020 if test "$USE_UNIX" != 1; then
43021 { echo "$as_me:$LINENO: WARNING: Catching fatal exceptions not currently supported on this system, wxApp::OnFatalException will not be called" >&5
43022echo "$as_me: WARNING: Catching fatal exceptions not currently supported on this system, wxApp::OnFatalException will not be called" >&2;}
43023 wxUSE_ON_FATAL_EXCEPTION=no
43024 else
43025 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
43026#define wxUSE_ON_FATAL_EXCEPTION 1
43027_ACEOF
43028
18228ab4 43029 fi
a848cd7e
SC
43030fi
43031
eaff0f0d
VZ
43032if test "$wxUSE_STACKWALKER" = "yes"; then
43033 cat >>confdefs.h <<\_ACEOF
43034#define wxUSE_STACKWALKER 1
43035_ACEOF
43036
43037fi
43038
36b6448c 43039if test "$wxUSE_DEBUGREPORT" = "yes"; then
18228ab4
MW
43040 if test "$USE_UNIX" != "1" -a "$USE_WIN32" != "1"; then
43041 { echo "$as_me:$LINENO: WARNING: Creating debug reports not currently supported on this system, disabled" >&5
43042echo "$as_me: WARNING: Creating debug reports not currently supported on this system, disabled" >&2;}
dfe0c803
JS
43043 wxUSE_DEBUGREPORT=no
43044 else
43045 cat >>confdefs.h <<\_ACEOF
36b6448c
VZ
43046#define wxUSE_DEBUGREPORT 1
43047_ACEOF
43048
21dfc162
MW
43049 if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
43050 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS debugrpt"
43051 fi
dfe0c803 43052 fi
36b6448c
VZ
43053fi
43054
a848cd7e
SC
43055if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
43056 cat >>confdefs.h <<\_ACEOF
43057#define wxUSE_SNGLINST_CHECKER 1
43058_ACEOF
43059
43060fi
43061
43062if test "$wxUSE_BUSYINFO" = "yes"; then
43063 cat >>confdefs.h <<\_ACEOF
43064#define wxUSE_BUSYINFO 1
43065_ACEOF
43066
43067fi
43068
43069if test "$wxUSE_STD_IOSTREAM" = "yes"; then
43070 cat >>confdefs.h <<\_ACEOF
43071#define wxUSE_STD_IOSTREAM 1
43072_ACEOF
43073
43074fi
43075
59746b65
MW
43076if test "$wxUSE_STD_STRING" = "yes"; then
43077 cat >>confdefs.h <<\_ACEOF
43078#define wxUSE_STD_STRING 1
43079_ACEOF
43080
43081fi
43082
07158944
VZ
43083if test "$wxUSE_STDPATHS" = "yes"; then
43084 cat >>confdefs.h <<\_ACEOF
43085#define wxUSE_STDPATHS 1
43086_ACEOF
43087
43088fi
43089
a848cd7e
SC
43090if test "$wxUSE_TEXTBUFFER" = "yes"; then
43091 cat >>confdefs.h <<\_ACEOF
43092#define wxUSE_TEXTBUFFER 1
43093_ACEOF
43094
43095fi
43096
43097if test "$wxUSE_TEXTFILE" = "yes"; then
43098 if test "$wxUSE_FILE" != "yes" -o "$wxUSE_TEXTBUFFER" != "yes" ; then
43099 { echo "$as_me:$LINENO: WARNING: wxTextFile requires wxFile and wxTextBuffer... disabled" >&5
43100echo "$as_me: WARNING: wxTextFile requires wxFile and wxTextBuffer... disabled" >&2;}
43101 else
43102 cat >>confdefs.h <<\_ACEOF
43103#define wxUSE_TEXTFILE 1
43104_ACEOF
43105
43106 fi
43107fi
43108
43109if test "$wxUSE_CONFIG" = "yes" ; then
43110 if test "$wxUSE_TEXTFILE" != "yes"; then
43111 { echo "$as_me:$LINENO: WARNING: wxConfig requires wxTextFile... disabled" >&5
43112echo "$as_me: WARNING: wxConfig requires wxTextFile... disabled" >&2;}
43113 else
43114 cat >>confdefs.h <<\_ACEOF
43115#define wxUSE_CONFIG 1
89be85c2
VS
43116_ACEOF
43117
43118 cat >>confdefs.h <<\_ACEOF
43119#define wxUSE_CONFIG_NATIVE 1
a848cd7e
SC
43120_ACEOF
43121
43122 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS config"
43123 fi
43124fi
43125
43126if test "$wxUSE_INTL" = "yes" ; then
43127 if test "$wxUSE_FILE" != "yes"; then
43128 { echo "$as_me:$LINENO: WARNING: I18n code requires wxFile... disabled" >&5
43129echo "$as_me: WARNING: I18n code requires wxFile... disabled" >&2;}
43130 else
43131 cat >>confdefs.h <<\_ACEOF
43132#define wxUSE_INTL 1
43133_ACEOF
43134
43135 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS internat"
43136 GUIDIST="$GUIDIST INTL_DIST"
43137 fi
43138fi
43139
43140if test "$wxUSE_LOG" = "yes"; then
43141 cat >>confdefs.h <<\_ACEOF
43142#define wxUSE_LOG 1
43143_ACEOF
43144
43145
43146 if test "$wxUSE_LOGGUI" = "yes"; then
43147 cat >>confdefs.h <<\_ACEOF
43148#define wxUSE_LOGGUI 1
43149_ACEOF
43150
43151 fi
43152
43153 if test "$wxUSE_LOGWINDOW" = "yes"; then
43154 cat >>confdefs.h <<\_ACEOF
43155#define wxUSE_LOGWINDOW 1
43156_ACEOF
43157
43158 fi
43159
43160 if test "$wxUSE_LOGDIALOG" = "yes"; then
43161 cat >>confdefs.h <<\_ACEOF
43162#define wxUSE_LOG_DIALOG 1
43163_ACEOF
43164
43165 fi
0b78747f
MW
43166
43167 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS keyboard"
a848cd7e
SC
43168fi
43169
43170if test "$wxUSE_LONGLONG" = "yes"; then
43171 cat >>confdefs.h <<\_ACEOF
43172#define wxUSE_LONGLONG 1
43173_ACEOF
43174
43175fi
43176
43177if test "$wxUSE_GEOMETRY" = "yes"; then
43178 cat >>confdefs.h <<\_ACEOF
43179#define wxUSE_GEOMETRY 1
43180_ACEOF
43181
43182fi
43183
a848cd7e
SC
43184if test "$wxUSE_STREAMS" = "yes" ; then
43185 cat >>confdefs.h <<\_ACEOF
43186#define wxUSE_STREAMS 1
43187_ACEOF
43188
43189fi
43190
8b6682b9
JS
43191if test "$wxUSE_PRINTF_POS_PARAMS" = "yes"; then
43192 cat >>confdefs.h <<\_ACEOF
43193#define wxUSE_PRINTF_POS_PARAMS 1
43194_ACEOF
43195
43196fi
43197
43198
a848cd7e
SC
43199
43200if test "$wxUSE_DATETIME" = "yes"; then
43201
43202for ac_func in strptime
43203do
43204as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
43205echo "$as_me:$LINENO: checking for $ac_func" >&5
43206echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
43207if eval "test \"\${$as_ac_var+set}\" = set"; then
43208 echo $ECHO_N "(cached) $ECHO_C" >&6
43209else
43210 cat >conftest.$ac_ext <<_ACEOF
43211/* confdefs.h. */
43212_ACEOF
43213cat confdefs.h >>conftest.$ac_ext
43214cat >>conftest.$ac_ext <<_ACEOF
43215/* end confdefs.h. */
ac1cb8d3
VS
43216/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
43217 For example, HP-UX 11i <limits.h> declares gettimeofday. */
43218#define $ac_func innocuous_$ac_func
43219
a848cd7e
SC
43220/* System header to define __stub macros and hopefully few prototypes,
43221 which can conflict with char $ac_func (); below.
43222 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
43223 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 43224
a848cd7e
SC
43225#ifdef __STDC__
43226# include <limits.h>
43227#else
43228# include <assert.h>
43229#endif
ac1cb8d3
VS
43230
43231#undef $ac_func
43232
a848cd7e
SC
43233/* Override any gcc2 internal prototype to avoid an error. */
43234#ifdef __cplusplus
43235extern "C"
43236{
43237#endif
43238/* We use char because int might match the return type of a gcc2
43239 builtin and then its argument prototype would still apply. */
43240char $ac_func ();
43241/* The GNU C library defines this for functions which it implements
43242 to always fail with ENOSYS. Some functions are actually named
43243 something starting with __ and the normal name is an alias. */
43244#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
43245choke me
43246#else
43247char (*f) () = $ac_func;
43248#endif
43249#ifdef __cplusplus
43250}
43251#endif
43252
43253int
43254main ()
43255{
43256return f != $ac_func;
43257 ;
43258 return 0;
43259}
43260_ACEOF
43261rm -f conftest.$ac_objext conftest$ac_exeext
43262if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 43263 (eval $ac_link) 2>conftest.er1
a848cd7e 43264 ac_status=$?
ac1cb8d3
VS
43265 grep -v '^ *+' conftest.er1 >conftest.err
43266 rm -f conftest.er1
43267 cat conftest.err >&5
a848cd7e
SC
43268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43269 (exit $ac_status); } &&
479c790c 43270 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
43271 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43272 (eval $ac_try) 2>&5
43273 ac_status=$?
43274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43275 (exit $ac_status); }; } &&
43276 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
43277 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43278 (eval $ac_try) 2>&5
43279 ac_status=$?
43280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43281 (exit $ac_status); }; }; then
43282 eval "$as_ac_var=yes"
43283else
43284 echo "$as_me: failed program was:" >&5
43285sed 's/^/| /' conftest.$ac_ext >&5
43286
43287eval "$as_ac_var=no"
43288fi
ac1cb8d3
VS
43289rm -f conftest.err conftest.$ac_objext \
43290 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
43291fi
43292echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
43293echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
43294if test `eval echo '${'$as_ac_var'}'` = yes; then
43295 cat >>confdefs.h <<_ACEOF
43296#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
43297_ACEOF
43298
43299fi
43300done
43301
f536f005
VZ
43302 if test "$ac_cv_func_strptime" = "yes"; then
43303 echo "$as_me:$LINENO: checking for strptime declaration" >&5
43304echo $ECHO_N "checking for strptime declaration... $ECHO_C" >&6
43305if test "${wx_cv_func_strptime_decl+set}" = set; then
43306 echo $ECHO_N "(cached) $ECHO_C" >&6
43307else
43308
f536f005
VZ
43309 cat >conftest.$ac_ext <<_ACEOF
43310/* confdefs.h. */
43311_ACEOF
43312cat confdefs.h >>conftest.$ac_ext
43313cat >>conftest.$ac_ext <<_ACEOF
43314/* end confdefs.h. */
43315
43316 #include <time.h>
43317
43318int
43319main ()
43320{
43321
43322 struct tm t;
43323 strptime("foo", "bar", &t);
43324
43325 ;
43326 return 0;
43327}
43328_ACEOF
43329rm -f conftest.$ac_objext
43330if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
43331 (eval $ac_compile) 2>conftest.er1
43332 ac_status=$?
43333 grep -v '^ *+' conftest.er1 >conftest.err
43334 rm -f conftest.er1
43335 cat conftest.err >&5
43336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43337 (exit $ac_status); } &&
479c790c 43338 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
f536f005
VZ
43339 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43340 (eval $ac_try) 2>&5
43341 ac_status=$?
43342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43343 (exit $ac_status); }; } &&
43344 { ac_try='test -s conftest.$ac_objext'
43345 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43346 (eval $ac_try) 2>&5
43347 ac_status=$?
43348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43349 (exit $ac_status); }; }; then
43350 wx_cv_func_strptime_decl=yes
43351else
43352 echo "$as_me: failed program was:" >&5
43353sed 's/^/| /' conftest.$ac_ext >&5
43354
43355wx_cv_func_strptime_decl=no
43356
43357fi
43358rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
f536f005
VZ
43359
43360
43361fi
43362echo "$as_me:$LINENO: result: $wx_cv_func_strptime_decl" >&5
43363echo "${ECHO_T}$wx_cv_func_strptime_decl" >&6
43364 fi
43365 if test "$wx_cv_func_strptime_decl" = "yes"; then
43366 cat >>confdefs.h <<\_ACEOF
43367#define HAVE_STRPTIME_DECL 1
43368_ACEOF
43369
43370 fi
a848cd7e
SC
43371
43372 echo "$as_me:$LINENO: checking for timezone variable in <time.h>" >&5
43373echo $ECHO_N "checking for timezone variable in <time.h>... $ECHO_C" >&6
43374if test "${wx_cv_var_timezone+set}" = set; then
43375 echo $ECHO_N "(cached) $ECHO_C" >&6
43376else
43377
43378 cat >conftest.$ac_ext <<_ACEOF
43379/* confdefs.h. */
43380_ACEOF
43381cat confdefs.h >>conftest.$ac_ext
43382cat >>conftest.$ac_ext <<_ACEOF
43383/* end confdefs.h. */
43384
43385 #include <time.h>
43386
43387int
43388main ()
43389{
43390
43391 int tz;
43392 tz = timezone;
43393
43394 ;
43395 return 0;
43396}
43397_ACEOF
43398rm -f conftest.$ac_objext
43399if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 43400 (eval $ac_compile) 2>conftest.er1
a848cd7e 43401 ac_status=$?
ac1cb8d3
VS
43402 grep -v '^ *+' conftest.er1 >conftest.err
43403 rm -f conftest.er1
43404 cat conftest.err >&5
a848cd7e
SC
43405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43406 (exit $ac_status); } &&
479c790c 43407 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
43408 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43409 (eval $ac_try) 2>&5
43410 ac_status=$?
43411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43412 (exit $ac_status); }; } &&
43413 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
43414 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43415 (eval $ac_try) 2>&5
43416 ac_status=$?
43417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43418 (exit $ac_status); }; }; then
43419
43420 wx_cv_var_timezone=timezone
43421
43422else
43423 echo "$as_me: failed program was:" >&5
43424sed 's/^/| /' conftest.$ac_ext >&5
43425
43426
43427 cat >conftest.$ac_ext <<_ACEOF
43428/* confdefs.h. */
43429_ACEOF
43430cat confdefs.h >>conftest.$ac_ext
43431cat >>conftest.$ac_ext <<_ACEOF
43432/* end confdefs.h. */
43433
43434 #include <time.h>
43435
43436int
43437main ()
43438{
43439
43440 int tz;
43441 tz = _timezone;
43442
43443 ;
43444 return 0;
43445}
43446_ACEOF
43447rm -f conftest.$ac_objext
43448if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 43449 (eval $ac_compile) 2>conftest.er1
a848cd7e 43450 ac_status=$?
ac1cb8d3
VS
43451 grep -v '^ *+' conftest.er1 >conftest.err
43452 rm -f conftest.er1
43453 cat conftest.err >&5
a848cd7e
SC
43454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43455 (exit $ac_status); } &&
479c790c 43456 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
43457 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43458 (eval $ac_try) 2>&5
43459 ac_status=$?
43460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43461 (exit $ac_status); }; } &&
43462 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
43463 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43464 (eval $ac_try) 2>&5
43465 ac_status=$?
43466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43467 (exit $ac_status); }; }; then
43468
43469 wx_cv_var_timezone=_timezone
43470
43471else
43472 echo "$as_me: failed program was:" >&5
43473sed 's/^/| /' conftest.$ac_ext >&5
43474
43475
43476 cat >conftest.$ac_ext <<_ACEOF
43477/* confdefs.h. */
43478_ACEOF
43479cat confdefs.h >>conftest.$ac_ext
43480cat >>conftest.$ac_ext <<_ACEOF
43481/* end confdefs.h. */
43482
43483 #include <time.h>
43484
43485int
43486main ()
43487{
43488
43489 int tz;
43490 tz = __timezone;
43491
43492 ;
43493 return 0;
43494}
43495_ACEOF
43496rm -f conftest.$ac_objext
43497if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 43498 (eval $ac_compile) 2>conftest.er1
a848cd7e 43499 ac_status=$?
ac1cb8d3
VS
43500 grep -v '^ *+' conftest.er1 >conftest.err
43501 rm -f conftest.er1
43502 cat conftest.err >&5
a848cd7e
SC
43503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43504 (exit $ac_status); } &&
479c790c 43505 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
43506 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43507 (eval $ac_try) 2>&5
43508 ac_status=$?
43509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43510 (exit $ac_status); }; } &&
43511 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
43512 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43513 (eval $ac_try) 2>&5
43514 ac_status=$?
43515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43516 (exit $ac_status); }; }; then
43517
43518 wx_cv_var_timezone=__timezone
43519
43520else
43521 echo "$as_me: failed program was:" >&5
43522sed 's/^/| /' conftest.$ac_ext >&5
43523
43524
43525 if test "$USE_DOS" = 0 ; then
43526 { echo "$as_me:$LINENO: WARNING: no timezone variable" >&5
43527echo "$as_me: WARNING: no timezone variable" >&2;}
43528 fi
43529
43530
43531fi
ac1cb8d3 43532rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
43533
43534
43535fi
ac1cb8d3 43536rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
43537
43538
43539fi
ac1cb8d3 43540rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
43541
43542
43543fi
43544echo "$as_me:$LINENO: result: $wx_cv_var_timezone" >&5
43545echo "${ECHO_T}$wx_cv_var_timezone" >&6
43546
43547 if test "x$wx_cv_var_timezone" != x ; then
43548 cat >>confdefs.h <<_ACEOF
43549#define WX_TIMEZONE $wx_cv_var_timezone
43550_ACEOF
43551
43552 fi
43553
43554
43555for ac_func in localtime
43556do
43557as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
43558echo "$as_me:$LINENO: checking for $ac_func" >&5
43559echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
43560if eval "test \"\${$as_ac_var+set}\" = set"; then
43561 echo $ECHO_N "(cached) $ECHO_C" >&6
43562else
43563 cat >conftest.$ac_ext <<_ACEOF
43564/* confdefs.h. */
43565_ACEOF
43566cat confdefs.h >>conftest.$ac_ext
43567cat >>conftest.$ac_ext <<_ACEOF
43568/* end confdefs.h. */
ac1cb8d3
VS
43569/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
43570 For example, HP-UX 11i <limits.h> declares gettimeofday. */
43571#define $ac_func innocuous_$ac_func
43572
a848cd7e
SC
43573/* System header to define __stub macros and hopefully few prototypes,
43574 which can conflict with char $ac_func (); below.
43575 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
43576 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 43577
a848cd7e
SC
43578#ifdef __STDC__
43579# include <limits.h>
43580#else
43581# include <assert.h>
43582#endif
ac1cb8d3
VS
43583
43584#undef $ac_func
43585
a848cd7e
SC
43586/* Override any gcc2 internal prototype to avoid an error. */
43587#ifdef __cplusplus
43588extern "C"
43589{
43590#endif
43591/* We use char because int might match the return type of a gcc2
43592 builtin and then its argument prototype would still apply. */
43593char $ac_func ();
43594/* The GNU C library defines this for functions which it implements
43595 to always fail with ENOSYS. Some functions are actually named
43596 something starting with __ and the normal name is an alias. */
43597#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
43598choke me
43599#else
43600char (*f) () = $ac_func;
43601#endif
43602#ifdef __cplusplus
43603}
43604#endif
43605
43606int
43607main ()
43608{
43609return f != $ac_func;
43610 ;
43611 return 0;
43612}
43613_ACEOF
43614rm -f conftest.$ac_objext conftest$ac_exeext
43615if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 43616 (eval $ac_link) 2>conftest.er1
a848cd7e 43617 ac_status=$?
ac1cb8d3
VS
43618 grep -v '^ *+' conftest.er1 >conftest.err
43619 rm -f conftest.er1
43620 cat conftest.err >&5
a848cd7e
SC
43621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43622 (exit $ac_status); } &&
479c790c 43623 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
43624 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43625 (eval $ac_try) 2>&5
43626 ac_status=$?
43627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43628 (exit $ac_status); }; } &&
43629 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
43630 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43631 (eval $ac_try) 2>&5
43632 ac_status=$?
43633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43634 (exit $ac_status); }; }; then
43635 eval "$as_ac_var=yes"
43636else
43637 echo "$as_me: failed program was:" >&5
43638sed 's/^/| /' conftest.$ac_ext >&5
43639
43640eval "$as_ac_var=no"
43641fi
ac1cb8d3
VS
43642rm -f conftest.err conftest.$ac_objext \
43643 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
43644fi
43645echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
43646echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
43647if test `eval echo '${'$as_ac_var'}'` = yes; then
43648 cat >>confdefs.h <<_ACEOF
43649#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
43650_ACEOF
43651
43652fi
43653done
43654
43655
43656 if test "$ac_cv_func_localtime" = "yes"; then
43657 echo "$as_me:$LINENO: checking for tm_gmtoff in struct tm" >&5
43658echo $ECHO_N "checking for tm_gmtoff in struct tm... $ECHO_C" >&6
43659if test "${wx_cv_struct_tm_has_gmtoff+set}" = set; then
43660 echo $ECHO_N "(cached) $ECHO_C" >&6
43661else
43662
43663 cat >conftest.$ac_ext <<_ACEOF
43664/* confdefs.h. */
43665_ACEOF
43666cat confdefs.h >>conftest.$ac_ext
43667cat >>conftest.$ac_ext <<_ACEOF
43668/* end confdefs.h. */
43669
43670 #include <time.h>
43671
43672int
43673main ()
43674{
43675
43676 struct tm tm;
43677 tm.tm_gmtoff++;
43678
43679 ;
43680 return 0;
43681}
43682_ACEOF
43683rm -f conftest.$ac_objext
43684if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 43685 (eval $ac_compile) 2>conftest.er1
a848cd7e 43686 ac_status=$?
ac1cb8d3
VS
43687 grep -v '^ *+' conftest.er1 >conftest.err
43688 rm -f conftest.er1
43689 cat conftest.err >&5
a848cd7e
SC
43690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43691 (exit $ac_status); } &&
479c790c 43692 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
43693 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43694 (eval $ac_try) 2>&5
43695 ac_status=$?
43696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43697 (exit $ac_status); }; } &&
43698 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
43699 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43700 (eval $ac_try) 2>&5
43701 ac_status=$?
43702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43703 (exit $ac_status); }; }; then
43704
43705 wx_cv_struct_tm_has_gmtoff=yes
43706
43707else
43708 echo "$as_me: failed program was:" >&5
43709sed 's/^/| /' conftest.$ac_ext >&5
43710
43711wx_cv_struct_tm_has_gmtoff=no
43712
43713fi
ac1cb8d3 43714rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
43715
43716fi
43717echo "$as_me:$LINENO: result: $wx_cv_struct_tm_has_gmtoff" >&5
43718echo "${ECHO_T}$wx_cv_struct_tm_has_gmtoff" >&6
43719 fi
43720
43721 if test "$wx_cv_struct_tm_has_gmtoff" = "yes"; then
43722 cat >>confdefs.h <<\_ACEOF
43723#define WX_GMTOFF_IN_TM 1
43724_ACEOF
43725
43726 fi
43727
43728
43729
43730for ac_func in gettimeofday ftime
43731do
43732as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
43733echo "$as_me:$LINENO: checking for $ac_func" >&5
43734echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
43735if eval "test \"\${$as_ac_var+set}\" = set"; then
43736 echo $ECHO_N "(cached) $ECHO_C" >&6
43737else
43738 cat >conftest.$ac_ext <<_ACEOF
43739/* confdefs.h. */
43740_ACEOF
43741cat confdefs.h >>conftest.$ac_ext
43742cat >>conftest.$ac_ext <<_ACEOF
43743/* end confdefs.h. */
ac1cb8d3
VS
43744/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
43745 For example, HP-UX 11i <limits.h> declares gettimeofday. */
43746#define $ac_func innocuous_$ac_func
43747
a848cd7e
SC
43748/* System header to define __stub macros and hopefully few prototypes,
43749 which can conflict with char $ac_func (); below.
43750 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
43751 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 43752
a848cd7e
SC
43753#ifdef __STDC__
43754# include <limits.h>
43755#else
43756# include <assert.h>
43757#endif
ac1cb8d3
VS
43758
43759#undef $ac_func
43760
a848cd7e
SC
43761/* Override any gcc2 internal prototype to avoid an error. */
43762#ifdef __cplusplus
43763extern "C"
43764{
43765#endif
43766/* We use char because int might match the return type of a gcc2
43767 builtin and then its argument prototype would still apply. */
43768char $ac_func ();
43769/* The GNU C library defines this for functions which it implements
43770 to always fail with ENOSYS. Some functions are actually named
43771 something starting with __ and the normal name is an alias. */
43772#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
43773choke me
43774#else
43775char (*f) () = $ac_func;
43776#endif
43777#ifdef __cplusplus
43778}
43779#endif
43780
43781int
43782main ()
43783{
43784return f != $ac_func;
43785 ;
43786 return 0;
43787}
43788_ACEOF
43789rm -f conftest.$ac_objext conftest$ac_exeext
43790if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 43791 (eval $ac_link) 2>conftest.er1
a848cd7e 43792 ac_status=$?
ac1cb8d3
VS
43793 grep -v '^ *+' conftest.er1 >conftest.err
43794 rm -f conftest.er1
43795 cat conftest.err >&5
a848cd7e
SC
43796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43797 (exit $ac_status); } &&
479c790c 43798 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
43799 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43800 (eval $ac_try) 2>&5
43801 ac_status=$?
43802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43803 (exit $ac_status); }; } &&
43804 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
43805 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43806 (eval $ac_try) 2>&5
43807 ac_status=$?
43808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43809 (exit $ac_status); }; }; then
43810 eval "$as_ac_var=yes"
43811else
43812 echo "$as_me: failed program was:" >&5
43813sed 's/^/| /' conftest.$ac_ext >&5
43814
43815eval "$as_ac_var=no"
43816fi
ac1cb8d3
VS
43817rm -f conftest.err conftest.$ac_objext \
43818 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
43819fi
43820echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
43821echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
43822if test `eval echo '${'$as_ac_var'}'` = yes; then
43823 cat >>confdefs.h <<_ACEOF
43824#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
43825_ACEOF
43826 break
43827fi
43828done
43829
43830
43831 if test "$ac_cv_func_gettimeofday" = "yes"; then
43832 echo "$as_me:$LINENO: checking whether gettimeofday takes two arguments" >&5
43833echo $ECHO_N "checking whether gettimeofday takes two arguments... $ECHO_C" >&6
43834if test "${wx_cv_func_gettimeofday_has_2_args+set}" = set; then
43835 echo $ECHO_N "(cached) $ECHO_C" >&6
43836else
43837
5d7b7554 43838 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
43839/* confdefs.h. */
43840_ACEOF
43841cat confdefs.h >>conftest.$ac_ext
43842cat >>conftest.$ac_ext <<_ACEOF
43843/* end confdefs.h. */
43844
43845 #include <sys/time.h>
43846 #include <unistd.h>
43847
43848int
43849main ()
43850{
43851
43852 struct timeval tv;
43853 gettimeofday(&tv, NULL);
43854
43855 ;
43856 return 0;
43857}
43858_ACEOF
43859rm -f conftest.$ac_objext
43860if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 43861 (eval $ac_compile) 2>conftest.er1
a848cd7e 43862 ac_status=$?
ac1cb8d3
VS
43863 grep -v '^ *+' conftest.er1 >conftest.err
43864 rm -f conftest.er1
43865 cat conftest.err >&5
a848cd7e
SC
43866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43867 (exit $ac_status); } &&
479c790c 43868 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
43869 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43870 (eval $ac_try) 2>&5
43871 ac_status=$?
43872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43873 (exit $ac_status); }; } &&
43874 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
43875 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43876 (eval $ac_try) 2>&5
43877 ac_status=$?
43878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43879 (exit $ac_status); }; }; then
43880 wx_cv_func_gettimeofday_has_2_args=yes
43881else
43882 echo "$as_me: failed program was:" >&5
43883sed 's/^/| /' conftest.$ac_ext >&5
43884
43885cat >conftest.$ac_ext <<_ACEOF
43886/* confdefs.h. */
43887_ACEOF
43888cat confdefs.h >>conftest.$ac_ext
43889cat >>conftest.$ac_ext <<_ACEOF
43890/* end confdefs.h. */
43891
43892 #include <sys/time.h>
43893 #include <unistd.h>
43894
43895int
43896main ()
43897{
43898
43899 struct timeval tv;
43900 gettimeofday(&tv);
43901
43902 ;
43903 return 0;
43904}
43905_ACEOF
43906rm -f conftest.$ac_objext
43907if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 43908 (eval $ac_compile) 2>conftest.er1
a848cd7e 43909 ac_status=$?
ac1cb8d3
VS
43910 grep -v '^ *+' conftest.er1 >conftest.err
43911 rm -f conftest.er1
43912 cat conftest.err >&5
a848cd7e
SC
43913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43914 (exit $ac_status); } &&
479c790c 43915 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
43916 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43917 (eval $ac_try) 2>&5
43918 ac_status=$?
43919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43920 (exit $ac_status); }; } &&
43921 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
43922 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43923 (eval $ac_try) 2>&5
43924 ac_status=$?
43925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43926 (exit $ac_status); }; }; then
43927 wx_cv_func_gettimeofday_has_2_args=no
43928else
43929 echo "$as_me: failed program was:" >&5
43930sed 's/^/| /' conftest.$ac_ext >&5
43931
43932
43933 { echo "$as_me:$LINENO: WARNING: failed to determine number of gettimeofday() arguments" >&5
43934echo "$as_me: WARNING: failed to determine number of gettimeofday() arguments" >&2;}
43935 wx_cv_func_gettimeofday_has_2_args=unknown
43936
43937
43938fi
ac1cb8d3 43939rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
43940
43941fi
ac1cb8d3 43942rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
43943
43944fi
43945echo "$as_me:$LINENO: result: $wx_cv_func_gettimeofday_has_2_args" >&5
43946echo "${ECHO_T}$wx_cv_func_gettimeofday_has_2_args" >&6
43947
43948 if test "$wx_cv_func_gettimeofday_has_2_args" != "yes"; then
43949 cat >>confdefs.h <<\_ACEOF
43950#define WX_GETTIMEOFDAY_NO_TZ 1
43951_ACEOF
43952
43953 fi
43954 fi
43955
43956 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS typetest"
43957fi
43958
43959
43960if test "$wxUSE_SOCKETS" = "yes"; then
43961 if test "$wxUSE_MGL" = "1"; then
43962 { echo "$as_me:$LINENO: WARNING: wxSocket not yet supported under MGL... disabled" >&5
43963echo "$as_me: WARNING: wxSocket not yet supported under MGL... disabled" >&2;}
43964 wxUSE_SOCKETS="no"
43965 fi
43966fi
43967
43968if test "$wxUSE_SOCKETS" = "yes"; then
43969 if test "$TOOLKIT" != "MSW"; then
43970 echo "$as_me:$LINENO: checking for socket" >&5
43971echo $ECHO_N "checking for socket... $ECHO_C" >&6
43972if test "${ac_cv_func_socket+set}" = set; then
43973 echo $ECHO_N "(cached) $ECHO_C" >&6
43974else
43975 cat >conftest.$ac_ext <<_ACEOF
43976/* confdefs.h. */
43977_ACEOF
43978cat confdefs.h >>conftest.$ac_ext
43979cat >>conftest.$ac_ext <<_ACEOF
43980/* end confdefs.h. */
ac1cb8d3
VS
43981/* Define socket to an innocuous variant, in case <limits.h> declares socket.
43982 For example, HP-UX 11i <limits.h> declares gettimeofday. */
43983#define socket innocuous_socket
43984
a848cd7e
SC
43985/* System header to define __stub macros and hopefully few prototypes,
43986 which can conflict with char socket (); below.
43987 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
43988 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 43989
a848cd7e
SC
43990#ifdef __STDC__
43991# include <limits.h>
43992#else
43993# include <assert.h>
43994#endif
ac1cb8d3
VS
43995
43996#undef socket
43997
a848cd7e
SC
43998/* Override any gcc2 internal prototype to avoid an error. */
43999#ifdef __cplusplus
44000extern "C"
44001{
44002#endif
44003/* We use char because int might match the return type of a gcc2
44004 builtin and then its argument prototype would still apply. */
44005char socket ();
44006/* The GNU C library defines this for functions which it implements
44007 to always fail with ENOSYS. Some functions are actually named
44008 something starting with __ and the normal name is an alias. */
44009#if defined (__stub_socket) || defined (__stub___socket)
44010choke me
44011#else
44012char (*f) () = socket;
44013#endif
44014#ifdef __cplusplus
44015}
44016#endif
44017
44018int
44019main ()
44020{
44021return f != socket;
44022 ;
44023 return 0;
44024}
44025_ACEOF
44026rm -f conftest.$ac_objext conftest$ac_exeext
44027if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 44028 (eval $ac_link) 2>conftest.er1
a848cd7e 44029 ac_status=$?
ac1cb8d3
VS
44030 grep -v '^ *+' conftest.er1 >conftest.err
44031 rm -f conftest.er1
44032 cat conftest.err >&5
a848cd7e
SC
44033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44034 (exit $ac_status); } &&
479c790c 44035 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
44036 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44037 (eval $ac_try) 2>&5
44038 ac_status=$?
44039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44040 (exit $ac_status); }; } &&
44041 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
44042 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44043 (eval $ac_try) 2>&5
44044 ac_status=$?
44045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44046 (exit $ac_status); }; }; then
44047 ac_cv_func_socket=yes
44048else
44049 echo "$as_me: failed program was:" >&5
44050sed 's/^/| /' conftest.$ac_ext >&5
44051
44052ac_cv_func_socket=no
44053fi
ac1cb8d3
VS
44054rm -f conftest.err conftest.$ac_objext \
44055 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
44056fi
44057echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
44058echo "${ECHO_T}$ac_cv_func_socket" >&6
44059if test $ac_cv_func_socket = yes; then
44060 :
44061else
44062
44063 echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
44064echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
44065if test "${ac_cv_lib_socket_socket+set}" = set; then
44066 echo $ECHO_N "(cached) $ECHO_C" >&6
44067else
44068 ac_check_lib_save_LIBS=$LIBS
44069LIBS="-lsocket $LIBS"
44070cat >conftest.$ac_ext <<_ACEOF
44071/* confdefs.h. */
44072_ACEOF
44073cat confdefs.h >>conftest.$ac_ext
44074cat >>conftest.$ac_ext <<_ACEOF
44075/* end confdefs.h. */
44076
44077/* Override any gcc2 internal prototype to avoid an error. */
44078#ifdef __cplusplus
44079extern "C"
44080#endif
44081/* We use char because int might match the return type of a gcc2
44082 builtin and then its argument prototype would still apply. */
44083char socket ();
44084int
44085main ()
44086{
44087socket ();
44088 ;
44089 return 0;
44090}
44091_ACEOF
44092rm -f conftest.$ac_objext conftest$ac_exeext
44093if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 44094 (eval $ac_link) 2>conftest.er1
a848cd7e 44095 ac_status=$?
ac1cb8d3
VS
44096 grep -v '^ *+' conftest.er1 >conftest.err
44097 rm -f conftest.er1
44098 cat conftest.err >&5
a848cd7e
SC
44099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44100 (exit $ac_status); } &&
479c790c 44101 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
44102 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44103 (eval $ac_try) 2>&5
44104 ac_status=$?
44105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44106 (exit $ac_status); }; } &&
44107 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
44108 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44109 (eval $ac_try) 2>&5
44110 ac_status=$?
44111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44112 (exit $ac_status); }; }; then
44113 ac_cv_lib_socket_socket=yes
44114else
44115 echo "$as_me: failed program was:" >&5
44116sed 's/^/| /' conftest.$ac_ext >&5
44117
44118ac_cv_lib_socket_socket=no
44119fi
ac1cb8d3
VS
44120rm -f conftest.err conftest.$ac_objext \
44121 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
44122LIBS=$ac_check_lib_save_LIBS
44123fi
44124echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
44125echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
44126if test $ac_cv_lib_socket_socket = yes; then
44127 if test "$INET_LINK" != " -lsocket"; then
44128 INET_LINK="$INET_LINK -lsocket"
44129 fi
44130else
44131
44132 { echo "$as_me:$LINENO: WARNING: socket library not found - sockets will be disabled" >&5
44133echo "$as_me: WARNING: socket library not found - sockets will be disabled" >&2;}
44134 wxUSE_SOCKETS=no
44135
44136
44137fi
44138
44139
44140
44141fi
44142
44143 fi
44144fi
44145
44146if test "$wxUSE_SOCKETS" = "yes" ; then
44147 if test "$TOOLKIT" != "MSW"; then
5d7b7554 44148 echo "$as_me:$LINENO: checking what is the type of the third argument of getsockname" >&5
a848cd7e
SC
44149echo $ECHO_N "checking what is the type of the third argument of getsockname... $ECHO_C" >&6
44150if test "${wx_cv_type_getsockname3+set}" = set; then
44151 echo $ECHO_N "(cached) $ECHO_C" >&6
44152else
44153
44154 cat >conftest.$ac_ext <<_ACEOF
44155/* confdefs.h. */
44156_ACEOF
44157cat confdefs.h >>conftest.$ac_ext
44158cat >>conftest.$ac_ext <<_ACEOF
44159/* end confdefs.h. */
44160
44161 #include <sys/types.h>
44162 #include <sys/socket.h>
44163
44164int
44165main ()
44166{
44167
44168 socklen_t len;
44169 getsockname(0, 0, &len);
44170
44171 ;
44172 return 0;
44173}
44174_ACEOF
44175rm -f conftest.$ac_objext
44176if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 44177 (eval $ac_compile) 2>conftest.er1
a848cd7e 44178 ac_status=$?
ac1cb8d3
VS
44179 grep -v '^ *+' conftest.er1 >conftest.err
44180 rm -f conftest.er1
44181 cat conftest.err >&5
a848cd7e
SC
44182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44183 (exit $ac_status); } &&
479c790c 44184 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
44185 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44186 (eval $ac_try) 2>&5
44187 ac_status=$?
44188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44189 (exit $ac_status); }; } &&
44190 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
44191 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44192 (eval $ac_try) 2>&5
44193 ac_status=$?
44194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44195 (exit $ac_status); }; }; then
44196 wx_cv_type_getsockname3=socklen_t
44197else
44198 echo "$as_me: failed program was:" >&5
44199sed 's/^/| /' conftest.$ac_ext >&5
44200
44201
6459a506 44202 CXXFLAGS_OLD="$CXXFLAGS"
a848cd7e 44203 if test "$GCC" = yes ; then
c92ad099 44204 CXXFLAGS="-Werror $CXXFLAGS"
a848cd7e
SC
44205 fi
44206
44207 cat >conftest.$ac_ext <<_ACEOF
44208/* confdefs.h. */
44209_ACEOF
44210cat confdefs.h >>conftest.$ac_ext
44211cat >>conftest.$ac_ext <<_ACEOF
44212/* end confdefs.h. */
44213
44214 #include <sys/types.h>
44215 #include <sys/socket.h>
44216
44217int
44218main ()
44219{
44220
44221 size_t len;
44222 getsockname(0, 0, &len);
44223
44224 ;
44225 return 0;
44226}
44227_ACEOF
44228rm -f conftest.$ac_objext
44229if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 44230 (eval $ac_compile) 2>conftest.er1
a848cd7e 44231 ac_status=$?
ac1cb8d3
VS
44232 grep -v '^ *+' conftest.er1 >conftest.err
44233 rm -f conftest.er1
44234 cat conftest.err >&5
a848cd7e
SC
44235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44236 (exit $ac_status); } &&
479c790c 44237 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
44238 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44239 (eval $ac_try) 2>&5
44240 ac_status=$?
44241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44242 (exit $ac_status); }; } &&
44243 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
44244 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44245 (eval $ac_try) 2>&5
44246 ac_status=$?
44247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44248 (exit $ac_status); }; }; then
44249 wx_cv_type_getsockname3=size_t
44250else
44251 echo "$as_me: failed program was:" >&5
44252sed 's/^/| /' conftest.$ac_ext >&5
44253
44254cat >conftest.$ac_ext <<_ACEOF
44255/* confdefs.h. */
44256_ACEOF
44257cat confdefs.h >>conftest.$ac_ext
44258cat >>conftest.$ac_ext <<_ACEOF
44259/* end confdefs.h. */
44260
44261 #include <sys/types.h>
44262 #include <sys/socket.h>
44263
44264int
44265main ()
44266{
44267
44268 int len;
44269 getsockname(0, 0, &len);
44270
44271 ;
44272 return 0;
44273}
44274_ACEOF
44275rm -f conftest.$ac_objext
44276if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 44277 (eval $ac_compile) 2>conftest.er1
a848cd7e 44278 ac_status=$?
ac1cb8d3
VS
44279 grep -v '^ *+' conftest.er1 >conftest.err
44280 rm -f conftest.er1
44281 cat conftest.err >&5
a848cd7e
SC
44282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44283 (exit $ac_status); } &&
479c790c 44284 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
44285 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44286 (eval $ac_try) 2>&5
44287 ac_status=$?
44288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44289 (exit $ac_status); }; } &&
44290 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
44291 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44292 (eval $ac_try) 2>&5
44293 ac_status=$?
44294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44295 (exit $ac_status); }; }; then
44296 wx_cv_type_getsockname3=int
44297else
44298 echo "$as_me: failed program was:" >&5
44299sed 's/^/| /' conftest.$ac_ext >&5
44300
44301wx_cv_type_getsockname3=unknown
44302
44303fi
ac1cb8d3 44304rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
44305
44306fi
ac1cb8d3 44307rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 44308
6459a506 44309 CXXFLAGS="$CXXFLAGS_OLD"
a848cd7e
SC
44310
44311
44312fi
ac1cb8d3 44313rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
44314
44315fi
44316echo "$as_me:$LINENO: result: $wx_cv_type_getsockname3" >&5
44317echo "${ECHO_T}$wx_cv_type_getsockname3" >&6
44318
44319 if test "$wx_cv_type_getsockname3" = "unknown"; then
44320 wxUSE_SOCKETS=no
44321 { echo "$as_me:$LINENO: WARNING: Couldn't find socklen_t synonym for this system" >&5
44322echo "$as_me: WARNING: Couldn't find socklen_t synonym for this system" >&2;}
44323 else
44324 cat >>confdefs.h <<_ACEOF
9e03e02d 44325#define WX_SOCKLEN_T $wx_cv_type_getsockname3
5b674b9d
DE
44326_ACEOF
44327
44328 fi
44329 echo "$as_me:$LINENO: checking what is the type of the fifth argument of getsockopt" >&5
44330echo $ECHO_N "checking what is the type of the fifth argument of getsockopt... $ECHO_C" >&6
44331if test "${wx_cv_type_getsockopt5+set}" = set; then
44332 echo $ECHO_N "(cached) $ECHO_C" >&6
44333else
44334
44335 cat >conftest.$ac_ext <<_ACEOF
44336/* confdefs.h. */
44337_ACEOF
44338cat confdefs.h >>conftest.$ac_ext
44339cat >>conftest.$ac_ext <<_ACEOF
44340/* end confdefs.h. */
44341
44342 #include <sys/types.h>
44343 #include <sys/socket.h>
44344
44345int
44346main ()
44347{
44348
44349 socklen_t len;
44350 getsockopt(0, 0, 0, 0, &len);
44351
44352 ;
44353 return 0;
44354}
44355_ACEOF
44356rm -f conftest.$ac_objext
44357if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
44358 (eval $ac_compile) 2>conftest.er1
44359 ac_status=$?
44360 grep -v '^ *+' conftest.er1 >conftest.err
44361 rm -f conftest.er1
44362 cat conftest.err >&5
44363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44364 (exit $ac_status); } &&
479c790c 44365 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5b674b9d
DE
44366 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44367 (eval $ac_try) 2>&5
44368 ac_status=$?
44369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44370 (exit $ac_status); }; } &&
44371 { ac_try='test -s conftest.$ac_objext'
44372 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44373 (eval $ac_try) 2>&5
44374 ac_status=$?
44375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44376 (exit $ac_status); }; }; then
44377 wx_cv_type_getsockopt5=socklen_t
44378else
44379 echo "$as_me: failed program was:" >&5
44380sed 's/^/| /' conftest.$ac_ext >&5
44381
44382
6459a506 44383 CXXFLAGS_OLD="$CXXFLAGS"
5b674b9d 44384 if test "$GCC" = yes ; then
c92ad099 44385 CXXFLAGS="-Werror $CXXFLAGS"
5b674b9d
DE
44386 fi
44387
44388 cat >conftest.$ac_ext <<_ACEOF
44389/* confdefs.h. */
44390_ACEOF
44391cat confdefs.h >>conftest.$ac_ext
44392cat >>conftest.$ac_ext <<_ACEOF
44393/* end confdefs.h. */
44394
44395 #include <sys/types.h>
44396 #include <sys/socket.h>
44397
44398int
44399main ()
44400{
44401
44402 size_t len;
44403 getsockopt(0, 0, 0, 0, &len);
44404
44405 ;
44406 return 0;
44407}
44408_ACEOF
44409rm -f conftest.$ac_objext
44410if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
44411 (eval $ac_compile) 2>conftest.er1
44412 ac_status=$?
44413 grep -v '^ *+' conftest.er1 >conftest.err
44414 rm -f conftest.er1
44415 cat conftest.err >&5
44416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44417 (exit $ac_status); } &&
479c790c 44418 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5b674b9d
DE
44419 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44420 (eval $ac_try) 2>&5
44421 ac_status=$?
44422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44423 (exit $ac_status); }; } &&
44424 { ac_try='test -s conftest.$ac_objext'
44425 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44426 (eval $ac_try) 2>&5
44427 ac_status=$?
44428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44429 (exit $ac_status); }; }; then
44430 wx_cv_type_getsockopt5=size_t
44431else
44432 echo "$as_me: failed program was:" >&5
44433sed 's/^/| /' conftest.$ac_ext >&5
44434
44435cat >conftest.$ac_ext <<_ACEOF
44436/* confdefs.h. */
44437_ACEOF
44438cat confdefs.h >>conftest.$ac_ext
44439cat >>conftest.$ac_ext <<_ACEOF
44440/* end confdefs.h. */
44441
44442 #include <sys/types.h>
44443 #include <sys/socket.h>
44444
44445int
44446main ()
44447{
44448
44449 int len;
44450 getsockopt(0, 0, 0, 0, &len);
44451
44452 ;
44453 return 0;
44454}
44455_ACEOF
44456rm -f conftest.$ac_objext
44457if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
44458 (eval $ac_compile) 2>conftest.er1
44459 ac_status=$?
44460 grep -v '^ *+' conftest.er1 >conftest.err
44461 rm -f conftest.er1
44462 cat conftest.err >&5
44463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44464 (exit $ac_status); } &&
479c790c 44465 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5b674b9d
DE
44466 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44467 (eval $ac_try) 2>&5
44468 ac_status=$?
44469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44470 (exit $ac_status); }; } &&
44471 { ac_try='test -s conftest.$ac_objext'
44472 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44473 (eval $ac_try) 2>&5
44474 ac_status=$?
44475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44476 (exit $ac_status); }; }; then
44477 wx_cv_type_getsockopt5=int
44478else
44479 echo "$as_me: failed program was:" >&5
44480sed 's/^/| /' conftest.$ac_ext >&5
44481
44482wx_cv_type_getsockopt5=unknown
44483
44484fi
44485rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
44486
44487fi
44488rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
44489
6459a506 44490 CXXFLAGS="$CXXFLAGS_OLD"
5b674b9d
DE
44491
44492
44493fi
44494rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
44495
44496fi
44497echo "$as_me:$LINENO: result: $wx_cv_type_getsockopt5" >&5
44498echo "${ECHO_T}$wx_cv_type_getsockopt5" >&6
44499
44500 if test "$wx_cv_type_getsockopt5" = "unknown"; then
44501 wxUSE_SOCKETS=no
44502 { echo "$as_me:$LINENO: WARNING: Couldn't find socklen_t synonym for this system" >&5
44503echo "$as_me: WARNING: Couldn't find socklen_t synonym for this system" >&2;}
44504 else
44505 cat >>confdefs.h <<_ACEOF
44506#define SOCKOPTLEN_T $wx_cv_type_getsockopt5
a848cd7e
SC
44507_ACEOF
44508
44509 fi
44510 fi
44511fi
44512
44513if test "$wxUSE_SOCKETS" = "yes" ; then
44514 cat >>confdefs.h <<\_ACEOF
44515#define wxUSE_SOCKETS 1
44516_ACEOF
44517
44518 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sockets"
44519fi
44520
44521if test "$wxUSE_PROTOCOL" = "yes"; then
44522 if test "$wxUSE_SOCKETS" != "yes"; then
44523 { echo "$as_me:$LINENO: WARNING: Protocol classes require sockets... disabled" >&5
44524echo "$as_me: WARNING: Protocol classes require sockets... disabled" >&2;}
44525 wxUSE_PROTOCOL=no
44526 fi
44527fi
44528
44529if test "$wxUSE_PROTOCOL" = "yes"; then
44530 cat >>confdefs.h <<\_ACEOF
44531#define wxUSE_PROTOCOL 1
44532_ACEOF
44533
44534
44535 if test "$wxUSE_PROTOCOL_HTTP" = "yes"; then
44536 cat >>confdefs.h <<\_ACEOF
44537#define wxUSE_PROTOCOL_HTTP 1
44538_ACEOF
44539
44540 fi
44541 if test "$wxUSE_PROTOCOL_FTP" = "yes"; then
44542 cat >>confdefs.h <<\_ACEOF
44543#define wxUSE_PROTOCOL_FTP 1
44544_ACEOF
44545
44546 fi
44547 if test "$wxUSE_PROTOCOL_FILE" = "yes"; then
44548 cat >>confdefs.h <<\_ACEOF
44549#define wxUSE_PROTOCOL_FILE 1
44550_ACEOF
44551
44552 fi
44553else
44554 if test "$wxUSE_FS_INET" = "yes"; then
44555 { echo "$as_me:$LINENO: WARNING: HTTP filesystem require protocol classes... disabled" >&5
44556echo "$as_me: WARNING: HTTP filesystem require protocol classes... disabled" >&2;}
44557 wxUSE_FS_INET="no"
44558 fi
44559fi
44560
44561if test "$wxUSE_URL" = "yes"; then
44562 if test "$wxUSE_PROTOCOL" != "yes"; then
44563 { echo "$as_me:$LINENO: WARNING: wxURL class requires wxProtocol... disabled" >&5
44564echo "$as_me: WARNING: wxURL class requires wxProtocol... disabled" >&2;}
44565 wxUSE_URL=no
44566 fi
44567 if test "$wxUSE_URL" = "yes"; then
44568 cat >>confdefs.h <<\_ACEOF
44569#define wxUSE_URL 1
44570_ACEOF
44571
44572 fi
44573fi
44574
ca5c6ac3
VZ
44575if test "$wxUSE_VARIANT" = "yes"; then
44576 cat >>confdefs.h <<\_ACEOF
44577#define wxUSE_VARIANT 1
44578_ACEOF
44579
44580fi
44581
a848cd7e
SC
44582if test "$wxUSE_FS_INET" = "yes"; then
44583 cat >>confdefs.h <<\_ACEOF
44584#define wxUSE_FS_INET 1
44585_ACEOF
44586
44587fi
44588
44589
ee45c548
MW
44590if test "$wxUSE_GUI" = "yes" -a "$wxUSE_JOYSTICK" = "yes"; then
44591 wxUSE_JOYSTICK=no
44592
44593 if test "$TOOLKIT" = "MSW"; then
44594 wxUSE_JOYSTICK=yes
44595
44596 elif test "$TOOLKIT" = "MAC" -o "$TOOLKIT" = "COCOA"; then
44597 if test "$USE_DARWIN" = 1; then
44598 echo "$as_me:$LINENO: checking headers have declarations needed for joystick support" >&5
44599echo $ECHO_N "checking headers have declarations needed for joystick support... $ECHO_C" >&6
ee45c548
MW
44600 cat >conftest.$ac_ext <<_ACEOF
44601/* confdefs.h. */
44602_ACEOF
44603cat confdefs.h >>conftest.$ac_ext
44604cat >>conftest.$ac_ext <<_ACEOF
44605/* end confdefs.h. */
44606 #include <IOKit/hid/IOHIDLib.h>
44607int
44608main ()
44609{
44610 IOHIDQueueInterface *qi = NULL;
44611 IOHIDCallbackFunction cb = NULL;
44612 qi->setEventCallout(NULL, cb, NULL, NULL);
44613 ;
44614 return 0;
44615}
44616_ACEOF
44617rm -f conftest.$ac_objext
44618if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
44619 (eval $ac_compile) 2>conftest.er1
44620 ac_status=$?
44621 grep -v '^ *+' conftest.er1 >conftest.err
44622 rm -f conftest.er1
44623 cat conftest.err >&5
44624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44625 (exit $ac_status); } &&
479c790c 44626 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ee45c548
MW
44627 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44628 (eval $ac_try) 2>&5
44629 ac_status=$?
44630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44631 (exit $ac_status); }; } &&
44632 { ac_try='test -s conftest.$ac_objext'
44633 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44634 (eval $ac_try) 2>&5
44635 ac_status=$?
44636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44637 (exit $ac_status); }; }; then
44638 wxUSE_JOYSTICK=yes
a848cd7e 44639
ee45c548
MW
44640else
44641 echo "$as_me: failed program was:" >&5
44642sed 's/^/| /' conftest.$ac_ext >&5
44643
44644fi
44645rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
ee45c548
MW
44646 echo "$as_me:$LINENO: result: $wxUSE_JOYSTICK" >&5
44647echo "${ECHO_T}$wxUSE_JOYSTICK" >&6
44648 fi
44649
44650 else
a848cd7e
SC
44651
44652for ac_header in linux/joystick.h
44653do
44654as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
44655if eval "test \"\${$as_ac_Header+set}\" = set"; then
44656 echo "$as_me:$LINENO: checking for $ac_header" >&5
44657echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
44658if eval "test \"\${$as_ac_Header+set}\" = set"; then
44659 echo $ECHO_N "(cached) $ECHO_C" >&6
44660fi
44661echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
44662echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
44663else
44664 # Is the header compilable?
44665echo "$as_me:$LINENO: checking $ac_header usability" >&5
44666echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
44667cat >conftest.$ac_ext <<_ACEOF
44668/* confdefs.h. */
44669_ACEOF
44670cat confdefs.h >>conftest.$ac_ext
44671cat >>conftest.$ac_ext <<_ACEOF
44672/* end confdefs.h. */
44673$ac_includes_default
44674#include <$ac_header>
44675_ACEOF
44676rm -f conftest.$ac_objext
44677if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 44678 (eval $ac_compile) 2>conftest.er1
a848cd7e 44679 ac_status=$?
ac1cb8d3
VS
44680 grep -v '^ *+' conftest.er1 >conftest.err
44681 rm -f conftest.er1
44682 cat conftest.err >&5
a848cd7e
SC
44683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44684 (exit $ac_status); } &&
479c790c 44685 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
44686 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44687 (eval $ac_try) 2>&5
44688 ac_status=$?
44689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44690 (exit $ac_status); }; } &&
44691 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
44692 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44693 (eval $ac_try) 2>&5
44694 ac_status=$?
44695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44696 (exit $ac_status); }; }; then
44697 ac_header_compiler=yes
44698else
44699 echo "$as_me: failed program was:" >&5
44700sed 's/^/| /' conftest.$ac_ext >&5
44701
44702ac_header_compiler=no
44703fi
ac1cb8d3 44704rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
44705echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
44706echo "${ECHO_T}$ac_header_compiler" >&6
44707
44708# Is the header present?
44709echo "$as_me:$LINENO: checking $ac_header presence" >&5
44710echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
44711cat >conftest.$ac_ext <<_ACEOF
44712/* confdefs.h. */
44713_ACEOF
44714cat confdefs.h >>conftest.$ac_ext
44715cat >>conftest.$ac_ext <<_ACEOF
44716/* end confdefs.h. */
44717#include <$ac_header>
44718_ACEOF
44719if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
44720 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
44721 ac_status=$?
44722 grep -v '^ *+' conftest.er1 >conftest.err
44723 rm -f conftest.er1
44724 cat conftest.err >&5
44725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44726 (exit $ac_status); } >/dev/null; then
44727 if test -s conftest.err; then
5d7b7554
VZ
44728 ac_cpp_err=$ac_cxx_preproc_warn_flag
44729 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
44730 else
44731 ac_cpp_err=
44732 fi
44733else
44734 ac_cpp_err=yes
44735fi
44736if test -z "$ac_cpp_err"; then
44737 ac_header_preproc=yes
44738else
44739 echo "$as_me: failed program was:" >&5
44740sed 's/^/| /' conftest.$ac_ext >&5
44741
44742 ac_header_preproc=no
44743fi
44744rm -f conftest.err conftest.$ac_ext
44745echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
44746echo "${ECHO_T}$ac_header_preproc" >&6
44747
44748# So? What about this header?
5d7b7554 44749case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
ac1cb8d3 44750 yes:no: )
a848cd7e
SC
44751 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
44752echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
44753 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
44754echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
44755 ac_header_preproc=yes
a848cd7e 44756 ;;
ac1cb8d3 44757 no:yes:* )
a848cd7e
SC
44758 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
44759echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
44760 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
44761echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
44762 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
44763echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
44764 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
44765echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
44766 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
44767echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
44768 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
44769echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
44770 (
44771 cat <<\_ASBOX
ac1cb8d3
VS
44772## ----------------------------------------- ##
44773## Report this to wx-dev@lists.wxwidgets.org ##
44774## ----------------------------------------- ##
a848cd7e
SC
44775_ASBOX
44776 ) |
44777 sed "s/^/$as_me: WARNING: /" >&2
44778 ;;
44779esac
44780echo "$as_me:$LINENO: checking for $ac_header" >&5
44781echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
44782if eval "test \"\${$as_ac_Header+set}\" = set"; then
44783 echo $ECHO_N "(cached) $ECHO_C" >&6
44784else
ac1cb8d3 44785 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
44786fi
44787echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
44788echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
44789
44790fi
44791if test `eval echo '${'$as_ac_Header'}'` = yes; then
44792 cat >>confdefs.h <<_ACEOF
44793#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
44794_ACEOF
ee45c548 44795 wxUSE_JOYSTICK=yes
a848cd7e
SC
44796fi
44797
44798done
44799
ee45c548 44800 fi
4cb1d3da 44801
ee45c548
MW
44802 if test "$wxUSE_JOYSTICK" = "yes"; then
44803 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
44804#define wxUSE_JOYSTICK 1
44805_ACEOF
44806
ee45c548
MW
44807 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS joytest"
44808 else
44809 { echo "$as_me:$LINENO: WARNING: Joystick not supported by this system... disabled" >&5
44810echo "$as_me: WARNING: Joystick not supported by this system... disabled" >&2;}
a848cd7e
SC
44811 fi
44812fi
44813
44814
44815
44816if test "$wxUSE_FONTMAP" = "yes" ; then
44817 cat >>confdefs.h <<\_ACEOF
44818#define wxUSE_FONTMAP 1
44819_ACEOF
44820
44821fi
44822
44823if test "$wxUSE_UNICODE" = "yes" ; then
44824 cat >>confdefs.h <<\_ACEOF
44825#define wxUSE_UNICODE 1
44826_ACEOF
44827
44828
44829 if test "$USE_WIN32" != 1; then
44830 wxUSE_UNICODE_MSLU=no
44831 fi
44832
44833 if test "$USE_WIN32" = 1 -a "$wxUSE_UNICODE_MSLU" = "yes"; then
44834 echo "$as_me:$LINENO: checking for main in -lunicows" >&5
44835echo $ECHO_N "checking for main in -lunicows... $ECHO_C" >&6
44836if test "${ac_cv_lib_unicows_main+set}" = set; then
44837 echo $ECHO_N "(cached) $ECHO_C" >&6
44838else
44839 ac_check_lib_save_LIBS=$LIBS
44840LIBS="-lunicows $LIBS"
44841cat >conftest.$ac_ext <<_ACEOF
44842/* confdefs.h. */
44843_ACEOF
44844cat confdefs.h >>conftest.$ac_ext
44845cat >>conftest.$ac_ext <<_ACEOF
44846/* end confdefs.h. */
44847
44848
44849int
44850main ()
44851{
44852main ();
44853 ;
44854 return 0;
44855}
44856_ACEOF
44857rm -f conftest.$ac_objext conftest$ac_exeext
44858if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 44859 (eval $ac_link) 2>conftest.er1
a848cd7e 44860 ac_status=$?
ac1cb8d3
VS
44861 grep -v '^ *+' conftest.er1 >conftest.err
44862 rm -f conftest.er1
44863 cat conftest.err >&5
a848cd7e
SC
44864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44865 (exit $ac_status); } &&
479c790c 44866 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
44867 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44868 (eval $ac_try) 2>&5
44869 ac_status=$?
44870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44871 (exit $ac_status); }; } &&
44872 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
44873 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44874 (eval $ac_try) 2>&5
44875 ac_status=$?
44876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44877 (exit $ac_status); }; }; then
44878 ac_cv_lib_unicows_main=yes
44879else
44880 echo "$as_me: failed program was:" >&5
44881sed 's/^/| /' conftest.$ac_ext >&5
44882
44883ac_cv_lib_unicows_main=no
44884fi
ac1cb8d3
VS
44885rm -f conftest.err conftest.$ac_objext \
44886 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
44887LIBS=$ac_check_lib_save_LIBS
44888fi
44889echo "$as_me:$LINENO: result: $ac_cv_lib_unicows_main" >&5
44890echo "${ECHO_T}$ac_cv_lib_unicows_main" >&6
44891if test $ac_cv_lib_unicows_main = yes; then
44892
44893 cat >>confdefs.h <<\_ACEOF
44894#define wxUSE_UNICODE_MSLU 1
44895_ACEOF
44896
44897
44898else
44899
44900 { echo "$as_me:$LINENO: WARNING: Compiler doesn't support MSLU (libunicows.a), disabled.
44901 Applications will only run on Windows NT/2000/XP!" >&5
44902echo "$as_me: WARNING: Compiler doesn't support MSLU (libunicows.a), disabled.
44903 Applications will only run on Windows NT/2000/XP!" >&2;}
44904 wxUSE_UNICODE_MSLU=no
44905
44906fi
44907
44908 fi
44909fi
44910
44911if test "$wxUSE_wxUSE_EXPERIMENTAL_PRINTF" = "yes"; then
44912 cat >>confdefs.h <<\_ACEOF
44913#define wxUSE_EXPERIMENTAL_PRINTF 1
44914_ACEOF
44915
44916fi
44917
44918
44919if test "$wxUSE_POSTSCRIPT" = "yes" ; then
44920 cat >>confdefs.h <<\_ACEOF
44921#define wxUSE_POSTSCRIPT 1
44922_ACEOF
44923
44924fi
44925
44926cat >>confdefs.h <<\_ACEOF
44927#define wxUSE_AFM_FOR_POSTSCRIPT 1
44928_ACEOF
44929
44930
44931cat >>confdefs.h <<\_ACEOF
44932#define wxUSE_NORMALIZED_PS_FONTS 1
44933_ACEOF
44934
44935
44936
44937if test "$wxUSE_CONSTRAINTS" = "yes"; then
44938 cat >>confdefs.h <<\_ACEOF
44939#define wxUSE_CONSTRAINTS 1
44940_ACEOF
44941
44942 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS layout"
44943fi
44944
8a7b1113
VZ
44945if test "$wxUSE_MDI" = "yes"; then
44946 cat >>confdefs.h <<\_ACEOF
44947#define wxUSE_MDI 1
44948_ACEOF
44949
44950
44951 if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
44952 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
44953#define wxUSE_MDI_ARCHITECTURE 1
44954_ACEOF
44955
8a7b1113
VZ
44956 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mdi"
44957 fi
a848cd7e
SC
44958fi
44959
44960if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = "yes" ; then
44961 cat >>confdefs.h <<\_ACEOF
44962#define wxUSE_DOC_VIEW_ARCHITECTURE 1
44963_ACEOF
44964
44965 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docview"
44966 if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
44967 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docvwmdi"
44968 fi
44969fi
44970
44971if test "$wxUSE_HELP" = "yes"; then
44972 cat >>confdefs.h <<\_ACEOF
44973#define wxUSE_HELP 1
44974_ACEOF
44975
44976 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS help"
44977
44978 if test "$wxUSE_MSW" = 1; then
44979 if test "$wxUSE_MS_HTML_HELP" = "yes"; then
44980 cat >>confdefs.h <<\_ACEOF
44981#define wxUSE_MS_HTML_HELP 1
44982_ACEOF
44983
44984 fi
44985 fi
44986
44987 if test "$wxUSE_WXHTML_HELP" = "yes"; then
44988 if test "$wxUSE_HTML" = "yes"; then
44989 cat >>confdefs.h <<\_ACEOF
44990#define wxUSE_WXHTML_HELP 1
44991_ACEOF
44992
44993 else
44994 { echo "$as_me:$LINENO: WARNING: Cannot use wxHTML-based help without wxHTML so it won't be compiled" >&5
44995echo "$as_me: WARNING: Cannot use wxHTML-based help without wxHTML so it won't be compiled" >&2;}
44996 wxUSE_WXHTML_HELP=no
44997 fi
44998 fi
44999fi
45000
45001if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then
45002 if test "$wxUSE_CONSTRAINTS" != "yes"; then
45003 { echo "$as_me:$LINENO: WARNING: Printing support cannot be used without constraints so it won't be compiled without it" >&5
45004echo "$as_me: WARNING: Printing support cannot be used without constraints so it won't be compiled without it" >&2;}
45005 else
45006 cat >>confdefs.h <<\_ACEOF
45007#define wxUSE_PRINTING_ARCHITECTURE 1
45008_ACEOF
45009
45010 fi
45011 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS printing"
45012fi
45013
45014if test "$wxUSE_PROLOGIO" = "yes" -o "$wxUSE_RESOURCES" = "yes"; then
45015 { { echo "$as_me:$LINENO: error: wxExpr and old-style resources are now available in contrib only" >&5
45016echo "$as_me: error: wxExpr and old-style resources are now available in contrib only" >&2;}
45017 { (exit 1); exit 1; }; }
45018fi
45019
45020
efdf6afe
VZ
45021if test "$wxUSE_METAFILE" = "yes"; then
45022 if test "$wxUSE_MSW" != 1 -a "$wxUSE_MAC" != 1 -a "$wxUSE_PM" != 1; then
45023 { echo "$as_me:$LINENO: WARNING: wxMetafile is not available on this system... disabled" >&5
45024echo "$as_me: WARNING: wxMetafile is not available on this system... disabled" >&2;}
45025 wxUSE_METAFILE=no
45026 fi
45027fi
45028
45029
a848cd7e
SC
45030if test "$USE_WIN32" = 1 -a \( "$wxUSE_DATAOBJ" = "yes" \
45031 -o "$wxUSE_CLIPBOARD" = "yes" \
45032 -o "$wxUSE_OLE" = "yes" \
45033 -o "$wxUSE_DRAG_AND_DROP" = "yes" \) ; then
45034
45035for ac_header in ole2.h
45036do
45037as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
45038if eval "test \"\${$as_ac_Header+set}\" = set"; then
45039 echo "$as_me:$LINENO: checking for $ac_header" >&5
45040echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
45041if eval "test \"\${$as_ac_Header+set}\" = set"; then
45042 echo $ECHO_N "(cached) $ECHO_C" >&6
45043fi
45044echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
45045echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
45046else
45047 # Is the header compilable?
45048echo "$as_me:$LINENO: checking $ac_header usability" >&5
45049echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
45050cat >conftest.$ac_ext <<_ACEOF
45051/* confdefs.h. */
45052_ACEOF
45053cat confdefs.h >>conftest.$ac_ext
45054cat >>conftest.$ac_ext <<_ACEOF
45055/* end confdefs.h. */
45056$ac_includes_default
45057#include <$ac_header>
45058_ACEOF
45059rm -f conftest.$ac_objext
45060if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 45061 (eval $ac_compile) 2>conftest.er1
a848cd7e 45062 ac_status=$?
ac1cb8d3
VS
45063 grep -v '^ *+' conftest.er1 >conftest.err
45064 rm -f conftest.er1
45065 cat conftest.err >&5
a848cd7e
SC
45066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45067 (exit $ac_status); } &&
479c790c 45068 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
45069 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45070 (eval $ac_try) 2>&5
45071 ac_status=$?
45072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45073 (exit $ac_status); }; } &&
45074 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
45075 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45076 (eval $ac_try) 2>&5
45077 ac_status=$?
45078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45079 (exit $ac_status); }; }; then
45080 ac_header_compiler=yes
45081else
45082 echo "$as_me: failed program was:" >&5
45083sed 's/^/| /' conftest.$ac_ext >&5
45084
45085ac_header_compiler=no
45086fi
ac1cb8d3 45087rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
45088echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
45089echo "${ECHO_T}$ac_header_compiler" >&6
45090
45091# Is the header present?
45092echo "$as_me:$LINENO: checking $ac_header presence" >&5
45093echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
45094cat >conftest.$ac_ext <<_ACEOF
45095/* confdefs.h. */
45096_ACEOF
45097cat confdefs.h >>conftest.$ac_ext
45098cat >>conftest.$ac_ext <<_ACEOF
45099/* end confdefs.h. */
45100#include <$ac_header>
45101_ACEOF
45102if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
45103 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
45104 ac_status=$?
45105 grep -v '^ *+' conftest.er1 >conftest.err
45106 rm -f conftest.er1
45107 cat conftest.err >&5
45108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45109 (exit $ac_status); } >/dev/null; then
45110 if test -s conftest.err; then
5d7b7554
VZ
45111 ac_cpp_err=$ac_cxx_preproc_warn_flag
45112 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
45113 else
45114 ac_cpp_err=
45115 fi
45116else
45117 ac_cpp_err=yes
45118fi
45119if test -z "$ac_cpp_err"; then
45120 ac_header_preproc=yes
45121else
45122 echo "$as_me: failed program was:" >&5
45123sed 's/^/| /' conftest.$ac_ext >&5
45124
45125 ac_header_preproc=no
45126fi
45127rm -f conftest.err conftest.$ac_ext
45128echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
45129echo "${ECHO_T}$ac_header_preproc" >&6
45130
45131# So? What about this header?
5d7b7554 45132case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
ac1cb8d3 45133 yes:no: )
a848cd7e
SC
45134 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
45135echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
45136 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
45137echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
45138 ac_header_preproc=yes
a848cd7e 45139 ;;
ac1cb8d3 45140 no:yes:* )
a848cd7e
SC
45141 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
45142echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
45143 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
45144echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
45145 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
45146echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
45147 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
45148echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
45149 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
45150echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
45151 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
45152echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
45153 (
45154 cat <<\_ASBOX
ac1cb8d3
VS
45155## ----------------------------------------- ##
45156## Report this to wx-dev@lists.wxwidgets.org ##
45157## ----------------------------------------- ##
a848cd7e
SC
45158_ASBOX
45159 ) |
45160 sed "s/^/$as_me: WARNING: /" >&2
45161 ;;
45162esac
45163echo "$as_me:$LINENO: checking for $ac_header" >&5
45164echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
45165if eval "test \"\${$as_ac_Header+set}\" = set"; then
45166 echo $ECHO_N "(cached) $ECHO_C" >&6
45167else
ac1cb8d3 45168 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
45169fi
45170echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
45171echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
45172
45173fi
45174if test `eval echo '${'$as_ac_Header'}'` = yes; then
45175 cat >>confdefs.h <<_ACEOF
45176#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
45177_ACEOF
45178
45179fi
45180
45181done
45182
45183
45184 if test "$ac_cv_header_ole2_h" = "yes" ; then
45185 if test "$GCC" = yes ; then
a848cd7e
SC
45186 echo "$as_me:$LINENO: checking if g++ requires -fvtable-thunks" >&5
45187echo $ECHO_N "checking if g++ requires -fvtable-thunks... $ECHO_C" >&6
45188 cat >conftest.$ac_ext <<_ACEOF
45189/* confdefs.h. */
45190_ACEOF
45191cat confdefs.h >>conftest.$ac_ext
45192cat >>conftest.$ac_ext <<_ACEOF
45193/* end confdefs.h. */
45194#include <windows.h>
45195 #include <ole2.h>
45196int
45197main ()
45198{
45199
45200 ;
45201 return 0;
45202}
45203_ACEOF
45204rm -f conftest.$ac_objext
45205if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 45206 (eval $ac_compile) 2>conftest.er1
a848cd7e 45207 ac_status=$?
ac1cb8d3
VS
45208 grep -v '^ *+' conftest.er1 >conftest.err
45209 rm -f conftest.er1
45210 cat conftest.err >&5
a848cd7e
SC
45211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45212 (exit $ac_status); } &&
479c790c 45213 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
45214 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45215 (eval $ac_try) 2>&5
45216 ac_status=$?
45217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45218 (exit $ac_status); }; } &&
45219 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
45220 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45221 (eval $ac_try) 2>&5
45222 ac_status=$?
45223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45224 (exit $ac_status); }; }; then
45225 echo "$as_me:$LINENO: result: no" >&5
45226echo "${ECHO_T}no" >&6
45227else
45228 echo "$as_me: failed program was:" >&5
45229sed 's/^/| /' conftest.$ac_ext >&5
45230
45231echo "$as_me:$LINENO: result: yes" >&5
45232echo "${ECHO_T}yes" >&6
5ff751d6 45233 WXCONFIG_CXXFLAGS="$WXCONFIG_CXXFLAGS -fvtable-thunks"
a848cd7e 45234fi
ac1cb8d3 45235rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
45236 LIBS=" -lrpcrt4 -loleaut32 -lole32 -luuid$LIBS"
45237 if test "$wxUSE_OLE" = "yes" ; then
45238 cat >>confdefs.h <<\_ACEOF
45239#define wxUSE_OLE 1
f43426c1
RD
45240_ACEOF
45241
45242 cat >>confdefs.h <<\_ACEOF
45243#define wxUSE_OLE_AUTOMATION 1
45244_ACEOF
45245
45246 cat >>confdefs.h <<\_ACEOF
45247#define wxUSE_OLE_ACTIVEX 1
a848cd7e
SC
45248_ACEOF
45249
0b78747f 45250 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS oleauto"
a848cd7e
SC
45251 fi
45252 fi
45253
45254 if test "$wxUSE_DATAOBJ" = "yes" ; then
45255 cat >>confdefs.h <<\_ACEOF
45256#define wxUSE_DATAOBJ 1
45257_ACEOF
45258
45259 fi
45260 else
45261 { echo "$as_me:$LINENO: WARNING: Some features disabled because OLE headers not found" >&5
45262echo "$as_me: WARNING: Some features disabled because OLE headers not found" >&2;}
45263
45264 wxUSE_CLIPBOARD=no
45265 wxUSE_DRAG_AND_DROP=no
45266 wxUSE_DATAOBJ=no
45267 wxUSE_OLE=no
45268 fi
45269
45270 if test "$wxUSE_METAFILE" = "yes"; then
45271 cat >>confdefs.h <<\_ACEOF
45272#define wxUSE_METAFILE 1
45273_ACEOF
45274
45275
45276 cat >>confdefs.h <<\_ACEOF
45277#define wxUSE_ENH_METAFILE 1
45278_ACEOF
45279
45280 fi
45281fi
45282
45283if test "$wxUSE_IPC" = "yes"; then
0b78747f 45284 if test "$wxUSE_SOCKETS" != "yes" -a "$USE_WIN32" != 1; then
77ffb593
JS
45285 { echo "$as_me:$LINENO: WARNING: wxWidgets IPC classes require sockets... disabled" >&5
45286echo "$as_me: WARNING: wxWidgets IPC classes require sockets... disabled" >&2;}
0b78747f 45287 wxUSE_IPC=no
a848cd7e
SC
45288 fi
45289
0b78747f
MW
45290 if test "$wxUSE_IPC" = "yes"; then
45291 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
45292#define wxUSE_IPC 1
45293_ACEOF
45294
0b78747f
MW
45295 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS ipc"
45296 fi
a848cd7e
SC
45297fi
45298
eb730a0c 45299if test "$wxUSE_DATAOBJ" = "yes"; then
2113bc77
MW
45300 if test "$wxUSE_MGL" = 1; then
45301 { echo "$as_me:$LINENO: WARNING: wxDataObject not yet supported under MGL... disabled" >&5
45302echo "$as_me: WARNING: wxDataObject not yet supported under MGL... disabled" >&2;}
45303 wxUSE_DATAOBJ=no
45304 else
45305 cat >>confdefs.h <<\_ACEOF
eb730a0c
JS
45306#define wxUSE_DATAOBJ 1
45307_ACEOF
45308
2113bc77 45309 fi
eb730a0c
JS
45310else
45311 { echo "$as_me:$LINENO: WARNING: Clipboard and drag-and-drop require wxDataObject -- disabled" >&5
45312echo "$as_me: WARNING: Clipboard and drag-and-drop require wxDataObject -- disabled" >&2;}
45313 wxUSE_CLIPBOARD=no
45314 wxUSE_DRAG_AND_DROP=no
45315fi
45316
a848cd7e
SC
45317if test "$wxUSE_CLIPBOARD" = "yes"; then
45318 if test "$wxUSE_MGL" = 1; then
45319 { echo "$as_me:$LINENO: WARNING: Clipboard not yet supported under MGL... disabled" >&5
45320echo "$as_me: WARNING: Clipboard not yet supported under MGL... disabled" >&2;}
45321 wxUSE_CLIPBOARD=no
45322 fi
45323
45324 if test "$wxUSE_CLIPBOARD" = "yes"; then
45325 cat >>confdefs.h <<\_ACEOF
45326#define wxUSE_CLIPBOARD 1
45327_ACEOF
45328
a848cd7e
SC
45329 fi
45330fi
45331
45332if test "$wxUSE_DRAG_AND_DROP" = "yes" ; then
45333 if test "$wxUSE_GTK" = 1; then
45334 if test "$WXGTK12" != 1; then
45335 { echo "$as_me:$LINENO: WARNING: Drag and drop is only supported under GTK+ 1.2... disabled" >&5
45336echo "$as_me: WARNING: Drag and drop is only supported under GTK+ 1.2... disabled" >&2;}
45337 wxUSE_DRAG_AND_DROP=no
45338 fi
45339 fi
45340
45341 if test "$wxUSE_MOTIF" = 1; then
45342 { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under Motif... disabled" >&5
45343echo "$as_me: WARNING: Drag and drop not yet supported under Motif... disabled" >&2;}
45344 wxUSE_DRAG_AND_DROP=no
45345 fi
45346
45347 if test "$wxUSE_X11" = 1; then
45348 { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under X11... disabled" >&5
45349echo "$as_me: WARNING: Drag and drop not yet supported under X11... disabled" >&2;}
45350 wxUSE_DRAG_AND_DROP=no
45351 fi
45352
45353 if test "$wxUSE_MGL" = 1; then
45354 { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under MGL... disabled" >&5
45355echo "$as_me: WARNING: Drag and drop not yet supported under MGL... disabled" >&2;}
45356 wxUSE_DRAG_AND_DROP=no
45357 fi
45358
45359 if test "$wxUSE_DRAG_AND_DROP" = "yes"; then
45360 cat >>confdefs.h <<\_ACEOF
45361#define wxUSE_DRAG_AND_DROP 1
45362_ACEOF
45363
45364 fi
45365
45366fi
45367
45368if test "$wxUSE_DRAG_AND_DROP" = "yes" -o "$wxUSE_CLIPBOARD" = "yes"; then
45369 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dnd"
45370fi
45371
45372if test "$wxUSE_SPLINES" = "yes" ; then
45373 cat >>confdefs.h <<\_ACEOF
45374#define wxUSE_SPLINES 1
45375_ACEOF
45376
45377fi
45378
fbe2ca43
SN
45379if test "$wxUSE_MOUSEWHEEL" = "yes" ; then
45380 cat >>confdefs.h <<\_ACEOF
45381#define wxUSE_MOUSEWHEEL 1
45382_ACEOF
45383
45384fi
45385
a848cd7e
SC
45386
45387USES_CONTROLS=0
45388if test "$wxUSE_CONTROLS" = "yes"; then
45389 USES_CONTROLS=1
45390fi
45391
45392if test "$wxUSE_ACCEL" = "yes"; then
45393 cat >>confdefs.h <<\_ACEOF
45394#define wxUSE_ACCEL 1
45395_ACEOF
45396
45397 USES_CONTROLS=1
45398fi
45399
7067783d 45400if test "$wxUSE_ANIMATIONCTRL" = "yes"; then
3ea50042
VZ
45401 cat >>confdefs.h <<\_ACEOF
45402#define wxUSE_ANIMATIONCTRL 1
45403_ACEOF
45404
45405 USES_CONTROLS=1
45406 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS animate"
45407fi
45408
a848cd7e
SC
45409if test "$wxUSE_BUTTON" = "yes"; then
45410 cat >>confdefs.h <<\_ACEOF
45411#define wxUSE_BUTTON 1
45412_ACEOF
45413
45414 USES_CONTROLS=1
45415fi
45416
45417if test "$wxUSE_BMPBUTTON" = "yes"; then
45418 cat >>confdefs.h <<\_ACEOF
45419#define wxUSE_BMPBUTTON 1
45420_ACEOF
45421
45422 USES_CONTROLS=1
45423fi
45424
45425if test "$wxUSE_CALCTRL" = "yes"; then
45426 cat >>confdefs.h <<\_ACEOF
45427#define wxUSE_CALENDARCTRL 1
45428_ACEOF
45429
45430 USES_CONTROLS=1
45431 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS calendar"
45432fi
45433
45434if test "$wxUSE_CARET" = "yes"; then
45435 cat >>confdefs.h <<\_ACEOF
45436#define wxUSE_CARET 1
45437_ACEOF
45438
45439 USES_CONTROLS=1
45440 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS caret"
45441fi
45442
45443if test "$wxUSE_COMBOBOX" = "yes"; then
45444 cat >>confdefs.h <<\_ACEOF
45445#define wxUSE_COMBOBOX 1
45446_ACEOF
45447
45448 USES_CONTROLS=1
45449fi
45450
a57d600f 45451if test "$wxUSE_COMBOCTRL" = "yes"; then
642bcba9 45452 cat >>confdefs.h <<\_ACEOF
a57d600f 45453#define wxUSE_COMBOCTRL 1
642bcba9
VZ
45454_ACEOF
45455
45456 USES_CONTROLS=1
45457fi
45458
a848cd7e
SC
45459if test "$wxUSE_CHOICE" = "yes"; then
45460 cat >>confdefs.h <<\_ACEOF
45461#define wxUSE_CHOICE 1
45462_ACEOF
45463
45464 USES_CONTROLS=1
45465fi
45466
92bbdbcd
WS
45467if test "$wxUSE_CHOICEBOOK" = "yes"; then
45468 cat >>confdefs.h <<\_ACEOF
45469#define wxUSE_CHOICEBOOK 1
45470_ACEOF
45471
45472 USES_CONTROLS=1
45473fi
45474
a848cd7e
SC
45475if test "$wxUSE_CHECKBOX" = "yes"; then
45476 cat >>confdefs.h <<\_ACEOF
45477#define wxUSE_CHECKBOX 1
45478_ACEOF
45479
45480 USES_CONTROLS=1
45481fi
45482
45483if test "$wxUSE_CHECKLST" = "yes"; then
45484 cat >>confdefs.h <<\_ACEOF
45485#define wxUSE_CHECKLISTBOX 1
45486_ACEOF
45487
45488 USES_CONTROLS=1
45489 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS checklst"
45490fi
45491
e9263684
VZ
45492if test "$wxUSE_COLOURPICKERCTRL" = "yes"; then
45493 cat >>confdefs.h <<\_ACEOF
45494#define wxUSE_COLOURPICKERCTRL 1
45495_ACEOF
45496
45497 USES_CONTROLS=1
45498fi
45499
da98e9be
VZ
45500if test "$wxUSE_DATEPICKCTRL" = "yes"; then
45501 cat >>confdefs.h <<\_ACEOF
45502#define wxUSE_DATEPICKCTRL 1
45503_ACEOF
45504
45505 USES_CONTROLS=1
45506fi
45507
e9263684
VZ
45508if test "$wxUSE_DIRPICKERCTRL" = "yes"; then
45509 cat >>confdefs.h <<\_ACEOF
45510#define wxUSE_DIRPICKERCTRL 1
45511_ACEOF
45512
45513 USES_CONTROLS=1
45514fi
45515
45516if test "$wxUSE_FILEPICKERCTRL" = "yes"; then
45517 cat >>confdefs.h <<\_ACEOF
45518#define wxUSE_FILEPICKERCTRL 1
45519_ACEOF
45520
45521 USES_CONTROLS=1
45522fi
45523
45524if test "$wxUSE_FONTPICKERCTRL" = "yes"; then
45525 cat >>confdefs.h <<\_ACEOF
45526#define wxUSE_FONTPICKERCTRL 1
45527_ACEOF
45528
45529 USES_CONTROLS=1
45530fi
45531
a848cd7e
SC
45532if test "$wxUSE_DISPLAY" = "yes"; then
45533 cat >>confdefs.h <<\_ACEOF
45534#define wxUSE_DISPLAY 1
45535_ACEOF
45536
0b78747f 45537 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS display multimon"
a848cd7e
SC
45538fi
45539
88bbc332
RR
45540if test "$wxUSE_DETECT_SM" = "yes"; then
45541 cat >>confdefs.h <<\_ACEOF
45542#define wxUSE_DETECT_SM 1
45543_ACEOF
45544
45545fi
45546
a848cd7e
SC
45547if test "$wxUSE_GAUGE" = "yes"; then
45548 cat >>confdefs.h <<\_ACEOF
45549#define wxUSE_GAUGE 1
45550_ACEOF
45551
45552 USES_CONTROLS=1
45553fi
45554
45555if test "$wxUSE_GRID" = "yes"; then
45556 cat >>confdefs.h <<\_ACEOF
45557#define wxUSE_GRID 1
45558_ACEOF
45559
45560 USES_CONTROLS=1
45561 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS grid"
45562fi
45563
6954625c
VZ
45564if test "$wxUSE_HYPERLINKCTRL" = "yes"; then
45565 cat >>confdefs.h <<\_ACEOF
45566#define wxUSE_HYPERLINKCTRL 1
45567_ACEOF
45568
45569 USES_CONTROLS=1
45570fi
45571
95a46303
RR
45572if test "$wxUSE_BITMAPCOMBOBOX" = "yes"; then
45573 cat >>confdefs.h <<\_ACEOF
45574#define wxUSE_BITMAPCOMBOBOX 1
45575_ACEOF
45576
45577 USES_CONTROLS=1
45578fi
45579
20e34ecc
RR
45580if test "$wxUSE_DATAVIEWCTRL" = "yes"; then
45581 cat >>confdefs.h <<\_ACEOF
45582#define wxUSE_DATAVIEWCTRL 1
45583_ACEOF
45584
45585 USES_CONTROLS=1
45586 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dataview"
45587fi
45588
a848cd7e
SC
45589if test "$wxUSE_IMAGLIST" = "yes"; then
45590 cat >>confdefs.h <<\_ACEOF
45591#define wxUSE_IMAGLIST 1
45592_ACEOF
45593
45594fi
45595
45596if test "$wxUSE_LISTBOOK" = "yes"; then
45597 cat >>confdefs.h <<\_ACEOF
45598#define wxUSE_LISTBOOK 1
45599_ACEOF
45600
45601 USES_CONTROLS=1
45602fi
45603
45604if test "$wxUSE_LISTBOX" = "yes"; then
45605 cat >>confdefs.h <<\_ACEOF
45606#define wxUSE_LISTBOX 1
45607_ACEOF
45608
45609 USES_CONTROLS=1
0b78747f 45610 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS listbox"
a848cd7e
SC
45611fi
45612
45613if test "$wxUSE_LISTCTRL" = "yes"; then
45614 if test "$wxUSE_IMAGLIST" = "yes"; then
45615 cat >>confdefs.h <<\_ACEOF
45616#define wxUSE_LISTCTRL 1
45617_ACEOF
45618
45619 USES_CONTROLS=1
45620 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS listctrl"
45621 else
45622 { echo "$as_me:$LINENO: WARNING: wxListCtrl requires wxImageList and won't be compiled without it" >&5
45623echo "$as_me: WARNING: wxListCtrl requires wxImageList and won't be compiled without it" >&2;}
45624 fi
45625fi
45626
45627if test "$wxUSE_NOTEBOOK" = "yes"; then
45628 cat >>confdefs.h <<\_ACEOF
45629#define wxUSE_NOTEBOOK 1
45630_ACEOF
45631
45632 USES_CONTROLS=1
45633 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS notebook"
45634fi
45635
a57d600f 45636if test "$wxUSE_ODCOMBOBOX" = "yes"; then
642bcba9 45637 cat >>confdefs.h <<\_ACEOF
a57d600f 45638#define wxUSE_ODCOMBOBOX 1
642bcba9
VZ
45639_ACEOF
45640
45641 USES_CONTROLS=1
45642 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS combo"
45643fi
45644
a848cd7e
SC
45645
45646if test "$wxUSE_RADIOBOX" = "yes"; then
45647 cat >>confdefs.h <<\_ACEOF
45648#define wxUSE_RADIOBOX 1
45649_ACEOF
45650
45651 USES_CONTROLS=1
45652fi
45653
45654if test "$wxUSE_RADIOBTN" = "yes"; then
45655 cat >>confdefs.h <<\_ACEOF
45656#define wxUSE_RADIOBTN 1
45657_ACEOF
45658
45659 USES_CONTROLS=1
45660fi
45661
45662if test "$wxUSE_SASH" = "yes"; then
45663 cat >>confdefs.h <<\_ACEOF
45664#define wxUSE_SASH 1
45665_ACEOF
45666
45667 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sashtest"
45668fi
45669
45670if test "$wxUSE_SCROLLBAR" = "yes"; then
45671 cat >>confdefs.h <<\_ACEOF
45672#define wxUSE_SCROLLBAR 1
45673_ACEOF
45674
45675 USES_CONTROLS=1
45676 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS scroll scrollsub"
45677fi
45678
45679if test "$wxUSE_SLIDER" = "yes"; then
45680 cat >>confdefs.h <<\_ACEOF
45681#define wxUSE_SLIDER 1
45682_ACEOF
45683
45684 USES_CONTROLS=1
45685fi
45686
45687if test "$wxUSE_SPINBTN" = "yes"; then
45688 cat >>confdefs.h <<\_ACEOF
45689#define wxUSE_SPINBTN 1
45690_ACEOF
45691
45692 USES_CONTROLS=1
45693fi
45694
45695if test "$wxUSE_SPINCTRL" = "yes"; then
45696 cat >>confdefs.h <<\_ACEOF
45697#define wxUSE_SPINCTRL 1
45698_ACEOF
45699
45700 USES_CONTROLS=1
45701fi
45702
45703if test "$wxUSE_SPLITTER" = "yes"; then
45704 cat >>confdefs.h <<\_ACEOF
45705#define wxUSE_SPLITTER 1
45706_ACEOF
45707
45708 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splitter"
45709fi
45710
45711if test "$wxUSE_STATBMP" = "yes"; then
45712 cat >>confdefs.h <<\_ACEOF
45713#define wxUSE_STATBMP 1
45714_ACEOF
45715
45716 USES_CONTROLS=1
45717fi
45718
45719if test "$wxUSE_STATBOX" = "yes"; then
45720 cat >>confdefs.h <<\_ACEOF
45721#define wxUSE_STATBOX 1
45722_ACEOF
45723
45724 USES_CONTROLS=1
45725fi
45726
45727if test "$wxUSE_STATTEXT" = "yes"; then
45728 cat >>confdefs.h <<\_ACEOF
45729#define wxUSE_STATTEXT 1
45730_ACEOF
45731
45732 USES_CONTROLS=1
45733fi
45734
45735if test "$wxUSE_STATLINE" = "yes"; then
45736 cat >>confdefs.h <<\_ACEOF
45737#define wxUSE_STATLINE 1
45738_ACEOF
45739
45740 USES_CONTROLS=1
45741fi
45742
45743if test "$wxUSE_STATUSBAR" = "yes"; then
da4486fb
VZ
45744 cat >>confdefs.h <<\_ACEOF
45745#define wxUSE_NATIVE_STATUSBAR 1
45746_ACEOF
45747
a848cd7e
SC
45748 cat >>confdefs.h <<\_ACEOF
45749#define wxUSE_STATUSBAR 1
45750_ACEOF
45751
45752 USES_CONTROLS=1
45753
45754 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS statbar"
45755fi
45756
f10e38c4 45757if test "$wxUSE_TAB_DIALOG" = "yes"; then
a848cd7e
SC
45758 cat >>confdefs.h <<\_ACEOF
45759#define wxUSE_TAB_DIALOG 1
45760_ACEOF
45761
a848cd7e
SC
45762fi
45763
45764if test "$wxUSE_TEXTCTRL" = "yes"; then
45765 cat >>confdefs.h <<\_ACEOF
45766#define wxUSE_TEXTCTRL 1
45767_ACEOF
45768
45769 USES_CONTROLS=1
45770 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS text"
45771fi
45772
45773if test "$wxUSE_TOGGLEBTN" = "yes"; then
45774 if test "$wxUSE_COCOA" = 1 ; then
45775 { echo "$as_me:$LINENO: WARNING: Toggle button not yet supported under Mac OS X... disabled" >&5
45776echo "$as_me: WARNING: Toggle button not yet supported under Mac OS X... disabled" >&2;}
45777 wxUSE_TOGGLEBTN=no
45778 fi
a848cd7e
SC
45779
45780 if test "$wxUSE_TOGGLEBTN" = "yes"; then
45781 cat >>confdefs.h <<\_ACEOF
45782#define wxUSE_TOGGLEBTN 1
45783_ACEOF
45784
45785 USES_CONTROLS=1
45786 fi
45787fi
45788
a848cd7e
SC
45789if test "$wxUSE_TOOLBAR" = "yes"; then
45790 cat >>confdefs.h <<\_ACEOF
45791#define wxUSE_TOOLBAR 1
45792_ACEOF
45793
45794 USES_CONTROLS=1
45795
452b6243
VS
45796 if test "$wxUSE_UNIVERSAL" = "yes"; then
45797 wxUSE_TOOLBAR_NATIVE="no"
45798 else
45799 wxUSE_TOOLBAR_NATIVE="yes"
a848cd7e
SC
45800 cat >>confdefs.h <<\_ACEOF
45801#define wxUSE_TOOLBAR_NATIVE 1
45802_ACEOF
45803
a848cd7e
SC
45804 fi
45805
45806 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS toolbar"
45807fi
45808
45809if test "$wxUSE_TOOLTIPS" = "yes"; then
45810 if test "$wxUSE_MOTIF" = 1; then
45811 { echo "$as_me:$LINENO: WARNING: wxTooltip not supported yet under Motif... disabled" >&5
45812echo "$as_me: WARNING: wxTooltip not supported yet under Motif... disabled" >&2;}
45813 else
45814 if test "$wxUSE_UNIVERSAL" = "yes"; then
45815 { echo "$as_me:$LINENO: WARNING: wxTooltip not supported yet in wxUniversal... disabled" >&5
45816echo "$as_me: WARNING: wxTooltip not supported yet in wxUniversal... disabled" >&2;}
45817 else
45818 cat >>confdefs.h <<\_ACEOF
45819#define wxUSE_TOOLTIPS 1
45820_ACEOF
45821
45822 fi
45823 fi
45824fi
45825
0093c2fc
VZ
45826if test "$wxUSE_TREEBOOK" = "yes"; then
45827 cat >>confdefs.h <<\_ACEOF
45828#define wxUSE_TREEBOOK 1
45829_ACEOF
45830
45831 USES_CONTROLS=1
45832fi
45833
5ec3bc43
JS
45834if test "$wxUSE_TOOLBOOK" = "yes"; then
45835 cat >>confdefs.h <<\_ACEOF
45836#define wxUSE_TOOLBOOK 1
45837_ACEOF
45838
45839 USES_CONTROLS=1
45840fi
45841
a848cd7e
SC
45842if test "$wxUSE_TREECTRL" = "yes"; then
45843 if test "$wxUSE_IMAGLIST" = "yes"; then
45844 cat >>confdefs.h <<\_ACEOF
45845#define wxUSE_TREECTRL 1
45846_ACEOF
45847
45848 USES_CONTROLS=1
45849 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS treectrl"
45850 else
45851 { echo "$as_me:$LINENO: WARNING: wxTreeCtrl requires wxImageList and won't be compiled without it" >&5
45852echo "$as_me: WARNING: wxTreeCtrl requires wxImageList and won't be compiled without it" >&2;}
45853 fi
45854fi
45855
45856if test "$wxUSE_POPUPWIN" = "yes"; then
45857 if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1 ; then
45858 { echo "$as_me:$LINENO: WARNING: Popup window not yet supported under Mac OS X... disabled" >&5
45859echo "$as_me: WARNING: Popup window not yet supported under Mac OS X... disabled" >&2;}
45860 else
45861 if test "$wxUSE_PM" = 1; then
45862 { echo "$as_me:$LINENO: WARNING: wxPopupWindow not yet supported under PM... disabled" >&5
45863echo "$as_me: WARNING: wxPopupWindow not yet supported under PM... disabled" >&2;}
45864 else
45865 cat >>confdefs.h <<\_ACEOF
45866#define wxUSE_POPUPWIN 1
45867_ACEOF
45868
0b78747f 45869 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS popup"
a848cd7e
SC
45870
45871 USES_CONTROLS=1
45872 fi
45873 fi
45874fi
45875
0dcd06dd 45876if test "$wxUSE_DIALUP_MANAGER" = "yes"; then
b843b628
MB
45877 if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1 ; then
45878 { echo "$as_me:$LINENO: WARNING: Dialup manager not yet supported under Mac OS X... disabled" >&5
45879echo "$as_me: WARNING: Dialup manager not yet supported under Mac OS X... disabled" >&2;}
45880 else
45881 cat >>confdefs.h <<\_ACEOF
45882#define wxUSE_DIALUP_MANAGER 1
45883_ACEOF
45884
45885 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dialup"
45886 fi
45887fi
45888
a848cd7e
SC
45889if test "$wxUSE_TIPWINDOW" = "yes"; then
45890 if test "$wxUSE_PM" = 1; then
45891 { echo "$as_me:$LINENO: WARNING: wxTipWindow not yet supported under PM... disabled" >&5
45892echo "$as_me: WARNING: wxTipWindow not yet supported under PM... disabled" >&2;}
45893 else
45894 cat >>confdefs.h <<\_ACEOF
45895#define wxUSE_TIPWINDOW 1
45896_ACEOF
45897
45898 fi
45899fi
45900
45901if test "$USES_CONTROLS" = 1; then
45902 cat >>confdefs.h <<\_ACEOF
45903#define wxUSE_CONTROLS 1
45904_ACEOF
45905
45906fi
45907
45908
45909if test "$wxUSE_ACCESSIBILITY" = "yes"; then
45910 cat >>confdefs.h <<\_ACEOF
45911#define wxUSE_ACCESSIBILITY 1
45912_ACEOF
45913
45914 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS access"
45915fi
45916
38b4a946
VZ
45917if test "$wxUSE_DC_CACHEING" = "yes"; then
45918 cat >>confdefs.h <<\_ACEOF
45919#define wxUSE_DC_CACHEING 1
45920_ACEOF
45921
45922fi
45923
a848cd7e
SC
45924if test "$wxUSE_DRAGIMAGE" = "yes"; then
45925 cat >>confdefs.h <<\_ACEOF
45926#define wxUSE_DRAGIMAGE 1
45927_ACEOF
45928
45929 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dragimag"
45930fi
45931
45932if test "$wxUSE_EXCEPTIONS" = "yes"; then
07bea8f0
VS
45933 if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then
45934 { echo "$as_me:$LINENO: WARNING: --enable-exceptions can't be used with --enable-no_exceptions" >&5
45935echo "$as_me: WARNING: --enable-exceptions can't be used with --enable-no_exceptions" >&2;}
45936 else
45937 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
45938#define wxUSE_EXCEPTIONS 1
45939_ACEOF
45940
07bea8f0
VS
45941 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS except"
45942 fi
a848cd7e
SC
45943fi
45944
45945USE_HTML=0
45946if test "$wxUSE_HTML" = "yes"; then
45947 cat >>confdefs.h <<\_ACEOF
45948#define wxUSE_HTML 1
45949_ACEOF
45950
45951 USE_HTML=1
45952 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html html/about html/help html/helpview html/printing html/test html/virtual html/widget html/zip htlbox"
de59c161
RD
45953 if test "$wxUSE_MAC" = 1; then
45954 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html/htmlctrl"
45955 fi
a848cd7e 45956fi
646b6ec1 45957if test "$wxUSE_WEBKIT" = "yes"; then
1e9e8aba 45958 if test "$wxUSE_MAC" = 1 -a "$USE_DARWIN" = 1; then
07bea8f0 45959 old_CPPFLAGS="$CPPFLAGS"
c92ad099 45960 CPPFLAGS="-x objective-c++ $CPPFLAGS"
07bea8f0
VS
45961 echo "$as_me:$LINENO: checking for WebKit/HIWebView.h" >&5
45962echo $ECHO_N "checking for WebKit/HIWebView.h... $ECHO_C" >&6
45963if test "${ac_cv_header_WebKit_HIWebView_h+set}" = set; then
45964 echo $ECHO_N "(cached) $ECHO_C" >&6
45965else
45966 cat >conftest.$ac_ext <<_ACEOF
45967/* confdefs.h. */
45968_ACEOF
45969cat confdefs.h >>conftest.$ac_ext
45970cat >>conftest.$ac_ext <<_ACEOF
45971/* end confdefs.h. */
45972#include <Carbon/Carbon.h>
45973
45974#include <WebKit/HIWebView.h>
45975_ACEOF
45976rm -f conftest.$ac_objext
45977if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
45978 (eval $ac_compile) 2>conftest.er1
45979 ac_status=$?
45980 grep -v '^ *+' conftest.er1 >conftest.err
45981 rm -f conftest.er1
45982 cat conftest.err >&5
45983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45984 (exit $ac_status); } &&
479c790c 45985 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
07bea8f0
VS
45986 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45987 (eval $ac_try) 2>&5
45988 ac_status=$?
45989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45990 (exit $ac_status); }; } &&
45991 { ac_try='test -s conftest.$ac_objext'
45992 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45993 (eval $ac_try) 2>&5
45994 ac_status=$?
45995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45996 (exit $ac_status); }; }; then
45997 ac_cv_header_WebKit_HIWebView_h=yes
45998else
45999 echo "$as_me: failed program was:" >&5
46000sed 's/^/| /' conftest.$ac_ext >&5
46001
46002ac_cv_header_WebKit_HIWebView_h=no
46003fi
46004rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
46005fi
46006echo "$as_me:$LINENO: result: $ac_cv_header_WebKit_HIWebView_h" >&5
46007echo "${ECHO_T}$ac_cv_header_WebKit_HIWebView_h" >&6
46008if test $ac_cv_header_WebKit_HIWebView_h = yes; then
46009
46010 cat >>confdefs.h <<\_ACEOF
646b6ec1
VS
46011#define wxUSE_WEBKIT 1
46012_ACEOF
46013
07bea8f0
VS
46014 WEBKIT_LINK="-framework WebKit"
46015
46016else
46017
46018 { echo "$as_me:$LINENO: WARNING: WebKit headers not found; disabling wxWebKit" >&5
46019echo "$as_me: WARNING: WebKit headers not found; disabling wxWebKit" >&2;}
46020 wxUSE_WEBKIT=no
46021
646b6ec1
VS
46022fi
46023
07bea8f0
VS
46024
46025 CPPFLAGS="$old_CPPFLAGS"
46026 elif test "$wxUSE_COCOA" = 1; then
46027 cat >>confdefs.h <<\_ACEOF
46028#define wxUSE_WEBKIT 1
46029_ACEOF
46030
46031 else
46032 wxUSE_WEBKIT=no
46033 fi
46034fi
46035
9a8f0513
VS
46036USE_XRC=0
46037if test "$wxUSE_XRC" = "yes"; then
d2ebf0b7
VS
46038 if test "$wxUSE_XML" != "yes"; then
46039 { echo "$as_me:$LINENO: WARNING: XML library not built, XRC resources disabled" >&5
46040echo "$as_me: WARNING: XML library not built, XRC resources disabled" >&2;}
46041 wxUSE_XRC=no
46042 else
46043 cat >>confdefs.h <<\_ACEOF
9a8f0513
VS
46044#define wxUSE_XRC 1
46045_ACEOF
46046
d2ebf0b7
VS
46047 USE_XRC=1
46048 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS xrc"
46049 fi
9a8f0513 46050fi
07bea8f0 46051
3f60522a
JS
46052USE_AUI=0
46053if test "$wxUSE_AUI" = "yes"; then
46054 cat >>confdefs.h <<\_ACEOF
46055#define wxUSE_AUI 1
46056_ACEOF
46057
46058 USE_AUI=1
46059 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS aui"
46060fi
46061
a848cd7e
SC
46062if test "$wxUSE_MENUS" = "yes"; then
46063 cat >>confdefs.h <<\_ACEOF
46064#define wxUSE_MENUS 1
46065_ACEOF
46066
46067 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS menu"
46068fi
46069
46070if test "$wxUSE_METAFILE" = "yes"; then
46071 cat >>confdefs.h <<\_ACEOF
46072#define wxUSE_METAFILE 1
46073_ACEOF
46074
46075fi
46076
46077if test "$wxUSE_MIMETYPE" = "yes"; then
46078 cat >>confdefs.h <<\_ACEOF
46079#define wxUSE_MIMETYPE 1
46080_ACEOF
46081
46082fi
46083
46084if test "$wxUSE_MINIFRAME" = "yes"; then
46085 cat >>confdefs.h <<\_ACEOF
46086#define wxUSE_MINIFRAME 1
46087_ACEOF
46088
46089 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS minifram"
46090fi
46091
46092if test "$wxUSE_SYSTEM_OPTIONS" = "yes"; then
46093 cat >>confdefs.h <<\_ACEOF
46094#define wxUSE_SYSTEM_OPTIONS 1
46095_ACEOF
46096
46097 if test "$TOOLKIT" = "MSW" -o "$TOOLKIT" = "GTK" -o "$TOOLKIT" = "X11" -o \
a49baeab 46098 "$TOOLKIT" = "MOTIF" -o "$TOOLKIT" = "COCOA"; then
a848cd7e
SC
46099 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS taskbar"
46100 fi
46101fi
46102
46103
46104if test "$wxUSE_VALIDATORS" = "yes"; then
46105 cat >>confdefs.h <<\_ACEOF
46106#define wxUSE_VALIDATORS 1
46107_ACEOF
46108
46109 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS validate"
46110fi
46111
46112if test "$wxUSE_PALETTE" = "yes" ; then
46113 cat >>confdefs.h <<\_ACEOF
46114#define wxUSE_PALETTE 1
46115_ACEOF
46116
46117fi
46118
46119if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_UNICODE_MSLU" = "yes" ; then
46120 LIBS=" -lunicows $LIBS"
46121fi
46122
91dea314
MW
46123USE_RICHTEXT=0
46124if test "$wxUSE_RICHTEXT" = "yes"; then
46125 cat >>confdefs.h <<\_ACEOF
46126#define wxUSE_RICHTEXT 1
46127_ACEOF
46128
46129 USE_RICHTEXT=1
46130 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS richtext"
46131fi
46132
a848cd7e
SC
46133
46134if test "$wxUSE_IMAGE" = "yes" ; then
46135 cat >>confdefs.h <<\_ACEOF
46136#define wxUSE_IMAGE 1
46137_ACEOF
46138
46139
46140 if test "$wxUSE_GIF" = "yes" ; then
46141 cat >>confdefs.h <<\_ACEOF
46142#define wxUSE_GIF 1
46143_ACEOF
46144
46145 fi
46146
46147 if test "$wxUSE_PCX" = "yes" ; then
46148 cat >>confdefs.h <<\_ACEOF
46149#define wxUSE_PCX 1
46150_ACEOF
46151
46152 fi
46153
46154 if test "$wxUSE_IFF" = "yes" ; then
46155 cat >>confdefs.h <<\_ACEOF
46156#define wxUSE_IFF 1
46157_ACEOF
46158
46159 fi
46160
46161 if test "$wxUSE_PNM" = "yes" ; then
46162 cat >>confdefs.h <<\_ACEOF
46163#define wxUSE_PNM 1
46164_ACEOF
46165
46166 fi
46167
46168 if test "$wxUSE_XPM" = "yes" ; then
46169 cat >>confdefs.h <<\_ACEOF
46170#define wxUSE_XPM 1
46171_ACEOF
46172
46173 fi
46174
46175 if test "$wxUSE_ICO_CUR" = "yes" ; then
46176 cat >>confdefs.h <<\_ACEOF
46177#define wxUSE_ICO_CUR 1
46178_ACEOF
46179
46180 fi
46181fi
46182
46183
319c5ed4
VZ
46184if test "$wxUSE_ABOUTDLG" = "yes"; then
46185 cat >>confdefs.h <<\_ACEOF
46186#define wxUSE_ABOUTDLG 1
46187_ACEOF
46188
46189fi
46190
a848cd7e
SC
46191if test "$wxUSE_CHOICEDLG" = "yes"; then
46192 cat >>confdefs.h <<\_ACEOF
46193#define wxUSE_CHOICEDLG 1
46194_ACEOF
46195
46196fi
46197
46198if test "$wxUSE_COLOURDLG" = "yes"; then
46199 cat >>confdefs.h <<\_ACEOF
46200#define wxUSE_COLOURDLG 1
46201_ACEOF
46202
46203fi
46204
46205if test "$wxUSE_FILEDLG" = "yes"; then
46206 cat >>confdefs.h <<\_ACEOF
46207#define wxUSE_FILEDLG 1
46208_ACEOF
46209
46210fi
46211
46212if test "$wxUSE_FINDREPLDLG" = "yes"; then
46213 cat >>confdefs.h <<\_ACEOF
46214#define wxUSE_FINDREPLDLG 1
46215_ACEOF
46216
46217fi
46218
46219if test "$wxUSE_FONTDLG" = "yes"; then
46220 cat >>confdefs.h <<\_ACEOF
46221#define wxUSE_FONTDLG 1
46222_ACEOF
46223
46224fi
46225
46226if test "$wxUSE_DIRDLG" = "yes"; then
46227 if test "$wxUSE_TREECTRL" != "yes"; then
46228 { echo "$as_me:$LINENO: WARNING: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" >&5
46229echo "$as_me: WARNING: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" >&2;}
46230 else
46231 cat >>confdefs.h <<\_ACEOF
46232#define wxUSE_DIRDLG 1
46233_ACEOF
46234
46235 fi
46236fi
46237
46238if test "$wxUSE_MSGDLG" = "yes"; then
46239 cat >>confdefs.h <<\_ACEOF
46240#define wxUSE_MSGDLG 1
46241_ACEOF
46242
46243fi
46244
46245if test "$wxUSE_NUMBERDLG" = "yes"; then
46246 cat >>confdefs.h <<\_ACEOF
46247#define wxUSE_NUMBERDLG 1
46248_ACEOF
46249
46250fi
46251
46252if test "$wxUSE_PROGRESSDLG" = "yes"; then
46253 if test "$wxUSE_CONSTRAINTS" != "yes"; then
46254 { echo "$as_me:$LINENO: WARNING: wxProgressDialog requires constraints so it won't be compiled without them" >&5
46255echo "$as_me: WARNING: wxProgressDialog requires constraints so it won't be compiled without them" >&2;}
46256 else
46257 cat >>confdefs.h <<\_ACEOF
46258#define wxUSE_PROGRESSDLG 1
46259_ACEOF
46260
46261 fi
46262fi
46263
46264if test "$wxUSE_SPLASH" = "yes"; then
46265 cat >>confdefs.h <<\_ACEOF
46266#define wxUSE_SPLASH 1
46267_ACEOF
46268
2057db16 46269 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splash"
a848cd7e
SC
46270fi
46271
46272if test "$wxUSE_STARTUP_TIPS" = "yes"; then
46273 if test "$wxUSE_CONSTRAINTS" != "yes"; then
46274 { echo "$as_me:$LINENO: WARNING: Startup tips requires constraints and won't be compiled without them" >&5
46275echo "$as_me: WARNING: Startup tips requires constraints and won't be compiled without them" >&2;}
46276 else
46277 cat >>confdefs.h <<\_ACEOF
46278#define wxUSE_STARTUP_TIPS 1
46279_ACEOF
46280
46281 fi
46282fi
46283
46284if test "$wxUSE_TEXTDLG" = "yes"; then
46285 cat >>confdefs.h <<\_ACEOF
46286#define wxUSE_TEXTDLG 1
46287_ACEOF
46288
46289fi
46290
46291if test "$wxUSE_WIZARDDLG" = "yes"; then
46292 cat >>confdefs.h <<\_ACEOF
46293#define wxUSE_WIZARDDLG 1
46294_ACEOF
46295
46296 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS wizard"
46297fi
46298
46299
64b75e64
RD
46300if test "$wxUSE_GRAPHICS_CONTEXT" = "yes"; then
46301 if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = "1"; then
46302 cat >>confdefs.h <<\_ACEOF
46303#define wxUSE_GRAPHICS_CONTEXT 1
46304_ACEOF
46305
46306 elif test "$wxUSE_GTK" != 1; then
46307 cat >>confdefs.h <<\_ACEOF
46308#define wxUSE_GRAPHICS_CONTEXT 1
46309_ACEOF
46310
46311 else
46312
46313pkg_failed=no
46314echo "$as_me:$LINENO: checking for CAIRO" >&5
46315echo $ECHO_N "checking for CAIRO... $ECHO_C" >&6
46316
46317if test -n "$PKG_CONFIG"; then
46318 if test -n "$CAIRO_CFLAGS"; then
46319 pkg_cv_CAIRO_CFLAGS="$CAIRO_CFLAGS"
46320 else
46321 if test -n "$PKG_CONFIG" && \
46322 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"cairo\"") >&5
46323 ($PKG_CONFIG --exists --print-errors "cairo") 2>&5
46324 ac_status=$?
46325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46326 (exit $ac_status); }; then
46327 pkg_cv_CAIRO_CFLAGS=`$PKG_CONFIG --cflags "cairo" 2>/dev/null`
46328else
46329 pkg_failed=yes
46330fi
46331 fi
46332else
46333 pkg_failed=untried
46334fi
46335if test -n "$PKG_CONFIG"; then
46336 if test -n "$CAIRO_LIBS"; then
46337 pkg_cv_CAIRO_LIBS="$CAIRO_LIBS"
46338 else
46339 if test -n "$PKG_CONFIG" && \
46340 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"cairo\"") >&5
46341 ($PKG_CONFIG --exists --print-errors "cairo") 2>&5
46342 ac_status=$?
46343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46344 (exit $ac_status); }; then
46345 pkg_cv_CAIRO_LIBS=`$PKG_CONFIG --libs "cairo" 2>/dev/null`
46346else
46347 pkg_failed=yes
46348fi
46349 fi
46350else
46351 pkg_failed=untried
46352fi
46353
46354
46355
46356if test $pkg_failed = yes; then
46357
46358if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
46359 _pkg_short_errors_supported=yes
46360else
46361 _pkg_short_errors_supported=no
46362fi
46363 if test $_pkg_short_errors_supported = yes; then
46364 CAIRO_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "cairo"`
46365 else
46366 CAIRO_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cairo"`
46367 fi
46368 # Put the nasty error message in config.log where it belongs
46369 echo "$CAIRO_PKG_ERRORS" >&5
46370
46371
46372 { echo "$as_me:$LINENO: WARNING: Cairo library not found, unable to set wxUSE_GRAPHICS_CONTEXT" >&5
46373echo "$as_me: WARNING: Cairo library not found, unable to set wxUSE_GRAPHICS_CONTEXT" >&2;}
46374
46375
46376elif test $pkg_failed = untried; then
46377
46378 { echo "$as_me:$LINENO: WARNING: Cairo library not found, unable to set wxUSE_GRAPHICS_CONTEXT" >&5
46379echo "$as_me: WARNING: Cairo library not found, unable to set wxUSE_GRAPHICS_CONTEXT" >&2;}
46380
46381
46382else
46383 CAIRO_CFLAGS=$pkg_cv_CAIRO_CFLAGS
46384 CAIRO_LIBS=$pkg_cv_CAIRO_LIBS
46385 echo "$as_me:$LINENO: result: yes" >&5
46386echo "${ECHO_T}yes" >&6
46387
46388 cat >>confdefs.h <<\_ACEOF
46389#define wxUSE_GRAPHICS_CONTEXT 1
46390_ACEOF
46391
46392
46393fi
46394 fi
46395fi
46396
46397
f10e38c4
VZ
46398USE_MEDIA=0
46399
ce756cb0 46400if test "$wxUSE_MEDIACTRL" = "yes"; then
2f6c5bb5
VZ
46401 USE_MEDIA=1
46402
ce756cb0 46403 if test "$wxUSE_GTK" = 1; then
c9a66001 46404 wxUSE_GSTREAMER="no"
ce756cb0 46405
f10e38c4
VZ
46406 GST_VERSION_MAJOR=0
46407 GST_VERSION_MINOR=10
2f6c5bb5 46408 GST_VERSION=$GST_VERSION_MAJOR.$GST_VERSION_MINOR
f10e38c4
VZ
46409
46410 if test "$wxUSE_GSTREAMER8" = "no"; then
ce756cb0 46411
3ecd9f92
MW
46412pkg_failed=no
46413echo "$as_me:$LINENO: checking for GST" >&5
46414echo $ECHO_N "checking for GST... $ECHO_C" >&6
ce756cb0 46415
3ecd9f92
MW
46416if test -n "$PKG_CONFIG"; then
46417 if test -n "$GST_CFLAGS"; then
46418 pkg_cv_GST_CFLAGS="$GST_CFLAGS"
46419 else
46420 if test -n "$PKG_CONFIG" && \
46421 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gstreamer-\$GST_VERSION gstreamer-plugins-base-\$GST_VERSION gconf-2.0\"") >&5
46422 ($PKG_CONFIG --exists --print-errors "gstreamer-$GST_VERSION gstreamer-plugins-base-$GST_VERSION gconf-2.0") 2>&5
46423 ac_status=$?
46424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46425 (exit $ac_status); }; then
46426 pkg_cv_GST_CFLAGS=`$PKG_CONFIG --cflags "gstreamer-$GST_VERSION gstreamer-plugins-base-$GST_VERSION gconf-2.0" 2>/dev/null`
dae87f93 46427else
3ecd9f92
MW
46428 pkg_failed=yes
46429fi
46430 fi
46431else
46432 pkg_failed=untried
dae87f93 46433fi
dae87f93 46434if test -n "$PKG_CONFIG"; then
3ecd9f92
MW
46435 if test -n "$GST_LIBS"; then
46436 pkg_cv_GST_LIBS="$GST_LIBS"
46437 else
46438 if test -n "$PKG_CONFIG" && \
46439 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gstreamer-\$GST_VERSION gstreamer-plugins-base-\$GST_VERSION gconf-2.0\"") >&5
46440 ($PKG_CONFIG --exists --print-errors "gstreamer-$GST_VERSION gstreamer-plugins-base-$GST_VERSION gconf-2.0") 2>&5
46441 ac_status=$?
46442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46443 (exit $ac_status); }; then
46444 pkg_cv_GST_LIBS=`$PKG_CONFIG --libs "gstreamer-$GST_VERSION gstreamer-plugins-base-$GST_VERSION gconf-2.0" 2>/dev/null`
dae87f93 46445else
3ecd9f92
MW
46446 pkg_failed=yes
46447fi
46448 fi
46449else
46450 pkg_failed=untried
dae87f93
RN
46451fi
46452
dae87f93 46453
2f6c5bb5 46454
3ecd9f92 46455if test $pkg_failed = yes; then
ce756cb0 46456
3ecd9f92
MW
46457if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
46458 _pkg_short_errors_supported=yes
46459else
46460 _pkg_short_errors_supported=no
46461fi
46462 if test $_pkg_short_errors_supported = yes; then
46463 GST_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "gstreamer-$GST_VERSION gstreamer-plugins-base-$GST_VERSION gconf-2.0"`
46464 else
46465 GST_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gstreamer-$GST_VERSION gstreamer-plugins-base-$GST_VERSION gconf-2.0"`
dae87f93 46466 fi
3ecd9f92
MW
46467 # Put the nasty error message in config.log where it belongs
46468 echo "$GST_PKG_ERRORS" >&5
dae87f93
RN
46469
46470
3ecd9f92
MW
46471 { echo "$as_me:$LINENO: WARNING: GStreamer 0.10 not available, falling back to 0.8" >&5
46472echo "$as_me: WARNING: GStreamer 0.10 not available, falling back to 0.8" >&2;}
46473 GST_VERSION_MINOR=8
dae87f93 46474
ce756cb0 46475
3ecd9f92 46476elif test $pkg_failed = untried; then
dae87f93 46477
2f6c5bb5
VZ
46478 { echo "$as_me:$LINENO: WARNING: GStreamer 0.10 not available, falling back to 0.8" >&5
46479echo "$as_me: WARNING: GStreamer 0.10 not available, falling back to 0.8" >&2;}
f10e38c4 46480 GST_VERSION_MINOR=8
dae87f93 46481
2f6c5bb5 46482
3ecd9f92
MW
46483else
46484 GST_CFLAGS=$pkg_cv_GST_CFLAGS
46485 GST_LIBS=$pkg_cv_GST_LIBS
46486 echo "$as_me:$LINENO: result: yes" >&5
46487echo "${ECHO_T}yes" >&6
46488
46489 wxUSE_GSTREAMER="yes"
46490 GST_LIBS="$GST_LIBS -lgstinterfaces-$GST_VERSION"
dae87f93 46491
3ecd9f92 46492fi
2f6c5bb5
VZ
46493 else
46494 GST_VERSION_MINOR=8
f10e38c4 46495 fi
dae87f93 46496
2f6c5bb5
VZ
46497 if test $GST_VERSION_MINOR = "8"; then
46498 GST_VERSION=$GST_VERSION_MAJOR.$GST_VERSION_MINOR
dae87f93 46499
3ecd9f92
MW
46500pkg_failed=no
46501echo "$as_me:$LINENO: checking for GST" >&5
46502echo $ECHO_N "checking for GST... $ECHO_C" >&6
dae87f93 46503
3ecd9f92
MW
46504if test -n "$PKG_CONFIG"; then
46505 if test -n "$GST_CFLAGS"; then
46506 pkg_cv_GST_CFLAGS="$GST_CFLAGS"
46507 else
46508 if test -n "$PKG_CONFIG" && \
46509 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gstreamer-\$GST_VERSION gstreamer-interfaces-\$GST_VERSION gstreamer-gconf-\$GST_VERSION\"") >&5
46510 ($PKG_CONFIG --exists --print-errors "gstreamer-$GST_VERSION gstreamer-interfaces-$GST_VERSION gstreamer-gconf-$GST_VERSION") 2>&5
46511 ac_status=$?
46512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46513 (exit $ac_status); }; then
46514 pkg_cv_GST_CFLAGS=`$PKG_CONFIG --cflags "gstreamer-$GST_VERSION gstreamer-interfaces-$GST_VERSION gstreamer-gconf-$GST_VERSION" 2>/dev/null`
dae87f93 46515else
3ecd9f92
MW
46516 pkg_failed=yes
46517fi
46518 fi
46519else
46520 pkg_failed=untried
dae87f93 46521fi
f10e38c4 46522if test -n "$PKG_CONFIG"; then
3ecd9f92
MW
46523 if test -n "$GST_LIBS"; then
46524 pkg_cv_GST_LIBS="$GST_LIBS"
46525 else
46526 if test -n "$PKG_CONFIG" && \
46527 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gstreamer-\$GST_VERSION gstreamer-interfaces-\$GST_VERSION gstreamer-gconf-\$GST_VERSION\"") >&5
46528 ($PKG_CONFIG --exists --print-errors "gstreamer-$GST_VERSION gstreamer-interfaces-$GST_VERSION gstreamer-gconf-$GST_VERSION") 2>&5
46529 ac_status=$?
46530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46531 (exit $ac_status); }; then
46532 pkg_cv_GST_LIBS=`$PKG_CONFIG --libs "gstreamer-$GST_VERSION gstreamer-interfaces-$GST_VERSION gstreamer-gconf-$GST_VERSION" 2>/dev/null`
dae87f93 46533else
3ecd9f92
MW
46534 pkg_failed=yes
46535fi
46536 fi
46537else
46538 pkg_failed=untried
dae87f93
RN
46539fi
46540
ce756cb0 46541
2f6c5bb5 46542
3ecd9f92 46543if test $pkg_failed = yes; then
dae87f93 46544
3ecd9f92
MW
46545if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
46546 _pkg_short_errors_supported=yes
46547else
46548 _pkg_short_errors_supported=no
46549fi
46550 if test $_pkg_short_errors_supported = yes; then
46551 GST_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "gstreamer-$GST_VERSION gstreamer-interfaces-$GST_VERSION gstreamer-gconf-$GST_VERSION"`
46552 else
46553 GST_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gstreamer-$GST_VERSION gstreamer-interfaces-$GST_VERSION gstreamer-gconf-$GST_VERSION"`
dae87f93 46554 fi
3ecd9f92
MW
46555 # Put the nasty error message in config.log where it belongs
46556 echo "$GST_PKG_ERRORS" >&5
dae87f93
RN
46557
46558
3ecd9f92
MW
46559 { echo "$as_me:$LINENO: WARNING: GStreamer 0.8/0.10 not available." >&5
46560echo "$as_me: WARNING: GStreamer 0.8/0.10 not available." >&2;}
ce756cb0 46561
3ecd9f92 46562elif test $pkg_failed = untried; then
ce756cb0 46563
2f6c5bb5
VZ
46564 { echo "$as_me:$LINENO: WARNING: GStreamer 0.8/0.10 not available." >&5
46565echo "$as_me: WARNING: GStreamer 0.8/0.10 not available." >&2;}
ce756cb0 46566
3ecd9f92
MW
46567else
46568 GST_CFLAGS=$pkg_cv_GST_CFLAGS
46569 GST_LIBS=$pkg_cv_GST_LIBS
46570 echo "$as_me:$LINENO: result: yes" >&5
46571echo "${ECHO_T}yes" >&6
46572 wxUSE_GSTREAMER="yes"
46573fi
dae87f93 46574 fi
ce756cb0 46575
f10e38c4 46576
dae87f93 46577 if test "$wxUSE_GSTREAMER" = "yes"; then
c9a66001
VZ
46578 case "${host}" in
46579 *-*-solaris2* )
46580 if "$GCC" = yes; then
46581 GST_CFLAGS=`echo $GST_CFLAGS | sed 's/-mt//'`
46582 GST_LIBS=`echo $GST_LIBS | sed 's/-mt//'`
46583 fi
46584 esac
46585
46586 CPPFLAGS="$GST_CFLAGS $CPPFLAGS"
46587 LIBS="$GST_LIBS $LIBS"
46588
dae87f93 46589 cat >>confdefs.h <<\_ACEOF
ce756cb0
RN
46590#define wxUSE_GSTREAMER 1
46591_ACEOF
46592
2f6c5bb5
VZ
46593 else
46594 USE_MEDIA=0
ce756cb0
RN
46595 fi
46596 fi
2f6c5bb5
VZ
46597
46598 if test $USE_MEDIA = 1; then
46599 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mediaplayer"
46600 cat >>confdefs.h <<\_ACEOF
ce756cb0
RN
46601#define wxUSE_MEDIACTRL 1
46602_ACEOF
46603
2f6c5bb5 46604 fi
ce756cb0
RN
46605fi
46606
46607
a848cd7e
SC
46608if test "$cross_compiling" = "yes"; then
46609 OSINFO="\"$host\""
46610else
46611 OSINFO=`uname -s -r -m`
46612 OSINFO="\"$OSINFO\""
46613fi
46614
46615cat >>confdefs.h <<_ACEOF
46616#define WXWIN_OS_DESCRIPTION $OSINFO
46617_ACEOF
46618
46619
46620
46621if test "x$prefix" != "xNONE"; then
46622 wxPREFIX=$prefix
46623else
46624 wxPREFIX=$ac_default_prefix
46625fi
46626
46627cat >>confdefs.h <<_ACEOF
46628#define wxINSTALL_PREFIX "$wxPREFIX"
46629_ACEOF
46630
46631
a848cd7e
SC
46632
46633
46634CORE_BASE_LIBS="net base"
46635CORE_GUI_LIBS="adv core"
46636
46637if test "$wxUSE_XML" = "yes" ; then
46638 CORE_BASE_LIBS="xml $CORE_BASE_LIBS"
46639fi
46640if test "$wxUSE_ODBC" != "no" ; then
46641 CORE_BASE_LIBS="odbc $CORE_BASE_LIBS"
46642 CORE_GUI_LIBS="dbgrid $CORE_GUI_LIBS"
46643fi
46644if test "$wxUSE_HTML" = "yes" ; then
46645 CORE_GUI_LIBS="html $CORE_GUI_LIBS"
46646fi
61639efb
VZ
46647if test "$wxUSE_DEBUGREPORT" = "yes" ; then
46648 CORE_GUI_LIBS="qa $CORE_GUI_LIBS"
46649fi
9a8f0513
VS
46650if test "$wxUSE_XRC" = "yes" ; then
46651 CORE_GUI_LIBS="xrc $CORE_GUI_LIBS"
46652fi
3f60522a
JS
46653if test "$wxUSE_AUI" = "yes" ; then
46654 CORE_GUI_LIBS="aui $CORE_GUI_LIBS"
46655fi
a848cd7e
SC
46656
46657if test "$wxUSE_GUI" != "yes"; then
46658 CORE_GUI_LIBS=""
46659fi
46660
46661
46662
46663
46664
5d7b7554
VZ
46665ac_ext=c
46666ac_cpp='$CPP $CPPFLAGS'
46667ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
46668ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
46669ac_compiler_gnu=$ac_cv_c_compiler_gnu
46670
a848cd7e
SC
46671
46672
a848cd7e 46673if test "$wxUSE_MAC" = 1 ; then
a98bf0c0 46674 if test "$wxUSE_SOUND" = "yes" || test "$wxUSE_MEDIACTRL" = "yes"; then
1e9e8aba
DE
46675 if test "$USE_DARWIN" = 1; then
46676 LDFLAGS="$LDFLAGS -framework QuickTime"
46677 else
46678 LDFLAGS="$LDFLAGS -lQuickTimeLib"
46679 fi
07bea8f0 46680 fi
5dcf30a0 46681 if test "$USE_DARWIN" = 1; then
1e9e8aba
DE
46682 LDFLAGS="$LDFLAGS -framework IOKit -framework Carbon -framework Cocoa -framework System"
46683 else
46684 LDFLAGS="$LDFLAGS -lCarbonLib"
5dcf30a0 46685 fi
a848cd7e
SC
46686fi
46687if test "$wxUSE_COCOA" = 1 ; then
4cb1d3da 46688 LDFLAGS="$LDFLAGS -framework IOKit -framework Cocoa"
4fc81cbc
RN
46689 if test "$wxUSE_MEDIACTRL" = "yes"; then
46690 LDFLAGS="$LDFLAGS -framework QuickTime"
46691 fi
a848cd7e 46692fi
19b27e78
MW
46693if test "$USE_DARWIN" = 1 -a "$wxUSE_MAC" != 1 -a "$wxUSE_COCOA" != 1 ; then
46694 LDFLAGS="$LDFLAGS -framework IOKit -framework CoreServices -framework System -framework ApplicationServices"
46695fi
a848cd7e 46696
a848cd7e
SC
46697LIBS="$ZLIB_LINK $POSIX4_LINK $INET_LINK $WCHAR_LINK $DL_LINK $LIBS"
46698
a848cd7e
SC
46699if test "$wxUSE_GUI" = "yes"; then
46700
46701
8bce5cda
MW
46702 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS artprov controls dialogs drawing \
46703 dynamic erase event exec font image minimal mobile \
46704 mobile/wxedit mobile/styles propsize render \
9e39d889 46705 rotate shaped vscroll widgets"
a848cd7e
SC
46706
46707 if test "$wxUSE_MONOLITHIC" != "yes"; then
46708 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS console"
46709 fi
0b78747f 46710 if test "$TOOLKIT" = "MSW"; then
8bce5cda
MW
46711 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS regtest"
46712 if test "$wxUSE_UNIVERSAL" != "yes"; then
46713 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS ownerdrw nativdlg"
46714 fi
46715 fi
46716 if test "$TOOLKIT" = "PM" -a "$wxUSE_UNIVERSAL" != "yes"; then
46717 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS ownerdrw"
0b78747f 46718 fi
a848cd7e
SC
46719else
46720 SAMPLES_SUBDIRS="console"
46721fi
46722
46723
48f625bc 46724if test "x$INTELCC" = "xyes" ; then
17a1ebd1
VZ
46725 CWARNINGS="-Wall -wd810,869,981,1418,1572,1684"
46726elif test "$GCC" = yes ; then
46727 CWARNINGS="-Wall -Wundef"
46728fi
46729
48f625bc 46730if test "x$INTELCXX" = "xyes" ; then
7f47faf4 46731 CXXWARNINGS="-Wall -wd279,383,444,810,869,981,1418,1419"
17a1ebd1
VZ
46732elif test "$GXX" = yes ; then
46733 CXXWARNINGS="-Wall -Wundef -Wno-ctor-dtor-privacy"
6ebeb4c7 46734fi
a848cd7e 46735
a848cd7e 46736
5ff751d6
VZ
46737WXCONFIG_CFLAGS=`echo $WXCONFIG_CFLAGS`
46738WXCONFIG_CXXFLAGS=`echo $WXCONFIG_CFLAGS $WXCONFIG_CXXFLAGS`
46739
46740
c92ad099 46741CPPFLAGS=`echo $WXCONFIG_CPPFLAGS \
bc6ee4ae 46742 -I\\${top_builddir}lib/wx/include/${TOOLCHAIN_FULLNAME} \
c92ad099
VZ
46743 -I\\${top_srcdir}/include $TOOLKIT_INCLUDE \
46744 $CPPFLAGS `
5ff751d6 46745
8aeeb05c 46746C_AND_CXX_FLAGS="$DEBUG_CFLAGS $PROFILE_FLAGS $OPTIMISE_CFLAGS"
c92ad099 46747CFLAGS=`echo $WXCONFIG_CFLAGS $CWARNINGS $C_AND_CXX_FLAGS $CFLAGS `
9cbac6d1 46748CXXFLAGS=`echo $WXCONFIG_CXXFLAGS $CXXWARNINGS $C_AND_CXX_FLAGS $CXXFLAGS `
5ff751d6
VZ
46749
46750WXCONFIG_CPPFLAGS=`echo $WXCONFIG_CPPFLAGS $WXCONFIG_ONLY_CPPFLAGS`
46751
a848cd7e 46752
95986553
DE
46753if test "x$MWCC" = "xyes"; then
46754
46755 CC="$CC -cwd source -I-"
46756 CXX="$CXX -cwd source -I-"
46757fi
46758
a848cd7e 46759
0c3c69fc 46760LIBS=`echo $LIBS`
a848cd7e
SC
46761EXTRALIBS="$LDFLAGS $LDFLAGS_VERSIONING $LIBS $DMALLOC_LIBS"
46762EXTRALIBS_XML="$EXPAT_LINK"
46763EXTRALIBS_HTML="$MSPACK_LINK"
46764EXTRALIBS_ODBC="$ODBC_LINK"
46765if test "$wxUSE_GUI" = "yes"; then
2b850ae1 46766 EXTRALIBS_GUI=`echo $GUI_TK_LIBRARY $PNG_LINK $JPEG_LINK $TIFF_LINK $WEBKIT_LINK $EXTRALIBS_HILDON $EXTRALIBS_GNOMEVFS $EXTRALIBS_GNOMEPRINT`
a848cd7e
SC
46767fi
46768if test "$wxUSE_OPENGL" = "yes"; then
46769 EXTRALIBS_OPENGL="$LDFLAGS_GL $OPENGL_LIBS"
46770fi
46771
8aeeb05c 46772LDFLAGS="$LDFLAGS $PROFILE_FLAGS"
a848cd7e 46773
5ff751d6 46774WXCONFIG_LIBS="$LIBS"
a848cd7e
SC
46775
46776if test "$wxUSE_REGEX" = "builtin" ; then
74802184 46777 wxconfig_3rdparty="regex${lib_unicode_suffix} $wxconfig_3rdparty"
a848cd7e
SC
46778fi
46779if test "$wxUSE_EXPAT" = "builtin" ; then
74802184 46780 wxconfig_3rdparty="expat $wxconfig_3rdparty"
a848cd7e
SC
46781fi
46782if test "$wxUSE_ODBC" = "builtin" ; then
74802184 46783 wxconfig_3rdparty="odbc $wxconfig_3rdparty"
a848cd7e
SC
46784fi
46785if test "$wxUSE_LIBTIFF" = "builtin" ; then
74802184 46786 wxconfig_3rdparty="tiff $wxconfig_3rdparty"
a848cd7e
SC
46787fi
46788if test "$wxUSE_LIBJPEG" = "builtin" ; then
74802184 46789 wxconfig_3rdparty="jpeg $wxconfig_3rdparty"
a848cd7e
SC
46790fi
46791if test "$wxUSE_LIBPNG" = "builtin" ; then
74802184 46792 wxconfig_3rdparty="png $wxconfig_3rdparty"
a848cd7e
SC
46793fi
46794if test "$wxUSE_ZLIB" = "builtin" ; then
74802184 46795 wxconfig_3rdparty="zlib $wxconfig_3rdparty"
a848cd7e
SC
46796fi
46797
46798for i in $wxconfig_3rdparty ; do
5ff751d6 46799 WXCONFIG_LIBS="-lwx${i}${lib_debug_suffix}${WX_LIB_FLAVOUR}-${WX_RELEASE}${HOST_SUFFIX} $WXCONFIG_LIBS"
a848cd7e
SC
46800done
46801
46802
46803if test "x$wxUSE_UNIVERSAL" = "xyes" ; then
46804 WXUNIV=1
4353a8df
VZ
46805
46806 case "$wxUNIV_THEMES" in
46807 ''|all)
46808 cat >>confdefs.h <<\_ACEOF
46809#define wxUSE_ALL_THEMES 1
46810_ACEOF
46811
46812 ;;
46813
46814 *)
46815 for t in `echo $wxUNIV_THEMES | tr , ' ' | tr a-z A-Z`; do
46816 cat >>confdefs.h <<_ACEOF
46817#define wxUSE_THEME_$t 1
46818_ACEOF
46819
46820 done
46821 esac
a848cd7e
SC
46822else
46823 WXUNIV=0
46824fi
46825
46826
46827
46828
46829
46830
46831
46832
46833
46834if test $wxUSE_MONOLITHIC = "yes" ; then
46835 MONOLITHIC=1
46836else
46837 MONOLITHIC=0
46838fi
46839
46840if test $wxUSE_PLUGINS = "yes" ; then
46841 USE_PLUGINS=1
46842else
46843 USE_PLUGINS=0
46844fi
46845
46846if test $wxUSE_ODBC != "no" ; then
46847 USE_ODBC=1
46848else
46849 USE_ODBC=0
46850fi
46851
16358932
VZ
46852if test "$wxUSE_DEBUGREPORT" = "yes" ; then
46853 USE_QA=1
46854else
46855 USE_QA=0
46856fi
46857
a848cd7e
SC
46858if test $wxUSE_OFFICIAL_BUILD = "yes" ; then
46859 OFFICIAL_BUILD=1
46860else
46861 OFFICIAL_BUILD=0
46862fi
46863
46864
46865
46866
46867
46868
46869
46870
46871
46872
46873
46874
46875
46876
46877
46878
46879
46880
46881
ceec2216 46882
d1c38808 46883
3565d135 46884
2b850ae1 46885
a848cd7e
SC
46886
46887
46888TOOLKIT_LOWERCASE=`echo $TOOLKIT | tr "[A-Z]" "[a-z]"`
46889
46890
46891
46892
46893
46894
46895
46896
4d4ff94c
VZ
46897case "$TOOLKIT" in
46898 GTK)
c2e9ada4 46899 TOOLKIT_DESC="GTK+"
4d4ff94c 46900 if test "$WXGTK20" = 1; then
c2e9ada4
VZ
46901 TOOLKIT_DESC="$TOOLKIT_DESC 2"
46902 if test "$wxUSE_LIBGNOMEPRINT" = "yes" ; then
46903 TOOLKIT_EXTRA="$TOOLKIT_EXTRA gnomeprint";
46904 fi
46905 if test "$wxUSE_LIBGNOMEVFS" = "yes" ; then
46906 TOOLKIT_EXTRA="$TOOLKIT_EXTRA gnomevfs"
46907 fi
46908 if test "$wxUSE_LIBHILDON" = "yes"; then
46909 TOOLKIT_EXTRA="$TOOLKIT_EXTRA hildon"
46910 fi
46911
46912 if test "$TOOLKIT_EXTRA" != ""; then
46913 TOOLKIT_DESC="$TOOLKIT_DESC with support for `echo $TOOLKIT_EXTRA | tr -s ' '`"
46914 fi
4d4ff94c 46915 fi
9a8f0513 46916 ;;
4d4ff94c 46917
c2e9ada4
VZ
46918 ?*)
46919 TOOLKIT_DESC=$TOOLKIT_LOWERCASE
46920 ;;
46921
4d4ff94c 46922 *)
c2e9ada4 46923 TOOLKIT_DESC="base only"
9a8f0513 46924 ;;
4d4ff94c 46925esac
a848cd7e 46926
fb00f58d
JS
46927if test "$wxUSE_WINE" = "yes"; then
46928 BAKEFILE_FORCE_PLATFORM=win32
46929fi
46930
7afc46ab 46931if test "$wxUSE_MAC" = 1 ; then
95768535
MW
46932 if test "x$wxUSE_UNIVERSAL_BINARY" != xno ; then
46933 if test "x$wxUSE_UNIVERSAL_BINARY" == xyes; then
46934 OSX_UNIV_OPTS="-isysroot /Developer/SDKs/MacOSX10.4u.sdk"
46935 else
46936 OSX_UNIV_OPTS=${wxUSE_UNIVERSAL_BINARY:+"-isysroot '$wxUSE_UNIVERSAL_BINARY'"}
46937 fi
46938 OSX_UNIV_OPTS="$OSX_UNIV_OPTS -arch ppc -arch i386"
46939 CXXFLAGS="$OSX_UNIV_OPTS $CXXFLAGS"
46940 CFLAGS="$OSX_UNIV_OPTS $CFLAGS"
46941 LDFLAGS="$OSX_UNIV_OPTS $LDFLAGS"
7afc46ab
KO
46942 bk_use_pch=no
46943 fi
46944 # TODO: where do we add "-syslibroot,/Developer/SDKs/MacOSX10.4u.sdk" for libtool (static builds only)?
46945 # The makefile currently uses AR and RANLIB, which libtool apparently supercedes.
7afc46ab
KO
46946fi
46947
9a8f0513 46948
1e9e8aba
DE
46949
46950
a848cd7e 46951 if test "x$BAKEFILE_HOST" = "x"; then
f10e38c4
VZ
46952 if test "x${host}" = "x" ; then
46953 { { echo "$as_me:$LINENO: error: You must call the autoconf \"CANONICAL_HOST\" macro in your configure.ac (or .in) file." >&5
46954echo "$as_me: error: You must call the autoconf \"CANONICAL_HOST\" macro in your configure.ac (or .in) file." >&2;}
46955 { (exit 1); exit 1; }; }
46956 fi
46957
a848cd7e
SC
46958 BAKEFILE_HOST="${host}"
46959 fi
46960
46961 if test "x$BAKEFILE_CHECK_BASICS" != "xno"; then
46962
46963 if test -n "$ac_tool_prefix"; then
46964 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
46965set dummy ${ac_tool_prefix}ranlib; ac_word=$2
46966echo "$as_me:$LINENO: checking for $ac_word" >&5
46967echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
46968if test "${ac_cv_prog_RANLIB+set}" = set; then
46969 echo $ECHO_N "(cached) $ECHO_C" >&6
46970else
46971 if test -n "$RANLIB"; then
46972 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
46973else
46974as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
46975for as_dir in $PATH
46976do
46977 IFS=$as_save_IFS
46978 test -z "$as_dir" && as_dir=.
46979 for ac_exec_ext in '' $ac_executable_extensions; do
46980 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
46981 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
46982 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
46983 break 2
46984 fi
46985done
46986done
46987
46988fi
46989fi
46990RANLIB=$ac_cv_prog_RANLIB
46991if test -n "$RANLIB"; then
46992 echo "$as_me:$LINENO: result: $RANLIB" >&5
46993echo "${ECHO_T}$RANLIB" >&6
46994else
46995 echo "$as_me:$LINENO: result: no" >&5
46996echo "${ECHO_T}no" >&6
46997fi
46998
46999fi
47000if test -z "$ac_cv_prog_RANLIB"; then
47001 ac_ct_RANLIB=$RANLIB
47002 # Extract the first word of "ranlib", so it can be a program name with args.
47003set dummy ranlib; ac_word=$2
47004echo "$as_me:$LINENO: checking for $ac_word" >&5
47005echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
47006if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
47007 echo $ECHO_N "(cached) $ECHO_C" >&6
47008else
47009 if test -n "$ac_ct_RANLIB"; then
47010 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
47011else
47012as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
47013for as_dir in $PATH
47014do
47015 IFS=$as_save_IFS
47016 test -z "$as_dir" && as_dir=.
47017 for ac_exec_ext in '' $ac_executable_extensions; do
47018 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
47019 ac_cv_prog_ac_ct_RANLIB="ranlib"
47020 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
47021 break 2
47022 fi
47023done
47024done
47025
47026 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
47027fi
47028fi
47029ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
47030if test -n "$ac_ct_RANLIB"; then
47031 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
47032echo "${ECHO_T}$ac_ct_RANLIB" >&6
47033else
47034 echo "$as_me:$LINENO: result: no" >&5
47035echo "${ECHO_T}no" >&6
47036fi
47037
47038 RANLIB=$ac_ct_RANLIB
47039else
47040 RANLIB="$ac_cv_prog_RANLIB"
47041fi
47042
47043 # Find a good install program. We prefer a C program (faster),
47044# so one script is as good as another. But avoid the broken or
47045# incompatible versions:
47046# SysV /etc/install, /usr/sbin/install
47047# SunOS /usr/etc/install
47048# IRIX /sbin/install
47049# AIX /bin/install
47050# AmigaOS /C/install, which installs bootblocks on floppy discs
47051# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
47052# AFS /usr/afsws/bin/install, which mishandles nonexistent args
47053# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
ac1cb8d3 47054# OS/2's system install, which has a completely different semantic
a848cd7e
SC
47055# ./install, which can be erroneously created by make from ./install.sh.
47056echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
47057echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
47058if test -z "$INSTALL"; then
47059if test "${ac_cv_path_install+set}" = set; then
47060 echo $ECHO_N "(cached) $ECHO_C" >&6
47061else
47062 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
47063for as_dir in $PATH
47064do
47065 IFS=$as_save_IFS
47066 test -z "$as_dir" && as_dir=.
47067 # Account for people who put trailing slashes in PATH elements.
47068case $as_dir/ in
47069 ./ | .// | /cC/* | \
47070 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
ac1cb8d3 47071 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
a848cd7e
SC
47072 /usr/ucb/* ) ;;
47073 *)
47074 # OSF1 and SCO ODT 3.0 have their own names for install.
47075 # Don't use installbsd from OSF since it installs stuff as root
47076 # by default.
47077 for ac_prog in ginstall scoinst install; do
47078 for ac_exec_ext in '' $ac_executable_extensions; do
ac1cb8d3
VS
47079 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
47080 if test $ac_prog = install &&
47081 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
47082 # AIX install. It has an incompatible calling convention.
47083 :
47084 elif test $ac_prog = install &&
47085 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
47086 # program-specific install script used by HP pwplus--don't use.
47087 :
47088 else
47089 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
47090 break 3
47091 fi
47092 fi
a848cd7e
SC
47093 done
47094 done
47095 ;;
47096esac
47097done
47098
47099
47100fi
47101 if test "${ac_cv_path_install+set}" = set; then
47102 INSTALL=$ac_cv_path_install
47103 else
47104 # As a last resort, use the slow shell script. We don't cache a
47105 # path for INSTALL within a source directory, because that will
47106 # break other packages using the cache if that directory is
47107 # removed, or if the path is relative.
47108 INSTALL=$ac_install_sh
47109 fi
47110fi
47111echo "$as_me:$LINENO: result: $INSTALL" >&5
47112echo "${ECHO_T}$INSTALL" >&6
47113
47114# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
47115# It thinks the first close brace ends the variable substitution.
47116test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
47117
47118test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
47119
47120test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
47121
47122 echo "$as_me:$LINENO: checking whether ln -s works" >&5
47123echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
47124LN_S=$as_ln_s
47125if test "$LN_S" = "ln -s"; then
47126 echo "$as_me:$LINENO: result: yes" >&5
47127echo "${ECHO_T}yes" >&6
47128else
47129 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
47130echo "${ECHO_T}no, using $LN_S" >&6
47131fi
47132
47133
47134 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
47135echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
ac1cb8d3 47136set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
a848cd7e
SC
47137if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
47138 echo $ECHO_N "(cached) $ECHO_C" >&6
47139else
47140 cat >conftest.make <<\_ACEOF
47141all:
47142 @echo 'ac_maketemp="$(MAKE)"'
47143_ACEOF
47144# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
47145eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
47146if test -n "$ac_maketemp"; then
47147 eval ac_cv_prog_make_${ac_make}_set=yes
47148else
47149 eval ac_cv_prog_make_${ac_make}_set=no
47150fi
47151rm -f conftest.make
47152fi
47153if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
47154 echo "$as_me:$LINENO: result: yes" >&5
47155echo "${ECHO_T}yes" >&6
47156 SET_MAKE=
47157else
47158 echo "$as_me:$LINENO: result: no" >&5
47159echo "${ECHO_T}no" >&6
47160 SET_MAKE="MAKE=${MAKE-make}"
47161fi
47162
47163
47164
47165 if test -n "$ac_tool_prefix"; then
47166 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
47167set dummy ${ac_tool_prefix}ar; ac_word=$2
47168echo "$as_me:$LINENO: checking for $ac_word" >&5
47169echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
47170if test "${ac_cv_prog_AR+set}" = set; then
47171 echo $ECHO_N "(cached) $ECHO_C" >&6
47172else
47173 if test -n "$AR"; then
47174 ac_cv_prog_AR="$AR" # Let the user override the test.
47175else
47176as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
47177for as_dir in $PATH
47178do
47179 IFS=$as_save_IFS
47180 test -z "$as_dir" && as_dir=.
47181 for ac_exec_ext in '' $ac_executable_extensions; do
47182 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
47183 ac_cv_prog_AR="${ac_tool_prefix}ar"
47184 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
47185 break 2
47186 fi
47187done
47188done
47189
47190fi
47191fi
47192AR=$ac_cv_prog_AR
47193if test -n "$AR"; then
47194 echo "$as_me:$LINENO: result: $AR" >&5
47195echo "${ECHO_T}$AR" >&6
47196else
47197 echo "$as_me:$LINENO: result: no" >&5
47198echo "${ECHO_T}no" >&6
47199fi
47200
47201fi
47202if test -z "$ac_cv_prog_AR"; then
47203 ac_ct_AR=$AR
47204 # Extract the first word of "ar", so it can be a program name with args.
47205set dummy ar; ac_word=$2
47206echo "$as_me:$LINENO: checking for $ac_word" >&5
47207echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
47208if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
47209 echo $ECHO_N "(cached) $ECHO_C" >&6
47210else
47211 if test -n "$ac_ct_AR"; then
47212 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
47213else
47214as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
47215for as_dir in $PATH
47216do
47217 IFS=$as_save_IFS
47218 test -z "$as_dir" && as_dir=.
47219 for ac_exec_ext in '' $ac_executable_extensions; do
47220 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
47221 ac_cv_prog_ac_ct_AR="ar"
47222 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
47223 break 2
47224 fi
47225done
47226done
47227
47228 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="ar"
47229fi
47230fi
47231ac_ct_AR=$ac_cv_prog_ac_ct_AR
47232if test -n "$ac_ct_AR"; then
47233 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
47234echo "${ECHO_T}$ac_ct_AR" >&6
47235else
47236 echo "$as_me:$LINENO: result: no" >&5
47237echo "${ECHO_T}no" >&6
47238fi
47239
47240 AR=$ac_ct_AR
47241else
47242 AR="$ac_cv_prog_AR"
47243fi
47244
47245 if test -n "$ac_tool_prefix"; then
47246 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
47247set dummy ${ac_tool_prefix}strip; ac_word=$2
47248echo "$as_me:$LINENO: checking for $ac_word" >&5
47249echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
47250if test "${ac_cv_prog_STRIP+set}" = set; then
47251 echo $ECHO_N "(cached) $ECHO_C" >&6
47252else
47253 if test -n "$STRIP"; then
47254 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
47255else
47256as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
47257for as_dir in $PATH
47258do
47259 IFS=$as_save_IFS
47260 test -z "$as_dir" && as_dir=.
47261 for ac_exec_ext in '' $ac_executable_extensions; do
47262 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
47263 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
47264 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
47265 break 2
47266 fi
47267done
47268done
47269
47270fi
47271fi
47272STRIP=$ac_cv_prog_STRIP
47273if test -n "$STRIP"; then
47274 echo "$as_me:$LINENO: result: $STRIP" >&5
47275echo "${ECHO_T}$STRIP" >&6
47276else
47277 echo "$as_me:$LINENO: result: no" >&5
47278echo "${ECHO_T}no" >&6
47279fi
47280
47281fi
47282if test -z "$ac_cv_prog_STRIP"; then
47283 ac_ct_STRIP=$STRIP
47284 # Extract the first word of "strip", so it can be a program name with args.
47285set dummy strip; ac_word=$2
47286echo "$as_me:$LINENO: checking for $ac_word" >&5
47287echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
47288if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
47289 echo $ECHO_N "(cached) $ECHO_C" >&6
47290else
47291 if test -n "$ac_ct_STRIP"; then
47292 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
47293else
47294as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
47295for as_dir in $PATH
47296do
47297 IFS=$as_save_IFS
47298 test -z "$as_dir" && as_dir=.
47299 for ac_exec_ext in '' $ac_executable_extensions; do
47300 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
47301 ac_cv_prog_ac_ct_STRIP="strip"
47302 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
47303 break 2
47304 fi
47305done
47306done
47307
47308 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
47309fi
47310fi
47311ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
47312if test -n "$ac_ct_STRIP"; then
47313 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
47314echo "${ECHO_T}$ac_ct_STRIP" >&6
47315else
47316 echo "$as_me:$LINENO: result: no" >&5
47317echo "${ECHO_T}no" >&6
47318fi
47319
47320 STRIP=$ac_ct_STRIP
47321else
47322 STRIP="$ac_cv_prog_STRIP"
47323fi
47324
47325 if test -n "$ac_tool_prefix"; then
47326 # Extract the first word of "${ac_tool_prefix}nm", so it can be a program name with args.
47327set dummy ${ac_tool_prefix}nm; ac_word=$2
47328echo "$as_me:$LINENO: checking for $ac_word" >&5
47329echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
47330if test "${ac_cv_prog_NM+set}" = set; then
47331 echo $ECHO_N "(cached) $ECHO_C" >&6
47332else
47333 if test -n "$NM"; then
47334 ac_cv_prog_NM="$NM" # Let the user override the test.
47335else
47336as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
47337for as_dir in $PATH
47338do
47339 IFS=$as_save_IFS
47340 test -z "$as_dir" && as_dir=.
47341 for ac_exec_ext in '' $ac_executable_extensions; do
47342 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
47343 ac_cv_prog_NM="${ac_tool_prefix}nm"
47344 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
47345 break 2
47346 fi
47347done
47348done
47349
47350fi
47351fi
47352NM=$ac_cv_prog_NM
47353if test -n "$NM"; then
47354 echo "$as_me:$LINENO: result: $NM" >&5
47355echo "${ECHO_T}$NM" >&6
47356else
47357 echo "$as_me:$LINENO: result: no" >&5
47358echo "${ECHO_T}no" >&6
47359fi
47360
47361fi
47362if test -z "$ac_cv_prog_NM"; then
47363 ac_ct_NM=$NM
47364 # Extract the first word of "nm", so it can be a program name with args.
47365set dummy nm; ac_word=$2
47366echo "$as_me:$LINENO: checking for $ac_word" >&5
47367echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
47368if test "${ac_cv_prog_ac_ct_NM+set}" = set; then
47369 echo $ECHO_N "(cached) $ECHO_C" >&6
47370else
47371 if test -n "$ac_ct_NM"; then
47372 ac_cv_prog_ac_ct_NM="$ac_ct_NM" # Let the user override the test.
47373else
47374as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
47375for as_dir in $PATH
47376do
47377 IFS=$as_save_IFS
47378 test -z "$as_dir" && as_dir=.
47379 for ac_exec_ext in '' $ac_executable_extensions; do
47380 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
47381 ac_cv_prog_ac_ct_NM="nm"
47382 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
47383 break 2
47384 fi
47385done
47386done
47387
47388 test -z "$ac_cv_prog_ac_ct_NM" && ac_cv_prog_ac_ct_NM=":"
47389fi
47390fi
47391ac_ct_NM=$ac_cv_prog_ac_ct_NM
47392if test -n "$ac_ct_NM"; then
47393 echo "$as_me:$LINENO: result: $ac_ct_NM" >&5
47394echo "${ECHO_T}$ac_ct_NM" >&6
47395else
47396 echo "$as_me:$LINENO: result: no" >&5
47397echo "${ECHO_T}no" >&6
47398fi
47399
47400 NM=$ac_ct_NM
47401else
47402 NM="$ac_cv_prog_NM"
47403fi
47404
47405
47406 case ${BAKEFILE_HOST} in
47407 *-hp-hpux* )
1e9e8aba 47408 INSTALL_DIR="mkdir -p"
a848cd7e
SC
47409 ;;
47410 *) INSTALL_DIR="$INSTALL -d"
47411 ;;
47412 esac
47413
47414
47415 LDFLAGS_GUI=
47416 case ${BAKEFILE_HOST} in
47417 *-*-cygwin* | *-*-mingw32* )
47418 LDFLAGS_GUI="-mwindows"
47419 esac
47420
47421
47422 fi
47423
47424 echo "$as_me:$LINENO: checking if make is GNU make" >&5
47425echo $ECHO_N "checking if make is GNU make... $ECHO_C" >&6
47426if test "${bakefile_cv_prog_makeisgnu+set}" = set; then
47427 echo $ECHO_N "(cached) $ECHO_C" >&6
47428else
47429
47430 if ( ${SHELL-sh} -c "${MAKE-make} --version" 2> /dev/null |
47431 egrep -s GNU > /dev/null); then
47432 bakefile_cv_prog_makeisgnu="yes"
47433 else
47434 bakefile_cv_prog_makeisgnu="no"
47435 fi
47436
47437fi
47438echo "$as_me:$LINENO: result: $bakefile_cv_prog_makeisgnu" >&5
47439echo "${ECHO_T}$bakefile_cv_prog_makeisgnu" >&6
47440
47441 if test "x$bakefile_cv_prog_makeisgnu" = "xyes"; then
47442 IF_GNU_MAKE=""
47443 else
47444 IF_GNU_MAKE="#"
47445 fi
47446
47447
47448
47449 PLATFORM_UNIX=0
47450 PLATFORM_WIN32=0
47451 PLATFORM_MSDOS=0
47452 PLATFORM_MAC=0
1e9e8aba 47453 PLATFORM_MACOS=0
a848cd7e
SC
47454 PLATFORM_MACOSX=0
47455 PLATFORM_OS2=0
1e9e8aba 47456 PLATFORM_BEOS=0
a848cd7e
SC
47457
47458 if test "x$BAKEFILE_FORCE_PLATFORM" = "x"; then
47459 case "${BAKEFILE_HOST}" in
810b94f0 47460 *-*-mingw32* )
a848cd7e
SC
47461 PLATFORM_WIN32=1
47462 ;;
47463 *-pc-msdosdjgpp )
47464 PLATFORM_MSDOS=1
47465 ;;
47466 *-pc-os2_emx | *-pc-os2-emx )
47467 PLATFORM_OS2=1
47468 ;;
47bd5406 47469 *-*-darwin* )
a848cd7e
SC
47470 PLATFORM_MAC=1
47471 PLATFORM_MACOSX=1
47472 ;;
1e9e8aba
DE
47473 *-*-beos* )
47474 PLATFORM_BEOS=1
47475 ;;
47476 powerpc-apple-macos* )
47477 PLATFORM_MAC=1
47478 PLATFORM_MACOS=1
47479 ;;
a848cd7e
SC
47480 * )
47481 PLATFORM_UNIX=1
47482 ;;
47483 esac
47484 else
47485 case "$BAKEFILE_FORCE_PLATFORM" in
47486 win32 )
47487 PLATFORM_WIN32=1
47488 ;;
47489 msdos )
47490 PLATFORM_MSDOS=1
47491 ;;
47492 os2 )
47493 PLATFORM_OS2=1
47494 ;;
47495 darwin )
47496 PLATFORM_MAC=1
47497 PLATFORM_MACOSX=1
47498 ;;
47499 unix )
47500 PLATFORM_UNIX=1
47501 ;;
1e9e8aba
DE
47502 beos )
47503 PLATFORM_BEOS=1
47504 ;;
a848cd7e
SC
47505 * )
47506 { { echo "$as_me:$LINENO: error: Unknown platform: $BAKEFILE_FORCE_PLATFORM" >&5
47507echo "$as_me: error: Unknown platform: $BAKEFILE_FORCE_PLATFORM" >&2;}
47508 { (exit 1); exit 1; }; }
47509 ;;
47510 esac
47511 fi
47512
47513
47514
47515
47516
47517
47518
47519
47520
1e9e8aba
DE
47521
47522
a848cd7e
SC
47523 # Check whether --enable-omf or --disable-omf was given.
47524if test "${enable_omf+set}" = set; then
47525 enableval="$enable_omf"
47526 bk_os2_use_omf="$enableval"
47527fi;
47528
47529 case "${BAKEFILE_HOST}" in
47530 *-*-darwin* )
47bd5406
VZ
47531 if test "x$GCC" = "xyes"; then
47532 CFLAGS="$CFLAGS -fno-common"
47533 CXXFLAGS="$CXXFLAGS -fno-common"
47534 fi
47535 if test "x$XLCC" = "xyes"; then
47536 CFLAGS="$CFLAGS -qnocommon"
47537 CXXFLAGS="$CXXFLAGS -qnocommon"
47538 fi
a848cd7e
SC
47539 ;;
47540
47541 *-pc-os2_emx | *-pc-os2-emx )
47542 if test "x$bk_os2_use_omf" = "xyes" ; then
47543 AR=emxomfar
47544 RANLIB=:
47545 LDFLAGS="-Zomf $LDFLAGS"
47546 CFLAGS="-Zomf $CFLAGS"
47547 CXXFLAGS="-Zomf $CXXFLAGS"
47548 OS2_LIBEXT="lib"
47549 else
47550 OS2_LIBEXT="a"
47551 fi
47552 ;;
1e9e8aba
DE
47553
47554 i*86-*-beos* )
47555 LDFLAGS="-L/boot/develop/lib/x86 $LDFLAGS"
47556 ;;
a848cd7e
SC
47557 esac
47558
47559
47560 SO_SUFFIX="so"
47561 SO_SUFFIX_MODULE="so"
47562 EXEEXT=""
47563 LIBPREFIX="lib"
47564 LIBEXT=".a"
47565 DLLPREFIX="lib"
47566 DLLPREFIX_MODULE=""
47567 DLLIMP_SUFFIX=""
810b94f0 47568 dlldir="$libdir"
a848cd7e
SC
47569
47570 case "${BAKEFILE_HOST}" in
47571 *-hp-hpux* )
47572 SO_SUFFIX="sl"
47573 SO_SUFFIX_MODULE="sl"
47574 ;;
47575 *-*-aix* )
47576 SO_SUFFIX="a"
47577 SO_SUFFIX_MODULE="a"
47578 ;;
810b94f0
MW
47579 *-*-cygwin* )
47580 SO_SUFFIX="dll"
47581 SO_SUFFIX_MODULE="dll"
47582 DLLIMP_SUFFIX="dll.a"
47583 EXEEXT=".exe"
47584 DLLPREFIX="cyg"
47585 dlldir="$bindir"
47586 ;;
47587 *-*-mingw32* )
a848cd7e
SC
47588 SO_SUFFIX="dll"
47589 SO_SUFFIX_MODULE="dll"
47590 DLLIMP_SUFFIX="dll.a"
47591 EXEEXT=".exe"
47592 DLLPREFIX=""
810b94f0 47593 dlldir="$bindir"
a848cd7e
SC
47594 ;;
47595 *-pc-msdosdjgpp )
47596 EXEEXT=".exe"
47597 DLLPREFIX=""
810b94f0 47598 dlldir="$bindir"
a848cd7e
SC
47599 ;;
47600 *-pc-os2_emx | *-pc-os2-emx )
47601 SO_SUFFIX="dll"
47602 SO_SUFFIX_MODULE="dll"
47603 DLLIMP_SUFFIX=$OS2_LIBEXT
47604 EXEEXT=".exe"
47605 DLLPREFIX=""
47606 LIBPREFIX=""
47607 LIBEXT=".$OS2_LIBEXT"
810b94f0 47608 dlldir="$bindir"
a848cd7e 47609 ;;
47bd5406 47610 *-*-darwin* )
a848cd7e
SC
47611 SO_SUFFIX="dylib"
47612 SO_SUFFIX_MODULE="bundle"
47613 ;;
47614 esac
47615
47616 if test "x$DLLIMP_SUFFIX" = "x" ; then
47617 DLLIMP_SUFFIX="$SO_SUFFIX"
47618 fi
47619
47620
47621
47622
47623
47624
47625
47626
47627
47628
47629
810b94f0 47630
1e9e8aba
DE
47631 PIC_FLAG=""
47632 if test "x$GCC" = "xyes"; then
a848cd7e
SC
47633 PIC_FLAG="-fPIC"
47634 fi
47635
1e9e8aba
DE
47636 SHARED_LD_CC="\$(CC) -shared ${PIC_FLAG} -o"
47637 SHARED_LD_CXX="\$(CXX) -shared ${PIC_FLAG} -o"
810b94f0 47638 WINDOWS_IMPLIB=0
1e9e8aba 47639
a848cd7e
SC
47640 case "${BAKEFILE_HOST}" in
47641 *-hp-hpux* )
1e9e8aba 47642 if test "x$GCC" != "xyes"; then
a848cd7e
SC
47643 LDFLAGS="$LDFLAGS -L/usr/lib"
47644
47645 SHARED_LD_CC="${CC} -b -o"
47646 SHARED_LD_CXX="${CXX} -b -o"
47647 PIC_FLAG="+Z"
47648 fi
47649 ;;
47650
47651 *-*-linux* )
47652 if test "x$GCC" != "xyes"; then
47653 echo "$as_me:$LINENO: checking for Intel compiler" >&5
47654echo $ECHO_N "checking for Intel compiler... $ECHO_C" >&6
47655if test "${bakefile_cv_prog_icc+set}" = set; then
47656 echo $ECHO_N "(cached) $ECHO_C" >&6
47657else
47658
47659 cat >conftest.$ac_ext <<_ACEOF
47660/* confdefs.h. */
47661_ACEOF
47662cat confdefs.h >>conftest.$ac_ext
47663cat >>conftest.$ac_ext <<_ACEOF
47664/* end confdefs.h. */
47665
47666int
47667main ()
47668{
47669
47670 #ifndef __INTEL_COMPILER
e5efa97e 47671 This is not ICC
a848cd7e
SC
47672 #endif
47673
47674 ;
47675 return 0;
47676}
47677_ACEOF
47678rm -f conftest.$ac_objext
47679if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 47680 (eval $ac_compile) 2>conftest.er1
a848cd7e 47681 ac_status=$?
ac1cb8d3
VS
47682 grep -v '^ *+' conftest.er1 >conftest.err
47683 rm -f conftest.er1
47684 cat conftest.err >&5
a848cd7e
SC
47685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47686 (exit $ac_status); } &&
479c790c 47687 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
47688 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47689 (eval $ac_try) 2>&5
47690 ac_status=$?
47691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47692 (exit $ac_status); }; } &&
47693 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
47694 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47695 (eval $ac_try) 2>&5
47696 ac_status=$?
47697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47698 (exit $ac_status); }; }; then
47699 bakefile_cv_prog_icc=yes
47700else
47701 echo "$as_me: failed program was:" >&5
47702sed 's/^/| /' conftest.$ac_ext >&5
47703
47704bakefile_cv_prog_icc=no
47705
47706fi
ac1cb8d3 47707rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
47708
47709fi
47710echo "$as_me:$LINENO: result: $bakefile_cv_prog_icc" >&5
47711echo "${ECHO_T}$bakefile_cv_prog_icc" >&6
47712 if test "$bakefile_cv_prog_icc" = "yes"; then
47713 PIC_FLAG="-KPIC"
47714 fi
47715 fi
47716 ;;
47717
47718 *-*-solaris2* )
47719 if test "x$GCC" != xyes ; then
47720 SHARED_LD_CC="${CC} -G -o"
47721 SHARED_LD_CXX="${CXX} -G -o"
47722 PIC_FLAG="-KPIC"
47723 fi
47724 ;;
47725
47726 *-*-darwin* )
47727
473276a9
VS
47728D='$'
47729cat <<EOF >shared-ld-sh
a848cd7e
SC
47730#!/bin/sh
47731#-----------------------------------------------------------------------------
47732#-- Name: distrib/mac/shared-ld-sh
47733#-- Purpose: Link a mach-o dynamic shared library for Darwin / Mac OS X
47734#-- Author: Gilles Depeyrot
47735#-- Copyright: (c) 2002 Gilles Depeyrot
47736#-- Licence: any use permitted
47737#-----------------------------------------------------------------------------
47738
47739verbose=0
47740args=""
47741objects=""
47742linking_flag="-dynamiclib"
810b94f0 47743ldargs="-r -keep_private_externs -nostdlib"
a848cd7e 47744
473276a9
VS
47745while test ${D}# -gt 0; do
47746 case ${D}1 in
a848cd7e
SC
47747
47748 -v)
47749 verbose=1
47750 ;;
47751
47752 -o|-compatibility_version|-current_version|-framework|-undefined|-install_name)
47753 # collect these options and values
473276a9 47754 args="${D}{args} ${D}1 ${D}2"
a848cd7e
SC
47755 shift
47756 ;;
47757
810b94f0
MW
47758 -s|-Wl,*)
47759 # collect these load args
47760 ldargs="${D}{ldargs} ${D}1"
2113bc77 47761 ;;
810b94f0
MW
47762
47763 -l*|-L*|-flat_namespace|-headerpad_max_install_names)
a848cd7e 47764 # collect these options
473276a9 47765 args="${D}{args} ${D}1"
a848cd7e
SC
47766 ;;
47767
47768 -dynamiclib|-bundle)
473276a9 47769 linking_flag="${D}1"
a848cd7e
SC
47770 ;;
47771
47772 -*)
473276a9 47773 echo "shared-ld: unhandled option '${D}1'"
a848cd7e
SC
47774 exit 1
47775 ;;
47776
47777 *.o | *.a | *.dylib)
47778 # collect object files
473276a9 47779 objects="${D}{objects} ${D}1"
a848cd7e
SC
47780 ;;
47781
47782 *)
473276a9 47783 echo "shared-ld: unhandled argument '${D}1'"
a848cd7e
SC
47784 exit 1
47785 ;;
47786
47787 esac
47788 shift
47789done
47790
810b94f0
MW
47791status=0
47792
a848cd7e
SC
47793#
47794# Link one module containing all the others
47795#
473276a9 47796if test ${D}{verbose} = 1; then
810b94f0 47797 echo "c++ ${D}{ldargs} ${D}{objects} -o master.${D}${D}.o"
a848cd7e 47798fi
810b94f0 47799c++ ${D}{ldargs} ${D}{objects} -o master.${D}${D}.o
473276a9 47800status=${D}?
a848cd7e
SC
47801
47802#
810b94f0
MW
47803# Link the shared library from the single module created, but only if the
47804# previous command didn't fail:
a848cd7e 47805#
810b94f0
MW
47806if test ${D}{status} = 0; then
47807 if test ${D}{verbose} = 1; then
47808 echo "c++ ${D}{linking_flag} master.${D}${D}.o ${D}{args}"
47809 fi
47810 c++ ${D}{linking_flag} master.${D}${D}.o ${D}{args}
47811 status=${D}?
a848cd7e
SC
47812fi
47813
47814#
47815# Remove intermediate module
47816#
473276a9 47817rm -f master.${D}${D}.o
a848cd7e 47818
810b94f0 47819exit ${D}status
a848cd7e 47820EOF
473276a9 47821
583d6b4b
VZ
47822 chmod +x shared-ld-sh
47823
47824 SHARED_LD_MODULE_CC="`pwd`/shared-ld-sh -bundle -headerpad_max_install_names -o"
47825 SHARED_LD_MODULE_CXX="$SHARED_LD_MODULE_CC"
47826
47827
47828 echo "$as_me:$LINENO: checking for gcc 3.1 or later" >&5
47829echo $ECHO_N "checking for gcc 3.1 or later... $ECHO_C" >&6
47830if test "${bakefile_cv_gcc31+set}" = set; then
47831 echo $ECHO_N "(cached) $ECHO_C" >&6
47832else
47833
47834 cat >conftest.$ac_ext <<_ACEOF
47835/* confdefs.h. */
47836_ACEOF
47837cat confdefs.h >>conftest.$ac_ext
47838cat >>conftest.$ac_ext <<_ACEOF
47839/* end confdefs.h. */
47840
47841int
47842main ()
47843{
47844
47845 #if (__GNUC__ < 3) || \
47846 ((__GNUC__ == 3) && (__GNUC_MINOR__ < 1))
e5efa97e 47847 This is old gcc
583d6b4b 47848 #endif
a848cd7e 47849
583d6b4b
VZ
47850 ;
47851 return 0;
47852}
47853_ACEOF
47854rm -f conftest.$ac_objext
47855if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
47856 (eval $ac_compile) 2>conftest.er1
47857 ac_status=$?
47858 grep -v '^ *+' conftest.er1 >conftest.err
47859 rm -f conftest.er1
47860 cat conftest.err >&5
47861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47862 (exit $ac_status); } &&
479c790c 47863 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
583d6b4b
VZ
47864 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47865 (eval $ac_try) 2>&5
47866 ac_status=$?
47867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47868 (exit $ac_status); }; } &&
47869 { ac_try='test -s conftest.$ac_objext'
47870 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47871 (eval $ac_try) 2>&5
47872 ac_status=$?
47873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47874 (exit $ac_status); }; }; then
47875
47876 bakefile_cv_gcc31=yes
47877
47878else
47879 echo "$as_me: failed program was:" >&5
47880sed 's/^/| /' conftest.$ac_ext >&5
47881
47882
47883 bakefile_cv_gcc31=no
47884
47885
47886fi
47887rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
47888
47889fi
47890echo "$as_me:$LINENO: result: $bakefile_cv_gcc31" >&5
47891echo "${ECHO_T}$bakefile_cv_gcc31" >&6
47892 if test "$bakefile_cv_gcc31" = "no"; then
a848cd7e 47893 SHARED_LD_CC="`pwd`/shared-ld-sh -dynamiclib -headerpad_max_install_names -o"
a848cd7e 47894 SHARED_LD_CXX="$SHARED_LD_CC"
a848cd7e
SC
47895 else
47896 SHARED_LD_CC="\${CC} -dynamiclib -single_module -headerpad_max_install_names -o"
a848cd7e 47897 SHARED_LD_CXX="\${CXX} -dynamiclib -single_module -headerpad_max_install_names -o"
a848cd7e
SC
47898 fi
47899
47bd5406
VZ
47900 if test "x$GCC" == "xyes"; then
47901 PIC_FLAG="-dynamic -fPIC"
47902 fi
47903 if test "x$XLCC" = "xyes"; then
47904 PIC_FLAG="-dynamic -DPIC"
47905 fi
a848cd7e
SC
47906 ;;
47907
47908 *-*-aix* )
f6b50c59 47909 if test "x$GCC" = "xyes"; then
583d6b4b 47910 PIC_FLAG=""
f6b50c59 47911
583d6b4b
VZ
47912 case "${BAKEFILE_HOST}" in
47913 *-*-aix5* )
47914 LD_EXPFULL="-Wl,-bexpfull"
47915 ;;
47916 esac
f6b50c59 47917
583d6b4b
VZ
47918 SHARED_LD_CC="\$(CC) -shared $LD_EXPFULL -o"
47919 SHARED_LD_CXX="\$(CXX) -shared $LD_EXPFULL -o"
47920 else
47921 # Extract the first word of "makeC++SharedLib", so it can be a program name with args.
a848cd7e
SC
47922set dummy makeC++SharedLib; ac_word=$2
47923echo "$as_me:$LINENO: checking for $ac_word" >&5
47924echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
47925if test "${ac_cv_prog_AIX_CXX_LD+set}" = set; then
47926 echo $ECHO_N "(cached) $ECHO_C" >&6
47927else
47928 if test -n "$AIX_CXX_LD"; then
47929 ac_cv_prog_AIX_CXX_LD="$AIX_CXX_LD" # Let the user override the test.
47930else
47931as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
47932for as_dir in $PATH
47933do
47934 IFS=$as_save_IFS
47935 test -z "$as_dir" && as_dir=.
47936 for ac_exec_ext in '' $ac_executable_extensions; do
47937 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
47938 ac_cv_prog_AIX_CXX_LD="makeC++SharedLib"
47939 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
47940 break 2
47941 fi
47942done
47943done
47944
47945 test -z "$ac_cv_prog_AIX_CXX_LD" && ac_cv_prog_AIX_CXX_LD="/usr/lpp/xlC/bin/makeC++SharedLib"
47946fi
47947fi
47948AIX_CXX_LD=$ac_cv_prog_AIX_CXX_LD
47949if test -n "$AIX_CXX_LD"; then
47950 echo "$as_me:$LINENO: result: $AIX_CXX_LD" >&5
47951echo "${ECHO_T}$AIX_CXX_LD" >&6
47952else
47953 echo "$as_me:$LINENO: result: no" >&5
47954echo "${ECHO_T}no" >&6
47955fi
47956
f6b50c59 47957 SHARED_LD_CC="$AIX_CC_LD -p 0 -o"
a848cd7e
SC
47958 SHARED_LD_CXX="$AIX_CXX_LD -p 0 -o"
47959 fi
47960 ;;
47961
47962 *-*-beos* )
1e9e8aba
DE
47963 SHARED_LD_CC="${LD} -nostart -o"
47964 SHARED_LD_CXX="${LD} -nostart -o"
a848cd7e
SC
47965 ;;
47966
47967 *-*-irix* )
47968 if test "x$GCC" != "xyes"; then
47969 PIC_FLAG="-KPIC"
47970 fi
47971 ;;
47972
47973 *-*-cygwin* | *-*-mingw32* )
47974 PIC_FLAG=""
1e9e8aba
DE
47975 SHARED_LD_CC="\$(CC) -shared -o"
47976 SHARED_LD_CXX="\$(CXX) -shared -o"
810b94f0 47977 WINDOWS_IMPLIB=1
a848cd7e
SC
47978 ;;
47979
47980 *-pc-os2_emx | *-pc-os2-emx )
b1d22ded
DE
47981 SHARED_LD_CC="`pwd`/dllar.sh -libf INITINSTANCE -libf TERMINSTANCE -o"
47982 SHARED_LD_CXX="`pwd`/dllar.sh -libf INITINSTANCE -libf TERMINSTANCE -o"
a848cd7e 47983 PIC_FLAG=""
473276a9
VS
47984
47985D='$'
47986cat <<EOF >dllar.sh
47987#!/bin/sh
47988#
47989# dllar - a tool to build both a .dll and an .a file
47990# from a set of object (.o) files for EMX/OS2.
47991#
47992# Written by Andrew Zabolotny, bit@freya.etu.ru
47993# Ported to Unix like shell by Stefan Neis, Stefan.Neis@t-online.de
47994#
47995# This script will accept a set of files on the command line.
47996# All the public symbols from the .o files will be exported into
47997# a .DEF file, then linker will be run (through gcc) against them to
47998# build a shared library consisting of all given .o files. All libraries
47999# (.a) will be first decompressed into component .o files then act as
48000# described above. You can optionally give a description (-d "description")
48001# which will be put into .DLL. To see the list of accepted options (as well
48002# as command-line format) simply run this program without options. The .DLL
48003# is built to be imported by name (there is no guarantee that new versions
48004# of the library you build will have same ordinals for same symbols).
48005#
48006# dllar is free software; you can redistribute it and/or modify
48007# it under the terms of the GNU General Public License as published by
48008# the Free Software Foundation; either version 2, or (at your option)
48009# any later version.
48010#
48011# dllar is distributed in the hope that it will be useful,
48012# but WITHOUT ANY WARRANTY; without even the implied warranty of
48013# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
48014# GNU General Public License for more details.
48015#
48016# You should have received a copy of the GNU General Public License
48017# along with dllar; see the file COPYING. If not, write to the Free
48018# Software Foundation, 59 Temple Place - Suite 330, Boston, MA
48019# 02111-1307, USA.
48020
48021# To successfuly run this program you will need:
48022# - Current drive should have LFN support (HPFS, ext2, network, etc)
48023# (Sometimes dllar generates filenames which won't fit 8.3 scheme)
48024# - gcc
48025# (used to build the .dll)
48026# - emxexp
48027# (used to create .def file from .o files)
48028# - emximp
48029# (used to create .a file from .def file)
48030# - GNU text utilites (cat, sort, uniq)
48031# used to process emxexp output
48032# - GNU file utilities (mv, rm)
48033# - GNU sed
48034# - lxlite (optional, see flag below)
48035# (used for general .dll cleanup)
48036#
48037
48038flag_USE_LXLITE=1;
48039
48040#
48041# helper functions
48042# basnam, variant of basename, which does _not_ remove the path, _iff_
48043# second argument (suffix to remove) is given
48044basnam(){
48045 case ${D}# in
48046 1)
1e9e8aba 48047 echo ${D}1 | sed 's/.*\\///' | sed 's/.*\\\\//'
473276a9
VS
48048 ;;
48049 2)
48050 echo ${D}1 | sed 's/'${D}2'${D}//'
48051 ;;
48052 *)
48053 echo "error in basnam ${D}*"
48054 exit 8
48055 ;;
48056 esac
48057}
48058
48059# Cleanup temporary files and output
48060CleanUp() {
48061 cd ${D}curDir
48062 for i in ${D}inputFiles ; do
48063 case ${D}i in
48064 *!)
48065 rm -rf \`basnam ${D}i !\`
48066 ;;
48067 *)
48068 ;;
48069 esac
48070 done
48071
48072 # Kill result in case of failure as there is just to many stupid make/nmake
48073 # things out there which doesn't do this.
1e9e8aba 48074 if [ ${D}# -eq 0 ]; then
473276a9
VS
48075 rm -f ${D}arcFile ${D}arcFile2 ${D}defFile ${D}dllFile
48076 fi
48077}
48078
48079# Print usage and exit script with rc=1.
48080PrintHelp() {
b1d22ded
DE
48081 echo 'Usage: dllar.sh [-o[utput] output_file] [-i[mport] importlib_name]'
48082 echo ' [-name-mangler-script script.sh]'
48083 echo ' [-d[escription] "dll descrption"] [-cc "CC"] [-f[lags] "CFLAGS"]'
48084 echo ' [-ord[inals]] -ex[clude] "symbol(s)"'
48085 echo ' [-libf[lags] "{INIT|TERM}{GLOBAL|INSTANCE}"] [-nocrt[dll]] [-nolxl[ite]]'
1e9e8aba 48086 echo ' [*.o] [*.a]'
473276a9
VS
48087 echo '*> "output_file" should have no extension.'
48088 echo ' If it has the .o, .a or .dll extension, it is automatically removed.'
48089 echo ' The import library name is derived from this and is set to "name".a,'
48090 echo ' unless overridden by -import'
48091 echo '*> "importlib_name" should have no extension.'
48092 echo ' If it has the .o, or .a extension, it is automatically removed.'
48093 echo ' This name is used as the import library name and may be longer and'
48094 echo ' more descriptive than the DLL name which has to follow the old '
48095 echo ' 8.3 convention of FAT.'
b1d22ded
DE
48096 echo '*> "script.sh may be given to override the output_file name by a'
48097 echo ' different name. It is mainly useful if the regular make process'
48098 echo ' of some package does not take into account OS/2 restriction of'
48099 echo ' DLL name lengths. It takes the importlib name as input and is'
48100 echo ' supposed to procude a shorter name as output. The script should'
48101 echo ' expect to get importlib_name without extension and should produce'
48102 echo ' a (max.) 8 letter name without extension.'
473276a9
VS
48103 echo '*> "cc" is used to use another GCC executable. (default: gcc.exe)'
48104 echo '*> "flags" should be any set of valid GCC flags. (default: -s -Zcrtdll)'
48105 echo ' These flags will be put at the start of GCC command line.'
b1d22ded
DE
48106 echo '*> -ord[inals] tells dllar to export entries by ordinals. Be careful.'
48107 echo '*> -ex[clude] defines symbols which will not be exported. You can define'
473276a9
VS
48108 echo ' multiple symbols, for example -ex "myfunc yourfunc _GLOBAL*".'
48109 echo ' If the last character of a symbol is "*", all symbols beginning'
48110 echo ' with the prefix before "*" will be exclude, (see _GLOBAL* above).'
b1d22ded 48111 echo '*> -libf[lags] can be used to add INITGLOBAL/INITINSTANCE and/or'
473276a9 48112 echo ' TERMGLOBAL/TERMINSTANCE flags to the dynamically-linked library.'
b1d22ded 48113 echo '*> -nocrt[dll] switch will disable linking the library against emx''s'
473276a9 48114 echo ' C runtime DLLs.'
b1d22ded 48115 echo '*> -nolxl[ite] switch will disable running lxlite on the resulting DLL.'
473276a9
VS
48116 echo '*> All other switches (for example -L./ or -lmylib) will be passed'
48117 echo ' unchanged to GCC at the end of command line.'
48118 echo '*> If you create a DLL from a library and you do not specify -o,'
48119 echo ' the basename for DLL and import library will be set to library name,'
48120 echo ' the initial library will be renamed to 'name'_s.a (_s for static)'
48121 echo ' i.e. "dllar gcc.a" will create gcc.dll and gcc.a, and the initial'
48122 echo ' library will be renamed into gcc_s.a.'
48123 echo '--------'
48124 echo 'Example:'
48125 echo ' dllar -o gcc290.dll libgcc.a -d "GNU C runtime library" -ord'
48126 echo ' -ex "__main __ctordtor*" -libf "INITINSTANCE TERMINSTANCE"'
48127 CleanUp
48128 exit 1
48129}
48130
48131# Execute a command.
48132# If exit code of the commnad <> 0 CleanUp() is called and we'll exit the script.
48133# @Uses Whatever CleanUp() uses.
48134doCommand() {
48135 echo "${D}*"
48136 eval ${D}*
48137 rcCmd=${D}?
48138
1e9e8aba 48139 if [ ${D}rcCmd -ne 0 ]; then
473276a9
VS
48140 echo "command failed, exit code="${D}rcCmd
48141 CleanUp
48142 exit ${D}rcCmd
48143 fi
48144}
48145
48146# main routine
48147# setup globals
48148cmdLine=${D}*
48149outFile=""
48150outimpFile=""
48151inputFiles=""
b1d22ded 48152renameScript=""
473276a9
VS
48153description=""
48154CC=gcc.exe
48155CFLAGS="-s -Zcrtdll"
48156EXTRA_CFLAGS=""
48157EXPORT_BY_ORDINALS=0
48158exclude_symbols=""
48159library_flags=""
48160curDir=\`pwd\`
48161curDirS=curDir
48162case ${D}curDirS in
48163*/)
48164 ;;
48165*)
48166 curDirS=${D}{curDirS}"/"
48167 ;;
48168esac
48169# Parse commandline
48170libsToLink=0
b1d22ded 48171omfLinking=0
1e9e8aba 48172while [ ${D}1 ]; do
473276a9
VS
48173 case ${D}1 in
48174 -ord*)
48175 EXPORT_BY_ORDINALS=1;
48176 ;;
48177 -o*)
48178 shift
48179 outFile=${D}1
48180 ;;
48181 -i*)
48182 shift
48183 outimpFile=${D}1
48184 ;;
b1d22ded
DE
48185 -name-mangler-script)
48186 shift
48187 renameScript=${D}1
48188 ;;
473276a9
VS
48189 -d*)
48190 shift
48191 description=${D}1
48192 ;;
48193 -f*)
48194 shift
48195 CFLAGS=${D}1
48196 ;;
48197 -c*)
48198 shift
48199 CC=${D}1
48200 ;;
48201 -h*)
48202 PrintHelp
48203 ;;
48204 -ex*)
48205 shift
48206 exclude_symbols=${D}{exclude_symbols}${D}1" "
48207 ;;
48208 -libf*)
48209 shift
48210 library_flags=${D}{library_flags}${D}1" "
48211 ;;
48212 -nocrt*)
48213 CFLAGS="-s"
48214 ;;
48215 -nolxl*)
48216 flag_USE_LXLITE=0
48217 ;;
48218 -* | /*)
48219 case ${D}1 in
48220 -L* | -l*)
48221 libsToLink=1
48222 ;;
b1d22ded
DE
48223 -Zomf)
48224 omfLinking=1
48225 ;;
473276a9
VS
48226 *)
48227 ;;
48228 esac
48229 EXTRA_CFLAGS=${D}{EXTRA_CFLAGS}" "${D}1
48230 ;;
b1d22ded
DE
48231 *.dll)
48232 EXTRA_CFLAGS="${D}{EXTRA_CFLAGS} \`basnam ${D}1 .dll\`"
48233 if [ ${D}omfLinking -eq 1 ]; then
48234 EXTRA_CFLAGS="${D}{EXTRA_CFLAGS}.lib"
48235 else
48236 EXTRA_CFLAGS="${D}{EXTRA_CFLAGS}.a"
48237 fi
48238 ;;
473276a9
VS
48239 *)
48240 found=0;
1e9e8aba 48241 if [ ${D}libsToLink -ne 0 ]; then
473276a9
VS
48242 EXTRA_CFLAGS=${D}{EXTRA_CFLAGS}" "${D}1
48243 else
48244 for file in ${D}1 ; do
1e9e8aba 48245 if [ -f ${D}file ]; then
473276a9
VS
48246 inputFiles="${D}{inputFiles} ${D}file"
48247 found=1
48248 fi
48249 done
1e9e8aba 48250 if [ ${D}found -eq 0 ]; then
473276a9
VS
48251 echo "ERROR: No file(s) found: "${D}1
48252 exit 8
48253 fi
48254 fi
48255 ;;
48256 esac
48257 shift
48258done # iterate cmdline words
48259
48260#
1e9e8aba 48261if [ -z "${D}inputFiles" ]; then
473276a9
VS
48262 echo "dllar: no input files"
48263 PrintHelp
48264fi
48265
48266# Now extract all .o files from .a files
48267newInputFiles=""
48268for file in ${D}inputFiles ; do
48269 case ${D}file in
48270 *.a | *.lib)
48271 case ${D}file in
48272 *.a)
48273 suffix=".a"
48274 AR="ar"
48275 ;;
48276 *.lib)
48277 suffix=".lib"
48278 AR="emxomfar"
48279 EXTRA_CFLAGS="${D}EXTRA_CFLAGS -Zomf"
48280 ;;
48281 *)
48282 ;;
48283 esac
48284 dirname=\`basnam ${D}file ${D}suffix\`"_%"
48285 mkdir ${D}dirname
1e9e8aba 48286 if [ ${D}? -ne 0 ]; then
473276a9
VS
48287 echo "Failed to create subdirectory ./${D}dirname"
48288 CleanUp
48289 exit 8;
48290 fi
48291 # Append '!' to indicate archive
48292 newInputFiles="${D}newInputFiles ${D}{dirname}!"
48293 doCommand "cd ${D}dirname; ${D}AR x ../${D}file"
48294 cd ${D}curDir
48295 found=0;
48296 for subfile in ${D}dirname/*.o* ; do
1e9e8aba 48297 if [ -f ${D}subfile ]; then
473276a9 48298 found=1
1e9e8aba 48299 if [ -s ${D}subfile ]; then
473276a9
VS
48300 # FIXME: This should be: is file size > 32 byte, _not_ > 0!
48301 newInputFiles="${D}newInputFiles ${D}subfile"
48302 fi
48303 fi
48304 done
1e9e8aba
DE
48305 if [ ${D}found -eq 0 ]; then
48306 echo "WARNING: there are no files in archive \\'${D}file\\'"
473276a9
VS
48307 fi
48308 ;;
48309 *)
48310 newInputFiles="${D}{newInputFiles} ${D}file"
48311 ;;
48312 esac
48313done
48314inputFiles="${D}newInputFiles"
48315
48316# Output filename(s).
48317do_backup=0;
1e9e8aba 48318if [ -z ${D}outFile ]; then
473276a9
VS
48319 do_backup=1;
48320 set outFile ${D}inputFiles; outFile=${D}2
48321fi
48322
48323# If it is an archive, remove the '!' and the '_%' suffixes
48324case ${D}outFile in
48325*_%!)
48326 outFile=\`basnam ${D}outFile _%!\`
48327 ;;
48328*)
48329 ;;
48330esac
48331case ${D}outFile in
48332*.dll)
48333 outFile=\`basnam ${D}outFile .dll\`
48334 ;;
48335*.DLL)
48336 outFile=\`basnam ${D}outFile .DLL\`
48337 ;;
48338*.o)
48339 outFile=\`basnam ${D}outFile .o\`
48340 ;;
48341*.obj)
48342 outFile=\`basnam ${D}outFile .obj\`
48343 ;;
48344*.a)
48345 outFile=\`basnam ${D}outFile .a\`
48346 ;;
48347*.lib)
48348 outFile=\`basnam ${D}outFile .lib\`
48349 ;;
48350*)
48351 ;;
48352esac
48353case ${D}outimpFile in
48354*.a)
48355 outimpFile=\`basnam ${D}outimpFile .a\`
48356 ;;
48357*.lib)
48358 outimpFile=\`basnam ${D}outimpFile .lib\`
48359 ;;
48360*)
48361 ;;
48362esac
1e9e8aba 48363if [ -z ${D}outimpFile ]; then
473276a9
VS
48364 outimpFile=${D}outFile
48365fi
48366defFile="${D}{outFile}.def"
48367arcFile="${D}{outimpFile}.a"
48368arcFile2="${D}{outimpFile}.lib"
b1d22ded
DE
48369
48370#create ${D}dllFile as something matching 8.3 restrictions,
48371if [ -z ${D}renameScript ] ; then
48372 dllFile="${D}outFile"
48373else
48374 dllFile=\`${D}renameScript ${D}outimpFile\`
48375fi
473276a9 48376
1e9e8aba
DE
48377if [ ${D}do_backup -ne 0 ] ; then
48378 if [ -f ${D}arcFile ] ; then
473276a9
VS
48379 doCommand "mv ${D}arcFile ${D}{outFile}_s.a"
48380 fi
1e9e8aba 48381 if [ -f ${D}arcFile2 ] ; then
473276a9
VS
48382 doCommand "mv ${D}arcFile2 ${D}{outFile}_s.lib"
48383 fi
48384fi
48385
48386# Extract public symbols from all the object files.
48387tmpdefFile=${D}{defFile}_%
48388rm -f ${D}tmpdefFile
48389for file in ${D}inputFiles ; do
48390 case ${D}file in
48391 *!)
48392 ;;
48393 *)
48394 doCommand "emxexp -u ${D}file >> ${D}tmpdefFile"
48395 ;;
48396 esac
48397done
48398
48399# Create the def file.
48400rm -f ${D}defFile
48401echo "LIBRARY \`basnam ${D}dllFile\` ${D}library_flags" >> ${D}defFile
b1d22ded
DE
48402dllFile="${D}{dllFile}.dll"
48403if [ ! -z ${D}description ]; then
1e9e8aba 48404 echo "DESCRIPTION \\"${D}{description}\\"" >> ${D}defFile
473276a9
VS
48405fi
48406echo "EXPORTS" >> ${D}defFile
48407
48408doCommand "cat ${D}tmpdefFile | sort.exe | uniq.exe > ${D}{tmpdefFile}%"
48409grep -v "^ *;" < ${D}{tmpdefFile}% | grep -v "^ *${D}" >${D}tmpdefFile
48410
48411# Checks if the export is ok or not.
48412for word in ${D}exclude_symbols; do
48413 grep -v ${D}word < ${D}tmpdefFile >${D}{tmpdefFile}%
48414 mv ${D}{tmpdefFile}% ${D}tmpdefFile
48415done
48416
48417
1e9e8aba
DE
48418if [ ${D}EXPORT_BY_ORDINALS -ne 0 ]; then
48419 sed "=" < ${D}tmpdefFile | \\
473276a9
VS
48420 sed '
48421 N
48422 : loop
1e9e8aba 48423 s/^\\([0-9]\\+\\)\\([^;]*\\)\\(;.*\\)\\?/\\2 @\\1 NONAME/
473276a9
VS
48424 t loop
48425 ' > ${D}{tmpdefFile}%
48426 grep -v "^ *${D}" < ${D}{tmpdefFile}% > ${D}tmpdefFile
48427else
48428 rm -f ${D}{tmpdefFile}%
48429fi
48430cat ${D}tmpdefFile >> ${D}defFile
48431rm -f ${D}tmpdefFile
48432
48433# Do linking, create implib, and apply lxlite.
48434gccCmdl="";
48435for file in ${D}inputFiles ; do
48436 case ${D}file in
48437 *!)
48438 ;;
48439 *)
48440 gccCmdl="${D}gccCmdl ${D}file"
48441 ;;
48442 esac
48443done
48444doCommand "${D}CC ${D}CFLAGS -Zdll -o ${D}dllFile ${D}defFile ${D}gccCmdl ${D}EXTRA_CFLAGS"
48445touch "${D}{outFile}.dll"
48446
48447doCommand "emximp -o ${D}arcFile ${D}defFile"
1e9e8aba 48448if [ ${D}flag_USE_LXLITE -ne 0 ]; then
473276a9 48449 add_flags="";
1e9e8aba 48450 if [ ${D}EXPORT_BY_ORDINALS -ne 0 ]; then
473276a9
VS
48451 add_flags="-ynd"
48452 fi
48453 doCommand "lxlite -cs -t: -mrn -mln ${D}add_flags ${D}dllFile"
48454fi
48455doCommand "emxomf -s -l ${D}arcFile"
48456
48457# Successful exit.
48458CleanUp 1
48459exit 0
48460EOF
48461
48462 chmod +x dllar.sh
a848cd7e
SC
48463 ;;
48464
1e9e8aba 48465 powerpc-apple-macos* | \
0ad5d837 48466 *-*-freebsd* | *-*-openbsd* | *-*-netbsd* | *-*-k*bsd*-gnu | \
a848cd7e
SC
48467 *-*-sunos4* | \
48468 *-*-osf* | \
48469 *-*-dgux5* | \
47a7e797
MW
48470 *-*-sysv5* | \
48471 *-pc-msdosdjgpp )
a848cd7e
SC
48472 ;;
48473
48474 *)
3ecd9f92 48475 esac
a848cd7e 48476
2057db16
VS
48477 if test "x$PIC_FLAG" != "x" ; then
48478 PIC_FLAG="$PIC_FLAG -DPIC"
48479 fi
48480
a848cd7e
SC
48481 if test "x$SHARED_LD_MODULE_CC" = "x" ; then
48482 SHARED_LD_MODULE_CC="$SHARED_LD_CC"
48483 fi
48484 if test "x$SHARED_LD_MODULE_CXX" = "x" ; then
48485 SHARED_LD_MODULE_CXX="$SHARED_LD_CXX"
48486 fi
48487
48488
48489
48490
48491
48492
48493
48494
810b94f0 48495
a848cd7e
SC
48496 USE_SOVERSION=0
48497 USE_SOVERLINUX=0
48498 USE_SOVERSOLARIS=0
810b94f0 48499 USE_SOVERCYGWIN=0
a848cd7e
SC
48500 USE_SOSYMLINKS=0
48501 USE_MACVERSION=0
48502 SONAME_FLAG=
48503
48504 case "${BAKEFILE_HOST}" in
0ad5d837 48505 *-*-linux* | *-*-freebsd* | *-*-k*bsd*-gnu )
5f652d0d
VS
48506 SONAME_FLAG="-Wl,-soname,"
48507 USE_SOVERSION=1
48508 USE_SOVERLINUX=1
48509 USE_SOSYMLINKS=1
48510 ;;
48511
a848cd7e
SC
48512 *-*-solaris2* )
48513 SONAME_FLAG="-h "
48514 USE_SOVERSION=1
48515 USE_SOVERSOLARIS=1
48516 USE_SOSYMLINKS=1
48517 ;;
48518
48519 *-*-darwin* )
48520 USE_MACVERSION=1
48521 USE_SOVERSION=1
48522 USE_SOSYMLINKS=1
48523 ;;
810b94f0
MW
48524
48525 *-*-cygwin* )
48526 USE_SOVERSION=1
48527 USE_SOVERCYGWIN=1
48528 ;;
a848cd7e
SC
48529 esac
48530
48531
48532
48533
48534
48535
48536
48537
48538
810b94f0 48539
f10e38c4
VZ
48540 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
48541if test "${enable_dependency_tracking+set}" = set; then
48542 enableval="$enable_dependency_tracking"
48543 bk_use_trackdeps="$enableval"
48544fi;
48545
a848cd7e
SC
48546 echo "$as_me:$LINENO: checking for dependency tracking method" >&5
48547echo $ECHO_N "checking for dependency tracking method... $ECHO_C" >&6
a848cd7e 48548
f10e38c4
VZ
48549 if test "x$bk_use_trackdeps" = "xno" ; then
48550 DEPS_TRACKING=0
48551 echo "$as_me:$LINENO: result: disabled" >&5
48552echo "${ECHO_T}disabled" >&6
48553 else
48554 DEPS_TRACKING=1
48555
48556 if test "x$GCC" = "xyes"; then
48557 DEPSMODE=gcc
48558 case "${BAKEFILE_HOST}" in
48559 *-*-darwin* )
48560 DEPSFLAG="-no-cpp-precomp -MMD"
48561 ;;
48562 * )
48563 DEPSFLAG="-MMD"
48564 ;;
48565 esac
48566 echo "$as_me:$LINENO: result: gcc" >&5
a848cd7e 48567echo "${ECHO_T}gcc" >&6
f10e38c4
VZ
48568 elif test "x$MWCC" = "xyes"; then
48569 DEPSMODE=mwcc
48570 DEPSFLAG="-MM"
48571 echo "$as_me:$LINENO: result: mwcc" >&5
b1d22ded 48572echo "${ECHO_T}mwcc" >&6
f10e38c4
VZ
48573 elif test "x$SUNCC" = "xyes"; then
48574 DEPSMODE=unixcc
48575 DEPSFLAG="-xM1"
48576 echo "$as_me:$LINENO: result: Sun cc" >&5
0ad5d837 48577echo "${ECHO_T}Sun cc" >&6
f10e38c4
VZ
48578 elif test "x$SGICC" = "xyes"; then
48579 DEPSMODE=unixcc
48580 DEPSFLAG="-M"
48581 echo "$as_me:$LINENO: result: SGI cc" >&5
0ad5d837 48582echo "${ECHO_T}SGI cc" >&6
f10e38c4
VZ
48583 elif test "x$HPCC" = "xyes"; then
48584 DEPSMODE=unixcc
48585 DEPSFLAG="+make"
48586 echo "$as_me:$LINENO: result: HP cc" >&5
3006edc0 48587echo "${ECHO_T}HP cc" >&6
f10e38c4
VZ
48588 elif test "x$COMPAQCC" = "xyes"; then
48589 DEPSMODE=gcc
48590 DEPSFLAG="-MD"
48591 echo "$as_me:$LINENO: result: Compaq cc" >&5
a1aa0349 48592echo "${ECHO_T}Compaq cc" >&6
f10e38c4
VZ
48593 else
48594 DEPS_TRACKING=0
48595 echo "$as_me:$LINENO: result: none" >&5
a848cd7e 48596echo "${ECHO_T}none" >&6
f10e38c4 48597 fi
a848cd7e 48598
f10e38c4 48599 if test $DEPS_TRACKING = 1 ; then
473276a9
VS
48600
48601D='$'
48602cat <<EOF >bk-deps
a848cd7e
SC
48603#!/bin/sh
48604
48605# This script is part of Bakefile (http://bakefile.sourceforge.net) autoconf
48606# script. It is used to track C/C++ files dependencies in portable way.
48607#
48608# Permission is given to use this file in any way.
48609
473276a9 48610DEPSMODE=${DEPSMODE}
a848cd7e 48611DEPSDIR=.deps
0ad5d837 48612DEPSFLAG="${DEPSFLAG}"
a848cd7e 48613
473276a9 48614mkdir -p ${D}DEPSDIR
a848cd7e 48615
473276a9 48616if test ${D}DEPSMODE = gcc ; then
0ad5d837 48617 ${D}* ${D}{DEPSFLAG}
473276a9
VS
48618 status=${D}?
48619 if test ${D}{status} != 0 ; then
48620 exit ${D}{status}
a848cd7e
SC
48621 fi
48622 # move created file to the location we want it in:
473276a9
VS
48623 while test ${D}# -gt 0; do
48624 case "${D}1" in
a848cd7e
SC
48625 -o )
48626 shift
473276a9 48627 objfile=${D}1
a848cd7e
SC
48628 ;;
48629 -* )
48630 ;;
48631 * )
473276a9 48632 srcfile=${D}1
a848cd7e
SC
48633 ;;
48634 esac
48635 shift
48636 done
1e9e8aba
DE
48637 depfile=\`basename ${D}srcfile | sed -e 's/\\..*${D}/.d/g'\`
48638 depobjname=\`echo ${D}depfile |sed -e 's/\\.d/.o/g'\`
473276a9
VS
48639 if test -f ${D}depfile ; then
48640 sed -e "s,${D}depobjname:,${D}objfile:,g" ${D}depfile >${D}{DEPSDIR}/${D}{objfile}.d
48641 rm -f ${D}depfile
a848cd7e 48642 else
a1aa0349 48643 # "g++ -MMD -o fooobj.o foosrc.cpp" produces fooobj.d
1e9e8aba 48644 depfile=\`basename ${D}objfile | sed -e 's/\\..*${D}/.d/g'\`
a1aa0349
VZ
48645 if test ! -f ${D}depfile ; then
48646 # "cxx -MD -o fooobj.o foosrc.cpp" creates fooobj.o.d (Compaq C++)
48647 depfile="${D}objfile.d"
48648 fi
473276a9
VS
48649 if test -f ${D}depfile ; then
48650 sed -e "/^${D}objfile/!s,${D}depobjname:,${D}objfile:,g" ${D}depfile >${D}{DEPSDIR}/${D}{objfile}.d
48651 rm -f ${D}depfile
a848cd7e
SC
48652 fi
48653 fi
48654 exit 0
81f90336 48655elif test ${D}DEPSMODE = mwcc ; then
f6b50c59 48656 ${D}* || exit ${D}?
81f90336
MW
48657 # Run mwcc again with -MM and redirect into the dep file we want
48658 # NOTE: We can't use shift here because we need ${D}* to be valid
48659 prevarg=
48660 for arg in ${D}* ; do
48661 if test "${D}prevarg" = "-o"; then
48662 objfile=${D}arg
48663 else
48664 case "${D}arg" in
48665 -* )
48666 ;;
48667 * )
48668 srcfile=${D}arg
48669 ;;
48670 esac
48671 fi
48672 prevarg="${D}arg"
48673 done
0ad5d837 48674 ${D}* ${D}DEPSFLAG >${D}{DEPSDIR}/${D}{objfile}.d
81f90336 48675 exit 0
0ad5d837 48676elif test ${D}DEPSMODE = unixcc; then
f6b50c59 48677 ${D}* || exit ${D}?
a9e5b1f0
MW
48678 # Run compiler again with deps flag and redirect into the dep file.
48679 # It doesn't work if the '-o FILE' option is used, but without it the
48680 # dependency file will contain the wrong name for the object. So it is
48681 # removed from the command line, and the dep file is fixed with sed.
48682 cmd=""
48683 while test ${D}# -gt 0; do
48684 case "${D}1" in
48685 -o )
48686 shift
48687 objfile=${D}1
48688 ;;
48689 * )
48690 eval arg${D}#=\\${D}1
48691 cmd="${D}cmd \\${D}arg${D}#"
48692 ;;
48693 esac
48694 shift
48695 done
0ad5d837 48696 eval "${D}cmd ${D}DEPSFLAG" | sed "s|.*:|${D}objfile:|" >${D}{DEPSDIR}/${D}{objfile}.d
a9e5b1f0 48697 exit 0
a848cd7e 48698else
473276a9
VS
48699 ${D}*
48700 exit ${D}?
a848cd7e
SC
48701fi
48702EOF
473276a9 48703
f10e38c4
VZ
48704 chmod +x bk-deps
48705 fi
a848cd7e
SC
48706 fi
48707
48708
48709
48710
a848cd7e
SC
48711 case ${BAKEFILE_HOST} in
48712 *-*-cygwin* | *-*-mingw32* )
8ced02f6
DE
48713 if test -n "$ac_tool_prefix"; then
48714 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
48715set dummy ${ac_tool_prefix}windres; ac_word=$2
48716echo "$as_me:$LINENO: checking for $ac_word" >&5
48717echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
48718if test "${ac_cv_prog_WINDRES+set}" = set; then
48719 echo $ECHO_N "(cached) $ECHO_C" >&6
48720else
48721 if test -n "$WINDRES"; then
48722 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
48723else
48724as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
48725for as_dir in $PATH
48726do
48727 IFS=$as_save_IFS
48728 test -z "$as_dir" && as_dir=.
48729 for ac_exec_ext in '' $ac_executable_extensions; do
48730 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
48731 ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
48732 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
48733 break 2
48734 fi
48735done
48736done
48737
48738fi
48739fi
48740WINDRES=$ac_cv_prog_WINDRES
48741if test -n "$WINDRES"; then
48742 echo "$as_me:$LINENO: result: $WINDRES" >&5
48743echo "${ECHO_T}$WINDRES" >&6
48744else
48745 echo "$as_me:$LINENO: result: no" >&5
48746echo "${ECHO_T}no" >&6
48747fi
48748
48749fi
48750if test -z "$ac_cv_prog_WINDRES"; then
48751 ac_ct_WINDRES=$WINDRES
48752 # Extract the first word of "windres", so it can be a program name with args.
a848cd7e
SC
48753set dummy windres; ac_word=$2
48754echo "$as_me:$LINENO: checking for $ac_word" >&5
48755echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8ced02f6 48756if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then
a848cd7e
SC
48757 echo $ECHO_N "(cached) $ECHO_C" >&6
48758else
8ced02f6
DE
48759 if test -n "$ac_ct_WINDRES"; then
48760 ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
a848cd7e
SC
48761else
48762as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
48763for as_dir in $PATH
48764do
48765 IFS=$as_save_IFS
48766 test -z "$as_dir" && as_dir=.
48767 for ac_exec_ext in '' $ac_executable_extensions; do
48768 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8ced02f6 48769 ac_cv_prog_ac_ct_WINDRES="windres"
a848cd7e
SC
48770 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
48771 break 2
48772 fi
48773done
48774done
48775
a848cd7e
SC
48776fi
48777fi
8ced02f6
DE
48778ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
48779if test -n "$ac_ct_WINDRES"; then
48780 echo "$as_me:$LINENO: result: $ac_ct_WINDRES" >&5
48781echo "${ECHO_T}$ac_ct_WINDRES" >&6
a848cd7e
SC
48782else
48783 echo "$as_me:$LINENO: result: no" >&5
48784echo "${ECHO_T}no" >&6
48785fi
48786
8ced02f6
DE
48787 WINDRES=$ac_ct_WINDRES
48788else
48789 WINDRES="$ac_cv_prog_WINDRES"
48790fi
48791
a848cd7e
SC
48792 ;;
48793
1e9e8aba 48794 *-*-darwin* | powerpc-apple-macos* )
a848cd7e
SC
48795 # Extract the first word of "Rez", so it can be a program name with args.
48796set dummy Rez; ac_word=$2
48797echo "$as_me:$LINENO: checking for $ac_word" >&5
48798echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8ced02f6 48799if test "${ac_cv_prog_REZ+set}" = set; then
a848cd7e
SC
48800 echo $ECHO_N "(cached) $ECHO_C" >&6
48801else
8ced02f6
DE
48802 if test -n "$REZ"; then
48803 ac_cv_prog_REZ="$REZ" # Let the user override the test.
a848cd7e
SC
48804else
48805as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
48806for as_dir in $PATH
48807do
48808 IFS=$as_save_IFS
48809 test -z "$as_dir" && as_dir=.
48810 for ac_exec_ext in '' $ac_executable_extensions; do
48811 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8ced02f6 48812 ac_cv_prog_REZ="Rez"
a848cd7e
SC
48813 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
48814 break 2
48815 fi
48816done
48817done
48818
8ced02f6 48819 test -z "$ac_cv_prog_REZ" && ac_cv_prog_REZ="/Developer/Tools/Rez"
a848cd7e
SC
48820fi
48821fi
8ced02f6
DE
48822REZ=$ac_cv_prog_REZ
48823if test -n "$REZ"; then
48824 echo "$as_me:$LINENO: result: $REZ" >&5
48825echo "${ECHO_T}$REZ" >&6
a848cd7e
SC
48826else
48827 echo "$as_me:$LINENO: result: no" >&5
48828echo "${ECHO_T}no" >&6
48829fi
48830
48831 # Extract the first word of "SetFile", so it can be a program name with args.
48832set dummy SetFile; ac_word=$2
48833echo "$as_me:$LINENO: checking for $ac_word" >&5
48834echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
48835if test "${ac_cv_prog_SETFILE+set}" = set; then
48836 echo $ECHO_N "(cached) $ECHO_C" >&6
48837else
48838 if test -n "$SETFILE"; then
48839 ac_cv_prog_SETFILE="$SETFILE" # Let the user override the test.
48840else
48841as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
48842for as_dir in $PATH
48843do
48844 IFS=$as_save_IFS
48845 test -z "$as_dir" && as_dir=.
48846 for ac_exec_ext in '' $ac_executable_extensions; do
48847 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
48848 ac_cv_prog_SETFILE="SetFile"
48849 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
48850 break 2
48851 fi
48852done
48853done
48854
48855 test -z "$ac_cv_prog_SETFILE" && ac_cv_prog_SETFILE="/Developer/Tools/SetFile"
48856fi
48857fi
48858SETFILE=$ac_cv_prog_SETFILE
48859if test -n "$SETFILE"; then
48860 echo "$as_me:$LINENO: result: $SETFILE" >&5
48861echo "${ECHO_T}$SETFILE" >&6
48862else
48863 echo "$as_me:$LINENO: result: no" >&5
48864echo "${ECHO_T}no" >&6
48865fi
48866
48867 ;;
48868 esac
48869
48870
48871
48872
48873
8ced02f6 48874
f10e38c4 48875 BAKEFILE_BAKEFILE_M4_VERSION="0.2.0"
a848cd7e 48876
dcc1b6ad 48877
f10e38c4 48878BAKEFILE_AUTOCONF_INC_M4_VERSION="0.2.0"
a848cd7e 48879
646b6ec1 48880
74b84332 48881
a848cd7e
SC
48882 # Check whether --enable-precomp-headers or --disable-precomp-headers was given.
48883if test "${enable_precomp_headers+set}" = set; then
48884 enableval="$enable_precomp_headers"
48885 bk_use_pch="$enableval"
48886fi;
48887
48888 GCC_PCH=0
f10e38c4
VZ
48889 ICC_PCH=0
48890 USE_PCH=0
a848cd7e 48891
5c60e845
MW
48892 case ${BAKEFILE_HOST} in
48893 *-*-cygwin* )
48894 bk_use_pch="no"
48895 ;;
48896 esac
48897
a848cd7e
SC
48898 if test "x$bk_use_pch" = "x" -o "x$bk_use_pch" = "xyes" ; then
48899 if test "x$GCC" = "xyes"; then
48900 echo "$as_me:$LINENO: checking if the compiler supports precompiled headers" >&5
48901echo $ECHO_N "checking if the compiler supports precompiled headers... $ECHO_C" >&6
48902 cat >conftest.$ac_ext <<_ACEOF
48903/* confdefs.h. */
48904_ACEOF
48905cat confdefs.h >>conftest.$ac_ext
48906cat >>conftest.$ac_ext <<_ACEOF
48907/* end confdefs.h. */
48908
48909int
48910main ()
48911{
48912
48913 #if !defined(__GNUC__) || !defined(__GNUC_MINOR__)
e5efa97e 48914 There is no PCH support
a848cd7e
SC
48915 #endif
48916 #if (__GNUC__ < 3)
e5efa97e 48917 There is no PCH support
a848cd7e
SC
48918 #endif
48919 #if (__GNUC__ == 3) && \
48920 ((!defined(__APPLE_CC__) && (__GNUC_MINOR__ < 4)) || \
f10e38c4
VZ
48921 ( defined(__APPLE_CC__) && (__GNUC_MINOR__ < 3))) || \
48922 ( defined(__INTEL_COMPILER) )
e5efa97e 48923 There is no PCH support
a848cd7e
SC
48924 #endif
48925
48926 ;
48927 return 0;
48928}
48929_ACEOF
48930rm -f conftest.$ac_objext
48931if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 48932 (eval $ac_compile) 2>conftest.er1
a848cd7e 48933 ac_status=$?
ac1cb8d3
VS
48934 grep -v '^ *+' conftest.er1 >conftest.err
48935 rm -f conftest.er1
48936 cat conftest.err >&5
a848cd7e
SC
48937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48938 (exit $ac_status); } &&
479c790c 48939 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
48940 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48941 (eval $ac_try) 2>&5
48942 ac_status=$?
48943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48944 (exit $ac_status); }; } &&
48945 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
48946 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48947 (eval $ac_try) 2>&5
48948 ac_status=$?
48949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48950 (exit $ac_status); }; }; then
48951
48952 echo "$as_me:$LINENO: result: yes" >&5
48953echo "${ECHO_T}yes" >&6
a848cd7e
SC
48954 GCC_PCH=1
48955
48956else
48957 echo "$as_me: failed program was:" >&5
48958sed 's/^/| /' conftest.$ac_ext >&5
48959
48960
f10e38c4
VZ
48961 cat >conftest.$ac_ext <<_ACEOF
48962/* confdefs.h. */
48963_ACEOF
48964cat confdefs.h >>conftest.$ac_ext
48965cat >>conftest.$ac_ext <<_ACEOF
48966/* end confdefs.h. */
48967
48968int
48969main ()
48970{
48971
48972 #if !defined(__INTEL_COMPILER) || \
48973 (__INTEL_COMPILER < 800)
e5efa97e 48974 There is no PCH support
f10e38c4
VZ
48975 #endif
48976
48977 ;
48978 return 0;
48979}
48980_ACEOF
48981rm -f conftest.$ac_objext
48982if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
48983 (eval $ac_compile) 2>conftest.er1
48984 ac_status=$?
48985 grep -v '^ *+' conftest.er1 >conftest.err
48986 rm -f conftest.er1
48987 cat conftest.err >&5
48988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48989 (exit $ac_status); } &&
479c790c 48990 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
f10e38c4
VZ
48991 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48992 (eval $ac_try) 2>&5
48993 ac_status=$?
48994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48995 (exit $ac_status); }; } &&
48996 { ac_try='test -s conftest.$ac_objext'
48997 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48998 (eval $ac_try) 2>&5
48999 ac_status=$?
49000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49001 (exit $ac_status); }; }; then
49002
49003 echo "$as_me:$LINENO: result: yes" >&5
49004echo "${ECHO_T}yes" >&6
49005 ICC_PCH=1
49006
49007else
49008 echo "$as_me: failed program was:" >&5
49009sed 's/^/| /' conftest.$ac_ext >&5
49010
49011
49012 echo "$as_me:$LINENO: result: no" >&5
a848cd7e
SC
49013echo "${ECHO_T}no" >&6
49014
49015fi
ac1cb8d3 49016rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
f10e38c4
VZ
49017
49018fi
49019rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
49020 if test $GCC_PCH = 1 -o $ICC_PCH = 1 ; then
49021 USE_PCH=1
1e9e8aba
DE
49022
49023D='$'
49024cat <<EOF >bk-make-pch
a848cd7e
SC
49025#!/bin/sh
49026
49027# This script is part of Bakefile (http://bakefile.sourceforge.net) autoconf
49028# script. It is used to generated precompiled headers.
49029#
49030# Permission is given to use this file in any way.
49031
1e9e8aba
DE
49032outfile="${D}{1}"
49033header="${D}{2}"
a848cd7e
SC
49034shift
49035shift
49036
f10e38c4
VZ
49037compiler=""
49038headerfile=""
49039
1e9e8aba 49040while test ${D}{#} -gt 0; do
f10e38c4 49041 add_to_cmdline=1
1e9e8aba 49042 case "${D}{1}" in
a848cd7e 49043 -I* )
1e9e8aba
DE
49044 incdir=\`echo ${D}{1} | sed -e 's/-I\\(.*\\)/\\1/g'\`
49045 if test "x${D}{headerfile}" = "x" -a -f "${D}{incdir}/${D}{header}" ; then
49046 headerfile="${D}{incdir}/${D}{header}"
a848cd7e
SC
49047 fi
49048 ;;
f10e38c4
VZ
49049 -use-pch|-use_pch )
49050 shift
49051 add_to_cmdline=0
49052 ;;
a848cd7e 49053 esac
f10e38c4
VZ
49054 if test ${D}add_to_cmdline = 1 ; then
49055 compiler="${D}{compiler} ${D}{1}"
49056 fi
a848cd7e
SC
49057 shift
49058done
49059
1e9e8aba 49060if test "x${D}{headerfile}" = "x" ; then
f10e38c4 49061 echo "error: can't find header ${D}{header} in include paths" >&2
a848cd7e 49062else
1e9e8aba
DE
49063 if test -f ${D}{outfile} ; then
49064 rm -f ${D}{outfile}
a848cd7e 49065 else
1e9e8aba 49066 mkdir -p \`dirname ${D}{outfile}\`
a848cd7e 49067 fi
1e9e8aba 49068 depsfile=".deps/\`echo ${D}{outfile} | tr '/.' '__'\`.d"
a848cd7e 49069 mkdir -p .deps
f10e38c4
VZ
49070 if test "x${GCC_PCH}" = "x1" ; then
49071 # can do this because gcc is >= 3.4:
49072 ${D}{compiler} -o ${D}{outfile} -MMD -MF "${D}{depsfile}" "${D}{headerfile}"
49073 elif test "x${ICC_PCH}" = "x1" ; then
49074 filename=pch_gen-${D}${D}
49075 file=${D}{filename}.c
49076 dfile=${D}{filename}.d
49077 cat > ${D}file <<EOT
49078#include "${D}header"
49079EOT
49080 # using -MF icc complains about differing command lines in creation/use
49081 ${D}compiler -c -create_pch ${D}outfile -MMD ${D}file && \\
49082 sed -e "s,^.*:,${D}outfile:," -e "s, ${D}file,," < ${D}dfile > ${D}depsfile && \\
49083 rm -f ${D}file ${D}dfile ${D}{filename}.o
49084 fi
1e9e8aba 49085 exit ${D}{?}
a848cd7e
SC
49086fi
49087EOF
1e9e8aba 49088
a848cd7e
SC
49089 chmod +x bk-make-pch
49090 fi
49091 fi
49092 fi
49093
49094
49095
f10e38c4 49096
a848cd7e
SC
49097 COND_BUILD_DEBUG="#"
49098 if test "x$BUILD" = "xdebug" ; then
49099 COND_BUILD_DEBUG=""
49100 fi
49101
49102 COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT="#"
49103 if test "x$BUILD" = "xdebug" -a "x$DEBUG_FLAG" = "xdefault" ; then
49104 COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT=""
49105 fi
49106
49107 COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT="#"
49108 if test "x$BUILD" = "xdebug" -a "x$DEBUG_INFO" = "xdefault" ; then
49109 COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT=""
49110 fi
49111
49112 COND_BUILD_DEBUG_UNICODE_0="#"
49113 if test "x$BUILD" = "xdebug" -a "x$UNICODE" = "x0" ; then
49114 COND_BUILD_DEBUG_UNICODE_0=""
49115 fi
49116
49117 COND_BUILD_DEBUG_UNICODE_1="#"
49118 if test "x$BUILD" = "xdebug" -a "x$UNICODE" = "x1" ; then
49119 COND_BUILD_DEBUG_UNICODE_1=""
49120 fi
49121
49122 COND_BUILD_RELEASE="#"
49123 if test "x$BUILD" = "xrelease" ; then
49124 COND_BUILD_RELEASE=""
49125 fi
49126
49127 COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT="#"
49128 if test "x$BUILD" = "xrelease" -a "x$DEBUG_INFO" = "xdefault" ; then
49129 COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT=""
49130 fi
49131
49132 COND_BUILD_RELEASE_UNICODE_0="#"
49133 if test "x$BUILD" = "xrelease" -a "x$UNICODE" = "x0" ; then
49134 COND_BUILD_RELEASE_UNICODE_0=""
49135 fi
49136
49137 COND_BUILD_RELEASE_UNICODE_1="#"
49138 if test "x$BUILD" = "xrelease" -a "x$UNICODE" = "x1" ; then
49139 COND_BUILD_RELEASE_UNICODE_1=""
49140 fi
49141
49142 COND_DEBUG_FLAG_1="#"
49143 if test "x$DEBUG_FLAG" = "x1" ; then
49144 COND_DEBUG_FLAG_1=""
49145 fi
49146
49147 COND_DEBUG_INFO_0="#"
49148 if test "x$DEBUG_INFO" = "x0" ; then
49149 COND_DEBUG_INFO_0=""
49150 fi
49151
49152 COND_DEBUG_INFO_1="#"
49153 if test "x$DEBUG_INFO" = "x1" ; then
49154 COND_DEBUG_INFO_1=""
49155 fi
49156
49157 COND_DEPS_TRACKING_0="#"
49158 if test "x$DEPS_TRACKING" = "x0" ; then
49159 COND_DEPS_TRACKING_0=""
49160 fi
49161
49162 COND_DEPS_TRACKING_1="#"
49163 if test "x$DEPS_TRACKING" = "x1" ; then
49164 COND_DEPS_TRACKING_1=""
49165 fi
49166
49167 COND_GCC_PCH_1="#"
49168 if test "x$GCC_PCH" = "x1" ; then
49169 COND_GCC_PCH_1=""
49170 fi
49171
f10e38c4
VZ
49172 COND_ICC_PCH_1="#"
49173 if test "x$ICC_PCH" = "x1" ; then
49174 COND_ICC_PCH_1=""
49175 fi
49176
a848cd7e
SC
49177 COND_MONOLITHIC_0="#"
49178 if test "x$MONOLITHIC" = "x0" ; then
49179 COND_MONOLITHIC_0=""
49180 fi
49181
49182 COND_MONOLITHIC_0_SHARED_0="#"
49183 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" ; then
49184 COND_MONOLITHIC_0_SHARED_0=""
49185 fi
49186
3f60522a
JS
49187 COND_MONOLITHIC_0_SHARED_0_USE_AUI_1="#"
49188 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_AUI" = "x1" ; then
49189 COND_MONOLITHIC_0_SHARED_0_USE_AUI_1=""
49190 fi
49191
a848cd7e
SC
49192 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1="#"
49193 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" ; then
49194 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1=""
49195 fi
49196
90970d69
DE
49197 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_HTML_1="#"
49198 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_HTML" = "x1" ; then
49199 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_HTML_1=""
49200 fi
49201
f10e38c4
VZ
49202 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_MEDIA_1="#"
49203 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_MEDIA" = "x1" ; then
49204 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_MEDIA_1=""
49205 fi
49206
a848cd7e
SC
49207 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1="#"
49208 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_ODBC" = "x1" ; then
49209 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1=""
49210 fi
49211
6671c68b
VZ
49212 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_QA_1="#"
49213 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_QA" = "x1" ; then
49214 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_QA_1=""
49215 fi
49216
a848cd7e
SC
49217 COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1="#"
49218 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_ODBC" = "x1" ; then
49219 COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1=""
49220 fi
49221
8b6682b9
JS
49222 COND_MONOLITHIC_0_SHARED_0_USE_RICHTEXT_1="#"
49223 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_RICHTEXT" = "x1" ; then
49224 COND_MONOLITHIC_0_SHARED_0_USE_RICHTEXT_1=""
49225 fi
49226
ceec2216
RL
49227 COND_MONOLITHIC_0_SHARED_0_USE_XRC_1="#"
49228 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_XRC" = "x1" ; then
49229 COND_MONOLITHIC_0_SHARED_0_USE_XRC_1=""
49230 fi
49231
a848cd7e
SC
49232 COND_MONOLITHIC_0_SHARED_1="#"
49233 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" ; then
49234 COND_MONOLITHIC_0_SHARED_1=""
49235 fi
49236
3f60522a
JS
49237 COND_MONOLITHIC_0_SHARED_1_USE_AUI_1="#"
49238 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_AUI" = "x1" ; then
49239 COND_MONOLITHIC_0_SHARED_1_USE_AUI_1=""
49240 fi
49241
a848cd7e
SC
49242 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1="#"
49243 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" ; then
49244 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1=""
49245 fi
49246
90970d69
DE
49247 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_HTML_1="#"
49248 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_HTML" = "x1" ; then
49249 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_HTML_1=""
49250 fi
49251
f10e38c4
VZ
49252 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_MEDIA_1="#"
49253 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_MEDIA" = "x1" ; then
49254 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_MEDIA_1=""
49255 fi
49256
a848cd7e
SC
49257 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1="#"
49258 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_ODBC" = "x1" ; then
49259 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1=""
49260 fi
49261
6671c68b
VZ
49262 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_QA_1="#"
49263 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_QA" = "x1" ; then
49264 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_QA_1=""
49265 fi
49266
a848cd7e
SC
49267 COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1="#"
49268 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_ODBC" = "x1" ; then
49269 COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1=""
49270 fi
49271
8b6682b9
JS
49272 COND_MONOLITHIC_0_SHARED_1_USE_RICHTEXT_1="#"
49273 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_RICHTEXT" = "x1" ; then
49274 COND_MONOLITHIC_0_SHARED_1_USE_RICHTEXT_1=""
49275 fi
49276
ceec2216
RL
49277 COND_MONOLITHIC_0_SHARED_1_USE_XRC_1="#"
49278 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_XRC" = "x1" ; then
49279 COND_MONOLITHIC_0_SHARED_1_USE_XRC_1=""
49280 fi
49281
e5efa97e
VZ
49282 COND_MONOLITHIC_0_USE_MEDIA_1="#"
49283 if test "x$MONOLITHIC" = "x0" -a "x$USE_MEDIA" = "x1" ; then
49284 COND_MONOLITHIC_0_USE_MEDIA_1=""
49285 fi
49286
a848cd7e
SC
49287 COND_MONOLITHIC_0_USE_ODBC_1="#"
49288 if test "x$MONOLITHIC" = "x0" -a "x$USE_ODBC" = "x1" ; then
49289 COND_MONOLITHIC_0_USE_ODBC_1=""
49290 fi
49291
49292 COND_MONOLITHIC_1="#"
49293 if test "x$MONOLITHIC" = "x1" ; then
49294 COND_MONOLITHIC_1=""
49295 fi
49296
49297 COND_MONOLITHIC_1_SHARED_0="#"
49298 if test "x$MONOLITHIC" = "x1" -a "x$SHARED" = "x0" ; then
49299 COND_MONOLITHIC_1_SHARED_0=""
49300 fi
49301
49302 COND_MONOLITHIC_1_SHARED_1="#"
49303 if test "x$MONOLITHIC" = "x1" -a "x$SHARED" = "x1" ; then
49304 COND_MONOLITHIC_1_SHARED_1=""
49305 fi
49306
49307 COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1="#"
49308 if test "x$OFFICIAL_BUILD" = "x0" -a "x$PLATFORM_WIN32" = "x1" ; then
49309 COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1=""
49310 fi
49311
49312 COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1="#"
49313 if test "x$OFFICIAL_BUILD" = "x1" -a "x$PLATFORM_WIN32" = "x1" ; then
49314 COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1=""
49315 fi
49316
eb730a0c
JS
49317 COND_PLATFORM_MACOSX_0_USE_SOVERCYGWIN_0_USE_SOVERSION_1="#"
49318 if test "x$PLATFORM_MACOSX" = "x0" -a "x$USE_SOVERCYGWIN" = "x0" -a "x$USE_SOVERSION" = "x1" ; then
49319 COND_PLATFORM_MACOSX_0_USE_SOVERCYGWIN_0_USE_SOVERSION_1=""
49320 fi
49321
a848cd7e
SC
49322 COND_PLATFORM_MACOSX_0_USE_SOVERSION_1="#"
49323 if test "x$PLATFORM_MACOSX" = "x0" -a "x$USE_SOVERSION" = "x1" ; then
49324 COND_PLATFORM_MACOSX_0_USE_SOVERSION_1=""
49325 fi
49326
49327 COND_PLATFORM_MACOSX_1="#"
49328 if test "x$PLATFORM_MACOSX" = "x1" ; then
49329 COND_PLATFORM_MACOSX_1=""
49330 fi
49331
a30f955f
VS
49332 COND_PLATFORM_MACOSX_1_TOOLKIT_="#"
49333 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "x" ; then
49334 COND_PLATFORM_MACOSX_1_TOOLKIT_=""
49335 fi
49336
a848cd7e
SC
49337 COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA="#"
49338 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xCOCOA" ; then
49339 COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA=""
49340 fi
49341
49342 COND_PLATFORM_MACOSX_1_TOOLKIT_GTK="#"
49343 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xGTK" ; then
49344 COND_PLATFORM_MACOSX_1_TOOLKIT_GTK=""
49345 fi
49346
49347 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC="#"
49348 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMAC" ; then
49349 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC=""
49350 fi
49351
fc480dc1
DE
49352 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1="#"
49353 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" ; then
49354 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1=""
49355 fi
49356
1e9e8aba
DE
49357 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0="#"
49358 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
49359 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0=""
49360 fi
49361
ebee3cd0
VS
49362 COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF="#"
49363 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMOTIF" ; then
49364 COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF=""
49365 fi
49366
49367 COND_PLATFORM_MACOSX_1_TOOLKIT_X11="#"
49368 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xX11" ; then
49369 COND_PLATFORM_MACOSX_1_TOOLKIT_X11=""
49370 fi
49371
a848cd7e
SC
49372 COND_PLATFORM_MACOSX_1_USE_GUI_1="#"
49373 if test "x$PLATFORM_MACOSX" = "x1" -a "x$USE_GUI" = "x1" ; then
49374 COND_PLATFORM_MACOSX_1_USE_GUI_1=""
49375 fi
49376
49377 COND_PLATFORM_MACOSX_1_USE_SOVERSION_1="#"
49378 if test "x$PLATFORM_MACOSX" = "x1" -a "x$USE_SOVERSION" = "x1" ; then
49379 COND_PLATFORM_MACOSX_1_USE_SOVERSION_1=""
49380 fi
49381
b48a2016
DE
49382 COND_PLATFORM_MACOS_1="#"
49383 if test "x$PLATFORM_MACOS" = "x1" ; then
49384 COND_PLATFORM_MACOS_1=""
49385 fi
49386
083508af
MW
49387 COND_PLATFORM_MAC_1="#"
49388 if test "x$PLATFORM_MAC" = "x1" ; then
49389 COND_PLATFORM_MAC_1=""
49390 fi
49391
e5efa97e
VZ
49392 COND_PLATFORM_MSDOS_0="#"
49393 if test "x$PLATFORM_MSDOS" = "x0" ; then
49394 COND_PLATFORM_MSDOS_0=""
49395 fi
49396
83d8eb47
MW
49397 COND_PLATFORM_MSDOS_1="#"
49398 if test "x$PLATFORM_MSDOS" = "x1" ; then
49399 COND_PLATFORM_MSDOS_1=""
49400 fi
49401
a848cd7e
SC
49402 COND_PLATFORM_OS2_1="#"
49403 if test "x$PLATFORM_OS2" = "x1" ; then
49404 COND_PLATFORM_OS2_1=""
49405 fi
49406
49407 COND_PLATFORM_UNIX_0="#"
49408 if test "x$PLATFORM_UNIX" = "x0" ; then
49409 COND_PLATFORM_UNIX_0=""
49410 fi
49411
49412 COND_PLATFORM_UNIX_1="#"
49413 if test "x$PLATFORM_UNIX" = "x1" ; then
49414 COND_PLATFORM_UNIX_1=""
49415 fi
49416
49417 COND_PLATFORM_UNIX_1_USE_GUI_1="#"
49418 if test "x$PLATFORM_UNIX" = "x1" -a "x$USE_GUI" = "x1" ; then
49419 COND_PLATFORM_UNIX_1_USE_GUI_1=""
49420 fi
49421
49422 COND_PLATFORM_UNIX_1_USE_PLUGINS_0="#"
49423 if test "x$PLATFORM_UNIX" = "x1" -a "x$USE_PLUGINS" = "x0" ; then
49424 COND_PLATFORM_UNIX_1_USE_PLUGINS_0=""
49425 fi
49426
49427 COND_PLATFORM_WIN32_0="#"
49428 if test "x$PLATFORM_WIN32" = "x0" ; then
49429 COND_PLATFORM_WIN32_0=""
49430 fi
49431
49432 COND_PLATFORM_WIN32_1="#"
49433 if test "x$PLATFORM_WIN32" = "x1" ; then
49434 COND_PLATFORM_WIN32_1=""
49435 fi
49436
49437 COND_SHARED_0="#"
49438 if test "x$SHARED" = "x0" ; then
49439 COND_SHARED_0=""
49440 fi
49441
083508af
MW
49442 COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0="#"
49443 if test "x$SHARED" = "x0" -a "x$TOOLKIT" = "xMAC" -a "x$WXUNIV" = "x0" ; then
49444 COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0=""
49445 fi
49446
49447 COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0="#"
49448 if test "x$SHARED" = "x0" -a "x$TOOLKIT" = "xMSW" -a "x$WXUNIV" = "x0" ; then
49449 COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0=""
49450 fi
49451
49452 COND_SHARED_0_TOOLKIT_PM_WXUNIV_0="#"
49453 if test "x$SHARED" = "x0" -a "x$TOOLKIT" = "xPM" -a "x$WXUNIV" = "x0" ; then
49454 COND_SHARED_0_TOOLKIT_PM_WXUNIV_0=""
49455 fi
49456
a848cd7e
SC
49457 COND_SHARED_0_USE_GUI_1_USE_OPENGL_1="#"
49458 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_OPENGL" = "x1" ; then
49459 COND_SHARED_0_USE_GUI_1_USE_OPENGL_1=""
49460 fi
49461
49462 COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="#"
49463 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
49464 COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN=""
49465 fi
49466
49467 COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="#"
49468 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBPNG" = "xbuiltin" ; then
49469 COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN=""
49470 fi
49471
49472 COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="#"
49473 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
49474 COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN=""
49475 fi
49476
083508af
MW
49477 COND_SHARED_0_USE_XRC_1="#"
49478 if test "x$SHARED" = "x0" -a "x$USE_XRC" = "x1" ; then
49479 COND_SHARED_0_USE_XRC_1=""
49480 fi
49481
a848cd7e
SC
49482 COND_SHARED_0_WXUSE_EXPAT_BUILTIN="#"
49483 if test "x$SHARED" = "x0" -a "x$wxUSE_EXPAT" = "xbuiltin" ; then
49484 COND_SHARED_0_WXUSE_EXPAT_BUILTIN=""
49485 fi
49486
49487 COND_SHARED_0_WXUSE_ODBC_BUILTIN="#"
49488 if test "x$SHARED" = "x0" -a "x$wxUSE_ODBC" = "xbuiltin" ; then
49489 COND_SHARED_0_WXUSE_ODBC_BUILTIN=""
49490 fi
49491
49492 COND_SHARED_0_WXUSE_REGEX_BUILTIN="#"
49493 if test "x$SHARED" = "x0" -a "x$wxUSE_REGEX" = "xbuiltin" ; then
49494 COND_SHARED_0_WXUSE_REGEX_BUILTIN=""
49495 fi
49496
49497 COND_SHARED_0_WXUSE_ZLIB_BUILTIN="#"
49498 if test "x$SHARED" = "x0" -a "x$wxUSE_ZLIB" = "xbuiltin" ; then
49499 COND_SHARED_0_WXUSE_ZLIB_BUILTIN=""
49500 fi
49501
49502 COND_SHARED_1="#"
49503 if test "x$SHARED" = "x1" ; then
49504 COND_SHARED_1=""
49505 fi
49506
49507 COND_SHARED_1_USE_GUI_1_USE_OPENGL_1="#"
49508 if test "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_OPENGL" = "x1" ; then
49509 COND_SHARED_1_USE_GUI_1_USE_OPENGL_1=""
49510 fi
49511
083508af
MW
49512 COND_SHARED_1_USE_XRC_1="#"
49513 if test "x$SHARED" = "x1" -a "x$USE_XRC" = "x1" ; then
49514 COND_SHARED_1_USE_XRC_1=""
49515 fi
49516
a30f955f
VS
49517 COND_TOOLKIT_="#"
49518 if test "x$TOOLKIT" = "x" ; then
49519 COND_TOOLKIT_=""
49520 fi
49521
a848cd7e
SC
49522 COND_TOOLKIT_COCOA="#"
49523 if test "x$TOOLKIT" = "xCOCOA" ; then
49524 COND_TOOLKIT_COCOA=""
49525 fi
49526
a49baeab
DE
49527 COND_TOOLKIT_COCOA_USE_GUI_1="#"
49528 if test "x$TOOLKIT" = "xCOCOA" -a "x$USE_GUI" = "x1" ; then
49529 COND_TOOLKIT_COCOA_USE_GUI_1=""
49530 fi
49531
a848cd7e
SC
49532 COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0="#"
49533 if test "x$TOOLKIT" = "xCOCOA" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
49534 COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0=""
49535 fi
49536
b3c86150
VS
49537 COND_TOOLKIT_DFB="#"
49538 if test "x$TOOLKIT" = "xDFB" ; then
49539 COND_TOOLKIT_DFB=""
49540 fi
49541
49542 COND_TOOLKIT_DFB_USE_GUI_1="#"
49543 if test "x$TOOLKIT" = "xDFB" -a "x$USE_GUI" = "x1" ; then
49544 COND_TOOLKIT_DFB_USE_GUI_1=""
49545 fi
49546
a848cd7e
SC
49547 COND_TOOLKIT_GTK="#"
49548 if test "x$TOOLKIT" = "xGTK" ; then
49549 COND_TOOLKIT_GTK=""
49550 fi
49551
d044deea
MW
49552 COND_TOOLKIT_GTK_TOOLKIT_VERSION_="#"
49553 if test "x$TOOLKIT" = "xGTK" -a "x$TOOLKIT_VERSION" = "x" ; then
49554 COND_TOOLKIT_GTK_TOOLKIT_VERSION_=""
49555 fi
49556
49557 COND_TOOLKIT_GTK_TOOLKIT_VERSION_2="#"
49558 if test "x$TOOLKIT" = "xGTK" -a "x$TOOLKIT_VERSION" = "x2" ; then
49559 COND_TOOLKIT_GTK_TOOLKIT_VERSION_2=""
49560 fi
49561
49562 COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1="#"
49563 if test "x$TOOLKIT" = "xGTK" -a "x$TOOLKIT_VERSION" = "x2" -a "x$USE_GUI" = "x1" ; then
49564 COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1=""
49565 fi
49566
49567 COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1_WXUNIV_0="#"
49568 if test "x$TOOLKIT" = "xGTK" -a "x$TOOLKIT_VERSION" = "x2" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
49569 COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1_WXUNIV_0=""
49570 fi
49571
49572 COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1="#"
49573 if test "x$TOOLKIT" = "xGTK" -a "x$TOOLKIT_VERSION" = "x" -a "x$USE_GUI" = "x1" ; then
49574 COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1=""
49575 fi
49576
49577 COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1_WXUNIV_0="#"
49578 if test "x$TOOLKIT" = "xGTK" -a "x$TOOLKIT_VERSION" = "x" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
49579 COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1_WXUNIV_0=""
49580 fi
49581
a848cd7e
SC
49582 COND_TOOLKIT_GTK_USE_GUI_1="#"
49583 if test "x$TOOLKIT" = "xGTK" -a "x$USE_GUI" = "x1" ; then
49584 COND_TOOLKIT_GTK_USE_GUI_1=""
49585 fi
49586
a848cd7e
SC
49587 COND_TOOLKIT_MAC="#"
49588 if test "x$TOOLKIT" = "xMAC" ; then
49589 COND_TOOLKIT_MAC=""
49590 fi
49591
49592 COND_TOOLKIT_MAC_USE_GUI_1="#"
49593 if test "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" ; then
49594 COND_TOOLKIT_MAC_USE_GUI_1=""
49595 fi
49596
49597 COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0="#"
49598 if test "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
49599 COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0=""
49600 fi
49601
49602 COND_TOOLKIT_MGL="#"
49603 if test "x$TOOLKIT" = "xMGL" ; then
49604 COND_TOOLKIT_MGL=""
49605 fi
49606
49607 COND_TOOLKIT_MGL_USE_GUI_1="#"
49608 if test "x$TOOLKIT" = "xMGL" -a "x$USE_GUI" = "x1" ; then
49609 COND_TOOLKIT_MGL_USE_GUI_1=""
49610 fi
49611
49612 COND_TOOLKIT_MOTIF="#"
49613 if test "x$TOOLKIT" = "xMOTIF" ; then
49614 COND_TOOLKIT_MOTIF=""
49615 fi
49616
49617 COND_TOOLKIT_MOTIF_USE_GUI_1="#"
49618 if test "x$TOOLKIT" = "xMOTIF" -a "x$USE_GUI" = "x1" ; then
49619 COND_TOOLKIT_MOTIF_USE_GUI_1=""
49620 fi
49621
49622 COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0="#"
49623 if test "x$TOOLKIT" = "xMOTIF" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
49624 COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0=""
49625 fi
49626
49627 COND_TOOLKIT_MSW="#"
49628 if test "x$TOOLKIT" = "xMSW" ; then
49629 COND_TOOLKIT_MSW=""
49630 fi
49631
49632 COND_TOOLKIT_MSW_USE_GUI_1="#"
49633 if test "x$TOOLKIT" = "xMSW" -a "x$USE_GUI" = "x1" ; then
49634 COND_TOOLKIT_MSW_USE_GUI_1=""
49635 fi
49636
49637 COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0="#"
49638 if test "x$TOOLKIT" = "xMSW" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
49639 COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0=""
49640 fi
49641
0ee4059d
DE
49642 COND_TOOLKIT_MSW_WXUNIV_0="#"
49643 if test "x$TOOLKIT" = "xMSW" -a "x$WXUNIV" = "x0" ; then
49644 COND_TOOLKIT_MSW_WXUNIV_0=""
49645 fi
49646
a848cd7e
SC
49647 COND_TOOLKIT_PM="#"
49648 if test "x$TOOLKIT" = "xPM" ; then
49649 COND_TOOLKIT_PM=""
49650 fi
49651
49652 COND_TOOLKIT_PM_USE_GUI_1="#"
49653 if test "x$TOOLKIT" = "xPM" -a "x$USE_GUI" = "x1" ; then
49654 COND_TOOLKIT_PM_USE_GUI_1=""
49655 fi
49656
49657 COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0="#"
49658 if test "x$TOOLKIT" = "xPM" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
49659 COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0=""
49660 fi
49661
3fd9c298
DE
49662 COND_TOOLKIT_WINCE="#"
49663 if test "x$TOOLKIT" = "xWINCE" ; then
49664 COND_TOOLKIT_WINCE=""
49665 fi
49666
49667 COND_TOOLKIT_WINCE_USE_GUI_1="#"
49668 if test "x$TOOLKIT" = "xWINCE" -a "x$USE_GUI" = "x1" ; then
49669 COND_TOOLKIT_WINCE_USE_GUI_1=""
49670 fi
49671
49672 COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0="#"
49673 if test "x$TOOLKIT" = "xWINCE" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
49674 COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0=""
49675 fi
49676
0ee4059d
DE
49677 COND_TOOLKIT_WINCE_WXUNIV_0="#"
49678 if test "x$TOOLKIT" = "xWINCE" -a "x$WXUNIV" = "x0" ; then
49679 COND_TOOLKIT_WINCE_WXUNIV_0=""
49680 fi
49681
a848cd7e
SC
49682 COND_TOOLKIT_X11="#"
49683 if test "x$TOOLKIT" = "xX11" ; then
49684 COND_TOOLKIT_X11=""
49685 fi
49686
49687 COND_TOOLKIT_X11_USE_GUI_1="#"
49688 if test "x$TOOLKIT" = "xX11" -a "x$USE_GUI" = "x1" ; then
49689 COND_TOOLKIT_X11_USE_GUI_1=""
49690 fi
49691
49692 COND_UNICODE_1="#"
49693 if test "x$UNICODE" = "x1" ; then
49694 COND_UNICODE_1=""
49695 fi
49696
49697 COND_USE_EXCEPTIONS_0="#"
49698 if test "x$USE_EXCEPTIONS" = "x0" ; then
49699 COND_USE_EXCEPTIONS_0=""
49700 fi
49701
49702 COND_USE_EXCEPTIONS_1="#"
49703 if test "x$USE_EXCEPTIONS" = "x1" ; then
49704 COND_USE_EXCEPTIONS_1=""
49705 fi
49706
49707 COND_USE_GUI_0="#"
49708 if test "x$USE_GUI" = "x0" ; then
49709 COND_USE_GUI_0=""
49710 fi
49711
49712 COND_USE_GUI_1="#"
49713 if test "x$USE_GUI" = "x1" ; then
49714 COND_USE_GUI_1=""
49715 fi
49716
49717 COND_USE_GUI_1_WXUNIV_0="#"
49718 if test "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
49719 COND_USE_GUI_1_WXUNIV_0=""
49720 fi
49721
49722 COND_USE_GUI_1_WXUNIV_1="#"
49723 if test "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x1" ; then
49724 COND_USE_GUI_1_WXUNIV_1=""
49725 fi
49726
49727 COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="#"
49728 if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
49729 COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN=""
49730 fi
49731
49732 COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="#"
49733 if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBPNG" = "xbuiltin" ; then
49734 COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN=""
49735 fi
49736
49737 COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="#"
49738 if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
49739 COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN=""
49740 fi
49741
083508af
MW
49742 COND_USE_ODBC_1="#"
49743 if test "x$USE_ODBC" = "x1" ; then
49744 COND_USE_ODBC_1=""
49745 fi
49746
49747 COND_USE_OPENGL_1="#"
49748 if test "x$USE_OPENGL" = "x1" ; then
49749 COND_USE_OPENGL_1=""
49750 fi
49751
f10e38c4
VZ
49752 COND_USE_PCH_1="#"
49753 if test "x$USE_PCH" = "x1" ; then
49754 COND_USE_PCH_1=""
49755 fi
49756
a848cd7e
SC
49757 COND_USE_PLUGINS_0="#"
49758 if test "x$USE_PLUGINS" = "x0" ; then
49759 COND_USE_PLUGINS_0=""
49760 fi
49761
0b78747f
MW
49762 COND_USE_RTTI_0="#"
49763 if test "x$USE_RTTI" = "x0" ; then
49764 COND_USE_RTTI_0=""
49765 fi
49766
49767 COND_USE_RTTI_1="#"
49768 if test "x$USE_RTTI" = "x1" ; then
49769 COND_USE_RTTI_1=""
49770 fi
49771
a848cd7e
SC
49772 COND_USE_SOSYMLINKS_1="#"
49773 if test "x$USE_SOSYMLINKS" = "x1" ; then
49774 COND_USE_SOSYMLINKS_1=""
49775 fi
49776
eb730a0c
JS
49777 COND_USE_SOVERCYGWIN_1_USE_SOVERSION_1="#"
49778 if test "x$USE_SOVERCYGWIN" = "x1" -a "x$USE_SOVERSION" = "x1" ; then
49779 COND_USE_SOVERCYGWIN_1_USE_SOVERSION_1=""
49780 fi
49781
a848cd7e
SC
49782 COND_USE_SOVERLINUX_1="#"
49783 if test "x$USE_SOVERLINUX" = "x1" ; then
49784 COND_USE_SOVERLINUX_1=""
49785 fi
49786
49787 COND_USE_SOVERSION_0="#"
49788 if test "x$USE_SOVERSION" = "x0" ; then
49789 COND_USE_SOVERSION_0=""
49790 fi
49791
49792 COND_USE_SOVERSOLARIS_1="#"
49793 if test "x$USE_SOVERSOLARIS" = "x1" ; then
49794 COND_USE_SOVERSOLARIS_1=""
49795 fi
49796
0b78747f
MW
49797 COND_USE_THREADS_0="#"
49798 if test "x$USE_THREADS" = "x0" ; then
49799 COND_USE_THREADS_0=""
49800 fi
49801
49802 COND_USE_THREADS_1="#"
49803 if test "x$USE_THREADS" = "x1" ; then
49804 COND_USE_THREADS_1=""
49805 fi
49806
a13a7f89
RL
49807 COND_USE_XRC_1="#"
49808 if test "x$USE_XRC" = "x1" ; then
49809 COND_USE_XRC_1=""
49810 fi
49811
eb730a0c
JS
49812 COND_WINDOWS_IMPLIB_1="#"
49813 if test "x$WINDOWS_IMPLIB" = "x1" ; then
49814 COND_WINDOWS_IMPLIB_1=""
49815 fi
49816
a848cd7e
SC
49817 COND_WITH_PLUGIN_SDL_1="#"
49818 if test "x$WITH_PLUGIN_SDL" = "x1" ; then
49819 COND_WITH_PLUGIN_SDL_1=""
49820 fi
49821
1e6eb025
VZ
49822 COND_WXUNIV_0="#"
49823 if test "x$WXUNIV" = "x0" ; then
49824 COND_WXUNIV_0=""
49825 fi
49826
a848cd7e
SC
49827 COND_WXUNIV_1="#"
49828 if test "x$WXUNIV" = "x1" ; then
49829 COND_WXUNIV_1=""
49830 fi
49831
49832 COND_WXUSE_EXPAT_BUILTIN="#"
49833 if test "x$wxUSE_EXPAT" = "xbuiltin" ; then
49834 COND_WXUSE_EXPAT_BUILTIN=""
49835 fi
49836
49837 COND_WXUSE_LIBJPEG_BUILTIN="#"
49838 if test "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
49839 COND_WXUSE_LIBJPEG_BUILTIN=""
49840 fi
49841
49842 COND_WXUSE_LIBPNG_BUILTIN="#"
49843 if test "x$wxUSE_LIBPNG" = "xbuiltin" ; then
49844 COND_WXUSE_LIBPNG_BUILTIN=""
49845 fi
49846
49847 COND_WXUSE_LIBTIFF_BUILTIN="#"
49848 if test "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
49849 COND_WXUSE_LIBTIFF_BUILTIN=""
49850 fi
49851
49852 COND_WXUSE_ODBC_BUILTIN="#"
49853 if test "x$wxUSE_ODBC" = "xbuiltin" ; then
49854 COND_WXUSE_ODBC_BUILTIN=""
49855 fi
49856
49857 COND_WXUSE_REGEX_BUILTIN="#"
49858 if test "x$wxUSE_REGEX" = "xbuiltin" ; then
49859 COND_WXUSE_REGEX_BUILTIN=""
49860 fi
49861
49862 COND_WXUSE_ZLIB_BUILTIN="#"
49863 if test "x$wxUSE_ZLIB" = "xbuiltin" ; then
49864 COND_WXUSE_ZLIB_BUILTIN=""
49865 fi
49866
49867
49868
810b94f0
MW
49869 if test "$BAKEFILE_AUTOCONF_INC_M4_VERSION" = "" ; then
49870 { { 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
49871echo "$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;}
49872 { (exit 1); exit 1; }; }
49873 fi
49874
2057db16
VS
49875 if test "$BAKEFILE_BAKEFILE_M4_VERSION" != "$BAKEFILE_AUTOCONF_INC_M4_VERSION" ; then
49876 { { 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
49877echo "$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;}
49878 { (exit 1); exit 1; }; }
49879 fi
49880
a848cd7e 49881
7afc46ab
KO
49882
49883if test "$wxUSE_MAC" = 1 ; then
95768535 49884 if test "x$wxUSE_UNIVERSAL_BINARY" != "xno" ; then
7afc46ab
KO
49885 sed "s/DEPSMODE=gcc/DEPSMODE=none/" < bk-deps > temp
49886 mv temp bk-deps
49887 chmod +x bk-deps
49888 fi
49889fi
49890
ceec2216
RL
49891if test "$wxUSE_SHARED" = "yes"; then
49892
49893 sanitised_bakefile_mess=`echo "$SHARED_LD_CXX" | tr -d '()'`
49894 EXE_LINKER=`eval echo "$sanitised_bakefile_mess"`
49895
5b674b9d
DE
49896 case "${host}" in
49897 *-pc-os2_emx | *-pc-os2-emx )
49898 SHARED_LD_CC="`pwd`/dllar.sh -name-mangler-script ./dllnames.sh -libf INITINSTANCE -libf TERMINSTANCE -o"
49899 SHARED_LD_CXX="`pwd`/dllar.sh -name-mangler-script ./dllnames.sh -libf INITINSTANCE -libf TERMINSTANCE -o"
49900 cp -p ${srcdir}/src/os2/dllnames.sh .
49901 cp -p ${srcdir}/src/os2/dllar.sh .
49902 ;;
49903 esac
ceec2216
RL
49904else
49905
49906 EXE_LINKER="$CXX -o"
49907
49908fi
69120ee4
VZ
49909if test "$wxUSE_OMF" = "yes"; then
49910 case "${host}" in
49911 *-pc-os2_emx | *-pc-os2-emx )
49912 LDFLAGS="$LDFLAGS -Zlinker /EXEPACK"
49913 LDFLAGS_GUI="-Zlinker /PMTYPE:PM"
49914 WXCONFIG_LDFLAGS_GUI="-Zlinker /PMTYPE:PM"
49915 ;;
49916 esac
49917fi
a848cd7e 49918
c08ebc62 49919if test $GCC_PCH = 1 ; then
254e8e29 49920 CPPFLAGS="-DWX_PRECOMP $CPPFLAGS"
ddd14b14 49921fi
a848cd7e 49922
5ff751d6 49923WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS $TOOLCHAIN_DEFS"
a848cd7e
SC
49924
49925SAMPLES_SUBDIRS="`echo $SAMPLES_SUBDIRS | tr -s ' ' | tr ' ' '\n' | sort | uniq | tr '\n' ' '| tr -d '\r'`"
49926
49927
49928
49929
49930
49931
49932
49933
49934
49935
49936
49937
49938
49939
49940
49941
49942
49943
49944
49945
49946
49947
49948
49949
49950
49951
49952
49953
49954
49955
49956
49957
49958
49959
49960
49961
49962
49963
49964
49965
49966
49967
a848cd7e
SC
49968
49969
49970
49971
49972
49973
49974
49975
49976
49977
49978
49979
a848cd7e
SC
49980
49981
ddd14b14 49982
370d2fd7 49983
8ced02f6 49984
a848cd7e
SC
49985
49986
49987echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
49988echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
ac1cb8d3 49989set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
a848cd7e
SC
49990if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
49991 echo $ECHO_N "(cached) $ECHO_C" >&6
49992else
49993 cat >conftest.make <<\_ACEOF
49994all:
49995 @echo 'ac_maketemp="$(MAKE)"'
49996_ACEOF
49997# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
49998eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
49999if test -n "$ac_maketemp"; then
50000 eval ac_cv_prog_make_${ac_make}_set=yes
50001else
50002 eval ac_cv_prog_make_${ac_make}_set=no
50003fi
50004rm -f conftest.make
50005fi
50006if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
50007 echo "$as_me:$LINENO: result: yes" >&5
50008echo "${ECHO_T}yes" >&6
50009 SET_MAKE=
50010else
50011 echo "$as_me:$LINENO: result: no" >&5
50012echo "${ECHO_T}no" >&6
50013 SET_MAKE="MAKE=${MAKE-make}"
50014fi
50015
50016
a848cd7e 50017
ceec2216
RL
50018 ac_config_headers="$ac_config_headers lib/wx/include/${TOOLCHAIN_FULLNAME}/wx/setup.h:setup.h.in"
50019
a848cd7e 50020
5c60e845
MW
50021if test "$USE_WIN32" = 1; then
50022 ac_config_commands="$ac_config_commands
50023 rcdefs.h
50024 "
50025
50026fi
50027
ceec2216 50028 ac_config_files="$ac_config_files lib/wx/config/${TOOLCHAIN_FULLNAME}:wx-config.in"
a848cd7e 50029
a848cd7e 50030
ceec2216 50031 ac_config_files="$ac_config_files lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}:wx-config-inplace.in"
a848cd7e 50032
ceec2216
RL
50033
50034 ac_config_files="$ac_config_files version-script Makefile"
50035
50036
5c60e845 50037 ac_config_commands="$ac_config_commands wx-config"
a848cd7e
SC
50038
50039
9103d280 50040
1c14217d 50041if test "$wxWITH_SUBDIRS" != "no"; then
a848cd7e
SC
50042if test "$wxUSE_GUI" = "yes"; then
50043 SUBDIRS="samples demos utils contrib"
50044else SUBDIRS="samples utils"
50045fi
50046
50047
50048
50049# Check whether --with-cppunit-prefix or --without-cppunit-prefix was given.
50050if test "${with_cppunit_prefix+set}" = set; then
50051 withval="$with_cppunit_prefix"
50052 cppunit_config_prefix="$withval"
50053else
50054 cppunit_config_prefix=""
50055fi;
50056
50057# Check whether --with-cppunit-exec-prefix or --without-cppunit-exec-prefix was given.
50058if test "${with_cppunit_exec_prefix+set}" = set; then
50059 withval="$with_cppunit_exec_prefix"
50060 cppunit_config_exec_prefix="$withval"
50061else
50062 cppunit_config_exec_prefix=""
50063fi;
50064
50065 if test x$cppunit_config_exec_prefix != x ; then
50066 cppunit_config_args="$cppunit_config_args --exec-prefix=$cppunit_config_exec_prefix"
50067 if test x${CPPUNIT_CONFIG+set} != xset ; then
50068 CPPUNIT_CONFIG=$cppunit_config_exec_prefix/bin/cppunit-config
50069 fi
50070 fi
50071 if test x$cppunit_config_prefix != x ; then
50072 cppunit_config_args="$cppunit_config_args --prefix=$cppunit_config_prefix"
50073 if test x${CPPUNIT_CONFIG+set} != xset ; then
50074 CPPUNIT_CONFIG=$cppunit_config_prefix/bin/cppunit-config
50075 fi
50076 fi
50077
50078 # Extract the first word of "cppunit-config", so it can be a program name with args.
50079set dummy cppunit-config; ac_word=$2
50080echo "$as_me:$LINENO: checking for $ac_word" >&5
50081echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
50082if test "${ac_cv_path_CPPUNIT_CONFIG+set}" = set; then
50083 echo $ECHO_N "(cached) $ECHO_C" >&6
50084else
50085 case $CPPUNIT_CONFIG in
50086 [\\/]* | ?:[\\/]*)
50087 ac_cv_path_CPPUNIT_CONFIG="$CPPUNIT_CONFIG" # Let the user override the test with a path.
50088 ;;
50089 *)
50090 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
50091for as_dir in $PATH
50092do
50093 IFS=$as_save_IFS
50094 test -z "$as_dir" && as_dir=.
50095 for ac_exec_ext in '' $ac_executable_extensions; do
50096 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
50097 ac_cv_path_CPPUNIT_CONFIG="$as_dir/$ac_word$ac_exec_ext"
50098 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
50099 break 2
50100 fi
50101done
50102done
50103
50104 test -z "$ac_cv_path_CPPUNIT_CONFIG" && ac_cv_path_CPPUNIT_CONFIG="no"
50105 ;;
50106esac
50107fi
50108CPPUNIT_CONFIG=$ac_cv_path_CPPUNIT_CONFIG
50109
50110if test -n "$CPPUNIT_CONFIG"; then
50111 echo "$as_me:$LINENO: result: $CPPUNIT_CONFIG" >&5
50112echo "${ECHO_T}$CPPUNIT_CONFIG" >&6
50113else
50114 echo "$as_me:$LINENO: result: no" >&5
50115echo "${ECHO_T}no" >&6
50116fi
50117
50118 cppunit_version_min=1.8.0
50119
50120 echo "$as_me:$LINENO: checking for Cppunit - version >= $cppunit_version_min" >&5
50121echo $ECHO_N "checking for Cppunit - version >= $cppunit_version_min... $ECHO_C" >&6
50122 no_cppunit=""
50123 if test "$CPPUNIT_CONFIG" = "no" ; then
3ecd9f92
MW
50124 echo "$as_me:$LINENO: result: no" >&5
50125echo "${ECHO_T}no" >&6
a848cd7e
SC
50126 no_cppunit=yes
50127 else
50128 CPPUNIT_CFLAGS=`$CPPUNIT_CONFIG --cflags`
50129 CPPUNIT_LIBS=`$CPPUNIT_CONFIG --libs`
50130 cppunit_version=`$CPPUNIT_CONFIG --version`
50131
50132 cppunit_major_version=`echo $cppunit_version | \
50133 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
50134 cppunit_minor_version=`echo $cppunit_version | \
50135 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
50136 cppunit_micro_version=`echo $cppunit_version | \
50137 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
50138
50139 cppunit_major_min=`echo $cppunit_version_min | \
50140 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
50141 cppunit_minor_min=`echo $cppunit_version_min | \
50142 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
50143 cppunit_micro_min=`echo $cppunit_version_min | \
50144 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
50145
50146 cppunit_version_proper=`expr \
50147 $cppunit_major_version \> $cppunit_major_min \| \
50148 $cppunit_major_version \= $cppunit_major_min \& \
50149 $cppunit_minor_version \> $cppunit_minor_min \| \
50150 $cppunit_major_version \= $cppunit_major_min \& \
50151 $cppunit_minor_version \= $cppunit_minor_min \& \
50152 $cppunit_micro_version \>= $cppunit_micro_min `
50153
50154 if test "$cppunit_version_proper" = "1" ; then
50155 echo "$as_me:$LINENO: result: $cppunit_major_version.$cppunit_minor_version.$cppunit_micro_version" >&5
50156echo "${ECHO_T}$cppunit_major_version.$cppunit_minor_version.$cppunit_micro_version" >&6
50157 else
50158 echo "$as_me:$LINENO: result: no" >&5
50159echo "${ECHO_T}no" >&6
50160 no_cppunit=yes
50161 fi
50162 fi
50163
50164 if test "x$no_cppunit" = x ; then
c2218763 50165 SUBDIRS="$SUBDIRS tests"
a848cd7e
SC
50166 else
50167 CPPUNIT_CFLAGS=""
50168 CPPUNIT_LIBS=""
c2218763 50169 :
a848cd7e
SC
50170 fi
50171
50172
50173
50174
50175
50176for subdir in `echo $SUBDIRS`; do
50177 if test -d ${srcdir}/${subdir} ; then
50178 if test "$wxUSE_GUI" = "yes"; then
50179 if test ${subdir} = "samples"; then
50180 makefiles="samples/Makefile.in $makefiles"
50181 for sample in `echo $SAMPLES_SUBDIRS`; do
50182 if test -d $srcdir/samples/$sample; then
50183 makefiles="samples/$sample/Makefile.in $makefiles"
50184 fi
50185 done
9c112555
MW
50186 else
50187 disabled_var=DISABLED_`echo $subdir | tr [a-z] [A-Z]`;
50188 eval "disabled=\$$disabled_var"
50189 disabled=/`echo X $disabled | sed 's@ @/|/@g'`/
50190 makefiles=`(cd $srcdir ; find $subdir -name Makefile.in) | egrep -v "$disabled"`
a848cd7e
SC
50191 fi
50192 else if test ${subdir} = "samples"; then
50193 makefiles="samples/Makefile.in samples/console/Makefile.in"
50194 elif test ${subdir} = "utils"; then
6537ccf8
VS
50195 makefiles=""
50196 for util in HelpGen tex2rtf ; do
50197 if test -d $srcdir/utils/$util ; then
50198 makefiles="utils/$util/Makefile.in \
50199 utils/$util/src/Makefile.in \
50200 $makefiles"
50201 fi
50202 done
a848cd7e
SC
50203 else makefiles=`(cd $srcdir ; find $subdir -name Makefile.in)`
50204 fi
50205 fi
50206
50207 for mkin in $makefiles ; do
50208 mk=`echo $mkin | sed 's/Makefile\.in/Makefile/g'`
50209 ac_config_files="$ac_config_files $mk"
50210
50211 done
50212 fi
50213done
1c14217d 50214fi
a848cd7e
SC
50215cat >confcache <<\_ACEOF
50216# This file is a shell script that caches the results of configure
50217# tests run on this system so they can be shared between configure
50218# scripts and configure runs, see configure's option --config-cache.
50219# It is not useful on other systems. If it contains results you don't
50220# want to keep, you may remove or edit it.
50221#
50222# config.status only pays attention to the cache file if you give it
50223# the --recheck option to rerun configure.
50224#
50225# `ac_cv_env_foo' variables (set or unset) will be overridden when
50226# loading this file, other *unset* `ac_cv_foo' will be assigned the
50227# following values.
50228
50229_ACEOF
50230
50231# The following way of writing the cache mishandles newlines in values,
50232# but we know of no workaround that is simple, portable, and efficient.
50233# So, don't put newlines in cache variables' values.
50234# Ultrix sh set writes to stderr and can't be redirected directly,
50235# and sets the high bit in the cache file unless we assign to the vars.
50236{
50237 (set) 2>&1 |
50238 case `(ac_space=' '; set | grep ac_space) 2>&1` in
50239 *ac_space=\ *)
50240 # `set' does not quote correctly, so add quotes (double-quote
50241 # substitution turns \\\\ into \\, and sed turns \\ into \).
50242 sed -n \
ac1cb8d3
VS
50243 "s/'/'\\\\''/g;
50244 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
a848cd7e
SC
50245 ;;
50246 *)
50247 # `set' quotes correctly as required by POSIX, so do not add quotes.
50248 sed -n \
ac1cb8d3 50249 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
a848cd7e
SC
50250 ;;
50251 esac;
50252} |
50253 sed '
50254 t clear
50255 : clear
50256 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
50257 t end
50258 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
50259 : end' >>confcache
50260if diff $cache_file confcache >/dev/null 2>&1; then :; else
50261 if test -w $cache_file; then
50262 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
50263 cat confcache >$cache_file
50264 else
50265 echo "not updating unwritable cache $cache_file"
50266 fi
50267fi
50268rm -f confcache
50269
50270test "x$prefix" = xNONE && prefix=$ac_default_prefix
50271# Let make expand exec_prefix.
50272test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
50273
50274# VPATH may cause trouble with some makes, so we remove $(srcdir),
50275# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
50276# trailing colons and then remove the whole line if VPATH becomes empty
50277# (actually we leave an empty line to preserve line numbers).
50278if test "x$srcdir" = x.; then
ac1cb8d3 50279 ac_vpsub='/^[ ]*VPATH[ ]*=/{
a848cd7e
SC
50280s/:*\$(srcdir):*/:/;
50281s/:*\${srcdir}:*/:/;
50282s/:*@srcdir@:*/:/;
ac1cb8d3 50283s/^\([^=]*=[ ]*\):*/\1/;
a848cd7e 50284s/:*$//;
ac1cb8d3 50285s/^[^=]*=[ ]*$//;
a848cd7e
SC
50286}'
50287fi
50288
50289DEFS=-DHAVE_CONFIG_H
50290
50291ac_libobjs=
50292ac_ltlibobjs=
50293for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
50294 # 1. Remove the extension, and $U if already installed.
50295 ac_i=`echo "$ac_i" |
ac1cb8d3 50296 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
a848cd7e
SC
50297 # 2. Add them.
50298 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
50299 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
50300done
50301LIBOBJS=$ac_libobjs
50302
50303LTLIBOBJS=$ac_ltlibobjs
50304
50305
50306
50307: ${CONFIG_STATUS=./config.status}
50308ac_clean_files_save=$ac_clean_files
50309ac_clean_files="$ac_clean_files $CONFIG_STATUS"
50310{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
50311echo "$as_me: creating $CONFIG_STATUS" >&6;}
50312cat >$CONFIG_STATUS <<_ACEOF
50313#! $SHELL
50314# Generated by $as_me.
50315# Run this file to recreate the current configuration.
50316# Compiler output produced by configure, useful for debugging
50317# configure, is in config.log if it exists.
50318
50319debug=false
50320ac_cs_recheck=false
50321ac_cs_silent=false
50322SHELL=\${CONFIG_SHELL-$SHELL}
50323_ACEOF
50324
50325cat >>$CONFIG_STATUS <<\_ACEOF
50326## --------------------- ##
50327## M4sh Initialization. ##
50328## --------------------- ##
50329
50330# Be Bourne compatible
50331if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
50332 emulate sh
50333 NULLCMD=:
50334 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
50335 # is contrary to our usage. Disable this feature.
50336 alias -g '${1+"$@"}'='"$@"'
50337elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
50338 set -o posix
50339fi
ac1cb8d3 50340DUALCASE=1; export DUALCASE # for MKS sh
a848cd7e
SC
50341
50342# Support unset when possible.
ac1cb8d3 50343if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
a848cd7e
SC
50344 as_unset=unset
50345else
50346 as_unset=false
50347fi
50348
50349
50350# Work around bugs in pre-3.0 UWIN ksh.
50351$as_unset ENV MAIL MAILPATH
50352PS1='$ '
50353PS2='> '
50354PS4='+ '
50355
50356# NLS nuisances.
50357for as_var in \
50358 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
50359 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
50360 LC_TELEPHONE LC_TIME
50361do
ac1cb8d3 50362 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
a848cd7e
SC
50363 eval $as_var=C; export $as_var
50364 else
50365 $as_unset $as_var
50366 fi
50367done
50368
50369# Required to use basename.
50370if expr a : '\(a\)' >/dev/null 2>&1; then
50371 as_expr=expr
50372else
50373 as_expr=false
50374fi
50375
50376if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
50377 as_basename=basename
50378else
50379 as_basename=false
50380fi
50381
50382
50383# Name of the executable.
50384as_me=`$as_basename "$0" ||
50385$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
50386 X"$0" : 'X\(//\)$' \| \
50387 X"$0" : 'X\(/\)$' \| \
50388 . : '\(.\)' 2>/dev/null ||
50389echo X/"$0" |
50390 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
50391 /^X\/\(\/\/\)$/{ s//\1/; q; }
50392 /^X\/\(\/\).*/{ s//\1/; q; }
50393 s/.*/./; q'`
50394
50395
50396# PATH needs CR, and LINENO needs CR and PATH.
50397# Avoid depending upon Character Ranges.
50398as_cr_letters='abcdefghijklmnopqrstuvwxyz'
50399as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
50400as_cr_Letters=$as_cr_letters$as_cr_LETTERS
50401as_cr_digits='0123456789'
50402as_cr_alnum=$as_cr_Letters$as_cr_digits
50403
50404# The user is always right.
50405if test "${PATH_SEPARATOR+set}" != set; then
50406 echo "#! /bin/sh" >conf$$.sh
50407 echo "exit 0" >>conf$$.sh
50408 chmod +x conf$$.sh
50409 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
50410 PATH_SEPARATOR=';'
50411 else
50412 PATH_SEPARATOR=:
50413 fi
50414 rm -f conf$$.sh
50415fi
50416
50417
50418 as_lineno_1=$LINENO
50419 as_lineno_2=$LINENO
50420 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
50421 test "x$as_lineno_1" != "x$as_lineno_2" &&
50422 test "x$as_lineno_3" = "x$as_lineno_2" || {
50423 # Find who we are. Look in the path if we contain no path at all
50424 # relative or not.
50425 case $0 in
50426 *[\\/]* ) as_myself=$0 ;;
50427 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
50428for as_dir in $PATH
50429do
50430 IFS=$as_save_IFS
50431 test -z "$as_dir" && as_dir=.
50432 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
50433done
50434
50435 ;;
50436 esac
50437 # We did not find ourselves, most probably we were run as `sh COMMAND'
50438 # in which case we are not to be found in the path.
50439 if test "x$as_myself" = x; then
50440 as_myself=$0
50441 fi
50442 if test ! -f "$as_myself"; then
50443 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
50444echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
50445 { (exit 1); exit 1; }; }
50446 fi
50447 case $CONFIG_SHELL in
50448 '')
50449 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
50450for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
50451do
50452 IFS=$as_save_IFS
50453 test -z "$as_dir" && as_dir=.
50454 for as_base in sh bash ksh sh5; do
50455 case $as_dir in
50456 /*)
50457 if ("$as_dir/$as_base" -c '
50458 as_lineno_1=$LINENO
50459 as_lineno_2=$LINENO
50460 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
50461 test "x$as_lineno_1" != "x$as_lineno_2" &&
50462 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
50463 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
50464 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
50465 CONFIG_SHELL=$as_dir/$as_base
50466 export CONFIG_SHELL
50467 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
50468 fi;;
50469 esac
50470 done
50471done
50472;;
50473 esac
50474
50475 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
50476 # uniformly replaced by the line number. The first 'sed' inserts a
50477 # line-number line before each line; the second 'sed' does the real
50478 # work. The second script uses 'N' to pair each line-number line
50479 # with the numbered line, and appends trailing '-' during
50480 # substitution so that $LINENO is not a special case at line end.
50481 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
50482 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
50483 sed '=' <$as_myself |
50484 sed '
50485 N
50486 s,$,-,
50487 : loop
50488 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
50489 t loop
50490 s,-$,,
50491 s,^['$as_cr_digits']*\n,,
50492 ' >$as_me.lineno &&
50493 chmod +x $as_me.lineno ||
50494 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
50495echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
50496 { (exit 1); exit 1; }; }
50497
50498 # Don't try to exec as it changes $[0], causing all sort of problems
50499 # (the dirname of $[0] is not the place where we might find the
50500 # original and so on. Autoconf is especially sensible to this).
50501 . ./$as_me.lineno
50502 # Exit status is that of the last command.
50503 exit
50504}
50505
50506
50507case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
50508 *c*,-n*) ECHO_N= ECHO_C='
50509' ECHO_T=' ' ;;
50510 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
50511 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
50512esac
50513
50514if expr a : '\(a\)' >/dev/null 2>&1; then
50515 as_expr=expr
50516else
50517 as_expr=false
50518fi
50519
50520rm -f conf$$ conf$$.exe conf$$.file
50521echo >conf$$.file
50522if ln -s conf$$.file conf$$ 2>/dev/null; then
50523 # We could just check for DJGPP; but this test a) works b) is more generic
50524 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
50525 if test -f conf$$.exe; then
50526 # Don't use ln at all; we don't have any links
50527 as_ln_s='cp -p'
50528 else
50529 as_ln_s='ln -s'
50530 fi
50531elif ln conf$$.file conf$$ 2>/dev/null; then
50532 as_ln_s=ln
50533else
50534 as_ln_s='cp -p'
50535fi
50536rm -f conf$$ conf$$.exe conf$$.file
50537
50538if mkdir -p . 2>/dev/null; then
50539 as_mkdir_p=:
50540else
ac1cb8d3 50541 test -d ./-p && rmdir ./-p
a848cd7e
SC
50542 as_mkdir_p=false
50543fi
50544
50545as_executable_p="test -f"
50546
50547# Sed expression to map a string onto a valid CPP name.
ac1cb8d3 50548as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
a848cd7e
SC
50549
50550# Sed expression to map a string onto a valid variable name.
ac1cb8d3 50551as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
a848cd7e
SC
50552
50553
50554# IFS
50555# We need space, tab and new line, in precisely that order.
50556as_nl='
50557'
50558IFS=" $as_nl"
50559
50560# CDPATH.
50561$as_unset CDPATH
50562
50563exec 6>&1
50564
50565# Open the log real soon, to keep \$[0] and so on meaningful, and to
50566# report actual input values of CONFIG_FILES etc. instead of their
50567# values after options handling. Logging --version etc. is OK.
50568exec 5>>config.log
50569{
50570 echo
50571 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
50572## Running $as_me. ##
50573_ASBOX
50574} >&5
50575cat >&5 <<_CSEOF
50576
f1e3914f 50577This file was extended by wxWidgets $as_me 2.7.1, which was
ac1cb8d3 50578generated by GNU Autoconf 2.59. Invocation command line was
a848cd7e
SC
50579
50580 CONFIG_FILES = $CONFIG_FILES
50581 CONFIG_HEADERS = $CONFIG_HEADERS
50582 CONFIG_LINKS = $CONFIG_LINKS
50583 CONFIG_COMMANDS = $CONFIG_COMMANDS
50584 $ $0 $@
50585
50586_CSEOF
50587echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
50588echo >&5
50589_ACEOF
50590
50591# Files that config.status was made for.
50592if test -n "$ac_config_files"; then
50593 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
50594fi
50595
50596if test -n "$ac_config_headers"; then
50597 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
50598fi
50599
50600if test -n "$ac_config_links"; then
50601 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
50602fi
50603
50604if test -n "$ac_config_commands"; then
50605 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
50606fi
50607
50608cat >>$CONFIG_STATUS <<\_ACEOF
50609
50610ac_cs_usage="\
50611\`$as_me' instantiates files from templates according to the
50612current configuration.
50613
50614Usage: $0 [OPTIONS] [FILE]...
50615
50616 -h, --help print this help, then exit
50617 -V, --version print version number, then exit
50618 -q, --quiet do not print progress messages
50619 -d, --debug don't remove temporary files
50620 --recheck update $as_me by reconfiguring in the same conditions
50621 --file=FILE[:TEMPLATE]
ac1cb8d3 50622 instantiate the configuration file FILE
a848cd7e 50623 --header=FILE[:TEMPLATE]
ac1cb8d3 50624 instantiate the configuration header FILE
a848cd7e
SC
50625
50626Configuration files:
50627$config_files
50628
50629Configuration headers:
50630$config_headers
50631
50632Configuration commands:
50633$config_commands
50634
50635Report bugs to <bug-autoconf@gnu.org>."
50636_ACEOF
50637
50638cat >>$CONFIG_STATUS <<_ACEOF
50639ac_cs_version="\\
f1e3914f 50640wxWidgets config.status 2.7.1
ac1cb8d3 50641configured by $0, generated by GNU Autoconf 2.59,
a848cd7e
SC
50642 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
50643
ac1cb8d3 50644Copyright (C) 2003 Free Software Foundation, Inc.
a848cd7e
SC
50645This config.status script is free software; the Free Software Foundation
50646gives unlimited permission to copy, distribute and modify it."
50647srcdir=$srcdir
50648INSTALL="$INSTALL"
50649_ACEOF
50650
50651cat >>$CONFIG_STATUS <<\_ACEOF
50652# If no file are specified by the user, then we need to provide default
50653# value. By we need to know if files were specified by the user.
50654ac_need_defaults=:
50655while test $# != 0
50656do
50657 case $1 in
50658 --*=*)
50659 ac_option=`expr "x$1" : 'x\([^=]*\)='`
50660 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
50661 ac_shift=:
50662 ;;
50663 -*)
50664 ac_option=$1
50665 ac_optarg=$2
50666 ac_shift=shift
50667 ;;
50668 *) # This is not an option, so the user has probably given explicit
50669 # arguments.
50670 ac_option=$1
50671 ac_need_defaults=false;;
50672 esac
50673
50674 case $ac_option in
50675 # Handling of the options.
50676_ACEOF
50677cat >>$CONFIG_STATUS <<\_ACEOF
50678 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
50679 ac_cs_recheck=: ;;
50680 --version | --vers* | -V )
50681 echo "$ac_cs_version"; exit 0 ;;
50682 --he | --h)
50683 # Conflict between --help and --header
50684 { { echo "$as_me:$LINENO: error: ambiguous option: $1
50685Try \`$0 --help' for more information." >&5
50686echo "$as_me: error: ambiguous option: $1
50687Try \`$0 --help' for more information." >&2;}
50688 { (exit 1); exit 1; }; };;
50689 --help | --hel | -h )
50690 echo "$ac_cs_usage"; exit 0 ;;
50691 --debug | --d* | -d )
50692 debug=: ;;
50693 --file | --fil | --fi | --f )
50694 $ac_shift
50695 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
50696 ac_need_defaults=false;;
50697 --header | --heade | --head | --hea )
50698 $ac_shift
50699 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
50700 ac_need_defaults=false;;
50701 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
50702 | -silent | --silent | --silen | --sile | --sil | --si | --s)
50703 ac_cs_silent=: ;;
50704
50705 # This is an error.
50706 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
50707Try \`$0 --help' for more information." >&5
50708echo "$as_me: error: unrecognized option: $1
50709Try \`$0 --help' for more information." >&2;}
50710 { (exit 1); exit 1; }; } ;;
50711
50712 *) ac_config_targets="$ac_config_targets $1" ;;
50713
50714 esac
50715 shift
50716done
50717
50718ac_configure_extra_args=
50719
50720if $ac_cs_silent; then
50721 exec 6>/dev/null
50722 ac_configure_extra_args="$ac_configure_extra_args --silent"
50723fi
50724
50725_ACEOF
50726cat >>$CONFIG_STATUS <<_ACEOF
50727if \$ac_cs_recheck; then
50728 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
50729 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
50730fi
50731
50732_ACEOF
50733
50734cat >>$CONFIG_STATUS <<_ACEOF
50735#
50736# INIT-COMMANDS section.
50737#
50738
5c60e845
MW
50739
50740 CPP="$CPP"
50741 infile="$srcdir/include/wx/msw/genrcdefs.h"
50742 outdir="lib/wx/include/$TOOLCHAIN_FULLNAME/wx/msw"
50743
50744
ceec2216
RL
50745 TOOLCHAIN_FULLNAME="${TOOLCHAIN_FULLNAME}"
50746 TOOLCHAIN_FULLNAME="${TOOLCHAIN_FULLNAME}"
50747 TOOLCHAIN_FULLNAME="${TOOLCHAIN_FULLNAME}"
50748 LN_S="${LN_S}"
a848cd7e
SC
50749
50750
50751_ACEOF
50752
50753
50754
50755cat >>$CONFIG_STATUS <<\_ACEOF
50756for ac_config_target in $ac_config_targets
50757do
50758 case "$ac_config_target" in
50759 # Handling of arguments.
ceec2216
RL
50760 "lib/wx/config/${TOOLCHAIN_FULLNAME}" ) CONFIG_FILES="$CONFIG_FILES lib/wx/config/${TOOLCHAIN_FULLNAME}:wx-config.in" ;;
50761 "lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}" ) CONFIG_FILES="$CONFIG_FILES lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}:wx-config-inplace.in" ;;
a848cd7e
SC
50762 "version-script" ) CONFIG_FILES="$CONFIG_FILES version-script" ;;
50763 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
50764 "$mk" ) CONFIG_FILES="$CONFIG_FILES $mk" ;;
5c60e845 50765 "rcdefs.h" ) CONFIG_COMMANDS="$CONFIG_COMMANDS rcdefs.h" ;;
ceec2216
RL
50766 "wx-config" ) CONFIG_COMMANDS="$CONFIG_COMMANDS wx-config" ;;
50767 "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
50768 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
50769echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
50770 { (exit 1); exit 1; }; };;
50771 esac
50772done
50773
50774# If the user did not use the arguments to specify the items to instantiate,
50775# then the envvar interface is used. Set only those that are not.
50776# We use the long form for the default assignment because of an extremely
50777# bizarre bug on SunOS 4.1.3.
50778if $ac_need_defaults; then
50779 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
50780 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
50781 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
50782fi
50783
50784# Have a temporary directory for convenience. Make it in the build tree
50785# simply because there is no reason to put it here, and in addition,
50786# creating and moving files from /tmp can sometimes cause problems.
50787# Create a temporary directory, and hook for its removal unless debugging.
50788$debug ||
50789{
50790 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
50791 trap '{ (exit 1); exit 1; }' 1 2 13 15
50792}
50793
50794# Create a (secure) tmp directory for tmp files.
50795
50796{
50797 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
50798 test -n "$tmp" && test -d "$tmp"
50799} ||
50800{
50801 tmp=./confstat$$-$RANDOM
50802 (umask 077 && mkdir $tmp)
50803} ||
50804{
50805 echo "$me: cannot create a temporary directory in ." >&2
50806 { (exit 1); exit 1; }
50807}
50808
50809_ACEOF
50810
50811cat >>$CONFIG_STATUS <<_ACEOF
50812
50813#
50814# CONFIG_FILES section.
50815#
50816
50817# No need to generate the scripts if there are no CONFIG_FILES.
50818# This happens for instance when ./config.status config.h
50819if test -n "\$CONFIG_FILES"; then
50820 # Protect against being on the right side of a sed subst in config.status.
50821 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
50822 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
50823s,@SHELL@,$SHELL,;t t
50824s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
50825s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
50826s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
50827s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
50828s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
50829s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
50830s,@exec_prefix@,$exec_prefix,;t t
50831s,@prefix@,$prefix,;t t
50832s,@program_transform_name@,$program_transform_name,;t t
50833s,@bindir@,$bindir,;t t
50834s,@sbindir@,$sbindir,;t t
50835s,@libexecdir@,$libexecdir,;t t
50836s,@datadir@,$datadir,;t t
50837s,@sysconfdir@,$sysconfdir,;t t
50838s,@sharedstatedir@,$sharedstatedir,;t t
50839s,@localstatedir@,$localstatedir,;t t
50840s,@libdir@,$libdir,;t t
50841s,@includedir@,$includedir,;t t
50842s,@oldincludedir@,$oldincludedir,;t t
50843s,@infodir@,$infodir,;t t
50844s,@mandir@,$mandir,;t t
50845s,@build_alias@,$build_alias,;t t
50846s,@host_alias@,$host_alias,;t t
50847s,@target_alias@,$target_alias,;t t
50848s,@DEFS@,$DEFS,;t t
50849s,@ECHO_C@,$ECHO_C,;t t
50850s,@ECHO_N@,$ECHO_N,;t t
50851s,@ECHO_T@,$ECHO_T,;t t
50852s,@LIBS@,$LIBS,;t t
50853s,@build@,$build,;t t
50854s,@build_cpu@,$build_cpu,;t t
50855s,@build_vendor@,$build_vendor,;t t
50856s,@build_os@,$build_os,;t t
50857s,@host@,$host,;t t
50858s,@host_cpu@,$host_cpu,;t t
50859s,@host_vendor@,$host_vendor,;t t
50860s,@host_os@,$host_os,;t t
50861s,@target@,$target,;t t
50862s,@target_cpu@,$target_cpu,;t t
50863s,@target_vendor@,$target_vendor,;t t
50864s,@target_os@,$target_os,;t t
50865s,@CC@,$CC,;t t
50866s,@CFLAGS@,$CFLAGS,;t t
50867s,@LDFLAGS@,$LDFLAGS,;t t
50868s,@CPPFLAGS@,$CPPFLAGS,;t t
50869s,@ac_ct_CC@,$ac_ct_CC,;t t
50870s,@EXEEXT@,$EXEEXT,;t t
50871s,@OBJEXT@,$OBJEXT,;t t
50872s,@CPP@,$CPP,;t t
50873s,@EGREP@,$EGREP,;t t
50874s,@CXX@,$CXX,;t t
50875s,@CXXFLAGS@,$CXXFLAGS,;t t
50876s,@ac_ct_CXX@,$ac_ct_CXX,;t t
50877s,@RANLIB@,$RANLIB,;t t
50878s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
50879s,@AR@,$AR,;t t
8c80d384 50880s,@ac_ct_AR@,$ac_ct_AR,;t t
a848cd7e
SC
50881s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
50882s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
50883s,@INSTALL_DATA@,$INSTALL_DATA,;t t
50884s,@STRIP@,$STRIP,;t t
8c80d384 50885s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
8ced02f6
DE
50886s,@WINDRES@,$WINDRES,;t t
50887s,@ac_ct_WINDRES@,$ac_ct_WINDRES,;t t
8c80d384
DE
50888s,@DLLTOOL@,$DLLTOOL,;t t
50889s,@ac_ct_DLLTOOL@,$ac_ct_DLLTOOL,;t t
a848cd7e
SC
50890s,@IF_GNU_MAKE@,$IF_GNU_MAKE,;t t
50891s,@LN_S@,$LN_S,;t t
50892s,@CXXCPP@,$CXXCPP,;t t
50893s,@subdirs@,$subdirs,;t t
50894s,@PKG_CONFIG@,$PKG_CONFIG,;t t
50895s,@GTK_CFLAGS@,$GTK_CFLAGS,;t t
50896s,@GTK_LIBS@,$GTK_LIBS,;t t
50897s,@GTK_CONFIG@,$GTK_CONFIG,;t t
b3c86150
VS
50898s,@ac_pt_PKG_CONFIG@,$ac_pt_PKG_CONFIG,;t t
50899s,@DIRECTFB_CFLAGS@,$DIRECTFB_CFLAGS,;t t
50900s,@DIRECTFB_LIBS@,$DIRECTFB_LIBS,;t t
a848cd7e
SC
50901s,@X_CFLAGS@,$X_CFLAGS,;t t
50902s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
50903s,@X_LIBS@,$X_LIBS,;t t
50904s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
50905s,@PANGOX_CFLAGS@,$PANGOX_CFLAGS,;t t
50906s,@PANGOX_LIBS@,$PANGOX_LIBS,;t t
d1c38808
VZ
50907s,@PANGOFT2_CFLAGS@,$PANGOFT2_CFLAGS,;t t
50908s,@PANGOFT2_LIBS@,$PANGOFT2_LIBS,;t t
a848cd7e
SC
50909s,@PANGOXFT_CFLAGS@,$PANGOXFT_CFLAGS,;t t
50910s,@PANGOXFT_LIBS@,$PANGOXFT_LIBS,;t t
8ced02f6 50911s,@REZ@,$REZ,;t t
a848cd7e
SC
50912s,@DEREZ@,$DEREZ,;t t
50913s,@SETFILE@,$SETFILE,;t t
50914s,@LIBICONV@,$LIBICONV,;t t
50915s,@EXTRALIBS_ESD@,$EXTRALIBS_ESD,;t t
50916s,@SDL_CONFIG@,$SDL_CONFIG,;t t
50917s,@SDL_CFLAGS@,$SDL_CFLAGS,;t t
50918s,@SDL_LIBS@,$SDL_LIBS,;t t
d1c38808
VZ
50919s,@LIBGNOMEPRINTUI_CFLAGS@,$LIBGNOMEPRINTUI_CFLAGS,;t t
50920s,@LIBGNOMEPRINTUI_LIBS@,$LIBGNOMEPRINTUI_LIBS,;t t
2b850ae1
RR
50921s,@GNOMEVFS_CFLAGS@,$GNOMEVFS_CFLAGS,;t t
50922s,@GNOMEVFS_LIBS@,$GNOMEVFS_LIBS,;t t
3565d135
RR
50923s,@HILDON_CFLAGS@,$HILDON_CFLAGS,;t t
50924s,@HILDON_LIBS@,$HILDON_LIBS,;t t
64b75e64
RD
50925s,@CAIRO_CFLAGS@,$CAIRO_CFLAGS,;t t
50926s,@CAIRO_LIBS@,$CAIRO_LIBS,;t t
f10e38c4
VZ
50927s,@GST_CFLAGS@,$GST_CFLAGS,;t t
50928s,@GST_LIBS@,$GST_LIBS,;t t
a848cd7e
SC
50929s,@CORE_BASE_LIBS@,$CORE_BASE_LIBS,;t t
50930s,@CORE_GUI_LIBS@,$CORE_GUI_LIBS,;t t
50931s,@wxUSE_ZLIB@,$wxUSE_ZLIB,;t t
50932s,@wxUSE_REGEX@,$wxUSE_REGEX,;t t
50933s,@wxUSE_EXPAT@,$wxUSE_EXPAT,;t t
50934s,@wxUSE_ODBC@,$wxUSE_ODBC,;t t
50935s,@wxUSE_LIBJPEG@,$wxUSE_LIBJPEG,;t t
50936s,@wxUSE_LIBPNG@,$wxUSE_LIBPNG,;t t
50937s,@wxUSE_LIBTIFF@,$wxUSE_LIBTIFF,;t t
50938s,@VENDOR@,$VENDOR,;t t
50939s,@OFFICIAL_BUILD@,$OFFICIAL_BUILD,;t t
ceec2216
RL
50940s,@WX_FLAVOUR@,$WX_FLAVOUR,;t t
50941s,@WX_LIB_FLAVOUR@,$WX_LIB_FLAVOUR,;t t
a848cd7e
SC
50942s,@WXUNIV@,$WXUNIV,;t t
50943s,@MONOLITHIC@,$MONOLITHIC,;t t
50944s,@USE_PLUGINS@,$USE_PLUGINS,;t t
50945s,@EXTRALIBS@,$EXTRALIBS,;t t
50946s,@EXTRALIBS_XML@,$EXTRALIBS_XML,;t t
50947s,@EXTRALIBS_HTML@,$EXTRALIBS_HTML,;t t
50948s,@EXTRALIBS_ODBC@,$EXTRALIBS_ODBC,;t t
50949s,@EXTRALIBS_GUI@,$EXTRALIBS_GUI,;t t
50950s,@EXTRALIBS_OPENGL@,$EXTRALIBS_OPENGL,;t t
50951s,@EXTRALIBS_SDL@,$EXTRALIBS_SDL,;t t
50952s,@WITH_PLUGIN_SDL@,$WITH_PLUGIN_SDL,;t t
d1c38808 50953s,@EXTRALIBS_GNOMEPRINT@,$EXTRALIBS_GNOMEPRINT,;t t
2b850ae1 50954s,@EXTRALIBS_GNOMEVFS@,$EXTRALIBS_GNOMEVFS,;t t
3565d135 50955s,@EXTRALIBS_HILDON@,$EXTRALIBS_HILDON,;t t
a848cd7e
SC
50956s,@UNICODE@,$UNICODE,;t t
50957s,@BUILD@,$BUILD,;t t
50958s,@DEBUG_INFO@,$DEBUG_INFO,;t t
50959s,@DEBUG_FLAG@,$DEBUG_FLAG,;t t
a848cd7e
SC
50960s,@TOOLKIT_LOWERCASE@,$TOOLKIT_LOWERCASE,;t t
50961s,@TOOLKIT_VERSION@,$TOOLKIT_VERSION,;t t
50962s,@SAMPLES_RPATH_FLAG@,$SAMPLES_RPATH_FLAG,;t t
50963s,@SAMPLES_RPATH_POSTLINK@,$SAMPLES_RPATH_POSTLINK,;t t
50964s,@HOST_SUFFIX@,$HOST_SUFFIX,;t t
50965s,@CPPUNIT_CFLAGS@,$CPPUNIT_CFLAGS,;t t
50966s,@CPPUNIT_LIBS@,$CPPUNIT_LIBS,;t t
50967s,@SET_MAKE@,$SET_MAKE,;t t
50968s,@MAKE_SET@,$MAKE_SET,;t t
a848cd7e
SC
50969s,@NM@,$NM,;t t
50970s,@ac_ct_NM@,$ac_ct_NM,;t t
50971s,@INSTALL_DIR@,$INSTALL_DIR,;t t
50972s,@LDFLAGS_GUI@,$LDFLAGS_GUI,;t t
50973s,@PLATFORM_UNIX@,$PLATFORM_UNIX,;t t
50974s,@PLATFORM_WIN32@,$PLATFORM_WIN32,;t t
50975s,@PLATFORM_MSDOS@,$PLATFORM_MSDOS,;t t
50976s,@PLATFORM_MAC@,$PLATFORM_MAC,;t t
1e9e8aba 50977s,@PLATFORM_MACOS@,$PLATFORM_MACOS,;t t
a848cd7e
SC
50978s,@PLATFORM_MACOSX@,$PLATFORM_MACOSX,;t t
50979s,@PLATFORM_OS2@,$PLATFORM_OS2,;t t
1e9e8aba 50980s,@PLATFORM_BEOS@,$PLATFORM_BEOS,;t t
a848cd7e
SC
50981s,@SO_SUFFIX@,$SO_SUFFIX,;t t
50982s,@SO_SUFFIX_MODULE@,$SO_SUFFIX_MODULE,;t t
50983s,@DLLIMP_SUFFIX@,$DLLIMP_SUFFIX,;t t
50984s,@LIBPREFIX@,$LIBPREFIX,;t t
50985s,@LIBEXT@,$LIBEXT,;t t
50986s,@DLLPREFIX@,$DLLPREFIX,;t t
50987s,@DLLPREFIX_MODULE@,$DLLPREFIX_MODULE,;t t
810b94f0 50988s,@dlldir@,$dlldir,;t t
a848cd7e
SC
50989s,@AIX_CXX_LD@,$AIX_CXX_LD,;t t
50990s,@SHARED_LD_CC@,$SHARED_LD_CC,;t t
50991s,@SHARED_LD_CXX@,$SHARED_LD_CXX,;t t
50992s,@SHARED_LD_MODULE_CC@,$SHARED_LD_MODULE_CC,;t t
50993s,@SHARED_LD_MODULE_CXX@,$SHARED_LD_MODULE_CXX,;t t
50994s,@PIC_FLAG@,$PIC_FLAG,;t t
810b94f0 50995s,@WINDOWS_IMPLIB@,$WINDOWS_IMPLIB,;t t
a848cd7e
SC
50996s,@USE_SOVERSION@,$USE_SOVERSION,;t t
50997s,@USE_SOVERLINUX@,$USE_SOVERLINUX,;t t
50998s,@USE_SOVERSOLARIS@,$USE_SOVERSOLARIS,;t t
810b94f0 50999s,@USE_SOVERCYGWIN@,$USE_SOVERCYGWIN,;t t
a848cd7e
SC
51000s,@USE_MACVERSION@,$USE_MACVERSION,;t t
51001s,@USE_SOSYMLINKS@,$USE_SOSYMLINKS,;t t
51002s,@SONAME_FLAG@,$SONAME_FLAG,;t t
51003s,@DEPS_TRACKING@,$DEPS_TRACKING,;t t
51004s,@GCC_PCH@,$GCC_PCH,;t t
f10e38c4 51005s,@ICC_PCH@,$ICC_PCH,;t t
a848cd7e
SC
51006s,@COND_BUILD_DEBUG@,$COND_BUILD_DEBUG,;t t
51007s,@COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT@,$COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT,;t t
51008s,@COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT@,$COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT,;t t
51009s,@COND_BUILD_DEBUG_UNICODE_0@,$COND_BUILD_DEBUG_UNICODE_0,;t t
51010s,@COND_BUILD_DEBUG_UNICODE_1@,$COND_BUILD_DEBUG_UNICODE_1,;t t
51011s,@COND_BUILD_RELEASE@,$COND_BUILD_RELEASE,;t t
51012s,@COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT@,$COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT,;t t
51013s,@COND_BUILD_RELEASE_UNICODE_0@,$COND_BUILD_RELEASE_UNICODE_0,;t t
51014s,@COND_BUILD_RELEASE_UNICODE_1@,$COND_BUILD_RELEASE_UNICODE_1,;t t
51015s,@COND_DEBUG_FLAG_1@,$COND_DEBUG_FLAG_1,;t t
51016s,@COND_DEBUG_INFO_0@,$COND_DEBUG_INFO_0,;t t
51017s,@COND_DEBUG_INFO_1@,$COND_DEBUG_INFO_1,;t t
51018s,@COND_DEPS_TRACKING_0@,$COND_DEPS_TRACKING_0,;t t
51019s,@COND_DEPS_TRACKING_1@,$COND_DEPS_TRACKING_1,;t t
51020s,@COND_GCC_PCH_1@,$COND_GCC_PCH_1,;t t
f10e38c4 51021s,@COND_ICC_PCH_1@,$COND_ICC_PCH_1,;t t
a848cd7e
SC
51022s,@COND_MONOLITHIC_0@,$COND_MONOLITHIC_0,;t t
51023s,@COND_MONOLITHIC_0_SHARED_0@,$COND_MONOLITHIC_0_SHARED_0,;t t
3f60522a 51024s,@COND_MONOLITHIC_0_SHARED_0_USE_AUI_1@,$COND_MONOLITHIC_0_SHARED_0_USE_AUI_1,;t t
a848cd7e 51025s,@COND_MONOLITHIC_0_SHARED_0_USE_GUI_1@,$COND_MONOLITHIC_0_SHARED_0_USE_GUI_1,;t t
90970d69 51026s,@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 51027s,@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 51028s,@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 51029s,@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 51030s,@COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1@,$COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1,;t t
8b6682b9 51031s,@COND_MONOLITHIC_0_SHARED_0_USE_RICHTEXT_1@,$COND_MONOLITHIC_0_SHARED_0_USE_RICHTEXT_1,;t t
ceec2216 51032s,@COND_MONOLITHIC_0_SHARED_0_USE_XRC_1@,$COND_MONOLITHIC_0_SHARED_0_USE_XRC_1,;t t
a848cd7e 51033s,@COND_MONOLITHIC_0_SHARED_1@,$COND_MONOLITHIC_0_SHARED_1,;t t
3f60522a 51034s,@COND_MONOLITHIC_0_SHARED_1_USE_AUI_1@,$COND_MONOLITHIC_0_SHARED_1_USE_AUI_1,;t t
a848cd7e 51035s,@COND_MONOLITHIC_0_SHARED_1_USE_GUI_1@,$COND_MONOLITHIC_0_SHARED_1_USE_GUI_1,;t t
90970d69 51036s,@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 51037s,@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 51038s,@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 51039s,@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 51040s,@COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1@,$COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1,;t t
8b6682b9 51041s,@COND_MONOLITHIC_0_SHARED_1_USE_RICHTEXT_1@,$COND_MONOLITHIC_0_SHARED_1_USE_RICHTEXT_1,;t t
ceec2216 51042s,@COND_MONOLITHIC_0_SHARED_1_USE_XRC_1@,$COND_MONOLITHIC_0_SHARED_1_USE_XRC_1,;t t
e5efa97e 51043s,@COND_MONOLITHIC_0_USE_MEDIA_1@,$COND_MONOLITHIC_0_USE_MEDIA_1,;t t
a848cd7e
SC
51044s,@COND_MONOLITHIC_0_USE_ODBC_1@,$COND_MONOLITHIC_0_USE_ODBC_1,;t t
51045s,@COND_MONOLITHIC_1@,$COND_MONOLITHIC_1,;t t
51046s,@COND_MONOLITHIC_1_SHARED_0@,$COND_MONOLITHIC_1_SHARED_0,;t t
51047s,@COND_MONOLITHIC_1_SHARED_1@,$COND_MONOLITHIC_1_SHARED_1,;t t
51048s,@COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1@,$COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1,;t t
51049s,@COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1@,$COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1,;t t
eb730a0c 51050s,@COND_PLATFORM_MACOSX_0_USE_SOVERCYGWIN_0_USE_SOVERSION_1@,$COND_PLATFORM_MACOSX_0_USE_SOVERCYGWIN_0_USE_SOVERSION_1,;t t
a848cd7e
SC
51051s,@COND_PLATFORM_MACOSX_0_USE_SOVERSION_1@,$COND_PLATFORM_MACOSX_0_USE_SOVERSION_1,;t t
51052s,@COND_PLATFORM_MACOSX_1@,$COND_PLATFORM_MACOSX_1,;t t
a30f955f 51053s,@COND_PLATFORM_MACOSX_1_TOOLKIT_@,$COND_PLATFORM_MACOSX_1_TOOLKIT_,;t t
a848cd7e
SC
51054s,@COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA@,$COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA,;t t
51055s,@COND_PLATFORM_MACOSX_1_TOOLKIT_GTK@,$COND_PLATFORM_MACOSX_1_TOOLKIT_GTK,;t t
51056s,@COND_PLATFORM_MACOSX_1_TOOLKIT_MAC@,$COND_PLATFORM_MACOSX_1_TOOLKIT_MAC,;t t
fc480dc1 51057s,@COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1@,$COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1,;t t
1e9e8aba 51058s,@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
51059s,@COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF@,$COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF,;t t
51060s,@COND_PLATFORM_MACOSX_1_TOOLKIT_X11@,$COND_PLATFORM_MACOSX_1_TOOLKIT_X11,;t t
a848cd7e
SC
51061s,@COND_PLATFORM_MACOSX_1_USE_GUI_1@,$COND_PLATFORM_MACOSX_1_USE_GUI_1,;t t
51062s,@COND_PLATFORM_MACOSX_1_USE_SOVERSION_1@,$COND_PLATFORM_MACOSX_1_USE_SOVERSION_1,;t t
b48a2016 51063s,@COND_PLATFORM_MACOS_1@,$COND_PLATFORM_MACOS_1,;t t
083508af 51064s,@COND_PLATFORM_MAC_1@,$COND_PLATFORM_MAC_1,;t t
e5efa97e 51065s,@COND_PLATFORM_MSDOS_0@,$COND_PLATFORM_MSDOS_0,;t t
83d8eb47 51066s,@COND_PLATFORM_MSDOS_1@,$COND_PLATFORM_MSDOS_1,;t t
a848cd7e
SC
51067s,@COND_PLATFORM_OS2_1@,$COND_PLATFORM_OS2_1,;t t
51068s,@COND_PLATFORM_UNIX_0@,$COND_PLATFORM_UNIX_0,;t t
51069s,@COND_PLATFORM_UNIX_1@,$COND_PLATFORM_UNIX_1,;t t
51070s,@COND_PLATFORM_UNIX_1_USE_GUI_1@,$COND_PLATFORM_UNIX_1_USE_GUI_1,;t t
51071s,@COND_PLATFORM_UNIX_1_USE_PLUGINS_0@,$COND_PLATFORM_UNIX_1_USE_PLUGINS_0,;t t
51072s,@COND_PLATFORM_WIN32_0@,$COND_PLATFORM_WIN32_0,;t t
51073s,@COND_PLATFORM_WIN32_1@,$COND_PLATFORM_WIN32_1,;t t
51074s,@COND_SHARED_0@,$COND_SHARED_0,;t t
083508af
MW
51075s,@COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0@,$COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0,;t t
51076s,@COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0@,$COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0,;t t
51077s,@COND_SHARED_0_TOOLKIT_PM_WXUNIV_0@,$COND_SHARED_0_TOOLKIT_PM_WXUNIV_0,;t t
a848cd7e
SC
51078s,@COND_SHARED_0_USE_GUI_1_USE_OPENGL_1@,$COND_SHARED_0_USE_GUI_1_USE_OPENGL_1,;t t
51079s,@COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN@,$COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN,;t t
51080s,@COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN@,$COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN,;t t
51081s,@COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN@,$COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN,;t t
083508af 51082s,@COND_SHARED_0_USE_XRC_1@,$COND_SHARED_0_USE_XRC_1,;t t
a848cd7e
SC
51083s,@COND_SHARED_0_WXUSE_EXPAT_BUILTIN@,$COND_SHARED_0_WXUSE_EXPAT_BUILTIN,;t t
51084s,@COND_SHARED_0_WXUSE_ODBC_BUILTIN@,$COND_SHARED_0_WXUSE_ODBC_BUILTIN,;t t
51085s,@COND_SHARED_0_WXUSE_REGEX_BUILTIN@,$COND_SHARED_0_WXUSE_REGEX_BUILTIN,;t t
51086s,@COND_SHARED_0_WXUSE_ZLIB_BUILTIN@,$COND_SHARED_0_WXUSE_ZLIB_BUILTIN,;t t
51087s,@COND_SHARED_1@,$COND_SHARED_1,;t t
51088s,@COND_SHARED_1_USE_GUI_1_USE_OPENGL_1@,$COND_SHARED_1_USE_GUI_1_USE_OPENGL_1,;t t
083508af 51089s,@COND_SHARED_1_USE_XRC_1@,$COND_SHARED_1_USE_XRC_1,;t t
a30f955f 51090s,@COND_TOOLKIT_@,$COND_TOOLKIT_,;t t
a848cd7e 51091s,@COND_TOOLKIT_COCOA@,$COND_TOOLKIT_COCOA,;t t
a49baeab 51092s,@COND_TOOLKIT_COCOA_USE_GUI_1@,$COND_TOOLKIT_COCOA_USE_GUI_1,;t t
a848cd7e 51093s,@COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0,;t t
b3c86150
VS
51094s,@COND_TOOLKIT_DFB@,$COND_TOOLKIT_DFB,;t t
51095s,@COND_TOOLKIT_DFB_USE_GUI_1@,$COND_TOOLKIT_DFB_USE_GUI_1,;t t
a848cd7e 51096s,@COND_TOOLKIT_GTK@,$COND_TOOLKIT_GTK,;t t
d044deea
MW
51097s,@COND_TOOLKIT_GTK_TOOLKIT_VERSION_@,$COND_TOOLKIT_GTK_TOOLKIT_VERSION_,;t t
51098s,@COND_TOOLKIT_GTK_TOOLKIT_VERSION_2@,$COND_TOOLKIT_GTK_TOOLKIT_VERSION_2,;t t
51099s,@COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1@,$COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1,;t t
51100s,@COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1_WXUNIV_0,;t t
51101s,@COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1@,$COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1,;t t
51102s,@COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1_WXUNIV_0,;t t
a848cd7e 51103s,@COND_TOOLKIT_GTK_USE_GUI_1@,$COND_TOOLKIT_GTK_USE_GUI_1,;t t
a848cd7e
SC
51104s,@COND_TOOLKIT_MAC@,$COND_TOOLKIT_MAC,;t t
51105s,@COND_TOOLKIT_MAC_USE_GUI_1@,$COND_TOOLKIT_MAC_USE_GUI_1,;t t
51106s,@COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0,;t t
51107s,@COND_TOOLKIT_MGL@,$COND_TOOLKIT_MGL,;t t
51108s,@COND_TOOLKIT_MGL_USE_GUI_1@,$COND_TOOLKIT_MGL_USE_GUI_1,;t t
51109s,@COND_TOOLKIT_MOTIF@,$COND_TOOLKIT_MOTIF,;t t
51110s,@COND_TOOLKIT_MOTIF_USE_GUI_1@,$COND_TOOLKIT_MOTIF_USE_GUI_1,;t t
51111s,@COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0,;t t
51112s,@COND_TOOLKIT_MSW@,$COND_TOOLKIT_MSW,;t t
51113s,@COND_TOOLKIT_MSW_USE_GUI_1@,$COND_TOOLKIT_MSW_USE_GUI_1,;t t
51114s,@COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0,;t t
0ee4059d 51115s,@COND_TOOLKIT_MSW_WXUNIV_0@,$COND_TOOLKIT_MSW_WXUNIV_0,;t t
a848cd7e
SC
51116s,@COND_TOOLKIT_PM@,$COND_TOOLKIT_PM,;t t
51117s,@COND_TOOLKIT_PM_USE_GUI_1@,$COND_TOOLKIT_PM_USE_GUI_1,;t t
51118s,@COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0,;t t
3fd9c298
DE
51119s,@COND_TOOLKIT_WINCE@,$COND_TOOLKIT_WINCE,;t t
51120s,@COND_TOOLKIT_WINCE_USE_GUI_1@,$COND_TOOLKIT_WINCE_USE_GUI_1,;t t
51121s,@COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0,;t t
0ee4059d 51122s,@COND_TOOLKIT_WINCE_WXUNIV_0@,$COND_TOOLKIT_WINCE_WXUNIV_0,;t t
a848cd7e
SC
51123s,@COND_TOOLKIT_X11@,$COND_TOOLKIT_X11,;t t
51124s,@COND_TOOLKIT_X11_USE_GUI_1@,$COND_TOOLKIT_X11_USE_GUI_1,;t t
51125s,@COND_UNICODE_1@,$COND_UNICODE_1,;t t
51126s,@COND_USE_EXCEPTIONS_0@,$COND_USE_EXCEPTIONS_0,;t t
51127s,@COND_USE_EXCEPTIONS_1@,$COND_USE_EXCEPTIONS_1,;t t
51128s,@COND_USE_GUI_0@,$COND_USE_GUI_0,;t t
51129s,@COND_USE_GUI_1@,$COND_USE_GUI_1,;t t
51130s,@COND_USE_GUI_1_WXUNIV_0@,$COND_USE_GUI_1_WXUNIV_0,;t t
51131s,@COND_USE_GUI_1_WXUNIV_1@,$COND_USE_GUI_1_WXUNIV_1,;t t
51132s,@COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN@,$COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN,;t t
51133s,@COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN@,$COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN,;t t
51134s,@COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN@,$COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN,;t t
083508af
MW
51135s,@COND_USE_ODBC_1@,$COND_USE_ODBC_1,;t t
51136s,@COND_USE_OPENGL_1@,$COND_USE_OPENGL_1,;t t
f10e38c4 51137s,@COND_USE_PCH_1@,$COND_USE_PCH_1,;t t
a848cd7e 51138s,@COND_USE_PLUGINS_0@,$COND_USE_PLUGINS_0,;t t
0b78747f
MW
51139s,@COND_USE_RTTI_0@,$COND_USE_RTTI_0,;t t
51140s,@COND_USE_RTTI_1@,$COND_USE_RTTI_1,;t t
a848cd7e 51141s,@COND_USE_SOSYMLINKS_1@,$COND_USE_SOSYMLINKS_1,;t t
eb730a0c 51142s,@COND_USE_SOVERCYGWIN_1_USE_SOVERSION_1@,$COND_USE_SOVERCYGWIN_1_USE_SOVERSION_1,;t t
a848cd7e
SC
51143s,@COND_USE_SOVERLINUX_1@,$COND_USE_SOVERLINUX_1,;t t
51144s,@COND_USE_SOVERSION_0@,$COND_USE_SOVERSION_0,;t t
51145s,@COND_USE_SOVERSOLARIS_1@,$COND_USE_SOVERSOLARIS_1,;t t
0b78747f
MW
51146s,@COND_USE_THREADS_0@,$COND_USE_THREADS_0,;t t
51147s,@COND_USE_THREADS_1@,$COND_USE_THREADS_1,;t t
a13a7f89 51148s,@COND_USE_XRC_1@,$COND_USE_XRC_1,;t t
eb730a0c 51149s,@COND_WINDOWS_IMPLIB_1@,$COND_WINDOWS_IMPLIB_1,;t t
a848cd7e 51150s,@COND_WITH_PLUGIN_SDL_1@,$COND_WITH_PLUGIN_SDL_1,;t t
1e6eb025 51151s,@COND_WXUNIV_0@,$COND_WXUNIV_0,;t t
a848cd7e
SC
51152s,@COND_WXUNIV_1@,$COND_WXUNIV_1,;t t
51153s,@COND_WXUSE_EXPAT_BUILTIN@,$COND_WXUSE_EXPAT_BUILTIN,;t t
51154s,@COND_WXUSE_LIBJPEG_BUILTIN@,$COND_WXUSE_LIBJPEG_BUILTIN,;t t
51155s,@COND_WXUSE_LIBPNG_BUILTIN@,$COND_WXUSE_LIBPNG_BUILTIN,;t t
51156s,@COND_WXUSE_LIBTIFF_BUILTIN@,$COND_WXUSE_LIBTIFF_BUILTIN,;t t
51157s,@COND_WXUSE_ODBC_BUILTIN@,$COND_WXUSE_ODBC_BUILTIN,;t t
51158s,@COND_WXUSE_REGEX_BUILTIN@,$COND_WXUSE_REGEX_BUILTIN,;t t
51159s,@COND_WXUSE_ZLIB_BUILTIN@,$COND_WXUSE_ZLIB_BUILTIN,;t t
ceec2216 51160s,@SHARED@,$SHARED,;t t
a848cd7e
SC
51161s,@WX_LIBRARY_BASENAME_NOGUI@,$WX_LIBRARY_BASENAME_NOGUI,;t t
51162s,@WX_LIBRARY_BASENAME_GUI@,$WX_LIBRARY_BASENAME_GUI,;t t
a848cd7e
SC
51163s,@USE_GUI@,$USE_GUI,;t t
51164s,@AFMINSTALL@,$AFMINSTALL,;t t
51165s,@WIN32INSTALL@,$WIN32INSTALL,;t t
51166s,@TOOLKIT@,$TOOLKIT,;t t
51167s,@TOOLKIT_DIR@,$TOOLKIT_DIR,;t t
a848cd7e 51168s,@TOOLCHAIN_NAME@,$TOOLCHAIN_NAME,;t t
ceec2216 51169s,@TOOLCHAIN_FULLNAME@,$TOOLCHAIN_FULLNAME,;t t
a848cd7e 51170s,@cross_compiling@,$cross_compiling,;t t
ceec2216
RL
51171s,@WIDGET_SET@,$WIDGET_SET,;t t
51172s,@WX_RELEASE@,$WX_RELEASE,;t t
51173s,@WX_VERSION@,$WX_VERSION,;t t
51174s,@WX_SUBVERSION@,$WX_SUBVERSION,;t t
51175s,@WX_CHARTYPE@,$WX_CHARTYPE,;t t
51176s,@WX_DEBUGTYPE@,$WX_DEBUGTYPE,;t t
5ff751d6
VZ
51177s,@WXCONFIG_CPPFLAGS@,$WXCONFIG_CPPFLAGS,;t t
51178s,@WXCONFIG_CFLAGS@,$WXCONFIG_CFLAGS,;t t
51179s,@WXCONFIG_CXXFLAGS@,$WXCONFIG_CXXFLAGS,;t t
51180s,@WXCONFIG_LIBS@,$WXCONFIG_LIBS,;t t
a848cd7e
SC
51181s,@WXCONFIG_RPATH@,$WXCONFIG_RPATH,;t t
51182s,@WXCONFIG_LDFLAGS_GUI@,$WXCONFIG_LDFLAGS_GUI,;t t
004ee6da 51183s,@WXCONFIG_RESFLAGS@,$WXCONFIG_RESFLAGS,;t t
ceec2216 51184s,@EXE_LINKER@,$EXE_LINKER,;t t
a848cd7e 51185s,@GUIDIST@,$GUIDIST,;t t
a848cd7e
SC
51186s,@DISTDIR@,$DISTDIR,;t t
51187s,@SAMPLES_SUBDIRS@,$SAMPLES_SUBDIRS,;t t
51188s,@LDFLAGS_GL@,$LDFLAGS_GL,;t t
a848cd7e
SC
51189s,@OPENGL_LIBS@,$OPENGL_LIBS,;t t
51190s,@DMALLOC_LIBS@,$DMALLOC_LIBS,;t t
51191s,@WX_VERSION_TAG@,$WX_VERSION_TAG,;t t
004ee6da 51192s,@RESCOMP@,$RESCOMP,;t t
a848cd7e
SC
51193s,@RESFLAGS@,$RESFLAGS,;t t
51194s,@RESPROGRAMOBJ@,$RESPROGRAMOBJ,;t t
51195s,@WX_RESOURCES_MACOSX_ASCII@,$WX_RESOURCES_MACOSX_ASCII,;t t
51196s,@WX_RESOURCES_MACOSX_DATA@,$WX_RESOURCES_MACOSX_DATA,;t t
51197s,@LIBWXMACRES@,$LIBWXMACRES,;t t
8ced02f6 51198s,@POSTLINK_COMMAND@,$POSTLINK_COMMAND,;t t
a848cd7e 51199s,@MACSETFILE@,$MACSETFILE,;t t
a848cd7e 51200s,@GCC@,$GCC,;t t
a848cd7e
SC
51201s,@CPPUNIT_CONFIG@,$CPPUNIT_CONFIG,;t t
51202s,@LIBOBJS@,$LIBOBJS,;t t
51203s,@LTLIBOBJS@,$LTLIBOBJS,;t t
51204CEOF
51205
51206_ACEOF
51207
51208 cat >>$CONFIG_STATUS <<\_ACEOF
51209 # Split the substitutions into bite-sized pieces for seds with
51210 # small command number limits, like on Digital OSF/1 and HP-UX.
51211 ac_max_sed_lines=48
51212 ac_sed_frag=1 # Number of current file.
51213 ac_beg=1 # First line for current file.
51214 ac_end=$ac_max_sed_lines # Line after last line for current file.
51215 ac_more_lines=:
51216 ac_sed_cmds=
51217 while $ac_more_lines; do
51218 if test $ac_beg -gt 1; then
51219 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
51220 else
51221 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
51222 fi
51223 if test ! -s $tmp/subs.frag; then
51224 ac_more_lines=false
51225 else
51226 # The purpose of the label and of the branching condition is to
51227 # speed up the sed processing (if there are no `@' at all, there
51228 # is no need to browse any of the substitutions).
51229 # These are the two extra sed commands mentioned above.
51230 (echo ':t
51231 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
51232 if test -z "$ac_sed_cmds"; then
ac1cb8d3 51233 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
a848cd7e 51234 else
ac1cb8d3 51235 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
a848cd7e
SC
51236 fi
51237 ac_sed_frag=`expr $ac_sed_frag + 1`
51238 ac_beg=$ac_end
51239 ac_end=`expr $ac_end + $ac_max_sed_lines`
51240 fi
51241 done
51242 if test -z "$ac_sed_cmds"; then
51243 ac_sed_cmds=cat
51244 fi
51245fi # test -n "$CONFIG_FILES"
51246
51247_ACEOF
51248cat >>$CONFIG_STATUS <<\_ACEOF
51249for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
51250 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
51251 case $ac_file in
51252 - | *:- | *:-:* ) # input from stdin
ac1cb8d3
VS
51253 cat >$tmp/stdin
51254 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
51255 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
a848cd7e 51256 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
ac1cb8d3 51257 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
a848cd7e
SC
51258 * ) ac_file_in=$ac_file.in ;;
51259 esac
51260
51261 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
51262 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
51263$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
51264 X"$ac_file" : 'X\(//\)[^/]' \| \
51265 X"$ac_file" : 'X\(//\)$' \| \
51266 X"$ac_file" : 'X\(/\)' \| \
51267 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
51268echo X"$ac_file" |
51269 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
51270 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
51271 /^X\(\/\/\)$/{ s//\1/; q; }
51272 /^X\(\/\).*/{ s//\1/; q; }
51273 s/.*/./; q'`
51274 { if $as_mkdir_p; then
51275 mkdir -p "$ac_dir"
51276 else
51277 as_dir="$ac_dir"
51278 as_dirs=
51279 while test ! -d "$as_dir"; do
51280 as_dirs="$as_dir $as_dirs"
51281 as_dir=`(dirname "$as_dir") 2>/dev/null ||
51282$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
51283 X"$as_dir" : 'X\(//\)[^/]' \| \
51284 X"$as_dir" : 'X\(//\)$' \| \
51285 X"$as_dir" : 'X\(/\)' \| \
51286 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
51287echo X"$as_dir" |
51288 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
51289 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
51290 /^X\(\/\/\)$/{ s//\1/; q; }
51291 /^X\(\/\).*/{ s//\1/; q; }
51292 s/.*/./; q'`
51293 done
51294 test ! -n "$as_dirs" || mkdir $as_dirs
51295 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
51296echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
51297 { (exit 1); exit 1; }; }; }
51298
51299 ac_builddir=.
51300
51301if test "$ac_dir" != .; then
51302 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
51303 # A "../" for each directory in $ac_dir_suffix.
51304 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
51305else
51306 ac_dir_suffix= ac_top_builddir=
51307fi
51308
51309case $srcdir in
51310 .) # No --srcdir option. We are building in place.
51311 ac_srcdir=.
51312 if test -z "$ac_top_builddir"; then
51313 ac_top_srcdir=.
51314 else
51315 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
51316 fi ;;
51317 [\\/]* | ?:[\\/]* ) # Absolute path.
51318 ac_srcdir=$srcdir$ac_dir_suffix;
51319 ac_top_srcdir=$srcdir ;;
51320 *) # Relative path.
51321 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
51322 ac_top_srcdir=$ac_top_builddir$srcdir ;;
51323esac
ac1cb8d3
VS
51324
51325# Do not use `cd foo && pwd` to compute absolute paths, because
51326# the directories may not exist.
51327case `pwd` in
51328.) ac_abs_builddir="$ac_dir";;
51329*)
51330 case "$ac_dir" in
51331 .) ac_abs_builddir=`pwd`;;
51332 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
51333 *) ac_abs_builddir=`pwd`/"$ac_dir";;
51334 esac;;
51335esac
51336case $ac_abs_builddir in
51337.) ac_abs_top_builddir=${ac_top_builddir}.;;
51338*)
51339 case ${ac_top_builddir}. in
51340 .) ac_abs_top_builddir=$ac_abs_builddir;;
51341 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
51342 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
51343 esac;;
51344esac
51345case $ac_abs_builddir in
51346.) ac_abs_srcdir=$ac_srcdir;;
51347*)
51348 case $ac_srcdir in
51349 .) ac_abs_srcdir=$ac_abs_builddir;;
51350 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
51351 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
51352 esac;;
51353esac
51354case $ac_abs_builddir in
51355.) ac_abs_top_srcdir=$ac_top_srcdir;;
51356*)
51357 case $ac_top_srcdir in
51358 .) ac_abs_top_srcdir=$ac_abs_builddir;;
51359 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
51360 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
51361 esac;;
51362esac
a848cd7e
SC
51363
51364
51365 case $INSTALL in
51366 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
51367 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
51368 esac
51369
a848cd7e
SC
51370 # Let's still pretend it is `configure' which instantiates (i.e., don't
51371 # use $as_me), people would be surprised to read:
51372 # /* config.h. Generated by config.status. */
51373 if test x"$ac_file" = x-; then
51374 configure_input=
51375 else
51376 configure_input="$ac_file. "
51377 fi
51378 configure_input=$configure_input"Generated from `echo $ac_file_in |
ac1cb8d3 51379 sed 's,.*/,,'` by configure."
a848cd7e
SC
51380
51381 # First look for the input files in the build tree, otherwise in the
51382 # src tree.
51383 ac_file_inputs=`IFS=:
51384 for f in $ac_file_in; do
51385 case $f in
51386 -) echo $tmp/stdin ;;
51387 [\\/$]*)
ac1cb8d3
VS
51388 # Absolute (can't be DOS-style, as IFS=:)
51389 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
a848cd7e
SC
51390echo "$as_me: error: cannot find input file: $f" >&2;}
51391 { (exit 1); exit 1; }; }
ac1cb8d3 51392 echo "$f";;
a848cd7e 51393 *) # Relative
ac1cb8d3
VS
51394 if test -f "$f"; then
51395 # Build tree
51396 echo "$f"
51397 elif test -f "$srcdir/$f"; then
51398 # Source tree
51399 echo "$srcdir/$f"
51400 else
51401 # /dev/null tree
51402 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
a848cd7e
SC
51403echo "$as_me: error: cannot find input file: $f" >&2;}
51404 { (exit 1); exit 1; }; }
ac1cb8d3 51405 fi;;
a848cd7e
SC
51406 esac
51407 done` || { (exit 1); exit 1; }
479c790c
VZ
51408
51409 if test x"$ac_file" != x-; then
51410 { echo "$as_me:$LINENO: creating $ac_file" >&5
51411echo "$as_me: creating $ac_file" >&6;}
51412 rm -f "$ac_file"
51413 fi
a848cd7e
SC
51414_ACEOF
51415cat >>$CONFIG_STATUS <<_ACEOF
51416 sed "$ac_vpsub
51417$extrasub
51418_ACEOF
51419cat >>$CONFIG_STATUS <<\_ACEOF
51420:t
51421/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
51422s,@configure_input@,$configure_input,;t t
51423s,@srcdir@,$ac_srcdir,;t t
51424s,@abs_srcdir@,$ac_abs_srcdir,;t t
51425s,@top_srcdir@,$ac_top_srcdir,;t t
51426s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
51427s,@builddir@,$ac_builddir,;t t
51428s,@abs_builddir@,$ac_abs_builddir,;t t
51429s,@top_builddir@,$ac_top_builddir,;t t
51430s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
51431s,@INSTALL@,$ac_INSTALL,;t t
51432" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
51433 rm -f $tmp/stdin
51434 if test x"$ac_file" != x-; then
51435 mv $tmp/out $ac_file
51436 else
51437 cat $tmp/out
51438 rm -f $tmp/out
51439 fi
51440
ceec2216
RL
51441 # Run the commands associated with the file.
51442 case $ac_file in
51443 lib/wx/config/${TOOLCHAIN_FULLNAME} ) chmod +x lib/wx/config/${TOOLCHAIN_FULLNAME} ;;
51444 lib/wx/config/inplace-${TOOLCHAIN_FULLNAME} ) chmod +x lib/wx/config/inplace-${TOOLCHAIN_FULLNAME} ;;
51445 esac
a848cd7e
SC
51446done
51447_ACEOF
51448cat >>$CONFIG_STATUS <<\_ACEOF
51449
51450#
51451# CONFIG_HEADER section.
51452#
51453
51454# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
51455# NAME is the cpp macro being defined and VALUE is the value it is being given.
51456#
51457# ac_d sets the value in "#define NAME VALUE" lines.
ac1cb8d3
VS
51458ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
51459ac_dB='[ ].*$,\1#\2'
a848cd7e
SC
51460ac_dC=' '
51461ac_dD=',;t'
51462# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
ac1cb8d3 51463ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
a848cd7e
SC
51464ac_uB='$,\1#\2define\3'
51465ac_uC=' '
51466ac_uD=',;t'
51467
51468for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
51469 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
51470 case $ac_file in
51471 - | *:- | *:-:* ) # input from stdin
ac1cb8d3
VS
51472 cat >$tmp/stdin
51473 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
51474 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
a848cd7e 51475 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
ac1cb8d3 51476 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
a848cd7e
SC
51477 * ) ac_file_in=$ac_file.in ;;
51478 esac
51479
51480 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
51481echo "$as_me: creating $ac_file" >&6;}
51482
51483 # First look for the input files in the build tree, otherwise in the
51484 # src tree.
51485 ac_file_inputs=`IFS=:
51486 for f in $ac_file_in; do
51487 case $f in
51488 -) echo $tmp/stdin ;;
51489 [\\/$]*)
ac1cb8d3
VS
51490 # Absolute (can't be DOS-style, as IFS=:)
51491 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
a848cd7e
SC
51492echo "$as_me: error: cannot find input file: $f" >&2;}
51493 { (exit 1); exit 1; }; }
ac1cb8d3
VS
51494 # Do quote $f, to prevent DOS paths from being IFS'd.
51495 echo "$f";;
a848cd7e 51496 *) # Relative
ac1cb8d3
VS
51497 if test -f "$f"; then
51498 # Build tree
51499 echo "$f"
51500 elif test -f "$srcdir/$f"; then
51501 # Source tree
51502 echo "$srcdir/$f"
51503 else
51504 # /dev/null tree
51505 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
a848cd7e
SC
51506echo "$as_me: error: cannot find input file: $f" >&2;}
51507 { (exit 1); exit 1; }; }
ac1cb8d3 51508 fi;;
a848cd7e
SC
51509 esac
51510 done` || { (exit 1); exit 1; }
51511 # Remove the trailing spaces.
ac1cb8d3 51512 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
a848cd7e
SC
51513
51514_ACEOF
51515
51516# Transform confdefs.h into two sed scripts, `conftest.defines' and
51517# `conftest.undefs', that substitutes the proper values into
51518# config.h.in to produce config.h. The first handles `#define'
51519# templates, and the second `#undef' templates.
51520# And first: Protect against being on the right side of a sed subst in
51521# config.status. Protect against being in an unquoted here document
51522# in config.status.
51523rm -f conftest.defines conftest.undefs
51524# Using a here document instead of a string reduces the quoting nightmare.
51525# Putting comments in sed scripts is not portable.
51526#
51527# `end' is used to avoid that the second main sed command (meant for
51528# 0-ary CPP macros) applies to n-ary macro definitions.
51529# See the Autoconf documentation for `clear'.
51530cat >confdef2sed.sed <<\_ACEOF
51531s/[\\&,]/\\&/g
51532s,[\\$`],\\&,g
51533t clear
51534: clear
ac1cb8d3 51535s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
a848cd7e 51536t end
ac1cb8d3 51537s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
a848cd7e
SC
51538: end
51539_ACEOF
51540# If some macros were called several times there might be several times
51541# the same #defines, which is useless. Nevertheless, we may not want to
51542# sort them, since we want the *last* AC-DEFINE to be honored.
51543uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
51544sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
51545rm -f confdef2sed.sed
51546
51547# This sed command replaces #undef with comments. This is necessary, for
51548# example, in the case of _POSIX_SOURCE, which is predefined and required
51549# on some systems where configure will not decide to define it.
51550cat >>conftest.undefs <<\_ACEOF
ac1cb8d3 51551s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
a848cd7e
SC
51552_ACEOF
51553
51554# Break up conftest.defines because some shells have a limit on the size
51555# of here documents, and old seds have small limits too (100 cmds).
51556echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
ac1cb8d3 51557echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
a848cd7e
SC
51558echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
51559echo ' :' >>$CONFIG_STATUS
51560rm -f conftest.tail
51561while grep . conftest.defines >/dev/null
51562do
51563 # Write a limited-size here document to $tmp/defines.sed.
51564 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
51565 # Speed up: don't consider the non `#define' lines.
ac1cb8d3 51566 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
a848cd7e
SC
51567 # Work around the forget-to-reset-the-flag bug.
51568 echo 't clr' >>$CONFIG_STATUS
51569 echo ': clr' >>$CONFIG_STATUS
51570 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
51571 echo 'CEOF
51572 sed -f $tmp/defines.sed $tmp/in >$tmp/out
51573 rm -f $tmp/in
51574 mv $tmp/out $tmp/in
51575' >>$CONFIG_STATUS
51576 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
51577 rm -f conftest.defines
51578 mv conftest.tail conftest.defines
51579done
51580rm -f conftest.defines
51581echo ' fi # grep' >>$CONFIG_STATUS
51582echo >>$CONFIG_STATUS
51583
51584# Break up conftest.undefs because some shells have a limit on the size
51585# of here documents, and old seds have small limits too (100 cmds).
51586echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
51587rm -f conftest.tail
51588while grep . conftest.undefs >/dev/null
51589do
51590 # Write a limited-size here document to $tmp/undefs.sed.
51591 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
51592 # Speed up: don't consider the non `#undef'
ac1cb8d3 51593 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
a848cd7e
SC
51594 # Work around the forget-to-reset-the-flag bug.
51595 echo 't clr' >>$CONFIG_STATUS
51596 echo ': clr' >>$CONFIG_STATUS
51597 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
51598 echo 'CEOF
51599 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
51600 rm -f $tmp/in
51601 mv $tmp/out $tmp/in
51602' >>$CONFIG_STATUS
51603 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
51604 rm -f conftest.undefs
51605 mv conftest.tail conftest.undefs
51606done
51607rm -f conftest.undefs
51608
51609cat >>$CONFIG_STATUS <<\_ACEOF
51610 # Let's still pretend it is `configure' which instantiates (i.e., don't
51611 # use $as_me), people would be surprised to read:
51612 # /* config.h. Generated by config.status. */
51613 if test x"$ac_file" = x-; then
51614 echo "/* Generated by configure. */" >$tmp/config.h
51615 else
51616 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
51617 fi
51618 cat $tmp/in >>$tmp/config.h
51619 rm -f $tmp/in
51620 if test x"$ac_file" != x-; then
51621 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
51622 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
51623echo "$as_me: $ac_file is unchanged" >&6;}
51624 else
51625 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
51626$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
51627 X"$ac_file" : 'X\(//\)[^/]' \| \
51628 X"$ac_file" : 'X\(//\)$' \| \
51629 X"$ac_file" : 'X\(/\)' \| \
51630 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
51631echo X"$ac_file" |
51632 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
51633 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
51634 /^X\(\/\/\)$/{ s//\1/; q; }
51635 /^X\(\/\).*/{ s//\1/; q; }
51636 s/.*/./; q'`
51637 { if $as_mkdir_p; then
51638 mkdir -p "$ac_dir"
51639 else
51640 as_dir="$ac_dir"
51641 as_dirs=
51642 while test ! -d "$as_dir"; do
51643 as_dirs="$as_dir $as_dirs"
51644 as_dir=`(dirname "$as_dir") 2>/dev/null ||
51645$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
51646 X"$as_dir" : 'X\(//\)[^/]' \| \
51647 X"$as_dir" : 'X\(//\)$' \| \
51648 X"$as_dir" : 'X\(/\)' \| \
51649 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
51650echo X"$as_dir" |
51651 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
51652 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
51653 /^X\(\/\/\)$/{ s//\1/; q; }
51654 /^X\(\/\).*/{ s//\1/; q; }
51655 s/.*/./; q'`
51656 done
51657 test ! -n "$as_dirs" || mkdir $as_dirs
51658 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
51659echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
51660 { (exit 1); exit 1; }; }; }
51661
51662 rm -f $ac_file
51663 mv $tmp/config.h $ac_file
51664 fi
51665 else
51666 cat $tmp/config.h
51667 rm -f $tmp/config.h
51668 fi
51669done
51670_ACEOF
51671cat >>$CONFIG_STATUS <<\_ACEOF
51672
51673#
51674# CONFIG_COMMANDS section.
51675#
51676for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
51677 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
51678 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
51679 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
51680$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
51681 X"$ac_dest" : 'X\(//\)[^/]' \| \
51682 X"$ac_dest" : 'X\(//\)$' \| \
51683 X"$ac_dest" : 'X\(/\)' \| \
51684 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
51685echo X"$ac_dest" |
51686 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
51687 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
51688 /^X\(\/\/\)$/{ s//\1/; q; }
51689 /^X\(\/\).*/{ s//\1/; q; }
51690 s/.*/./; q'`
ac1cb8d3
VS
51691 { if $as_mkdir_p; then
51692 mkdir -p "$ac_dir"
51693 else
51694 as_dir="$ac_dir"
51695 as_dirs=
51696 while test ! -d "$as_dir"; do
51697 as_dirs="$as_dir $as_dirs"
51698 as_dir=`(dirname "$as_dir") 2>/dev/null ||
51699$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
51700 X"$as_dir" : 'X\(//\)[^/]' \| \
51701 X"$as_dir" : 'X\(//\)$' \| \
51702 X"$as_dir" : 'X\(/\)' \| \
51703 . : '\(.\)' 2>/dev/null ||
51704echo X"$as_dir" |
51705 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
51706 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
51707 /^X\(\/\/\)$/{ s//\1/; q; }
51708 /^X\(\/\).*/{ s//\1/; q; }
51709 s/.*/./; q'`
51710 done
51711 test ! -n "$as_dirs" || mkdir $as_dirs
51712 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
51713echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
51714 { (exit 1); exit 1; }; }; }
51715
a848cd7e
SC
51716 ac_builddir=.
51717
51718if test "$ac_dir" != .; then
51719 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
51720 # A "../" for each directory in $ac_dir_suffix.
51721 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
51722else
51723 ac_dir_suffix= ac_top_builddir=
51724fi
51725
51726case $srcdir in
51727 .) # No --srcdir option. We are building in place.
51728 ac_srcdir=.
51729 if test -z "$ac_top_builddir"; then
51730 ac_top_srcdir=.
51731 else
51732 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
51733 fi ;;
51734 [\\/]* | ?:[\\/]* ) # Absolute path.
51735 ac_srcdir=$srcdir$ac_dir_suffix;
51736 ac_top_srcdir=$srcdir ;;
51737 *) # Relative path.
51738 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
51739 ac_top_srcdir=$ac_top_builddir$srcdir ;;
51740esac
ac1cb8d3
VS
51741
51742# Do not use `cd foo && pwd` to compute absolute paths, because
51743# the directories may not exist.
51744case `pwd` in
51745.) ac_abs_builddir="$ac_dir";;
51746*)
51747 case "$ac_dir" in
51748 .) ac_abs_builddir=`pwd`;;
51749 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
51750 *) ac_abs_builddir=`pwd`/"$ac_dir";;
51751 esac;;
51752esac
51753case $ac_abs_builddir in
51754.) ac_abs_top_builddir=${ac_top_builddir}.;;
51755*)
51756 case ${ac_top_builddir}. in
51757 .) ac_abs_top_builddir=$ac_abs_builddir;;
51758 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
51759 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
51760 esac;;
51761esac
51762case $ac_abs_builddir in
51763.) ac_abs_srcdir=$ac_srcdir;;
51764*)
51765 case $ac_srcdir in
51766 .) ac_abs_srcdir=$ac_abs_builddir;;
51767 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
51768 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
51769 esac;;
51770esac
51771case $ac_abs_builddir in
51772.) ac_abs_top_srcdir=$ac_top_srcdir;;
51773*)
51774 case $ac_top_srcdir in
51775 .) ac_abs_top_srcdir=$ac_abs_builddir;;
51776 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
51777 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
51778 esac;;
51779esac
a848cd7e
SC
51780
51781
51782 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
51783echo "$as_me: executing $ac_dest commands" >&6;}
51784 case $ac_dest in
5c60e845
MW
51785 rcdefs.h )
51786 mkdir -p $outdir &&
51787 $CPP $infile | sed 's/^# *[1-9].*//;s/^ *//;/./,/^$/!d' > $outdir/rcdefs.h
51788 ;;
ceec2216
RL
51789 wx-config ) rm -f wx-config
51790 ${LN_S} lib/wx/config/inplace-${TOOLCHAIN_FULLNAME} wx-config
51791 ;;
a848cd7e
SC
51792 esac
51793done
51794_ACEOF
51795
51796cat >>$CONFIG_STATUS <<\_ACEOF
51797
51798{ (exit 0); exit 0; }
51799_ACEOF
51800chmod +x $CONFIG_STATUS
51801ac_clean_files=$ac_clean_files_save
51802
51803
51804# configure is writing to config.log, and then calls config.status.
51805# config.status does its own redirection, appending to config.log.
51806# Unfortunately, on DOS this fails, as config.log is still kept open
51807# by configure, so config.status won't be able to write to it; its
51808# output is simply discarded. So we exec the FD to /dev/null,
51809# effectively closing config.log, so it can be properly (re)opened and
51810# appended to by config.status. When coming back to configure, we
51811# need to make the FD available again.
51812if test "$no_create" != yes; then
51813 ac_cs_success=:
51814 ac_config_status_args=
51815 test "$silent" = yes &&
51816 ac_config_status_args="$ac_config_status_args --quiet"
51817 exec 5>/dev/null
51818 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
51819 exec 5>>config.log
51820 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
51821 # would make configure fail if this is the last instruction.
51822 $ac_cs_success || { (exit 1); exit 1; }
51823fi
51824
51825#
51826# CONFIG_SUBDIRS section.
51827#
51828if test "$no_recursion" != yes; then
51829
51830 # Remove --cache-file and --srcdir arguments so they do not pile up.
51831 ac_sub_configure_args=
51832 ac_prev=
51833 for ac_arg in $ac_configure_args; do
51834 if test -n "$ac_prev"; then
51835 ac_prev=
51836 continue
51837 fi
51838 case $ac_arg in
51839 -cache-file | --cache-file | --cache-fil | --cache-fi \
51840 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
51841 ac_prev=cache_file ;;
51842 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
51843 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
51844 | --c=*)
51845 ;;
51846 --config-cache | -C)
51847 ;;
51848 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
51849 ac_prev=srcdir ;;
51850 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
51851 ;;
51852 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
51853 ac_prev=prefix ;;
51854 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
51855 ;;
51856 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
51857 esac
51858 done
51859
51860 # Always prepend --prefix to ensure using the same prefix
51861 # in subdir configurations.
51862 ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
51863
51864 ac_popdir=`pwd`
51865 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
51866
51867 # Do not complain, so a configure script can configure whichever
51868 # parts of a large source tree are present.
51869 test -d $srcdir/$ac_dir || continue
51870
51871 { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
51872echo "$as_me: configuring in $ac_dir" >&6;}
51873 { if $as_mkdir_p; then
51874 mkdir -p "$ac_dir"
51875 else
51876 as_dir="$ac_dir"
51877 as_dirs=
51878 while test ! -d "$as_dir"; do
51879 as_dirs="$as_dir $as_dirs"
51880 as_dir=`(dirname "$as_dir") 2>/dev/null ||
51881$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
51882 X"$as_dir" : 'X\(//\)[^/]' \| \
51883 X"$as_dir" : 'X\(//\)$' \| \
51884 X"$as_dir" : 'X\(/\)' \| \
51885 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
51886echo X"$as_dir" |
51887 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
51888 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
51889 /^X\(\/\/\)$/{ s//\1/; q; }
51890 /^X\(\/\).*/{ s//\1/; q; }
51891 s/.*/./; q'`
51892 done
51893 test ! -n "$as_dirs" || mkdir $as_dirs
51894 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
51895echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
51896 { (exit 1); exit 1; }; }; }
51897
51898 ac_builddir=.
51899
51900if test "$ac_dir" != .; then
51901 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
51902 # A "../" for each directory in $ac_dir_suffix.
51903 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
51904else
51905 ac_dir_suffix= ac_top_builddir=
51906fi
51907
51908case $srcdir in
51909 .) # No --srcdir option. We are building in place.
51910 ac_srcdir=.
51911 if test -z "$ac_top_builddir"; then
51912 ac_top_srcdir=.
51913 else
51914 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
51915 fi ;;
51916 [\\/]* | ?:[\\/]* ) # Absolute path.
51917 ac_srcdir=$srcdir$ac_dir_suffix;
51918 ac_top_srcdir=$srcdir ;;
51919 *) # Relative path.
51920 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
51921 ac_top_srcdir=$ac_top_builddir$srcdir ;;
51922esac
ac1cb8d3
VS
51923
51924# Do not use `cd foo && pwd` to compute absolute paths, because
51925# the directories may not exist.
51926case `pwd` in
51927.) ac_abs_builddir="$ac_dir";;
51928*)
51929 case "$ac_dir" in
51930 .) ac_abs_builddir=`pwd`;;
51931 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
51932 *) ac_abs_builddir=`pwd`/"$ac_dir";;
51933 esac;;
51934esac
51935case $ac_abs_builddir in
51936.) ac_abs_top_builddir=${ac_top_builddir}.;;
51937*)
51938 case ${ac_top_builddir}. in
51939 .) ac_abs_top_builddir=$ac_abs_builddir;;
51940 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
51941 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
51942 esac;;
51943esac
51944case $ac_abs_builddir in
51945.) ac_abs_srcdir=$ac_srcdir;;
51946*)
51947 case $ac_srcdir in
51948 .) ac_abs_srcdir=$ac_abs_builddir;;
51949 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
51950 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
51951 esac;;
51952esac
51953case $ac_abs_builddir in
51954.) ac_abs_top_srcdir=$ac_top_srcdir;;
51955*)
51956 case $ac_top_srcdir in
51957 .) ac_abs_top_srcdir=$ac_abs_builddir;;
51958 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
51959 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
51960 esac;;
51961esac
a848cd7e
SC
51962
51963
51964 cd $ac_dir
51965
51966 # Check for guested configure; otherwise get Cygnus style configure.
51967 if test -f $ac_srcdir/configure.gnu; then
51968 ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
51969 elif test -f $ac_srcdir/configure; then
51970 ac_sub_configure="$SHELL '$ac_srcdir/configure'"
51971 elif test -f $ac_srcdir/configure.in; then
51972 ac_sub_configure=$ac_configure
51973 else
51974 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
51975echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
51976 ac_sub_configure=
51977 fi
51978
51979 # The recursion is here.
51980 if test -n "$ac_sub_configure"; then
51981 # Make the cache file name correct relative to the subdirectory.
51982 case $cache_file in
51983 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
51984 *) # Relative path.
ac1cb8d3 51985 ac_sub_cache_file=$ac_top_builddir$cache_file ;;
a848cd7e
SC
51986 esac
51987
51988 { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
51989echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
51990 # The eval makes quoting arguments work.
51991 eval $ac_sub_configure $ac_sub_configure_args \
ac1cb8d3
VS
51992 --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
51993 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
a848cd7e
SC
51994echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
51995 { (exit 1); exit 1; }; }
51996 fi
51997
479c790c 51998 cd "$ac_popdir"
a848cd7e
SC
51999 done
52000fi
52001
52002
52003echo
77ffb593 52004echo "Configured wxWidgets ${WX_VERSION} for \`${host}'"
a848cd7e 52005echo ""
c2e9ada4 52006echo " Which GUI toolkit should wxWidgets use? ${TOOLKIT_DESC}"
77ffb593 52007echo " Should wxWidgets be compiled into single library? ${wxUSE_MONOLITHIC:-yes}"
a848cd7e 52008
77ffb593
JS
52009echo " Should wxWidgets be compiled in debug mode? ${wxUSE_DEBUG:-no}"
52010echo " Should wxWidgets be linked as a shared library? ${wxUSE_SHARED:-no}"
52011echo " Should wxWidgets be compiled in Unicode mode? ${wxUSE_UNICODE:-no}"
a848cd7e 52012
77ffb593 52013echo " What level of wxWidgets compatibility should be enabled?"
dee1a63f
MB
52014echo " wxWidgets 2.4 ${WXWIN_COMPATIBILITY_2_4:-no}"
52015echo " wxWidgets 2.6 ${WXWIN_COMPATIBILITY_2_6:-yes}"
a848cd7e 52016
77ffb593 52017echo " Which libraries should wxWidgets use?"
a848cd7e
SC
52018echo " jpeg ${wxUSE_LIBJPEG-none}"
52019echo " png ${wxUSE_LIBPNG-none}"
52020echo " regex ${wxUSE_REGEX}"
52021echo " tiff ${wxUSE_LIBTIFF-none}"
52022if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then
52023echo " xpm ${wxUSE_LIBXPM-none}"
52024fi
52025echo " zlib ${wxUSE_ZLIB}"
52026echo " odbc ${wxUSE_ODBC}"
52027echo " expat ${wxUSE_EXPAT}"
52028echo " libmspack ${wxUSE_LIBMSPACK}"
52029echo " sdl ${wxUSE_LIBSDL}"
52030
52031echo ""
52032