]> git.saurik.com Git - wxWidgets.git/blame - configure
Source cleaning, wxW headers, whitespaces and improved PCH support.
[wxWidgets.git] / configure
CommitLineData
a848cd7e
SC
1#! /bin/sh
2# From configure.in Id: configure.in.
3# Guess values for system-dependent variables and create Makefiles.
dd8df4fc 4# Generated by GNU Autoconf 2.59 for wxWidgets 2.7.0.
a848cd7e 5#
77ffb593 6# Report bugs to <wx-dev@lists.wxwidgets.org>.
a848cd7e 7#
ac1cb8d3 8# Copyright (C) 2003 Free Software Foundation, Inc.
a848cd7e
SC
9# This configure script is free software; the Free Software Foundation
10# gives unlimited permission to copy, distribute and modify it.
11## --------------------- ##
12## M4sh Initialization. ##
13## --------------------- ##
14
15# Be Bourne compatible
16if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
17 emulate sh
18 NULLCMD=:
19 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
20 # is contrary to our usage. Disable this feature.
21 alias -g '${1+"$@"}'='"$@"'
22elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
23 set -o posix
24fi
ac1cb8d3 25DUALCASE=1; export DUALCASE # for MKS sh
a848cd7e
SC
26
27# Support unset when possible.
ac1cb8d3 28if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
a848cd7e
SC
29 as_unset=unset
30else
31 as_unset=false
32fi
33
34
35# Work around bugs in pre-3.0 UWIN ksh.
36$as_unset ENV MAIL MAILPATH
37PS1='$ '
38PS2='> '
39PS4='+ '
40
41# NLS nuisances.
42for as_var in \
43 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
44 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
45 LC_TELEPHONE LC_TIME
46do
ac1cb8d3 47 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
a848cd7e
SC
48 eval $as_var=C; export $as_var
49 else
50 $as_unset $as_var
51 fi
52done
53
54# Required to use basename.
55if expr a : '\(a\)' >/dev/null 2>&1; then
56 as_expr=expr
57else
58 as_expr=false
59fi
60
61if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
62 as_basename=basename
63else
64 as_basename=false
65fi
66
67
68# Name of the executable.
69as_me=`$as_basename "$0" ||
70$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
71 X"$0" : 'X\(//\)$' \| \
72 X"$0" : 'X\(/\)$' \| \
73 . : '\(.\)' 2>/dev/null ||
74echo X/"$0" |
75 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
76 /^X\/\(\/\/\)$/{ s//\1/; q; }
77 /^X\/\(\/\).*/{ s//\1/; q; }
78 s/.*/./; q'`
79
80
81# PATH needs CR, and LINENO needs CR and PATH.
82# Avoid depending upon Character Ranges.
83as_cr_letters='abcdefghijklmnopqrstuvwxyz'
84as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
85as_cr_Letters=$as_cr_letters$as_cr_LETTERS
86as_cr_digits='0123456789'
87as_cr_alnum=$as_cr_Letters$as_cr_digits
88
89# The user is always right.
90if test "${PATH_SEPARATOR+set}" != set; then
91 echo "#! /bin/sh" >conf$$.sh
92 echo "exit 0" >>conf$$.sh
93 chmod +x conf$$.sh
94 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
95 PATH_SEPARATOR=';'
96 else
97 PATH_SEPARATOR=:
98 fi
99 rm -f conf$$.sh
100fi
101
102
103 as_lineno_1=$LINENO
104 as_lineno_2=$LINENO
105 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
106 test "x$as_lineno_1" != "x$as_lineno_2" &&
107 test "x$as_lineno_3" = "x$as_lineno_2" || {
108 # Find who we are. Look in the path if we contain no path at all
109 # relative or not.
110 case $0 in
111 *[\\/]* ) as_myself=$0 ;;
112 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
113for as_dir in $PATH
114do
115 IFS=$as_save_IFS
116 test -z "$as_dir" && as_dir=.
117 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
118done
119
120 ;;
121 esac
122 # We did not find ourselves, most probably we were run as `sh COMMAND'
123 # in which case we are not to be found in the path.
124 if test "x$as_myself" = x; then
125 as_myself=$0
126 fi
127 if test ! -f "$as_myself"; then
128 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
129 { (exit 1); exit 1; }; }
130 fi
131 case $CONFIG_SHELL in
132 '')
133 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
134for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
135do
136 IFS=$as_save_IFS
137 test -z "$as_dir" && as_dir=.
138 for as_base in sh bash ksh sh5; do
139 case $as_dir in
140 /*)
141 if ("$as_dir/$as_base" -c '
142 as_lineno_1=$LINENO
143 as_lineno_2=$LINENO
144 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
145 test "x$as_lineno_1" != "x$as_lineno_2" &&
146 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
147 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
148 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
149 CONFIG_SHELL=$as_dir/$as_base
150 export CONFIG_SHELL
151 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
152 fi;;
153 esac
154 done
155done
156;;
157 esac
158
159 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
160 # uniformly replaced by the line number. The first 'sed' inserts a
161 # line-number line before each line; the second 'sed' does the real
162 # work. The second script uses 'N' to pair each line-number line
163 # with the numbered line, and appends trailing '-' during
164 # substitution so that $LINENO is not a special case at line end.
165 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
166 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
167 sed '=' <$as_myself |
168 sed '
169 N
170 s,$,-,
171 : loop
172 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
173 t loop
174 s,-$,,
175 s,^['$as_cr_digits']*\n,,
176 ' >$as_me.lineno &&
177 chmod +x $as_me.lineno ||
178 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
179 { (exit 1); exit 1; }; }
180
181 # Don't try to exec as it changes $[0], causing all sort of problems
182 # (the dirname of $[0] is not the place where we might find the
183 # original and so on. Autoconf is especially sensible to this).
184 . ./$as_me.lineno
185 # Exit status is that of the last command.
186 exit
187}
188
189
190case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
191 *c*,-n*) ECHO_N= ECHO_C='
192' ECHO_T=' ' ;;
193 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
194 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
195esac
196
197if expr a : '\(a\)' >/dev/null 2>&1; then
198 as_expr=expr
199else
200 as_expr=false
201fi
202
203rm -f conf$$ conf$$.exe conf$$.file
204echo >conf$$.file
205if ln -s conf$$.file conf$$ 2>/dev/null; then
206 # We could just check for DJGPP; but this test a) works b) is more generic
207 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
208 if test -f conf$$.exe; then
209 # Don't use ln at all; we don't have any links
210 as_ln_s='cp -p'
211 else
212 as_ln_s='ln -s'
213 fi
214elif ln conf$$.file conf$$ 2>/dev/null; then
215 as_ln_s=ln
216else
217 as_ln_s='cp -p'
218fi
219rm -f conf$$ conf$$.exe conf$$.file
220
221if mkdir -p . 2>/dev/null; then
222 as_mkdir_p=:
223else
ac1cb8d3 224 test -d ./-p && rmdir ./-p
a848cd7e
SC
225 as_mkdir_p=false
226fi
227
228as_executable_p="test -f"
229
230# Sed expression to map a string onto a valid CPP name.
ac1cb8d3 231as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
a848cd7e
SC
232
233# Sed expression to map a string onto a valid variable name.
ac1cb8d3 234as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
a848cd7e
SC
235
236
237# IFS
238# We need space, tab and new line, in precisely that order.
239as_nl='
240'
241IFS=" $as_nl"
242
243# CDPATH.
244$as_unset CDPATH
245
246
247# Name of the host.
248# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
249# so uname gets run too.
250ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
251
252exec 6>&1
253
254#
255# Initializations.
256#
257ac_default_prefix=/usr/local
258ac_config_libobj_dir=.
259cross_compiling=no
260subdirs=
261MFLAGS=
262MAKEFLAGS=
263SHELL=${CONFIG_SHELL-/bin/sh}
264
265# Maximum number of lines to put in a shell here document.
266# This variable seems obsolete. It should probably be removed, and
267# only ac_max_sed_lines should be used.
268: ${ac_max_here_lines=38}
269
270# Identity of this package.
77ffb593
JS
271PACKAGE_NAME='wxWidgets'
272PACKAGE_TARNAME='wxwidgets'
dd8df4fc
VZ
273PACKAGE_VERSION='2.7.0'
274PACKAGE_STRING='wxWidgets 2.7.0'
77ffb593 275PACKAGE_BUGREPORT='wx-dev@lists.wxwidgets.org'
a848cd7e
SC
276
277ac_unique_file="wx-config.in"
278# Factoring default headers for most tests.
279ac_includes_default="\
280#include <stdio.h>
281#if HAVE_SYS_TYPES_H
282# include <sys/types.h>
283#endif
284#if HAVE_SYS_STAT_H
285# include <sys/stat.h>
286#endif
287#if STDC_HEADERS
288# include <stdlib.h>
289# include <stddef.h>
290#else
291# if HAVE_STDLIB_H
292# include <stdlib.h>
293# endif
294#endif
295#if HAVE_STRING_H
296# if !STDC_HEADERS && HAVE_MEMORY_H
297# include <memory.h>
298# endif
299# include <string.h>
300#endif
301#if HAVE_STRINGS_H
302# include <strings.h>
303#endif
304#if HAVE_INTTYPES_H
305# include <inttypes.h>
306#else
307# if HAVE_STDINT_H
308# include <stdint.h>
309# endif
310#endif
311#if HAVE_UNISTD_H
312# include <unistd.h>
313#endif"
314
315ac_subdirs_all="$ac_subdirs_all src/expat"
3f60522a 316ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CPP EGREP CXX CXXFLAGS ac_ct_CXX RANLIB ac_ct_RANLIB AR ac_ct_AR INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA STRIP ac_ct_STRIP WINDRES ac_ct_WINDRES DLLTOOL ac_ct_DLLTOOL IF_GNU_MAKE LN_S CXXCPP subdirs PKG_CONFIG GTK_CFLAGS GTK_LIBS GTK_CONFIG X_CFLAGS X_PRE_LIBS X_LIBS X_EXTRA_LIBS PANGOX_CFLAGS PANGOX_LIBS PANGOFT2_CFLAGS PANGOFT2_LIBS PANGOXFT_CFLAGS PANGOXFT_LIBS REZ DEREZ SETFILE LIBICONV EXTRALIBS_ESD SDL_CONFIG SDL_CFLAGS SDL_LIBS LIBGNOMEPRINTUI_CFLAGS LIBGNOMEPRINTUI_LIBS GNOMEVFS_CFLAGS GNOMEVFS_LIBS HILDON_CFLAGS HILDON_LIBS GST_CFLAGS GST_LIBS CORE_BASE_LIBS CORE_GUI_LIBS wxUSE_ZLIB wxUSE_REGEX wxUSE_EXPAT wxUSE_ODBC wxUSE_LIBJPEG wxUSE_LIBPNG wxUSE_LIBTIFF VENDOR OFFICIAL_BUILD WX_FLAVOUR WX_LIB_FLAVOUR WXUNIV MONOLITHIC USE_PLUGINS EXTRALIBS EXTRALIBS_XML EXTRALIBS_HTML EXTRALIBS_ODBC EXTRALIBS_GUI EXTRALIBS_OPENGL EXTRALIBS_SDL WITH_PLUGIN_SDL EXTRALIBS_GNOMEPRINT EXTRALIBS_GNOMEVFS EXTRALIBS_HILDON UNICODE BUILD DEBUG_INFO DEBUG_FLAG TOOLKIT_LOWERCASE TOOLKIT_VERSION SAMPLES_RPATH_FLAG SAMPLES_RPATH_POSTLINK HOST_SUFFIX CPPUNIT_CFLAGS CPPUNIT_LIBS SET_MAKE MAKE_SET NM ac_ct_NM INSTALL_DIR LDFLAGS_GUI PLATFORM_UNIX PLATFORM_WIN32 PLATFORM_MSDOS PLATFORM_MAC PLATFORM_MACOS PLATFORM_MACOSX PLATFORM_OS2 PLATFORM_BEOS SO_SUFFIX SO_SUFFIX_MODULE DLLIMP_SUFFIX LIBPREFIX LIBEXT DLLPREFIX DLLPREFIX_MODULE dlldir AIX_CXX_LD SHARED_LD_CC SHARED_LD_CXX SHARED_LD_MODULE_CC SHARED_LD_MODULE_CXX PIC_FLAG WINDOWS_IMPLIB USE_SOVERSION USE_SOVERLINUX USE_SOVERSOLARIS USE_SOVERCYGWIN USE_MACVERSION USE_SOSYMLINKS SONAME_FLAG DEPS_TRACKING GCC_PCH ICC_PCH COND_BUILD_DEBUG COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT COND_BUILD_DEBUG_UNICODE_0 COND_BUILD_DEBUG_UNICODE_1 COND_BUILD_RELEASE COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT COND_BUILD_RELEASE_UNICODE_0 COND_BUILD_RELEASE_UNICODE_1 COND_DEBUG_FLAG_1 COND_DEBUG_INFO_0 COND_DEBUG_INFO_1 COND_DEPS_TRACKING_0 COND_DEPS_TRACKING_1 COND_GCC_PCH_1 COND_ICC_PCH_1 COND_MONOLITHIC_0 COND_MONOLITHIC_0_SHARED_0 COND_MONOLITHIC_0_SHARED_0_USE_AUI_1 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_HTML_1 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_MEDIA_1 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_QA_1 COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1 COND_MONOLITHIC_0_SHARED_0_USE_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_XRC_1 COND_MONOLITHIC_0_USE_MEDIA_1 COND_MONOLITHIC_0_USE_ODBC_1 COND_MONOLITHIC_1 COND_MONOLITHIC_1_SHARED_0 COND_MONOLITHIC_1_SHARED_1 COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1 COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1 COND_PLATFORM_MACOSX_0_USE_SOVERCYGWIN_0_USE_SOVERSION_1 COND_PLATFORM_MACOSX_0_USE_SOVERSION_1 COND_PLATFORM_MACOSX_1 COND_PLATFORM_MACOSX_1_TOOLKIT_ COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA COND_PLATFORM_MACOSX_1_TOOLKIT_GTK COND_PLATFORM_MACOSX_1_TOOLKIT_MAC COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0 COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF COND_PLATFORM_MACOSX_1_TOOLKIT_X11 COND_PLATFORM_MACOSX_1_USE_GUI_1 COND_PLATFORM_MACOSX_1_USE_SOVERSION_1 COND_PLATFORM_MACOS_1 COND_PLATFORM_MAC_1 COND_PLATFORM_MSDOS_0 COND_PLATFORM_MSDOS_1 COND_PLATFORM_OS2_1 COND_PLATFORM_UNIX_0 COND_PLATFORM_UNIX_1 COND_PLATFORM_UNIX_1_USE_GUI_1 COND_PLATFORM_UNIX_1_USE_PLUGINS_0 COND_PLATFORM_WIN32_0 COND_PLATFORM_WIN32_1 COND_SHARED_0 COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0 COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0 COND_SHARED_0_TOOLKIT_PM_WXUNIV_0 COND_SHARED_0_USE_GUI_1_USE_OPENGL_1 COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN COND_SHARED_0_USE_XRC_1 COND_SHARED_0_WXUSE_EXPAT_BUILTIN COND_SHARED_0_WXUSE_ODBC_BUILTIN COND_SHARED_0_WXUSE_REGEX_BUILTIN COND_SHARED_0_WXUSE_ZLIB_BUILTIN COND_SHARED_1 COND_SHARED_1_USE_GUI_1_USE_OPENGL_1 COND_SHARED_1_USE_XRC_1 COND_TOOLKIT_ COND_TOOLKIT_COCOA COND_TOOLKIT_COCOA_USE_GUI_1 COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0 COND_TOOLKIT_GTK COND_TOOLKIT_GTK_TOOLKIT_VERSION_ COND_TOOLKIT_GTK_TOOLKIT_VERSION_2 COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1 COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1_WXUNIV_0 COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1 COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1_WXUNIV_0 COND_TOOLKIT_GTK_USE_GUI_1 COND_TOOLKIT_MAC COND_TOOLKIT_MAC_USE_GUI_1 COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0 COND_TOOLKIT_MGL COND_TOOLKIT_MGL_USE_GUI_1 COND_TOOLKIT_MOTIF COND_TOOLKIT_MOTIF_USE_GUI_1 COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0 COND_TOOLKIT_MSW COND_TOOLKIT_MSW_USE_GUI_1 COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0 COND_TOOLKIT_MSW_WXUNIV_0 COND_TOOLKIT_PM COND_TOOLKIT_PM_USE_GUI_1 COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0 COND_TOOLKIT_WINCE COND_TOOLKIT_WINCE_USE_GUI_1 COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0 COND_TOOLKIT_WINCE_WXUNIV_0 COND_TOOLKIT_X11 COND_TOOLKIT_X11_USE_GUI_1 COND_UNICODE_1 COND_USE_EXCEPTIONS_0 COND_USE_EXCEPTIONS_1 COND_USE_GUI_0 COND_USE_GUI_1 COND_USE_GUI_1_WXUNIV_0 COND_USE_GUI_1_WXUNIV_1 COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN COND_USE_ODBC_1 COND_USE_OPENGL_1 COND_USE_PCH_1 COND_USE_PLUGINS_0 COND_USE_RTTI_0 COND_USE_RTTI_1 COND_USE_SOSYMLINKS_1 COND_USE_SOVERCYGWIN_1_USE_SOVERSION_1 COND_USE_SOVERLINUX_1 COND_USE_SOVERSION_0 COND_USE_SOVERSOLARIS_1 COND_USE_THREADS_0 COND_USE_THREADS_1 COND_USE_XRC_1 COND_WINDOWS_IMPLIB_1 COND_WITH_PLUGIN_SDL_1 COND_WXUNIV_0 COND_WXUNIV_1 COND_WXUSE_EXPAT_BUILTIN COND_WXUSE_LIBJPEG_BUILTIN COND_WXUSE_LIBPNG_BUILTIN COND_WXUSE_LIBTIFF_BUILTIN COND_WXUSE_ODBC_BUILTIN COND_WXUSE_REGEX_BUILTIN COND_WXUSE_ZLIB_BUILTIN SHARED WX_LIBRARY_BASENAME_NOGUI WX_LIBRARY_BASENAME_GUI USE_GUI AFMINSTALL WIN32INSTALL TOOLKIT TOOLKIT_DIR TOOLCHAIN_NAME TOOLCHAIN_FULLNAME cross_compiling WIDGET_SET WX_RELEASE WX_VERSION WX_SUBVERSION WX_CHARTYPE WX_DEBUGTYPE WXCONFIG_CPPFLAGS WXCONFIG_CFLAGS WXCONFIG_CXXFLAGS WXCONFIG_LIBS WXCONFIG_RPATH WXCONFIG_LDFLAGS_GUI WXCONFIG_RESFLAGS EXE_LINKER GUIDIST DISTDIR SAMPLES_SUBDIRS LDFLAGS_GL OPENGL_LIBS DMALLOC_LIBS WX_VERSION_TAG RESCOMP RESFLAGS RESPROGRAMOBJ WX_RESOURCES_MACOSX_ASCII WX_RESOURCES_MACOSX_DATA LIBWXMACRES POSTLINK_COMMAND MACSETFILE GCC CPPUNIT_CONFIG LIBOBJS LTLIBOBJS'
a848cd7e
SC
317ac_subst_files=''
318
319# Initialize some variables set by options.
320ac_init_help=
321ac_init_version=false
322# The variables have the same names as the options, with
323# dashes changed to underlines.
324cache_file=/dev/null
325exec_prefix=NONE
326no_create=
327no_recursion=
328prefix=NONE
329program_prefix=NONE
330program_suffix=NONE
331program_transform_name=s,x,x,
332silent=
333site=
334srcdir=
335verbose=
336x_includes=NONE
337x_libraries=NONE
338
339# Installation directory options.
340# These are left unexpanded so users can "make install exec_prefix=/foo"
341# and all the variables that are supposed to be based on exec_prefix
342# by default will actually change.
343# Use braces instead of parens because sh, perl, etc. also accept them.
344bindir='${exec_prefix}/bin'
345sbindir='${exec_prefix}/sbin'
346libexecdir='${exec_prefix}/libexec'
347datadir='${prefix}/share'
348sysconfdir='${prefix}/etc'
349sharedstatedir='${prefix}/com'
350localstatedir='${prefix}/var'
351libdir='${exec_prefix}/lib'
352includedir='${prefix}/include'
353oldincludedir='/usr/include'
354infodir='${prefix}/info'
355mandir='${prefix}/man'
356
357ac_prev=
358for ac_option
359do
360 # If the previous option needs an argument, assign it.
361 if test -n "$ac_prev"; then
362 eval "$ac_prev=\$ac_option"
363 ac_prev=
364 continue
365 fi
366
367 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
368
369 # Accept the important Cygnus configure options, so we can diagnose typos.
370
371 case $ac_option in
372
373 -bindir | --bindir | --bindi | --bind | --bin | --bi)
374 ac_prev=bindir ;;
375 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
376 bindir=$ac_optarg ;;
377
378 -build | --build | --buil | --bui | --bu)
379 ac_prev=build_alias ;;
380 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
381 build_alias=$ac_optarg ;;
382
383 -cache-file | --cache-file | --cache-fil | --cache-fi \
384 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
385 ac_prev=cache_file ;;
386 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
387 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
388 cache_file=$ac_optarg ;;
389
390 --config-cache | -C)
391 cache_file=config.cache ;;
392
393 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
394 ac_prev=datadir ;;
395 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
396 | --da=*)
397 datadir=$ac_optarg ;;
398
399 -disable-* | --disable-*)
400 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
401 # Reject names that are not valid shell variable names.
402 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
403 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
404 { (exit 1); exit 1; }; }
405 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
406 eval "enable_$ac_feature=no" ;;
407
408 -enable-* | --enable-*)
409 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
410 # Reject names that are not valid shell variable names.
411 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
412 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
413 { (exit 1); exit 1; }; }
414 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
415 case $ac_option in
416 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
417 *) ac_optarg=yes ;;
418 esac
419 eval "enable_$ac_feature='$ac_optarg'" ;;
420
421 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
422 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
423 | --exec | --exe | --ex)
424 ac_prev=exec_prefix ;;
425 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
426 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
427 | --exec=* | --exe=* | --ex=*)
428 exec_prefix=$ac_optarg ;;
429
430 -gas | --gas | --ga | --g)
431 # Obsolete; use --with-gas.
432 with_gas=yes ;;
433
434 -help | --help | --hel | --he | -h)
435 ac_init_help=long ;;
436 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
437 ac_init_help=recursive ;;
438 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
439 ac_init_help=short ;;
440
441 -host | --host | --hos | --ho)
442 ac_prev=host_alias ;;
443 -host=* | --host=* | --hos=* | --ho=*)
444 host_alias=$ac_optarg ;;
445
446 -includedir | --includedir | --includedi | --included | --include \
447 | --includ | --inclu | --incl | --inc)
448 ac_prev=includedir ;;
449 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
450 | --includ=* | --inclu=* | --incl=* | --inc=*)
451 includedir=$ac_optarg ;;
452
453 -infodir | --infodir | --infodi | --infod | --info | --inf)
454 ac_prev=infodir ;;
455 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
456 infodir=$ac_optarg ;;
457
458 -libdir | --libdir | --libdi | --libd)
459 ac_prev=libdir ;;
460 -libdir=* | --libdir=* | --libdi=* | --libd=*)
461 libdir=$ac_optarg ;;
462
463 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
464 | --libexe | --libex | --libe)
465 ac_prev=libexecdir ;;
466 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
467 | --libexe=* | --libex=* | --libe=*)
468 libexecdir=$ac_optarg ;;
469
470 -localstatedir | --localstatedir | --localstatedi | --localstated \
471 | --localstate | --localstat | --localsta | --localst \
472 | --locals | --local | --loca | --loc | --lo)
473 ac_prev=localstatedir ;;
474 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
475 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
476 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
477 localstatedir=$ac_optarg ;;
478
479 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
480 ac_prev=mandir ;;
481 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
482 mandir=$ac_optarg ;;
483
484 -nfp | --nfp | --nf)
485 # Obsolete; use --without-fp.
486 with_fp=no ;;
487
488 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
489 | --no-cr | --no-c | -n)
490 no_create=yes ;;
491
492 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
493 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
494 no_recursion=yes ;;
495
496 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
497 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
498 | --oldin | --oldi | --old | --ol | --o)
499 ac_prev=oldincludedir ;;
500 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
501 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
502 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
503 oldincludedir=$ac_optarg ;;
504
505 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
506 ac_prev=prefix ;;
507 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
508 prefix=$ac_optarg ;;
509
510 -program-prefix | --program-prefix | --program-prefi | --program-pref \
511 | --program-pre | --program-pr | --program-p)
512 ac_prev=program_prefix ;;
513 -program-prefix=* | --program-prefix=* | --program-prefi=* \
514 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
515 program_prefix=$ac_optarg ;;
516
517 -program-suffix | --program-suffix | --program-suffi | --program-suff \
518 | --program-suf | --program-su | --program-s)
519 ac_prev=program_suffix ;;
520 -program-suffix=* | --program-suffix=* | --program-suffi=* \
521 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
522 program_suffix=$ac_optarg ;;
523
524 -program-transform-name | --program-transform-name \
525 | --program-transform-nam | --program-transform-na \
526 | --program-transform-n | --program-transform- \
527 | --program-transform | --program-transfor \
528 | --program-transfo | --program-transf \
529 | --program-trans | --program-tran \
530 | --progr-tra | --program-tr | --program-t)
531 ac_prev=program_transform_name ;;
532 -program-transform-name=* | --program-transform-name=* \
533 | --program-transform-nam=* | --program-transform-na=* \
534 | --program-transform-n=* | --program-transform-=* \
535 | --program-transform=* | --program-transfor=* \
536 | --program-transfo=* | --program-transf=* \
537 | --program-trans=* | --program-tran=* \
538 | --progr-tra=* | --program-tr=* | --program-t=*)
539 program_transform_name=$ac_optarg ;;
540
541 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
542 | -silent | --silent | --silen | --sile | --sil)
543 silent=yes ;;
544
545 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
546 ac_prev=sbindir ;;
547 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
548 | --sbi=* | --sb=*)
549 sbindir=$ac_optarg ;;
550
551 -sharedstatedir | --sharedstatedir | --sharedstatedi \
552 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
553 | --sharedst | --shareds | --shared | --share | --shar \
554 | --sha | --sh)
555 ac_prev=sharedstatedir ;;
556 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
557 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
558 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
559 | --sha=* | --sh=*)
560 sharedstatedir=$ac_optarg ;;
561
562 -site | --site | --sit)
563 ac_prev=site ;;
564 -site=* | --site=* | --sit=*)
565 site=$ac_optarg ;;
566
567 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
568 ac_prev=srcdir ;;
569 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
570 srcdir=$ac_optarg ;;
571
572 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
573 | --syscon | --sysco | --sysc | --sys | --sy)
574 ac_prev=sysconfdir ;;
575 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
576 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
577 sysconfdir=$ac_optarg ;;
578
579 -target | --target | --targe | --targ | --tar | --ta | --t)
580 ac_prev=target_alias ;;
581 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
582 target_alias=$ac_optarg ;;
583
584 -v | -verbose | --verbose | --verbos | --verbo | --verb)
585 verbose=yes ;;
586
587 -version | --version | --versio | --versi | --vers | -V)
588 ac_init_version=: ;;
589
590 -with-* | --with-*)
591 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
592 # Reject names that are not valid shell variable names.
593 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
594 { echo "$as_me: error: invalid package name: $ac_package" >&2
595 { (exit 1); exit 1; }; }
596 ac_package=`echo $ac_package| sed 's/-/_/g'`
597 case $ac_option in
598 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
599 *) ac_optarg=yes ;;
600 esac
601 eval "with_$ac_package='$ac_optarg'" ;;
602
603 -without-* | --without-*)
604 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
605 # Reject names that are not valid shell variable names.
606 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
607 { echo "$as_me: error: invalid package name: $ac_package" >&2
608 { (exit 1); exit 1; }; }
609 ac_package=`echo $ac_package | sed 's/-/_/g'`
610 eval "with_$ac_package=no" ;;
611
612 --x)
613 # Obsolete; use --with-x.
614 with_x=yes ;;
615
616 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
617 | --x-incl | --x-inc | --x-in | --x-i)
618 ac_prev=x_includes ;;
619 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
620 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
621 x_includes=$ac_optarg ;;
622
623 -x-libraries | --x-libraries | --x-librarie | --x-librari \
624 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
625 ac_prev=x_libraries ;;
626 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
627 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
628 x_libraries=$ac_optarg ;;
629
630 -*) { echo "$as_me: error: unrecognized option: $ac_option
631Try \`$0 --help' for more information." >&2
632 { (exit 1); exit 1; }; }
633 ;;
634
635 *=*)
636 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
637 # Reject names that are not valid shell variable names.
638 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
639 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
640 { (exit 1); exit 1; }; }
641 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
642 eval "$ac_envvar='$ac_optarg'"
643 export $ac_envvar ;;
644
645 *)
646 # FIXME: should be removed in autoconf 3.0.
647 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
648 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
649 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
650 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
651 ;;
652
653 esac
654done
655
656if test -n "$ac_prev"; then
657 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
658 { echo "$as_me: error: missing argument to $ac_option" >&2
659 { (exit 1); exit 1; }; }
660fi
661
662# Be sure to have absolute paths.
663for ac_var in exec_prefix prefix
664do
665 eval ac_val=$`echo $ac_var`
666 case $ac_val in
667 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
668 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
669 { (exit 1); exit 1; }; };;
670 esac
671done
672
673# Be sure to have absolute paths.
674for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
ac1cb8d3 675 localstatedir libdir includedir oldincludedir infodir mandir
a848cd7e
SC
676do
677 eval ac_val=$`echo $ac_var`
678 case $ac_val in
679 [\\/$]* | ?:[\\/]* ) ;;
680 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
681 { (exit 1); exit 1; }; };;
682 esac
683done
684
685# There might be people who depend on the old broken behavior: `$host'
686# used to hold the argument of --host etc.
687# FIXME: To remove some day.
688build=$build_alias
689host=$host_alias
690target=$target_alias
691
692# FIXME: To remove some day.
693if test "x$host_alias" != x; then
694 if test "x$build_alias" = x; then
695 cross_compiling=maybe
696 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
697 If a cross compiler is detected then cross compile mode will be used." >&2
698 elif test "x$build_alias" != "x$host_alias"; then
699 cross_compiling=yes
700 fi
701fi
702
703ac_tool_prefix=
704test -n "$host_alias" && ac_tool_prefix=$host_alias-
705
706test "$silent" = yes && exec 6>/dev/null
707
708
709# Find the source files, if location was not specified.
710if test -z "$srcdir"; then
711 ac_srcdir_defaulted=yes
712 # Try the directory containing this script, then its parent.
713 ac_confdir=`(dirname "$0") 2>/dev/null ||
714$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
715 X"$0" : 'X\(//\)[^/]' \| \
716 X"$0" : 'X\(//\)$' \| \
717 X"$0" : 'X\(/\)' \| \
718 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
719echo X"$0" |
720 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
721 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
722 /^X\(\/\/\)$/{ s//\1/; q; }
723 /^X\(\/\).*/{ s//\1/; q; }
724 s/.*/./; q'`
725 srcdir=$ac_confdir
726 if test ! -r $srcdir/$ac_unique_file; then
727 srcdir=..
728 fi
729else
730 ac_srcdir_defaulted=no
731fi
732if test ! -r $srcdir/$ac_unique_file; then
733 if test "$ac_srcdir_defaulted" = yes; then
734 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
735 { (exit 1); exit 1; }; }
736 else
737 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
738 { (exit 1); exit 1; }; }
739 fi
740fi
741(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
742 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
743 { (exit 1); exit 1; }; }
744srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
745ac_env_build_alias_set=${build_alias+set}
746ac_env_build_alias_value=$build_alias
747ac_cv_env_build_alias_set=${build_alias+set}
748ac_cv_env_build_alias_value=$build_alias
749ac_env_host_alias_set=${host_alias+set}
750ac_env_host_alias_value=$host_alias
751ac_cv_env_host_alias_set=${host_alias+set}
752ac_cv_env_host_alias_value=$host_alias
753ac_env_target_alias_set=${target_alias+set}
754ac_env_target_alias_value=$target_alias
755ac_cv_env_target_alias_set=${target_alias+set}
756ac_cv_env_target_alias_value=$target_alias
757ac_env_CC_set=${CC+set}
758ac_env_CC_value=$CC
759ac_cv_env_CC_set=${CC+set}
760ac_cv_env_CC_value=$CC
761ac_env_CFLAGS_set=${CFLAGS+set}
762ac_env_CFLAGS_value=$CFLAGS
763ac_cv_env_CFLAGS_set=${CFLAGS+set}
764ac_cv_env_CFLAGS_value=$CFLAGS
765ac_env_LDFLAGS_set=${LDFLAGS+set}
766ac_env_LDFLAGS_value=$LDFLAGS
767ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
768ac_cv_env_LDFLAGS_value=$LDFLAGS
769ac_env_CPPFLAGS_set=${CPPFLAGS+set}
770ac_env_CPPFLAGS_value=$CPPFLAGS
771ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
772ac_cv_env_CPPFLAGS_value=$CPPFLAGS
773ac_env_CPP_set=${CPP+set}
774ac_env_CPP_value=$CPP
775ac_cv_env_CPP_set=${CPP+set}
776ac_cv_env_CPP_value=$CPP
777ac_env_CXX_set=${CXX+set}
778ac_env_CXX_value=$CXX
779ac_cv_env_CXX_set=${CXX+set}
780ac_cv_env_CXX_value=$CXX
781ac_env_CXXFLAGS_set=${CXXFLAGS+set}
782ac_env_CXXFLAGS_value=$CXXFLAGS
783ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
784ac_cv_env_CXXFLAGS_value=$CXXFLAGS
785ac_env_CXXCPP_set=${CXXCPP+set}
786ac_env_CXXCPP_value=$CXXCPP
787ac_cv_env_CXXCPP_set=${CXXCPP+set}
788ac_cv_env_CXXCPP_value=$CXXCPP
789
790#
791# Report the --help message.
792#
793if test "$ac_init_help" = "long"; then
794 # Omit some internal or obsolete options to make the list less imposing.
795 # This message is too long to be a string in the A/UX 3.1 sh.
796 cat <<_ACEOF
dd8df4fc 797\`configure' configures wxWidgets 2.7.0 to adapt to many kinds of systems.
a848cd7e
SC
798
799Usage: $0 [OPTION]... [VAR=VALUE]...
800
801To assign environment variables (e.g., CC, CFLAGS...), specify them as
802VAR=VALUE. See below for descriptions of some of the useful variables.
803
804Defaults for the options are specified in brackets.
805
806Configuration:
807 -h, --help display this help and exit
808 --help=short display options specific to this package
809 --help=recursive display the short help of all the included packages
810 -V, --version display version information and exit
811 -q, --quiet, --silent do not print \`checking...' messages
812 --cache-file=FILE cache test results in FILE [disabled]
813 -C, --config-cache alias for \`--cache-file=config.cache'
814 -n, --no-create do not create output files
815 --srcdir=DIR find the sources in DIR [configure dir or \`..']
816
817_ACEOF
818
819 cat <<_ACEOF
820Installation directories:
821 --prefix=PREFIX install architecture-independent files in PREFIX
ac1cb8d3 822 [$ac_default_prefix]
a848cd7e 823 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
ac1cb8d3 824 [PREFIX]
a848cd7e
SC
825
826By default, \`make install' will install all the files in
827\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
828an installation prefix other than \`$ac_default_prefix' using \`--prefix',
829for instance \`--prefix=\$HOME'.
830
831For better control, use the options below.
832
833Fine tuning of the installation directories:
834 --bindir=DIR user executables [EPREFIX/bin]
835 --sbindir=DIR system admin executables [EPREFIX/sbin]
836 --libexecdir=DIR program executables [EPREFIX/libexec]
837 --datadir=DIR read-only architecture-independent data [PREFIX/share]
838 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
839 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
840 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
841 --libdir=DIR object code libraries [EPREFIX/lib]
842 --includedir=DIR C header files [PREFIX/include]
843 --oldincludedir=DIR C header files for non-gcc [/usr/include]
844 --infodir=DIR info documentation [PREFIX/info]
845 --mandir=DIR man documentation [PREFIX/man]
846_ACEOF
847
848 cat <<\_ACEOF
849
850X features:
851 --x-includes=DIR X include files are in DIR
852 --x-libraries=DIR X library files are in DIR
853
854System types:
855 --build=BUILD configure for building on BUILD [guessed]
856 --host=HOST cross-compile to build programs to run on HOST [BUILD]
857 --target=TARGET configure for building compilers for TARGET [HOST]
858_ACEOF
859fi
860
861if test -n "$ac_init_help"; then
862 case $ac_init_help in
dd8df4fc 863 short | recursive ) echo "Configuration of wxWidgets 2.7.0:";;
a848cd7e
SC
864 esac
865 cat <<\_ACEOF
866
867Optional Features:
868 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
869 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
870 --enable-gui use GUI classes
77ffb593
JS
871 --enable-monolithic build wxWidgets as single library
872 --enable-plugins build parts of wxWidgets as loadable components
873 --enable-universal use wxWidgets GUI controls instead of native ones
a848cd7e 874 --enable-nanox use NanoX
f34ca037 875 --disable-gtk2 use GTK+ 1.2 instead of 2.0
a848cd7e
SC
876 --enable-gpe use GNOME PDA Environment features if possible
877 --enable-shared create shared library code
878 --enable-optimise create optimised code
879 --enable-debug same as debug_flag and debug_info
880 --enable-stl use STL for containers
881 --enable-omf use OMF object format
882 --enable-debug_flag set __WXDEBUG__ flag (recommended for developers!)
883 --enable-debug_info create code with debugging information
884 --enable-debug_gdb create code with extra GDB debugging information
885 --enable-debug_cntxt use wxDebugContext
886 --enable-mem_tracing create code with memory tracing
887 --enable-profile create code with profiling information
888 --enable-no_rtti create code without RTTI information
889 --enable-no_exceptions create code without C++ exceptions handling
890 --enable-permissive compile code disregarding strict ANSI
891 --enable-no_deps create code without dependency information
7afc46ab 892 --enable-universal_binary create Mac PowerPC and Intel Universal binary (not yet working)
dee1a63f
MB
893 --enable-compat24 enable wxWidgets 2.4 compatibility
894 --disable-compat26 disable wxWidgets 2.6 compatibility
ffa0583f 895 --disable-rpath disable use of rpath for uninstalled builds
a848cd7e
SC
896 --enable-intl use internationalization system
897 --enable-config use wxConfig (and derived) classes
898 --enable-protocols use wxProtocol and derived classes
899 --enable-ftp use wxFTP (requires wxProtocol
900 --enable-http use wxHTTP (requires wxProtocol
901 --enable-fileproto use wxFileProto class (requires wxProtocol
902 --enable-sockets use socket/network classes
903 --enable-ole use OLE classes (Win32 only)
904 --enable-dataobj use data object classes
905 --enable-ipc use interprocess communication (wxSocket etc.)
906 --enable-apple_ieee use the Apple IEEE codec
81f90336 907 --enable-arcstream use wxArchive streams
eaff0f0d 908 --enable-backtrace use wxStackWalker class for getting backtraces
36b6448c 909 --enable-catch_segvs catch signals in wxApp::OnFatalException (Unix only)
a848cd7e
SC
910 --enable-cmdline use wxCmdLineParser class
911 --enable-datetime use wxDateTime class
36b6448c 912 --enable-debugreport use wxDebugReport class
a848cd7e
SC
913 --enable-dialupman use dialup network classes
914 --enable-dynlib use wxLibrary class for DLL loading
915 --enable-dynamicloader use (new) wxDynamicLibrary class
916 --enable-exceptions build exception-safe library
917 --enable-ffile use wxFFile class
918 --enable-file use wxFile class
919 --enable-filesystem use virtual file systems classes
920 --enable-fontmap use font encodings conversion classes
921 --enable-fs_inet use virtual HTTP/FTP filesystems
922 --enable-fs_zip use virtual ZIP filesystems
923 --enable-geometry use geometry class
924 --enable-log use logging system
925 --enable-longlong use wxLongLong class
926 --enable-mimetype use wxMimeTypesManager
927 --enable-mslu use MS Layer for Unicode on Windows 9x (Win32 only)
928 --enable-snglinst use wxSingleInstanceChecker class
a848cd7e 929 --enable-std_iostreams use standard C++ stream classes
59746b65 930 --enable-std_string use standard C++ string classes
07158944 931 --enable-stdpaths use wxStandardPaths class
a848cd7e 932 --enable-stopwatch use wxStopWatch class
07158944 933 --enable-streams use wxStream etc classes
a848cd7e
SC
934 --enable-sysoptions use wxSystemOptions
935 --enable-textbuf use wxTextBuffer class
936 --enable-textfile use wxTextFile class
937 --enable-timer use wxTimer class
938 --enable-unicode compile wxString with Unicode support
939 --enable-sound use wxSound class
3b57de8b 940 --enable-mediactrl use wxMediaCtrl class
f10e38c4 941 --enable-gstreamer8 force GStreamer 0.8 instead of 0.10 with the wxMediaCtrl class on unix
77ffb593 942 --enable-wxprintfv use wxWidgets implementation of vprintf()
81f90336 943 --enable-zipstream use wxZip streams
a848cd7e
SC
944 --enable-url use wxURL class
945 --enable-protocol use wxProtocol class
946 --enable-protocol-http HTTP support in wxProtocol
947 --enable-protocol-ftp FTP support in wxProtocol
948 --enable-protocol-file FILE support in wxProtocol
949 --enable-threads use threads
950 --enable-docview use document view architecture
951 --enable-help use help subsystem
952 --enable-mshtmlhelp use MS HTML Help (win32)
953 --enable-html use wxHTML sub-library
954 --enable-htmlhelp use wxHTML-based help
9a8f0513 955 --enable-xrc use XRC resources sub-library
3f60522a 956 --enable-aui use AUI docking library
a848cd7e
SC
957 --enable-constraints use layout-constraints system
958 --enable-printarch use printing architecture
959 --enable-mdi use multiple document interface architecture
8a7b1113 960 --enable-mdidoc use docview architecture with MDI
a848cd7e
SC
961 --enable-loggui use standard GUI logger
962 --enable-logwin use wxLogWindow
963 --enable-logdialog use wxLogDialog
646b6ec1 964 --enable-webkit use wxWebKitCtrl (Mac)
91dea314 965 --enable-richtext use wxRichTextCtrl
a848cd7e
SC
966 --enable-postscript use wxPostscriptDC device context (default for gtk+)
967 --enable-prologio not available; see contrib
968 --enable-resources not available; see contrib
969 --enable-clipboard use wxClipboard class
970 --enable-dnd use Drag'n'Drop classes
971 --enable-metafile use win32 metafiles
972 --enable-controls use all usual controls
973 --enable-accel use accelerators
974 --enable-button use wxButton class
975 --enable-bmpbutton use wxBitmapButton class
976 --enable-calendar use wxCalendarCtrl class
977 --enable-caret use wxCaret class
978 --enable-checkbox use wxCheckBox class
979 --enable-checklst use wxCheckListBox (listbox with checkboxes) class
980 --enable-choice use wxChoice class
92bbdbcd 981 --enable-choicebook use wxChoicebook class
e9263684 982 --enable-colourpicker use wxColourPickerCtrl class
a848cd7e 983 --enable-combobox use wxComboBox class
a57d600f 984 --enable-comboctrl use wxComboCtrl class
da98e9be 985 --enable-datepick use wxDatePickerCtrl class
e9263684 986 --enable-dirpicker use wxDirPickerCtrl class
a848cd7e 987 --enable-display use wxDisplay class
e9263684
VZ
988 --enable-filepicker use wxFilePickerCtrl class
989 --enable-fontpicker use wxFontPickerCtrl class
a848cd7e
SC
990 --enable-gauge use wxGauge class
991 --enable-grid use wxGrid class
20e34ecc 992 --enable-dataviewctrl, use wxDataViewCtrl class
6954625c 993 --enable-hyperlink use wxHyperlinkCtrl class
a848cd7e
SC
994 --enable-imaglist use wxImageList class
995 --enable-listbook use wxListbook class
996 --enable-listbox use wxListBox class
997 --enable-listctrl use wxListCtrl class
998 --enable-notebook use wxNotebook class
a57d600f 999 --enable-odcombobox use wxOwnerDrawnComboBox class
a848cd7e
SC
1000 --enable-radiobox use wxRadioBox class
1001 --enable-radiobtn use wxRadioButton class
1002 --enable-sash use wxSashWindow class
1003 --enable-scrollbar use wxScrollBar class and scrollable windows
1004 --enable-slider use wxSlider class
1005 --enable-spinbtn use wxSpinButton class
1006 --enable-spinctrl use wxSpinCtrl class
1007 --enable-splitter use wxSplitterWindow class
1008 --enable-statbmp use wxStaticBitmap class
1009 --enable-statbox use wxStaticBox class
1010 --enable-statline use wxStaticLine class
1011 --enable-stattext use wxStaticText class
1012 --enable-statusbar use wxStatusBar class
1013 --enable-tabdialog use wxTabControl class
1014 --enable-textctrl use wxTextCtrl class
1015 --enable-togglebtn use wxToggleButton class
1016 --enable-toolbar use wxToolBar class
1017 --enable-tbarnative use native wxToolBar class
1018 --enable-tbarsmpl use wxToolBarSimple class
0093c2fc 1019 --enable-treebook use wxTreebook class
5ec3bc43 1020 --enable-toolbook use wxToolbook class
a848cd7e
SC
1021 --enable-treectrl use wxTreeCtrl class
1022 --enable-tipwindow use wxTipWindow class
1023 --enable-popupwin use wxPopUpWindow class
1024 --enable-commondlg use all common dialogs
1025 --enable-choicedlg use wxChoiceDialog
1026 --enable-coldlg use wxColourDialog
1027 --enable-filedlg use wxFileDialog
1028 --enable-finddlg use wxFindReplaceDialog
1029 --enable-fontdlg use wxFontDialog
1030 --enable-dirdlg use wxDirDialog
1031 --enable-msgdlg use wxMessageDialog
1032 --enable-numberdlg use wxNumberEntryDialog
1033 --enable-splash use wxSplashScreen
1034 --enable-textdlg use wxTextDialog
1035 --enable-tipdlg use startup tips
1036 --enable-progressdlg use wxProgressDialog
1037 --enable-wizarddlg use wxWizard
1038 --enable-menus use wxMenu/wxMenuBar/wxMenuItem classes
1039 --enable-miniframe use wxMiniFrame class
1040 --enable-tooltips use wxToolTip class
1041 --enable-splines use spline drawing code
fbe2ca43 1042 --enable-mousewheel use mousewheel
a848cd7e
SC
1043 --enable-validators use wxValidator and derived classes
1044 --enable-busyinfo use wxBusyInfo
4cb1d3da 1045 --enable-joystick use wxJoystick
38b4a946 1046 --enable-metafiles use wxMetaFile (Win32 only)
a848cd7e
SC
1047 --enable-dragimage use wxDragImage
1048 --enable-accessibility enable accessibility support
38b4a946 1049 --enable-dccache cache temporary wxDC objects (Win32 only)
a848cd7e
SC
1050 --enable-palette use wxPalette class
1051 --enable-image use wxImage class
1052 --enable-gif use gif images (GIF file format)
1053 --enable-pcx use pcx images (PCX file format)
1054 --enable-iff use iff images (IFF file format)
1055 --enable-pnm use pnm images (PNM file format)
1056 --enable-xpm use xpm images (XPM file format)
1057 --enable-icocur use Windows ICO and CUR formats
77ffb593 1058 --enable-official_build official build of wxWidgets (win32 DLL only)
a848cd7e
SC
1059 --enable-vendor=VENDOR vendor name (win32 DLL only)
1060 --disable-largefile omit support for large files
1061 --disable-gtktest do not try to compile and run a test GTK+ program
1062 --disable-gtktest Do not try to compile and run a test GTK program
1063 --disable-sdltest Do not try to compile and run a test SDL program
1064 --enable-omf use OMF object format (OS/2)
f10e38c4
VZ
1065 --disable-dependency-tracking
1066 don't use dependency tracking even if the compiler
1067 can
ebee3cd0
VS
1068 --disable-precomp-headers
1069 don't use precompiled headers even if compiler can
a848cd7e
SC
1070
1071Optional Packages:
1072 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1073 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1c14217d 1074 --without-subdirs don't generate makefiles for samples/demos/...
f34ca037 1075 --with-gtk[=VERSION] use GTK+, VERSION can be 2 (default), 1 or "any"
a848cd7e
SC
1076 --with-motif use Motif/Lesstif
1077 --with-mac use Mac OS X
1078 --with-cocoa use Cocoa
1079 --with-wine use Wine
1080 --with-msw use MS-Windows
1081 --with-pm use OS/2 Presentation Manager
1082 --with-mgl use SciTech MGL
1083 --with-microwin use MicroWindows
1084 --with-x11 use X11
1085 --with-libpng use libpng (PNG image format)
1086 --with-libjpeg use libjpeg (JPEG file format)
1087 --with-libtiff use libtiff (TIFF file format)
1088 --with-libxpm use libxpm (XPM file format)
1089 --with-libmspack use libmspack (CHM help files loading)
1090 --with-sdl use SDL for audio on Unix
2b850ae1
RR
1091 --with-gnomeprint use GNOME print for printing under GNOME
1092 --with-gnomevfs use GNOME VFS for associating MIME types
3565d135 1093 --with-hildon use Hildon framework for Nokia 770
a848cd7e
SC
1094 --with-opengl use OpenGL (or Mesa)
1095 --with-dmalloc use dmalloc library (http://dmalloc.com/)
1096 --with-regex enable support for wxRegEx class
1097 --with-zlib use zlib for LZW compression
1098 --with-odbc use the IODBC and wxODBC classes
1099 --with-expat enable XML support using expat parser
ceec2216 1100 --with-flavour=NAME specify a name to identify this build
a848cd7e
SC
1101 --with-gtk-prefix=PFX Prefix where GTK is installed (optional)
1102 --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional)
1103 --with-x use the X Window System
1104 --with-libiconv-prefix=DIR search for libiconv in DIR/include and DIR/lib
1105 --with-sdl-prefix=PFX Prefix where SDL is installed (optional)
1106 --with-sdl-exec-prefix=PFX Exec prefix where SDL is installed (optional)
1107 --with-cppunit-prefix=PFX Prefix where CppUnit is installed (optional)
1108 --with-cppunit-exec-prefix=PFX Exec prefix where CppUnit is installed (optional)
1109
1110Some influential environment variables:
dcc1b6ad
VS
1111 CC C compiler command
1112 CFLAGS C compiler flags
1113 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1114 nonstandard directory <lib dir>
1115 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1116 headers in a nonstandard directory <include dir>
1117 CPP C preprocessor
1118 CXX C++ compiler command
1119 CXXFLAGS C++ compiler flags
1120 CXXCPP C++ preprocessor
a848cd7e
SC
1121
1122Use these variables to override the choices made by `configure' or to help
1123it to find libraries and programs with nonstandard names/locations.
1124
77ffb593 1125Report bugs to <wx-dev@lists.wxwidgets.org>.
a848cd7e
SC
1126_ACEOF
1127fi
1128
1129if test "$ac_init_help" = "recursive"; then
1130 # If there are subdirs, report their specific --help.
1131 ac_popdir=`pwd`
1132 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1133 test -d $ac_dir || continue
1134 ac_builddir=.
1135
1136if test "$ac_dir" != .; then
1137 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1138 # A "../" for each directory in $ac_dir_suffix.
1139 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1140else
1141 ac_dir_suffix= ac_top_builddir=
1142fi
1143
1144case $srcdir in
1145 .) # No --srcdir option. We are building in place.
1146 ac_srcdir=.
1147 if test -z "$ac_top_builddir"; then
1148 ac_top_srcdir=.
1149 else
1150 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1151 fi ;;
1152 [\\/]* | ?:[\\/]* ) # Absolute path.
1153 ac_srcdir=$srcdir$ac_dir_suffix;
1154 ac_top_srcdir=$srcdir ;;
1155 *) # Relative path.
1156 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1157 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1158esac
ac1cb8d3
VS
1159
1160# Do not use `cd foo && pwd` to compute absolute paths, because
1161# the directories may not exist.
1162case `pwd` in
1163.) ac_abs_builddir="$ac_dir";;
1164*)
1165 case "$ac_dir" in
1166 .) ac_abs_builddir=`pwd`;;
1167 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1168 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1169 esac;;
1170esac
1171case $ac_abs_builddir in
1172.) ac_abs_top_builddir=${ac_top_builddir}.;;
1173*)
1174 case ${ac_top_builddir}. in
1175 .) ac_abs_top_builddir=$ac_abs_builddir;;
1176 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1177 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1178 esac;;
1179esac
1180case $ac_abs_builddir in
1181.) ac_abs_srcdir=$ac_srcdir;;
1182*)
1183 case $ac_srcdir in
1184 .) ac_abs_srcdir=$ac_abs_builddir;;
1185 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1186 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1187 esac;;
1188esac
1189case $ac_abs_builddir in
1190.) ac_abs_top_srcdir=$ac_top_srcdir;;
1191*)
1192 case $ac_top_srcdir in
1193 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1194 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1195 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1196 esac;;
1197esac
a848cd7e
SC
1198
1199 cd $ac_dir
1200 # Check for guested configure; otherwise get Cygnus style configure.
1201 if test -f $ac_srcdir/configure.gnu; then
1202 echo
1203 $SHELL $ac_srcdir/configure.gnu --help=recursive
1204 elif test -f $ac_srcdir/configure; then
1205 echo
1206 $SHELL $ac_srcdir/configure --help=recursive
1207 elif test -f $ac_srcdir/configure.ac ||
ac1cb8d3 1208 test -f $ac_srcdir/configure.in; then
a848cd7e
SC
1209 echo
1210 $ac_configure --help
1211 else
1212 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1213 fi
3f60522a 1214 cd $ac_popdir
a848cd7e
SC
1215 done
1216fi
1217
1218test -n "$ac_init_help" && exit 0
1219if $ac_init_version; then
1220 cat <<\_ACEOF
dd8df4fc 1221wxWidgets configure 2.7.0
ac1cb8d3 1222generated by GNU Autoconf 2.59
a848cd7e 1223
ac1cb8d3 1224Copyright (C) 2003 Free Software Foundation, Inc.
a848cd7e
SC
1225This configure script is free software; the Free Software Foundation
1226gives unlimited permission to copy, distribute and modify it.
1227_ACEOF
1228 exit 0
1229fi
1230exec 5>config.log
1231cat >&5 <<_ACEOF
1232This file contains any messages produced by compilers while
1233running configure, to aid debugging if configure makes a mistake.
1234
dd8df4fc 1235It was created by wxWidgets $as_me 2.7.0, which was
ac1cb8d3 1236generated by GNU Autoconf 2.59. Invocation command line was
a848cd7e
SC
1237
1238 $ $0 $@
1239
1240_ACEOF
1241{
1242cat <<_ASUNAME
1243## --------- ##
1244## Platform. ##
1245## --------- ##
1246
1247hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1248uname -m = `(uname -m) 2>/dev/null || echo unknown`
1249uname -r = `(uname -r) 2>/dev/null || echo unknown`
1250uname -s = `(uname -s) 2>/dev/null || echo unknown`
1251uname -v = `(uname -v) 2>/dev/null || echo unknown`
1252
1253/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1254/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1255
1256/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1257/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1258/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1259hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1260/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1261/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1262/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1263
1264_ASUNAME
1265
1266as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1267for as_dir in $PATH
1268do
1269 IFS=$as_save_IFS
1270 test -z "$as_dir" && as_dir=.
1271 echo "PATH: $as_dir"
1272done
1273
1274} >&5
1275
1276cat >&5 <<_ACEOF
1277
1278
1279## ----------- ##
1280## Core tests. ##
1281## ----------- ##
1282
1283_ACEOF
1284
1285
1286# Keep a trace of the command line.
1287# Strip out --no-create and --no-recursion so they do not pile up.
1288# Strip out --silent because we don't want to record it for future runs.
1289# Also quote any args containing shell meta-characters.
1290# Make two passes to allow for proper duplicate-argument suppression.
1291ac_configure_args=
1292ac_configure_args0=
1293ac_configure_args1=
1294ac_sep=
1295ac_must_keep_next=false
1296for ac_pass in 1 2
1297do
1298 for ac_arg
1299 do
1300 case $ac_arg in
1301 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1302 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1303 | -silent | --silent | --silen | --sile | --sil)
1304 continue ;;
1305 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1306 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1307 esac
1308 case $ac_pass in
1309 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1310 2)
1311 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1312 if test $ac_must_keep_next = true; then
ac1cb8d3 1313 ac_must_keep_next=false # Got value, back to normal.
a848cd7e 1314 else
ac1cb8d3
VS
1315 case $ac_arg in
1316 *=* | --config-cache | -C | -disable-* | --disable-* \
1317 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1318 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1319 | -with-* | --with-* | -without-* | --without-* | --x)
1320 case "$ac_configure_args0 " in
1321 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1322 esac
1323 ;;
1324 -* ) ac_must_keep_next=true ;;
1325 esac
a848cd7e
SC
1326 fi
1327 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1328 # Get rid of the leading space.
1329 ac_sep=" "
1330 ;;
1331 esac
1332 done
1333done
1334$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1335$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1336
1337# When interrupted or exit'd, cleanup temporary files, and complete
1338# config.log. We remove comments because anyway the quotes in there
1339# would cause problems or look ugly.
1340# WARNING: Be sure not to use single quotes in there, as some shells,
1341# such as our DU 5.0 friend, will then `close' the trap.
1342trap 'exit_status=$?
1343 # Save into config.log some information that might help in debugging.
1344 {
1345 echo
1346
1347 cat <<\_ASBOX
1348## ---------------- ##
1349## Cache variables. ##
1350## ---------------- ##
1351_ASBOX
1352 echo
1353 # The following way of writing the cache mishandles newlines in values,
1354{
1355 (set) 2>&1 |
1356 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1357 *ac_space=\ *)
1358 sed -n \
ac1cb8d3
VS
1359 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1360 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
a848cd7e
SC
1361 ;;
1362 *)
1363 sed -n \
ac1cb8d3 1364 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
a848cd7e
SC
1365 ;;
1366 esac;
1367}
1368 echo
1369
1370 cat <<\_ASBOX
1371## ----------------- ##
1372## Output variables. ##
1373## ----------------- ##
1374_ASBOX
1375 echo
1376 for ac_var in $ac_subst_vars
1377 do
1378 eval ac_val=$`echo $ac_var`
1379 echo "$ac_var='"'"'$ac_val'"'"'"
1380 done | sort
1381 echo
1382
1383 if test -n "$ac_subst_files"; then
1384 cat <<\_ASBOX
1385## ------------- ##
1386## Output files. ##
1387## ------------- ##
1388_ASBOX
1389 echo
1390 for ac_var in $ac_subst_files
1391 do
1392 eval ac_val=$`echo $ac_var`
ac1cb8d3 1393 echo "$ac_var='"'"'$ac_val'"'"'"
a848cd7e
SC
1394 done | sort
1395 echo
1396 fi
1397
1398 if test -s confdefs.h; then
1399 cat <<\_ASBOX
1400## ----------- ##
1401## confdefs.h. ##
1402## ----------- ##
1403_ASBOX
1404 echo
1405 sed "/^$/d" confdefs.h | sort
1406 echo
1407 fi
1408 test "$ac_signal" != 0 &&
1409 echo "$as_me: caught signal $ac_signal"
1410 echo "$as_me: exit $exit_status"
1411 } >&5
ac1cb8d3 1412 rm -f core *.core &&
a848cd7e
SC
1413 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1414 exit $exit_status
1415 ' 0
1416for ac_signal in 1 2 13 15; do
1417 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1418done
1419ac_signal=0
1420
1421# confdefs.h avoids OS command line length limits that DEFS can exceed.
1422rm -rf conftest* confdefs.h
1423# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1424echo >confdefs.h
1425
1426# Predefined preprocessor variables.
1427
1428cat >>confdefs.h <<_ACEOF
1429#define PACKAGE_NAME "$PACKAGE_NAME"
1430_ACEOF
1431
1432
1433cat >>confdefs.h <<_ACEOF
1434#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1435_ACEOF
1436
1437
1438cat >>confdefs.h <<_ACEOF
1439#define PACKAGE_VERSION "$PACKAGE_VERSION"
1440_ACEOF
1441
1442
1443cat >>confdefs.h <<_ACEOF
1444#define PACKAGE_STRING "$PACKAGE_STRING"
1445_ACEOF
1446
1447
1448cat >>confdefs.h <<_ACEOF
1449#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1450_ACEOF
1451
1452
1453# Let the site file select an alternate cache file if it wants to.
1454# Prefer explicitly selected file to automatically selected ones.
1455if test -z "$CONFIG_SITE"; then
1456 if test "x$prefix" != xNONE; then
1457 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1458 else
1459 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1460 fi
1461fi
1462for ac_site_file in $CONFIG_SITE; do
1463 if test -r "$ac_site_file"; then
1464 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1465echo "$as_me: loading site script $ac_site_file" >&6;}
1466 sed 's/^/| /' "$ac_site_file" >&5
1467 . "$ac_site_file"
1468 fi
1469done
1470
1471if test -r "$cache_file"; then
1472 # Some versions of bash will fail to source /dev/null (special
1473 # files actually), so we avoid doing that.
1474 if test -f "$cache_file"; then
1475 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1476echo "$as_me: loading cache $cache_file" >&6;}
1477 case $cache_file in
1478 [\\/]* | ?:[\\/]* ) . $cache_file;;
1479 *) . ./$cache_file;;
1480 esac
1481 fi
1482else
1483 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1484echo "$as_me: creating cache $cache_file" >&6;}
1485 >$cache_file
1486fi
1487
1488# Check that the precious variables saved in the cache have kept the same
1489# value.
1490ac_cache_corrupted=false
1491for ac_var in `(set) 2>&1 |
ac1cb8d3 1492 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
a848cd7e
SC
1493 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1494 eval ac_new_set=\$ac_env_${ac_var}_set
1495 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1496 eval ac_new_val="\$ac_env_${ac_var}_value"
1497 case $ac_old_set,$ac_new_set in
1498 set,)
1499 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1500echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1501 ac_cache_corrupted=: ;;
1502 ,set)
1503 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1504echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1505 ac_cache_corrupted=: ;;
1506 ,);;
1507 *)
1508 if test "x$ac_old_val" != "x$ac_new_val"; then
ac1cb8d3 1509 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
a848cd7e 1510echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
ac1cb8d3 1511 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
a848cd7e 1512echo "$as_me: former value: $ac_old_val" >&2;}
ac1cb8d3 1513 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
a848cd7e 1514echo "$as_me: current value: $ac_new_val" >&2;}
ac1cb8d3 1515 ac_cache_corrupted=:
a848cd7e
SC
1516 fi;;
1517 esac
1518 # Pass precious variables to config.status.
1519 if test "$ac_new_set" = set; then
1520 case $ac_new_val in
1521 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1522 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1523 *) ac_arg=$ac_var=$ac_new_val ;;
1524 esac
1525 case " $ac_configure_args " in
1526 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1527 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1528 esac
1529 fi
1530done
1531if $ac_cache_corrupted; then
1532 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1533echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1534 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1535echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1536 { (exit 1); exit 1; }; }
1537fi
1538
1539ac_ext=c
1540ac_cpp='$CPP $CPPFLAGS'
1541ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1542ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1543ac_compiler_gnu=$ac_cv_c_compiler_gnu
1544
1545
1546
1547
1548
1549
1550
1551
1552
1553
1554
1555
1556
1557
1558
1559
1560
1561
1562
1563
1564
1565
1566
1567
1568
1569
1570
1571
1572
1573
1574ac_aux_dir=
1575for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1576 if test -f $ac_dir/install-sh; then
1577 ac_aux_dir=$ac_dir
1578 ac_install_sh="$ac_aux_dir/install-sh -c"
1579 break
1580 elif test -f $ac_dir/install.sh; then
1581 ac_aux_dir=$ac_dir
1582 ac_install_sh="$ac_aux_dir/install.sh -c"
1583 break
1584 elif test -f $ac_dir/shtool; then
1585 ac_aux_dir=$ac_dir
1586 ac_install_sh="$ac_aux_dir/shtool install -c"
1587 break
1588 fi
1589done
1590if test -z "$ac_aux_dir"; then
1591 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1592echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1593 { (exit 1); exit 1; }; }
1594fi
1595ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1596ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1597ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1598
1599# Make sure we can run config.sub.
1600$ac_config_sub sun4 >/dev/null 2>&1 ||
1601 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1602echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1603 { (exit 1); exit 1; }; }
1604
1605echo "$as_me:$LINENO: checking build system type" >&5
1606echo $ECHO_N "checking build system type... $ECHO_C" >&6
1607if test "${ac_cv_build+set}" = set; then
1608 echo $ECHO_N "(cached) $ECHO_C" >&6
1609else
1610 ac_cv_build_alias=$build_alias
1611test -z "$ac_cv_build_alias" &&
1612 ac_cv_build_alias=`$ac_config_guess`
1613test -z "$ac_cv_build_alias" &&
1614 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1615echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1616 { (exit 1); exit 1; }; }
1617ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1618 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1619echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1620 { (exit 1); exit 1; }; }
1621
1622fi
1623echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1624echo "${ECHO_T}$ac_cv_build" >&6
1625build=$ac_cv_build
1626build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1627build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1628build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1629
1630
1631echo "$as_me:$LINENO: checking host system type" >&5
1632echo $ECHO_N "checking host system type... $ECHO_C" >&6
1633if test "${ac_cv_host+set}" = set; then
1634 echo $ECHO_N "(cached) $ECHO_C" >&6
1635else
1636 ac_cv_host_alias=$host_alias
1637test -z "$ac_cv_host_alias" &&
1638 ac_cv_host_alias=$ac_cv_build_alias
1639ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1640 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1641echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1642 { (exit 1); exit 1; }; }
1643
1644fi
1645echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1646echo "${ECHO_T}$ac_cv_host" >&6
1647host=$ac_cv_host
1648host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1649host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1650host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1651
1652
1653echo "$as_me:$LINENO: checking target system type" >&5
1654echo $ECHO_N "checking target system type... $ECHO_C" >&6
1655if test "${ac_cv_target+set}" = set; then
1656 echo $ECHO_N "(cached) $ECHO_C" >&6
1657else
1658 ac_cv_target_alias=$target_alias
1659test "x$ac_cv_target_alias" = "x" &&
1660 ac_cv_target_alias=$ac_cv_host_alias
1661ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1662 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1663echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1664 { (exit 1); exit 1; }; }
1665
1666fi
1667echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1668echo "${ECHO_T}$ac_cv_target" >&6
1669target=$ac_cv_target
1670target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1671target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1672target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1673
1674
1675# The aliases save the names the user supplied, while $host etc.
1676# will get canonicalized.
1677test -n "$target_alias" &&
1678 test "$program_prefix$program_suffix$program_transform_name" = \
1679 NONENONEs,x,x, &&
1680 program_prefix=${target_alias}-
1681
1682
1683
ceec2216 1684wx_major_version_number=2
dd8df4fc
VZ
1685wx_minor_version_number=7
1686wx_release_number=0
1687wx_subrelease_number=0
a848cd7e 1688
ceec2216
RL
1689WX_RELEASE=$wx_major_version_number.$wx_minor_version_number
1690WX_VERSION=$WX_RELEASE.$wx_release_number
1691WX_SUBVERSION=$WX_VERSION.$wx_subrelease_number
a848cd7e 1692
ceec2216 1693WX_MSW_VERSION=$wx_major_version_number$wx_minor_version_number$wx_release_number
a848cd7e 1694
a848cd7e
SC
1695
1696
1697
1698USE_UNIX=1
1699USE_OS2=0
1700USE_WIN32=0
1701USE_DOS=0
1702USE_BEOS=0
1703USE_MAC=0
1704
1705USE_AIX=
1706USE_BSD= USE_DARWIN= USE_FREEBSD=
1707USE_GNU= USE_HPUX=
1708USE_LINUX=
1709USE_NETBSD=
1710USE_OPENBSD=
1711USE_OSF= USE_SGI=
1712USE_SOLARIS= USE_SUN= USE_SUNOS= USE_SVR4= USE_SYSV= USE_VMS=
1713USE_ULTRIX=
1714USE_UNIXWARE=
1715
1716USE_ALPHA=
1717
1718NEEDS_D_REENTRANT_FOR_R_FUNCS=0
1719
1720ALL_TOOLKITS="COCOA GTK MAC MGL MICROWIN MOTIF MSW PM X11"
1721
1722DEFAULT_wxUSE_COCOA=0
1723DEFAULT_wxUSE_GTK=0
1724DEFAULT_wxUSE_MAC=0
1725DEFAULT_wxUSE_MGL=0
1726DEFAULT_wxUSE_MICROWIN=0
1727DEFAULT_wxUSE_MOTIF=0
1728DEFAULT_wxUSE_MSW=0
1729DEFAULT_wxUSE_PM=0
1730DEFAULT_wxUSE_X11=0
1731
1732DEFAULT_DEFAULT_wxUSE_COCOA=0
1733DEFAULT_DEFAULT_wxUSE_GTK=0
1734DEFAULT_DEFAULT_wxUSE_MAC=0
1735DEFAULT_DEFAULT_wxUSE_MGL=0
1736DEFAULT_DEFAULT_wxUSE_MICROWIN=0
1737DEFAULT_DEFAULT_wxUSE_MOTIF=0
1738DEFAULT_DEFAULT_wxUSE_MSW=0
1739DEFAULT_DEFAULT_wxUSE_PM=0
1740DEFAULT_DEFAULT_wxUSE_X11=0
1741
1742PROGRAM_EXT=
1743SO_SUFFIX=so
1744SAMPLES_RPATH_FLAG=
1745SAMPLES_RPATH_POSTLINK=
1746
a03b8b04
RD
1747DEFAULT_STD_FLAG=yes
1748
a848cd7e
SC
1749case "${host}" in
1750 *-hp-hpux* )
1751 USE_HPUX=1
1752 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1753 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
1754 SO_SUFFIX=sl
1755 cat >>confdefs.h <<\_ACEOF
1756#define __HPUX__ 1
1757_ACEOF
1758
2eef8513 1759
c92ad099 1760 CPPFLAGS="-D_HPUX_SOURCE $CPPFLAGS"
a848cd7e
SC
1761 ;;
1762 *-*-linux* )
1763 USE_LINUX=1
1764 cat >>confdefs.h <<\_ACEOF
1765#define __LINUX__ 1
1766_ACEOF
1767
1768 TMP=`uname -m`
1769 if test "x$TMP" = "xalpha"; then
1770 USE_ALPHA=1
1771 cat >>confdefs.h <<\_ACEOF
1772#define __ALPHA__ 1
1773_ACEOF
1774
1775 fi
1776 DEFAULT_DEFAULT_wxUSE_GTK=1
1777 ;;
1778 *-*-gnu* | *-*-k*bsd*-gnu )
1779 USE_GNU=1
1780 TMP=`uname -m`
1781 if test "x$TMP" = "xalpha"; then
1782 USE_ALPHA=1
1783 cat >>confdefs.h <<\_ACEOF
1784#define __ALPHA__ 1
1785_ACEOF
1786
1787 fi
1788 DEFAULT_DEFAULT_wxUSE_GTK=1
1789 ;;
1790 *-*-irix5* | *-*-irix6* )
1791 USE_SGI=1
1792 USE_SVR4=1
1793 cat >>confdefs.h <<\_ACEOF
1794#define __SGI__ 1
1795_ACEOF
1796
1797 cat >>confdefs.h <<\_ACEOF
1798#define __SVR4__ 1
1799_ACEOF
1800
1801 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1802 ;;
1803 *-*-solaris2* )
1804 USE_SUN=1
1805 USE_SOLARIS=1
1806 USE_SVR4=1
1807 cat >>confdefs.h <<\_ACEOF
1808#define __SUN__ 1
1809_ACEOF
1810
1811 cat >>confdefs.h <<\_ACEOF
1812#define __SOLARIS__ 1
1813_ACEOF
1814
1815 cat >>confdefs.h <<\_ACEOF
1816#define __SVR4__ 1
1817_ACEOF
1818
1819 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1820 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
1821 ;;
1822 *-*-sunos4* )
1823 USE_SUN=1
1824 USE_SUNOS=1
1825 USE_BSD=1
1826 cat >>confdefs.h <<\_ACEOF
1827#define __SUN__ 1
1828_ACEOF
1829
1830 cat >>confdefs.h <<\_ACEOF
1831#define __SUNOS__ 1
1832_ACEOF
1833
1834 cat >>confdefs.h <<\_ACEOF
1835#define __BSD__ 1
1836_ACEOF
1837
1838 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1839 ;;
1840 *-*-freebsd*)
1841 USE_BSD=1
1842 USE_FREEBSD=1
1843 cat >>confdefs.h <<\_ACEOF
1844#define __FREEBSD__ 1
1845_ACEOF
1846
1847 cat >>confdefs.h <<\_ACEOF
1848#define __BSD__ 1
1849_ACEOF
1850
1851 DEFAULT_DEFAULT_wxUSE_GTK=1
1852 ;;
1853 *-*-openbsd*)
1854 USE_BSD=1
1855 USE_OPENBSD=1
1856 cat >>confdefs.h <<\_ACEOF
1857#define __OPENBSD__ 1
1858_ACEOF
1859
1860 cat >>confdefs.h <<\_ACEOF
1861#define __BSD__ 1
1862_ACEOF
1863
1864 DEFAULT_DEFAULT_wxUSE_GTK=1
1865 ;;
1866 *-*-netbsd*)
1867 USE_BSD=1
1868 USE_NETBSD=1
1869 cat >>confdefs.h <<\_ACEOF
1870#define __NETBSD__ 1
1871_ACEOF
1872
1873 cat >>confdefs.h <<\_ACEOF
1874#define __BSD__ 1
1875_ACEOF
1876
1877 DEFAULT_DEFAULT_wxUSE_GTK=1
728258f4 1878 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
def7c04a 1879
def7c04a 1880 CPPFLAGS="-D_NETBSD_SOURCE -D_LIBC $CPPFLAGS"
a848cd7e
SC
1881 ;;
1882 *-*-osf* )
1883 USE_ALPHA=1
1884 USE_OSF=1
1885 cat >>confdefs.h <<\_ACEOF
1886#define __ALPHA__ 1
1887_ACEOF
1888
1889 cat >>confdefs.h <<\_ACEOF
1890#define __OSF__ 1
1891_ACEOF
1892
1893 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1894 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
1895 ;;
1896 *-*-dgux5* )
1897 USE_ALPHA=1
1898 USE_SVR4=1
1899 cat >>confdefs.h <<\_ACEOF
1900#define __ALPHA__ 1
1901_ACEOF
1902
1903 cat >>confdefs.h <<\_ACEOF
1904#define __SVR4__ 1
1905_ACEOF
1906
1907 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1908 ;;
1909 *-*-sysv5* )
1910 USE_SYSV=1
1911 USE_SVR4=1
1912 cat >>confdefs.h <<\_ACEOF
1913#define __SYSV__ 1
1914_ACEOF
1915
1916 cat >>confdefs.h <<\_ACEOF
1917#define __SVR4__ 1
1918_ACEOF
1919
1920 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1921 ;;
1922 *-*-aix* )
1923 USE_AIX=1
1924 USE_SYSV=1
1925 USE_SVR4=1
1926 SO_SUFFIX=a
1927 cat >>confdefs.h <<\_ACEOF
1928#define __AIX__ 1
1929_ACEOF
1930
1931 cat >>confdefs.h <<\_ACEOF
1932#define __SYSV__ 1
1933_ACEOF
1934
1935 cat >>confdefs.h <<\_ACEOF
1936#define __SVR4__ 1
1937_ACEOF
1938
1939 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1940 ;;
1941
1942 *-*-*UnixWare*)
1943 USE_SYSV=1
1944 USE_SVR4=1
1945 USE_UNIXWARE=1
1946 cat >>confdefs.h <<\_ACEOF
1947#define __UNIXWARE__ 1
1948_ACEOF
1949
1950 ;;
1951
1952 *-*-cygwin* | *-*-mingw32* )
1953 SO_SUFFIX=dll
1954 PROGRAM_EXT=".exe"
a848cd7e 1955 DEFAULT_DEFAULT_wxUSE_MSW=1
a03b8b04 1956 DEFAULT_STD_FLAG=no
a848cd7e
SC
1957 ;;
1958
1959 *-pc-msdosdjgpp )
1960 USE_UNIX=0
1961 USE_DOS=1
1962 cat >>confdefs.h <<\_ACEOF
1963#define __DOS__ 1
1964_ACEOF
1965
1966 PROGRAM_EXT=".exe"
1967 DEFAULT_DEFAULT_wxUSE_MGL=1
a848cd7e
SC
1968 ;;
1969
1970 *-pc-os2_emx | *-pc-os2-emx )
1971 cat >>confdefs.h <<\_ACEOF
1972#define __EMX__ 1
1973_ACEOF
1974
1975 USE_OS2=1
1976 cat >>confdefs.h <<\_ACEOF
1977#define __OS2__ 1
1978_ACEOF
1979
1980 PROGRAM_EXT=".exe"
1981 DEFAULT_DEFAULT_wxUSE_PM=1
1982 CXX=gcc
1983 LDFLAGS="$LDFLAGS -Zcrtdll"
1984 ac_executable_extensions=".exe"
1985 export ac_executable_extensions
1986 ac_save_IFS="$IFS"
1987 IFS='\\'
1988 ac_TEMP_PATH=
1989 for ac_dir in $PATH; do
1990 IFS=$ac_save_IFS
1991 if test -z "$ac_TEMP_PATH"; then
1992 ac_TEMP_PATH="$ac_dir"
1993 else
1994 ac_TEMP_PATH="$ac_TEMP_PATH/$ac_dir"
1995 fi
1996 done
1997 export PATH="$ac_TEMP_PATH"
1998 unset ac_TEMP_PATH
a03b8b04 1999 DEFAULT_STD_FLAG=no
a848cd7e
SC
2000 ;;
2001
cfda0ea8 2002 *-*-darwin* )
a848cd7e
SC
2003 USE_BSD=1
2004 USE_DARWIN=1
2005 SO_SUFFIX=dylib
2006 cat >>confdefs.h <<\_ACEOF
2007#define __BSD__ 1
2008_ACEOF
2009
2010 cat >>confdefs.h <<\_ACEOF
2011#define __DARWIN__ 1
a848cd7e
SC
2012_ACEOF
2013
2014 cat >>confdefs.h <<\_ACEOF
2015#define TARGET_CARBON 1
2016_ACEOF
2017
2018 DEFAULT_DEFAULT_wxUSE_MAC=1
a03b8b04 2019 DEFAULT_STD_FLAG=no
a848cd7e 2020 ;;
1e9e8aba
DE
2021 powerpc-apple-macos* )
2022 USE_UNIX=0
2023 ac_cv_c_bigendian=yes
2024 SO_SUFFIX=shlib
2025 DEFAULT_DEFAULT_wxUSE_MAC=1
a03b8b04 2026 DEFAULT_STD_FLAG=no
1e9e8aba 2027 ;;
a848cd7e
SC
2028
2029 *-*-beos* )
2030 USE_BEOS=1
2031 cat >>confdefs.h <<\_ACEOF
2032#define __BEOS__ 1
2033_ACEOF
2034
2035 ;;
2036
2037 *)
2038 { { echo "$as_me:$LINENO: error: unknown system type ${host}." >&5
2039echo "$as_me: error: unknown system type ${host}." >&2;}
2040 { (exit 1); exit 1; }; }
2041esac
2042
2043
2044
2045
2046 wx_arg_cache_file="configarg.cache"
2047 echo "loading argument cache $wx_arg_cache_file"
2048 rm -f ${wx_arg_cache_file}.tmp
2049 touch ${wx_arg_cache_file}.tmp
2050 touch ${wx_arg_cache_file}
2051
2052
2053DEBUG_CONFIGURE=0
2054if test $DEBUG_CONFIGURE = 1; then
2055 DEFAULT_wxUSE_UNIVERSAL=no
2056 DEFAULT_wxUSE_STL=no
2057
2058 DEFAULT_wxUSE_NANOX=no
2059
2060 DEFAULT_wxUSE_THREADS=yes
2061
2062 DEFAULT_wxUSE_SHARED=yes
2063 DEFAULT_wxUSE_OPTIMISE=no
2064 DEFAULT_wxUSE_PROFILE=no
2065 DEFAULT_wxUSE_NO_DEPS=no
2066 DEFAULT_wxUSE_NO_RTTI=no
2067 DEFAULT_wxUSE_NO_EXCEPTIONS=no
7afc46ab 2068 DEFAULT_wxUSE_UNIVERSAL_BINARY=no
ffa0583f 2069 DEFAULT_wxUSE_RPATH=yes
a848cd7e
SC
2070 DEFAULT_wxUSE_PERMISSIVE=no
2071 DEFAULT_wxUSE_DEBUG_FLAG=yes
2072 DEFAULT_wxUSE_DEBUG_INFO=yes
2073 DEFAULT_wxUSE_DEBUG_GDB=yes
2074 DEFAULT_wxUSE_MEM_TRACING=no
2075 DEFAULT_wxUSE_DEBUG_CONTEXT=no
2076 DEFAULT_wxUSE_DMALLOC=no
2077 DEFAULT_wxUSE_APPLE_IEEE=no
2078
2079 DEFAULT_wxUSE_EXCEPTIONS=no
2080 DEFAULT_wxUSE_LOG=yes
2081 DEFAULT_wxUSE_LOGWINDOW=no
2082 DEFAULT_wxUSE_LOGGUI=no
2083 DEFAULT_wxUSE_LOGDIALOG=no
2084
2085 DEFAULT_wxUSE_GUI=yes
2086 DEFAULT_wxUSE_CONTROLS=no
2087
2088 DEFAULT_wxUSE_REGEX=no
2089 DEFAULT_wxUSE_XML=no
2090 DEFAULT_wxUSE_EXPAT=no
2091 DEFAULT_wxUSE_ZLIB=no
2092 DEFAULT_wxUSE_LIBPNG=no
2093 DEFAULT_wxUSE_LIBJPEG=no
2094 DEFAULT_wxUSE_LIBTIFF=no
2095 DEFAULT_wxUSE_LIBXPM=no
2096 DEFAULT_wxUSE_LIBMSPACK=no
2097 DEFAULT_wxUSE_LIBSDL=no
d1c38808 2098 DEFAULT_wxUSE_LIBGNOMEPRINT=no
2b850ae1 2099 DEFAULT_wxUSE_LIBGNOMEVFS=no
3565d135 2100 DEFAULT_wxUSE_LIBHILDON=no
a848cd7e
SC
2101 DEFAULT_wxUSE_ODBC=no
2102 DEFAULT_wxUSE_OPENGL=no
2103
2104 DEFAULT_wxUSE_ON_FATAL_EXCEPTION=no
eaff0f0d 2105 DEFAULT_wxUSE_STACKWALKER=no
36b6448c 2106 DEFAULT_wxUSE_DEBUGREPORT=no
a848cd7e
SC
2107 DEFAULT_wxUSE_SNGLINST_CHECKER=no
2108 DEFAULT_wxUSE_STD_IOSTREAM=no
59746b65 2109 DEFAULT_wxUSE_STD_STRING=no
a848cd7e
SC
2110 DEFAULT_wxUSE_CMDLINE_PARSER=no
2111 DEFAULT_wxUSE_DATETIME=no
2112 DEFAULT_wxUSE_TIMER=no
2113 DEFAULT_wxUSE_STOPWATCH=no
2114 DEFAULT_wxUSE_FILE=no
2115 DEFAULT_wxUSE_FFILE=no
07158944 2116 DEFAULT_wxUSE_STDPATHS=no
a848cd7e
SC
2117 DEFAULT_wxUSE_TEXTBUFFER=no
2118 DEFAULT_wxUSE_TEXTFILE=no
2119 DEFAULT_wxUSE_SOUND=no
3b57de8b 2120 DEFAULT_wxUSE_MEDIACTRL=no
f10e38c4 2121 DEFAULT_wxUSE_GSTREAMER8=no
a848cd7e
SC
2122 DEFAULT_wxUSE_INTL=no
2123 DEFAULT_wxUSE_CONFIG=no
2124 DEFAULT_wxUSE_FONTMAP=no
2125 DEFAULT_wxUSE_STREAMS=no
2126 DEFAULT_wxUSE_SOCKETS=no
2127 DEFAULT_wxUSE_OLE=no
2128 DEFAULT_wxUSE_DATAOBJ=no
2129 DEFAULT_wxUSE_DIALUP_MANAGER=no
2130 DEFAULT_wxUSE_JOYSTICK=no
2131 DEFAULT_wxUSE_DYNLIB_CLASS=no
2132 DEFAULT_wxUSE_DYNAMIC_LOADER=no
2133 DEFAULT_wxUSE_LONGLONG=no
2134 DEFAULT_wxUSE_GEOMETRY=no
2135
2136 DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=no
2137 DEFAULT_wxUSE_NORMALIZED_PS_FONTS=no
2138 DEFAULT_wxUSE_POSTSCRIPT=no
2139
2140 DEFAULT_wxUSE_CLIPBOARD=no
2141 DEFAULT_wxUSE_TOOLTIPS=no
2142 DEFAULT_wxUSE_DRAG_AND_DROP=no
2143 DEFAULT_wxUSE_DRAGIMAGE=no
2144 DEFAULT_wxUSE_SPLINES=no
fbe2ca43 2145 DEFAULT_wxUSE_MOUSEWHEEL=no
a848cd7e 2146
8a7b1113 2147 DEFAULT_wxUSE_MDI=no
a848cd7e
SC
2148 DEFAULT_wxUSE_MDI_ARCHITECTURE=no
2149 DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=no
2150 DEFAULT_wxUSE_PRINTING_ARCHITECTURE=no
2151
2152 DEFAULT_wxUSE_RESOURCES=no
2153 DEFAULT_wxUSE_CONSTRAINTS=no
2154 DEFAULT_wxUSE_IPC=no
2155 DEFAULT_wxUSE_HELP=no
2156 DEFAULT_wxUSE_MS_HTML_HELP=no
2157 DEFAULT_wxUSE_WXHTML_HELP=no
2158 DEFAULT_wxUSE_TREELAYOUT=no
2159 DEFAULT_wxUSE_METAFILE=no
2160 DEFAULT_wxUSE_MIMETYPE=no
2161 DEFAULT_wxUSE_SYSTEM_OPTIONS=no
2162 DEFAULT_wxUSE_PROTOCOL=no
2163 DEFAULT_wxUSE_PROTOCOL_HTTP=no
2164 DEFAULT_wxUSE_PROTOCOL_FTP=no
2165 DEFAULT_wxUSE_PROTOCOL_FILE=no
2166 DEFAULT_wxUSE_URL=no
2167
2168 DEFAULT_wxUSE_COMMONDLGS=no
2169 DEFAULT_wxUSE_CHOICEDLG=no
2170 DEFAULT_wxUSE_COLOURDLG=no
2171 DEFAULT_wxUSE_DIRDLG=no
2172 DEFAULT_wxUSE_FILEDLG=no
2173 DEFAULT_wxUSE_FINDREPLDLG=no
2174 DEFAULT_wxUSE_FONTDLG=no
2175 DEFAULT_wxUSE_MSGDLG=no
2176 DEFAULT_wxUSE_NUMBERDLG=no
2177 DEFAULT_wxUSE_TEXTDLG=no
2178 DEFAULT_wxUSE_SPLASH=no
2179 DEFAULT_wxUSE_STARTUP_TIPS=no
2180 DEFAULT_wxUSE_PROGRESSDLG=no
2181 DEFAULT_wxUSE_WIZARDDLG=no
2182
2183 DEFAULT_wxUSE_MENUS=no
2184 DEFAULT_wxUSE_MINIFRAME=no
2185 DEFAULT_wxUSE_HTML=no
91dea314 2186 DEFAULT_wxUSE_RICHTEXT=no
9a8f0513 2187 DEFAULT_wxUSE_XRC=no
3f60522a 2188 DEFAULT_wxUSE_AUI=no
646b6ec1 2189 DEFAULT_wxUSE_WEBKIT=no
a848cd7e
SC
2190 DEFAULT_wxUSE_FILESYSTEM=no
2191 DEFAULT_wxUSE_FS_INET=no
2192 DEFAULT_wxUSE_FS_ZIP=no
2193 DEFAULT_wxUSE_BUSYINFO=no
9e8e867f 2194 DEFAULT_wxUSE_ARCHIVE_STREAMS=no
a848cd7e 2195 DEFAULT_wxUSE_ZIPSTREAM=no
a848cd7e
SC
2196 DEFAULT_wxUSE_VALIDATORS=no
2197
2198 DEFAULT_wxUSE_ACCEL=no
2199 DEFAULT_wxUSE_BUTTON=no
2200 DEFAULT_wxUSE_BMPBUTTON=no
2201 DEFAULT_wxUSE_CALCTRL=no
2202 DEFAULT_wxUSE_CARET=no
2203 DEFAULT_wxUSE_CHECKBOX=no
2204 DEFAULT_wxUSE_CHECKLST=no
2205 DEFAULT_wxUSE_CHOICE=no
92bbdbcd 2206 DEFAULT_wxUSE_CHOICEBOOK=no
e9263684 2207 DEFAULT_wxUSE_COLOURPICKERCTRL=no
a848cd7e 2208 DEFAULT_wxUSE_COMBOBOX=no
a57d600f 2209 DEFAULT_wxUSE_COMBOCTRL=no
da98e9be 2210 DEFAULT_wxUSE_DATEPICKCTRL=no
a848cd7e 2211 DEFAULT_wxUSE_DISPLAY=no
e9263684
VZ
2212 DEFAULT_wxUSE_DIRPICKERCTRL=no
2213 DEFAULT_wxUSE_FILEPICKERCTRL=no
2214 DEFAULT_wxUSE_FONTPICKERCTRL=no
a848cd7e
SC
2215 DEFAULT_wxUSE_GAUGE=no
2216 DEFAULT_wxUSE_GRID=no
6954625c 2217 DEFAULT_wxUSE_HYPERLINKCTRL=no
20e34ecc 2218 DEFAULT_wxUSE_DATAVIEWCTRL=no
a848cd7e
SC
2219 DEFAULT_wxUSE_IMAGLIST=no
2220 DEFAULT_wxUSE_LISTBOOK=no
2221 DEFAULT_wxUSE_LISTBOX=no
2222 DEFAULT_wxUSE_LISTCTRL=no
2223 DEFAULT_wxUSE_NOTEBOOK=no
a57d600f 2224 DEFAULT_wxUSE_ODCOMBOBOX=no
a848cd7e
SC
2225 DEFAULT_wxUSE_RADIOBOX=no
2226 DEFAULT_wxUSE_RADIOBTN=no
2227 DEFAULT_wxUSE_SASH=no
2228 DEFAULT_wxUSE_SCROLLBAR=no
2229 DEFAULT_wxUSE_SLIDER=no
2230 DEFAULT_wxUSE_SPINBTN=no
2231 DEFAULT_wxUSE_SPINCTRL=no
2232 DEFAULT_wxUSE_SPLITTER=no
2233 DEFAULT_wxUSE_STATBMP=no
2234 DEFAULT_wxUSE_STATBOX=no
2235 DEFAULT_wxUSE_STATLINE=no
2236 DEFAULT_wxUSE_STATTEXT=no
2237 DEFAULT_wxUSE_STATUSBAR=yes
f10e38c4 2238 DEFAULT_wxUSE_TAB_DIALOG=no
a848cd7e
SC
2239 DEFAULT_wxUSE_TEXTCTRL=no
2240 DEFAULT_wxUSE_TOGGLEBTN=no
2241 DEFAULT_wxUSE_TOOLBAR=no
2242 DEFAULT_wxUSE_TOOLBAR_NATIVE=no
2243 DEFAULT_wxUSE_TOOLBAR_SIMPLE=no
0093c2fc 2244 DEFAULT_wxUSE_TREEBOOK=no
5ec3bc43 2245 DEFAULT_wxUSE_TOOLBOOK=no
a848cd7e
SC
2246 DEFAULT_wxUSE_TREECTRL=no
2247 DEFAULT_wxUSE_POPUPWIN=no
2248 DEFAULT_wxUSE_TIPWINDOW=no
2249
2250 DEFAULT_wxUSE_UNICODE=no
2251 DEFAULT_wxUSE_UNICODE_MSLU=no
2252 DEFAULT_wxUSE_WCSRTOMBS=no
2253
2254 DEFAULT_wxUSE_PALETTE=no
2255 DEFAULT_wxUSE_IMAGE=no
2256 DEFAULT_wxUSE_GIF=no
2257 DEFAULT_wxUSE_PCX=no
2258 DEFAULT_wxUSE_PNM=no
2259 DEFAULT_wxUSE_IFF=no
2260 DEFAULT_wxUSE_XPM=no
2261 DEFAULT_wxUSE_ICO_CUR=no
2262 DEFAULT_wxUSE_ACCESSIBILITY=no
2263
2264 DEFAULT_wxUSE_MONOLITHIC=no
2265 DEFAULT_wxUSE_PLUGINS=no
2266 DEFAULT_wxUSE_OFFICIAL_BUILD=no
2267else
2268 DEFAULT_wxUSE_UNIVERSAL=no
2269 DEFAULT_wxUSE_STL=no
2270
2271 DEFAULT_wxUSE_NANOX=no
2272
2273 DEFAULT_wxUSE_THREADS=yes
2274
2275 DEFAULT_wxUSE_SHARED=yes
2276 DEFAULT_wxUSE_OPTIMISE=yes
2277 DEFAULT_wxUSE_PROFILE=no
2278 DEFAULT_wxUSE_NO_DEPS=no
2279 DEFAULT_wxUSE_NO_RTTI=no
2280 DEFAULT_wxUSE_NO_EXCEPTIONS=no
7afc46ab 2281 DEFAULT_wxUSE_UNIVERSAL_BINARY=no
ffa0583f 2282 DEFAULT_wxUSE_RPATH=yes
a848cd7e
SC
2283 DEFAULT_wxUSE_PERMISSIVE=no
2284 DEFAULT_wxUSE_DEBUG_FLAG=no
2285 DEFAULT_wxUSE_DEBUG_INFO=no
2286 DEFAULT_wxUSE_DEBUG_GDB=no
2287 DEFAULT_wxUSE_MEM_TRACING=no
2288 DEFAULT_wxUSE_DEBUG_CONTEXT=no
2289 DEFAULT_wxUSE_DMALLOC=no
2290 DEFAULT_wxUSE_APPLE_IEEE=yes
2291
2292 DEFAULT_wxUSE_EXCEPTIONS=yes
2293 DEFAULT_wxUSE_LOG=yes
2294 DEFAULT_wxUSE_LOGWINDOW=yes
2295 DEFAULT_wxUSE_LOGGUI=yes
2296 DEFAULT_wxUSE_LOGDIALOG=yes
2297
2298 DEFAULT_wxUSE_GUI=yes
2299
2300 DEFAULT_wxUSE_REGEX=yes
2301 DEFAULT_wxUSE_XML=yes
2302 DEFAULT_wxUSE_EXPAT=yes
2303 DEFAULT_wxUSE_ZLIB=yes
2304 DEFAULT_wxUSE_LIBPNG=yes
2305 DEFAULT_wxUSE_LIBJPEG=yes
2306 DEFAULT_wxUSE_LIBTIFF=yes
2307 DEFAULT_wxUSE_LIBXPM=yes
2308 DEFAULT_wxUSE_LIBMSPACK=yes
2309 DEFAULT_wxUSE_LIBSDL=no
a03b8b04 2310 DEFAULT_wxUSE_LIBGNOMEPRINT=no
2b850ae1 2311 DEFAULT_wxUSE_LIBGNOMEVFS=no
3565d135 2312 DEFAULT_wxUSE_LIBHILDON=no
a848cd7e 2313 DEFAULT_wxUSE_ODBC=no
52cb607e 2314 DEFAULT_wxUSE_OPENGL=no
a848cd7e
SC
2315
2316 DEFAULT_wxUSE_ON_FATAL_EXCEPTION=yes
eaff0f0d 2317 DEFAULT_wxUSE_STACKWALKER=yes
6671c68b 2318 DEFAULT_wxUSE_DEBUGREPORT=yes
a848cd7e 2319 DEFAULT_wxUSE_SNGLINST_CHECKER=yes
a03b8b04
RD
2320 DEFAULT_wxUSE_STD_IOSTREAM=$DEFAULT_STD_FLAG
2321 DEFAULT_wxUSE_STD_STRING=$DEFAULT_STD_FLAG
a848cd7e
SC
2322 DEFAULT_wxUSE_CMDLINE_PARSER=yes
2323 DEFAULT_wxUSE_DATETIME=yes
2324 DEFAULT_wxUSE_TIMER=yes
2325 DEFAULT_wxUSE_STOPWATCH=yes
2326 DEFAULT_wxUSE_FILE=yes
2327 DEFAULT_wxUSE_FFILE=yes
07158944 2328 DEFAULT_wxUSE_STDPATHS=yes
a848cd7e
SC
2329 DEFAULT_wxUSE_TEXTBUFFER=yes
2330 DEFAULT_wxUSE_TEXTFILE=yes
2331 DEFAULT_wxUSE_SOUND=yes
3b57de8b 2332 DEFAULT_wxUSE_MEDIACTRL=no
f10e38c4 2333 DEFAULT_wxUSE_GSTREAMER8=no
a848cd7e
SC
2334 DEFAULT_wxUSE_INTL=yes
2335 DEFAULT_wxUSE_CONFIG=yes
2336 DEFAULT_wxUSE_FONTMAP=yes
2337 DEFAULT_wxUSE_STREAMS=yes
2338 DEFAULT_wxUSE_SOCKETS=yes
2339 DEFAULT_wxUSE_OLE=yes
2340 DEFAULT_wxUSE_DATAOBJ=yes
2341 DEFAULT_wxUSE_DIALUP_MANAGER=yes
2342 DEFAULT_wxUSE_JOYSTICK=yes
2343 DEFAULT_wxUSE_DYNLIB_CLASS=yes
2344 DEFAULT_wxUSE_DYNAMIC_LOADER=yes
2345 DEFAULT_wxUSE_LONGLONG=yes
2346 DEFAULT_wxUSE_GEOMETRY=yes
2347
2348 DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=yes
2349 DEFAULT_wxUSE_NORMALIZED_PS_FONTS=yes
2350 DEFAULT_wxUSE_POSTSCRIPT=yes
2351
2352 DEFAULT_wxUSE_CLIPBOARD=yes
2353 DEFAULT_wxUSE_TOOLTIPS=yes
2354 DEFAULT_wxUSE_DRAG_AND_DROP=yes
2355 DEFAULT_wxUSE_DRAGIMAGE=yes
2356 DEFAULT_wxUSE_SPLINES=yes
fbe2ca43 2357 DEFAULT_wxUSE_MOUSEWHEEL=yes
a848cd7e 2358
8a7b1113 2359 DEFAULT_wxUSE_MDI=yes
a848cd7e
SC
2360 DEFAULT_wxUSE_MDI_ARCHITECTURE=yes
2361 DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=yes
2362 DEFAULT_wxUSE_PRINTING_ARCHITECTURE=yes
2363
2364 DEFAULT_wxUSE_RESOURCES=no
2365 DEFAULT_wxUSE_CONSTRAINTS=yes
2366 DEFAULT_wxUSE_IPC=yes
2367 DEFAULT_wxUSE_HELP=yes
2368 DEFAULT_wxUSE_MS_HTML_HELP=yes
2369 DEFAULT_wxUSE_WXHTML_HELP=yes
2370 DEFAULT_wxUSE_TREELAYOUT=yes
2371 DEFAULT_wxUSE_METAFILE=yes
2372 DEFAULT_wxUSE_MIMETYPE=yes
2373 DEFAULT_wxUSE_SYSTEM_OPTIONS=yes
2374 DEFAULT_wxUSE_PROTOCOL=yes
2375 DEFAULT_wxUSE_PROTOCOL_HTTP=yes
2376 DEFAULT_wxUSE_PROTOCOL_FTP=yes
2377 DEFAULT_wxUSE_PROTOCOL_FILE=yes
2378 DEFAULT_wxUSE_URL=yes
2379
2380 DEFAULT_wxUSE_COMMONDLGS=yes
2381 DEFAULT_wxUSE_CHOICEDLG=yes
2382 DEFAULT_wxUSE_COLOURDLG=yes
2383 DEFAULT_wxUSE_DIRDLG=yes
2384 DEFAULT_wxUSE_FILEDLG=yes
2385 DEFAULT_wxUSE_FINDREPLDLG=yes
2386 DEFAULT_wxUSE_FONTDLG=yes
2387 DEFAULT_wxUSE_MSGDLG=yes
2388 DEFAULT_wxUSE_NUMBERDLG=yes
2389 DEFAULT_wxUSE_TEXTDLG=yes
2390 DEFAULT_wxUSE_SPLASH=yes
2391 DEFAULT_wxUSE_STARTUP_TIPS=yes
2392 DEFAULT_wxUSE_PROGRESSDLG=yes
2393 DEFAULT_wxUSE_WIZARDDLG=yes
2394
2395 DEFAULT_wxUSE_MENUS=yes
2396 DEFAULT_wxUSE_MINIFRAME=yes
2397 DEFAULT_wxUSE_HTML=yes
91dea314 2398 DEFAULT_wxUSE_RICHTEXT=yes
9a8f0513 2399 DEFAULT_wxUSE_XRC=yes
3f60522a 2400 DEFAULT_wxUSE_AUI=yes
646b6ec1 2401 DEFAULT_wxUSE_WEBKIT=yes
a848cd7e
SC
2402 DEFAULT_wxUSE_FILESYSTEM=yes
2403 DEFAULT_wxUSE_FS_INET=yes
2404 DEFAULT_wxUSE_FS_ZIP=yes
2405 DEFAULT_wxUSE_BUSYINFO=yes
9e8e867f 2406 DEFAULT_wxUSE_ARCHIVE_STREAMS=yes
a848cd7e 2407 DEFAULT_wxUSE_ZIPSTREAM=yes
a848cd7e
SC
2408 DEFAULT_wxUSE_VALIDATORS=yes
2409
2410 DEFAULT_wxUSE_ACCEL=yes
2411 DEFAULT_wxUSE_BUTTON=yes
2412 DEFAULT_wxUSE_BMPBUTTON=yes
2413 DEFAULT_wxUSE_CALCTRL=yes
2414 DEFAULT_wxUSE_CARET=yes
2415 DEFAULT_wxUSE_CHECKBOX=yes
2416 DEFAULT_wxUSE_CHECKLST=yes
2417 DEFAULT_wxUSE_CHOICE=yes
92bbdbcd 2418 DEFAULT_wxUSE_CHOICEBOOK=yes
e9263684 2419 DEFAULT_wxUSE_COLOURPICKERCTRL=yes
a848cd7e 2420 DEFAULT_wxUSE_COMBOBOX=yes
a57d600f 2421 DEFAULT_wxUSE_COMBOCTRL=yes
da98e9be 2422 DEFAULT_wxUSE_DATEPICKCTRL=yes
a848cd7e 2423 DEFAULT_wxUSE_DISPLAY=yes
e9263684
VZ
2424 DEFAULT_wxUSE_DIRPICKERCTRL=yes
2425 DEFAULT_wxUSE_FILEPICKERCTRL=yes
2426 DEFAULT_wxUSE_FONTPICKERCTRL=yes
a848cd7e
SC
2427 DEFAULT_wxUSE_GAUGE=yes
2428 DEFAULT_wxUSE_GRID=yes
6954625c 2429 DEFAULT_wxUSE_HYPERLINKCTRL=yes
20e34ecc 2430 DEFAULT_wxUSE_DATAVIEWCTRL=no
a848cd7e
SC
2431 DEFAULT_wxUSE_IMAGLIST=yes
2432 DEFAULT_wxUSE_LISTBOOK=yes
2433 DEFAULT_wxUSE_LISTBOX=yes
2434 DEFAULT_wxUSE_LISTCTRL=yes
2435 DEFAULT_wxUSE_NOTEBOOK=yes
a57d600f 2436 DEFAULT_wxUSE_ODCOMBOBOX=yes
a848cd7e
SC
2437 DEFAULT_wxUSE_RADIOBOX=yes
2438 DEFAULT_wxUSE_RADIOBTN=yes
2439 DEFAULT_wxUSE_SASH=yes
2440 DEFAULT_wxUSE_SCROLLBAR=yes
2441 DEFAULT_wxUSE_SLIDER=yes
2442 DEFAULT_wxUSE_SPINBTN=yes
2443 DEFAULT_wxUSE_SPINCTRL=yes
2444 DEFAULT_wxUSE_SPLITTER=yes
2445 DEFAULT_wxUSE_STATBMP=yes
2446 DEFAULT_wxUSE_STATBOX=yes
2447 DEFAULT_wxUSE_STATLINE=yes
2448 DEFAULT_wxUSE_STATTEXT=yes
2449 DEFAULT_wxUSE_STATUSBAR=yes
f10e38c4 2450 DEFAULT_wxUSE_TAB_DIALOG=no
a848cd7e
SC
2451 DEFAULT_wxUSE_TEXTCTRL=yes
2452 DEFAULT_wxUSE_TOGGLEBTN=yes
2453 DEFAULT_wxUSE_TOOLBAR=yes
2454 DEFAULT_wxUSE_TOOLBAR_NATIVE=yes
2455 DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes
0093c2fc 2456 DEFAULT_wxUSE_TREEBOOK=yes
5ec3bc43 2457 DEFAULT_wxUSE_TOOLBOOK=yes
a848cd7e
SC
2458 DEFAULT_wxUSE_TREECTRL=yes
2459 DEFAULT_wxUSE_POPUPWIN=yes
2460 DEFAULT_wxUSE_TIPWINDOW=yes
2461
78de529b 2462 DEFAULT_wxUSE_UNICODE=no
a848cd7e
SC
2463 DEFAULT_wxUSE_UNICODE_MSLU=yes
2464 DEFAULT_wxUSE_WCSRTOMBS=no
2465
2466 DEFAULT_wxUSE_PALETTE=yes
2467 DEFAULT_wxUSE_IMAGE=yes
2468 DEFAULT_wxUSE_GIF=yes
2469 DEFAULT_wxUSE_PCX=yes
2470 DEFAULT_wxUSE_IFF=no
2471 DEFAULT_wxUSE_PNM=yes
2472 DEFAULT_wxUSE_XPM=yes
2473 DEFAULT_wxUSE_ICO_CUR=yes
2474 DEFAULT_wxUSE_ACCESSIBILITY=no
2475
2476 DEFAULT_wxUSE_MONOLITHIC=no
2477 DEFAULT_wxUSE_PLUGINS=no
2478 DEFAULT_wxUSE_OFFICIAL_BUILD=no
9f45f08e 2479
f34ca037 2480 DEFAULT_wxUSE_GTK2=yes
a848cd7e
SC
2481fi
2482
2483
2484
f34ca037 2485
a848cd7e
SC
2486for toolkit in `echo $ALL_TOOLKITS`; do
2487 LINE=`grep "wxUSE_$toolkit=" ${wx_arg_cache_file}`
2488 if test "x$LINE" != "x" ; then
2489 has_toolkit_in_cache=1
2490 eval "DEFAULT_$LINE"
2491 eval "CACHE_$toolkit=1"
f34ca037
MW
2492
2493 LINE=`grep "wx${toolkit}_VERSION=" ${wx_arg_cache_file}`
2494 if test "x$LINE" != "x" ; then
2495 eval "DEFAULT_$LINE"
2496 fi
a848cd7e
SC
2497 fi
2498done
2499
2500
2501
2502 enablestring=
2503 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gui" >&5
2504echo $ECHO_N "checking for --${enablestring:-enable}-gui... $ECHO_C" >&6
2505 no_cache=0
2506 # Check whether --enable-gui or --disable-gui was given.
2507if test "${enable_gui+set}" = set; then
2508 enableval="$enable_gui"
2509
2510 if test "$enableval" = yes; then
2511 ac_cv_use_gui='wxUSE_GUI=yes'
2512 else
2513 ac_cv_use_gui='wxUSE_GUI=no'
2514 fi
2515
2516else
2517
2518 LINE=`grep "wxUSE_GUI" ${wx_arg_cache_file}`
2519 if test "x$LINE" != x ; then
2520 eval "DEFAULT_$LINE"
2521 else
2522 no_cache=1
2523 fi
2524
2525 ac_cv_use_gui='wxUSE_GUI='$DEFAULT_wxUSE_GUI
2526
2527fi;
2528
2529 eval "$ac_cv_use_gui"
2530 if test "$no_cache" != 1; then
2531 echo $ac_cv_use_gui >> ${wx_arg_cache_file}.tmp
2532 fi
2533
2534 if test "$wxUSE_GUI" = yes; then
2535 echo "$as_me:$LINENO: result: yes" >&5
2536echo "${ECHO_T}yes" >&6
2537 else
2538 echo "$as_me:$LINENO: result: no" >&5
2539echo "${ECHO_T}no" >&6
2540 fi
2541
2542
2543 enablestring=
2544 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-monolithic" >&5
2545echo $ECHO_N "checking for --${enablestring:-enable}-monolithic... $ECHO_C" >&6
2546 no_cache=0
2547 # Check whether --enable-monolithic or --disable-monolithic was given.
2548if test "${enable_monolithic+set}" = set; then
2549 enableval="$enable_monolithic"
2550
2551 if test "$enableval" = yes; then
2552 ac_cv_use_monolithic='wxUSE_MONOLITHIC=yes'
2553 else
2554 ac_cv_use_monolithic='wxUSE_MONOLITHIC=no'
2555 fi
2556
2557else
2558
2559 LINE=`grep "wxUSE_MONOLITHIC" ${wx_arg_cache_file}`
2560 if test "x$LINE" != x ; then
2561 eval "DEFAULT_$LINE"
2562 else
2563 no_cache=1
2564 fi
2565
2566 ac_cv_use_monolithic='wxUSE_MONOLITHIC='$DEFAULT_wxUSE_MONOLITHIC
2567
2568fi;
2569
2570 eval "$ac_cv_use_monolithic"
2571 if test "$no_cache" != 1; then
2572 echo $ac_cv_use_monolithic >> ${wx_arg_cache_file}.tmp
2573 fi
2574
2575 if test "$wxUSE_MONOLITHIC" = yes; then
2576 echo "$as_me:$LINENO: result: yes" >&5
2577echo "${ECHO_T}yes" >&6
2578 else
2579 echo "$as_me:$LINENO: result: no" >&5
2580echo "${ECHO_T}no" >&6
2581 fi
2582
2583
2584 enablestring=
2585 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-plugins" >&5
2586echo $ECHO_N "checking for --${enablestring:-enable}-plugins... $ECHO_C" >&6
2587 no_cache=0
2588 # Check whether --enable-plugins or --disable-plugins was given.
2589if test "${enable_plugins+set}" = set; then
2590 enableval="$enable_plugins"
2591
2592 if test "$enableval" = yes; then
2593 ac_cv_use_plugins='wxUSE_PLUGINS=yes'
2594 else
2595 ac_cv_use_plugins='wxUSE_PLUGINS=no'
2596 fi
2597
2598else
2599
2600 LINE=`grep "wxUSE_PLUGINS" ${wx_arg_cache_file}`
2601 if test "x$LINE" != x ; then
2602 eval "DEFAULT_$LINE"
2603 else
2604 no_cache=1
2605 fi
2606
2607 ac_cv_use_plugins='wxUSE_PLUGINS='$DEFAULT_wxUSE_PLUGINS
2608
2609fi;
2610
2611 eval "$ac_cv_use_plugins"
2612 if test "$no_cache" != 1; then
2613 echo $ac_cv_use_plugins >> ${wx_arg_cache_file}.tmp
2614 fi
2615
2616 if test "$wxUSE_PLUGINS" = yes; then
2617 echo "$as_me:$LINENO: result: yes" >&5
2618echo "${ECHO_T}yes" >&6
2619 else
2620 echo "$as_me:$LINENO: result: no" >&5
2621echo "${ECHO_T}no" >&6
2622 fi
2623
2624
1c14217d
VZ
2625 withstring=without
2626 echo "$as_me:$LINENO: checking for --${withstring:-with}-subdirs" >&5
2627echo $ECHO_N "checking for --${withstring:-with}-subdirs... $ECHO_C" >&6
2628 no_cache=0
2629
2630# Check whether --with-subdirs or --without-subdirs was given.
2631if test "${with_subdirs+set}" = set; then
2632 withval="$with_subdirs"
2633
2634 if test "$withval" = yes; then
2635 ac_cv_use_subdirs='wxWITH_SUBDIRS=yes'
2636 else
2637 ac_cv_use_subdirs='wxWITH_SUBDIRS=no'
2638 fi
2639
2640else
2641
2642 LINE=`grep "wxWITH_SUBDIRS" ${wx_arg_cache_file}`
2643 if test "x$LINE" != x ; then
2644 eval "DEFAULT_$LINE"
2645 else
2646 no_cache=1
2647 fi
2648
2649 ac_cv_use_subdirs='wxWITH_SUBDIRS='$DEFAULT_wxWITH_SUBDIRS
2650
2651fi;
2652
2653 eval "$ac_cv_use_subdirs"
2654 if test "$no_cache" != 1; then
2655 echo $ac_cv_use_subdirs >> ${wx_arg_cache_file}.tmp
2656 fi
2657
2658 if test "$wxWITH_SUBDIRS" = yes; then
2659 echo "$as_me:$LINENO: result: yes" >&5
2660echo "${ECHO_T}yes" >&6
2661 else
2662 echo "$as_me:$LINENO: result: no" >&5
2663echo "${ECHO_T}no" >&6
2664 fi
2665
2666
a848cd7e
SC
2667if test "$wxUSE_GUI" = "yes"; then
2668
2669
2670 enablestring=
2671 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-universal" >&5
2672echo $ECHO_N "checking for --${enablestring:-enable}-universal... $ECHO_C" >&6
2673 no_cache=0
2674 # Check whether --enable-universal or --disable-universal was given.
2675if test "${enable_universal+set}" = set; then
2676 enableval="$enable_universal"
2677
2678 if test "$enableval" = yes; then
2679 ac_cv_use_universal='wxUSE_UNIVERSAL=yes'
2680 else
2681 ac_cv_use_universal='wxUSE_UNIVERSAL=no'
2682 fi
2683
2684else
2685
2686 LINE=`grep "wxUSE_UNIVERSAL" ${wx_arg_cache_file}`
2687 if test "x$LINE" != x ; then
2688 eval "DEFAULT_$LINE"
2689 else
2690 no_cache=1
2691 fi
2692
2693 ac_cv_use_universal='wxUSE_UNIVERSAL='$DEFAULT_wxUSE_UNIVERSAL
2694
2695fi;
2696
2697 eval "$ac_cv_use_universal"
2698 if test "$no_cache" != 1; then
2699 echo $ac_cv_use_universal >> ${wx_arg_cache_file}.tmp
2700 fi
2701
2702 if test "$wxUSE_UNIVERSAL" = yes; then
2703 echo "$as_me:$LINENO: result: yes" >&5
2704echo "${ECHO_T}yes" >&6
2705 else
2706 echo "$as_me:$LINENO: result: no" >&5
2707echo "${ECHO_T}no" >&6
2708 fi
2709
2710
2711# Check whether --with-gtk or --without-gtk was given.
2712if test "${with_gtk+set}" = set; then
2713 withval="$with_gtk"
2714 wxUSE_GTK="$withval" CACHE_GTK=1 TOOLKIT_GIVEN=1
2715fi;
2716
2717# Check whether --with-motif or --without-motif was given.
2718if test "${with_motif+set}" = set; then
2719 withval="$with_motif"
2720 wxUSE_MOTIF="$withval" CACHE_MOTIF=1 TOOLKIT_GIVEN=1
2721fi;
2722
2723# Check whether --with-mac or --without-mac was given.
2724if test "${with_mac+set}" = set; then
2725 withval="$with_mac"
c228d3a4 2726 wxUSE_MAC="$withval" CACHE_MAC=1 TOOLKIT_GIVEN=1
a848cd7e
SC
2727fi;
2728
2729# Check whether --with-cocoa or --without-cocoa was given.
2730if test "${with_cocoa+set}" = set; then
2731 withval="$with_cocoa"
c228d3a4 2732 wxUSE_COCOA="$withval" CACHE_COCOA=1 TOOLKIT_GIVEN=1
a848cd7e
SC
2733fi;
2734
2735# Check whether --with-wine or --without-wine was given.
2736if test "${with_wine+set}" = set; then
2737 withval="$with_wine"
2738 wxUSE_WINE="$withval" CACHE_WINE=1
2739fi;
2740
2741# Check whether --with-msw or --without-msw was given.
2742if test "${with_msw+set}" = set; then
2743 withval="$with_msw"
2744 wxUSE_MSW="$withval" CACHE_MSW=1 TOOLKIT_GIVEN=1
2745fi;
2746
2747# Check whether --with-pm or --without-pm was given.
2748if test "${with_pm+set}" = set; then
2749 withval="$with_pm"
2750 wxUSE_PM="$withval" CACHE_PM=1 TOOLKIT_GIVEN=1
2751fi;
2752
2753# Check whether --with-mgl or --without-mgl was given.
2754if test "${with_mgl+set}" = set; then
2755 withval="$with_mgl"
2756 wxUSE_MGL="$withval" wxUSE_UNIVERSAL="yes" CACHE_MGL=1 TOOLKIT_GIVEN=1
2757fi;
2758
2759# Check whether --with-microwin or --without-microwin was given.
2760if test "${with_microwin+set}" = set; then
2761 withval="$with_microwin"
2762 wxUSE_MICROWIN="$withval" CACHE_MICROWIN=1 TOOLKIT_GIVEN=1
2763fi;
2764
2765# Check whether --with-x11 or --without-x11 was given.
2766if test "${with_x11+set}" = set; then
2767 withval="$with_x11"
2768 wxUSE_X11="$withval" wxUSE_UNIVERSAL="yes" CACHE_X11=1 TOOLKIT_GIVEN=1
2769fi;
2770
2771 enablestring=
2772 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-nanox" >&5
2773echo $ECHO_N "checking for --${enablestring:-enable}-nanox... $ECHO_C" >&6
2774 no_cache=0
2775 # Check whether --enable-nanox or --disable-nanox was given.
2776if test "${enable_nanox+set}" = set; then
2777 enableval="$enable_nanox"
2778
2779 if test "$enableval" = yes; then
2780 ac_cv_use_nanox='wxUSE_NANOX=yes'
2781 else
2782 ac_cv_use_nanox='wxUSE_NANOX=no'
2783 fi
2784
2785else
2786
2787 LINE=`grep "wxUSE_NANOX" ${wx_arg_cache_file}`
2788 if test "x$LINE" != x ; then
2789 eval "DEFAULT_$LINE"
2790 else
2791 no_cache=1
2792 fi
2793
2794 ac_cv_use_nanox='wxUSE_NANOX='$DEFAULT_wxUSE_NANOX
2795
2796fi;
2797
2798 eval "$ac_cv_use_nanox"
2799 if test "$no_cache" != 1; then
2800 echo $ac_cv_use_nanox >> ${wx_arg_cache_file}.tmp
2801 fi
2802
2803 if test "$wxUSE_NANOX" = yes; then
2804 echo "$as_me:$LINENO: result: yes" >&5
2805echo "${ECHO_T}yes" >&6
2806 else
2807 echo "$as_me:$LINENO: result: no" >&5
2808echo "${ECHO_T}no" >&6
2809 fi
2810
2811
f34ca037
MW
2812# Check whether --enable-gtk2 or --disable-gtk2 was given.
2813if test "${enable_gtk2+set}" = set; then
2814 enableval="$enable_gtk2"
2815 wxUSE_GTK2="$enableval"
2816fi;
a848cd7e 2817
a848cd7e
SC
2818 enablestring=
2819 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gpe" >&5
2820echo $ECHO_N "checking for --${enablestring:-enable}-gpe... $ECHO_C" >&6
2821 no_cache=0
2822 # Check whether --enable-gpe or --disable-gpe was given.
2823if test "${enable_gpe+set}" = set; then
2824 enableval="$enable_gpe"
2825
2826 if test "$enableval" = yes; then
2827 ac_cv_use_gpe='wxUSE_GPE=yes'
2828 else
2829 ac_cv_use_gpe='wxUSE_GPE=no'
2830 fi
2831
2832else
2833
2834 LINE=`grep "wxUSE_GPE" ${wx_arg_cache_file}`
2835 if test "x$LINE" != x ; then
2836 eval "DEFAULT_$LINE"
2837 else
2838 no_cache=1
2839 fi
2840
2841 ac_cv_use_gpe='wxUSE_GPE='$DEFAULT_wxUSE_GPE
2842
2843fi;
2844
2845 eval "$ac_cv_use_gpe"
2846 if test "$no_cache" != 1; then
2847 echo $ac_cv_use_gpe >> ${wx_arg_cache_file}.tmp
2848 fi
2849
2850 if test "$wxUSE_GPE" = yes; then
2851 echo "$as_me:$LINENO: result: yes" >&5
2852echo "${ECHO_T}yes" >&6
2853 else
2854 echo "$as_me:$LINENO: result: no" >&5
2855echo "${ECHO_T}no" >&6
2856 fi
2857
2858
2859
2860 echo "$as_me:$LINENO: checking for --with-libpng" >&5
2861echo $ECHO_N "checking for --with-libpng... $ECHO_C" >&6
2862 no_cache=0
2863
2864# Check whether --with-libpng or --without-libpng was given.
2865if test "${with_libpng+set}" = set; then
2866 withval="$with_libpng"
2867
2868 if test "$withval" = yes; then
2869 ac_cv_use_libpng='wxUSE_LIBPNG=yes'
2870 elif test "$withval" = no; then
2871 ac_cv_use_libpng='wxUSE_LIBPNG=no'
2872 elif test "$withval" = sys; then
2873 ac_cv_use_libpng='wxUSE_LIBPNG=sys'
2874 elif test "$withval" = builtin; then
2875 ac_cv_use_libpng='wxUSE_LIBPNG=builtin'
2876 else
2877 { { echo "$as_me:$LINENO: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&5
2878echo "$as_me: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&2;}
2879 { (exit 1); exit 1; }; }
2880 fi
2881
2882else
2883
2884 LINE=`grep "wxUSE_LIBPNG" ${wx_arg_cache_file}`
2885 if test "x$LINE" != x ; then
2886 eval "DEFAULT_$LINE"
2887 else
2888 no_cache=1
2889 fi
2890
2891 ac_cv_use_libpng='wxUSE_LIBPNG='$DEFAULT_wxUSE_LIBPNG
2892
2893fi;
2894
2895 eval "$ac_cv_use_libpng"
2896 if test "$no_cache" != 1; then
2897 echo $ac_cv_use_libpng >> ${wx_arg_cache_file}.tmp
2898 fi
2899
2900 if test "$wxUSE_LIBPNG" = yes; then
2901 echo "$as_me:$LINENO: result: yes" >&5
2902echo "${ECHO_T}yes" >&6
2903 elif test "$wxUSE_LIBPNG" = no; then
2904 echo "$as_me:$LINENO: result: no" >&5
2905echo "${ECHO_T}no" >&6
2906 elif test "$wxUSE_LIBPNG" = sys; then
2907 echo "$as_me:$LINENO: result: system version" >&5
2908echo "${ECHO_T}system version" >&6
2909 elif test "$wxUSE_LIBPNG" = builtin; then
2910 echo "$as_me:$LINENO: result: builtin version" >&5
2911echo "${ECHO_T}builtin version" >&6
2912 else
2913 { { echo "$as_me:$LINENO: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&5
2914echo "$as_me: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&2;}
2915 { (exit 1); exit 1; }; }
2916 fi
2917
2918
2919 echo "$as_me:$LINENO: checking for --with-libjpeg" >&5
2920echo $ECHO_N "checking for --with-libjpeg... $ECHO_C" >&6
2921 no_cache=0
2922
2923# Check whether --with-libjpeg or --without-libjpeg was given.
2924if test "${with_libjpeg+set}" = set; then
2925 withval="$with_libjpeg"
2926
2927 if test "$withval" = yes; then
2928 ac_cv_use_libjpeg='wxUSE_LIBJPEG=yes'
2929 elif test "$withval" = no; then
2930 ac_cv_use_libjpeg='wxUSE_LIBJPEG=no'
2931 elif test "$withval" = sys; then
2932 ac_cv_use_libjpeg='wxUSE_LIBJPEG=sys'
2933 elif test "$withval" = builtin; then
2934 ac_cv_use_libjpeg='wxUSE_LIBJPEG=builtin'
2935 else
2936 { { echo "$as_me:$LINENO: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&5
2937echo "$as_me: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&2;}
2938 { (exit 1); exit 1; }; }
2939 fi
2940
2941else
2942
2943 LINE=`grep "wxUSE_LIBJPEG" ${wx_arg_cache_file}`
2944 if test "x$LINE" != x ; then
2945 eval "DEFAULT_$LINE"
2946 else
2947 no_cache=1
2948 fi
2949
2950 ac_cv_use_libjpeg='wxUSE_LIBJPEG='$DEFAULT_wxUSE_LIBJPEG
2951
2952fi;
2953
2954 eval "$ac_cv_use_libjpeg"
2955 if test "$no_cache" != 1; then
2956 echo $ac_cv_use_libjpeg >> ${wx_arg_cache_file}.tmp
2957 fi
2958
2959 if test "$wxUSE_LIBJPEG" = yes; then
2960 echo "$as_me:$LINENO: result: yes" >&5
2961echo "${ECHO_T}yes" >&6
2962 elif test "$wxUSE_LIBJPEG" = no; then
2963 echo "$as_me:$LINENO: result: no" >&5
2964echo "${ECHO_T}no" >&6
2965 elif test "$wxUSE_LIBJPEG" = sys; then
2966 echo "$as_me:$LINENO: result: system version" >&5
2967echo "${ECHO_T}system version" >&6
2968 elif test "$wxUSE_LIBJPEG" = builtin; then
2969 echo "$as_me:$LINENO: result: builtin version" >&5
2970echo "${ECHO_T}builtin version" >&6
2971 else
2972 { { echo "$as_me:$LINENO: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&5
2973echo "$as_me: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&2;}
2974 { (exit 1); exit 1; }; }
2975 fi
2976
2977
2978 echo "$as_me:$LINENO: checking for --with-libtiff" >&5
2979echo $ECHO_N "checking for --with-libtiff... $ECHO_C" >&6
2980 no_cache=0
2981
2982# Check whether --with-libtiff or --without-libtiff was given.
2983if test "${with_libtiff+set}" = set; then
2984 withval="$with_libtiff"
2985
2986 if test "$withval" = yes; then
2987 ac_cv_use_libtiff='wxUSE_LIBTIFF=yes'
2988 elif test "$withval" = no; then
2989 ac_cv_use_libtiff='wxUSE_LIBTIFF=no'
2990 elif test "$withval" = sys; then
2991 ac_cv_use_libtiff='wxUSE_LIBTIFF=sys'
2992 elif test "$withval" = builtin; then
2993 ac_cv_use_libtiff='wxUSE_LIBTIFF=builtin'
2994 else
2995 { { echo "$as_me:$LINENO: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&5
2996echo "$as_me: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&2;}
2997 { (exit 1); exit 1; }; }
2998 fi
2999
3000else
3001
3002 LINE=`grep "wxUSE_LIBTIFF" ${wx_arg_cache_file}`
3003 if test "x$LINE" != x ; then
3004 eval "DEFAULT_$LINE"
3005 else
3006 no_cache=1
3007 fi
3008
3009 ac_cv_use_libtiff='wxUSE_LIBTIFF='$DEFAULT_wxUSE_LIBTIFF
3010
3011fi;
3012
3013 eval "$ac_cv_use_libtiff"
3014 if test "$no_cache" != 1; then
3015 echo $ac_cv_use_libtiff >> ${wx_arg_cache_file}.tmp
3016 fi
3017
3018 if test "$wxUSE_LIBTIFF" = yes; then
3019 echo "$as_me:$LINENO: result: yes" >&5
3020echo "${ECHO_T}yes" >&6
3021 elif test "$wxUSE_LIBTIFF" = no; then
3022 echo "$as_me:$LINENO: result: no" >&5
3023echo "${ECHO_T}no" >&6
3024 elif test "$wxUSE_LIBTIFF" = sys; then
3025 echo "$as_me:$LINENO: result: system version" >&5
3026echo "${ECHO_T}system version" >&6
3027 elif test "$wxUSE_LIBTIFF" = builtin; then
3028 echo "$as_me:$LINENO: result: builtin version" >&5
3029echo "${ECHO_T}builtin version" >&6
3030 else
3031 { { echo "$as_me:$LINENO: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&5
3032echo "$as_me: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&2;}
3033 { (exit 1); exit 1; }; }
3034 fi
3035
3036
3037 echo "$as_me:$LINENO: checking for --with-libxpm" >&5
3038echo $ECHO_N "checking for --with-libxpm... $ECHO_C" >&6
3039 no_cache=0
3040
3041# Check whether --with-libxpm or --without-libxpm was given.
3042if test "${with_libxpm+set}" = set; then
3043 withval="$with_libxpm"
3044
3045 if test "$withval" = yes; then
3046 ac_cv_use_libxpm='wxUSE_LIBXPM=yes'
3047 elif test "$withval" = no; then
3048 ac_cv_use_libxpm='wxUSE_LIBXPM=no'
3049 elif test "$withval" = sys; then
3050 ac_cv_use_libxpm='wxUSE_LIBXPM=sys'
3051 elif test "$withval" = builtin; then
3052 ac_cv_use_libxpm='wxUSE_LIBXPM=builtin'
3053 else
3054 { { echo "$as_me:$LINENO: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&5
3055echo "$as_me: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&2;}
3056 { (exit 1); exit 1; }; }
3057 fi
3058
3059else
3060
3061 LINE=`grep "wxUSE_LIBXPM" ${wx_arg_cache_file}`
3062 if test "x$LINE" != x ; then
3063 eval "DEFAULT_$LINE"
3064 else
3065 no_cache=1
3066 fi
3067
3068 ac_cv_use_libxpm='wxUSE_LIBXPM='$DEFAULT_wxUSE_LIBXPM
3069
3070fi;
3071
3072 eval "$ac_cv_use_libxpm"
3073 if test "$no_cache" != 1; then
3074 echo $ac_cv_use_libxpm >> ${wx_arg_cache_file}.tmp
3075 fi
3076
3077 if test "$wxUSE_LIBXPM" = yes; then
3078 echo "$as_me:$LINENO: result: yes" >&5
3079echo "${ECHO_T}yes" >&6
3080 elif test "$wxUSE_LIBXPM" = no; then
3081 echo "$as_me:$LINENO: result: no" >&5
3082echo "${ECHO_T}no" >&6
3083 elif test "$wxUSE_LIBXPM" = sys; then
3084 echo "$as_me:$LINENO: result: system version" >&5
3085echo "${ECHO_T}system version" >&6
3086 elif test "$wxUSE_LIBXPM" = builtin; then
3087 echo "$as_me:$LINENO: result: builtin version" >&5
3088echo "${ECHO_T}builtin version" >&6
3089 else
3090 { { echo "$as_me:$LINENO: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&5
3091echo "$as_me: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&2;}
3092 { (exit 1); exit 1; }; }
3093 fi
3094
3095
1c14217d
VZ
3096 withstring=
3097 echo "$as_me:$LINENO: checking for --${withstring:-with}-libmspack" >&5
3098echo $ECHO_N "checking for --${withstring:-with}-libmspack... $ECHO_C" >&6
a848cd7e
SC
3099 no_cache=0
3100
3101# Check whether --with-libmspack or --without-libmspack was given.
3102if test "${with_libmspack+set}" = set; then
3103 withval="$with_libmspack"
3104
3105 if test "$withval" = yes; then
3106 ac_cv_use_libmspack='wxUSE_LIBMSPACK=yes'
3107 else
3108 ac_cv_use_libmspack='wxUSE_LIBMSPACK=no'
3109 fi
3110
3111else
3112
3113 LINE=`grep "wxUSE_LIBMSPACK" ${wx_arg_cache_file}`
3114 if test "x$LINE" != x ; then
3115 eval "DEFAULT_$LINE"
3116 else
3117 no_cache=1
3118 fi
3119
3120 ac_cv_use_libmspack='wxUSE_LIBMSPACK='$DEFAULT_wxUSE_LIBMSPACK
3121
3122fi;
3123
3124 eval "$ac_cv_use_libmspack"
3125 if test "$no_cache" != 1; then
3126 echo $ac_cv_use_libmspack >> ${wx_arg_cache_file}.tmp
3127 fi
3128
3129 if test "$wxUSE_LIBMSPACK" = yes; then
3130 echo "$as_me:$LINENO: result: yes" >&5
3131echo "${ECHO_T}yes" >&6
3132 else
3133 echo "$as_me:$LINENO: result: no" >&5
3134echo "${ECHO_T}no" >&6
3135 fi
3136
3137
1c14217d
VZ
3138 withstring=
3139 echo "$as_me:$LINENO: checking for --${withstring:-with}-sdl" >&5
3140echo $ECHO_N "checking for --${withstring:-with}-sdl... $ECHO_C" >&6
a848cd7e
SC
3141 no_cache=0
3142
3143# Check whether --with-sdl or --without-sdl was given.
3144if test "${with_sdl+set}" = set; then
3145 withval="$with_sdl"
3146
3147 if test "$withval" = yes; then
3148 ac_cv_use_sdl='wxUSE_LIBSDL=yes'
3149 else
3150 ac_cv_use_sdl='wxUSE_LIBSDL=no'
3151 fi
3152
3153else
3154
3155 LINE=`grep "wxUSE_LIBSDL" ${wx_arg_cache_file}`
3156 if test "x$LINE" != x ; then
3157 eval "DEFAULT_$LINE"
3158 else
3159 no_cache=1
3160 fi
3161
3162 ac_cv_use_sdl='wxUSE_LIBSDL='$DEFAULT_wxUSE_LIBSDL
3163
3164fi;
3165
3166 eval "$ac_cv_use_sdl"
3167 if test "$no_cache" != 1; then
3168 echo $ac_cv_use_sdl >> ${wx_arg_cache_file}.tmp
3169 fi
3170
3171 if test "$wxUSE_LIBSDL" = yes; then
3172 echo "$as_me:$LINENO: result: yes" >&5
3173echo "${ECHO_T}yes" >&6
3174 else
3175 echo "$as_me:$LINENO: result: no" >&5
3176echo "${ECHO_T}no" >&6
3177 fi
3178
3179
1c14217d
VZ
3180 withstring=
3181 echo "$as_me:$LINENO: checking for --${withstring:-with}-gnomeprint" >&5
3182echo $ECHO_N "checking for --${withstring:-with}-gnomeprint... $ECHO_C" >&6
d1c38808
VZ
3183 no_cache=0
3184
3185# Check whether --with-gnomeprint or --without-gnomeprint was given.
3186if test "${with_gnomeprint+set}" = set; then
3187 withval="$with_gnomeprint"
3188
3189 if test "$withval" = yes; then
3190 ac_cv_use_gnomeprint='wxUSE_LIBGNOMEPRINT=yes'
3191 else
3192 ac_cv_use_gnomeprint='wxUSE_LIBGNOMEPRINT=no'
3193 fi
3194
3195else
3196
3197 LINE=`grep "wxUSE_LIBGNOMEPRINT" ${wx_arg_cache_file}`
3198 if test "x$LINE" != x ; then
3199 eval "DEFAULT_$LINE"
3200 else
3201 no_cache=1
3202 fi
3203
3204 ac_cv_use_gnomeprint='wxUSE_LIBGNOMEPRINT='$DEFAULT_wxUSE_LIBGNOMEPRINT
3205
3206fi;
3207
3208 eval "$ac_cv_use_gnomeprint"
3209 if test "$no_cache" != 1; then
3210 echo $ac_cv_use_gnomeprint >> ${wx_arg_cache_file}.tmp
3211 fi
3212
3213 if test "$wxUSE_LIBGNOMEPRINT" = yes; then
3214 echo "$as_me:$LINENO: result: yes" >&5
3215echo "${ECHO_T}yes" >&6
3216 else
3217 echo "$as_me:$LINENO: result: no" >&5
3218echo "${ECHO_T}no" >&6
3219 fi
3220
3221
2b850ae1
RR
3222 withstring=
3223 echo "$as_me:$LINENO: checking for --${withstring:-with}-gnomevfs" >&5
3224echo $ECHO_N "checking for --${withstring:-with}-gnomevfs... $ECHO_C" >&6
3225 no_cache=0
3226
3227# Check whether --with-gnomevfs or --without-gnomevfs was given.
3228if test "${with_gnomevfs+set}" = set; then
3229 withval="$with_gnomevfs"
3230
3231 if test "$withval" = yes; then
3232 ac_cv_use_gnomevfs='wxUSE_LIBGNOMEVFS=yes'
3233 else
3234 ac_cv_use_gnomevfs='wxUSE_LIBGNOMEVFS=no'
3235 fi
3236
3237else
3238
3239 LINE=`grep "wxUSE_LIBGNOMEVFS" ${wx_arg_cache_file}`
3240 if test "x$LINE" != x ; then
3241 eval "DEFAULT_$LINE"
3242 else
3243 no_cache=1
3244 fi
3245
3246 ac_cv_use_gnomevfs='wxUSE_LIBGNOMEVFS='$DEFAULT_wxUSE_LIBGNOMEVFS
3247
3248fi;
3249
3250 eval "$ac_cv_use_gnomevfs"
3251 if test "$no_cache" != 1; then
3252 echo $ac_cv_use_gnomevfs >> ${wx_arg_cache_file}.tmp
3253 fi
3254
3255 if test "$wxUSE_LIBGNOMEVFS" = yes; then
3256 echo "$as_me:$LINENO: result: yes" >&5
3257echo "${ECHO_T}yes" >&6
3258 else
3259 echo "$as_me:$LINENO: result: no" >&5
3260echo "${ECHO_T}no" >&6
3261 fi
3262
3263
3565d135
RR
3264 withstring=
3265 echo "$as_me:$LINENO: checking for --${withstring:-with}-hildon" >&5
3266echo $ECHO_N "checking for --${withstring:-with}-hildon... $ECHO_C" >&6
3267 no_cache=0
3268
3269# Check whether --with-hildon or --without-hildon was given.
3270if test "${with_hildon+set}" = set; then
3271 withval="$with_hildon"
3272
3273 if test "$withval" = yes; then
3274 ac_cv_use_hildon='wxUSE_LIBHILDON=yes'
3275 else
3276 ac_cv_use_hildon='wxUSE_LIBHILDON=no'
3277 fi
3278
3279else
3280
3281 LINE=`grep "wxUSE_LIBHILDON" ${wx_arg_cache_file}`
3282 if test "x$LINE" != x ; then
3283 eval "DEFAULT_$LINE"
3284 else
3285 no_cache=1
3286 fi
3287
3288 ac_cv_use_hildon='wxUSE_LIBHILDON='$DEFAULT_wxUSE_LIBHILDON
3289
3290fi;
3291
3292 eval "$ac_cv_use_hildon"
3293 if test "$no_cache" != 1; then
3294 echo $ac_cv_use_hildon >> ${wx_arg_cache_file}.tmp
3295 fi
3296
3297 if test "$wxUSE_LIBHILDON" = yes; then
3298 echo "$as_me:$LINENO: result: yes" >&5
3299echo "${ECHO_T}yes" >&6
3300 else
3301 echo "$as_me:$LINENO: result: no" >&5
3302echo "${ECHO_T}no" >&6
3303 fi
3304
3305
1c14217d
VZ
3306 withstring=
3307 echo "$as_me:$LINENO: checking for --${withstring:-with}-opengl" >&5
3308echo $ECHO_N "checking for --${withstring:-with}-opengl... $ECHO_C" >&6
a848cd7e
SC
3309 no_cache=0
3310
3311# Check whether --with-opengl or --without-opengl was given.
3312if test "${with_opengl+set}" = set; then
3313 withval="$with_opengl"
3314
3315 if test "$withval" = yes; then
3316 ac_cv_use_opengl='wxUSE_OPENGL=yes'
3317 else
3318 ac_cv_use_opengl='wxUSE_OPENGL=no'
3319 fi
3320
3321else
3322
3323 LINE=`grep "wxUSE_OPENGL" ${wx_arg_cache_file}`
3324 if test "x$LINE" != x ; then
3325 eval "DEFAULT_$LINE"
3326 else
3327 no_cache=1
3328 fi
3329
3330 ac_cv_use_opengl='wxUSE_OPENGL='$DEFAULT_wxUSE_OPENGL
3331
3332fi;
3333
3334 eval "$ac_cv_use_opengl"
3335 if test "$no_cache" != 1; then
3336 echo $ac_cv_use_opengl >> ${wx_arg_cache_file}.tmp
3337 fi
3338
3339 if test "$wxUSE_OPENGL" = yes; then
3340 echo "$as_me:$LINENO: result: yes" >&5
3341echo "${ECHO_T}yes" >&6
3342 else
3343 echo "$as_me:$LINENO: result: no" >&5
3344echo "${ECHO_T}no" >&6
3345 fi
3346
3347
3348fi
3349
3350
1c14217d
VZ
3351 withstring=
3352 echo "$as_me:$LINENO: checking for --${withstring:-with}-dmalloc" >&5
3353echo $ECHO_N "checking for --${withstring:-with}-dmalloc... $ECHO_C" >&6
a848cd7e
SC
3354 no_cache=0
3355
3356# Check whether --with-dmalloc or --without-dmalloc was given.
3357if test "${with_dmalloc+set}" = set; then
3358 withval="$with_dmalloc"
3359
3360 if test "$withval" = yes; then
3361 ac_cv_use_dmalloc='wxUSE_DMALLOC=yes'
3362 else
3363 ac_cv_use_dmalloc='wxUSE_DMALLOC=no'
3364 fi
3365
3366else
3367
3368 LINE=`grep "wxUSE_DMALLOC" ${wx_arg_cache_file}`
3369 if test "x$LINE" != x ; then
3370 eval "DEFAULT_$LINE"
3371 else
3372 no_cache=1
3373 fi
3374
3375 ac_cv_use_dmalloc='wxUSE_DMALLOC='$DEFAULT_wxUSE_DMALLOC
3376
3377fi;
3378
3379 eval "$ac_cv_use_dmalloc"
3380 if test "$no_cache" != 1; then
3381 echo $ac_cv_use_dmalloc >> ${wx_arg_cache_file}.tmp
3382 fi
3383
3384 if test "$wxUSE_DMALLOC" = yes; then
3385 echo "$as_me:$LINENO: result: yes" >&5
3386echo "${ECHO_T}yes" >&6
3387 else
3388 echo "$as_me:$LINENO: result: no" >&5
3389echo "${ECHO_T}no" >&6
3390 fi
3391
3392
3393 echo "$as_me:$LINENO: checking for --with-regex" >&5
3394echo $ECHO_N "checking for --with-regex... $ECHO_C" >&6
3395 no_cache=0
3396
3397# Check whether --with-regex or --without-regex was given.
3398if test "${with_regex+set}" = set; then
3399 withval="$with_regex"
3400
3401 if test "$withval" = yes; then
3402 ac_cv_use_regex='wxUSE_REGEX=yes'
3403 elif test "$withval" = no; then
3404 ac_cv_use_regex='wxUSE_REGEX=no'
3405 elif test "$withval" = sys; then
3406 ac_cv_use_regex='wxUSE_REGEX=sys'
3407 elif test "$withval" = builtin; then
3408 ac_cv_use_regex='wxUSE_REGEX=builtin'
3409 else
3410 { { echo "$as_me:$LINENO: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&5
3411echo "$as_me: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&2;}
3412 { (exit 1); exit 1; }; }
3413 fi
3414
3415else
3416
3417 LINE=`grep "wxUSE_REGEX" ${wx_arg_cache_file}`
3418 if test "x$LINE" != x ; then
3419 eval "DEFAULT_$LINE"
3420 else
3421 no_cache=1
3422 fi
3423
3424 ac_cv_use_regex='wxUSE_REGEX='$DEFAULT_wxUSE_REGEX
3425
3426fi;
3427
3428 eval "$ac_cv_use_regex"
3429 if test "$no_cache" != 1; then
3430 echo $ac_cv_use_regex >> ${wx_arg_cache_file}.tmp
3431 fi
3432
3433 if test "$wxUSE_REGEX" = yes; then
3434 echo "$as_me:$LINENO: result: yes" >&5
3435echo "${ECHO_T}yes" >&6
3436 elif test "$wxUSE_REGEX" = no; then
3437 echo "$as_me:$LINENO: result: no" >&5
3438echo "${ECHO_T}no" >&6
3439 elif test "$wxUSE_REGEX" = sys; then
3440 echo "$as_me:$LINENO: result: system version" >&5
3441echo "${ECHO_T}system version" >&6
3442 elif test "$wxUSE_REGEX" = builtin; then
3443 echo "$as_me:$LINENO: result: builtin version" >&5
3444echo "${ECHO_T}builtin version" >&6
3445 else
3446 { { echo "$as_me:$LINENO: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&5
3447echo "$as_me: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&2;}
3448 { (exit 1); exit 1; }; }
3449 fi
3450
3451
3452 echo "$as_me:$LINENO: checking for --with-zlib" >&5
3453echo $ECHO_N "checking for --with-zlib... $ECHO_C" >&6
3454 no_cache=0
3455
3456# Check whether --with-zlib or --without-zlib was given.
3457if test "${with_zlib+set}" = set; then
3458 withval="$with_zlib"
3459
3460 if test "$withval" = yes; then
3461 ac_cv_use_zlib='wxUSE_ZLIB=yes'
3462 elif test "$withval" = no; then
3463 ac_cv_use_zlib='wxUSE_ZLIB=no'
3464 elif test "$withval" = sys; then
3465 ac_cv_use_zlib='wxUSE_ZLIB=sys'
3466 elif test "$withval" = builtin; then
3467 ac_cv_use_zlib='wxUSE_ZLIB=builtin'
3468 else
3469 { { echo "$as_me:$LINENO: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&5
3470echo "$as_me: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&2;}
3471 { (exit 1); exit 1; }; }
3472 fi
3473
3474else
3475
3476 LINE=`grep "wxUSE_ZLIB" ${wx_arg_cache_file}`
3477 if test "x$LINE" != x ; then
3478 eval "DEFAULT_$LINE"
3479 else
3480 no_cache=1
3481 fi
3482
3483 ac_cv_use_zlib='wxUSE_ZLIB='$DEFAULT_wxUSE_ZLIB
3484
3485fi;
3486
3487 eval "$ac_cv_use_zlib"
3488 if test "$no_cache" != 1; then
3489 echo $ac_cv_use_zlib >> ${wx_arg_cache_file}.tmp
3490 fi
3491
3492 if test "$wxUSE_ZLIB" = yes; then
3493 echo "$as_me:$LINENO: result: yes" >&5
3494echo "${ECHO_T}yes" >&6
3495 elif test "$wxUSE_ZLIB" = no; then
3496 echo "$as_me:$LINENO: result: no" >&5
3497echo "${ECHO_T}no" >&6
3498 elif test "$wxUSE_ZLIB" = sys; then
3499 echo "$as_me:$LINENO: result: system version" >&5
3500echo "${ECHO_T}system version" >&6
3501 elif test "$wxUSE_ZLIB" = builtin; then
3502 echo "$as_me:$LINENO: result: builtin version" >&5
3503echo "${ECHO_T}builtin version" >&6
3504 else
3505 { { echo "$as_me:$LINENO: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&5
3506echo "$as_me: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&2;}
3507 { (exit 1); exit 1; }; }
3508 fi
3509
3510
3511 echo "$as_me:$LINENO: checking for --with-odbc" >&5
3512echo $ECHO_N "checking for --with-odbc... $ECHO_C" >&6
3513 no_cache=0
3514
3515# Check whether --with-odbc or --without-odbc was given.
3516if test "${with_odbc+set}" = set; then
3517 withval="$with_odbc"
3518
3519 if test "$withval" = yes; then
3520 ac_cv_use_odbc='wxUSE_ODBC=yes'
3521 elif test "$withval" = no; then
3522 ac_cv_use_odbc='wxUSE_ODBC=no'
3523 elif test "$withval" = sys; then
3524 ac_cv_use_odbc='wxUSE_ODBC=sys'
3525 elif test "$withval" = builtin; then
3526 ac_cv_use_odbc='wxUSE_ODBC=builtin'
3527 else
3528 { { echo "$as_me:$LINENO: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&5
3529echo "$as_me: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&2;}
3530 { (exit 1); exit 1; }; }
3531 fi
3532
3533else
3534
3535 LINE=`grep "wxUSE_ODBC" ${wx_arg_cache_file}`
3536 if test "x$LINE" != x ; then
3537 eval "DEFAULT_$LINE"
3538 else
3539 no_cache=1
3540 fi
3541
3542 ac_cv_use_odbc='wxUSE_ODBC='$DEFAULT_wxUSE_ODBC
3543
3544fi;
3545
3546 eval "$ac_cv_use_odbc"
3547 if test "$no_cache" != 1; then
3548 echo $ac_cv_use_odbc >> ${wx_arg_cache_file}.tmp
3549 fi
3550
3551 if test "$wxUSE_ODBC" = yes; then
3552 echo "$as_me:$LINENO: result: yes" >&5
3553echo "${ECHO_T}yes" >&6
3554 elif test "$wxUSE_ODBC" = no; then
3555 echo "$as_me:$LINENO: result: no" >&5
3556echo "${ECHO_T}no" >&6
3557 elif test "$wxUSE_ODBC" = sys; then
3558 echo "$as_me:$LINENO: result: system version" >&5
3559echo "${ECHO_T}system version" >&6
3560 elif test "$wxUSE_ODBC" = builtin; then
3561 echo "$as_me:$LINENO: result: builtin version" >&5
3562echo "${ECHO_T}builtin version" >&6
3563 else
3564 { { echo "$as_me:$LINENO: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&5
3565echo "$as_me: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&2;}
3566 { (exit 1); exit 1; }; }
3567 fi
3568
3569
3570 echo "$as_me:$LINENO: checking for --with-expat" >&5
3571echo $ECHO_N "checking for --with-expat... $ECHO_C" >&6
3572 no_cache=0
3573
3574# Check whether --with-expat or --without-expat was given.
3575if test "${with_expat+set}" = set; then
3576 withval="$with_expat"
3577
3578 if test "$withval" = yes; then
3579 ac_cv_use_expat='wxUSE_EXPAT=yes'
3580 elif test "$withval" = no; then
3581 ac_cv_use_expat='wxUSE_EXPAT=no'
3582 elif test "$withval" = sys; then
3583 ac_cv_use_expat='wxUSE_EXPAT=sys'
3584 elif test "$withval" = builtin; then
3585 ac_cv_use_expat='wxUSE_EXPAT=builtin'
3586 else
3587 { { echo "$as_me:$LINENO: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&5
3588echo "$as_me: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&2;}
3589 { (exit 1); exit 1; }; }
3590 fi
3591
3592else
3593
3594 LINE=`grep "wxUSE_EXPAT" ${wx_arg_cache_file}`
3595 if test "x$LINE" != x ; then
3596 eval "DEFAULT_$LINE"
3597 else
3598 no_cache=1
3599 fi
3600
3601 ac_cv_use_expat='wxUSE_EXPAT='$DEFAULT_wxUSE_EXPAT
3602
3603fi;
3604
3605 eval "$ac_cv_use_expat"
3606 if test "$no_cache" != 1; then
3607 echo $ac_cv_use_expat >> ${wx_arg_cache_file}.tmp
3608 fi
3609
3610 if test "$wxUSE_EXPAT" = yes; then
3611 echo "$as_me:$LINENO: result: yes" >&5
3612echo "${ECHO_T}yes" >&6
3613 elif test "$wxUSE_EXPAT" = no; then
3614 echo "$as_me:$LINENO: result: no" >&5
3615echo "${ECHO_T}no" >&6
3616 elif test "$wxUSE_EXPAT" = sys; then
3617 echo "$as_me:$LINENO: result: system version" >&5
3618echo "${ECHO_T}system version" >&6
3619 elif test "$wxUSE_EXPAT" = builtin; then
3620 echo "$as_me:$LINENO: result: builtin version" >&5
3621echo "${ECHO_T}builtin version" >&6
3622 else
3623 { { echo "$as_me:$LINENO: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&5
3624echo "$as_me: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&2;}
3625 { (exit 1); exit 1; }; }
3626 fi
3627
3628
3629
3630
3631 enablestring=
3632 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-shared" >&5
3633echo $ECHO_N "checking for --${enablestring:-enable}-shared... $ECHO_C" >&6
3634 no_cache=0
3635 # Check whether --enable-shared or --disable-shared was given.
3636if test "${enable_shared+set}" = set; then
3637 enableval="$enable_shared"
3638
3639 if test "$enableval" = yes; then
3640 ac_cv_use_shared='wxUSE_SHARED=yes'
3641 else
3642 ac_cv_use_shared='wxUSE_SHARED=no'
3643 fi
3644
3645else
3646
3647 LINE=`grep "wxUSE_SHARED" ${wx_arg_cache_file}`
3648 if test "x$LINE" != x ; then
3649 eval "DEFAULT_$LINE"
3650 else
3651 no_cache=1
3652 fi
3653
3654 ac_cv_use_shared='wxUSE_SHARED='$DEFAULT_wxUSE_SHARED
3655
3656fi;
3657
3658 eval "$ac_cv_use_shared"
3659 if test "$no_cache" != 1; then
3660 echo $ac_cv_use_shared >> ${wx_arg_cache_file}.tmp
3661 fi
3662
3663 if test "$wxUSE_SHARED" = yes; then
3664 echo "$as_me:$LINENO: result: yes" >&5
3665echo "${ECHO_T}yes" >&6
3666 else
3667 echo "$as_me:$LINENO: result: no" >&5
3668echo "${ECHO_T}no" >&6
3669 fi
3670
3671
3672 enablestring=
3673 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-optimise" >&5
3674echo $ECHO_N "checking for --${enablestring:-enable}-optimise... $ECHO_C" >&6
3675 no_cache=0
3676 # Check whether --enable-optimise or --disable-optimise was given.
3677if test "${enable_optimise+set}" = set; then
3678 enableval="$enable_optimise"
3679
3680 if test "$enableval" = yes; then
3681 ac_cv_use_optimise='wxUSE_OPTIMISE=yes'
3682 else
3683 ac_cv_use_optimise='wxUSE_OPTIMISE=no'
3684 fi
3685
3686else
3687
3688 LINE=`grep "wxUSE_OPTIMISE" ${wx_arg_cache_file}`
3689 if test "x$LINE" != x ; then
3690 eval "DEFAULT_$LINE"
3691 else
3692 no_cache=1
3693 fi
3694
3695 ac_cv_use_optimise='wxUSE_OPTIMISE='$DEFAULT_wxUSE_OPTIMISE
3696
3697fi;
3698
3699 eval "$ac_cv_use_optimise"
3700 if test "$no_cache" != 1; then
3701 echo $ac_cv_use_optimise >> ${wx_arg_cache_file}.tmp
3702 fi
3703
3704 if test "$wxUSE_OPTIMISE" = yes; then
3705 echo "$as_me:$LINENO: result: yes" >&5
3706echo "${ECHO_T}yes" >&6
3707 else
3708 echo "$as_me:$LINENO: result: no" >&5
3709echo "${ECHO_T}no" >&6
3710 fi
3711
3712
3713 enablestring=
3714 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug" >&5
3715echo $ECHO_N "checking for --${enablestring:-enable}-debug... $ECHO_C" >&6
3716 no_cache=0
3717 # Check whether --enable-debug or --disable-debug was given.
3718if test "${enable_debug+set}" = set; then
3719 enableval="$enable_debug"
3720
3721 if test "$enableval" = yes; then
3722 ac_cv_use_debug='wxUSE_DEBUG=yes'
3723 else
3724 ac_cv_use_debug='wxUSE_DEBUG=no'
3725 fi
3726
3727else
3728
3729 LINE=`grep "wxUSE_DEBUG" ${wx_arg_cache_file}`
3730 if test "x$LINE" != x ; then
3731 eval "DEFAULT_$LINE"
3732 else
3733 no_cache=1
3734 fi
3735
3736 ac_cv_use_debug='wxUSE_DEBUG='$DEFAULT_wxUSE_DEBUG
3737
3738fi;
3739
3740 eval "$ac_cv_use_debug"
3741 if test "$no_cache" != 1; then
3742 echo $ac_cv_use_debug >> ${wx_arg_cache_file}.tmp
3743 fi
3744
3745 if test "$wxUSE_DEBUG" = yes; then
3746 echo "$as_me:$LINENO: result: yes" >&5
3747echo "${ECHO_T}yes" >&6
3748 else
3749 echo "$as_me:$LINENO: result: no" >&5
3750echo "${ECHO_T}no" >&6
3751 fi
3752
3753
3754 enablestring=
3755 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stl" >&5
3756echo $ECHO_N "checking for --${enablestring:-enable}-stl... $ECHO_C" >&6
3757 no_cache=0
3758 # Check whether --enable-stl or --disable-stl was given.
3759if test "${enable_stl+set}" = set; then
3760 enableval="$enable_stl"
3761
3762 if test "$enableval" = yes; then
3763 ac_cv_use_stl='wxUSE_STL=yes'
3764 else
3765 ac_cv_use_stl='wxUSE_STL=no'
3766 fi
3767
3768else
3769
3770 LINE=`grep "wxUSE_STL" ${wx_arg_cache_file}`
3771 if test "x$LINE" != x ; then
3772 eval "DEFAULT_$LINE"
3773 else
3774 no_cache=1
3775 fi
3776
3777 ac_cv_use_stl='wxUSE_STL='$DEFAULT_wxUSE_STL
3778
3779fi;
3780
3781 eval "$ac_cv_use_stl"
3782 if test "$no_cache" != 1; then
3783 echo $ac_cv_use_stl >> ${wx_arg_cache_file}.tmp
3784 fi
3785
3786 if test "$wxUSE_STL" = yes; then
3787 echo "$as_me:$LINENO: result: yes" >&5
3788echo "${ECHO_T}yes" >&6
3789 else
3790 echo "$as_me:$LINENO: result: no" >&5
3791echo "${ECHO_T}no" >&6
3792 fi
3793
3794if test "$USE_OS2" = "1"; then
69120ee4 3795 DEFAULT_wxUSE_OMF=no
a848cd7e
SC
3796
3797 enablestring=
3798 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-omf" >&5
3799echo $ECHO_N "checking for --${enablestring:-enable}-omf... $ECHO_C" >&6
3800 no_cache=0
3801 # Check whether --enable-omf or --disable-omf was given.
3802if test "${enable_omf+set}" = set; then
3803 enableval="$enable_omf"
3804
3805 if test "$enableval" = yes; then
3806 ac_cv_use_omf='wxUSE_OMF=yes'
3807 else
3808 ac_cv_use_omf='wxUSE_OMF=no'
3809 fi
3810
3811else
3812
3813 LINE=`grep "wxUSE_OMF" ${wx_arg_cache_file}`
3814 if test "x$LINE" != x ; then
3815 eval "DEFAULT_$LINE"
3816 else
3817 no_cache=1
3818 fi
3819
3820 ac_cv_use_omf='wxUSE_OMF='$DEFAULT_wxUSE_OMF
3821
3822fi;
3823
3824 eval "$ac_cv_use_omf"
3825 if test "$no_cache" != 1; then
3826 echo $ac_cv_use_omf >> ${wx_arg_cache_file}.tmp
3827 fi
3828
3829 if test "$wxUSE_OMF" = yes; then
3830 echo "$as_me:$LINENO: result: yes" >&5
3831echo "${ECHO_T}yes" >&6
3832 else
3833 echo "$as_me:$LINENO: result: no" >&5
3834echo "${ECHO_T}no" >&6
3835 fi
3836
3837fi
3838
3839if test "$wxUSE_DEBUG" = "yes"; then
3840 DEFAULT_wxUSE_DEBUG_FLAG=yes
3841 DEFAULT_wxUSE_DEBUG_INFO=yes
3842 BUILD=debug
3843elif test "$wxUSE_DEBUG" = "no"; then
3844 DEFAULT_wxUSE_DEBUG_FLAG=no
3845 DEFAULT_wxUSE_DEBUG_INFO=no
3846 BUILD=release
3847fi
3848
3849
3850 enablestring=
3851 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_flag" >&5
3852echo $ECHO_N "checking for --${enablestring:-enable}-debug_flag... $ECHO_C" >&6
3853 no_cache=0
3854 # Check whether --enable-debug_flag or --disable-debug_flag was given.
3855if test "${enable_debug_flag+set}" = set; then
3856 enableval="$enable_debug_flag"
3857
3858 if test "$enableval" = yes; then
3859 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=yes'
3860 else
3861 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=no'
3862 fi
3863
3864else
3865
3866 LINE=`grep "wxUSE_DEBUG_FLAG" ${wx_arg_cache_file}`
3867 if test "x$LINE" != x ; then
3868 eval "DEFAULT_$LINE"
3869 else
3870 no_cache=1
3871 fi
3872
3873 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG='$DEFAULT_wxUSE_DEBUG_FLAG
3874
3875fi;
3876
3877 eval "$ac_cv_use_debug_flag"
3878 if test "$no_cache" != 1; then
3879 echo $ac_cv_use_debug_flag >> ${wx_arg_cache_file}.tmp
3880 fi
3881
3882 if test "$wxUSE_DEBUG_FLAG" = yes; then
3883 echo "$as_me:$LINENO: result: yes" >&5
3884echo "${ECHO_T}yes" >&6
3885 else
3886 echo "$as_me:$LINENO: result: no" >&5
3887echo "${ECHO_T}no" >&6
3888 fi
3889
3890
3891 enablestring=
3892 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_info" >&5
3893echo $ECHO_N "checking for --${enablestring:-enable}-debug_info... $ECHO_C" >&6
3894 no_cache=0
3895 # Check whether --enable-debug_info or --disable-debug_info was given.
3896if test "${enable_debug_info+set}" = set; then
3897 enableval="$enable_debug_info"
3898
3899 if test "$enableval" = yes; then
3900 ac_cv_use_debug_info='wxUSE_DEBUG_INFO=yes'
3901 else
3902 ac_cv_use_debug_info='wxUSE_DEBUG_INFO=no'
3903 fi
3904
3905else
3906
3907 LINE=`grep "wxUSE_DEBUG_INFO" ${wx_arg_cache_file}`
3908 if test "x$LINE" != x ; then
3909 eval "DEFAULT_$LINE"
3910 else
3911 no_cache=1
3912 fi
3913
3914 ac_cv_use_debug_info='wxUSE_DEBUG_INFO='$DEFAULT_wxUSE_DEBUG_INFO
3915
3916fi;
3917
3918 eval "$ac_cv_use_debug_info"
3919 if test "$no_cache" != 1; then
3920 echo $ac_cv_use_debug_info >> ${wx_arg_cache_file}.tmp
3921 fi
3922
3923 if test "$wxUSE_DEBUG_INFO" = yes; then
3924 echo "$as_me:$LINENO: result: yes" >&5
3925echo "${ECHO_T}yes" >&6
3926 else
3927 echo "$as_me:$LINENO: result: no" >&5
3928echo "${ECHO_T}no" >&6
3929 fi
3930
3931
3932 enablestring=
3933 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_gdb" >&5
3934echo $ECHO_N "checking for --${enablestring:-enable}-debug_gdb... $ECHO_C" >&6
3935 no_cache=0
3936 # Check whether --enable-debug_gdb or --disable-debug_gdb was given.
3937if test "${enable_debug_gdb+set}" = set; then
3938 enableval="$enable_debug_gdb"
3939
3940 if test "$enableval" = yes; then
3941 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=yes'
3942 else
3943 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=no'
3944 fi
3945
3946else
3947
3948 LINE=`grep "wxUSE_DEBUG_GDB" ${wx_arg_cache_file}`
3949 if test "x$LINE" != x ; then
3950 eval "DEFAULT_$LINE"
3951 else
3952 no_cache=1
3953 fi
3954
3955 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB='$DEFAULT_wxUSE_DEBUG_GDB
3956
3957fi;
3958
3959 eval "$ac_cv_use_debug_gdb"
3960 if test "$no_cache" != 1; then
3961 echo $ac_cv_use_debug_gdb >> ${wx_arg_cache_file}.tmp
3962 fi
3963
3964 if test "$wxUSE_DEBUG_GDB" = yes; then
3965 echo "$as_me:$LINENO: result: yes" >&5
3966echo "${ECHO_T}yes" >&6
3967 else
3968 echo "$as_me:$LINENO: result: no" >&5
3969echo "${ECHO_T}no" >&6
3970 fi
3971
3972
3973 enablestring=
3974 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_cntxt" >&5
3975echo $ECHO_N "checking for --${enablestring:-enable}-debug_cntxt... $ECHO_C" >&6
3976 no_cache=0
3977 # Check whether --enable-debug_cntxt or --disable-debug_cntxt was given.
3978if test "${enable_debug_cntxt+set}" = set; then
3979 enableval="$enable_debug_cntxt"
3980
3981 if test "$enableval" = yes; then
3982 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=yes'
3983 else
3984 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=no'
3985 fi
3986
3987else
3988
3989 LINE=`grep "wxUSE_DEBUG_CONTEXT" ${wx_arg_cache_file}`
3990 if test "x$LINE" != x ; then
3991 eval "DEFAULT_$LINE"
3992 else
3993 no_cache=1
3994 fi
3995
3996 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT='$DEFAULT_wxUSE_DEBUG_CONTEXT
3997
3998fi;
3999
4000 eval "$ac_cv_use_debug_cntxt"
4001 if test "$no_cache" != 1; then
4002 echo $ac_cv_use_debug_cntxt >> ${wx_arg_cache_file}.tmp
4003 fi
4004
4005 if test "$wxUSE_DEBUG_CONTEXT" = yes; then
4006 echo "$as_me:$LINENO: result: yes" >&5
4007echo "${ECHO_T}yes" >&6
4008 else
4009 echo "$as_me:$LINENO: result: no" >&5
4010echo "${ECHO_T}no" >&6
4011 fi
4012
4013
4014 enablestring=
4015 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mem_tracing" >&5
4016echo $ECHO_N "checking for --${enablestring:-enable}-mem_tracing... $ECHO_C" >&6
4017 no_cache=0
4018 # Check whether --enable-mem_tracing or --disable-mem_tracing was given.
4019if test "${enable_mem_tracing+set}" = set; then
4020 enableval="$enable_mem_tracing"
4021
4022 if test "$enableval" = yes; then
4023 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=yes'
4024 else
4025 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=no'
4026 fi
4027
4028else
4029
4030 LINE=`grep "wxUSE_MEM_TRACING" ${wx_arg_cache_file}`
4031 if test "x$LINE" != x ; then
4032 eval "DEFAULT_$LINE"
4033 else
4034 no_cache=1
4035 fi
4036
4037 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING='$DEFAULT_wxUSE_MEM_TRACING
4038
4039fi;
4040
4041 eval "$ac_cv_use_mem_tracing"
4042 if test "$no_cache" != 1; then
4043 echo $ac_cv_use_mem_tracing >> ${wx_arg_cache_file}.tmp
4044 fi
4045
4046 if test "$wxUSE_MEM_TRACING" = yes; then
4047 echo "$as_me:$LINENO: result: yes" >&5
4048echo "${ECHO_T}yes" >&6
4049 else
4050 echo "$as_me:$LINENO: result: no" >&5
4051echo "${ECHO_T}no" >&6
4052 fi
4053
4054
4055 enablestring=
4056 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-profile" >&5
4057echo $ECHO_N "checking for --${enablestring:-enable}-profile... $ECHO_C" >&6
4058 no_cache=0
4059 # Check whether --enable-profile or --disable-profile was given.
4060if test "${enable_profile+set}" = set; then
4061 enableval="$enable_profile"
4062
4063 if test "$enableval" = yes; then
4064 ac_cv_use_profile='wxUSE_PROFILE=yes'
4065 else
4066 ac_cv_use_profile='wxUSE_PROFILE=no'
4067 fi
4068
4069else
4070
4071 LINE=`grep "wxUSE_PROFILE" ${wx_arg_cache_file}`
4072 if test "x$LINE" != x ; then
4073 eval "DEFAULT_$LINE"
4074 else
4075 no_cache=1
4076 fi
4077
4078 ac_cv_use_profile='wxUSE_PROFILE='$DEFAULT_wxUSE_PROFILE
4079
4080fi;
4081
4082 eval "$ac_cv_use_profile"
4083 if test "$no_cache" != 1; then
4084 echo $ac_cv_use_profile >> ${wx_arg_cache_file}.tmp
4085 fi
4086
4087 if test "$wxUSE_PROFILE" = yes; then
4088 echo "$as_me:$LINENO: result: yes" >&5
4089echo "${ECHO_T}yes" >&6
4090 else
4091 echo "$as_me:$LINENO: result: no" >&5
4092echo "${ECHO_T}no" >&6
4093 fi
4094
4095
4096 enablestring=
4097 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_rtti" >&5
4098echo $ECHO_N "checking for --${enablestring:-enable}-no_rtti... $ECHO_C" >&6
4099 no_cache=0
4100 # Check whether --enable-no_rtti or --disable-no_rtti was given.
4101if test "${enable_no_rtti+set}" = set; then
4102 enableval="$enable_no_rtti"
4103
4104 if test "$enableval" = yes; then
4105 ac_cv_use_no_rtti='wxUSE_NO_RTTI=yes'
4106 else
4107 ac_cv_use_no_rtti='wxUSE_NO_RTTI=no'
4108 fi
4109
4110else
4111
4112 LINE=`grep "wxUSE_NO_RTTI" ${wx_arg_cache_file}`
4113 if test "x$LINE" != x ; then
4114 eval "DEFAULT_$LINE"
4115 else
4116 no_cache=1
4117 fi
4118
4119 ac_cv_use_no_rtti='wxUSE_NO_RTTI='$DEFAULT_wxUSE_NO_RTTI
4120
4121fi;
4122
4123 eval "$ac_cv_use_no_rtti"
4124 if test "$no_cache" != 1; then
4125 echo $ac_cv_use_no_rtti >> ${wx_arg_cache_file}.tmp
4126 fi
4127
4128 if test "$wxUSE_NO_RTTI" = yes; then
4129 echo "$as_me:$LINENO: result: yes" >&5
4130echo "${ECHO_T}yes" >&6
4131 else
4132 echo "$as_me:$LINENO: result: no" >&5
4133echo "${ECHO_T}no" >&6
4134 fi
4135
4136
4137 enablestring=
4138 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_exceptions" >&5
4139echo $ECHO_N "checking for --${enablestring:-enable}-no_exceptions... $ECHO_C" >&6
4140 no_cache=0
4141 # Check whether --enable-no_exceptions or --disable-no_exceptions was given.
4142if test "${enable_no_exceptions+set}" = set; then
4143 enableval="$enable_no_exceptions"
4144
4145 if test "$enableval" = yes; then
4146 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=yes'
4147 else
4148 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=no'
4149 fi
4150
4151else
4152
4153 LINE=`grep "wxUSE_NO_EXCEPTIONS" ${wx_arg_cache_file}`
4154 if test "x$LINE" != x ; then
4155 eval "DEFAULT_$LINE"
4156 else
4157 no_cache=1
4158 fi
4159
4160 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS='$DEFAULT_wxUSE_NO_EXCEPTIONS
4161
4162fi;
4163
4164 eval "$ac_cv_use_no_exceptions"
4165 if test "$no_cache" != 1; then
4166 echo $ac_cv_use_no_exceptions >> ${wx_arg_cache_file}.tmp
4167 fi
4168
4169 if test "$wxUSE_NO_EXCEPTIONS" = yes; then
4170 echo "$as_me:$LINENO: result: yes" >&5
4171echo "${ECHO_T}yes" >&6
4172 else
4173 echo "$as_me:$LINENO: result: no" >&5
4174echo "${ECHO_T}no" >&6
4175 fi
4176
4177
4178 enablestring=
4179 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-permissive" >&5
4180echo $ECHO_N "checking for --${enablestring:-enable}-permissive... $ECHO_C" >&6
4181 no_cache=0
4182 # Check whether --enable-permissive or --disable-permissive was given.
4183if test "${enable_permissive+set}" = set; then
4184 enableval="$enable_permissive"
4185
4186 if test "$enableval" = yes; then
4187 ac_cv_use_permissive='wxUSE_PERMISSIVE=yes'
4188 else
4189 ac_cv_use_permissive='wxUSE_PERMISSIVE=no'
4190 fi
4191
4192else
4193
4194 LINE=`grep "wxUSE_PERMISSIVE" ${wx_arg_cache_file}`
4195 if test "x$LINE" != x ; then
4196 eval "DEFAULT_$LINE"
4197 else
4198 no_cache=1
4199 fi
4200
4201 ac_cv_use_permissive='wxUSE_PERMISSIVE='$DEFAULT_wxUSE_PERMISSIVE
4202
4203fi;
4204
4205 eval "$ac_cv_use_permissive"
4206 if test "$no_cache" != 1; then
4207 echo $ac_cv_use_permissive >> ${wx_arg_cache_file}.tmp
4208 fi
4209
4210 if test "$wxUSE_PERMISSIVE" = yes; then
4211 echo "$as_me:$LINENO: result: yes" >&5
4212echo "${ECHO_T}yes" >&6
4213 else
4214 echo "$as_me:$LINENO: result: no" >&5
4215echo "${ECHO_T}no" >&6
4216 fi
4217
4218
4219 enablestring=
4220 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_deps" >&5
4221echo $ECHO_N "checking for --${enablestring:-enable}-no_deps... $ECHO_C" >&6
4222 no_cache=0
4223 # Check whether --enable-no_deps or --disable-no_deps was given.
4224if test "${enable_no_deps+set}" = set; then
4225 enableval="$enable_no_deps"
4226
4227 if test "$enableval" = yes; then
4228 ac_cv_use_no_deps='wxUSE_NO_DEPS=yes'
4229 else
4230 ac_cv_use_no_deps='wxUSE_NO_DEPS=no'
4231 fi
4232
4233else
4234
4235 LINE=`grep "wxUSE_NO_DEPS" ${wx_arg_cache_file}`
4236 if test "x$LINE" != x ; then
4237 eval "DEFAULT_$LINE"
4238 else
4239 no_cache=1
4240 fi
4241
4242 ac_cv_use_no_deps='wxUSE_NO_DEPS='$DEFAULT_wxUSE_NO_DEPS
4243
4244fi;
4245
4246 eval "$ac_cv_use_no_deps"
4247 if test "$no_cache" != 1; then
4248 echo $ac_cv_use_no_deps >> ${wx_arg_cache_file}.tmp
4249 fi
4250
4251 if test "$wxUSE_NO_DEPS" = yes; then
4252 echo "$as_me:$LINENO: result: yes" >&5
4253echo "${ECHO_T}yes" >&6
4254 else
4255 echo "$as_me:$LINENO: result: no" >&5
4256echo "${ECHO_T}no" >&6
4257 fi
4258
4259
7afc46ab
KO
4260 enablestring=
4261 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-universal_binary" >&5
4262echo $ECHO_N "checking for --${enablestring:-enable}-universal_binary... $ECHO_C" >&6
4263 no_cache=0
4264 # Check whether --enable-universal_binary or --disable-universal_binary was given.
4265if test "${enable_universal_binary+set}" = set; then
4266 enableval="$enable_universal_binary"
4267
4268 if test "$enableval" = yes; then
4269 ac_cv_use_universal_binary='wxUSE_UNIVERSAL_BINARY=yes'
4270 else
4271 ac_cv_use_universal_binary='wxUSE_UNIVERSAL_BINARY=no'
4272 fi
4273
4274else
4275
4276 LINE=`grep "wxUSE_UNIVERSAL_BINARY" ${wx_arg_cache_file}`
4277 if test "x$LINE" != x ; then
4278 eval "DEFAULT_$LINE"
4279 else
4280 no_cache=1
4281 fi
4282
4283 ac_cv_use_universal_binary='wxUSE_UNIVERSAL_BINARY='$DEFAULT_wxUSE_UNIVERSAL_BINARY
4284
4285fi;
4286
4287 eval "$ac_cv_use_universal_binary"
4288 if test "$no_cache" != 1; then
4289 echo $ac_cv_use_universal_binary >> ${wx_arg_cache_file}.tmp
4290 fi
4291
4292 if test "$wxUSE_UNIVERSAL_BINARY" = yes; then
4293 echo "$as_me:$LINENO: result: yes" >&5
4294echo "${ECHO_T}yes" >&6
4295 else
4296 echo "$as_me:$LINENO: result: no" >&5
4297echo "${ECHO_T}no" >&6
4298 fi
4299
4300
a848cd7e 4301
dee1a63f
MB
4302 enablestring=enable
4303 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-compat24" >&5
4304echo $ECHO_N "checking for --${enablestring:-enable}-compat24... $ECHO_C" >&6
a848cd7e 4305 no_cache=0
dee1a63f
MB
4306 # Check whether --enable-compat24 or --disable-compat24 was given.
4307if test "${enable_compat24+set}" = set; then
4308 enableval="$enable_compat24"
a848cd7e
SC
4309
4310 if test "$enableval" = yes; then
dee1a63f 4311 ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4=yes'
a848cd7e 4312 else
dee1a63f 4313 ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4=no'
a848cd7e
SC
4314 fi
4315
4316else
4317
dee1a63f 4318 LINE=`grep "WXWIN_COMPATIBILITY_2_4" ${wx_arg_cache_file}`
a848cd7e
SC
4319 if test "x$LINE" != x ; then
4320 eval "DEFAULT_$LINE"
4321 else
4322 no_cache=1
4323 fi
4324
dee1a63f 4325 ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4='$DEFAULT_WXWIN_COMPATIBILITY_2_4
a848cd7e
SC
4326
4327fi;
4328
dee1a63f 4329 eval "$ac_cv_use_compat24"
a848cd7e 4330 if test "$no_cache" != 1; then
dee1a63f 4331 echo $ac_cv_use_compat24 >> ${wx_arg_cache_file}.tmp
a848cd7e
SC
4332 fi
4333
dee1a63f 4334 if test "$WXWIN_COMPATIBILITY_2_4" = yes; then
a848cd7e
SC
4335 echo "$as_me:$LINENO: result: yes" >&5
4336echo "${ECHO_T}yes" >&6
4337 else
4338 echo "$as_me:$LINENO: result: no" >&5
4339echo "${ECHO_T}no" >&6
4340 fi
4341
4342
4343 enablestring=disable
dee1a63f
MB
4344 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-compat26" >&5
4345echo $ECHO_N "checking for --${enablestring:-enable}-compat26... $ECHO_C" >&6
a848cd7e 4346 no_cache=0
dee1a63f
MB
4347 # Check whether --enable-compat26 or --disable-compat26 was given.
4348if test "${enable_compat26+set}" = set; then
4349 enableval="$enable_compat26"
a848cd7e
SC
4350
4351 if test "$enableval" = yes; then
dee1a63f 4352 ac_cv_use_compat26='WXWIN_COMPATIBILITY_2_6=yes'
a848cd7e 4353 else
dee1a63f 4354 ac_cv_use_compat26='WXWIN_COMPATIBILITY_2_6=no'
a848cd7e
SC
4355 fi
4356
4357else
4358
dee1a63f 4359 LINE=`grep "WXWIN_COMPATIBILITY_2_6" ${wx_arg_cache_file}`
a848cd7e
SC
4360 if test "x$LINE" != x ; then
4361 eval "DEFAULT_$LINE"
4362 else
4363 no_cache=1
4364 fi
4365
dee1a63f 4366 ac_cv_use_compat26='WXWIN_COMPATIBILITY_2_6='$DEFAULT_WXWIN_COMPATIBILITY_2_6
a848cd7e
SC
4367
4368fi;
4369
dee1a63f 4370 eval "$ac_cv_use_compat26"
a848cd7e 4371 if test "$no_cache" != 1; then
dee1a63f 4372 echo $ac_cv_use_compat26 >> ${wx_arg_cache_file}.tmp
a848cd7e
SC
4373 fi
4374
dee1a63f 4375 if test "$WXWIN_COMPATIBILITY_2_6" = yes; then
a848cd7e
SC
4376 echo "$as_me:$LINENO: result: yes" >&5
4377echo "${ECHO_T}yes" >&6
4378 else
4379 echo "$as_me:$LINENO: result: no" >&5
4380echo "${ECHO_T}no" >&6
4381 fi
4382
4383
ffa0583f
RL
4384
4385 enablestring=
4386 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-rpath" >&5
4387echo $ECHO_N "checking for --${enablestring:-enable}-rpath... $ECHO_C" >&6
4388 no_cache=0
4389 # Check whether --enable-rpath or --disable-rpath was given.
a848cd7e
SC
4390if test "${enable_rpath+set}" = set; then
4391 enableval="$enable_rpath"
ffa0583f
RL
4392
4393 if test "$enableval" = yes; then
4394 ac_cv_use_rpath='wxUSE_RPATH=yes'
4395 else
4396 ac_cv_use_rpath='wxUSE_RPATH=no'
4397 fi
4398
4399else
4400
4401 LINE=`grep "wxUSE_RPATH" ${wx_arg_cache_file}`
4402 if test "x$LINE" != x ; then
4403 eval "DEFAULT_$LINE"
4404 else
4405 no_cache=1
4406 fi
4407
4408 ac_cv_use_rpath='wxUSE_RPATH='$DEFAULT_wxUSE_RPATH
4409
a848cd7e
SC
4410fi;
4411
ffa0583f
RL
4412 eval "$ac_cv_use_rpath"
4413 if test "$no_cache" != 1; then
4414 echo $ac_cv_use_rpath >> ${wx_arg_cache_file}.tmp
4415 fi
4416
4417 if test "$wxUSE_RPATH" = yes; then
4418 echo "$as_me:$LINENO: result: yes" >&5
4419echo "${ECHO_T}yes" >&6
4420 else
4421 echo "$as_me:$LINENO: result: no" >&5
4422echo "${ECHO_T}no" >&6
4423 fi
4424
a848cd7e
SC
4425
4426
4427
4428
4429 enablestring=
4430 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-intl" >&5
4431echo $ECHO_N "checking for --${enablestring:-enable}-intl... $ECHO_C" >&6
4432 no_cache=0
4433 # Check whether --enable-intl or --disable-intl was given.
4434if test "${enable_intl+set}" = set; then
4435 enableval="$enable_intl"
4436
4437 if test "$enableval" = yes; then
4438 ac_cv_use_intl='wxUSE_INTL=yes'
4439 else
4440 ac_cv_use_intl='wxUSE_INTL=no'
4441 fi
4442
4443else
4444
4445 LINE=`grep "wxUSE_INTL" ${wx_arg_cache_file}`
4446 if test "x$LINE" != x ; then
4447 eval "DEFAULT_$LINE"
4448 else
4449 no_cache=1
4450 fi
4451
4452 ac_cv_use_intl='wxUSE_INTL='$DEFAULT_wxUSE_INTL
4453
4454fi;
4455
4456 eval "$ac_cv_use_intl"
4457 if test "$no_cache" != 1; then
4458 echo $ac_cv_use_intl >> ${wx_arg_cache_file}.tmp
4459 fi
4460
4461 if test "$wxUSE_INTL" = yes; then
4462 echo "$as_me:$LINENO: result: yes" >&5
4463echo "${ECHO_T}yes" >&6
4464 else
4465 echo "$as_me:$LINENO: result: no" >&5
4466echo "${ECHO_T}no" >&6
4467 fi
4468
4469
4470 enablestring=
4471 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-config" >&5
4472echo $ECHO_N "checking for --${enablestring:-enable}-config... $ECHO_C" >&6
4473 no_cache=0
4474 # Check whether --enable-config or --disable-config was given.
4475if test "${enable_config+set}" = set; then
4476 enableval="$enable_config"
4477
4478 if test "$enableval" = yes; then
4479 ac_cv_use_config='wxUSE_CONFIG=yes'
4480 else
4481 ac_cv_use_config='wxUSE_CONFIG=no'
4482 fi
4483
4484else
4485
4486 LINE=`grep "wxUSE_CONFIG" ${wx_arg_cache_file}`
4487 if test "x$LINE" != x ; then
4488 eval "DEFAULT_$LINE"
4489 else
4490 no_cache=1
4491 fi
4492
4493 ac_cv_use_config='wxUSE_CONFIG='$DEFAULT_wxUSE_CONFIG
4494
4495fi;
4496
4497 eval "$ac_cv_use_config"
4498 if test "$no_cache" != 1; then
4499 echo $ac_cv_use_config >> ${wx_arg_cache_file}.tmp
4500 fi
4501
4502 if test "$wxUSE_CONFIG" = yes; then
4503 echo "$as_me:$LINENO: result: yes" >&5
4504echo "${ECHO_T}yes" >&6
4505 else
4506 echo "$as_me:$LINENO: result: no" >&5
4507echo "${ECHO_T}no" >&6
4508 fi
4509
4510
4511
4512 enablestring=
4513 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocols" >&5
4514echo $ECHO_N "checking for --${enablestring:-enable}-protocols... $ECHO_C" >&6
4515 no_cache=0
4516 # Check whether --enable-protocols or --disable-protocols was given.
4517if test "${enable_protocols+set}" = set; then
4518 enableval="$enable_protocols"
4519
4520 if test "$enableval" = yes; then
4521 ac_cv_use_protocols='wxUSE_PROTOCOL=yes'
4522 else
4523 ac_cv_use_protocols='wxUSE_PROTOCOL=no'
4524 fi
4525
4526else
4527
4528 LINE=`grep "wxUSE_PROTOCOL" ${wx_arg_cache_file}`
4529 if test "x$LINE" != x ; then
4530 eval "DEFAULT_$LINE"
4531 else
4532 no_cache=1
4533 fi
4534
4535 ac_cv_use_protocols='wxUSE_PROTOCOL='$DEFAULT_wxUSE_PROTOCOL
4536
4537fi;
4538
4539 eval "$ac_cv_use_protocols"
4540 if test "$no_cache" != 1; then
4541 echo $ac_cv_use_protocols >> ${wx_arg_cache_file}.tmp
4542 fi
4543
4544 if test "$wxUSE_PROTOCOL" = yes; then
4545 echo "$as_me:$LINENO: result: yes" >&5
4546echo "${ECHO_T}yes" >&6
4547 else
4548 echo "$as_me:$LINENO: result: no" >&5
4549echo "${ECHO_T}no" >&6
4550 fi
4551
4552
4553 enablestring=
4554 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ftp" >&5
4555echo $ECHO_N "checking for --${enablestring:-enable}-ftp... $ECHO_C" >&6
4556 no_cache=0
4557 # Check whether --enable-ftp or --disable-ftp was given.
4558if test "${enable_ftp+set}" = set; then
4559 enableval="$enable_ftp"
4560
4561 if test "$enableval" = yes; then
4562 ac_cv_use_ftp='wxUSE_PROTOCOL_FTP=yes'
4563 else
4564 ac_cv_use_ftp='wxUSE_PROTOCOL_FTP=no'
4565 fi
4566
4567else
4568
4569 LINE=`grep "wxUSE_PROTOCOL_FTP" ${wx_arg_cache_file}`
4570 if test "x$LINE" != x ; then
4571 eval "DEFAULT_$LINE"
4572 else
4573 no_cache=1
4574 fi
4575
4576 ac_cv_use_ftp='wxUSE_PROTOCOL_FTP='$DEFAULT_wxUSE_PROTOCOL_FTP
4577
4578fi;
4579
4580 eval "$ac_cv_use_ftp"
4581 if test "$no_cache" != 1; then
4582 echo $ac_cv_use_ftp >> ${wx_arg_cache_file}.tmp
4583 fi
4584
4585 if test "$wxUSE_PROTOCOL_FTP" = yes; then
4586 echo "$as_me:$LINENO: result: yes" >&5
4587echo "${ECHO_T}yes" >&6
4588 else
4589 echo "$as_me:$LINENO: result: no" >&5
4590echo "${ECHO_T}no" >&6
4591 fi
4592
4593
4594 enablestring=
4595 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-http" >&5
4596echo $ECHO_N "checking for --${enablestring:-enable}-http... $ECHO_C" >&6
4597 no_cache=0
4598 # Check whether --enable-http or --disable-http was given.
4599if test "${enable_http+set}" = set; then
4600 enableval="$enable_http"
4601
4602 if test "$enableval" = yes; then
4603 ac_cv_use_http='wxUSE_PROTOCOL_HTTP=yes'
4604 else
4605 ac_cv_use_http='wxUSE_PROTOCOL_HTTP=no'
4606 fi
4607
4608else
4609
4610 LINE=`grep "wxUSE_PROTOCOL_HTTP" ${wx_arg_cache_file}`
4611 if test "x$LINE" != x ; then
4612 eval "DEFAULT_$LINE"
4613 else
4614 no_cache=1
4615 fi
4616
4617 ac_cv_use_http='wxUSE_PROTOCOL_HTTP='$DEFAULT_wxUSE_PROTOCOL_HTTP
4618
4619fi;
4620
4621 eval "$ac_cv_use_http"
4622 if test "$no_cache" != 1; then
4623 echo $ac_cv_use_http >> ${wx_arg_cache_file}.tmp
4624 fi
4625
4626 if test "$wxUSE_PROTOCOL_HTTP" = yes; then
4627 echo "$as_me:$LINENO: result: yes" >&5
4628echo "${ECHO_T}yes" >&6
4629 else
4630 echo "$as_me:$LINENO: result: no" >&5
4631echo "${ECHO_T}no" >&6
4632 fi
4633
4634
4635 enablestring=
4636 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fileproto" >&5
4637echo $ECHO_N "checking for --${enablestring:-enable}-fileproto... $ECHO_C" >&6
4638 no_cache=0
4639 # Check whether --enable-fileproto or --disable-fileproto was given.
4640if test "${enable_fileproto+set}" = set; then
4641 enableval="$enable_fileproto"
4642
4643 if test "$enableval" = yes; then
4644 ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE=yes'
4645 else
4646 ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE=no'
4647 fi
4648
4649else
4650
4651 LINE=`grep "wxUSE_PROTOCOL_FILE" ${wx_arg_cache_file}`
4652 if test "x$LINE" != x ; then
4653 eval "DEFAULT_$LINE"
4654 else
4655 no_cache=1
4656 fi
4657
4658 ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE='$DEFAULT_wxUSE_PROTOCOL_FILE
4659
4660fi;
4661
4662 eval "$ac_cv_use_fileproto"
4663 if test "$no_cache" != 1; then
4664 echo $ac_cv_use_fileproto >> ${wx_arg_cache_file}.tmp
4665 fi
4666
4667 if test "$wxUSE_PROTOCOL_FILE" = yes; then
4668 echo "$as_me:$LINENO: result: yes" >&5
4669echo "${ECHO_T}yes" >&6
4670 else
4671 echo "$as_me:$LINENO: result: no" >&5
4672echo "${ECHO_T}no" >&6
4673 fi
4674
4675
4676 enablestring=
4677 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sockets" >&5
4678echo $ECHO_N "checking for --${enablestring:-enable}-sockets... $ECHO_C" >&6
4679 no_cache=0
4680 # Check whether --enable-sockets or --disable-sockets was given.
4681if test "${enable_sockets+set}" = set; then
4682 enableval="$enable_sockets"
4683
4684 if test "$enableval" = yes; then
4685 ac_cv_use_sockets='wxUSE_SOCKETS=yes'
4686 else
4687 ac_cv_use_sockets='wxUSE_SOCKETS=no'
4688 fi
4689
4690else
4691
4692 LINE=`grep "wxUSE_SOCKETS" ${wx_arg_cache_file}`
4693 if test "x$LINE" != x ; then
4694 eval "DEFAULT_$LINE"
4695 else
4696 no_cache=1
4697 fi
4698
4699 ac_cv_use_sockets='wxUSE_SOCKETS='$DEFAULT_wxUSE_SOCKETS
4700
4701fi;
4702
4703 eval "$ac_cv_use_sockets"
4704 if test "$no_cache" != 1; then
4705 echo $ac_cv_use_sockets >> ${wx_arg_cache_file}.tmp
4706 fi
4707
4708 if test "$wxUSE_SOCKETS" = yes; then
4709 echo "$as_me:$LINENO: result: yes" >&5
4710echo "${ECHO_T}yes" >&6
4711 else
4712 echo "$as_me:$LINENO: result: no" >&5
4713echo "${ECHO_T}no" >&6
4714 fi
4715
4716
4717 enablestring=
4718 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ole" >&5
4719echo $ECHO_N "checking for --${enablestring:-enable}-ole... $ECHO_C" >&6
4720 no_cache=0
4721 # Check whether --enable-ole or --disable-ole was given.
4722if test "${enable_ole+set}" = set; then
4723 enableval="$enable_ole"
4724
4725 if test "$enableval" = yes; then
4726 ac_cv_use_ole='wxUSE_OLE=yes'
4727 else
4728 ac_cv_use_ole='wxUSE_OLE=no'
4729 fi
4730
4731else
4732
4733 LINE=`grep "wxUSE_OLE" ${wx_arg_cache_file}`
4734 if test "x$LINE" != x ; then
4735 eval "DEFAULT_$LINE"
4736 else
4737 no_cache=1
4738 fi
4739
4740 ac_cv_use_ole='wxUSE_OLE='$DEFAULT_wxUSE_OLE
4741
4742fi;
4743
4744 eval "$ac_cv_use_ole"
4745 if test "$no_cache" != 1; then
4746 echo $ac_cv_use_ole >> ${wx_arg_cache_file}.tmp
4747 fi
4748
4749 if test "$wxUSE_OLE" = yes; then
4750 echo "$as_me:$LINENO: result: yes" >&5
4751echo "${ECHO_T}yes" >&6
4752 else
4753 echo "$as_me:$LINENO: result: no" >&5
4754echo "${ECHO_T}no" >&6
4755 fi
4756
4757
4758 enablestring=
4759 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dataobj" >&5
4760echo $ECHO_N "checking for --${enablestring:-enable}-dataobj... $ECHO_C" >&6
4761 no_cache=0
4762 # Check whether --enable-dataobj or --disable-dataobj was given.
4763if test "${enable_dataobj+set}" = set; then
4764 enableval="$enable_dataobj"
4765
4766 if test "$enableval" = yes; then
4767 ac_cv_use_dataobj='wxUSE_DATAOBJ=yes'
4768 else
4769 ac_cv_use_dataobj='wxUSE_DATAOBJ=no'
4770 fi
4771
4772else
4773
4774 LINE=`grep "wxUSE_DATAOBJ" ${wx_arg_cache_file}`
4775 if test "x$LINE" != x ; then
4776 eval "DEFAULT_$LINE"
4777 else
4778 no_cache=1
4779 fi
4780
4781 ac_cv_use_dataobj='wxUSE_DATAOBJ='$DEFAULT_wxUSE_DATAOBJ
4782
4783fi;
4784
4785 eval "$ac_cv_use_dataobj"
4786 if test "$no_cache" != 1; then
4787 echo $ac_cv_use_dataobj >> ${wx_arg_cache_file}.tmp
4788 fi
4789
4790 if test "$wxUSE_DATAOBJ" = yes; then
4791 echo "$as_me:$LINENO: result: yes" >&5
4792echo "${ECHO_T}yes" >&6
4793 else
4794 echo "$as_me:$LINENO: result: no" >&5
4795echo "${ECHO_T}no" >&6
4796 fi
4797
4798
4799
4800 enablestring=
4801 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ipc" >&5
4802echo $ECHO_N "checking for --${enablestring:-enable}-ipc... $ECHO_C" >&6
4803 no_cache=0
4804 # Check whether --enable-ipc or --disable-ipc was given.
4805if test "${enable_ipc+set}" = set; then
4806 enableval="$enable_ipc"
4807
4808 if test "$enableval" = yes; then
4809 ac_cv_use_ipc='wxUSE_IPC=yes'
4810 else
4811 ac_cv_use_ipc='wxUSE_IPC=no'
4812 fi
4813
4814else
4815
4816 LINE=`grep "wxUSE_IPC" ${wx_arg_cache_file}`
4817 if test "x$LINE" != x ; then
4818 eval "DEFAULT_$LINE"
4819 else
4820 no_cache=1
4821 fi
4822
4823 ac_cv_use_ipc='wxUSE_IPC='$DEFAULT_wxUSE_IPC
4824
4825fi;
4826
4827 eval "$ac_cv_use_ipc"
4828 if test "$no_cache" != 1; then
4829 echo $ac_cv_use_ipc >> ${wx_arg_cache_file}.tmp
4830 fi
4831
4832 if test "$wxUSE_IPC" = yes; then
4833 echo "$as_me:$LINENO: result: yes" >&5
4834echo "${ECHO_T}yes" >&6
4835 else
4836 echo "$as_me:$LINENO: result: no" >&5
4837echo "${ECHO_T}no" >&6
4838 fi
4839
4840
4841
4842 enablestring=
4843 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-apple_ieee" >&5
4844echo $ECHO_N "checking for --${enablestring:-enable}-apple_ieee... $ECHO_C" >&6
4845 no_cache=0
4846 # Check whether --enable-apple_ieee or --disable-apple_ieee was given.
4847if test "${enable_apple_ieee+set}" = set; then
4848 enableval="$enable_apple_ieee"
4849
4850 if test "$enableval" = yes; then
4851 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=yes'
4852 else
4853 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=no'
4854 fi
4855
4856else
4857
4858 LINE=`grep "wxUSE_APPLE_IEEE" ${wx_arg_cache_file}`
4859 if test "x$LINE" != x ; then
4860 eval "DEFAULT_$LINE"
4861 else
4862 no_cache=1
4863 fi
4864
4865 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE='$DEFAULT_wxUSE_APPLE_IEEE
4866
4867fi;
4868
4869 eval "$ac_cv_use_apple_ieee"
4870 if test "$no_cache" != 1; then
4871 echo $ac_cv_use_apple_ieee >> ${wx_arg_cache_file}.tmp
4872 fi
4873
4874 if test "$wxUSE_APPLE_IEEE" = yes; then
4875 echo "$as_me:$LINENO: result: yes" >&5
4876echo "${ECHO_T}yes" >&6
4877 else
4878 echo "$as_me:$LINENO: result: no" >&5
4879echo "${ECHO_T}no" >&6
4880 fi
4881
4882
81f90336
MW
4883 enablestring=
4884 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-arcstream" >&5
4885echo $ECHO_N "checking for --${enablestring:-enable}-arcstream... $ECHO_C" >&6
4886 no_cache=0
4887 # Check whether --enable-arcstream or --disable-arcstream was given.
4888if test "${enable_arcstream+set}" = set; then
4889 enableval="$enable_arcstream"
4890
4891 if test "$enableval" = yes; then
9e8e867f 4892 ac_cv_use_arcstream='wxUSE_ARCHIVE_STREAMS=yes'
81f90336 4893 else
9e8e867f 4894 ac_cv_use_arcstream='wxUSE_ARCHIVE_STREAMS=no'
81f90336
MW
4895 fi
4896
4897else
4898
9e8e867f 4899 LINE=`grep "wxUSE_ARCHIVE_STREAMS" ${wx_arg_cache_file}`
81f90336
MW
4900 if test "x$LINE" != x ; then
4901 eval "DEFAULT_$LINE"
4902 else
4903 no_cache=1
4904 fi
4905
9e8e867f 4906 ac_cv_use_arcstream='wxUSE_ARCHIVE_STREAMS='$DEFAULT_wxUSE_ARCHIVE_STREAMS
81f90336
MW
4907
4908fi;
4909
4910 eval "$ac_cv_use_arcstream"
4911 if test "$no_cache" != 1; then
4912 echo $ac_cv_use_arcstream >> ${wx_arg_cache_file}.tmp
4913 fi
4914
9e8e867f 4915 if test "$wxUSE_ARCHIVE_STREAMS" = yes; then
81f90336
MW
4916 echo "$as_me:$LINENO: result: yes" >&5
4917echo "${ECHO_T}yes" >&6
4918 else
4919 echo "$as_me:$LINENO: result: no" >&5
4920echo "${ECHO_T}no" >&6
4921 fi
4922
4923
a848cd7e 4924 enablestring=
36b6448c
VZ
4925 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-backtrace" >&5
4926echo $ECHO_N "checking for --${enablestring:-enable}-backtrace... $ECHO_C" >&6
a848cd7e 4927 no_cache=0
36b6448c
VZ
4928 # Check whether --enable-backtrace or --disable-backtrace was given.
4929if test "${enable_backtrace+set}" = set; then
4930 enableval="$enable_backtrace"
a848cd7e
SC
4931
4932 if test "$enableval" = yes; then
36b6448c 4933 ac_cv_use_backtrace='wxUSE_STACKWALKER=yes'
a848cd7e 4934 else
36b6448c 4935 ac_cv_use_backtrace='wxUSE_STACKWALKER=no'
a848cd7e
SC
4936 fi
4937
4938else
4939
36b6448c 4940 LINE=`grep "wxUSE_STACKWALKER" ${wx_arg_cache_file}`
a848cd7e
SC
4941 if test "x$LINE" != x ; then
4942 eval "DEFAULT_$LINE"
4943 else
4944 no_cache=1
4945 fi
4946
36b6448c 4947 ac_cv_use_backtrace='wxUSE_STACKWALKER='$DEFAULT_wxUSE_STACKWALKER
a848cd7e
SC
4948
4949fi;
4950
36b6448c 4951 eval "$ac_cv_use_backtrace"
a848cd7e 4952 if test "$no_cache" != 1; then
36b6448c 4953 echo $ac_cv_use_backtrace >> ${wx_arg_cache_file}.tmp
a848cd7e
SC
4954 fi
4955
36b6448c 4956 if test "$wxUSE_STACKWALKER" = yes; then
a848cd7e
SC
4957 echo "$as_me:$LINENO: result: yes" >&5
4958echo "${ECHO_T}yes" >&6
4959 else
4960 echo "$as_me:$LINENO: result: no" >&5
4961echo "${ECHO_T}no" >&6
4962 fi
4963
4964
eaff0f0d 4965 enablestring=
36b6448c
VZ
4966 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-catch_segvs" >&5
4967echo $ECHO_N "checking for --${enablestring:-enable}-catch_segvs... $ECHO_C" >&6
eaff0f0d 4968 no_cache=0
36b6448c
VZ
4969 # Check whether --enable-catch_segvs or --disable-catch_segvs was given.
4970if test "${enable_catch_segvs+set}" = set; then
4971 enableval="$enable_catch_segvs"
eaff0f0d
VZ
4972
4973 if test "$enableval" = yes; then
36b6448c 4974 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=yes'
eaff0f0d 4975 else
36b6448c 4976 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=no'
eaff0f0d
VZ
4977 fi
4978
4979else
4980
36b6448c 4981 LINE=`grep "wxUSE_ON_FATAL_EXCEPTION" ${wx_arg_cache_file}`
eaff0f0d
VZ
4982 if test "x$LINE" != x ; then
4983 eval "DEFAULT_$LINE"
4984 else
4985 no_cache=1
4986 fi
4987
36b6448c 4988 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION='$DEFAULT_wxUSE_ON_FATAL_EXCEPTION
eaff0f0d
VZ
4989
4990fi;
4991
36b6448c 4992 eval "$ac_cv_use_catch_segvs"
eaff0f0d 4993 if test "$no_cache" != 1; then
36b6448c 4994 echo $ac_cv_use_catch_segvs >> ${wx_arg_cache_file}.tmp
eaff0f0d
VZ
4995 fi
4996
36b6448c 4997 if test "$wxUSE_ON_FATAL_EXCEPTION" = yes; then
eaff0f0d
VZ
4998 echo "$as_me:$LINENO: result: yes" >&5
4999echo "${ECHO_T}yes" >&6
5000 else
5001 echo "$as_me:$LINENO: result: no" >&5
5002echo "${ECHO_T}no" >&6
5003 fi
5004
5005
a848cd7e
SC
5006 enablestring=
5007 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-cmdline" >&5
5008echo $ECHO_N "checking for --${enablestring:-enable}-cmdline... $ECHO_C" >&6
5009 no_cache=0
5010 # Check whether --enable-cmdline or --disable-cmdline was given.
5011if test "${enable_cmdline+set}" = set; then
5012 enableval="$enable_cmdline"
5013
5014 if test "$enableval" = yes; then
5015 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=yes'
5016 else
5017 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=no'
5018 fi
5019
5020else
5021
5022 LINE=`grep "wxUSE_CMDLINE_PARSER" ${wx_arg_cache_file}`
5023 if test "x$LINE" != x ; then
5024 eval "DEFAULT_$LINE"
5025 else
5026 no_cache=1
5027 fi
5028
5029 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER='$DEFAULT_wxUSE_CMDLINE_PARSER
5030
5031fi;
5032
5033 eval "$ac_cv_use_cmdline"
5034 if test "$no_cache" != 1; then
5035 echo $ac_cv_use_cmdline >> ${wx_arg_cache_file}.tmp
5036 fi
5037
5038 if test "$wxUSE_CMDLINE_PARSER" = yes; then
5039 echo "$as_me:$LINENO: result: yes" >&5
5040echo "${ECHO_T}yes" >&6
5041 else
5042 echo "$as_me:$LINENO: result: no" >&5
5043echo "${ECHO_T}no" >&6
5044 fi
5045
5046
5047 enablestring=
5048 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-datetime" >&5
5049echo $ECHO_N "checking for --${enablestring:-enable}-datetime... $ECHO_C" >&6
5050 no_cache=0
5051 # Check whether --enable-datetime or --disable-datetime was given.
5052if test "${enable_datetime+set}" = set; then
5053 enableval="$enable_datetime"
5054
5055 if test "$enableval" = yes; then
5056 ac_cv_use_datetime='wxUSE_DATETIME=yes'
5057 else
5058 ac_cv_use_datetime='wxUSE_DATETIME=no'
5059 fi
5060
5061else
5062
5063 LINE=`grep "wxUSE_DATETIME" ${wx_arg_cache_file}`
5064 if test "x$LINE" != x ; then
5065 eval "DEFAULT_$LINE"
5066 else
5067 no_cache=1
5068 fi
5069
5070 ac_cv_use_datetime='wxUSE_DATETIME='$DEFAULT_wxUSE_DATETIME
5071
5072fi;
5073
5074 eval "$ac_cv_use_datetime"
5075 if test "$no_cache" != 1; then
5076 echo $ac_cv_use_datetime >> ${wx_arg_cache_file}.tmp
5077 fi
5078
5079 if test "$wxUSE_DATETIME" = yes; then
5080 echo "$as_me:$LINENO: result: yes" >&5
5081echo "${ECHO_T}yes" >&6
5082 else
5083 echo "$as_me:$LINENO: result: no" >&5
5084echo "${ECHO_T}no" >&6
5085 fi
5086
5087
36b6448c
VZ
5088 enablestring=
5089 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debugreport" >&5
5090echo $ECHO_N "checking for --${enablestring:-enable}-debugreport... $ECHO_C" >&6
5091 no_cache=0
5092 # Check whether --enable-debugreport or --disable-debugreport was given.
5093if test "${enable_debugreport+set}" = set; then
5094 enableval="$enable_debugreport"
5095
5096 if test "$enableval" = yes; then
5097 ac_cv_use_debugreport='wxUSE_DEBUGREPORT=yes'
5098 else
5099 ac_cv_use_debugreport='wxUSE_DEBUGREPORT=no'
5100 fi
5101
5102else
5103
5104 LINE=`grep "wxUSE_DEBUGREPORT" ${wx_arg_cache_file}`
5105 if test "x$LINE" != x ; then
5106 eval "DEFAULT_$LINE"
5107 else
5108 no_cache=1
5109 fi
5110
5111 ac_cv_use_debugreport='wxUSE_DEBUGREPORT='$DEFAULT_wxUSE_DEBUGREPORT
5112
5113fi;
5114
5115 eval "$ac_cv_use_debugreport"
5116 if test "$no_cache" != 1; then
5117 echo $ac_cv_use_debugreport >> ${wx_arg_cache_file}.tmp
5118 fi
5119
5120 if test "$wxUSE_DEBUGREPORT" = yes; then
5121 echo "$as_me:$LINENO: result: yes" >&5
5122echo "${ECHO_T}yes" >&6
5123 else
5124 echo "$as_me:$LINENO: result: no" >&5
5125echo "${ECHO_T}no" >&6
5126 fi
5127
5128
a848cd7e
SC
5129 enablestring=
5130 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dialupman" >&5
5131echo $ECHO_N "checking for --${enablestring:-enable}-dialupman... $ECHO_C" >&6
5132 no_cache=0
5133 # Check whether --enable-dialupman or --disable-dialupman was given.
5134if test "${enable_dialupman+set}" = set; then
5135 enableval="$enable_dialupman"
5136
5137 if test "$enableval" = yes; then
5138 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=yes'
5139 else
5140 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=no'
5141 fi
5142
5143else
5144
5145 LINE=`grep "wxUSE_DIALUP_MANAGER" ${wx_arg_cache_file}`
5146 if test "x$LINE" != x ; then
5147 eval "DEFAULT_$LINE"
5148 else
5149 no_cache=1
5150 fi
5151
5152 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER='$DEFAULT_wxUSE_DIALUP_MANAGER
5153
5154fi;
5155
5156 eval "$ac_cv_use_dialupman"
5157 if test "$no_cache" != 1; then
5158 echo $ac_cv_use_dialupman >> ${wx_arg_cache_file}.tmp
5159 fi
5160
5161 if test "$wxUSE_DIALUP_MANAGER" = yes; then
5162 echo "$as_me:$LINENO: result: yes" >&5
5163echo "${ECHO_T}yes" >&6
5164 else
5165 echo "$as_me:$LINENO: result: no" >&5
5166echo "${ECHO_T}no" >&6
5167 fi
5168
5169
5170 enablestring=
5171 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dynlib" >&5
5172echo $ECHO_N "checking for --${enablestring:-enable}-dynlib... $ECHO_C" >&6
5173 no_cache=0
5174 # Check whether --enable-dynlib or --disable-dynlib was given.
5175if test "${enable_dynlib+set}" = set; then
5176 enableval="$enable_dynlib"
5177
5178 if test "$enableval" = yes; then
5179 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=yes'
5180 else
5181 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=no'
5182 fi
5183
5184else
5185
5186 LINE=`grep "wxUSE_DYNLIB_CLASS" ${wx_arg_cache_file}`
5187 if test "x$LINE" != x ; then
5188 eval "DEFAULT_$LINE"
5189 else
5190 no_cache=1
5191 fi
5192
5193 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS='$DEFAULT_wxUSE_DYNLIB_CLASS
5194
5195fi;
5196
5197 eval "$ac_cv_use_dynlib"
5198 if test "$no_cache" != 1; then
5199 echo $ac_cv_use_dynlib >> ${wx_arg_cache_file}.tmp
5200 fi
5201
5202 if test "$wxUSE_DYNLIB_CLASS" = yes; then
5203 echo "$as_me:$LINENO: result: yes" >&5
5204echo "${ECHO_T}yes" >&6
5205 else
5206 echo "$as_me:$LINENO: result: no" >&5
5207echo "${ECHO_T}no" >&6
5208 fi
5209
5210
5211 enablestring=
5212 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dynamicloader" >&5
5213echo $ECHO_N "checking for --${enablestring:-enable}-dynamicloader... $ECHO_C" >&6
5214 no_cache=0
5215 # Check whether --enable-dynamicloader or --disable-dynamicloader was given.
5216if test "${enable_dynamicloader+set}" = set; then
5217 enableval="$enable_dynamicloader"
5218
5219 if test "$enableval" = yes; then
5220 ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=yes'
5221 else
5222 ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=no'
5223 fi
5224
5225else
5226
5227 LINE=`grep "wxUSE_DYNAMIC_LOADER" ${wx_arg_cache_file}`
5228 if test "x$LINE" != x ; then
5229 eval "DEFAULT_$LINE"
5230 else
5231 no_cache=1
5232 fi
5233
5234 ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER='$DEFAULT_wxUSE_DYNAMIC_LOADER
5235
5236fi;
5237
5238 eval "$ac_cv_use_dynamicloader"
5239 if test "$no_cache" != 1; then
5240 echo $ac_cv_use_dynamicloader >> ${wx_arg_cache_file}.tmp
5241 fi
5242
5243 if test "$wxUSE_DYNAMIC_LOADER" = yes; then
5244 echo "$as_me:$LINENO: result: yes" >&5
5245echo "${ECHO_T}yes" >&6
5246 else
5247 echo "$as_me:$LINENO: result: no" >&5
5248echo "${ECHO_T}no" >&6
5249 fi
5250
5251
5252 enablestring=
5253 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-exceptions" >&5
5254echo $ECHO_N "checking for --${enablestring:-enable}-exceptions... $ECHO_C" >&6
5255 no_cache=0
5256 # Check whether --enable-exceptions or --disable-exceptions was given.
5257if test "${enable_exceptions+set}" = set; then
5258 enableval="$enable_exceptions"
5259
5260 if test "$enableval" = yes; then
5261 ac_cv_use_exceptions='wxUSE_EXCEPTIONS=yes'
5262 else
5263 ac_cv_use_exceptions='wxUSE_EXCEPTIONS=no'
5264 fi
5265
5266else
5267
5268 LINE=`grep "wxUSE_EXCEPTIONS" ${wx_arg_cache_file}`
5269 if test "x$LINE" != x ; then
5270 eval "DEFAULT_$LINE"
5271 else
5272 no_cache=1
5273 fi
5274
5275 ac_cv_use_exceptions='wxUSE_EXCEPTIONS='$DEFAULT_wxUSE_EXCEPTIONS
5276
5277fi;
5278
5279 eval "$ac_cv_use_exceptions"
5280 if test "$no_cache" != 1; then
5281 echo $ac_cv_use_exceptions >> ${wx_arg_cache_file}.tmp
5282 fi
5283
5284 if test "$wxUSE_EXCEPTIONS" = yes; then
5285 echo "$as_me:$LINENO: result: yes" >&5
5286echo "${ECHO_T}yes" >&6
5287 else
5288 echo "$as_me:$LINENO: result: no" >&5
5289echo "${ECHO_T}no" >&6
5290 fi
5291
5292
5293 enablestring=
5294 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ffile" >&5
5295echo $ECHO_N "checking for --${enablestring:-enable}-ffile... $ECHO_C" >&6
5296 no_cache=0
5297 # Check whether --enable-ffile or --disable-ffile was given.
5298if test "${enable_ffile+set}" = set; then
5299 enableval="$enable_ffile"
5300
5301 if test "$enableval" = yes; then
5302 ac_cv_use_ffile='wxUSE_FFILE=yes'
5303 else
5304 ac_cv_use_ffile='wxUSE_FFILE=no'
5305 fi
5306
5307else
5308
5309 LINE=`grep "wxUSE_FFILE" ${wx_arg_cache_file}`
5310 if test "x$LINE" != x ; then
5311 eval "DEFAULT_$LINE"
5312 else
5313 no_cache=1
5314 fi
5315
5316 ac_cv_use_ffile='wxUSE_FFILE='$DEFAULT_wxUSE_FFILE
5317
5318fi;
5319
5320 eval "$ac_cv_use_ffile"
5321 if test "$no_cache" != 1; then
5322 echo $ac_cv_use_ffile >> ${wx_arg_cache_file}.tmp
5323 fi
5324
5325 if test "$wxUSE_FFILE" = yes; then
5326 echo "$as_me:$LINENO: result: yes" >&5
5327echo "${ECHO_T}yes" >&6
5328 else
5329 echo "$as_me:$LINENO: result: no" >&5
5330echo "${ECHO_T}no" >&6
5331 fi
5332
5333
5334 enablestring=
5335 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-file" >&5
5336echo $ECHO_N "checking for --${enablestring:-enable}-file... $ECHO_C" >&6
5337 no_cache=0
5338 # Check whether --enable-file or --disable-file was given.
5339if test "${enable_file+set}" = set; then
5340 enableval="$enable_file"
5341
5342 if test "$enableval" = yes; then
5343 ac_cv_use_file='wxUSE_FILE=yes'
5344 else
5345 ac_cv_use_file='wxUSE_FILE=no'
5346 fi
5347
5348else
5349
5350 LINE=`grep "wxUSE_FILE" ${wx_arg_cache_file}`
5351 if test "x$LINE" != x ; then
5352 eval "DEFAULT_$LINE"
5353 else
5354 no_cache=1
5355 fi
5356
5357 ac_cv_use_file='wxUSE_FILE='$DEFAULT_wxUSE_FILE
5358
5359fi;
5360
5361 eval "$ac_cv_use_file"
5362 if test "$no_cache" != 1; then
5363 echo $ac_cv_use_file >> ${wx_arg_cache_file}.tmp
5364 fi
5365
5366 if test "$wxUSE_FILE" = yes; then
5367 echo "$as_me:$LINENO: result: yes" >&5
5368echo "${ECHO_T}yes" >&6
5369 else
5370 echo "$as_me:$LINENO: result: no" >&5
5371echo "${ECHO_T}no" >&6
5372 fi
5373
5374
5375 enablestring=
5376 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-filesystem" >&5
5377echo $ECHO_N "checking for --${enablestring:-enable}-filesystem... $ECHO_C" >&6
5378 no_cache=0
5379 # Check whether --enable-filesystem or --disable-filesystem was given.
5380if test "${enable_filesystem+set}" = set; then
5381 enableval="$enable_filesystem"
5382
5383 if test "$enableval" = yes; then
5384 ac_cv_use_filesystem='wxUSE_FILESYSTEM=yes'
5385 else
5386 ac_cv_use_filesystem='wxUSE_FILESYSTEM=no'
5387 fi
5388
5389else
5390
5391 LINE=`grep "wxUSE_FILESYSTEM" ${wx_arg_cache_file}`
5392 if test "x$LINE" != x ; then
5393 eval "DEFAULT_$LINE"
5394 else
5395 no_cache=1
5396 fi
5397
5398 ac_cv_use_filesystem='wxUSE_FILESYSTEM='$DEFAULT_wxUSE_FILESYSTEM
5399
5400fi;
5401
5402 eval "$ac_cv_use_filesystem"
5403 if test "$no_cache" != 1; then
5404 echo $ac_cv_use_filesystem >> ${wx_arg_cache_file}.tmp
5405 fi
5406
5407 if test "$wxUSE_FILESYSTEM" = yes; then
5408 echo "$as_me:$LINENO: result: yes" >&5
5409echo "${ECHO_T}yes" >&6
5410 else
5411 echo "$as_me:$LINENO: result: no" >&5
5412echo "${ECHO_T}no" >&6
5413 fi
5414
5415
5416 enablestring=
5417 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fontmap" >&5
5418echo $ECHO_N "checking for --${enablestring:-enable}-fontmap... $ECHO_C" >&6
5419 no_cache=0
5420 # Check whether --enable-fontmap or --disable-fontmap was given.
5421if test "${enable_fontmap+set}" = set; then
5422 enableval="$enable_fontmap"
5423
5424 if test "$enableval" = yes; then
5425 ac_cv_use_fontmap='wxUSE_FONTMAP=yes'
5426 else
5427 ac_cv_use_fontmap='wxUSE_FONTMAP=no'
5428 fi
5429
5430else
5431
5432 LINE=`grep "wxUSE_FONTMAP" ${wx_arg_cache_file}`
5433 if test "x$LINE" != x ; then
5434 eval "DEFAULT_$LINE"
5435 else
5436 no_cache=1
5437 fi
5438
5439 ac_cv_use_fontmap='wxUSE_FONTMAP='$DEFAULT_wxUSE_FONTMAP
5440
5441fi;
5442
5443 eval "$ac_cv_use_fontmap"
5444 if test "$no_cache" != 1; then
5445 echo $ac_cv_use_fontmap >> ${wx_arg_cache_file}.tmp
5446 fi
5447
5448 if test "$wxUSE_FONTMAP" = yes; then
5449 echo "$as_me:$LINENO: result: yes" >&5
5450echo "${ECHO_T}yes" >&6
5451 else
5452 echo "$as_me:$LINENO: result: no" >&5
5453echo "${ECHO_T}no" >&6
5454 fi
5455
5456
5457 enablestring=
5458 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fs_inet" >&5
5459echo $ECHO_N "checking for --${enablestring:-enable}-fs_inet... $ECHO_C" >&6
5460 no_cache=0
5461 # Check whether --enable-fs_inet or --disable-fs_inet was given.
5462if test "${enable_fs_inet+set}" = set; then
5463 enableval="$enable_fs_inet"
5464
5465 if test "$enableval" = yes; then
5466 ac_cv_use_fs_inet='wxUSE_FS_INET=yes'
5467 else
5468 ac_cv_use_fs_inet='wxUSE_FS_INET=no'
5469 fi
5470
5471else
5472
5473 LINE=`grep "wxUSE_FS_INET" ${wx_arg_cache_file}`
5474 if test "x$LINE" != x ; then
5475 eval "DEFAULT_$LINE"
5476 else
5477 no_cache=1
5478 fi
5479
5480 ac_cv_use_fs_inet='wxUSE_FS_INET='$DEFAULT_wxUSE_FS_INET
5481
5482fi;
5483
5484 eval "$ac_cv_use_fs_inet"
5485 if test "$no_cache" != 1; then
5486 echo $ac_cv_use_fs_inet >> ${wx_arg_cache_file}.tmp
5487 fi
5488
5489 if test "$wxUSE_FS_INET" = yes; then
5490 echo "$as_me:$LINENO: result: yes" >&5
5491echo "${ECHO_T}yes" >&6
5492 else
5493 echo "$as_me:$LINENO: result: no" >&5
5494echo "${ECHO_T}no" >&6
5495 fi
5496
5497
5498 enablestring=
5499 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fs_zip" >&5
5500echo $ECHO_N "checking for --${enablestring:-enable}-fs_zip... $ECHO_C" >&6
5501 no_cache=0
5502 # Check whether --enable-fs_zip or --disable-fs_zip was given.
5503if test "${enable_fs_zip+set}" = set; then
5504 enableval="$enable_fs_zip"
5505
5506 if test "$enableval" = yes; then
5507 ac_cv_use_fs_zip='wxUSE_FS_ZIP=yes'
5508 else
5509 ac_cv_use_fs_zip='wxUSE_FS_ZIP=no'
5510 fi
5511
5512else
5513
5514 LINE=`grep "wxUSE_FS_ZIP" ${wx_arg_cache_file}`
5515 if test "x$LINE" != x ; then
5516 eval "DEFAULT_$LINE"
5517 else
5518 no_cache=1
5519 fi
5520
5521 ac_cv_use_fs_zip='wxUSE_FS_ZIP='$DEFAULT_wxUSE_FS_ZIP
5522
5523fi;
5524
5525 eval "$ac_cv_use_fs_zip"
5526 if test "$no_cache" != 1; then
5527 echo $ac_cv_use_fs_zip >> ${wx_arg_cache_file}.tmp
5528 fi
5529
5530 if test "$wxUSE_FS_ZIP" = yes; then
5531 echo "$as_me:$LINENO: result: yes" >&5
5532echo "${ECHO_T}yes" >&6
5533 else
5534 echo "$as_me:$LINENO: result: no" >&5
5535echo "${ECHO_T}no" >&6
5536 fi
5537
5538
5539 enablestring=
5540 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-geometry" >&5
5541echo $ECHO_N "checking for --${enablestring:-enable}-geometry... $ECHO_C" >&6
5542 no_cache=0
5543 # Check whether --enable-geometry or --disable-geometry was given.
5544if test "${enable_geometry+set}" = set; then
5545 enableval="$enable_geometry"
5546
5547 if test "$enableval" = yes; then
5548 ac_cv_use_geometry='wxUSE_GEOMETRY=yes'
5549 else
5550 ac_cv_use_geometry='wxUSE_GEOMETRY=no'
5551 fi
5552
5553else
5554
5555 LINE=`grep "wxUSE_GEOMETRY" ${wx_arg_cache_file}`
5556 if test "x$LINE" != x ; then
5557 eval "DEFAULT_$LINE"
5558 else
5559 no_cache=1
5560 fi
5561
5562 ac_cv_use_geometry='wxUSE_GEOMETRY='$DEFAULT_wxUSE_GEOMETRY
5563
5564fi;
5565
5566 eval "$ac_cv_use_geometry"
5567 if test "$no_cache" != 1; then
5568 echo $ac_cv_use_geometry >> ${wx_arg_cache_file}.tmp
5569 fi
5570
5571 if test "$wxUSE_GEOMETRY" = yes; then
5572 echo "$as_me:$LINENO: result: yes" >&5
5573echo "${ECHO_T}yes" >&6
5574 else
5575 echo "$as_me:$LINENO: result: no" >&5
5576echo "${ECHO_T}no" >&6
5577 fi
5578
5579
5580 enablestring=
5581 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-log" >&5
5582echo $ECHO_N "checking for --${enablestring:-enable}-log... $ECHO_C" >&6
5583 no_cache=0
5584 # Check whether --enable-log or --disable-log was given.
5585if test "${enable_log+set}" = set; then
5586 enableval="$enable_log"
5587
5588 if test "$enableval" = yes; then
5589 ac_cv_use_log='wxUSE_LOG=yes'
5590 else
5591 ac_cv_use_log='wxUSE_LOG=no'
5592 fi
5593
5594else
5595
5596 LINE=`grep "wxUSE_LOG" ${wx_arg_cache_file}`
5597 if test "x$LINE" != x ; then
5598 eval "DEFAULT_$LINE"
5599 else
5600 no_cache=1
5601 fi
5602
5603 ac_cv_use_log='wxUSE_LOG='$DEFAULT_wxUSE_LOG
5604
5605fi;
5606
5607 eval "$ac_cv_use_log"
5608 if test "$no_cache" != 1; then
5609 echo $ac_cv_use_log >> ${wx_arg_cache_file}.tmp
5610 fi
5611
5612 if test "$wxUSE_LOG" = yes; then
5613 echo "$as_me:$LINENO: result: yes" >&5
5614echo "${ECHO_T}yes" >&6
5615 else
5616 echo "$as_me:$LINENO: result: no" >&5
5617echo "${ECHO_T}no" >&6
5618 fi
5619
5620
5621 enablestring=
5622 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-longlong" >&5
5623echo $ECHO_N "checking for --${enablestring:-enable}-longlong... $ECHO_C" >&6
5624 no_cache=0
5625 # Check whether --enable-longlong or --disable-longlong was given.
5626if test "${enable_longlong+set}" = set; then
5627 enableval="$enable_longlong"
5628
5629 if test "$enableval" = yes; then
5630 ac_cv_use_longlong='wxUSE_LONGLONG=yes'
5631 else
5632 ac_cv_use_longlong='wxUSE_LONGLONG=no'
5633 fi
5634
5635else
5636
5637 LINE=`grep "wxUSE_LONGLONG" ${wx_arg_cache_file}`
5638 if test "x$LINE" != x ; then
5639 eval "DEFAULT_$LINE"
5640 else
5641 no_cache=1
5642 fi
5643
5644 ac_cv_use_longlong='wxUSE_LONGLONG='$DEFAULT_wxUSE_LONGLONG
5645
5646fi;
5647
5648 eval "$ac_cv_use_longlong"
5649 if test "$no_cache" != 1; then
5650 echo $ac_cv_use_longlong >> ${wx_arg_cache_file}.tmp
5651 fi
5652
5653 if test "$wxUSE_LONGLONG" = yes; then
5654 echo "$as_me:$LINENO: result: yes" >&5
5655echo "${ECHO_T}yes" >&6
5656 else
5657 echo "$as_me:$LINENO: result: no" >&5
5658echo "${ECHO_T}no" >&6
5659 fi
5660
5661
5662 enablestring=
5663 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mimetype" >&5
5664echo $ECHO_N "checking for --${enablestring:-enable}-mimetype... $ECHO_C" >&6
5665 no_cache=0
5666 # Check whether --enable-mimetype or --disable-mimetype was given.
5667if test "${enable_mimetype+set}" = set; then
5668 enableval="$enable_mimetype"
5669
5670 if test "$enableval" = yes; then
5671 ac_cv_use_mimetype='wxUSE_MIMETYPE=yes'
5672 else
5673 ac_cv_use_mimetype='wxUSE_MIMETYPE=no'
5674 fi
5675
5676else
5677
5678 LINE=`grep "wxUSE_MIMETYPE" ${wx_arg_cache_file}`
5679 if test "x$LINE" != x ; then
5680 eval "DEFAULT_$LINE"
5681 else
5682 no_cache=1
5683 fi
5684
5685 ac_cv_use_mimetype='wxUSE_MIMETYPE='$DEFAULT_wxUSE_MIMETYPE
5686
5687fi;
5688
5689 eval "$ac_cv_use_mimetype"
5690 if test "$no_cache" != 1; then
5691 echo $ac_cv_use_mimetype >> ${wx_arg_cache_file}.tmp
5692 fi
5693
5694 if test "$wxUSE_MIMETYPE" = yes; then
5695 echo "$as_me:$LINENO: result: yes" >&5
5696echo "${ECHO_T}yes" >&6
5697 else
5698 echo "$as_me:$LINENO: result: no" >&5
5699echo "${ECHO_T}no" >&6
5700 fi
5701
5702
5703 enablestring=
5704 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mslu" >&5
5705echo $ECHO_N "checking for --${enablestring:-enable}-mslu... $ECHO_C" >&6
5706 no_cache=0
5707 # Check whether --enable-mslu or --disable-mslu was given.
5708if test "${enable_mslu+set}" = set; then
5709 enableval="$enable_mslu"
5710
5711 if test "$enableval" = yes; then
5712 ac_cv_use_mslu='wxUSE_UNICODE_MSLU=yes'
5713 else
5714 ac_cv_use_mslu='wxUSE_UNICODE_MSLU=no'
5715 fi
5716
5717else
5718
5719 LINE=`grep "wxUSE_UNICODE_MSLU" ${wx_arg_cache_file}`
5720 if test "x$LINE" != x ; then
5721 eval "DEFAULT_$LINE"
5722 else
5723 no_cache=1
5724 fi
5725
5726 ac_cv_use_mslu='wxUSE_UNICODE_MSLU='$DEFAULT_wxUSE_UNICODE_MSLU
5727
5728fi;
5729
5730 eval "$ac_cv_use_mslu"
5731 if test "$no_cache" != 1; then
5732 echo $ac_cv_use_mslu >> ${wx_arg_cache_file}.tmp
5733 fi
5734
5735 if test "$wxUSE_UNICODE_MSLU" = yes; then
5736 echo "$as_me:$LINENO: result: yes" >&5
5737echo "${ECHO_T}yes" >&6
5738 else
5739 echo "$as_me:$LINENO: result: no" >&5
5740echo "${ECHO_T}no" >&6
5741 fi
5742
5743
5744 enablestring=
5745 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-snglinst" >&5
5746echo $ECHO_N "checking for --${enablestring:-enable}-snglinst... $ECHO_C" >&6
5747 no_cache=0
5748 # Check whether --enable-snglinst or --disable-snglinst was given.
5749if test "${enable_snglinst+set}" = set; then
5750 enableval="$enable_snglinst"
5751
5752 if test "$enableval" = yes; then
5753 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=yes'
5754 else
5755 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=no'
5756 fi
5757
5758else
5759
5760 LINE=`grep "wxUSE_SNGLINST_CHECKER" ${wx_arg_cache_file}`
5761 if test "x$LINE" != x ; then
5762 eval "DEFAULT_$LINE"
5763 else
5764 no_cache=1
5765 fi
5766
5767 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER='$DEFAULT_wxUSE_SNGLINST_CHECKER
5768
5769fi;
5770
5771 eval "$ac_cv_use_snglinst"
5772 if test "$no_cache" != 1; then
5773 echo $ac_cv_use_snglinst >> ${wx_arg_cache_file}.tmp
5774 fi
5775
5776 if test "$wxUSE_SNGLINST_CHECKER" = yes; then
5777 echo "$as_me:$LINENO: result: yes" >&5
5778echo "${ECHO_T}yes" >&6
5779 else
5780 echo "$as_me:$LINENO: result: no" >&5
5781echo "${ECHO_T}no" >&6
5782 fi
5783
5784
5785 enablestring=
07158944
VZ
5786 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-std_iostreams" >&5
5787echo $ECHO_N "checking for --${enablestring:-enable}-std_iostreams... $ECHO_C" >&6
a848cd7e 5788 no_cache=0
07158944
VZ
5789 # Check whether --enable-std_iostreams or --disable-std_iostreams was given.
5790if test "${enable_std_iostreams+set}" = set; then
5791 enableval="$enable_std_iostreams"
a848cd7e
SC
5792
5793 if test "$enableval" = yes; then
07158944 5794 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=yes'
a848cd7e 5795 else
07158944 5796 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=no'
a848cd7e
SC
5797 fi
5798
5799else
5800
07158944 5801 LINE=`grep "wxUSE_STD_IOSTREAM" ${wx_arg_cache_file}`
a848cd7e
SC
5802 if test "x$LINE" != x ; then
5803 eval "DEFAULT_$LINE"
5804 else
5805 no_cache=1
5806 fi
5807
07158944 5808 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM='$DEFAULT_wxUSE_STD_IOSTREAM
a848cd7e
SC
5809
5810fi;
5811
07158944 5812 eval "$ac_cv_use_std_iostreams"
a848cd7e 5813 if test "$no_cache" != 1; then
07158944 5814 echo $ac_cv_use_std_iostreams >> ${wx_arg_cache_file}.tmp
a848cd7e
SC
5815 fi
5816
07158944 5817 if test "$wxUSE_STD_IOSTREAM" = yes; then
a848cd7e
SC
5818 echo "$as_me:$LINENO: result: yes" >&5
5819echo "${ECHO_T}yes" >&6
5820 else
5821 echo "$as_me:$LINENO: result: no" >&5
5822echo "${ECHO_T}no" >&6
5823 fi
5824
5825
59746b65
MW
5826 enablestring=
5827 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-std_string" >&5
5828echo $ECHO_N "checking for --${enablestring:-enable}-std_string... $ECHO_C" >&6
5829 no_cache=0
5830 # Check whether --enable-std_string or --disable-std_string was given.
5831if test "${enable_std_string+set}" = set; then
5832 enableval="$enable_std_string"
5833
5834 if test "$enableval" = yes; then
5835 ac_cv_use_std_string='wxUSE_STD_STRING=yes'
5836 else
5837 ac_cv_use_std_string='wxUSE_STD_STRING=no'
5838 fi
5839
5840else
5841
5842 LINE=`grep "wxUSE_STD_STRING" ${wx_arg_cache_file}`
5843 if test "x$LINE" != x ; then
5844 eval "DEFAULT_$LINE"
5845 else
5846 no_cache=1
5847 fi
5848
5849 ac_cv_use_std_string='wxUSE_STD_STRING='$DEFAULT_wxUSE_STD_STRING
5850
5851fi;
5852
5853 eval "$ac_cv_use_std_string"
5854 if test "$no_cache" != 1; then
5855 echo $ac_cv_use_std_string >> ${wx_arg_cache_file}.tmp
5856 fi
5857
5858 if test "$wxUSE_STD_STRING" = yes; then
5859 echo "$as_me:$LINENO: result: yes" >&5
5860echo "${ECHO_T}yes" >&6
5861 else
5862 echo "$as_me:$LINENO: result: no" >&5
5863echo "${ECHO_T}no" >&6
5864 fi
5865
5866
a848cd7e 5867 enablestring=
07158944
VZ
5868 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stdpaths" >&5
5869echo $ECHO_N "checking for --${enablestring:-enable}-stdpaths... $ECHO_C" >&6
a848cd7e 5870 no_cache=0
07158944
VZ
5871 # Check whether --enable-stdpaths or --disable-stdpaths was given.
5872if test "${enable_stdpaths+set}" = set; then
5873 enableval="$enable_stdpaths"
a848cd7e
SC
5874
5875 if test "$enableval" = yes; then
07158944 5876 ac_cv_use_stdpaths='wxUSE_STDPATHS=yes'
a848cd7e 5877 else
07158944 5878 ac_cv_use_stdpaths='wxUSE_STDPATHS=no'
a848cd7e
SC
5879 fi
5880
5881else
5882
07158944 5883 LINE=`grep "wxUSE_STDPATHS" ${wx_arg_cache_file}`
a848cd7e
SC
5884 if test "x$LINE" != x ; then
5885 eval "DEFAULT_$LINE"
5886 else
5887 no_cache=1
5888 fi
5889
07158944 5890 ac_cv_use_stdpaths='wxUSE_STDPATHS='$DEFAULT_wxUSE_STDPATHS
a848cd7e
SC
5891
5892fi;
5893
07158944 5894 eval "$ac_cv_use_stdpaths"
a848cd7e 5895 if test "$no_cache" != 1; then
07158944 5896 echo $ac_cv_use_stdpaths >> ${wx_arg_cache_file}.tmp
a848cd7e
SC
5897 fi
5898
07158944 5899 if test "$wxUSE_STDPATHS" = yes; then
a848cd7e
SC
5900 echo "$as_me:$LINENO: result: yes" >&5
5901echo "${ECHO_T}yes" >&6
5902 else
5903 echo "$as_me:$LINENO: result: no" >&5
5904echo "${ECHO_T}no" >&6
5905 fi
5906
5907
5908 enablestring=
5909 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stopwatch" >&5
5910echo $ECHO_N "checking for --${enablestring:-enable}-stopwatch... $ECHO_C" >&6
5911 no_cache=0
5912 # Check whether --enable-stopwatch or --disable-stopwatch was given.
5913if test "${enable_stopwatch+set}" = set; then
5914 enableval="$enable_stopwatch"
5915
5916 if test "$enableval" = yes; then
5917 ac_cv_use_stopwatch='wxUSE_STOPWATCH=yes'
5918 else
5919 ac_cv_use_stopwatch='wxUSE_STOPWATCH=no'
5920 fi
5921
5922else
5923
5924 LINE=`grep "wxUSE_STOPWATCH" ${wx_arg_cache_file}`
5925 if test "x$LINE" != x ; then
5926 eval "DEFAULT_$LINE"
5927 else
5928 no_cache=1
5929 fi
5930
5931 ac_cv_use_stopwatch='wxUSE_STOPWATCH='$DEFAULT_wxUSE_STOPWATCH
5932
5933fi;
5934
5935 eval "$ac_cv_use_stopwatch"
5936 if test "$no_cache" != 1; then
5937 echo $ac_cv_use_stopwatch >> ${wx_arg_cache_file}.tmp
5938 fi
5939
5940 if test "$wxUSE_STOPWATCH" = yes; then
5941 echo "$as_me:$LINENO: result: yes" >&5
5942echo "${ECHO_T}yes" >&6
5943 else
5944 echo "$as_me:$LINENO: result: no" >&5
5945echo "${ECHO_T}no" >&6
5946 fi
5947
5948
07158944
VZ
5949 enablestring=
5950 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-streams" >&5
5951echo $ECHO_N "checking for --${enablestring:-enable}-streams... $ECHO_C" >&6
5952 no_cache=0
5953 # Check whether --enable-streams or --disable-streams was given.
5954if test "${enable_streams+set}" = set; then
5955 enableval="$enable_streams"
5956
5957 if test "$enableval" = yes; then
5958 ac_cv_use_streams='wxUSE_STREAMS=yes'
5959 else
5960 ac_cv_use_streams='wxUSE_STREAMS=no'
5961 fi
5962
5963else
5964
5965 LINE=`grep "wxUSE_STREAMS" ${wx_arg_cache_file}`
5966 if test "x$LINE" != x ; then
5967 eval "DEFAULT_$LINE"
5968 else
5969 no_cache=1
5970 fi
5971
5972 ac_cv_use_streams='wxUSE_STREAMS='$DEFAULT_wxUSE_STREAMS
5973
5974fi;
5975
5976 eval "$ac_cv_use_streams"
5977 if test "$no_cache" != 1; then
5978 echo $ac_cv_use_streams >> ${wx_arg_cache_file}.tmp
5979 fi
5980
5981 if test "$wxUSE_STREAMS" = yes; then
5982 echo "$as_me:$LINENO: result: yes" >&5
5983echo "${ECHO_T}yes" >&6
5984 else
5985 echo "$as_me:$LINENO: result: no" >&5
5986echo "${ECHO_T}no" >&6
5987 fi
5988
5989
a848cd7e
SC
5990 enablestring=
5991 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-system_options" >&5
5992echo $ECHO_N "checking for --${enablestring:-enable}-system_options... $ECHO_C" >&6
5993 no_cache=0
5994 # Check whether --enable-system_options or --disable-system_options was given.
5995if test "${enable_system_options+set}" = set; then
5996 enableval="$enable_system_options"
5997
5998 if test "$enableval" = yes; then
5999 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=yes'
6000 else
6001 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=no'
6002 fi
6003
6004else
6005
6006 LINE=`grep "wxUSE_SYSTEM_OPTIONS" ${wx_arg_cache_file}`
6007 if test "x$LINE" != x ; then
6008 eval "DEFAULT_$LINE"
6009 else
6010 no_cache=1
6011 fi
6012
6013 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS='$DEFAULT_wxUSE_SYSTEM_OPTIONS
6014
6015fi;
6016
6017 eval "$ac_cv_use_system_options"
6018 if test "$no_cache" != 1; then
6019 echo $ac_cv_use_system_options >> ${wx_arg_cache_file}.tmp
6020 fi
6021
6022 if test "$wxUSE_SYSTEM_OPTIONS" = yes; then
6023 echo "$as_me:$LINENO: result: yes" >&5
6024echo "${ECHO_T}yes" >&6
6025 else
6026 echo "$as_me:$LINENO: result: no" >&5
6027echo "${ECHO_T}no" >&6
6028 fi
6029
6030
6031 enablestring=
6032 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textbuf" >&5
6033echo $ECHO_N "checking for --${enablestring:-enable}-textbuf... $ECHO_C" >&6
6034 no_cache=0
6035 # Check whether --enable-textbuf or --disable-textbuf was given.
6036if test "${enable_textbuf+set}" = set; then
6037 enableval="$enable_textbuf"
6038
6039 if test "$enableval" = yes; then
6040 ac_cv_use_textbuf='wxUSE_TEXTBUFFER=yes'
6041 else
6042 ac_cv_use_textbuf='wxUSE_TEXTBUFFER=no'
6043 fi
6044
6045else
6046
6047 LINE=`grep "wxUSE_TEXTBUFFER" ${wx_arg_cache_file}`
6048 if test "x$LINE" != x ; then
6049 eval "DEFAULT_$LINE"
6050 else
6051 no_cache=1
6052 fi
6053
6054 ac_cv_use_textbuf='wxUSE_TEXTBUFFER='$DEFAULT_wxUSE_TEXTBUFFER
6055
6056fi;
6057
6058 eval "$ac_cv_use_textbuf"
6059 if test "$no_cache" != 1; then
6060 echo $ac_cv_use_textbuf >> ${wx_arg_cache_file}.tmp
6061 fi
6062
6063 if test "$wxUSE_TEXTBUFFER" = yes; then
6064 echo "$as_me:$LINENO: result: yes" >&5
6065echo "${ECHO_T}yes" >&6
6066 else
6067 echo "$as_me:$LINENO: result: no" >&5
6068echo "${ECHO_T}no" >&6
6069 fi
6070
6071
6072 enablestring=
6073 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textfile" >&5
6074echo $ECHO_N "checking for --${enablestring:-enable}-textfile... $ECHO_C" >&6
6075 no_cache=0
6076 # Check whether --enable-textfile or --disable-textfile was given.
6077if test "${enable_textfile+set}" = set; then
6078 enableval="$enable_textfile"
6079
6080 if test "$enableval" = yes; then
6081 ac_cv_use_textfile='wxUSE_TEXTFILE=yes'
6082 else
6083 ac_cv_use_textfile='wxUSE_TEXTFILE=no'
6084 fi
6085
6086else
6087
6088 LINE=`grep "wxUSE_TEXTFILE" ${wx_arg_cache_file}`
6089 if test "x$LINE" != x ; then
6090 eval "DEFAULT_$LINE"
6091 else
6092 no_cache=1
6093 fi
6094
6095 ac_cv_use_textfile='wxUSE_TEXTFILE='$DEFAULT_wxUSE_TEXTFILE
6096
6097fi;
6098
6099 eval "$ac_cv_use_textfile"
6100 if test "$no_cache" != 1; then
6101 echo $ac_cv_use_textfile >> ${wx_arg_cache_file}.tmp
6102 fi
6103
6104 if test "$wxUSE_TEXTFILE" = yes; then
6105 echo "$as_me:$LINENO: result: yes" >&5
6106echo "${ECHO_T}yes" >&6
6107 else
6108 echo "$as_me:$LINENO: result: no" >&5
6109echo "${ECHO_T}no" >&6
6110 fi
6111
6112
6113 enablestring=
6114 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-timer" >&5
6115echo $ECHO_N "checking for --${enablestring:-enable}-timer... $ECHO_C" >&6
6116 no_cache=0
6117 # Check whether --enable-timer or --disable-timer was given.
6118if test "${enable_timer+set}" = set; then
6119 enableval="$enable_timer"
6120
6121 if test "$enableval" = yes; then
6122 ac_cv_use_timer='wxUSE_TIMER=yes'
6123 else
6124 ac_cv_use_timer='wxUSE_TIMER=no'
6125 fi
6126
6127else
6128
6129 LINE=`grep "wxUSE_TIMER" ${wx_arg_cache_file}`
6130 if test "x$LINE" != x ; then
6131 eval "DEFAULT_$LINE"
6132 else
6133 no_cache=1
6134 fi
6135
6136 ac_cv_use_timer='wxUSE_TIMER='$DEFAULT_wxUSE_TIMER
6137
6138fi;
6139
6140 eval "$ac_cv_use_timer"
6141 if test "$no_cache" != 1; then
6142 echo $ac_cv_use_timer >> ${wx_arg_cache_file}.tmp
6143 fi
6144
6145 if test "$wxUSE_TIMER" = yes; then
6146 echo "$as_me:$LINENO: result: yes" >&5
6147echo "${ECHO_T}yes" >&6
6148 else
6149 echo "$as_me:$LINENO: result: no" >&5
6150echo "${ECHO_T}no" >&6
6151 fi
6152
6153
6154 enablestring=
6155 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-unicode" >&5
6156echo $ECHO_N "checking for --${enablestring:-enable}-unicode... $ECHO_C" >&6
6157 no_cache=0
6158 # Check whether --enable-unicode or --disable-unicode was given.
6159if test "${enable_unicode+set}" = set; then
6160 enableval="$enable_unicode"
6161
6162 if test "$enableval" = yes; then
6163 ac_cv_use_unicode='wxUSE_UNICODE=yes'
6164 else
6165 ac_cv_use_unicode='wxUSE_UNICODE=no'
6166 fi
6167
6168else
6169
6170 LINE=`grep "wxUSE_UNICODE" ${wx_arg_cache_file}`
6171 if test "x$LINE" != x ; then
6172 eval "DEFAULT_$LINE"
6173 else
6174 no_cache=1
6175 fi
6176
6177 ac_cv_use_unicode='wxUSE_UNICODE='$DEFAULT_wxUSE_UNICODE
6178
6179fi;
6180
6181 eval "$ac_cv_use_unicode"
6182 if test "$no_cache" != 1; then
6183 echo $ac_cv_use_unicode >> ${wx_arg_cache_file}.tmp
6184 fi
6185
6186 if test "$wxUSE_UNICODE" = yes; then
6187 echo "$as_me:$LINENO: result: yes" >&5
6188echo "${ECHO_T}yes" >&6
6189 else
6190 echo "$as_me:$LINENO: result: no" >&5
6191echo "${ECHO_T}no" >&6
6192 fi
6193
6194
6195 enablestring=
6196 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sound" >&5
6197echo $ECHO_N "checking for --${enablestring:-enable}-sound... $ECHO_C" >&6
6198 no_cache=0
6199 # Check whether --enable-sound or --disable-sound was given.
6200if test "${enable_sound+set}" = set; then
6201 enableval="$enable_sound"
6202
6203 if test "$enableval" = yes; then
6204 ac_cv_use_sound='wxUSE_SOUND=yes'
6205 else
6206 ac_cv_use_sound='wxUSE_SOUND=no'
6207 fi
6208
6209else
6210
6211 LINE=`grep "wxUSE_SOUND" ${wx_arg_cache_file}`
6212 if test "x$LINE" != x ; then
6213 eval "DEFAULT_$LINE"
6214 else
6215 no_cache=1
6216 fi
6217
6218 ac_cv_use_sound='wxUSE_SOUND='$DEFAULT_wxUSE_SOUND
6219
6220fi;
6221
6222 eval "$ac_cv_use_sound"
6223 if test "$no_cache" != 1; then
6224 echo $ac_cv_use_sound >> ${wx_arg_cache_file}.tmp
6225 fi
6226
6227 if test "$wxUSE_SOUND" = yes; then
6228 echo "$as_me:$LINENO: result: yes" >&5
6229echo "${ECHO_T}yes" >&6
6230 else
6231 echo "$as_me:$LINENO: result: no" >&5
6232echo "${ECHO_T}no" >&6
6233 fi
6234
6235
3b57de8b
RL
6236 enablestring=
6237 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mediactrl" >&5
6238echo $ECHO_N "checking for --${enablestring:-enable}-mediactrl... $ECHO_C" >&6
6239 no_cache=0
6240 # Check whether --enable-mediactrl or --disable-mediactrl was given.
6241if test "${enable_mediactrl+set}" = set; then
6242 enableval="$enable_mediactrl"
6243
6244 if test "$enableval" = yes; then
6245 ac_cv_use_mediactrl='wxUSE_MEDIACTRL=yes'
6246 else
6247 ac_cv_use_mediactrl='wxUSE_MEDIACTRL=no'
6248 fi
6249
6250else
6251
6252 LINE=`grep "wxUSE_MEDIACTRL" ${wx_arg_cache_file}`
6253 if test "x$LINE" != x ; then
6254 eval "DEFAULT_$LINE"
6255 else
6256 no_cache=1
6257 fi
6258
6259 ac_cv_use_mediactrl='wxUSE_MEDIACTRL='$DEFAULT_wxUSE_MEDIACTRL
6260
6261fi;
6262
6263 eval "$ac_cv_use_mediactrl"
6264 if test "$no_cache" != 1; then
6265 echo $ac_cv_use_mediactrl >> ${wx_arg_cache_file}.tmp
6266 fi
6267
6268 if test "$wxUSE_MEDIACTRL" = yes; then
6269 echo "$as_me:$LINENO: result: yes" >&5
6270echo "${ECHO_T}yes" >&6
6271 else
6272 echo "$as_me:$LINENO: result: no" >&5
6273echo "${ECHO_T}no" >&6
6274 fi
6275
6276
f10e38c4
VZ
6277 enablestring=
6278 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gstreamer8" >&5
6279echo $ECHO_N "checking for --${enablestring:-enable}-gstreamer8... $ECHO_C" >&6
6280 no_cache=0
6281 # Check whether --enable-gstreamer8 or --disable-gstreamer8 was given.
6282if test "${enable_gstreamer8+set}" = set; then
6283 enableval="$enable_gstreamer8"
6284
6285 if test "$enableval" = yes; then
6286 ac_cv_use_gstreamer8='wxUSE_GSTREAMER8=yes'
6287 else
6288 ac_cv_use_gstreamer8='wxUSE_GSTREAMER8=no'
6289 fi
6290
6291else
6292
6293 LINE=`grep "wxUSE_GSTREAMER8" ${wx_arg_cache_file}`
6294 if test "x$LINE" != x ; then
6295 eval "DEFAULT_$LINE"
6296 else
6297 no_cache=1
6298 fi
6299
6300 ac_cv_use_gstreamer8='wxUSE_GSTREAMER8='$DEFAULT_wxUSE_GSTREAMER8
6301
6302fi;
6303
6304 eval "$ac_cv_use_gstreamer8"
6305 if test "$no_cache" != 1; then
6306 echo $ac_cv_use_gstreamer8 >> ${wx_arg_cache_file}.tmp
6307 fi
6308
6309 if test "$wxUSE_GSTREAMER8" = yes; then
6310 echo "$as_me:$LINENO: result: yes" >&5
6311echo "${ECHO_T}yes" >&6
6312 else
6313 echo "$as_me:$LINENO: result: no" >&5
6314echo "${ECHO_T}no" >&6
6315 fi
6316
6317
a848cd7e
SC
6318 enablestring=
6319 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-wxprintfv" >&5
6320echo $ECHO_N "checking for --${enablestring:-enable}-wxprintfv... $ECHO_C" >&6
6321 no_cache=0
6322 # Check whether --enable-wxprintfv or --disable-wxprintfv was given.
6323if test "${enable_wxprintfv+set}" = set; then
6324 enableval="$enable_wxprintfv"
6325
6326 if test "$enableval" = yes; then
6327 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=yes'
6328 else
6329 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=no'
6330 fi
6331
6332else
6333
6334 LINE=`grep "wxUSE_EXPERIMENTAL_PRINTF" ${wx_arg_cache_file}`
6335 if test "x$LINE" != x ; then
6336 eval "DEFAULT_$LINE"
6337 else
6338 no_cache=1
6339 fi
6340
6341 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF='$DEFAULT_wxUSE_EXPERIMENTAL_PRINTF
6342
6343fi;
6344
6345 eval "$ac_cv_use_wxprintfv"
6346 if test "$no_cache" != 1; then
6347 echo $ac_cv_use_wxprintfv >> ${wx_arg_cache_file}.tmp
6348 fi
6349
6350 if test "$wxUSE_EXPERIMENTAL_PRINTF" = yes; then
6351 echo "$as_me:$LINENO: result: yes" >&5
6352echo "${ECHO_T}yes" >&6
6353 else
6354 echo "$as_me:$LINENO: result: no" >&5
6355echo "${ECHO_T}no" >&6
6356 fi
6357
6358
6359 enablestring=
6360 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-zipstream" >&5
6361echo $ECHO_N "checking for --${enablestring:-enable}-zipstream... $ECHO_C" >&6
6362 no_cache=0
6363 # Check whether --enable-zipstream or --disable-zipstream was given.
6364if test "${enable_zipstream+set}" = set; then
6365 enableval="$enable_zipstream"
6366
6367 if test "$enableval" = yes; then
6368 ac_cv_use_zipstream='wxUSE_ZIPSTREAM=yes'
6369 else
6370 ac_cv_use_zipstream='wxUSE_ZIPSTREAM=no'
6371 fi
6372
6373else
6374
6375 LINE=`grep "wxUSE_ZIPSTREAM" ${wx_arg_cache_file}`
6376 if test "x$LINE" != x ; then
6377 eval "DEFAULT_$LINE"
6378 else
6379 no_cache=1
6380 fi
6381
6382 ac_cv_use_zipstream='wxUSE_ZIPSTREAM='$DEFAULT_wxUSE_ZIPSTREAM
6383
6384fi;
6385
6386 eval "$ac_cv_use_zipstream"
6387 if test "$no_cache" != 1; then
6388 echo $ac_cv_use_zipstream >> ${wx_arg_cache_file}.tmp
6389 fi
6390
6391 if test "$wxUSE_ZIPSTREAM" = yes; then
6392 echo "$as_me:$LINENO: result: yes" >&5
6393echo "${ECHO_T}yes" >&6
6394 else
6395 echo "$as_me:$LINENO: result: no" >&5
6396echo "${ECHO_T}no" >&6
6397 fi
6398
6399
a848cd7e
SC
6400
6401 enablestring=
6402 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-url" >&5
6403echo $ECHO_N "checking for --${enablestring:-enable}-url... $ECHO_C" >&6
6404 no_cache=0
6405 # Check whether --enable-url or --disable-url was given.
6406if test "${enable_url+set}" = set; then
6407 enableval="$enable_url"
6408
6409 if test "$enableval" = yes; then
6410 ac_cv_use_url='wxUSE_URL=yes'
6411 else
6412 ac_cv_use_url='wxUSE_URL=no'
6413 fi
6414
6415else
6416
6417 LINE=`grep "wxUSE_URL" ${wx_arg_cache_file}`
6418 if test "x$LINE" != x ; then
6419 eval "DEFAULT_$LINE"
6420 else
6421 no_cache=1
6422 fi
6423
6424 ac_cv_use_url='wxUSE_URL='$DEFAULT_wxUSE_URL
6425
6426fi;
6427
6428 eval "$ac_cv_use_url"
6429 if test "$no_cache" != 1; then
6430 echo $ac_cv_use_url >> ${wx_arg_cache_file}.tmp
6431 fi
6432
6433 if test "$wxUSE_URL" = yes; then
6434 echo "$as_me:$LINENO: result: yes" >&5
6435echo "${ECHO_T}yes" >&6
6436 else
6437 echo "$as_me:$LINENO: result: no" >&5
6438echo "${ECHO_T}no" >&6
6439 fi
6440
6441
6442 enablestring=
6443 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol" >&5
6444echo $ECHO_N "checking for --${enablestring:-enable}-protocol... $ECHO_C" >&6
6445 no_cache=0
6446 # Check whether --enable-protocol or --disable-protocol was given.
6447if test "${enable_protocol+set}" = set; then
6448 enableval="$enable_protocol"
6449
6450 if test "$enableval" = yes; then
6451 ac_cv_use_protocol='wxUSE_PROTOCOL=yes'
6452 else
6453 ac_cv_use_protocol='wxUSE_PROTOCOL=no'
6454 fi
6455
6456else
6457
6458 LINE=`grep "wxUSE_PROTOCOL" ${wx_arg_cache_file}`
6459 if test "x$LINE" != x ; then
6460 eval "DEFAULT_$LINE"
6461 else
6462 no_cache=1
6463 fi
6464
6465 ac_cv_use_protocol='wxUSE_PROTOCOL='$DEFAULT_wxUSE_PROTOCOL
6466
6467fi;
6468
6469 eval "$ac_cv_use_protocol"
6470 if test "$no_cache" != 1; then
6471 echo $ac_cv_use_protocol >> ${wx_arg_cache_file}.tmp
6472 fi
6473
6474 if test "$wxUSE_PROTOCOL" = yes; then
6475 echo "$as_me:$LINENO: result: yes" >&5
6476echo "${ECHO_T}yes" >&6
6477 else
6478 echo "$as_me:$LINENO: result: no" >&5
6479echo "${ECHO_T}no" >&6
6480 fi
6481
6482
6483 enablestring=
6484 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_http" >&5
6485echo $ECHO_N "checking for --${enablestring:-enable}-protocol_http... $ECHO_C" >&6
6486 no_cache=0
6487 # Check whether --enable-protocol_http or --disable-protocol_http was given.
6488if test "${enable_protocol_http+set}" = set; then
6489 enableval="$enable_protocol_http"
6490
6491 if test "$enableval" = yes; then
6492 ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=yes'
6493 else
6494 ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=no'
6495 fi
6496
6497else
6498
6499 LINE=`grep "wxUSE_PROTOCOL_HTTP" ${wx_arg_cache_file}`
6500 if test "x$LINE" != x ; then
6501 eval "DEFAULT_$LINE"
6502 else
6503 no_cache=1
6504 fi
6505
6506 ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP='$DEFAULT_wxUSE_PROTOCOL_HTTP
6507
6508fi;
6509
6510 eval "$ac_cv_use_protocol_http"
6511 if test "$no_cache" != 1; then
6512 echo $ac_cv_use_protocol_http >> ${wx_arg_cache_file}.tmp
6513 fi
6514
6515 if test "$wxUSE_PROTOCOL_HTTP" = yes; then
6516 echo "$as_me:$LINENO: result: yes" >&5
6517echo "${ECHO_T}yes" >&6
6518 else
6519 echo "$as_me:$LINENO: result: no" >&5
6520echo "${ECHO_T}no" >&6
6521 fi
6522
6523
6524 enablestring=
6525 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_ftp" >&5
6526echo $ECHO_N "checking for --${enablestring:-enable}-protocol_ftp... $ECHO_C" >&6
6527 no_cache=0
6528 # Check whether --enable-protocol_ftp or --disable-protocol_ftp was given.
6529if test "${enable_protocol_ftp+set}" = set; then
6530 enableval="$enable_protocol_ftp"
6531
6532 if test "$enableval" = yes; then
6533 ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=yes'
6534 else
6535 ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=no'
6536 fi
6537
6538else
6539
6540 LINE=`grep "wxUSE_PROTOCOL_FTP" ${wx_arg_cache_file}`
6541 if test "x$LINE" != x ; then
6542 eval "DEFAULT_$LINE"
6543 else
6544 no_cache=1
6545 fi
6546
6547 ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP='$DEFAULT_wxUSE_PROTOCOL_FTP
6548
6549fi;
6550
6551 eval "$ac_cv_use_protocol_ftp"
6552 if test "$no_cache" != 1; then
6553 echo $ac_cv_use_protocol_ftp >> ${wx_arg_cache_file}.tmp
6554 fi
6555
6556 if test "$wxUSE_PROTOCOL_FTP" = yes; then
6557 echo "$as_me:$LINENO: result: yes" >&5
6558echo "${ECHO_T}yes" >&6
6559 else
6560 echo "$as_me:$LINENO: result: no" >&5
6561echo "${ECHO_T}no" >&6
6562 fi
6563
6564
6565 enablestring=
6566 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_file" >&5
6567echo $ECHO_N "checking for --${enablestring:-enable}-protocol_file... $ECHO_C" >&6
6568 no_cache=0
6569 # Check whether --enable-protocol_file or --disable-protocol_file was given.
6570if test "${enable_protocol_file+set}" = set; then
6571 enableval="$enable_protocol_file"
6572
6573 if test "$enableval" = yes; then
6574 ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=yes'
6575 else
6576 ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=no'
6577 fi
6578
6579else
6580
6581 LINE=`grep "wxUSE_PROTOCOL_FILE" ${wx_arg_cache_file}`
6582 if test "x$LINE" != x ; then
6583 eval "DEFAULT_$LINE"
6584 else
6585 no_cache=1
6586 fi
6587
6588 ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE='$DEFAULT_wxUSE_PROTOCOL_FILE
6589
6590fi;
6591
6592 eval "$ac_cv_use_protocol_file"
6593 if test "$no_cache" != 1; then
6594 echo $ac_cv_use_protocol_file >> ${wx_arg_cache_file}.tmp
6595 fi
6596
6597 if test "$wxUSE_PROTOCOL_FILE" = yes; then
6598 echo "$as_me:$LINENO: result: yes" >&5
6599echo "${ECHO_T}yes" >&6
6600 else
6601 echo "$as_me:$LINENO: result: no" >&5
6602echo "${ECHO_T}no" >&6
6603 fi
6604
6605
6606
6607
6608
6609 enablestring=
6610 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-threads" >&5
6611echo $ECHO_N "checking for --${enablestring:-enable}-threads... $ECHO_C" >&6
6612 no_cache=0
6613 # Check whether --enable-threads or --disable-threads was given.
6614if test "${enable_threads+set}" = set; then
6615 enableval="$enable_threads"
6616
6617 if test "$enableval" = yes; then
6618 ac_cv_use_threads='wxUSE_THREADS=yes'
6619 else
6620 ac_cv_use_threads='wxUSE_THREADS=no'
6621 fi
6622
6623else
6624
6625 LINE=`grep "wxUSE_THREADS" ${wx_arg_cache_file}`
6626 if test "x$LINE" != x ; then
6627 eval "DEFAULT_$LINE"
6628 else
6629 no_cache=1
6630 fi
6631
6632 ac_cv_use_threads='wxUSE_THREADS='$DEFAULT_wxUSE_THREADS
6633
6634fi;
6635
6636 eval "$ac_cv_use_threads"
6637 if test "$no_cache" != 1; then
6638 echo $ac_cv_use_threads >> ${wx_arg_cache_file}.tmp
6639 fi
6640
6641 if test "$wxUSE_THREADS" = yes; then
6642 echo "$as_me:$LINENO: result: yes" >&5
6643echo "${ECHO_T}yes" >&6
6644 else
6645 echo "$as_me:$LINENO: result: no" >&5
6646echo "${ECHO_T}no" >&6
6647 fi
6648
6649
6650if test "$wxUSE_GUI" = "yes"; then
6651
6652
6653
6654 enablestring=
6655 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-docview" >&5
6656echo $ECHO_N "checking for --${enablestring:-enable}-docview... $ECHO_C" >&6
6657 no_cache=0
6658 # Check whether --enable-docview or --disable-docview was given.
6659if test "${enable_docview+set}" = set; then
6660 enableval="$enable_docview"
6661
6662 if test "$enableval" = yes; then
6663 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=yes'
6664 else
6665 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=no'
6666 fi
6667
6668else
6669
6670 LINE=`grep "wxUSE_DOC_VIEW_ARCHITECTURE" ${wx_arg_cache_file}`
6671 if test "x$LINE" != x ; then
6672 eval "DEFAULT_$LINE"
6673 else
6674 no_cache=1
6675 fi
6676
6677 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE='$DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE
6678
6679fi;
6680
6681 eval "$ac_cv_use_docview"
6682 if test "$no_cache" != 1; then
6683 echo $ac_cv_use_docview >> ${wx_arg_cache_file}.tmp
6684 fi
6685
6686 if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = yes; then
6687 echo "$as_me:$LINENO: result: yes" >&5
6688echo "${ECHO_T}yes" >&6
6689 else
6690 echo "$as_me:$LINENO: result: no" >&5
6691echo "${ECHO_T}no" >&6
6692 fi
6693
6694
6695 enablestring=
6696 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-help" >&5
6697echo $ECHO_N "checking for --${enablestring:-enable}-help... $ECHO_C" >&6
6698 no_cache=0
6699 # Check whether --enable-help or --disable-help was given.
6700if test "${enable_help+set}" = set; then
6701 enableval="$enable_help"
6702
6703 if test "$enableval" = yes; then
6704 ac_cv_use_help='wxUSE_HELP=yes'
6705 else
6706 ac_cv_use_help='wxUSE_HELP=no'
6707 fi
6708
6709else
6710
6711 LINE=`grep "wxUSE_HELP" ${wx_arg_cache_file}`
6712 if test "x$LINE" != x ; then
6713 eval "DEFAULT_$LINE"
6714 else
6715 no_cache=1
6716 fi
6717
6718 ac_cv_use_help='wxUSE_HELP='$DEFAULT_wxUSE_HELP
6719
6720fi;
6721
6722 eval "$ac_cv_use_help"
6723 if test "$no_cache" != 1; then
6724 echo $ac_cv_use_help >> ${wx_arg_cache_file}.tmp
6725 fi
6726
6727 if test "$wxUSE_HELP" = yes; then
6728 echo "$as_me:$LINENO: result: yes" >&5
6729echo "${ECHO_T}yes" >&6
6730 else
6731 echo "$as_me:$LINENO: result: no" >&5
6732echo "${ECHO_T}no" >&6
6733 fi
6734
6735
6736 enablestring=
6737 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mshtmlhelp" >&5
6738echo $ECHO_N "checking for --${enablestring:-enable}-mshtmlhelp... $ECHO_C" >&6
6739 no_cache=0
6740 # Check whether --enable-mshtmlhelp or --disable-mshtmlhelp was given.
6741if test "${enable_mshtmlhelp+set}" = set; then
6742 enableval="$enable_mshtmlhelp"
6743
6744 if test "$enableval" = yes; then
6745 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=yes'
6746 else
6747 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=no'
6748 fi
6749
6750else
6751
6752 LINE=`grep "wxUSE_MS_HTML_HELP" ${wx_arg_cache_file}`
6753 if test "x$LINE" != x ; then
6754 eval "DEFAULT_$LINE"
6755 else
6756 no_cache=1
6757 fi
6758
6759 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP='$DEFAULT_wxUSE_MS_HTML_HELP
6760
6761fi;
6762
6763 eval "$ac_cv_use_mshtmlhelp"
6764 if test "$no_cache" != 1; then
6765 echo $ac_cv_use_mshtmlhelp >> ${wx_arg_cache_file}.tmp
6766 fi
6767
6768 if test "$wxUSE_MS_HTML_HELP" = yes; then
6769 echo "$as_me:$LINENO: result: yes" >&5
6770echo "${ECHO_T}yes" >&6
6771 else
6772 echo "$as_me:$LINENO: result: no" >&5
6773echo "${ECHO_T}no" >&6
6774 fi
6775
6776
6777 enablestring=
6778 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-html" >&5
6779echo $ECHO_N "checking for --${enablestring:-enable}-html... $ECHO_C" >&6
6780 no_cache=0
6781 # Check whether --enable-html or --disable-html was given.
6782if test "${enable_html+set}" = set; then
6783 enableval="$enable_html"
6784
6785 if test "$enableval" = yes; then
6786 ac_cv_use_html='wxUSE_HTML=yes'
6787 else
6788 ac_cv_use_html='wxUSE_HTML=no'
6789 fi
6790
6791else
6792
6793 LINE=`grep "wxUSE_HTML" ${wx_arg_cache_file}`
6794 if test "x$LINE" != x ; then
6795 eval "DEFAULT_$LINE"
6796 else
6797 no_cache=1
6798 fi
6799
6800 ac_cv_use_html='wxUSE_HTML='$DEFAULT_wxUSE_HTML
6801
6802fi;
6803
6804 eval "$ac_cv_use_html"
6805 if test "$no_cache" != 1; then
6806 echo $ac_cv_use_html >> ${wx_arg_cache_file}.tmp
6807 fi
6808
6809 if test "$wxUSE_HTML" = yes; then
6810 echo "$as_me:$LINENO: result: yes" >&5
6811echo "${ECHO_T}yes" >&6
6812 else
6813 echo "$as_me:$LINENO: result: no" >&5
6814echo "${ECHO_T}no" >&6
6815 fi
6816
6817
6818 enablestring=
6819 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-htmlhelp" >&5
6820echo $ECHO_N "checking for --${enablestring:-enable}-htmlhelp... $ECHO_C" >&6
6821 no_cache=0
6822 # Check whether --enable-htmlhelp or --disable-htmlhelp was given.
6823if test "${enable_htmlhelp+set}" = set; then
6824 enableval="$enable_htmlhelp"
6825
6826 if test "$enableval" = yes; then
6827 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=yes'
6828 else
6829 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=no'
6830 fi
6831
6832else
6833
6834 LINE=`grep "wxUSE_WXHTML_HELP" ${wx_arg_cache_file}`
6835 if test "x$LINE" != x ; then
6836 eval "DEFAULT_$LINE"
6837 else
6838 no_cache=1
6839 fi
6840
6841 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP='$DEFAULT_wxUSE_WXHTML_HELP
6842
6843fi;
6844
6845 eval "$ac_cv_use_htmlhelp"
6846 if test "$no_cache" != 1; then
6847 echo $ac_cv_use_htmlhelp >> ${wx_arg_cache_file}.tmp
6848 fi
6849
6850 if test "$wxUSE_WXHTML_HELP" = yes; then
6851 echo "$as_me:$LINENO: result: yes" >&5
6852echo "${ECHO_T}yes" >&6
6853 else
6854 echo "$as_me:$LINENO: result: no" >&5
6855echo "${ECHO_T}no" >&6
6856 fi
6857
6858
9a8f0513
VS
6859 enablestring=
6860 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-xrc" >&5
6861echo $ECHO_N "checking for --${enablestring:-enable}-xrc... $ECHO_C" >&6
6862 no_cache=0
6863 # Check whether --enable-xrc or --disable-xrc was given.
6864if test "${enable_xrc+set}" = set; then
6865 enableval="$enable_xrc"
6866
6867 if test "$enableval" = yes; then
6868 ac_cv_use_xrc='wxUSE_XRC=yes'
6869 else
6870 ac_cv_use_xrc='wxUSE_XRC=no'
6871 fi
6872
6873else
6874
6875 LINE=`grep "wxUSE_XRC" ${wx_arg_cache_file}`
6876 if test "x$LINE" != x ; then
6877 eval "DEFAULT_$LINE"
6878 else
6879 no_cache=1
6880 fi
6881
6882 ac_cv_use_xrc='wxUSE_XRC='$DEFAULT_wxUSE_XRC
6883
6884fi;
6885
6886 eval "$ac_cv_use_xrc"
6887 if test "$no_cache" != 1; then
6888 echo $ac_cv_use_xrc >> ${wx_arg_cache_file}.tmp
6889 fi
6890
6891 if test "$wxUSE_XRC" = yes; then
6892 echo "$as_me:$LINENO: result: yes" >&5
6893echo "${ECHO_T}yes" >&6
6894 else
6895 echo "$as_me:$LINENO: result: no" >&5
6896echo "${ECHO_T}no" >&6
6897 fi
6898
6899
3f60522a
JS
6900 enablestring=
6901 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-aui" >&5
6902echo $ECHO_N "checking for --${enablestring:-enable}-aui... $ECHO_C" >&6
6903 no_cache=0
6904 # Check whether --enable-aui or --disable-aui was given.
6905if test "${enable_aui+set}" = set; then
6906 enableval="$enable_aui"
6907
6908 if test "$enableval" = yes; then
6909 ac_cv_use_aui='wxUSE_AUI=yes'
6910 else
6911 ac_cv_use_aui='wxUSE_AUI=no'
6912 fi
6913
6914else
6915
6916 LINE=`grep "wxUSE_AUI" ${wx_arg_cache_file}`
6917 if test "x$LINE" != x ; then
6918 eval "DEFAULT_$LINE"
6919 else
6920 no_cache=1
6921 fi
6922
6923 ac_cv_use_aui='wxUSE_AUI='$DEFAULT_wxUSE_AUI
6924
6925fi;
6926
6927 eval "$ac_cv_use_aui"
6928 if test "$no_cache" != 1; then
6929 echo $ac_cv_use_aui >> ${wx_arg_cache_file}.tmp
6930 fi
6931
6932 if test "$wxUSE_AUI" = yes; then
6933 echo "$as_me:$LINENO: result: yes" >&5
6934echo "${ECHO_T}yes" >&6
6935 else
6936 echo "$as_me:$LINENO: result: no" >&5
6937echo "${ECHO_T}no" >&6
6938 fi
6939
6940
a848cd7e
SC
6941 enablestring=
6942 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-constraints" >&5
6943echo $ECHO_N "checking for --${enablestring:-enable}-constraints... $ECHO_C" >&6
6944 no_cache=0
6945 # Check whether --enable-constraints or --disable-constraints was given.
6946if test "${enable_constraints+set}" = set; then
6947 enableval="$enable_constraints"
6948
6949 if test "$enableval" = yes; then
6950 ac_cv_use_constraints='wxUSE_CONSTRAINTS=yes'
6951 else
6952 ac_cv_use_constraints='wxUSE_CONSTRAINTS=no'
6953 fi
6954
6955else
6956
6957 LINE=`grep "wxUSE_CONSTRAINTS" ${wx_arg_cache_file}`
6958 if test "x$LINE" != x ; then
6959 eval "DEFAULT_$LINE"
6960 else
6961 no_cache=1
6962 fi
6963
6964 ac_cv_use_constraints='wxUSE_CONSTRAINTS='$DEFAULT_wxUSE_CONSTRAINTS
6965
6966fi;
6967
6968 eval "$ac_cv_use_constraints"
6969 if test "$no_cache" != 1; then
6970 echo $ac_cv_use_constraints >> ${wx_arg_cache_file}.tmp
6971 fi
6972
6973 if test "$wxUSE_CONSTRAINTS" = yes; then
6974 echo "$as_me:$LINENO: result: yes" >&5
6975echo "${ECHO_T}yes" >&6
6976 else
6977 echo "$as_me:$LINENO: result: no" >&5
6978echo "${ECHO_T}no" >&6
6979 fi
6980
6981
6982 enablestring=
6983 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-printarch" >&5
6984echo $ECHO_N "checking for --${enablestring:-enable}-printarch... $ECHO_C" >&6
6985 no_cache=0
6986 # Check whether --enable-printarch or --disable-printarch was given.
6987if test "${enable_printarch+set}" = set; then
6988 enableval="$enable_printarch"
6989
6990 if test "$enableval" = yes; then
6991 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=yes'
6992 else
6993 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=no'
6994 fi
6995
6996else
6997
6998 LINE=`grep "wxUSE_PRINTING_ARCHITECTURE" ${wx_arg_cache_file}`
6999 if test "x$LINE" != x ; then
7000 eval "DEFAULT_$LINE"
7001 else
7002 no_cache=1
7003 fi
7004
7005 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE='$DEFAULT_wxUSE_PRINTING_ARCHITECTURE
7006
7007fi;
7008
7009 eval "$ac_cv_use_printarch"
7010 if test "$no_cache" != 1; then
7011 echo $ac_cv_use_printarch >> ${wx_arg_cache_file}.tmp
7012 fi
7013
7014 if test "$wxUSE_PRINTING_ARCHITECTURE" = yes; then
7015 echo "$as_me:$LINENO: result: yes" >&5
7016echo "${ECHO_T}yes" >&6
7017 else
7018 echo "$as_me:$LINENO: result: no" >&5
7019echo "${ECHO_T}no" >&6
7020 fi
7021
7022
7023 enablestring=
7024 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mdi" >&5
7025echo $ECHO_N "checking for --${enablestring:-enable}-mdi... $ECHO_C" >&6
7026 no_cache=0
7027 # Check whether --enable-mdi or --disable-mdi was given.
7028if test "${enable_mdi+set}" = set; then
7029 enableval="$enable_mdi"
7030
7031 if test "$enableval" = yes; then
8a7b1113 7032 ac_cv_use_mdi='wxUSE_MDI=yes'
a848cd7e 7033 else
8a7b1113 7034 ac_cv_use_mdi='wxUSE_MDI=no'
a848cd7e
SC
7035 fi
7036
7037else
7038
8a7b1113 7039 LINE=`grep "wxUSE_MDI" ${wx_arg_cache_file}`
a848cd7e
SC
7040 if test "x$LINE" != x ; then
7041 eval "DEFAULT_$LINE"
7042 else
7043 no_cache=1
7044 fi
7045
8a7b1113 7046 ac_cv_use_mdi='wxUSE_MDI='$DEFAULT_wxUSE_MDI
a848cd7e
SC
7047
7048fi;
7049
7050 eval "$ac_cv_use_mdi"
7051 if test "$no_cache" != 1; then
7052 echo $ac_cv_use_mdi >> ${wx_arg_cache_file}.tmp
7053 fi
7054
8a7b1113
VZ
7055 if test "$wxUSE_MDI" = yes; then
7056 echo "$as_me:$LINENO: result: yes" >&5
7057echo "${ECHO_T}yes" >&6
7058 else
7059 echo "$as_me:$LINENO: result: no" >&5
7060echo "${ECHO_T}no" >&6
7061 fi
7062
7063
7064 enablestring=
7065 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mdidoc" >&5
7066echo $ECHO_N "checking for --${enablestring:-enable}-mdidoc... $ECHO_C" >&6
7067 no_cache=0
7068 # Check whether --enable-mdidoc or --disable-mdidoc was given.
7069if test "${enable_mdidoc+set}" = set; then
7070 enableval="$enable_mdidoc"
7071
7072 if test "$enableval" = yes; then
7073 ac_cv_use_mdidoc='wxUSE_MDI_ARCHITECTURE=yes'
7074 else
7075 ac_cv_use_mdidoc='wxUSE_MDI_ARCHITECTURE=no'
7076 fi
7077
7078else
7079
7080 LINE=`grep "wxUSE_MDI_ARCHITECTURE" ${wx_arg_cache_file}`
7081 if test "x$LINE" != x ; then
7082 eval "DEFAULT_$LINE"
7083 else
7084 no_cache=1
7085 fi
7086
7087 ac_cv_use_mdidoc='wxUSE_MDI_ARCHITECTURE='$DEFAULT_wxUSE_MDI_ARCHITECTURE
7088
7089fi;
7090
7091 eval "$ac_cv_use_mdidoc"
7092 if test "$no_cache" != 1; then
7093 echo $ac_cv_use_mdidoc >> ${wx_arg_cache_file}.tmp
7094 fi
7095
a848cd7e
SC
7096 if test "$wxUSE_MDI_ARCHITECTURE" = yes; then
7097 echo "$as_me:$LINENO: result: yes" >&5
7098echo "${ECHO_T}yes" >&6
7099 else
7100 echo "$as_me:$LINENO: result: no" >&5
7101echo "${ECHO_T}no" >&6
7102 fi
7103
7104
7105 enablestring=
7106 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-loggui" >&5
7107echo $ECHO_N "checking for --${enablestring:-enable}-loggui... $ECHO_C" >&6
7108 no_cache=0
7109 # Check whether --enable-loggui or --disable-loggui was given.
7110if test "${enable_loggui+set}" = set; then
7111 enableval="$enable_loggui"
7112
7113 if test "$enableval" = yes; then
7114 ac_cv_use_loggui='wxUSE_LOGGUI=yes'
7115 else
7116 ac_cv_use_loggui='wxUSE_LOGGUI=no'
7117 fi
7118
7119else
7120
7121 LINE=`grep "wxUSE_LOGGUI" ${wx_arg_cache_file}`
7122 if test "x$LINE" != x ; then
7123 eval "DEFAULT_$LINE"
7124 else
7125 no_cache=1
7126 fi
7127
7128 ac_cv_use_loggui='wxUSE_LOGGUI='$DEFAULT_wxUSE_LOGGUI
7129
7130fi;
7131
7132 eval "$ac_cv_use_loggui"
7133 if test "$no_cache" != 1; then
7134 echo $ac_cv_use_loggui >> ${wx_arg_cache_file}.tmp
7135 fi
7136
7137 if test "$wxUSE_LOGGUI" = yes; then
7138 echo "$as_me:$LINENO: result: yes" >&5
7139echo "${ECHO_T}yes" >&6
7140 else
7141 echo "$as_me:$LINENO: result: no" >&5
7142echo "${ECHO_T}no" >&6
7143 fi
7144
7145
7146 enablestring=
7147 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-logwin" >&5
7148echo $ECHO_N "checking for --${enablestring:-enable}-logwin... $ECHO_C" >&6
7149 no_cache=0
7150 # Check whether --enable-logwin or --disable-logwin was given.
7151if test "${enable_logwin+set}" = set; then
7152 enableval="$enable_logwin"
7153
7154 if test "$enableval" = yes; then
7155 ac_cv_use_logwin='wxUSE_LOGWINDOW=yes'
7156 else
7157 ac_cv_use_logwin='wxUSE_LOGWINDOW=no'
7158 fi
7159
7160else
7161
7162 LINE=`grep "wxUSE_LOGWINDOW" ${wx_arg_cache_file}`
7163 if test "x$LINE" != x ; then
7164 eval "DEFAULT_$LINE"
7165 else
7166 no_cache=1
7167 fi
7168
7169 ac_cv_use_logwin='wxUSE_LOGWINDOW='$DEFAULT_wxUSE_LOGWINDOW
7170
7171fi;
7172
7173 eval "$ac_cv_use_logwin"
7174 if test "$no_cache" != 1; then
7175 echo $ac_cv_use_logwin >> ${wx_arg_cache_file}.tmp
7176 fi
7177
7178 if test "$wxUSE_LOGWINDOW" = yes; then
7179 echo "$as_me:$LINENO: result: yes" >&5
7180echo "${ECHO_T}yes" >&6
7181 else
7182 echo "$as_me:$LINENO: result: no" >&5
7183echo "${ECHO_T}no" >&6
7184 fi
7185
7186
7187 enablestring=
7188 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-logdialog" >&5
7189echo $ECHO_N "checking for --${enablestring:-enable}-logdialog... $ECHO_C" >&6
7190 no_cache=0
7191 # Check whether --enable-logdialog or --disable-logdialog was given.
7192if test "${enable_logdialog+set}" = set; then
7193 enableval="$enable_logdialog"
7194
7195 if test "$enableval" = yes; then
7196 ac_cv_use_logdialog='wxUSE_LOGDIALOG=yes'
7197 else
7198 ac_cv_use_logdialog='wxUSE_LOGDIALOG=no'
7199 fi
7200
7201else
7202
7203 LINE=`grep "wxUSE_LOGDIALOG" ${wx_arg_cache_file}`
7204 if test "x$LINE" != x ; then
7205 eval "DEFAULT_$LINE"
7206 else
7207 no_cache=1
7208 fi
7209
7210 ac_cv_use_logdialog='wxUSE_LOGDIALOG='$DEFAULT_wxUSE_LOGDIALOG
7211
7212fi;
7213
7214 eval "$ac_cv_use_logdialog"
7215 if test "$no_cache" != 1; then
7216 echo $ac_cv_use_logdialog >> ${wx_arg_cache_file}.tmp
7217 fi
7218
7219 if test "$wxUSE_LOGDIALOG" = yes; then
7220 echo "$as_me:$LINENO: result: yes" >&5
7221echo "${ECHO_T}yes" >&6
7222 else
7223 echo "$as_me:$LINENO: result: no" >&5
7224echo "${ECHO_T}no" >&6
7225 fi
7226
7227
646b6ec1
VS
7228 enablestring=
7229 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-webkit" >&5
7230echo $ECHO_N "checking for --${enablestring:-enable}-webkit... $ECHO_C" >&6
7231 no_cache=0
7232 # Check whether --enable-webkit or --disable-webkit was given.
7233if test "${enable_webkit+set}" = set; then
7234 enableval="$enable_webkit"
7235
7236 if test "$enableval" = yes; then
7237 ac_cv_use_webkit='wxUSE_WEBKIT=yes'
7238 else
7239 ac_cv_use_webkit='wxUSE_WEBKIT=no'
7240 fi
7241
7242else
7243
7244 LINE=`grep "wxUSE_WEBKIT" ${wx_arg_cache_file}`
7245 if test "x$LINE" != x ; then
7246 eval "DEFAULT_$LINE"
7247 else
7248 no_cache=1
7249 fi
7250
7251 ac_cv_use_webkit='wxUSE_WEBKIT='$DEFAULT_wxUSE_WEBKIT
7252
7253fi;
7254
7255 eval "$ac_cv_use_webkit"
7256 if test "$no_cache" != 1; then
7257 echo $ac_cv_use_webkit >> ${wx_arg_cache_file}.tmp
7258 fi
7259
7260 if test "$wxUSE_WEBKIT" = yes; then
7261 echo "$as_me:$LINENO: result: yes" >&5
7262echo "${ECHO_T}yes" >&6
7263 else
7264 echo "$as_me:$LINENO: result: no" >&5
7265echo "${ECHO_T}no" >&6
7266 fi
7267
7268
91dea314
MW
7269 enablestring=
7270 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-html" >&5
7271echo $ECHO_N "checking for --${enablestring:-enable}-html... $ECHO_C" >&6
7272 no_cache=0
7273 # Check whether --enable-html or --disable-html was given.
7274if test "${enable_html+set}" = set; then
7275 enableval="$enable_html"
7276
7277 if test "$enableval" = yes; then
7278 ac_cv_use_html='wxUSE_RICHTEXT=yes'
7279 else
7280 ac_cv_use_html='wxUSE_RICHTEXT=no'
7281 fi
7282
7283else
7284
7285 LINE=`grep "wxUSE_RICHTEXT" ${wx_arg_cache_file}`
7286 if test "x$LINE" != x ; then
7287 eval "DEFAULT_$LINE"
7288 else
7289 no_cache=1
7290 fi
7291
7292 ac_cv_use_html='wxUSE_RICHTEXT='$DEFAULT_wxUSE_RICHTEXT
7293
7294fi;
7295
7296 eval "$ac_cv_use_html"
7297 if test "$no_cache" != 1; then
7298 echo $ac_cv_use_html >> ${wx_arg_cache_file}.tmp
7299 fi
7300
7301 if test "$wxUSE_RICHTEXT" = yes; then
7302 echo "$as_me:$LINENO: result: yes" >&5
7303echo "${ECHO_T}yes" >&6
7304 else
7305 echo "$as_me:$LINENO: result: no" >&5
7306echo "${ECHO_T}no" >&6
7307 fi
7308
7309
a848cd7e
SC
7310
7311 enablestring=
7312 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-postscript" >&5
7313echo $ECHO_N "checking for --${enablestring:-enable}-postscript... $ECHO_C" >&6
7314 no_cache=0
7315 # Check whether --enable-postscript or --disable-postscript was given.
7316if test "${enable_postscript+set}" = set; then
7317 enableval="$enable_postscript"
7318
7319 if test "$enableval" = yes; then
7320 ac_cv_use_postscript='wxUSE_POSTSCRIPT=yes'
7321 else
7322 ac_cv_use_postscript='wxUSE_POSTSCRIPT=no'
7323 fi
7324
7325else
7326
7327 LINE=`grep "wxUSE_POSTSCRIPT" ${wx_arg_cache_file}`
7328 if test "x$LINE" != x ; then
7329 eval "DEFAULT_$LINE"
7330 else
7331 no_cache=1
7332 fi
7333
7334 ac_cv_use_postscript='wxUSE_POSTSCRIPT='$DEFAULT_wxUSE_POSTSCRIPT
7335
7336fi;
7337
7338 eval "$ac_cv_use_postscript"
7339 if test "$no_cache" != 1; then
7340 echo $ac_cv_use_postscript >> ${wx_arg_cache_file}.tmp
7341 fi
7342
7343 if test "$wxUSE_POSTSCRIPT" = yes; then
7344 echo "$as_me:$LINENO: result: yes" >&5
7345echo "${ECHO_T}yes" >&6
7346 else
7347 echo "$as_me:$LINENO: result: no" >&5
7348echo "${ECHO_T}no" >&6
7349 fi
7350
7351
7352
7353
7354
7355 enablestring=
7356 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-prologio" >&5
7357echo $ECHO_N "checking for --${enablestring:-enable}-prologio... $ECHO_C" >&6
7358 no_cache=0
7359 # Check whether --enable-prologio or --disable-prologio was given.
7360if test "${enable_prologio+set}" = set; then
7361 enableval="$enable_prologio"
7362
7363 if test "$enableval" = yes; then
7364 ac_cv_use_prologio='wxUSE_PROLOGIO=yes'
7365 else
7366 ac_cv_use_prologio='wxUSE_PROLOGIO=no'
7367 fi
7368
7369else
7370
7371 LINE=`grep "wxUSE_PROLOGIO" ${wx_arg_cache_file}`
7372 if test "x$LINE" != x ; then
7373 eval "DEFAULT_$LINE"
7374 else
7375 no_cache=1
7376 fi
7377
7378 ac_cv_use_prologio='wxUSE_PROLOGIO='$DEFAULT_wxUSE_PROLOGIO
7379
7380fi;
7381
7382 eval "$ac_cv_use_prologio"
7383 if test "$no_cache" != 1; then
7384 echo $ac_cv_use_prologio >> ${wx_arg_cache_file}.tmp
7385 fi
7386
7387 if test "$wxUSE_PROLOGIO" = yes; then
7388 echo "$as_me:$LINENO: result: yes" >&5
7389echo "${ECHO_T}yes" >&6
7390 else
7391 echo "$as_me:$LINENO: result: no" >&5
7392echo "${ECHO_T}no" >&6
7393 fi
7394
7395
7396 enablestring=
7397 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-resources" >&5
7398echo $ECHO_N "checking for --${enablestring:-enable}-resources... $ECHO_C" >&6
7399 no_cache=0
7400 # Check whether --enable-resources or --disable-resources was given.
7401if test "${enable_resources+set}" = set; then
7402 enableval="$enable_resources"
7403
7404 if test "$enableval" = yes; then
7405 ac_cv_use_resources='wxUSE_RESOURCES=yes'
7406 else
7407 ac_cv_use_resources='wxUSE_RESOURCES=no'
7408 fi
7409
7410else
7411
7412 LINE=`grep "wxUSE_RESOURCES" ${wx_arg_cache_file}`
7413 if test "x$LINE" != x ; then
7414 eval "DEFAULT_$LINE"
7415 else
7416 no_cache=1
7417 fi
7418
7419 ac_cv_use_resources='wxUSE_RESOURCES='$DEFAULT_wxUSE_RESOURCES
7420
7421fi;
7422
7423 eval "$ac_cv_use_resources"
7424 if test "$no_cache" != 1; then
7425 echo $ac_cv_use_resources >> ${wx_arg_cache_file}.tmp
7426 fi
7427
7428 if test "$wxUSE_RESOURCES" = yes; then
7429 echo "$as_me:$LINENO: result: yes" >&5
7430echo "${ECHO_T}yes" >&6
7431 else
7432 echo "$as_me:$LINENO: result: no" >&5
7433echo "${ECHO_T}no" >&6
7434 fi
7435
7436
7437
7438
7439 enablestring=
7440 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-clipboard" >&5
7441echo $ECHO_N "checking for --${enablestring:-enable}-clipboard... $ECHO_C" >&6
7442 no_cache=0
7443 # Check whether --enable-clipboard or --disable-clipboard was given.
7444if test "${enable_clipboard+set}" = set; then
7445 enableval="$enable_clipboard"
7446
7447 if test "$enableval" = yes; then
7448 ac_cv_use_clipboard='wxUSE_CLIPBOARD=yes'
7449 else
7450 ac_cv_use_clipboard='wxUSE_CLIPBOARD=no'
7451 fi
7452
7453else
7454
7455 LINE=`grep "wxUSE_CLIPBOARD" ${wx_arg_cache_file}`
7456 if test "x$LINE" != x ; then
7457 eval "DEFAULT_$LINE"
7458 else
7459 no_cache=1
7460 fi
7461
7462 ac_cv_use_clipboard='wxUSE_CLIPBOARD='$DEFAULT_wxUSE_CLIPBOARD
7463
7464fi;
7465
7466 eval "$ac_cv_use_clipboard"
7467 if test "$no_cache" != 1; then
7468 echo $ac_cv_use_clipboard >> ${wx_arg_cache_file}.tmp
7469 fi
7470
7471 if test "$wxUSE_CLIPBOARD" = yes; then
7472 echo "$as_me:$LINENO: result: yes" >&5
7473echo "${ECHO_T}yes" >&6
7474 else
7475 echo "$as_me:$LINENO: result: no" >&5
7476echo "${ECHO_T}no" >&6
7477 fi
7478
7479
7480 enablestring=
7481 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dnd" >&5
7482echo $ECHO_N "checking for --${enablestring:-enable}-dnd... $ECHO_C" >&6
7483 no_cache=0
7484 # Check whether --enable-dnd or --disable-dnd was given.
7485if test "${enable_dnd+set}" = set; then
7486 enableval="$enable_dnd"
7487
7488 if test "$enableval" = yes; then
7489 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=yes'
7490 else
7491 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=no'
7492 fi
7493
7494else
7495
7496 LINE=`grep "wxUSE_DRAG_AND_DROP" ${wx_arg_cache_file}`
7497 if test "x$LINE" != x ; then
7498 eval "DEFAULT_$LINE"
7499 else
7500 no_cache=1
7501 fi
7502
7503 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP='$DEFAULT_wxUSE_DRAG_AND_DROP
7504
7505fi;
7506
7507 eval "$ac_cv_use_dnd"
7508 if test "$no_cache" != 1; then
7509 echo $ac_cv_use_dnd >> ${wx_arg_cache_file}.tmp
7510 fi
7511
7512 if test "$wxUSE_DRAG_AND_DROP" = yes; then
7513 echo "$as_me:$LINENO: result: yes" >&5
7514echo "${ECHO_T}yes" >&6
7515 else
7516 echo "$as_me:$LINENO: result: no" >&5
7517echo "${ECHO_T}no" >&6
7518 fi
7519
7520
7521 enablestring=
7522 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-metafile" >&5
7523echo $ECHO_N "checking for --${enablestring:-enable}-metafile... $ECHO_C" >&6
7524 no_cache=0
7525 # Check whether --enable-metafile or --disable-metafile was given.
7526if test "${enable_metafile+set}" = set; then
7527 enableval="$enable_metafile"
7528
7529 if test "$enableval" = yes; then
7530 ac_cv_use_metafile='wxUSE_METAFILE=yes'
7531 else
7532 ac_cv_use_metafile='wxUSE_METAFILE=no'
7533 fi
7534
7535else
7536
7537 LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}`
7538 if test "x$LINE" != x ; then
7539 eval "DEFAULT_$LINE"
7540 else
7541 no_cache=1
7542 fi
7543
7544 ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE
7545
7546fi;
7547
7548 eval "$ac_cv_use_metafile"
7549 if test "$no_cache" != 1; then
7550 echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp
7551 fi
7552
7553 if test "$wxUSE_METAFILE" = yes; then
7554 echo "$as_me:$LINENO: result: yes" >&5
7555echo "${ECHO_T}yes" >&6
7556 else
7557 echo "$as_me:$LINENO: result: no" >&5
7558echo "${ECHO_T}no" >&6
7559 fi
7560
7561
7562
7563
7564
7565 enablestring=
7566 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-controls" >&5
7567echo $ECHO_N "checking for --${enablestring:-enable}-controls... $ECHO_C" >&6
7568 no_cache=0
7569 # Check whether --enable-controls or --disable-controls was given.
7570if test "${enable_controls+set}" = set; then
7571 enableval="$enable_controls"
7572
7573 if test "$enableval" = yes; then
7574 ac_cv_use_controls='wxUSE_CONTROLS=yes'
7575 else
7576 ac_cv_use_controls='wxUSE_CONTROLS=no'
7577 fi
7578
7579else
7580
7581 LINE=`grep "wxUSE_CONTROLS" ${wx_arg_cache_file}`
7582 if test "x$LINE" != x ; then
7583 eval "DEFAULT_$LINE"
7584 else
7585 no_cache=1
7586 fi
7587
7588 ac_cv_use_controls='wxUSE_CONTROLS='$DEFAULT_wxUSE_CONTROLS
7589
7590fi;
7591
7592 eval "$ac_cv_use_controls"
7593 if test "$no_cache" != 1; then
7594 echo $ac_cv_use_controls >> ${wx_arg_cache_file}.tmp
7595 fi
7596
7597 if test "$wxUSE_CONTROLS" = yes; then
7598 echo "$as_me:$LINENO: result: yes" >&5
7599echo "${ECHO_T}yes" >&6
7600 else
7601 echo "$as_me:$LINENO: result: no" >&5
7602echo "${ECHO_T}no" >&6
7603 fi
7604
7605
7606if test "$wxUSE_CONTROLS" = "yes"; then
7607 DEFAULT_wxUSE_ACCEL=yes
7608 DEFAULT_wxUSE_BMPBUTTON=yes
7609 DEFAULT_wxUSE_BUTTON=yes
da98e9be 7610 DEFAULT_wxUSE_CALCTRL=yes
a848cd7e
SC
7611 DEFAULT_wxUSE_CARET=yes
7612 DEFAULT_wxUSE_COMBOBOX=yes
7613 DEFAULT_wxUSE_CHECKBOX=yes
7614 DEFAULT_wxUSE_CHECKLISTBOX=yes
7615 DEFAULT_wxUSE_CHOICE=yes
92bbdbcd 7616 DEFAULT_wxUSE_CHOICEBOOK=yes
e9263684
VZ
7617 DEFAULT_wxUSE_COLOURPICKERCTRL=yes
7618 DEFAULT_wxUSE_COMBOBOX=yes
da98e9be 7619 DEFAULT_wxUSE_DATEPICKCTRL=yes
e9263684
VZ
7620 DEFAULT_wxUSE_DISPLAY=yes
7621 DEFAULT_wxUSE_DIRPICKERCTRL=yes
7622 DEFAULT_wxUSE_FILEPICKERCTRL=yes
7623 DEFAULT_wxUSE_FONTPICKERCTRL=yes
a848cd7e
SC
7624 DEFAULT_wxUSE_GAUGE=yes
7625 DEFAULT_wxUSE_GRID=yes
6954625c 7626 DEFAULT_wxUSE_HYPERLINKCTRL=yes
20e34ecc 7627 DEFAULT_wxUSE_DATAVIEWCTRL=no
a848cd7e
SC
7628 DEFAULT_wxUSE_IMAGLIST=yes
7629 DEFAULT_wxUSE_LISTBOOK=yes
7630 DEFAULT_wxUSE_LISTBOX=yes
7631 DEFAULT_wxUSE_LISTCTRL=yes
7632 DEFAULT_wxUSE_NOTEBOOK=yes
7633 DEFAULT_wxUSE_RADIOBOX=yes
7634 DEFAULT_wxUSE_RADIOBTN=yes
7635 DEFAULT_wxUSE_SASH=yes
7636 DEFAULT_wxUSE_SCROLLBAR=yes
7637 DEFAULT_wxUSE_SLIDER=yes
7638 DEFAULT_wxUSE_SPINBTN=yes
7639 DEFAULT_wxUSE_SPINCTRL=yes
7640 DEFAULT_wxUSE_SPLITTER=yes
7641 DEFAULT_wxUSE_STATBMP=yes
7642 DEFAULT_wxUSE_STATBOX=yes
7643 DEFAULT_wxUSE_STATLINE=yes
7644 DEFAULT_wxUSE_STATUSBAR=yes
7645 DEFAULT_wxUSE_TAB_DIALOG=yes
7646 DEFAULT_wxUSE_TOGGLEBTN=yes
7647 DEFAULT_wxUSE_TOOLBAR=yes
7648 DEFAULT_wxUSE_TOOLBAR_NATIVE=yes
7649 DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes
7650 DEFAULT_wxUSE_TOOLTIPS=yes
0093c2fc 7651 DEFAULT_wxUSE_TREEBOOK=yes
5ec3bc43 7652 DEFAULT_wxUSE_TOOLBOOK=yes
a848cd7e
SC
7653 DEFAULT_wxUSE_TREECTRL=yes
7654 DEFAULT_wxUSE_POPUPWIN=yes
7655 DEFAULT_wxUSE_TIPWINDOW=yes
7656elif test "$wxUSE_CONTROLS" = "no"; then
7657 DEFAULT_wxUSE_ACCEL=no
7658 DEFAULT_wxUSE_BMPBUTTON=no
7659 DEFAULT_wxUSE_BUTTON=no
7660 DEFAULT_wxUSE_CALCTRL=no
7661 DEFAULT_wxUSE_CARET=no
7662 DEFAULT_wxUSE_COMBOBOX=no
7663 DEFAULT_wxUSE_CHECKBOX=no
7664 DEFAULT_wxUSE_CHECKLISTBOX=no
7665 DEFAULT_wxUSE_CHOICE=no
92bbdbcd 7666 DEFAULT_wxUSE_CHOICEBOOK=no
e9263684
VZ
7667 DEFAULT_wxUSE_COLOURPICKERCTRL=no
7668 DEFAULT_wxUSE_COMBOBOX=no
da98e9be 7669 DEFAULT_wxUSE_DATEPICKCTRL=no
e9263684
VZ
7670 DEFAULT_wxUSE_DISPLAY=no
7671 DEFAULT_wxUSE_DIRPICKERCTRL=no
7672 DEFAULT_wxUSE_FILEPICKERCTRL=no
7673 DEFAULT_wxUSE_FONTPICKERCTRL=no
a848cd7e
SC
7674 DEFAULT_wxUSE_GAUGE=no
7675 DEFAULT_wxUSE_GRID=no
6954625c 7676 DEFAULT_wxUSE_HYPERLINKCTRL=no
20e34ecc 7677 DEFAULT_wxUSE_DATAVIEWCTRL=no
a848cd7e
SC
7678 DEFAULT_wxUSE_IMAGLIST=no
7679 DEFAULT_wxUSE_LISTBOOK=no
7680 DEFAULT_wxUSE_LISTBOX=no
7681 DEFAULT_wxUSE_LISTCTRL=no
7682 DEFAULT_wxUSE_NOTEBOOK=no
7683 DEFAULT_wxUSE_RADIOBOX=no
7684 DEFAULT_wxUSE_RADIOBTN=no
7685 DEFAULT_wxUSE_SASH=no
7686 DEFAULT_wxUSE_SCROLLBAR=no
7687 DEFAULT_wxUSE_SLIDER=no
7688 DEFAULT_wxUSE_SPINBTN=no
7689 DEFAULT_wxUSE_SPINCTRL=no
7690 DEFAULT_wxUSE_SPLITTER=no
7691 DEFAULT_wxUSE_STATBMP=no
7692 DEFAULT_wxUSE_STATBOX=no
7693 DEFAULT_wxUSE_STATLINE=no
7694 DEFAULT_wxUSE_STATUSBAR=no
7695 DEFAULT_wxUSE_TAB_DIALOG=no
7696 DEFAULT_wxUSE_TOGGLEBTN=no
7697 DEFAULT_wxUSE_TOOLBAR=no
7698 DEFAULT_wxUSE_TOOLBAR_NATIVE=no
7699 DEFAULT_wxUSE_TOOLBAR_SIMPLE=no
7700 DEFAULT_wxUSE_TOOLTIPS=no
0093c2fc 7701 DEFAULT_wxUSE_TREEBOOK=no
5ec3bc43 7702 DEFAULT_wxUSE_TOOLBOOK=no
a848cd7e
SC
7703 DEFAULT_wxUSE_TREECTRL=no
7704 DEFAULT_wxUSE_POPUPWIN=no
7705 DEFAULT_wxUSE_TIPWINDOW=no
7706fi
7707
a848cd7e
SC
7708
7709 enablestring=
7710 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-accel" >&5
7711echo $ECHO_N "checking for --${enablestring:-enable}-accel... $ECHO_C" >&6
7712 no_cache=0
7713 # Check whether --enable-accel or --disable-accel was given.
7714if test "${enable_accel+set}" = set; then
7715 enableval="$enable_accel"
7716
7717 if test "$enableval" = yes; then
7718 ac_cv_use_accel='wxUSE_ACCEL=yes'
7719 else
7720 ac_cv_use_accel='wxUSE_ACCEL=no'
7721 fi
7722
7723else
7724
7725 LINE=`grep "wxUSE_ACCEL" ${wx_arg_cache_file}`
7726 if test "x$LINE" != x ; then
7727 eval "DEFAULT_$LINE"
7728 else
7729 no_cache=1
7730 fi
7731
7732 ac_cv_use_accel='wxUSE_ACCEL='$DEFAULT_wxUSE_ACCEL
7733
7734fi;
7735
7736 eval "$ac_cv_use_accel"
7737 if test "$no_cache" != 1; then
7738 echo $ac_cv_use_accel >> ${wx_arg_cache_file}.tmp
7739 fi
7740
7741 if test "$wxUSE_ACCEL" = yes; then
7742 echo "$as_me:$LINENO: result: yes" >&5
7743echo "${ECHO_T}yes" >&6
7744 else
7745 echo "$as_me:$LINENO: result: no" >&5
7746echo "${ECHO_T}no" >&6
7747 fi
7748
7749
7750 enablestring=
7751 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-button" >&5
7752echo $ECHO_N "checking for --${enablestring:-enable}-button... $ECHO_C" >&6
7753 no_cache=0
7754 # Check whether --enable-button or --disable-button was given.
7755if test "${enable_button+set}" = set; then
7756 enableval="$enable_button"
7757
7758 if test "$enableval" = yes; then
7759 ac_cv_use_button='wxUSE_BUTTON=yes'
7760 else
7761 ac_cv_use_button='wxUSE_BUTTON=no'
7762 fi
7763
7764else
7765
7766 LINE=`grep "wxUSE_BUTTON" ${wx_arg_cache_file}`
7767 if test "x$LINE" != x ; then
7768 eval "DEFAULT_$LINE"
7769 else
7770 no_cache=1
7771 fi
7772
7773 ac_cv_use_button='wxUSE_BUTTON='$DEFAULT_wxUSE_BUTTON
7774
7775fi;
7776
7777 eval "$ac_cv_use_button"
7778 if test "$no_cache" != 1; then
7779 echo $ac_cv_use_button >> ${wx_arg_cache_file}.tmp
7780 fi
7781
7782 if test "$wxUSE_BUTTON" = yes; then
7783 echo "$as_me:$LINENO: result: yes" >&5
7784echo "${ECHO_T}yes" >&6
7785 else
7786 echo "$as_me:$LINENO: result: no" >&5
7787echo "${ECHO_T}no" >&6
7788 fi
7789
7790
7791 enablestring=
7792 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-bmpbutton" >&5
7793echo $ECHO_N "checking for --${enablestring:-enable}-bmpbutton... $ECHO_C" >&6
7794 no_cache=0
7795 # Check whether --enable-bmpbutton or --disable-bmpbutton was given.
7796if test "${enable_bmpbutton+set}" = set; then
7797 enableval="$enable_bmpbutton"
7798
7799 if test "$enableval" = yes; then
7800 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=yes'
7801 else
7802 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=no'
7803 fi
7804
7805else
7806
7807 LINE=`grep "wxUSE_BMPBUTTON" ${wx_arg_cache_file}`
7808 if test "x$LINE" != x ; then
7809 eval "DEFAULT_$LINE"
7810 else
7811 no_cache=1
7812 fi
7813
7814 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON='$DEFAULT_wxUSE_BMPBUTTON
7815
7816fi;
7817
7818 eval "$ac_cv_use_bmpbutton"
7819 if test "$no_cache" != 1; then
7820 echo $ac_cv_use_bmpbutton >> ${wx_arg_cache_file}.tmp
7821 fi
7822
7823 if test "$wxUSE_BMPBUTTON" = yes; then
7824 echo "$as_me:$LINENO: result: yes" >&5
7825echo "${ECHO_T}yes" >&6
7826 else
7827 echo "$as_me:$LINENO: result: no" >&5
7828echo "${ECHO_T}no" >&6
7829 fi
7830
7831
7832 enablestring=
7833 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-calendar" >&5
7834echo $ECHO_N "checking for --${enablestring:-enable}-calendar... $ECHO_C" >&6
7835 no_cache=0
7836 # Check whether --enable-calendar or --disable-calendar was given.
7837if test "${enable_calendar+set}" = set; then
7838 enableval="$enable_calendar"
7839
7840 if test "$enableval" = yes; then
7841 ac_cv_use_calendar='wxUSE_CALCTRL=yes'
7842 else
7843 ac_cv_use_calendar='wxUSE_CALCTRL=no'
7844 fi
7845
7846else
7847
7848 LINE=`grep "wxUSE_CALCTRL" ${wx_arg_cache_file}`
7849 if test "x$LINE" != x ; then
7850 eval "DEFAULT_$LINE"
7851 else
7852 no_cache=1
7853 fi
7854
7855 ac_cv_use_calendar='wxUSE_CALCTRL='$DEFAULT_wxUSE_CALCTRL
7856
7857fi;
7858
7859 eval "$ac_cv_use_calendar"
7860 if test "$no_cache" != 1; then
7861 echo $ac_cv_use_calendar >> ${wx_arg_cache_file}.tmp
7862 fi
7863
7864 if test "$wxUSE_CALCTRL" = yes; then
7865 echo "$as_me:$LINENO: result: yes" >&5
7866echo "${ECHO_T}yes" >&6
7867 else
7868 echo "$as_me:$LINENO: result: no" >&5
7869echo "${ECHO_T}no" >&6
7870 fi
7871
7872
7873 enablestring=
7874 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-caret" >&5
7875echo $ECHO_N "checking for --${enablestring:-enable}-caret... $ECHO_C" >&6
7876 no_cache=0
7877 # Check whether --enable-caret or --disable-caret was given.
7878if test "${enable_caret+set}" = set; then
7879 enableval="$enable_caret"
7880
7881 if test "$enableval" = yes; then
7882 ac_cv_use_caret='wxUSE_CARET=yes'
7883 else
7884 ac_cv_use_caret='wxUSE_CARET=no'
7885 fi
7886
7887else
7888
7889 LINE=`grep "wxUSE_CARET" ${wx_arg_cache_file}`
7890 if test "x$LINE" != x ; then
7891 eval "DEFAULT_$LINE"
7892 else
7893 no_cache=1
7894 fi
7895
7896 ac_cv_use_caret='wxUSE_CARET='$DEFAULT_wxUSE_CARET
7897
7898fi;
7899
7900 eval "$ac_cv_use_caret"
7901 if test "$no_cache" != 1; then
7902 echo $ac_cv_use_caret >> ${wx_arg_cache_file}.tmp
7903 fi
7904
7905 if test "$wxUSE_CARET" = yes; then
7906 echo "$as_me:$LINENO: result: yes" >&5
7907echo "${ECHO_T}yes" >&6
7908 else
7909 echo "$as_me:$LINENO: result: no" >&5
7910echo "${ECHO_T}no" >&6
7911 fi
7912
7913
7914 enablestring=
7915 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-checkbox" >&5
7916echo $ECHO_N "checking for --${enablestring:-enable}-checkbox... $ECHO_C" >&6
7917 no_cache=0
7918 # Check whether --enable-checkbox or --disable-checkbox was given.
7919if test "${enable_checkbox+set}" = set; then
7920 enableval="$enable_checkbox"
7921
7922 if test "$enableval" = yes; then
7923 ac_cv_use_checkbox='wxUSE_CHECKBOX=yes'
7924 else
7925 ac_cv_use_checkbox='wxUSE_CHECKBOX=no'
7926 fi
7927
7928else
7929
7930 LINE=`grep "wxUSE_CHECKBOX" ${wx_arg_cache_file}`
7931 if test "x$LINE" != x ; then
7932 eval "DEFAULT_$LINE"
7933 else
7934 no_cache=1
7935 fi
7936
7937 ac_cv_use_checkbox='wxUSE_CHECKBOX='$DEFAULT_wxUSE_CHECKBOX
7938
7939fi;
7940
7941 eval "$ac_cv_use_checkbox"
7942 if test "$no_cache" != 1; then
7943 echo $ac_cv_use_checkbox >> ${wx_arg_cache_file}.tmp
7944 fi
7945
7946 if test "$wxUSE_CHECKBOX" = yes; then
7947 echo "$as_me:$LINENO: result: yes" >&5
7948echo "${ECHO_T}yes" >&6
7949 else
7950 echo "$as_me:$LINENO: result: no" >&5
7951echo "${ECHO_T}no" >&6
7952 fi
7953
7954
7955 enablestring=
7956 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-checklst" >&5
7957echo $ECHO_N "checking for --${enablestring:-enable}-checklst... $ECHO_C" >&6
7958 no_cache=0
7959 # Check whether --enable-checklst or --disable-checklst was given.
7960if test "${enable_checklst+set}" = set; then
7961 enableval="$enable_checklst"
7962
7963 if test "$enableval" = yes; then
7964 ac_cv_use_checklst='wxUSE_CHECKLST=yes'
7965 else
7966 ac_cv_use_checklst='wxUSE_CHECKLST=no'
7967 fi
7968
7969else
7970
7971 LINE=`grep "wxUSE_CHECKLST" ${wx_arg_cache_file}`
7972 if test "x$LINE" != x ; then
7973 eval "DEFAULT_$LINE"
7974 else
7975 no_cache=1
7976 fi
7977
7978 ac_cv_use_checklst='wxUSE_CHECKLST='$DEFAULT_wxUSE_CHECKLST
7979
7980fi;
7981
7982 eval "$ac_cv_use_checklst"
7983 if test "$no_cache" != 1; then
7984 echo $ac_cv_use_checklst >> ${wx_arg_cache_file}.tmp
7985 fi
7986
7987 if test "$wxUSE_CHECKLST" = yes; then
7988 echo "$as_me:$LINENO: result: yes" >&5
7989echo "${ECHO_T}yes" >&6
7990 else
7991 echo "$as_me:$LINENO: result: no" >&5
7992echo "${ECHO_T}no" >&6
7993 fi
7994
7995
7996 enablestring=
7997 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choice" >&5
7998echo $ECHO_N "checking for --${enablestring:-enable}-choice... $ECHO_C" >&6
7999 no_cache=0
8000 # Check whether --enable-choice or --disable-choice was given.
8001if test "${enable_choice+set}" = set; then
8002 enableval="$enable_choice"
8003
8004 if test "$enableval" = yes; then
8005 ac_cv_use_choice='wxUSE_CHOICE=yes'
8006 else
8007 ac_cv_use_choice='wxUSE_CHOICE=no'
8008 fi
8009
8010else
8011
8012 LINE=`grep "wxUSE_CHOICE" ${wx_arg_cache_file}`
8013 if test "x$LINE" != x ; then
8014 eval "DEFAULT_$LINE"
8015 else
8016 no_cache=1
8017 fi
8018
8019 ac_cv_use_choice='wxUSE_CHOICE='$DEFAULT_wxUSE_CHOICE
8020
8021fi;
8022
8023 eval "$ac_cv_use_choice"
8024 if test "$no_cache" != 1; then
8025 echo $ac_cv_use_choice >> ${wx_arg_cache_file}.tmp
8026 fi
8027
8028 if test "$wxUSE_CHOICE" = yes; then
8029 echo "$as_me:$LINENO: result: yes" >&5
8030echo "${ECHO_T}yes" >&6
8031 else
8032 echo "$as_me:$LINENO: result: no" >&5
8033echo "${ECHO_T}no" >&6
8034 fi
8035
8036
92bbdbcd
WS
8037 enablestring=
8038 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choicebook" >&5
8039echo $ECHO_N "checking for --${enablestring:-enable}-choicebook... $ECHO_C" >&6
8040 no_cache=0
8041 # Check whether --enable-choicebook or --disable-choicebook was given.
8042if test "${enable_choicebook+set}" = set; then
8043 enableval="$enable_choicebook"
8044
8045 if test "$enableval" = yes; then
8046 ac_cv_use_choicebook='wxUSE_CHOICEBOOK=yes'
8047 else
8048 ac_cv_use_choicebook='wxUSE_CHOICEBOOK=no'
8049 fi
8050
8051else
8052
8053 LINE=`grep "wxUSE_CHOICEBOOK" ${wx_arg_cache_file}`
8054 if test "x$LINE" != x ; then
8055 eval "DEFAULT_$LINE"
8056 else
8057 no_cache=1
8058 fi
8059
8060 ac_cv_use_choicebook='wxUSE_CHOICEBOOK='$DEFAULT_wxUSE_CHOICEBOOK
8061
8062fi;
8063
8064 eval "$ac_cv_use_choicebook"
8065 if test "$no_cache" != 1; then
8066 echo $ac_cv_use_choicebook >> ${wx_arg_cache_file}.tmp
8067 fi
8068
8069 if test "$wxUSE_CHOICEBOOK" = yes; then
8070 echo "$as_me:$LINENO: result: yes" >&5
8071echo "${ECHO_T}yes" >&6
8072 else
8073 echo "$as_me:$LINENO: result: no" >&5
8074echo "${ECHO_T}no" >&6
8075 fi
8076
8077
e9263684
VZ
8078 enablestring=
8079 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-colourpicker" >&5
8080echo $ECHO_N "checking for --${enablestring:-enable}-colourpicker... $ECHO_C" >&6
8081 no_cache=0
8082 # Check whether --enable-colourpicker or --disable-colourpicker was given.
8083if test "${enable_colourpicker+set}" = set; then
8084 enableval="$enable_colourpicker"
8085
8086 if test "$enableval" = yes; then
8087 ac_cv_use_colourpicker='wxUSE_COLOURPICKERCTRL=yes'
8088 else
8089 ac_cv_use_colourpicker='wxUSE_COLOURPICKERCTRL=no'
8090 fi
8091
8092else
8093
8094 LINE=`grep "wxUSE_COLOURPICKERCTRL" ${wx_arg_cache_file}`
8095 if test "x$LINE" != x ; then
8096 eval "DEFAULT_$LINE"
8097 else
8098 no_cache=1
8099 fi
8100
8101 ac_cv_use_colourpicker='wxUSE_COLOURPICKERCTRL='$DEFAULT_wxUSE_COLOURPICKERCTRL
8102
8103fi;
8104
8105 eval "$ac_cv_use_colourpicker"
8106 if test "$no_cache" != 1; then
8107 echo $ac_cv_use_colourpicker >> ${wx_arg_cache_file}.tmp
8108 fi
8109
8110 if test "$wxUSE_COLOURPICKERCTRL" = yes; then
8111 echo "$as_me:$LINENO: result: yes" >&5
8112echo "${ECHO_T}yes" >&6
8113 else
8114 echo "$as_me:$LINENO: result: no" >&5
8115echo "${ECHO_T}no" >&6
8116 fi
8117
8118
a848cd7e
SC
8119 enablestring=
8120 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-combobox" >&5
8121echo $ECHO_N "checking for --${enablestring:-enable}-combobox... $ECHO_C" >&6
8122 no_cache=0
8123 # Check whether --enable-combobox or --disable-combobox was given.
8124if test "${enable_combobox+set}" = set; then
8125 enableval="$enable_combobox"
8126
8127 if test "$enableval" = yes; then
8128 ac_cv_use_combobox='wxUSE_COMBOBOX=yes'
8129 else
8130 ac_cv_use_combobox='wxUSE_COMBOBOX=no'
8131 fi
8132
8133else
8134
8135 LINE=`grep "wxUSE_COMBOBOX" ${wx_arg_cache_file}`
8136 if test "x$LINE" != x ; then
8137 eval "DEFAULT_$LINE"
8138 else
8139 no_cache=1
8140 fi
8141
8142 ac_cv_use_combobox='wxUSE_COMBOBOX='$DEFAULT_wxUSE_COMBOBOX
8143
8144fi;
8145
8146 eval "$ac_cv_use_combobox"
8147 if test "$no_cache" != 1; then
8148 echo $ac_cv_use_combobox >> ${wx_arg_cache_file}.tmp
8149 fi
8150
8151 if test "$wxUSE_COMBOBOX" = yes; then
8152 echo "$as_me:$LINENO: result: yes" >&5
8153echo "${ECHO_T}yes" >&6
8154 else
8155 echo "$as_me:$LINENO: result: no" >&5
8156echo "${ECHO_T}no" >&6
8157 fi
8158
8159
642bcba9 8160 enablestring=
a57d600f
VZ
8161 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-comboctrl" >&5
8162echo $ECHO_N "checking for --${enablestring:-enable}-comboctrl... $ECHO_C" >&6
642bcba9 8163 no_cache=0
a57d600f
VZ
8164 # Check whether --enable-comboctrl or --disable-comboctrl was given.
8165if test "${enable_comboctrl+set}" = set; then
8166 enableval="$enable_comboctrl"
642bcba9
VZ
8167
8168 if test "$enableval" = yes; then
a57d600f 8169 ac_cv_use_comboctrl='wxUSE_COMBOCTRL=yes'
642bcba9 8170 else
a57d600f 8171 ac_cv_use_comboctrl='wxUSE_COMBOCTRL=no'
642bcba9
VZ
8172 fi
8173
8174else
8175
a57d600f 8176 LINE=`grep "wxUSE_COMBOCTRL" ${wx_arg_cache_file}`
642bcba9
VZ
8177 if test "x$LINE" != x ; then
8178 eval "DEFAULT_$LINE"
8179 else
8180 no_cache=1
8181 fi
8182
a57d600f 8183 ac_cv_use_comboctrl='wxUSE_COMBOCTRL='$DEFAULT_wxUSE_COMBOCTRL
642bcba9
VZ
8184
8185fi;
8186
a57d600f 8187 eval "$ac_cv_use_comboctrl"
642bcba9 8188 if test "$no_cache" != 1; then
a57d600f 8189 echo $ac_cv_use_comboctrl >> ${wx_arg_cache_file}.tmp
642bcba9
VZ
8190 fi
8191
a57d600f 8192 if test "$wxUSE_COMBOCTRL" = yes; then
642bcba9
VZ
8193 echo "$as_me:$LINENO: result: yes" >&5
8194echo "${ECHO_T}yes" >&6
8195 else
8196 echo "$as_me:$LINENO: result: no" >&5
8197echo "${ECHO_T}no" >&6
8198 fi
8199
8200
da98e9be
VZ
8201 enablestring=
8202 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-datepick" >&5
8203echo $ECHO_N "checking for --${enablestring:-enable}-datepick... $ECHO_C" >&6
8204 no_cache=0
8205 # Check whether --enable-datepick or --disable-datepick was given.
8206if test "${enable_datepick+set}" = set; then
8207 enableval="$enable_datepick"
8208
8209 if test "$enableval" = yes; then
8210 ac_cv_use_datepick='wxUSE_DATEPICKCTRL=yes'
8211 else
8212 ac_cv_use_datepick='wxUSE_DATEPICKCTRL=no'
8213 fi
8214
8215else
8216
8217 LINE=`grep "wxUSE_DATEPICKCTRL" ${wx_arg_cache_file}`
8218 if test "x$LINE" != x ; then
8219 eval "DEFAULT_$LINE"
8220 else
8221 no_cache=1
8222 fi
8223
8224 ac_cv_use_datepick='wxUSE_DATEPICKCTRL='$DEFAULT_wxUSE_DATEPICKCTRL
8225
8226fi;
8227
8228 eval "$ac_cv_use_datepick"
8229 if test "$no_cache" != 1; then
8230 echo $ac_cv_use_datepick >> ${wx_arg_cache_file}.tmp
8231 fi
8232
8233 if test "$wxUSE_DATEPICKCTRL" = yes; then
8234 echo "$as_me:$LINENO: result: yes" >&5
8235echo "${ECHO_T}yes" >&6
8236 else
8237 echo "$as_me:$LINENO: result: no" >&5
8238echo "${ECHO_T}no" >&6
8239 fi
8240
8241
e9263684
VZ
8242 enablestring=
8243 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dirpicker" >&5
8244echo $ECHO_N "checking for --${enablestring:-enable}-dirpicker... $ECHO_C" >&6
8245 no_cache=0
8246 # Check whether --enable-dirpicker or --disable-dirpicker was given.
8247if test "${enable_dirpicker+set}" = set; then
8248 enableval="$enable_dirpicker"
8249
8250 if test "$enableval" = yes; then
8251 ac_cv_use_dirpicker='wxUSE_DIRPICKERCTRL=yes'
8252 else
8253 ac_cv_use_dirpicker='wxUSE_DIRPICKERCTRL=no'
8254 fi
8255
8256else
8257
8258 LINE=`grep "wxUSE_DIRPICKERCTRL" ${wx_arg_cache_file}`
8259 if test "x$LINE" != x ; then
8260 eval "DEFAULT_$LINE"
8261 else
8262 no_cache=1
8263 fi
8264
8265 ac_cv_use_dirpicker='wxUSE_DIRPICKERCTRL='$DEFAULT_wxUSE_DIRPICKERCTRL
8266
8267fi;
8268
8269 eval "$ac_cv_use_dirpicker"
8270 if test "$no_cache" != 1; then
8271 echo $ac_cv_use_dirpicker >> ${wx_arg_cache_file}.tmp
8272 fi
8273
8274 if test "$wxUSE_DIRPICKERCTRL" = yes; then
8275 echo "$as_me:$LINENO: result: yes" >&5
8276echo "${ECHO_T}yes" >&6
8277 else
8278 echo "$as_me:$LINENO: result: no" >&5
8279echo "${ECHO_T}no" >&6
8280 fi
8281
8282
a848cd7e
SC
8283 enablestring=
8284 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-display" >&5
8285echo $ECHO_N "checking for --${enablestring:-enable}-display... $ECHO_C" >&6
8286 no_cache=0
8287 # Check whether --enable-display or --disable-display was given.
8288if test "${enable_display+set}" = set; then
8289 enableval="$enable_display"
8290
8291 if test "$enableval" = yes; then
8292 ac_cv_use_display='wxUSE_DISPLAY=yes'
8293 else
8294 ac_cv_use_display='wxUSE_DISPLAY=no'
8295 fi
8296
8297else
8298
8299 LINE=`grep "wxUSE_DISPLAY" ${wx_arg_cache_file}`
8300 if test "x$LINE" != x ; then
8301 eval "DEFAULT_$LINE"
8302 else
8303 no_cache=1
8304 fi
8305
8306 ac_cv_use_display='wxUSE_DISPLAY='$DEFAULT_wxUSE_DISPLAY
8307
8308fi;
8309
8310 eval "$ac_cv_use_display"
8311 if test "$no_cache" != 1; then
8312 echo $ac_cv_use_display >> ${wx_arg_cache_file}.tmp
8313 fi
8314
8315 if test "$wxUSE_DISPLAY" = yes; then
8316 echo "$as_me:$LINENO: result: yes" >&5
8317echo "${ECHO_T}yes" >&6
8318 else
8319 echo "$as_me:$LINENO: result: no" >&5
8320echo "${ECHO_T}no" >&6
8321 fi
8322
8323
e9263684
VZ
8324 enablestring=
8325 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-filepicker" >&5
8326echo $ECHO_N "checking for --${enablestring:-enable}-filepicker... $ECHO_C" >&6
8327 no_cache=0
8328 # Check whether --enable-filepicker or --disable-filepicker was given.
8329if test "${enable_filepicker+set}" = set; then
8330 enableval="$enable_filepicker"
8331
8332 if test "$enableval" = yes; then
8333 ac_cv_use_filepicker='wxUSE_FILEPICKERCTRL=yes'
8334 else
8335 ac_cv_use_filepicker='wxUSE_FILEPICKERCTRL=no'
8336 fi
8337
8338else
8339
8340 LINE=`grep "wxUSE_FILEPICKERCTRL" ${wx_arg_cache_file}`
8341 if test "x$LINE" != x ; then
8342 eval "DEFAULT_$LINE"
8343 else
8344 no_cache=1
8345 fi
8346
8347 ac_cv_use_filepicker='wxUSE_FILEPICKERCTRL='$DEFAULT_wxUSE_FILEPICKERCTRL
8348
8349fi;
8350
8351 eval "$ac_cv_use_filepicker"
8352 if test "$no_cache" != 1; then
8353 echo $ac_cv_use_filepicker >> ${wx_arg_cache_file}.tmp
8354 fi
8355
8356 if test "$wxUSE_FILEPICKERCTRL" = yes; then
8357 echo "$as_me:$LINENO: result: yes" >&5
8358echo "${ECHO_T}yes" >&6
8359 else
8360 echo "$as_me:$LINENO: result: no" >&5
8361echo "${ECHO_T}no" >&6
8362 fi
8363
8364
8365 enablestring=
8366 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fontpicker" >&5
8367echo $ECHO_N "checking for --${enablestring:-enable}-fontpicker... $ECHO_C" >&6
8368 no_cache=0
8369 # Check whether --enable-fontpicker or --disable-fontpicker was given.
8370if test "${enable_fontpicker+set}" = set; then
8371 enableval="$enable_fontpicker"
8372
8373 if test "$enableval" = yes; then
8374 ac_cv_use_fontpicker='wxUSE_FONTPICKERCTRL=yes'
8375 else
8376 ac_cv_use_fontpicker='wxUSE_FONTPICKERCTRL=no'
8377 fi
8378
8379else
8380
8381 LINE=`grep "wxUSE_FONTPICKERCTRL" ${wx_arg_cache_file}`
8382 if test "x$LINE" != x ; then
8383 eval "DEFAULT_$LINE"
8384 else
8385 no_cache=1
8386 fi
8387
8388 ac_cv_use_fontpicker='wxUSE_FONTPICKERCTRL='$DEFAULT_wxUSE_FONTPICKERCTRL
8389
8390fi;
8391
8392 eval "$ac_cv_use_fontpicker"
8393 if test "$no_cache" != 1; then
8394 echo $ac_cv_use_fontpicker >> ${wx_arg_cache_file}.tmp
8395 fi
8396
8397 if test "$wxUSE_FONTPICKERCTRL" = yes; then
8398 echo "$as_me:$LINENO: result: yes" >&5
8399echo "${ECHO_T}yes" >&6
8400 else
8401 echo "$as_me:$LINENO: result: no" >&5
8402echo "${ECHO_T}no" >&6
8403 fi
8404
8405
a848cd7e
SC
8406 enablestring=
8407 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gauge" >&5
8408echo $ECHO_N "checking for --${enablestring:-enable}-gauge... $ECHO_C" >&6
8409 no_cache=0
8410 # Check whether --enable-gauge or --disable-gauge was given.
8411if test "${enable_gauge+set}" = set; then
8412 enableval="$enable_gauge"
8413
8414 if test "$enableval" = yes; then
8415 ac_cv_use_gauge='wxUSE_GAUGE=yes'
8416 else
8417 ac_cv_use_gauge='wxUSE_GAUGE=no'
8418 fi
8419
8420else
8421
8422 LINE=`grep "wxUSE_GAUGE" ${wx_arg_cache_file}`
8423 if test "x$LINE" != x ; then
8424 eval "DEFAULT_$LINE"
8425 else
8426 no_cache=1
8427 fi
8428
8429 ac_cv_use_gauge='wxUSE_GAUGE='$DEFAULT_wxUSE_GAUGE
8430
8431fi;
8432
8433 eval "$ac_cv_use_gauge"
8434 if test "$no_cache" != 1; then
8435 echo $ac_cv_use_gauge >> ${wx_arg_cache_file}.tmp
8436 fi
8437
8438 if test "$wxUSE_GAUGE" = yes; then
8439 echo "$as_me:$LINENO: result: yes" >&5
8440echo "${ECHO_T}yes" >&6
8441 else
8442 echo "$as_me:$LINENO: result: no" >&5
8443echo "${ECHO_T}no" >&6
8444 fi
8445
8446
8447 enablestring=
8448 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-grid" >&5
8449echo $ECHO_N "checking for --${enablestring:-enable}-grid... $ECHO_C" >&6
8450 no_cache=0
8451 # Check whether --enable-grid or --disable-grid was given.
8452if test "${enable_grid+set}" = set; then
8453 enableval="$enable_grid"
8454
8455 if test "$enableval" = yes; then
8456 ac_cv_use_grid='wxUSE_GRID=yes'
8457 else
8458 ac_cv_use_grid='wxUSE_GRID=no'
8459 fi
8460
8461else
8462
8463 LINE=`grep "wxUSE_GRID" ${wx_arg_cache_file}`
8464 if test "x$LINE" != x ; then
8465 eval "DEFAULT_$LINE"
8466 else
8467 no_cache=1
8468 fi
8469
8470 ac_cv_use_grid='wxUSE_GRID='$DEFAULT_wxUSE_GRID
8471
8472fi;
8473
8474 eval "$ac_cv_use_grid"
8475 if test "$no_cache" != 1; then
8476 echo $ac_cv_use_grid >> ${wx_arg_cache_file}.tmp
8477 fi
8478
8479 if test "$wxUSE_GRID" = yes; then
8480 echo "$as_me:$LINENO: result: yes" >&5
8481echo "${ECHO_T}yes" >&6
8482 else
8483 echo "$as_me:$LINENO: result: no" >&5
8484echo "${ECHO_T}no" >&6
8485 fi
8486
8487
20e34ecc
RR
8488 enablestring=
8489 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dataviewctrl" >&5
8490echo $ECHO_N "checking for --${enablestring:-enable}-dataviewctrl... $ECHO_C" >&6
8491 no_cache=0
8492 # Check whether --enable-dataviewctrl or --disable-dataviewctrl was given.
8493if test "${enable_dataviewctrl+set}" = set; then
8494 enableval="$enable_dataviewctrl"
8495
8496 if test "$enableval" = yes; then
8497 ac_cv_use_dataviewctrl='wxUSE_DATAVIEWCTRL=yes'
8498 else
8499 ac_cv_use_dataviewctrl='wxUSE_DATAVIEWCTRL=no'
8500 fi
8501
8502else
8503
8504 LINE=`grep "wxUSE_DATAVIEWCTRL" ${wx_arg_cache_file}`
8505 if test "x$LINE" != x ; then
8506 eval "DEFAULT_$LINE"
8507 else
8508 no_cache=1
8509 fi
8510
8511 ac_cv_use_dataviewctrl='wxUSE_DATAVIEWCTRL='$DEFAULT_wxUSE_DATAVIEWCTRL
8512
8513fi;
8514
8515 eval "$ac_cv_use_dataviewctrl"
8516 if test "$no_cache" != 1; then
8517 echo $ac_cv_use_dataviewctrl >> ${wx_arg_cache_file}.tmp
8518 fi
8519
8520 if test "$wxUSE_DATAVIEWCTRL" = yes; then
8521 echo "$as_me:$LINENO: result: yes" >&5
8522echo "${ECHO_T}yes" >&6
8523 else
8524 echo "$as_me:$LINENO: result: no" >&5
8525echo "${ECHO_T}no" >&6
8526 fi
8527
8528
6954625c
VZ
8529 enablestring=
8530 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-hyperlink" >&5
8531echo $ECHO_N "checking for --${enablestring:-enable}-hyperlink... $ECHO_C" >&6
8532 no_cache=0
8533 # Check whether --enable-hyperlink or --disable-hyperlink was given.
8534if test "${enable_hyperlink+set}" = set; then
8535 enableval="$enable_hyperlink"
8536
8537 if test "$enableval" = yes; then
8538 ac_cv_use_hyperlink='wxUSE_HYPERLINKCTRL=yes'
8539 else
8540 ac_cv_use_hyperlink='wxUSE_HYPERLINKCTRL=no'
8541 fi
8542
8543else
8544
8545 LINE=`grep "wxUSE_HYPERLINKCTRL" ${wx_arg_cache_file}`
8546 if test "x$LINE" != x ; then
8547 eval "DEFAULT_$LINE"
8548 else
8549 no_cache=1
8550 fi
8551
8552 ac_cv_use_hyperlink='wxUSE_HYPERLINKCTRL='$DEFAULT_wxUSE_HYPERLINKCTRL
8553
8554fi;
8555
8556 eval "$ac_cv_use_hyperlink"
8557 if test "$no_cache" != 1; then
8558 echo $ac_cv_use_hyperlink >> ${wx_arg_cache_file}.tmp
8559 fi
8560
8561 if test "$wxUSE_HYPERLINKCTRL" = yes; then
8562 echo "$as_me:$LINENO: result: yes" >&5
8563echo "${ECHO_T}yes" >&6
8564 else
8565 echo "$as_me:$LINENO: result: no" >&5
8566echo "${ECHO_T}no" >&6
8567 fi
8568
8569
a848cd7e
SC
8570 enablestring=
8571 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-imaglist" >&5
8572echo $ECHO_N "checking for --${enablestring:-enable}-imaglist... $ECHO_C" >&6
8573 no_cache=0
8574 # Check whether --enable-imaglist or --disable-imaglist was given.
8575if test "${enable_imaglist+set}" = set; then
8576 enableval="$enable_imaglist"
8577
8578 if test "$enableval" = yes; then
8579 ac_cv_use_imaglist='wxUSE_IMAGLIST=yes'
8580 else
8581 ac_cv_use_imaglist='wxUSE_IMAGLIST=no'
8582 fi
8583
8584else
8585
8586 LINE=`grep "wxUSE_IMAGLIST" ${wx_arg_cache_file}`
8587 if test "x$LINE" != x ; then
8588 eval "DEFAULT_$LINE"
8589 else
8590 no_cache=1
8591 fi
8592
8593 ac_cv_use_imaglist='wxUSE_IMAGLIST='$DEFAULT_wxUSE_IMAGLIST
8594
8595fi;
8596
8597 eval "$ac_cv_use_imaglist"
8598 if test "$no_cache" != 1; then
8599 echo $ac_cv_use_imaglist >> ${wx_arg_cache_file}.tmp
8600 fi
8601
8602 if test "$wxUSE_IMAGLIST" = yes; then
8603 echo "$as_me:$LINENO: result: yes" >&5
8604echo "${ECHO_T}yes" >&6
8605 else
8606 echo "$as_me:$LINENO: result: no" >&5
8607echo "${ECHO_T}no" >&6
8608 fi
8609
8610
8611 enablestring=
8612 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listbook" >&5
8613echo $ECHO_N "checking for --${enablestring:-enable}-listbook... $ECHO_C" >&6
8614 no_cache=0
8615 # Check whether --enable-listbook or --disable-listbook was given.
8616if test "${enable_listbook+set}" = set; then
8617 enableval="$enable_listbook"
8618
8619 if test "$enableval" = yes; then
8620 ac_cv_use_listbook='wxUSE_LISTBOOK=yes'
8621 else
8622 ac_cv_use_listbook='wxUSE_LISTBOOK=no'
8623 fi
8624
8625else
8626
8627 LINE=`grep "wxUSE_LISTBOOK" ${wx_arg_cache_file}`
8628 if test "x$LINE" != x ; then
8629 eval "DEFAULT_$LINE"
8630 else
8631 no_cache=1
8632 fi
8633
8634 ac_cv_use_listbook='wxUSE_LISTBOOK='$DEFAULT_wxUSE_LISTBOOK
8635
8636fi;
8637
8638 eval "$ac_cv_use_listbook"
8639 if test "$no_cache" != 1; then
8640 echo $ac_cv_use_listbook >> ${wx_arg_cache_file}.tmp
8641 fi
8642
8643 if test "$wxUSE_LISTBOOK" = yes; then
8644 echo "$as_me:$LINENO: result: yes" >&5
8645echo "${ECHO_T}yes" >&6
8646 else
8647 echo "$as_me:$LINENO: result: no" >&5
8648echo "${ECHO_T}no" >&6
8649 fi
8650
8651
8652 enablestring=
8653 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listbox" >&5
8654echo $ECHO_N "checking for --${enablestring:-enable}-listbox... $ECHO_C" >&6
8655 no_cache=0
8656 # Check whether --enable-listbox or --disable-listbox was given.
8657if test "${enable_listbox+set}" = set; then
8658 enableval="$enable_listbox"
8659
8660 if test "$enableval" = yes; then
8661 ac_cv_use_listbox='wxUSE_LISTBOX=yes'
8662 else
8663 ac_cv_use_listbox='wxUSE_LISTBOX=no'
8664 fi
8665
8666else
8667
8668 LINE=`grep "wxUSE_LISTBOX" ${wx_arg_cache_file}`
8669 if test "x$LINE" != x ; then
8670 eval "DEFAULT_$LINE"
8671 else
8672 no_cache=1
8673 fi
8674
8675 ac_cv_use_listbox='wxUSE_LISTBOX='$DEFAULT_wxUSE_LISTBOX
8676
8677fi;
8678
8679 eval "$ac_cv_use_listbox"
8680 if test "$no_cache" != 1; then
8681 echo $ac_cv_use_listbox >> ${wx_arg_cache_file}.tmp
8682 fi
8683
8684 if test "$wxUSE_LISTBOX" = yes; then
8685 echo "$as_me:$LINENO: result: yes" >&5
8686echo "${ECHO_T}yes" >&6
8687 else
8688 echo "$as_me:$LINENO: result: no" >&5
8689echo "${ECHO_T}no" >&6
8690 fi
8691
8692
8693 enablestring=
8694 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listctrl" >&5
8695echo $ECHO_N "checking for --${enablestring:-enable}-listctrl... $ECHO_C" >&6
8696 no_cache=0
8697 # Check whether --enable-listctrl or --disable-listctrl was given.
8698if test "${enable_listctrl+set}" = set; then
8699 enableval="$enable_listctrl"
8700
8701 if test "$enableval" = yes; then
8702 ac_cv_use_listctrl='wxUSE_LISTCTRL=yes'
8703 else
8704 ac_cv_use_listctrl='wxUSE_LISTCTRL=no'
8705 fi
8706
8707else
8708
8709 LINE=`grep "wxUSE_LISTCTRL" ${wx_arg_cache_file}`
8710 if test "x$LINE" != x ; then
8711 eval "DEFAULT_$LINE"
8712 else
8713 no_cache=1
8714 fi
8715
8716 ac_cv_use_listctrl='wxUSE_LISTCTRL='$DEFAULT_wxUSE_LISTCTRL
8717
8718fi;
8719
8720 eval "$ac_cv_use_listctrl"
8721 if test "$no_cache" != 1; then
8722 echo $ac_cv_use_listctrl >> ${wx_arg_cache_file}.tmp
8723 fi
8724
8725 if test "$wxUSE_LISTCTRL" = yes; then
8726 echo "$as_me:$LINENO: result: yes" >&5
8727echo "${ECHO_T}yes" >&6
8728 else
8729 echo "$as_me:$LINENO: result: no" >&5
8730echo "${ECHO_T}no" >&6
8731 fi
8732
8733
8734 enablestring=
8735 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-notebook" >&5
8736echo $ECHO_N "checking for --${enablestring:-enable}-notebook... $ECHO_C" >&6
8737 no_cache=0
8738 # Check whether --enable-notebook or --disable-notebook was given.
8739if test "${enable_notebook+set}" = set; then
8740 enableval="$enable_notebook"
8741
8742 if test "$enableval" = yes; then
8743 ac_cv_use_notebook='wxUSE_NOTEBOOK=yes'
8744 else
8745 ac_cv_use_notebook='wxUSE_NOTEBOOK=no'
8746 fi
8747
8748else
8749
8750 LINE=`grep "wxUSE_NOTEBOOK" ${wx_arg_cache_file}`
8751 if test "x$LINE" != x ; then
8752 eval "DEFAULT_$LINE"
8753 else
8754 no_cache=1
8755 fi
8756
8757 ac_cv_use_notebook='wxUSE_NOTEBOOK='$DEFAULT_wxUSE_NOTEBOOK
8758
8759fi;
8760
8761 eval "$ac_cv_use_notebook"
8762 if test "$no_cache" != 1; then
8763 echo $ac_cv_use_notebook >> ${wx_arg_cache_file}.tmp
8764 fi
8765
8766 if test "$wxUSE_NOTEBOOK" = yes; then
8767 echo "$as_me:$LINENO: result: yes" >&5
8768echo "${ECHO_T}yes" >&6
8769 else
8770 echo "$as_me:$LINENO: result: no" >&5
8771echo "${ECHO_T}no" >&6
8772 fi
8773
8774
642bcba9 8775 enablestring=
a57d600f
VZ
8776 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-odcombobox" >&5
8777echo $ECHO_N "checking for --${enablestring:-enable}-odcombobox... $ECHO_C" >&6
642bcba9 8778 no_cache=0
a57d600f
VZ
8779 # Check whether --enable-odcombobox or --disable-odcombobox was given.
8780if test "${enable_odcombobox+set}" = set; then
8781 enableval="$enable_odcombobox"
642bcba9
VZ
8782
8783 if test "$enableval" = yes; then
a57d600f 8784 ac_cv_use_odcombobox='wxUSE_ODCOMBOBOX=yes'
642bcba9 8785 else
a57d600f 8786 ac_cv_use_odcombobox='wxUSE_ODCOMBOBOX=no'
642bcba9
VZ
8787 fi
8788
8789else
8790
a57d600f 8791 LINE=`grep "wxUSE_ODCOMBOBOX" ${wx_arg_cache_file}`
642bcba9
VZ
8792 if test "x$LINE" != x ; then
8793 eval "DEFAULT_$LINE"
8794 else
8795 no_cache=1
8796 fi
8797
a57d600f 8798 ac_cv_use_odcombobox='wxUSE_ODCOMBOBOX='$DEFAULT_wxUSE_ODCOMBOBOX
642bcba9
VZ
8799
8800fi;
8801
a57d600f 8802 eval "$ac_cv_use_odcombobox"
642bcba9 8803 if test "$no_cache" != 1; then
a57d600f 8804 echo $ac_cv_use_odcombobox >> ${wx_arg_cache_file}.tmp
642bcba9
VZ
8805 fi
8806
a57d600f 8807 if test "$wxUSE_ODCOMBOBOX" = yes; then
642bcba9
VZ
8808 echo "$as_me:$LINENO: result: yes" >&5
8809echo "${ECHO_T}yes" >&6
8810 else
8811 echo "$as_me:$LINENO: result: no" >&5
8812echo "${ECHO_T}no" >&6
8813 fi
8814
8815
a848cd7e
SC
8816 enablestring=
8817 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-radiobox" >&5
8818echo $ECHO_N "checking for --${enablestring:-enable}-radiobox... $ECHO_C" >&6
8819 no_cache=0
8820 # Check whether --enable-radiobox or --disable-radiobox was given.
8821if test "${enable_radiobox+set}" = set; then
8822 enableval="$enable_radiobox"
8823
8824 if test "$enableval" = yes; then
8825 ac_cv_use_radiobox='wxUSE_RADIOBOX=yes'
8826 else
8827 ac_cv_use_radiobox='wxUSE_RADIOBOX=no'
8828 fi
8829
8830else
8831
8832 LINE=`grep "wxUSE_RADIOBOX" ${wx_arg_cache_file}`
8833 if test "x$LINE" != x ; then
8834 eval "DEFAULT_$LINE"
8835 else
8836 no_cache=1
8837 fi
8838
8839 ac_cv_use_radiobox='wxUSE_RADIOBOX='$DEFAULT_wxUSE_RADIOBOX
8840
8841fi;
8842
8843 eval "$ac_cv_use_radiobox"
8844 if test "$no_cache" != 1; then
8845 echo $ac_cv_use_radiobox >> ${wx_arg_cache_file}.tmp
8846 fi
8847
8848 if test "$wxUSE_RADIOBOX" = yes; then
8849 echo "$as_me:$LINENO: result: yes" >&5
8850echo "${ECHO_T}yes" >&6
8851 else
8852 echo "$as_me:$LINENO: result: no" >&5
8853echo "${ECHO_T}no" >&6
8854 fi
8855
8856
8857 enablestring=
8858 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-radiobtn" >&5
8859echo $ECHO_N "checking for --${enablestring:-enable}-radiobtn... $ECHO_C" >&6
8860 no_cache=0
8861 # Check whether --enable-radiobtn or --disable-radiobtn was given.
8862if test "${enable_radiobtn+set}" = set; then
8863 enableval="$enable_radiobtn"
8864
8865 if test "$enableval" = yes; then
8866 ac_cv_use_radiobtn='wxUSE_RADIOBTN=yes'
8867 else
8868 ac_cv_use_radiobtn='wxUSE_RADIOBTN=no'
8869 fi
8870
8871else
8872
8873 LINE=`grep "wxUSE_RADIOBTN" ${wx_arg_cache_file}`
8874 if test "x$LINE" != x ; then
8875 eval "DEFAULT_$LINE"
8876 else
8877 no_cache=1
8878 fi
8879
8880 ac_cv_use_radiobtn='wxUSE_RADIOBTN='$DEFAULT_wxUSE_RADIOBTN
8881
8882fi;
8883
8884 eval "$ac_cv_use_radiobtn"
8885 if test "$no_cache" != 1; then
8886 echo $ac_cv_use_radiobtn >> ${wx_arg_cache_file}.tmp
8887 fi
8888
8889 if test "$wxUSE_RADIOBTN" = yes; then
8890 echo "$as_me:$LINENO: result: yes" >&5
8891echo "${ECHO_T}yes" >&6
8892 else
8893 echo "$as_me:$LINENO: result: no" >&5
8894echo "${ECHO_T}no" >&6
8895 fi
8896
8897
8898 enablestring=
8899 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sash" >&5
8900echo $ECHO_N "checking for --${enablestring:-enable}-sash... $ECHO_C" >&6
8901 no_cache=0
8902 # Check whether --enable-sash or --disable-sash was given.
8903if test "${enable_sash+set}" = set; then
8904 enableval="$enable_sash"
8905
8906 if test "$enableval" = yes; then
8907 ac_cv_use_sash='wxUSE_SASH=yes'
8908 else
8909 ac_cv_use_sash='wxUSE_SASH=no'
8910 fi
8911
8912else
8913
8914 LINE=`grep "wxUSE_SASH" ${wx_arg_cache_file}`
8915 if test "x$LINE" != x ; then
8916 eval "DEFAULT_$LINE"
8917 else
8918 no_cache=1
8919 fi
8920
8921 ac_cv_use_sash='wxUSE_SASH='$DEFAULT_wxUSE_SASH
8922
8923fi;
8924
8925 eval "$ac_cv_use_sash"
8926 if test "$no_cache" != 1; then
8927 echo $ac_cv_use_sash >> ${wx_arg_cache_file}.tmp
8928 fi
8929
8930 if test "$wxUSE_SASH" = yes; then
8931 echo "$as_me:$LINENO: result: yes" >&5
8932echo "${ECHO_T}yes" >&6
8933 else
8934 echo "$as_me:$LINENO: result: no" >&5
8935echo "${ECHO_T}no" >&6
8936 fi
8937
8938
8939 enablestring=
8940 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-scrollbar" >&5
8941echo $ECHO_N "checking for --${enablestring:-enable}-scrollbar... $ECHO_C" >&6
8942 no_cache=0
8943 # Check whether --enable-scrollbar or --disable-scrollbar was given.
8944if test "${enable_scrollbar+set}" = set; then
8945 enableval="$enable_scrollbar"
8946
8947 if test "$enableval" = yes; then
8948 ac_cv_use_scrollbar='wxUSE_SCROLLBAR=yes'
8949 else
8950 ac_cv_use_scrollbar='wxUSE_SCROLLBAR=no'
8951 fi
8952
8953else
8954
8955 LINE=`grep "wxUSE_SCROLLBAR" ${wx_arg_cache_file}`
8956 if test "x$LINE" != x ; then
8957 eval "DEFAULT_$LINE"
8958 else
8959 no_cache=1
8960 fi
8961
8962 ac_cv_use_scrollbar='wxUSE_SCROLLBAR='$DEFAULT_wxUSE_SCROLLBAR
8963
8964fi;
8965
8966 eval "$ac_cv_use_scrollbar"
8967 if test "$no_cache" != 1; then
8968 echo $ac_cv_use_scrollbar >> ${wx_arg_cache_file}.tmp
8969 fi
8970
8971 if test "$wxUSE_SCROLLBAR" = yes; then
8972 echo "$as_me:$LINENO: result: yes" >&5
8973echo "${ECHO_T}yes" >&6
8974 else
8975 echo "$as_me:$LINENO: result: no" >&5
8976echo "${ECHO_T}no" >&6
8977 fi
8978
8979
8980 enablestring=
8981 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-slider" >&5
8982echo $ECHO_N "checking for --${enablestring:-enable}-slider... $ECHO_C" >&6
8983 no_cache=0
8984 # Check whether --enable-slider or --disable-slider was given.
8985if test "${enable_slider+set}" = set; then
8986 enableval="$enable_slider"
8987
8988 if test "$enableval" = yes; then
8989 ac_cv_use_slider='wxUSE_SLIDER=yes'
8990 else
8991 ac_cv_use_slider='wxUSE_SLIDER=no'
8992 fi
8993
8994else
8995
8996 LINE=`grep "wxUSE_SLIDER" ${wx_arg_cache_file}`
8997 if test "x$LINE" != x ; then
8998 eval "DEFAULT_$LINE"
8999 else
9000 no_cache=1
9001 fi
9002
9003 ac_cv_use_slider='wxUSE_SLIDER='$DEFAULT_wxUSE_SLIDER
9004
9005fi;
9006
9007 eval "$ac_cv_use_slider"
9008 if test "$no_cache" != 1; then
9009 echo $ac_cv_use_slider >> ${wx_arg_cache_file}.tmp
9010 fi
9011
9012 if test "$wxUSE_SLIDER" = yes; then
9013 echo "$as_me:$LINENO: result: yes" >&5
9014echo "${ECHO_T}yes" >&6
9015 else
9016 echo "$as_me:$LINENO: result: no" >&5
9017echo "${ECHO_T}no" >&6
9018 fi
9019
9020
9021 enablestring=
9022 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-spinbtn" >&5
9023echo $ECHO_N "checking for --${enablestring:-enable}-spinbtn... $ECHO_C" >&6
9024 no_cache=0
9025 # Check whether --enable-spinbtn or --disable-spinbtn was given.
9026if test "${enable_spinbtn+set}" = set; then
9027 enableval="$enable_spinbtn"
9028
9029 if test "$enableval" = yes; then
9030 ac_cv_use_spinbtn='wxUSE_SPINBTN=yes'
9031 else
9032 ac_cv_use_spinbtn='wxUSE_SPINBTN=no'
9033 fi
9034
9035else
9036
9037 LINE=`grep "wxUSE_SPINBTN" ${wx_arg_cache_file}`
9038 if test "x$LINE" != x ; then
9039 eval "DEFAULT_$LINE"
9040 else
9041 no_cache=1
9042 fi
9043
9044 ac_cv_use_spinbtn='wxUSE_SPINBTN='$DEFAULT_wxUSE_SPINBTN
9045
9046fi;
9047
9048 eval "$ac_cv_use_spinbtn"
9049 if test "$no_cache" != 1; then
9050 echo $ac_cv_use_spinbtn >> ${wx_arg_cache_file}.tmp
9051 fi
9052
9053 if test "$wxUSE_SPINBTN" = yes; then
9054 echo "$as_me:$LINENO: result: yes" >&5
9055echo "${ECHO_T}yes" >&6
9056 else
9057 echo "$as_me:$LINENO: result: no" >&5
9058echo "${ECHO_T}no" >&6
9059 fi
9060
9061
9062 enablestring=
9063 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-spinctrl" >&5
9064echo $ECHO_N "checking for --${enablestring:-enable}-spinctrl... $ECHO_C" >&6
9065 no_cache=0
9066 # Check whether --enable-spinctrl or --disable-spinctrl was given.
9067if test "${enable_spinctrl+set}" = set; then
9068 enableval="$enable_spinctrl"
9069
9070 if test "$enableval" = yes; then
9071 ac_cv_use_spinctrl='wxUSE_SPINCTRL=yes'
9072 else
9073 ac_cv_use_spinctrl='wxUSE_SPINCTRL=no'
9074 fi
9075
9076else
9077
9078 LINE=`grep "wxUSE_SPINCTRL" ${wx_arg_cache_file}`
9079 if test "x$LINE" != x ; then
9080 eval "DEFAULT_$LINE"
9081 else
9082 no_cache=1
9083 fi
9084
9085 ac_cv_use_spinctrl='wxUSE_SPINCTRL='$DEFAULT_wxUSE_SPINCTRL
9086
9087fi;
9088
9089 eval "$ac_cv_use_spinctrl"
9090 if test "$no_cache" != 1; then
9091 echo $ac_cv_use_spinctrl >> ${wx_arg_cache_file}.tmp
9092 fi
9093
9094 if test "$wxUSE_SPINCTRL" = yes; then
9095 echo "$as_me:$LINENO: result: yes" >&5
9096echo "${ECHO_T}yes" >&6
9097 else
9098 echo "$as_me:$LINENO: result: no" >&5
9099echo "${ECHO_T}no" >&6
9100 fi
9101
9102
9103 enablestring=
9104 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splitter" >&5
9105echo $ECHO_N "checking for --${enablestring:-enable}-splitter... $ECHO_C" >&6
9106 no_cache=0
9107 # Check whether --enable-splitter or --disable-splitter was given.
9108if test "${enable_splitter+set}" = set; then
9109 enableval="$enable_splitter"
9110
9111 if test "$enableval" = yes; then
9112 ac_cv_use_splitter='wxUSE_SPLITTER=yes'
9113 else
9114 ac_cv_use_splitter='wxUSE_SPLITTER=no'
9115 fi
9116
9117else
9118
9119 LINE=`grep "wxUSE_SPLITTER" ${wx_arg_cache_file}`
9120 if test "x$LINE" != x ; then
9121 eval "DEFAULT_$LINE"
9122 else
9123 no_cache=1
9124 fi
9125
9126 ac_cv_use_splitter='wxUSE_SPLITTER='$DEFAULT_wxUSE_SPLITTER
9127
9128fi;
9129
9130 eval "$ac_cv_use_splitter"
9131 if test "$no_cache" != 1; then
9132 echo $ac_cv_use_splitter >> ${wx_arg_cache_file}.tmp
9133 fi
9134
9135 if test "$wxUSE_SPLITTER" = yes; then
9136 echo "$as_me:$LINENO: result: yes" >&5
9137echo "${ECHO_T}yes" >&6
9138 else
9139 echo "$as_me:$LINENO: result: no" >&5
9140echo "${ECHO_T}no" >&6
9141 fi
9142
9143
9144 enablestring=
9145 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statbmp" >&5
9146echo $ECHO_N "checking for --${enablestring:-enable}-statbmp... $ECHO_C" >&6
9147 no_cache=0
9148 # Check whether --enable-statbmp or --disable-statbmp was given.
9149if test "${enable_statbmp+set}" = set; then
9150 enableval="$enable_statbmp"
9151
9152 if test "$enableval" = yes; then
9153 ac_cv_use_statbmp='wxUSE_STATBMP=yes'
9154 else
9155 ac_cv_use_statbmp='wxUSE_STATBMP=no'
9156 fi
9157
9158else
9159
9160 LINE=`grep "wxUSE_STATBMP" ${wx_arg_cache_file}`
9161 if test "x$LINE" != x ; then
9162 eval "DEFAULT_$LINE"
9163 else
9164 no_cache=1
9165 fi
9166
9167 ac_cv_use_statbmp='wxUSE_STATBMP='$DEFAULT_wxUSE_STATBMP
9168
9169fi;
9170
9171 eval "$ac_cv_use_statbmp"
9172 if test "$no_cache" != 1; then
9173 echo $ac_cv_use_statbmp >> ${wx_arg_cache_file}.tmp
9174 fi
9175
9176 if test "$wxUSE_STATBMP" = yes; then
9177 echo "$as_me:$LINENO: result: yes" >&5
9178echo "${ECHO_T}yes" >&6
9179 else
9180 echo "$as_me:$LINENO: result: no" >&5
9181echo "${ECHO_T}no" >&6
9182 fi
9183
9184
9185 enablestring=
9186 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statbox" >&5
9187echo $ECHO_N "checking for --${enablestring:-enable}-statbox... $ECHO_C" >&6
9188 no_cache=0
9189 # Check whether --enable-statbox or --disable-statbox was given.
9190if test "${enable_statbox+set}" = set; then
9191 enableval="$enable_statbox"
9192
9193 if test "$enableval" = yes; then
9194 ac_cv_use_statbox='wxUSE_STATBOX=yes'
9195 else
9196 ac_cv_use_statbox='wxUSE_STATBOX=no'
9197 fi
9198
9199else
9200
9201 LINE=`grep "wxUSE_STATBOX" ${wx_arg_cache_file}`
9202 if test "x$LINE" != x ; then
9203 eval "DEFAULT_$LINE"
9204 else
9205 no_cache=1
9206 fi
9207
9208 ac_cv_use_statbox='wxUSE_STATBOX='$DEFAULT_wxUSE_STATBOX
9209
9210fi;
9211
9212 eval "$ac_cv_use_statbox"
9213 if test "$no_cache" != 1; then
9214 echo $ac_cv_use_statbox >> ${wx_arg_cache_file}.tmp
9215 fi
9216
9217 if test "$wxUSE_STATBOX" = yes; then
9218 echo "$as_me:$LINENO: result: yes" >&5
9219echo "${ECHO_T}yes" >&6
9220 else
9221 echo "$as_me:$LINENO: result: no" >&5
9222echo "${ECHO_T}no" >&6
9223 fi
9224
9225
9226 enablestring=
9227 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statline" >&5
9228echo $ECHO_N "checking for --${enablestring:-enable}-statline... $ECHO_C" >&6
9229 no_cache=0
9230 # Check whether --enable-statline or --disable-statline was given.
9231if test "${enable_statline+set}" = set; then
9232 enableval="$enable_statline"
9233
9234 if test "$enableval" = yes; then
9235 ac_cv_use_statline='wxUSE_STATLINE=yes'
9236 else
9237 ac_cv_use_statline='wxUSE_STATLINE=no'
9238 fi
9239
9240else
9241
9242 LINE=`grep "wxUSE_STATLINE" ${wx_arg_cache_file}`
9243 if test "x$LINE" != x ; then
9244 eval "DEFAULT_$LINE"
9245 else
9246 no_cache=1
9247 fi
9248
9249 ac_cv_use_statline='wxUSE_STATLINE='$DEFAULT_wxUSE_STATLINE
9250
9251fi;
9252
9253 eval "$ac_cv_use_statline"
9254 if test "$no_cache" != 1; then
9255 echo $ac_cv_use_statline >> ${wx_arg_cache_file}.tmp
9256 fi
9257
9258 if test "$wxUSE_STATLINE" = yes; then
9259 echo "$as_me:$LINENO: result: yes" >&5
9260echo "${ECHO_T}yes" >&6
9261 else
9262 echo "$as_me:$LINENO: result: no" >&5
9263echo "${ECHO_T}no" >&6
9264 fi
9265
9266
9267 enablestring=
9268 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stattext" >&5
9269echo $ECHO_N "checking for --${enablestring:-enable}-stattext... $ECHO_C" >&6
9270 no_cache=0
9271 # Check whether --enable-stattext or --disable-stattext was given.
9272if test "${enable_stattext+set}" = set; then
9273 enableval="$enable_stattext"
9274
9275 if test "$enableval" = yes; then
9276 ac_cv_use_stattext='wxUSE_STATTEXT=yes'
9277 else
9278 ac_cv_use_stattext='wxUSE_STATTEXT=no'
9279 fi
9280
9281else
9282
9283 LINE=`grep "wxUSE_STATTEXT" ${wx_arg_cache_file}`
9284 if test "x$LINE" != x ; then
9285 eval "DEFAULT_$LINE"
9286 else
9287 no_cache=1
9288 fi
9289
9290 ac_cv_use_stattext='wxUSE_STATTEXT='$DEFAULT_wxUSE_STATTEXT
9291
9292fi;
9293
9294 eval "$ac_cv_use_stattext"
9295 if test "$no_cache" != 1; then
9296 echo $ac_cv_use_stattext >> ${wx_arg_cache_file}.tmp
9297 fi
9298
9299 if test "$wxUSE_STATTEXT" = yes; then
9300 echo "$as_me:$LINENO: result: yes" >&5
9301echo "${ECHO_T}yes" >&6
9302 else
9303 echo "$as_me:$LINENO: result: no" >&5
9304echo "${ECHO_T}no" >&6
9305 fi
9306
9307
9308 enablestring=
9309 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statusbar" >&5
9310echo $ECHO_N "checking for --${enablestring:-enable}-statusbar... $ECHO_C" >&6
9311 no_cache=0
9312 # Check whether --enable-statusbar or --disable-statusbar was given.
9313if test "${enable_statusbar+set}" = set; then
9314 enableval="$enable_statusbar"
9315
9316 if test "$enableval" = yes; then
9317 ac_cv_use_statusbar='wxUSE_STATUSBAR=yes'
9318 else
9319 ac_cv_use_statusbar='wxUSE_STATUSBAR=no'
9320 fi
9321
9322else
9323
9324 LINE=`grep "wxUSE_STATUSBAR" ${wx_arg_cache_file}`
9325 if test "x$LINE" != x ; then
9326 eval "DEFAULT_$LINE"
9327 else
9328 no_cache=1
9329 fi
9330
9331 ac_cv_use_statusbar='wxUSE_STATUSBAR='$DEFAULT_wxUSE_STATUSBAR
9332
9333fi;
9334
9335 eval "$ac_cv_use_statusbar"
9336 if test "$no_cache" != 1; then
9337 echo $ac_cv_use_statusbar >> ${wx_arg_cache_file}.tmp
9338 fi
9339
9340 if test "$wxUSE_STATUSBAR" = yes; then
9341 echo "$as_me:$LINENO: result: yes" >&5
9342echo "${ECHO_T}yes" >&6
9343 else
9344 echo "$as_me:$LINENO: result: no" >&5
9345echo "${ECHO_T}no" >&6
9346 fi
9347
9348
9349 enablestring=
9350 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tabdialog" >&5
9351echo $ECHO_N "checking for --${enablestring:-enable}-tabdialog... $ECHO_C" >&6
9352 no_cache=0
9353 # Check whether --enable-tabdialog or --disable-tabdialog was given.
9354if test "${enable_tabdialog+set}" = set; then
9355 enableval="$enable_tabdialog"
9356
9357 if test "$enableval" = yes; then
f10e38c4 9358 ac_cv_use_tabdialog='wxUSE_TAB_DIALOG=yes'
a848cd7e 9359 else
f10e38c4 9360 ac_cv_use_tabdialog='wxUSE_TAB_DIALOG=no'
a848cd7e
SC
9361 fi
9362
9363else
9364
f10e38c4 9365 LINE=`grep "wxUSE_TAB_DIALOG" ${wx_arg_cache_file}`
a848cd7e
SC
9366 if test "x$LINE" != x ; then
9367 eval "DEFAULT_$LINE"
9368 else
9369 no_cache=1
9370 fi
9371
f10e38c4 9372 ac_cv_use_tabdialog='wxUSE_TAB_DIALOG='$DEFAULT_wxUSE_TAB_DIALOG
a848cd7e
SC
9373
9374fi;
9375
9376 eval "$ac_cv_use_tabdialog"
9377 if test "$no_cache" != 1; then
9378 echo $ac_cv_use_tabdialog >> ${wx_arg_cache_file}.tmp
9379 fi
9380
f10e38c4 9381 if test "$wxUSE_TAB_DIALOG" = yes; then
a848cd7e
SC
9382 echo "$as_me:$LINENO: result: yes" >&5
9383echo "${ECHO_T}yes" >&6
9384 else
9385 echo "$as_me:$LINENO: result: no" >&5
9386echo "${ECHO_T}no" >&6
9387 fi
9388
9389
9390 enablestring=
9391 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textctrl" >&5
9392echo $ECHO_N "checking for --${enablestring:-enable}-textctrl... $ECHO_C" >&6
9393 no_cache=0
9394 # Check whether --enable-textctrl or --disable-textctrl was given.
9395if test "${enable_textctrl+set}" = set; then
9396 enableval="$enable_textctrl"
9397
9398 if test "$enableval" = yes; then
9399 ac_cv_use_textctrl='wxUSE_TEXTCTRL=yes'
9400 else
9401 ac_cv_use_textctrl='wxUSE_TEXTCTRL=no'
9402 fi
9403
9404else
9405
9406 LINE=`grep "wxUSE_TEXTCTRL" ${wx_arg_cache_file}`
9407 if test "x$LINE" != x ; then
9408 eval "DEFAULT_$LINE"
9409 else
9410 no_cache=1
9411 fi
9412
9413 ac_cv_use_textctrl='wxUSE_TEXTCTRL='$DEFAULT_wxUSE_TEXTCTRL
9414
9415fi;
9416
9417 eval "$ac_cv_use_textctrl"
9418 if test "$no_cache" != 1; then
9419 echo $ac_cv_use_textctrl >> ${wx_arg_cache_file}.tmp
9420 fi
9421
9422 if test "$wxUSE_TEXTCTRL" = yes; then
9423 echo "$as_me:$LINENO: result: yes" >&5
9424echo "${ECHO_T}yes" >&6
9425 else
9426 echo "$as_me:$LINENO: result: no" >&5
9427echo "${ECHO_T}no" >&6
9428 fi
9429
9430
9431 enablestring=
9432 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-togglebtn" >&5
9433echo $ECHO_N "checking for --${enablestring:-enable}-togglebtn... $ECHO_C" >&6
9434 no_cache=0
9435 # Check whether --enable-togglebtn or --disable-togglebtn was given.
9436if test "${enable_togglebtn+set}" = set; then
9437 enableval="$enable_togglebtn"
9438
9439 if test "$enableval" = yes; then
9440 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=yes'
9441 else
9442 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=no'
9443 fi
9444
9445else
9446
9447 LINE=`grep "wxUSE_TOGGLEBTN" ${wx_arg_cache_file}`
9448 if test "x$LINE" != x ; then
9449 eval "DEFAULT_$LINE"
9450 else
9451 no_cache=1
9452 fi
9453
9454 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN='$DEFAULT_wxUSE_TOGGLEBTN
9455
9456fi;
9457
9458 eval "$ac_cv_use_togglebtn"
9459 if test "$no_cache" != 1; then
9460 echo $ac_cv_use_togglebtn >> ${wx_arg_cache_file}.tmp
9461 fi
9462
9463 if test "$wxUSE_TOGGLEBTN" = yes; then
9464 echo "$as_me:$LINENO: result: yes" >&5
9465echo "${ECHO_T}yes" >&6
9466 else
9467 echo "$as_me:$LINENO: result: no" >&5
9468echo "${ECHO_T}no" >&6
9469 fi
9470
9471
9472 enablestring=
9473 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-toolbar" >&5
9474echo $ECHO_N "checking for --${enablestring:-enable}-toolbar... $ECHO_C" >&6
9475 no_cache=0
9476 # Check whether --enable-toolbar or --disable-toolbar was given.
9477if test "${enable_toolbar+set}" = set; then
9478 enableval="$enable_toolbar"
9479
9480 if test "$enableval" = yes; then
9481 ac_cv_use_toolbar='wxUSE_TOOLBAR=yes'
9482 else
9483 ac_cv_use_toolbar='wxUSE_TOOLBAR=no'
9484 fi
9485
9486else
9487
9488 LINE=`grep "wxUSE_TOOLBAR" ${wx_arg_cache_file}`
9489 if test "x$LINE" != x ; then
9490 eval "DEFAULT_$LINE"
9491 else
9492 no_cache=1
9493 fi
9494
9495 ac_cv_use_toolbar='wxUSE_TOOLBAR='$DEFAULT_wxUSE_TOOLBAR
9496
9497fi;
9498
9499 eval "$ac_cv_use_toolbar"
9500 if test "$no_cache" != 1; then
9501 echo $ac_cv_use_toolbar >> ${wx_arg_cache_file}.tmp
9502 fi
9503
9504 if test "$wxUSE_TOOLBAR" = yes; then
9505 echo "$as_me:$LINENO: result: yes" >&5
9506echo "${ECHO_T}yes" >&6
9507 else
9508 echo "$as_me:$LINENO: result: no" >&5
9509echo "${ECHO_T}no" >&6
9510 fi
9511
9512
9513 enablestring=
9514 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tbarnative" >&5
9515echo $ECHO_N "checking for --${enablestring:-enable}-tbarnative... $ECHO_C" >&6
9516 no_cache=0
9517 # Check whether --enable-tbarnative or --disable-tbarnative was given.
9518if test "${enable_tbarnative+set}" = set; then
9519 enableval="$enable_tbarnative"
9520
9521 if test "$enableval" = yes; then
9522 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=yes'
9523 else
9524 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=no'
9525 fi
9526
9527else
9528
9529 LINE=`grep "wxUSE_TOOLBAR_NATIVE" ${wx_arg_cache_file}`
9530 if test "x$LINE" != x ; then
9531 eval "DEFAULT_$LINE"
9532 else
9533 no_cache=1
9534 fi
9535
9536 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE='$DEFAULT_wxUSE_TOOLBAR_NATIVE
9537
9538fi;
9539
9540 eval "$ac_cv_use_tbarnative"
9541 if test "$no_cache" != 1; then
9542 echo $ac_cv_use_tbarnative >> ${wx_arg_cache_file}.tmp
9543 fi
9544
9545 if test "$wxUSE_TOOLBAR_NATIVE" = yes; then
9546 echo "$as_me:$LINENO: result: yes" >&5
9547echo "${ECHO_T}yes" >&6
9548 else
9549 echo "$as_me:$LINENO: result: no" >&5
9550echo "${ECHO_T}no" >&6
9551 fi
9552
9553
9554 enablestring=
9555 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tbarsmpl" >&5
9556echo $ECHO_N "checking for --${enablestring:-enable}-tbarsmpl... $ECHO_C" >&6
9557 no_cache=0
9558 # Check whether --enable-tbarsmpl or --disable-tbarsmpl was given.
9559if test "${enable_tbarsmpl+set}" = set; then
9560 enableval="$enable_tbarsmpl"
9561
9562 if test "$enableval" = yes; then
9563 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=yes'
9564 else
9565 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=no'
9566 fi
9567
9568else
9569
9570 LINE=`grep "wxUSE_TOOLBAR_SIMPLE" ${wx_arg_cache_file}`
9571 if test "x$LINE" != x ; then
9572 eval "DEFAULT_$LINE"
9573 else
9574 no_cache=1
9575 fi
9576
9577 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE='$DEFAULT_wxUSE_TOOLBAR_SIMPLE
9578
9579fi;
9580
9581 eval "$ac_cv_use_tbarsmpl"
9582 if test "$no_cache" != 1; then
9583 echo $ac_cv_use_tbarsmpl >> ${wx_arg_cache_file}.tmp
9584 fi
9585
9586 if test "$wxUSE_TOOLBAR_SIMPLE" = yes; then
9587 echo "$as_me:$LINENO: result: yes" >&5
9588echo "${ECHO_T}yes" >&6
9589 else
9590 echo "$as_me:$LINENO: result: no" >&5
9591echo "${ECHO_T}no" >&6
9592 fi
9593
9594
0093c2fc
VZ
9595 enablestring=
9596 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-treebook" >&5
9597echo $ECHO_N "checking for --${enablestring:-enable}-treebook... $ECHO_C" >&6
9598 no_cache=0
9599 # Check whether --enable-treebook or --disable-treebook was given.
9600if test "${enable_treebook+set}" = set; then
9601 enableval="$enable_treebook"
9602
9603 if test "$enableval" = yes; then
9604 ac_cv_use_treebook='wxUSE_TREEBOOK=yes'
9605 else
9606 ac_cv_use_treebook='wxUSE_TREEBOOK=no'
9607 fi
9608
9609else
9610
9611 LINE=`grep "wxUSE_TREEBOOK" ${wx_arg_cache_file}`
9612 if test "x$LINE" != x ; then
9613 eval "DEFAULT_$LINE"
9614 else
9615 no_cache=1
9616 fi
9617
9618 ac_cv_use_treebook='wxUSE_TREEBOOK='$DEFAULT_wxUSE_TREEBOOK
9619
9620fi;
9621
9622 eval "$ac_cv_use_treebook"
9623 if test "$no_cache" != 1; then
9624 echo $ac_cv_use_treebook >> ${wx_arg_cache_file}.tmp
9625 fi
9626
9627 if test "$wxUSE_TREEBOOK" = yes; then
9628 echo "$as_me:$LINENO: result: yes" >&5
9629echo "${ECHO_T}yes" >&6
9630 else
9631 echo "$as_me:$LINENO: result: no" >&5
9632echo "${ECHO_T}no" >&6
9633 fi
9634
9635
5ec3bc43
JS
9636 enablestring=
9637 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-toolbook" >&5
9638echo $ECHO_N "checking for --${enablestring:-enable}-toolbook... $ECHO_C" >&6
9639 no_cache=0
9640 # Check whether --enable-toolbook or --disable-toolbook was given.
9641if test "${enable_toolbook+set}" = set; then
9642 enableval="$enable_toolbook"
9643
9644 if test "$enableval" = yes; then
9645 ac_cv_use_toolbook='wxUSE_TOOLBOOK=yes'
9646 else
9647 ac_cv_use_toolbook='wxUSE_TOOLBOOK=no'
9648 fi
9649
9650else
9651
9652 LINE=`grep "wxUSE_TOOLBOOK" ${wx_arg_cache_file}`
9653 if test "x$LINE" != x ; then
9654 eval "DEFAULT_$LINE"
9655 else
9656 no_cache=1
9657 fi
9658
9659 ac_cv_use_toolbook='wxUSE_TOOLBOOK='$DEFAULT_wxUSE_TOOLBOOK
9660
9661fi;
9662
9663 eval "$ac_cv_use_toolbook"
9664 if test "$no_cache" != 1; then
9665 echo $ac_cv_use_toolbook >> ${wx_arg_cache_file}.tmp
9666 fi
9667
9668 if test "$wxUSE_TOOLBOOK" = yes; then
9669 echo "$as_me:$LINENO: result: yes" >&5
9670echo "${ECHO_T}yes" >&6
9671 else
9672 echo "$as_me:$LINENO: result: no" >&5
9673echo "${ECHO_T}no" >&6
9674 fi
9675
9676
a848cd7e
SC
9677 enablestring=
9678 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-treectrl" >&5
9679echo $ECHO_N "checking for --${enablestring:-enable}-treectrl... $ECHO_C" >&6
9680 no_cache=0
9681 # Check whether --enable-treectrl or --disable-treectrl was given.
9682if test "${enable_treectrl+set}" = set; then
9683 enableval="$enable_treectrl"
9684
9685 if test "$enableval" = yes; then
9686 ac_cv_use_treectrl='wxUSE_TREECTRL=yes'
9687 else
9688 ac_cv_use_treectrl='wxUSE_TREECTRL=no'
9689 fi
9690
9691else
9692
9693 LINE=`grep "wxUSE_TREECTRL" ${wx_arg_cache_file}`
9694 if test "x$LINE" != x ; then
9695 eval "DEFAULT_$LINE"
9696 else
9697 no_cache=1
9698 fi
9699
9700 ac_cv_use_treectrl='wxUSE_TREECTRL='$DEFAULT_wxUSE_TREECTRL
9701
9702fi;
9703
9704 eval "$ac_cv_use_treectrl"
9705 if test "$no_cache" != 1; then
9706 echo $ac_cv_use_treectrl >> ${wx_arg_cache_file}.tmp
9707 fi
9708
9709 if test "$wxUSE_TREECTRL" = yes; then
9710 echo "$as_me:$LINENO: result: yes" >&5
9711echo "${ECHO_T}yes" >&6
9712 else
9713 echo "$as_me:$LINENO: result: no" >&5
9714echo "${ECHO_T}no" >&6
9715 fi
9716
9717
9718 enablestring=
9719 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tipwindow" >&5
9720echo $ECHO_N "checking for --${enablestring:-enable}-tipwindow... $ECHO_C" >&6
9721 no_cache=0
9722 # Check whether --enable-tipwindow or --disable-tipwindow was given.
9723if test "${enable_tipwindow+set}" = set; then
9724 enableval="$enable_tipwindow"
9725
9726 if test "$enableval" = yes; then
9727 ac_cv_use_tipwindow='wxUSE_TIPWINDOW=yes'
9728 else
9729 ac_cv_use_tipwindow='wxUSE_TIPWINDOW=no'
9730 fi
9731
9732else
9733
9734 LINE=`grep "wxUSE_TIPWINDOW" ${wx_arg_cache_file}`
9735 if test "x$LINE" != x ; then
9736 eval "DEFAULT_$LINE"
9737 else
9738 no_cache=1
9739 fi
9740
9741 ac_cv_use_tipwindow='wxUSE_TIPWINDOW='$DEFAULT_wxUSE_TIPWINDOW
9742
9743fi;
9744
9745 eval "$ac_cv_use_tipwindow"
9746 if test "$no_cache" != 1; then
9747 echo $ac_cv_use_tipwindow >> ${wx_arg_cache_file}.tmp
9748 fi
9749
9750 if test "$wxUSE_TIPWINDOW" = yes; then
9751 echo "$as_me:$LINENO: result: yes" >&5
9752echo "${ECHO_T}yes" >&6
9753 else
9754 echo "$as_me:$LINENO: result: no" >&5
9755echo "${ECHO_T}no" >&6
9756 fi
9757
9758
9759 enablestring=
9760 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-popupwin" >&5
9761echo $ECHO_N "checking for --${enablestring:-enable}-popupwin... $ECHO_C" >&6
9762 no_cache=0
9763 # Check whether --enable-popupwin or --disable-popupwin was given.
9764if test "${enable_popupwin+set}" = set; then
9765 enableval="$enable_popupwin"
9766
9767 if test "$enableval" = yes; then
9768 ac_cv_use_popupwin='wxUSE_POPUPWIN=yes'
9769 else
9770 ac_cv_use_popupwin='wxUSE_POPUPWIN=no'
9771 fi
9772
9773else
9774
9775 LINE=`grep "wxUSE_POPUPWIN" ${wx_arg_cache_file}`
9776 if test "x$LINE" != x ; then
9777 eval "DEFAULT_$LINE"
9778 else
9779 no_cache=1
9780 fi
9781
9782 ac_cv_use_popupwin='wxUSE_POPUPWIN='$DEFAULT_wxUSE_POPUPWIN
9783
9784fi;
9785
9786 eval "$ac_cv_use_popupwin"
9787 if test "$no_cache" != 1; then
9788 echo $ac_cv_use_popupwin >> ${wx_arg_cache_file}.tmp
9789 fi
9790
9791 if test "$wxUSE_POPUPWIN" = yes; then
9792 echo "$as_me:$LINENO: result: yes" >&5
9793echo "${ECHO_T}yes" >&6
9794 else
9795 echo "$as_me:$LINENO: result: no" >&5
9796echo "${ECHO_T}no" >&6
9797 fi
9798
9799
9800
9801
9802 enablestring=
9803 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-commondlg" >&5
9804echo $ECHO_N "checking for --${enablestring:-enable}-commondlg... $ECHO_C" >&6
9805 no_cache=0
9806 # Check whether --enable-commondlg or --disable-commondlg was given.
9807if test "${enable_commondlg+set}" = set; then
9808 enableval="$enable_commondlg"
9809
9810 if test "$enableval" = yes; then
9811 ac_cv_use_commondlg='wxUSE_COMMONDLGS=yes'
9812 else
9813 ac_cv_use_commondlg='wxUSE_COMMONDLGS=no'
9814 fi
9815
9816else
9817
9818 LINE=`grep "wxUSE_COMMONDLGS" ${wx_arg_cache_file}`
9819 if test "x$LINE" != x ; then
9820 eval "DEFAULT_$LINE"
9821 else
9822 no_cache=1
9823 fi
9824
9825 ac_cv_use_commondlg='wxUSE_COMMONDLGS='$DEFAULT_wxUSE_COMMONDLGS
9826
9827fi;
9828
9829 eval "$ac_cv_use_commondlg"
9830 if test "$no_cache" != 1; then
9831 echo $ac_cv_use_commondlg >> ${wx_arg_cache_file}.tmp
9832 fi
9833
9834 if test "$wxUSE_COMMONDLGS" = yes; then
9835 echo "$as_me:$LINENO: result: yes" >&5
9836echo "${ECHO_T}yes" >&6
9837 else
9838 echo "$as_me:$LINENO: result: no" >&5
9839echo "${ECHO_T}no" >&6
9840 fi
9841
9842
9843 enablestring=
9844 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choicedlg" >&5
9845echo $ECHO_N "checking for --${enablestring:-enable}-choicedlg... $ECHO_C" >&6
9846 no_cache=0
9847 # Check whether --enable-choicedlg or --disable-choicedlg was given.
9848if test "${enable_choicedlg+set}" = set; then
9849 enableval="$enable_choicedlg"
9850
9851 if test "$enableval" = yes; then
9852 ac_cv_use_choicedlg='wxUSE_CHOICEDLG=yes'
9853 else
9854 ac_cv_use_choicedlg='wxUSE_CHOICEDLG=no'
9855 fi
9856
9857else
9858
9859 LINE=`grep "wxUSE_CHOICEDLG" ${wx_arg_cache_file}`
9860 if test "x$LINE" != x ; then
9861 eval "DEFAULT_$LINE"
9862 else
9863 no_cache=1
9864 fi
9865
9866 ac_cv_use_choicedlg='wxUSE_CHOICEDLG='$DEFAULT_wxUSE_CHOICEDLG
9867
9868fi;
9869
9870 eval "$ac_cv_use_choicedlg"
9871 if test "$no_cache" != 1; then
9872 echo $ac_cv_use_choicedlg >> ${wx_arg_cache_file}.tmp
9873 fi
9874
9875 if test "$wxUSE_CHOICEDLG" = yes; then
9876 echo "$as_me:$LINENO: result: yes" >&5
9877echo "${ECHO_T}yes" >&6
9878 else
9879 echo "$as_me:$LINENO: result: no" >&5
9880echo "${ECHO_T}no" >&6
9881 fi
9882
9883
9884 enablestring=
9885 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-coldlg" >&5
9886echo $ECHO_N "checking for --${enablestring:-enable}-coldlg... $ECHO_C" >&6
9887 no_cache=0
9888 # Check whether --enable-coldlg or --disable-coldlg was given.
9889if test "${enable_coldlg+set}" = set; then
9890 enableval="$enable_coldlg"
9891
9892 if test "$enableval" = yes; then
9893 ac_cv_use_coldlg='wxUSE_COLOURDLG=yes'
9894 else
9895 ac_cv_use_coldlg='wxUSE_COLOURDLG=no'
9896 fi
9897
9898else
9899
9900 LINE=`grep "wxUSE_COLOURDLG" ${wx_arg_cache_file}`
9901 if test "x$LINE" != x ; then
9902 eval "DEFAULT_$LINE"
9903 else
9904 no_cache=1
9905 fi
9906
9907 ac_cv_use_coldlg='wxUSE_COLOURDLG='$DEFAULT_wxUSE_COLOURDLG
9908
9909fi;
9910
9911 eval "$ac_cv_use_coldlg"
9912 if test "$no_cache" != 1; then
9913 echo $ac_cv_use_coldlg >> ${wx_arg_cache_file}.tmp
9914 fi
9915
9916 if test "$wxUSE_COLOURDLG" = yes; then
9917 echo "$as_me:$LINENO: result: yes" >&5
9918echo "${ECHO_T}yes" >&6
9919 else
9920 echo "$as_me:$LINENO: result: no" >&5
9921echo "${ECHO_T}no" >&6
9922 fi
9923
9924
9925 enablestring=
9926 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-filedlg" >&5
9927echo $ECHO_N "checking for --${enablestring:-enable}-filedlg... $ECHO_C" >&6
9928 no_cache=0
9929 # Check whether --enable-filedlg or --disable-filedlg was given.
9930if test "${enable_filedlg+set}" = set; then
9931 enableval="$enable_filedlg"
9932
9933 if test "$enableval" = yes; then
9934 ac_cv_use_filedlg='wxUSE_FILEDLG=yes'
9935 else
9936 ac_cv_use_filedlg='wxUSE_FILEDLG=no'
9937 fi
9938
9939else
9940
9941 LINE=`grep "wxUSE_FILEDLG" ${wx_arg_cache_file}`
9942 if test "x$LINE" != x ; then
9943 eval "DEFAULT_$LINE"
9944 else
9945 no_cache=1
9946 fi
9947
9948 ac_cv_use_filedlg='wxUSE_FILEDLG='$DEFAULT_wxUSE_FILEDLG
9949
9950fi;
9951
9952 eval "$ac_cv_use_filedlg"
9953 if test "$no_cache" != 1; then
9954 echo $ac_cv_use_filedlg >> ${wx_arg_cache_file}.tmp
9955 fi
9956
9957 if test "$wxUSE_FILEDLG" = yes; then
9958 echo "$as_me:$LINENO: result: yes" >&5
9959echo "${ECHO_T}yes" >&6
9960 else
9961 echo "$as_me:$LINENO: result: no" >&5
9962echo "${ECHO_T}no" >&6
9963 fi
9964
9965
9966 enablestring=
9967 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-finddlg" >&5
9968echo $ECHO_N "checking for --${enablestring:-enable}-finddlg... $ECHO_C" >&6
9969 no_cache=0
9970 # Check whether --enable-finddlg or --disable-finddlg was given.
9971if test "${enable_finddlg+set}" = set; then
9972 enableval="$enable_finddlg"
9973
9974 if test "$enableval" = yes; then
9975 ac_cv_use_finddlg='wxUSE_FINDREPLDLG=yes'
9976 else
9977 ac_cv_use_finddlg='wxUSE_FINDREPLDLG=no'
9978 fi
9979
9980else
9981
9982 LINE=`grep "wxUSE_FINDREPLDLG" ${wx_arg_cache_file}`
9983 if test "x$LINE" != x ; then
9984 eval "DEFAULT_$LINE"
9985 else
9986 no_cache=1
9987 fi
9988
9989 ac_cv_use_finddlg='wxUSE_FINDREPLDLG='$DEFAULT_wxUSE_FINDREPLDLG
9990
9991fi;
9992
9993 eval "$ac_cv_use_finddlg"
9994 if test "$no_cache" != 1; then
9995 echo $ac_cv_use_finddlg >> ${wx_arg_cache_file}.tmp
9996 fi
9997
9998 if test "$wxUSE_FINDREPLDLG" = yes; then
9999 echo "$as_me:$LINENO: result: yes" >&5
10000echo "${ECHO_T}yes" >&6
10001 else
10002 echo "$as_me:$LINENO: result: no" >&5
10003echo "${ECHO_T}no" >&6
10004 fi
10005
10006
10007 enablestring=
10008 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fontdlg" >&5
10009echo $ECHO_N "checking for --${enablestring:-enable}-fontdlg... $ECHO_C" >&6
10010 no_cache=0
10011 # Check whether --enable-fontdlg or --disable-fontdlg was given.
10012if test "${enable_fontdlg+set}" = set; then
10013 enableval="$enable_fontdlg"
10014
10015 if test "$enableval" = yes; then
10016 ac_cv_use_fontdlg='wxUSE_FONTDLG=yes'
10017 else
10018 ac_cv_use_fontdlg='wxUSE_FONTDLG=no'
10019 fi
10020
10021else
10022
10023 LINE=`grep "wxUSE_FONTDLG" ${wx_arg_cache_file}`
10024 if test "x$LINE" != x ; then
10025 eval "DEFAULT_$LINE"
10026 else
10027 no_cache=1
10028 fi
10029
10030 ac_cv_use_fontdlg='wxUSE_FONTDLG='$DEFAULT_wxUSE_FONTDLG
10031
10032fi;
10033
10034 eval "$ac_cv_use_fontdlg"
10035 if test "$no_cache" != 1; then
10036 echo $ac_cv_use_fontdlg >> ${wx_arg_cache_file}.tmp
10037 fi
10038
10039 if test "$wxUSE_FONTDLG" = yes; then
10040 echo "$as_me:$LINENO: result: yes" >&5
10041echo "${ECHO_T}yes" >&6
10042 else
10043 echo "$as_me:$LINENO: result: no" >&5
10044echo "${ECHO_T}no" >&6
10045 fi
10046
10047
10048 enablestring=
10049 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dirdlg" >&5
10050echo $ECHO_N "checking for --${enablestring:-enable}-dirdlg... $ECHO_C" >&6
10051 no_cache=0
10052 # Check whether --enable-dirdlg or --disable-dirdlg was given.
10053if test "${enable_dirdlg+set}" = set; then
10054 enableval="$enable_dirdlg"
10055
10056 if test "$enableval" = yes; then
10057 ac_cv_use_dirdlg='wxUSE_DIRDLG=yes'
10058 else
10059 ac_cv_use_dirdlg='wxUSE_DIRDLG=no'
10060 fi
10061
10062else
10063
10064 LINE=`grep "wxUSE_DIRDLG" ${wx_arg_cache_file}`
10065 if test "x$LINE" != x ; then
10066 eval "DEFAULT_$LINE"
10067 else
10068 no_cache=1
10069 fi
10070
10071 ac_cv_use_dirdlg='wxUSE_DIRDLG='$DEFAULT_wxUSE_DIRDLG
10072
10073fi;
10074
10075 eval "$ac_cv_use_dirdlg"
10076 if test "$no_cache" != 1; then
10077 echo $ac_cv_use_dirdlg >> ${wx_arg_cache_file}.tmp
10078 fi
10079
10080 if test "$wxUSE_DIRDLG" = yes; then
10081 echo "$as_me:$LINENO: result: yes" >&5
10082echo "${ECHO_T}yes" >&6
10083 else
10084 echo "$as_me:$LINENO: result: no" >&5
10085echo "${ECHO_T}no" >&6
10086 fi
10087
10088
10089 enablestring=
10090 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-msgdlg" >&5
10091echo $ECHO_N "checking for --${enablestring:-enable}-msgdlg... $ECHO_C" >&6
10092 no_cache=0
10093 # Check whether --enable-msgdlg or --disable-msgdlg was given.
10094if test "${enable_msgdlg+set}" = set; then
10095 enableval="$enable_msgdlg"
10096
10097 if test "$enableval" = yes; then
10098 ac_cv_use_msgdlg='wxUSE_MSGDLG=yes'
10099 else
10100 ac_cv_use_msgdlg='wxUSE_MSGDLG=no'
10101 fi
10102
10103else
10104
10105 LINE=`grep "wxUSE_MSGDLG" ${wx_arg_cache_file}`
10106 if test "x$LINE" != x ; then
10107 eval "DEFAULT_$LINE"
10108 else
10109 no_cache=1
10110 fi
10111
10112 ac_cv_use_msgdlg='wxUSE_MSGDLG='$DEFAULT_wxUSE_MSGDLG
10113
10114fi;
10115
10116 eval "$ac_cv_use_msgdlg"
10117 if test "$no_cache" != 1; then
10118 echo $ac_cv_use_msgdlg >> ${wx_arg_cache_file}.tmp
10119 fi
10120
10121 if test "$wxUSE_MSGDLG" = yes; then
10122 echo "$as_me:$LINENO: result: yes" >&5
10123echo "${ECHO_T}yes" >&6
10124 else
10125 echo "$as_me:$LINENO: result: no" >&5
10126echo "${ECHO_T}no" >&6
10127 fi
10128
10129
10130 enablestring=
10131 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-numberdlg" >&5
10132echo $ECHO_N "checking for --${enablestring:-enable}-numberdlg... $ECHO_C" >&6
10133 no_cache=0
10134 # Check whether --enable-numberdlg or --disable-numberdlg was given.
10135if test "${enable_numberdlg+set}" = set; then
10136 enableval="$enable_numberdlg"
10137
10138 if test "$enableval" = yes; then
10139 ac_cv_use_numberdlg='wxUSE_NUMBERDLG=yes'
10140 else
10141 ac_cv_use_numberdlg='wxUSE_NUMBERDLG=no'
10142 fi
10143
10144else
10145
10146 LINE=`grep "wxUSE_NUMBERDLG" ${wx_arg_cache_file}`
10147 if test "x$LINE" != x ; then
10148 eval "DEFAULT_$LINE"
10149 else
10150 no_cache=1
10151 fi
10152
10153 ac_cv_use_numberdlg='wxUSE_NUMBERDLG='$DEFAULT_wxUSE_NUMBERDLG
10154
10155fi;
10156
10157 eval "$ac_cv_use_numberdlg"
10158 if test "$no_cache" != 1; then
10159 echo $ac_cv_use_numberdlg >> ${wx_arg_cache_file}.tmp
10160 fi
10161
10162 if test "$wxUSE_NUMBERDLG" = yes; then
10163 echo "$as_me:$LINENO: result: yes" >&5
10164echo "${ECHO_T}yes" >&6
10165 else
10166 echo "$as_me:$LINENO: result: no" >&5
10167echo "${ECHO_T}no" >&6
10168 fi
10169
10170
10171 enablestring=
10172 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splash" >&5
10173echo $ECHO_N "checking for --${enablestring:-enable}-splash... $ECHO_C" >&6
10174 no_cache=0
10175 # Check whether --enable-splash or --disable-splash was given.
10176if test "${enable_splash+set}" = set; then
10177 enableval="$enable_splash"
10178
10179 if test "$enableval" = yes; then
10180 ac_cv_use_splash='wxUSE_SPLASH=yes'
10181 else
10182 ac_cv_use_splash='wxUSE_SPLASH=no'
10183 fi
10184
10185else
10186
10187 LINE=`grep "wxUSE_SPLASH" ${wx_arg_cache_file}`
10188 if test "x$LINE" != x ; then
10189 eval "DEFAULT_$LINE"
10190 else
10191 no_cache=1
10192 fi
10193
10194 ac_cv_use_splash='wxUSE_SPLASH='$DEFAULT_wxUSE_SPLASH
10195
10196fi;
10197
10198 eval "$ac_cv_use_splash"
10199 if test "$no_cache" != 1; then
10200 echo $ac_cv_use_splash >> ${wx_arg_cache_file}.tmp
10201 fi
10202
10203 if test "$wxUSE_SPLASH" = yes; then
10204 echo "$as_me:$LINENO: result: yes" >&5
10205echo "${ECHO_T}yes" >&6
10206 else
10207 echo "$as_me:$LINENO: result: no" >&5
10208echo "${ECHO_T}no" >&6
10209 fi
10210
10211
10212 enablestring=
10213 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textdlg" >&5
10214echo $ECHO_N "checking for --${enablestring:-enable}-textdlg... $ECHO_C" >&6
10215 no_cache=0
10216 # Check whether --enable-textdlg or --disable-textdlg was given.
10217if test "${enable_textdlg+set}" = set; then
10218 enableval="$enable_textdlg"
10219
10220 if test "$enableval" = yes; then
10221 ac_cv_use_textdlg='wxUSE_TEXTDLG=yes'
10222 else
10223 ac_cv_use_textdlg='wxUSE_TEXTDLG=no'
10224 fi
10225
10226else
10227
10228 LINE=`grep "wxUSE_TEXTDLG" ${wx_arg_cache_file}`
10229 if test "x$LINE" != x ; then
10230 eval "DEFAULT_$LINE"
10231 else
10232 no_cache=1
10233 fi
10234
10235 ac_cv_use_textdlg='wxUSE_TEXTDLG='$DEFAULT_wxUSE_TEXTDLG
10236
10237fi;
10238
10239 eval "$ac_cv_use_textdlg"
10240 if test "$no_cache" != 1; then
10241 echo $ac_cv_use_textdlg >> ${wx_arg_cache_file}.tmp
10242 fi
10243
10244 if test "$wxUSE_TEXTDLG" = yes; then
10245 echo "$as_me:$LINENO: result: yes" >&5
10246echo "${ECHO_T}yes" >&6
10247 else
10248 echo "$as_me:$LINENO: result: no" >&5
10249echo "${ECHO_T}no" >&6
10250 fi
10251
10252
10253 enablestring=
10254 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tipdlg" >&5
10255echo $ECHO_N "checking for --${enablestring:-enable}-tipdlg... $ECHO_C" >&6
10256 no_cache=0
10257 # Check whether --enable-tipdlg or --disable-tipdlg was given.
10258if test "${enable_tipdlg+set}" = set; then
10259 enableval="$enable_tipdlg"
10260
10261 if test "$enableval" = yes; then
10262 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=yes'
10263 else
10264 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=no'
10265 fi
10266
10267else
10268
10269 LINE=`grep "wxUSE_STARTUP_TIPS" ${wx_arg_cache_file}`
10270 if test "x$LINE" != x ; then
10271 eval "DEFAULT_$LINE"
10272 else
10273 no_cache=1
10274 fi
10275
10276 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS='$DEFAULT_wxUSE_STARTUP_TIPS
10277
10278fi;
10279
10280 eval "$ac_cv_use_tipdlg"
10281 if test "$no_cache" != 1; then
10282 echo $ac_cv_use_tipdlg >> ${wx_arg_cache_file}.tmp
10283 fi
10284
10285 if test "$wxUSE_STARTUP_TIPS" = yes; then
10286 echo "$as_me:$LINENO: result: yes" >&5
10287echo "${ECHO_T}yes" >&6
10288 else
10289 echo "$as_me:$LINENO: result: no" >&5
10290echo "${ECHO_T}no" >&6
10291 fi
10292
10293
10294 enablestring=
10295 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-progressdlg" >&5
10296echo $ECHO_N "checking for --${enablestring:-enable}-progressdlg... $ECHO_C" >&6
10297 no_cache=0
10298 # Check whether --enable-progressdlg or --disable-progressdlg was given.
10299if test "${enable_progressdlg+set}" = set; then
10300 enableval="$enable_progressdlg"
10301
10302 if test "$enableval" = yes; then
10303 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=yes'
10304 else
10305 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=no'
10306 fi
10307
10308else
10309
10310 LINE=`grep "wxUSE_PROGRESSDLG" ${wx_arg_cache_file}`
10311 if test "x$LINE" != x ; then
10312 eval "DEFAULT_$LINE"
10313 else
10314 no_cache=1
10315 fi
10316
10317 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG='$DEFAULT_wxUSE_PROGRESSDLG
10318
10319fi;
10320
10321 eval "$ac_cv_use_progressdlg"
10322 if test "$no_cache" != 1; then
10323 echo $ac_cv_use_progressdlg >> ${wx_arg_cache_file}.tmp
10324 fi
10325
10326 if test "$wxUSE_PROGRESSDLG" = yes; then
10327 echo "$as_me:$LINENO: result: yes" >&5
10328echo "${ECHO_T}yes" >&6
10329 else
10330 echo "$as_me:$LINENO: result: no" >&5
10331echo "${ECHO_T}no" >&6
10332 fi
10333
10334
10335 enablestring=
10336 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-wizarddlg" >&5
10337echo $ECHO_N "checking for --${enablestring:-enable}-wizarddlg... $ECHO_C" >&6
10338 no_cache=0
10339 # Check whether --enable-wizarddlg or --disable-wizarddlg was given.
10340if test "${enable_wizarddlg+set}" = set; then
10341 enableval="$enable_wizarddlg"
10342
10343 if test "$enableval" = yes; then
10344 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=yes'
10345 else
10346 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=no'
10347 fi
10348
10349else
10350
10351 LINE=`grep "wxUSE_WIZARDDLG" ${wx_arg_cache_file}`
10352 if test "x$LINE" != x ; then
10353 eval "DEFAULT_$LINE"
10354 else
10355 no_cache=1
10356 fi
10357
10358 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG='$DEFAULT_wxUSE_WIZARDDLG
10359
10360fi;
10361
10362 eval "$ac_cv_use_wizarddlg"
10363 if test "$no_cache" != 1; then
10364 echo $ac_cv_use_wizarddlg >> ${wx_arg_cache_file}.tmp
10365 fi
10366
10367 if test "$wxUSE_WIZARDDLG" = yes; then
10368 echo "$as_me:$LINENO: result: yes" >&5
10369echo "${ECHO_T}yes" >&6
10370 else
10371 echo "$as_me:$LINENO: result: no" >&5
10372echo "${ECHO_T}no" >&6
10373 fi
10374
10375
10376
10377
10378 enablestring=
10379 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-menus" >&5
10380echo $ECHO_N "checking for --${enablestring:-enable}-menus... $ECHO_C" >&6
10381 no_cache=0
10382 # Check whether --enable-menus or --disable-menus was given.
10383if test "${enable_menus+set}" = set; then
10384 enableval="$enable_menus"
10385
10386 if test "$enableval" = yes; then
10387 ac_cv_use_menus='wxUSE_MENUS=yes'
10388 else
10389 ac_cv_use_menus='wxUSE_MENUS=no'
10390 fi
10391
10392else
10393
10394 LINE=`grep "wxUSE_MENUS" ${wx_arg_cache_file}`
10395 if test "x$LINE" != x ; then
10396 eval "DEFAULT_$LINE"
10397 else
10398 no_cache=1
10399 fi
10400
10401 ac_cv_use_menus='wxUSE_MENUS='$DEFAULT_wxUSE_MENUS
10402
10403fi;
10404
10405 eval "$ac_cv_use_menus"
10406 if test "$no_cache" != 1; then
10407 echo $ac_cv_use_menus >> ${wx_arg_cache_file}.tmp
10408 fi
10409
10410 if test "$wxUSE_MENUS" = yes; then
10411 echo "$as_me:$LINENO: result: yes" >&5
10412echo "${ECHO_T}yes" >&6
10413 else
10414 echo "$as_me:$LINENO: result: no" >&5
10415echo "${ECHO_T}no" >&6
10416 fi
10417
10418
10419 enablestring=
10420 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-miniframe" >&5
10421echo $ECHO_N "checking for --${enablestring:-enable}-miniframe... $ECHO_C" >&6
10422 no_cache=0
10423 # Check whether --enable-miniframe or --disable-miniframe was given.
10424if test "${enable_miniframe+set}" = set; then
10425 enableval="$enable_miniframe"
10426
10427 if test "$enableval" = yes; then
10428 ac_cv_use_miniframe='wxUSE_MINIFRAME=yes'
10429 else
10430 ac_cv_use_miniframe='wxUSE_MINIFRAME=no'
10431 fi
10432
10433else
10434
10435 LINE=`grep "wxUSE_MINIFRAME" ${wx_arg_cache_file}`
10436 if test "x$LINE" != x ; then
10437 eval "DEFAULT_$LINE"
10438 else
10439 no_cache=1
10440 fi
10441
10442 ac_cv_use_miniframe='wxUSE_MINIFRAME='$DEFAULT_wxUSE_MINIFRAME
10443
10444fi;
10445
10446 eval "$ac_cv_use_miniframe"
10447 if test "$no_cache" != 1; then
10448 echo $ac_cv_use_miniframe >> ${wx_arg_cache_file}.tmp
10449 fi
10450
10451 if test "$wxUSE_MINIFRAME" = yes; then
10452 echo "$as_me:$LINENO: result: yes" >&5
10453echo "${ECHO_T}yes" >&6
10454 else
10455 echo "$as_me:$LINENO: result: no" >&5
10456echo "${ECHO_T}no" >&6
10457 fi
10458
10459
10460 enablestring=
10461 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tooltips" >&5
10462echo $ECHO_N "checking for --${enablestring:-enable}-tooltips... $ECHO_C" >&6
10463 no_cache=0
10464 # Check whether --enable-tooltips or --disable-tooltips was given.
10465if test "${enable_tooltips+set}" = set; then
10466 enableval="$enable_tooltips"
10467
10468 if test "$enableval" = yes; then
10469 ac_cv_use_tooltips='wxUSE_TOOLTIPS=yes'
10470 else
10471 ac_cv_use_tooltips='wxUSE_TOOLTIPS=no'
10472 fi
10473
10474else
10475
10476 LINE=`grep "wxUSE_TOOLTIPS" ${wx_arg_cache_file}`
10477 if test "x$LINE" != x ; then
10478 eval "DEFAULT_$LINE"
10479 else
10480 no_cache=1
10481 fi
10482
10483 ac_cv_use_tooltips='wxUSE_TOOLTIPS='$DEFAULT_wxUSE_TOOLTIPS
10484
10485fi;
10486
10487 eval "$ac_cv_use_tooltips"
10488 if test "$no_cache" != 1; then
10489 echo $ac_cv_use_tooltips >> ${wx_arg_cache_file}.tmp
10490 fi
10491
10492 if test "$wxUSE_TOOLTIPS" = yes; then
10493 echo "$as_me:$LINENO: result: yes" >&5
10494echo "${ECHO_T}yes" >&6
10495 else
10496 echo "$as_me:$LINENO: result: no" >&5
10497echo "${ECHO_T}no" >&6
10498 fi
10499
10500
10501 enablestring=
10502 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splines" >&5
10503echo $ECHO_N "checking for --${enablestring:-enable}-splines... $ECHO_C" >&6
10504 no_cache=0
10505 # Check whether --enable-splines or --disable-splines was given.
10506if test "${enable_splines+set}" = set; then
10507 enableval="$enable_splines"
10508
10509 if test "$enableval" = yes; then
10510 ac_cv_use_splines='wxUSE_SPLINES=yes'
10511 else
10512 ac_cv_use_splines='wxUSE_SPLINES=no'
10513 fi
10514
10515else
10516
10517 LINE=`grep "wxUSE_SPLINES" ${wx_arg_cache_file}`
10518 if test "x$LINE" != x ; then
10519 eval "DEFAULT_$LINE"
10520 else
10521 no_cache=1
10522 fi
10523
10524 ac_cv_use_splines='wxUSE_SPLINES='$DEFAULT_wxUSE_SPLINES
10525
10526fi;
10527
10528 eval "$ac_cv_use_splines"
10529 if test "$no_cache" != 1; then
10530 echo $ac_cv_use_splines >> ${wx_arg_cache_file}.tmp
10531 fi
10532
10533 if test "$wxUSE_SPLINES" = yes; then
10534 echo "$as_me:$LINENO: result: yes" >&5
10535echo "${ECHO_T}yes" >&6
10536 else
10537 echo "$as_me:$LINENO: result: no" >&5
10538echo "${ECHO_T}no" >&6
10539 fi
10540
10541
fbe2ca43
SN
10542 enablestring=
10543 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mousewheel" >&5
10544echo $ECHO_N "checking for --${enablestring:-enable}-mousewheel... $ECHO_C" >&6
10545 no_cache=0
10546 # Check whether --enable-mousewheel or --disable-mousewheel was given.
10547if test "${enable_mousewheel+set}" = set; then
10548 enableval="$enable_mousewheel"
10549
10550 if test "$enableval" = yes; then
10551 ac_cv_use_mousewheel='wxUSE_MOUSEWHEEL=yes'
10552 else
10553 ac_cv_use_mousewheel='wxUSE_MOUSEWHEEL=no'
10554 fi
10555
10556else
10557
10558 LINE=`grep "wxUSE_MOUSEWHEEL" ${wx_arg_cache_file}`
10559 if test "x$LINE" != x ; then
10560 eval "DEFAULT_$LINE"
10561 else
10562 no_cache=1
10563 fi
10564
10565 ac_cv_use_mousewheel='wxUSE_MOUSEWHEEL='$DEFAULT_wxUSE_MOUSEWHEEL
10566
10567fi;
10568
10569 eval "$ac_cv_use_mousewheel"
10570 if test "$no_cache" != 1; then
10571 echo $ac_cv_use_mousewheel >> ${wx_arg_cache_file}.tmp
10572 fi
10573
10574 if test "$wxUSE_MOUSEWHEEL" = yes; then
10575 echo "$as_me:$LINENO: result: yes" >&5
10576echo "${ECHO_T}yes" >&6
10577 else
10578 echo "$as_me:$LINENO: result: no" >&5
10579echo "${ECHO_T}no" >&6
10580 fi
10581
10582
a848cd7e
SC
10583 enablestring=
10584 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-validators" >&5
10585echo $ECHO_N "checking for --${enablestring:-enable}-validators... $ECHO_C" >&6
10586 no_cache=0
10587 # Check whether --enable-validators or --disable-validators was given.
10588if test "${enable_validators+set}" = set; then
10589 enableval="$enable_validators"
10590
10591 if test "$enableval" = yes; then
10592 ac_cv_use_validators='wxUSE_VALIDATORS=yes'
10593 else
10594 ac_cv_use_validators='wxUSE_VALIDATORS=no'
10595 fi
10596
10597else
10598
10599 LINE=`grep "wxUSE_VALIDATORS" ${wx_arg_cache_file}`
10600 if test "x$LINE" != x ; then
10601 eval "DEFAULT_$LINE"
10602 else
10603 no_cache=1
10604 fi
10605
10606 ac_cv_use_validators='wxUSE_VALIDATORS='$DEFAULT_wxUSE_VALIDATORS
10607
10608fi;
10609
10610 eval "$ac_cv_use_validators"
10611 if test "$no_cache" != 1; then
10612 echo $ac_cv_use_validators >> ${wx_arg_cache_file}.tmp
10613 fi
10614
10615 if test "$wxUSE_VALIDATORS" = yes; then
10616 echo "$as_me:$LINENO: result: yes" >&5
10617echo "${ECHO_T}yes" >&6
10618 else
10619 echo "$as_me:$LINENO: result: no" >&5
10620echo "${ECHO_T}no" >&6
10621 fi
10622
10623
10624 enablestring=
10625 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-busyinfo" >&5
10626echo $ECHO_N "checking for --${enablestring:-enable}-busyinfo... $ECHO_C" >&6
10627 no_cache=0
10628 # Check whether --enable-busyinfo or --disable-busyinfo was given.
10629if test "${enable_busyinfo+set}" = set; then
10630 enableval="$enable_busyinfo"
10631
10632 if test "$enableval" = yes; then
10633 ac_cv_use_busyinfo='wxUSE_BUSYINFO=yes'
10634 else
10635 ac_cv_use_busyinfo='wxUSE_BUSYINFO=no'
10636 fi
10637
10638else
10639
10640 LINE=`grep "wxUSE_BUSYINFO" ${wx_arg_cache_file}`
10641 if test "x$LINE" != x ; then
10642 eval "DEFAULT_$LINE"
10643 else
10644 no_cache=1
10645 fi
10646
10647 ac_cv_use_busyinfo='wxUSE_BUSYINFO='$DEFAULT_wxUSE_BUSYINFO
10648
10649fi;
10650
10651 eval "$ac_cv_use_busyinfo"
10652 if test "$no_cache" != 1; then
10653 echo $ac_cv_use_busyinfo >> ${wx_arg_cache_file}.tmp
10654 fi
10655
10656 if test "$wxUSE_BUSYINFO" = yes; then
10657 echo "$as_me:$LINENO: result: yes" >&5
10658echo "${ECHO_T}yes" >&6
10659 else
10660 echo "$as_me:$LINENO: result: no" >&5
10661echo "${ECHO_T}no" >&6
10662 fi
10663
10664
10665 enablestring=
10666 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-joystick" >&5
10667echo $ECHO_N "checking for --${enablestring:-enable}-joystick... $ECHO_C" >&6
10668 no_cache=0
10669 # Check whether --enable-joystick or --disable-joystick was given.
10670if test "${enable_joystick+set}" = set; then
10671 enableval="$enable_joystick"
10672
10673 if test "$enableval" = yes; then
10674 ac_cv_use_joystick='wxUSE_JOYSTICK=yes'
10675 else
10676 ac_cv_use_joystick='wxUSE_JOYSTICK=no'
10677 fi
10678
10679else
10680
10681 LINE=`grep "wxUSE_JOYSTICK" ${wx_arg_cache_file}`
10682 if test "x$LINE" != x ; then
10683 eval "DEFAULT_$LINE"
10684 else
10685 no_cache=1
10686 fi
10687
10688 ac_cv_use_joystick='wxUSE_JOYSTICK='$DEFAULT_wxUSE_JOYSTICK
10689
10690fi;
10691
10692 eval "$ac_cv_use_joystick"
10693 if test "$no_cache" != 1; then
10694 echo $ac_cv_use_joystick >> ${wx_arg_cache_file}.tmp
10695 fi
10696
10697 if test "$wxUSE_JOYSTICK" = yes; then
10698 echo "$as_me:$LINENO: result: yes" >&5
10699echo "${ECHO_T}yes" >&6
10700 else
10701 echo "$as_me:$LINENO: result: no" >&5
10702echo "${ECHO_T}no" >&6
10703 fi
10704
10705
10706 enablestring=
10707 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-metafile" >&5
10708echo $ECHO_N "checking for --${enablestring:-enable}-metafile... $ECHO_C" >&6
10709 no_cache=0
10710 # Check whether --enable-metafile or --disable-metafile was given.
10711if test "${enable_metafile+set}" = set; then
10712 enableval="$enable_metafile"
10713
10714 if test "$enableval" = yes; then
10715 ac_cv_use_metafile='wxUSE_METAFILE=yes'
10716 else
10717 ac_cv_use_metafile='wxUSE_METAFILE=no'
10718 fi
10719
10720else
10721
10722 LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}`
10723 if test "x$LINE" != x ; then
10724 eval "DEFAULT_$LINE"
10725 else
10726 no_cache=1
10727 fi
10728
10729 ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE
10730
10731fi;
10732
10733 eval "$ac_cv_use_metafile"
10734 if test "$no_cache" != 1; then
10735 echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp
10736 fi
10737
10738 if test "$wxUSE_METAFILE" = yes; then
10739 echo "$as_me:$LINENO: result: yes" >&5
10740echo "${ECHO_T}yes" >&6
10741 else
10742 echo "$as_me:$LINENO: result: no" >&5
10743echo "${ECHO_T}no" >&6
10744 fi
10745
10746
10747 enablestring=
10748 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dragimage" >&5
10749echo $ECHO_N "checking for --${enablestring:-enable}-dragimage... $ECHO_C" >&6
10750 no_cache=0
10751 # Check whether --enable-dragimage or --disable-dragimage was given.
10752if test "${enable_dragimage+set}" = set; then
10753 enableval="$enable_dragimage"
10754
10755 if test "$enableval" = yes; then
10756 ac_cv_use_dragimage='wxUSE_DRAGIMAGE=yes'
10757 else
10758 ac_cv_use_dragimage='wxUSE_DRAGIMAGE=no'
10759 fi
10760
10761else
10762
10763 LINE=`grep "wxUSE_DRAGIMAGE" ${wx_arg_cache_file}`
10764 if test "x$LINE" != x ; then
10765 eval "DEFAULT_$LINE"
10766 else
10767 no_cache=1
10768 fi
10769
10770 ac_cv_use_dragimage='wxUSE_DRAGIMAGE='$DEFAULT_wxUSE_DRAGIMAGE
10771
10772fi;
10773
10774 eval "$ac_cv_use_dragimage"
10775 if test "$no_cache" != 1; then
10776 echo $ac_cv_use_dragimage >> ${wx_arg_cache_file}.tmp
10777 fi
10778
10779 if test "$wxUSE_DRAGIMAGE" = yes; then
10780 echo "$as_me:$LINENO: result: yes" >&5
10781echo "${ECHO_T}yes" >&6
10782 else
10783 echo "$as_me:$LINENO: result: no" >&5
10784echo "${ECHO_T}no" >&6
10785 fi
10786
10787
10788 enablestring=
10789 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-accessibility" >&5
10790echo $ECHO_N "checking for --${enablestring:-enable}-accessibility... $ECHO_C" >&6
10791 no_cache=0
10792 # Check whether --enable-accessibility or --disable-accessibility was given.
10793if test "${enable_accessibility+set}" = set; then
10794 enableval="$enable_accessibility"
10795
10796 if test "$enableval" = yes; then
10797 ac_cv_use_accessibility='wxUSE_ACCESSIBILITY=yes'
10798 else
10799 ac_cv_use_accessibility='wxUSE_ACCESSIBILITY=no'
10800 fi
10801
10802else
10803
10804 LINE=`grep "wxUSE_ACCESSIBILITY" ${wx_arg_cache_file}`
10805 if test "x$LINE" != x ; then
10806 eval "DEFAULT_$LINE"
10807 else
10808 no_cache=1
10809 fi
10810
10811 ac_cv_use_accessibility='wxUSE_ACCESSIBILITY='$DEFAULT_wxUSE_ACCESSIBILITY
10812
10813fi;
10814
10815 eval "$ac_cv_use_accessibility"
10816 if test "$no_cache" != 1; then
10817 echo $ac_cv_use_accessibility >> ${wx_arg_cache_file}.tmp
10818 fi
10819
10820 if test "$wxUSE_ACCESSIBILITY" = yes; then
10821 echo "$as_me:$LINENO: result: yes" >&5
10822echo "${ECHO_T}yes" >&6
10823 else
10824 echo "$as_me:$LINENO: result: no" >&5
10825echo "${ECHO_T}no" >&6
10826 fi
10827
10828
38b4a946
VZ
10829if test "$wxUSE_MSW" = "1"; then
10830
10831 enablestring=
10832 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dccache" >&5
10833echo $ECHO_N "checking for --${enablestring:-enable}-dccache... $ECHO_C" >&6
10834 no_cache=0
10835 # Check whether --enable-dccache or --disable-dccache was given.
10836if test "${enable_dccache+set}" = set; then
10837 enableval="$enable_dccache"
10838
10839 if test "$enableval" = yes; then
10840 ac_cv_use_dccache='wxUSE_DC_CACHEING=yes'
10841 else
10842 ac_cv_use_dccache='wxUSE_DC_CACHEING=no'
10843 fi
10844
10845else
10846
10847 LINE=`grep "wxUSE_DC_CACHEING" ${wx_arg_cache_file}`
10848 if test "x$LINE" != x ; then
10849 eval "DEFAULT_$LINE"
10850 else
10851 no_cache=1
10852 fi
10853
10854 ac_cv_use_dccache='wxUSE_DC_CACHEING='$DEFAULT_wxUSE_DC_CACHEING
10855
10856fi;
10857
10858 eval "$ac_cv_use_dccache"
10859 if test "$no_cache" != 1; then
10860 echo $ac_cv_use_dccache >> ${wx_arg_cache_file}.tmp
10861 fi
10862
10863 if test "$wxUSE_DC_CACHEING" = yes; then
10864 echo "$as_me:$LINENO: result: yes" >&5
10865echo "${ECHO_T}yes" >&6
10866 else
10867 echo "$as_me:$LINENO: result: no" >&5
10868echo "${ECHO_T}no" >&6
10869 fi
10870
10871fi
10872
a848cd7e
SC
10873
10874
10875 enablestring=
10876 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-palette" >&5
10877echo $ECHO_N "checking for --${enablestring:-enable}-palette... $ECHO_C" >&6
10878 no_cache=0
10879 # Check whether --enable-palette or --disable-palette was given.
10880if test "${enable_palette+set}" = set; then
10881 enableval="$enable_palette"
10882
10883 if test "$enableval" = yes; then
10884 ac_cv_use_palette='wxUSE_PALETTE=yes'
10885 else
10886 ac_cv_use_palette='wxUSE_PALETTE=no'
10887 fi
10888
10889else
10890
10891 LINE=`grep "wxUSE_PALETTE" ${wx_arg_cache_file}`
10892 if test "x$LINE" != x ; then
10893 eval "DEFAULT_$LINE"
10894 else
10895 no_cache=1
10896 fi
10897
10898 ac_cv_use_palette='wxUSE_PALETTE='$DEFAULT_wxUSE_PALETTE
10899
10900fi;
10901
10902 eval "$ac_cv_use_palette"
10903 if test "$no_cache" != 1; then
10904 echo $ac_cv_use_palette >> ${wx_arg_cache_file}.tmp
10905 fi
10906
10907 if test "$wxUSE_PALETTE" = yes; then
10908 echo "$as_me:$LINENO: result: yes" >&5
10909echo "${ECHO_T}yes" >&6
10910 else
10911 echo "$as_me:$LINENO: result: no" >&5
10912echo "${ECHO_T}no" >&6
10913 fi
10914
10915
10916 enablestring=
10917 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-image" >&5
10918echo $ECHO_N "checking for --${enablestring:-enable}-image... $ECHO_C" >&6
10919 no_cache=0
10920 # Check whether --enable-image or --disable-image was given.
10921if test "${enable_image+set}" = set; then
10922 enableval="$enable_image"
10923
10924 if test "$enableval" = yes; then
10925 ac_cv_use_image='wxUSE_IMAGE=yes'
10926 else
10927 ac_cv_use_image='wxUSE_IMAGE=no'
10928 fi
10929
10930else
10931
10932 LINE=`grep "wxUSE_IMAGE" ${wx_arg_cache_file}`
10933 if test "x$LINE" != x ; then
10934 eval "DEFAULT_$LINE"
10935 else
10936 no_cache=1
10937 fi
10938
10939 ac_cv_use_image='wxUSE_IMAGE='$DEFAULT_wxUSE_IMAGE
10940
10941fi;
10942
10943 eval "$ac_cv_use_image"
10944 if test "$no_cache" != 1; then
10945 echo $ac_cv_use_image >> ${wx_arg_cache_file}.tmp
10946 fi
10947
10948 if test "$wxUSE_IMAGE" = yes; then
10949 echo "$as_me:$LINENO: result: yes" >&5
10950echo "${ECHO_T}yes" >&6
10951 else
10952 echo "$as_me:$LINENO: result: no" >&5
10953echo "${ECHO_T}no" >&6
10954 fi
10955
10956
10957 enablestring=
10958 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gif" >&5
10959echo $ECHO_N "checking for --${enablestring:-enable}-gif... $ECHO_C" >&6
10960 no_cache=0
10961 # Check whether --enable-gif or --disable-gif was given.
10962if test "${enable_gif+set}" = set; then
10963 enableval="$enable_gif"
10964
10965 if test "$enableval" = yes; then
10966 ac_cv_use_gif='wxUSE_GIF=yes'
10967 else
10968 ac_cv_use_gif='wxUSE_GIF=no'
10969 fi
10970
10971else
10972
10973 LINE=`grep "wxUSE_GIF" ${wx_arg_cache_file}`
10974 if test "x$LINE" != x ; then
10975 eval "DEFAULT_$LINE"
10976 else
10977 no_cache=1
10978 fi
10979
10980 ac_cv_use_gif='wxUSE_GIF='$DEFAULT_wxUSE_GIF
10981
10982fi;
10983
10984 eval "$ac_cv_use_gif"
10985 if test "$no_cache" != 1; then
10986 echo $ac_cv_use_gif >> ${wx_arg_cache_file}.tmp
10987 fi
10988
10989 if test "$wxUSE_GIF" = yes; then
10990 echo "$as_me:$LINENO: result: yes" >&5
10991echo "${ECHO_T}yes" >&6
10992 else
10993 echo "$as_me:$LINENO: result: no" >&5
10994echo "${ECHO_T}no" >&6
10995 fi
10996
10997
10998 enablestring=
10999 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-pcx" >&5
11000echo $ECHO_N "checking for --${enablestring:-enable}-pcx... $ECHO_C" >&6
11001 no_cache=0
11002 # Check whether --enable-pcx or --disable-pcx was given.
11003if test "${enable_pcx+set}" = set; then
11004 enableval="$enable_pcx"
11005
11006 if test "$enableval" = yes; then
11007 ac_cv_use_pcx='wxUSE_PCX=yes'
11008 else
11009 ac_cv_use_pcx='wxUSE_PCX=no'
11010 fi
11011
11012else
11013
11014 LINE=`grep "wxUSE_PCX" ${wx_arg_cache_file}`
11015 if test "x$LINE" != x ; then
11016 eval "DEFAULT_$LINE"
11017 else
11018 no_cache=1
11019 fi
11020
11021 ac_cv_use_pcx='wxUSE_PCX='$DEFAULT_wxUSE_PCX
11022
11023fi;
11024
11025 eval "$ac_cv_use_pcx"
11026 if test "$no_cache" != 1; then
11027 echo $ac_cv_use_pcx >> ${wx_arg_cache_file}.tmp
11028 fi
11029
11030 if test "$wxUSE_PCX" = yes; then
11031 echo "$as_me:$LINENO: result: yes" >&5
11032echo "${ECHO_T}yes" >&6
11033 else
11034 echo "$as_me:$LINENO: result: no" >&5
11035echo "${ECHO_T}no" >&6
11036 fi
11037
11038
11039 enablestring=
11040 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-iff" >&5
11041echo $ECHO_N "checking for --${enablestring:-enable}-iff... $ECHO_C" >&6
11042 no_cache=0
11043 # Check whether --enable-iff or --disable-iff was given.
11044if test "${enable_iff+set}" = set; then
11045 enableval="$enable_iff"
11046
11047 if test "$enableval" = yes; then
11048 ac_cv_use_iff='wxUSE_IFF=yes'
11049 else
11050 ac_cv_use_iff='wxUSE_IFF=no'
11051 fi
11052
11053else
11054
11055 LINE=`grep "wxUSE_IFF" ${wx_arg_cache_file}`
11056 if test "x$LINE" != x ; then
11057 eval "DEFAULT_$LINE"
11058 else
11059 no_cache=1
11060 fi
11061
11062 ac_cv_use_iff='wxUSE_IFF='$DEFAULT_wxUSE_IFF
11063
11064fi;
11065
11066 eval "$ac_cv_use_iff"
11067 if test "$no_cache" != 1; then
11068 echo $ac_cv_use_iff >> ${wx_arg_cache_file}.tmp
11069 fi
11070
11071 if test "$wxUSE_IFF" = yes; then
11072 echo "$as_me:$LINENO: result: yes" >&5
11073echo "${ECHO_T}yes" >&6
11074 else
11075 echo "$as_me:$LINENO: result: no" >&5
11076echo "${ECHO_T}no" >&6
11077 fi
11078
11079
11080 enablestring=
11081 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-pnm" >&5
11082echo $ECHO_N "checking for --${enablestring:-enable}-pnm... $ECHO_C" >&6
11083 no_cache=0
11084 # Check whether --enable-pnm or --disable-pnm was given.
11085if test "${enable_pnm+set}" = set; then
11086 enableval="$enable_pnm"
11087
11088 if test "$enableval" = yes; then
11089 ac_cv_use_pnm='wxUSE_PNM=yes'
11090 else
11091 ac_cv_use_pnm='wxUSE_PNM=no'
11092 fi
11093
11094else
11095
11096 LINE=`grep "wxUSE_PNM" ${wx_arg_cache_file}`
11097 if test "x$LINE" != x ; then
11098 eval "DEFAULT_$LINE"
11099 else
11100 no_cache=1
11101 fi
11102
11103 ac_cv_use_pnm='wxUSE_PNM='$DEFAULT_wxUSE_PNM
11104
11105fi;
11106
11107 eval "$ac_cv_use_pnm"
11108 if test "$no_cache" != 1; then
11109 echo $ac_cv_use_pnm >> ${wx_arg_cache_file}.tmp
11110 fi
11111
11112 if test "$wxUSE_PNM" = yes; then
11113 echo "$as_me:$LINENO: result: yes" >&5
11114echo "${ECHO_T}yes" >&6
11115 else
11116 echo "$as_me:$LINENO: result: no" >&5
11117echo "${ECHO_T}no" >&6
11118 fi
11119
11120
11121 enablestring=
11122 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-xpm" >&5
11123echo $ECHO_N "checking for --${enablestring:-enable}-xpm... $ECHO_C" >&6
11124 no_cache=0
11125 # Check whether --enable-xpm or --disable-xpm was given.
11126if test "${enable_xpm+set}" = set; then
11127 enableval="$enable_xpm"
11128
11129 if test "$enableval" = yes; then
11130 ac_cv_use_xpm='wxUSE_XPM=yes'
11131 else
11132 ac_cv_use_xpm='wxUSE_XPM=no'
11133 fi
11134
11135else
11136
11137 LINE=`grep "wxUSE_XPM" ${wx_arg_cache_file}`
11138 if test "x$LINE" != x ; then
11139 eval "DEFAULT_$LINE"
11140 else
11141 no_cache=1
11142 fi
11143
11144 ac_cv_use_xpm='wxUSE_XPM='$DEFAULT_wxUSE_XPM
11145
11146fi;
11147
11148 eval "$ac_cv_use_xpm"
11149 if test "$no_cache" != 1; then
11150 echo $ac_cv_use_xpm >> ${wx_arg_cache_file}.tmp
11151 fi
11152
11153 if test "$wxUSE_XPM" = yes; then
11154 echo "$as_me:$LINENO: result: yes" >&5
11155echo "${ECHO_T}yes" >&6
11156 else
11157 echo "$as_me:$LINENO: result: no" >&5
11158echo "${ECHO_T}no" >&6
11159 fi
11160
11161
11162 enablestring=
11163 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ico_cur" >&5
11164echo $ECHO_N "checking for --${enablestring:-enable}-ico_cur... $ECHO_C" >&6
11165 no_cache=0
11166 # Check whether --enable-ico_cur or --disable-ico_cur was given.
11167if test "${enable_ico_cur+set}" = set; then
11168 enableval="$enable_ico_cur"
11169
11170 if test "$enableval" = yes; then
11171 ac_cv_use_ico_cur='wxUSE_ICO_CUR=yes'
11172 else
11173 ac_cv_use_ico_cur='wxUSE_ICO_CUR=no'
11174 fi
11175
11176else
11177
11178 LINE=`grep "wxUSE_ICO_CUR" ${wx_arg_cache_file}`
11179 if test "x$LINE" != x ; then
11180 eval "DEFAULT_$LINE"
11181 else
11182 no_cache=1
11183 fi
11184
11185 ac_cv_use_ico_cur='wxUSE_ICO_CUR='$DEFAULT_wxUSE_ICO_CUR
11186
11187fi;
11188
11189 eval "$ac_cv_use_ico_cur"
11190 if test "$no_cache" != 1; then
11191 echo $ac_cv_use_ico_cur >> ${wx_arg_cache_file}.tmp
11192 fi
11193
11194 if test "$wxUSE_ICO_CUR" = yes; then
11195 echo "$as_me:$LINENO: result: yes" >&5
11196echo "${ECHO_T}yes" >&6
11197 else
11198 echo "$as_me:$LINENO: result: no" >&5
11199echo "${ECHO_T}no" >&6
11200 fi
11201
11202
11203fi
11204
11205
11206
ceec2216
RL
11207# Check whether --with-flavour or --without-flavour was given.
11208if test "${with_flavour+set}" = set; then
11209 withval="$with_flavour"
11210 WX_FLAVOUR="$withval"
11211fi;
11212
11213
11214
a848cd7e
SC
11215 enablestring=
11216 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-official_build" >&5
11217echo $ECHO_N "checking for --${enablestring:-enable}-official_build... $ECHO_C" >&6
11218 no_cache=0
11219 # Check whether --enable-official_build or --disable-official_build was given.
11220if test "${enable_official_build+set}" = set; then
11221 enableval="$enable_official_build"
11222
11223 if test "$enableval" = yes; then
11224 ac_cv_use_official_build='wxUSE_OFFICIAL_BUILD=yes'
11225 else
11226 ac_cv_use_official_build='wxUSE_OFFICIAL_BUILD=no'
11227 fi
11228
11229else
11230
11231 LINE=`grep "wxUSE_OFFICIAL_BUILD" ${wx_arg_cache_file}`
11232 if test "x$LINE" != x ; then
11233 eval "DEFAULT_$LINE"
11234 else
11235 no_cache=1
11236 fi
11237
11238 ac_cv_use_official_build='wxUSE_OFFICIAL_BUILD='$DEFAULT_wxUSE_OFFICIAL_BUILD
11239
11240fi;
11241
11242 eval "$ac_cv_use_official_build"
11243 if test "$no_cache" != 1; then
11244 echo $ac_cv_use_official_build >> ${wx_arg_cache_file}.tmp
11245 fi
11246
11247 if test "$wxUSE_OFFICIAL_BUILD" = yes; then
11248 echo "$as_me:$LINENO: result: yes" >&5
11249echo "${ECHO_T}yes" >&6
11250 else
11251 echo "$as_me:$LINENO: result: no" >&5
11252echo "${ECHO_T}no" >&6
11253 fi
11254
11255# Check whether --enable-vendor or --disable-vendor was given.
11256if test "${enable_vendor+set}" = set; then
11257 enableval="$enable_vendor"
11258 VENDOR="$enableval"
11259fi;
11260if test "x$VENDOR" = "x"; then
11261 VENDOR="custom"
11262fi
11263
a848cd7e
SC
11264
11265
11266
11267 echo "saving argument cache $wx_arg_cache_file"
11268 mv ${wx_arg_cache_file}.tmp ${wx_arg_cache_file}
11269
11270
11271
11272echo "$as_me:$LINENO: checking for toolkit" >&5
11273echo $ECHO_N "checking for toolkit... $ECHO_C" >&6
11274
11275# In Wine, we need to default to MSW, not GTK or MOTIF
11276if test "$wxUSE_WINE" = "yes"; then
11277 DEFAULT_DEFAULT_wxUSE_GTK=0
11278 DEFAULT_DEFAULT_wxUSE_MOTIF=0
11279 DEFAULT_DEFAULT_wxUSE_MSW=1
11280 wxUSE_SHARED=no
11281fi
11282
f597b41c 11283
a848cd7e
SC
11284if test "$wxUSE_GUI" = "yes"; then
11285
11286 if test "$USE_BEOS" = 1; then
11287 { { echo "$as_me:$LINENO: error: BeOS GUI is not supported yet, use --disable-gui" >&5
11288echo "$as_me: error: BeOS GUI is not supported yet, use --disable-gui" >&2;}
11289 { (exit 1); exit 1; }; }
11290 fi
11291
11292 if test "$TOOLKIT_GIVEN" = 1; then
11293 for toolkit in `echo $ALL_TOOLKITS`; do
11294 var=wxUSE_$toolkit
11295 eval "value=\$${var}"
f34ca037
MW
11296 if test "x$value" = "xno"; then
11297 eval "$var=0"
11298 elif test "x$value" != "x"; then
11299 eval "$var=1"
11300 fi
11301
11302 if test "x$value" != "x" -a "x$value" != "xyes" -a "x$value" != "xno"; then
11303 eval "wx${toolkit}_VERSION=$value"
11304 fi
a848cd7e
SC
11305 done
11306 else
11307 for toolkit in `echo $ALL_TOOLKITS`; do
11308 if test "$has_toolkit_in_cache" != 1; then
11309 var=DEFAULT_DEFAULT_wxUSE_$toolkit
11310 else
11311 var=DEFAULT_wxUSE_$toolkit
f34ca037
MW
11312
11313 eval "version=\$DEFAULT_wx${toolkit}_VERSION"
11314 if test "x$version" != "x"; then
11315 eval "wx${toolkit}_VERSION=$version"
11316 fi
a848cd7e
SC
11317 fi
11318 eval "wxUSE_$toolkit=\$${var}"
11319 done
11320 fi
11321
11322 NUM_TOOLKITS=`expr ${wxUSE_COCOA:-0} + ${wxUSE_GTK:-0} + ${wxUSE_MAC:-0} \
11323 + ${wxUSE_MGL:-0} + ${wxUSE_MICROWIN:-0} \
11324 + ${wxUSE_MOTIF:-0} + ${wxUSE_MSW:-0} + ${wxUSE_X11:-0}`
11325
11326 case "${host}" in
11327 *-pc-os2_emx | *-pc-os2-emx )
11328 NUM_TOOLKITS=`expr ${NUM_TOOLKITS} + ${wxUSE_PM:-0}`
11329 esac
11330
11331 case "$NUM_TOOLKITS" in
11332 1)
11333 ;;
11334 0)
11335 { { echo "$as_me:$LINENO: error: Please specify a toolkit -- cannot determine the default for ${host}" >&5
11336echo "$as_me: error: Please specify a toolkit -- cannot determine the default for ${host}" >&2;}
11337 { (exit 1); exit 1; }; }
11338 ;;
11339 *)
11340 { { echo "$as_me:$LINENO: error: Please specify at most one toolkit (maybe some are cached in configarg.cache?)" >&5
11341echo "$as_me: error: Please specify at most one toolkit (maybe some are cached in configarg.cache?)" >&2;}
11342 { (exit 1); exit 1; }; }
11343 esac
11344
f34ca037
MW
11345 # to be removed when --disable-gtk2 isn't needed
11346 if test "x$wxUSE_GTK2" = "xyes"; then
11347 wxGTK_VERSION=2
11348 elif test "x$wxUSE_GTK2" = "xno"; then
11349 wxGTK_VERSION=1
11350 fi
11351
a848cd7e
SC
11352 for toolkit in `echo $ALL_TOOLKITS`; do
11353 var=wxUSE_$toolkit
11354 eval "value=\$${var}"
11355 if test "x$value" != x; then
11356 cache_var=CACHE_$toolkit
11357 eval "cache=\$${cache_var}"
11358 if test "$cache" = 1; then
11359 echo "$var=$value" >> ${wx_arg_cache_file}
f34ca037
MW
11360 eval "version=\$wx${toolkit}_VERSION"
11361 if test "x$version" != "x"; then
11362 echo "wx${toolkit}_VERSION=$version" >> ${wx_arg_cache_file}
11363 fi
a848cd7e
SC
11364 fi
11365 if test "$value" = 1; then
11366 toolkit_echo=`echo $toolkit | tr "[A-Z]" "[a-z]"`
11367 echo "$as_me:$LINENO: result: $toolkit_echo" >&5
11368echo "${ECHO_T}$toolkit_echo" >&6
11369 fi
11370 fi
11371 done
11372else
11373 if test "x$host_alias" != "x"; then
11374 echo "$as_me:$LINENO: result: base ($host_alias hosted) only" >&5
11375echo "${ECHO_T}base ($host_alias hosted) only" >&6
11376 else
11377 echo "$as_me:$LINENO: result: base only" >&5
11378echo "${ECHO_T}base only" >&6
11379 fi
11380fi
11381
11382wants_win32=0
11383doesnt_want_win32=0
11384case "${host}" in
11385 *-*-cygwin*)
11386 if test "$wxUSE_MSW" = 1 ; then
11387 wants_win32=1
7275146d 11388 BAKEFILE_FORCE_PLATFORM=win32
a848cd7e
SC
11389 else
11390 doesnt_want_win32=1
11391 fi
11392 ;;
11393 *-*-mingw*)
11394 wants_win32=1
11395 ;;
11396esac
11397
11398if test "$wxUSE_WINE" = "yes"; then
11399 wants_win32=1
11400 CC=winegcc
11401 CXX=wineg++
a848cd7e
SC
11402 LDFLAGS_GUI="-mwindows"
11403fi
11404
11405if test "$wants_win32" = 1 ; then
11406 USE_UNIX=0
11407 USE_WIN32=1
11408 cat >>confdefs.h <<\_ACEOF
11409#define __WIN32__ 1
11410_ACEOF
11411
11412 cat >>confdefs.h <<\_ACEOF
11413#define __WIN95__ 1
11414_ACEOF
11415
11416 cat >>confdefs.h <<\_ACEOF
11417#define __WINDOWS__ 1
11418_ACEOF
11419
11420 cat >>confdefs.h <<\_ACEOF
11421#define __GNUWIN32__ 1
11422_ACEOF
11423
11424 cat >>confdefs.h <<\_ACEOF
11425#define STRICT 1
11426_ACEOF
11427
11428 cat >>confdefs.h <<\_ACEOF
11429#define WINVER 0x0400
11430_ACEOF
11431
11432fi
11433if test "$doesnt_want_win32" = 1 ; then
11434 USE_UNIX=1
11435 USE_WIN32=0
11436fi
11437
11438if test "$USE_UNIX" = 1 ; then
11439 wxUSE_UNIX=yes
11440 cat >>confdefs.h <<\_ACEOF
11441#define __UNIX__ 1
11442_ACEOF
11443
11444fi
11445
11446
11447cat >confcache <<\_ACEOF
11448# This file is a shell script that caches the results of configure
11449# tests run on this system so they can be shared between configure
11450# scripts and configure runs, see configure's option --config-cache.
11451# It is not useful on other systems. If it contains results you don't
11452# want to keep, you may remove or edit it.
11453#
11454# config.status only pays attention to the cache file if you give it
11455# the --recheck option to rerun configure.
11456#
11457# `ac_cv_env_foo' variables (set or unset) will be overridden when
11458# loading this file, other *unset* `ac_cv_foo' will be assigned the
11459# following values.
11460
11461_ACEOF
11462
11463# The following way of writing the cache mishandles newlines in values,
11464# but we know of no workaround that is simple, portable, and efficient.
11465# So, don't put newlines in cache variables' values.
11466# Ultrix sh set writes to stderr and can't be redirected directly,
11467# and sets the high bit in the cache file unless we assign to the vars.
11468{
11469 (set) 2>&1 |
11470 case `(ac_space=' '; set | grep ac_space) 2>&1` in
11471 *ac_space=\ *)
11472 # `set' does not quote correctly, so add quotes (double-quote
11473 # substitution turns \\\\ into \\, and sed turns \\ into \).
11474 sed -n \
ac1cb8d3
VS
11475 "s/'/'\\\\''/g;
11476 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
a848cd7e
SC
11477 ;;
11478 *)
11479 # `set' quotes correctly as required by POSIX, so do not add quotes.
11480 sed -n \
ac1cb8d3 11481 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
a848cd7e
SC
11482 ;;
11483 esac;
11484} |
11485 sed '
11486 t clear
11487 : clear
11488 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
11489 t end
11490 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11491 : end' >>confcache
11492if diff $cache_file confcache >/dev/null 2>&1; then :; else
11493 if test -w $cache_file; then
11494 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
11495 cat confcache >$cache_file
11496 else
11497 echo "not updating unwritable cache $cache_file"
11498 fi
11499fi
11500rm -f confcache
11501
a848cd7e 11502CFLAGS=${CFLAGS:=}
6dcfc289
DE
11503
11504
3006edc0 11505
6dcfc289 11506 ac_ext=c
a848cd7e
SC
11507ac_cpp='$CPP $CPPFLAGS'
11508ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11509ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11510ac_compiler_gnu=$ac_cv_c_compiler_gnu
11511if test -n "$ac_tool_prefix"; then
11512 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
11513set dummy ${ac_tool_prefix}gcc; ac_word=$2
11514echo "$as_me:$LINENO: checking for $ac_word" >&5
11515echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11516if test "${ac_cv_prog_CC+set}" = set; then
11517 echo $ECHO_N "(cached) $ECHO_C" >&6
11518else
11519 if test -n "$CC"; then
11520 ac_cv_prog_CC="$CC" # Let the user override the test.
11521else
11522as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11523for as_dir in $PATH
11524do
11525 IFS=$as_save_IFS
11526 test -z "$as_dir" && as_dir=.
11527 for ac_exec_ext in '' $ac_executable_extensions; do
11528 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11529 ac_cv_prog_CC="${ac_tool_prefix}gcc"
11530 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11531 break 2
11532 fi
11533done
11534done
11535
11536fi
11537fi
11538CC=$ac_cv_prog_CC
11539if test -n "$CC"; then
11540 echo "$as_me:$LINENO: result: $CC" >&5
11541echo "${ECHO_T}$CC" >&6
11542else
11543 echo "$as_me:$LINENO: result: no" >&5
11544echo "${ECHO_T}no" >&6
11545fi
11546
11547fi
11548if test -z "$ac_cv_prog_CC"; then
11549 ac_ct_CC=$CC
11550 # Extract the first word of "gcc", so it can be a program name with args.
11551set dummy gcc; ac_word=$2
11552echo "$as_me:$LINENO: checking for $ac_word" >&5
11553echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11554if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
11555 echo $ECHO_N "(cached) $ECHO_C" >&6
11556else
11557 if test -n "$ac_ct_CC"; then
11558 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
11559else
11560as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11561for as_dir in $PATH
11562do
11563 IFS=$as_save_IFS
11564 test -z "$as_dir" && as_dir=.
11565 for ac_exec_ext in '' $ac_executable_extensions; do
11566 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11567 ac_cv_prog_ac_ct_CC="gcc"
11568 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11569 break 2
11570 fi
11571done
11572done
11573
11574fi
11575fi
11576ac_ct_CC=$ac_cv_prog_ac_ct_CC
11577if test -n "$ac_ct_CC"; then
11578 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
11579echo "${ECHO_T}$ac_ct_CC" >&6
11580else
11581 echo "$as_me:$LINENO: result: no" >&5
11582echo "${ECHO_T}no" >&6
11583fi
11584
11585 CC=$ac_ct_CC
11586else
11587 CC="$ac_cv_prog_CC"
11588fi
11589
11590if test -z "$CC"; then
11591 if test -n "$ac_tool_prefix"; then
11592 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
11593set dummy ${ac_tool_prefix}cc; ac_word=$2
11594echo "$as_me:$LINENO: checking for $ac_word" >&5
11595echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11596if test "${ac_cv_prog_CC+set}" = set; then
11597 echo $ECHO_N "(cached) $ECHO_C" >&6
11598else
11599 if test -n "$CC"; then
11600 ac_cv_prog_CC="$CC" # Let the user override the test.
11601else
11602as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11603for as_dir in $PATH
11604do
11605 IFS=$as_save_IFS
11606 test -z "$as_dir" && as_dir=.
11607 for ac_exec_ext in '' $ac_executable_extensions; do
11608 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11609 ac_cv_prog_CC="${ac_tool_prefix}cc"
11610 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11611 break 2
11612 fi
11613done
11614done
11615
11616fi
11617fi
11618CC=$ac_cv_prog_CC
11619if test -n "$CC"; then
11620 echo "$as_me:$LINENO: result: $CC" >&5
11621echo "${ECHO_T}$CC" >&6
11622else
11623 echo "$as_me:$LINENO: result: no" >&5
11624echo "${ECHO_T}no" >&6
11625fi
11626
11627fi
11628if test -z "$ac_cv_prog_CC"; then
11629 ac_ct_CC=$CC
11630 # Extract the first word of "cc", so it can be a program name with args.
11631set dummy cc; ac_word=$2
11632echo "$as_me:$LINENO: checking for $ac_word" >&5
11633echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11634if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
11635 echo $ECHO_N "(cached) $ECHO_C" >&6
11636else
11637 if test -n "$ac_ct_CC"; then
11638 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
11639else
11640as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11641for as_dir in $PATH
11642do
11643 IFS=$as_save_IFS
11644 test -z "$as_dir" && as_dir=.
11645 for ac_exec_ext in '' $ac_executable_extensions; do
11646 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11647 ac_cv_prog_ac_ct_CC="cc"
11648 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11649 break 2
11650 fi
11651done
11652done
11653
11654fi
11655fi
11656ac_ct_CC=$ac_cv_prog_ac_ct_CC
11657if test -n "$ac_ct_CC"; then
11658 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
11659echo "${ECHO_T}$ac_ct_CC" >&6
11660else
11661 echo "$as_me:$LINENO: result: no" >&5
11662echo "${ECHO_T}no" >&6
11663fi
11664
11665 CC=$ac_ct_CC
11666else
11667 CC="$ac_cv_prog_CC"
11668fi
11669
11670fi
11671if test -z "$CC"; then
11672 # Extract the first word of "cc", so it can be a program name with args.
11673set dummy cc; ac_word=$2
11674echo "$as_me:$LINENO: checking for $ac_word" >&5
11675echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11676if test "${ac_cv_prog_CC+set}" = set; then
11677 echo $ECHO_N "(cached) $ECHO_C" >&6
11678else
11679 if test -n "$CC"; then
11680 ac_cv_prog_CC="$CC" # Let the user override the test.
11681else
11682 ac_prog_rejected=no
11683as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11684for as_dir in $PATH
11685do
11686 IFS=$as_save_IFS
11687 test -z "$as_dir" && as_dir=.
11688 for ac_exec_ext in '' $ac_executable_extensions; do
11689 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11690 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
11691 ac_prog_rejected=yes
11692 continue
11693 fi
11694 ac_cv_prog_CC="cc"
11695 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11696 break 2
11697 fi
11698done
11699done
11700
11701if test $ac_prog_rejected = yes; then
11702 # We found a bogon in the path, so make sure we never use it.
11703 set dummy $ac_cv_prog_CC
11704 shift
11705 if test $# != 0; then
11706 # We chose a different compiler from the bogus one.
11707 # However, it has the same basename, so the bogon will be chosen
11708 # first if we set CC to just the basename; use the full file name.
11709 shift
11710 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
11711 fi
11712fi
11713fi
11714fi
11715CC=$ac_cv_prog_CC
11716if test -n "$CC"; then
11717 echo "$as_me:$LINENO: result: $CC" >&5
11718echo "${ECHO_T}$CC" >&6
11719else
11720 echo "$as_me:$LINENO: result: no" >&5
11721echo "${ECHO_T}no" >&6
11722fi
11723
11724fi
11725if test -z "$CC"; then
11726 if test -n "$ac_tool_prefix"; then
11727 for ac_prog in cl
11728 do
11729 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11730set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11731echo "$as_me:$LINENO: checking for $ac_word" >&5
11732echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11733if test "${ac_cv_prog_CC+set}" = set; then
11734 echo $ECHO_N "(cached) $ECHO_C" >&6
11735else
11736 if test -n "$CC"; then
11737 ac_cv_prog_CC="$CC" # Let the user override the test.
11738else
11739as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11740for as_dir in $PATH
11741do
11742 IFS=$as_save_IFS
11743 test -z "$as_dir" && as_dir=.
11744 for ac_exec_ext in '' $ac_executable_extensions; do
11745 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11746 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
11747 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11748 break 2
11749 fi
11750done
11751done
11752
11753fi
11754fi
11755CC=$ac_cv_prog_CC
11756if test -n "$CC"; then
11757 echo "$as_me:$LINENO: result: $CC" >&5
11758echo "${ECHO_T}$CC" >&6
11759else
11760 echo "$as_me:$LINENO: result: no" >&5
11761echo "${ECHO_T}no" >&6
11762fi
11763
11764 test -n "$CC" && break
11765 done
11766fi
11767if test -z "$CC"; then
11768 ac_ct_CC=$CC
11769 for ac_prog in cl
11770do
11771 # Extract the first word of "$ac_prog", so it can be a program name with args.
11772set dummy $ac_prog; ac_word=$2
11773echo "$as_me:$LINENO: checking for $ac_word" >&5
11774echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11775if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
11776 echo $ECHO_N "(cached) $ECHO_C" >&6
11777else
11778 if test -n "$ac_ct_CC"; then
11779 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
11780else
11781as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11782for as_dir in $PATH
11783do
11784 IFS=$as_save_IFS
11785 test -z "$as_dir" && as_dir=.
11786 for ac_exec_ext in '' $ac_executable_extensions; do
11787 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11788 ac_cv_prog_ac_ct_CC="$ac_prog"
11789 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11790 break 2
11791 fi
11792done
11793done
11794
11795fi
11796fi
11797ac_ct_CC=$ac_cv_prog_ac_ct_CC
11798if test -n "$ac_ct_CC"; then
11799 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
11800echo "${ECHO_T}$ac_ct_CC" >&6
11801else
11802 echo "$as_me:$LINENO: result: no" >&5
11803echo "${ECHO_T}no" >&6
11804fi
11805
11806 test -n "$ac_ct_CC" && break
11807done
11808
11809 CC=$ac_ct_CC
11810fi
11811
11812fi
11813
11814
11815test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
11816See \`config.log' for more details." >&5
11817echo "$as_me: error: no acceptable C compiler found in \$PATH
11818See \`config.log' for more details." >&2;}
11819 { (exit 1); exit 1; }; }
11820
11821# Provide some information about the compiler.
11822echo "$as_me:$LINENO:" \
11823 "checking for C compiler version" >&5
11824ac_compiler=`set X $ac_compile; echo $2`
11825{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
11826 (eval $ac_compiler --version </dev/null >&5) 2>&5
11827 ac_status=$?
11828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11829 (exit $ac_status); }
11830{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
11831 (eval $ac_compiler -v </dev/null >&5) 2>&5
11832 ac_status=$?
11833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11834 (exit $ac_status); }
11835{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
11836 (eval $ac_compiler -V </dev/null >&5) 2>&5
11837 ac_status=$?
11838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11839 (exit $ac_status); }
11840
11841cat >conftest.$ac_ext <<_ACEOF
11842/* confdefs.h. */
11843_ACEOF
11844cat confdefs.h >>conftest.$ac_ext
11845cat >>conftest.$ac_ext <<_ACEOF
11846/* end confdefs.h. */
11847
11848int
11849main ()
11850{
11851
11852 ;
11853 return 0;
11854}
11855_ACEOF
11856ac_clean_files_save=$ac_clean_files
11857ac_clean_files="$ac_clean_files a.out a.exe b.out"
11858# Try to create an executable without -o first, disregard a.out.
11859# It will help us diagnose broken compilers, and finding out an intuition
11860# of exeext.
ac1cb8d3
VS
11861echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
11862echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
a848cd7e
SC
11863ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
11864if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
11865 (eval $ac_link_default) 2>&5
11866 ac_status=$?
11867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11868 (exit $ac_status); }; then
11869 # Find the output, starting from the most likely. This scheme is
11870# not robust to junk in `.', hence go to wildcards (a.*) only as a last
11871# resort.
11872
11873# Be careful to initialize this variable, since it used to be cached.
11874# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
11875ac_cv_exeext=
11876# b.out is created by i960 compilers.
11877for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
11878do
11879 test -f "$ac_file" || continue
11880 case $ac_file in
11881 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
ac1cb8d3 11882 ;;
a848cd7e 11883 conftest.$ac_ext )
ac1cb8d3
VS
11884 # This is the source file.
11885 ;;
a848cd7e 11886 [ab].out )
ac1cb8d3
VS
11887 # We found the default executable, but exeext='' is most
11888 # certainly right.
11889 break;;
a848cd7e 11890 *.* )
ac1cb8d3
VS
11891 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
11892 # FIXME: I believe we export ac_cv_exeext for Libtool,
11893 # but it would be cool to find out if it's true. Does anybody
11894 # maintain Libtool? --akim.
11895 export ac_cv_exeext
11896 break;;
a848cd7e 11897 * )
ac1cb8d3 11898 break;;
a848cd7e
SC
11899 esac
11900done
11901else
11902 echo "$as_me: failed program was:" >&5
11903sed 's/^/| /' conftest.$ac_ext >&5
11904
11905{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
11906See \`config.log' for more details." >&5
11907echo "$as_me: error: C compiler cannot create executables
11908See \`config.log' for more details." >&2;}
11909 { (exit 77); exit 77; }; }
11910fi
11911
11912ac_exeext=$ac_cv_exeext
11913echo "$as_me:$LINENO: result: $ac_file" >&5
11914echo "${ECHO_T}$ac_file" >&6
11915
11916# Check the compiler produces executables we can run. If not, either
11917# the compiler is broken, or we cross compile.
11918echo "$as_me:$LINENO: checking whether the C compiler works" >&5
11919echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
11920# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
11921# If not cross compiling, check that we can run a simple program.
11922if test "$cross_compiling" != yes; then
11923 if { ac_try='./$ac_file'
11924 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11925 (eval $ac_try) 2>&5
11926 ac_status=$?
11927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11928 (exit $ac_status); }; }; then
11929 cross_compiling=no
11930 else
11931 if test "$cross_compiling" = maybe; then
11932 cross_compiling=yes
11933 else
11934 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
11935If you meant to cross compile, use \`--host'.
11936See \`config.log' for more details." >&5
11937echo "$as_me: error: cannot run C compiled programs.
11938If you meant to cross compile, use \`--host'.
11939See \`config.log' for more details." >&2;}
11940 { (exit 1); exit 1; }; }
11941 fi
11942 fi
11943fi
11944echo "$as_me:$LINENO: result: yes" >&5
11945echo "${ECHO_T}yes" >&6
11946
11947rm -f a.out a.exe conftest$ac_cv_exeext b.out
11948ac_clean_files=$ac_clean_files_save
11949# Check the compiler produces executables we can run. If not, either
11950# the compiler is broken, or we cross compile.
11951echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
11952echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
11953echo "$as_me:$LINENO: result: $cross_compiling" >&5
11954echo "${ECHO_T}$cross_compiling" >&6
11955
11956echo "$as_me:$LINENO: checking for suffix of executables" >&5
11957echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
11958if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11959 (eval $ac_link) 2>&5
11960 ac_status=$?
11961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11962 (exit $ac_status); }; then
11963 # If both `conftest.exe' and `conftest' are `present' (well, observable)
11964# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
11965# work properly (i.e., refer to `conftest.exe'), while it won't with
11966# `rm'.
11967for ac_file in conftest.exe conftest conftest.*; do
11968 test -f "$ac_file" || continue
11969 case $ac_file in
11970 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
11971 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
ac1cb8d3
VS
11972 export ac_cv_exeext
11973 break;;
a848cd7e
SC
11974 * ) break;;
11975 esac
11976done
11977else
11978 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
11979See \`config.log' for more details." >&5
11980echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
11981See \`config.log' for more details." >&2;}
11982 { (exit 1); exit 1; }; }
11983fi
11984
11985rm -f conftest$ac_cv_exeext
11986echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
11987echo "${ECHO_T}$ac_cv_exeext" >&6
11988
11989rm -f conftest.$ac_ext
11990EXEEXT=$ac_cv_exeext
11991ac_exeext=$EXEEXT
11992echo "$as_me:$LINENO: checking for suffix of object files" >&5
11993echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
11994if test "${ac_cv_objext+set}" = set; then
11995 echo $ECHO_N "(cached) $ECHO_C" >&6
11996else
11997 cat >conftest.$ac_ext <<_ACEOF
11998/* confdefs.h. */
11999_ACEOF
12000cat confdefs.h >>conftest.$ac_ext
12001cat >>conftest.$ac_ext <<_ACEOF
12002/* end confdefs.h. */
12003
12004int
12005main ()
12006{
12007
12008 ;
12009 return 0;
12010}
12011_ACEOF
12012rm -f conftest.o conftest.obj
12013if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12014 (eval $ac_compile) 2>&5
12015 ac_status=$?
12016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12017 (exit $ac_status); }; then
12018 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
12019 case $ac_file in
12020 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
12021 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
12022 break;;
12023 esac
12024done
12025else
12026 echo "$as_me: failed program was:" >&5
12027sed 's/^/| /' conftest.$ac_ext >&5
12028
12029{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
12030See \`config.log' for more details." >&5
12031echo "$as_me: error: cannot compute suffix of object files: cannot compile
12032See \`config.log' for more details." >&2;}
12033 { (exit 1); exit 1; }; }
12034fi
12035
12036rm -f conftest.$ac_cv_objext conftest.$ac_ext
12037fi
12038echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
12039echo "${ECHO_T}$ac_cv_objext" >&6
12040OBJEXT=$ac_cv_objext
12041ac_objext=$OBJEXT
12042echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
12043echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
12044if test "${ac_cv_c_compiler_gnu+set}" = set; then
12045 echo $ECHO_N "(cached) $ECHO_C" >&6
12046else
12047 cat >conftest.$ac_ext <<_ACEOF
12048/* confdefs.h. */
12049_ACEOF
12050cat confdefs.h >>conftest.$ac_ext
12051cat >>conftest.$ac_ext <<_ACEOF
12052/* end confdefs.h. */
12053
12054int
12055main ()
12056{
12057#ifndef __GNUC__
12058 choke me
12059#endif
12060
12061 ;
12062 return 0;
12063}
12064_ACEOF
12065rm -f conftest.$ac_objext
12066if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 12067 (eval $ac_compile) 2>conftest.er1
a848cd7e 12068 ac_status=$?
ac1cb8d3
VS
12069 grep -v '^ *+' conftest.er1 >conftest.err
12070 rm -f conftest.er1
12071 cat conftest.err >&5
a848cd7e
SC
12072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12073 (exit $ac_status); } &&
3f60522a
JS
12074 { ac_try='test -z "$ac_c_werror_flag"
12075 || test ! -s conftest.err'
ac1cb8d3
VS
12076 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12077 (eval $ac_try) 2>&5
12078 ac_status=$?
12079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12080 (exit $ac_status); }; } &&
12081 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
12082 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12083 (eval $ac_try) 2>&5
12084 ac_status=$?
12085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12086 (exit $ac_status); }; }; then
12087 ac_compiler_gnu=yes
12088else
12089 echo "$as_me: failed program was:" >&5
12090sed 's/^/| /' conftest.$ac_ext >&5
12091
12092ac_compiler_gnu=no
12093fi
ac1cb8d3 12094rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
12095ac_cv_c_compiler_gnu=$ac_compiler_gnu
12096
12097fi
12098echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
12099echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
12100GCC=`test $ac_compiler_gnu = yes && echo yes`
12101ac_test_CFLAGS=${CFLAGS+set}
12102ac_save_CFLAGS=$CFLAGS
8aeeb05c 12103CFLAGS="-g"
a848cd7e
SC
12104echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
12105echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
12106if test "${ac_cv_prog_cc_g+set}" = set; then
12107 echo $ECHO_N "(cached) $ECHO_C" >&6
12108else
12109 cat >conftest.$ac_ext <<_ACEOF
12110/* confdefs.h. */
12111_ACEOF
12112cat confdefs.h >>conftest.$ac_ext
12113cat >>conftest.$ac_ext <<_ACEOF
12114/* end confdefs.h. */
12115
12116int
12117main ()
12118{
12119
12120 ;
12121 return 0;
12122}
12123_ACEOF
12124rm -f conftest.$ac_objext
12125if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 12126 (eval $ac_compile) 2>conftest.er1
a848cd7e 12127 ac_status=$?
ac1cb8d3
VS
12128 grep -v '^ *+' conftest.er1 >conftest.err
12129 rm -f conftest.er1
12130 cat conftest.err >&5
a848cd7e
SC
12131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12132 (exit $ac_status); } &&
3f60522a
JS
12133 { ac_try='test -z "$ac_c_werror_flag"
12134 || test ! -s conftest.err'
ac1cb8d3
VS
12135 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12136 (eval $ac_try) 2>&5
12137 ac_status=$?
12138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12139 (exit $ac_status); }; } &&
12140 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
12141 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12142 (eval $ac_try) 2>&5
12143 ac_status=$?
12144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12145 (exit $ac_status); }; }; then
12146 ac_cv_prog_cc_g=yes
12147else
12148 echo "$as_me: failed program was:" >&5
12149sed 's/^/| /' conftest.$ac_ext >&5
12150
12151ac_cv_prog_cc_g=no
12152fi
ac1cb8d3 12153rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
12154fi
12155echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
12156echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
12157if test "$ac_test_CFLAGS" = set; then
12158 CFLAGS=$ac_save_CFLAGS
12159elif test $ac_cv_prog_cc_g = yes; then
12160 if test "$GCC" = yes; then
12161 CFLAGS="-g -O2"
12162 else
12163 CFLAGS="-g"
12164 fi
12165else
12166 if test "$GCC" = yes; then
12167 CFLAGS="-O2"
12168 else
12169 CFLAGS=
12170 fi
12171fi
12172echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
12173echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
12174if test "${ac_cv_prog_cc_stdc+set}" = set; then
12175 echo $ECHO_N "(cached) $ECHO_C" >&6
12176else
12177 ac_cv_prog_cc_stdc=no
12178ac_save_CC=$CC
12179cat >conftest.$ac_ext <<_ACEOF
12180/* confdefs.h. */
12181_ACEOF
12182cat confdefs.h >>conftest.$ac_ext
12183cat >>conftest.$ac_ext <<_ACEOF
12184/* end confdefs.h. */
12185#include <stdarg.h>
12186#include <stdio.h>
12187#include <sys/types.h>
12188#include <sys/stat.h>
12189/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
12190struct buf { int x; };
12191FILE * (*rcsopen) (struct buf *, struct stat *, int);
12192static char *e (p, i)
12193 char **p;
12194 int i;
12195{
12196 return p[i];
12197}
12198static char *f (char * (*g) (char **, int), char **p, ...)
12199{
12200 char *s;
12201 va_list v;
12202 va_start (v,p);
12203 s = g (p, va_arg (v,int));
12204 va_end (v);
12205 return s;
12206}
ac1cb8d3
VS
12207
12208/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
12209 function prototypes and stuff, but not '\xHH' hex character constants.
12210 These don't provoke an error unfortunately, instead are silently treated
12211 as 'x'. The following induces an error, until -std1 is added to get
12212 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
12213 array size at least. It's necessary to write '\x00'==0 to get something
12214 that's true only with -std1. */
12215int osf4_cc_array ['\x00' == 0 ? 1 : -1];
12216
a848cd7e
SC
12217int test (int i, double x);
12218struct s1 {int (*f) (int a);};
12219struct s2 {int (*f) (double a);};
12220int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
12221int argc;
12222char **argv;
12223int
12224main ()
12225{
12226return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
12227 ;
12228 return 0;
12229}
12230_ACEOF
12231# Don't try gcc -ansi; that turns off useful extensions and
12232# breaks some systems' header files.
12233# AIX -qlanglvl=ansi
12234# Ultrix and OSF/1 -std1
12235# HP-UX 10.20 and later -Ae
12236# HP-UX older versions -Aa -D_HPUX_SOURCE
12237# SVR4 -Xc -D__EXTENSIONS__
12238for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
12239do
12240 CC="$ac_save_CC $ac_arg"
12241 rm -f conftest.$ac_objext
12242if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 12243 (eval $ac_compile) 2>conftest.er1
a848cd7e 12244 ac_status=$?
ac1cb8d3
VS
12245 grep -v '^ *+' conftest.er1 >conftest.err
12246 rm -f conftest.er1
12247 cat conftest.err >&5
a848cd7e
SC
12248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12249 (exit $ac_status); } &&
3f60522a
JS
12250 { ac_try='test -z "$ac_c_werror_flag"
12251 || test ! -s conftest.err'
ac1cb8d3
VS
12252 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12253 (eval $ac_try) 2>&5
12254 ac_status=$?
12255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12256 (exit $ac_status); }; } &&
12257 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
12258 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12259 (eval $ac_try) 2>&5
12260 ac_status=$?
12261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12262 (exit $ac_status); }; }; then
12263 ac_cv_prog_cc_stdc=$ac_arg
12264break
12265else
12266 echo "$as_me: failed program was:" >&5
12267sed 's/^/| /' conftest.$ac_ext >&5
12268
12269fi
ac1cb8d3 12270rm -f conftest.err conftest.$ac_objext
a848cd7e
SC
12271done
12272rm -f conftest.$ac_ext conftest.$ac_objext
12273CC=$ac_save_CC
12274
12275fi
12276
12277case "x$ac_cv_prog_cc_stdc" in
12278 x|xno)
12279 echo "$as_me:$LINENO: result: none needed" >&5
12280echo "${ECHO_T}none needed" >&6 ;;
12281 *)
12282 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
12283echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
12284 CC="$CC $ac_cv_prog_cc_stdc" ;;
12285esac
12286
12287# Some people use a C++ compiler to compile C. Since we use `exit',
12288# in C++ we need to declare it. In case someone uses the same compiler
12289# for both compiling C and C++ we need to have the C++ compiler decide
12290# the declaration of exit, since it's the most demanding environment.
12291cat >conftest.$ac_ext <<_ACEOF
12292#ifndef __cplusplus
12293 choke me
12294#endif
12295_ACEOF
12296rm -f conftest.$ac_objext
12297if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 12298 (eval $ac_compile) 2>conftest.er1
a848cd7e 12299 ac_status=$?
ac1cb8d3
VS
12300 grep -v '^ *+' conftest.er1 >conftest.err
12301 rm -f conftest.er1
12302 cat conftest.err >&5
a848cd7e
SC
12303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12304 (exit $ac_status); } &&
3f60522a
JS
12305 { ac_try='test -z "$ac_c_werror_flag"
12306 || test ! -s conftest.err'
ac1cb8d3
VS
12307 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12308 (eval $ac_try) 2>&5
12309 ac_status=$?
12310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12311 (exit $ac_status); }; } &&
12312 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
12313 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12314 (eval $ac_try) 2>&5
12315 ac_status=$?
12316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12317 (exit $ac_status); }; }; then
12318 for ac_declaration in \
ac1cb8d3 12319 '' \
a848cd7e
SC
12320 'extern "C" void std::exit (int) throw (); using std::exit;' \
12321 'extern "C" void std::exit (int); using std::exit;' \
12322 'extern "C" void exit (int) throw ();' \
12323 'extern "C" void exit (int);' \
12324 'void exit (int);'
12325do
12326 cat >conftest.$ac_ext <<_ACEOF
12327/* confdefs.h. */
12328_ACEOF
12329cat confdefs.h >>conftest.$ac_ext
12330cat >>conftest.$ac_ext <<_ACEOF
12331/* end confdefs.h. */
de59c161 12332$ac_declaration
ac1cb8d3 12333#include <stdlib.h>
a848cd7e
SC
12334int
12335main ()
12336{
12337exit (42);
12338 ;
12339 return 0;
12340}
12341_ACEOF
12342rm -f conftest.$ac_objext
12343if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 12344 (eval $ac_compile) 2>conftest.er1
a848cd7e 12345 ac_status=$?
ac1cb8d3
VS
12346 grep -v '^ *+' conftest.er1 >conftest.err
12347 rm -f conftest.er1
12348 cat conftest.err >&5
a848cd7e
SC
12349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12350 (exit $ac_status); } &&
3f60522a
JS
12351 { ac_try='test -z "$ac_c_werror_flag"
12352 || test ! -s conftest.err'
ac1cb8d3
VS
12353 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12354 (eval $ac_try) 2>&5
12355 ac_status=$?
12356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12357 (exit $ac_status); }; } &&
12358 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
12359 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12360 (eval $ac_try) 2>&5
12361 ac_status=$?
12362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12363 (exit $ac_status); }; }; then
12364 :
12365else
12366 echo "$as_me: failed program was:" >&5
12367sed 's/^/| /' conftest.$ac_ext >&5
12368
12369continue
12370fi
ac1cb8d3 12371rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
12372 cat >conftest.$ac_ext <<_ACEOF
12373/* confdefs.h. */
12374_ACEOF
12375cat confdefs.h >>conftest.$ac_ext
12376cat >>conftest.$ac_ext <<_ACEOF
12377/* end confdefs.h. */
12378$ac_declaration
12379int
12380main ()
12381{
12382exit (42);
12383 ;
12384 return 0;
12385}
12386_ACEOF
12387rm -f conftest.$ac_objext
12388if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 12389 (eval $ac_compile) 2>conftest.er1
a848cd7e 12390 ac_status=$?
ac1cb8d3
VS
12391 grep -v '^ *+' conftest.er1 >conftest.err
12392 rm -f conftest.er1
12393 cat conftest.err >&5
a848cd7e
SC
12394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12395 (exit $ac_status); } &&
3f60522a
JS
12396 { ac_try='test -z "$ac_c_werror_flag"
12397 || test ! -s conftest.err'
ac1cb8d3
VS
12398 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12399 (eval $ac_try) 2>&5
12400 ac_status=$?
12401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12402 (exit $ac_status); }; } &&
12403 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
12404 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12405 (eval $ac_try) 2>&5
12406 ac_status=$?
12407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12408 (exit $ac_status); }; }; then
12409 break
12410else
12411 echo "$as_me: failed program was:" >&5
12412sed 's/^/| /' conftest.$ac_ext >&5
12413
12414fi
ac1cb8d3 12415rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
12416done
12417rm -f conftest*
12418if test -n "$ac_declaration"; then
12419 echo '#ifdef __cplusplus' >>confdefs.h
12420 echo $ac_declaration >>confdefs.h
12421 echo '#endif' >>confdefs.h
12422fi
12423
12424else
12425 echo "$as_me: failed program was:" >&5
12426sed 's/^/| /' conftest.$ac_ext >&5
12427
12428fi
ac1cb8d3 12429rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
12430ac_ext=c
12431ac_cpp='$CPP $CPPFLAGS'
12432ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12433ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12434ac_compiler_gnu=$ac_cv_c_compiler_gnu
12435
ab0ad5f1
VZ
12436
12437
12438 ac_ext=c
12439ac_cpp='$CPP $CPPFLAGS'
12440ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12441ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12442ac_compiler_gnu=$ac_cv_c_compiler_gnu
12443
12444 echo "$as_me:$LINENO: checking whether we are using the Intel C compiler" >&5
12445echo $ECHO_N "checking whether we are using the Intel C compiler... $ECHO_C" >&6
12446if test "${bakefile_cv_c_compiler___INTEL_COMPILER+set}" = set; then
12447 echo $ECHO_N "(cached) $ECHO_C" >&6
12448else
12449 cat >conftest.$ac_ext <<_ACEOF
12450/* confdefs.h. */
12451_ACEOF
12452cat confdefs.h >>conftest.$ac_ext
12453cat >>conftest.$ac_ext <<_ACEOF
12454/* end confdefs.h. */
12455
12456int
12457main ()
12458{
12459
12460 #ifndef __INTEL_COMPILER
12461 choke me
12462 #endif
12463
12464 ;
12465 return 0;
12466}
12467_ACEOF
12468rm -f conftest.$ac_objext
12469if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12470 (eval $ac_compile) 2>conftest.er1
12471 ac_status=$?
12472 grep -v '^ *+' conftest.er1 >conftest.err
12473 rm -f conftest.er1
12474 cat conftest.err >&5
12475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12476 (exit $ac_status); } &&
3f60522a
JS
12477 { ac_try='test -z "$ac_c_werror_flag"
12478 || test ! -s conftest.err'
ab0ad5f1
VZ
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'
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 bakefile_cv_c_compiler___INTEL_COMPILER=yes
12491else
12492 echo "$as_me: failed program was:" >&5
12493sed 's/^/| /' conftest.$ac_ext >&5
12494
12495bakefile_cv_c_compiler___INTEL_COMPILER=no
12496
12497fi
12498rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12499
12500
12501fi
12502echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___INTEL_COMPILER" >&5
12503echo "${ECHO_T}$bakefile_cv_c_compiler___INTEL_COMPILER" >&6
12504 ac_ext=c
12505ac_cpp='$CPP $CPPFLAGS'
12506ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12507ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12508ac_compiler_gnu=$ac_cv_c_compiler_gnu
12509
12510 if test "x$bakefile_cv_c_compiler___INTEL_COMPILER" = "xyes"; then
12511 :; INTELCC=yes
12512 else
12513 :;
12514 fi
12515
12516
12517 if test "x$GCC" != "xyes"; then
3006edc0
VZ
12518 if test "xCC" = "xC"; then
12519 echo "$as_me:$LINENO: checking if the C compiler requires -ext o" >&5
480ccd21 12520echo $ECHO_N "checking if the C compiler requires -ext o... $ECHO_C" >&6
0093c2fc 12521if test "${bakefile_cv_c_exto+set}" = set; then
480ccd21
DE
12522 echo $ECHO_N "(cached) $ECHO_C" >&6
12523else
12524 cat >conftest.$ac_ext <<_ACEOF
12525/* confdefs.h. */
12526_ACEOF
12527cat confdefs.h >>conftest.$ac_ext
12528cat >>conftest.$ac_ext <<_ACEOF
12529/* end confdefs.h. */
12530
12531int
12532main ()
12533{
12534
12535 ;
12536 return 0;
12537}
12538_ACEOF
12539rm -f conftest.$ac_objext conftest.$ac_ext.o
12540if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12541 (eval $ac_compile) 2>&5
12542 ac_status=$?
12543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12544 (exit $ac_status); }; then
12545 for ac_file in `(ls conftest.* 2>/dev/null)`; do
12546 case $ac_file in
12547 conftest.$ac_ext.o)
0093c2fc 12548 bakefile_cv_c_exto="-ext o"
480ccd21
DE
12549 ;;
12550 *)
12551 ;;
12552 esac
12553done
12554else
12555 { { echo "$as_me:$LINENO: error: cannot figure out if compiler needs -ext o: cannot compile
12556See \`config.log' for more details." >&5
12557echo "$as_me: error: cannot figure out if compiler needs -ext o: cannot compile
12558See \`config.log' for more details." >&2;}
12559 { (exit 1); exit 1; }; }
12560
12561fi
12562
12563rm -f conftest.$ac_ext.o conftest.$ac_objext conftest.$ac_ext
12564
12565fi
0093c2fc
VZ
12566echo "$as_me:$LINENO: result: $bakefile_cv_c_exto" >&5
12567echo "${ECHO_T}$bakefile_cv_c_exto" >&6
12568if test "x$bakefile_cv_c_exto" '!=' "x"; then
480ccd21 12569 if test "c" = "c"; then
0093c2fc 12570 CFLAGS="$bakefile_cv_c_exto $CFLAGS"
480ccd21
DE
12571 fi
12572 if test "c" = "cxx"; then
0093c2fc 12573 CXXFLAGS="$bakefile_cv_c_exto $CXXFLAGS"
480ccd21
DE
12574 fi
12575fi
12576
0093c2fc 12577 if test "x$bakefile_cv_c_exto" '!=' "x"; then
3006edc0
VZ
12578 unset ac_cv_prog_cc_g
12579 ac_test_CFLAGS=${CFLAGS+set}
480ccd21 12580ac_save_CFLAGS=$CFLAGS
8aeeb05c 12581CFLAGS="-g"
480ccd21
DE
12582echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
12583echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
12584if test "${ac_cv_prog_cc_g+set}" = set; then
12585 echo $ECHO_N "(cached) $ECHO_C" >&6
12586else
12587 cat >conftest.$ac_ext <<_ACEOF
12588/* confdefs.h. */
12589_ACEOF
12590cat confdefs.h >>conftest.$ac_ext
12591cat >>conftest.$ac_ext <<_ACEOF
12592/* end confdefs.h. */
12593
12594int
12595main ()
12596{
12597
12598 ;
12599 return 0;
12600}
12601_ACEOF
12602rm -f conftest.$ac_objext
12603if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12604 (eval $ac_compile) 2>conftest.er1
12605 ac_status=$?
12606 grep -v '^ *+' conftest.er1 >conftest.err
12607 rm -f conftest.er1
12608 cat conftest.err >&5
12609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12610 (exit $ac_status); } &&
3f60522a
JS
12611 { ac_try='test -z "$ac_c_werror_flag"
12612 || test ! -s conftest.err'
480ccd21
DE
12613 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12614 (eval $ac_try) 2>&5
12615 ac_status=$?
12616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12617 (exit $ac_status); }; } &&
12618 { ac_try='test -s conftest.$ac_objext'
12619 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12620 (eval $ac_try) 2>&5
12621 ac_status=$?
12622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12623 (exit $ac_status); }; }; then
12624 ac_cv_prog_cc_g=yes
12625else
12626 echo "$as_me: failed program was:" >&5
12627sed 's/^/| /' conftest.$ac_ext >&5
12628
12629ac_cv_prog_cc_g=no
12630fi
12631rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12632fi
12633echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
12634echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
12635if test "$ac_test_CFLAGS" = set; then
12636 CFLAGS=$ac_save_CFLAGS
12637elif test $ac_cv_prog_cc_g = yes; then
12638 if test "$GCC" = yes; then
12639 CFLAGS="-g -O2"
12640 else
12641 CFLAGS="-g"
12642 fi
12643else
12644 if test "$GCC" = yes; then
12645 CFLAGS="-O2"
12646 else
12647 CFLAGS=
12648 fi
12649fi
3006edc0 12650 fi
ab0ad5f1 12651 fi
3006edc0
VZ
12652
12653 case `uname -s` in
12654 AIX*)
12655 ac_ext=c
12656ac_cpp='$CPP $CPPFLAGS'
12657ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12658ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12659ac_compiler_gnu=$ac_cv_c_compiler_gnu
12660
12661echo "$as_me:$LINENO: checking whether we are using the IBM xlC C compiler" >&5
12662echo $ECHO_N "checking whether we are using the IBM xlC C compiler... $ECHO_C" >&6
0093c2fc 12663if test "${bakefile_cv_c_compiler_xlc+set}" = set; then
3006edc0
VZ
12664 echo $ECHO_N "(cached) $ECHO_C" >&6
12665else
12666 cat >conftest.$ac_ext <<_ACEOF
12667/* confdefs.h. */
12668_ACEOF
12669cat confdefs.h >>conftest.$ac_ext
12670cat >>conftest.$ac_ext <<_ACEOF
12671/* end confdefs.h. */
12672
12673int
12674main ()
12675{
12676#ifndef __xlC__
12677 choke me
12678#endif
12679
12680 ;
12681 return 0;
12682}
12683_ACEOF
12684rm -f conftest.$ac_objext
12685if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12686 (eval $ac_compile) 2>conftest.er1
12687 ac_status=$?
12688 grep -v '^ *+' conftest.er1 >conftest.err
12689 rm -f conftest.er1
12690 cat conftest.err >&5
12691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12692 (exit $ac_status); } &&
3f60522a
JS
12693 { ac_try='test -z "$ac_c_werror_flag"
12694 || test ! -s conftest.err'
3006edc0
VZ
12695 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12696 (eval $ac_try) 2>&5
12697 ac_status=$?
12698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12699 (exit $ac_status); }; } &&
12700 { ac_try='test -s conftest.$ac_objext'
12701 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12702 (eval $ac_try) 2>&5
12703 ac_status=$?
12704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12705 (exit $ac_status); }; }; then
0093c2fc 12706 bakefile_compiler_xlc=yes
3006edc0
VZ
12707else
12708 echo "$as_me: failed program was:" >&5
12709sed 's/^/| /' conftest.$ac_ext >&5
12710
0093c2fc 12711bakefile_compiler_xlc=no
3006edc0
VZ
12712fi
12713rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
0093c2fc 12714 bakefile_cv_c_compiler_xlc=$bakefile_compiler_xlc
3006edc0
VZ
12715
12716fi
0093c2fc
VZ
12717echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler_xlc" >&5
12718echo "${ECHO_T}$bakefile_cv_c_compiler_xlc" >&6
3006edc0 12719
0093c2fc 12720XLCC=`test $bakefile_cv_c_compiler_xlc = yes && echo yes`
3006edc0
VZ
12721ac_ext=c
12722ac_cpp='$CPP $CPPFLAGS'
12723ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12724ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12725ac_compiler_gnu=$ac_cv_c_compiler_gnu
12726
12727
12728 ;;
12729
12730 Darwin)
12731 ac_ext=c
95986553
DE
12732ac_cpp='$CPP $CPPFLAGS'
12733ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12734ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12735ac_compiler_gnu=$ac_cv_c_compiler_gnu
12736
12737echo "$as_me:$LINENO: checking whether we are using the Metrowerks C compiler" >&5
12738echo $ECHO_N "checking whether we are using the Metrowerks C compiler... $ECHO_C" >&6
12739if test "${bakefile_cv_c_compiler_mwerks+set}" = set; then
12740 echo $ECHO_N "(cached) $ECHO_C" >&6
12741else
12742 cat >conftest.$ac_ext <<_ACEOF
12743/* confdefs.h. */
12744_ACEOF
12745cat confdefs.h >>conftest.$ac_ext
12746cat >>conftest.$ac_ext <<_ACEOF
12747/* end confdefs.h. */
12748
12749int
12750main ()
12751{
12752#ifndef __MWERKS__
12753 choke me
12754#endif
12755
12756 ;
12757 return 0;
12758}
12759_ACEOF
12760rm -f conftest.$ac_objext
12761if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12762 (eval $ac_compile) 2>conftest.er1
12763 ac_status=$?
12764 grep -v '^ *+' conftest.er1 >conftest.err
12765 rm -f conftest.er1
12766 cat conftest.err >&5
12767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12768 (exit $ac_status); } &&
3f60522a
JS
12769 { ac_try='test -z "$ac_c_werror_flag"
12770 || test ! -s conftest.err'
95986553
DE
12771 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12772 (eval $ac_try) 2>&5
12773 ac_status=$?
12774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12775 (exit $ac_status); }; } &&
12776 { ac_try='test -s conftest.$ac_objext'
12777 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12778 (eval $ac_try) 2>&5
12779 ac_status=$?
12780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12781 (exit $ac_status); }; }; then
12782 bakefile_compiler_mwerks=yes
12783else
12784 echo "$as_me: failed program was:" >&5
12785sed 's/^/| /' conftest.$ac_ext >&5
12786
12787bakefile_compiler_mwerks=no
12788fi
12789rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12790 bakefile_cv_c_compiler_mwerks=$bakefile_compiler_mwerks
12791
12792fi
12793echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler_mwerks" >&5
12794echo "${ECHO_T}$bakefile_cv_c_compiler_mwerks" >&6
12795
0e6fa1d9 12796MWCC=`test $bakefile_cv_c_compiler_mwerks = yes && echo yes`
95986553
DE
12797ac_ext=c
12798ac_cpp='$CPP $CPPFLAGS'
12799ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12800ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12801ac_compiler_gnu=$ac_cv_c_compiler_gnu
12802
12803
3006edc0 12804 ac_ext=c
9273ffba
DE
12805ac_cpp='$CPP $CPPFLAGS'
12806ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12807ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12808ac_compiler_gnu=$ac_cv_c_compiler_gnu
12809
12810echo "$as_me:$LINENO: checking whether we are using the IBM xlC C compiler" >&5
12811echo $ECHO_N "checking whether we are using the IBM xlC C compiler... $ECHO_C" >&6
0093c2fc 12812if test "${bakefile_cv_c_compiler_xlc+set}" = set; then
9273ffba
DE
12813 echo $ECHO_N "(cached) $ECHO_C" >&6
12814else
12815 cat >conftest.$ac_ext <<_ACEOF
12816/* confdefs.h. */
12817_ACEOF
12818cat confdefs.h >>conftest.$ac_ext
12819cat >>conftest.$ac_ext <<_ACEOF
12820/* end confdefs.h. */
12821
12822int
12823main ()
12824{
12825#ifndef __xlC__
12826 choke me
12827#endif
12828
12829 ;
12830 return 0;
12831}
12832_ACEOF
12833rm -f conftest.$ac_objext
12834if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12835 (eval $ac_compile) 2>conftest.er1
12836 ac_status=$?
12837 grep -v '^ *+' conftest.er1 >conftest.err
12838 rm -f conftest.er1
12839 cat conftest.err >&5
12840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12841 (exit $ac_status); } &&
3f60522a
JS
12842 { ac_try='test -z "$ac_c_werror_flag"
12843 || test ! -s conftest.err'
9273ffba
DE
12844 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12845 (eval $ac_try) 2>&5
12846 ac_status=$?
12847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12848 (exit $ac_status); }; } &&
12849 { ac_try='test -s conftest.$ac_objext'
12850 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12851 (eval $ac_try) 2>&5
12852 ac_status=$?
12853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12854 (exit $ac_status); }; }; then
0093c2fc 12855 bakefile_compiler_xlc=yes
9273ffba
DE
12856else
12857 echo "$as_me: failed program was:" >&5
12858sed 's/^/| /' conftest.$ac_ext >&5
12859
0093c2fc 12860bakefile_compiler_xlc=no
9273ffba
DE
12861fi
12862rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
0093c2fc 12863 bakefile_cv_c_compiler_xlc=$bakefile_compiler_xlc
9273ffba
DE
12864
12865fi
0093c2fc
VZ
12866echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler_xlc" >&5
12867echo "${ECHO_T}$bakefile_cv_c_compiler_xlc" >&6
9273ffba 12868
0093c2fc 12869XLCC=`test $bakefile_cv_c_compiler_xlc = yes && echo yes`
9273ffba
DE
12870ac_ext=c
12871ac_cpp='$CPP $CPPFLAGS'
12872ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12873ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12874ac_compiler_gnu=$ac_cv_c_compiler_gnu
12875
12876
3006edc0
VZ
12877 ;;
12878
12879 IRIX*)
a848cd7e 12880
6dcfc289 12881
0ad5d837
VZ
12882 ac_ext=c
12883ac_cpp='$CPP $CPPFLAGS'
12884ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12885ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12886ac_compiler_gnu=$ac_cv_c_compiler_gnu
12887
12888 echo "$as_me:$LINENO: checking whether we are using the SGI C compiler" >&5
12889echo $ECHO_N "checking whether we are using the SGI C compiler... $ECHO_C" >&6
12890if test "${bakefile_cv_c_compiler__SGI_COMPILER_VERSION+set}" = set; then
12891 echo $ECHO_N "(cached) $ECHO_C" >&6
12892else
12893 cat >conftest.$ac_ext <<_ACEOF
12894/* confdefs.h. */
12895_ACEOF
12896cat confdefs.h >>conftest.$ac_ext
12897cat >>conftest.$ac_ext <<_ACEOF
12898/* end confdefs.h. */
12899
12900int
12901main ()
12902{
12903
12904 #ifndef _SGI_COMPILER_VERSION
12905 choke me
12906 #endif
12907
12908 ;
12909 return 0;
12910}
12911_ACEOF
12912rm -f conftest.$ac_objext
12913if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12914 (eval $ac_compile) 2>conftest.er1
12915 ac_status=$?
12916 grep -v '^ *+' conftest.er1 >conftest.err
12917 rm -f conftest.er1
12918 cat conftest.err >&5
12919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12920 (exit $ac_status); } &&
3f60522a
JS
12921 { ac_try='test -z "$ac_c_werror_flag"
12922 || test ! -s conftest.err'
0ad5d837
VZ
12923 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12924 (eval $ac_try) 2>&5
12925 ac_status=$?
12926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12927 (exit $ac_status); }; } &&
12928 { ac_try='test -s conftest.$ac_objext'
12929 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12930 (eval $ac_try) 2>&5
12931 ac_status=$?
12932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12933 (exit $ac_status); }; }; then
12934 bakefile_cv_c_compiler__SGI_COMPILER_VERSION=yes
12935else
12936 echo "$as_me: failed program was:" >&5
12937sed 's/^/| /' conftest.$ac_ext >&5
12938
12939bakefile_cv_c_compiler__SGI_COMPILER_VERSION=no
12940
12941fi
12942rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12943
12944
12945fi
12946echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler__SGI_COMPILER_VERSION" >&5
12947echo "${ECHO_T}$bakefile_cv_c_compiler__SGI_COMPILER_VERSION" >&6
12948 ac_ext=c
12949ac_cpp='$CPP $CPPFLAGS'
12950ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12951ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12952ac_compiler_gnu=$ac_cv_c_compiler_gnu
12953
12954 if test "x$bakefile_cv_c_compiler__SGI_COMPILER_VERSION" = "xyes"; then
12955 :; SGICC=yes
12956 else
12957 :;
12958 fi
12959
12960
3006edc0
VZ
12961 ;;
12962
0093c2fc 12963 HP-UX*)
3006edc0
VZ
12964
12965
12966 ac_ext=c
12967ac_cpp='$CPP $CPPFLAGS'
12968ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12969ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12970ac_compiler_gnu=$ac_cv_c_compiler_gnu
12971
0093c2fc
VZ
12972 echo "$as_me:$LINENO: checking whether we are using the HP C compiler" >&5
12973echo $ECHO_N "checking whether we are using the HP C compiler... $ECHO_C" >&6
12974if test "${bakefile_cv_c_compiler___HP_cc+set}" = set; then
3006edc0
VZ
12975 echo $ECHO_N "(cached) $ECHO_C" >&6
12976else
12977 cat >conftest.$ac_ext <<_ACEOF
12978/* confdefs.h. */
12979_ACEOF
12980cat confdefs.h >>conftest.$ac_ext
12981cat >>conftest.$ac_ext <<_ACEOF
12982/* end confdefs.h. */
12983
12984int
12985main ()
12986{
12987
0093c2fc 12988 #ifndef __HP_cc
3006edc0
VZ
12989 choke me
12990 #endif
12991
12992 ;
12993 return 0;
12994}
12995_ACEOF
12996rm -f conftest.$ac_objext
12997if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12998 (eval $ac_compile) 2>conftest.er1
12999 ac_status=$?
13000 grep -v '^ *+' conftest.er1 >conftest.err
13001 rm -f conftest.er1
13002 cat conftest.err >&5
13003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13004 (exit $ac_status); } &&
3f60522a
JS
13005 { ac_try='test -z "$ac_c_werror_flag"
13006 || test ! -s conftest.err'
3006edc0
VZ
13007 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13008 (eval $ac_try) 2>&5
13009 ac_status=$?
13010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13011 (exit $ac_status); }; } &&
13012 { ac_try='test -s conftest.$ac_objext'
13013 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13014 (eval $ac_try) 2>&5
13015 ac_status=$?
13016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13017 (exit $ac_status); }; }; then
0093c2fc 13018 bakefile_cv_c_compiler___HP_cc=yes
3006edc0
VZ
13019else
13020 echo "$as_me: failed program was:" >&5
13021sed 's/^/| /' conftest.$ac_ext >&5
13022
0093c2fc 13023bakefile_cv_c_compiler___HP_cc=no
3006edc0
VZ
13024
13025fi
13026rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13027
13028
13029fi
0093c2fc
VZ
13030echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___HP_cc" >&5
13031echo "${ECHO_T}$bakefile_cv_c_compiler___HP_cc" >&6
3006edc0
VZ
13032 ac_ext=c
13033ac_cpp='$CPP $CPPFLAGS'
13034ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13035ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13036ac_compiler_gnu=$ac_cv_c_compiler_gnu
13037
0093c2fc
VZ
13038 if test "x$bakefile_cv_c_compiler___HP_cc" = "xyes"; then
13039 :; HPCC=yes
a1aa0349
VZ
13040 else
13041 :;
13042 fi
13043
13044
13045 ;;
13046
0093c2fc 13047 OSF1)
a1aa0349
VZ
13048
13049
13050 ac_ext=c
13051ac_cpp='$CPP $CPPFLAGS'
13052ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13053ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13054ac_compiler_gnu=$ac_cv_c_compiler_gnu
13055
0093c2fc
VZ
13056 echo "$as_me:$LINENO: checking whether we are using the Compaq C compiler" >&5
13057echo $ECHO_N "checking whether we are using the Compaq C compiler... $ECHO_C" >&6
13058if test "${bakefile_cv_c_compiler___DECC+set}" = set; then
a1aa0349
VZ
13059 echo $ECHO_N "(cached) $ECHO_C" >&6
13060else
13061 cat >conftest.$ac_ext <<_ACEOF
13062/* confdefs.h. */
13063_ACEOF
13064cat confdefs.h >>conftest.$ac_ext
13065cat >>conftest.$ac_ext <<_ACEOF
13066/* end confdefs.h. */
13067
13068int
13069main ()
13070{
13071
0093c2fc 13072 #ifndef __DECC
a1aa0349
VZ
13073 choke me
13074 #endif
13075
13076 ;
13077 return 0;
13078}
13079_ACEOF
13080rm -f conftest.$ac_objext
13081if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13082 (eval $ac_compile) 2>conftest.er1
13083 ac_status=$?
13084 grep -v '^ *+' conftest.er1 >conftest.err
13085 rm -f conftest.er1
13086 cat conftest.err >&5
13087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13088 (exit $ac_status); } &&
3f60522a
JS
13089 { ac_try='test -z "$ac_c_werror_flag"
13090 || test ! -s conftest.err'
a1aa0349
VZ
13091 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13092 (eval $ac_try) 2>&5
13093 ac_status=$?
13094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13095 (exit $ac_status); }; } &&
13096 { ac_try='test -s conftest.$ac_objext'
13097 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13098 (eval $ac_try) 2>&5
13099 ac_status=$?
13100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13101 (exit $ac_status); }; }; then
0093c2fc 13102 bakefile_cv_c_compiler___DECC=yes
a1aa0349
VZ
13103else
13104 echo "$as_me: failed program was:" >&5
13105sed 's/^/| /' conftest.$ac_ext >&5
13106
0093c2fc 13107bakefile_cv_c_compiler___DECC=no
a1aa0349
VZ
13108
13109fi
13110rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13111
13112
13113fi
0093c2fc
VZ
13114echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___DECC" >&5
13115echo "${ECHO_T}$bakefile_cv_c_compiler___DECC" >&6
a1aa0349
VZ
13116 ac_ext=c
13117ac_cpp='$CPP $CPPFLAGS'
13118ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13119ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13120ac_compiler_gnu=$ac_cv_c_compiler_gnu
13121
0093c2fc
VZ
13122 if test "x$bakefile_cv_c_compiler___DECC" = "xyes"; then
13123 :; COMPAQCC=yes
13124 else
13125 :;
13126 fi
13127
13128
13129 ;;
13130
13131 SunOS)
13132
13133
13134 ac_ext=c
13135ac_cpp='$CPP $CPPFLAGS'
13136ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13137ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13138ac_compiler_gnu=$ac_cv_c_compiler_gnu
13139
13140 echo "$as_me:$LINENO: checking whether we are using the Sun C compiler" >&5
13141echo $ECHO_N "checking whether we are using the Sun C compiler... $ECHO_C" >&6
13142if test "${bakefile_cv_c_compiler___SUNPRO_C+set}" = set; then
13143 echo $ECHO_N "(cached) $ECHO_C" >&6
13144else
13145 cat >conftest.$ac_ext <<_ACEOF
13146/* confdefs.h. */
13147_ACEOF
13148cat confdefs.h >>conftest.$ac_ext
13149cat >>conftest.$ac_ext <<_ACEOF
13150/* end confdefs.h. */
13151
13152int
13153main ()
13154{
13155
13156 #ifndef __SUNPRO_C
13157 choke me
13158 #endif
13159
13160 ;
13161 return 0;
13162}
13163_ACEOF
13164rm -f conftest.$ac_objext
13165if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13166 (eval $ac_compile) 2>conftest.er1
13167 ac_status=$?
13168 grep -v '^ *+' conftest.er1 >conftest.err
13169 rm -f conftest.er1
13170 cat conftest.err >&5
13171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13172 (exit $ac_status); } &&
3f60522a
JS
13173 { ac_try='test -z "$ac_c_werror_flag"
13174 || test ! -s conftest.err'
0093c2fc
VZ
13175 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13176 (eval $ac_try) 2>&5
13177 ac_status=$?
13178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13179 (exit $ac_status); }; } &&
13180 { ac_try='test -s conftest.$ac_objext'
13181 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13182 (eval $ac_try) 2>&5
13183 ac_status=$?
13184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13185 (exit $ac_status); }; }; then
13186 bakefile_cv_c_compiler___SUNPRO_C=yes
13187else
13188 echo "$as_me: failed program was:" >&5
13189sed 's/^/| /' conftest.$ac_ext >&5
13190
13191bakefile_cv_c_compiler___SUNPRO_C=no
13192
13193fi
13194rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13195
13196
13197fi
13198echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___SUNPRO_C" >&5
13199echo "${ECHO_T}$bakefile_cv_c_compiler___SUNPRO_C" >&6
13200 ac_ext=c
13201ac_cpp='$CPP $CPPFLAGS'
13202ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13203ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13204ac_compiler_gnu=$ac_cv_c_compiler_gnu
13205
13206 if test "x$bakefile_cv_c_compiler___SUNPRO_C" = "xyes"; then
13207 :; SUNCC=yes
3006edc0
VZ
13208 else
13209 :;
13210 fi
13211
13212
13213 ;;
13214 esac
ab0ad5f1 13215 fi
a9e5b1f0
MW
13216
13217
3006edc0 13218
a848cd7e
SC
13219ac_ext=c
13220ac_cpp='$CPP $CPPFLAGS'
13221ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13222ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13223ac_compiler_gnu=$ac_cv_c_compiler_gnu
13224echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
13225echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
13226# On Suns, sometimes $CPP names a directory.
13227if test -n "$CPP" && test -d "$CPP"; then
13228 CPP=
13229fi
13230if test -z "$CPP"; then
13231 if test "${ac_cv_prog_CPP+set}" = set; then
13232 echo $ECHO_N "(cached) $ECHO_C" >&6
13233else
13234 # Double quotes because CPP needs to be expanded
13235 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
13236 do
13237 ac_preproc_ok=false
13238for ac_c_preproc_warn_flag in '' yes
13239do
13240 # Use a header file that comes with gcc, so configuring glibc
13241 # with a fresh cross-compiler works.
13242 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13243 # <limits.h> exists even on freestanding compilers.
13244 # On the NeXT, cc -E runs the code through the compiler's parser,
13245 # not just through cpp. "Syntax error" is here to catch this case.
13246 cat >conftest.$ac_ext <<_ACEOF
13247/* confdefs.h. */
13248_ACEOF
13249cat confdefs.h >>conftest.$ac_ext
13250cat >>conftest.$ac_ext <<_ACEOF
13251/* end confdefs.h. */
13252#ifdef __STDC__
13253# include <limits.h>
13254#else
13255# include <assert.h>
13256#endif
ac1cb8d3 13257 Syntax error
a848cd7e
SC
13258_ACEOF
13259if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13260 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13261 ac_status=$?
13262 grep -v '^ *+' conftest.er1 >conftest.err
13263 rm -f conftest.er1
13264 cat conftest.err >&5
13265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13266 (exit $ac_status); } >/dev/null; then
13267 if test -s conftest.err; then
13268 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 13269 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
13270 else
13271 ac_cpp_err=
13272 fi
13273else
13274 ac_cpp_err=yes
13275fi
13276if test -z "$ac_cpp_err"; then
13277 :
13278else
13279 echo "$as_me: failed program was:" >&5
13280sed 's/^/| /' conftest.$ac_ext >&5
13281
13282 # Broken: fails on valid input.
13283continue
13284fi
13285rm -f conftest.err conftest.$ac_ext
13286
13287 # OK, works on sane cases. Now check whether non-existent headers
13288 # can be detected and how.
13289 cat >conftest.$ac_ext <<_ACEOF
13290/* confdefs.h. */
13291_ACEOF
13292cat confdefs.h >>conftest.$ac_ext
13293cat >>conftest.$ac_ext <<_ACEOF
13294/* end confdefs.h. */
13295#include <ac_nonexistent.h>
13296_ACEOF
13297if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13298 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13299 ac_status=$?
13300 grep -v '^ *+' conftest.er1 >conftest.err
13301 rm -f conftest.er1
13302 cat conftest.err >&5
13303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13304 (exit $ac_status); } >/dev/null; then
13305 if test -s conftest.err; then
13306 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 13307 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
13308 else
13309 ac_cpp_err=
13310 fi
13311else
13312 ac_cpp_err=yes
13313fi
13314if test -z "$ac_cpp_err"; then
13315 # Broken: success on invalid input.
13316continue
13317else
13318 echo "$as_me: failed program was:" >&5
13319sed 's/^/| /' conftest.$ac_ext >&5
13320
13321 # Passes both tests.
13322ac_preproc_ok=:
13323break
13324fi
13325rm -f conftest.err conftest.$ac_ext
13326
13327done
13328# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13329rm -f conftest.err conftest.$ac_ext
13330if $ac_preproc_ok; then
13331 break
13332fi
13333
13334 done
13335 ac_cv_prog_CPP=$CPP
13336
13337fi
13338 CPP=$ac_cv_prog_CPP
13339else
13340 ac_cv_prog_CPP=$CPP
13341fi
13342echo "$as_me:$LINENO: result: $CPP" >&5
13343echo "${ECHO_T}$CPP" >&6
13344ac_preproc_ok=false
13345for ac_c_preproc_warn_flag in '' yes
13346do
13347 # Use a header file that comes with gcc, so configuring glibc
13348 # with a fresh cross-compiler works.
13349 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13350 # <limits.h> exists even on freestanding compilers.
13351 # On the NeXT, cc -E runs the code through the compiler's parser,
13352 # not just through cpp. "Syntax error" is here to catch this case.
13353 cat >conftest.$ac_ext <<_ACEOF
13354/* confdefs.h. */
13355_ACEOF
13356cat confdefs.h >>conftest.$ac_ext
13357cat >>conftest.$ac_ext <<_ACEOF
13358/* end confdefs.h. */
13359#ifdef __STDC__
13360# include <limits.h>
13361#else
13362# include <assert.h>
13363#endif
ac1cb8d3 13364 Syntax error
a848cd7e
SC
13365_ACEOF
13366if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13367 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13368 ac_status=$?
13369 grep -v '^ *+' conftest.er1 >conftest.err
13370 rm -f conftest.er1
13371 cat conftest.err >&5
13372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13373 (exit $ac_status); } >/dev/null; then
13374 if test -s conftest.err; then
13375 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 13376 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
13377 else
13378 ac_cpp_err=
13379 fi
13380else
13381 ac_cpp_err=yes
13382fi
13383if test -z "$ac_cpp_err"; then
13384 :
13385else
13386 echo "$as_me: failed program was:" >&5
13387sed 's/^/| /' conftest.$ac_ext >&5
13388
13389 # Broken: fails on valid input.
13390continue
13391fi
13392rm -f conftest.err conftest.$ac_ext
13393
13394 # OK, works on sane cases. Now check whether non-existent headers
13395 # can be detected and how.
13396 cat >conftest.$ac_ext <<_ACEOF
13397/* confdefs.h. */
13398_ACEOF
13399cat confdefs.h >>conftest.$ac_ext
13400cat >>conftest.$ac_ext <<_ACEOF
13401/* end confdefs.h. */
13402#include <ac_nonexistent.h>
13403_ACEOF
13404if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13405 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13406 ac_status=$?
13407 grep -v '^ *+' conftest.er1 >conftest.err
13408 rm -f conftest.er1
13409 cat conftest.err >&5
13410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13411 (exit $ac_status); } >/dev/null; then
13412 if test -s conftest.err; then
13413 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 13414 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
13415 else
13416 ac_cpp_err=
13417 fi
13418else
13419 ac_cpp_err=yes
13420fi
13421if test -z "$ac_cpp_err"; then
13422 # Broken: success on invalid input.
13423continue
13424else
13425 echo "$as_me: failed program was:" >&5
13426sed 's/^/| /' conftest.$ac_ext >&5
13427
13428 # Passes both tests.
13429ac_preproc_ok=:
13430break
13431fi
13432rm -f conftest.err conftest.$ac_ext
13433
13434done
13435# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13436rm -f conftest.err conftest.$ac_ext
13437if $ac_preproc_ok; then
13438 :
13439else
13440 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
13441See \`config.log' for more details." >&5
13442echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
13443See \`config.log' for more details." >&2;}
13444 { (exit 1); exit 1; }; }
13445fi
13446
13447ac_ext=c
13448ac_cpp='$CPP $CPPFLAGS'
13449ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13450ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13451ac_compiler_gnu=$ac_cv_c_compiler_gnu
13452
13453
13454echo "$as_me:$LINENO: checking for egrep" >&5
13455echo $ECHO_N "checking for egrep... $ECHO_C" >&6
13456if test "${ac_cv_prog_egrep+set}" = set; then
13457 echo $ECHO_N "(cached) $ECHO_C" >&6
13458else
13459 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
13460 then ac_cv_prog_egrep='grep -E'
13461 else ac_cv_prog_egrep='egrep'
13462 fi
13463fi
13464echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
13465echo "${ECHO_T}$ac_cv_prog_egrep" >&6
13466 EGREP=$ac_cv_prog_egrep
13467
13468
13469if test $ac_cv_c_compiler_gnu = yes; then
13470 echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
13471echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
13472if test "${ac_cv_prog_gcc_traditional+set}" = set; then
13473 echo $ECHO_N "(cached) $ECHO_C" >&6
13474else
13475 ac_pattern="Autoconf.*'x'"
13476 cat >conftest.$ac_ext <<_ACEOF
13477/* confdefs.h. */
13478_ACEOF
13479cat confdefs.h >>conftest.$ac_ext
13480cat >>conftest.$ac_ext <<_ACEOF
13481/* end confdefs.h. */
13482#include <sgtty.h>
13483Autoconf TIOCGETP
13484_ACEOF
13485if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13486 $EGREP "$ac_pattern" >/dev/null 2>&1; then
13487 ac_cv_prog_gcc_traditional=yes
13488else
13489 ac_cv_prog_gcc_traditional=no
13490fi
13491rm -f conftest*
13492
13493
13494 if test $ac_cv_prog_gcc_traditional = no; then
13495 cat >conftest.$ac_ext <<_ACEOF
13496/* confdefs.h. */
13497_ACEOF
13498cat confdefs.h >>conftest.$ac_ext
13499cat >>conftest.$ac_ext <<_ACEOF
13500/* end confdefs.h. */
13501#include <termio.h>
13502Autoconf TCGETA
13503_ACEOF
13504if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13505 $EGREP "$ac_pattern" >/dev/null 2>&1; then
13506 ac_cv_prog_gcc_traditional=yes
13507fi
13508rm -f conftest*
13509
13510 fi
13511fi
13512echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
13513echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
13514 if test $ac_cv_prog_gcc_traditional = yes; then
13515 CC="$CC -traditional"
13516 fi
13517fi
13518
13519
a848cd7e
SC
13520ac_ext=cc
13521ac_cpp='$CXXCPP $CPPFLAGS'
13522ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13523ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13524ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13525
13526
13527CXXFLAGS=${CXXFLAGS:=}
6dcfc289
DE
13528
13529
3006edc0 13530
6dcfc289 13531 ac_ext=cc
a848cd7e
SC
13532ac_cpp='$CXXCPP $CPPFLAGS'
13533ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13534ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13535ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13536if test -n "$ac_tool_prefix"; then
13537 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
13538 do
13539 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
13540set dummy $ac_tool_prefix$ac_prog; ac_word=$2
13541echo "$as_me:$LINENO: checking for $ac_word" >&5
13542echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13543if test "${ac_cv_prog_CXX+set}" = set; then
13544 echo $ECHO_N "(cached) $ECHO_C" >&6
13545else
13546 if test -n "$CXX"; then
13547 ac_cv_prog_CXX="$CXX" # Let the user override the test.
13548else
13549as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13550for as_dir in $PATH
13551do
13552 IFS=$as_save_IFS
13553 test -z "$as_dir" && as_dir=.
13554 for ac_exec_ext in '' $ac_executable_extensions; do
13555 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13556 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
13557 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13558 break 2
13559 fi
13560done
13561done
13562
13563fi
13564fi
13565CXX=$ac_cv_prog_CXX
13566if test -n "$CXX"; then
13567 echo "$as_me:$LINENO: result: $CXX" >&5
13568echo "${ECHO_T}$CXX" >&6
13569else
13570 echo "$as_me:$LINENO: result: no" >&5
13571echo "${ECHO_T}no" >&6
13572fi
13573
13574 test -n "$CXX" && break
13575 done
13576fi
13577if test -z "$CXX"; then
13578 ac_ct_CXX=$CXX
13579 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
13580do
13581 # Extract the first word of "$ac_prog", so it can be a program name with args.
13582set dummy $ac_prog; ac_word=$2
13583echo "$as_me:$LINENO: checking for $ac_word" >&5
13584echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13585if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
13586 echo $ECHO_N "(cached) $ECHO_C" >&6
13587else
13588 if test -n "$ac_ct_CXX"; then
13589 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
13590else
13591as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13592for as_dir in $PATH
13593do
13594 IFS=$as_save_IFS
13595 test -z "$as_dir" && as_dir=.
13596 for ac_exec_ext in '' $ac_executable_extensions; do
13597 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13598 ac_cv_prog_ac_ct_CXX="$ac_prog"
13599 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13600 break 2
13601 fi
13602done
13603done
13604
13605fi
13606fi
13607ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
13608if test -n "$ac_ct_CXX"; then
13609 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
13610echo "${ECHO_T}$ac_ct_CXX" >&6
13611else
13612 echo "$as_me:$LINENO: result: no" >&5
13613echo "${ECHO_T}no" >&6
13614fi
13615
13616 test -n "$ac_ct_CXX" && break
13617done
13618test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
13619
13620 CXX=$ac_ct_CXX
13621fi
13622
13623
13624# Provide some information about the compiler.
13625echo "$as_me:$LINENO:" \
13626 "checking for C++ compiler version" >&5
13627ac_compiler=`set X $ac_compile; echo $2`
13628{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
13629 (eval $ac_compiler --version </dev/null >&5) 2>&5
13630 ac_status=$?
13631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13632 (exit $ac_status); }
13633{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
13634 (eval $ac_compiler -v </dev/null >&5) 2>&5
13635 ac_status=$?
13636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13637 (exit $ac_status); }
13638{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
13639 (eval $ac_compiler -V </dev/null >&5) 2>&5
13640 ac_status=$?
13641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13642 (exit $ac_status); }
13643
13644echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
13645echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
13646if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
13647 echo $ECHO_N "(cached) $ECHO_C" >&6
13648else
13649 cat >conftest.$ac_ext <<_ACEOF
13650/* confdefs.h. */
13651_ACEOF
13652cat confdefs.h >>conftest.$ac_ext
13653cat >>conftest.$ac_ext <<_ACEOF
13654/* end confdefs.h. */
13655
13656int
13657main ()
13658{
13659#ifndef __GNUC__
13660 choke me
13661#endif
13662
13663 ;
13664 return 0;
13665}
13666_ACEOF
13667rm -f conftest.$ac_objext
13668if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 13669 (eval $ac_compile) 2>conftest.er1
a848cd7e 13670 ac_status=$?
ac1cb8d3
VS
13671 grep -v '^ *+' conftest.er1 >conftest.err
13672 rm -f conftest.er1
13673 cat conftest.err >&5
a848cd7e
SC
13674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13675 (exit $ac_status); } &&
3f60522a
JS
13676 { ac_try='test -z "$ac_cxx_werror_flag"
13677 || test ! -s conftest.err'
ac1cb8d3
VS
13678 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13679 (eval $ac_try) 2>&5
13680 ac_status=$?
13681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13682 (exit $ac_status); }; } &&
13683 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
13684 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13685 (eval $ac_try) 2>&5
13686 ac_status=$?
13687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13688 (exit $ac_status); }; }; then
13689 ac_compiler_gnu=yes
13690else
13691 echo "$as_me: failed program was:" >&5
13692sed 's/^/| /' conftest.$ac_ext >&5
13693
13694ac_compiler_gnu=no
13695fi
ac1cb8d3 13696rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
13697ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
13698
13699fi
13700echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
13701echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
13702GXX=`test $ac_compiler_gnu = yes && echo yes`
13703ac_test_CXXFLAGS=${CXXFLAGS+set}
13704ac_save_CXXFLAGS=$CXXFLAGS
13705CXXFLAGS="-g"
13706echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
13707echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
13708if test "${ac_cv_prog_cxx_g+set}" = set; then
13709 echo $ECHO_N "(cached) $ECHO_C" >&6
13710else
13711 cat >conftest.$ac_ext <<_ACEOF
13712/* confdefs.h. */
13713_ACEOF
13714cat confdefs.h >>conftest.$ac_ext
13715cat >>conftest.$ac_ext <<_ACEOF
13716/* end confdefs.h. */
13717
13718int
13719main ()
13720{
13721
13722 ;
13723 return 0;
13724}
13725_ACEOF
13726rm -f conftest.$ac_objext
13727if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 13728 (eval $ac_compile) 2>conftest.er1
a848cd7e 13729 ac_status=$?
ac1cb8d3
VS
13730 grep -v '^ *+' conftest.er1 >conftest.err
13731 rm -f conftest.er1
13732 cat conftest.err >&5
a848cd7e
SC
13733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13734 (exit $ac_status); } &&
3f60522a
JS
13735 { ac_try='test -z "$ac_cxx_werror_flag"
13736 || test ! -s conftest.err'
ac1cb8d3
VS
13737 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13738 (eval $ac_try) 2>&5
13739 ac_status=$?
13740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13741 (exit $ac_status); }; } &&
13742 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
13743 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13744 (eval $ac_try) 2>&5
13745 ac_status=$?
13746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13747 (exit $ac_status); }; }; then
13748 ac_cv_prog_cxx_g=yes
13749else
13750 echo "$as_me: failed program was:" >&5
13751sed 's/^/| /' conftest.$ac_ext >&5
13752
13753ac_cv_prog_cxx_g=no
13754fi
ac1cb8d3 13755rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
13756fi
13757echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
13758echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
13759if test "$ac_test_CXXFLAGS" = set; then
13760 CXXFLAGS=$ac_save_CXXFLAGS
13761elif test $ac_cv_prog_cxx_g = yes; then
13762 if test "$GXX" = yes; then
8aeeb05c 13763 CXXFLAGS="-g -O2"
a848cd7e 13764 else
8aeeb05c 13765 CXXFLAGS="-g"
a848cd7e
SC
13766 fi
13767else
13768 if test "$GXX" = yes; then
13769 CXXFLAGS="-O2"
13770 else
13771 CXXFLAGS=
13772 fi
13773fi
13774for ac_declaration in \
ac1cb8d3 13775 '' \
a848cd7e
SC
13776 'extern "C" void std::exit (int) throw (); using std::exit;' \
13777 'extern "C" void std::exit (int); using std::exit;' \
13778 'extern "C" void exit (int) throw ();' \
13779 'extern "C" void exit (int);' \
13780 'void exit (int);'
13781do
13782 cat >conftest.$ac_ext <<_ACEOF
13783/* confdefs.h. */
13784_ACEOF
13785cat confdefs.h >>conftest.$ac_ext
13786cat >>conftest.$ac_ext <<_ACEOF
13787/* end confdefs.h. */
de59c161 13788$ac_declaration
ac1cb8d3 13789#include <stdlib.h>
a848cd7e
SC
13790int
13791main ()
13792{
13793exit (42);
13794 ;
13795 return 0;
13796}
13797_ACEOF
13798rm -f conftest.$ac_objext
13799if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 13800 (eval $ac_compile) 2>conftest.er1
a848cd7e 13801 ac_status=$?
ac1cb8d3
VS
13802 grep -v '^ *+' conftest.er1 >conftest.err
13803 rm -f conftest.er1
13804 cat conftest.err >&5
a848cd7e
SC
13805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13806 (exit $ac_status); } &&
3f60522a
JS
13807 { ac_try='test -z "$ac_cxx_werror_flag"
13808 || test ! -s conftest.err'
ac1cb8d3
VS
13809 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13810 (eval $ac_try) 2>&5
13811 ac_status=$?
13812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13813 (exit $ac_status); }; } &&
13814 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
13815 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13816 (eval $ac_try) 2>&5
13817 ac_status=$?
13818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13819 (exit $ac_status); }; }; then
13820 :
13821else
13822 echo "$as_me: failed program was:" >&5
13823sed 's/^/| /' conftest.$ac_ext >&5
13824
13825continue
13826fi
ac1cb8d3 13827rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
13828 cat >conftest.$ac_ext <<_ACEOF
13829/* confdefs.h. */
13830_ACEOF
13831cat confdefs.h >>conftest.$ac_ext
13832cat >>conftest.$ac_ext <<_ACEOF
13833/* end confdefs.h. */
13834$ac_declaration
13835int
13836main ()
13837{
13838exit (42);
13839 ;
13840 return 0;
13841}
13842_ACEOF
13843rm -f conftest.$ac_objext
13844if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 13845 (eval $ac_compile) 2>conftest.er1
a848cd7e 13846 ac_status=$?
ac1cb8d3
VS
13847 grep -v '^ *+' conftest.er1 >conftest.err
13848 rm -f conftest.er1
13849 cat conftest.err >&5
a848cd7e
SC
13850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13851 (exit $ac_status); } &&
3f60522a
JS
13852 { ac_try='test -z "$ac_cxx_werror_flag"
13853 || test ! -s conftest.err'
ac1cb8d3
VS
13854 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13855 (eval $ac_try) 2>&5
13856 ac_status=$?
13857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13858 (exit $ac_status); }; } &&
13859 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
13860 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13861 (eval $ac_try) 2>&5
13862 ac_status=$?
13863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13864 (exit $ac_status); }; }; then
13865 break
13866else
13867 echo "$as_me: failed program was:" >&5
13868sed 's/^/| /' conftest.$ac_ext >&5
13869
13870fi
ac1cb8d3 13871rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
13872done
13873rm -f conftest*
13874if test -n "$ac_declaration"; then
13875 echo '#ifdef __cplusplus' >>confdefs.h
13876 echo $ac_declaration >>confdefs.h
13877 echo '#endif' >>confdefs.h
13878fi
13879
13880ac_ext=cc
13881ac_cpp='$CXXCPP $CPPFLAGS'
13882ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13883ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13884ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13885
ab0ad5f1
VZ
13886
13887
13888 ac_ext=cc
13889ac_cpp='$CXXCPP $CPPFLAGS'
13890ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13891ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13892ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13893
13894 echo "$as_me:$LINENO: checking whether we are using the Intel C++ compiler" >&5
13895echo $ECHO_N "checking whether we are using the Intel C++ compiler... $ECHO_C" >&6
13896if test "${bakefile_cv_cxx_compiler___INTEL_COMPILER+set}" = set; then
13897 echo $ECHO_N "(cached) $ECHO_C" >&6
13898else
13899 cat >conftest.$ac_ext <<_ACEOF
13900/* confdefs.h. */
13901_ACEOF
13902cat confdefs.h >>conftest.$ac_ext
13903cat >>conftest.$ac_ext <<_ACEOF
13904/* end confdefs.h. */
13905
13906int
13907main ()
13908{
13909
13910 #ifndef __INTEL_COMPILER
13911 choke me
13912 #endif
13913
13914 ;
13915 return 0;
13916}
13917_ACEOF
13918rm -f conftest.$ac_objext
13919if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13920 (eval $ac_compile) 2>conftest.er1
13921 ac_status=$?
13922 grep -v '^ *+' conftest.er1 >conftest.err
13923 rm -f conftest.er1
13924 cat conftest.err >&5
13925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13926 (exit $ac_status); } &&
3f60522a
JS
13927 { ac_try='test -z "$ac_cxx_werror_flag"
13928 || test ! -s conftest.err'
ab0ad5f1
VZ
13929 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13930 (eval $ac_try) 2>&5
13931 ac_status=$?
13932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13933 (exit $ac_status); }; } &&
13934 { ac_try='test -s conftest.$ac_objext'
13935 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13936 (eval $ac_try) 2>&5
13937 ac_status=$?
13938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13939 (exit $ac_status); }; }; then
13940 bakefile_cv_cxx_compiler___INTEL_COMPILER=yes
13941else
13942 echo "$as_me: failed program was:" >&5
13943sed 's/^/| /' conftest.$ac_ext >&5
13944
13945bakefile_cv_cxx_compiler___INTEL_COMPILER=no
13946
13947fi
13948rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13949
13950
13951fi
13952echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___INTEL_COMPILER" >&5
13953echo "${ECHO_T}$bakefile_cv_cxx_compiler___INTEL_COMPILER" >&6
13954 ac_ext=cc
13955ac_cpp='$CXXCPP $CPPFLAGS'
13956ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13957ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13958ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13959
13960 if test "x$bakefile_cv_cxx_compiler___INTEL_COMPILER" = "xyes"; then
13961 :; INTELCXX=yes
13962 else
13963 :;
13964 fi
13965
13966
3006edc0
VZ
13967 if test "x$GCXX" != "xyes"; then
13968 if test "xCXX" = "xC"; then
13969 echo "$as_me:$LINENO: checking if the C++ compiler requires -ext o" >&5
480ccd21 13970echo $ECHO_N "checking if the C++ compiler requires -ext o... $ECHO_C" >&6
0093c2fc 13971if test "${bakefile_cv_cxx_exto+set}" = set; then
480ccd21
DE
13972 echo $ECHO_N "(cached) $ECHO_C" >&6
13973else
13974 cat >conftest.$ac_ext <<_ACEOF
13975/* confdefs.h. */
13976_ACEOF
13977cat confdefs.h >>conftest.$ac_ext
13978cat >>conftest.$ac_ext <<_ACEOF
13979/* end confdefs.h. */
13980
13981int
13982main ()
13983{
13984
13985 ;
13986 return 0;
13987}
13988_ACEOF
13989rm -f conftest.$ac_objext conftest.$ac_ext.o
13990if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13991 (eval $ac_compile) 2>&5
13992 ac_status=$?
13993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13994 (exit $ac_status); }; then
13995 for ac_file in `(ls conftest.* 2>/dev/null)`; do
13996 case $ac_file in
13997 conftest.$ac_ext.o)
0093c2fc 13998 bakefile_cv_cxx_exto="-ext o"
480ccd21
DE
13999 ;;
14000 *)
14001 ;;
14002 esac
14003done
14004else
14005 { { echo "$as_me:$LINENO: error: cannot figure out if compiler needs -ext o: cannot compile
14006See \`config.log' for more details." >&5
14007echo "$as_me: error: cannot figure out if compiler needs -ext o: cannot compile
14008See \`config.log' for more details." >&2;}
14009 { (exit 1); exit 1; }; }
14010
14011fi
14012
14013rm -f conftest.$ac_ext.o conftest.$ac_objext conftest.$ac_ext
14014
14015fi
0093c2fc
VZ
14016echo "$as_me:$LINENO: result: $bakefile_cv_cxx_exto" >&5
14017echo "${ECHO_T}$bakefile_cv_cxx_exto" >&6
14018if test "x$bakefile_cv_cxx_exto" '!=' "x"; then
480ccd21 14019 if test "cxx" = "c"; then
0093c2fc 14020 CFLAGS="$bakefile_cv_cxx_exto $CFLAGS"
480ccd21
DE
14021 fi
14022 if test "cxx" = "cxx"; then
0093c2fc 14023 CXXFLAGS="$bakefile_cv_cxx_exto $CXXFLAGS"
480ccd21
DE
14024 fi
14025fi
14026
0093c2fc 14027 if test "x$bakefile_cv_c_exto" '!=' "x"; then
3006edc0
VZ
14028 unset ac_cv_prog_cc_g
14029 ac_test_CFLAGS=${CFLAGS+set}
14030ac_save_CFLAGS=$CFLAGS
8aeeb05c 14031CFLAGS="-g"
3006edc0
VZ
14032echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
14033echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
14034if test "${ac_cv_prog_cc_g+set}" = set; then
480ccd21
DE
14035 echo $ECHO_N "(cached) $ECHO_C" >&6
14036else
14037 cat >conftest.$ac_ext <<_ACEOF
14038/* confdefs.h. */
14039_ACEOF
14040cat confdefs.h >>conftest.$ac_ext
14041cat >>conftest.$ac_ext <<_ACEOF
14042/* end confdefs.h. */
14043
14044int
14045main ()
14046{
14047
14048 ;
14049 return 0;
14050}
14051_ACEOF
14052rm -f conftest.$ac_objext
14053if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14054 (eval $ac_compile) 2>conftest.er1
14055 ac_status=$?
14056 grep -v '^ *+' conftest.er1 >conftest.err
14057 rm -f conftest.er1
14058 cat conftest.err >&5
14059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14060 (exit $ac_status); } &&
3f60522a
JS
14061 { ac_try='test -z "$ac_cxx_werror_flag"
14062 || test ! -s conftest.err'
480ccd21
DE
14063 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14064 (eval $ac_try) 2>&5
14065 ac_status=$?
14066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14067 (exit $ac_status); }; } &&
14068 { ac_try='test -s conftest.$ac_objext'
14069 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14070 (eval $ac_try) 2>&5
14071 ac_status=$?
14072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14073 (exit $ac_status); }; }; then
3006edc0 14074 ac_cv_prog_cc_g=yes
480ccd21
DE
14075else
14076 echo "$as_me: failed program was:" >&5
14077sed 's/^/| /' conftest.$ac_ext >&5
14078
3006edc0 14079ac_cv_prog_cc_g=no
480ccd21
DE
14080fi
14081rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14082fi
3006edc0
VZ
14083echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
14084echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
14085if test "$ac_test_CFLAGS" = set; then
14086 CFLAGS=$ac_save_CFLAGS
14087elif test $ac_cv_prog_cc_g = yes; then
14088 if test "$GCC" = yes; then
14089 CFLAGS="-g -O2"
480ccd21 14090 else
3006edc0 14091 CFLAGS="-g"
480ccd21
DE
14092 fi
14093else
3006edc0
VZ
14094 if test "$GCC" = yes; then
14095 CFLAGS="-O2"
480ccd21 14096 else
3006edc0 14097 CFLAGS=
480ccd21
DE
14098 fi
14099fi
3006edc0 14100 fi
ab0ad5f1 14101 fi
3006edc0
VZ
14102
14103 case `uname -s` in
14104 AIX*)
14105 ac_ext=cc
14106ac_cpp='$CXXCPP $CPPFLAGS'
14107ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14108ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14109ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14110
14111echo "$as_me:$LINENO: checking whether we are using the IBM xlC C++ compiler" >&5
14112echo $ECHO_N "checking whether we are using the IBM xlC C++ compiler... $ECHO_C" >&6
0093c2fc 14113if test "${bakefile_cv_cxx_compiler_xlc+set}" = set; then
3006edc0
VZ
14114 echo $ECHO_N "(cached) $ECHO_C" >&6
14115else
14116 cat >conftest.$ac_ext <<_ACEOF
14117/* confdefs.h. */
14118_ACEOF
14119cat confdefs.h >>conftest.$ac_ext
14120cat >>conftest.$ac_ext <<_ACEOF
14121/* end confdefs.h. */
14122
14123int
14124main ()
14125{
14126#ifndef __xlC__
14127 choke me
14128#endif
14129
14130 ;
14131 return 0;
14132}
14133_ACEOF
14134rm -f conftest.$ac_objext
14135if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14136 (eval $ac_compile) 2>conftest.er1
14137 ac_status=$?
14138 grep -v '^ *+' conftest.er1 >conftest.err
14139 rm -f conftest.er1
14140 cat conftest.err >&5
14141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14142 (exit $ac_status); } &&
3f60522a
JS
14143 { ac_try='test -z "$ac_cxx_werror_flag"
14144 || test ! -s conftest.err'
3006edc0
VZ
14145 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14146 (eval $ac_try) 2>&5
14147 ac_status=$?
14148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14149 (exit $ac_status); }; } &&
14150 { ac_try='test -s conftest.$ac_objext'
14151 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14152 (eval $ac_try) 2>&5
14153 ac_status=$?
14154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14155 (exit $ac_status); }; }; then
0093c2fc 14156 bakefile_compiler_xlc=yes
3006edc0
VZ
14157else
14158 echo "$as_me: failed program was:" >&5
14159sed 's/^/| /' conftest.$ac_ext >&5
14160
0093c2fc 14161bakefile_compiler_xlc=no
3006edc0
VZ
14162fi
14163rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
0093c2fc 14164 bakefile_cv_cxx_compiler_xlc=$bakefile_compiler_xlc
3006edc0
VZ
14165
14166fi
0093c2fc
VZ
14167echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler_xlc" >&5
14168echo "${ECHO_T}$bakefile_cv_cxx_compiler_xlc" >&6
3006edc0 14169
0093c2fc 14170XLCXX=`test $bakefile_cv_cxx_compiler_xlc = yes && echo yes`
3006edc0
VZ
14171ac_ext=cc
14172ac_cpp='$CXXCPP $CPPFLAGS'
14173ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14174ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14175ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14176
14177
14178 ;;
14179
14180 Darwin)
14181 ac_ext=cc
95986553
DE
14182ac_cpp='$CXXCPP $CPPFLAGS'
14183ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14184ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14185ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14186
14187echo "$as_me:$LINENO: checking whether we are using the Metrowerks C++ compiler" >&5
14188echo $ECHO_N "checking whether we are using the Metrowerks C++ compiler... $ECHO_C" >&6
14189if test "${bakefile_cv_cxx_compiler_mwerks+set}" = set; then
14190 echo $ECHO_N "(cached) $ECHO_C" >&6
14191else
14192 cat >conftest.$ac_ext <<_ACEOF
14193/* confdefs.h. */
14194_ACEOF
14195cat confdefs.h >>conftest.$ac_ext
14196cat >>conftest.$ac_ext <<_ACEOF
14197/* end confdefs.h. */
14198
14199int
14200main ()
14201{
14202#ifndef __MWERKS__
14203 choke me
14204#endif
14205
14206 ;
14207 return 0;
14208}
14209_ACEOF
14210rm -f conftest.$ac_objext
14211if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14212 (eval $ac_compile) 2>conftest.er1
14213 ac_status=$?
14214 grep -v '^ *+' conftest.er1 >conftest.err
14215 rm -f conftest.er1
14216 cat conftest.err >&5
14217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14218 (exit $ac_status); } &&
3f60522a
JS
14219 { ac_try='test -z "$ac_cxx_werror_flag"
14220 || test ! -s conftest.err'
95986553
DE
14221 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14222 (eval $ac_try) 2>&5
14223 ac_status=$?
14224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14225 (exit $ac_status); }; } &&
14226 { ac_try='test -s conftest.$ac_objext'
14227 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14228 (eval $ac_try) 2>&5
14229 ac_status=$?
14230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14231 (exit $ac_status); }; }; then
14232 bakefile_compiler_mwerks=yes
14233else
14234 echo "$as_me: failed program was:" >&5
14235sed 's/^/| /' conftest.$ac_ext >&5
14236
14237bakefile_compiler_mwerks=no
14238fi
14239rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14240 bakefile_cv_cxx_compiler_mwerks=$bakefile_compiler_mwerks
14241
14242fi
14243echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler_mwerks" >&5
14244echo "${ECHO_T}$bakefile_cv_cxx_compiler_mwerks" >&6
14245
0e6fa1d9 14246MWCXX=`test $bakefile_cv_cxx_compiler_mwerks = yes && echo yes`
95986553
DE
14247ac_ext=cc
14248ac_cpp='$CXXCPP $CPPFLAGS'
14249ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14250ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14251ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14252
14253
3006edc0 14254 ac_ext=cc
9273ffba
DE
14255ac_cpp='$CXXCPP $CPPFLAGS'
14256ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14257ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14258ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14259
14260echo "$as_me:$LINENO: checking whether we are using the IBM xlC C++ compiler" >&5
14261echo $ECHO_N "checking whether we are using the IBM xlC C++ compiler... $ECHO_C" >&6
0093c2fc 14262if test "${bakefile_cv_cxx_compiler_xlc+set}" = set; then
9273ffba
DE
14263 echo $ECHO_N "(cached) $ECHO_C" >&6
14264else
14265 cat >conftest.$ac_ext <<_ACEOF
14266/* confdefs.h. */
14267_ACEOF
14268cat confdefs.h >>conftest.$ac_ext
14269cat >>conftest.$ac_ext <<_ACEOF
14270/* end confdefs.h. */
14271
14272int
14273main ()
14274{
14275#ifndef __xlC__
14276 choke me
14277#endif
14278
14279 ;
14280 return 0;
14281}
14282_ACEOF
14283rm -f conftest.$ac_objext
14284if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14285 (eval $ac_compile) 2>conftest.er1
14286 ac_status=$?
14287 grep -v '^ *+' conftest.er1 >conftest.err
14288 rm -f conftest.er1
14289 cat conftest.err >&5
14290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14291 (exit $ac_status); } &&
3f60522a
JS
14292 { ac_try='test -z "$ac_cxx_werror_flag"
14293 || test ! -s conftest.err'
9273ffba
DE
14294 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14295 (eval $ac_try) 2>&5
14296 ac_status=$?
14297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14298 (exit $ac_status); }; } &&
14299 { ac_try='test -s conftest.$ac_objext'
14300 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14301 (eval $ac_try) 2>&5
14302 ac_status=$?
14303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14304 (exit $ac_status); }; }; then
0093c2fc 14305 bakefile_compiler_xlc=yes
9273ffba
DE
14306else
14307 echo "$as_me: failed program was:" >&5
14308sed 's/^/| /' conftest.$ac_ext >&5
14309
0093c2fc 14310bakefile_compiler_xlc=no
9273ffba
DE
14311fi
14312rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
0093c2fc 14313 bakefile_cv_cxx_compiler_xlc=$bakefile_compiler_xlc
9273ffba
DE
14314
14315fi
0093c2fc
VZ
14316echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler_xlc" >&5
14317echo "${ECHO_T}$bakefile_cv_cxx_compiler_xlc" >&6
9273ffba 14318
0093c2fc 14319XLCXX=`test $bakefile_cv_cxx_compiler_xlc = yes && echo yes`
9273ffba
DE
14320ac_ext=cc
14321ac_cpp='$CXXCPP $CPPFLAGS'
14322ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14323ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14324ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14325
14326
3006edc0
VZ
14327 ;;
14328
14329 IRIX*)
95986553 14330
6dcfc289 14331
0ad5d837
VZ
14332 ac_ext=cc
14333ac_cpp='$CXXCPP $CPPFLAGS'
14334ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14335ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14336ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14337
14338 echo "$as_me:$LINENO: checking whether we are using the SGI C++ compiler" >&5
14339echo $ECHO_N "checking whether we are using the SGI C++ compiler... $ECHO_C" >&6
14340if test "${bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION+set}" = set; then
14341 echo $ECHO_N "(cached) $ECHO_C" >&6
14342else
14343 cat >conftest.$ac_ext <<_ACEOF
14344/* confdefs.h. */
14345_ACEOF
14346cat confdefs.h >>conftest.$ac_ext
14347cat >>conftest.$ac_ext <<_ACEOF
14348/* end confdefs.h. */
14349
14350int
14351main ()
14352{
14353
14354 #ifndef _SGI_COMPILER_VERSION
14355 choke me
14356 #endif
14357
14358 ;
14359 return 0;
14360}
14361_ACEOF
14362rm -f conftest.$ac_objext
14363if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14364 (eval $ac_compile) 2>conftest.er1
14365 ac_status=$?
14366 grep -v '^ *+' conftest.er1 >conftest.err
14367 rm -f conftest.er1
14368 cat conftest.err >&5
14369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14370 (exit $ac_status); } &&
3f60522a
JS
14371 { ac_try='test -z "$ac_cxx_werror_flag"
14372 || test ! -s conftest.err'
0ad5d837
VZ
14373 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14374 (eval $ac_try) 2>&5
14375 ac_status=$?
14376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14377 (exit $ac_status); }; } &&
14378 { ac_try='test -s conftest.$ac_objext'
14379 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14380 (eval $ac_try) 2>&5
14381 ac_status=$?
14382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14383 (exit $ac_status); }; }; then
14384 bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION=yes
14385else
14386 echo "$as_me: failed program was:" >&5
14387sed 's/^/| /' conftest.$ac_ext >&5
14388
14389bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION=no
14390
14391fi
14392rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14393
14394
14395fi
14396echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION" >&5
14397echo "${ECHO_T}$bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION" >&6
14398 ac_ext=cc
14399ac_cpp='$CXXCPP $CPPFLAGS'
14400ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14401ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14402ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14403
14404 if test "x$bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION" = "xyes"; then
14405 :; SGICXX=yes
14406 else
14407 :;
14408 fi
14409
14410
3006edc0
VZ
14411 ;;
14412
0093c2fc 14413 HP-UX*)
3006edc0
VZ
14414
14415
14416 ac_ext=cc
14417ac_cpp='$CXXCPP $CPPFLAGS'
14418ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14419ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14420ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14421
0093c2fc
VZ
14422 echo "$as_me:$LINENO: checking whether we are using the HP C++ compiler" >&5
14423echo $ECHO_N "checking whether we are using the HP C++ compiler... $ECHO_C" >&6
14424if test "${bakefile_cv_cxx_compiler___HP_aCC+set}" = set; then
3006edc0
VZ
14425 echo $ECHO_N "(cached) $ECHO_C" >&6
14426else
14427 cat >conftest.$ac_ext <<_ACEOF
14428/* confdefs.h. */
14429_ACEOF
14430cat confdefs.h >>conftest.$ac_ext
14431cat >>conftest.$ac_ext <<_ACEOF
14432/* end confdefs.h. */
14433
14434int
14435main ()
14436{
14437
0093c2fc 14438 #ifndef __HP_aCC
3006edc0
VZ
14439 choke me
14440 #endif
14441
14442 ;
14443 return 0;
14444}
14445_ACEOF
14446rm -f conftest.$ac_objext
14447if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14448 (eval $ac_compile) 2>conftest.er1
14449 ac_status=$?
14450 grep -v '^ *+' conftest.er1 >conftest.err
14451 rm -f conftest.er1
14452 cat conftest.err >&5
14453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14454 (exit $ac_status); } &&
3f60522a
JS
14455 { ac_try='test -z "$ac_cxx_werror_flag"
14456 || test ! -s conftest.err'
3006edc0
VZ
14457 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14458 (eval $ac_try) 2>&5
14459 ac_status=$?
14460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14461 (exit $ac_status); }; } &&
14462 { ac_try='test -s conftest.$ac_objext'
14463 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14464 (eval $ac_try) 2>&5
14465 ac_status=$?
14466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14467 (exit $ac_status); }; }; then
0093c2fc 14468 bakefile_cv_cxx_compiler___HP_aCC=yes
3006edc0
VZ
14469else
14470 echo "$as_me: failed program was:" >&5
14471sed 's/^/| /' conftest.$ac_ext >&5
14472
0093c2fc 14473bakefile_cv_cxx_compiler___HP_aCC=no
3006edc0
VZ
14474
14475fi
14476rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14477
14478
14479fi
0093c2fc
VZ
14480echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___HP_aCC" >&5
14481echo "${ECHO_T}$bakefile_cv_cxx_compiler___HP_aCC" >&6
3006edc0
VZ
14482 ac_ext=cc
14483ac_cpp='$CXXCPP $CPPFLAGS'
14484ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14485ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14486ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14487
0093c2fc
VZ
14488 if test "x$bakefile_cv_cxx_compiler___HP_aCC" = "xyes"; then
14489 :; HPCXX=yes
a1aa0349
VZ
14490 else
14491 :;
14492 fi
14493
14494
14495 ;;
14496
0093c2fc 14497 OSF1)
a1aa0349
VZ
14498
14499
14500 ac_ext=cc
14501ac_cpp='$CXXCPP $CPPFLAGS'
14502ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14503ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14504ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14505
0093c2fc
VZ
14506 echo "$as_me:$LINENO: checking whether we are using the Compaq C++ compiler" >&5
14507echo $ECHO_N "checking whether we are using the Compaq C++ compiler... $ECHO_C" >&6
14508if test "${bakefile_cv_cxx_compiler___DECCXX+set}" = set; then
a1aa0349
VZ
14509 echo $ECHO_N "(cached) $ECHO_C" >&6
14510else
14511 cat >conftest.$ac_ext <<_ACEOF
14512/* confdefs.h. */
14513_ACEOF
14514cat confdefs.h >>conftest.$ac_ext
14515cat >>conftest.$ac_ext <<_ACEOF
14516/* end confdefs.h. */
14517
14518int
14519main ()
14520{
14521
0093c2fc 14522 #ifndef __DECCXX
a1aa0349
VZ
14523 choke me
14524 #endif
14525
14526 ;
14527 return 0;
14528}
14529_ACEOF
14530rm -f conftest.$ac_objext
14531if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14532 (eval $ac_compile) 2>conftest.er1
14533 ac_status=$?
14534 grep -v '^ *+' conftest.er1 >conftest.err
14535 rm -f conftest.er1
14536 cat conftest.err >&5
14537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14538 (exit $ac_status); } &&
3f60522a
JS
14539 { ac_try='test -z "$ac_cxx_werror_flag"
14540 || test ! -s conftest.err'
a1aa0349
VZ
14541 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14542 (eval $ac_try) 2>&5
14543 ac_status=$?
14544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14545 (exit $ac_status); }; } &&
14546 { ac_try='test -s conftest.$ac_objext'
14547 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14548 (eval $ac_try) 2>&5
14549 ac_status=$?
14550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14551 (exit $ac_status); }; }; then
0093c2fc 14552 bakefile_cv_cxx_compiler___DECCXX=yes
a1aa0349
VZ
14553else
14554 echo "$as_me: failed program was:" >&5
14555sed 's/^/| /' conftest.$ac_ext >&5
14556
0093c2fc 14557bakefile_cv_cxx_compiler___DECCXX=no
a1aa0349
VZ
14558
14559fi
14560rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14561
14562
14563fi
0093c2fc
VZ
14564echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___DECCXX" >&5
14565echo "${ECHO_T}$bakefile_cv_cxx_compiler___DECCXX" >&6
a1aa0349
VZ
14566 ac_ext=cc
14567ac_cpp='$CXXCPP $CPPFLAGS'
14568ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14569ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14570ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14571
0093c2fc
VZ
14572 if test "x$bakefile_cv_cxx_compiler___DECCXX" = "xyes"; then
14573 :; COMPAQCXX=yes
14574 else
14575 :;
14576 fi
14577
14578
14579 ;;
14580
14581 SunOS)
14582
14583
14584 ac_ext=cc
14585ac_cpp='$CXXCPP $CPPFLAGS'
14586ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14587ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14588ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14589
14590 echo "$as_me:$LINENO: checking whether we are using the Sun C++ compiler" >&5
14591echo $ECHO_N "checking whether we are using the Sun C++ compiler... $ECHO_C" >&6
14592if test "${bakefile_cv_cxx_compiler___SUNPRO_CC+set}" = set; then
14593 echo $ECHO_N "(cached) $ECHO_C" >&6
14594else
14595 cat >conftest.$ac_ext <<_ACEOF
14596/* confdefs.h. */
14597_ACEOF
14598cat confdefs.h >>conftest.$ac_ext
14599cat >>conftest.$ac_ext <<_ACEOF
14600/* end confdefs.h. */
14601
14602int
14603main ()
14604{
14605
14606 #ifndef __SUNPRO_CC
14607 choke me
14608 #endif
14609
14610 ;
14611 return 0;
14612}
14613_ACEOF
14614rm -f conftest.$ac_objext
14615if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14616 (eval $ac_compile) 2>conftest.er1
14617 ac_status=$?
14618 grep -v '^ *+' conftest.er1 >conftest.err
14619 rm -f conftest.er1
14620 cat conftest.err >&5
14621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14622 (exit $ac_status); } &&
3f60522a
JS
14623 { ac_try='test -z "$ac_cxx_werror_flag"
14624 || test ! -s conftest.err'
0093c2fc
VZ
14625 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14626 (eval $ac_try) 2>&5
14627 ac_status=$?
14628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14629 (exit $ac_status); }; } &&
14630 { ac_try='test -s conftest.$ac_objext'
14631 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14632 (eval $ac_try) 2>&5
14633 ac_status=$?
14634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14635 (exit $ac_status); }; }; then
14636 bakefile_cv_cxx_compiler___SUNPRO_CC=yes
14637else
14638 echo "$as_me: failed program was:" >&5
14639sed 's/^/| /' conftest.$ac_ext >&5
14640
14641bakefile_cv_cxx_compiler___SUNPRO_CC=no
14642
14643fi
14644rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14645
14646
14647fi
14648echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___SUNPRO_CC" >&5
14649echo "${ECHO_T}$bakefile_cv_cxx_compiler___SUNPRO_CC" >&6
14650 ac_ext=cc
14651ac_cpp='$CXXCPP $CPPFLAGS'
14652ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14653ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14654ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14655
14656 if test "x$bakefile_cv_cxx_compiler___SUNPRO_CC" = "xyes"; then
14657 :; SUNCXX=yes
3006edc0
VZ
14658 else
14659 :;
ab0ad5f1 14660 fi
a9e5b1f0
MW
14661
14662
3006edc0
VZ
14663 ;;
14664 esac
14665 fi
14666
14667
14668
a848cd7e
SC
14669if test -n "$ac_tool_prefix"; then
14670 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
14671set dummy ${ac_tool_prefix}ranlib; ac_word=$2
14672echo "$as_me:$LINENO: checking for $ac_word" >&5
14673echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14674if test "${ac_cv_prog_RANLIB+set}" = set; then
14675 echo $ECHO_N "(cached) $ECHO_C" >&6
14676else
14677 if test -n "$RANLIB"; then
14678 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
14679else
14680as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14681for as_dir in $PATH
14682do
14683 IFS=$as_save_IFS
14684 test -z "$as_dir" && as_dir=.
14685 for ac_exec_ext in '' $ac_executable_extensions; do
14686 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14687 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
14688 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14689 break 2
14690 fi
14691done
14692done
14693
14694fi
14695fi
14696RANLIB=$ac_cv_prog_RANLIB
14697if test -n "$RANLIB"; then
14698 echo "$as_me:$LINENO: result: $RANLIB" >&5
14699echo "${ECHO_T}$RANLIB" >&6
14700else
14701 echo "$as_me:$LINENO: result: no" >&5
14702echo "${ECHO_T}no" >&6
14703fi
14704
14705fi
14706if test -z "$ac_cv_prog_RANLIB"; then
14707 ac_ct_RANLIB=$RANLIB
14708 # Extract the first word of "ranlib", so it can be a program name with args.
14709set dummy ranlib; ac_word=$2
14710echo "$as_me:$LINENO: checking for $ac_word" >&5
14711echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14712if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
14713 echo $ECHO_N "(cached) $ECHO_C" >&6
14714else
14715 if test -n "$ac_ct_RANLIB"; then
14716 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
14717else
14718as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14719for as_dir in $PATH
14720do
14721 IFS=$as_save_IFS
14722 test -z "$as_dir" && as_dir=.
14723 for ac_exec_ext in '' $ac_executable_extensions; do
14724 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14725 ac_cv_prog_ac_ct_RANLIB="ranlib"
14726 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14727 break 2
14728 fi
14729done
14730done
14731
14732 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
14733fi
14734fi
14735ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
14736if test -n "$ac_ct_RANLIB"; then
14737 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
14738echo "${ECHO_T}$ac_ct_RANLIB" >&6
14739else
14740 echo "$as_me:$LINENO: result: no" >&5
14741echo "${ECHO_T}no" >&6
14742fi
14743
14744 RANLIB=$ac_ct_RANLIB
14745else
14746 RANLIB="$ac_cv_prog_RANLIB"
14747fi
14748
14749
8c80d384
DE
14750if test -n "$ac_tool_prefix"; then
14751 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
14752set dummy ${ac_tool_prefix}ar; ac_word=$2
a848cd7e
SC
14753echo "$as_me:$LINENO: checking for $ac_word" >&5
14754echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14755if test "${ac_cv_prog_AR+set}" = set; then
14756 echo $ECHO_N "(cached) $ECHO_C" >&6
14757else
14758 if test -n "$AR"; then
14759 ac_cv_prog_AR="$AR" # Let the user override the test.
14760else
14761as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14762for as_dir in $PATH
14763do
14764 IFS=$as_save_IFS
14765 test -z "$as_dir" && as_dir=.
14766 for ac_exec_ext in '' $ac_executable_extensions; do
14767 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8c80d384 14768 ac_cv_prog_AR="${ac_tool_prefix}ar"
a848cd7e
SC
14769 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14770 break 2
14771 fi
14772done
14773done
14774
14775fi
14776fi
14777AR=$ac_cv_prog_AR
14778if test -n "$AR"; then
14779 echo "$as_me:$LINENO: result: $AR" >&5
14780echo "${ECHO_T}$AR" >&6
14781else
14782 echo "$as_me:$LINENO: result: no" >&5
14783echo "${ECHO_T}no" >&6
14784fi
14785
8c80d384
DE
14786fi
14787if test -z "$ac_cv_prog_AR"; then
14788 ac_ct_AR=$AR
14789 # Extract the first word of "ar", so it can be a program name with args.
14790set dummy ar; ac_word=$2
14791echo "$as_me:$LINENO: checking for $ac_word" >&5
14792echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14793if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
14794 echo $ECHO_N "(cached) $ECHO_C" >&6
14795else
14796 if test -n "$ac_ct_AR"; then
14797 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
14798else
14799as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14800for as_dir in $PATH
14801do
14802 IFS=$as_save_IFS
14803 test -z "$as_dir" && as_dir=.
14804 for ac_exec_ext in '' $ac_executable_extensions; do
14805 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14806 ac_cv_prog_ac_ct_AR="ar"
14807 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14808 break 2
14809 fi
14810done
14811done
14812
14813fi
14814fi
14815ac_ct_AR=$ac_cv_prog_ac_ct_AR
14816if test -n "$ac_ct_AR"; then
14817 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
14818echo "${ECHO_T}$ac_ct_AR" >&6
14819else
14820 echo "$as_me:$LINENO: result: no" >&5
14821echo "${ECHO_T}no" >&6
14822fi
14823
14824 AR=$ac_ct_AR
14825else
14826 AR="$ac_cv_prog_AR"
14827fi
14828
a848cd7e 14829if test "x$AR" = "x" ; then
77ffb593
JS
14830 { { echo "$as_me:$LINENO: error: ar is needed to build wxWidgets" >&5
14831echo "$as_me: error: ar is needed to build wxWidgets" >&2;}
a848cd7e
SC
14832 { (exit 1); exit 1; }; }
14833fi
14834
14835# Find a good install program. We prefer a C program (faster),
14836# so one script is as good as another. But avoid the broken or
14837# incompatible versions:
14838# SysV /etc/install, /usr/sbin/install
14839# SunOS /usr/etc/install
14840# IRIX /sbin/install
14841# AIX /bin/install
14842# AmigaOS /C/install, which installs bootblocks on floppy discs
14843# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
14844# AFS /usr/afsws/bin/install, which mishandles nonexistent args
14845# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
ac1cb8d3 14846# OS/2's system install, which has a completely different semantic
a848cd7e
SC
14847# ./install, which can be erroneously created by make from ./install.sh.
14848echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
14849echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
14850if test -z "$INSTALL"; then
14851if test "${ac_cv_path_install+set}" = set; then
14852 echo $ECHO_N "(cached) $ECHO_C" >&6
14853else
14854 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14855for as_dir in $PATH
14856do
14857 IFS=$as_save_IFS
14858 test -z "$as_dir" && as_dir=.
14859 # Account for people who put trailing slashes in PATH elements.
14860case $as_dir/ in
14861 ./ | .// | /cC/* | \
14862 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
ac1cb8d3 14863 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
a848cd7e
SC
14864 /usr/ucb/* ) ;;
14865 *)
14866 # OSF1 and SCO ODT 3.0 have their own names for install.
14867 # Don't use installbsd from OSF since it installs stuff as root
14868 # by default.
14869 for ac_prog in ginstall scoinst install; do
14870 for ac_exec_ext in '' $ac_executable_extensions; do
ac1cb8d3
VS
14871 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
14872 if test $ac_prog = install &&
14873 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
14874 # AIX install. It has an incompatible calling convention.
14875 :
14876 elif test $ac_prog = install &&
14877 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
14878 # program-specific install script used by HP pwplus--don't use.
14879 :
14880 else
14881 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
14882 break 3
14883 fi
14884 fi
a848cd7e
SC
14885 done
14886 done
14887 ;;
14888esac
14889done
14890
14891
14892fi
14893 if test "${ac_cv_path_install+set}" = set; then
14894 INSTALL=$ac_cv_path_install
14895 else
14896 # As a last resort, use the slow shell script. We don't cache a
14897 # path for INSTALL within a source directory, because that will
14898 # break other packages using the cache if that directory is
14899 # removed, or if the path is relative.
14900 INSTALL=$ac_install_sh
14901 fi
14902fi
14903echo "$as_me:$LINENO: result: $INSTALL" >&5
14904echo "${ECHO_T}$INSTALL" >&6
14905
14906# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
14907# It thinks the first close brace ends the variable substitution.
14908test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
14909
14910test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
14911
14912test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
14913
14914
14915case ${INSTALL} in
14916 /* ) # Absolute
14917 ;;
14918 ?:* ) # Drive letter, considered as absolute.
14919 ;;
14920 *)
14921 INSTALL=`pwd`/${INSTALL} ;;
14922esac
14923
a848cd7e
SC
14924
14925case "${host}" in
14926
cfda0ea8 14927 *-*-darwin* )
a848cd7e
SC
14928 INSTALL_PROGRAM="cp -fp"
14929 INSTALL_DATA="cp -fp"
14930 ;;
14931 *)
14932 ;;
14933esac
14934
8c80d384
DE
14935if test -n "$ac_tool_prefix"; then
14936 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
14937set dummy ${ac_tool_prefix}strip; ac_word=$2
a848cd7e
SC
14938echo "$as_me:$LINENO: checking for $ac_word" >&5
14939echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14940if test "${ac_cv_prog_STRIP+set}" = set; then
14941 echo $ECHO_N "(cached) $ECHO_C" >&6
14942else
14943 if test -n "$STRIP"; then
14944 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
14945else
14946as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14947for as_dir in $PATH
14948do
14949 IFS=$as_save_IFS
14950 test -z "$as_dir" && as_dir=.
14951 for ac_exec_ext in '' $ac_executable_extensions; do
14952 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8c80d384 14953 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
a848cd7e
SC
14954 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14955 break 2
14956 fi
14957done
14958done
14959
a848cd7e
SC
14960fi
14961fi
14962STRIP=$ac_cv_prog_STRIP
14963if test -n "$STRIP"; then
14964 echo "$as_me:$LINENO: result: $STRIP" >&5
14965echo "${ECHO_T}$STRIP" >&6
14966else
14967 echo "$as_me:$LINENO: result: no" >&5
14968echo "${ECHO_T}no" >&6
14969fi
14970
8c80d384
DE
14971fi
14972if test -z "$ac_cv_prog_STRIP"; then
14973 ac_ct_STRIP=$STRIP
14974 # Extract the first word of "strip", so it can be a program name with args.
14975set dummy strip; ac_word=$2
14976echo "$as_me:$LINENO: checking for $ac_word" >&5
14977echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14978if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
14979 echo $ECHO_N "(cached) $ECHO_C" >&6
14980else
14981 if test -n "$ac_ct_STRIP"; then
14982 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
14983else
14984as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14985for as_dir in $PATH
14986do
14987 IFS=$as_save_IFS
14988 test -z "$as_dir" && as_dir=.
14989 for ac_exec_ext in '' $ac_executable_extensions; do
14990 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14991 ac_cv_prog_ac_ct_STRIP="strip"
14992 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14993 break 2
14994 fi
14995done
14996done
14997
14998 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP="true"
14999fi
15000fi
15001ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
15002if test -n "$ac_ct_STRIP"; then
15003 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
15004echo "${ECHO_T}$ac_ct_STRIP" >&6
15005else
15006 echo "$as_me:$LINENO: result: no" >&5
15007echo "${ECHO_T}no" >&6
15008fi
15009
15010 STRIP=$ac_ct_STRIP
15011else
15012 STRIP="$ac_cv_prog_STRIP"
15013fi
15014
15015
15016if test "$wxUSE_WINE" = "yes"; then
15017 if test -n "$ac_tool_prefix"; then
15018 # Extract the first word of "${ac_tool_prefix}wrc", so it can be a program name with args.
15019set dummy ${ac_tool_prefix}wrc; ac_word=$2
15020echo "$as_me:$LINENO: checking for $ac_word" >&5
15021echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8ced02f6 15022if test "${ac_cv_prog_WINDRES+set}" = set; then
8c80d384
DE
15023 echo $ECHO_N "(cached) $ECHO_C" >&6
15024else
8ced02f6
DE
15025 if test -n "$WINDRES"; then
15026 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
8c80d384
DE
15027else
15028as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15029for as_dir in $PATH
15030do
15031 IFS=$as_save_IFS
15032 test -z "$as_dir" && as_dir=.
15033 for ac_exec_ext in '' $ac_executable_extensions; do
15034 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8ced02f6 15035 ac_cv_prog_WINDRES="${ac_tool_prefix}wrc"
8c80d384
DE
15036 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15037 break 2
15038 fi
15039done
15040done
15041
15042fi
15043fi
8ced02f6
DE
15044WINDRES=$ac_cv_prog_WINDRES
15045if test -n "$WINDRES"; then
15046 echo "$as_me:$LINENO: result: $WINDRES" >&5
15047echo "${ECHO_T}$WINDRES" >&6
8c80d384
DE
15048else
15049 echo "$as_me:$LINENO: result: no" >&5
15050echo "${ECHO_T}no" >&6
15051fi
15052
15053fi
8ced02f6
DE
15054if test -z "$ac_cv_prog_WINDRES"; then
15055 ac_ct_WINDRES=$WINDRES
8c80d384
DE
15056 # Extract the first word of "wrc", so it can be a program name with args.
15057set dummy wrc; ac_word=$2
15058echo "$as_me:$LINENO: checking for $ac_word" >&5
15059echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8ced02f6 15060if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then
8c80d384
DE
15061 echo $ECHO_N "(cached) $ECHO_C" >&6
15062else
8ced02f6
DE
15063 if test -n "$ac_ct_WINDRES"; then
15064 ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
8c80d384
DE
15065else
15066as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15067for as_dir in $PATH
15068do
15069 IFS=$as_save_IFS
15070 test -z "$as_dir" && as_dir=.
15071 for ac_exec_ext in '' $ac_executable_extensions; do
15072 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8ced02f6 15073 ac_cv_prog_ac_ct_WINDRES="wrc"
8c80d384
DE
15074 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15075 break 2
15076 fi
15077done
15078done
15079
15080fi
15081fi
8ced02f6
DE
15082ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
15083if test -n "$ac_ct_WINDRES"; then
15084 echo "$as_me:$LINENO: result: $ac_ct_WINDRES" >&5
15085echo "${ECHO_T}$ac_ct_WINDRES" >&6
8c80d384
DE
15086else
15087 echo "$as_me:$LINENO: result: no" >&5
15088echo "${ECHO_T}no" >&6
15089fi
15090
8ced02f6 15091 WINDRES=$ac_ct_WINDRES
8c80d384 15092else
8ced02f6 15093 WINDRES="$ac_cv_prog_WINDRES"
8c80d384
DE
15094fi
15095
004ee6da 15096 RESCOMP="$WINDRES"
8c80d384
DE
15097else
15098 case "${host}" in
15099 *-*-cygwin* | *-*-mingw32* )
004ee6da
RL
15100 if test -n "$ac_tool_prefix"; then
15101 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
15102set dummy ${ac_tool_prefix}windres; ac_word=$2
15103echo "$as_me:$LINENO: checking for $ac_word" >&5
15104echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15105if test "${ac_cv_prog_WINDRES+set}" = set; then
15106 echo $ECHO_N "(cached) $ECHO_C" >&6
15107else
15108 if test -n "$WINDRES"; then
15109 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
15110else
15111as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15112for as_dir in $PATH
15113do
15114 IFS=$as_save_IFS
15115 test -z "$as_dir" && as_dir=.
15116 for ac_exec_ext in '' $ac_executable_extensions; do
15117 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15118 ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
15119 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15120 break 2
15121 fi
15122done
15123done
15124
15125fi
15126fi
15127WINDRES=$ac_cv_prog_WINDRES
15128if test -n "$WINDRES"; then
15129 echo "$as_me:$LINENO: result: $WINDRES" >&5
15130echo "${ECHO_T}$WINDRES" >&6
15131else
15132 echo "$as_me:$LINENO: result: no" >&5
15133echo "${ECHO_T}no" >&6
15134fi
15135
15136fi
15137if test -z "$ac_cv_prog_WINDRES"; then
15138 ac_ct_WINDRES=$WINDRES
15139 # Extract the first word of "windres", so it can be a program name with args.
15140set dummy windres; ac_word=$2
15141echo "$as_me:$LINENO: checking for $ac_word" >&5
15142echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15143if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then
15144 echo $ECHO_N "(cached) $ECHO_C" >&6
15145else
15146 if test -n "$ac_ct_WINDRES"; then
15147 ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
15148else
15149as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15150for as_dir in $PATH
15151do
15152 IFS=$as_save_IFS
15153 test -z "$as_dir" && as_dir=.
15154 for ac_exec_ext in '' $ac_executable_extensions; do
15155 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15156 ac_cv_prog_ac_ct_WINDRES="windres"
15157 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15158 break 2
15159 fi
15160done
15161done
15162
15163fi
15164fi
15165ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
15166if test -n "$ac_ct_WINDRES"; then
15167 echo "$as_me:$LINENO: result: $ac_ct_WINDRES" >&5
15168echo "${ECHO_T}$ac_ct_WINDRES" >&6
15169else
15170 echo "$as_me:$LINENO: result: no" >&5
15171echo "${ECHO_T}no" >&6
15172fi
15173
15174 WINDRES=$ac_ct_WINDRES
15175else
15176 WINDRES="$ac_cv_prog_WINDRES"
15177fi
15178
15179 RESCOMP="$WINDRES"
15180 if test -n "$ac_tool_prefix"; then
8c80d384
DE
15181 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
15182set dummy ${ac_tool_prefix}dlltool; ac_word=$2
15183echo "$as_me:$LINENO: checking for $ac_word" >&5
15184echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15185if test "${ac_cv_prog_DLLTOOL+set}" = set; then
15186 echo $ECHO_N "(cached) $ECHO_C" >&6
15187else
15188 if test -n "$DLLTOOL"; then
15189 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
15190else
15191as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15192for as_dir in $PATH
15193do
15194 IFS=$as_save_IFS
15195 test -z "$as_dir" && as_dir=.
15196 for ac_exec_ext in '' $ac_executable_extensions; do
15197 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15198 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
15199 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15200 break 2
15201 fi
15202done
15203done
15204
15205fi
15206fi
15207DLLTOOL=$ac_cv_prog_DLLTOOL
15208if test -n "$DLLTOOL"; then
15209 echo "$as_me:$LINENO: result: $DLLTOOL" >&5
15210echo "${ECHO_T}$DLLTOOL" >&6
15211else
15212 echo "$as_me:$LINENO: result: no" >&5
15213echo "${ECHO_T}no" >&6
15214fi
15215
15216fi
15217if test -z "$ac_cv_prog_DLLTOOL"; then
15218 ac_ct_DLLTOOL=$DLLTOOL
15219 # Extract the first word of "dlltool", so it can be a program name with args.
15220set dummy dlltool; ac_word=$2
15221echo "$as_me:$LINENO: checking for $ac_word" >&5
15222echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15223if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
15224 echo $ECHO_N "(cached) $ECHO_C" >&6
15225else
15226 if test -n "$ac_ct_DLLTOOL"; then
15227 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
15228else
15229as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15230for as_dir in $PATH
15231do
15232 IFS=$as_save_IFS
15233 test -z "$as_dir" && as_dir=.
15234 for ac_exec_ext in '' $ac_executable_extensions; do
15235 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15236 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
15237 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15238 break 2
15239 fi
15240done
15241done
15242
15243fi
15244fi
15245ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
15246if test -n "$ac_ct_DLLTOOL"; then
15247 echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
15248echo "${ECHO_T}$ac_ct_DLLTOOL" >&6
15249else
15250 echo "$as_me:$LINENO: result: no" >&5
15251echo "${ECHO_T}no" >&6
15252fi
15253
15254 DLLTOOL=$ac_ct_DLLTOOL
15255else
15256 DLLTOOL="$ac_cv_prog_DLLTOOL"
15257fi
15258
15259 ;;
15260 esac
15261fi
a848cd7e
SC
15262
15263echo "$as_me:$LINENO: checking if make is GNU make" >&5
15264echo $ECHO_N "checking if make is GNU make... $ECHO_C" >&6
15265if test "${wx_cv_prog_makeisgnu+set}" = set; then
15266 echo $ECHO_N "(cached) $ECHO_C" >&6
15267else
15268
15269 if ( ${SHELL-sh} -c "${MAKE-make} --version" 2> /dev/null |
15270 egrep -s GNU > /dev/null); then
15271 wx_cv_prog_makeisgnu="yes"
15272 else
15273 wx_cv_prog_makeisgnu="no"
15274 fi
15275
15276fi
15277echo "$as_me:$LINENO: result: $wx_cv_prog_makeisgnu" >&5
15278echo "${ECHO_T}$wx_cv_prog_makeisgnu" >&6
15279
15280if test "x$wx_cv_prog_makeisgnu" = "xyes"; then
15281 IF_GNU_MAKE=""
15282else
15283 IF_GNU_MAKE="#"
15284fi
15285
15286
15287
15288if test "x$wx_cv_prog_makeisgnu" != "xyes"; then
15289echo "$as_me:$LINENO: checking if make supports VPATH" >&5
15290echo $ECHO_N "checking if make supports VPATH... $ECHO_C" >&6
15291if test "${wx_cv_prog_makevpath+set}" = set; then
15292 echo $ECHO_N "(cached) $ECHO_C" >&6
15293else
15294
15295cat - << EOF > confMake
15296check : file
15297 cp \$? \$@
15298 cp \$? final_file
15299EOF
15300
15301if test ! -d sub ; then
15302 mkdir sub
15303fi
15304echo dummy > sub/file
15305${MAKE-make} -f confMake VPATH=sub 2>&5 > /dev/null
15306RESULT=$?
15307rm -f sub/file check final_file confMake
15308rmdir sub
15309if test "$RESULT" = 0; then
15310 wx_cv_prog_makevpath="yes"
15311else
15312 wx_cv_prog_makevpath="no"
15313fi
15314
15315fi
15316echo "$as_me:$LINENO: result: $wx_cv_prog_makevpath" >&5
15317echo "${ECHO_T}$wx_cv_prog_makevpath" >&6
15318
15319if test "x$wx_cv_prog_makevpath" != "xyes"; then
15320{ { echo "$as_me:$LINENO: error:
15321You need a make-utility that is able to use the variable
15322VPATH correctly.
15323If your version of make does not support VPATH correctly,
15324please install GNU-make (possibly as gmake), and start
15325configure with the following command:
15326export MAKE=gmake; ./configure for sh-type shells
15327setenv MAKE gmake; ./configure for csh-type shells
15328Also please do remember to use gmake in this case every time
15329you are trying to compile.
15330" >&5
15331echo "$as_me: error:
15332You need a make-utility that is able to use the variable
15333VPATH correctly.
15334If your version of make does not support VPATH correctly,
15335please install GNU-make (possibly as gmake), and start
15336configure with the following command:
15337export MAKE=gmake; ./configure for sh-type shells
15338setenv MAKE gmake; ./configure for csh-type shells
15339Also please do remember to use gmake in this case every time
15340you are trying to compile.
15341" >&2;}
15342 { (exit 1); exit 1; }; }
15343fi fi
15344echo "$as_me:$LINENO: checking whether ln -s works" >&5
15345echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
15346LN_S=$as_ln_s
15347if test "$LN_S" = "ln -s"; then
15348 echo "$as_me:$LINENO: result: yes" >&5
15349echo "${ECHO_T}yes" >&6
15350else
15351 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
15352echo "${ECHO_T}no, using $LN_S" >&6
15353fi
15354
15355
bcaab0f9 15356
a848cd7e 15357
2113bc77 15358if test "x$XLCXX" = "xyes" -a "x$USE_AIX" = "x1"; then
c92ad099 15359 CXXFLAGS="-qunique $CXXFLAGS"
9273ffba
DE
15360fi
15361
4d7ec9f1
DE
15362case "${host}" in
15363 powerpc-*-darwin* )
15364 echo "$as_me:$LINENO: checking if __POWERPC__ is already defined" >&5
15365echo $ECHO_N "checking if __POWERPC__ is already defined... $ECHO_C" >&6
15366 cat >conftest.$ac_ext <<_ACEOF
15367/* confdefs.h. */
15368_ACEOF
15369cat confdefs.h >>conftest.$ac_ext
15370cat >>conftest.$ac_ext <<_ACEOF
15371/* end confdefs.h. */
15372
15373int
15374main ()
15375{
15376#ifndef __POWERPC__
15377 choke me for lack of PowerPC
15378#endif
15379
15380 ;
15381 return 0;
15382}
15383_ACEOF
15384rm -f conftest.$ac_objext
15385if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15386 (eval $ac_compile) 2>conftest.er1
15387 ac_status=$?
15388 grep -v '^ *+' conftest.er1 >conftest.err
15389 rm -f conftest.er1
15390 cat conftest.err >&5
15391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15392 (exit $ac_status); } &&
3f60522a
JS
15393 { ac_try='test -z "$ac_cxx_werror_flag"
15394 || test ! -s conftest.err'
4d7ec9f1
DE
15395 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15396 (eval $ac_try) 2>&5
15397 ac_status=$?
15398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15399 (exit $ac_status); }; } &&
15400 { ac_try='test -s conftest.$ac_objext'
15401 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15402 (eval $ac_try) 2>&5
15403 ac_status=$?
15404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15405 (exit $ac_status); }; }; then
15406 echo "$as_me:$LINENO: result: yes" >&5
15407echo "${ECHO_T}yes" >&6
15408else
15409 echo "$as_me: failed program was:" >&5
15410sed 's/^/| /' conftest.$ac_ext >&5
15411
15412echo "$as_me:$LINENO: result: no" >&5
15413echo "${ECHO_T}no" >&6
15414 cat >>confdefs.h <<\_ACEOF
15415#define __POWERPC__ 1
15416_ACEOF
15417
15418
15419fi
15420rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
cfda0ea8
DE
15421 ;;
15422esac
15423
15424case "${host}" in
15425 *-*-darwin* )
4d7ec9f1
DE
15426 echo "$as_me:$LINENO: checking if CoreFoundation/CFBase.h is usable" >&5
15427echo $ECHO_N "checking if CoreFoundation/CFBase.h is usable... $ECHO_C" >&6
15428 cat >conftest.$ac_ext <<_ACEOF
15429/* confdefs.h. */
15430_ACEOF
15431cat confdefs.h >>conftest.$ac_ext
15432cat >>conftest.$ac_ext <<_ACEOF
15433/* end confdefs.h. */
15434#include <CoreFoundation/CFBase.h>
15435
15436int
15437main ()
15438{
15439
15440 ;
15441 return 0;
15442}
15443_ACEOF
15444rm -f conftest.$ac_objext
15445if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15446 (eval $ac_compile) 2>conftest.er1
15447 ac_status=$?
15448 grep -v '^ *+' conftest.er1 >conftest.err
15449 rm -f conftest.er1
15450 cat conftest.err >&5
15451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15452 (exit $ac_status); } &&
3f60522a
JS
15453 { ac_try='test -z "$ac_cxx_werror_flag"
15454 || test ! -s conftest.err'
4d7ec9f1
DE
15455 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15456 (eval $ac_try) 2>&5
15457 ac_status=$?
15458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15459 (exit $ac_status); }; } &&
15460 { ac_try='test -s conftest.$ac_objext'
15461 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15462 (eval $ac_try) 2>&5
15463 ac_status=$?
15464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15465 (exit $ac_status); }; }; then
15466 echo "$as_me:$LINENO: result: yes" >&5
15467echo "${ECHO_T}yes" >&6
15468else
15469 echo "$as_me: failed program was:" >&5
15470sed 's/^/| /' conftest.$ac_ext >&5
15471
15472echo "$as_me:$LINENO: result: no" >&5
15473echo "${ECHO_T}no" >&6
15474 echo "$as_me:$LINENO: checking if __CF_USE_FRAMEWORK_INCLUDES__ is required" >&5
15475echo $ECHO_N "checking if __CF_USE_FRAMEWORK_INCLUDES__ is required... $ECHO_C" >&6
15476 cat >conftest.$ac_ext <<_ACEOF
15477/* confdefs.h. */
15478_ACEOF
15479cat confdefs.h >>conftest.$ac_ext
15480cat >>conftest.$ac_ext <<_ACEOF
15481/* end confdefs.h. */
15482#define __CF_USE_FRAMEWORK_INCLUDES__
15483#include <CoreFoundation/CFBase.h>
15484
15485int
15486main ()
15487{
15488
15489 ;
15490 return 0;
15491}
15492_ACEOF
15493rm -f conftest.$ac_objext
15494if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15495 (eval $ac_compile) 2>conftest.er1
15496 ac_status=$?
15497 grep -v '^ *+' conftest.er1 >conftest.err
15498 rm -f conftest.er1
15499 cat conftest.err >&5
15500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15501 (exit $ac_status); } &&
3f60522a
JS
15502 { ac_try='test -z "$ac_cxx_werror_flag"
15503 || test ! -s conftest.err'
4d7ec9f1
DE
15504 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15505 (eval $ac_try) 2>&5
15506 ac_status=$?
15507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15508 (exit $ac_status); }; } &&
15509 { ac_try='test -s conftest.$ac_objext'
15510 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15511 (eval $ac_try) 2>&5
15512 ac_status=$?
15513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15514 (exit $ac_status); }; }; then
15515 echo "$as_me:$LINENO: result: yes" >&5
15516echo "${ECHO_T}yes" >&6
c92ad099 15517 CPPFLAGS="-D__CF_USE_FRAMEWORK_INCLUDES__ $CPPFLAGS"
4d7ec9f1
DE
15518else
15519 echo "$as_me: failed program was:" >&5
15520sed 's/^/| /' conftest.$ac_ext >&5
15521
15522{ { echo "$as_me:$LINENO: error: no. CoreFoundation not available.
15523See \`config.log' for more details." >&5
15524echo "$as_me: error: no. CoreFoundation not available.
15525See \`config.log' for more details." >&2;}
15526 { (exit 1); exit 1; }; }
15527
15528fi
15529rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15530
15531
15532fi
15533rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15534 ;;
15535esac
15536
a848cd7e
SC
15537case "${host}" in
15538 *-pc-os2_emx | *-pc-os2-emx )
6ba87b06
SN
15539 ac_ext=c
15540ac_cpp='$CPP $CPPFLAGS'
15541ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15542ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15543ac_compiler_gnu=$ac_cv_c_compiler_gnu
15544
15545 if test "$wxUSE_MOTIF" = 1 -o "$wxUSE_GTK" = 1 -o "$wxUSE_X11" = 1; then
a848cd7e
SC
15546 echo "$as_me:$LINENO: checking for drand48 in -lcExt" >&5
15547echo $ECHO_N "checking for drand48 in -lcExt... $ECHO_C" >&6
15548if test "${ac_cv_lib_cExt_drand48+set}" = set; then
15549 echo $ECHO_N "(cached) $ECHO_C" >&6
15550else
15551 ac_check_lib_save_LIBS=$LIBS
15552LIBS="-lcExt $LIBS"
15553cat >conftest.$ac_ext <<_ACEOF
15554/* confdefs.h. */
15555_ACEOF
15556cat confdefs.h >>conftest.$ac_ext
15557cat >>conftest.$ac_ext <<_ACEOF
15558/* end confdefs.h. */
15559
15560/* Override any gcc2 internal prototype to avoid an error. */
15561#ifdef __cplusplus
15562extern "C"
15563#endif
15564/* We use char because int might match the return type of a gcc2
15565 builtin and then its argument prototype would still apply. */
15566char drand48 ();
15567int
15568main ()
15569{
15570drand48 ();
15571 ;
15572 return 0;
15573}
15574_ACEOF
15575rm -f conftest.$ac_objext conftest$ac_exeext
15576if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 15577 (eval $ac_link) 2>conftest.er1
a848cd7e 15578 ac_status=$?
ac1cb8d3
VS
15579 grep -v '^ *+' conftest.er1 >conftest.err
15580 rm -f conftest.er1
15581 cat conftest.err >&5
a848cd7e
SC
15582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15583 (exit $ac_status); } &&
3f60522a
JS
15584 { ac_try='test -z "$ac_c_werror_flag"
15585 || test ! -s conftest.err'
ac1cb8d3
VS
15586 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15587 (eval $ac_try) 2>&5
15588 ac_status=$?
15589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15590 (exit $ac_status); }; } &&
15591 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
15592 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15593 (eval $ac_try) 2>&5
15594 ac_status=$?
15595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15596 (exit $ac_status); }; }; then
15597 ac_cv_lib_cExt_drand48=yes
15598else
15599 echo "$as_me: failed program was:" >&5
15600sed 's/^/| /' conftest.$ac_ext >&5
15601
15602ac_cv_lib_cExt_drand48=no
15603fi
ac1cb8d3
VS
15604rm -f conftest.err conftest.$ac_objext \
15605 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
15606LIBS=$ac_check_lib_save_LIBS
15607fi
15608echo "$as_me:$LINENO: result: $ac_cv_lib_cExt_drand48" >&5
15609echo "${ECHO_T}$ac_cv_lib_cExt_drand48" >&6
15610if test $ac_cv_lib_cExt_drand48 = yes; then
15611 LIBS="$LIBS -lcExt"
15612fi
15613
15614 else
15615 RESPROGRAMOBJ="\${top_srcdir}/include/wx/os2/wx.res"
15616 fi
69120ee4
VZ
15617 echo "$as_me:$LINENO: checking for gcc/libc version" >&5
15618echo $ECHO_N "checking for gcc/libc version... $ECHO_C" >&6
a848cd7e
SC
15619if test "${wx_cv_gccversion+set}" = set; then
15620 echo $ECHO_N "(cached) $ECHO_C" >&6
15621else
15622
391a765e
VS
15623 if test "$cross_compiling" = yes; then
15624 wx_cv_gccversion="EMX2"
15625
15626else
15627 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
15628/* confdefs.h. */
15629_ACEOF
15630cat confdefs.h >>conftest.$ac_ext
15631cat >>conftest.$ac_ext <<_ACEOF
15632/* end confdefs.h. */
15633
391a765e 15634 #include <stdio.h>
a848cd7e 15635
391a765e
VS
15636 int main()
15637 {
15638 FILE *f=fopen("conftestval", "w");
15639 if (!f) exit(1);
15640 fprintf(f,
a848cd7e 15641 #if (__GNUC__ < 3)
391a765e
VS
15642 "EMX2"
15643 #elif (__GNUC__==3) && ((__GNUC_MINOR__ < 2) || ((__GNUC_MINOR__==2) && (__GNUC_PATCHLEVEL__<2)))
15644 "EMX3"
15645 #elif (__GNUC__==3) && (__GNUC_MINOR__==2) && (__GNUC_PATCHLEVEL__==2)
15646 "Innotek5"
15647 #else
15648 "Innotek6"
a848cd7e 15649 #endif
391a765e
VS
15650 );
15651 exit(0);
15652 }
a848cd7e 15653
a848cd7e 15654_ACEOF
391a765e
VS
15655rm -f conftest$ac_exeext
15656if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15657 (eval $ac_link) 2>&5
ac1cb8d3
VS
15658 ac_status=$?
15659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
391a765e 15660 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
a848cd7e
SC
15661 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15662 (eval $ac_try) 2>&5
15663 ac_status=$?
15664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15665 (exit $ac_status); }; }; then
391a765e 15666 wx_cv_gccversion=`cat conftestval`
a848cd7e 15667else
391a765e
VS
15668 echo "$as_me: program exited with status $ac_status" >&5
15669echo "$as_me: failed program was:" >&5
a848cd7e
SC
15670sed 's/^/| /' conftest.$ac_ext >&5
15671
391a765e
VS
15672( exit $ac_status )
15673wx_cv_gccversion="EMX2"
a848cd7e 15674fi
391a765e 15675rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e 15676fi
a848cd7e
SC
15677
15678fi
15679echo "$as_me:$LINENO: result: $wx_cv_gccversion" >&5
15680echo "${ECHO_T}$wx_cv_gccversion" >&6
6ba87b06
SN
15681 ac_ext=cc
15682ac_cpp='$CXXCPP $CPPFLAGS'
15683ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15684ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15685ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15686
391a765e 15687 if test "$wx_cv_gccversion" = "EMX2"; then
a848cd7e
SC
15688 LIBS="$LIBS -lstdcpp"
15689 LDFLAGS="$LDFLAGS -Zsysv-signals"
15690 else
391a765e 15691 if test "$wx_cv_gccversion" = "EMX3"; then
ddd14b14 15692 LIBS="$LIBS -lstdcxx -lgcc"
a848cd7e
SC
15693 LDFLAGS="$LDFLAGS -Zsysv-signals"
15694 else
15695 LIBS="$LIBS -lstdc++"
15696 fi
15697 fi
94acd38e
DE
15698 if test "$wxUSE_SHARED" = "yes" -a "$wxUSE_OMF" = "no"; then
15699 { echo "$as_me:$LINENO: WARNING: Building DLLs requires OMF mode, enabled" >&5
15700echo "$as_me: WARNING: Building DLLs requires OMF mode, enabled" >&2;}
15701 wxUSE_OMF=yes
2da0c077 15702 enable_omf=yes
a848cd7e
SC
15703 fi
15704 ;;
15705 *)
15706
95986553 15707 echo "$as_me:$LINENO: checking for strcasecmp() in string.h" >&5
a848cd7e
SC
15708echo $ECHO_N "checking for strcasecmp() in string.h... $ECHO_C" >&6
15709if test "${ac_cv_string_strcasecmp+set}" = set; then
15710 echo $ECHO_N "(cached) $ECHO_C" >&6
15711else
15712
15713 cat >conftest.$ac_ext <<_ACEOF
15714/* confdefs.h. */
15715_ACEOF
15716cat confdefs.h >>conftest.$ac_ext
15717cat >>conftest.$ac_ext <<_ACEOF
15718/* end confdefs.h. */
15719
15720 #include <string.h>
15721
15722int
15723main ()
15724{
15725
15726 strcasecmp("foo", "bar");
15727
15728 ;
15729 return 0;
15730}
15731_ACEOF
15732rm -f conftest.$ac_objext conftest$ac_exeext
15733if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 15734 (eval $ac_link) 2>conftest.er1
a848cd7e 15735 ac_status=$?
ac1cb8d3
VS
15736 grep -v '^ *+' conftest.er1 >conftest.err
15737 rm -f conftest.er1
15738 cat conftest.err >&5
a848cd7e
SC
15739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15740 (exit $ac_status); } &&
3f60522a
JS
15741 { ac_try='test -z "$ac_cxx_werror_flag"
15742 || test ! -s conftest.err'
ac1cb8d3
VS
15743 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15744 (eval $ac_try) 2>&5
15745 ac_status=$?
15746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15747 (exit $ac_status); }; } &&
15748 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
15749 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15750 (eval $ac_try) 2>&5
15751 ac_status=$?
15752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15753 (exit $ac_status); }; }; then
15754 ac_cv_string_strcasecmp=yes
15755else
15756 echo "$as_me: failed program was:" >&5
15757sed 's/^/| /' conftest.$ac_ext >&5
15758
15759ac_cv_string_strcasecmp=no
15760
15761fi
ac1cb8d3
VS
15762rm -f conftest.err conftest.$ac_objext \
15763 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
15764
15765fi
15766echo "$as_me:$LINENO: result: $ac_cv_string_strcasecmp" >&5
15767echo "${ECHO_T}$ac_cv_string_strcasecmp" >&6
15768
15769 if test x"$ac_cv_string_strcasecmp" = "xyes"; then
15770 cat >>confdefs.h <<\_ACEOF
15771#define HAVE_STRCASECMP_IN_STRING_H 1
15772_ACEOF
15773
15774 else
15775 echo "$as_me:$LINENO: checking for strcasecmp() in strings.h" >&5
15776echo $ECHO_N "checking for strcasecmp() in strings.h... $ECHO_C" >&6
15777if test "${ac_cv_strings_strcasecmp+set}" = set; then
15778 echo $ECHO_N "(cached) $ECHO_C" >&6
15779else
15780
15781 cat >conftest.$ac_ext <<_ACEOF
15782/* confdefs.h. */
15783_ACEOF
15784cat confdefs.h >>conftest.$ac_ext
15785cat >>conftest.$ac_ext <<_ACEOF
15786/* end confdefs.h. */
15787
15788 #include <strings.h>
15789
15790int
15791main ()
15792{
15793
15794 strcasecmp("foo", "bar");
15795
15796 ;
15797 return 0;
15798}
15799_ACEOF
15800rm -f conftest.$ac_objext conftest$ac_exeext
15801if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 15802 (eval $ac_link) 2>conftest.er1
a848cd7e 15803 ac_status=$?
ac1cb8d3
VS
15804 grep -v '^ *+' conftest.er1 >conftest.err
15805 rm -f conftest.er1
15806 cat conftest.err >&5
a848cd7e
SC
15807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15808 (exit $ac_status); } &&
3f60522a
JS
15809 { ac_try='test -z "$ac_cxx_werror_flag"
15810 || test ! -s conftest.err'
ac1cb8d3
VS
15811 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15812 (eval $ac_try) 2>&5
15813 ac_status=$?
15814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15815 (exit $ac_status); }; } &&
15816 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
15817 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15818 (eval $ac_try) 2>&5
15819 ac_status=$?
15820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15821 (exit $ac_status); }; }; then
15822 ac_cv_strings_strcasecmp=yes
15823else
15824 echo "$as_me: failed program was:" >&5
15825sed 's/^/| /' conftest.$ac_ext >&5
15826
15827ac_cv_strings_strcasecmp=no
15828
15829fi
ac1cb8d3
VS
15830rm -f conftest.err conftest.$ac_objext \
15831 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
15832
15833fi
15834echo "$as_me:$LINENO: result: $ac_cv_strings_strcasecmp" >&5
15835echo "${ECHO_T}$ac_cv_strings_strcasecmp" >&6
15836
0c3c69fc 15837 if test x"$ac_cv_strings_strcasecmp" = "xyes"; then
a848cd7e
SC
15838 cat >>confdefs.h <<\_ACEOF
15839#define HAVE_STRCASECMP_IN_STRINGS_H 1
15840_ACEOF
15841
15842 else
15843 { { echo "$as_me:$LINENO: error: No case-insensitive string comparison function found." >&5
15844echo "$as_me: error: No case-insensitive string comparison function found." >&2;}
15845 { (exit 1); exit 1; }; }
15846 fi
15847 fi
15848
a848cd7e
SC
15849 ;;
15850esac
15851
15852
5d7b7554
VZ
15853ac_ext=cc
15854ac_cpp='$CXXCPP $CPPFLAGS'
15855ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15856ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15857ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15858echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
15859echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
15860if test -z "$CXXCPP"; then
15861 if test "${ac_cv_prog_CXXCPP+set}" = set; then
15862 echo $ECHO_N "(cached) $ECHO_C" >&6
15863else
15864 # Double quotes because CXXCPP needs to be expanded
15865 for CXXCPP in "$CXX -E" "/lib/cpp"
15866 do
15867 ac_preproc_ok=false
15868for ac_cxx_preproc_warn_flag in '' yes
15869do
15870 # Use a header file that comes with gcc, so configuring glibc
15871 # with a fresh cross-compiler works.
15872 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15873 # <limits.h> exists even on freestanding compilers.
15874 # On the NeXT, cc -E runs the code through the compiler's parser,
15875 # not just through cpp. "Syntax error" is here to catch this case.
15876 cat >conftest.$ac_ext <<_ACEOF
15877/* confdefs.h. */
15878_ACEOF
15879cat confdefs.h >>conftest.$ac_ext
15880cat >>conftest.$ac_ext <<_ACEOF
15881/* end confdefs.h. */
15882#ifdef __STDC__
15883# include <limits.h>
15884#else
15885# include <assert.h>
15886#endif
15887 Syntax error
15888_ACEOF
15889if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15890 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15891 ac_status=$?
15892 grep -v '^ *+' conftest.er1 >conftest.err
15893 rm -f conftest.er1
15894 cat conftest.err >&5
15895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15896 (exit $ac_status); } >/dev/null; then
15897 if test -s conftest.err; then
15898 ac_cpp_err=$ac_cxx_preproc_warn_flag
15899 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
15900 else
15901 ac_cpp_err=
15902 fi
15903else
15904 ac_cpp_err=yes
15905fi
15906if test -z "$ac_cpp_err"; then
15907 :
15908else
15909 echo "$as_me: failed program was:" >&5
15910sed 's/^/| /' conftest.$ac_ext >&5
15911
15912 # Broken: fails on valid input.
15913continue
15914fi
15915rm -f conftest.err conftest.$ac_ext
15916
15917 # OK, works on sane cases. Now check whether non-existent headers
15918 # can be detected and how.
15919 cat >conftest.$ac_ext <<_ACEOF
15920/* confdefs.h. */
15921_ACEOF
15922cat confdefs.h >>conftest.$ac_ext
15923cat >>conftest.$ac_ext <<_ACEOF
15924/* end confdefs.h. */
15925#include <ac_nonexistent.h>
15926_ACEOF
15927if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15928 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15929 ac_status=$?
15930 grep -v '^ *+' conftest.er1 >conftest.err
15931 rm -f conftest.er1
15932 cat conftest.err >&5
15933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15934 (exit $ac_status); } >/dev/null; then
15935 if test -s conftest.err; then
15936 ac_cpp_err=$ac_cxx_preproc_warn_flag
15937 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
15938 else
15939 ac_cpp_err=
15940 fi
15941else
15942 ac_cpp_err=yes
15943fi
15944if test -z "$ac_cpp_err"; then
15945 # Broken: success on invalid input.
15946continue
15947else
15948 echo "$as_me: failed program was:" >&5
15949sed 's/^/| /' conftest.$ac_ext >&5
15950
15951 # Passes both tests.
15952ac_preproc_ok=:
15953break
15954fi
15955rm -f conftest.err conftest.$ac_ext
15956
15957done
15958# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
15959rm -f conftest.err conftest.$ac_ext
15960if $ac_preproc_ok; then
15961 break
15962fi
15963
15964 done
15965 ac_cv_prog_CXXCPP=$CXXCPP
15966
15967fi
15968 CXXCPP=$ac_cv_prog_CXXCPP
15969else
15970 ac_cv_prog_CXXCPP=$CXXCPP
15971fi
15972echo "$as_me:$LINENO: result: $CXXCPP" >&5
15973echo "${ECHO_T}$CXXCPP" >&6
15974ac_preproc_ok=false
15975for ac_cxx_preproc_warn_flag in '' yes
15976do
15977 # Use a header file that comes with gcc, so configuring glibc
15978 # with a fresh cross-compiler works.
15979 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15980 # <limits.h> exists even on freestanding compilers.
15981 # On the NeXT, cc -E runs the code through the compiler's parser,
15982 # not just through cpp. "Syntax error" is here to catch this case.
15983 cat >conftest.$ac_ext <<_ACEOF
15984/* confdefs.h. */
15985_ACEOF
15986cat confdefs.h >>conftest.$ac_ext
15987cat >>conftest.$ac_ext <<_ACEOF
15988/* end confdefs.h. */
15989#ifdef __STDC__
15990# include <limits.h>
15991#else
15992# include <assert.h>
15993#endif
15994 Syntax error
15995_ACEOF
15996if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15997 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15998 ac_status=$?
15999 grep -v '^ *+' conftest.er1 >conftest.err
16000 rm -f conftest.er1
16001 cat conftest.err >&5
16002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16003 (exit $ac_status); } >/dev/null; then
16004 if test -s conftest.err; then
16005 ac_cpp_err=$ac_cxx_preproc_warn_flag
16006 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
16007 else
16008 ac_cpp_err=
16009 fi
16010else
16011 ac_cpp_err=yes
16012fi
16013if test -z "$ac_cpp_err"; then
16014 :
16015else
16016 echo "$as_me: failed program was:" >&5
16017sed 's/^/| /' conftest.$ac_ext >&5
16018
16019 # Broken: fails on valid input.
16020continue
16021fi
16022rm -f conftest.err conftest.$ac_ext
16023
16024 # OK, works on sane cases. Now check whether non-existent headers
16025 # can be detected and how.
16026 cat >conftest.$ac_ext <<_ACEOF
16027/* confdefs.h. */
16028_ACEOF
16029cat confdefs.h >>conftest.$ac_ext
16030cat >>conftest.$ac_ext <<_ACEOF
16031/* end confdefs.h. */
16032#include <ac_nonexistent.h>
16033_ACEOF
16034if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16035 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16036 ac_status=$?
16037 grep -v '^ *+' conftest.er1 >conftest.err
16038 rm -f conftest.er1
16039 cat conftest.err >&5
16040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16041 (exit $ac_status); } >/dev/null; then
16042 if test -s conftest.err; then
16043 ac_cpp_err=$ac_cxx_preproc_warn_flag
16044 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
16045 else
16046 ac_cpp_err=
16047 fi
16048else
16049 ac_cpp_err=yes
16050fi
16051if test -z "$ac_cpp_err"; then
16052 # Broken: success on invalid input.
16053continue
16054else
16055 echo "$as_me: failed program was:" >&5
16056sed 's/^/| /' conftest.$ac_ext >&5
16057
16058 # Passes both tests.
16059ac_preproc_ok=:
16060break
16061fi
16062rm -f conftest.err conftest.$ac_ext
16063
16064done
16065# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
16066rm -f conftest.err conftest.$ac_ext
16067if $ac_preproc_ok; then
16068 :
16069else
16070 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
16071See \`config.log' for more details." >&5
16072echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
16073See \`config.log' for more details." >&2;}
16074 { (exit 1); exit 1; }; }
16075fi
16076
16077ac_ext=cc
16078ac_cpp='$CXXCPP $CPPFLAGS'
16079ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16080ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16081ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16082
16083
a848cd7e
SC
16084echo "$as_me:$LINENO: checking for ANSI C header files" >&5
16085echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
16086if test "${ac_cv_header_stdc+set}" = set; then
16087 echo $ECHO_N "(cached) $ECHO_C" >&6
16088else
16089 cat >conftest.$ac_ext <<_ACEOF
16090/* confdefs.h. */
16091_ACEOF
16092cat confdefs.h >>conftest.$ac_ext
16093cat >>conftest.$ac_ext <<_ACEOF
16094/* end confdefs.h. */
16095#include <stdlib.h>
16096#include <stdarg.h>
16097#include <string.h>
16098#include <float.h>
16099
16100int
16101main ()
16102{
16103
16104 ;
16105 return 0;
16106}
16107_ACEOF
16108rm -f conftest.$ac_objext
16109if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16110 (eval $ac_compile) 2>conftest.er1
a848cd7e 16111 ac_status=$?
ac1cb8d3
VS
16112 grep -v '^ *+' conftest.er1 >conftest.err
16113 rm -f conftest.er1
16114 cat conftest.err >&5
a848cd7e
SC
16115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16116 (exit $ac_status); } &&
3f60522a
JS
16117 { ac_try='test -z "$ac_cxx_werror_flag"
16118 || test ! -s conftest.err'
ac1cb8d3
VS
16119 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16120 (eval $ac_try) 2>&5
16121 ac_status=$?
16122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16123 (exit $ac_status); }; } &&
16124 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16125 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16126 (eval $ac_try) 2>&5
16127 ac_status=$?
16128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16129 (exit $ac_status); }; }; then
16130 ac_cv_header_stdc=yes
16131else
16132 echo "$as_me: failed program was:" >&5
16133sed 's/^/| /' conftest.$ac_ext >&5
16134
16135ac_cv_header_stdc=no
16136fi
ac1cb8d3 16137rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16138
16139if test $ac_cv_header_stdc = yes; then
16140 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
16141 cat >conftest.$ac_ext <<_ACEOF
16142/* confdefs.h. */
16143_ACEOF
16144cat confdefs.h >>conftest.$ac_ext
16145cat >>conftest.$ac_ext <<_ACEOF
16146/* end confdefs.h. */
16147#include <string.h>
16148
16149_ACEOF
16150if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16151 $EGREP "memchr" >/dev/null 2>&1; then
16152 :
16153else
16154 ac_cv_header_stdc=no
16155fi
16156rm -f conftest*
16157
16158fi
16159
16160if test $ac_cv_header_stdc = yes; then
16161 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
16162 cat >conftest.$ac_ext <<_ACEOF
16163/* confdefs.h. */
16164_ACEOF
16165cat confdefs.h >>conftest.$ac_ext
16166cat >>conftest.$ac_ext <<_ACEOF
16167/* end confdefs.h. */
16168#include <stdlib.h>
16169
16170_ACEOF
16171if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16172 $EGREP "free" >/dev/null 2>&1; then
16173 :
16174else
16175 ac_cv_header_stdc=no
16176fi
16177rm -f conftest*
16178
16179fi
16180
16181if test $ac_cv_header_stdc = yes; then
16182 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
16183 if test "$cross_compiling" = yes; then
16184 :
16185else
16186 cat >conftest.$ac_ext <<_ACEOF
16187/* confdefs.h. */
16188_ACEOF
16189cat confdefs.h >>conftest.$ac_ext
16190cat >>conftest.$ac_ext <<_ACEOF
16191/* end confdefs.h. */
16192#include <ctype.h>
16193#if ((' ' & 0x0FF) == 0x020)
16194# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
16195# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
16196#else
16197# define ISLOWER(c) \
ac1cb8d3
VS
16198 (('a' <= (c) && (c) <= 'i') \
16199 || ('j' <= (c) && (c) <= 'r') \
16200 || ('s' <= (c) && (c) <= 'z'))
a848cd7e
SC
16201# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
16202#endif
16203
16204#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
16205int
16206main ()
16207{
16208 int i;
16209 for (i = 0; i < 256; i++)
16210 if (XOR (islower (i), ISLOWER (i))
ac1cb8d3 16211 || toupper (i) != TOUPPER (i))
a848cd7e
SC
16212 exit(2);
16213 exit (0);
16214}
16215_ACEOF
16216rm -f conftest$ac_exeext
16217if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16218 (eval $ac_link) 2>&5
16219 ac_status=$?
16220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16221 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16222 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16223 (eval $ac_try) 2>&5
16224 ac_status=$?
16225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16226 (exit $ac_status); }; }; then
16227 :
16228else
16229 echo "$as_me: program exited with status $ac_status" >&5
16230echo "$as_me: failed program was:" >&5
16231sed 's/^/| /' conftest.$ac_ext >&5
16232
16233( exit $ac_status )
16234ac_cv_header_stdc=no
16235fi
ac1cb8d3 16236rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16237fi
16238fi
16239fi
16240echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
16241echo "${ECHO_T}$ac_cv_header_stdc" >&6
16242if test $ac_cv_header_stdc = yes; then
16243
16244cat >>confdefs.h <<\_ACEOF
16245#define STDC_HEADERS 1
16246_ACEOF
16247
16248fi
16249
16250# On IRIX 5.3, sys/types and inttypes.h are conflicting.
16251
16252
16253
16254
16255
16256
16257
16258
16259
16260for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
ac1cb8d3 16261 inttypes.h stdint.h unistd.h
a848cd7e
SC
16262do
16263as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16264echo "$as_me:$LINENO: checking for $ac_header" >&5
16265echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16266if eval "test \"\${$as_ac_Header+set}\" = set"; then
16267 echo $ECHO_N "(cached) $ECHO_C" >&6
16268else
16269 cat >conftest.$ac_ext <<_ACEOF
16270/* confdefs.h. */
16271_ACEOF
16272cat confdefs.h >>conftest.$ac_ext
16273cat >>conftest.$ac_ext <<_ACEOF
16274/* end confdefs.h. */
16275$ac_includes_default
16276
16277#include <$ac_header>
16278_ACEOF
16279rm -f conftest.$ac_objext
16280if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16281 (eval $ac_compile) 2>conftest.er1
a848cd7e 16282 ac_status=$?
ac1cb8d3
VS
16283 grep -v '^ *+' conftest.er1 >conftest.err
16284 rm -f conftest.er1
16285 cat conftest.err >&5
a848cd7e
SC
16286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16287 (exit $ac_status); } &&
3f60522a
JS
16288 { ac_try='test -z "$ac_cxx_werror_flag"
16289 || test ! -s conftest.err'
ac1cb8d3
VS
16290 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16291 (eval $ac_try) 2>&5
16292 ac_status=$?
16293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16294 (exit $ac_status); }; } &&
16295 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16296 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16297 (eval $ac_try) 2>&5
16298 ac_status=$?
16299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16300 (exit $ac_status); }; }; then
16301 eval "$as_ac_Header=yes"
16302else
16303 echo "$as_me: failed program was:" >&5
16304sed 's/^/| /' conftest.$ac_ext >&5
16305
16306eval "$as_ac_Header=no"
16307fi
ac1cb8d3 16308rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16309fi
16310echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16311echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16312if test `eval echo '${'$as_ac_Header'}'` = yes; then
16313 cat >>confdefs.h <<_ACEOF
16314#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16315_ACEOF
16316
16317fi
16318
16319done
16320
16321
16322
16323for ac_header in stdlib.h
16324do
16325as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16326if eval "test \"\${$as_ac_Header+set}\" = set"; then
16327 echo "$as_me:$LINENO: checking for $ac_header" >&5
16328echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16329if eval "test \"\${$as_ac_Header+set}\" = set"; then
16330 echo $ECHO_N "(cached) $ECHO_C" >&6
16331fi
16332echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16333echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16334else
16335 # Is the header compilable?
16336echo "$as_me:$LINENO: checking $ac_header usability" >&5
16337echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16338cat >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$ac_includes_default
16345#include <$ac_header>
16346_ACEOF
16347rm -f conftest.$ac_objext
16348if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16349 (eval $ac_compile) 2>conftest.er1
a848cd7e 16350 ac_status=$?
ac1cb8d3
VS
16351 grep -v '^ *+' conftest.er1 >conftest.err
16352 rm -f conftest.er1
16353 cat conftest.err >&5
a848cd7e
SC
16354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16355 (exit $ac_status); } &&
3f60522a
JS
16356 { ac_try='test -z "$ac_cxx_werror_flag"
16357 || test ! -s conftest.err'
ac1cb8d3
VS
16358 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16359 (eval $ac_try) 2>&5
16360 ac_status=$?
16361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16362 (exit $ac_status); }; } &&
16363 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16364 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16365 (eval $ac_try) 2>&5
16366 ac_status=$?
16367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16368 (exit $ac_status); }; }; then
16369 ac_header_compiler=yes
16370else
16371 echo "$as_me: failed program was:" >&5
16372sed 's/^/| /' conftest.$ac_ext >&5
16373
16374ac_header_compiler=no
16375fi
ac1cb8d3 16376rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16377echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16378echo "${ECHO_T}$ac_header_compiler" >&6
16379
16380# Is the header present?
16381echo "$as_me:$LINENO: checking $ac_header presence" >&5
16382echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16383cat >conftest.$ac_ext <<_ACEOF
16384/* confdefs.h. */
16385_ACEOF
16386cat confdefs.h >>conftest.$ac_ext
16387cat >>conftest.$ac_ext <<_ACEOF
16388/* end confdefs.h. */
16389#include <$ac_header>
16390_ACEOF
16391if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16392 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16393 ac_status=$?
16394 grep -v '^ *+' conftest.er1 >conftest.err
16395 rm -f conftest.er1
16396 cat conftest.err >&5
16397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16398 (exit $ac_status); } >/dev/null; then
16399 if test -s conftest.err; then
5d7b7554
VZ
16400 ac_cpp_err=$ac_cxx_preproc_warn_flag
16401 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
16402 else
16403 ac_cpp_err=
16404 fi
16405else
16406 ac_cpp_err=yes
16407fi
16408if test -z "$ac_cpp_err"; then
16409 ac_header_preproc=yes
16410else
16411 echo "$as_me: failed program was:" >&5
16412sed 's/^/| /' conftest.$ac_ext >&5
16413
16414 ac_header_preproc=no
16415fi
16416rm -f conftest.err conftest.$ac_ext
16417echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16418echo "${ECHO_T}$ac_header_preproc" >&6
16419
16420# So? What about this header?
5d7b7554 16421case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
ac1cb8d3 16422 yes:no: )
a848cd7e
SC
16423 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16424echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
16425 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16426echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16427 ac_header_preproc=yes
a848cd7e 16428 ;;
ac1cb8d3 16429 no:yes:* )
a848cd7e
SC
16430 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16431echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
16432 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16433echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16434 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16435echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16436 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16437echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
16438 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16439echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
16440 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16441echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
16442 (
16443 cat <<\_ASBOX
ac1cb8d3
VS
16444## ----------------------------------------- ##
16445## Report this to wx-dev@lists.wxwidgets.org ##
16446## ----------------------------------------- ##
a848cd7e
SC
16447_ASBOX
16448 ) |
16449 sed "s/^/$as_me: WARNING: /" >&2
16450 ;;
16451esac
16452echo "$as_me:$LINENO: checking for $ac_header" >&5
16453echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16454if eval "test \"\${$as_ac_Header+set}\" = set"; then
16455 echo $ECHO_N "(cached) $ECHO_C" >&6
16456else
ac1cb8d3 16457 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
16458fi
16459echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16460echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16461
16462fi
16463if test `eval echo '${'$as_ac_Header'}'` = yes; then
16464 cat >>confdefs.h <<_ACEOF
16465#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16466_ACEOF
16467
16468fi
16469
16470done
16471
16472
16473for ac_header in malloc.h
16474do
16475as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16476if eval "test \"\${$as_ac_Header+set}\" = set"; then
16477 echo "$as_me:$LINENO: checking for $ac_header" >&5
16478echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16479if eval "test \"\${$as_ac_Header+set}\" = set"; then
16480 echo $ECHO_N "(cached) $ECHO_C" >&6
16481fi
16482echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16483echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16484else
16485 # Is the header compilable?
16486echo "$as_me:$LINENO: checking $ac_header usability" >&5
16487echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16488cat >conftest.$ac_ext <<_ACEOF
16489/* confdefs.h. */
16490_ACEOF
16491cat confdefs.h >>conftest.$ac_ext
16492cat >>conftest.$ac_ext <<_ACEOF
16493/* end confdefs.h. */
16494$ac_includes_default
16495#include <$ac_header>
16496_ACEOF
16497rm -f conftest.$ac_objext
16498if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16499 (eval $ac_compile) 2>conftest.er1
a848cd7e 16500 ac_status=$?
ac1cb8d3
VS
16501 grep -v '^ *+' conftest.er1 >conftest.err
16502 rm -f conftest.er1
16503 cat conftest.err >&5
a848cd7e
SC
16504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16505 (exit $ac_status); } &&
3f60522a
JS
16506 { ac_try='test -z "$ac_cxx_werror_flag"
16507 || test ! -s conftest.err'
ac1cb8d3
VS
16508 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16509 (eval $ac_try) 2>&5
16510 ac_status=$?
16511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16512 (exit $ac_status); }; } &&
16513 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16514 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16515 (eval $ac_try) 2>&5
16516 ac_status=$?
16517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16518 (exit $ac_status); }; }; then
16519 ac_header_compiler=yes
16520else
16521 echo "$as_me: failed program was:" >&5
16522sed 's/^/| /' conftest.$ac_ext >&5
16523
16524ac_header_compiler=no
16525fi
ac1cb8d3 16526rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16527echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16528echo "${ECHO_T}$ac_header_compiler" >&6
16529
16530# Is the header present?
16531echo "$as_me:$LINENO: checking $ac_header presence" >&5
16532echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16533cat >conftest.$ac_ext <<_ACEOF
16534/* confdefs.h. */
16535_ACEOF
16536cat confdefs.h >>conftest.$ac_ext
16537cat >>conftest.$ac_ext <<_ACEOF
16538/* end confdefs.h. */
16539#include <$ac_header>
16540_ACEOF
16541if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16542 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16543 ac_status=$?
16544 grep -v '^ *+' conftest.er1 >conftest.err
16545 rm -f conftest.er1
16546 cat conftest.err >&5
16547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16548 (exit $ac_status); } >/dev/null; then
16549 if test -s conftest.err; then
5d7b7554
VZ
16550 ac_cpp_err=$ac_cxx_preproc_warn_flag
16551 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
16552 else
16553 ac_cpp_err=
16554 fi
16555else
16556 ac_cpp_err=yes
16557fi
16558if test -z "$ac_cpp_err"; then
16559 ac_header_preproc=yes
16560else
16561 echo "$as_me: failed program was:" >&5
16562sed 's/^/| /' conftest.$ac_ext >&5
16563
16564 ac_header_preproc=no
16565fi
16566rm -f conftest.err conftest.$ac_ext
16567echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16568echo "${ECHO_T}$ac_header_preproc" >&6
16569
16570# So? What about this header?
5d7b7554 16571case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
ac1cb8d3 16572 yes:no: )
a848cd7e
SC
16573 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16574echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
16575 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16576echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16577 ac_header_preproc=yes
a848cd7e 16578 ;;
ac1cb8d3 16579 no:yes:* )
a848cd7e
SC
16580 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16581echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
16582 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16583echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16584 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16585echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16586 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16587echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
16588 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16589echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
16590 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16591echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
16592 (
16593 cat <<\_ASBOX
ac1cb8d3
VS
16594## ----------------------------------------- ##
16595## Report this to wx-dev@lists.wxwidgets.org ##
16596## ----------------------------------------- ##
a848cd7e
SC
16597_ASBOX
16598 ) |
16599 sed "s/^/$as_me: WARNING: /" >&2
16600 ;;
16601esac
16602echo "$as_me:$LINENO: checking for $ac_header" >&5
16603echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16604if eval "test \"\${$as_ac_Header+set}\" = set"; then
16605 echo $ECHO_N "(cached) $ECHO_C" >&6
16606else
ac1cb8d3 16607 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
16608fi
16609echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16610echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16611
16612fi
16613if test `eval echo '${'$as_ac_Header'}'` = yes; then
16614 cat >>confdefs.h <<_ACEOF
16615#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16616_ACEOF
16617
16618fi
16619
16620done
16621
16622
16623for ac_header in unistd.h
16624do
16625as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16626if eval "test \"\${$as_ac_Header+set}\" = set"; then
16627 echo "$as_me:$LINENO: checking for $ac_header" >&5
16628echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16629if eval "test \"\${$as_ac_Header+set}\" = set"; then
16630 echo $ECHO_N "(cached) $ECHO_C" >&6
16631fi
16632echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16633echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16634else
16635 # Is the header compilable?
16636echo "$as_me:$LINENO: checking $ac_header usability" >&5
16637echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16638cat >conftest.$ac_ext <<_ACEOF
16639/* confdefs.h. */
16640_ACEOF
16641cat confdefs.h >>conftest.$ac_ext
16642cat >>conftest.$ac_ext <<_ACEOF
16643/* end confdefs.h. */
16644$ac_includes_default
16645#include <$ac_header>
16646_ACEOF
16647rm -f conftest.$ac_objext
16648if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16649 (eval $ac_compile) 2>conftest.er1
a848cd7e 16650 ac_status=$?
ac1cb8d3
VS
16651 grep -v '^ *+' conftest.er1 >conftest.err
16652 rm -f conftest.er1
16653 cat conftest.err >&5
a848cd7e
SC
16654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16655 (exit $ac_status); } &&
3f60522a
JS
16656 { ac_try='test -z "$ac_cxx_werror_flag"
16657 || test ! -s conftest.err'
ac1cb8d3
VS
16658 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16659 (eval $ac_try) 2>&5
16660 ac_status=$?
16661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16662 (exit $ac_status); }; } &&
16663 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16664 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16665 (eval $ac_try) 2>&5
16666 ac_status=$?
16667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16668 (exit $ac_status); }; }; then
16669 ac_header_compiler=yes
16670else
16671 echo "$as_me: failed program was:" >&5
16672sed 's/^/| /' conftest.$ac_ext >&5
16673
16674ac_header_compiler=no
16675fi
ac1cb8d3 16676rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16677echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16678echo "${ECHO_T}$ac_header_compiler" >&6
16679
16680# Is the header present?
16681echo "$as_me:$LINENO: checking $ac_header presence" >&5
16682echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16683cat >conftest.$ac_ext <<_ACEOF
16684/* confdefs.h. */
16685_ACEOF
16686cat confdefs.h >>conftest.$ac_ext
16687cat >>conftest.$ac_ext <<_ACEOF
16688/* end confdefs.h. */
16689#include <$ac_header>
16690_ACEOF
16691if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16692 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16693 ac_status=$?
16694 grep -v '^ *+' conftest.er1 >conftest.err
16695 rm -f conftest.er1
16696 cat conftest.err >&5
16697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16698 (exit $ac_status); } >/dev/null; then
16699 if test -s conftest.err; then
5d7b7554
VZ
16700 ac_cpp_err=$ac_cxx_preproc_warn_flag
16701 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
16702 else
16703 ac_cpp_err=
16704 fi
16705else
16706 ac_cpp_err=yes
16707fi
16708if test -z "$ac_cpp_err"; then
16709 ac_header_preproc=yes
16710else
16711 echo "$as_me: failed program was:" >&5
16712sed 's/^/| /' conftest.$ac_ext >&5
16713
16714 ac_header_preproc=no
16715fi
16716rm -f conftest.err conftest.$ac_ext
16717echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16718echo "${ECHO_T}$ac_header_preproc" >&6
16719
16720# So? What about this header?
5d7b7554 16721case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
ac1cb8d3 16722 yes:no: )
a848cd7e
SC
16723 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16724echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
16725 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16726echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16727 ac_header_preproc=yes
a848cd7e 16728 ;;
ac1cb8d3 16729 no:yes:* )
a848cd7e
SC
16730 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16731echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
16732 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16733echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16734 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16735echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16736 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16737echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
16738 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16739echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
16740 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16741echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
16742 (
16743 cat <<\_ASBOX
ac1cb8d3
VS
16744## ----------------------------------------- ##
16745## Report this to wx-dev@lists.wxwidgets.org ##
16746## ----------------------------------------- ##
a848cd7e
SC
16747_ASBOX
16748 ) |
16749 sed "s/^/$as_me: WARNING: /" >&2
16750 ;;
16751esac
16752echo "$as_me:$LINENO: checking for $ac_header" >&5
16753echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16754if eval "test \"\${$as_ac_Header+set}\" = set"; then
16755 echo $ECHO_N "(cached) $ECHO_C" >&6
16756else
ac1cb8d3 16757 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
16758fi
16759echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16760echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16761
16762fi
16763if test `eval echo '${'$as_ac_Header'}'` = yes; then
16764 cat >>confdefs.h <<_ACEOF
16765#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16766_ACEOF
16767
16768fi
16769
16770done
16771
16772
16773for ac_header in wchar.h
16774do
16775as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16776if eval "test \"\${$as_ac_Header+set}\" = set"; then
16777 echo "$as_me:$LINENO: checking for $ac_header" >&5
16778echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16779if eval "test \"\${$as_ac_Header+set}\" = set"; then
16780 echo $ECHO_N "(cached) $ECHO_C" >&6
16781fi
16782echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16783echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16784else
16785 # Is the header compilable?
16786echo "$as_me:$LINENO: checking $ac_header usability" >&5
16787echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16788cat >conftest.$ac_ext <<_ACEOF
16789/* confdefs.h. */
16790_ACEOF
16791cat confdefs.h >>conftest.$ac_ext
16792cat >>conftest.$ac_ext <<_ACEOF
16793/* end confdefs.h. */
16794$ac_includes_default
16795#include <$ac_header>
16796_ACEOF
16797rm -f conftest.$ac_objext
16798if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16799 (eval $ac_compile) 2>conftest.er1
a848cd7e 16800 ac_status=$?
ac1cb8d3
VS
16801 grep -v '^ *+' conftest.er1 >conftest.err
16802 rm -f conftest.er1
16803 cat conftest.err >&5
a848cd7e
SC
16804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16805 (exit $ac_status); } &&
3f60522a
JS
16806 { ac_try='test -z "$ac_cxx_werror_flag"
16807 || test ! -s conftest.err'
ac1cb8d3
VS
16808 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16809 (eval $ac_try) 2>&5
16810 ac_status=$?
16811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16812 (exit $ac_status); }; } &&
16813 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16814 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16815 (eval $ac_try) 2>&5
16816 ac_status=$?
16817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16818 (exit $ac_status); }; }; then
16819 ac_header_compiler=yes
16820else
16821 echo "$as_me: failed program was:" >&5
16822sed 's/^/| /' conftest.$ac_ext >&5
16823
16824ac_header_compiler=no
16825fi
ac1cb8d3 16826rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16827echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16828echo "${ECHO_T}$ac_header_compiler" >&6
16829
16830# Is the header present?
16831echo "$as_me:$LINENO: checking $ac_header presence" >&5
16832echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16833cat >conftest.$ac_ext <<_ACEOF
16834/* confdefs.h. */
16835_ACEOF
16836cat confdefs.h >>conftest.$ac_ext
16837cat >>conftest.$ac_ext <<_ACEOF
16838/* end confdefs.h. */
16839#include <$ac_header>
16840_ACEOF
16841if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16842 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16843 ac_status=$?
16844 grep -v '^ *+' conftest.er1 >conftest.err
16845 rm -f conftest.er1
16846 cat conftest.err >&5
16847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16848 (exit $ac_status); } >/dev/null; then
16849 if test -s conftest.err; then
5d7b7554
VZ
16850 ac_cpp_err=$ac_cxx_preproc_warn_flag
16851 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
16852 else
16853 ac_cpp_err=
16854 fi
16855else
16856 ac_cpp_err=yes
16857fi
16858if test -z "$ac_cpp_err"; then
16859 ac_header_preproc=yes
16860else
16861 echo "$as_me: failed program was:" >&5
16862sed 's/^/| /' conftest.$ac_ext >&5
16863
16864 ac_header_preproc=no
16865fi
16866rm -f conftest.err conftest.$ac_ext
16867echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16868echo "${ECHO_T}$ac_header_preproc" >&6
16869
16870# So? What about this header?
5d7b7554 16871case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
ac1cb8d3 16872 yes:no: )
a848cd7e
SC
16873 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16874echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
16875 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16876echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16877 ac_header_preproc=yes
a848cd7e 16878 ;;
ac1cb8d3 16879 no:yes:* )
a848cd7e
SC
16880 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16881echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
16882 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16883echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16884 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16885echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16886 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16887echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
16888 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16889echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
16890 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16891echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
16892 (
16893 cat <<\_ASBOX
ac1cb8d3
VS
16894## ----------------------------------------- ##
16895## Report this to wx-dev@lists.wxwidgets.org ##
16896## ----------------------------------------- ##
a848cd7e
SC
16897_ASBOX
16898 ) |
16899 sed "s/^/$as_me: WARNING: /" >&2
16900 ;;
16901esac
16902echo "$as_me:$LINENO: checking for $ac_header" >&5
16903echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16904if eval "test \"\${$as_ac_Header+set}\" = set"; then
16905 echo $ECHO_N "(cached) $ECHO_C" >&6
16906else
ac1cb8d3 16907 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
16908fi
16909echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16910echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16911
16912fi
16913if test `eval echo '${'$as_ac_Header'}'` = yes; then
16914 cat >>confdefs.h <<_ACEOF
16915#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16916_ACEOF
16917
16918fi
16919
16920done
16921
16922
16923if test "$ac_cv_header_wchar_h" != "yes"; then
16924
16925for ac_header in wcstr.h
16926do
16927as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16928if eval "test \"\${$as_ac_Header+set}\" = set"; then
16929 echo "$as_me:$LINENO: checking for $ac_header" >&5
16930echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16931if eval "test \"\${$as_ac_Header+set}\" = set"; then
16932 echo $ECHO_N "(cached) $ECHO_C" >&6
16933fi
16934echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16935echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16936else
16937 # Is the header compilable?
16938echo "$as_me:$LINENO: checking $ac_header usability" >&5
16939echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16940cat >conftest.$ac_ext <<_ACEOF
16941/* confdefs.h. */
16942_ACEOF
16943cat confdefs.h >>conftest.$ac_ext
16944cat >>conftest.$ac_ext <<_ACEOF
16945/* end confdefs.h. */
16946$ac_includes_default
16947#include <$ac_header>
16948_ACEOF
16949rm -f conftest.$ac_objext
16950if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16951 (eval $ac_compile) 2>conftest.er1
a848cd7e 16952 ac_status=$?
ac1cb8d3
VS
16953 grep -v '^ *+' conftest.er1 >conftest.err
16954 rm -f conftest.er1
16955 cat conftest.err >&5
a848cd7e
SC
16956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16957 (exit $ac_status); } &&
3f60522a
JS
16958 { ac_try='test -z "$ac_cxx_werror_flag"
16959 || test ! -s conftest.err'
ac1cb8d3
VS
16960 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16961 (eval $ac_try) 2>&5
16962 ac_status=$?
16963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16964 (exit $ac_status); }; } &&
16965 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16966 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16967 (eval $ac_try) 2>&5
16968 ac_status=$?
16969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16970 (exit $ac_status); }; }; then
16971 ac_header_compiler=yes
16972else
16973 echo "$as_me: failed program was:" >&5
16974sed 's/^/| /' conftest.$ac_ext >&5
16975
16976ac_header_compiler=no
16977fi
ac1cb8d3 16978rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16979echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16980echo "${ECHO_T}$ac_header_compiler" >&6
16981
16982# Is the header present?
16983echo "$as_me:$LINENO: checking $ac_header presence" >&5
16984echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16985cat >conftest.$ac_ext <<_ACEOF
16986/* confdefs.h. */
16987_ACEOF
16988cat confdefs.h >>conftest.$ac_ext
16989cat >>conftest.$ac_ext <<_ACEOF
16990/* end confdefs.h. */
16991#include <$ac_header>
16992_ACEOF
16993if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16994 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16995 ac_status=$?
16996 grep -v '^ *+' conftest.er1 >conftest.err
16997 rm -f conftest.er1
16998 cat conftest.err >&5
16999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17000 (exit $ac_status); } >/dev/null; then
17001 if test -s conftest.err; then
5d7b7554
VZ
17002 ac_cpp_err=$ac_cxx_preproc_warn_flag
17003 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
17004 else
17005 ac_cpp_err=
17006 fi
17007else
17008 ac_cpp_err=yes
17009fi
17010if test -z "$ac_cpp_err"; then
17011 ac_header_preproc=yes
17012else
17013 echo "$as_me: failed program was:" >&5
17014sed 's/^/| /' conftest.$ac_ext >&5
17015
17016 ac_header_preproc=no
17017fi
17018rm -f conftest.err conftest.$ac_ext
17019echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17020echo "${ECHO_T}$ac_header_preproc" >&6
17021
17022# So? What about this header?
5d7b7554 17023case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
ac1cb8d3 17024 yes:no: )
a848cd7e
SC
17025 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17026echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
17027 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17028echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17029 ac_header_preproc=yes
a848cd7e 17030 ;;
ac1cb8d3 17031 no:yes:* )
a848cd7e
SC
17032 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17033echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
17034 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17035echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17036 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17037echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17038 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17039echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
17040 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17041echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
17042 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17043echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
17044 (
17045 cat <<\_ASBOX
ac1cb8d3
VS
17046## ----------------------------------------- ##
17047## Report this to wx-dev@lists.wxwidgets.org ##
17048## ----------------------------------------- ##
a848cd7e
SC
17049_ASBOX
17050 ) |
17051 sed "s/^/$as_me: WARNING: /" >&2
17052 ;;
17053esac
17054echo "$as_me:$LINENO: checking for $ac_header" >&5
17055echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17056if eval "test \"\${$as_ac_Header+set}\" = set"; then
17057 echo $ECHO_N "(cached) $ECHO_C" >&6
17058else
ac1cb8d3 17059 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
17060fi
17061echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17062echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17063
17064fi
17065if test `eval echo '${'$as_ac_Header'}'` = yes; then
17066 cat >>confdefs.h <<_ACEOF
17067#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17068_ACEOF
17069
17070fi
17071
17072done
17073
17074fi
17075
17076
17077for ac_header in fnmatch.h
17078do
17079as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17080if eval "test \"\${$as_ac_Header+set}\" = set"; then
17081 echo "$as_me:$LINENO: checking for $ac_header" >&5
17082echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17083if eval "test \"\${$as_ac_Header+set}\" = set"; then
17084 echo $ECHO_N "(cached) $ECHO_C" >&6
17085fi
17086echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17087echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17088else
17089 # Is the header compilable?
17090echo "$as_me:$LINENO: checking $ac_header usability" >&5
17091echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
17092cat >conftest.$ac_ext <<_ACEOF
17093/* confdefs.h. */
17094_ACEOF
17095cat confdefs.h >>conftest.$ac_ext
17096cat >>conftest.$ac_ext <<_ACEOF
17097/* end confdefs.h. */
17098$ac_includes_default
17099#include <$ac_header>
17100_ACEOF
17101rm -f conftest.$ac_objext
17102if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17103 (eval $ac_compile) 2>conftest.er1
a848cd7e 17104 ac_status=$?
ac1cb8d3
VS
17105 grep -v '^ *+' conftest.er1 >conftest.err
17106 rm -f conftest.er1
17107 cat conftest.err >&5
a848cd7e
SC
17108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17109 (exit $ac_status); } &&
3f60522a
JS
17110 { ac_try='test -z "$ac_cxx_werror_flag"
17111 || test ! -s conftest.err'
ac1cb8d3
VS
17112 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17113 (eval $ac_try) 2>&5
17114 ac_status=$?
17115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17116 (exit $ac_status); }; } &&
17117 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17118 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17119 (eval $ac_try) 2>&5
17120 ac_status=$?
17121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17122 (exit $ac_status); }; }; then
17123 ac_header_compiler=yes
17124else
17125 echo "$as_me: failed program was:" >&5
17126sed 's/^/| /' conftest.$ac_ext >&5
17127
17128ac_header_compiler=no
17129fi
ac1cb8d3 17130rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17131echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17132echo "${ECHO_T}$ac_header_compiler" >&6
17133
17134# Is the header present?
17135echo "$as_me:$LINENO: checking $ac_header presence" >&5
17136echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
17137cat >conftest.$ac_ext <<_ACEOF
17138/* confdefs.h. */
17139_ACEOF
17140cat confdefs.h >>conftest.$ac_ext
17141cat >>conftest.$ac_ext <<_ACEOF
17142/* end confdefs.h. */
17143#include <$ac_header>
17144_ACEOF
17145if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17146 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17147 ac_status=$?
17148 grep -v '^ *+' conftest.er1 >conftest.err
17149 rm -f conftest.er1
17150 cat conftest.err >&5
17151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17152 (exit $ac_status); } >/dev/null; then
17153 if test -s conftest.err; then
5d7b7554
VZ
17154 ac_cpp_err=$ac_cxx_preproc_warn_flag
17155 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
17156 else
17157 ac_cpp_err=
17158 fi
17159else
17160 ac_cpp_err=yes
17161fi
17162if test -z "$ac_cpp_err"; then
17163 ac_header_preproc=yes
17164else
17165 echo "$as_me: failed program was:" >&5
17166sed 's/^/| /' conftest.$ac_ext >&5
17167
17168 ac_header_preproc=no
17169fi
17170rm -f conftest.err conftest.$ac_ext
17171echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17172echo "${ECHO_T}$ac_header_preproc" >&6
17173
17174# So? What about this header?
5d7b7554 17175case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
ac1cb8d3 17176 yes:no: )
a848cd7e
SC
17177 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17178echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
17179 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17180echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17181 ac_header_preproc=yes
a848cd7e 17182 ;;
ac1cb8d3 17183 no:yes:* )
a848cd7e
SC
17184 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17185echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
17186 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17187echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17188 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17189echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17190 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17191echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
17192 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17193echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
17194 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17195echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
17196 (
17197 cat <<\_ASBOX
ac1cb8d3
VS
17198## ----------------------------------------- ##
17199## Report this to wx-dev@lists.wxwidgets.org ##
17200## ----------------------------------------- ##
a848cd7e
SC
17201_ASBOX
17202 ) |
17203 sed "s/^/$as_me: WARNING: /" >&2
17204 ;;
17205esac
17206echo "$as_me:$LINENO: checking for $ac_header" >&5
17207echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17208if eval "test \"\${$as_ac_Header+set}\" = set"; then
17209 echo $ECHO_N "(cached) $ECHO_C" >&6
17210else
ac1cb8d3 17211 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
17212fi
17213echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17214echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17215
17216fi
17217if test `eval echo '${'$as_ac_Header'}'` = yes; then
17218 cat >>confdefs.h <<_ACEOF
17219#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17220_ACEOF
17221
17222fi
17223
17224done
17225
17226
a848cd7e
SC
17227
17228for ac_header in langinfo.h
17229do
17230as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17231if eval "test \"\${$as_ac_Header+set}\" = set"; then
17232 echo "$as_me:$LINENO: checking for $ac_header" >&5
17233echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17234if eval "test \"\${$as_ac_Header+set}\" = set"; then
17235 echo $ECHO_N "(cached) $ECHO_C" >&6
17236fi
17237echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17238echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17239else
17240 # Is the header compilable?
17241echo "$as_me:$LINENO: checking $ac_header usability" >&5
17242echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
17243cat >conftest.$ac_ext <<_ACEOF
17244/* confdefs.h. */
17245_ACEOF
17246cat confdefs.h >>conftest.$ac_ext
17247cat >>conftest.$ac_ext <<_ACEOF
17248/* end confdefs.h. */
17249$ac_includes_default
17250#include <$ac_header>
17251_ACEOF
17252rm -f conftest.$ac_objext
17253if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17254 (eval $ac_compile) 2>conftest.er1
a848cd7e 17255 ac_status=$?
ac1cb8d3
VS
17256 grep -v '^ *+' conftest.er1 >conftest.err
17257 rm -f conftest.er1
17258 cat conftest.err >&5
a848cd7e
SC
17259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17260 (exit $ac_status); } &&
3f60522a
JS
17261 { ac_try='test -z "$ac_cxx_werror_flag"
17262 || test ! -s conftest.err'
ac1cb8d3
VS
17263 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17264 (eval $ac_try) 2>&5
17265 ac_status=$?
17266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17267 (exit $ac_status); }; } &&
17268 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17269 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17270 (eval $ac_try) 2>&5
17271 ac_status=$?
17272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17273 (exit $ac_status); }; }; then
17274 ac_header_compiler=yes
17275else
17276 echo "$as_me: failed program was:" >&5
17277sed 's/^/| /' conftest.$ac_ext >&5
17278
17279ac_header_compiler=no
17280fi
ac1cb8d3 17281rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17282echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17283echo "${ECHO_T}$ac_header_compiler" >&6
17284
17285# Is the header present?
17286echo "$as_me:$LINENO: checking $ac_header presence" >&5
17287echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
17288cat >conftest.$ac_ext <<_ACEOF
17289/* confdefs.h. */
17290_ACEOF
17291cat confdefs.h >>conftest.$ac_ext
17292cat >>conftest.$ac_ext <<_ACEOF
17293/* end confdefs.h. */
17294#include <$ac_header>
17295_ACEOF
17296if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17297 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17298 ac_status=$?
17299 grep -v '^ *+' conftest.er1 >conftest.err
17300 rm -f conftest.er1
17301 cat conftest.err >&5
17302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17303 (exit $ac_status); } >/dev/null; then
17304 if test -s conftest.err; then
5d7b7554
VZ
17305 ac_cpp_err=$ac_cxx_preproc_warn_flag
17306 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
17307 else
17308 ac_cpp_err=
17309 fi
17310else
17311 ac_cpp_err=yes
17312fi
17313if test -z "$ac_cpp_err"; then
17314 ac_header_preproc=yes
17315else
17316 echo "$as_me: failed program was:" >&5
17317sed 's/^/| /' conftest.$ac_ext >&5
17318
17319 ac_header_preproc=no
17320fi
17321rm -f conftest.err conftest.$ac_ext
17322echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17323echo "${ECHO_T}$ac_header_preproc" >&6
17324
17325# So? What about this header?
5d7b7554 17326case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
ac1cb8d3 17327 yes:no: )
a848cd7e
SC
17328 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17329echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
17330 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17331echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17332 ac_header_preproc=yes
a848cd7e 17333 ;;
ac1cb8d3 17334 no:yes:* )
a848cd7e
SC
17335 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17336echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
17337 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17338echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17339 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17340echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17341 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17342echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
17343 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17344echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
17345 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17346echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
17347 (
17348 cat <<\_ASBOX
ac1cb8d3
VS
17349## ----------------------------------------- ##
17350## Report this to wx-dev@lists.wxwidgets.org ##
17351## ----------------------------------------- ##
a848cd7e
SC
17352_ASBOX
17353 ) |
17354 sed "s/^/$as_me: WARNING: /" >&2
17355 ;;
17356esac
17357echo "$as_me:$LINENO: checking for $ac_header" >&5
17358echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17359if eval "test \"\${$as_ac_Header+set}\" = set"; then
17360 echo $ECHO_N "(cached) $ECHO_C" >&6
17361else
ac1cb8d3 17362 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
17363fi
17364echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17365echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17366
17367fi
17368if test `eval echo '${'$as_ac_Header'}'` = yes; then
17369 cat >>confdefs.h <<_ACEOF
17370#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17371_ACEOF
17372
17373fi
17374
17375done
17376
17377
17378case "${host}" in
17379 *-pc-os2_emx | *-pc-os2-emx )
391a765e
VS
17380 if test $ac_cv_header_langinfo_h = "yes" \
17381 -a \( "$wx_cv_gccversion" = "EMX2" \
17382 -o "$wx_cv_gccversion" = "EMX3" \
17383 -o "$wx_cv_gccversion" = "Innotek5" \); then
a848cd7e
SC
17384 LIBS="$LIBS -lintl"
17385 fi
17386 ;;
17387esac
17388
a848cd7e
SC
17389
17390echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
17391echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
17392if test "${ac_cv_c_const+set}" = set; then
17393 echo $ECHO_N "(cached) $ECHO_C" >&6
17394else
17395 cat >conftest.$ac_ext <<_ACEOF
17396/* confdefs.h. */
17397_ACEOF
17398cat confdefs.h >>conftest.$ac_ext
17399cat >>conftest.$ac_ext <<_ACEOF
17400/* end confdefs.h. */
17401
17402int
17403main ()
17404{
17405/* FIXME: Include the comments suggested by Paul. */
17406#ifndef __cplusplus
17407 /* Ultrix mips cc rejects this. */
17408 typedef int charset[2];
17409 const charset x;
17410 /* SunOS 4.1.1 cc rejects this. */
17411 char const *const *ccp;
17412 char **p;
17413 /* NEC SVR4.0.2 mips cc rejects this. */
17414 struct point {int x, y;};
17415 static struct point const zero = {0,0};
17416 /* AIX XL C 1.02.0.0 rejects this.
17417 It does not let you subtract one const X* pointer from another in
17418 an arm of an if-expression whose if-part is not a constant
17419 expression */
17420 const char *g = "string";
17421 ccp = &g + (g ? g-g : 0);
17422 /* HPUX 7.0 cc rejects these. */
17423 ++ccp;
17424 p = (char**) ccp;
17425 ccp = (char const *const *) p;
17426 { /* SCO 3.2v4 cc rejects this. */
17427 char *t;
17428 char const *s = 0 ? (char *) 0 : (char const *) 0;
17429
17430 *t++ = 0;
17431 }
17432 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
17433 int x[] = {25, 17};
17434 const int *foo = &x[0];
17435 ++foo;
17436 }
17437 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
17438 typedef const int *iptr;
17439 iptr p = 0;
17440 ++p;
17441 }
17442 { /* AIX XL C 1.02.0.0 rejects this saying
17443 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
17444 struct s { int j; const int *ap[3]; };
17445 struct s *b; b->j = 5;
17446 }
17447 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
17448 const int foo = 10;
17449 }
17450#endif
17451
17452 ;
17453 return 0;
17454}
17455_ACEOF
17456rm -f conftest.$ac_objext
17457if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17458 (eval $ac_compile) 2>conftest.er1
a848cd7e 17459 ac_status=$?
ac1cb8d3
VS
17460 grep -v '^ *+' conftest.er1 >conftest.err
17461 rm -f conftest.er1
17462 cat conftest.err >&5
a848cd7e
SC
17463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17464 (exit $ac_status); } &&
3f60522a
JS
17465 { ac_try='test -z "$ac_cxx_werror_flag"
17466 || test ! -s conftest.err'
ac1cb8d3
VS
17467 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17468 (eval $ac_try) 2>&5
17469 ac_status=$?
17470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17471 (exit $ac_status); }; } &&
17472 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17473 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17474 (eval $ac_try) 2>&5
17475 ac_status=$?
17476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17477 (exit $ac_status); }; }; then
17478 ac_cv_c_const=yes
17479else
17480 echo "$as_me: failed program was:" >&5
17481sed 's/^/| /' conftest.$ac_ext >&5
17482
17483ac_cv_c_const=no
17484fi
ac1cb8d3 17485rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17486fi
17487echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
17488echo "${ECHO_T}$ac_cv_c_const" >&6
17489if test $ac_cv_c_const = no; then
17490
17491cat >>confdefs.h <<\_ACEOF
17492#define const
17493_ACEOF
17494
17495fi
17496
17497echo "$as_me:$LINENO: checking for inline" >&5
17498echo $ECHO_N "checking for inline... $ECHO_C" >&6
17499if test "${ac_cv_c_inline+set}" = set; then
17500 echo $ECHO_N "(cached) $ECHO_C" >&6
17501else
17502 ac_cv_c_inline=no
17503for ac_kw in inline __inline__ __inline; do
17504 cat >conftest.$ac_ext <<_ACEOF
17505/* confdefs.h. */
17506_ACEOF
17507cat confdefs.h >>conftest.$ac_ext
17508cat >>conftest.$ac_ext <<_ACEOF
17509/* end confdefs.h. */
17510#ifndef __cplusplus
17511typedef int foo_t;
17512static $ac_kw foo_t static_foo () {return 0; }
17513$ac_kw foo_t foo () {return 0; }
17514#endif
17515
17516_ACEOF
17517rm -f conftest.$ac_objext
17518if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17519 (eval $ac_compile) 2>conftest.er1
a848cd7e 17520 ac_status=$?
ac1cb8d3
VS
17521 grep -v '^ *+' conftest.er1 >conftest.err
17522 rm -f conftest.er1
17523 cat conftest.err >&5
a848cd7e
SC
17524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17525 (exit $ac_status); } &&
3f60522a
JS
17526 { ac_try='test -z "$ac_cxx_werror_flag"
17527 || test ! -s conftest.err'
ac1cb8d3
VS
17528 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17529 (eval $ac_try) 2>&5
17530 ac_status=$?
17531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17532 (exit $ac_status); }; } &&
17533 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17534 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17535 (eval $ac_try) 2>&5
17536 ac_status=$?
17537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17538 (exit $ac_status); }; }; then
17539 ac_cv_c_inline=$ac_kw; break
17540else
17541 echo "$as_me: failed program was:" >&5
17542sed 's/^/| /' conftest.$ac_ext >&5
17543
17544fi
ac1cb8d3 17545rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17546done
17547
17548fi
17549echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
17550echo "${ECHO_T}$ac_cv_c_inline" >&6
ac1cb8d3
VS
17551
17552
a848cd7e
SC
17553case $ac_cv_c_inline in
17554 inline | yes) ;;
ac1cb8d3
VS
17555 *)
17556 case $ac_cv_c_inline in
17557 no) ac_val=;;
17558 *) ac_val=$ac_cv_c_inline;;
17559 esac
17560 cat >>confdefs.h <<_ACEOF
17561#ifndef __cplusplus
17562#define inline $ac_val
17563#endif
de59c161 17564_ACEOF
ac1cb8d3 17565 ;;
a848cd7e
SC
17566esac
17567
17568
17569echo "$as_me:$LINENO: checking for char" >&5
17570echo $ECHO_N "checking for char... $ECHO_C" >&6
17571if test "${ac_cv_type_char+set}" = set; then
17572 echo $ECHO_N "(cached) $ECHO_C" >&6
17573else
17574 cat >conftest.$ac_ext <<_ACEOF
17575/* confdefs.h. */
17576_ACEOF
17577cat confdefs.h >>conftest.$ac_ext
17578cat >>conftest.$ac_ext <<_ACEOF
17579/* end confdefs.h. */
17580$ac_includes_default
17581int
17582main ()
17583{
17584if ((char *) 0)
17585 return 0;
17586if (sizeof (char))
17587 return 0;
17588 ;
17589 return 0;
17590}
17591_ACEOF
17592rm -f conftest.$ac_objext
17593if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17594 (eval $ac_compile) 2>conftest.er1
a848cd7e 17595 ac_status=$?
ac1cb8d3
VS
17596 grep -v '^ *+' conftest.er1 >conftest.err
17597 rm -f conftest.er1
17598 cat conftest.err >&5
a848cd7e
SC
17599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17600 (exit $ac_status); } &&
3f60522a
JS
17601 { ac_try='test -z "$ac_cxx_werror_flag"
17602 || test ! -s conftest.err'
ac1cb8d3
VS
17603 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17604 (eval $ac_try) 2>&5
17605 ac_status=$?
17606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17607 (exit $ac_status); }; } &&
17608 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17609 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17610 (eval $ac_try) 2>&5
17611 ac_status=$?
17612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17613 (exit $ac_status); }; }; then
17614 ac_cv_type_char=yes
17615else
17616 echo "$as_me: failed program was:" >&5
17617sed 's/^/| /' conftest.$ac_ext >&5
17618
17619ac_cv_type_char=no
17620fi
ac1cb8d3 17621rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17622fi
17623echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
17624echo "${ECHO_T}$ac_cv_type_char" >&6
17625
17626echo "$as_me:$LINENO: checking size of char" >&5
17627echo $ECHO_N "checking size of char... $ECHO_C" >&6
17628if test "${ac_cv_sizeof_char+set}" = set; then
17629 echo $ECHO_N "(cached) $ECHO_C" >&6
17630else
17631 if test "$ac_cv_type_char" = yes; then
17632 # The cast to unsigned long works around a bug in the HP C Compiler
17633 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
17634 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
17635 # This bug is HP SR number 8606223364.
17636 if test "$cross_compiling" = yes; then
17637 # Depending upon the size, compute the lo and hi bounds.
17638cat >conftest.$ac_ext <<_ACEOF
17639/* confdefs.h. */
17640_ACEOF
17641cat confdefs.h >>conftest.$ac_ext
17642cat >>conftest.$ac_ext <<_ACEOF
17643/* end confdefs.h. */
17644$ac_includes_default
17645int
17646main ()
17647{
17648static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)];
17649test_array [0] = 0
17650
17651 ;
17652 return 0;
17653}
17654_ACEOF
17655rm -f conftest.$ac_objext
17656if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17657 (eval $ac_compile) 2>conftest.er1
a848cd7e 17658 ac_status=$?
ac1cb8d3
VS
17659 grep -v '^ *+' conftest.er1 >conftest.err
17660 rm -f conftest.er1
17661 cat conftest.err >&5
a848cd7e
SC
17662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17663 (exit $ac_status); } &&
3f60522a
JS
17664 { ac_try='test -z "$ac_cxx_werror_flag"
17665 || test ! -s conftest.err'
ac1cb8d3
VS
17666 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17667 (eval $ac_try) 2>&5
17668 ac_status=$?
17669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17670 (exit $ac_status); }; } &&
17671 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17672 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17673 (eval $ac_try) 2>&5
17674 ac_status=$?
17675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17676 (exit $ac_status); }; }; then
17677 ac_lo=0 ac_mid=0
17678 while :; do
17679 cat >conftest.$ac_ext <<_ACEOF
17680/* confdefs.h. */
17681_ACEOF
17682cat confdefs.h >>conftest.$ac_ext
17683cat >>conftest.$ac_ext <<_ACEOF
17684/* end confdefs.h. */
17685$ac_includes_default
17686int
17687main ()
17688{
17689static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
17690test_array [0] = 0
17691
17692 ;
17693 return 0;
17694}
17695_ACEOF
17696rm -f conftest.$ac_objext
17697if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17698 (eval $ac_compile) 2>conftest.er1
a848cd7e 17699 ac_status=$?
ac1cb8d3
VS
17700 grep -v '^ *+' conftest.er1 >conftest.err
17701 rm -f conftest.er1
17702 cat conftest.err >&5
a848cd7e
SC
17703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17704 (exit $ac_status); } &&
3f60522a
JS
17705 { ac_try='test -z "$ac_cxx_werror_flag"
17706 || test ! -s conftest.err'
ac1cb8d3
VS
17707 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17708 (eval $ac_try) 2>&5
17709 ac_status=$?
17710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17711 (exit $ac_status); }; } &&
17712 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17713 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17714 (eval $ac_try) 2>&5
17715 ac_status=$?
17716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17717 (exit $ac_status); }; }; then
17718 ac_hi=$ac_mid; break
17719else
17720 echo "$as_me: failed program was:" >&5
17721sed 's/^/| /' conftest.$ac_ext >&5
17722
17723ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
17724 if test $ac_lo -le $ac_mid; then
17725 ac_lo= ac_hi=
17726 break
17727 fi
17728 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 17729fi
ac1cb8d3 17730rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17731 done
17732else
17733 echo "$as_me: failed program was:" >&5
17734sed 's/^/| /' conftest.$ac_ext >&5
17735
17736cat >conftest.$ac_ext <<_ACEOF
17737/* confdefs.h. */
17738_ACEOF
17739cat confdefs.h >>conftest.$ac_ext
17740cat >>conftest.$ac_ext <<_ACEOF
17741/* end confdefs.h. */
17742$ac_includes_default
17743int
17744main ()
17745{
17746static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)];
17747test_array [0] = 0
17748
17749 ;
17750 return 0;
17751}
17752_ACEOF
17753rm -f conftest.$ac_objext
17754if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17755 (eval $ac_compile) 2>conftest.er1
a848cd7e 17756 ac_status=$?
ac1cb8d3
VS
17757 grep -v '^ *+' conftest.er1 >conftest.err
17758 rm -f conftest.er1
17759 cat conftest.err >&5
a848cd7e
SC
17760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17761 (exit $ac_status); } &&
3f60522a
JS
17762 { ac_try='test -z "$ac_cxx_werror_flag"
17763 || test ! -s conftest.err'
ac1cb8d3
VS
17764 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17765 (eval $ac_try) 2>&5
17766 ac_status=$?
17767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17768 (exit $ac_status); }; } &&
17769 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17770 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17771 (eval $ac_try) 2>&5
17772 ac_status=$?
17773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17774 (exit $ac_status); }; }; then
17775 ac_hi=-1 ac_mid=-1
17776 while :; do
17777 cat >conftest.$ac_ext <<_ACEOF
17778/* confdefs.h. */
17779_ACEOF
17780cat confdefs.h >>conftest.$ac_ext
17781cat >>conftest.$ac_ext <<_ACEOF
17782/* end confdefs.h. */
17783$ac_includes_default
17784int
17785main ()
17786{
17787static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)];
17788test_array [0] = 0
17789
17790 ;
17791 return 0;
17792}
17793_ACEOF
17794rm -f conftest.$ac_objext
17795if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17796 (eval $ac_compile) 2>conftest.er1
a848cd7e 17797 ac_status=$?
ac1cb8d3
VS
17798 grep -v '^ *+' conftest.er1 >conftest.err
17799 rm -f conftest.er1
17800 cat conftest.err >&5
a848cd7e
SC
17801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17802 (exit $ac_status); } &&
3f60522a
JS
17803 { ac_try='test -z "$ac_cxx_werror_flag"
17804 || test ! -s conftest.err'
ac1cb8d3
VS
17805 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17806 (eval $ac_try) 2>&5
17807 ac_status=$?
17808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17809 (exit $ac_status); }; } &&
17810 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17811 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17812 (eval $ac_try) 2>&5
17813 ac_status=$?
17814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17815 (exit $ac_status); }; }; then
17816 ac_lo=$ac_mid; break
17817else
17818 echo "$as_me: failed program was:" >&5
17819sed 's/^/| /' conftest.$ac_ext >&5
17820
17821ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
17822 if test $ac_mid -le $ac_hi; then
17823 ac_lo= ac_hi=
17824 break
17825 fi
17826 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 17827fi
ac1cb8d3 17828rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17829 done
17830else
17831 echo "$as_me: failed program was:" >&5
17832sed 's/^/| /' conftest.$ac_ext >&5
17833
17834ac_lo= ac_hi=
17835fi
ac1cb8d3 17836rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 17837fi
ac1cb8d3 17838rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17839# Binary search between lo and hi bounds.
17840while test "x$ac_lo" != "x$ac_hi"; do
17841 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
17842 cat >conftest.$ac_ext <<_ACEOF
17843/* confdefs.h. */
17844_ACEOF
17845cat confdefs.h >>conftest.$ac_ext
17846cat >>conftest.$ac_ext <<_ACEOF
17847/* end confdefs.h. */
17848$ac_includes_default
17849int
17850main ()
17851{
17852static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
17853test_array [0] = 0
17854
17855 ;
17856 return 0;
17857}
17858_ACEOF
17859rm -f conftest.$ac_objext
17860if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17861 (eval $ac_compile) 2>conftest.er1
a848cd7e 17862 ac_status=$?
ac1cb8d3
VS
17863 grep -v '^ *+' conftest.er1 >conftest.err
17864 rm -f conftest.er1
17865 cat conftest.err >&5
a848cd7e
SC
17866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17867 (exit $ac_status); } &&
3f60522a
JS
17868 { ac_try='test -z "$ac_cxx_werror_flag"
17869 || test ! -s conftest.err'
ac1cb8d3
VS
17870 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17871 (eval $ac_try) 2>&5
17872 ac_status=$?
17873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17874 (exit $ac_status); }; } &&
17875 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17876 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17877 (eval $ac_try) 2>&5
17878 ac_status=$?
17879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17880 (exit $ac_status); }; }; then
17881 ac_hi=$ac_mid
17882else
17883 echo "$as_me: failed program was:" >&5
17884sed 's/^/| /' conftest.$ac_ext >&5
17885
17886ac_lo=`expr '(' $ac_mid ')' + 1`
17887fi
ac1cb8d3 17888rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17889done
17890case $ac_lo in
17891?*) ac_cv_sizeof_char=$ac_lo;;
17892'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
17893See \`config.log' for more details." >&5
17894echo "$as_me: error: cannot compute sizeof (char), 77
17895See \`config.log' for more details." >&2;}
17896 { (exit 1); exit 1; }; } ;;
17897esac
17898else
17899 if test "$cross_compiling" = yes; then
3f60522a
JS
17900 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
17901See \`config.log' for more details." >&5
17902echo "$as_me: error: cannot run test program while cross compiling
17903See \`config.log' for more details." >&2;}
a848cd7e
SC
17904 { (exit 1); exit 1; }; }
17905else
17906 cat >conftest.$ac_ext <<_ACEOF
17907/* confdefs.h. */
17908_ACEOF
17909cat confdefs.h >>conftest.$ac_ext
17910cat >>conftest.$ac_ext <<_ACEOF
17911/* end confdefs.h. */
17912$ac_includes_default
17913long longval () { return (long) (sizeof (char)); }
17914unsigned long ulongval () { return (long) (sizeof (char)); }
17915#include <stdio.h>
17916#include <stdlib.h>
17917int
17918main ()
17919{
17920
17921 FILE *f = fopen ("conftest.val", "w");
17922 if (! f)
17923 exit (1);
17924 if (((long) (sizeof (char))) < 0)
17925 {
17926 long i = longval ();
17927 if (i != ((long) (sizeof (char))))
17928 exit (1);
17929 fprintf (f, "%ld\n", i);
17930 }
17931 else
17932 {
17933 unsigned long i = ulongval ();
17934 if (i != ((long) (sizeof (char))))
17935 exit (1);
17936 fprintf (f, "%lu\n", i);
17937 }
17938 exit (ferror (f) || fclose (f) != 0);
17939
17940 ;
17941 return 0;
17942}
17943_ACEOF
17944rm -f conftest$ac_exeext
17945if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17946 (eval $ac_link) 2>&5
17947 ac_status=$?
17948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17949 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17950 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17951 (eval $ac_try) 2>&5
17952 ac_status=$?
17953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17954 (exit $ac_status); }; }; then
17955 ac_cv_sizeof_char=`cat conftest.val`
17956else
17957 echo "$as_me: program exited with status $ac_status" >&5
17958echo "$as_me: failed program was:" >&5
17959sed 's/^/| /' conftest.$ac_ext >&5
17960
17961( exit $ac_status )
17962{ { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
17963See \`config.log' for more details." >&5
17964echo "$as_me: error: cannot compute sizeof (char), 77
17965See \`config.log' for more details." >&2;}
17966 { (exit 1); exit 1; }; }
17967fi
ac1cb8d3 17968rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17969fi
17970fi
17971rm -f conftest.val
17972else
17973 ac_cv_sizeof_char=0
17974fi
17975fi
17976echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
17977echo "${ECHO_T}$ac_cv_sizeof_char" >&6
17978cat >>confdefs.h <<_ACEOF
17979#define SIZEOF_CHAR $ac_cv_sizeof_char
17980_ACEOF
17981
17982
17983echo "$as_me:$LINENO: checking for short" >&5
17984echo $ECHO_N "checking for short... $ECHO_C" >&6
17985if test "${ac_cv_type_short+set}" = set; then
17986 echo $ECHO_N "(cached) $ECHO_C" >&6
17987else
17988 cat >conftest.$ac_ext <<_ACEOF
17989/* confdefs.h. */
17990_ACEOF
17991cat confdefs.h >>conftest.$ac_ext
17992cat >>conftest.$ac_ext <<_ACEOF
17993/* end confdefs.h. */
17994$ac_includes_default
17995int
17996main ()
17997{
17998if ((short *) 0)
17999 return 0;
18000if (sizeof (short))
18001 return 0;
18002 ;
18003 return 0;
18004}
18005_ACEOF
18006rm -f conftest.$ac_objext
18007if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18008 (eval $ac_compile) 2>conftest.er1
a848cd7e 18009 ac_status=$?
ac1cb8d3
VS
18010 grep -v '^ *+' conftest.er1 >conftest.err
18011 rm -f conftest.er1
18012 cat conftest.err >&5
a848cd7e
SC
18013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18014 (exit $ac_status); } &&
3f60522a
JS
18015 { ac_try='test -z "$ac_cxx_werror_flag"
18016 || test ! -s conftest.err'
ac1cb8d3
VS
18017 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18018 (eval $ac_try) 2>&5
18019 ac_status=$?
18020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18021 (exit $ac_status); }; } &&
18022 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18023 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18024 (eval $ac_try) 2>&5
18025 ac_status=$?
18026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18027 (exit $ac_status); }; }; then
18028 ac_cv_type_short=yes
18029else
18030 echo "$as_me: failed program was:" >&5
18031sed 's/^/| /' conftest.$ac_ext >&5
18032
18033ac_cv_type_short=no
18034fi
ac1cb8d3 18035rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18036fi
18037echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
18038echo "${ECHO_T}$ac_cv_type_short" >&6
18039
18040echo "$as_me:$LINENO: checking size of short" >&5
18041echo $ECHO_N "checking size of short... $ECHO_C" >&6
18042if test "${ac_cv_sizeof_short+set}" = set; then
18043 echo $ECHO_N "(cached) $ECHO_C" >&6
18044else
18045 if test "$ac_cv_type_short" = yes; then
18046 # The cast to unsigned long works around a bug in the HP C Compiler
18047 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
18048 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
18049 # This bug is HP SR number 8606223364.
18050 if test "$cross_compiling" = yes; then
18051 # Depending upon the size, compute the lo and hi bounds.
18052cat >conftest.$ac_ext <<_ACEOF
18053/* confdefs.h. */
18054_ACEOF
18055cat confdefs.h >>conftest.$ac_ext
18056cat >>conftest.$ac_ext <<_ACEOF
18057/* end confdefs.h. */
18058$ac_includes_default
18059int
18060main ()
18061{
18062static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
18063test_array [0] = 0
18064
18065 ;
18066 return 0;
18067}
18068_ACEOF
18069rm -f conftest.$ac_objext
18070if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18071 (eval $ac_compile) 2>conftest.er1
a848cd7e 18072 ac_status=$?
ac1cb8d3
VS
18073 grep -v '^ *+' conftest.er1 >conftest.err
18074 rm -f conftest.er1
18075 cat conftest.err >&5
a848cd7e
SC
18076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18077 (exit $ac_status); } &&
3f60522a
JS
18078 { ac_try='test -z "$ac_cxx_werror_flag"
18079 || test ! -s conftest.err'
ac1cb8d3
VS
18080 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18081 (eval $ac_try) 2>&5
18082 ac_status=$?
18083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18084 (exit $ac_status); }; } &&
18085 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18086 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18087 (eval $ac_try) 2>&5
18088 ac_status=$?
18089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18090 (exit $ac_status); }; }; then
18091 ac_lo=0 ac_mid=0
18092 while :; do
18093 cat >conftest.$ac_ext <<_ACEOF
18094/* confdefs.h. */
18095_ACEOF
18096cat confdefs.h >>conftest.$ac_ext
18097cat >>conftest.$ac_ext <<_ACEOF
18098/* end confdefs.h. */
18099$ac_includes_default
18100int
18101main ()
18102{
18103static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
18104test_array [0] = 0
18105
18106 ;
18107 return 0;
18108}
18109_ACEOF
18110rm -f conftest.$ac_objext
18111if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18112 (eval $ac_compile) 2>conftest.er1
a848cd7e 18113 ac_status=$?
ac1cb8d3
VS
18114 grep -v '^ *+' conftest.er1 >conftest.err
18115 rm -f conftest.er1
18116 cat conftest.err >&5
a848cd7e
SC
18117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18118 (exit $ac_status); } &&
3f60522a
JS
18119 { ac_try='test -z "$ac_cxx_werror_flag"
18120 || test ! -s conftest.err'
ac1cb8d3
VS
18121 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18122 (eval $ac_try) 2>&5
18123 ac_status=$?
18124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18125 (exit $ac_status); }; } &&
18126 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18127 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18128 (eval $ac_try) 2>&5
18129 ac_status=$?
18130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18131 (exit $ac_status); }; }; then
18132 ac_hi=$ac_mid; break
18133else
18134 echo "$as_me: failed program was:" >&5
18135sed 's/^/| /' conftest.$ac_ext >&5
18136
18137ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
18138 if test $ac_lo -le $ac_mid; then
18139 ac_lo= ac_hi=
18140 break
18141 fi
18142 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 18143fi
ac1cb8d3 18144rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18145 done
18146else
18147 echo "$as_me: failed program was:" >&5
18148sed 's/^/| /' conftest.$ac_ext >&5
18149
18150cat >conftest.$ac_ext <<_ACEOF
18151/* confdefs.h. */
18152_ACEOF
18153cat confdefs.h >>conftest.$ac_ext
18154cat >>conftest.$ac_ext <<_ACEOF
18155/* end confdefs.h. */
18156$ac_includes_default
18157int
18158main ()
18159{
18160static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
18161test_array [0] = 0
18162
18163 ;
18164 return 0;
18165}
18166_ACEOF
18167rm -f conftest.$ac_objext
18168if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18169 (eval $ac_compile) 2>conftest.er1
a848cd7e 18170 ac_status=$?
ac1cb8d3
VS
18171 grep -v '^ *+' conftest.er1 >conftest.err
18172 rm -f conftest.er1
18173 cat conftest.err >&5
a848cd7e
SC
18174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18175 (exit $ac_status); } &&
3f60522a
JS
18176 { ac_try='test -z "$ac_cxx_werror_flag"
18177 || test ! -s conftest.err'
ac1cb8d3
VS
18178 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18179 (eval $ac_try) 2>&5
18180 ac_status=$?
18181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18182 (exit $ac_status); }; } &&
18183 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18184 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18185 (eval $ac_try) 2>&5
18186 ac_status=$?
18187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18188 (exit $ac_status); }; }; then
18189 ac_hi=-1 ac_mid=-1
18190 while :; do
18191 cat >conftest.$ac_ext <<_ACEOF
18192/* confdefs.h. */
18193_ACEOF
18194cat confdefs.h >>conftest.$ac_ext
18195cat >>conftest.$ac_ext <<_ACEOF
18196/* end confdefs.h. */
18197$ac_includes_default
18198int
18199main ()
18200{
18201static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
18202test_array [0] = 0
18203
18204 ;
18205 return 0;
18206}
18207_ACEOF
18208rm -f conftest.$ac_objext
18209if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18210 (eval $ac_compile) 2>conftest.er1
a848cd7e 18211 ac_status=$?
ac1cb8d3
VS
18212 grep -v '^ *+' conftest.er1 >conftest.err
18213 rm -f conftest.er1
18214 cat conftest.err >&5
a848cd7e
SC
18215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18216 (exit $ac_status); } &&
3f60522a
JS
18217 { ac_try='test -z "$ac_cxx_werror_flag"
18218 || test ! -s conftest.err'
ac1cb8d3
VS
18219 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18220 (eval $ac_try) 2>&5
18221 ac_status=$?
18222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18223 (exit $ac_status); }; } &&
18224 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18225 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18226 (eval $ac_try) 2>&5
18227 ac_status=$?
18228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18229 (exit $ac_status); }; }; then
18230 ac_lo=$ac_mid; break
18231else
18232 echo "$as_me: failed program was:" >&5
18233sed 's/^/| /' conftest.$ac_ext >&5
18234
18235ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
18236 if test $ac_mid -le $ac_hi; then
18237 ac_lo= ac_hi=
18238 break
18239 fi
18240 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 18241fi
ac1cb8d3 18242rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18243 done
18244else
18245 echo "$as_me: failed program was:" >&5
18246sed 's/^/| /' conftest.$ac_ext >&5
18247
18248ac_lo= ac_hi=
18249fi
ac1cb8d3 18250rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 18251fi
ac1cb8d3 18252rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18253# Binary search between lo and hi bounds.
18254while test "x$ac_lo" != "x$ac_hi"; do
18255 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
18256 cat >conftest.$ac_ext <<_ACEOF
18257/* confdefs.h. */
18258_ACEOF
18259cat confdefs.h >>conftest.$ac_ext
18260cat >>conftest.$ac_ext <<_ACEOF
18261/* end confdefs.h. */
18262$ac_includes_default
18263int
18264main ()
18265{
18266static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
18267test_array [0] = 0
18268
18269 ;
18270 return 0;
18271}
18272_ACEOF
18273rm -f conftest.$ac_objext
18274if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18275 (eval $ac_compile) 2>conftest.er1
a848cd7e 18276 ac_status=$?
ac1cb8d3
VS
18277 grep -v '^ *+' conftest.er1 >conftest.err
18278 rm -f conftest.er1
18279 cat conftest.err >&5
a848cd7e
SC
18280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18281 (exit $ac_status); } &&
3f60522a
JS
18282 { ac_try='test -z "$ac_cxx_werror_flag"
18283 || test ! -s conftest.err'
ac1cb8d3
VS
18284 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18285 (eval $ac_try) 2>&5
18286 ac_status=$?
18287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18288 (exit $ac_status); }; } &&
18289 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18290 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18291 (eval $ac_try) 2>&5
18292 ac_status=$?
18293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18294 (exit $ac_status); }; }; then
18295 ac_hi=$ac_mid
18296else
18297 echo "$as_me: failed program was:" >&5
18298sed 's/^/| /' conftest.$ac_ext >&5
18299
18300ac_lo=`expr '(' $ac_mid ')' + 1`
18301fi
ac1cb8d3 18302rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18303done
18304case $ac_lo in
18305?*) ac_cv_sizeof_short=$ac_lo;;
18306'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
18307See \`config.log' for more details." >&5
18308echo "$as_me: error: cannot compute sizeof (short), 77
18309See \`config.log' for more details." >&2;}
18310 { (exit 1); exit 1; }; } ;;
18311esac
18312else
18313 if test "$cross_compiling" = yes; then
3f60522a
JS
18314 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
18315See \`config.log' for more details." >&5
18316echo "$as_me: error: cannot run test program while cross compiling
18317See \`config.log' for more details." >&2;}
a848cd7e
SC
18318 { (exit 1); exit 1; }; }
18319else
18320 cat >conftest.$ac_ext <<_ACEOF
18321/* confdefs.h. */
18322_ACEOF
18323cat confdefs.h >>conftest.$ac_ext
18324cat >>conftest.$ac_ext <<_ACEOF
18325/* end confdefs.h. */
18326$ac_includes_default
18327long longval () { return (long) (sizeof (short)); }
18328unsigned long ulongval () { return (long) (sizeof (short)); }
18329#include <stdio.h>
18330#include <stdlib.h>
18331int
18332main ()
18333{
18334
18335 FILE *f = fopen ("conftest.val", "w");
18336 if (! f)
18337 exit (1);
18338 if (((long) (sizeof (short))) < 0)
18339 {
18340 long i = longval ();
18341 if (i != ((long) (sizeof (short))))
18342 exit (1);
18343 fprintf (f, "%ld\n", i);
18344 }
18345 else
18346 {
18347 unsigned long i = ulongval ();
18348 if (i != ((long) (sizeof (short))))
18349 exit (1);
18350 fprintf (f, "%lu\n", i);
18351 }
18352 exit (ferror (f) || fclose (f) != 0);
18353
18354 ;
18355 return 0;
18356}
18357_ACEOF
18358rm -f conftest$ac_exeext
18359if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18360 (eval $ac_link) 2>&5
18361 ac_status=$?
18362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18363 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18364 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18365 (eval $ac_try) 2>&5
18366 ac_status=$?
18367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18368 (exit $ac_status); }; }; then
18369 ac_cv_sizeof_short=`cat conftest.val`
18370else
18371 echo "$as_me: program exited with status $ac_status" >&5
18372echo "$as_me: failed program was:" >&5
18373sed 's/^/| /' conftest.$ac_ext >&5
18374
18375( exit $ac_status )
18376{ { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
18377See \`config.log' for more details." >&5
18378echo "$as_me: error: cannot compute sizeof (short), 77
18379See \`config.log' for more details." >&2;}
18380 { (exit 1); exit 1; }; }
18381fi
ac1cb8d3 18382rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18383fi
18384fi
18385rm -f conftest.val
18386else
18387 ac_cv_sizeof_short=0
18388fi
18389fi
18390echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
18391echo "${ECHO_T}$ac_cv_sizeof_short" >&6
18392cat >>confdefs.h <<_ACEOF
18393#define SIZEOF_SHORT $ac_cv_sizeof_short
18394_ACEOF
18395
18396
18397echo "$as_me:$LINENO: checking for void *" >&5
18398echo $ECHO_N "checking for void *... $ECHO_C" >&6
18399if test "${ac_cv_type_void_p+set}" = set; then
18400 echo $ECHO_N "(cached) $ECHO_C" >&6
18401else
18402 cat >conftest.$ac_ext <<_ACEOF
18403/* confdefs.h. */
18404_ACEOF
18405cat confdefs.h >>conftest.$ac_ext
18406cat >>conftest.$ac_ext <<_ACEOF
18407/* end confdefs.h. */
18408$ac_includes_default
18409int
18410main ()
18411{
18412if ((void * *) 0)
18413 return 0;
18414if (sizeof (void *))
18415 return 0;
18416 ;
18417 return 0;
18418}
18419_ACEOF
18420rm -f conftest.$ac_objext
18421if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18422 (eval $ac_compile) 2>conftest.er1
a848cd7e 18423 ac_status=$?
ac1cb8d3
VS
18424 grep -v '^ *+' conftest.er1 >conftest.err
18425 rm -f conftest.er1
18426 cat conftest.err >&5
a848cd7e
SC
18427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18428 (exit $ac_status); } &&
3f60522a
JS
18429 { ac_try='test -z "$ac_cxx_werror_flag"
18430 || test ! -s conftest.err'
ac1cb8d3
VS
18431 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18432 (eval $ac_try) 2>&5
18433 ac_status=$?
18434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18435 (exit $ac_status); }; } &&
18436 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18437 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18438 (eval $ac_try) 2>&5
18439 ac_status=$?
18440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18441 (exit $ac_status); }; }; then
18442 ac_cv_type_void_p=yes
18443else
18444 echo "$as_me: failed program was:" >&5
18445sed 's/^/| /' conftest.$ac_ext >&5
18446
18447ac_cv_type_void_p=no
18448fi
ac1cb8d3 18449rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18450fi
18451echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
18452echo "${ECHO_T}$ac_cv_type_void_p" >&6
18453
18454echo "$as_me:$LINENO: checking size of void *" >&5
18455echo $ECHO_N "checking size of void *... $ECHO_C" >&6
18456if test "${ac_cv_sizeof_void_p+set}" = set; then
18457 echo $ECHO_N "(cached) $ECHO_C" >&6
18458else
18459 if test "$ac_cv_type_void_p" = yes; then
18460 # The cast to unsigned long works around a bug in the HP C Compiler
18461 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
18462 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
18463 # This bug is HP SR number 8606223364.
18464 if test "$cross_compiling" = yes; then
18465 # Depending upon the size, compute the lo and hi bounds.
18466cat >conftest.$ac_ext <<_ACEOF
18467/* confdefs.h. */
18468_ACEOF
18469cat confdefs.h >>conftest.$ac_ext
18470cat >>conftest.$ac_ext <<_ACEOF
18471/* end confdefs.h. */
18472$ac_includes_default
18473int
18474main ()
18475{
18476static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)];
18477test_array [0] = 0
18478
18479 ;
18480 return 0;
18481}
18482_ACEOF
18483rm -f conftest.$ac_objext
18484if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18485 (eval $ac_compile) 2>conftest.er1
a848cd7e 18486 ac_status=$?
ac1cb8d3
VS
18487 grep -v '^ *+' conftest.er1 >conftest.err
18488 rm -f conftest.er1
18489 cat conftest.err >&5
a848cd7e
SC
18490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18491 (exit $ac_status); } &&
3f60522a
JS
18492 { ac_try='test -z "$ac_cxx_werror_flag"
18493 || test ! -s conftest.err'
ac1cb8d3
VS
18494 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18495 (eval $ac_try) 2>&5
18496 ac_status=$?
18497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18498 (exit $ac_status); }; } &&
18499 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18500 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18501 (eval $ac_try) 2>&5
18502 ac_status=$?
18503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18504 (exit $ac_status); }; }; then
18505 ac_lo=0 ac_mid=0
18506 while :; do
18507 cat >conftest.$ac_ext <<_ACEOF
18508/* confdefs.h. */
18509_ACEOF
18510cat confdefs.h >>conftest.$ac_ext
18511cat >>conftest.$ac_ext <<_ACEOF
18512/* end confdefs.h. */
18513$ac_includes_default
18514int
18515main ()
18516{
18517static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
18518test_array [0] = 0
18519
18520 ;
18521 return 0;
18522}
18523_ACEOF
18524rm -f conftest.$ac_objext
18525if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18526 (eval $ac_compile) 2>conftest.er1
a848cd7e 18527 ac_status=$?
ac1cb8d3
VS
18528 grep -v '^ *+' conftest.er1 >conftest.err
18529 rm -f conftest.er1
18530 cat conftest.err >&5
a848cd7e
SC
18531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18532 (exit $ac_status); } &&
3f60522a
JS
18533 { ac_try='test -z "$ac_cxx_werror_flag"
18534 || test ! -s conftest.err'
ac1cb8d3
VS
18535 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18536 (eval $ac_try) 2>&5
18537 ac_status=$?
18538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18539 (exit $ac_status); }; } &&
18540 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18541 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18542 (eval $ac_try) 2>&5
18543 ac_status=$?
18544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18545 (exit $ac_status); }; }; then
18546 ac_hi=$ac_mid; break
18547else
18548 echo "$as_me: failed program was:" >&5
18549sed 's/^/| /' conftest.$ac_ext >&5
18550
18551ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
18552 if test $ac_lo -le $ac_mid; then
18553 ac_lo= ac_hi=
18554 break
18555 fi
18556 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 18557fi
ac1cb8d3 18558rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18559 done
18560else
18561 echo "$as_me: failed program was:" >&5
18562sed 's/^/| /' conftest.$ac_ext >&5
18563
18564cat >conftest.$ac_ext <<_ACEOF
18565/* confdefs.h. */
18566_ACEOF
18567cat confdefs.h >>conftest.$ac_ext
18568cat >>conftest.$ac_ext <<_ACEOF
18569/* end confdefs.h. */
18570$ac_includes_default
18571int
18572main ()
18573{
18574static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)];
18575test_array [0] = 0
18576
18577 ;
18578 return 0;
18579}
18580_ACEOF
18581rm -f conftest.$ac_objext
18582if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18583 (eval $ac_compile) 2>conftest.er1
a848cd7e 18584 ac_status=$?
ac1cb8d3
VS
18585 grep -v '^ *+' conftest.er1 >conftest.err
18586 rm -f conftest.er1
18587 cat conftest.err >&5
a848cd7e
SC
18588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18589 (exit $ac_status); } &&
3f60522a
JS
18590 { ac_try='test -z "$ac_cxx_werror_flag"
18591 || test ! -s conftest.err'
ac1cb8d3
VS
18592 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18593 (eval $ac_try) 2>&5
18594 ac_status=$?
18595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18596 (exit $ac_status); }; } &&
18597 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18598 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18599 (eval $ac_try) 2>&5
18600 ac_status=$?
18601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18602 (exit $ac_status); }; }; then
18603 ac_hi=-1 ac_mid=-1
18604 while :; do
18605 cat >conftest.$ac_ext <<_ACEOF
18606/* confdefs.h. */
18607_ACEOF
18608cat confdefs.h >>conftest.$ac_ext
18609cat >>conftest.$ac_ext <<_ACEOF
18610/* end confdefs.h. */
18611$ac_includes_default
18612int
18613main ()
18614{
18615static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)];
18616test_array [0] = 0
18617
18618 ;
18619 return 0;
18620}
18621_ACEOF
18622rm -f conftest.$ac_objext
18623if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18624 (eval $ac_compile) 2>conftest.er1
a848cd7e 18625 ac_status=$?
ac1cb8d3
VS
18626 grep -v '^ *+' conftest.er1 >conftest.err
18627 rm -f conftest.er1
18628 cat conftest.err >&5
a848cd7e
SC
18629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18630 (exit $ac_status); } &&
3f60522a
JS
18631 { ac_try='test -z "$ac_cxx_werror_flag"
18632 || test ! -s conftest.err'
ac1cb8d3
VS
18633 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18634 (eval $ac_try) 2>&5
18635 ac_status=$?
18636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18637 (exit $ac_status); }; } &&
18638 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18639 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18640 (eval $ac_try) 2>&5
18641 ac_status=$?
18642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18643 (exit $ac_status); }; }; then
18644 ac_lo=$ac_mid; break
18645else
18646 echo "$as_me: failed program was:" >&5
18647sed 's/^/| /' conftest.$ac_ext >&5
18648
18649ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
18650 if test $ac_mid -le $ac_hi; then
18651 ac_lo= ac_hi=
18652 break
18653 fi
18654 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 18655fi
ac1cb8d3 18656rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18657 done
18658else
18659 echo "$as_me: failed program was:" >&5
18660sed 's/^/| /' conftest.$ac_ext >&5
18661
18662ac_lo= ac_hi=
18663fi
ac1cb8d3 18664rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 18665fi
ac1cb8d3 18666rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18667# Binary search between lo and hi bounds.
18668while test "x$ac_lo" != "x$ac_hi"; do
18669 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
18670 cat >conftest.$ac_ext <<_ACEOF
18671/* confdefs.h. */
18672_ACEOF
18673cat confdefs.h >>conftest.$ac_ext
18674cat >>conftest.$ac_ext <<_ACEOF
18675/* end confdefs.h. */
18676$ac_includes_default
18677int
18678main ()
18679{
18680static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
18681test_array [0] = 0
18682
18683 ;
18684 return 0;
18685}
18686_ACEOF
18687rm -f conftest.$ac_objext
18688if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18689 (eval $ac_compile) 2>conftest.er1
a848cd7e 18690 ac_status=$?
ac1cb8d3
VS
18691 grep -v '^ *+' conftest.er1 >conftest.err
18692 rm -f conftest.er1
18693 cat conftest.err >&5
a848cd7e
SC
18694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18695 (exit $ac_status); } &&
3f60522a
JS
18696 { ac_try='test -z "$ac_cxx_werror_flag"
18697 || test ! -s conftest.err'
ac1cb8d3
VS
18698 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18699 (eval $ac_try) 2>&5
18700 ac_status=$?
18701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18702 (exit $ac_status); }; } &&
18703 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18704 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18705 (eval $ac_try) 2>&5
18706 ac_status=$?
18707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18708 (exit $ac_status); }; }; then
18709 ac_hi=$ac_mid
18710else
18711 echo "$as_me: failed program was:" >&5
18712sed 's/^/| /' conftest.$ac_ext >&5
18713
18714ac_lo=`expr '(' $ac_mid ')' + 1`
18715fi
ac1cb8d3 18716rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18717done
18718case $ac_lo in
18719?*) ac_cv_sizeof_void_p=$ac_lo;;
18720'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
18721See \`config.log' for more details." >&5
18722echo "$as_me: error: cannot compute sizeof (void *), 77
18723See \`config.log' for more details." >&2;}
18724 { (exit 1); exit 1; }; } ;;
18725esac
18726else
18727 if test "$cross_compiling" = yes; then
3f60522a
JS
18728 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
18729See \`config.log' for more details." >&5
18730echo "$as_me: error: cannot run test program while cross compiling
18731See \`config.log' for more details." >&2;}
a848cd7e
SC
18732 { (exit 1); exit 1; }; }
18733else
18734 cat >conftest.$ac_ext <<_ACEOF
18735/* confdefs.h. */
18736_ACEOF
18737cat confdefs.h >>conftest.$ac_ext
18738cat >>conftest.$ac_ext <<_ACEOF
18739/* end confdefs.h. */
18740$ac_includes_default
18741long longval () { return (long) (sizeof (void *)); }
18742unsigned long ulongval () { return (long) (sizeof (void *)); }
18743#include <stdio.h>
18744#include <stdlib.h>
18745int
18746main ()
18747{
18748
18749 FILE *f = fopen ("conftest.val", "w");
18750 if (! f)
18751 exit (1);
18752 if (((long) (sizeof (void *))) < 0)
18753 {
18754 long i = longval ();
18755 if (i != ((long) (sizeof (void *))))
18756 exit (1);
18757 fprintf (f, "%ld\n", i);
18758 }
18759 else
18760 {
18761 unsigned long i = ulongval ();
18762 if (i != ((long) (sizeof (void *))))
18763 exit (1);
18764 fprintf (f, "%lu\n", i);
18765 }
18766 exit (ferror (f) || fclose (f) != 0);
18767
18768 ;
18769 return 0;
18770}
18771_ACEOF
18772rm -f conftest$ac_exeext
18773if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18774 (eval $ac_link) 2>&5
18775 ac_status=$?
18776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18777 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18778 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18779 (eval $ac_try) 2>&5
18780 ac_status=$?
18781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18782 (exit $ac_status); }; }; then
18783 ac_cv_sizeof_void_p=`cat conftest.val`
18784else
18785 echo "$as_me: program exited with status $ac_status" >&5
18786echo "$as_me: failed program was:" >&5
18787sed 's/^/| /' conftest.$ac_ext >&5
18788
18789( exit $ac_status )
18790{ { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
18791See \`config.log' for more details." >&5
18792echo "$as_me: error: cannot compute sizeof (void *), 77
18793See \`config.log' for more details." >&2;}
18794 { (exit 1); exit 1; }; }
18795fi
ac1cb8d3 18796rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18797fi
18798fi
18799rm -f conftest.val
18800else
18801 ac_cv_sizeof_void_p=0
18802fi
18803fi
18804echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
18805echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
18806cat >>confdefs.h <<_ACEOF
18807#define SIZEOF_VOID_P $ac_cv_sizeof_void_p
18808_ACEOF
18809
18810
18811echo "$as_me:$LINENO: checking for int" >&5
18812echo $ECHO_N "checking for int... $ECHO_C" >&6
18813if test "${ac_cv_type_int+set}" = set; then
18814 echo $ECHO_N "(cached) $ECHO_C" >&6
18815else
18816 cat >conftest.$ac_ext <<_ACEOF
18817/* confdefs.h. */
18818_ACEOF
18819cat confdefs.h >>conftest.$ac_ext
18820cat >>conftest.$ac_ext <<_ACEOF
18821/* end confdefs.h. */
18822$ac_includes_default
18823int
18824main ()
18825{
18826if ((int *) 0)
18827 return 0;
18828if (sizeof (int))
18829 return 0;
18830 ;
18831 return 0;
18832}
18833_ACEOF
18834rm -f conftest.$ac_objext
18835if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18836 (eval $ac_compile) 2>conftest.er1
a848cd7e 18837 ac_status=$?
ac1cb8d3
VS
18838 grep -v '^ *+' conftest.er1 >conftest.err
18839 rm -f conftest.er1
18840 cat conftest.err >&5
a848cd7e
SC
18841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18842 (exit $ac_status); } &&
3f60522a
JS
18843 { ac_try='test -z "$ac_cxx_werror_flag"
18844 || test ! -s conftest.err'
ac1cb8d3
VS
18845 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18846 (eval $ac_try) 2>&5
18847 ac_status=$?
18848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18849 (exit $ac_status); }; } &&
18850 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18851 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18852 (eval $ac_try) 2>&5
18853 ac_status=$?
18854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18855 (exit $ac_status); }; }; then
18856 ac_cv_type_int=yes
18857else
18858 echo "$as_me: failed program was:" >&5
18859sed 's/^/| /' conftest.$ac_ext >&5
18860
18861ac_cv_type_int=no
18862fi
ac1cb8d3 18863rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18864fi
18865echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
18866echo "${ECHO_T}$ac_cv_type_int" >&6
18867
18868echo "$as_me:$LINENO: checking size of int" >&5
18869echo $ECHO_N "checking size of int... $ECHO_C" >&6
18870if test "${ac_cv_sizeof_int+set}" = set; then
18871 echo $ECHO_N "(cached) $ECHO_C" >&6
18872else
18873 if test "$ac_cv_type_int" = yes; then
18874 # The cast to unsigned long works around a bug in the HP C Compiler
18875 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
18876 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
18877 # This bug is HP SR number 8606223364.
18878 if test "$cross_compiling" = yes; then
18879 # Depending upon the size, compute the lo and hi bounds.
18880cat >conftest.$ac_ext <<_ACEOF
18881/* confdefs.h. */
18882_ACEOF
18883cat confdefs.h >>conftest.$ac_ext
18884cat >>conftest.$ac_ext <<_ACEOF
18885/* end confdefs.h. */
18886$ac_includes_default
18887int
18888main ()
18889{
18890static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
18891test_array [0] = 0
18892
18893 ;
18894 return 0;
18895}
18896_ACEOF
18897rm -f conftest.$ac_objext
18898if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18899 (eval $ac_compile) 2>conftest.er1
a848cd7e 18900 ac_status=$?
ac1cb8d3
VS
18901 grep -v '^ *+' conftest.er1 >conftest.err
18902 rm -f conftest.er1
18903 cat conftest.err >&5
a848cd7e
SC
18904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18905 (exit $ac_status); } &&
3f60522a
JS
18906 { ac_try='test -z "$ac_cxx_werror_flag"
18907 || test ! -s conftest.err'
ac1cb8d3
VS
18908 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18909 (eval $ac_try) 2>&5
18910 ac_status=$?
18911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18912 (exit $ac_status); }; } &&
18913 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18914 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18915 (eval $ac_try) 2>&5
18916 ac_status=$?
18917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18918 (exit $ac_status); }; }; then
18919 ac_lo=0 ac_mid=0
18920 while :; do
18921 cat >conftest.$ac_ext <<_ACEOF
18922/* confdefs.h. */
18923_ACEOF
18924cat confdefs.h >>conftest.$ac_ext
18925cat >>conftest.$ac_ext <<_ACEOF
18926/* end confdefs.h. */
18927$ac_includes_default
18928int
18929main ()
18930{
18931static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
18932test_array [0] = 0
18933
18934 ;
18935 return 0;
18936}
18937_ACEOF
18938rm -f conftest.$ac_objext
18939if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18940 (eval $ac_compile) 2>conftest.er1
a848cd7e 18941 ac_status=$?
ac1cb8d3
VS
18942 grep -v '^ *+' conftest.er1 >conftest.err
18943 rm -f conftest.er1
18944 cat conftest.err >&5
a848cd7e
SC
18945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18946 (exit $ac_status); } &&
3f60522a
JS
18947 { ac_try='test -z "$ac_cxx_werror_flag"
18948 || test ! -s conftest.err'
ac1cb8d3
VS
18949 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18950 (eval $ac_try) 2>&5
18951 ac_status=$?
18952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18953 (exit $ac_status); }; } &&
18954 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18955 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18956 (eval $ac_try) 2>&5
18957 ac_status=$?
18958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18959 (exit $ac_status); }; }; then
18960 ac_hi=$ac_mid; break
18961else
18962 echo "$as_me: failed program was:" >&5
18963sed 's/^/| /' conftest.$ac_ext >&5
18964
18965ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
18966 if test $ac_lo -le $ac_mid; then
18967 ac_lo= ac_hi=
18968 break
18969 fi
18970 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 18971fi
ac1cb8d3 18972rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18973 done
18974else
18975 echo "$as_me: failed program was:" >&5
18976sed 's/^/| /' conftest.$ac_ext >&5
18977
18978cat >conftest.$ac_ext <<_ACEOF
18979/* confdefs.h. */
18980_ACEOF
18981cat confdefs.h >>conftest.$ac_ext
18982cat >>conftest.$ac_ext <<_ACEOF
18983/* end confdefs.h. */
18984$ac_includes_default
18985int
18986main ()
18987{
18988static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
18989test_array [0] = 0
18990
18991 ;
18992 return 0;
18993}
18994_ACEOF
18995rm -f conftest.$ac_objext
18996if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18997 (eval $ac_compile) 2>conftest.er1
a848cd7e 18998 ac_status=$?
ac1cb8d3
VS
18999 grep -v '^ *+' conftest.er1 >conftest.err
19000 rm -f conftest.er1
19001 cat conftest.err >&5
a848cd7e
SC
19002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19003 (exit $ac_status); } &&
3f60522a
JS
19004 { ac_try='test -z "$ac_cxx_werror_flag"
19005 || test ! -s conftest.err'
ac1cb8d3
VS
19006 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19007 (eval $ac_try) 2>&5
19008 ac_status=$?
19009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19010 (exit $ac_status); }; } &&
19011 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19012 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19013 (eval $ac_try) 2>&5
19014 ac_status=$?
19015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19016 (exit $ac_status); }; }; then
19017 ac_hi=-1 ac_mid=-1
19018 while :; do
19019 cat >conftest.$ac_ext <<_ACEOF
19020/* confdefs.h. */
19021_ACEOF
19022cat confdefs.h >>conftest.$ac_ext
19023cat >>conftest.$ac_ext <<_ACEOF
19024/* end confdefs.h. */
19025$ac_includes_default
19026int
19027main ()
19028{
19029static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
19030test_array [0] = 0
19031
19032 ;
19033 return 0;
19034}
19035_ACEOF
19036rm -f conftest.$ac_objext
19037if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19038 (eval $ac_compile) 2>conftest.er1
a848cd7e 19039 ac_status=$?
ac1cb8d3
VS
19040 grep -v '^ *+' conftest.er1 >conftest.err
19041 rm -f conftest.er1
19042 cat conftest.err >&5
a848cd7e
SC
19043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19044 (exit $ac_status); } &&
3f60522a
JS
19045 { ac_try='test -z "$ac_cxx_werror_flag"
19046 || test ! -s conftest.err'
ac1cb8d3
VS
19047 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19048 (eval $ac_try) 2>&5
19049 ac_status=$?
19050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19051 (exit $ac_status); }; } &&
19052 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19053 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19054 (eval $ac_try) 2>&5
19055 ac_status=$?
19056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19057 (exit $ac_status); }; }; then
19058 ac_lo=$ac_mid; break
19059else
19060 echo "$as_me: failed program was:" >&5
19061sed 's/^/| /' conftest.$ac_ext >&5
19062
19063ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
19064 if test $ac_mid -le $ac_hi; then
19065 ac_lo= ac_hi=
19066 break
19067 fi
19068 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 19069fi
ac1cb8d3 19070rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19071 done
19072else
19073 echo "$as_me: failed program was:" >&5
19074sed 's/^/| /' conftest.$ac_ext >&5
19075
19076ac_lo= ac_hi=
19077fi
ac1cb8d3 19078rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 19079fi
ac1cb8d3 19080rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19081# Binary search between lo and hi bounds.
19082while test "x$ac_lo" != "x$ac_hi"; do
19083 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
19084 cat >conftest.$ac_ext <<_ACEOF
19085/* confdefs.h. */
19086_ACEOF
19087cat confdefs.h >>conftest.$ac_ext
19088cat >>conftest.$ac_ext <<_ACEOF
19089/* end confdefs.h. */
19090$ac_includes_default
19091int
19092main ()
19093{
19094static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
19095test_array [0] = 0
19096
19097 ;
19098 return 0;
19099}
19100_ACEOF
19101rm -f conftest.$ac_objext
19102if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19103 (eval $ac_compile) 2>conftest.er1
a848cd7e 19104 ac_status=$?
ac1cb8d3
VS
19105 grep -v '^ *+' conftest.er1 >conftest.err
19106 rm -f conftest.er1
19107 cat conftest.err >&5
a848cd7e
SC
19108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19109 (exit $ac_status); } &&
3f60522a
JS
19110 { ac_try='test -z "$ac_cxx_werror_flag"
19111 || test ! -s conftest.err'
ac1cb8d3
VS
19112 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19113 (eval $ac_try) 2>&5
19114 ac_status=$?
19115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19116 (exit $ac_status); }; } &&
19117 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19118 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19119 (eval $ac_try) 2>&5
19120 ac_status=$?
19121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19122 (exit $ac_status); }; }; then
19123 ac_hi=$ac_mid
19124else
19125 echo "$as_me: failed program was:" >&5
19126sed 's/^/| /' conftest.$ac_ext >&5
19127
19128ac_lo=`expr '(' $ac_mid ')' + 1`
19129fi
ac1cb8d3 19130rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19131done
19132case $ac_lo in
19133?*) ac_cv_sizeof_int=$ac_lo;;
19134'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
19135See \`config.log' for more details." >&5
19136echo "$as_me: error: cannot compute sizeof (int), 77
19137See \`config.log' for more details." >&2;}
19138 { (exit 1); exit 1; }; } ;;
19139esac
19140else
19141 if test "$cross_compiling" = yes; then
3f60522a
JS
19142 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
19143See \`config.log' for more details." >&5
19144echo "$as_me: error: cannot run test program while cross compiling
19145See \`config.log' for more details." >&2;}
a848cd7e
SC
19146 { (exit 1); exit 1; }; }
19147else
19148 cat >conftest.$ac_ext <<_ACEOF
19149/* confdefs.h. */
19150_ACEOF
19151cat confdefs.h >>conftest.$ac_ext
19152cat >>conftest.$ac_ext <<_ACEOF
19153/* end confdefs.h. */
19154$ac_includes_default
19155long longval () { return (long) (sizeof (int)); }
19156unsigned long ulongval () { return (long) (sizeof (int)); }
19157#include <stdio.h>
19158#include <stdlib.h>
19159int
19160main ()
19161{
19162
19163 FILE *f = fopen ("conftest.val", "w");
19164 if (! f)
19165 exit (1);
19166 if (((long) (sizeof (int))) < 0)
19167 {
19168 long i = longval ();
19169 if (i != ((long) (sizeof (int))))
19170 exit (1);
19171 fprintf (f, "%ld\n", i);
19172 }
19173 else
19174 {
19175 unsigned long i = ulongval ();
19176 if (i != ((long) (sizeof (int))))
19177 exit (1);
19178 fprintf (f, "%lu\n", i);
19179 }
19180 exit (ferror (f) || fclose (f) != 0);
19181
19182 ;
19183 return 0;
19184}
19185_ACEOF
19186rm -f conftest$ac_exeext
19187if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19188 (eval $ac_link) 2>&5
19189 ac_status=$?
19190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19191 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19192 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19193 (eval $ac_try) 2>&5
19194 ac_status=$?
19195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19196 (exit $ac_status); }; }; then
19197 ac_cv_sizeof_int=`cat conftest.val`
19198else
19199 echo "$as_me: program exited with status $ac_status" >&5
19200echo "$as_me: failed program was:" >&5
19201sed 's/^/| /' conftest.$ac_ext >&5
19202
19203( exit $ac_status )
19204{ { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
19205See \`config.log' for more details." >&5
19206echo "$as_me: error: cannot compute sizeof (int), 77
19207See \`config.log' for more details." >&2;}
19208 { (exit 1); exit 1; }; }
19209fi
ac1cb8d3 19210rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19211fi
19212fi
19213rm -f conftest.val
19214else
19215 ac_cv_sizeof_int=0
19216fi
19217fi
19218echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
19219echo "${ECHO_T}$ac_cv_sizeof_int" >&6
19220cat >>confdefs.h <<_ACEOF
19221#define SIZEOF_INT $ac_cv_sizeof_int
19222_ACEOF
19223
19224
19225echo "$as_me:$LINENO: checking for long" >&5
19226echo $ECHO_N "checking for long... $ECHO_C" >&6
19227if test "${ac_cv_type_long+set}" = set; then
19228 echo $ECHO_N "(cached) $ECHO_C" >&6
19229else
19230 cat >conftest.$ac_ext <<_ACEOF
19231/* confdefs.h. */
19232_ACEOF
19233cat confdefs.h >>conftest.$ac_ext
19234cat >>conftest.$ac_ext <<_ACEOF
19235/* end confdefs.h. */
19236$ac_includes_default
19237int
19238main ()
19239{
19240if ((long *) 0)
19241 return 0;
19242if (sizeof (long))
19243 return 0;
19244 ;
19245 return 0;
19246}
19247_ACEOF
19248rm -f conftest.$ac_objext
19249if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19250 (eval $ac_compile) 2>conftest.er1
a848cd7e 19251 ac_status=$?
ac1cb8d3
VS
19252 grep -v '^ *+' conftest.er1 >conftest.err
19253 rm -f conftest.er1
19254 cat conftest.err >&5
a848cd7e
SC
19255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19256 (exit $ac_status); } &&
3f60522a
JS
19257 { ac_try='test -z "$ac_cxx_werror_flag"
19258 || test ! -s conftest.err'
ac1cb8d3
VS
19259 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19260 (eval $ac_try) 2>&5
19261 ac_status=$?
19262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19263 (exit $ac_status); }; } &&
19264 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19265 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19266 (eval $ac_try) 2>&5
19267 ac_status=$?
19268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19269 (exit $ac_status); }; }; then
19270 ac_cv_type_long=yes
19271else
19272 echo "$as_me: failed program was:" >&5
19273sed 's/^/| /' conftest.$ac_ext >&5
19274
19275ac_cv_type_long=no
19276fi
ac1cb8d3 19277rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19278fi
19279echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
19280echo "${ECHO_T}$ac_cv_type_long" >&6
19281
19282echo "$as_me:$LINENO: checking size of long" >&5
19283echo $ECHO_N "checking size of long... $ECHO_C" >&6
19284if test "${ac_cv_sizeof_long+set}" = set; then
19285 echo $ECHO_N "(cached) $ECHO_C" >&6
19286else
19287 if test "$ac_cv_type_long" = yes; then
19288 # The cast to unsigned long works around a bug in the HP C Compiler
19289 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
19290 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
19291 # This bug is HP SR number 8606223364.
19292 if test "$cross_compiling" = yes; then
19293 # Depending upon the size, compute the lo and hi bounds.
19294cat >conftest.$ac_ext <<_ACEOF
19295/* confdefs.h. */
19296_ACEOF
19297cat confdefs.h >>conftest.$ac_ext
19298cat >>conftest.$ac_ext <<_ACEOF
19299/* end confdefs.h. */
19300$ac_includes_default
19301int
19302main ()
19303{
19304static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
19305test_array [0] = 0
19306
19307 ;
19308 return 0;
19309}
19310_ACEOF
19311rm -f conftest.$ac_objext
19312if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19313 (eval $ac_compile) 2>conftest.er1
a848cd7e 19314 ac_status=$?
ac1cb8d3
VS
19315 grep -v '^ *+' conftest.er1 >conftest.err
19316 rm -f conftest.er1
19317 cat conftest.err >&5
a848cd7e
SC
19318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19319 (exit $ac_status); } &&
3f60522a
JS
19320 { ac_try='test -z "$ac_cxx_werror_flag"
19321 || test ! -s conftest.err'
ac1cb8d3
VS
19322 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19323 (eval $ac_try) 2>&5
19324 ac_status=$?
19325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19326 (exit $ac_status); }; } &&
19327 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19328 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19329 (eval $ac_try) 2>&5
19330 ac_status=$?
19331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19332 (exit $ac_status); }; }; then
19333 ac_lo=0 ac_mid=0
19334 while :; do
19335 cat >conftest.$ac_ext <<_ACEOF
19336/* confdefs.h. */
19337_ACEOF
19338cat confdefs.h >>conftest.$ac_ext
19339cat >>conftest.$ac_ext <<_ACEOF
19340/* end confdefs.h. */
19341$ac_includes_default
19342int
19343main ()
19344{
19345static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
19346test_array [0] = 0
19347
19348 ;
19349 return 0;
19350}
19351_ACEOF
19352rm -f conftest.$ac_objext
19353if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19354 (eval $ac_compile) 2>conftest.er1
a848cd7e 19355 ac_status=$?
ac1cb8d3
VS
19356 grep -v '^ *+' conftest.er1 >conftest.err
19357 rm -f conftest.er1
19358 cat conftest.err >&5
a848cd7e
SC
19359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19360 (exit $ac_status); } &&
3f60522a
JS
19361 { ac_try='test -z "$ac_cxx_werror_flag"
19362 || test ! -s conftest.err'
ac1cb8d3
VS
19363 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19364 (eval $ac_try) 2>&5
19365 ac_status=$?
19366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19367 (exit $ac_status); }; } &&
19368 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19369 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19370 (eval $ac_try) 2>&5
19371 ac_status=$?
19372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19373 (exit $ac_status); }; }; then
19374 ac_hi=$ac_mid; break
19375else
19376 echo "$as_me: failed program was:" >&5
19377sed 's/^/| /' conftest.$ac_ext >&5
19378
19379ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
19380 if test $ac_lo -le $ac_mid; then
19381 ac_lo= ac_hi=
19382 break
19383 fi
19384 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 19385fi
ac1cb8d3 19386rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19387 done
19388else
19389 echo "$as_me: failed program was:" >&5
19390sed 's/^/| /' conftest.$ac_ext >&5
19391
19392cat >conftest.$ac_ext <<_ACEOF
19393/* confdefs.h. */
19394_ACEOF
19395cat confdefs.h >>conftest.$ac_ext
19396cat >>conftest.$ac_ext <<_ACEOF
19397/* end confdefs.h. */
19398$ac_includes_default
19399int
19400main ()
19401{
19402static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
19403test_array [0] = 0
19404
19405 ;
19406 return 0;
19407}
19408_ACEOF
19409rm -f conftest.$ac_objext
19410if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19411 (eval $ac_compile) 2>conftest.er1
a848cd7e 19412 ac_status=$?
ac1cb8d3
VS
19413 grep -v '^ *+' conftest.er1 >conftest.err
19414 rm -f conftest.er1
19415 cat conftest.err >&5
a848cd7e
SC
19416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19417 (exit $ac_status); } &&
3f60522a
JS
19418 { ac_try='test -z "$ac_cxx_werror_flag"
19419 || test ! -s conftest.err'
ac1cb8d3
VS
19420 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19421 (eval $ac_try) 2>&5
19422 ac_status=$?
19423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19424 (exit $ac_status); }; } &&
19425 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19426 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19427 (eval $ac_try) 2>&5
19428 ac_status=$?
19429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19430 (exit $ac_status); }; }; then
19431 ac_hi=-1 ac_mid=-1
19432 while :; do
19433 cat >conftest.$ac_ext <<_ACEOF
19434/* confdefs.h. */
19435_ACEOF
19436cat confdefs.h >>conftest.$ac_ext
19437cat >>conftest.$ac_ext <<_ACEOF
19438/* end confdefs.h. */
19439$ac_includes_default
19440int
19441main ()
19442{
19443static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
19444test_array [0] = 0
19445
19446 ;
19447 return 0;
19448}
19449_ACEOF
19450rm -f conftest.$ac_objext
19451if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19452 (eval $ac_compile) 2>conftest.er1
a848cd7e 19453 ac_status=$?
ac1cb8d3
VS
19454 grep -v '^ *+' conftest.er1 >conftest.err
19455 rm -f conftest.er1
19456 cat conftest.err >&5
a848cd7e
SC
19457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19458 (exit $ac_status); } &&
3f60522a
JS
19459 { ac_try='test -z "$ac_cxx_werror_flag"
19460 || test ! -s conftest.err'
ac1cb8d3
VS
19461 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19462 (eval $ac_try) 2>&5
19463 ac_status=$?
19464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19465 (exit $ac_status); }; } &&
19466 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19467 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19468 (eval $ac_try) 2>&5
19469 ac_status=$?
19470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19471 (exit $ac_status); }; }; then
19472 ac_lo=$ac_mid; break
19473else
19474 echo "$as_me: failed program was:" >&5
19475sed 's/^/| /' conftest.$ac_ext >&5
19476
19477ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
19478 if test $ac_mid -le $ac_hi; then
19479 ac_lo= ac_hi=
19480 break
19481 fi
19482 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 19483fi
ac1cb8d3 19484rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19485 done
19486else
19487 echo "$as_me: failed program was:" >&5
19488sed 's/^/| /' conftest.$ac_ext >&5
19489
19490ac_lo= ac_hi=
19491fi
ac1cb8d3 19492rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 19493fi
ac1cb8d3 19494rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19495# Binary search between lo and hi bounds.
19496while test "x$ac_lo" != "x$ac_hi"; do
19497 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
19498 cat >conftest.$ac_ext <<_ACEOF
19499/* confdefs.h. */
19500_ACEOF
19501cat confdefs.h >>conftest.$ac_ext
19502cat >>conftest.$ac_ext <<_ACEOF
19503/* end confdefs.h. */
19504$ac_includes_default
19505int
19506main ()
19507{
19508static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
19509test_array [0] = 0
19510
19511 ;
19512 return 0;
19513}
19514_ACEOF
19515rm -f conftest.$ac_objext
19516if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19517 (eval $ac_compile) 2>conftest.er1
a848cd7e 19518 ac_status=$?
ac1cb8d3
VS
19519 grep -v '^ *+' conftest.er1 >conftest.err
19520 rm -f conftest.er1
19521 cat conftest.err >&5
a848cd7e
SC
19522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19523 (exit $ac_status); } &&
3f60522a
JS
19524 { ac_try='test -z "$ac_cxx_werror_flag"
19525 || test ! -s conftest.err'
ac1cb8d3
VS
19526 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19527 (eval $ac_try) 2>&5
19528 ac_status=$?
19529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19530 (exit $ac_status); }; } &&
19531 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19532 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19533 (eval $ac_try) 2>&5
19534 ac_status=$?
19535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19536 (exit $ac_status); }; }; then
19537 ac_hi=$ac_mid
19538else
19539 echo "$as_me: failed program was:" >&5
19540sed 's/^/| /' conftest.$ac_ext >&5
19541
19542ac_lo=`expr '(' $ac_mid ')' + 1`
19543fi
ac1cb8d3 19544rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19545done
19546case $ac_lo in
19547?*) ac_cv_sizeof_long=$ac_lo;;
19548'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
19549See \`config.log' for more details." >&5
19550echo "$as_me: error: cannot compute sizeof (long), 77
19551See \`config.log' for more details." >&2;}
19552 { (exit 1); exit 1; }; } ;;
19553esac
19554else
19555 if test "$cross_compiling" = yes; then
3f60522a
JS
19556 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
19557See \`config.log' for more details." >&5
19558echo "$as_me: error: cannot run test program while cross compiling
19559See \`config.log' for more details." >&2;}
a848cd7e
SC
19560 { (exit 1); exit 1; }; }
19561else
19562 cat >conftest.$ac_ext <<_ACEOF
19563/* confdefs.h. */
19564_ACEOF
19565cat confdefs.h >>conftest.$ac_ext
19566cat >>conftest.$ac_ext <<_ACEOF
19567/* end confdefs.h. */
19568$ac_includes_default
19569long longval () { return (long) (sizeof (long)); }
19570unsigned long ulongval () { return (long) (sizeof (long)); }
19571#include <stdio.h>
19572#include <stdlib.h>
19573int
19574main ()
19575{
19576
19577 FILE *f = fopen ("conftest.val", "w");
19578 if (! f)
19579 exit (1);
19580 if (((long) (sizeof (long))) < 0)
19581 {
19582 long i = longval ();
19583 if (i != ((long) (sizeof (long))))
19584 exit (1);
19585 fprintf (f, "%ld\n", i);
19586 }
19587 else
19588 {
19589 unsigned long i = ulongval ();
19590 if (i != ((long) (sizeof (long))))
19591 exit (1);
19592 fprintf (f, "%lu\n", i);
19593 }
19594 exit (ferror (f) || fclose (f) != 0);
19595
19596 ;
19597 return 0;
19598}
19599_ACEOF
19600rm -f conftest$ac_exeext
19601if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19602 (eval $ac_link) 2>&5
19603 ac_status=$?
19604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19605 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19606 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19607 (eval $ac_try) 2>&5
19608 ac_status=$?
19609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19610 (exit $ac_status); }; }; then
19611 ac_cv_sizeof_long=`cat conftest.val`
19612else
19613 echo "$as_me: program exited with status $ac_status" >&5
19614echo "$as_me: failed program was:" >&5
19615sed 's/^/| /' conftest.$ac_ext >&5
19616
19617( exit $ac_status )
19618{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
19619See \`config.log' for more details." >&5
19620echo "$as_me: error: cannot compute sizeof (long), 77
19621See \`config.log' for more details." >&2;}
19622 { (exit 1); exit 1; }; }
19623fi
ac1cb8d3 19624rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19625fi
19626fi
19627rm -f conftest.val
19628else
19629 ac_cv_sizeof_long=0
19630fi
19631fi
19632echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
19633echo "${ECHO_T}$ac_cv_sizeof_long" >&6
19634cat >>confdefs.h <<_ACEOF
19635#define SIZEOF_LONG $ac_cv_sizeof_long
19636_ACEOF
19637
19638
19639echo "$as_me:$LINENO: checking for size_t" >&5
19640echo $ECHO_N "checking for size_t... $ECHO_C" >&6
19641if test "${ac_cv_type_size_t+set}" = set; then
19642 echo $ECHO_N "(cached) $ECHO_C" >&6
19643else
19644 cat >conftest.$ac_ext <<_ACEOF
19645/* confdefs.h. */
19646_ACEOF
19647cat confdefs.h >>conftest.$ac_ext
19648cat >>conftest.$ac_ext <<_ACEOF
19649/* end confdefs.h. */
19650$ac_includes_default
19651int
19652main ()
19653{
19654if ((size_t *) 0)
19655 return 0;
19656if (sizeof (size_t))
19657 return 0;
19658 ;
19659 return 0;
19660}
19661_ACEOF
19662rm -f conftest.$ac_objext
19663if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19664 (eval $ac_compile) 2>conftest.er1
a848cd7e 19665 ac_status=$?
ac1cb8d3
VS
19666 grep -v '^ *+' conftest.er1 >conftest.err
19667 rm -f conftest.er1
19668 cat conftest.err >&5
a848cd7e
SC
19669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19670 (exit $ac_status); } &&
3f60522a
JS
19671 { ac_try='test -z "$ac_cxx_werror_flag"
19672 || test ! -s conftest.err'
ac1cb8d3
VS
19673 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19674 (eval $ac_try) 2>&5
19675 ac_status=$?
19676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19677 (exit $ac_status); }; } &&
19678 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
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); }; }; then
19684 ac_cv_type_size_t=yes
19685else
19686 echo "$as_me: failed program was:" >&5
19687sed 's/^/| /' conftest.$ac_ext >&5
19688
19689ac_cv_type_size_t=no
19690fi
ac1cb8d3 19691rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19692fi
19693echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
19694echo "${ECHO_T}$ac_cv_type_size_t" >&6
19695
19696echo "$as_me:$LINENO: checking size of size_t" >&5
19697echo $ECHO_N "checking size of size_t... $ECHO_C" >&6
19698if test "${ac_cv_sizeof_size_t+set}" = set; then
19699 echo $ECHO_N "(cached) $ECHO_C" >&6
19700else
19701 if test "$ac_cv_type_size_t" = yes; then
19702 # The cast to unsigned long works around a bug in the HP C Compiler
19703 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
19704 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
19705 # This bug is HP SR number 8606223364.
19706 if test "$cross_compiling" = yes; then
19707 # Depending upon the size, compute the lo and hi bounds.
19708cat >conftest.$ac_ext <<_ACEOF
19709/* confdefs.h. */
19710_ACEOF
19711cat confdefs.h >>conftest.$ac_ext
19712cat >>conftest.$ac_ext <<_ACEOF
19713/* end confdefs.h. */
19714$ac_includes_default
19715int
19716main ()
19717{
19718static int test_array [1 - 2 * !(((long) (sizeof (size_t))) >= 0)];
19719test_array [0] = 0
19720
19721 ;
19722 return 0;
19723}
19724_ACEOF
19725rm -f conftest.$ac_objext
19726if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19727 (eval $ac_compile) 2>conftest.er1
a848cd7e 19728 ac_status=$?
ac1cb8d3
VS
19729 grep -v '^ *+' conftest.er1 >conftest.err
19730 rm -f conftest.er1
19731 cat conftest.err >&5
a848cd7e
SC
19732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19733 (exit $ac_status); } &&
3f60522a
JS
19734 { ac_try='test -z "$ac_cxx_werror_flag"
19735 || test ! -s conftest.err'
ac1cb8d3
VS
19736 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19737 (eval $ac_try) 2>&5
19738 ac_status=$?
19739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19740 (exit $ac_status); }; } &&
19741 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19742 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19743 (eval $ac_try) 2>&5
19744 ac_status=$?
19745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19746 (exit $ac_status); }; }; then
19747 ac_lo=0 ac_mid=0
19748 while :; do
19749 cat >conftest.$ac_ext <<_ACEOF
19750/* confdefs.h. */
19751_ACEOF
19752cat confdefs.h >>conftest.$ac_ext
19753cat >>conftest.$ac_ext <<_ACEOF
19754/* end confdefs.h. */
19755$ac_includes_default
19756int
19757main ()
19758{
19759static int test_array [1 - 2 * !(((long) (sizeof (size_t))) <= $ac_mid)];
19760test_array [0] = 0
19761
19762 ;
19763 return 0;
19764}
19765_ACEOF
19766rm -f conftest.$ac_objext
19767if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19768 (eval $ac_compile) 2>conftest.er1
a848cd7e 19769 ac_status=$?
ac1cb8d3
VS
19770 grep -v '^ *+' conftest.er1 >conftest.err
19771 rm -f conftest.er1
19772 cat conftest.err >&5
a848cd7e
SC
19773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19774 (exit $ac_status); } &&
3f60522a
JS
19775 { ac_try='test -z "$ac_cxx_werror_flag"
19776 || test ! -s conftest.err'
ac1cb8d3
VS
19777 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19778 (eval $ac_try) 2>&5
19779 ac_status=$?
19780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19781 (exit $ac_status); }; } &&
19782 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19783 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19784 (eval $ac_try) 2>&5
19785 ac_status=$?
19786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19787 (exit $ac_status); }; }; then
19788 ac_hi=$ac_mid; break
19789else
19790 echo "$as_me: failed program was:" >&5
19791sed 's/^/| /' conftest.$ac_ext >&5
19792
19793ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
19794 if test $ac_lo -le $ac_mid; then
19795 ac_lo= ac_hi=
19796 break
19797 fi
19798 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 19799fi
ac1cb8d3 19800rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19801 done
19802else
19803 echo "$as_me: failed program was:" >&5
19804sed 's/^/| /' conftest.$ac_ext >&5
19805
19806cat >conftest.$ac_ext <<_ACEOF
19807/* confdefs.h. */
19808_ACEOF
19809cat confdefs.h >>conftest.$ac_ext
19810cat >>conftest.$ac_ext <<_ACEOF
19811/* end confdefs.h. */
19812$ac_includes_default
19813int
19814main ()
19815{
19816static int test_array [1 - 2 * !(((long) (sizeof (size_t))) < 0)];
19817test_array [0] = 0
19818
19819 ;
19820 return 0;
19821}
19822_ACEOF
19823rm -f conftest.$ac_objext
19824if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19825 (eval $ac_compile) 2>conftest.er1
a848cd7e 19826 ac_status=$?
ac1cb8d3
VS
19827 grep -v '^ *+' conftest.er1 >conftest.err
19828 rm -f conftest.er1
19829 cat conftest.err >&5
a848cd7e
SC
19830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19831 (exit $ac_status); } &&
3f60522a
JS
19832 { ac_try='test -z "$ac_cxx_werror_flag"
19833 || test ! -s conftest.err'
ac1cb8d3
VS
19834 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19835 (eval $ac_try) 2>&5
19836 ac_status=$?
19837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19838 (exit $ac_status); }; } &&
19839 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19840 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19841 (eval $ac_try) 2>&5
19842 ac_status=$?
19843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19844 (exit $ac_status); }; }; then
19845 ac_hi=-1 ac_mid=-1
19846 while :; do
19847 cat >conftest.$ac_ext <<_ACEOF
19848/* confdefs.h. */
19849_ACEOF
19850cat confdefs.h >>conftest.$ac_ext
19851cat >>conftest.$ac_ext <<_ACEOF
19852/* end confdefs.h. */
19853$ac_includes_default
19854int
19855main ()
19856{
19857static int test_array [1 - 2 * !(((long) (sizeof (size_t))) >= $ac_mid)];
19858test_array [0] = 0
19859
19860 ;
19861 return 0;
19862}
19863_ACEOF
19864rm -f conftest.$ac_objext
19865if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19866 (eval $ac_compile) 2>conftest.er1
a848cd7e 19867 ac_status=$?
ac1cb8d3
VS
19868 grep -v '^ *+' conftest.er1 >conftest.err
19869 rm -f conftest.er1
19870 cat conftest.err >&5
a848cd7e
SC
19871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19872 (exit $ac_status); } &&
3f60522a
JS
19873 { ac_try='test -z "$ac_cxx_werror_flag"
19874 || test ! -s conftest.err'
ac1cb8d3
VS
19875 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19876 (eval $ac_try) 2>&5
19877 ac_status=$?
19878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19879 (exit $ac_status); }; } &&
19880 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19881 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19882 (eval $ac_try) 2>&5
19883 ac_status=$?
19884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19885 (exit $ac_status); }; }; then
19886 ac_lo=$ac_mid; break
19887else
19888 echo "$as_me: failed program was:" >&5
19889sed 's/^/| /' conftest.$ac_ext >&5
19890
19891ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
19892 if test $ac_mid -le $ac_hi; then
19893 ac_lo= ac_hi=
19894 break
19895 fi
19896 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 19897fi
ac1cb8d3 19898rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19899 done
19900else
19901 echo "$as_me: failed program was:" >&5
19902sed 's/^/| /' conftest.$ac_ext >&5
19903
19904ac_lo= ac_hi=
19905fi
ac1cb8d3 19906rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 19907fi
ac1cb8d3 19908rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19909# Binary search between lo and hi bounds.
19910while test "x$ac_lo" != "x$ac_hi"; do
19911 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
19912 cat >conftest.$ac_ext <<_ACEOF
19913/* confdefs.h. */
19914_ACEOF
19915cat confdefs.h >>conftest.$ac_ext
19916cat >>conftest.$ac_ext <<_ACEOF
19917/* end confdefs.h. */
19918$ac_includes_default
19919int
19920main ()
19921{
19922static int test_array [1 - 2 * !(((long) (sizeof (size_t))) <= $ac_mid)];
19923test_array [0] = 0
19924
19925 ;
19926 return 0;
19927}
19928_ACEOF
19929rm -f conftest.$ac_objext
19930if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19931 (eval $ac_compile) 2>conftest.er1
a848cd7e 19932 ac_status=$?
ac1cb8d3
VS
19933 grep -v '^ *+' conftest.er1 >conftest.err
19934 rm -f conftest.er1
19935 cat conftest.err >&5
a848cd7e
SC
19936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19937 (exit $ac_status); } &&
3f60522a
JS
19938 { ac_try='test -z "$ac_cxx_werror_flag"
19939 || test ! -s conftest.err'
ac1cb8d3
VS
19940 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19941 (eval $ac_try) 2>&5
19942 ac_status=$?
19943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19944 (exit $ac_status); }; } &&
19945 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19946 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19947 (eval $ac_try) 2>&5
19948 ac_status=$?
19949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19950 (exit $ac_status); }; }; then
19951 ac_hi=$ac_mid
19952else
19953 echo "$as_me: failed program was:" >&5
19954sed 's/^/| /' conftest.$ac_ext >&5
19955
19956ac_lo=`expr '(' $ac_mid ')' + 1`
19957fi
ac1cb8d3 19958rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19959done
19960case $ac_lo in
19961?*) ac_cv_sizeof_size_t=$ac_lo;;
19962'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t), 77
19963See \`config.log' for more details." >&5
19964echo "$as_me: error: cannot compute sizeof (size_t), 77
19965See \`config.log' for more details." >&2;}
19966 { (exit 1); exit 1; }; } ;;
19967esac
19968else
19969 if test "$cross_compiling" = yes; then
3f60522a
JS
19970 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
19971See \`config.log' for more details." >&5
19972echo "$as_me: error: cannot run test program while cross compiling
19973See \`config.log' for more details." >&2;}
a848cd7e
SC
19974 { (exit 1); exit 1; }; }
19975else
19976 cat >conftest.$ac_ext <<_ACEOF
19977/* confdefs.h. */
19978_ACEOF
19979cat confdefs.h >>conftest.$ac_ext
19980cat >>conftest.$ac_ext <<_ACEOF
19981/* end confdefs.h. */
19982$ac_includes_default
19983long longval () { return (long) (sizeof (size_t)); }
19984unsigned long ulongval () { return (long) (sizeof (size_t)); }
19985#include <stdio.h>
19986#include <stdlib.h>
19987int
19988main ()
19989{
19990
19991 FILE *f = fopen ("conftest.val", "w");
19992 if (! f)
19993 exit (1);
19994 if (((long) (sizeof (size_t))) < 0)
19995 {
19996 long i = longval ();
19997 if (i != ((long) (sizeof (size_t))))
19998 exit (1);
19999 fprintf (f, "%ld\n", i);
20000 }
20001 else
20002 {
20003 unsigned long i = ulongval ();
20004 if (i != ((long) (sizeof (size_t))))
20005 exit (1);
20006 fprintf (f, "%lu\n", i);
20007 }
20008 exit (ferror (f) || fclose (f) != 0);
20009
20010 ;
20011 return 0;
20012}
20013_ACEOF
20014rm -f conftest$ac_exeext
20015if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20016 (eval $ac_link) 2>&5
20017 ac_status=$?
20018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20019 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20020 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20021 (eval $ac_try) 2>&5
20022 ac_status=$?
20023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20024 (exit $ac_status); }; }; then
20025 ac_cv_sizeof_size_t=`cat conftest.val`
20026else
20027 echo "$as_me: program exited with status $ac_status" >&5
20028echo "$as_me: failed program was:" >&5
20029sed 's/^/| /' conftest.$ac_ext >&5
20030
20031( exit $ac_status )
20032{ { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t), 77
20033See \`config.log' for more details." >&5
20034echo "$as_me: error: cannot compute sizeof (size_t), 77
20035See \`config.log' for more details." >&2;}
20036 { (exit 1); exit 1; }; }
20037fi
ac1cb8d3 20038rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20039fi
20040fi
20041rm -f conftest.val
20042else
20043 ac_cv_sizeof_size_t=0
20044fi
20045fi
20046echo "$as_me:$LINENO: result: $ac_cv_sizeof_size_t" >&5
20047echo "${ECHO_T}$ac_cv_sizeof_size_t" >&6
20048cat >>confdefs.h <<_ACEOF
20049#define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
20050_ACEOF
20051
20052
20053
20054case "${host}" in
20055 arm-*-linux* )
20056 echo "$as_me:$LINENO: checking for long long" >&5
20057echo $ECHO_N "checking for long long... $ECHO_C" >&6
20058if test "${ac_cv_type_long_long+set}" = set; then
20059 echo $ECHO_N "(cached) $ECHO_C" >&6
20060else
20061 cat >conftest.$ac_ext <<_ACEOF
20062/* confdefs.h. */
20063_ACEOF
20064cat confdefs.h >>conftest.$ac_ext
20065cat >>conftest.$ac_ext <<_ACEOF
20066/* end confdefs.h. */
20067$ac_includes_default
20068int
20069main ()
20070{
20071if ((long long *) 0)
20072 return 0;
20073if (sizeof (long long))
20074 return 0;
20075 ;
20076 return 0;
20077}
20078_ACEOF
20079rm -f conftest.$ac_objext
20080if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20081 (eval $ac_compile) 2>conftest.er1
a848cd7e 20082 ac_status=$?
ac1cb8d3
VS
20083 grep -v '^ *+' conftest.er1 >conftest.err
20084 rm -f conftest.er1
20085 cat conftest.err >&5
a848cd7e
SC
20086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20087 (exit $ac_status); } &&
3f60522a
JS
20088 { ac_try='test -z "$ac_cxx_werror_flag"
20089 || test ! -s conftest.err'
ac1cb8d3
VS
20090 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20091 (eval $ac_try) 2>&5
20092 ac_status=$?
20093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20094 (exit $ac_status); }; } &&
20095 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20096 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20097 (eval $ac_try) 2>&5
20098 ac_status=$?
20099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20100 (exit $ac_status); }; }; then
20101 ac_cv_type_long_long=yes
20102else
20103 echo "$as_me: failed program was:" >&5
20104sed 's/^/| /' conftest.$ac_ext >&5
20105
20106ac_cv_type_long_long=no
20107fi
ac1cb8d3 20108rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20109fi
20110echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
20111echo "${ECHO_T}$ac_cv_type_long_long" >&6
20112
20113echo "$as_me:$LINENO: checking size of long long" >&5
20114echo $ECHO_N "checking size of long long... $ECHO_C" >&6
20115if test "${ac_cv_sizeof_long_long+set}" = set; then
20116 echo $ECHO_N "(cached) $ECHO_C" >&6
20117else
20118 if test "$ac_cv_type_long_long" = yes; then
20119 # The cast to unsigned long works around a bug in the HP C Compiler
20120 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
20121 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
20122 # This bug is HP SR number 8606223364.
20123 if test "$cross_compiling" = yes; then
20124 # Depending upon the size, compute the lo and hi bounds.
20125cat >conftest.$ac_ext <<_ACEOF
20126/* confdefs.h. */
20127_ACEOF
20128cat confdefs.h >>conftest.$ac_ext
20129cat >>conftest.$ac_ext <<_ACEOF
20130/* end confdefs.h. */
20131$ac_includes_default
20132int
20133main ()
20134{
20135static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
20136test_array [0] = 0
20137
20138 ;
20139 return 0;
20140}
20141_ACEOF
20142rm -f conftest.$ac_objext
20143if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20144 (eval $ac_compile) 2>conftest.er1
a848cd7e 20145 ac_status=$?
ac1cb8d3
VS
20146 grep -v '^ *+' conftest.er1 >conftest.err
20147 rm -f conftest.er1
20148 cat conftest.err >&5
a848cd7e
SC
20149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20150 (exit $ac_status); } &&
3f60522a
JS
20151 { ac_try='test -z "$ac_cxx_werror_flag"
20152 || test ! -s conftest.err'
ac1cb8d3
VS
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); }; } &&
20158 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20159 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20160 (eval $ac_try) 2>&5
20161 ac_status=$?
20162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20163 (exit $ac_status); }; }; then
20164 ac_lo=0 ac_mid=0
20165 while :; do
20166 cat >conftest.$ac_ext <<_ACEOF
20167/* confdefs.h. */
20168_ACEOF
20169cat confdefs.h >>conftest.$ac_ext
20170cat >>conftest.$ac_ext <<_ACEOF
20171/* end confdefs.h. */
20172$ac_includes_default
20173int
20174main ()
20175{
20176static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
20177test_array [0] = 0
20178
20179 ;
20180 return 0;
20181}
20182_ACEOF
20183rm -f conftest.$ac_objext
20184if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20185 (eval $ac_compile) 2>conftest.er1
a848cd7e 20186 ac_status=$?
ac1cb8d3
VS
20187 grep -v '^ *+' conftest.er1 >conftest.err
20188 rm -f conftest.er1
20189 cat conftest.err >&5
a848cd7e
SC
20190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20191 (exit $ac_status); } &&
3f60522a
JS
20192 { ac_try='test -z "$ac_cxx_werror_flag"
20193 || test ! -s conftest.err'
ac1cb8d3
VS
20194 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20195 (eval $ac_try) 2>&5
20196 ac_status=$?
20197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20198 (exit $ac_status); }; } &&
20199 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20200 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20201 (eval $ac_try) 2>&5
20202 ac_status=$?
20203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20204 (exit $ac_status); }; }; then
20205 ac_hi=$ac_mid; break
20206else
20207 echo "$as_me: failed program was:" >&5
20208sed 's/^/| /' conftest.$ac_ext >&5
20209
20210ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
20211 if test $ac_lo -le $ac_mid; then
20212 ac_lo= ac_hi=
20213 break
20214 fi
20215 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 20216fi
ac1cb8d3 20217rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20218 done
20219else
20220 echo "$as_me: failed program was:" >&5
20221sed 's/^/| /' conftest.$ac_ext >&5
20222
20223cat >conftest.$ac_ext <<_ACEOF
20224/* confdefs.h. */
20225_ACEOF
20226cat confdefs.h >>conftest.$ac_ext
20227cat >>conftest.$ac_ext <<_ACEOF
20228/* end confdefs.h. */
20229$ac_includes_default
20230int
20231main ()
20232{
20233static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
20234test_array [0] = 0
20235
20236 ;
20237 return 0;
20238}
20239_ACEOF
20240rm -f conftest.$ac_objext
20241if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20242 (eval $ac_compile) 2>conftest.er1
a848cd7e 20243 ac_status=$?
ac1cb8d3
VS
20244 grep -v '^ *+' conftest.er1 >conftest.err
20245 rm -f conftest.er1
20246 cat conftest.err >&5
a848cd7e
SC
20247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20248 (exit $ac_status); } &&
3f60522a
JS
20249 { ac_try='test -z "$ac_cxx_werror_flag"
20250 || test ! -s conftest.err'
ac1cb8d3
VS
20251 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20252 (eval $ac_try) 2>&5
20253 ac_status=$?
20254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20255 (exit $ac_status); }; } &&
20256 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20257 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20258 (eval $ac_try) 2>&5
20259 ac_status=$?
20260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20261 (exit $ac_status); }; }; then
20262 ac_hi=-1 ac_mid=-1
20263 while :; do
20264 cat >conftest.$ac_ext <<_ACEOF
20265/* confdefs.h. */
20266_ACEOF
20267cat confdefs.h >>conftest.$ac_ext
20268cat >>conftest.$ac_ext <<_ACEOF
20269/* end confdefs.h. */
20270$ac_includes_default
20271int
20272main ()
20273{
20274static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
20275test_array [0] = 0
20276
20277 ;
20278 return 0;
20279}
20280_ACEOF
20281rm -f conftest.$ac_objext
20282if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20283 (eval $ac_compile) 2>conftest.er1
a848cd7e 20284 ac_status=$?
ac1cb8d3
VS
20285 grep -v '^ *+' conftest.er1 >conftest.err
20286 rm -f conftest.er1
20287 cat conftest.err >&5
a848cd7e
SC
20288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20289 (exit $ac_status); } &&
3f60522a
JS
20290 { ac_try='test -z "$ac_cxx_werror_flag"
20291 || test ! -s conftest.err'
ac1cb8d3
VS
20292 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20293 (eval $ac_try) 2>&5
20294 ac_status=$?
20295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20296 (exit $ac_status); }; } &&
20297 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20298 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20299 (eval $ac_try) 2>&5
20300 ac_status=$?
20301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20302 (exit $ac_status); }; }; then
20303 ac_lo=$ac_mid; break
20304else
20305 echo "$as_me: failed program was:" >&5
20306sed 's/^/| /' conftest.$ac_ext >&5
20307
20308ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
20309 if test $ac_mid -le $ac_hi; then
20310 ac_lo= ac_hi=
20311 break
20312 fi
20313 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 20314fi
ac1cb8d3 20315rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20316 done
20317else
20318 echo "$as_me: failed program was:" >&5
20319sed 's/^/| /' conftest.$ac_ext >&5
20320
20321ac_lo= ac_hi=
20322fi
ac1cb8d3 20323rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 20324fi
ac1cb8d3 20325rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20326# Binary search between lo and hi bounds.
20327while test "x$ac_lo" != "x$ac_hi"; do
20328 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
20329 cat >conftest.$ac_ext <<_ACEOF
20330/* confdefs.h. */
20331_ACEOF
20332cat confdefs.h >>conftest.$ac_ext
20333cat >>conftest.$ac_ext <<_ACEOF
20334/* end confdefs.h. */
20335$ac_includes_default
20336int
20337main ()
20338{
20339static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
20340test_array [0] = 0
20341
20342 ;
20343 return 0;
20344}
20345_ACEOF
20346rm -f conftest.$ac_objext
20347if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20348 (eval $ac_compile) 2>conftest.er1
a848cd7e 20349 ac_status=$?
ac1cb8d3
VS
20350 grep -v '^ *+' conftest.er1 >conftest.err
20351 rm -f conftest.er1
20352 cat conftest.err >&5
a848cd7e
SC
20353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20354 (exit $ac_status); } &&
3f60522a
JS
20355 { ac_try='test -z "$ac_cxx_werror_flag"
20356 || test ! -s conftest.err'
ac1cb8d3
VS
20357 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20358 (eval $ac_try) 2>&5
20359 ac_status=$?
20360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20361 (exit $ac_status); }; } &&
20362 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20363 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20364 (eval $ac_try) 2>&5
20365 ac_status=$?
20366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20367 (exit $ac_status); }; }; then
20368 ac_hi=$ac_mid
20369else
20370 echo "$as_me: failed program was:" >&5
20371sed 's/^/| /' conftest.$ac_ext >&5
20372
20373ac_lo=`expr '(' $ac_mid ')' + 1`
20374fi
ac1cb8d3 20375rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20376done
20377case $ac_lo in
20378?*) ac_cv_sizeof_long_long=$ac_lo;;
20379'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
20380See \`config.log' for more details." >&5
20381echo "$as_me: error: cannot compute sizeof (long long), 77
20382See \`config.log' for more details." >&2;}
20383 { (exit 1); exit 1; }; } ;;
20384esac
20385else
20386 if test "$cross_compiling" = yes; then
3f60522a
JS
20387 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
20388See \`config.log' for more details." >&5
20389echo "$as_me: error: cannot run test program while cross compiling
20390See \`config.log' for more details." >&2;}
a848cd7e
SC
20391 { (exit 1); exit 1; }; }
20392else
20393 cat >conftest.$ac_ext <<_ACEOF
20394/* confdefs.h. */
20395_ACEOF
20396cat confdefs.h >>conftest.$ac_ext
20397cat >>conftest.$ac_ext <<_ACEOF
20398/* end confdefs.h. */
20399$ac_includes_default
20400long longval () { return (long) (sizeof (long long)); }
20401unsigned long ulongval () { return (long) (sizeof (long long)); }
20402#include <stdio.h>
20403#include <stdlib.h>
20404int
20405main ()
20406{
20407
20408 FILE *f = fopen ("conftest.val", "w");
20409 if (! f)
20410 exit (1);
20411 if (((long) (sizeof (long long))) < 0)
20412 {
20413 long i = longval ();
20414 if (i != ((long) (sizeof (long long))))
20415 exit (1);
20416 fprintf (f, "%ld\n", i);
20417 }
20418 else
20419 {
20420 unsigned long i = ulongval ();
20421 if (i != ((long) (sizeof (long long))))
20422 exit (1);
20423 fprintf (f, "%lu\n", i);
20424 }
20425 exit (ferror (f) || fclose (f) != 0);
20426
20427 ;
20428 return 0;
20429}
20430_ACEOF
20431rm -f conftest$ac_exeext
20432if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20433 (eval $ac_link) 2>&5
20434 ac_status=$?
20435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20436 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20437 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20438 (eval $ac_try) 2>&5
20439 ac_status=$?
20440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20441 (exit $ac_status); }; }; then
20442 ac_cv_sizeof_long_long=`cat conftest.val`
20443else
20444 echo "$as_me: program exited with status $ac_status" >&5
20445echo "$as_me: failed program was:" >&5
20446sed 's/^/| /' conftest.$ac_ext >&5
20447
20448( exit $ac_status )
20449{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
20450See \`config.log' for more details." >&5
20451echo "$as_me: error: cannot compute sizeof (long long), 77
20452See \`config.log' for more details." >&2;}
20453 { (exit 1); exit 1; }; }
20454fi
ac1cb8d3 20455rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20456fi
20457fi
20458rm -f conftest.val
20459else
20460 ac_cv_sizeof_long_long=0
20461fi
20462fi
20463echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
20464echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
20465cat >>confdefs.h <<_ACEOF
20466#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
20467_ACEOF
20468
20469
20470 ;;
20471 *-hp-hpux* )
20472 echo "$as_me:$LINENO: checking for long long" >&5
20473echo $ECHO_N "checking for long long... $ECHO_C" >&6
20474if test "${ac_cv_type_long_long+set}" = set; then
20475 echo $ECHO_N "(cached) $ECHO_C" >&6
20476else
20477 cat >conftest.$ac_ext <<_ACEOF
20478/* confdefs.h. */
20479_ACEOF
20480cat confdefs.h >>conftest.$ac_ext
20481cat >>conftest.$ac_ext <<_ACEOF
20482/* end confdefs.h. */
20483$ac_includes_default
20484int
20485main ()
20486{
20487if ((long long *) 0)
20488 return 0;
20489if (sizeof (long long))
20490 return 0;
20491 ;
20492 return 0;
20493}
20494_ACEOF
20495rm -f conftest.$ac_objext
20496if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20497 (eval $ac_compile) 2>conftest.er1
a848cd7e 20498 ac_status=$?
ac1cb8d3
VS
20499 grep -v '^ *+' conftest.er1 >conftest.err
20500 rm -f conftest.er1
20501 cat conftest.err >&5
a848cd7e
SC
20502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20503 (exit $ac_status); } &&
3f60522a
JS
20504 { ac_try='test -z "$ac_cxx_werror_flag"
20505 || test ! -s conftest.err'
ac1cb8d3
VS
20506 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20507 (eval $ac_try) 2>&5
20508 ac_status=$?
20509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20510 (exit $ac_status); }; } &&
20511 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20512 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20513 (eval $ac_try) 2>&5
20514 ac_status=$?
20515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20516 (exit $ac_status); }; }; then
20517 ac_cv_type_long_long=yes
20518else
20519 echo "$as_me: failed program was:" >&5
20520sed 's/^/| /' conftest.$ac_ext >&5
20521
20522ac_cv_type_long_long=no
20523fi
ac1cb8d3 20524rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20525fi
20526echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
20527echo "${ECHO_T}$ac_cv_type_long_long" >&6
20528
20529echo "$as_me:$LINENO: checking size of long long" >&5
20530echo $ECHO_N "checking size of long long... $ECHO_C" >&6
20531if test "${ac_cv_sizeof_long_long+set}" = set; then
20532 echo $ECHO_N "(cached) $ECHO_C" >&6
20533else
20534 if test "$ac_cv_type_long_long" = yes; then
20535 # The cast to unsigned long works around a bug in the HP C Compiler
20536 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
20537 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
20538 # This bug is HP SR number 8606223364.
20539 if test "$cross_compiling" = yes; then
20540 # Depending upon the size, compute the lo and hi bounds.
20541cat >conftest.$ac_ext <<_ACEOF
20542/* confdefs.h. */
20543_ACEOF
20544cat confdefs.h >>conftest.$ac_ext
20545cat >>conftest.$ac_ext <<_ACEOF
20546/* end confdefs.h. */
20547$ac_includes_default
20548int
20549main ()
20550{
20551static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
20552test_array [0] = 0
20553
20554 ;
20555 return 0;
20556}
20557_ACEOF
20558rm -f conftest.$ac_objext
20559if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20560 (eval $ac_compile) 2>conftest.er1
a848cd7e 20561 ac_status=$?
ac1cb8d3
VS
20562 grep -v '^ *+' conftest.er1 >conftest.err
20563 rm -f conftest.er1
20564 cat conftest.err >&5
a848cd7e
SC
20565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20566 (exit $ac_status); } &&
3f60522a
JS
20567 { ac_try='test -z "$ac_cxx_werror_flag"
20568 || test ! -s conftest.err'
ac1cb8d3
VS
20569 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20570 (eval $ac_try) 2>&5
20571 ac_status=$?
20572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20573 (exit $ac_status); }; } &&
20574 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20575 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20576 (eval $ac_try) 2>&5
20577 ac_status=$?
20578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20579 (exit $ac_status); }; }; then
20580 ac_lo=0 ac_mid=0
20581 while :; do
20582 cat >conftest.$ac_ext <<_ACEOF
20583/* confdefs.h. */
20584_ACEOF
20585cat confdefs.h >>conftest.$ac_ext
20586cat >>conftest.$ac_ext <<_ACEOF
20587/* end confdefs.h. */
20588$ac_includes_default
20589int
20590main ()
20591{
20592static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
20593test_array [0] = 0
20594
20595 ;
20596 return 0;
20597}
20598_ACEOF
20599rm -f conftest.$ac_objext
20600if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20601 (eval $ac_compile) 2>conftest.er1
a848cd7e 20602 ac_status=$?
ac1cb8d3
VS
20603 grep -v '^ *+' conftest.er1 >conftest.err
20604 rm -f conftest.er1
20605 cat conftest.err >&5
a848cd7e
SC
20606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20607 (exit $ac_status); } &&
3f60522a
JS
20608 { ac_try='test -z "$ac_cxx_werror_flag"
20609 || test ! -s conftest.err'
ac1cb8d3
VS
20610 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20611 (eval $ac_try) 2>&5
20612 ac_status=$?
20613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20614 (exit $ac_status); }; } &&
20615 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20616 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20617 (eval $ac_try) 2>&5
20618 ac_status=$?
20619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20620 (exit $ac_status); }; }; then
20621 ac_hi=$ac_mid; break
20622else
20623 echo "$as_me: failed program was:" >&5
20624sed 's/^/| /' conftest.$ac_ext >&5
20625
20626ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
20627 if test $ac_lo -le $ac_mid; then
20628 ac_lo= ac_hi=
20629 break
20630 fi
20631 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 20632fi
ac1cb8d3 20633rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20634 done
20635else
20636 echo "$as_me: failed program was:" >&5
20637sed 's/^/| /' conftest.$ac_ext >&5
20638
20639cat >conftest.$ac_ext <<_ACEOF
20640/* confdefs.h. */
20641_ACEOF
20642cat confdefs.h >>conftest.$ac_ext
20643cat >>conftest.$ac_ext <<_ACEOF
20644/* end confdefs.h. */
20645$ac_includes_default
20646int
20647main ()
20648{
20649static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
20650test_array [0] = 0
20651
20652 ;
20653 return 0;
20654}
20655_ACEOF
20656rm -f conftest.$ac_objext
20657if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20658 (eval $ac_compile) 2>conftest.er1
a848cd7e 20659 ac_status=$?
ac1cb8d3
VS
20660 grep -v '^ *+' conftest.er1 >conftest.err
20661 rm -f conftest.er1
20662 cat conftest.err >&5
a848cd7e
SC
20663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20664 (exit $ac_status); } &&
3f60522a
JS
20665 { ac_try='test -z "$ac_cxx_werror_flag"
20666 || test ! -s conftest.err'
ac1cb8d3
VS
20667 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20668 (eval $ac_try) 2>&5
20669 ac_status=$?
20670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20671 (exit $ac_status); }; } &&
20672 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20673 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20674 (eval $ac_try) 2>&5
20675 ac_status=$?
20676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20677 (exit $ac_status); }; }; then
20678 ac_hi=-1 ac_mid=-1
20679 while :; do
20680 cat >conftest.$ac_ext <<_ACEOF
20681/* confdefs.h. */
20682_ACEOF
20683cat confdefs.h >>conftest.$ac_ext
20684cat >>conftest.$ac_ext <<_ACEOF
20685/* end confdefs.h. */
20686$ac_includes_default
20687int
20688main ()
20689{
20690static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
20691test_array [0] = 0
20692
20693 ;
20694 return 0;
20695}
20696_ACEOF
20697rm -f conftest.$ac_objext
20698if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20699 (eval $ac_compile) 2>conftest.er1
a848cd7e 20700 ac_status=$?
ac1cb8d3
VS
20701 grep -v '^ *+' conftest.er1 >conftest.err
20702 rm -f conftest.er1
20703 cat conftest.err >&5
a848cd7e
SC
20704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20705 (exit $ac_status); } &&
3f60522a
JS
20706 { ac_try='test -z "$ac_cxx_werror_flag"
20707 || test ! -s conftest.err'
ac1cb8d3
VS
20708 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20709 (eval $ac_try) 2>&5
20710 ac_status=$?
20711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20712 (exit $ac_status); }; } &&
20713 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20714 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20715 (eval $ac_try) 2>&5
20716 ac_status=$?
20717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20718 (exit $ac_status); }; }; then
20719 ac_lo=$ac_mid; break
20720else
20721 echo "$as_me: failed program was:" >&5
20722sed 's/^/| /' conftest.$ac_ext >&5
20723
20724ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
20725 if test $ac_mid -le $ac_hi; then
20726 ac_lo= ac_hi=
20727 break
20728 fi
20729 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 20730fi
ac1cb8d3 20731rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20732 done
20733else
20734 echo "$as_me: failed program was:" >&5
20735sed 's/^/| /' conftest.$ac_ext >&5
20736
20737ac_lo= ac_hi=
20738fi
ac1cb8d3 20739rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 20740fi
ac1cb8d3 20741rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20742# Binary search between lo and hi bounds.
20743while test "x$ac_lo" != "x$ac_hi"; do
20744 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
20745 cat >conftest.$ac_ext <<_ACEOF
20746/* confdefs.h. */
20747_ACEOF
20748cat confdefs.h >>conftest.$ac_ext
20749cat >>conftest.$ac_ext <<_ACEOF
20750/* end confdefs.h. */
20751$ac_includes_default
20752int
20753main ()
20754{
20755static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
20756test_array [0] = 0
20757
20758 ;
20759 return 0;
20760}
20761_ACEOF
20762rm -f conftest.$ac_objext
20763if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20764 (eval $ac_compile) 2>conftest.er1
a848cd7e 20765 ac_status=$?
ac1cb8d3
VS
20766 grep -v '^ *+' conftest.er1 >conftest.err
20767 rm -f conftest.er1
20768 cat conftest.err >&5
a848cd7e
SC
20769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20770 (exit $ac_status); } &&
3f60522a
JS
20771 { ac_try='test -z "$ac_cxx_werror_flag"
20772 || test ! -s conftest.err'
ac1cb8d3
VS
20773 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20774 (eval $ac_try) 2>&5
20775 ac_status=$?
20776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20777 (exit $ac_status); }; } &&
20778 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20779 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20780 (eval $ac_try) 2>&5
20781 ac_status=$?
20782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20783 (exit $ac_status); }; }; then
20784 ac_hi=$ac_mid
20785else
20786 echo "$as_me: failed program was:" >&5
20787sed 's/^/| /' conftest.$ac_ext >&5
20788
20789ac_lo=`expr '(' $ac_mid ')' + 1`
20790fi
ac1cb8d3 20791rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20792done
20793case $ac_lo in
20794?*) ac_cv_sizeof_long_long=$ac_lo;;
20795'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
20796See \`config.log' for more details." >&5
20797echo "$as_me: error: cannot compute sizeof (long long), 77
20798See \`config.log' for more details." >&2;}
20799 { (exit 1); exit 1; }; } ;;
20800esac
20801else
20802 if test "$cross_compiling" = yes; then
3f60522a
JS
20803 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
20804See \`config.log' for more details." >&5
20805echo "$as_me: error: cannot run test program while cross compiling
20806See \`config.log' for more details." >&2;}
a848cd7e
SC
20807 { (exit 1); exit 1; }; }
20808else
20809 cat >conftest.$ac_ext <<_ACEOF
20810/* confdefs.h. */
20811_ACEOF
20812cat confdefs.h >>conftest.$ac_ext
20813cat >>conftest.$ac_ext <<_ACEOF
20814/* end confdefs.h. */
20815$ac_includes_default
20816long longval () { return (long) (sizeof (long long)); }
20817unsigned long ulongval () { return (long) (sizeof (long long)); }
20818#include <stdio.h>
20819#include <stdlib.h>
20820int
20821main ()
20822{
20823
20824 FILE *f = fopen ("conftest.val", "w");
20825 if (! f)
20826 exit (1);
20827 if (((long) (sizeof (long long))) < 0)
20828 {
20829 long i = longval ();
20830 if (i != ((long) (sizeof (long long))))
20831 exit (1);
20832 fprintf (f, "%ld\n", i);
20833 }
20834 else
20835 {
20836 unsigned long i = ulongval ();
20837 if (i != ((long) (sizeof (long long))))
20838 exit (1);
20839 fprintf (f, "%lu\n", i);
20840 }
20841 exit (ferror (f) || fclose (f) != 0);
20842
20843 ;
20844 return 0;
20845}
20846_ACEOF
20847rm -f conftest$ac_exeext
20848if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20849 (eval $ac_link) 2>&5
20850 ac_status=$?
20851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20852 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20853 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20854 (eval $ac_try) 2>&5
20855 ac_status=$?
20856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20857 (exit $ac_status); }; }; then
20858 ac_cv_sizeof_long_long=`cat conftest.val`
20859else
20860 echo "$as_me: program exited with status $ac_status" >&5
20861echo "$as_me: failed program was:" >&5
20862sed 's/^/| /' conftest.$ac_ext >&5
20863
20864( exit $ac_status )
20865{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
20866See \`config.log' for more details." >&5
20867echo "$as_me: error: cannot compute sizeof (long long), 77
20868See \`config.log' for more details." >&2;}
20869 { (exit 1); exit 1; }; }
20870fi
ac1cb8d3 20871rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20872fi
20873fi
20874rm -f conftest.val
20875else
20876 ac_cv_sizeof_long_long=0
20877fi
20878fi
20879echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
20880echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
20881cat >>confdefs.h <<_ACEOF
20882#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
20883_ACEOF
20884
20885
20886 if test "$ac_cv_sizeof_long_long" != "0"; then
c92ad099 20887 CPPFLAGS="-D_INCLUDE_LONGLONG $CPPFLAGS"
a848cd7e
SC
20888 fi
20889 ;;
20890 * )
20891 echo "$as_me:$LINENO: checking for long long" >&5
20892echo $ECHO_N "checking for long long... $ECHO_C" >&6
20893if test "${ac_cv_type_long_long+set}" = set; then
20894 echo $ECHO_N "(cached) $ECHO_C" >&6
20895else
20896 cat >conftest.$ac_ext <<_ACEOF
20897/* confdefs.h. */
20898_ACEOF
20899cat confdefs.h >>conftest.$ac_ext
20900cat >>conftest.$ac_ext <<_ACEOF
20901/* end confdefs.h. */
20902$ac_includes_default
20903int
20904main ()
20905{
20906if ((long long *) 0)
20907 return 0;
20908if (sizeof (long long))
20909 return 0;
20910 ;
20911 return 0;
20912}
20913_ACEOF
20914rm -f conftest.$ac_objext
20915if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20916 (eval $ac_compile) 2>conftest.er1
a848cd7e 20917 ac_status=$?
ac1cb8d3
VS
20918 grep -v '^ *+' conftest.er1 >conftest.err
20919 rm -f conftest.er1
20920 cat conftest.err >&5
a848cd7e
SC
20921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20922 (exit $ac_status); } &&
3f60522a
JS
20923 { ac_try='test -z "$ac_cxx_werror_flag"
20924 || test ! -s conftest.err'
ac1cb8d3
VS
20925 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20926 (eval $ac_try) 2>&5
20927 ac_status=$?
20928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20929 (exit $ac_status); }; } &&
20930 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20931 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20932 (eval $ac_try) 2>&5
20933 ac_status=$?
20934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20935 (exit $ac_status); }; }; then
20936 ac_cv_type_long_long=yes
20937else
20938 echo "$as_me: failed program was:" >&5
20939sed 's/^/| /' conftest.$ac_ext >&5
20940
20941ac_cv_type_long_long=no
20942fi
ac1cb8d3 20943rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20944fi
20945echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
20946echo "${ECHO_T}$ac_cv_type_long_long" >&6
20947
20948echo "$as_me:$LINENO: checking size of long long" >&5
20949echo $ECHO_N "checking size of long long... $ECHO_C" >&6
20950if test "${ac_cv_sizeof_long_long+set}" = set; then
20951 echo $ECHO_N "(cached) $ECHO_C" >&6
20952else
20953 if test "$ac_cv_type_long_long" = yes; then
20954 # The cast to unsigned long works around a bug in the HP C Compiler
20955 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
20956 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
20957 # This bug is HP SR number 8606223364.
20958 if test "$cross_compiling" = yes; then
20959 # Depending upon the size, compute the lo and hi bounds.
20960cat >conftest.$ac_ext <<_ACEOF
20961/* confdefs.h. */
20962_ACEOF
20963cat confdefs.h >>conftest.$ac_ext
20964cat >>conftest.$ac_ext <<_ACEOF
20965/* end confdefs.h. */
20966$ac_includes_default
20967int
20968main ()
20969{
20970static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
20971test_array [0] = 0
20972
20973 ;
20974 return 0;
20975}
20976_ACEOF
20977rm -f conftest.$ac_objext
20978if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20979 (eval $ac_compile) 2>conftest.er1
a848cd7e 20980 ac_status=$?
ac1cb8d3
VS
20981 grep -v '^ *+' conftest.er1 >conftest.err
20982 rm -f conftest.er1
20983 cat conftest.err >&5
a848cd7e
SC
20984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20985 (exit $ac_status); } &&
3f60522a
JS
20986 { ac_try='test -z "$ac_cxx_werror_flag"
20987 || test ! -s conftest.err'
ac1cb8d3
VS
20988 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20989 (eval $ac_try) 2>&5
20990 ac_status=$?
20991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20992 (exit $ac_status); }; } &&
20993 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20994 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20995 (eval $ac_try) 2>&5
20996 ac_status=$?
20997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20998 (exit $ac_status); }; }; then
20999 ac_lo=0 ac_mid=0
21000 while :; do
21001 cat >conftest.$ac_ext <<_ACEOF
21002/* confdefs.h. */
21003_ACEOF
21004cat confdefs.h >>conftest.$ac_ext
21005cat >>conftest.$ac_ext <<_ACEOF
21006/* end confdefs.h. */
21007$ac_includes_default
21008int
21009main ()
21010{
21011static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
21012test_array [0] = 0
21013
21014 ;
21015 return 0;
21016}
21017_ACEOF
21018rm -f conftest.$ac_objext
21019if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21020 (eval $ac_compile) 2>conftest.er1
a848cd7e 21021 ac_status=$?
ac1cb8d3
VS
21022 grep -v '^ *+' conftest.er1 >conftest.err
21023 rm -f conftest.er1
21024 cat conftest.err >&5
a848cd7e
SC
21025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21026 (exit $ac_status); } &&
3f60522a
JS
21027 { ac_try='test -z "$ac_cxx_werror_flag"
21028 || test ! -s conftest.err'
ac1cb8d3
VS
21029 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21030 (eval $ac_try) 2>&5
21031 ac_status=$?
21032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21033 (exit $ac_status); }; } &&
21034 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
21035 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21036 (eval $ac_try) 2>&5
21037 ac_status=$?
21038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21039 (exit $ac_status); }; }; then
21040 ac_hi=$ac_mid; break
21041else
21042 echo "$as_me: failed program was:" >&5
21043sed 's/^/| /' conftest.$ac_ext >&5
21044
21045ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
21046 if test $ac_lo -le $ac_mid; then
21047 ac_lo= ac_hi=
21048 break
21049 fi
21050 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 21051fi
ac1cb8d3 21052rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
21053 done
21054else
21055 echo "$as_me: failed program was:" >&5
21056sed 's/^/| /' conftest.$ac_ext >&5
21057
21058cat >conftest.$ac_ext <<_ACEOF
21059/* confdefs.h. */
21060_ACEOF
21061cat confdefs.h >>conftest.$ac_ext
21062cat >>conftest.$ac_ext <<_ACEOF
21063/* end confdefs.h. */
21064$ac_includes_default
21065int
21066main ()
21067{
21068static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
21069test_array [0] = 0
21070
21071 ;
21072 return 0;
21073}
21074_ACEOF
21075rm -f conftest.$ac_objext
21076if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21077 (eval $ac_compile) 2>conftest.er1
a848cd7e 21078 ac_status=$?
ac1cb8d3
VS
21079 grep -v '^ *+' conftest.er1 >conftest.err
21080 rm -f conftest.er1
21081 cat conftest.err >&5
a848cd7e
SC
21082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21083 (exit $ac_status); } &&
3f60522a
JS
21084 { ac_try='test -z "$ac_cxx_werror_flag"
21085 || test ! -s conftest.err'
ac1cb8d3
VS
21086 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21087 (eval $ac_try) 2>&5
21088 ac_status=$?
21089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21090 (exit $ac_status); }; } &&
21091 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
21092 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21093 (eval $ac_try) 2>&5
21094 ac_status=$?
21095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21096 (exit $ac_status); }; }; then
21097 ac_hi=-1 ac_mid=-1
21098 while :; do
21099 cat >conftest.$ac_ext <<_ACEOF
21100/* confdefs.h. */
21101_ACEOF
21102cat confdefs.h >>conftest.$ac_ext
21103cat >>conftest.$ac_ext <<_ACEOF
21104/* end confdefs.h. */
21105$ac_includes_default
21106int
21107main ()
21108{
21109static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
21110test_array [0] = 0
21111
21112 ;
21113 return 0;
21114}
21115_ACEOF
21116rm -f conftest.$ac_objext
21117if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21118 (eval $ac_compile) 2>conftest.er1
a848cd7e 21119 ac_status=$?
ac1cb8d3
VS
21120 grep -v '^ *+' conftest.er1 >conftest.err
21121 rm -f conftest.er1
21122 cat conftest.err >&5
a848cd7e
SC
21123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21124 (exit $ac_status); } &&
3f60522a
JS
21125 { ac_try='test -z "$ac_cxx_werror_flag"
21126 || test ! -s conftest.err'
ac1cb8d3
VS
21127 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21128 (eval $ac_try) 2>&5
21129 ac_status=$?
21130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21131 (exit $ac_status); }; } &&
21132 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
21133 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21134 (eval $ac_try) 2>&5
21135 ac_status=$?
21136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21137 (exit $ac_status); }; }; then
21138 ac_lo=$ac_mid; break
21139else
21140 echo "$as_me: failed program was:" >&5
21141sed 's/^/| /' conftest.$ac_ext >&5
21142
21143ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
21144 if test $ac_mid -le $ac_hi; then
21145 ac_lo= ac_hi=
21146 break
21147 fi
21148 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 21149fi
ac1cb8d3 21150rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
21151 done
21152else
21153 echo "$as_me: failed program was:" >&5
21154sed 's/^/| /' conftest.$ac_ext >&5
21155
21156ac_lo= ac_hi=
21157fi
ac1cb8d3 21158rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 21159fi
ac1cb8d3 21160rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
21161# Binary search between lo and hi bounds.
21162while test "x$ac_lo" != "x$ac_hi"; do
21163 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
21164 cat >conftest.$ac_ext <<_ACEOF
21165/* confdefs.h. */
21166_ACEOF
21167cat confdefs.h >>conftest.$ac_ext
21168cat >>conftest.$ac_ext <<_ACEOF
21169/* end confdefs.h. */
21170$ac_includes_default
21171int
21172main ()
21173{
21174static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
21175test_array [0] = 0
21176
21177 ;
21178 return 0;
21179}
21180_ACEOF
21181rm -f conftest.$ac_objext
21182if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21183 (eval $ac_compile) 2>conftest.er1
a848cd7e 21184 ac_status=$?
ac1cb8d3
VS
21185 grep -v '^ *+' conftest.er1 >conftest.err
21186 rm -f conftest.er1
21187 cat conftest.err >&5
a848cd7e
SC
21188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21189 (exit $ac_status); } &&
3f60522a
JS
21190 { ac_try='test -z "$ac_cxx_werror_flag"
21191 || test ! -s conftest.err'
ac1cb8d3
VS
21192 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21193 (eval $ac_try) 2>&5
21194 ac_status=$?
21195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21196 (exit $ac_status); }; } &&
21197 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
21198 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21199 (eval $ac_try) 2>&5
21200 ac_status=$?
21201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21202 (exit $ac_status); }; }; then
21203 ac_hi=$ac_mid
21204else
21205 echo "$as_me: failed program was:" >&5
21206sed 's/^/| /' conftest.$ac_ext >&5
21207
21208ac_lo=`expr '(' $ac_mid ')' + 1`
21209fi
ac1cb8d3 21210rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
21211done
21212case $ac_lo in
21213?*) ac_cv_sizeof_long_long=$ac_lo;;
21214'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
21215See \`config.log' for more details." >&5
21216echo "$as_me: error: cannot compute sizeof (long long), 77
21217See \`config.log' for more details." >&2;}
21218 { (exit 1); exit 1; }; } ;;
21219esac
21220else
21221 if test "$cross_compiling" = yes; then
3f60522a
JS
21222 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
21223See \`config.log' for more details." >&5
21224echo "$as_me: error: cannot run test program while cross compiling
21225See \`config.log' for more details." >&2;}
a848cd7e
SC
21226 { (exit 1); exit 1; }; }
21227else
21228 cat >conftest.$ac_ext <<_ACEOF
21229/* confdefs.h. */
21230_ACEOF
21231cat confdefs.h >>conftest.$ac_ext
21232cat >>conftest.$ac_ext <<_ACEOF
21233/* end confdefs.h. */
21234$ac_includes_default
21235long longval () { return (long) (sizeof (long long)); }
21236unsigned long ulongval () { return (long) (sizeof (long long)); }
21237#include <stdio.h>
21238#include <stdlib.h>
21239int
21240main ()
21241{
21242
21243 FILE *f = fopen ("conftest.val", "w");
21244 if (! f)
21245 exit (1);
21246 if (((long) (sizeof (long long))) < 0)
21247 {
21248 long i = longval ();
21249 if (i != ((long) (sizeof (long long))))
21250 exit (1);
21251 fprintf (f, "%ld\n", i);
21252 }
21253 else
21254 {
21255 unsigned long i = ulongval ();
21256 if (i != ((long) (sizeof (long long))))
21257 exit (1);
21258 fprintf (f, "%lu\n", i);
21259 }
21260 exit (ferror (f) || fclose (f) != 0);
21261
21262 ;
21263 return 0;
21264}
21265_ACEOF
21266rm -f conftest$ac_exeext
21267if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21268 (eval $ac_link) 2>&5
21269 ac_status=$?
21270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21271 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21272 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21273 (eval $ac_try) 2>&5
21274 ac_status=$?
21275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21276 (exit $ac_status); }; }; then
21277 ac_cv_sizeof_long_long=`cat conftest.val`
21278else
21279 echo "$as_me: program exited with status $ac_status" >&5
21280echo "$as_me: failed program was:" >&5
21281sed 's/^/| /' conftest.$ac_ext >&5
21282
21283( exit $ac_status )
21284{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
21285See \`config.log' for more details." >&5
21286echo "$as_me: error: cannot compute sizeof (long long), 77
21287See \`config.log' for more details." >&2;}
21288 { (exit 1); exit 1; }; }
21289fi
ac1cb8d3 21290rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
21291fi
21292fi
21293rm -f conftest.val
21294else
21295 ac_cv_sizeof_long_long=0
21296fi
21297fi
21298echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
21299echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
21300cat >>confdefs.h <<_ACEOF
21301#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
21302_ACEOF
21303
21304
21305esac
21306
238ecede
MW
21307echo "$as_me:$LINENO: checking for wchar_t" >&5
21308echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6
21309if test "${ac_cv_type_wchar_t+set}" = set; then
21310 echo $ECHO_N "(cached) $ECHO_C" >&6
21311else
21312 cat >conftest.$ac_ext <<_ACEOF
21313/* confdefs.h. */
21314_ACEOF
21315cat confdefs.h >>conftest.$ac_ext
21316cat >>conftest.$ac_ext <<_ACEOF
21317/* end confdefs.h. */
21318
83d8eb47
MW
21319 /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
21320 #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
238ecede
MW
21321 # error "fake wchar_t"
21322 #endif
21323 #ifdef HAVE_WCHAR_H
21324 # ifdef __CYGWIN__
21325 # include <stddef.h>
21326 # endif
21327 # include <wchar.h>
21328 #endif
21329 #ifdef HAVE_STDLIB_H
21330 # include <stdlib.h>
21331 #endif
21332 #include <stdio.h>
21333
21334
21335
21336int
21337main ()
21338{
21339if ((wchar_t *) 0)
21340 return 0;
21341if (sizeof (wchar_t))
21342 return 0;
21343 ;
21344 return 0;
21345}
21346_ACEOF
21347rm -f conftest.$ac_objext
21348if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21349 (eval $ac_compile) 2>conftest.er1
21350 ac_status=$?
21351 grep -v '^ *+' conftest.er1 >conftest.err
21352 rm -f conftest.er1
21353 cat conftest.err >&5
21354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21355 (exit $ac_status); } &&
3f60522a
JS
21356 { ac_try='test -z "$ac_cxx_werror_flag"
21357 || test ! -s conftest.err'
238ecede
MW
21358 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21359 (eval $ac_try) 2>&5
21360 ac_status=$?
21361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21362 (exit $ac_status); }; } &&
21363 { ac_try='test -s conftest.$ac_objext'
21364 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21365 (eval $ac_try) 2>&5
21366 ac_status=$?
21367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21368 (exit $ac_status); }; }; then
21369 ac_cv_type_wchar_t=yes
21370else
21371 echo "$as_me: failed program was:" >&5
21372sed 's/^/| /' conftest.$ac_ext >&5
21373
21374ac_cv_type_wchar_t=no
21375fi
21376rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21377fi
21378echo "$as_me:$LINENO: result: $ac_cv_type_wchar_t" >&5
21379echo "${ECHO_T}$ac_cv_type_wchar_t" >&6
21380
a848cd7e
SC
21381echo "$as_me:$LINENO: checking size of wchar_t" >&5
21382echo $ECHO_N "checking size of wchar_t... $ECHO_C" >&6
238ecede 21383if test "${ac_cv_sizeof_wchar_t+set}" = set; then
a848cd7e
SC
21384 echo $ECHO_N "(cached) $ECHO_C" >&6
21385else
238ecede
MW
21386 if test "$ac_cv_type_wchar_t" = yes; then
21387 # The cast to unsigned long works around a bug in the HP C Compiler
21388 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21389 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21390 # This bug is HP SR number 8606223364.
21391 if test "$cross_compiling" = yes; then
21392 # Depending upon the size, compute the lo and hi bounds.
21393cat >conftest.$ac_ext <<_ACEOF
21394/* confdefs.h. */
21395_ACEOF
21396cat confdefs.h >>conftest.$ac_ext
21397cat >>conftest.$ac_ext <<_ACEOF
21398/* end confdefs.h. */
21399
83d8eb47
MW
21400 /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
21401 #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
238ecede
MW
21402 # error "fake wchar_t"
21403 #endif
21404 #ifdef HAVE_WCHAR_H
21405 # ifdef __CYGWIN__
21406 # include <stddef.h>
21407 # endif
21408 # include <wchar.h>
21409 #endif
21410 #ifdef HAVE_STDLIB_H
21411 # include <stdlib.h>
21412 #endif
21413 #include <stdio.h>
21414
21415
21416
21417int
21418main ()
21419{
21420static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) >= 0)];
21421test_array [0] = 0
21422
21423 ;
21424 return 0;
21425}
21426_ACEOF
21427rm -f conftest.$ac_objext
21428if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21429 (eval $ac_compile) 2>conftest.er1
21430 ac_status=$?
21431 grep -v '^ *+' conftest.er1 >conftest.err
21432 rm -f conftest.er1
21433 cat conftest.err >&5
21434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21435 (exit $ac_status); } &&
3f60522a
JS
21436 { ac_try='test -z "$ac_cxx_werror_flag"
21437 || test ! -s conftest.err'
238ecede
MW
21438 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21439 (eval $ac_try) 2>&5
21440 ac_status=$?
21441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21442 (exit $ac_status); }; } &&
21443 { ac_try='test -s conftest.$ac_objext'
21444 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21445 (eval $ac_try) 2>&5
21446 ac_status=$?
21447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21448 (exit $ac_status); }; }; then
21449 ac_lo=0 ac_mid=0
21450 while :; do
21451 cat >conftest.$ac_ext <<_ACEOF
21452/* confdefs.h. */
21453_ACEOF
21454cat confdefs.h >>conftest.$ac_ext
21455cat >>conftest.$ac_ext <<_ACEOF
21456/* end confdefs.h. */
21457
83d8eb47
MW
21458 /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
21459 #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
238ecede
MW
21460 # error "fake wchar_t"
21461 #endif
21462 #ifdef HAVE_WCHAR_H
21463 # ifdef __CYGWIN__
21464 # include <stddef.h>
21465 # endif
21466 # include <wchar.h>
21467 #endif
21468 #ifdef HAVE_STDLIB_H
21469 # include <stdlib.h>
21470 #endif
21471 #include <stdio.h>
21472
21473
21474
21475int
21476main ()
21477{
21478static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) <= $ac_mid)];
21479test_array [0] = 0
21480
21481 ;
21482 return 0;
21483}
21484_ACEOF
21485rm -f conftest.$ac_objext
21486if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21487 (eval $ac_compile) 2>conftest.er1
21488 ac_status=$?
21489 grep -v '^ *+' conftest.er1 >conftest.err
21490 rm -f conftest.er1
21491 cat conftest.err >&5
21492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21493 (exit $ac_status); } &&
3f60522a
JS
21494 { ac_try='test -z "$ac_cxx_werror_flag"
21495 || test ! -s conftest.err'
238ecede
MW
21496 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21497 (eval $ac_try) 2>&5
21498 ac_status=$?
21499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21500 (exit $ac_status); }; } &&
21501 { ac_try='test -s conftest.$ac_objext'
21502 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21503 (eval $ac_try) 2>&5
21504 ac_status=$?
21505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21506 (exit $ac_status); }; }; then
21507 ac_hi=$ac_mid; break
21508else
21509 echo "$as_me: failed program was:" >&5
21510sed 's/^/| /' conftest.$ac_ext >&5
21511
21512ac_lo=`expr $ac_mid + 1`
21513 if test $ac_lo -le $ac_mid; then
21514 ac_lo= ac_hi=
21515 break
21516 fi
21517 ac_mid=`expr 2 '*' $ac_mid + 1`
21518fi
21519rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21520 done
21521else
21522 echo "$as_me: failed program was:" >&5
21523sed 's/^/| /' conftest.$ac_ext >&5
21524
21525cat >conftest.$ac_ext <<_ACEOF
21526/* confdefs.h. */
21527_ACEOF
21528cat confdefs.h >>conftest.$ac_ext
21529cat >>conftest.$ac_ext <<_ACEOF
21530/* end confdefs.h. */
21531
83d8eb47
MW
21532 /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
21533 #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
238ecede
MW
21534 # error "fake wchar_t"
21535 #endif
21536 #ifdef HAVE_WCHAR_H
21537 # ifdef __CYGWIN__
21538 # include <stddef.h>
21539 # endif
21540 # include <wchar.h>
21541 #endif
21542 #ifdef HAVE_STDLIB_H
21543 # include <stdlib.h>
21544 #endif
21545 #include <stdio.h>
21546
21547
21548
21549int
21550main ()
21551{
21552static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) < 0)];
21553test_array [0] = 0
21554
21555 ;
21556 return 0;
21557}
21558_ACEOF
21559rm -f conftest.$ac_objext
21560if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21561 (eval $ac_compile) 2>conftest.er1
21562 ac_status=$?
21563 grep -v '^ *+' conftest.er1 >conftest.err
21564 rm -f conftest.er1
21565 cat conftest.err >&5
21566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21567 (exit $ac_status); } &&
3f60522a
JS
21568 { ac_try='test -z "$ac_cxx_werror_flag"
21569 || test ! -s conftest.err'
238ecede
MW
21570 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21571 (eval $ac_try) 2>&5
21572 ac_status=$?
21573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21574 (exit $ac_status); }; } &&
21575 { ac_try='test -s conftest.$ac_objext'
21576 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21577 (eval $ac_try) 2>&5
21578 ac_status=$?
21579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21580 (exit $ac_status); }; }; then
21581 ac_hi=-1 ac_mid=-1
21582 while :; do
21583 cat >conftest.$ac_ext <<_ACEOF
21584/* confdefs.h. */
21585_ACEOF
21586cat confdefs.h >>conftest.$ac_ext
21587cat >>conftest.$ac_ext <<_ACEOF
21588/* end confdefs.h. */
21589
83d8eb47
MW
21590 /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
21591 #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
238ecede
MW
21592 # error "fake wchar_t"
21593 #endif
21594 #ifdef HAVE_WCHAR_H
21595 # ifdef __CYGWIN__
21596 # include <stddef.h>
21597 # endif
21598 # include <wchar.h>
21599 #endif
21600 #ifdef HAVE_STDLIB_H
21601 # include <stdlib.h>
21602 #endif
21603 #include <stdio.h>
21604
21605
21606
21607int
21608main ()
21609{
21610static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) >= $ac_mid)];
21611test_array [0] = 0
21612
21613 ;
21614 return 0;
21615}
21616_ACEOF
21617rm -f conftest.$ac_objext
21618if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21619 (eval $ac_compile) 2>conftest.er1
21620 ac_status=$?
21621 grep -v '^ *+' conftest.er1 >conftest.err
21622 rm -f conftest.er1
21623 cat conftest.err >&5
21624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21625 (exit $ac_status); } &&
3f60522a
JS
21626 { ac_try='test -z "$ac_cxx_werror_flag"
21627 || test ! -s conftest.err'
238ecede
MW
21628 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21629 (eval $ac_try) 2>&5
21630 ac_status=$?
21631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21632 (exit $ac_status); }; } &&
21633 { ac_try='test -s conftest.$ac_objext'
21634 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21635 (eval $ac_try) 2>&5
21636 ac_status=$?
21637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21638 (exit $ac_status); }; }; then
21639 ac_lo=$ac_mid; break
21640else
21641 echo "$as_me: failed program was:" >&5
21642sed 's/^/| /' conftest.$ac_ext >&5
21643
21644ac_hi=`expr '(' $ac_mid ')' - 1`
21645 if test $ac_mid -le $ac_hi; then
21646 ac_lo= ac_hi=
21647 break
21648 fi
21649 ac_mid=`expr 2 '*' $ac_mid`
21650fi
21651rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21652 done
21653else
21654 echo "$as_me: failed program was:" >&5
21655sed 's/^/| /' conftest.$ac_ext >&5
21656
21657ac_lo= ac_hi=
21658fi
21659rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21660fi
21661rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21662# Binary search between lo and hi bounds.
21663while test "x$ac_lo" != "x$ac_hi"; do
21664 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
21665 cat >conftest.$ac_ext <<_ACEOF
21666/* confdefs.h. */
21667_ACEOF
21668cat confdefs.h >>conftest.$ac_ext
21669cat >>conftest.$ac_ext <<_ACEOF
21670/* end confdefs.h. */
21671
83d8eb47
MW
21672 /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
21673 #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
238ecede
MW
21674 # error "fake wchar_t"
21675 #endif
21676 #ifdef HAVE_WCHAR_H
21677 # ifdef __CYGWIN__
21678 # include <stddef.h>
21679 # endif
21680 # include <wchar.h>
21681 #endif
21682 #ifdef HAVE_STDLIB_H
21683 # include <stdlib.h>
21684 #endif
21685 #include <stdio.h>
a848cd7e 21686
a848cd7e 21687
a848cd7e 21688
238ecede
MW
21689int
21690main ()
21691{
21692static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) <= $ac_mid)];
21693test_array [0] = 0
a848cd7e 21694
238ecede
MW
21695 ;
21696 return 0;
21697}
21698_ACEOF
21699rm -f conftest.$ac_objext
21700if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21701 (eval $ac_compile) 2>conftest.er1
21702 ac_status=$?
21703 grep -v '^ *+' conftest.er1 >conftest.err
21704 rm -f conftest.er1
21705 cat conftest.err >&5
21706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21707 (exit $ac_status); } &&
3f60522a
JS
21708 { ac_try='test -z "$ac_cxx_werror_flag"
21709 || test ! -s conftest.err'
238ecede
MW
21710 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21711 (eval $ac_try) 2>&5
21712 ac_status=$?
21713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21714 (exit $ac_status); }; } &&
21715 { ac_try='test -s conftest.$ac_objext'
21716 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21717 (eval $ac_try) 2>&5
21718 ac_status=$?
21719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21720 (exit $ac_status); }; }; then
21721 ac_hi=$ac_mid
21722else
21723 echo "$as_me: failed program was:" >&5
21724sed 's/^/| /' conftest.$ac_ext >&5
21725
21726ac_lo=`expr '(' $ac_mid ')' + 1`
21727fi
21728rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21729done
21730case $ac_lo in
21731?*) ac_cv_sizeof_wchar_t=$ac_lo;;
21732'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t), 77
21733See \`config.log' for more details." >&5
21734echo "$as_me: error: cannot compute sizeof (wchar_t), 77
21735See \`config.log' for more details." >&2;}
21736 { (exit 1); exit 1; }; } ;;
21737esac
21738else
21739 if test "$cross_compiling" = yes; then
3f60522a
JS
21740 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
21741See \`config.log' for more details." >&5
21742echo "$as_me: error: cannot run test program while cross compiling
21743See \`config.log' for more details." >&2;}
238ecede 21744 { (exit 1); exit 1; }; }
a848cd7e
SC
21745else
21746 cat >conftest.$ac_ext <<_ACEOF
21747/* confdefs.h. */
21748_ACEOF
21749cat confdefs.h >>conftest.$ac_ext
21750cat >>conftest.$ac_ext <<_ACEOF
21751/* end confdefs.h. */
21752
83d8eb47
MW
21753 /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
21754 #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
238ecede
MW
21755 # error "fake wchar_t"
21756 #endif
21757 #ifdef HAVE_WCHAR_H
21758 # ifdef __CYGWIN__
21759 # include <stddef.h>
21760 # endif
21761 # include <wchar.h>
21762 #endif
21763 #ifdef HAVE_STDLIB_H
21764 # include <stdlib.h>
21765 #endif
21766 #include <stdio.h>
21767
21768
21769
21770long longval () { return (long) (sizeof (wchar_t)); }
21771unsigned long ulongval () { return (long) (sizeof (wchar_t)); }
21772#include <stdio.h>
21773#include <stdlib.h>
21774int
21775main ()
21776{
a848cd7e 21777
238ecede
MW
21778 FILE *f = fopen ("conftest.val", "w");
21779 if (! f)
21780 exit (1);
21781 if (((long) (sizeof (wchar_t))) < 0)
21782 {
21783 long i = longval ();
21784 if (i != ((long) (sizeof (wchar_t))))
21785 exit (1);
21786 fprintf (f, "%ld\n", i);
21787 }
21788 else
21789 {
21790 unsigned long i = ulongval ();
21791 if (i != ((long) (sizeof (wchar_t))))
21792 exit (1);
21793 fprintf (f, "%lu\n", i);
21794 }
21795 exit (ferror (f) || fclose (f) != 0);
21796
21797 ;
21798 return 0;
21799}
a848cd7e
SC
21800_ACEOF
21801rm -f conftest$ac_exeext
21802if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21803 (eval $ac_link) 2>&5
21804 ac_status=$?
21805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21806 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21807 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21808 (eval $ac_try) 2>&5
21809 ac_status=$?
21810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21811 (exit $ac_status); }; }; then
238ecede 21812 ac_cv_sizeof_wchar_t=`cat conftest.val`
a848cd7e
SC
21813else
21814 echo "$as_me: program exited with status $ac_status" >&5
21815echo "$as_me: failed program was:" >&5
21816sed 's/^/| /' conftest.$ac_ext >&5
21817
21818( exit $ac_status )
238ecede
MW
21819{ { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t), 77
21820See \`config.log' for more details." >&5
21821echo "$as_me: error: cannot compute sizeof (wchar_t), 77
21822See \`config.log' for more details." >&2;}
21823 { (exit 1); exit 1; }; }
a848cd7e 21824fi
ac1cb8d3 21825rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e 21826fi
a848cd7e 21827fi
238ecede
MW
21828rm -f conftest.val
21829else
21830 ac_cv_sizeof_wchar_t=0
21831fi
21832fi
21833echo "$as_me:$LINENO: result: $ac_cv_sizeof_wchar_t" >&5
21834echo "${ECHO_T}$ac_cv_sizeof_wchar_t" >&6
a848cd7e 21835cat >>confdefs.h <<_ACEOF
238ecede 21836#define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t
a848cd7e
SC
21837_ACEOF
21838
21839
47a7e797
MW
21840if test "$ac_cv_sizeof_wchar_t" != "0"; then
21841 wxUSE_WCHAR_T=yes
21842else
21843 wxUSE_WCHAR_T=no
21844fi
238ecede 21845
ba3d13e1
VZ
21846echo "$as_me:$LINENO: checking for va_copy" >&5
21847echo $ECHO_N "checking for va_copy... $ECHO_C" >&6
21848if test "${wx_cv_func_va_copy+set}" = set; then
21849 echo $ECHO_N "(cached) $ECHO_C" >&6
21850else
21851
21852 cat >conftest.$ac_ext <<_ACEOF
21853
21854 #include <stdarg.h>
21855 void foo(char *f, ...)
21856 {
21857 va_list ap1, ap2;
21858 va_start(ap1, f);
21859 va_copy(ap2, ap1);
21860 va_end(ap2);
21861 va_end(ap1);
21862 }
5886b072
VZ
21863 int main()
21864 {
b902e639
VZ
21865 foo("hi", 17);
21866 return 0;
5886b072 21867 }
ba3d13e1
VZ
21868_ACEOF
21869rm -f conftest.$ac_objext conftest$ac_exeext
21870if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21871 (eval $ac_link) 2>conftest.er1
21872 ac_status=$?
21873 grep -v '^ *+' conftest.er1 >conftest.err
21874 rm -f conftest.er1
21875 cat conftest.err >&5
21876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21877 (exit $ac_status); } &&
3f60522a
JS
21878 { ac_try='test -z "$ac_cxx_werror_flag"
21879 || test ! -s conftest.err'
ba3d13e1
VZ
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); }; } &&
21885 { ac_try='test -s conftest$ac_exeext'
21886 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21887 (eval $ac_try) 2>&5
21888 ac_status=$?
21889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21890 (exit $ac_status); }; }; then
21891 wx_cv_func_va_copy=yes
21892else
21893 echo "$as_me: failed program was:" >&5
21894sed 's/^/| /' conftest.$ac_ext >&5
21895
21896wx_cv_func_va_copy=no
21897
21898fi
21899rm -f conftest.err conftest.$ac_objext \
21900 conftest$ac_exeext conftest.$ac_ext
21901
21902
21903fi
21904echo "$as_me:$LINENO: result: $wx_cv_func_va_copy" >&5
21905echo "${ECHO_T}$wx_cv_func_va_copy" >&6
21906
21907if test $wx_cv_func_va_copy = "yes"; then
21908 cat >>confdefs.h <<\_ACEOF
21909#define HAVE_VA_COPY 1
21910_ACEOF
21911
21912else
21913 echo "$as_me:$LINENO: checking if va_list can be copied by value" >&5
21914echo $ECHO_N "checking if va_list can be copied by value... $ECHO_C" >&6
21915if test "${wx_cv_type_va_list_lvalue+set}" = set; then
21916 echo $ECHO_N "(cached) $ECHO_C" >&6
21917else
21918
21919 if test "$cross_compiling" = yes; then
21920 wx_cv_type_va_list_lvalue=yes
21921
21922else
21923 cat >conftest.$ac_ext <<_ACEOF
21924
21925 #include <stdarg.h>
21926 int foo(char *f, ...)
21927 {
21928 va_list ap1, ap2;
21929 va_start(ap1, f);
21930 ap2 = ap1;
21931 if ( va_arg(ap1, int) != 17 || va_arg(ap2, int) != 17 )
21932 return 1;
21933 va_end(ap2);
21934 va_end(ap1);
21935 return 0;
21936 }
21937 int main()
21938 {
21939 return foo("hi", 17);
21940 }
21941_ACEOF
21942rm -f conftest$ac_exeext
21943if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21944 (eval $ac_link) 2>&5
21945 ac_status=$?
21946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21947 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21948 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21949 (eval $ac_try) 2>&5
21950 ac_status=$?
21951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21952 (exit $ac_status); }; }; then
21953 wx_cv_type_va_list_lvalue=yes
21954else
21955 echo "$as_me: program exited with status $ac_status" >&5
21956echo "$as_me: failed program was:" >&5
21957sed 's/^/| /' conftest.$ac_ext >&5
21958
21959( exit $ac_status )
21960wx_cv_type_va_list_lvalue=no
21961fi
21962rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21963fi
21964
21965
21966fi
21967echo "$as_me:$LINENO: result: $wx_cv_type_va_list_lvalue" >&5
21968echo "${ECHO_T}$wx_cv_type_va_list_lvalue" >&6
21969
21970 if test $wx_cv_type_va_list_lvalue != "yes"; then
21971 cat >>confdefs.h <<\_ACEOF
21972#define VA_LIST_IS_ARRAY 1
21973_ACEOF
21974
21975 fi
21976fi
21977
a848cd7e
SC
21978# Check whether --enable-largefile or --disable-largefile was given.
21979if test "${enable_largefile+set}" = set; then
21980 enableval="$enable_largefile"
21981
21982fi;
21983if test "$enable_largefile" != no; then
21984 wx_largefile=no
21985
21986 echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
21987echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
21988if test "${ac_cv_sys_file_offset_bits+set}" = set; then
21989 echo $ECHO_N "(cached) $ECHO_C" >&6
21990else
21991
21992 cat >conftest.$ac_ext <<_ACEOF
21993/* confdefs.h. */
21994_ACEOF
21995cat confdefs.h >>conftest.$ac_ext
21996cat >>conftest.$ac_ext <<_ACEOF
21997/* end confdefs.h. */
21998#define _FILE_OFFSET_BITS 64
21999 #include <sys/types.h>
22000int
22001main ()
22002{
22003typedef struct {
22004 unsigned int field: sizeof(off_t) == 8;
22005} wxlf;
22006
22007 ;
22008 return 0;
22009}
22010_ACEOF
22011rm -f conftest.$ac_objext
22012if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 22013 (eval $ac_compile) 2>conftest.er1
a848cd7e 22014 ac_status=$?
ac1cb8d3
VS
22015 grep -v '^ *+' conftest.er1 >conftest.err
22016 rm -f conftest.er1
22017 cat conftest.err >&5
a848cd7e
SC
22018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22019 (exit $ac_status); } &&
3f60522a
JS
22020 { ac_try='test -z "$ac_cxx_werror_flag"
22021 || test ! -s conftest.err'
ac1cb8d3
VS
22022 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22023 (eval $ac_try) 2>&5
22024 ac_status=$?
22025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22026 (exit $ac_status); }; } &&
22027 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
22028 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22029 (eval $ac_try) 2>&5
22030 ac_status=$?
22031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22032 (exit $ac_status); }; }; then
22033 ac_cv_sys_file_offset_bits=64
22034else
22035 echo "$as_me: failed program was:" >&5
22036sed 's/^/| /' conftest.$ac_ext >&5
22037
22038ac_cv_sys_file_offset_bits=no
22039fi
ac1cb8d3 22040rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
22041
22042
22043fi
22044echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
22045echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
22046
22047 if test "$ac_cv_sys_file_offset_bits" != no; then
22048 wx_largefile=yes
22049 cat >>confdefs.h <<_ACEOF
22050#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
22051_ACEOF
22052
22053 fi
22054
22055 if test "x$wx_largefile" != "xyes"; then
22056
22057 echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
22058echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
22059if test "${ac_cv_sys_large_files+set}" = set; then
22060 echo $ECHO_N "(cached) $ECHO_C" >&6
22061else
22062
22063 cat >conftest.$ac_ext <<_ACEOF
22064/* confdefs.h. */
22065_ACEOF
22066cat confdefs.h >>conftest.$ac_ext
22067cat >>conftest.$ac_ext <<_ACEOF
22068/* end confdefs.h. */
22069#define _LARGE_FILES 1
22070 #include <sys/types.h>
22071int
22072main ()
22073{
22074typedef struct {
22075 unsigned int field: sizeof(off_t) == 8;
22076} wxlf;
22077
22078 ;
22079 return 0;
22080}
22081_ACEOF
22082rm -f conftest.$ac_objext
22083if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 22084 (eval $ac_compile) 2>conftest.er1
a848cd7e 22085 ac_status=$?
ac1cb8d3
VS
22086 grep -v '^ *+' conftest.er1 >conftest.err
22087 rm -f conftest.er1
22088 cat conftest.err >&5
a848cd7e
SC
22089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22090 (exit $ac_status); } &&
3f60522a
JS
22091 { ac_try='test -z "$ac_cxx_werror_flag"
22092 || test ! -s conftest.err'
ac1cb8d3
VS
22093 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22094 (eval $ac_try) 2>&5
22095 ac_status=$?
22096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22097 (exit $ac_status); }; } &&
22098 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
22099 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22100 (eval $ac_try) 2>&5
22101 ac_status=$?
22102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22103 (exit $ac_status); }; }; then
22104 ac_cv_sys_large_files=1
22105else
22106 echo "$as_me: failed program was:" >&5
22107sed 's/^/| /' conftest.$ac_ext >&5
22108
22109ac_cv_sys_large_files=no
22110fi
ac1cb8d3 22111rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
22112
22113
22114fi
22115echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
22116echo "${ECHO_T}$ac_cv_sys_large_files" >&6
22117
22118 if test "$ac_cv_sys_large_files" != no; then
22119 wx_largefile=yes
22120 cat >>confdefs.h <<_ACEOF
22121#define _LARGE_FILES $ac_cv_sys_large_files
22122_ACEOF
22123
22124 fi
22125
22126 fi
22127
22128 echo "$as_me:$LINENO: checking if large file support is available" >&5
22129echo $ECHO_N "checking if large file support is available... $ECHO_C" >&6
22130 if test "x$wx_largefile" = "xyes"; then
22131 cat >>confdefs.h <<\_ACEOF
22132#define HAVE_LARGEFILE_SUPPORT 1
22133_ACEOF
22134
22135 fi
22136 echo "$as_me:$LINENO: result: $wx_largefile" >&5
22137echo "${ECHO_T}$wx_largefile" >&6
22138fi
22139
5b674b9d
DE
22140
22141if test "x$wx_largefile" = "xyes"; then
22142 if test "x$ac_cv_sys_file_offset_bits" = "x64"; then
5ff751d6 22143 WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES"
00421666
MW
22144
22145 if test "$USE_HPUX" = 1 -a "$GXX" = "yes"; then
22146 echo "$as_me:$LINENO: checking if -D__STDC_EXT__ is required" >&5
22147echo $ECHO_N "checking if -D__STDC_EXT__ is required... $ECHO_C" >&6
22148if test "${wx_cv_STDC_EXT_required+set}" = set; then
22149 echo $ECHO_N "(cached) $ECHO_C" >&6
22150else
22151
00421666
MW
22152 cat >conftest.$ac_ext <<_ACEOF
22153/* confdefs.h. */
22154_ACEOF
22155cat confdefs.h >>conftest.$ac_ext
22156cat >>conftest.$ac_ext <<_ACEOF
22157/* end confdefs.h. */
22158
22159int
22160main ()
22161{
22162
22163 #ifndef __STDC_EXT__
22164 choke me
22165 #endif
22166
22167 ;
22168 return 0;
22169}
22170_ACEOF
22171rm -f conftest.$ac_objext
22172if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22173 (eval $ac_compile) 2>conftest.er1
22174 ac_status=$?
22175 grep -v '^ *+' conftest.er1 >conftest.err
22176 rm -f conftest.er1
22177 cat conftest.err >&5
22178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22179 (exit $ac_status); } &&
3f60522a
JS
22180 { ac_try='test -z "$ac_cxx_werror_flag"
22181 || test ! -s conftest.err'
00421666
MW
22182 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22183 (eval $ac_try) 2>&5
22184 ac_status=$?
22185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22186 (exit $ac_status); }; } &&
22187 { ac_try='test -s conftest.$ac_objext'
22188 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22189 (eval $ac_try) 2>&5
22190 ac_status=$?
22191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22192 (exit $ac_status); }; }; then
22193 wx_cv_STDC_EXT_required=no
22194else
22195 echo "$as_me: failed program was:" >&5
22196sed 's/^/| /' conftest.$ac_ext >&5
22197
22198wx_cv_STDC_EXT_required=yes
22199
22200fi
22201rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
00421666
MW
22202
22203
22204fi
22205echo "$as_me:$LINENO: result: $wx_cv_STDC_EXT_required" >&5
22206echo "${ECHO_T}$wx_cv_STDC_EXT_required" >&6
22207 if test "x$wx_cv_STDC_EXT_required" = "xyes"; then
5ff751d6 22208 WXCONFIG_CXXFLAGS="$WXCONFIG_CXXFLAGS -D__STDC_EXT__"
00421666
MW
22209 fi
22210 fi
5b674b9d 22211 else
5ff751d6 22212 WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS -D_LARGE_FILES"
5b674b9d
DE
22213 fi
22214 echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
5294a27e
VZ
22215echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6
22216if test "${ac_cv_sys_largefile_source+set}" = set; then
22217 echo $ECHO_N "(cached) $ECHO_C" >&6
22218else
22219 while :; do
22220 ac_cv_sys_largefile_source=no
22221 cat >conftest.$ac_ext <<_ACEOF
22222/* confdefs.h. */
22223_ACEOF
22224cat confdefs.h >>conftest.$ac_ext
22225cat >>conftest.$ac_ext <<_ACEOF
22226/* end confdefs.h. */
22227#include <stdio.h>
22228int
22229main ()
22230{
22231return !fseeko;
22232 ;
22233 return 0;
22234}
22235_ACEOF
22236rm -f conftest.$ac_objext
22237if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22238 (eval $ac_compile) 2>conftest.er1
22239 ac_status=$?
22240 grep -v '^ *+' conftest.er1 >conftest.err
22241 rm -f conftest.er1
22242 cat conftest.err >&5
22243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22244 (exit $ac_status); } &&
3f60522a
JS
22245 { ac_try='test -z "$ac_cxx_werror_flag"
22246 || test ! -s conftest.err'
5294a27e
VZ
22247 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22248 (eval $ac_try) 2>&5
22249 ac_status=$?
22250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22251 (exit $ac_status); }; } &&
22252 { ac_try='test -s conftest.$ac_objext'
22253 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22254 (eval $ac_try) 2>&5
22255 ac_status=$?
22256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22257 (exit $ac_status); }; }; then
22258 break
22259else
22260 echo "$as_me: failed program was:" >&5
22261sed 's/^/| /' conftest.$ac_ext >&5
22262
22263fi
22264rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22265 cat >conftest.$ac_ext <<_ACEOF
22266/* confdefs.h. */
22267_ACEOF
22268cat confdefs.h >>conftest.$ac_ext
22269cat >>conftest.$ac_ext <<_ACEOF
22270/* end confdefs.h. */
22271#define _LARGEFILE_SOURCE 1
22272#include <stdio.h>
22273int
22274main ()
22275{
22276return !fseeko;
22277 ;
22278 return 0;
22279}
22280_ACEOF
22281rm -f conftest.$ac_objext
22282if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22283 (eval $ac_compile) 2>conftest.er1
22284 ac_status=$?
22285 grep -v '^ *+' conftest.er1 >conftest.err
22286 rm -f conftest.er1
22287 cat conftest.err >&5
22288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22289 (exit $ac_status); } &&
3f60522a
JS
22290 { ac_try='test -z "$ac_cxx_werror_flag"
22291 || test ! -s conftest.err'
5294a27e
VZ
22292 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22293 (eval $ac_try) 2>&5
22294 ac_status=$?
22295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22296 (exit $ac_status); }; } &&
22297 { ac_try='test -s conftest.$ac_objext'
22298 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22299 (eval $ac_try) 2>&5
22300 ac_status=$?
22301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22302 (exit $ac_status); }; }; then
22303 ac_cv_sys_largefile_source=1; break
22304else
22305 echo "$as_me: failed program was:" >&5
22306sed 's/^/| /' conftest.$ac_ext >&5
22307
22308fi
22309rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22310 break
22311done
22312fi
22313echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
22314echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6
22315if test "$ac_cv_sys_largefile_source" != no; then
22316
22317cat >>confdefs.h <<_ACEOF
22318#define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
22319_ACEOF
22320
22321fi
22322rm -f conftest*
22323
22324# We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
22325# in glibc 2.1.3, but that breaks too many other things.
22326# If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
22327echo "$as_me:$LINENO: checking for fseeko" >&5
22328echo $ECHO_N "checking for fseeko... $ECHO_C" >&6
22329if test "${ac_cv_func_fseeko+set}" = set; then
22330 echo $ECHO_N "(cached) $ECHO_C" >&6
22331else
22332 cat >conftest.$ac_ext <<_ACEOF
22333/* confdefs.h. */
22334_ACEOF
22335cat confdefs.h >>conftest.$ac_ext
22336cat >>conftest.$ac_ext <<_ACEOF
22337/* end confdefs.h. */
22338#include <stdio.h>
22339int
22340main ()
22341{
22342return fseeko && fseeko (stdin, 0, 0);
22343 ;
22344 return 0;
22345}
22346_ACEOF
22347rm -f conftest.$ac_objext conftest$ac_exeext
22348if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22349 (eval $ac_link) 2>conftest.er1
22350 ac_status=$?
22351 grep -v '^ *+' conftest.er1 >conftest.err
22352 rm -f conftest.er1
22353 cat conftest.err >&5
22354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22355 (exit $ac_status); } &&
3f60522a
JS
22356 { ac_try='test -z "$ac_cxx_werror_flag"
22357 || test ! -s conftest.err'
5294a27e
VZ
22358 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22359 (eval $ac_try) 2>&5
22360 ac_status=$?
22361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22362 (exit $ac_status); }; } &&
22363 { ac_try='test -s conftest$ac_exeext'
22364 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22365 (eval $ac_try) 2>&5
22366 ac_status=$?
22367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22368 (exit $ac_status); }; }; then
22369 ac_cv_func_fseeko=yes
22370else
22371 echo "$as_me: failed program was:" >&5
22372sed 's/^/| /' conftest.$ac_ext >&5
22373
22374ac_cv_func_fseeko=no
22375fi
22376rm -f conftest.err conftest.$ac_objext \
22377 conftest$ac_exeext conftest.$ac_ext
22378fi
22379echo "$as_me:$LINENO: result: $ac_cv_func_fseeko" >&5
22380echo "${ECHO_T}$ac_cv_func_fseeko" >&6
22381if test $ac_cv_func_fseeko = yes; then
22382
22383cat >>confdefs.h <<\_ACEOF
22384#define HAVE_FSEEKO 1
22385_ACEOF
22386
22387fi
22388
5b674b9d 22389 if test "$ac_cv_sys_largefile_source" != no; then
5ff751d6 22390 WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS -D_LARGEFILE_SOURCE=$ac_cv_sys_largefile_source"
a848cd7e 22391 fi
a848cd7e
SC
22392fi
22393
22394echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
22395echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
22396if test "${ac_cv_c_bigendian+set}" = set; then
22397 echo $ECHO_N "(cached) $ECHO_C" >&6
22398else
22399 ac_cv_c_bigendian=unknown
22400# See if sys/param.h defines the BYTE_ORDER macro.
22401cat >conftest.$ac_ext <<_ACEOF
22402/* confdefs.h. */
22403_ACEOF
22404cat confdefs.h >>conftest.$ac_ext
22405cat >>conftest.$ac_ext <<_ACEOF
22406/* end confdefs.h. */
22407#include <sys/types.h>
22408#include <sys/param.h>
22409int
22410main ()
22411{
22412
22413#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
22414 bogus endian macros
22415#endif
22416 ;
22417 return 0;
22418}
22419_ACEOF
22420rm -f conftest.$ac_objext
22421if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 22422 (eval $ac_compile) 2>conftest.er1
a848cd7e 22423 ac_status=$?
ac1cb8d3
VS
22424 grep -v '^ *+' conftest.er1 >conftest.err
22425 rm -f conftest.er1
22426 cat conftest.err >&5
a848cd7e
SC
22427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22428 (exit $ac_status); } &&
3f60522a
JS
22429 { ac_try='test -z "$ac_cxx_werror_flag"
22430 || test ! -s conftest.err'
ac1cb8d3
VS
22431 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22432 (eval $ac_try) 2>&5
22433 ac_status=$?
22434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22435 (exit $ac_status); }; } &&
22436 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
22437 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22438 (eval $ac_try) 2>&5
22439 ac_status=$?
22440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22441 (exit $ac_status); }; }; then
22442 # It does; now see whether it defined to BIG_ENDIAN or not.
22443cat >conftest.$ac_ext <<_ACEOF
22444/* confdefs.h. */
22445_ACEOF
22446cat confdefs.h >>conftest.$ac_ext
22447cat >>conftest.$ac_ext <<_ACEOF
22448/* end confdefs.h. */
22449#include <sys/types.h>
22450#include <sys/param.h>
22451int
22452main ()
22453{
22454
22455#if BYTE_ORDER != BIG_ENDIAN
22456 not big endian
22457#endif
22458 ;
22459 return 0;
22460}
22461_ACEOF
22462rm -f conftest.$ac_objext
22463if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 22464 (eval $ac_compile) 2>conftest.er1
a848cd7e 22465 ac_status=$?
ac1cb8d3
VS
22466 grep -v '^ *+' conftest.er1 >conftest.err
22467 rm -f conftest.er1
22468 cat conftest.err >&5
a848cd7e
SC
22469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22470 (exit $ac_status); } &&
3f60522a
JS
22471 { ac_try='test -z "$ac_cxx_werror_flag"
22472 || test ! -s conftest.err'
ac1cb8d3
VS
22473 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22474 (eval $ac_try) 2>&5
22475 ac_status=$?
22476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22477 (exit $ac_status); }; } &&
22478 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
22479 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22480 (eval $ac_try) 2>&5
22481 ac_status=$?
22482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22483 (exit $ac_status); }; }; then
22484 ac_cv_c_bigendian=yes
22485else
22486 echo "$as_me: failed program was:" >&5
22487sed 's/^/| /' conftest.$ac_ext >&5
22488
22489ac_cv_c_bigendian=no
22490fi
ac1cb8d3 22491rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
22492else
22493 echo "$as_me: failed program was:" >&5
22494sed 's/^/| /' conftest.$ac_ext >&5
22495
22496fi
ac1cb8d3 22497rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
22498if test $ac_cv_c_bigendian = unknown; then
22499if test "$cross_compiling" = yes; then
22500 ac_cv_c_bigendian=unknown
22501else
22502 cat >conftest.$ac_ext <<_ACEOF
22503/* confdefs.h. */
22504_ACEOF
22505cat confdefs.h >>conftest.$ac_ext
22506cat >>conftest.$ac_ext <<_ACEOF
22507/* end confdefs.h. */
22508main () {
22509 /* Are we little or big endian? From Harbison&Steele. */
22510 union
22511 {
22512 long l;
22513 char c[sizeof (long)];
22514 } u;
22515 u.l = 1;
22516 exit (u.c[sizeof (long) - 1] == 1);
22517}
22518_ACEOF
22519rm -f conftest$ac_exeext
22520if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22521 (eval $ac_link) 2>&5
22522 ac_status=$?
22523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22524 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22525 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22526 (eval $ac_try) 2>&5
22527 ac_status=$?
22528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22529 (exit $ac_status); }; }; then
22530 ac_cv_c_bigendian=no
22531else
22532 echo "$as_me: program exited with status $ac_status" >&5
22533echo "$as_me: failed program was:" >&5
22534sed 's/^/| /' conftest.$ac_ext >&5
22535
22536( exit $ac_status )
22537ac_cv_c_bigendian=yes
22538fi
ac1cb8d3 22539rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
22540fi
22541fi
22542fi
22543echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
22544echo "${ECHO_T}$ac_cv_c_bigendian" >&6
22545if test $ac_cv_c_bigendian = unknown; then
22546 { 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
22547echo "$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;}
22548fi
22549if test $ac_cv_c_bigendian = yes; then
22550 cat >>confdefs.h <<\_ACEOF
22551#define WORDS_BIGENDIAN 1
22552_ACEOF
22553
22554fi
22555
22556
a848cd7e
SC
22557
22558
22559
22560 ac_ext=cc
22561ac_cpp='$CXXCPP $CPPFLAGS'
22562ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22563ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22564ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22565
22566
22567
22568for ac_header in iostream
22569do
22570as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22571if eval "test \"\${$as_ac_Header+set}\" = set"; then
22572 echo "$as_me:$LINENO: checking for $ac_header" >&5
22573echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
22574if eval "test \"\${$as_ac_Header+set}\" = set"; then
22575 echo $ECHO_N "(cached) $ECHO_C" >&6
22576fi
22577echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
22578echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
22579else
22580 # Is the header compilable?
22581echo "$as_me:$LINENO: checking $ac_header usability" >&5
22582echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
22583cat >conftest.$ac_ext <<_ACEOF
22584/* confdefs.h. */
22585_ACEOF
22586cat confdefs.h >>conftest.$ac_ext
22587cat >>conftest.$ac_ext <<_ACEOF
22588/* end confdefs.h. */
22589$ac_includes_default
22590#include <$ac_header>
22591_ACEOF
22592rm -f conftest.$ac_objext
22593if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 22594 (eval $ac_compile) 2>conftest.er1
a848cd7e 22595 ac_status=$?
ac1cb8d3
VS
22596 grep -v '^ *+' conftest.er1 >conftest.err
22597 rm -f conftest.er1
22598 cat conftest.err >&5
a848cd7e
SC
22599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22600 (exit $ac_status); } &&
3f60522a
JS
22601 { ac_try='test -z "$ac_cxx_werror_flag"
22602 || test ! -s conftest.err'
ac1cb8d3
VS
22603 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22604 (eval $ac_try) 2>&5
22605 ac_status=$?
22606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22607 (exit $ac_status); }; } &&
22608 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
22609 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22610 (eval $ac_try) 2>&5
22611 ac_status=$?
22612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22613 (exit $ac_status); }; }; then
22614 ac_header_compiler=yes
22615else
22616 echo "$as_me: failed program was:" >&5
22617sed 's/^/| /' conftest.$ac_ext >&5
22618
22619ac_header_compiler=no
22620fi
ac1cb8d3 22621rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
22622echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22623echo "${ECHO_T}$ac_header_compiler" >&6
22624
22625# Is the header present?
22626echo "$as_me:$LINENO: checking $ac_header presence" >&5
22627echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
22628cat >conftest.$ac_ext <<_ACEOF
22629/* confdefs.h. */
22630_ACEOF
22631cat confdefs.h >>conftest.$ac_ext
22632cat >>conftest.$ac_ext <<_ACEOF
22633/* end confdefs.h. */
22634#include <$ac_header>
22635_ACEOF
22636if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22637 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
22638 ac_status=$?
22639 grep -v '^ *+' conftest.er1 >conftest.err
22640 rm -f conftest.er1
22641 cat conftest.err >&5
22642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22643 (exit $ac_status); } >/dev/null; then
22644 if test -s conftest.err; then
22645 ac_cpp_err=$ac_cxx_preproc_warn_flag
ac1cb8d3 22646 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
22647 else
22648 ac_cpp_err=
22649 fi
22650else
22651 ac_cpp_err=yes
22652fi
22653if test -z "$ac_cpp_err"; then
22654 ac_header_preproc=yes
22655else
22656 echo "$as_me: failed program was:" >&5
22657sed 's/^/| /' conftest.$ac_ext >&5
22658
22659 ac_header_preproc=no
22660fi
22661rm -f conftest.err conftest.$ac_ext
22662echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22663echo "${ECHO_T}$ac_header_preproc" >&6
22664
22665# So? What about this header?
ac1cb8d3
VS
22666case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
22667 yes:no: )
a848cd7e
SC
22668 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22669echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
22670 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22671echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22672 ac_header_preproc=yes
a848cd7e 22673 ;;
ac1cb8d3 22674 no:yes:* )
a848cd7e
SC
22675 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22676echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
22677 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22678echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22679 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22680echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22681 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22682echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
22683 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22684echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
22685 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22686echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
22687 (
22688 cat <<\_ASBOX
ac1cb8d3
VS
22689## ----------------------------------------- ##
22690## Report this to wx-dev@lists.wxwidgets.org ##
22691## ----------------------------------------- ##
a848cd7e
SC
22692_ASBOX
22693 ) |
22694 sed "s/^/$as_me: WARNING: /" >&2
22695 ;;
22696esac
22697echo "$as_me:$LINENO: checking for $ac_header" >&5
22698echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
22699if eval "test \"\${$as_ac_Header+set}\" = set"; then
22700 echo $ECHO_N "(cached) $ECHO_C" >&6
22701else
ac1cb8d3 22702 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
22703fi
22704echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
22705echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
22706
22707fi
22708if test `eval echo '${'$as_ac_Header'}'` = yes; then
22709 cat >>confdefs.h <<_ACEOF
22710#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22711_ACEOF
22712
22713fi
22714
22715done
22716
22717
22718 if test "$ac_cv_header_iostream" = "yes" ; then
22719 :
22720 else
22721 cat >>confdefs.h <<\_ACEOF
22722#define wxUSE_IOSTREAMH 1
22723_ACEOF
22724
22725 fi
22726
5d7b7554
VZ
22727 ac_ext=cc
22728ac_cpp='$CXXCPP $CPPFLAGS'
22729ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22730ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22731ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
a848cd7e
SC
22732
22733
22734
22735
22736 echo "$as_me:$LINENO: checking if C++ compiler supports bool" >&5
22737echo $ECHO_N "checking if C++ compiler supports bool... $ECHO_C" >&6
22738if test "${wx_cv_cpp_bool+set}" = set; then
22739 echo $ECHO_N "(cached) $ECHO_C" >&6
22740else
22741
22742
22743
22744 ac_ext=cc
22745ac_cpp='$CXXCPP $CPPFLAGS'
22746ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22747ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22748ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22749
22750
22751 cat >conftest.$ac_ext <<_ACEOF
22752/* confdefs.h. */
22753_ACEOF
22754cat confdefs.h >>conftest.$ac_ext
22755cat >>conftest.$ac_ext <<_ACEOF
22756/* end confdefs.h. */
22757
22758
22759int
22760main ()
22761{
22762
22763 bool b = true;
22764
22765 return 0;
22766
22767 ;
22768 return 0;
22769}
22770_ACEOF
22771rm -f conftest.$ac_objext
22772if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 22773 (eval $ac_compile) 2>conftest.er1
a848cd7e 22774 ac_status=$?
ac1cb8d3
VS
22775 grep -v '^ *+' conftest.er1 >conftest.err
22776 rm -f conftest.er1
22777 cat conftest.err >&5
a848cd7e
SC
22778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22779 (exit $ac_status); } &&
3f60522a
JS
22780 { ac_try='test -z "$ac_cxx_werror_flag"
22781 || test ! -s conftest.err'
ac1cb8d3
VS
22782 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22783 (eval $ac_try) 2>&5
22784 ac_status=$?
22785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22786 (exit $ac_status); }; } &&
22787 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
22788 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22789 (eval $ac_try) 2>&5
22790 ac_status=$?
22791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22792 (exit $ac_status); }; }; then
22793
22794 wx_cv_cpp_bool=yes
22795
22796else
22797 echo "$as_me: failed program was:" >&5
22798sed 's/^/| /' conftest.$ac_ext >&5
22799
22800
22801 wx_cv_cpp_bool=no
22802
22803
22804fi
ac1cb8d3 22805rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 22806
5d7b7554
VZ
22807 ac_ext=cc
22808ac_cpp='$CXXCPP $CPPFLAGS'
22809ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22810ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22811ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
a848cd7e
SC
22812
22813
22814fi
22815echo "$as_me:$LINENO: result: $wx_cv_cpp_bool" >&5
22816echo "${ECHO_T}$wx_cv_cpp_bool" >&6
22817
22818 if test "$wx_cv_cpp_bool" = "yes"; then
22819 cat >>confdefs.h <<\_ACEOF
22820#define HAVE_BOOL 1
22821_ACEOF
22822
22823 fi
22824
22825
22826
22827 echo "$as_me:$LINENO: checking if C++ compiler supports the explicit keyword" >&5
22828echo $ECHO_N "checking if C++ compiler supports the explicit keyword... $ECHO_C" >&6
22829if test "${wx_cv_explicit+set}" = set; then
22830 echo $ECHO_N "(cached) $ECHO_C" >&6
22831else
22832
22833
22834
22835 ac_ext=cc
22836ac_cpp='$CXXCPP $CPPFLAGS'
22837ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22838ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22839ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22840
22841
22842 cat >conftest.$ac_ext <<_ACEOF
22843/* confdefs.h. */
22844_ACEOF
22845cat confdefs.h >>conftest.$ac_ext
22846cat >>conftest.$ac_ext <<_ACEOF
22847/* end confdefs.h. */
22848
22849 class Foo { public: explicit Foo(int) {} };
22850
22851int
22852main ()
22853{
22854
22855 return 0;
22856
22857 ;
22858 return 0;
22859}
22860_ACEOF
22861rm -f conftest.$ac_objext
22862if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 22863 (eval $ac_compile) 2>conftest.er1
a848cd7e 22864 ac_status=$?
ac1cb8d3
VS
22865 grep -v '^ *+' conftest.er1 >conftest.err
22866 rm -f conftest.er1
22867 cat conftest.err >&5
a848cd7e
SC
22868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22869 (exit $ac_status); } &&
3f60522a
JS
22870 { ac_try='test -z "$ac_cxx_werror_flag"
22871 || test ! -s conftest.err'
ac1cb8d3
VS
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); }; } &&
22877 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
22878 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22879 (eval $ac_try) 2>&5
22880 ac_status=$?
22881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22882 (exit $ac_status); }; }; then
22883
22884 cat >conftest.$ac_ext <<_ACEOF
22885/* confdefs.h. */
22886_ACEOF
22887cat confdefs.h >>conftest.$ac_ext
22888cat >>conftest.$ac_ext <<_ACEOF
22889/* end confdefs.h. */
22890
22891 class Foo { public: explicit Foo(int) {} };
22892 static void TakeFoo(const Foo& foo) { }
22893
22894int
22895main ()
22896{
22897
22898 TakeFoo(17);
22899 return 0;
22900
22901 ;
22902 return 0;
22903}
22904_ACEOF
22905rm -f conftest.$ac_objext
22906if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 22907 (eval $ac_compile) 2>conftest.er1
a848cd7e 22908 ac_status=$?
ac1cb8d3
VS
22909 grep -v '^ *+' conftest.er1 >conftest.err
22910 rm -f conftest.er1
22911 cat conftest.err >&5
a848cd7e
SC
22912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22913 (exit $ac_status); } &&
3f60522a
JS
22914 { ac_try='test -z "$ac_cxx_werror_flag"
22915 || test ! -s conftest.err'
ac1cb8d3
VS
22916 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22917 (eval $ac_try) 2>&5
22918 ac_status=$?
22919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22920 (exit $ac_status); }; } &&
22921 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
22922 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22923 (eval $ac_try) 2>&5
22924 ac_status=$?
22925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22926 (exit $ac_status); }; }; then
22927 wx_cv_explicit=no
22928else
22929 echo "$as_me: failed program was:" >&5
22930sed 's/^/| /' conftest.$ac_ext >&5
22931
22932wx_cv_explicit=yes
22933
22934fi
ac1cb8d3 22935rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
22936
22937else
22938 echo "$as_me: failed program was:" >&5
22939sed 's/^/| /' conftest.$ac_ext >&5
22940
22941wx_cv_explicit=no
22942
22943fi
ac1cb8d3 22944rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 22945
5d7b7554
VZ
22946 ac_ext=cc
22947ac_cpp='$CXXCPP $CPPFLAGS'
22948ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22949ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22950ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
a848cd7e
SC
22951
22952
22953fi
22954echo "$as_me:$LINENO: result: $wx_cv_explicit" >&5
22955echo "${ECHO_T}$wx_cv_explicit" >&6
22956
22957 if test "$wx_cv_explicit" = "yes"; then
22958 cat >>confdefs.h <<\_ACEOF
22959#define HAVE_EXPLICIT 1
22960_ACEOF
22961
22962 fi
22963
22964
22965echo "$as_me:$LINENO: checking whether the compiler supports const_cast<>" >&5
22966echo $ECHO_N "checking whether the compiler supports const_cast<>... $ECHO_C" >&6
22967if test "${ac_cv_cxx_const_cast+set}" = set; then
22968 echo $ECHO_N "(cached) $ECHO_C" >&6
22969else
22970
22971
22972 ac_ext=cc
22973ac_cpp='$CXXCPP $CPPFLAGS'
22974ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22975ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22976ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22977
22978 cat >conftest.$ac_ext <<_ACEOF
22979/* confdefs.h. */
22980_ACEOF
22981cat confdefs.h >>conftest.$ac_ext
22982cat >>conftest.$ac_ext <<_ACEOF
22983/* end confdefs.h. */
22984
22985int
22986main ()
22987{
22988int x = 0;const int& y = x;int& z = const_cast<int&>(y);return z;
22989 ;
22990 return 0;
22991}
22992_ACEOF
22993rm -f conftest.$ac_objext
22994if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 22995 (eval $ac_compile) 2>conftest.er1
a848cd7e 22996 ac_status=$?
ac1cb8d3
VS
22997 grep -v '^ *+' conftest.er1 >conftest.err
22998 rm -f conftest.er1
22999 cat conftest.err >&5
a848cd7e
SC
23000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23001 (exit $ac_status); } &&
3f60522a
JS
23002 { ac_try='test -z "$ac_cxx_werror_flag"
23003 || test ! -s conftest.err'
ac1cb8d3
VS
23004 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23005 (eval $ac_try) 2>&5
23006 ac_status=$?
23007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23008 (exit $ac_status); }; } &&
23009 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
23010 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23011 (eval $ac_try) 2>&5
23012 ac_status=$?
23013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23014 (exit $ac_status); }; }; then
23015 ac_cv_cxx_const_cast=yes
23016else
23017 echo "$as_me: failed program was:" >&5
23018sed 's/^/| /' conftest.$ac_ext >&5
23019
23020ac_cv_cxx_const_cast=no
23021fi
ac1cb8d3 23022rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5d7b7554
VZ
23023 ac_ext=cc
23024ac_cpp='$CXXCPP $CPPFLAGS'
23025ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23026ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23027ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
a848cd7e
SC
23028
23029
23030fi
23031echo "$as_me:$LINENO: result: $ac_cv_cxx_const_cast" >&5
23032echo "${ECHO_T}$ac_cv_cxx_const_cast" >&6
23033if test "$ac_cv_cxx_const_cast" = yes; then
23034
23035cat >>confdefs.h <<\_ACEOF
23036#define HAVE_CONST_CAST
23037_ACEOF
23038
23039fi
23040
7714864e
RL
23041echo "$as_me:$LINENO: checking whether the compiler supports reinterpret_cast<>" >&5
23042echo $ECHO_N "checking whether the compiler supports reinterpret_cast<>... $ECHO_C" >&6
23043if test "${ac_cv_cxx_reinterpret_cast+set}" = set; then
23044 echo $ECHO_N "(cached) $ECHO_C" >&6
23045else
23046
23047
23048 ac_ext=cc
23049ac_cpp='$CXXCPP $CPPFLAGS'
23050ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23051ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23052ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23053
23054 cat >conftest.$ac_ext <<_ACEOF
23055/* confdefs.h. */
23056_ACEOF
23057cat confdefs.h >>conftest.$ac_ext
23058cat >>conftest.$ac_ext <<_ACEOF
23059/* end confdefs.h. */
23060#include <typeinfo>
23061class Base { public : Base () {} virtual void f () = 0;};
23062class Derived : public Base { public : Derived () {} virtual void f () {} };
23063class Unrelated { public : Unrelated () {} };
23064int g (Unrelated&) { return 0; }
23065int
23066main ()
23067{
23068
23069Derived d;Base& b=d;Unrelated& e=reinterpret_cast<Unrelated&>(b);return g(e);
23070 ;
23071 return 0;
23072}
23073_ACEOF
23074rm -f conftest.$ac_objext
23075if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23076 (eval $ac_compile) 2>conftest.er1
23077 ac_status=$?
23078 grep -v '^ *+' conftest.er1 >conftest.err
23079 rm -f conftest.er1
23080 cat conftest.err >&5
23081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23082 (exit $ac_status); } &&
3f60522a
JS
23083 { ac_try='test -z "$ac_cxx_werror_flag"
23084 || test ! -s conftest.err'
7714864e
RL
23085 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23086 (eval $ac_try) 2>&5
23087 ac_status=$?
23088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23089 (exit $ac_status); }; } &&
23090 { ac_try='test -s conftest.$ac_objext'
23091 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23092 (eval $ac_try) 2>&5
23093 ac_status=$?
23094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23095 (exit $ac_status); }; }; then
23096 ac_cv_cxx_reinterpret_cast=yes
23097else
23098 echo "$as_me: failed program was:" >&5
23099sed 's/^/| /' conftest.$ac_ext >&5
23100
23101ac_cv_cxx_reinterpret_cast=no
23102fi
23103rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5d7b7554
VZ
23104 ac_ext=cc
23105ac_cpp='$CXXCPP $CPPFLAGS'
23106ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23107ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23108ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7714864e
RL
23109
23110
23111fi
23112echo "$as_me:$LINENO: result: $ac_cv_cxx_reinterpret_cast" >&5
23113echo "${ECHO_T}$ac_cv_cxx_reinterpret_cast" >&6
23114if test "$ac_cv_cxx_reinterpret_cast" = yes; then
23115
23116cat >>confdefs.h <<\_ACEOF
23117#define HAVE_REINTERPRET_CAST
23118_ACEOF
23119
23120fi
23121
a848cd7e
SC
23122echo "$as_me:$LINENO: checking whether the compiler supports static_cast<>" >&5
23123echo $ECHO_N "checking whether the compiler supports static_cast<>... $ECHO_C" >&6
23124if test "${ac_cv_cxx_static_cast+set}" = set; then
23125 echo $ECHO_N "(cached) $ECHO_C" >&6
23126else
23127
23128
23129 ac_ext=cc
23130ac_cpp='$CXXCPP $CPPFLAGS'
23131ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23132ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23133ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23134
23135 cat >conftest.$ac_ext <<_ACEOF
23136/* confdefs.h. */
23137_ACEOF
23138cat confdefs.h >>conftest.$ac_ext
23139cat >>conftest.$ac_ext <<_ACEOF
23140/* end confdefs.h. */
23141#include <typeinfo>
23142class Base { public : Base () {} virtual void f () = 0; };
23143class Derived : public Base { public : Derived () {} virtual void f () {} };
23144int g (Derived&) { return 0; }
23145int
23146main ()
23147{
23148
23149Derived d; Base& b = d; Derived& s = static_cast<Derived&> (b); return g (s);
23150 ;
23151 return 0;
23152}
23153_ACEOF
23154rm -f conftest.$ac_objext
23155if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 23156 (eval $ac_compile) 2>conftest.er1
a848cd7e 23157 ac_status=$?
ac1cb8d3
VS
23158 grep -v '^ *+' conftest.er1 >conftest.err
23159 rm -f conftest.er1
23160 cat conftest.err >&5
a848cd7e
SC
23161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23162 (exit $ac_status); } &&
3f60522a
JS
23163 { ac_try='test -z "$ac_cxx_werror_flag"
23164 || test ! -s conftest.err'
ac1cb8d3
VS
23165 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23166 (eval $ac_try) 2>&5
23167 ac_status=$?
23168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23169 (exit $ac_status); }; } &&
23170 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
23171 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23172 (eval $ac_try) 2>&5
23173 ac_status=$?
23174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23175 (exit $ac_status); }; }; then
23176 ac_cv_cxx_static_cast=yes
23177else
23178 echo "$as_me: failed program was:" >&5
23179sed 's/^/| /' conftest.$ac_ext >&5
23180
23181ac_cv_cxx_static_cast=no
23182fi
ac1cb8d3 23183rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5d7b7554
VZ
23184 ac_ext=cc
23185ac_cpp='$CXXCPP $CPPFLAGS'
23186ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23187ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23188ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
a848cd7e
SC
23189
23190
23191fi
23192echo "$as_me:$LINENO: result: $ac_cv_cxx_static_cast" >&5
23193echo "${ECHO_T}$ac_cv_cxx_static_cast" >&6
23194if test "$ac_cv_cxx_static_cast" = yes; then
23195
23196cat >>confdefs.h <<\_ACEOF
23197#define HAVE_STATIC_CAST
23198_ACEOF
23199
23200fi
23201
23202
3c28b7cb 23203if test "x$SUNCXX" = xyes; then
c92ad099 23204 CXXFLAGS="-features=tmplife $CXXFLAGS"
3c28b7cb
MW
23205fi
23206
9122d155 23207if test "x$SUNCC" = xyes; then
c92ad099 23208 CFLAGS="-erroff=E_NO_EXPLICIT_TYPE_GIVEN $CFLAGS"
9122d155
VZ
23209fi
23210
0ad5d837 23211if test "x$SGICC" = "xyes"; then
c92ad099 23212 CFLAGS="-woff 3970 $CFLAGS"
0ad5d837
VZ
23213fi
23214if test "x$SGICXX" = "xyes"; then
c92ad099 23215 CXXFLAGS="-woff 3970 $CXXFLAGS"
0ad5d837
VZ
23216fi
23217
2eef8513 23218if test "x$HPCC" = "xyes"; then
c92ad099 23219 CFLAGS="+W 2011,2450 $CFLAGS"
2eef8513
VZ
23220fi
23221if test "x$HPCXX" = "xyes"; then
c92ad099 23222 CXXFLAGS="+W 2340 $CXXFLAGS"
2eef8513
VZ
23223fi
23224
23225if test "x$COMPAQCXX" = "xyes"; then
23226 CXXFLAGS="-w0 -msg_disable basclsnondto,unrimpret,intconlosbit"
23227fi
23228
f56c22b4 23229if test "$wxUSE_STD_STRING" = "yes" -o "$wxUSE_STL" = "yes"; then
f56c22b4
MW
23230 if test "$wxUSE_UNICODE" = "yes"; then
23231 std_string="std::wstring"
23232 char_type="wchar_t"
23233 else
23234 std_string="std::string"
23235 char_type="char"
23236 fi
23237
23238 echo "$as_me:$LINENO: checking for $std_string in <string>" >&5
23239echo $ECHO_N "checking for $std_string in <string>... $ECHO_C" >&6
a848cd7e
SC
23240 cat >conftest.$ac_ext <<_ACEOF
23241/* confdefs.h. */
23242_ACEOF
23243cat confdefs.h >>conftest.$ac_ext
23244cat >>conftest.$ac_ext <<_ACEOF
23245/* end confdefs.h. */
23246#include <string>
a848cd7e
SC
23247int
23248main ()
23249{
f56c22b4 23250$std_string foo;
a848cd7e
SC
23251 ;
23252 return 0;
23253}
23254_ACEOF
23255rm -f conftest.$ac_objext
23256if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 23257 (eval $ac_compile) 2>conftest.er1
a848cd7e 23258 ac_status=$?
ac1cb8d3
VS
23259 grep -v '^ *+' conftest.er1 >conftest.err
23260 rm -f conftest.er1
23261 cat conftest.err >&5
a848cd7e
SC
23262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23263 (exit $ac_status); } &&
3f60522a
JS
23264 { ac_try='test -z "$ac_cxx_werror_flag"
23265 || test ! -s conftest.err'
ac1cb8d3
VS
23266 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23267 (eval $ac_try) 2>&5
23268 ac_status=$?
23269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23270 (exit $ac_status); }; } &&
23271 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
23272 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23273 (eval $ac_try) 2>&5
23274 ac_status=$?
23275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23276 (exit $ac_status); }; }; then
23277 echo "$as_me:$LINENO: result: yes" >&5
23278echo "${ECHO_T}yes" >&6
0a08f02a
MB
23279 cat >>confdefs.h <<\_ACEOF
23280#define HAVE_STD_WSTRING 1
23281_ACEOF
23282
a848cd7e
SC
23283else
23284 echo "$as_me: failed program was:" >&5
23285sed 's/^/| /' conftest.$ac_ext >&5
23286
23287echo "$as_me:$LINENO: result: no" >&5
23288echo "${ECHO_T}no" >&6
f56c22b4
MW
23289 echo "$as_me:$LINENO: checking if std::basic_string<$char_type> works" >&5
23290echo $ECHO_N "checking if std::basic_string<$char_type> works... $ECHO_C" >&6
0a08f02a
MB
23291 cat >conftest.$ac_ext <<_ACEOF
23292/* confdefs.h. */
23293_ACEOF
23294cat confdefs.h >>conftest.$ac_ext
23295cat >>conftest.$ac_ext <<_ACEOF
23296/* end confdefs.h. */
23297
23298 #ifdef HAVE_WCHAR_H
23299 # ifdef __CYGWIN__
23300 # include <stddef.h>
23301 # endif
23302 # include <wchar.h>
23303 #endif
23304 #ifdef HAVE_STDLIB_H
23305 # include <stdlib.h>
23306 #endif
23307 #include <stdio.h>
23308 #include <string>
23309
23310int
23311main ()
23312{
f56c22b4
MW
23313std::basic_string<$char_type> foo;
23314 const $char_type* dummy = foo.c_str();
0a08f02a
MB
23315 ;
23316 return 0;
23317}
23318_ACEOF
23319rm -f conftest.$ac_objext
23320if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23321 (eval $ac_compile) 2>conftest.er1
23322 ac_status=$?
23323 grep -v '^ *+' conftest.er1 >conftest.err
23324 rm -f conftest.er1
23325 cat conftest.err >&5
23326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23327 (exit $ac_status); } &&
3f60522a
JS
23328 { ac_try='test -z "$ac_cxx_werror_flag"
23329 || test ! -s conftest.err'
0a08f02a
MB
23330 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23331 (eval $ac_try) 2>&5
23332 ac_status=$?
23333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23334 (exit $ac_status); }; } &&
23335 { ac_try='test -s conftest.$ac_objext'
23336 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23337 (eval $ac_try) 2>&5
23338 ac_status=$?
23339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23340 (exit $ac_status); }; }; then
23341 echo "$as_me:$LINENO: result: yes" >&5
23342echo "${ECHO_T}yes" >&6
23343else
23344 echo "$as_me: failed program was:" >&5
23345sed 's/^/| /' conftest.$ac_ext >&5
23346
23347echo "$as_me:$LINENO: result: no" >&5
23348echo "${ECHO_T}no" >&6
f56c22b4 23349 if test "$wxUSE_STL" = "yes"; then
4b9918c5
MW
23350 { { echo "$as_me:$LINENO: error: Can't use --enable-stl without $std_string or std::basic_string<$char_type>" >&5
23351echo "$as_me: error: Can't use --enable-stl without $std_string or std::basic_string<$char_type>" >&2;}
23352 { (exit 1); exit 1; }; }
23353 elif grep wxUSE_STD_STRING $wx_arg_cache_file >/dev/null; then
23354 { { echo "$as_me:$LINENO: error: Can't use --enable-std_string without $std_string or std::basic_string<$char_type>" >&5
23355echo "$as_me: error: Can't use --enable-std_string without $std_string or std::basic_string<$char_type>" >&2;}
a848cd7e 23356 { (exit 1); exit 1; }; }
f56c22b4
MW
23357 else
23358 { echo "$as_me:$LINENO: WARNING: No $std_string or std::basic_string<$char_type>, switching to --disable-std_string" >&5
23359echo "$as_me: WARNING: No $std_string or std::basic_string<$char_type>, switching to --disable-std_string" >&2;}
23360 wxUSE_STD_STRING=no
23361 fi
23362
0a08f02a 23363
a848cd7e 23364fi
ac1cb8d3 23365rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 23366
0a08f02a
MB
23367fi
23368rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
f56c22b4
MW
23369fi
23370
23371if test "$wxUSE_STD_IOSTREAM" = "yes"; then
f56c22b4
MW
23372 echo "$as_me:$LINENO: checking for std::istream" >&5
23373echo $ECHO_N "checking for std::istream... $ECHO_C" >&6
23374if test "${ac_cv_type_std__istream+set}" = set; then
23375 echo $ECHO_N "(cached) $ECHO_C" >&6
23376else
23377 cat >conftest.$ac_ext <<_ACEOF
23378/* confdefs.h. */
23379_ACEOF
23380cat confdefs.h >>conftest.$ac_ext
23381cat >>conftest.$ac_ext <<_ACEOF
23382/* end confdefs.h. */
23383#include <iostream>
23384
23385int
23386main ()
23387{
23388if ((std::istream *) 0)
23389 return 0;
23390if (sizeof (std::istream))
23391 return 0;
23392 ;
23393 return 0;
23394}
23395_ACEOF
23396rm -f conftest.$ac_objext
23397if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23398 (eval $ac_compile) 2>conftest.er1
23399 ac_status=$?
23400 grep -v '^ *+' conftest.er1 >conftest.err
23401 rm -f conftest.er1
23402 cat conftest.err >&5
23403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23404 (exit $ac_status); } &&
3f60522a
JS
23405 { ac_try='test -z "$ac_cxx_werror_flag"
23406 || test ! -s conftest.err'
f56c22b4
MW
23407 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23408 (eval $ac_try) 2>&5
23409 ac_status=$?
23410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23411 (exit $ac_status); }; } &&
23412 { ac_try='test -s conftest.$ac_objext'
23413 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23414 (eval $ac_try) 2>&5
23415 ac_status=$?
23416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23417 (exit $ac_status); }; }; then
23418 ac_cv_type_std__istream=yes
23419else
23420 echo "$as_me: failed program was:" >&5
23421sed 's/^/| /' conftest.$ac_ext >&5
23422
23423ac_cv_type_std__istream=no
23424fi
23425rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23426fi
23427echo "$as_me:$LINENO: result: $ac_cv_type_std__istream" >&5
23428echo "${ECHO_T}$ac_cv_type_std__istream" >&6
23429if test $ac_cv_type_std__istream = yes; then
23430
23431cat >>confdefs.h <<_ACEOF
23432#define HAVE_STD__ISTREAM 1
23433_ACEOF
23434
23435
23436else
23437 wxUSE_STD_IOSTREAM=no
23438fi
23439echo "$as_me:$LINENO: checking for std::ostream" >&5
23440echo $ECHO_N "checking for std::ostream... $ECHO_C" >&6
23441if test "${ac_cv_type_std__ostream+set}" = set; then
23442 echo $ECHO_N "(cached) $ECHO_C" >&6
23443else
23444 cat >conftest.$ac_ext <<_ACEOF
23445/* confdefs.h. */
23446_ACEOF
23447cat confdefs.h >>conftest.$ac_ext
23448cat >>conftest.$ac_ext <<_ACEOF
23449/* end confdefs.h. */
23450#include <iostream>
23451
23452int
23453main ()
23454{
23455if ((std::ostream *) 0)
23456 return 0;
23457if (sizeof (std::ostream))
23458 return 0;
23459 ;
23460 return 0;
23461}
23462_ACEOF
23463rm -f conftest.$ac_objext
23464if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23465 (eval $ac_compile) 2>conftest.er1
23466 ac_status=$?
23467 grep -v '^ *+' conftest.er1 >conftest.err
23468 rm -f conftest.er1
23469 cat conftest.err >&5
23470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23471 (exit $ac_status); } &&
3f60522a
JS
23472 { ac_try='test -z "$ac_cxx_werror_flag"
23473 || test ! -s conftest.err'
f56c22b4
MW
23474 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23475 (eval $ac_try) 2>&5
23476 ac_status=$?
23477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23478 (exit $ac_status); }; } &&
23479 { ac_try='test -s conftest.$ac_objext'
23480 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23481 (eval $ac_try) 2>&5
23482 ac_status=$?
23483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23484 (exit $ac_status); }; }; then
23485 ac_cv_type_std__ostream=yes
23486else
23487 echo "$as_me: failed program was:" >&5
23488sed 's/^/| /' conftest.$ac_ext >&5
23489
23490ac_cv_type_std__ostream=no
23491fi
23492rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23493fi
23494echo "$as_me:$LINENO: result: $ac_cv_type_std__ostream" >&5
23495echo "${ECHO_T}$ac_cv_type_std__ostream" >&6
23496if test $ac_cv_type_std__ostream = yes; then
23497
23498cat >>confdefs.h <<_ACEOF
23499#define HAVE_STD__OSTREAM 1
23500_ACEOF
23501
23502
23503else
23504 wxUSE_STD_IOSTREAM=no
23505fi
23506
23507
23508 if test "$wxUSE_STD_IOSTREAM" != "yes"; then
4b9918c5
MW
23509 if grep wxUSE_STD_IOSTREAM $wx_arg_cache_file >/dev/null; then
23510 { { echo "$as_me:$LINENO: error: Can't use --enable-std_iostreams without std::istream and std::ostream" >&5
23511echo "$as_me: error: Can't use --enable-std_iostreams without std::istream and std::ostream" >&2;}
23512 { (exit 1); exit 1; }; }
23513 else
23514 { echo "$as_me:$LINENO: WARNING: No std::iostreams, switching to --disable-std_iostreams" >&5
f56c22b4 23515echo "$as_me: WARNING: No std::iostreams, switching to --disable-std_iostreams" >&2;}
4b9918c5 23516 fi
f56c22b4 23517 fi
0a08f02a
MB
23518fi
23519
23520if test "$wxUSE_STL" = "yes"; then
0a08f02a
MB
23521 echo "$as_me:$LINENO: checking for basic STL functionality" >&5
23522echo $ECHO_N "checking for basic STL functionality... $ECHO_C" >&6
a848cd7e
SC
23523 cat >conftest.$ac_ext <<_ACEOF
23524/* confdefs.h. */
23525_ACEOF
23526cat confdefs.h >>conftest.$ac_ext
23527cat >>conftest.$ac_ext <<_ACEOF
23528/* end confdefs.h. */
23529#include <string>
0a08f02a
MB
23530 #include <functional>
23531 #include <algorithm>
23532 #include <vector>
23533 #include <list>
a848cd7e
SC
23534int
23535main ()
23536{
0a08f02a
MB
23537std::vector<int> moo;
23538 std::list<int> foo;
23539 std::vector<int>::iterator it =
23540 std::find_if(moo.begin(), moo.end(),
23541 std::bind2nd(std::less<int>(), 3));
a848cd7e
SC
23542 ;
23543 return 0;
23544}
23545_ACEOF
23546rm -f conftest.$ac_objext
23547if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 23548 (eval $ac_compile) 2>conftest.er1
a848cd7e 23549 ac_status=$?
ac1cb8d3
VS
23550 grep -v '^ *+' conftest.er1 >conftest.err
23551 rm -f conftest.er1
23552 cat conftest.err >&5
a848cd7e
SC
23553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23554 (exit $ac_status); } &&
3f60522a
JS
23555 { ac_try='test -z "$ac_cxx_werror_flag"
23556 || test ! -s conftest.err'
ac1cb8d3
VS
23557 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23558 (eval $ac_try) 2>&5
23559 ac_status=$?
23560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23561 (exit $ac_status); }; } &&
23562 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
23563 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23564 (eval $ac_try) 2>&5
23565 ac_status=$?
23566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23567 (exit $ac_status); }; }; then
23568 echo "$as_me:$LINENO: result: yes" >&5
23569echo "${ECHO_T}yes" >&6
a848cd7e
SC
23570else
23571 echo "$as_me: failed program was:" >&5
23572sed 's/^/| /' conftest.$ac_ext >&5
23573
23574echo "$as_me:$LINENO: result: no" >&5
23575echo "${ECHO_T}no" >&6
0a08f02a
MB
23576 { { echo "$as_me:$LINENO: error: Basic STL functionality missing" >&5
23577echo "$as_me: error: Basic STL functionality missing" >&2;}
23578 { (exit 1); exit 1; }; }
a848cd7e 23579fi
ac1cb8d3 23580rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
23581
23582 echo "$as_me:$LINENO: checking for compliant std::string::compare" >&5
23583echo $ECHO_N "checking for compliant std::string::compare... $ECHO_C" >&6
23584 cat >conftest.$ac_ext <<_ACEOF
23585/* confdefs.h. */
23586_ACEOF
23587cat confdefs.h >>conftest.$ac_ext
23588cat >>conftest.$ac_ext <<_ACEOF
23589/* end confdefs.h. */
23590#include <string>
23591int
23592main ()
23593{
23594std::string foo, bar;
23595 foo.compare(bar);
23596 foo.compare(1, 1, bar);
23597 foo.compare(1, 1, bar, 1, 1);
23598 foo.compare("");
23599 foo.compare(1, 1, "");
23600 foo.compare(1, 1, "", 2);
23601 ;
23602 return 0;
23603}
23604_ACEOF
23605rm -f conftest.$ac_objext
23606if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 23607 (eval $ac_compile) 2>conftest.er1
a848cd7e 23608 ac_status=$?
ac1cb8d3
VS
23609 grep -v '^ *+' conftest.er1 >conftest.err
23610 rm -f conftest.er1
23611 cat conftest.err >&5
a848cd7e
SC
23612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23613 (exit $ac_status); } &&
3f60522a
JS
23614 { ac_try='test -z "$ac_cxx_werror_flag"
23615 || test ! -s conftest.err'
ac1cb8d3
VS
23616 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23617 (eval $ac_try) 2>&5
23618 ac_status=$?
23619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23620 (exit $ac_status); }; } &&
23621 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
23622 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23623 (eval $ac_try) 2>&5
23624 ac_status=$?
23625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23626 (exit $ac_status); }; }; then
23627 echo "$as_me:$LINENO: result: yes" >&5
23628echo "${ECHO_T}yes" >&6
23629 cat >>confdefs.h <<\_ACEOF
23630#define HAVE_STD_STRING_COMPARE 1
23631_ACEOF
23632
23633else
23634 echo "$as_me: failed program was:" >&5
23635sed 's/^/| /' conftest.$ac_ext >&5
23636
23637echo "$as_me:$LINENO: result: no" >&5
23638echo "${ECHO_T}no" >&6
23639fi
ac1cb8d3 23640rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bdcade0a
MB
23641
23642 if test "${ac_cv_header_hash_map+set}" = set; then
23643 echo "$as_me:$LINENO: checking for hash_map" >&5
23644echo $ECHO_N "checking for hash_map... $ECHO_C" >&6
23645if test "${ac_cv_header_hash_map+set}" = set; then
23646 echo $ECHO_N "(cached) $ECHO_C" >&6
23647fi
23648echo "$as_me:$LINENO: result: $ac_cv_header_hash_map" >&5
23649echo "${ECHO_T}$ac_cv_header_hash_map" >&6
23650else
23651 # Is the header compilable?
23652echo "$as_me:$LINENO: checking hash_map usability" >&5
23653echo $ECHO_N "checking hash_map usability... $ECHO_C" >&6
23654cat >conftest.$ac_ext <<_ACEOF
23655/* confdefs.h. */
23656_ACEOF
23657cat confdefs.h >>conftest.$ac_ext
23658cat >>conftest.$ac_ext <<_ACEOF
23659/* end confdefs.h. */
23660$ac_includes_default
23661#include <hash_map>
23662_ACEOF
23663rm -f conftest.$ac_objext
23664if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 23665 (eval $ac_compile) 2>conftest.er1
bdcade0a 23666 ac_status=$?
ac1cb8d3
VS
23667 grep -v '^ *+' conftest.er1 >conftest.err
23668 rm -f conftest.er1
23669 cat conftest.err >&5
bdcade0a
MB
23670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23671 (exit $ac_status); } &&
3f60522a
JS
23672 { ac_try='test -z "$ac_cxx_werror_flag"
23673 || test ! -s conftest.err'
ac1cb8d3
VS
23674 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23675 (eval $ac_try) 2>&5
23676 ac_status=$?
23677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23678 (exit $ac_status); }; } &&
23679 { ac_try='test -s conftest.$ac_objext'
bdcade0a
MB
23680 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23681 (eval $ac_try) 2>&5
23682 ac_status=$?
23683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23684 (exit $ac_status); }; }; then
23685 ac_header_compiler=yes
23686else
23687 echo "$as_me: failed program was:" >&5
23688sed 's/^/| /' conftest.$ac_ext >&5
23689
23690ac_header_compiler=no
23691fi
ac1cb8d3 23692rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bdcade0a
MB
23693echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23694echo "${ECHO_T}$ac_header_compiler" >&6
23695
23696# Is the header present?
23697echo "$as_me:$LINENO: checking hash_map presence" >&5
23698echo $ECHO_N "checking hash_map presence... $ECHO_C" >&6
23699cat >conftest.$ac_ext <<_ACEOF
23700/* confdefs.h. */
23701_ACEOF
23702cat confdefs.h >>conftest.$ac_ext
23703cat >>conftest.$ac_ext <<_ACEOF
23704/* end confdefs.h. */
23705#include <hash_map>
23706_ACEOF
23707if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
23708 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
23709 ac_status=$?
23710 grep -v '^ *+' conftest.er1 >conftest.err
23711 rm -f conftest.er1
23712 cat conftest.err >&5
23713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23714 (exit $ac_status); } >/dev/null; then
23715 if test -s conftest.err; then
23716 ac_cpp_err=$ac_cxx_preproc_warn_flag
ac1cb8d3 23717 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
bdcade0a
MB
23718 else
23719 ac_cpp_err=
23720 fi
23721else
23722 ac_cpp_err=yes
23723fi
23724if test -z "$ac_cpp_err"; then
23725 ac_header_preproc=yes
23726else
23727 echo "$as_me: failed program was:" >&5
23728sed 's/^/| /' conftest.$ac_ext >&5
23729
23730 ac_header_preproc=no
23731fi
23732rm -f conftest.err conftest.$ac_ext
23733echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23734echo "${ECHO_T}$ac_header_preproc" >&6
23735
23736# So? What about this header?
ac1cb8d3
VS
23737case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
23738 yes:no: )
bdcade0a
MB
23739 { echo "$as_me:$LINENO: WARNING: hash_map: accepted by the compiler, rejected by the preprocessor!" >&5
23740echo "$as_me: WARNING: hash_map: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
23741 { echo "$as_me:$LINENO: WARNING: hash_map: proceeding with the compiler's result" >&5
23742echo "$as_me: WARNING: hash_map: proceeding with the compiler's result" >&2;}
23743 ac_header_preproc=yes
bdcade0a 23744 ;;
ac1cb8d3 23745 no:yes:* )
bdcade0a
MB
23746 { echo "$as_me:$LINENO: WARNING: hash_map: present but cannot be compiled" >&5
23747echo "$as_me: WARNING: hash_map: present but cannot be compiled" >&2;}
ac1cb8d3
VS
23748 { echo "$as_me:$LINENO: WARNING: hash_map: check for missing prerequisite headers?" >&5
23749echo "$as_me: WARNING: hash_map: check for missing prerequisite headers?" >&2;}
23750 { echo "$as_me:$LINENO: WARNING: hash_map: see the Autoconf documentation" >&5
23751echo "$as_me: WARNING: hash_map: see the Autoconf documentation" >&2;}
23752 { echo "$as_me:$LINENO: WARNING: hash_map: section \"Present But Cannot Be Compiled\"" >&5
23753echo "$as_me: WARNING: hash_map: section \"Present But Cannot Be Compiled\"" >&2;}
bdcade0a
MB
23754 { echo "$as_me:$LINENO: WARNING: hash_map: proceeding with the preprocessor's result" >&5
23755echo "$as_me: WARNING: hash_map: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
23756 { echo "$as_me:$LINENO: WARNING: hash_map: in the future, the compiler will take precedence" >&5
23757echo "$as_me: WARNING: hash_map: in the future, the compiler will take precedence" >&2;}
bdcade0a
MB
23758 (
23759 cat <<\_ASBOX
ac1cb8d3
VS
23760## ----------------------------------------- ##
23761## Report this to wx-dev@lists.wxwidgets.org ##
23762## ----------------------------------------- ##
bdcade0a
MB
23763_ASBOX
23764 ) |
23765 sed "s/^/$as_me: WARNING: /" >&2
23766 ;;
23767esac
23768echo "$as_me:$LINENO: checking for hash_map" >&5
23769echo $ECHO_N "checking for hash_map... $ECHO_C" >&6
23770if test "${ac_cv_header_hash_map+set}" = set; then
23771 echo $ECHO_N "(cached) $ECHO_C" >&6
23772else
23773 ac_cv_header_hash_map=$ac_header_preproc
23774fi
23775echo "$as_me:$LINENO: result: $ac_cv_header_hash_map" >&5
23776echo "${ECHO_T}$ac_cv_header_hash_map" >&6
23777
23778fi
23779if test $ac_cv_header_hash_map = yes; then
23780 echo "$as_me:$LINENO: checking for hash_map and hash_set" >&5
23781echo $ECHO_N "checking for hash_map and hash_set... $ECHO_C" >&6
23782 cat >conftest.$ac_ext <<_ACEOF
23783/* confdefs.h. */
23784_ACEOF
23785cat confdefs.h >>conftest.$ac_ext
23786cat >>conftest.$ac_ext <<_ACEOF
23787/* end confdefs.h. */
23788#include <hash_map>
23789 #include <hash_set>
23790int
23791main ()
23792{
23793std::hash_map<double*, char*, std::hash<double*>, std::equal_to<double*> > test1;
23794 std::hash_set<char*, std::hash<char*>, std::equal_to<char*> > test2;
23795 ;
23796 return 0;
23797}
23798_ACEOF
23799rm -f conftest.$ac_objext
23800if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 23801 (eval $ac_compile) 2>conftest.er1
bdcade0a 23802 ac_status=$?
ac1cb8d3
VS
23803 grep -v '^ *+' conftest.er1 >conftest.err
23804 rm -f conftest.er1
23805 cat conftest.err >&5
bdcade0a
MB
23806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23807 (exit $ac_status); } &&
3f60522a
JS
23808 { ac_try='test -z "$ac_cxx_werror_flag"
23809 || test ! -s conftest.err'
ac1cb8d3
VS
23810 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23811 (eval $ac_try) 2>&5
23812 ac_status=$?
23813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23814 (exit $ac_status); }; } &&
23815 { ac_try='test -s conftest.$ac_objext'
bdcade0a
MB
23816 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23817 (eval $ac_try) 2>&5
23818 ac_status=$?
23819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23820 (exit $ac_status); }; }; then
23821 echo "$as_me:$LINENO: result: yes" >&5
23822echo "${ECHO_T}yes" >&6
23823 cat >>confdefs.h <<\_ACEOF
23824#define HAVE_HASH_MAP 1
23825_ACEOF
23826
23827 cat >>confdefs.h <<\_ACEOF
23828#define HAVE_STD_HASH_MAP 1
23829_ACEOF
23830
23831else
23832 echo "$as_me: failed program was:" >&5
23833sed 's/^/| /' conftest.$ac_ext >&5
23834
23835echo "$as_me:$LINENO: result: no" >&5
23836echo "${ECHO_T}no" >&6
23837fi
ac1cb8d3 23838rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bdcade0a
MB
23839
23840fi
23841
23842
23843
23844 if test "${ac_cv_header_ext_hash_map+set}" = set; then
23845 echo "$as_me:$LINENO: checking for ext/hash_map" >&5
23846echo $ECHO_N "checking for ext/hash_map... $ECHO_C" >&6
23847if test "${ac_cv_header_ext_hash_map+set}" = set; then
23848 echo $ECHO_N "(cached) $ECHO_C" >&6
23849fi
23850echo "$as_me:$LINENO: result: $ac_cv_header_ext_hash_map" >&5
23851echo "${ECHO_T}$ac_cv_header_ext_hash_map" >&6
23852else
23853 # Is the header compilable?
23854echo "$as_me:$LINENO: checking ext/hash_map usability" >&5
23855echo $ECHO_N "checking ext/hash_map usability... $ECHO_C" >&6
23856cat >conftest.$ac_ext <<_ACEOF
23857/* confdefs.h. */
23858_ACEOF
23859cat confdefs.h >>conftest.$ac_ext
23860cat >>conftest.$ac_ext <<_ACEOF
23861/* end confdefs.h. */
23862$ac_includes_default
23863#include <ext/hash_map>
23864_ACEOF
23865rm -f conftest.$ac_objext
23866if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 23867 (eval $ac_compile) 2>conftest.er1
bdcade0a 23868 ac_status=$?
ac1cb8d3
VS
23869 grep -v '^ *+' conftest.er1 >conftest.err
23870 rm -f conftest.er1
23871 cat conftest.err >&5
bdcade0a
MB
23872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23873 (exit $ac_status); } &&
3f60522a
JS
23874 { ac_try='test -z "$ac_cxx_werror_flag"
23875 || test ! -s conftest.err'
ac1cb8d3
VS
23876 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23877 (eval $ac_try) 2>&5
23878 ac_status=$?
23879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23880 (exit $ac_status); }; } &&
23881 { ac_try='test -s conftest.$ac_objext'
bdcade0a
MB
23882 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23883 (eval $ac_try) 2>&5
23884 ac_status=$?
23885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23886 (exit $ac_status); }; }; then
23887 ac_header_compiler=yes
23888else
23889 echo "$as_me: failed program was:" >&5
23890sed 's/^/| /' conftest.$ac_ext >&5
23891
23892ac_header_compiler=no
23893fi
ac1cb8d3 23894rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bdcade0a
MB
23895echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23896echo "${ECHO_T}$ac_header_compiler" >&6
23897
23898# Is the header present?
23899echo "$as_me:$LINENO: checking ext/hash_map presence" >&5
23900echo $ECHO_N "checking ext/hash_map presence... $ECHO_C" >&6
23901cat >conftest.$ac_ext <<_ACEOF
23902/* confdefs.h. */
23903_ACEOF
23904cat confdefs.h >>conftest.$ac_ext
23905cat >>conftest.$ac_ext <<_ACEOF
23906/* end confdefs.h. */
23907#include <ext/hash_map>
23908_ACEOF
23909if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
23910 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
23911 ac_status=$?
23912 grep -v '^ *+' conftest.er1 >conftest.err
23913 rm -f conftest.er1
23914 cat conftest.err >&5
23915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23916 (exit $ac_status); } >/dev/null; then
23917 if test -s conftest.err; then
23918 ac_cpp_err=$ac_cxx_preproc_warn_flag
ac1cb8d3 23919 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
bdcade0a
MB
23920 else
23921 ac_cpp_err=
23922 fi
23923else
23924 ac_cpp_err=yes
23925fi
23926if test -z "$ac_cpp_err"; then
23927 ac_header_preproc=yes
23928else
23929 echo "$as_me: failed program was:" >&5
23930sed 's/^/| /' conftest.$ac_ext >&5
23931
23932 ac_header_preproc=no
23933fi
23934rm -f conftest.err conftest.$ac_ext
23935echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23936echo "${ECHO_T}$ac_header_preproc" >&6
23937
23938# So? What about this header?
ac1cb8d3
VS
23939case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
23940 yes:no: )
bdcade0a
MB
23941 { echo "$as_me:$LINENO: WARNING: ext/hash_map: accepted by the compiler, rejected by the preprocessor!" >&5
23942echo "$as_me: WARNING: ext/hash_map: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
23943 { echo "$as_me:$LINENO: WARNING: ext/hash_map: proceeding with the compiler's result" >&5
23944echo "$as_me: WARNING: ext/hash_map: proceeding with the compiler's result" >&2;}
23945 ac_header_preproc=yes
bdcade0a 23946 ;;
ac1cb8d3 23947 no:yes:* )
bdcade0a
MB
23948 { echo "$as_me:$LINENO: WARNING: ext/hash_map: present but cannot be compiled" >&5
23949echo "$as_me: WARNING: ext/hash_map: present but cannot be compiled" >&2;}
ac1cb8d3
VS
23950 { echo "$as_me:$LINENO: WARNING: ext/hash_map: check for missing prerequisite headers?" >&5
23951echo "$as_me: WARNING: ext/hash_map: check for missing prerequisite headers?" >&2;}
23952 { echo "$as_me:$LINENO: WARNING: ext/hash_map: see the Autoconf documentation" >&5
23953echo "$as_me: WARNING: ext/hash_map: see the Autoconf documentation" >&2;}
23954 { echo "$as_me:$LINENO: WARNING: ext/hash_map: section \"Present But Cannot Be Compiled\"" >&5
23955echo "$as_me: WARNING: ext/hash_map: section \"Present But Cannot Be Compiled\"" >&2;}
bdcade0a
MB
23956 { echo "$as_me:$LINENO: WARNING: ext/hash_map: proceeding with the preprocessor's result" >&5
23957echo "$as_me: WARNING: ext/hash_map: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
23958 { echo "$as_me:$LINENO: WARNING: ext/hash_map: in the future, the compiler will take precedence" >&5
23959echo "$as_me: WARNING: ext/hash_map: in the future, the compiler will take precedence" >&2;}
bdcade0a
MB
23960 (
23961 cat <<\_ASBOX
ac1cb8d3
VS
23962## ----------------------------------------- ##
23963## Report this to wx-dev@lists.wxwidgets.org ##
23964## ----------------------------------------- ##
bdcade0a
MB
23965_ASBOX
23966 ) |
23967 sed "s/^/$as_me: WARNING: /" >&2
23968 ;;
23969esac
23970echo "$as_me:$LINENO: checking for ext/hash_map" >&5
23971echo $ECHO_N "checking for ext/hash_map... $ECHO_C" >&6
23972if test "${ac_cv_header_ext_hash_map+set}" = set; then
23973 echo $ECHO_N "(cached) $ECHO_C" >&6
23974else
23975 ac_cv_header_ext_hash_map=$ac_header_preproc
23976fi
23977echo "$as_me:$LINENO: result: $ac_cv_header_ext_hash_map" >&5
23978echo "${ECHO_T}$ac_cv_header_ext_hash_map" >&6
23979
23980fi
23981if test $ac_cv_header_ext_hash_map = yes; then
23982 echo "$as_me:$LINENO: checking for hash_map and hash_set" >&5
23983echo $ECHO_N "checking for hash_map and hash_set... $ECHO_C" >&6
23984 cat >conftest.$ac_ext <<_ACEOF
23985/* confdefs.h. */
23986_ACEOF
23987cat confdefs.h >>conftest.$ac_ext
23988cat >>conftest.$ac_ext <<_ACEOF
23989/* end confdefs.h. */
23990#include <ext/hash_map>
23991 #include <ext/hash_set>
23992int
23993main ()
23994{
23995__gnu_cxx::hash_map<double*, char*, __gnu_cxx::hash<double*>, std::equal_to<double*> > test1;
23996 __gnu_cxx::hash_set<char*, __gnu_cxx::hash<char*>, std::equal_to<char*> > test2;
23997 ;
23998 return 0;
23999}
24000_ACEOF
24001rm -f conftest.$ac_objext
24002if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 24003 (eval $ac_compile) 2>conftest.er1
bdcade0a 24004 ac_status=$?
ac1cb8d3
VS
24005 grep -v '^ *+' conftest.er1 >conftest.err
24006 rm -f conftest.er1
24007 cat conftest.err >&5
bdcade0a
MB
24008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24009 (exit $ac_status); } &&
3f60522a
JS
24010 { ac_try='test -z "$ac_cxx_werror_flag"
24011 || test ! -s conftest.err'
ac1cb8d3
VS
24012 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24013 (eval $ac_try) 2>&5
24014 ac_status=$?
24015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24016 (exit $ac_status); }; } &&
24017 { ac_try='test -s conftest.$ac_objext'
bdcade0a
MB
24018 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24019 (eval $ac_try) 2>&5
24020 ac_status=$?
24021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24022 (exit $ac_status); }; }; then
24023 echo "$as_me:$LINENO: result: yes" >&5
24024echo "${ECHO_T}yes" >&6
24025 cat >>confdefs.h <<\_ACEOF
24026#define HAVE_EXT_HASH_MAP 1
24027_ACEOF
24028
24029 cat >>confdefs.h <<\_ACEOF
24030#define HAVE_GNU_CXX_HASH_MAP 1
24031_ACEOF
24032
24033else
24034 echo "$as_me: failed program was:" >&5
24035sed 's/^/| /' conftest.$ac_ext >&5
24036
24037echo "$as_me:$LINENO: result: no" >&5
24038echo "${ECHO_T}no" >&6
24039fi
ac1cb8d3 24040rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bdcade0a
MB
24041
24042fi
24043
24044
a848cd7e
SC
24045fi
24046
24047
24048SEARCH_INCLUDE="\
24049 /usr/local/include \
24050 \
24051 /usr/Motif-2.1/include \
24052 /usr/Motif-1.2/include \
24053 /usr/include/Motif1.2 \
a848cd7e
SC
24054 \
24055 /usr/dt/include \
24056 /usr/openwin/include \
24057 \
24058 /usr/include/Xm \
24059 \
24060 /usr/X11R6/include \
24061 /usr/X11R6.4/include \
24062 /usr/X11R5/include \
24063 /usr/X11R4/include \
24064 \
24065 /usr/include/X11R6 \
24066 /usr/include/X11R5 \
24067 /usr/include/X11R4 \
24068 \
24069 /usr/local/X11R6/include \
24070 /usr/local/X11R5/include \
24071 /usr/local/X11R4/include \
24072 \
24073 /usr/local/include/X11R6 \
24074 /usr/local/include/X11R5 \
24075 /usr/local/include/X11R4 \
24076 \
24077 /usr/X11/include \
24078 /usr/include/X11 \
24079 /usr/local/X11/include \
24080 /usr/local/include/X11 \
24081 \
a848cd7e 24082 /usr/XFree86/include/X11 \
e051b34e
MW
24083 /usr/pkg/include \
24084 \
a848cd7e
SC
24085 /usr/openwin/share/include"
24086
6f9cf1e6 24087echo "$as_me:$LINENO: checking for libraries directory" >&5
0ad5d837 24088echo $ECHO_N "checking for libraries directory... $ECHO_C" >&6
6f9cf1e6
MW
24089
24090case "${host}" in
24091 *-*-irix6* )
24092 if test "${wx_cv_std_libpath+set}" = set; then
0ad5d837
VZ
24093 echo $ECHO_N "(cached) $ECHO_C" >&6
24094else
24095
c687b303
VZ
24096 for d in /usr/lib /usr/lib32 /usr/lib/64 /usr/lib64; do
24097 for e in a so sl dylib dll.a; do
24098 libc="$d/libc.$e"
24099 if test -f $libc; then
24100 save_LIBS="$LIBS"
24101 LIBS="$libc"
24102 cat >conftest.$ac_ext <<_ACEOF
0ad5d837
VZ
24103int main() { return 0; }
24104_ACEOF
24105rm -f conftest.$ac_objext conftest$ac_exeext
24106if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24107 (eval $ac_link) 2>conftest.er1
24108 ac_status=$?
24109 grep -v '^ *+' conftest.er1 >conftest.err
24110 rm -f conftest.er1
24111 cat conftest.err >&5
24112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24113 (exit $ac_status); } &&
3f60522a
JS
24114 { ac_try='test -z "$ac_cxx_werror_flag"
24115 || test ! -s conftest.err'
0ad5d837
VZ
24116 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24117 (eval $ac_try) 2>&5
24118 ac_status=$?
24119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24120 (exit $ac_status); }; } &&
24121 { ac_try='test -s conftest$ac_exeext'
24122 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24123 (eval $ac_try) 2>&5
24124 ac_status=$?
24125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24126 (exit $ac_status); }; }; then
24127 wx_cv_std_libpath=`echo $d | sed s@/usr/@@`
24128else
24129 echo "$as_me: failed program was:" >&5
24130sed 's/^/| /' conftest.$ac_ext >&5
24131
24132fi
24133rm -f conftest.err conftest.$ac_objext \
24134 conftest$ac_exeext conftest.$ac_ext
c687b303
VZ
24135 LIBS="$save_LIBS"
24136 if test "x$wx_cv_std_libpath" != "x"; then
24137 break 2
24138 fi
24139 fi
24140 done
24141 done
24142 if test "x$wx_cv_std_libpath" = "x"; then
24143 wx_cv_std_libpath="lib"
0ad5d837 24144 fi
0ad5d837
VZ
24145
24146
24147fi
6f9cf1e6
MW
24148
24149 ;;
24150
24151 *-*-solaris2* )
24152 if test "$ac_cv_sizeof_void_p" = 8 -a -d "/usr/lib/64"; then
24153 wx_cv_std_libpath="lib/64"
24154 else
24155 wx_cv_std_libpath="lib"
24156 fi
24157 ;;
24158
24159 *-*-linux* )
24160 if test "$ac_cv_sizeof_void_p" = 8 -a \
24161 -d "/usr/lib64" -a ! -h "/usr/lib64"; then
24162 wx_cv_std_libpath="lib64"
24163 else
24164 wx_cv_std_libpath="lib"
24165 fi
c687b303
VZ
24166 ;;
24167
24168 *)
24169 wx_cv_std_libpath="lib";
24170 ;;
24171esac
0ad5d837 24172
6f9cf1e6
MW
24173echo "$as_me:$LINENO: result: $wx_cv_std_libpath" >&5
24174echo "${ECHO_T}$wx_cv_std_libpath" >&6
24175
24176SEARCH_LIB="`echo "$SEARCH_INCLUDE" | sed s@include@$wx_cv_std_libpath@g` /usr/$wx_cv_std_libpath"
a848cd7e 24177
3eca31dc
MW
24178if test "$build" != "$host" -a "$GCC" = yes; then
24179 if cross_root=`$CC -print-prog-name=ld 2>/dev/null`; then
24180 cross_root=`dirname $cross_root`
24181 cross_root=`dirname $cross_root`
24182
24183 SEARCH_LIB=`for x in $SEARCH_LIB; do echo $x; done | sed -ne "s|^/usr|$cross_root|p"`
24184 SEARCH_INCLUDE=`for x in $SEARCH_INCLUDE; do echo $x; done | sed -ne "s|^/usr|$cross_root|p"`
5c60e845 24185 SEARCH_INCLUDE="$SEARCH_INCLUDE $cross_root/include"
3eca31dc
MW
24186
24187 if test -z "$PKG_CONFIG_PATH"; then
24188 PKG_CONFIG_PATH="$cross_root/local/lib/pkgconfig:$cross_root/lib/pkgconfig"
24189 export PKG_CONFIG_PATH
24190 fi
24191
24192 if test -z "$x_includes" -o "$x_includes" = NONE; then
24193
24194ac_find_includes=
24195for ac_dir in $SEARCH_INCLUDE /usr/include;
24196 do
24197 if test -f "$ac_dir/X11/Intrinsic.h"; then
24198 ac_find_includes=$ac_dir
24199 break
24200 fi
24201 done
24202
24203 x_includes=$ac_find_includes
24204 fi
24205 if test -z "$x_libraries" -o "$x_libraries" = NONE; then
24206
0ad5d837
VZ
24207 ac_find_libraries=
24208 for ac_dir in $SEARCH_LIB;
3eca31dc
MW
24209 do
24210 for ac_extension in a so sl dylib dll.a; do
24211 if test -f "$ac_dir/libXt.$ac_extension"; then
24212 ac_find_libraries=$ac_dir
24213 break 2
24214 fi
24215 done
24216 done
24217
24218 x_libraries=$ac_find_libraries
24219 fi
24220 fi
24221fi
24222
a848cd7e
SC
24223
24224cat >confcache <<\_ACEOF
24225# This file is a shell script that caches the results of configure
24226# tests run on this system so they can be shared between configure
24227# scripts and configure runs, see configure's option --config-cache.
24228# It is not useful on other systems. If it contains results you don't
24229# want to keep, you may remove or edit it.
24230#
24231# config.status only pays attention to the cache file if you give it
24232# the --recheck option to rerun configure.
24233#
24234# `ac_cv_env_foo' variables (set or unset) will be overridden when
24235# loading this file, other *unset* `ac_cv_foo' will be assigned the
24236# following values.
24237
24238_ACEOF
24239
24240# The following way of writing the cache mishandles newlines in values,
24241# but we know of no workaround that is simple, portable, and efficient.
24242# So, don't put newlines in cache variables' values.
24243# Ultrix sh set writes to stderr and can't be redirected directly,
24244# and sets the high bit in the cache file unless we assign to the vars.
24245{
24246 (set) 2>&1 |
24247 case `(ac_space=' '; set | grep ac_space) 2>&1` in
24248 *ac_space=\ *)
24249 # `set' does not quote correctly, so add quotes (double-quote
24250 # substitution turns \\\\ into \\, and sed turns \\ into \).
24251 sed -n \
ac1cb8d3
VS
24252 "s/'/'\\\\''/g;
24253 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
a848cd7e
SC
24254 ;;
24255 *)
24256 # `set' quotes correctly as required by POSIX, so do not add quotes.
24257 sed -n \
ac1cb8d3 24258 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
a848cd7e
SC
24259 ;;
24260 esac;
24261} |
24262 sed '
24263 t clear
24264 : clear
24265 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
24266 t end
24267 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
24268 : end' >>confcache
24269if diff $cache_file confcache >/dev/null 2>&1; then :; else
24270 if test -w $cache_file; then
24271 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
24272 cat confcache >$cache_file
24273 else
24274 echo "not updating unwritable cache $cache_file"
24275 fi
24276fi
24277rm -f confcache
24278
24279if test "$USE_LINUX" = 1 -o "$USE_GNU" = 1; then
24280 echo "$as_me:$LINENO: checking for glibc 2.1 or later" >&5
24281echo $ECHO_N "checking for glibc 2.1 or later... $ECHO_C" >&6
24282if test "${wx_cv_lib_glibc21+set}" = set; then
24283 echo $ECHO_N "(cached) $ECHO_C" >&6
24284else
24285
24286 cat >conftest.$ac_ext <<_ACEOF
24287/* confdefs.h. */
24288_ACEOF
24289cat confdefs.h >>conftest.$ac_ext
24290cat >>conftest.$ac_ext <<_ACEOF
24291/* end confdefs.h. */
24292#include <features.h>
24293int
24294main ()
24295{
24296
24297 #if (__GLIBC__ < 2) || (__GLIBC_MINOR__ < 1)
04e525a0 24298 not glibc 2.1
a848cd7e
SC
24299 #endif
24300
24301 ;
24302 return 0;
24303}
24304_ACEOF
24305rm -f conftest.$ac_objext
24306if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 24307 (eval $ac_compile) 2>conftest.er1
a848cd7e 24308 ac_status=$?
ac1cb8d3
VS
24309 grep -v '^ *+' conftest.er1 >conftest.err
24310 rm -f conftest.er1
24311 cat conftest.err >&5
a848cd7e
SC
24312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24313 (exit $ac_status); } &&
3f60522a
JS
24314 { ac_try='test -z "$ac_cxx_werror_flag"
24315 || test ! -s conftest.err'
ac1cb8d3
VS
24316 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24317 (eval $ac_try) 2>&5
24318 ac_status=$?
24319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24320 (exit $ac_status); }; } &&
24321 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
24322 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24323 (eval $ac_try) 2>&5
24324 ac_status=$?
24325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24326 (exit $ac_status); }; }; then
24327
24328 wx_cv_lib_glibc21=yes
24329
24330else
24331 echo "$as_me: failed program was:" >&5
24332sed 's/^/| /' conftest.$ac_ext >&5
24333
24334
24335 wx_cv_lib_glibc21=no
24336
24337
24338fi
ac1cb8d3 24339rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
24340
24341fi
24342echo "$as_me:$LINENO: result: $wx_cv_lib_glibc21" >&5
24343echo "${ECHO_T}$wx_cv_lib_glibc21" >&6
24344 if test "$wx_cv_lib_glibc21" = "yes"; then
24345 cat >>confdefs.h <<\_ACEOF
24346#define wxHAVE_GLIBC2 1
24347_ACEOF
24348
24349 fi
24350fi
24351
24352if test "x$wx_cv_lib_glibc21" = "xyes"; then
24353 if test "$wxUSE_UNICODE" = "yes" -o "$wxUSE_THREADS" = "yes"; then
24354 cat >>confdefs.h <<\_ACEOF
24355#define _GNU_SOURCE 1
24356_ACEOF
24357
24358 fi
24359fi
24360
5d7b7554
VZ
24361have_cos=0
24362have_floor=0
a848cd7e 24363
5d7b7554
VZ
24364for ac_func in cos
24365do
24366as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24367echo "$as_me:$LINENO: checking for $ac_func" >&5
24368echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
24369if eval "test \"\${$as_ac_var+set}\" = set"; then
a848cd7e 24370 echo $ECHO_N "(cached) $ECHO_C" >&6
a848cd7e 24371else
5d7b7554 24372 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
24373/* confdefs.h. */
24374_ACEOF
24375cat confdefs.h >>conftest.$ac_ext
24376cat >>conftest.$ac_ext <<_ACEOF
24377/* end confdefs.h. */
5d7b7554
VZ
24378/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24379 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24380#define $ac_func innocuous_$ac_func
24381
24382/* System header to define __stub macros and hopefully few prototypes,
24383 which can conflict with char $ac_func (); below.
24384 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24385 <limits.h> exists even on freestanding compilers. */
24386
24387#ifdef __STDC__
24388# include <limits.h>
24389#else
24390# include <assert.h>
24391#endif
24392
24393#undef $ac_func
24394
24395/* Override any gcc2 internal prototype to avoid an error. */
24396#ifdef __cplusplus
24397extern "C"
24398{
24399#endif
24400/* We use char because int might match the return type of a gcc2
24401 builtin and then its argument prototype would still apply. */
24402char $ac_func ();
24403/* The GNU C library defines this for functions which it implements
24404 to always fail with ENOSYS. Some functions are actually named
24405 something starting with __ and the normal name is an alias. */
24406#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
24407choke me
24408#else
24409char (*f) () = $ac_func;
24410#endif
24411#ifdef __cplusplus
24412}
24413#endif
24414
24415int
24416main ()
24417{
24418return f != $ac_func;
24419 ;
24420 return 0;
24421}
a848cd7e 24422_ACEOF
5d7b7554
VZ
24423rm -f conftest.$ac_objext conftest$ac_exeext
24424if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24425 (eval $ac_link) 2>conftest.er1
a848cd7e 24426 ac_status=$?
ac1cb8d3
VS
24427 grep -v '^ *+' conftest.er1 >conftest.err
24428 rm -f conftest.er1
24429 cat conftest.err >&5
a848cd7e
SC
24430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24431 (exit $ac_status); } &&
3f60522a
JS
24432 { ac_try='test -z "$ac_cxx_werror_flag"
24433 || test ! -s conftest.err'
ac1cb8d3
VS
24434 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24435 (eval $ac_try) 2>&5
24436 ac_status=$?
24437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24438 (exit $ac_status); }; } &&
5d7b7554 24439 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
24440 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24441 (eval $ac_try) 2>&5
24442 ac_status=$?
24443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24444 (exit $ac_status); }; }; then
5d7b7554 24445 eval "$as_ac_var=yes"
a848cd7e
SC
24446else
24447 echo "$as_me: failed program was:" >&5
24448sed 's/^/| /' conftest.$ac_ext >&5
24449
5d7b7554 24450eval "$as_ac_var=no"
a848cd7e 24451fi
5d7b7554
VZ
24452rm -f conftest.err conftest.$ac_objext \
24453 conftest$ac_exeext conftest.$ac_ext
a848cd7e 24454fi
5d7b7554
VZ
24455echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
24456echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
24457if test `eval echo '${'$as_ac_var'}'` = yes; then
24458 cat >>confdefs.h <<_ACEOF
24459#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24460_ACEOF
24461 have_cos=1
a848cd7e 24462fi
5d7b7554 24463done
a848cd7e 24464
ab0f0edd 24465
5d7b7554 24466for ac_func in floor
a848cd7e
SC
24467do
24468as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24469echo "$as_me:$LINENO: checking for $ac_func" >&5
24470echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
24471if eval "test \"\${$as_ac_var+set}\" = set"; then
24472 echo $ECHO_N "(cached) $ECHO_C" >&6
24473else
24474 cat >conftest.$ac_ext <<_ACEOF
24475/* confdefs.h. */
24476_ACEOF
24477cat confdefs.h >>conftest.$ac_ext
24478cat >>conftest.$ac_ext <<_ACEOF
24479/* end confdefs.h. */
ac1cb8d3
VS
24480/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24481 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24482#define $ac_func innocuous_$ac_func
24483
a848cd7e
SC
24484/* System header to define __stub macros and hopefully few prototypes,
24485 which can conflict with char $ac_func (); below.
24486 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24487 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 24488
a848cd7e
SC
24489#ifdef __STDC__
24490# include <limits.h>
24491#else
24492# include <assert.h>
24493#endif
ac1cb8d3
VS
24494
24495#undef $ac_func
24496
a848cd7e
SC
24497/* Override any gcc2 internal prototype to avoid an error. */
24498#ifdef __cplusplus
24499extern "C"
24500{
24501#endif
24502/* We use char because int might match the return type of a gcc2
24503 builtin and then its argument prototype would still apply. */
24504char $ac_func ();
24505/* The GNU C library defines this for functions which it implements
24506 to always fail with ENOSYS. Some functions are actually named
24507 something starting with __ and the normal name is an alias. */
24508#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
24509choke me
24510#else
24511char (*f) () = $ac_func;
24512#endif
24513#ifdef __cplusplus
24514}
24515#endif
24516
24517int
24518main ()
24519{
24520return f != $ac_func;
24521 ;
24522 return 0;
24523}
24524_ACEOF
24525rm -f conftest.$ac_objext conftest$ac_exeext
24526if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 24527 (eval $ac_link) 2>conftest.er1
a848cd7e 24528 ac_status=$?
ac1cb8d3
VS
24529 grep -v '^ *+' conftest.er1 >conftest.err
24530 rm -f conftest.er1
24531 cat conftest.err >&5
a848cd7e
SC
24532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24533 (exit $ac_status); } &&
3f60522a
JS
24534 { ac_try='test -z "$ac_cxx_werror_flag"
24535 || test ! -s conftest.err'
5d7b7554
VZ
24536 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24537 (eval $ac_try) 2>&5
24538 ac_status=$?
24539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24540 (exit $ac_status); }; } &&
24541 { ac_try='test -s conftest$ac_exeext'
24542 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24543 (eval $ac_try) 2>&5
24544 ac_status=$?
24545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24546 (exit $ac_status); }; }; then
24547 eval "$as_ac_var=yes"
24548else
24549 echo "$as_me: failed program was:" >&5
24550sed 's/^/| /' conftest.$ac_ext >&5
24551
24552eval "$as_ac_var=no"
24553fi
24554rm -f conftest.err conftest.$ac_objext \
24555 conftest$ac_exeext conftest.$ac_ext
24556fi
24557echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
24558echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
24559if test `eval echo '${'$as_ac_var'}'` = yes; then
24560 cat >>confdefs.h <<_ACEOF
24561#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24562_ACEOF
24563 have_floor=1
24564fi
24565done
24566
24567echo "$as_me:$LINENO: checking if floating point functions link without -lm" >&5
24568echo $ECHO_N "checking if floating point functions link without -lm... $ECHO_C" >&6
24569if test "$have_cos" = 1 -a "$have_floor" = 1; then
24570 echo "$as_me:$LINENO: result: yes" >&5
24571echo "${ECHO_T}yes" >&6
24572else
24573 echo "$as_me:$LINENO: result: no" >&5
24574echo "${ECHO_T}no" >&6
24575 LIBS="$LIBS -lm"
24576 # use different functions to avoid configure caching
24577 have_sin=0
24578 have_ceil=0
24579
24580for ac_func in sin
24581do
24582as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24583echo "$as_me:$LINENO: checking for $ac_func" >&5
24584echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
24585if eval "test \"\${$as_ac_var+set}\" = set"; then
24586 echo $ECHO_N "(cached) $ECHO_C" >&6
24587else
24588 cat >conftest.$ac_ext <<_ACEOF
24589/* confdefs.h. */
24590_ACEOF
24591cat confdefs.h >>conftest.$ac_ext
24592cat >>conftest.$ac_ext <<_ACEOF
24593/* end confdefs.h. */
24594/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24595 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24596#define $ac_func innocuous_$ac_func
24597
24598/* System header to define __stub macros and hopefully few prototypes,
24599 which can conflict with char $ac_func (); below.
24600 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24601 <limits.h> exists even on freestanding compilers. */
24602
24603#ifdef __STDC__
24604# include <limits.h>
24605#else
24606# include <assert.h>
24607#endif
24608
24609#undef $ac_func
24610
24611/* Override any gcc2 internal prototype to avoid an error. */
24612#ifdef __cplusplus
24613extern "C"
24614{
24615#endif
24616/* We use char because int might match the return type of a gcc2
24617 builtin and then its argument prototype would still apply. */
24618char $ac_func ();
24619/* The GNU C library defines this for functions which it implements
24620 to always fail with ENOSYS. Some functions are actually named
24621 something starting with __ and the normal name is an alias. */
24622#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
24623choke me
24624#else
24625char (*f) () = $ac_func;
24626#endif
24627#ifdef __cplusplus
24628}
24629#endif
24630
24631int
24632main ()
24633{
24634return f != $ac_func;
24635 ;
24636 return 0;
24637}
24638_ACEOF
24639rm -f conftest.$ac_objext conftest$ac_exeext
24640if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24641 (eval $ac_link) 2>conftest.er1
24642 ac_status=$?
24643 grep -v '^ *+' conftest.er1 >conftest.err
24644 rm -f conftest.er1
24645 cat conftest.err >&5
24646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24647 (exit $ac_status); } &&
3f60522a
JS
24648 { ac_try='test -z "$ac_cxx_werror_flag"
24649 || test ! -s conftest.err'
5d7b7554
VZ
24650 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24651 (eval $ac_try) 2>&5
24652 ac_status=$?
24653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24654 (exit $ac_status); }; } &&
24655 { ac_try='test -s conftest$ac_exeext'
24656 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24657 (eval $ac_try) 2>&5
24658 ac_status=$?
24659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24660 (exit $ac_status); }; }; then
24661 eval "$as_ac_var=yes"
24662else
24663 echo "$as_me: failed program was:" >&5
24664sed 's/^/| /' conftest.$ac_ext >&5
24665
24666eval "$as_ac_var=no"
24667fi
24668rm -f conftest.err conftest.$ac_objext \
24669 conftest$ac_exeext conftest.$ac_ext
24670fi
24671echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
24672echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
24673if test `eval echo '${'$as_ac_var'}'` = yes; then
24674 cat >>confdefs.h <<_ACEOF
24675#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24676_ACEOF
24677 have_sin=1
24678fi
24679done
24680
24681
24682for ac_func in ceil
24683do
24684as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24685echo "$as_me:$LINENO: checking for $ac_func" >&5
24686echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
24687if eval "test \"\${$as_ac_var+set}\" = set"; then
24688 echo $ECHO_N "(cached) $ECHO_C" >&6
24689else
24690 cat >conftest.$ac_ext <<_ACEOF
24691/* confdefs.h. */
24692_ACEOF
24693cat confdefs.h >>conftest.$ac_ext
24694cat >>conftest.$ac_ext <<_ACEOF
24695/* end confdefs.h. */
24696/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24697 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24698#define $ac_func innocuous_$ac_func
24699
24700/* System header to define __stub macros and hopefully few prototypes,
24701 which can conflict with char $ac_func (); below.
24702 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24703 <limits.h> exists even on freestanding compilers. */
24704
24705#ifdef __STDC__
24706# include <limits.h>
24707#else
24708# include <assert.h>
24709#endif
24710
24711#undef $ac_func
24712
24713/* Override any gcc2 internal prototype to avoid an error. */
24714#ifdef __cplusplus
24715extern "C"
24716{
24717#endif
24718/* We use char because int might match the return type of a gcc2
24719 builtin and then its argument prototype would still apply. */
24720char $ac_func ();
24721/* The GNU C library defines this for functions which it implements
24722 to always fail with ENOSYS. Some functions are actually named
24723 something starting with __ and the normal name is an alias. */
24724#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
24725choke me
24726#else
24727char (*f) () = $ac_func;
24728#endif
24729#ifdef __cplusplus
24730}
24731#endif
24732
24733int
24734main ()
24735{
24736return f != $ac_func;
24737 ;
24738 return 0;
24739}
24740_ACEOF
24741rm -f conftest.$ac_objext conftest$ac_exeext
24742if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24743 (eval $ac_link) 2>conftest.er1
24744 ac_status=$?
24745 grep -v '^ *+' conftest.er1 >conftest.err
24746 rm -f conftest.er1
24747 cat conftest.err >&5
24748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24749 (exit $ac_status); } &&
3f60522a
JS
24750 { ac_try='test -z "$ac_cxx_werror_flag"
24751 || test ! -s conftest.err'
5d7b7554
VZ
24752 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24753 (eval $ac_try) 2>&5
24754 ac_status=$?
24755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24756 (exit $ac_status); }; } &&
24757 { ac_try='test -s conftest$ac_exeext'
24758 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24759 (eval $ac_try) 2>&5
24760 ac_status=$?
24761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24762 (exit $ac_status); }; }; then
24763 eval "$as_ac_var=yes"
24764else
24765 echo "$as_me: failed program was:" >&5
24766sed 's/^/| /' conftest.$ac_ext >&5
24767
24768eval "$as_ac_var=no"
24769fi
24770rm -f conftest.err conftest.$ac_objext \
24771 conftest$ac_exeext conftest.$ac_ext
24772fi
24773echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
24774echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
24775if test `eval echo '${'$as_ac_var'}'` = yes; then
24776 cat >>confdefs.h <<_ACEOF
24777#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24778_ACEOF
24779 have_ceil=1
24780fi
24781done
24782
24783 echo "$as_me:$LINENO: checking if floating point functions link with -lm" >&5
24784echo $ECHO_N "checking if floating point functions link with -lm... $ECHO_C" >&6
24785 if test "$have_sin" = 1 -a "$have_ceil" = 1; then
24786 echo "$as_me:$LINENO: result: yes" >&5
24787echo "${ECHO_T}yes" >&6
24788 else
24789 echo "$as_me:$LINENO: result: no" >&5
24790echo "${ECHO_T}no" >&6
24791 # not sure we should warn the user, crash, etc.
24792 fi
24793fi
24794
24795
24796
24797if test "$wxUSE_REGEX" != "no"; then
24798 cat >>confdefs.h <<\_ACEOF
24799#define wxUSE_REGEX 1
24800_ACEOF
24801
24802
24803 if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_REGEX" = "yes"; then
24804 { echo "$as_me:$LINENO: WARNING: Defaulting to the the builtin regex library for Unicode build." >&5
24805echo "$as_me: WARNING: Defaulting to the the builtin regex library for Unicode build." >&2;}
24806 wxUSE_REGEX=builtin
24807 fi
24808
24809 if test "$wxUSE_REGEX" = "sys" -o "$wxUSE_REGEX" = "yes" ; then
24810 if test "${ac_cv_header_regex_h+set}" = set; then
24811 echo "$as_me:$LINENO: checking for regex.h" >&5
24812echo $ECHO_N "checking for regex.h... $ECHO_C" >&6
24813if test "${ac_cv_header_regex_h+set}" = set; then
24814 echo $ECHO_N "(cached) $ECHO_C" >&6
24815fi
24816echo "$as_me:$LINENO: result: $ac_cv_header_regex_h" >&5
24817echo "${ECHO_T}$ac_cv_header_regex_h" >&6
24818else
24819 # Is the header compilable?
24820echo "$as_me:$LINENO: checking regex.h usability" >&5
24821echo $ECHO_N "checking regex.h usability... $ECHO_C" >&6
24822cat >conftest.$ac_ext <<_ACEOF
24823/* confdefs.h. */
24824_ACEOF
24825cat confdefs.h >>conftest.$ac_ext
24826cat >>conftest.$ac_ext <<_ACEOF
24827/* end confdefs.h. */
24828$ac_includes_default
24829#include <regex.h>
24830_ACEOF
24831rm -f conftest.$ac_objext
24832if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24833 (eval $ac_compile) 2>conftest.er1
24834 ac_status=$?
24835 grep -v '^ *+' conftest.er1 >conftest.err
24836 rm -f conftest.er1
24837 cat conftest.err >&5
24838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24839 (exit $ac_status); } &&
3f60522a
JS
24840 { ac_try='test -z "$ac_cxx_werror_flag"
24841 || test ! -s conftest.err'
5d7b7554
VZ
24842 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24843 (eval $ac_try) 2>&5
24844 ac_status=$?
24845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24846 (exit $ac_status); }; } &&
24847 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
24853 ac_header_compiler=yes
24854else
24855 echo "$as_me: failed program was:" >&5
24856sed 's/^/| /' conftest.$ac_ext >&5
24857
24858ac_header_compiler=no
24859fi
24860rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24861echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24862echo "${ECHO_T}$ac_header_compiler" >&6
24863
24864# Is the header present?
24865echo "$as_me:$LINENO: checking regex.h presence" >&5
24866echo $ECHO_N "checking regex.h presence... $ECHO_C" >&6
24867cat >conftest.$ac_ext <<_ACEOF
24868/* confdefs.h. */
24869_ACEOF
24870cat confdefs.h >>conftest.$ac_ext
24871cat >>conftest.$ac_ext <<_ACEOF
24872/* end confdefs.h. */
24873#include <regex.h>
24874_ACEOF
24875if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
24876 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
24877 ac_status=$?
24878 grep -v '^ *+' conftest.er1 >conftest.err
24879 rm -f conftest.er1
24880 cat conftest.err >&5
24881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24882 (exit $ac_status); } >/dev/null; then
24883 if test -s conftest.err; then
24884 ac_cpp_err=$ac_cxx_preproc_warn_flag
24885 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
24886 else
24887 ac_cpp_err=
24888 fi
24889else
24890 ac_cpp_err=yes
24891fi
24892if test -z "$ac_cpp_err"; then
24893 ac_header_preproc=yes
24894else
24895 echo "$as_me: failed program was:" >&5
24896sed 's/^/| /' conftest.$ac_ext >&5
24897
24898 ac_header_preproc=no
24899fi
24900rm -f conftest.err conftest.$ac_ext
24901echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24902echo "${ECHO_T}$ac_header_preproc" >&6
24903
24904# So? What about this header?
24905case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
24906 yes:no: )
24907 { echo "$as_me:$LINENO: WARNING: regex.h: accepted by the compiler, rejected by the preprocessor!" >&5
24908echo "$as_me: WARNING: regex.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
24909 { echo "$as_me:$LINENO: WARNING: regex.h: proceeding with the compiler's result" >&5
24910echo "$as_me: WARNING: regex.h: proceeding with the compiler's result" >&2;}
24911 ac_header_preproc=yes
24912 ;;
24913 no:yes:* )
24914 { echo "$as_me:$LINENO: WARNING: regex.h: present but cannot be compiled" >&5
24915echo "$as_me: WARNING: regex.h: present but cannot be compiled" >&2;}
24916 { echo "$as_me:$LINENO: WARNING: regex.h: check for missing prerequisite headers?" >&5
24917echo "$as_me: WARNING: regex.h: check for missing prerequisite headers?" >&2;}
24918 { echo "$as_me:$LINENO: WARNING: regex.h: see the Autoconf documentation" >&5
24919echo "$as_me: WARNING: regex.h: see the Autoconf documentation" >&2;}
24920 { echo "$as_me:$LINENO: WARNING: regex.h: section \"Present But Cannot Be Compiled\"" >&5
24921echo "$as_me: WARNING: regex.h: section \"Present But Cannot Be Compiled\"" >&2;}
24922 { echo "$as_me:$LINENO: WARNING: regex.h: proceeding with the preprocessor's result" >&5
24923echo "$as_me: WARNING: regex.h: proceeding with the preprocessor's result" >&2;}
24924 { echo "$as_me:$LINENO: WARNING: regex.h: in the future, the compiler will take precedence" >&5
24925echo "$as_me: WARNING: regex.h: in the future, the compiler will take precedence" >&2;}
24926 (
24927 cat <<\_ASBOX
24928## ----------------------------------------- ##
24929## Report this to wx-dev@lists.wxwidgets.org ##
24930## ----------------------------------------- ##
24931_ASBOX
24932 ) |
24933 sed "s/^/$as_me: WARNING: /" >&2
24934 ;;
24935esac
24936echo "$as_me:$LINENO: checking for regex.h" >&5
24937echo $ECHO_N "checking for regex.h... $ECHO_C" >&6
24938if test "${ac_cv_header_regex_h+set}" = set; then
24939 echo $ECHO_N "(cached) $ECHO_C" >&6
24940else
24941 ac_cv_header_regex_h=$ac_header_preproc
24942fi
24943echo "$as_me:$LINENO: result: $ac_cv_header_regex_h" >&5
24944echo "${ECHO_T}$ac_cv_header_regex_h" >&6
24945
24946fi
24947if test $ac_cv_header_regex_h = yes; then
24948
24949
24950for ac_func in regcomp re_search
24951do
24952as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24953echo "$as_me:$LINENO: checking for $ac_func" >&5
24954echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
24955if eval "test \"\${$as_ac_var+set}\" = set"; then
24956 echo $ECHO_N "(cached) $ECHO_C" >&6
24957else
24958 cat >conftest.$ac_ext <<_ACEOF
24959/* confdefs.h. */
24960_ACEOF
24961cat confdefs.h >>conftest.$ac_ext
24962cat >>conftest.$ac_ext <<_ACEOF
24963/* end confdefs.h. */
24964/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24965 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24966#define $ac_func innocuous_$ac_func
24967
24968/* System header to define __stub macros and hopefully few prototypes,
24969 which can conflict with char $ac_func (); below.
24970 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24971 <limits.h> exists even on freestanding compilers. */
24972
24973#ifdef __STDC__
24974# include <limits.h>
24975#else
24976# include <assert.h>
24977#endif
24978
24979#undef $ac_func
24980
24981/* Override any gcc2 internal prototype to avoid an error. */
24982#ifdef __cplusplus
24983extern "C"
24984{
24985#endif
24986/* We use char because int might match the return type of a gcc2
24987 builtin and then its argument prototype would still apply. */
24988char $ac_func ();
24989/* The GNU C library defines this for functions which it implements
24990 to always fail with ENOSYS. Some functions are actually named
24991 something starting with __ and the normal name is an alias. */
24992#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
24993choke me
24994#else
24995char (*f) () = $ac_func;
24996#endif
24997#ifdef __cplusplus
24998}
24999#endif
25000
25001int
25002main ()
25003{
25004return f != $ac_func;
25005 ;
25006 return 0;
25007}
25008_ACEOF
25009rm -f conftest.$ac_objext conftest$ac_exeext
25010if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25011 (eval $ac_link) 2>conftest.er1
25012 ac_status=$?
25013 grep -v '^ *+' conftest.er1 >conftest.err
25014 rm -f conftest.er1
25015 cat conftest.err >&5
25016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25017 (exit $ac_status); } &&
3f60522a
JS
25018 { ac_try='test -z "$ac_cxx_werror_flag"
25019 || test ! -s conftest.err'
ac1cb8d3
VS
25020 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25021 (eval $ac_try) 2>&5
25022 ac_status=$?
25023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25024 (exit $ac_status); }; } &&
25025 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
25026 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25027 (eval $ac_try) 2>&5
25028 ac_status=$?
25029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25030 (exit $ac_status); }; }; then
25031 eval "$as_ac_var=yes"
25032else
25033 echo "$as_me: failed program was:" >&5
25034sed 's/^/| /' conftest.$ac_ext >&5
25035
25036eval "$as_ac_var=no"
25037fi
ac1cb8d3
VS
25038rm -f conftest.err conftest.$ac_objext \
25039 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
25040fi
25041echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
25042echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
25043if test `eval echo '${'$as_ac_var'}'` = yes; then
25044 cat >>confdefs.h <<_ACEOF
25045#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25046_ACEOF
25047
25048fi
25049done
25050
25051fi
25052
25053
25054
25055 if test "x$ac_cv_func_regcomp" != "xyes"; then
25056 if test "$wxUSE_REGEX" = "sys" ; then
25057 { { echo "$as_me:$LINENO: error: system regex library not found! Use --with-regex to use built-in version" >&5
25058echo "$as_me: error: system regex library not found! Use --with-regex to use built-in version" >&2;}
25059 { (exit 1); exit 1; }; }
25060 else
25061 { echo "$as_me:$LINENO: WARNING: system regex library not found, will use built-in instead" >&5
25062echo "$as_me: WARNING: system regex library not found, will use built-in instead" >&2;}
25063 wxUSE_REGEX=builtin
25064 fi
25065 else
25066 wxUSE_REGEX=sys
25067 cat >>confdefs.h <<\_ACEOF
25068#define WX_NO_REGEX_ADVANCED 1
25069_ACEOF
25070
25071 fi
25072 fi
25073fi
25074
25075
25076ZLIB_LINK=
25077if test "$wxUSE_ZLIB" != "no" ; then
25078 cat >>confdefs.h <<\_ACEOF
25079#define wxUSE_ZLIB 1
25080_ACEOF
25081
25082
25083 if test "$wxUSE_ZLIB" = "sys" -o "$wxUSE_ZLIB" = "yes" ; then
25084 if test "$USE_DARWIN" = 1; then
25085 system_zlib_h_ok="yes"
25086 else
25087 echo "$as_me:$LINENO: checking for zlib.h >= 1.1.4" >&5
25088echo $ECHO_N "checking for zlib.h >= 1.1.4... $ECHO_C" >&6
25089if test "${ac_cv_header_zlib_h+set}" = set; then
25090 echo $ECHO_N "(cached) $ECHO_C" >&6
25091else
25092 if test "$cross_compiling" = yes; then
25093 unset ac_cv_header_zlib_h
25094
25095else
25096 cat >conftest.$ac_ext <<_ACEOF
25097/* confdefs.h. */
25098_ACEOF
25099cat confdefs.h >>conftest.$ac_ext
25100cat >>conftest.$ac_ext <<_ACEOF
25101/* end confdefs.h. */
25102
25103 #include <zlib.h>
25104 #include <stdio.h>
25105
25106 int main()
25107 {
25108 FILE *f=fopen("conftestval", "w");
25109 if (!f) exit(1);
25110 fprintf(f, "%s",
25111 ZLIB_VERSION[0] == '1' &&
25112 (ZLIB_VERSION[2] > '1' ||
25113 (ZLIB_VERSION[2] == '1' &&
25114 ZLIB_VERSION[4] >= '4')) ? "yes" : "no");
25115 exit(0);
25116 }
25117
25118_ACEOF
25119rm -f conftest$ac_exeext
25120if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25121 (eval $ac_link) 2>&5
25122 ac_status=$?
25123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25124 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25125 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25126 (eval $ac_try) 2>&5
25127 ac_status=$?
25128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25129 (exit $ac_status); }; }; then
25130 ac_cv_header_zlib_h=`cat conftestval`
25131else
25132 echo "$as_me: program exited with status $ac_status" >&5
25133echo "$as_me: failed program was:" >&5
25134sed 's/^/| /' conftest.$ac_ext >&5
25135
25136( exit $ac_status )
25137ac_cv_header_zlib_h=no
25138fi
ac1cb8d3 25139rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
25140fi
25141
25142fi
25143echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
25144echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
25145 if test "${ac_cv_header_zlib_h+set}" = set; then
25146 echo "$as_me:$LINENO: checking for zlib.h" >&5
25147echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6
25148if test "${ac_cv_header_zlib_h+set}" = set; then
25149 echo $ECHO_N "(cached) $ECHO_C" >&6
25150fi
25151echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
25152echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
25153else
25154 # Is the header compilable?
25155echo "$as_me:$LINENO: checking zlib.h usability" >&5
25156echo $ECHO_N "checking zlib.h usability... $ECHO_C" >&6
25157cat >conftest.$ac_ext <<_ACEOF
25158/* confdefs.h. */
25159_ACEOF
25160cat confdefs.h >>conftest.$ac_ext
25161cat >>conftest.$ac_ext <<_ACEOF
25162/* end confdefs.h. */
25163$ac_includes_default
25164#include <zlib.h>
25165_ACEOF
25166rm -f conftest.$ac_objext
25167if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 25168 (eval $ac_compile) 2>conftest.er1
a848cd7e 25169 ac_status=$?
ac1cb8d3
VS
25170 grep -v '^ *+' conftest.er1 >conftest.err
25171 rm -f conftest.er1
25172 cat conftest.err >&5
a848cd7e
SC
25173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25174 (exit $ac_status); } &&
3f60522a
JS
25175 { ac_try='test -z "$ac_cxx_werror_flag"
25176 || test ! -s conftest.err'
ac1cb8d3
VS
25177 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25178 (eval $ac_try) 2>&5
25179 ac_status=$?
25180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25181 (exit $ac_status); }; } &&
25182 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
25183 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25184 (eval $ac_try) 2>&5
25185 ac_status=$?
25186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25187 (exit $ac_status); }; }; then
25188 ac_header_compiler=yes
25189else
25190 echo "$as_me: failed program was:" >&5
25191sed 's/^/| /' conftest.$ac_ext >&5
25192
25193ac_header_compiler=no
25194fi
ac1cb8d3 25195rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
25196echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25197echo "${ECHO_T}$ac_header_compiler" >&6
25198
25199# Is the header present?
25200echo "$as_me:$LINENO: checking zlib.h presence" >&5
25201echo $ECHO_N "checking zlib.h presence... $ECHO_C" >&6
25202cat >conftest.$ac_ext <<_ACEOF
25203/* confdefs.h. */
25204_ACEOF
25205cat confdefs.h >>conftest.$ac_ext
25206cat >>conftest.$ac_ext <<_ACEOF
25207/* end confdefs.h. */
25208#include <zlib.h>
25209_ACEOF
25210if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25211 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25212 ac_status=$?
25213 grep -v '^ *+' conftest.er1 >conftest.err
25214 rm -f conftest.er1
25215 cat conftest.err >&5
25216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25217 (exit $ac_status); } >/dev/null; then
25218 if test -s conftest.err; then
5d7b7554
VZ
25219 ac_cpp_err=$ac_cxx_preproc_warn_flag
25220 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
25221 else
25222 ac_cpp_err=
25223 fi
25224else
25225 ac_cpp_err=yes
25226fi
25227if test -z "$ac_cpp_err"; then
25228 ac_header_preproc=yes
25229else
25230 echo "$as_me: failed program was:" >&5
25231sed 's/^/| /' conftest.$ac_ext >&5
25232
25233 ac_header_preproc=no
25234fi
25235rm -f conftest.err conftest.$ac_ext
25236echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25237echo "${ECHO_T}$ac_header_preproc" >&6
25238
25239# So? What about this header?
5d7b7554 25240case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
ac1cb8d3 25241 yes:no: )
a848cd7e
SC
25242 { echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
25243echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
25244 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the compiler's result" >&5
25245echo "$as_me: WARNING: zlib.h: proceeding with the compiler's result" >&2;}
25246 ac_header_preproc=yes
a848cd7e 25247 ;;
ac1cb8d3 25248 no:yes:* )
a848cd7e
SC
25249 { echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5
25250echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
25251 { echo "$as_me:$LINENO: WARNING: zlib.h: check for missing prerequisite headers?" >&5
25252echo "$as_me: WARNING: zlib.h: check for missing prerequisite headers?" >&2;}
25253 { echo "$as_me:$LINENO: WARNING: zlib.h: see the Autoconf documentation" >&5
25254echo "$as_me: WARNING: zlib.h: see the Autoconf documentation" >&2;}
25255 { echo "$as_me:$LINENO: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&5
25256echo "$as_me: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
25257 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
25258echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
25259 { echo "$as_me:$LINENO: WARNING: zlib.h: in the future, the compiler will take precedence" >&5
25260echo "$as_me: WARNING: zlib.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
25261 (
25262 cat <<\_ASBOX
ac1cb8d3
VS
25263## ----------------------------------------- ##
25264## Report this to wx-dev@lists.wxwidgets.org ##
25265## ----------------------------------------- ##
a848cd7e
SC
25266_ASBOX
25267 ) |
25268 sed "s/^/$as_me: WARNING: /" >&2
25269 ;;
25270esac
25271echo "$as_me:$LINENO: checking for zlib.h" >&5
25272echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6
25273if test "${ac_cv_header_zlib_h+set}" = set; then
25274 echo $ECHO_N "(cached) $ECHO_C" >&6
25275else
25276 ac_cv_header_zlib_h=$ac_header_preproc
25277fi
25278echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
25279echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
25280
25281fi
25282
25283
25284
25285 system_zlib_h_ok=$ac_cv_header_zlib_h
25286 fi
25287
25288 if test "$system_zlib_h_ok" = "yes"; then
25289 echo "$as_me:$LINENO: checking for deflate in -lz" >&5
25290echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6
25291if test "${ac_cv_lib_z_deflate+set}" = set; then
25292 echo $ECHO_N "(cached) $ECHO_C" >&6
25293else
25294 ac_check_lib_save_LIBS=$LIBS
25295LIBS="-lz $LIBS"
25296cat >conftest.$ac_ext <<_ACEOF
25297/* confdefs.h. */
25298_ACEOF
25299cat confdefs.h >>conftest.$ac_ext
25300cat >>conftest.$ac_ext <<_ACEOF
25301/* end confdefs.h. */
25302
25303/* Override any gcc2 internal prototype to avoid an error. */
25304#ifdef __cplusplus
25305extern "C"
25306#endif
25307/* We use char because int might match the return type of a gcc2
25308 builtin and then its argument prototype would still apply. */
25309char deflate ();
25310int
25311main ()
25312{
25313deflate ();
25314 ;
25315 return 0;
25316}
25317_ACEOF
25318rm -f conftest.$ac_objext conftest$ac_exeext
25319if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 25320 (eval $ac_link) 2>conftest.er1
a848cd7e 25321 ac_status=$?
ac1cb8d3
VS
25322 grep -v '^ *+' conftest.er1 >conftest.err
25323 rm -f conftest.er1
25324 cat conftest.err >&5
a848cd7e
SC
25325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25326 (exit $ac_status); } &&
3f60522a
JS
25327 { ac_try='test -z "$ac_cxx_werror_flag"
25328 || test ! -s conftest.err'
ac1cb8d3
VS
25329 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25330 (eval $ac_try) 2>&5
25331 ac_status=$?
25332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25333 (exit $ac_status); }; } &&
25334 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
25335 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25336 (eval $ac_try) 2>&5
25337 ac_status=$?
25338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25339 (exit $ac_status); }; }; then
25340 ac_cv_lib_z_deflate=yes
25341else
25342 echo "$as_me: failed program was:" >&5
25343sed 's/^/| /' conftest.$ac_ext >&5
25344
25345ac_cv_lib_z_deflate=no
25346fi
ac1cb8d3
VS
25347rm -f conftest.err conftest.$ac_objext \
25348 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
25349LIBS=$ac_check_lib_save_LIBS
25350fi
25351echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
25352echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6
25353if test $ac_cv_lib_z_deflate = yes; then
25354 ZLIB_LINK=" -lz"
25355fi
25356
25357 fi
25358
25359 if test "x$ZLIB_LINK" = "x" ; then
25360 if test "$wxUSE_ZLIB" = "sys" ; then
25361 { { echo "$as_me:$LINENO: error: zlib library not found or too old! Use --with-zlib=builtin to use built-in version" >&5
25362echo "$as_me: error: zlib library not found or too old! Use --with-zlib=builtin to use built-in version" >&2;}
25363 { (exit 1); exit 1; }; }
25364 else
25365 { echo "$as_me:$LINENO: WARNING: zlib library not found or too old, will use built-in instead" >&5
25366echo "$as_me: WARNING: zlib library not found or too old, will use built-in instead" >&2;}
25367 wxUSE_ZLIB=builtin
25368 fi
25369 else
25370 wxUSE_ZLIB=sys
25371 fi
25372 fi
25373fi
25374
25375
25376PNG_LINK=
25377if test "$wxUSE_LIBPNG" != "no" ; then
25378 cat >>confdefs.h <<\_ACEOF
25379#define wxUSE_LIBPNG 1
25380_ACEOF
25381
25382
25383 if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBPNG" = "builtin" ; then
25384 { echo "$as_me:$LINENO: WARNING: wxMGL doesn't work with builtin png library, will use MGL one instead" >&5
25385echo "$as_me: WARNING: wxMGL doesn't work with builtin png library, will use MGL one instead" >&2;}
25386 wxUSE_LIBPNG=sys
25387 fi
25388
25389 if test "$wxUSE_MGL" != 1 -a "$wxUSE_LIBPNG" = "sys" -a "$wxUSE_ZLIB" != "sys" ; then
25390 { echo "$as_me:$LINENO: WARNING: system png library doesn't work without system zlib, will use built-in instead" >&5
25391echo "$as_me: WARNING: system png library doesn't work without system zlib, will use built-in instead" >&2;}
25392 wxUSE_LIBPNG=builtin
25393 fi
25394
25395 if test "$wxUSE_MGL" != 1 ; then
25396 if test "$wxUSE_LIBPNG" = "sys" -o "$wxUSE_LIBPNG" = "yes" ; then
25397 echo "$as_me:$LINENO: checking for png.h > 0.90" >&5
25398echo $ECHO_N "checking for png.h > 0.90... $ECHO_C" >&6
25399if test "${ac_cv_header_png_h+set}" = set; then
25400 echo $ECHO_N "(cached) $ECHO_C" >&6
25401else
25402 if test "$cross_compiling" = yes; then
25403 unset ac_cv_header_png_h
25404
25405else
25406 cat >conftest.$ac_ext <<_ACEOF
25407/* confdefs.h. */
25408_ACEOF
25409cat confdefs.h >>conftest.$ac_ext
25410cat >>conftest.$ac_ext <<_ACEOF
25411/* end confdefs.h. */
25412
25413 #include <png.h>
25414 #include <stdio.h>
25415
25416 int main()
25417 {
25418 FILE *f=fopen("conftestval", "w");
25419 if (!f) exit(1);
25420 fprintf(f, "%s",
25421 PNG_LIBPNG_VER > 90 ? "yes" : "no");
25422 exit(0);
25423 }
25424
25425_ACEOF
25426rm -f conftest$ac_exeext
25427if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25428 (eval $ac_link) 2>&5
25429 ac_status=$?
25430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25431 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25432 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25433 (eval $ac_try) 2>&5
25434 ac_status=$?
25435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25436 (exit $ac_status); }; }; then
25437 ac_cv_header_png_h=`cat conftestval`
25438else
25439 echo "$as_me: program exited with status $ac_status" >&5
25440echo "$as_me: failed program was:" >&5
25441sed 's/^/| /' conftest.$ac_ext >&5
25442
25443( exit $ac_status )
25444ac_cv_header_png_h=no
25445fi
ac1cb8d3 25446rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
25447fi
25448
25449fi
25450echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
25451echo "${ECHO_T}$ac_cv_header_png_h" >&6
25452 if test "${ac_cv_header_png_h+set}" = set; then
25453 echo "$as_me:$LINENO: checking for png.h" >&5
25454echo $ECHO_N "checking for png.h... $ECHO_C" >&6
25455if test "${ac_cv_header_png_h+set}" = set; then
25456 echo $ECHO_N "(cached) $ECHO_C" >&6
25457fi
25458echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
25459echo "${ECHO_T}$ac_cv_header_png_h" >&6
25460else
25461 # Is the header compilable?
25462echo "$as_me:$LINENO: checking png.h usability" >&5
25463echo $ECHO_N "checking png.h usability... $ECHO_C" >&6
25464cat >conftest.$ac_ext <<_ACEOF
25465/* confdefs.h. */
25466_ACEOF
25467cat confdefs.h >>conftest.$ac_ext
25468cat >>conftest.$ac_ext <<_ACEOF
25469/* end confdefs.h. */
25470$ac_includes_default
25471#include <png.h>
25472_ACEOF
25473rm -f conftest.$ac_objext
25474if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 25475 (eval $ac_compile) 2>conftest.er1
a848cd7e 25476 ac_status=$?
ac1cb8d3
VS
25477 grep -v '^ *+' conftest.er1 >conftest.err
25478 rm -f conftest.er1
25479 cat conftest.err >&5
a848cd7e
SC
25480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25481 (exit $ac_status); } &&
3f60522a
JS
25482 { ac_try='test -z "$ac_cxx_werror_flag"
25483 || test ! -s conftest.err'
ac1cb8d3
VS
25484 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25485 (eval $ac_try) 2>&5
25486 ac_status=$?
25487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25488 (exit $ac_status); }; } &&
25489 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
25490 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25491 (eval $ac_try) 2>&5
25492 ac_status=$?
25493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25494 (exit $ac_status); }; }; then
25495 ac_header_compiler=yes
25496else
25497 echo "$as_me: failed program was:" >&5
25498sed 's/^/| /' conftest.$ac_ext >&5
25499
25500ac_header_compiler=no
25501fi
ac1cb8d3 25502rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
25503echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25504echo "${ECHO_T}$ac_header_compiler" >&6
25505
25506# Is the header present?
25507echo "$as_me:$LINENO: checking png.h presence" >&5
25508echo $ECHO_N "checking png.h presence... $ECHO_C" >&6
25509cat >conftest.$ac_ext <<_ACEOF
25510/* confdefs.h. */
25511_ACEOF
25512cat confdefs.h >>conftest.$ac_ext
25513cat >>conftest.$ac_ext <<_ACEOF
25514/* end confdefs.h. */
25515#include <png.h>
25516_ACEOF
25517if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25518 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25519 ac_status=$?
25520 grep -v '^ *+' conftest.er1 >conftest.err
25521 rm -f conftest.er1
25522 cat conftest.err >&5
25523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25524 (exit $ac_status); } >/dev/null; then
25525 if test -s conftest.err; then
5d7b7554
VZ
25526 ac_cpp_err=$ac_cxx_preproc_warn_flag
25527 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
25528 else
25529 ac_cpp_err=
25530 fi
25531else
25532 ac_cpp_err=yes
25533fi
25534if test -z "$ac_cpp_err"; then
25535 ac_header_preproc=yes
25536else
25537 echo "$as_me: failed program was:" >&5
25538sed 's/^/| /' conftest.$ac_ext >&5
25539
25540 ac_header_preproc=no
25541fi
25542rm -f conftest.err conftest.$ac_ext
25543echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25544echo "${ECHO_T}$ac_header_preproc" >&6
25545
25546# So? What about this header?
5d7b7554 25547case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
ac1cb8d3 25548 yes:no: )
a848cd7e
SC
25549 { echo "$as_me:$LINENO: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&5
25550echo "$as_me: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
25551 { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the compiler's result" >&5
25552echo "$as_me: WARNING: png.h: proceeding with the compiler's result" >&2;}
25553 ac_header_preproc=yes
a848cd7e 25554 ;;
ac1cb8d3 25555 no:yes:* )
a848cd7e
SC
25556 { echo "$as_me:$LINENO: WARNING: png.h: present but cannot be compiled" >&5
25557echo "$as_me: WARNING: png.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
25558 { echo "$as_me:$LINENO: WARNING: png.h: check for missing prerequisite headers?" >&5
25559echo "$as_me: WARNING: png.h: check for missing prerequisite headers?" >&2;}
25560 { echo "$as_me:$LINENO: WARNING: png.h: see the Autoconf documentation" >&5
25561echo "$as_me: WARNING: png.h: see the Autoconf documentation" >&2;}
25562 { echo "$as_me:$LINENO: WARNING: png.h: section \"Present But Cannot Be Compiled\"" >&5
25563echo "$as_me: WARNING: png.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
25564 { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the preprocessor's result" >&5
25565echo "$as_me: WARNING: png.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
25566 { echo "$as_me:$LINENO: WARNING: png.h: in the future, the compiler will take precedence" >&5
25567echo "$as_me: WARNING: png.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
25568 (
25569 cat <<\_ASBOX
ac1cb8d3
VS
25570## ----------------------------------------- ##
25571## Report this to wx-dev@lists.wxwidgets.org ##
25572## ----------------------------------------- ##
a848cd7e
SC
25573_ASBOX
25574 ) |
25575 sed "s/^/$as_me: WARNING: /" >&2
25576 ;;
25577esac
25578echo "$as_me:$LINENO: checking for png.h" >&5
25579echo $ECHO_N "checking for png.h... $ECHO_C" >&6
25580if test "${ac_cv_header_png_h+set}" = set; then
25581 echo $ECHO_N "(cached) $ECHO_C" >&6
25582else
25583 ac_cv_header_png_h=$ac_header_preproc
25584fi
25585echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
25586echo "${ECHO_T}$ac_cv_header_png_h" >&6
25587
25588fi
25589
25590
25591
25592 if test "$ac_cv_header_png_h" = "yes"; then
25593 echo "$as_me:$LINENO: checking for png_check_sig in -lpng" >&5
25594echo $ECHO_N "checking for png_check_sig in -lpng... $ECHO_C" >&6
25595if test "${ac_cv_lib_png_png_check_sig+set}" = set; then
25596 echo $ECHO_N "(cached) $ECHO_C" >&6
25597else
25598 ac_check_lib_save_LIBS=$LIBS
25599LIBS="-lpng -lz -lm $LIBS"
25600cat >conftest.$ac_ext <<_ACEOF
25601/* confdefs.h. */
25602_ACEOF
25603cat confdefs.h >>conftest.$ac_ext
25604cat >>conftest.$ac_ext <<_ACEOF
25605/* end confdefs.h. */
25606
25607/* Override any gcc2 internal prototype to avoid an error. */
25608#ifdef __cplusplus
25609extern "C"
25610#endif
25611/* We use char because int might match the return type of a gcc2
25612 builtin and then its argument prototype would still apply. */
25613char png_check_sig ();
25614int
25615main ()
25616{
25617png_check_sig ();
25618 ;
25619 return 0;
25620}
25621_ACEOF
25622rm -f conftest.$ac_objext conftest$ac_exeext
25623if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 25624 (eval $ac_link) 2>conftest.er1
a848cd7e 25625 ac_status=$?
ac1cb8d3
VS
25626 grep -v '^ *+' conftest.er1 >conftest.err
25627 rm -f conftest.er1
25628 cat conftest.err >&5
a848cd7e
SC
25629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25630 (exit $ac_status); } &&
3f60522a
JS
25631 { ac_try='test -z "$ac_cxx_werror_flag"
25632 || test ! -s conftest.err'
ac1cb8d3
VS
25633 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25634 (eval $ac_try) 2>&5
25635 ac_status=$?
25636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25637 (exit $ac_status); }; } &&
25638 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
25639 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25640 (eval $ac_try) 2>&5
25641 ac_status=$?
25642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25643 (exit $ac_status); }; }; then
25644 ac_cv_lib_png_png_check_sig=yes
25645else
25646 echo "$as_me: failed program was:" >&5
25647sed 's/^/| /' conftest.$ac_ext >&5
25648
25649ac_cv_lib_png_png_check_sig=no
25650fi
ac1cb8d3
VS
25651rm -f conftest.err conftest.$ac_objext \
25652 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
25653LIBS=$ac_check_lib_save_LIBS
25654fi
25655echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_check_sig" >&5
25656echo "${ECHO_T}$ac_cv_lib_png_png_check_sig" >&6
25657if test $ac_cv_lib_png_png_check_sig = yes; then
25658 PNG_LINK=" -lpng -lz"
25659fi
25660
25661 fi
25662
25663 if test "x$PNG_LINK" = "x" ; then
25664 if test "$wxUSE_LIBPNG" = "sys" ; then
25665 { { echo "$as_me:$LINENO: error: system png library not found or too old! Use --with-libpng=builtin to use built-in version" >&5
25666echo "$as_me: error: system png library not found or too old! Use --with-libpng=builtin to use built-in version" >&2;}
25667 { (exit 1); exit 1; }; }
25668 else
25669 { echo "$as_me:$LINENO: WARNING: system png library not found or too old, will use built-in instead" >&5
25670echo "$as_me: WARNING: system png library not found or too old, will use built-in instead" >&2;}
25671 wxUSE_LIBPNG=builtin
25672 fi
25673 else
25674 wxUSE_LIBPNG=sys
25675 fi
25676 fi
25677 fi
25678
25679 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS png"
25680fi
25681
25682
25683JPEG_LINK=
25684if test "$wxUSE_LIBJPEG" != "no" ; then
25685 cat >>confdefs.h <<\_ACEOF
25686#define wxUSE_LIBJPEG 1
25687_ACEOF
25688
25689
25690 if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBJPEG" = "builtin" ; then
25691 { echo "$as_me:$LINENO: WARNING: wxMGL doesn't work with builtin jpeg library, will use MGL one instead" >&5
25692echo "$as_me: WARNING: wxMGL doesn't work with builtin jpeg library, will use MGL one instead" >&2;}
25693 wxUSE_LIBJPEG=sys
25694 fi
25695
25696 if test "$wxUSE_MGL" != 1 ; then
25697 if test "$wxUSE_LIBJPEG" = "sys" -o "$wxUSE_LIBJPEG" = "yes" ; then
25698 echo "$as_me:$LINENO: checking for jpeglib.h" >&5
25699echo $ECHO_N "checking for jpeglib.h... $ECHO_C" >&6
25700 if test "${ac_cv_header_jpeglib_h+set}" = set; then
25701 echo $ECHO_N "(cached) $ECHO_C" >&6
25702else
25703 cat >conftest.$ac_ext <<_ACEOF
25704/* confdefs.h. */
25705_ACEOF
25706cat confdefs.h >>conftest.$ac_ext
25707cat >>conftest.$ac_ext <<_ACEOF
25708/* end confdefs.h. */
25709
25710 #undef HAVE_STDLIB_H
25711 #include <stdio.h>
25712 #include <jpeglib.h>
25713
25714int
25715main ()
25716{
25717
25718
25719 ;
25720 return 0;
25721}
25722_ACEOF
25723rm -f conftest.$ac_objext
25724if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 25725 (eval $ac_compile) 2>conftest.er1
a848cd7e 25726 ac_status=$?
ac1cb8d3
VS
25727 grep -v '^ *+' conftest.er1 >conftest.err
25728 rm -f conftest.er1
25729 cat conftest.err >&5
a848cd7e
SC
25730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25731 (exit $ac_status); } &&
3f60522a
JS
25732 { ac_try='test -z "$ac_cxx_werror_flag"
25733 || test ! -s conftest.err'
ac1cb8d3
VS
25734 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25735 (eval $ac_try) 2>&5
25736 ac_status=$?
25737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25738 (exit $ac_status); }; } &&
25739 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
25740 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25741 (eval $ac_try) 2>&5
25742 ac_status=$?
25743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25744 (exit $ac_status); }; }; then
25745 ac_cv_header_jpeglib_h=yes
25746else
25747 echo "$as_me: failed program was:" >&5
25748sed 's/^/| /' conftest.$ac_ext >&5
25749
25750ac_cv_header_jpeglib_h=no
25751
25752fi
ac1cb8d3 25753rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
25754
25755fi
25756
25757 echo "$as_me:$LINENO: result: $ac_cv_header_jpeglib_h" >&5
25758echo "${ECHO_T}$ac_cv_header_jpeglib_h" >&6
25759
25760 if test "$ac_cv_header_jpeglib_h" = "yes"; then
25761 echo "$as_me:$LINENO: checking for jpeg_read_header in -ljpeg" >&5
25762echo $ECHO_N "checking for jpeg_read_header in -ljpeg... $ECHO_C" >&6
25763if test "${ac_cv_lib_jpeg_jpeg_read_header+set}" = set; then
25764 echo $ECHO_N "(cached) $ECHO_C" >&6
25765else
25766 ac_check_lib_save_LIBS=$LIBS
25767LIBS="-ljpeg $LIBS"
25768cat >conftest.$ac_ext <<_ACEOF
25769/* confdefs.h. */
25770_ACEOF
25771cat confdefs.h >>conftest.$ac_ext
25772cat >>conftest.$ac_ext <<_ACEOF
25773/* end confdefs.h. */
25774
25775/* Override any gcc2 internal prototype to avoid an error. */
25776#ifdef __cplusplus
25777extern "C"
25778#endif
25779/* We use char because int might match the return type of a gcc2
25780 builtin and then its argument prototype would still apply. */
25781char jpeg_read_header ();
25782int
25783main ()
25784{
25785jpeg_read_header ();
25786 ;
25787 return 0;
25788}
25789_ACEOF
25790rm -f conftest.$ac_objext conftest$ac_exeext
25791if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 25792 (eval $ac_link) 2>conftest.er1
a848cd7e 25793 ac_status=$?
ac1cb8d3
VS
25794 grep -v '^ *+' conftest.er1 >conftest.err
25795 rm -f conftest.er1
25796 cat conftest.err >&5
a848cd7e
SC
25797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25798 (exit $ac_status); } &&
3f60522a
JS
25799 { ac_try='test -z "$ac_cxx_werror_flag"
25800 || test ! -s conftest.err'
ac1cb8d3
VS
25801 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25802 (eval $ac_try) 2>&5
25803 ac_status=$?
25804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25805 (exit $ac_status); }; } &&
25806 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
25807 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25808 (eval $ac_try) 2>&5
25809 ac_status=$?
25810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25811 (exit $ac_status); }; }; then
25812 ac_cv_lib_jpeg_jpeg_read_header=yes
25813else
25814 echo "$as_me: failed program was:" >&5
25815sed 's/^/| /' conftest.$ac_ext >&5
25816
25817ac_cv_lib_jpeg_jpeg_read_header=no
25818fi
ac1cb8d3
VS
25819rm -f conftest.err conftest.$ac_objext \
25820 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
25821LIBS=$ac_check_lib_save_LIBS
25822fi
25823echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_read_header" >&5
25824echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_read_header" >&6
25825if test $ac_cv_lib_jpeg_jpeg_read_header = yes; then
25826 JPEG_LINK=" -ljpeg"
25827fi
25828
25829 fi
25830
25831 if test "x$JPEG_LINK" = "x" ; then
25832 if test "$wxUSE_LIBJPEG" = "sys" ; then
25833 { { echo "$as_me:$LINENO: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" >&5
25834echo "$as_me: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" >&2;}
25835 { (exit 1); exit 1; }; }
25836 else
25837 { echo "$as_me:$LINENO: WARNING: system jpeg library not found, will use built-in instead" >&5
25838echo "$as_me: WARNING: system jpeg library not found, will use built-in instead" >&2;}
25839 wxUSE_LIBJPEG=builtin
25840 fi
25841 else
25842 wxUSE_LIBJPEG=sys
25843 fi
25844 fi
25845 fi
25846fi
25847
25848
25849TIFF_LINK=
25850TIFF_PREREQ_LINKS=-lm
25851if test "$wxUSE_LIBTIFF" != "no" ; then
25852 cat >>confdefs.h <<\_ACEOF
25853#define wxUSE_LIBTIFF 1
25854_ACEOF
25855
25856
25857 if test "$wxUSE_LIBTIFF" = "sys" -o "$wxUSE_LIBTIFF" = "yes" ; then
25858 if test "$wxUSE_LIBJPEG" = "sys"; then
25859 TIFF_PREREQ_LINKS="$TIFF_PREREQ_LINKS $JPEG_LINK"
25860 fi
25861 if test "$wxUSE_ZLIB" = "sys"; then
25862 TIFF_PREREQ_LINKS="$TIFF_PREREQ_LINKS $ZLIB_LINK"
25863 fi
25864 if test "${ac_cv_header_tiffio_h+set}" = set; then
25865 echo "$as_me:$LINENO: checking for tiffio.h" >&5
25866echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
25867if test "${ac_cv_header_tiffio_h+set}" = set; then
25868 echo $ECHO_N "(cached) $ECHO_C" >&6
25869fi
25870echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
25871echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
25872else
25873 # Is the header compilable?
25874echo "$as_me:$LINENO: checking tiffio.h usability" >&5
25875echo $ECHO_N "checking tiffio.h usability... $ECHO_C" >&6
25876cat >conftest.$ac_ext <<_ACEOF
25877/* confdefs.h. */
25878_ACEOF
25879cat confdefs.h >>conftest.$ac_ext
25880cat >>conftest.$ac_ext <<_ACEOF
25881/* end confdefs.h. */
25882$ac_includes_default
25883#include <tiffio.h>
25884_ACEOF
25885rm -f conftest.$ac_objext
25886if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 25887 (eval $ac_compile) 2>conftest.er1
a848cd7e 25888 ac_status=$?
ac1cb8d3
VS
25889 grep -v '^ *+' conftest.er1 >conftest.err
25890 rm -f conftest.er1
25891 cat conftest.err >&5
a848cd7e
SC
25892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25893 (exit $ac_status); } &&
3f60522a
JS
25894 { ac_try='test -z "$ac_cxx_werror_flag"
25895 || test ! -s conftest.err'
ac1cb8d3
VS
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); }; } &&
25901 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
25902 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25903 (eval $ac_try) 2>&5
25904 ac_status=$?
25905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25906 (exit $ac_status); }; }; then
25907 ac_header_compiler=yes
25908else
25909 echo "$as_me: failed program was:" >&5
25910sed 's/^/| /' conftest.$ac_ext >&5
25911
25912ac_header_compiler=no
25913fi
ac1cb8d3 25914rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
25915echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25916echo "${ECHO_T}$ac_header_compiler" >&6
25917
25918# Is the header present?
25919echo "$as_me:$LINENO: checking tiffio.h presence" >&5
25920echo $ECHO_N "checking tiffio.h presence... $ECHO_C" >&6
25921cat >conftest.$ac_ext <<_ACEOF
25922/* confdefs.h. */
25923_ACEOF
25924cat confdefs.h >>conftest.$ac_ext
25925cat >>conftest.$ac_ext <<_ACEOF
25926/* end confdefs.h. */
25927#include <tiffio.h>
25928_ACEOF
25929if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25930 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25931 ac_status=$?
25932 grep -v '^ *+' conftest.er1 >conftest.err
25933 rm -f conftest.er1
25934 cat conftest.err >&5
25935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25936 (exit $ac_status); } >/dev/null; then
25937 if test -s conftest.err; then
5d7b7554
VZ
25938 ac_cpp_err=$ac_cxx_preproc_warn_flag
25939 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
25940 else
25941 ac_cpp_err=
25942 fi
25943else
25944 ac_cpp_err=yes
25945fi
25946if test -z "$ac_cpp_err"; then
25947 ac_header_preproc=yes
25948else
25949 echo "$as_me: failed program was:" >&5
25950sed 's/^/| /' conftest.$ac_ext >&5
25951
25952 ac_header_preproc=no
25953fi
25954rm -f conftest.err conftest.$ac_ext
25955echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25956echo "${ECHO_T}$ac_header_preproc" >&6
25957
25958# So? What about this header?
5d7b7554 25959case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
ac1cb8d3 25960 yes:no: )
a848cd7e
SC
25961 { echo "$as_me:$LINENO: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&5
25962echo "$as_me: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
25963 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the compiler's result" >&5
25964echo "$as_me: WARNING: tiffio.h: proceeding with the compiler's result" >&2;}
25965 ac_header_preproc=yes
a848cd7e 25966 ;;
ac1cb8d3 25967 no:yes:* )
a848cd7e
SC
25968 { echo "$as_me:$LINENO: WARNING: tiffio.h: present but cannot be compiled" >&5
25969echo "$as_me: WARNING: tiffio.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
25970 { echo "$as_me:$LINENO: WARNING: tiffio.h: check for missing prerequisite headers?" >&5
25971echo "$as_me: WARNING: tiffio.h: check for missing prerequisite headers?" >&2;}
25972 { echo "$as_me:$LINENO: WARNING: tiffio.h: see the Autoconf documentation" >&5
25973echo "$as_me: WARNING: tiffio.h: see the Autoconf documentation" >&2;}
25974 { echo "$as_me:$LINENO: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&5
25975echo "$as_me: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
25976 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result" >&5
25977echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
25978 { echo "$as_me:$LINENO: WARNING: tiffio.h: in the future, the compiler will take precedence" >&5
25979echo "$as_me: WARNING: tiffio.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
25980 (
25981 cat <<\_ASBOX
ac1cb8d3
VS
25982## ----------------------------------------- ##
25983## Report this to wx-dev@lists.wxwidgets.org ##
25984## ----------------------------------------- ##
a848cd7e
SC
25985_ASBOX
25986 ) |
25987 sed "s/^/$as_me: WARNING: /" >&2
25988 ;;
25989esac
25990echo "$as_me:$LINENO: checking for tiffio.h" >&5
25991echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
25992if test "${ac_cv_header_tiffio_h+set}" = set; then
25993 echo $ECHO_N "(cached) $ECHO_C" >&6
25994else
25995 ac_cv_header_tiffio_h=$ac_header_preproc
25996fi
25997echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
25998echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
25999
26000fi
26001if test $ac_cv_header_tiffio_h = yes; then
26002
26003 echo "$as_me:$LINENO: checking for TIFFError in -ltiff" >&5
26004echo $ECHO_N "checking for TIFFError in -ltiff... $ECHO_C" >&6
26005if test "${ac_cv_lib_tiff_TIFFError+set}" = set; then
26006 echo $ECHO_N "(cached) $ECHO_C" >&6
26007else
26008 ac_check_lib_save_LIBS=$LIBS
26009LIBS="-ltiff $TIFF_PREREQ_LINKS $LIBS"
26010cat >conftest.$ac_ext <<_ACEOF
26011/* confdefs.h. */
26012_ACEOF
26013cat confdefs.h >>conftest.$ac_ext
26014cat >>conftest.$ac_ext <<_ACEOF
26015/* end confdefs.h. */
26016
26017/* Override any gcc2 internal prototype to avoid an error. */
26018#ifdef __cplusplus
26019extern "C"
26020#endif
26021/* We use char because int might match the return type of a gcc2
26022 builtin and then its argument prototype would still apply. */
26023char TIFFError ();
26024int
26025main ()
26026{
26027TIFFError ();
26028 ;
26029 return 0;
26030}
26031_ACEOF
26032rm -f conftest.$ac_objext conftest$ac_exeext
26033if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 26034 (eval $ac_link) 2>conftest.er1
a848cd7e 26035 ac_status=$?
ac1cb8d3
VS
26036 grep -v '^ *+' conftest.er1 >conftest.err
26037 rm -f conftest.er1
26038 cat conftest.err >&5
a848cd7e
SC
26039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26040 (exit $ac_status); } &&
3f60522a
JS
26041 { ac_try='test -z "$ac_cxx_werror_flag"
26042 || test ! -s conftest.err'
ac1cb8d3
VS
26043 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26044 (eval $ac_try) 2>&5
26045 ac_status=$?
26046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26047 (exit $ac_status); }; } &&
26048 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
26049 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26050 (eval $ac_try) 2>&5
26051 ac_status=$?
26052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26053 (exit $ac_status); }; }; then
26054 ac_cv_lib_tiff_TIFFError=yes
26055else
26056 echo "$as_me: failed program was:" >&5
26057sed 's/^/| /' conftest.$ac_ext >&5
26058
26059ac_cv_lib_tiff_TIFFError=no
26060fi
ac1cb8d3
VS
26061rm -f conftest.err conftest.$ac_objext \
26062 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
26063LIBS=$ac_check_lib_save_LIBS
26064fi
26065echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFError" >&5
26066echo "${ECHO_T}$ac_cv_lib_tiff_TIFFError" >&6
26067if test $ac_cv_lib_tiff_TIFFError = yes; then
26068 TIFF_LINK=" -ltiff"
26069fi
26070
26071
26072
26073fi
26074
26075
26076
26077 if test "x$TIFF_LINK" = "x" ; then
26078 if test "$wxUSE_LIBTIFF" = "sys" ; then
26079 { { echo "$as_me:$LINENO: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" >&5
26080echo "$as_me: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" >&2;}
26081 { (exit 1); exit 1; }; }
26082 else
26083 { echo "$as_me:$LINENO: WARNING: system tiff library not found, will use built-in instead" >&5
26084echo "$as_me: WARNING: system tiff library not found, will use built-in instead" >&2;}
26085 wxUSE_LIBTIFF=builtin
26086 fi
26087 else
26088 wxUSE_LIBTIFF=sys
26089 fi
26090 fi
26091fi
26092
26093
47a7e797
MW
26094if test "$wxUSE_WCHAR_T" != "yes"; then
26095 if test "$wxUSE_EXPAT" != "no"; then
26096 { echo "$as_me:$LINENO: WARNING: wxWidgets requires wchar_t to use expat, disabling" >&5
26097echo "$as_me: WARNING: wxWidgets requires wchar_t to use expat, disabling" >&2;}
26098 wxUSE_EXPAT=no
26099 fi
26100 if test "$wxUSE_XML" != "no"; then
26101 { echo "$as_me:$LINENO: WARNING: wxWidgets requires wchar_t to use xml, disabling" >&5
26102echo "$as_me: WARNING: wxWidgets requires wchar_t to use xml, disabling" >&2;}
26103 wxUSE_XML=no
26104 fi
26105fi
26106
a848cd7e
SC
26107if test "$wxUSE_EXPAT" != "no"; then
26108 wxUSE_XML=yes
26109 cat >>confdefs.h <<\_ACEOF
26110#define wxUSE_EXPAT 1
26111_ACEOF
26112
26113 cat >>confdefs.h <<\_ACEOF
26114#define wxUSE_XML 1
26115_ACEOF
26116
26117
26118 if test "$wxUSE_EXPAT" = "sys" -o "$wxUSE_EXPAT" = "yes" ; then
26119 if test "${ac_cv_header_expat_h+set}" = set; then
26120 echo "$as_me:$LINENO: checking for expat.h" >&5
26121echo $ECHO_N "checking for expat.h... $ECHO_C" >&6
26122if test "${ac_cv_header_expat_h+set}" = set; then
26123 echo $ECHO_N "(cached) $ECHO_C" >&6
26124fi
26125echo "$as_me:$LINENO: result: $ac_cv_header_expat_h" >&5
26126echo "${ECHO_T}$ac_cv_header_expat_h" >&6
26127else
26128 # Is the header compilable?
26129echo "$as_me:$LINENO: checking expat.h usability" >&5
26130echo $ECHO_N "checking expat.h usability... $ECHO_C" >&6
26131cat >conftest.$ac_ext <<_ACEOF
26132/* confdefs.h. */
26133_ACEOF
26134cat confdefs.h >>conftest.$ac_ext
26135cat >>conftest.$ac_ext <<_ACEOF
26136/* end confdefs.h. */
26137$ac_includes_default
26138#include <expat.h>
26139_ACEOF
26140rm -f conftest.$ac_objext
26141if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 26142 (eval $ac_compile) 2>conftest.er1
a848cd7e 26143 ac_status=$?
ac1cb8d3
VS
26144 grep -v '^ *+' conftest.er1 >conftest.err
26145 rm -f conftest.er1
26146 cat conftest.err >&5
a848cd7e
SC
26147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26148 (exit $ac_status); } &&
3f60522a
JS
26149 { ac_try='test -z "$ac_cxx_werror_flag"
26150 || test ! -s conftest.err'
ac1cb8d3
VS
26151 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26152 (eval $ac_try) 2>&5
26153 ac_status=$?
26154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26155 (exit $ac_status); }; } &&
26156 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
26157 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26158 (eval $ac_try) 2>&5
26159 ac_status=$?
26160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26161 (exit $ac_status); }; }; then
26162 ac_header_compiler=yes
26163else
26164 echo "$as_me: failed program was:" >&5
26165sed 's/^/| /' conftest.$ac_ext >&5
26166
26167ac_header_compiler=no
26168fi
ac1cb8d3 26169rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
26170echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26171echo "${ECHO_T}$ac_header_compiler" >&6
26172
26173# Is the header present?
26174echo "$as_me:$LINENO: checking expat.h presence" >&5
26175echo $ECHO_N "checking expat.h presence... $ECHO_C" >&6
26176cat >conftest.$ac_ext <<_ACEOF
26177/* confdefs.h. */
26178_ACEOF
26179cat confdefs.h >>conftest.$ac_ext
26180cat >>conftest.$ac_ext <<_ACEOF
26181/* end confdefs.h. */
26182#include <expat.h>
26183_ACEOF
26184if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26185 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26186 ac_status=$?
26187 grep -v '^ *+' conftest.er1 >conftest.err
26188 rm -f conftest.er1
26189 cat conftest.err >&5
26190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26191 (exit $ac_status); } >/dev/null; then
26192 if test -s conftest.err; then
5d7b7554
VZ
26193 ac_cpp_err=$ac_cxx_preproc_warn_flag
26194 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
26195 else
26196 ac_cpp_err=
26197 fi
26198else
26199 ac_cpp_err=yes
26200fi
26201if test -z "$ac_cpp_err"; then
26202 ac_header_preproc=yes
26203else
26204 echo "$as_me: failed program was:" >&5
26205sed 's/^/| /' conftest.$ac_ext >&5
26206
26207 ac_header_preproc=no
26208fi
26209rm -f conftest.err conftest.$ac_ext
26210echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26211echo "${ECHO_T}$ac_header_preproc" >&6
26212
26213# So? What about this header?
5d7b7554 26214case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
ac1cb8d3 26215 yes:no: )
a848cd7e
SC
26216 { echo "$as_me:$LINENO: WARNING: expat.h: accepted by the compiler, rejected by the preprocessor!" >&5
26217echo "$as_me: WARNING: expat.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
26218 { echo "$as_me:$LINENO: WARNING: expat.h: proceeding with the compiler's result" >&5
26219echo "$as_me: WARNING: expat.h: proceeding with the compiler's result" >&2;}
26220 ac_header_preproc=yes
a848cd7e 26221 ;;
ac1cb8d3 26222 no:yes:* )
a848cd7e
SC
26223 { echo "$as_me:$LINENO: WARNING: expat.h: present but cannot be compiled" >&5
26224echo "$as_me: WARNING: expat.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
26225 { echo "$as_me:$LINENO: WARNING: expat.h: check for missing prerequisite headers?" >&5
26226echo "$as_me: WARNING: expat.h: check for missing prerequisite headers?" >&2;}
26227 { echo "$as_me:$LINENO: WARNING: expat.h: see the Autoconf documentation" >&5
26228echo "$as_me: WARNING: expat.h: see the Autoconf documentation" >&2;}
26229 { echo "$as_me:$LINENO: WARNING: expat.h: section \"Present But Cannot Be Compiled\"" >&5
26230echo "$as_me: WARNING: expat.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
26231 { echo "$as_me:$LINENO: WARNING: expat.h: proceeding with the preprocessor's result" >&5
26232echo "$as_me: WARNING: expat.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
26233 { echo "$as_me:$LINENO: WARNING: expat.h: in the future, the compiler will take precedence" >&5
26234echo "$as_me: WARNING: expat.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
26235 (
26236 cat <<\_ASBOX
ac1cb8d3
VS
26237## ----------------------------------------- ##
26238## Report this to wx-dev@lists.wxwidgets.org ##
26239## ----------------------------------------- ##
a848cd7e
SC
26240_ASBOX
26241 ) |
26242 sed "s/^/$as_me: WARNING: /" >&2
26243 ;;
26244esac
26245echo "$as_me:$LINENO: checking for expat.h" >&5
26246echo $ECHO_N "checking for expat.h... $ECHO_C" >&6
26247if test "${ac_cv_header_expat_h+set}" = set; then
26248 echo $ECHO_N "(cached) $ECHO_C" >&6
26249else
26250 ac_cv_header_expat_h=$ac_header_preproc
26251fi
26252echo "$as_me:$LINENO: result: $ac_cv_header_expat_h" >&5
26253echo "${ECHO_T}$ac_cv_header_expat_h" >&6
26254
26255fi
26256if test $ac_cv_header_expat_h = yes; then
26257 found_expat_h=1
26258fi
26259
26260
26261 if test "x$found_expat_h" = "x1"; then
26262 echo "$as_me:$LINENO: checking if expat.h is valid C++ header" >&5
26263echo $ECHO_N "checking if expat.h is valid C++ header... $ECHO_C" >&6
26264if test "${wx_cv_expat_is_not_broken+set}" = set; then
26265 echo $ECHO_N "(cached) $ECHO_C" >&6
26266else
26267
a848cd7e
SC
26268 cat >conftest.$ac_ext <<_ACEOF
26269/* confdefs.h. */
26270_ACEOF
26271cat confdefs.h >>conftest.$ac_ext
26272cat >>conftest.$ac_ext <<_ACEOF
26273/* end confdefs.h. */
26274#include <expat.h>
26275int
26276main ()
26277{
26278
26279 ;
26280 return 0;
26281}
26282_ACEOF
26283rm -f conftest.$ac_objext
26284if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 26285 (eval $ac_compile) 2>conftest.er1
a848cd7e 26286 ac_status=$?
ac1cb8d3
VS
26287 grep -v '^ *+' conftest.er1 >conftest.err
26288 rm -f conftest.er1
26289 cat conftest.err >&5
a848cd7e
SC
26290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26291 (exit $ac_status); } &&
3f60522a
JS
26292 { ac_try='test -z "$ac_cxx_werror_flag"
26293 || test ! -s conftest.err'
ac1cb8d3
VS
26294 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26295 (eval $ac_try) 2>&5
26296 ac_status=$?
26297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26298 (exit $ac_status); }; } &&
26299 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
26300 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26301 (eval $ac_try) 2>&5
26302 ac_status=$?
26303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26304 (exit $ac_status); }; }; then
26305 wx_cv_expat_is_not_broken=yes
26306else
26307 echo "$as_me: failed program was:" >&5
26308sed 's/^/| /' conftest.$ac_ext >&5
26309
26310wx_cv_expat_is_not_broken=no
26311
26312fi
ac1cb8d3 26313rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
26314
26315
26316fi
26317echo "$as_me:$LINENO: result: $wx_cv_expat_is_not_broken" >&5
26318echo "${ECHO_T}$wx_cv_expat_is_not_broken" >&6
26319 if test "$wx_cv_expat_is_not_broken" = "yes" ; then
26320 echo "$as_me:$LINENO: checking for XML_ParserCreate in -lexpat" >&5
26321echo $ECHO_N "checking for XML_ParserCreate in -lexpat... $ECHO_C" >&6
26322if test "${ac_cv_lib_expat_XML_ParserCreate+set}" = set; then
26323 echo $ECHO_N "(cached) $ECHO_C" >&6
26324else
26325 ac_check_lib_save_LIBS=$LIBS
26326LIBS="-lexpat $LIBS"
26327cat >conftest.$ac_ext <<_ACEOF
26328/* confdefs.h. */
26329_ACEOF
26330cat confdefs.h >>conftest.$ac_ext
26331cat >>conftest.$ac_ext <<_ACEOF
26332/* end confdefs.h. */
26333
26334/* Override any gcc2 internal prototype to avoid an error. */
26335#ifdef __cplusplus
26336extern "C"
26337#endif
26338/* We use char because int might match the return type of a gcc2
26339 builtin and then its argument prototype would still apply. */
26340char XML_ParserCreate ();
26341int
26342main ()
26343{
26344XML_ParserCreate ();
26345 ;
26346 return 0;
26347}
26348_ACEOF
26349rm -f conftest.$ac_objext conftest$ac_exeext
26350if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 26351 (eval $ac_link) 2>conftest.er1
a848cd7e 26352 ac_status=$?
ac1cb8d3
VS
26353 grep -v '^ *+' conftest.er1 >conftest.err
26354 rm -f conftest.er1
26355 cat conftest.err >&5
a848cd7e
SC
26356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26357 (exit $ac_status); } &&
3f60522a
JS
26358 { ac_try='test -z "$ac_cxx_werror_flag"
26359 || test ! -s conftest.err'
ac1cb8d3
VS
26360 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26361 (eval $ac_try) 2>&5
26362 ac_status=$?
26363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26364 (exit $ac_status); }; } &&
26365 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
26366 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26367 (eval $ac_try) 2>&5
26368 ac_status=$?
26369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26370 (exit $ac_status); }; }; then
26371 ac_cv_lib_expat_XML_ParserCreate=yes
26372else
26373 echo "$as_me: failed program was:" >&5
26374sed 's/^/| /' conftest.$ac_ext >&5
26375
26376ac_cv_lib_expat_XML_ParserCreate=no
26377fi
ac1cb8d3
VS
26378rm -f conftest.err conftest.$ac_objext \
26379 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
26380LIBS=$ac_check_lib_save_LIBS
26381fi
26382echo "$as_me:$LINENO: result: $ac_cv_lib_expat_XML_ParserCreate" >&5
26383echo "${ECHO_T}$ac_cv_lib_expat_XML_ParserCreate" >&6
26384if test $ac_cv_lib_expat_XML_ParserCreate = yes; then
26385 EXPAT_LINK=" -lexpat"
26386fi
26387
26388 fi
26389 fi
26390 if test "x$EXPAT_LINK" = "x" ; then
26391 if test "$wxUSE_EXPAT" = "sys" ; then
26392 { { echo "$as_me:$LINENO: error: system expat library not found! Use --with-expat=builtin to use built-in version" >&5
26393echo "$as_me: error: system expat library not found! Use --with-expat=builtin to use built-in version" >&2;}
26394 { (exit 1); exit 1; }; }
26395 else
26396 { echo "$as_me:$LINENO: WARNING: system expat library not found, will use built-in instead" >&5
26397echo "$as_me: WARNING: system expat library not found, will use built-in instead" >&2;}
26398 wxUSE_EXPAT=builtin
26399 fi
26400 else
26401 wxUSE_EXPAT=sys
26402 fi
26403 fi
26404 if test "$wxUSE_EXPAT" = "builtin" ; then
26405
26406
26407subdirs="$subdirs src/expat"
26408
26409 fi
26410fi
26411
26412
26413
26414if test "$wxUSE_LIBMSPACK" != "no"; then
a848cd7e
SC
26415 if test "${ac_cv_header_mspack_h+set}" = set; then
26416 echo "$as_me:$LINENO: checking for mspack.h" >&5
26417echo $ECHO_N "checking for mspack.h... $ECHO_C" >&6
26418if test "${ac_cv_header_mspack_h+set}" = set; then
26419 echo $ECHO_N "(cached) $ECHO_C" >&6
26420fi
26421echo "$as_me:$LINENO: result: $ac_cv_header_mspack_h" >&5
26422echo "${ECHO_T}$ac_cv_header_mspack_h" >&6
26423else
26424 # Is the header compilable?
26425echo "$as_me:$LINENO: checking mspack.h usability" >&5
26426echo $ECHO_N "checking mspack.h usability... $ECHO_C" >&6
26427cat >conftest.$ac_ext <<_ACEOF
26428/* confdefs.h. */
26429_ACEOF
26430cat confdefs.h >>conftest.$ac_ext
26431cat >>conftest.$ac_ext <<_ACEOF
26432/* end confdefs.h. */
26433$ac_includes_default
26434#include <mspack.h>
26435_ACEOF
26436rm -f conftest.$ac_objext
26437if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 26438 (eval $ac_compile) 2>conftest.er1
a848cd7e 26439 ac_status=$?
ac1cb8d3
VS
26440 grep -v '^ *+' conftest.er1 >conftest.err
26441 rm -f conftest.er1
26442 cat conftest.err >&5
a848cd7e
SC
26443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26444 (exit $ac_status); } &&
3f60522a
JS
26445 { ac_try='test -z "$ac_cxx_werror_flag"
26446 || test ! -s conftest.err'
ac1cb8d3
VS
26447 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26448 (eval $ac_try) 2>&5
26449 ac_status=$?
26450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26451 (exit $ac_status); }; } &&
26452 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
26453 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26454 (eval $ac_try) 2>&5
26455 ac_status=$?
26456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26457 (exit $ac_status); }; }; then
26458 ac_header_compiler=yes
26459else
26460 echo "$as_me: failed program was:" >&5
26461sed 's/^/| /' conftest.$ac_ext >&5
26462
26463ac_header_compiler=no
26464fi
ac1cb8d3 26465rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
26466echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26467echo "${ECHO_T}$ac_header_compiler" >&6
26468
26469# Is the header present?
26470echo "$as_me:$LINENO: checking mspack.h presence" >&5
26471echo $ECHO_N "checking mspack.h presence... $ECHO_C" >&6
26472cat >conftest.$ac_ext <<_ACEOF
26473/* confdefs.h. */
26474_ACEOF
26475cat confdefs.h >>conftest.$ac_ext
26476cat >>conftest.$ac_ext <<_ACEOF
26477/* end confdefs.h. */
26478#include <mspack.h>
26479_ACEOF
26480if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26481 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26482 ac_status=$?
26483 grep -v '^ *+' conftest.er1 >conftest.err
26484 rm -f conftest.er1
26485 cat conftest.err >&5
26486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26487 (exit $ac_status); } >/dev/null; then
26488 if test -s conftest.err; then
5d7b7554
VZ
26489 ac_cpp_err=$ac_cxx_preproc_warn_flag
26490 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
26491 else
26492 ac_cpp_err=
26493 fi
26494else
26495 ac_cpp_err=yes
26496fi
26497if test -z "$ac_cpp_err"; then
26498 ac_header_preproc=yes
26499else
26500 echo "$as_me: failed program was:" >&5
26501sed 's/^/| /' conftest.$ac_ext >&5
26502
26503 ac_header_preproc=no
26504fi
26505rm -f conftest.err conftest.$ac_ext
26506echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26507echo "${ECHO_T}$ac_header_preproc" >&6
26508
26509# So? What about this header?
5d7b7554 26510case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
ac1cb8d3 26511 yes:no: )
a848cd7e
SC
26512 { echo "$as_me:$LINENO: WARNING: mspack.h: accepted by the compiler, rejected by the preprocessor!" >&5
26513echo "$as_me: WARNING: mspack.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
26514 { echo "$as_me:$LINENO: WARNING: mspack.h: proceeding with the compiler's result" >&5
26515echo "$as_me: WARNING: mspack.h: proceeding with the compiler's result" >&2;}
26516 ac_header_preproc=yes
a848cd7e 26517 ;;
ac1cb8d3 26518 no:yes:* )
a848cd7e
SC
26519 { echo "$as_me:$LINENO: WARNING: mspack.h: present but cannot be compiled" >&5
26520echo "$as_me: WARNING: mspack.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
26521 { echo "$as_me:$LINENO: WARNING: mspack.h: check for missing prerequisite headers?" >&5
26522echo "$as_me: WARNING: mspack.h: check for missing prerequisite headers?" >&2;}
26523 { echo "$as_me:$LINENO: WARNING: mspack.h: see the Autoconf documentation" >&5
26524echo "$as_me: WARNING: mspack.h: see the Autoconf documentation" >&2;}
26525 { echo "$as_me:$LINENO: WARNING: mspack.h: section \"Present But Cannot Be Compiled\"" >&5
26526echo "$as_me: WARNING: mspack.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
26527 { echo "$as_me:$LINENO: WARNING: mspack.h: proceeding with the preprocessor's result" >&5
26528echo "$as_me: WARNING: mspack.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
26529 { echo "$as_me:$LINENO: WARNING: mspack.h: in the future, the compiler will take precedence" >&5
26530echo "$as_me: WARNING: mspack.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
26531 (
26532 cat <<\_ASBOX
ac1cb8d3
VS
26533## ----------------------------------------- ##
26534## Report this to wx-dev@lists.wxwidgets.org ##
26535## ----------------------------------------- ##
a848cd7e
SC
26536_ASBOX
26537 ) |
26538 sed "s/^/$as_me: WARNING: /" >&2
26539 ;;
26540esac
26541echo "$as_me:$LINENO: checking for mspack.h" >&5
26542echo $ECHO_N "checking for mspack.h... $ECHO_C" >&6
26543if test "${ac_cv_header_mspack_h+set}" = set; then
26544 echo $ECHO_N "(cached) $ECHO_C" >&6
26545else
26546 ac_cv_header_mspack_h=$ac_header_preproc
26547fi
26548echo "$as_me:$LINENO: result: $ac_cv_header_mspack_h" >&5
26549echo "${ECHO_T}$ac_cv_header_mspack_h" >&6
26550
26551fi
26552if test $ac_cv_header_mspack_h = yes; then
26553 found_mspack_h=1
26554fi
26555
26556
26557 if test "x$found_mspack_h" = "x1"; then
26558 echo "$as_me:$LINENO: checking for mspack_create_chm_decompressor in -lmspack" >&5
26559echo $ECHO_N "checking for mspack_create_chm_decompressor in -lmspack... $ECHO_C" >&6
26560if test "${ac_cv_lib_mspack_mspack_create_chm_decompressor+set}" = set; then
26561 echo $ECHO_N "(cached) $ECHO_C" >&6
26562else
26563 ac_check_lib_save_LIBS=$LIBS
26564LIBS="-lmspack $LIBS"
26565cat >conftest.$ac_ext <<_ACEOF
26566/* confdefs.h. */
26567_ACEOF
26568cat confdefs.h >>conftest.$ac_ext
26569cat >>conftest.$ac_ext <<_ACEOF
26570/* end confdefs.h. */
26571
26572/* Override any gcc2 internal prototype to avoid an error. */
26573#ifdef __cplusplus
26574extern "C"
26575#endif
26576/* We use char because int might match the return type of a gcc2
26577 builtin and then its argument prototype would still apply. */
26578char mspack_create_chm_decompressor ();
26579int
26580main ()
26581{
26582mspack_create_chm_decompressor ();
26583 ;
26584 return 0;
26585}
26586_ACEOF
26587rm -f conftest.$ac_objext conftest$ac_exeext
26588if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 26589 (eval $ac_link) 2>conftest.er1
a848cd7e 26590 ac_status=$?
ac1cb8d3
VS
26591 grep -v '^ *+' conftest.er1 >conftest.err
26592 rm -f conftest.er1
26593 cat conftest.err >&5
a848cd7e
SC
26594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26595 (exit $ac_status); } &&
3f60522a
JS
26596 { ac_try='test -z "$ac_cxx_werror_flag"
26597 || test ! -s conftest.err'
ac1cb8d3
VS
26598 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26599 (eval $ac_try) 2>&5
26600 ac_status=$?
26601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26602 (exit $ac_status); }; } &&
26603 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
26604 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26605 (eval $ac_try) 2>&5
26606 ac_status=$?
26607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26608 (exit $ac_status); }; }; then
26609 ac_cv_lib_mspack_mspack_create_chm_decompressor=yes
26610else
26611 echo "$as_me: failed program was:" >&5
26612sed 's/^/| /' conftest.$ac_ext >&5
26613
26614ac_cv_lib_mspack_mspack_create_chm_decompressor=no
26615fi
ac1cb8d3
VS
26616rm -f conftest.err conftest.$ac_objext \
26617 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
26618LIBS=$ac_check_lib_save_LIBS
26619fi
26620echo "$as_me:$LINENO: result: $ac_cv_lib_mspack_mspack_create_chm_decompressor" >&5
26621echo "${ECHO_T}$ac_cv_lib_mspack_mspack_create_chm_decompressor" >&6
26622if test $ac_cv_lib_mspack_mspack_create_chm_decompressor = yes; then
26623 MSPACK_LINK=" -lmspack"
26624fi
26625
26626 fi
26627 if test "x$MSPACK_LINK" = "x" ; then
26628 wxUSE_LIBMSPACK=no
dd3a2d96
VZ
26629 fi
26630fi
26631
26632if test "$wxUSE_LIBMSPACK" != "no"; then
26633 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
26634#define wxUSE_LIBMSPACK 1
26635_ACEOF
26636
a848cd7e
SC
26637fi
26638
26639
26640
26641AFMINSTALL=
26642WIN32INSTALL=
26643
26644TOOLKIT=
26645TOOLKIT_INCLUDE=
26646WIDGET_SET=
26647
26648if test "$USE_WIN32" = 1 ; then
26649
26650for ac_header in w32api.h
26651do
26652as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26653if eval "test \"\${$as_ac_Header+set}\" = set"; then
26654 echo "$as_me:$LINENO: checking for $ac_header" >&5
26655echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26656if eval "test \"\${$as_ac_Header+set}\" = set"; then
26657 echo $ECHO_N "(cached) $ECHO_C" >&6
26658fi
26659echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26660echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26661else
26662 # Is the header compilable?
26663echo "$as_me:$LINENO: checking $ac_header usability" >&5
26664echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26665cat >conftest.$ac_ext <<_ACEOF
26666/* confdefs.h. */
26667_ACEOF
26668cat confdefs.h >>conftest.$ac_ext
26669cat >>conftest.$ac_ext <<_ACEOF
26670/* end confdefs.h. */
26671$ac_includes_default
26672#include <$ac_header>
26673_ACEOF
26674rm -f conftest.$ac_objext
26675if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 26676 (eval $ac_compile) 2>conftest.er1
a848cd7e 26677 ac_status=$?
ac1cb8d3
VS
26678 grep -v '^ *+' conftest.er1 >conftest.err
26679 rm -f conftest.er1
26680 cat conftest.err >&5
a848cd7e
SC
26681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26682 (exit $ac_status); } &&
3f60522a
JS
26683 { ac_try='test -z "$ac_cxx_werror_flag"
26684 || test ! -s conftest.err'
ac1cb8d3
VS
26685 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26686 (eval $ac_try) 2>&5
26687 ac_status=$?
26688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26689 (exit $ac_status); }; } &&
26690 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
26691 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26692 (eval $ac_try) 2>&5
26693 ac_status=$?
26694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26695 (exit $ac_status); }; }; then
26696 ac_header_compiler=yes
26697else
26698 echo "$as_me: failed program was:" >&5
26699sed 's/^/| /' conftest.$ac_ext >&5
26700
26701ac_header_compiler=no
26702fi
ac1cb8d3 26703rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
26704echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26705echo "${ECHO_T}$ac_header_compiler" >&6
26706
26707# Is the header present?
26708echo "$as_me:$LINENO: checking $ac_header presence" >&5
26709echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26710cat >conftest.$ac_ext <<_ACEOF
26711/* confdefs.h. */
26712_ACEOF
26713cat confdefs.h >>conftest.$ac_ext
26714cat >>conftest.$ac_ext <<_ACEOF
26715/* end confdefs.h. */
26716#include <$ac_header>
26717_ACEOF
26718if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26719 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26720 ac_status=$?
26721 grep -v '^ *+' conftest.er1 >conftest.err
26722 rm -f conftest.er1
26723 cat conftest.err >&5
26724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26725 (exit $ac_status); } >/dev/null; then
26726 if test -s conftest.err; then
5d7b7554
VZ
26727 ac_cpp_err=$ac_cxx_preproc_warn_flag
26728 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
26729 else
26730 ac_cpp_err=
26731 fi
26732else
26733 ac_cpp_err=yes
26734fi
26735if test -z "$ac_cpp_err"; then
26736 ac_header_preproc=yes
26737else
26738 echo "$as_me: failed program was:" >&5
26739sed 's/^/| /' conftest.$ac_ext >&5
26740
26741 ac_header_preproc=no
26742fi
26743rm -f conftest.err conftest.$ac_ext
26744echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26745echo "${ECHO_T}$ac_header_preproc" >&6
26746
26747# So? What about this header?
5d7b7554 26748case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
ac1cb8d3 26749 yes:no: )
a848cd7e
SC
26750 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26751echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
26752 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26753echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26754 ac_header_preproc=yes
a848cd7e 26755 ;;
ac1cb8d3 26756 no:yes:* )
a848cd7e
SC
26757 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26758echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
26759 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
26760echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
26761 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26762echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26763 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
26764echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
26765 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26766echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
26767 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26768echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
26769 (
26770 cat <<\_ASBOX
ac1cb8d3
VS
26771## ----------------------------------------- ##
26772## Report this to wx-dev@lists.wxwidgets.org ##
26773## ----------------------------------------- ##
a848cd7e
SC
26774_ASBOX
26775 ) |
26776 sed "s/^/$as_me: WARNING: /" >&2
26777 ;;
26778esac
26779echo "$as_me:$LINENO: checking for $ac_header" >&5
26780echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26781if eval "test \"\${$as_ac_Header+set}\" = set"; then
26782 echo $ECHO_N "(cached) $ECHO_C" >&6
26783else
ac1cb8d3 26784 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
26785fi
26786echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26787echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26788
26789fi
26790if test `eval echo '${'$as_ac_Header'}'` = yes; then
26791 cat >>confdefs.h <<_ACEOF
26792#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26793_ACEOF
26794
26795fi
26796
26797done
26798
26799 if test "${ac_cv_header_windows_h+set}" = set; then
26800 echo "$as_me:$LINENO: checking for windows.h" >&5
26801echo $ECHO_N "checking for windows.h... $ECHO_C" >&6
26802if test "${ac_cv_header_windows_h+set}" = set; then
26803 echo $ECHO_N "(cached) $ECHO_C" >&6
26804fi
26805echo "$as_me:$LINENO: result: $ac_cv_header_windows_h" >&5
26806echo "${ECHO_T}$ac_cv_header_windows_h" >&6
26807else
26808 # Is the header compilable?
26809echo "$as_me:$LINENO: checking windows.h usability" >&5
26810echo $ECHO_N "checking windows.h usability... $ECHO_C" >&6
26811cat >conftest.$ac_ext <<_ACEOF
26812/* confdefs.h. */
26813_ACEOF
26814cat confdefs.h >>conftest.$ac_ext
26815cat >>conftest.$ac_ext <<_ACEOF
26816/* end confdefs.h. */
26817$ac_includes_default
26818#include <windows.h>
26819_ACEOF
26820rm -f conftest.$ac_objext
26821if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 26822 (eval $ac_compile) 2>conftest.er1
a848cd7e 26823 ac_status=$?
ac1cb8d3
VS
26824 grep -v '^ *+' conftest.er1 >conftest.err
26825 rm -f conftest.er1
26826 cat conftest.err >&5
a848cd7e
SC
26827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26828 (exit $ac_status); } &&
3f60522a
JS
26829 { ac_try='test -z "$ac_cxx_werror_flag"
26830 || test ! -s conftest.err'
ac1cb8d3
VS
26831 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26832 (eval $ac_try) 2>&5
26833 ac_status=$?
26834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26835 (exit $ac_status); }; } &&
26836 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
26837 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26838 (eval $ac_try) 2>&5
26839 ac_status=$?
26840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26841 (exit $ac_status); }; }; then
26842 ac_header_compiler=yes
26843else
26844 echo "$as_me: failed program was:" >&5
26845sed 's/^/| /' conftest.$ac_ext >&5
26846
26847ac_header_compiler=no
26848fi
ac1cb8d3 26849rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
26850echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26851echo "${ECHO_T}$ac_header_compiler" >&6
26852
26853# Is the header present?
26854echo "$as_me:$LINENO: checking windows.h presence" >&5
26855echo $ECHO_N "checking windows.h presence... $ECHO_C" >&6
26856cat >conftest.$ac_ext <<_ACEOF
26857/* confdefs.h. */
26858_ACEOF
26859cat confdefs.h >>conftest.$ac_ext
26860cat >>conftest.$ac_ext <<_ACEOF
26861/* end confdefs.h. */
26862#include <windows.h>
26863_ACEOF
26864if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26865 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26866 ac_status=$?
26867 grep -v '^ *+' conftest.er1 >conftest.err
26868 rm -f conftest.er1
26869 cat conftest.err >&5
26870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26871 (exit $ac_status); } >/dev/null; then
26872 if test -s conftest.err; then
5d7b7554
VZ
26873 ac_cpp_err=$ac_cxx_preproc_warn_flag
26874 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
26875 else
26876 ac_cpp_err=
26877 fi
26878else
26879 ac_cpp_err=yes
26880fi
26881if test -z "$ac_cpp_err"; then
26882 ac_header_preproc=yes
26883else
26884 echo "$as_me: failed program was:" >&5
26885sed 's/^/| /' conftest.$ac_ext >&5
26886
26887 ac_header_preproc=no
26888fi
26889rm -f conftest.err conftest.$ac_ext
26890echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26891echo "${ECHO_T}$ac_header_preproc" >&6
26892
26893# So? What about this header?
5d7b7554 26894case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
ac1cb8d3 26895 yes:no: )
a848cd7e
SC
26896 { echo "$as_me:$LINENO: WARNING: windows.h: accepted by the compiler, rejected by the preprocessor!" >&5
26897echo "$as_me: WARNING: windows.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
26898 { echo "$as_me:$LINENO: WARNING: windows.h: proceeding with the compiler's result" >&5
26899echo "$as_me: WARNING: windows.h: proceeding with the compiler's result" >&2;}
26900 ac_header_preproc=yes
a848cd7e 26901 ;;
ac1cb8d3 26902 no:yes:* )
a848cd7e
SC
26903 { echo "$as_me:$LINENO: WARNING: windows.h: present but cannot be compiled" >&5
26904echo "$as_me: WARNING: windows.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
26905 { echo "$as_me:$LINENO: WARNING: windows.h: check for missing prerequisite headers?" >&5
26906echo "$as_me: WARNING: windows.h: check for missing prerequisite headers?" >&2;}
26907 { echo "$as_me:$LINENO: WARNING: windows.h: see the Autoconf documentation" >&5
26908echo "$as_me: WARNING: windows.h: see the Autoconf documentation" >&2;}
26909 { echo "$as_me:$LINENO: WARNING: windows.h: section \"Present But Cannot Be Compiled\"" >&5
26910echo "$as_me: WARNING: windows.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
26911 { echo "$as_me:$LINENO: WARNING: windows.h: proceeding with the preprocessor's result" >&5
26912echo "$as_me: WARNING: windows.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
26913 { echo "$as_me:$LINENO: WARNING: windows.h: in the future, the compiler will take precedence" >&5
26914echo "$as_me: WARNING: windows.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
26915 (
26916 cat <<\_ASBOX
ac1cb8d3
VS
26917## ----------------------------------------- ##
26918## Report this to wx-dev@lists.wxwidgets.org ##
26919## ----------------------------------------- ##
a848cd7e
SC
26920_ASBOX
26921 ) |
26922 sed "s/^/$as_me: WARNING: /" >&2
26923 ;;
26924esac
26925echo "$as_me:$LINENO: checking for windows.h" >&5
26926echo $ECHO_N "checking for windows.h... $ECHO_C" >&6
26927if test "${ac_cv_header_windows_h+set}" = set; then
26928 echo $ECHO_N "(cached) $ECHO_C" >&6
26929else
26930 ac_cv_header_windows_h=$ac_header_preproc
26931fi
26932echo "$as_me:$LINENO: result: $ac_cv_header_windows_h" >&5
26933echo "${ECHO_T}$ac_cv_header_windows_h" >&6
26934
26935fi
26936if test $ac_cv_header_windows_h = yes; then
26937 :
26938else
26939
26940 { { echo "$as_me:$LINENO: error: please set CFLAGS to contain the location of windows.h" >&5
26941echo "$as_me: error: please set CFLAGS to contain the location of windows.h" >&2;}
26942 { (exit 1); exit 1; }; }
26943
26944fi
26945
26946
26947
26948 LIBS="$LIBS -lwinspool -lwinmm -lshell32 -lcomctl32 -lcomdlg32 -lctl3d32 -ladvapi32 -lwsock32 -lgdi32"
26949
26950 if test "$wxUSE_ACCESSIBILITY" = "yes" ; then
26951 LIBS="$LIBS -loleacc"
26952 fi
26953
26954 case "${host}" in
26955 *-*-cygwin* )
26956 LIBS="$LIBS -lkernel32 -luser32"
a848cd7e
SC
26957 esac
26958
26959 if test "$wxUSE_ODBC" = "sys" ; then
26960 wxUSE_ODBC = "yes"
26961 fi
26962 if test "$wxUSE_ODBC" = "yes" ; then
26963 LIBS=" -lodbc32 -lole32 -loleaut32 $LIBS"
26964 cat >>confdefs.h <<\_ACEOF
26965#define wxUSE_ODBC 1
26966_ACEOF
26967
26968 fi
26969
370d2fd7 26970 RESFLAGS="--include-dir \$(top_srcdir)/include --include-dir \$(top_srcdir)/\$(program_dir) --define __WIN32__ --define __WIN95__ --define __GNUWIN32__"
a848cd7e
SC
26971 RESPROGRAMOBJ="\$(PROGRAM)_resources.o"
26972
004ee6da 26973 WXCONFIG_RESFLAGS="--define __WIN32__ --define __WIN95__ --define __GNUWIN32__"
370d2fd7 26974
a848cd7e
SC
26975 WIN32INSTALL=win32install
26976fi
26977
26978if test "$wxUSE_GUI" = "yes"; then
26979 USE_GUI=1
26980
26981 GUI_TK_LIBRARY=
26982
26983 WXGTK12=
26984 WXGTK127=
26985 WXGTK20=
26986 WXGPE=
26987
207bc66c
RN
26988 if test "$wxUSE_COCOA" = 1 ; then
26989 if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes"; then
26990 { echo "$as_me:$LINENO: WARNING: Printing not supported under wxCocoa yet, disabled" >&5
26991echo "$as_me: WARNING: Printing not supported under wxCocoa yet, disabled" >&2;}
26992 wxUSE_PRINTING_ARCHITECTURE=no
26993 fi
26994 if test "$wxUSE_DRAG_AND_DROP" = "yes"; then
26995 { echo "$as_me:$LINENO: WARNING: Drag and Drop not supported under wxCocoa yet, disabled" >&5
26996echo "$as_me: WARNING: Drag and Drop not supported under wxCocoa yet, disabled" >&2;}
26997 wxUSE_DRAG_AND_DROP=no
26998 fi
26999 if test "$wxUSE_DRAGIMAGE" = "yes"; then
27000 { echo "$as_me:$LINENO: WARNING: Drag Image and DandD not supported under wxCocoa yet, disabled" >&5
27001echo "$as_me: WARNING: Drag Image and DandD not supported under wxCocoa yet, disabled" >&2;}
27002 wxUSE_DRAGIMAGE=no
27003 fi
27004 fi
27005
a848cd7e
SC
27006 if test "$wxUSE_MSW" = 1 ; then
27007 TOOLKIT=MSW
27008 GUIDIST=MSW_DIST
27009
ceec2216 27010 case "${host}" in
a848cd7e
SC
27011 *-*-mingw32* )
27012 WXCONFIG_LDFLAGS_GUI="$LDFLAGS -Wl,--subsystem,windows -mwindows"
27013 esac
27014 fi
27015
27016 if test "$wxUSE_GTK" = 1; then
5d7b7554
VZ
27017 ac_ext=c
27018ac_cpp='$CPP $CPPFLAGS'
27019ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27020ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27021ac_compiler_gnu=$ac_cv_c_compiler_gnu
27022
27023
a848cd7e
SC
27024 echo "$as_me:$LINENO: checking for GTK+ version" >&5
27025echo $ECHO_N "checking for GTK+ version... $ECHO_C" >&6
27026
27027 gtk_version_cached=1
27028 if test "${wx_cv_lib_gtk+set}" = set; then
27029 echo $ECHO_N "(cached) $ECHO_C" >&6
27030else
27031
27032 gtk_version_cached=0
27033 echo "$as_me:$LINENO: result: " >&5
27034echo "${ECHO_T}" >&6
27035
27036 GTK_MODULES=
27037 if test "$wxUSE_THREADS" = "yes"; then
27038 GTK_MODULES=gthread
27039 fi
27040
f597b41c 27041 wx_cv_lib_gtk=
5001df0d
MW
27042 if test "x$wxGTK_VERSION" != "x1"
27043 then
27044 case "${host}" in
27045 *-*-solaris2* )
27046 if test "$wxUSE_THREADS" = "yes" -a "$GCC" = yes; then
5ff751d6 27047 enable_gtktest=no
5001df0d
MW
27048 fi
27049 esac
27050
a848cd7e
SC
27051 # Check whether --enable-gtktest or --disable-gtktest was given.
27052if test "${enable_gtktest+set}" = set; then
27053 enableval="$enable_gtktest"
27054
27055else
27056 enable_gtktest=yes
27057fi;
27058
27059 pkg_config_args=gtk+-2.0
27060 for module in . $GTK_MODULES
27061 do
27062 case "$module" in
27063 gthread)
27064 pkg_config_args="$pkg_config_args gthread-2.0"
27065 ;;
27066 esac
27067 done
27068
27069 no_gtk=""
27070
27071 # Extract the first word of "pkg-config", so it can be a program name with args.
27072set dummy pkg-config; ac_word=$2
27073echo "$as_me:$LINENO: checking for $ac_word" >&5
27074echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
27075if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
27076 echo $ECHO_N "(cached) $ECHO_C" >&6
27077else
27078 case $PKG_CONFIG in
27079 [\\/]* | ?:[\\/]*)
27080 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
27081 ;;
27082 *)
27083 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27084for as_dir in $PATH
27085do
27086 IFS=$as_save_IFS
27087 test -z "$as_dir" && as_dir=.
27088 for ac_exec_ext in '' $ac_executable_extensions; do
27089 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
27090 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
27091 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
27092 break 2
27093 fi
27094done
27095done
27096
27097 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
27098 ;;
27099esac
27100fi
27101PKG_CONFIG=$ac_cv_path_PKG_CONFIG
27102
27103if test -n "$PKG_CONFIG"; then
27104 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
27105echo "${ECHO_T}$PKG_CONFIG" >&6
27106else
27107 echo "$as_me:$LINENO: result: no" >&5
27108echo "${ECHO_T}no" >&6
27109fi
27110
27111
27112 if test x$PKG_CONFIG != xno ; then
27113 if pkg-config --atleast-pkgconfig-version 0.7 ; then
27114 :
27115 else
c2218763 27116 echo "*** pkg-config too old; version 0.7 or better required."
a848cd7e
SC
27117 no_gtk=yes
27118 PKG_CONFIG=no
27119 fi
27120 else
27121 no_gtk=yes
27122 fi
27123
27124 min_gtk_version=2.0.0
27125 echo "$as_me:$LINENO: checking for GTK+ - version >= $min_gtk_version" >&5
27126echo $ECHO_N "checking for GTK+ - version >= $min_gtk_version... $ECHO_C" >&6
27127
27128 if test x$PKG_CONFIG != xno ; then
27129 ## don't try to run the test against uninstalled libtool libs
27130 if $PKG_CONFIG --uninstalled $pkg_config_args; then
27131 echo "Will use uninstalled version of GTK+ found in PKG_CONFIG_PATH"
27132 enable_gtktest=no
27133 fi
27134
27135 if $PKG_CONFIG --atleast-version $min_gtk_version $pkg_config_args; then
27136 :
27137 else
27138 no_gtk=yes
27139 fi
27140 fi
27141
27142 if test x"$no_gtk" = x ; then
27143 GTK_CFLAGS=`$PKG_CONFIG $pkg_config_args --cflags`
27144 GTK_LIBS=`$PKG_CONFIG $pkg_config_args --libs`
27145 gtk_config_major_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
27146 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
27147 gtk_config_minor_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
27148 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
27149 gtk_config_micro_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
27150 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
27151 if test "x$enable_gtktest" = "xyes" ; then
27152 ac_save_CFLAGS="$CFLAGS"
27153 ac_save_LIBS="$LIBS"
27154 CFLAGS="$CFLAGS $GTK_CFLAGS"
27155 LIBS="$GTK_LIBS $LIBS"
27156 rm -f conf.gtktest
27157 if test "$cross_compiling" = yes; then
27158 echo $ac_n "cross compiling; assumed OK... $ac_c"
27159else
27160 cat >conftest.$ac_ext <<_ACEOF
27161/* confdefs.h. */
27162_ACEOF
27163cat confdefs.h >>conftest.$ac_ext
27164cat >>conftest.$ac_ext <<_ACEOF
27165/* end confdefs.h. */
27166
27167#include <gtk/gtk.h>
27168#include <stdio.h>
27169#include <stdlib.h>
27170
27171int
27172main ()
27173{
27174 int major, minor, micro;
27175 char *tmp_version;
27176
27177 system ("touch conf.gtktest");
27178
27179 /* HP/UX 9 (%@#!) writes to sscanf strings */
27180 tmp_version = g_strdup("$min_gtk_version");
27181 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
27182 printf("%s, bad version string\n", "$min_gtk_version");
27183 exit(1);
27184 }
27185
27186 if ((gtk_major_version != $gtk_config_major_version) ||
27187 (gtk_minor_version != $gtk_config_minor_version) ||
27188 (gtk_micro_version != $gtk_config_micro_version))
27189 {
27190 printf("\n*** 'pkg-config --modversion gtk+-2.0' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
27191 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
27192 gtk_major_version, gtk_minor_version, gtk_micro_version);
27193 printf ("*** was found! If pkg-config was correct, then it is best\n");
27194 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
27195 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
27196 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
27197 printf("*** required on your system.\n");
27198 printf("*** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH\n");
27199 printf("*** to point to the correct configuration files\n");
27200 }
27201 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
27202 (gtk_minor_version != GTK_MINOR_VERSION) ||
27203 (gtk_micro_version != GTK_MICRO_VERSION))
27204 {
27205 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
27206 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
27207 printf("*** library (version %d.%d.%d)\n",
27208 gtk_major_version, gtk_minor_version, gtk_micro_version);
27209 }
27210 else
27211 {
27212 if ((gtk_major_version > major) ||
27213 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
27214 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
27215 {
27216 return 0;
27217 }
27218 else
27219 {
27220 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
27221 gtk_major_version, gtk_minor_version, gtk_micro_version);
27222 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
27223 major, minor, micro);
27224 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
27225 printf("***\n");
27226 printf("*** If you have already installed a sufficiently new version, this error\n");
27227 printf("*** probably means that the wrong copy of the pkg-config shell script is\n");
27228 printf("*** being found. The easiest way to fix this is to remove the old version\n");
27229 printf("*** of GTK+, but you can also set the PKG_CONFIG environment to point to the\n");
27230 printf("*** correct copy of pkg-config. (In this case, you will have to\n");
27231 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
27232 printf("*** so that the correct libraries are found at run-time))\n");
27233 }
27234 }
27235 return 1;
27236}
27237
27238_ACEOF
27239rm -f conftest$ac_exeext
27240if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27241 (eval $ac_link) 2>&5
27242 ac_status=$?
27243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27244 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27245 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27246 (eval $ac_try) 2>&5
27247 ac_status=$?
27248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27249 (exit $ac_status); }; }; then
27250 :
27251else
27252 echo "$as_me: program exited with status $ac_status" >&5
27253echo "$as_me: failed program was:" >&5
27254sed 's/^/| /' conftest.$ac_ext >&5
27255
27256( exit $ac_status )
27257no_gtk=yes
27258fi
ac1cb8d3 27259rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
27260fi
27261 CFLAGS="$ac_save_CFLAGS"
27262 LIBS="$ac_save_LIBS"
27263 fi
27264 fi
27265 if test "x$no_gtk" = x ; then
27266 echo "$as_me:$LINENO: result: yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&5
27267echo "${ECHO_T}yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&6
27268 wx_cv_lib_gtk=2.0
27269 else
27270 echo "$as_me:$LINENO: result: no" >&5
27271echo "${ECHO_T}no" >&6
27272 if test "$PKG_CONFIG" = "no" ; then
27273 echo "*** A new enough version of pkg-config was not found."
27274 echo "*** See http://pkgconfig.sourceforge.net"
27275 else
27276 if test -f conf.gtktest ; then
27277 :
27278 else
27279 echo "*** Could not run GTK+ test program, checking why..."
27280 ac_save_CFLAGS="$CFLAGS"
27281 ac_save_LIBS="$LIBS"
27282 CFLAGS="$CFLAGS $GTK_CFLAGS"
27283 LIBS="$LIBS $GTK_LIBS"
27284 cat >conftest.$ac_ext <<_ACEOF
27285/* confdefs.h. */
27286_ACEOF
27287cat confdefs.h >>conftest.$ac_ext
27288cat >>conftest.$ac_ext <<_ACEOF
27289/* end confdefs.h. */
27290
27291#include <gtk/gtk.h>
27292#include <stdio.h>
27293
27294int
27295main ()
27296{
27297 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
27298 ;
27299 return 0;
27300}
27301_ACEOF
27302rm -f conftest.$ac_objext conftest$ac_exeext
27303if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 27304 (eval $ac_link) 2>conftest.er1
a848cd7e 27305 ac_status=$?
ac1cb8d3
VS
27306 grep -v '^ *+' conftest.er1 >conftest.err
27307 rm -f conftest.er1
27308 cat conftest.err >&5
a848cd7e
SC
27309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27310 (exit $ac_status); } &&
3f60522a
JS
27311 { ac_try='test -z "$ac_c_werror_flag"
27312 || test ! -s conftest.err'
ac1cb8d3
VS
27313 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27314 (eval $ac_try) 2>&5
27315 ac_status=$?
27316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27317 (exit $ac_status); }; } &&
27318 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
27319 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27320 (eval $ac_try) 2>&5
27321 ac_status=$?
27322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27323 (exit $ac_status); }; }; then
27324 echo "*** The test program compiled, but did not run. This usually means"
27325 echo "*** that the run-time linker is not finding GTK+ or finding the wrong"
27326 echo "*** version of GTK+. If it is not finding GTK+, you'll need to set your"
27327 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
27328 echo "*** to the installed location Also, make sure you have run ldconfig if that"
27329 echo "*** is required on your system"
27330 echo "***"
27331 echo "*** If you have an old version installed, it is best to remove it, although"
27332 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
27333else
27334 echo "$as_me: failed program was:" >&5
27335sed 's/^/| /' conftest.$ac_ext >&5
27336
27337 echo "*** The test program failed to compile or link. See the file config.log for the"
27338 echo "*** exact error that occured. This usually means GTK+ is incorrectly installed."
27339fi
ac1cb8d3
VS
27340rm -f conftest.err conftest.$ac_objext \
27341 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
27342 CFLAGS="$ac_save_CFLAGS"
27343 LIBS="$ac_save_LIBS"
27344 fi
27345 fi
27346 GTK_CFLAGS=""
27347 GTK_LIBS=""
27348 :
27349 fi
27350
27351
27352 rm -f conf.gtktest
27353
5001df0d
MW
27354
27355 case "${host}" in
27356 *-*-solaris2* )
27357 if test "$wxUSE_THREADS" = "yes" -a "$GCC" = yes; then
27358 GTK_CFLAGS=`echo $GTK_CFLAGS | sed 's/-mt//'`
27359 GTK_LIBS=`echo $GTK_LIBS | sed 's/-mt//'`
27360 fi
27361 if test "$wxUSE_SHARED" != "yes"; then
27362 GTK_LIBS="$GTK_LIBS -lX11"
27363 fi
27364 esac
f597b41c
MW
27365 fi
27366
f34ca037
MW
27367 if test -z "$wx_cv_lib_gtk"; then
27368 if test "x$wxGTK_VERSION" = "x1" -o "x$wxGTK_VERSION" = "xany" ; then
a848cd7e
SC
27369
27370# Check whether --with-gtk-prefix or --without-gtk-prefix was given.
27371if test "${with_gtk_prefix+set}" = set; then
27372 withval="$with_gtk_prefix"
27373 gtk_config_prefix="$withval"
27374else
27375 gtk_config_prefix=""
27376fi;
27377
27378# Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
27379if test "${with_gtk_exec_prefix+set}" = set; then
27380 withval="$with_gtk_exec_prefix"
27381 gtk_config_exec_prefix="$withval"
27382else
27383 gtk_config_exec_prefix=""
27384fi;
27385# Check whether --enable-gtktest or --disable-gtktest was given.
27386if test "${enable_gtktest+set}" = set; then
27387 enableval="$enable_gtktest"
27388
27389else
27390 enable_gtktest=yes
27391fi;
27392
27393 for module in . $GTK_MODULES
27394 do
27395 case "$module" in
27396 gthread)
27397 gtk_config_args="$gtk_config_args gthread"
27398 ;;
27399 esac
27400 done
27401
27402 if test x$gtk_config_exec_prefix != x ; then
27403 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
27404 if test x${GTK_CONFIG+set} != xset ; then
27405 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
27406 fi
27407 fi
27408 if test x$gtk_config_prefix != x ; then
27409 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
27410 if test x${GTK_CONFIG+set} != xset ; then
27411 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
27412 fi
27413 fi
27414
27415 # Extract the first word of "gtk-config", so it can be a program name with args.
27416set dummy gtk-config; ac_word=$2
27417echo "$as_me:$LINENO: checking for $ac_word" >&5
27418echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
27419if test "${ac_cv_path_GTK_CONFIG+set}" = set; then
27420 echo $ECHO_N "(cached) $ECHO_C" >&6
27421else
27422 case $GTK_CONFIG in
27423 [\\/]* | ?:[\\/]*)
27424 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
27425 ;;
27426 *)
27427 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27428for as_dir in $PATH
27429do
27430 IFS=$as_save_IFS
27431 test -z "$as_dir" && as_dir=.
27432 for ac_exec_ext in '' $ac_executable_extensions; do
27433 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
27434 ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext"
27435 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
27436 break 2
27437 fi
27438done
27439done
27440
27441 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
27442 ;;
27443esac
27444fi
27445GTK_CONFIG=$ac_cv_path_GTK_CONFIG
27446
27447if test -n "$GTK_CONFIG"; then
27448 echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5
27449echo "${ECHO_T}$GTK_CONFIG" >&6
27450else
27451 echo "$as_me:$LINENO: result: no" >&5
27452echo "${ECHO_T}no" >&6
27453fi
27454
27455 min_gtk_version=1.2.7
27456 echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5
27457echo $ECHO_N "checking for GTK - version >= $min_gtk_version... $ECHO_C" >&6
27458 no_gtk=""
27459 if test "$GTK_CONFIG" = "no" ; then
27460 no_gtk=yes
27461 else
27462 GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
27463 GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
27464 gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
27465 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
27466 gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
27467 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
27468 gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
27469 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
27470 if test "x$enable_gtktest" = "xyes" ; then
27471 ac_save_CFLAGS="$CFLAGS"
27472 ac_save_LIBS="$LIBS"
27473 CFLAGS="$CFLAGS $GTK_CFLAGS"
27474 LIBS="$GTK_LIBS $LIBS"
27475 rm -f conf.gtktest
27476 if test "$cross_compiling" = yes; then
27477 echo $ac_n "cross compiling; assumed OK... $ac_c"
27478else
27479 cat >conftest.$ac_ext <<_ACEOF
27480/* confdefs.h. */
27481_ACEOF
27482cat confdefs.h >>conftest.$ac_ext
27483cat >>conftest.$ac_ext <<_ACEOF
27484/* end confdefs.h. */
27485
27486#include <gtk/gtk.h>
27487#include <stdio.h>
27488#include <stdlib.h>
27489
27490int
27491main ()
27492{
27493 int major, minor, micro;
27494 char *tmp_version;
27495
27496 system ("touch conf.gtktest");
27497
27498 /* HP/UX 9 (%@#!) writes to sscanf strings */
27499 tmp_version = g_strdup("$min_gtk_version");
27500 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
27501 printf("%s, bad version string\n", "$min_gtk_version");
27502 exit(1);
27503 }
27504
27505 if ((gtk_major_version != $gtk_config_major_version) ||
27506 (gtk_minor_version != $gtk_config_minor_version) ||
27507 (gtk_micro_version != $gtk_config_micro_version))
27508 {
27509 printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
27510 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
27511 gtk_major_version, gtk_minor_version, gtk_micro_version);
27512 printf ("*** was found! If gtk-config was correct, then it is best\n");
27513 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
27514 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
27515 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
27516 printf("*** required on your system.\n");
27517 printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
27518 printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
27519 printf("*** before re-running configure\n");
27520 }
27521#if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
27522 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
27523 (gtk_minor_version != GTK_MINOR_VERSION) ||
27524 (gtk_micro_version != GTK_MICRO_VERSION))
27525 {
27526 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
27527 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
27528 printf("*** library (version %d.%d.%d)\n",
27529 gtk_major_version, gtk_minor_version, gtk_micro_version);
27530 }
27531#endif /* defined (GTK_MAJOR_VERSION) ... */
27532 else
27533 {
27534 if ((gtk_major_version > major) ||
27535 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
27536 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
27537 {
27538 return 0;
27539 }
27540 else
27541 {
27542 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
27543 gtk_major_version, gtk_minor_version, gtk_micro_version);
27544 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
27545 major, minor, micro);
27546 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
27547 printf("***\n");
27548 printf("*** If you have already installed a sufficiently new version, this error\n");
27549 printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
27550 printf("*** being found. The easiest way to fix this is to remove the old version\n");
27551 printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
27552 printf("*** correct copy of gtk-config. (In this case, you will have to\n");
27553 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
27554 printf("*** so that the correct libraries are found at run-time))\n");
27555 }
27556 }
27557 return 1;
27558}
27559
27560_ACEOF
27561rm -f conftest$ac_exeext
27562if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27563 (eval $ac_link) 2>&5
27564 ac_status=$?
27565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27566 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27567 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27568 (eval $ac_try) 2>&5
27569 ac_status=$?
27570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27571 (exit $ac_status); }; }; then
27572 :
27573else
27574 echo "$as_me: program exited with status $ac_status" >&5
27575echo "$as_me: failed program was:" >&5
27576sed 's/^/| /' conftest.$ac_ext >&5
27577
27578( exit $ac_status )
27579no_gtk=yes
27580fi
ac1cb8d3 27581rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
27582fi
27583 CFLAGS="$ac_save_CFLAGS"
27584 LIBS="$ac_save_LIBS"
27585 fi
27586 fi
27587 if test "x$no_gtk" = x ; then
27588 echo "$as_me:$LINENO: result: yes" >&5
27589echo "${ECHO_T}yes" >&6
27590 wx_cv_lib_gtk=1.2.7
27591 else
27592 echo "$as_me:$LINENO: result: no" >&5
27593echo "${ECHO_T}no" >&6
27594 if test "$GTK_CONFIG" = "no" ; then
27595 echo "*** The gtk-config script installed by GTK could not be found"
27596 echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
27597 echo "*** your path, or set the GTK_CONFIG environment variable to the"
27598 echo "*** full path to gtk-config."
27599 else
27600 if test -f conf.gtktest ; then
27601 :
27602 else
27603 echo "*** Could not run GTK test program, checking why..."
27604 CFLAGS="$CFLAGS $GTK_CFLAGS"
27605 LIBS="$LIBS $GTK_LIBS"
27606 cat >conftest.$ac_ext <<_ACEOF
27607/* confdefs.h. */
27608_ACEOF
27609cat confdefs.h >>conftest.$ac_ext
27610cat >>conftest.$ac_ext <<_ACEOF
27611/* end confdefs.h. */
27612
27613#include <gtk/gtk.h>
27614#include <stdio.h>
27615
27616int
27617main ()
27618{
27619 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
27620 ;
27621 return 0;
27622}
27623_ACEOF
27624rm -f conftest.$ac_objext conftest$ac_exeext
27625if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 27626 (eval $ac_link) 2>conftest.er1
a848cd7e 27627 ac_status=$?
ac1cb8d3
VS
27628 grep -v '^ *+' conftest.er1 >conftest.err
27629 rm -f conftest.er1
27630 cat conftest.err >&5
a848cd7e
SC
27631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27632 (exit $ac_status); } &&
3f60522a
JS
27633 { ac_try='test -z "$ac_c_werror_flag"
27634 || test ! -s conftest.err'
ac1cb8d3
VS
27635 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27636 (eval $ac_try) 2>&5
27637 ac_status=$?
27638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27639 (exit $ac_status); }; } &&
27640 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
27641 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27642 (eval $ac_try) 2>&5
27643 ac_status=$?
27644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27645 (exit $ac_status); }; }; then
27646 echo "*** The test program compiled, but did not run. This usually means"
27647 echo "*** that the run-time linker is not finding GTK or finding the wrong"
27648 echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
27649 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
27650 echo "*** to the installed location Also, make sure you have run ldconfig if that"
27651 echo "*** is required on your system"
27652 echo "***"
27653 echo "*** If you have an old version installed, it is best to remove it, although"
27654 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
27655 echo "***"
27656 echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
27657 echo "*** came with the system with the command"
27658 echo "***"
27659 echo "*** rpm --erase --nodeps gtk gtk-devel"
27660else
27661 echo "$as_me: failed program was:" >&5
27662sed 's/^/| /' conftest.$ac_ext >&5
27663
27664 echo "*** The test program failed to compile or link. See the file config.log for the"
27665 echo "*** exact error that occured. This usually means GTK was incorrectly installed"
27666 echo "*** or that you have moved GTK since it was installed. In the latter case, you"
27667 echo "*** may want to edit the gtk-config script: $GTK_CONFIG"
27668fi
ac1cb8d3
VS
27669rm -f conftest.err conftest.$ac_objext \
27670 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
27671 CFLAGS="$ac_save_CFLAGS"
27672 LIBS="$ac_save_LIBS"
27673 fi
27674 fi
27675 GTK_CFLAGS=""
27676 GTK_LIBS=""
27677 :
27678 fi
27679
27680
27681 rm -f conf.gtktest
27682
27683
f34ca037 27684 if test -z "$wx_cv_lib_gtk"; then
a848cd7e
SC
27685
27686# Check whether --with-gtk-prefix or --without-gtk-prefix was given.
27687if test "${with_gtk_prefix+set}" = set; then
27688 withval="$with_gtk_prefix"
27689 gtk_config_prefix="$withval"
27690else
27691 gtk_config_prefix=""
27692fi;
27693
27694# Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
27695if test "${with_gtk_exec_prefix+set}" = set; then
27696 withval="$with_gtk_exec_prefix"
27697 gtk_config_exec_prefix="$withval"
27698else
27699 gtk_config_exec_prefix=""
27700fi;
27701# Check whether --enable-gtktest or --disable-gtktest was given.
27702if test "${enable_gtktest+set}" = set; then
27703 enableval="$enable_gtktest"
27704
27705else
27706 enable_gtktest=yes
27707fi;
27708
27709 for module in . $GTK_MODULES
27710 do
27711 case "$module" in
27712 gthread)
27713 gtk_config_args="$gtk_config_args gthread"
27714 ;;
27715 esac
27716 done
27717
27718 if test x$gtk_config_exec_prefix != x ; then
27719 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
27720 if test x${GTK_CONFIG+set} != xset ; then
27721 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
27722 fi
27723 fi
27724 if test x$gtk_config_prefix != x ; then
27725 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
27726 if test x${GTK_CONFIG+set} != xset ; then
27727 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
27728 fi
27729 fi
27730
27731 # Extract the first word of "gtk-config", so it can be a program name with args.
27732set dummy gtk-config; ac_word=$2
27733echo "$as_me:$LINENO: checking for $ac_word" >&5
27734echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
27735if test "${ac_cv_path_GTK_CONFIG+set}" = set; then
27736 echo $ECHO_N "(cached) $ECHO_C" >&6
27737else
27738 case $GTK_CONFIG in
27739 [\\/]* | ?:[\\/]*)
27740 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
27741 ;;
27742 *)
27743 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27744for as_dir in $PATH
27745do
27746 IFS=$as_save_IFS
27747 test -z "$as_dir" && as_dir=.
27748 for ac_exec_ext in '' $ac_executable_extensions; do
27749 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
27750 ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext"
27751 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
27752 break 2
27753 fi
27754done
27755done
27756
27757 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
27758 ;;
27759esac
27760fi
27761GTK_CONFIG=$ac_cv_path_GTK_CONFIG
27762
27763if test -n "$GTK_CONFIG"; then
27764 echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5
27765echo "${ECHO_T}$GTK_CONFIG" >&6
27766else
27767 echo "$as_me:$LINENO: result: no" >&5
27768echo "${ECHO_T}no" >&6
27769fi
27770
27771 min_gtk_version=1.2.3
27772 echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5
27773echo $ECHO_N "checking for GTK - version >= $min_gtk_version... $ECHO_C" >&6
27774 no_gtk=""
27775 if test "$GTK_CONFIG" = "no" ; then
27776 no_gtk=yes
27777 else
27778 GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
27779 GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
27780 gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
27781 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
27782 gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
27783 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
27784 gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
27785 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
27786 if test "x$enable_gtktest" = "xyes" ; then
27787 ac_save_CFLAGS="$CFLAGS"
27788 ac_save_LIBS="$LIBS"
27789 CFLAGS="$CFLAGS $GTK_CFLAGS"
27790 LIBS="$GTK_LIBS $LIBS"
27791 rm -f conf.gtktest
27792 if test "$cross_compiling" = yes; then
27793 echo $ac_n "cross compiling; assumed OK... $ac_c"
27794else
27795 cat >conftest.$ac_ext <<_ACEOF
27796/* confdefs.h. */
27797_ACEOF
27798cat confdefs.h >>conftest.$ac_ext
27799cat >>conftest.$ac_ext <<_ACEOF
27800/* end confdefs.h. */
27801
27802#include <gtk/gtk.h>
27803#include <stdio.h>
27804#include <stdlib.h>
27805
27806int
27807main ()
27808{
27809 int major, minor, micro;
27810 char *tmp_version;
27811
27812 system ("touch conf.gtktest");
27813
27814 /* HP/UX 9 (%@#!) writes to sscanf strings */
27815 tmp_version = g_strdup("$min_gtk_version");
27816 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
27817 printf("%s, bad version string\n", "$min_gtk_version");
27818 exit(1);
27819 }
27820
27821 if ((gtk_major_version != $gtk_config_major_version) ||
27822 (gtk_minor_version != $gtk_config_minor_version) ||
27823 (gtk_micro_version != $gtk_config_micro_version))
27824 {
27825 printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
27826 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
27827 gtk_major_version, gtk_minor_version, gtk_micro_version);
27828 printf ("*** was found! If gtk-config was correct, then it is best\n");
27829 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
27830 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
27831 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
27832 printf("*** required on your system.\n");
27833 printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
27834 printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
27835 printf("*** before re-running configure\n");
27836 }
27837#if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
27838 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
27839 (gtk_minor_version != GTK_MINOR_VERSION) ||
27840 (gtk_micro_version != GTK_MICRO_VERSION))
27841 {
27842 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
27843 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
27844 printf("*** library (version %d.%d.%d)\n",
27845 gtk_major_version, gtk_minor_version, gtk_micro_version);
27846 }
27847#endif /* defined (GTK_MAJOR_VERSION) ... */
27848 else
27849 {
27850 if ((gtk_major_version > major) ||
27851 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
27852 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
27853 {
27854 return 0;
27855 }
27856 else
27857 {
27858 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
27859 gtk_major_version, gtk_minor_version, gtk_micro_version);
27860 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
27861 major, minor, micro);
27862 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
27863 printf("***\n");
27864 printf("*** If you have already installed a sufficiently new version, this error\n");
27865 printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
27866 printf("*** being found. The easiest way to fix this is to remove the old version\n");
27867 printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
27868 printf("*** correct copy of gtk-config. (In this case, you will have to\n");
27869 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
27870 printf("*** so that the correct libraries are found at run-time))\n");
27871 }
27872 }
27873 return 1;
27874}
27875
27876_ACEOF
27877rm -f conftest$ac_exeext
27878if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27879 (eval $ac_link) 2>&5
27880 ac_status=$?
27881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27882 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27883 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27884 (eval $ac_try) 2>&5
27885 ac_status=$?
27886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27887 (exit $ac_status); }; }; then
27888 :
27889else
27890 echo "$as_me: program exited with status $ac_status" >&5
27891echo "$as_me: failed program was:" >&5
27892sed 's/^/| /' conftest.$ac_ext >&5
27893
27894( exit $ac_status )
27895no_gtk=yes
27896fi
ac1cb8d3 27897rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
27898fi
27899 CFLAGS="$ac_save_CFLAGS"
27900 LIBS="$ac_save_LIBS"
27901 fi
27902 fi
27903 if test "x$no_gtk" = x ; then
27904 echo "$as_me:$LINENO: result: yes" >&5
27905echo "${ECHO_T}yes" >&6
27906 wx_cv_lib_gtk=1.2.3
27907 else
27908 echo "$as_me:$LINENO: result: no" >&5
27909echo "${ECHO_T}no" >&6
27910 if test "$GTK_CONFIG" = "no" ; then
27911 echo "*** The gtk-config script installed by GTK could not be found"
27912 echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
27913 echo "*** your path, or set the GTK_CONFIG environment variable to the"
27914 echo "*** full path to gtk-config."
27915 else
27916 if test -f conf.gtktest ; then
27917 :
27918 else
27919 echo "*** Could not run GTK test program, checking why..."
27920 CFLAGS="$CFLAGS $GTK_CFLAGS"
27921 LIBS="$LIBS $GTK_LIBS"
27922 cat >conftest.$ac_ext <<_ACEOF
27923/* confdefs.h. */
27924_ACEOF
27925cat confdefs.h >>conftest.$ac_ext
27926cat >>conftest.$ac_ext <<_ACEOF
27927/* end confdefs.h. */
27928
27929#include <gtk/gtk.h>
27930#include <stdio.h>
27931
27932int
27933main ()
27934{
27935 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
27936 ;
27937 return 0;
27938}
27939_ACEOF
27940rm -f conftest.$ac_objext conftest$ac_exeext
27941if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 27942 (eval $ac_link) 2>conftest.er1
a848cd7e 27943 ac_status=$?
ac1cb8d3
VS
27944 grep -v '^ *+' conftest.er1 >conftest.err
27945 rm -f conftest.er1
27946 cat conftest.err >&5
a848cd7e
SC
27947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27948 (exit $ac_status); } &&
3f60522a
JS
27949 { ac_try='test -z "$ac_c_werror_flag"
27950 || test ! -s conftest.err'
ac1cb8d3
VS
27951 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27952 (eval $ac_try) 2>&5
27953 ac_status=$?
27954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27955 (exit $ac_status); }; } &&
27956 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
27957 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27958 (eval $ac_try) 2>&5
27959 ac_status=$?
27960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27961 (exit $ac_status); }; }; then
27962 echo "*** The test program compiled, but did not run. This usually means"
27963 echo "*** that the run-time linker is not finding GTK or finding the wrong"
27964 echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
27965 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
27966 echo "*** to the installed location Also, make sure you have run ldconfig if that"
27967 echo "*** is required on your system"
27968 echo "***"
27969 echo "*** If you have an old version installed, it is best to remove it, although"
27970 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
27971 echo "***"
27972 echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
27973 echo "*** came with the system with the command"
27974 echo "***"
27975 echo "*** rpm --erase --nodeps gtk gtk-devel"
27976else
27977 echo "$as_me: failed program was:" >&5
27978sed 's/^/| /' conftest.$ac_ext >&5
27979
27980 echo "*** The test program failed to compile or link. See the file config.log for the"
27981 echo "*** exact error that occured. This usually means GTK was incorrectly installed"
27982 echo "*** or that you have moved GTK since it was installed. In the latter case, you"
27983 echo "*** may want to edit the gtk-config script: $GTK_CONFIG"
27984fi
ac1cb8d3
VS
27985rm -f conftest.err conftest.$ac_objext \
27986 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
27987 CFLAGS="$ac_save_CFLAGS"
27988 LIBS="$ac_save_LIBS"
27989 fi
27990 fi
27991 GTK_CFLAGS=""
27992 GTK_LIBS=""
27993 :
27994 fi
27995
27996
27997 rm -f conf.gtktest
27998
f34ca037 27999 fi
a848cd7e
SC
28000 fi
28001 fi
28002
28003 if test -z "$wx_cv_lib_gtk"; then
28004 wx_cv_lib_gtk=none
28005 else
28006 wx_cv_cflags_gtk=$GTK_CFLAGS
d2822091 28007 wx_cv_libs_gtk=`echo $GTK_LIBS | sed -e 's/ -l[^ ]*cairo[^ ]*//g'`
a848cd7e
SC
28008 fi
28009
28010
28011fi
28012
28013
28014 if test "$gtk_version_cached" = 1; then
28015 echo "$as_me:$LINENO: result: $wx_cv_lib_gtk" >&5
28016echo "${ECHO_T}$wx_cv_lib_gtk" >&6
28017 fi
28018
28019 case "$wx_cv_lib_gtk" in
28020 2.0) WXGTK20=1
28021 TOOLKIT_VERSION=2
28022 ;;
28023 1.2.7) WXGTK127=1
28024 WXGTK12=1
28025 ;;
28026 1.2.3) WXGTK12=1
28027 ;;
28028 *) { { echo "$as_me:$LINENO: error:
f597b41c
MW
28029The development files for GTK+ were not found. For GTK+ 2, please
28030ensure that pkg-config is in the path and that gtk+-2.0.pc is
28031installed. For GTK+ 1.2 please check that gtk-config is in the path,
28032and that the version is 1.2.3 or above. Also check that the
28033libraries returned by 'pkg-config gtk+-2.0 --libs' or 'gtk-config
28034--libs' are in the LD_LIBRARY_PATH or equivalent.
a848cd7e
SC
28035 " >&5
28036echo "$as_me: error:
f597b41c
MW
28037The development files for GTK+ were not found. For GTK+ 2, please
28038ensure that pkg-config is in the path and that gtk+-2.0.pc is
28039installed. For GTK+ 1.2 please check that gtk-config is in the path,
28040and that the version is 1.2.3 or above. Also check that the
28041libraries returned by 'pkg-config gtk+-2.0 --libs' or 'gtk-config
28042--libs' are in the LD_LIBRARY_PATH or equivalent.
a848cd7e
SC
28043 " >&2;}
28044 { (exit 1); exit 1; }; }
28045 ;;
28046 esac
28047
28048 if test "$WXGTK20" = 1; then
6954625c 28049 save_CFLAGS="$CFLAGS"
304205f1 28050 save_LIBS="$LIBS"
6954625c 28051 CFLAGS="$wx_cv_cflags_gtk $CFLAGS"
abc736fd 28052 LIBS="$LIBS $wx_cv_libs_gtk"
304205f1 28053
d12aef51
VZ
28054 echo "$as_me:$LINENO: checking if gtk_icon_size_lookup is missing" >&5
28055echo $ECHO_N "checking if gtk_icon_size_lookup is missing... $ECHO_C" >&6
28056 cat >conftest.$ac_ext <<_ACEOF
304205f1
VS
28057/* confdefs.h. */
28058_ACEOF
28059cat confdefs.h >>conftest.$ac_ext
28060cat >>conftest.$ac_ext <<_ACEOF
28061/* end confdefs.h. */
304205f1 28062
d12aef51 28063 #include <gtk/gtk.h>
304205f1 28064
d12aef51
VZ
28065int
28066main ()
28067{
304205f1 28068
d12aef51 28069 void *f = gtk_icon_size_lookup;
abc736fd
MW
28070
28071 ;
28072 return 0;
28073}
28074_ACEOF
28075rm -f conftest.$ac_objext
28076if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28077 (eval $ac_compile) 2>conftest.er1
28078 ac_status=$?
28079 grep -v '^ *+' conftest.er1 >conftest.err
28080 rm -f conftest.er1
28081 cat conftest.err >&5
28082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28083 (exit $ac_status); } &&
3f60522a
JS
28084 { ac_try='test -z "$ac_c_werror_flag"
28085 || test ! -s conftest.err'
abc736fd
MW
28086 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28087 (eval $ac_try) 2>&5
28088 ac_status=$?
28089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28090 (exit $ac_status); }; } &&
28091 { ac_try='test -s conftest.$ac_objext'
28092 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28093 (eval $ac_try) 2>&5
28094 ac_status=$?
28095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28096 (exit $ac_status); }; }; then
28097
28098 echo "$as_me:$LINENO: result: no" >&5
28099echo "${ECHO_T}no" >&6
28100
28101else
28102 echo "$as_me: failed program was:" >&5
28103sed 's/^/| /' conftest.$ac_ext >&5
28104
28105
28106 cat >>confdefs.h <<\_ACEOF
28107#define NEED_GTK_ICON_SIZE_LOOKUP 1
28108_ACEOF
28109
28110 echo "$as_me:$LINENO: result: yes" >&5
28111echo "${ECHO_T}yes" >&6
28112
28113fi
28114rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28115
e9263684
VZ
28116 echo "$as_me:$LINENO: checking if GTK+ is version >= 2.6" >&5
28117echo $ECHO_N "checking if GTK+ is version >= 2.6... $ECHO_C" >&6
28118 cat >conftest.$ac_ext <<_ACEOF
28119/* confdefs.h. */
28120_ACEOF
28121cat confdefs.h >>conftest.$ac_ext
28122cat >>conftest.$ac_ext <<_ACEOF
28123/* end confdefs.h. */
28124
28125 #include <gtk/gtk.h>
28126
28127int
28128main ()
28129{
28130
28131 #if !GTK_CHECK_VERSION(2,6,0)
28132 Not GTK+ 2.6
28133 #endif
28134
28135 ;
28136 return 0;
28137}
28138_ACEOF
28139rm -f conftest.$ac_objext
28140if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28141 (eval $ac_compile) 2>conftest.er1
28142 ac_status=$?
28143 grep -v '^ *+' conftest.er1 >conftest.err
28144 rm -f conftest.er1
28145 cat conftest.err >&5
28146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28147 (exit $ac_status); } &&
3f60522a
JS
28148 { ac_try='test -z "$ac_c_werror_flag"
28149 || test ! -s conftest.err'
e9263684
VZ
28150 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28151 (eval $ac_try) 2>&5
28152 ac_status=$?
28153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28154 (exit $ac_status); }; } &&
28155 { ac_try='test -s conftest.$ac_objext'
28156 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28157 (eval $ac_try) 2>&5
28158 ac_status=$?
28159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28160 (exit $ac_status); }; }; then
28161
28162 cat >>confdefs.h <<\_ACEOF
28163#define __WXGTK26__ 1
28164_ACEOF
28165
28166 cat >>confdefs.h <<\_ACEOF
28167#define __WXGTK24__ 1
28168_ACEOF
28169
28170 echo "$as_me:$LINENO: result: yes" >&5
28171echo "${ECHO_T}yes" >&6
28172 ac_wxgtk26=1
28173
28174else
28175 echo "$as_me: failed program was:" >&5
28176sed 's/^/| /' conftest.$ac_ext >&5
28177
28178
28179 echo "$as_me:$LINENO: result: no" >&5
28180echo "${ECHO_T}no" >&6
28181 ac_wxgtk26=0
28182
28183fi
28184rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28185
28186 if test "$ac_wxgtk26" = 0; then
9755e73b
VS
28187 echo "$as_me:$LINENO: checking if GTK+ is version >= 2.4" >&5
28188echo $ECHO_N "checking if GTK+ is version >= 2.4... $ECHO_C" >&6
28189 cat >conftest.$ac_ext <<_ACEOF
28190/* confdefs.h. */
28191_ACEOF
28192cat confdefs.h >>conftest.$ac_ext
28193cat >>conftest.$ac_ext <<_ACEOF
28194/* end confdefs.h. */
28195
28196 #include <gtk/gtk.h>
28197
28198int
28199main ()
28200{
28201
28202 #if !GTK_CHECK_VERSION(2,4,0)
04e525a0 28203 Not GTK+ 2.4
9755e73b
VS
28204 #endif
28205
28206 ;
28207 return 0;
28208}
28209_ACEOF
28210rm -f conftest.$ac_objext
28211if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28212 (eval $ac_compile) 2>conftest.er1
28213 ac_status=$?
28214 grep -v '^ *+' conftest.er1 >conftest.err
28215 rm -f conftest.er1
28216 cat conftest.err >&5
28217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28218 (exit $ac_status); } &&
3f60522a
JS
28219 { ac_try='test -z "$ac_c_werror_flag"
28220 || test ! -s conftest.err'
9755e73b
VS
28221 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28222 (eval $ac_try) 2>&5
28223 ac_status=$?
28224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28225 (exit $ac_status); }; } &&
28226 { ac_try='test -s conftest.$ac_objext'
28227 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28228 (eval $ac_try) 2>&5
28229 ac_status=$?
28230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28231 (exit $ac_status); }; }; then
28232
28233 cat >>confdefs.h <<\_ACEOF
28234#define __WXGTK24__ 1
28235_ACEOF
28236
28237 echo "$as_me:$LINENO: result: yes" >&5
28238echo "${ECHO_T}yes" >&6
28239
28240else
28241 echo "$as_me: failed program was:" >&5
28242sed 's/^/| /' conftest.$ac_ext >&5
28243
28244
28245 echo "$as_me:$LINENO: result: no" >&5
28246echo "${ECHO_T}no" >&6
28247
28248fi
28249rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e9263684 28250 fi
9755e73b 28251
6954625c 28252 CFLAGS="$save_CFLAGS"
304205f1 28253 LIBS="$save_LIBS"
a848cd7e
SC
28254 else
28255 if test "$wxUSE_UNICODE" = "yes"; then
28256 { echo "$as_me:$LINENO: WARNING: Unicode configuration not supported with GTK+ 1.x" >&5
28257echo "$as_me: WARNING: Unicode configuration not supported with GTK+ 1.x" >&2;}
28258 wxUSE_UNICODE=no
28259 fi
28260 fi
28261
e56f4f9e
VZ
28262 ac_ext=cc
28263ac_cpp='$CXXCPP $CPPFLAGS'
28264ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28265ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28266ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28267
28268
a848cd7e
SC
28269 if test "$USE_DARWIN" != 1; then
28270
28271for ac_func in poll
28272do
28273as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28274echo "$as_me:$LINENO: checking for $ac_func" >&5
28275echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
28276if eval "test \"\${$as_ac_var+set}\" = set"; then
28277 echo $ECHO_N "(cached) $ECHO_C" >&6
28278else
28279 cat >conftest.$ac_ext <<_ACEOF
28280/* confdefs.h. */
28281_ACEOF
28282cat confdefs.h >>conftest.$ac_ext
28283cat >>conftest.$ac_ext <<_ACEOF
28284/* end confdefs.h. */
ac1cb8d3
VS
28285/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28286 For example, HP-UX 11i <limits.h> declares gettimeofday. */
28287#define $ac_func innocuous_$ac_func
28288
a848cd7e
SC
28289/* System header to define __stub macros and hopefully few prototypes,
28290 which can conflict with char $ac_func (); below.
28291 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28292 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 28293
a848cd7e
SC
28294#ifdef __STDC__
28295# include <limits.h>
28296#else
28297# include <assert.h>
28298#endif
ac1cb8d3
VS
28299
28300#undef $ac_func
28301
a848cd7e
SC
28302/* Override any gcc2 internal prototype to avoid an error. */
28303#ifdef __cplusplus
28304extern "C"
28305{
28306#endif
28307/* We use char because int might match the return type of a gcc2
28308 builtin and then its argument prototype would still apply. */
28309char $ac_func ();
28310/* The GNU C library defines this for functions which it implements
28311 to always fail with ENOSYS. Some functions are actually named
28312 something starting with __ and the normal name is an alias. */
28313#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
28314choke me
28315#else
28316char (*f) () = $ac_func;
28317#endif
28318#ifdef __cplusplus
28319}
28320#endif
28321
28322int
28323main ()
28324{
28325return f != $ac_func;
28326 ;
28327 return 0;
28328}
28329_ACEOF
28330rm -f conftest.$ac_objext conftest$ac_exeext
28331if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 28332 (eval $ac_link) 2>conftest.er1
a848cd7e 28333 ac_status=$?
ac1cb8d3
VS
28334 grep -v '^ *+' conftest.er1 >conftest.err
28335 rm -f conftest.er1
28336 cat conftest.err >&5
a848cd7e
SC
28337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28338 (exit $ac_status); } &&
3f60522a
JS
28339 { ac_try='test -z "$ac_cxx_werror_flag"
28340 || test ! -s conftest.err'
ac1cb8d3
VS
28341 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28342 (eval $ac_try) 2>&5
28343 ac_status=$?
28344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28345 (exit $ac_status); }; } &&
28346 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
28347 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28348 (eval $ac_try) 2>&5
28349 ac_status=$?
28350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28351 (exit $ac_status); }; }; then
28352 eval "$as_ac_var=yes"
28353else
28354 echo "$as_me: failed program was:" >&5
28355sed 's/^/| /' conftest.$ac_ext >&5
28356
28357eval "$as_ac_var=no"
28358fi
ac1cb8d3
VS
28359rm -f conftest.err conftest.$ac_objext \
28360 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
28361fi
28362echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28363echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28364if test `eval echo '${'$as_ac_var'}'` = yes; then
28365 cat >>confdefs.h <<_ACEOF
28366#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28367_ACEOF
28368
28369fi
28370done
28371
28372 fi
28373
28374 TOOLKIT_INCLUDE="$wx_cv_cflags_gtk"
28375 GUI_TK_LIBRARY="$wx_cv_libs_gtk $GUI_TK_LIBRARY"
28376
28377 AFMINSTALL=afminstall
28378 TOOLKIT=GTK
28379 GUIDIST=GTK_DIST
28380
28381 echo "$as_me:$LINENO: checking for gdk_im_open in -lgdk" >&5
28382echo $ECHO_N "checking for gdk_im_open in -lgdk... $ECHO_C" >&6
28383if test "${ac_cv_lib_gdk_gdk_im_open+set}" = set; then
28384 echo $ECHO_N "(cached) $ECHO_C" >&6
28385else
28386 ac_check_lib_save_LIBS=$LIBS
28387LIBS="-lgdk $LIBS"
28388cat >conftest.$ac_ext <<_ACEOF
28389/* confdefs.h. */
28390_ACEOF
28391cat confdefs.h >>conftest.$ac_ext
28392cat >>conftest.$ac_ext <<_ACEOF
28393/* end confdefs.h. */
28394
28395/* Override any gcc2 internal prototype to avoid an error. */
28396#ifdef __cplusplus
28397extern "C"
28398#endif
28399/* We use char because int might match the return type of a gcc2
28400 builtin and then its argument prototype would still apply. */
28401char gdk_im_open ();
28402int
28403main ()
28404{
28405gdk_im_open ();
28406 ;
28407 return 0;
28408}
28409_ACEOF
28410rm -f conftest.$ac_objext conftest$ac_exeext
28411if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 28412 (eval $ac_link) 2>conftest.er1
a848cd7e 28413 ac_status=$?
ac1cb8d3
VS
28414 grep -v '^ *+' conftest.er1 >conftest.err
28415 rm -f conftest.er1
28416 cat conftest.err >&5
a848cd7e
SC
28417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28418 (exit $ac_status); } &&
3f60522a
JS
28419 { ac_try='test -z "$ac_cxx_werror_flag"
28420 || test ! -s conftest.err'
ac1cb8d3
VS
28421 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28422 (eval $ac_try) 2>&5
28423 ac_status=$?
28424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28425 (exit $ac_status); }; } &&
28426 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
28427 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28428 (eval $ac_try) 2>&5
28429 ac_status=$?
28430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28431 (exit $ac_status); }; }; then
28432 ac_cv_lib_gdk_gdk_im_open=yes
28433else
28434 echo "$as_me: failed program was:" >&5
28435sed 's/^/| /' conftest.$ac_ext >&5
28436
28437ac_cv_lib_gdk_gdk_im_open=no
28438fi
ac1cb8d3
VS
28439rm -f conftest.err conftest.$ac_objext \
28440 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
28441LIBS=$ac_check_lib_save_LIBS
28442fi
28443echo "$as_me:$LINENO: result: $ac_cv_lib_gdk_gdk_im_open" >&5
28444echo "${ECHO_T}$ac_cv_lib_gdk_gdk_im_open" >&6
28445if test $ac_cv_lib_gdk_gdk_im_open = yes; then
28446 cat >>confdefs.h <<\_ACEOF
28447#define HAVE_XIM 1
28448_ACEOF
28449
28450fi
28451
28452
28453
28454 if test "$wxUSE_GPE" = "yes"; then
28455 echo "$as_me:$LINENO: checking for gpewidget library" >&5
28456echo $ECHO_N "checking for gpewidget library... $ECHO_C" >&6
28457
0ad5d837
VZ
28458 ac_find_libraries=
28459 for ac_dir in $SEARCH_LIB;
a848cd7e 28460 do
3eca31dc 28461 for ac_extension in a so sl dylib dll.a; do
a848cd7e
SC
28462 if test -f "$ac_dir/libgpewidget.$ac_extension"; then
28463 ac_find_libraries=$ac_dir
28464 break 2
28465 fi
28466 done
28467 done
28468
28469 if test "$ac_find_libraries" != "" ; then
28470
0ad5d837 28471 if test "$ac_find_libraries" = "default location"; then
a848cd7e
SC
28472 ac_path_to_link=""
28473 else
0ad5d837
VZ
28474 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
28475 result=$?
28476 if test $result = 0; then
28477 ac_path_to_link=""
28478 else
28479 ac_path_to_link=" -L$ac_find_libraries"
28480 fi
a848cd7e
SC
28481 fi
28482
28483 GUI_TK_LIBRARY="-L${prefix}/lib -lgpewidget $GUI_TK_LIBRARY"
28484 WXGPE=1
0ad5d837
VZ
28485 echo "$as_me:$LINENO: result: found in $ac_find_libraries" >&5
28486echo "${ECHO_T}found in $ac_find_libraries" >&6
a848cd7e
SC
28487 else
28488 echo "$as_me:$LINENO: result: not found" >&5
28489echo "${ECHO_T}not found" >&6
28490 fi
28491
28492 fi
28493 fi
28494
28495 if test "$wxUSE_MGL" = 1; then
28496 echo "$as_me:$LINENO: checking for SciTech MGL library" >&5
28497echo $ECHO_N "checking for SciTech MGL library... $ECHO_C" >&6
28498 if test "x$MGL_ROOT" = x ; then
28499 echo "$as_me:$LINENO: result: not found" >&5
28500echo "${ECHO_T}not found" >&6
28501 { { echo "$as_me:$LINENO: error: Cannot find MGL library. Make sure MGL_ROOT is set." >&5
28502echo "$as_me: error: Cannot find MGL library. Make sure MGL_ROOT is set." >&2;}
28503 { (exit 1); exit 1; }; }
28504 else
28505 echo "$as_me:$LINENO: result: $MGL_ROOT" >&5
28506echo "${ECHO_T}$MGL_ROOT" >&6
28507 fi
28508
28509 echo "$as_me:$LINENO: checking for libmgl location" >&5
28510echo $ECHO_N "checking for libmgl location... $ECHO_C" >&6
28511 case "${host}" in
28512 *-*-linux* )
28513 if test "x$wxUSE_SHARED" = xyes ; then
28514 mgl_os_candidates="linux/gcc/x86/so linux/gcc/x86/a linux/gcc/glibc.so linux/gcc/glibc"
28515 else
28516 mgl_os_candidates="linux/gcc/x86/a linux/gcc/x86/so linux/gcc/glibc linux/gcc/glibc.so"
28517 fi
28518 ;;
28519 *-pc-msdosdjgpp )
28520 mgl_os_candidates="dos32/dj2"
28521 ;;
28522 *)
28523 { { echo "$as_me:$LINENO: error: This system type ${host} is not yet supported by wxMGL." >&5
28524echo "$as_me: error: This system type ${host} is not yet supported by wxMGL." >&2;}
28525 { (exit 1); exit 1; }; }
28526 esac
28527
28528 mgl_lib_type=""
28529 mgl_os=""
28530
28531 for mgl_os_i in $mgl_os_candidates ; do
28532 if test "x$mgl_os" = x ; then
28533 if test "$wxUSE_DEBUG_FLAG" = yes ; then
28534 if test -f $MGL_ROOT/lib/debug/$mgl_os_i/libmgl.a -o \
28535 -f $MGL_ROOT/lib/debug/$mgl_os_i/libmgl.so; then
28536 mgl_lib_type=debug
28537 mgl_os=$mgl_os_i
28538 fi
28539 fi
28540 if test "x$mgl_lib_type" = x ; then
28541 if test -f $MGL_ROOT/lib/release/$mgl_os_i/libmgl.a -o \
28542 -f $MGL_ROOT/lib/release/$mgl_os_i/libmgl.so; then
28543 mgl_lib_type=release
28544 mgl_os=$mgl_os_i
28545 fi
28546 fi
28547 fi
28548 done
28549
28550 if test "x$mgl_os" = x ; then
28551 echo "$as_me:$LINENO: result: not found" >&5
28552echo "${ECHO_T}not found" >&6
28553 { { echo "$as_me:$LINENO: error: Cannot find MGL libraries, make sure they are compiled." >&5
28554echo "$as_me: error: Cannot find MGL libraries, make sure they are compiled." >&2;}
28555 { (exit 1); exit 1; }; }
28556 fi
28557 echo "$as_me:$LINENO: result: \"$MGL_ROOT/lib/$mgl_lib_type/$mgl_os\"" >&5
28558echo "${ECHO_T}\"$MGL_ROOT/lib/$mgl_lib_type/$mgl_os\"" >&6
28559
28560 wxUSE_UNIVERSAL="yes"
28561
28562 TOOLKIT_INCLUDE="-I$MGL_ROOT/include"
28563 GUI_TK_LIBRARY="-L$MGL_ROOT/lib/$mgl_lib_type/$mgl_os -lmgl -lmglcpp -lpm"
28564
28565 AFMINSTALL=afminstall
28566 TOOLKIT=MGL
28567 GUIDIST=MGL_DIST
28568 fi
28569
28570 if test "$wxUSE_MICROWIN" = 1; then
28571 echo "$as_me:$LINENO: checking for MicroWindows" >&5
28572echo $ECHO_N "checking for MicroWindows... $ECHO_C" >&6
28573 if test "x$MICROWINDOWS" = x ; then
28574 echo "$as_me:$LINENO: result: not found" >&5
28575echo "${ECHO_T}not found" >&6
28576 { { echo "$as_me:$LINENO: error: Cannot find MicroWindows library. Make sure MICROWINDOWS is set." >&5
28577echo "$as_me: error: Cannot find MicroWindows library. Make sure MICROWINDOWS is set." >&2;}
28578 { (exit 1); exit 1; }; }
28579 else
28580 echo "$as_me:$LINENO: result: $MICROWINDOWS" >&5
28581echo "${ECHO_T}$MICROWINDOWS" >&6
28582 fi
28583
28584 if test -f $MICROWINDOWS/lib/libmwin.a; then
28585 echo "$as_me:$LINENO: result: MicroWindows' libraries found." >&5
28586echo "${ECHO_T}MicroWindows' libraries found." >&6
28587 else
28588 { { echo "$as_me:$LINENO: error: Cannot find MicroWindows libraries, make sure they are compiled." >&5
28589echo "$as_me: error: Cannot find MicroWindows libraries, make sure they are compiled." >&2;}
28590 { (exit 1); exit 1; }; }
28591 fi
28592
28593 TOOLKIT_INCLUDE="-I$MICROWINDOWS/include"
28594 GUI_TK_LIBRARY="-L$MICROWINDOWS/lib -lmwin -lmwengine -mwfonts -mwdrivers -mwinlib"
28595
28596 wxUSE_UNIVERSAL="yes"
28597
28598 AFMINSTALL=afminstall
28599 TOOLKIT=MICROWIN
28600 GUIDIST=MICROWIN_DIST
28601
28602 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXMSW__ -D__WIN95__ -D__WIN32__ -DMWIN -DMICROWIN_NOCONTROLS -DMICROWIN_TODO=1"
28603 fi
28604
74b84332 28605 if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then
3f60522a 28606 echo "$as_me:$LINENO: checking for X" >&5
a848cd7e
SC
28607echo $ECHO_N "checking for X... $ECHO_C" >&6
28608
28609
28610# Check whether --with-x or --without-x was given.
28611if test "${with_x+set}" = set; then
28612 withval="$with_x"
28613
28614fi;
28615# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
28616if test "x$with_x" = xno; then
28617 # The user explicitly disabled X.
28618 have_x=disabled
28619else
28620 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
28621 # Both variables are already set.
28622 have_x=yes
28623 else
28624 if test "${ac_cv_have_x+set}" = set; then
28625 echo $ECHO_N "(cached) $ECHO_C" >&6
28626else
28627 # One or both of the vars are not set, and there is no cached value.
28628ac_x_includes=no ac_x_libraries=no
28629rm -fr conftest.dir
28630if mkdir conftest.dir; then
28631 cd conftest.dir
28632 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
28633 cat >Imakefile <<'_ACEOF'
28634acfindx:
28635 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
28636_ACEOF
28637 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
28638 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
28639 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
28640 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
28641 for ac_extension in a so sl; do
28642 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
ac1cb8d3
VS
28643 test -f $ac_im_libdir/libX11.$ac_extension; then
28644 ac_im_usrlibdir=$ac_im_libdir; break
a848cd7e
SC
28645 fi
28646 done
28647 # Screen out bogus values from the imake configuration. They are
28648 # bogus both because they are the default anyway, and because
28649 # using them would break gcc on systems where it needs fixed includes.
28650 case $ac_im_incroot in
28651 /usr/include) ;;
28652 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
28653 esac
28654 case $ac_im_usrlibdir in
28655 /usr/lib | /lib) ;;
28656 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
28657 esac
28658 fi
28659 cd ..
28660 rm -fr conftest.dir
28661fi
28662
28663# Standard set of common directories for X headers.
28664# Check X11 before X11Rn because it is often a symlink to the current release.
28665ac_x_header_dirs='
28666/usr/X11/include
28667/usr/X11R6/include
28668/usr/X11R5/include
28669/usr/X11R4/include
28670
28671/usr/include/X11
28672/usr/include/X11R6
28673/usr/include/X11R5
28674/usr/include/X11R4
28675
28676/usr/local/X11/include
28677/usr/local/X11R6/include
28678/usr/local/X11R5/include
28679/usr/local/X11R4/include
28680
28681/usr/local/include/X11
28682/usr/local/include/X11R6
28683/usr/local/include/X11R5
28684/usr/local/include/X11R4
28685
28686/usr/X386/include
28687/usr/x386/include
28688/usr/XFree86/include/X11
28689
28690/usr/include
28691/usr/local/include
28692/usr/unsupported/include
28693/usr/athena/include
28694/usr/local/x11r5/include
28695/usr/lpp/Xamples/include
28696
28697/usr/openwin/include
28698/usr/openwin/share/include'
28699
28700if test "$ac_x_includes" = no; then
3f60522a 28701 # Guess where to find include files, by looking for Intrinsic.h.
a848cd7e
SC
28702 # First, try using that file with no special directory specified.
28703 cat >conftest.$ac_ext <<_ACEOF
28704/* confdefs.h. */
28705_ACEOF
28706cat confdefs.h >>conftest.$ac_ext
28707cat >>conftest.$ac_ext <<_ACEOF
28708/* end confdefs.h. */
d25774ab 28709#include <X11/Intrinsic.h>
a848cd7e
SC
28710_ACEOF
28711if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
28712 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
28713 ac_status=$?
28714 grep -v '^ *+' conftest.er1 >conftest.err
28715 rm -f conftest.er1
28716 cat conftest.err >&5
28717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28718 (exit $ac_status); } >/dev/null; then
28719 if test -s conftest.err; then
5d7b7554
VZ
28720 ac_cpp_err=$ac_cxx_preproc_warn_flag
28721 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
28722 else
28723 ac_cpp_err=
28724 fi
28725else
28726 ac_cpp_err=yes
28727fi
28728if test -z "$ac_cpp_err"; then
28729 # We can compile using X headers with no special include directory.
28730ac_x_includes=
28731else
28732 echo "$as_me: failed program was:" >&5
28733sed 's/^/| /' conftest.$ac_ext >&5
28734
28735 for ac_dir in $ac_x_header_dirs; do
d25774ab 28736 if test -r "$ac_dir/X11/Intrinsic.h"; then
a848cd7e
SC
28737 ac_x_includes=$ac_dir
28738 break
28739 fi
28740done
28741fi
28742rm -f conftest.err conftest.$ac_ext
28743fi # $ac_x_includes = no
28744
28745if test "$ac_x_libraries" = no; then
28746 # Check for the libraries.
28747 # See if we find them without any special options.
28748 # Don't add to $LIBS permanently.
28749 ac_save_LIBS=$LIBS
d25774ab 28750 LIBS="-lXt $LIBS"
a848cd7e
SC
28751 cat >conftest.$ac_ext <<_ACEOF
28752/* confdefs.h. */
28753_ACEOF
28754cat confdefs.h >>conftest.$ac_ext
28755cat >>conftest.$ac_ext <<_ACEOF
28756/* end confdefs.h. */
d25774ab 28757#include <X11/Intrinsic.h>
a848cd7e
SC
28758int
28759main ()
28760{
d25774ab 28761XtMalloc (0)
a848cd7e
SC
28762 ;
28763 return 0;
28764}
28765_ACEOF
28766rm -f conftest.$ac_objext conftest$ac_exeext
28767if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 28768 (eval $ac_link) 2>conftest.er1
a848cd7e 28769 ac_status=$?
ac1cb8d3
VS
28770 grep -v '^ *+' conftest.er1 >conftest.err
28771 rm -f conftest.er1
28772 cat conftest.err >&5
a848cd7e
SC
28773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28774 (exit $ac_status); } &&
3f60522a
JS
28775 { ac_try='test -z "$ac_cxx_werror_flag"
28776 || test ! -s conftest.err'
ac1cb8d3
VS
28777 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28778 (eval $ac_try) 2>&5
28779 ac_status=$?
28780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28781 (exit $ac_status); }; } &&
28782 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
28783 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28784 (eval $ac_try) 2>&5
28785 ac_status=$?
28786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28787 (exit $ac_status); }; }; then
28788 LIBS=$ac_save_LIBS
28789# We can link X programs with no special library path.
28790ac_x_libraries=
28791else
28792 echo "$as_me: failed program was:" >&5
28793sed 's/^/| /' conftest.$ac_ext >&5
28794
28795LIBS=$ac_save_LIBS
28796for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
28797do
28798 # Don't even attempt the hair of trying to link an X program!
28799 for ac_extension in a so sl; do
d25774ab 28800 if test -r $ac_dir/libXt.$ac_extension; then
a848cd7e
SC
28801 ac_x_libraries=$ac_dir
28802 break 2
28803 fi
28804 done
28805done
28806fi
ac1cb8d3
VS
28807rm -f conftest.err conftest.$ac_objext \
28808 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
28809fi # $ac_x_libraries = no
28810
28811if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
28812 # Didn't find X anywhere. Cache the known absence of X.
28813 ac_cv_have_x="have_x=no"
28814else
28815 # Record where we found X for the cache.
28816 ac_cv_have_x="have_x=yes \
ac1cb8d3 28817 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
a848cd7e
SC
28818fi
28819fi
28820
28821 fi
28822 eval "$ac_cv_have_x"
28823fi # $with_x != no
28824
28825if test "$have_x" != yes; then
28826 echo "$as_me:$LINENO: result: $have_x" >&5
28827echo "${ECHO_T}$have_x" >&6
28828 no_x=yes
28829else
28830 # If each of the values was on the command line, it overrides each guess.
28831 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
28832 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
28833 # Update the cache value to reflect the command line values.
28834 ac_cv_have_x="have_x=yes \
28835 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
3f60522a
JS
28836 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
28837echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
a848cd7e
SC
28838fi
28839
28840if test "$no_x" = yes; then
28841 # Not all programs may use this symbol, but it does not hurt to define it.
28842
28843cat >>confdefs.h <<\_ACEOF
28844#define X_DISPLAY_MISSING 1
28845_ACEOF
28846
28847 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
28848else
28849 if test -n "$x_includes"; then
28850 X_CFLAGS="$X_CFLAGS -I$x_includes"
28851 fi
28852
28853 # It would also be nice to do this for all -L options, not just this one.
28854 if test -n "$x_libraries"; then
28855 X_LIBS="$X_LIBS -L$x_libraries"
28856 # For Solaris; some versions of Sun CC require a space after -R and
28857 # others require no space. Words are not sufficient . . . .
28858 case `(uname -sr) 2>/dev/null` in
28859 "SunOS 5"*)
28860 echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
28861echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
28862 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
28863 cat >conftest.$ac_ext <<_ACEOF
28864/* confdefs.h. */
28865_ACEOF
28866cat confdefs.h >>conftest.$ac_ext
28867cat >>conftest.$ac_ext <<_ACEOF
28868/* end confdefs.h. */
28869
28870int
28871main ()
28872{
28873
28874 ;
28875 return 0;
28876}
28877_ACEOF
28878rm -f conftest.$ac_objext conftest$ac_exeext
28879if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 28880 (eval $ac_link) 2>conftest.er1
a848cd7e 28881 ac_status=$?
ac1cb8d3
VS
28882 grep -v '^ *+' conftest.er1 >conftest.err
28883 rm -f conftest.er1
28884 cat conftest.err >&5
a848cd7e
SC
28885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28886 (exit $ac_status); } &&
3f60522a
JS
28887 { ac_try='test -z "$ac_cxx_werror_flag"
28888 || test ! -s conftest.err'
ac1cb8d3
VS
28889 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28890 (eval $ac_try) 2>&5
28891 ac_status=$?
28892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28893 (exit $ac_status); }; } &&
28894 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
28895 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28896 (eval $ac_try) 2>&5
28897 ac_status=$?
28898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28899 (exit $ac_status); }; }; then
28900 ac_R_nospace=yes
28901else
28902 echo "$as_me: failed program was:" >&5
28903sed 's/^/| /' conftest.$ac_ext >&5
28904
28905ac_R_nospace=no
28906fi
ac1cb8d3
VS
28907rm -f conftest.err conftest.$ac_objext \
28908 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
28909 if test $ac_R_nospace = yes; then
28910 echo "$as_me:$LINENO: result: no" >&5
28911echo "${ECHO_T}no" >&6
28912 X_LIBS="$X_LIBS -R$x_libraries"
28913 else
28914 LIBS="$ac_xsave_LIBS -R $x_libraries"
28915 cat >conftest.$ac_ext <<_ACEOF
28916/* confdefs.h. */
28917_ACEOF
28918cat confdefs.h >>conftest.$ac_ext
28919cat >>conftest.$ac_ext <<_ACEOF
28920/* end confdefs.h. */
28921
28922int
28923main ()
28924{
28925
28926 ;
28927 return 0;
28928}
28929_ACEOF
28930rm -f conftest.$ac_objext conftest$ac_exeext
28931if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 28932 (eval $ac_link) 2>conftest.er1
a848cd7e 28933 ac_status=$?
ac1cb8d3
VS
28934 grep -v '^ *+' conftest.er1 >conftest.err
28935 rm -f conftest.er1
28936 cat conftest.err >&5
a848cd7e
SC
28937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28938 (exit $ac_status); } &&
3f60522a
JS
28939 { ac_try='test -z "$ac_cxx_werror_flag"
28940 || test ! -s conftest.err'
ac1cb8d3
VS
28941 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28942 (eval $ac_try) 2>&5
28943 ac_status=$?
28944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28945 (exit $ac_status); }; } &&
28946 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
28947 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28948 (eval $ac_try) 2>&5
28949 ac_status=$?
28950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28951 (exit $ac_status); }; }; then
28952 ac_R_space=yes
28953else
28954 echo "$as_me: failed program was:" >&5
28955sed 's/^/| /' conftest.$ac_ext >&5
28956
28957ac_R_space=no
28958fi
ac1cb8d3
VS
28959rm -f conftest.err conftest.$ac_objext \
28960 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
28961 if test $ac_R_space = yes; then
28962 echo "$as_me:$LINENO: result: yes" >&5
28963echo "${ECHO_T}yes" >&6
28964 X_LIBS="$X_LIBS -R $x_libraries"
28965 else
28966 echo "$as_me:$LINENO: result: neither works" >&5
28967echo "${ECHO_T}neither works" >&6
28968 fi
28969 fi
28970 LIBS=$ac_xsave_LIBS
28971 esac
28972 fi
28973
28974 # Check for system-dependent libraries X programs must link with.
28975 # Do this before checking for the system-independent R6 libraries
28976 # (-lICE), since we may need -lsocket or whatever for X linking.
28977
28978 if test "$ISC" = yes; then
28979 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
28980 else
28981 # Martyn Johnson says this is needed for Ultrix, if the X
28982 # libraries were built with DECnet support. And Karl Berry says
28983 # the Alpha needs dnet_stub (dnet does not exist).
28984 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
28985 cat >conftest.$ac_ext <<_ACEOF
28986/* confdefs.h. */
28987_ACEOF
28988cat confdefs.h >>conftest.$ac_ext
28989cat >>conftest.$ac_ext <<_ACEOF
28990/* end confdefs.h. */
28991
28992/* Override any gcc2 internal prototype to avoid an error. */
28993#ifdef __cplusplus
28994extern "C"
28995#endif
28996/* We use char because int might match the return type of a gcc2
28997 builtin and then its argument prototype would still apply. */
28998char XOpenDisplay ();
28999int
29000main ()
29001{
29002XOpenDisplay ();
29003 ;
29004 return 0;
29005}
29006_ACEOF
29007rm -f conftest.$ac_objext conftest$ac_exeext
29008if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 29009 (eval $ac_link) 2>conftest.er1
a848cd7e 29010 ac_status=$?
ac1cb8d3
VS
29011 grep -v '^ *+' conftest.er1 >conftest.err
29012 rm -f conftest.er1
29013 cat conftest.err >&5
a848cd7e
SC
29014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29015 (exit $ac_status); } &&
3f60522a
JS
29016 { ac_try='test -z "$ac_cxx_werror_flag"
29017 || test ! -s conftest.err'
ac1cb8d3
VS
29018 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29019 (eval $ac_try) 2>&5
29020 ac_status=$?
29021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29022 (exit $ac_status); }; } &&
29023 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
29024 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29025 (eval $ac_try) 2>&5
29026 ac_status=$?
29027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29028 (exit $ac_status); }; }; then
29029 :
29030else
29031 echo "$as_me: failed program was:" >&5
29032sed 's/^/| /' conftest.$ac_ext >&5
29033
29034echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
29035echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
29036if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
29037 echo $ECHO_N "(cached) $ECHO_C" >&6
29038else
29039 ac_check_lib_save_LIBS=$LIBS
29040LIBS="-ldnet $LIBS"
29041cat >conftest.$ac_ext <<_ACEOF
29042/* confdefs.h. */
29043_ACEOF
29044cat confdefs.h >>conftest.$ac_ext
29045cat >>conftest.$ac_ext <<_ACEOF
29046/* end confdefs.h. */
29047
29048/* Override any gcc2 internal prototype to avoid an error. */
29049#ifdef __cplusplus
29050extern "C"
29051#endif
29052/* We use char because int might match the return type of a gcc2
29053 builtin and then its argument prototype would still apply. */
29054char dnet_ntoa ();
29055int
29056main ()
29057{
29058dnet_ntoa ();
29059 ;
29060 return 0;
29061}
29062_ACEOF
29063rm -f conftest.$ac_objext conftest$ac_exeext
29064if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 29065 (eval $ac_link) 2>conftest.er1
a848cd7e 29066 ac_status=$?
ac1cb8d3
VS
29067 grep -v '^ *+' conftest.er1 >conftest.err
29068 rm -f conftest.er1
29069 cat conftest.err >&5
a848cd7e
SC
29070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29071 (exit $ac_status); } &&
3f60522a
JS
29072 { ac_try='test -z "$ac_cxx_werror_flag"
29073 || test ! -s conftest.err'
ac1cb8d3
VS
29074 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29075 (eval $ac_try) 2>&5
29076 ac_status=$?
29077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29078 (exit $ac_status); }; } &&
29079 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
29080 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29081 (eval $ac_try) 2>&5
29082 ac_status=$?
29083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29084 (exit $ac_status); }; }; then
29085 ac_cv_lib_dnet_dnet_ntoa=yes
29086else
29087 echo "$as_me: failed program was:" >&5
29088sed 's/^/| /' conftest.$ac_ext >&5
29089
29090ac_cv_lib_dnet_dnet_ntoa=no
29091fi
ac1cb8d3
VS
29092rm -f conftest.err conftest.$ac_objext \
29093 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
29094LIBS=$ac_check_lib_save_LIBS
29095fi
29096echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
29097echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
29098if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
29099 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
29100fi
29101
29102 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
29103 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
29104echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
29105if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
29106 echo $ECHO_N "(cached) $ECHO_C" >&6
29107else
29108 ac_check_lib_save_LIBS=$LIBS
29109LIBS="-ldnet_stub $LIBS"
29110cat >conftest.$ac_ext <<_ACEOF
29111/* confdefs.h. */
29112_ACEOF
29113cat confdefs.h >>conftest.$ac_ext
29114cat >>conftest.$ac_ext <<_ACEOF
29115/* end confdefs.h. */
29116
29117/* Override any gcc2 internal prototype to avoid an error. */
29118#ifdef __cplusplus
29119extern "C"
29120#endif
29121/* We use char because int might match the return type of a gcc2
29122 builtin and then its argument prototype would still apply. */
29123char dnet_ntoa ();
29124int
29125main ()
29126{
29127dnet_ntoa ();
29128 ;
29129 return 0;
29130}
29131_ACEOF
29132rm -f conftest.$ac_objext conftest$ac_exeext
29133if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 29134 (eval $ac_link) 2>conftest.er1
a848cd7e 29135 ac_status=$?
ac1cb8d3
VS
29136 grep -v '^ *+' conftest.er1 >conftest.err
29137 rm -f conftest.er1
29138 cat conftest.err >&5
a848cd7e
SC
29139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29140 (exit $ac_status); } &&
3f60522a
JS
29141 { ac_try='test -z "$ac_cxx_werror_flag"
29142 || test ! -s conftest.err'
ac1cb8d3
VS
29143 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29144 (eval $ac_try) 2>&5
29145 ac_status=$?
29146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29147 (exit $ac_status); }; } &&
29148 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
29149 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29150 (eval $ac_try) 2>&5
29151 ac_status=$?
29152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29153 (exit $ac_status); }; }; then
29154 ac_cv_lib_dnet_stub_dnet_ntoa=yes
29155else
29156 echo "$as_me: failed program was:" >&5
29157sed 's/^/| /' conftest.$ac_ext >&5
29158
29159ac_cv_lib_dnet_stub_dnet_ntoa=no
29160fi
ac1cb8d3
VS
29161rm -f conftest.err conftest.$ac_objext \
29162 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
29163LIBS=$ac_check_lib_save_LIBS
29164fi
29165echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
29166echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
29167if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
29168 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
29169fi
29170
29171 fi
29172fi
ac1cb8d3
VS
29173rm -f conftest.err conftest.$ac_objext \
29174 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
29175 LIBS="$ac_xsave_LIBS"
29176
29177 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
29178 # to get the SysV transport functions.
29179 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
29180 # needs -lnsl.
29181 # The nsl library prevents programs from opening the X display
29182 # on Irix 5.2, according to T.E. Dickey.
29183 # The functions gethostbyname, getservbyname, and inet_addr are
29184 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
29185 echo "$as_me:$LINENO: checking for gethostbyname" >&5
29186echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
29187if test "${ac_cv_func_gethostbyname+set}" = set; then
29188 echo $ECHO_N "(cached) $ECHO_C" >&6
29189else
29190 cat >conftest.$ac_ext <<_ACEOF
29191/* confdefs.h. */
29192_ACEOF
29193cat confdefs.h >>conftest.$ac_ext
29194cat >>conftest.$ac_ext <<_ACEOF
29195/* end confdefs.h. */
ac1cb8d3
VS
29196/* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
29197 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29198#define gethostbyname innocuous_gethostbyname
29199
a848cd7e
SC
29200/* System header to define __stub macros and hopefully few prototypes,
29201 which can conflict with char gethostbyname (); below.
29202 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29203 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 29204
a848cd7e
SC
29205#ifdef __STDC__
29206# include <limits.h>
29207#else
29208# include <assert.h>
29209#endif
ac1cb8d3
VS
29210
29211#undef gethostbyname
29212
a848cd7e
SC
29213/* Override any gcc2 internal prototype to avoid an error. */
29214#ifdef __cplusplus
29215extern "C"
29216{
29217#endif
29218/* We use char because int might match the return type of a gcc2
29219 builtin and then its argument prototype would still apply. */
29220char gethostbyname ();
29221/* The GNU C library defines this for functions which it implements
29222 to always fail with ENOSYS. Some functions are actually named
29223 something starting with __ and the normal name is an alias. */
29224#if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
29225choke me
29226#else
29227char (*f) () = gethostbyname;
29228#endif
29229#ifdef __cplusplus
29230}
29231#endif
29232
29233int
29234main ()
29235{
29236return f != gethostbyname;
29237 ;
29238 return 0;
29239}
29240_ACEOF
29241rm -f conftest.$ac_objext conftest$ac_exeext
29242if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 29243 (eval $ac_link) 2>conftest.er1
a848cd7e 29244 ac_status=$?
ac1cb8d3
VS
29245 grep -v '^ *+' conftest.er1 >conftest.err
29246 rm -f conftest.er1
29247 cat conftest.err >&5
a848cd7e
SC
29248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29249 (exit $ac_status); } &&
3f60522a
JS
29250 { ac_try='test -z "$ac_cxx_werror_flag"
29251 || test ! -s conftest.err'
ac1cb8d3
VS
29252 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29253 (eval $ac_try) 2>&5
29254 ac_status=$?
29255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29256 (exit $ac_status); }; } &&
29257 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
29258 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29259 (eval $ac_try) 2>&5
29260 ac_status=$?
29261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29262 (exit $ac_status); }; }; then
29263 ac_cv_func_gethostbyname=yes
29264else
29265 echo "$as_me: failed program was:" >&5
29266sed 's/^/| /' conftest.$ac_ext >&5
29267
29268ac_cv_func_gethostbyname=no
29269fi
ac1cb8d3
VS
29270rm -f conftest.err conftest.$ac_objext \
29271 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
29272fi
29273echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
29274echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
29275
29276 if test $ac_cv_func_gethostbyname = no; then
29277 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
29278echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
29279if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
29280 echo $ECHO_N "(cached) $ECHO_C" >&6
29281else
29282 ac_check_lib_save_LIBS=$LIBS
29283LIBS="-lnsl $LIBS"
29284cat >conftest.$ac_ext <<_ACEOF
29285/* confdefs.h. */
29286_ACEOF
29287cat confdefs.h >>conftest.$ac_ext
29288cat >>conftest.$ac_ext <<_ACEOF
29289/* end confdefs.h. */
29290
29291/* Override any gcc2 internal prototype to avoid an error. */
29292#ifdef __cplusplus
29293extern "C"
29294#endif
29295/* We use char because int might match the return type of a gcc2
29296 builtin and then its argument prototype would still apply. */
29297char gethostbyname ();
29298int
29299main ()
29300{
29301gethostbyname ();
29302 ;
29303 return 0;
29304}
29305_ACEOF
29306rm -f conftest.$ac_objext conftest$ac_exeext
29307if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3
VS
29308 (eval $ac_link) 2>conftest.er1
29309 ac_status=$?
29310 grep -v '^ *+' conftest.er1 >conftest.err
29311 rm -f conftest.er1
29312 cat conftest.err >&5
29313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29314 (exit $ac_status); } &&
3f60522a
JS
29315 { ac_try='test -z "$ac_cxx_werror_flag"
29316 || test ! -s conftest.err'
ac1cb8d3
VS
29317 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29318 (eval $ac_try) 2>&5
29319 ac_status=$?
29320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29321 (exit $ac_status); }; } &&
29322 { ac_try='test -s conftest$ac_exeext'
29323 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29324 (eval $ac_try) 2>&5
29325 ac_status=$?
29326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29327 (exit $ac_status); }; }; then
29328 ac_cv_lib_nsl_gethostbyname=yes
29329else
29330 echo "$as_me: failed program was:" >&5
29331sed 's/^/| /' conftest.$ac_ext >&5
29332
29333ac_cv_lib_nsl_gethostbyname=no
29334fi
29335rm -f conftest.err conftest.$ac_objext \
29336 conftest$ac_exeext conftest.$ac_ext
29337LIBS=$ac_check_lib_save_LIBS
29338fi
29339echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
29340echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
29341if test $ac_cv_lib_nsl_gethostbyname = yes; then
29342 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
29343fi
29344
29345 if test $ac_cv_lib_nsl_gethostbyname = no; then
29346 echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
29347echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
29348if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
29349 echo $ECHO_N "(cached) $ECHO_C" >&6
29350else
29351 ac_check_lib_save_LIBS=$LIBS
29352LIBS="-lbsd $LIBS"
29353cat >conftest.$ac_ext <<_ACEOF
29354/* confdefs.h. */
29355_ACEOF
29356cat confdefs.h >>conftest.$ac_ext
29357cat >>conftest.$ac_ext <<_ACEOF
29358/* end confdefs.h. */
29359
29360/* Override any gcc2 internal prototype to avoid an error. */
29361#ifdef __cplusplus
29362extern "C"
29363#endif
29364/* We use char because int might match the return type of a gcc2
29365 builtin and then its argument prototype would still apply. */
29366char gethostbyname ();
29367int
29368main ()
29369{
29370gethostbyname ();
29371 ;
29372 return 0;
29373}
29374_ACEOF
29375rm -f conftest.$ac_objext conftest$ac_exeext
29376if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29377 (eval $ac_link) 2>conftest.er1
a848cd7e 29378 ac_status=$?
ac1cb8d3
VS
29379 grep -v '^ *+' conftest.er1 >conftest.err
29380 rm -f conftest.er1
29381 cat conftest.err >&5
a848cd7e
SC
29382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29383 (exit $ac_status); } &&
3f60522a
JS
29384 { ac_try='test -z "$ac_cxx_werror_flag"
29385 || test ! -s conftest.err'
a848cd7e
SC
29386 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29387 (eval $ac_try) 2>&5
29388 ac_status=$?
29389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
ac1cb8d3
VS
29390 (exit $ac_status); }; } &&
29391 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
29392 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29393 (eval $ac_try) 2>&5
29394 ac_status=$?
29395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29396 (exit $ac_status); }; }; then
29397 ac_cv_lib_bsd_gethostbyname=yes
29398else
29399 echo "$as_me: failed program was:" >&5
29400sed 's/^/| /' conftest.$ac_ext >&5
29401
29402ac_cv_lib_bsd_gethostbyname=no
29403fi
ac1cb8d3
VS
29404rm -f conftest.err conftest.$ac_objext \
29405 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
29406LIBS=$ac_check_lib_save_LIBS
29407fi
29408echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
29409echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
29410if test $ac_cv_lib_bsd_gethostbyname = yes; then
29411 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
29412fi
29413
29414 fi
29415 fi
29416
29417 # lieder@skyler.mavd.honeywell.com says without -lsocket,
29418 # socket/setsockopt and other routines are undefined under SCO ODT
29419 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
29420 # on later versions), says Simon Leinen: it contains gethostby*
29421 # variants that don't use the name server (or something). -lsocket
29422 # must be given before -lnsl if both are needed. We assume that
29423 # if connect needs -lnsl, so does gethostbyname.
29424 echo "$as_me:$LINENO: checking for connect" >&5
29425echo $ECHO_N "checking for connect... $ECHO_C" >&6
29426if test "${ac_cv_func_connect+set}" = set; then
29427 echo $ECHO_N "(cached) $ECHO_C" >&6
29428else
29429 cat >conftest.$ac_ext <<_ACEOF
29430/* confdefs.h. */
29431_ACEOF
29432cat confdefs.h >>conftest.$ac_ext
29433cat >>conftest.$ac_ext <<_ACEOF
29434/* end confdefs.h. */
ac1cb8d3
VS
29435/* Define connect to an innocuous variant, in case <limits.h> declares connect.
29436 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29437#define connect innocuous_connect
29438
a848cd7e
SC
29439/* System header to define __stub macros and hopefully few prototypes,
29440 which can conflict with char connect (); below.
29441 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29442 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 29443
a848cd7e
SC
29444#ifdef __STDC__
29445# include <limits.h>
29446#else
29447# include <assert.h>
29448#endif
ac1cb8d3
VS
29449
29450#undef connect
29451
a848cd7e
SC
29452/* Override any gcc2 internal prototype to avoid an error. */
29453#ifdef __cplusplus
29454extern "C"
29455{
29456#endif
29457/* We use char because int might match the return type of a gcc2
29458 builtin and then its argument prototype would still apply. */
29459char connect ();
29460/* The GNU C library defines this for functions which it implements
29461 to always fail with ENOSYS. Some functions are actually named
29462 something starting with __ and the normal name is an alias. */
29463#if defined (__stub_connect) || defined (__stub___connect)
29464choke me
29465#else
29466char (*f) () = connect;
29467#endif
29468#ifdef __cplusplus
29469}
29470#endif
29471
29472int
29473main ()
29474{
29475return f != connect;
29476 ;
29477 return 0;
29478}
29479_ACEOF
29480rm -f conftest.$ac_objext conftest$ac_exeext
29481if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 29482 (eval $ac_link) 2>conftest.er1
a848cd7e 29483 ac_status=$?
ac1cb8d3
VS
29484 grep -v '^ *+' conftest.er1 >conftest.err
29485 rm -f conftest.er1
29486 cat conftest.err >&5
a848cd7e
SC
29487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29488 (exit $ac_status); } &&
3f60522a
JS
29489 { ac_try='test -z "$ac_cxx_werror_flag"
29490 || test ! -s conftest.err'
ac1cb8d3
VS
29491 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29492 (eval $ac_try) 2>&5
29493 ac_status=$?
29494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29495 (exit $ac_status); }; } &&
29496 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
29497 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29498 (eval $ac_try) 2>&5
29499 ac_status=$?
29500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29501 (exit $ac_status); }; }; then
29502 ac_cv_func_connect=yes
29503else
29504 echo "$as_me: failed program was:" >&5
29505sed 's/^/| /' conftest.$ac_ext >&5
29506
29507ac_cv_func_connect=no
29508fi
ac1cb8d3
VS
29509rm -f conftest.err conftest.$ac_objext \
29510 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
29511fi
29512echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
29513echo "${ECHO_T}$ac_cv_func_connect" >&6
29514
29515 if test $ac_cv_func_connect = no; then
29516 echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
29517echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
29518if test "${ac_cv_lib_socket_connect+set}" = set; then
29519 echo $ECHO_N "(cached) $ECHO_C" >&6
29520else
29521 ac_check_lib_save_LIBS=$LIBS
29522LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
29523cat >conftest.$ac_ext <<_ACEOF
29524/* confdefs.h. */
29525_ACEOF
29526cat confdefs.h >>conftest.$ac_ext
29527cat >>conftest.$ac_ext <<_ACEOF
29528/* end confdefs.h. */
29529
29530/* Override any gcc2 internal prototype to avoid an error. */
29531#ifdef __cplusplus
29532extern "C"
29533#endif
29534/* We use char because int might match the return type of a gcc2
29535 builtin and then its argument prototype would still apply. */
29536char connect ();
29537int
29538main ()
29539{
29540connect ();
29541 ;
29542 return 0;
29543}
29544_ACEOF
29545rm -f conftest.$ac_objext conftest$ac_exeext
29546if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 29547 (eval $ac_link) 2>conftest.er1
a848cd7e 29548 ac_status=$?
ac1cb8d3
VS
29549 grep -v '^ *+' conftest.er1 >conftest.err
29550 rm -f conftest.er1
29551 cat conftest.err >&5
a848cd7e
SC
29552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29553 (exit $ac_status); } &&
3f60522a
JS
29554 { ac_try='test -z "$ac_cxx_werror_flag"
29555 || test ! -s conftest.err'
ac1cb8d3
VS
29556 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29557 (eval $ac_try) 2>&5
29558 ac_status=$?
29559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29560 (exit $ac_status); }; } &&
29561 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
29562 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29563 (eval $ac_try) 2>&5
29564 ac_status=$?
29565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29566 (exit $ac_status); }; }; then
29567 ac_cv_lib_socket_connect=yes
29568else
29569 echo "$as_me: failed program was:" >&5
29570sed 's/^/| /' conftest.$ac_ext >&5
29571
29572ac_cv_lib_socket_connect=no
29573fi
ac1cb8d3
VS
29574rm -f conftest.err conftest.$ac_objext \
29575 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
29576LIBS=$ac_check_lib_save_LIBS
29577fi
29578echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
29579echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
29580if test $ac_cv_lib_socket_connect = yes; then
29581 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
29582fi
29583
29584 fi
29585
29586 # Guillermo Gomez says -lposix is necessary on A/UX.
29587 echo "$as_me:$LINENO: checking for remove" >&5
29588echo $ECHO_N "checking for remove... $ECHO_C" >&6
29589if test "${ac_cv_func_remove+set}" = set; then
29590 echo $ECHO_N "(cached) $ECHO_C" >&6
29591else
29592 cat >conftest.$ac_ext <<_ACEOF
29593/* confdefs.h. */
29594_ACEOF
29595cat confdefs.h >>conftest.$ac_ext
29596cat >>conftest.$ac_ext <<_ACEOF
29597/* end confdefs.h. */
ac1cb8d3
VS
29598/* Define remove to an innocuous variant, in case <limits.h> declares remove.
29599 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29600#define remove innocuous_remove
29601
a848cd7e
SC
29602/* System header to define __stub macros and hopefully few prototypes,
29603 which can conflict with char remove (); below.
29604 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29605 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 29606
a848cd7e
SC
29607#ifdef __STDC__
29608# include <limits.h>
29609#else
29610# include <assert.h>
29611#endif
ac1cb8d3
VS
29612
29613#undef remove
29614
a848cd7e
SC
29615/* Override any gcc2 internal prototype to avoid an error. */
29616#ifdef __cplusplus
29617extern "C"
29618{
29619#endif
29620/* We use char because int might match the return type of a gcc2
29621 builtin and then its argument prototype would still apply. */
29622char remove ();
29623/* The GNU C library defines this for functions which it implements
29624 to always fail with ENOSYS. Some functions are actually named
29625 something starting with __ and the normal name is an alias. */
29626#if defined (__stub_remove) || defined (__stub___remove)
29627choke me
29628#else
29629char (*f) () = remove;
29630#endif
29631#ifdef __cplusplus
29632}
29633#endif
29634
29635int
29636main ()
29637{
29638return f != remove;
29639 ;
29640 return 0;
29641}
29642_ACEOF
29643rm -f conftest.$ac_objext conftest$ac_exeext
29644if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 29645 (eval $ac_link) 2>conftest.er1
a848cd7e 29646 ac_status=$?
ac1cb8d3
VS
29647 grep -v '^ *+' conftest.er1 >conftest.err
29648 rm -f conftest.er1
29649 cat conftest.err >&5
a848cd7e
SC
29650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29651 (exit $ac_status); } &&
3f60522a
JS
29652 { ac_try='test -z "$ac_cxx_werror_flag"
29653 || test ! -s conftest.err'
ac1cb8d3
VS
29654 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29655 (eval $ac_try) 2>&5
29656 ac_status=$?
29657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29658 (exit $ac_status); }; } &&
29659 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
29660 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29661 (eval $ac_try) 2>&5
29662 ac_status=$?
29663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29664 (exit $ac_status); }; }; then
29665 ac_cv_func_remove=yes
29666else
29667 echo "$as_me: failed program was:" >&5
29668sed 's/^/| /' conftest.$ac_ext >&5
29669
29670ac_cv_func_remove=no
29671fi
ac1cb8d3
VS
29672rm -f conftest.err conftest.$ac_objext \
29673 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
29674fi
29675echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
29676echo "${ECHO_T}$ac_cv_func_remove" >&6
29677
29678 if test $ac_cv_func_remove = no; then
29679 echo "$as_me:$LINENO: checking for remove in -lposix" >&5
29680echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
29681if test "${ac_cv_lib_posix_remove+set}" = set; then
29682 echo $ECHO_N "(cached) $ECHO_C" >&6
29683else
29684 ac_check_lib_save_LIBS=$LIBS
29685LIBS="-lposix $LIBS"
29686cat >conftest.$ac_ext <<_ACEOF
29687/* confdefs.h. */
29688_ACEOF
29689cat confdefs.h >>conftest.$ac_ext
29690cat >>conftest.$ac_ext <<_ACEOF
29691/* end confdefs.h. */
29692
29693/* Override any gcc2 internal prototype to avoid an error. */
29694#ifdef __cplusplus
29695extern "C"
29696#endif
29697/* We use char because int might match the return type of a gcc2
29698 builtin and then its argument prototype would still apply. */
29699char remove ();
29700int
29701main ()
29702{
29703remove ();
29704 ;
29705 return 0;
29706}
29707_ACEOF
29708rm -f conftest.$ac_objext conftest$ac_exeext
29709if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 29710 (eval $ac_link) 2>conftest.er1
a848cd7e 29711 ac_status=$?
ac1cb8d3
VS
29712 grep -v '^ *+' conftest.er1 >conftest.err
29713 rm -f conftest.er1
29714 cat conftest.err >&5
a848cd7e
SC
29715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29716 (exit $ac_status); } &&
3f60522a
JS
29717 { ac_try='test -z "$ac_cxx_werror_flag"
29718 || test ! -s conftest.err'
ac1cb8d3
VS
29719 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29720 (eval $ac_try) 2>&5
29721 ac_status=$?
29722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29723 (exit $ac_status); }; } &&
29724 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
29725 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29726 (eval $ac_try) 2>&5
29727 ac_status=$?
29728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29729 (exit $ac_status); }; }; then
29730 ac_cv_lib_posix_remove=yes
29731else
29732 echo "$as_me: failed program was:" >&5
29733sed 's/^/| /' conftest.$ac_ext >&5
29734
29735ac_cv_lib_posix_remove=no
29736fi
ac1cb8d3
VS
29737rm -f conftest.err conftest.$ac_objext \
29738 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
29739LIBS=$ac_check_lib_save_LIBS
29740fi
29741echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
29742echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
29743if test $ac_cv_lib_posix_remove = yes; then
29744 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
29745fi
29746
29747 fi
29748
29749 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
29750 echo "$as_me:$LINENO: checking for shmat" >&5
29751echo $ECHO_N "checking for shmat... $ECHO_C" >&6
29752if test "${ac_cv_func_shmat+set}" = set; then
29753 echo $ECHO_N "(cached) $ECHO_C" >&6
29754else
29755 cat >conftest.$ac_ext <<_ACEOF
29756/* confdefs.h. */
29757_ACEOF
29758cat confdefs.h >>conftest.$ac_ext
29759cat >>conftest.$ac_ext <<_ACEOF
29760/* end confdefs.h. */
ac1cb8d3
VS
29761/* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
29762 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29763#define shmat innocuous_shmat
29764
a848cd7e
SC
29765/* System header to define __stub macros and hopefully few prototypes,
29766 which can conflict with char shmat (); below.
29767 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29768 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 29769
a848cd7e
SC
29770#ifdef __STDC__
29771# include <limits.h>
29772#else
29773# include <assert.h>
29774#endif
ac1cb8d3
VS
29775
29776#undef shmat
29777
a848cd7e
SC
29778/* Override any gcc2 internal prototype to avoid an error. */
29779#ifdef __cplusplus
29780extern "C"
29781{
29782#endif
29783/* We use char because int might match the return type of a gcc2
29784 builtin and then its argument prototype would still apply. */
29785char shmat ();
29786/* The GNU C library defines this for functions which it implements
29787 to always fail with ENOSYS. Some functions are actually named
29788 something starting with __ and the normal name is an alias. */
29789#if defined (__stub_shmat) || defined (__stub___shmat)
29790choke me
29791#else
29792char (*f) () = shmat;
29793#endif
29794#ifdef __cplusplus
29795}
29796#endif
29797
29798int
29799main ()
29800{
29801return f != shmat;
29802 ;
29803 return 0;
29804}
29805_ACEOF
29806rm -f conftest.$ac_objext conftest$ac_exeext
29807if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 29808 (eval $ac_link) 2>conftest.er1
a848cd7e 29809 ac_status=$?
ac1cb8d3
VS
29810 grep -v '^ *+' conftest.er1 >conftest.err
29811 rm -f conftest.er1
29812 cat conftest.err >&5
a848cd7e
SC
29813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29814 (exit $ac_status); } &&
3f60522a
JS
29815 { ac_try='test -z "$ac_cxx_werror_flag"
29816 || test ! -s conftest.err'
ac1cb8d3
VS
29817 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29818 (eval $ac_try) 2>&5
29819 ac_status=$?
29820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29821 (exit $ac_status); }; } &&
29822 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
29823 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29824 (eval $ac_try) 2>&5
29825 ac_status=$?
29826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29827 (exit $ac_status); }; }; then
29828 ac_cv_func_shmat=yes
29829else
29830 echo "$as_me: failed program was:" >&5
29831sed 's/^/| /' conftest.$ac_ext >&5
29832
29833ac_cv_func_shmat=no
29834fi
ac1cb8d3
VS
29835rm -f conftest.err conftest.$ac_objext \
29836 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
29837fi
29838echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
29839echo "${ECHO_T}$ac_cv_func_shmat" >&6
29840
29841 if test $ac_cv_func_shmat = no; then
29842 echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
29843echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
29844if test "${ac_cv_lib_ipc_shmat+set}" = set; then
29845 echo $ECHO_N "(cached) $ECHO_C" >&6
29846else
29847 ac_check_lib_save_LIBS=$LIBS
29848LIBS="-lipc $LIBS"
29849cat >conftest.$ac_ext <<_ACEOF
29850/* confdefs.h. */
29851_ACEOF
29852cat confdefs.h >>conftest.$ac_ext
29853cat >>conftest.$ac_ext <<_ACEOF
29854/* end confdefs.h. */
29855
29856/* Override any gcc2 internal prototype to avoid an error. */
29857#ifdef __cplusplus
29858extern "C"
29859#endif
29860/* We use char because int might match the return type of a gcc2
29861 builtin and then its argument prototype would still apply. */
29862char shmat ();
29863int
29864main ()
29865{
29866shmat ();
29867 ;
29868 return 0;
29869}
29870_ACEOF
29871rm -f conftest.$ac_objext conftest$ac_exeext
29872if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 29873 (eval $ac_link) 2>conftest.er1
a848cd7e 29874 ac_status=$?
ac1cb8d3
VS
29875 grep -v '^ *+' conftest.er1 >conftest.err
29876 rm -f conftest.er1
29877 cat conftest.err >&5
a848cd7e
SC
29878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29879 (exit $ac_status); } &&
3f60522a
JS
29880 { ac_try='test -z "$ac_cxx_werror_flag"
29881 || test ! -s conftest.err'
ac1cb8d3
VS
29882 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29883 (eval $ac_try) 2>&5
29884 ac_status=$?
29885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29886 (exit $ac_status); }; } &&
29887 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
29888 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29889 (eval $ac_try) 2>&5
29890 ac_status=$?
29891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29892 (exit $ac_status); }; }; then
29893 ac_cv_lib_ipc_shmat=yes
29894else
29895 echo "$as_me: failed program was:" >&5
29896sed 's/^/| /' conftest.$ac_ext >&5
29897
29898ac_cv_lib_ipc_shmat=no
29899fi
ac1cb8d3
VS
29900rm -f conftest.err conftest.$ac_objext \
29901 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
29902LIBS=$ac_check_lib_save_LIBS
29903fi
29904echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
29905echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
29906if test $ac_cv_lib_ipc_shmat = yes; then
29907 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
29908fi
29909
29910 fi
29911 fi
29912
29913 # Check for libraries that X11R6 Xt/Xaw programs need.
29914 ac_save_LDFLAGS=$LDFLAGS
29915 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
29916 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
29917 # check for ICE first), but we must link in the order -lSM -lICE or
29918 # we get undefined symbols. So assume we have SM if we have ICE.
29919 # These have to be linked with before -lX11, unlike the other
29920 # libraries we check for below, so use a different variable.
29921 # John Interrante, Karl Berry
29922 echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
29923echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
29924if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
29925 echo $ECHO_N "(cached) $ECHO_C" >&6
29926else
29927 ac_check_lib_save_LIBS=$LIBS
29928LIBS="-lICE $X_EXTRA_LIBS $LIBS"
29929cat >conftest.$ac_ext <<_ACEOF
29930/* confdefs.h. */
29931_ACEOF
29932cat confdefs.h >>conftest.$ac_ext
29933cat >>conftest.$ac_ext <<_ACEOF
29934/* end confdefs.h. */
29935
29936/* Override any gcc2 internal prototype to avoid an error. */
29937#ifdef __cplusplus
29938extern "C"
29939#endif
29940/* We use char because int might match the return type of a gcc2
29941 builtin and then its argument prototype would still apply. */
29942char IceConnectionNumber ();
29943int
29944main ()
29945{
29946IceConnectionNumber ();
29947 ;
29948 return 0;
29949}
29950_ACEOF
29951rm -f conftest.$ac_objext conftest$ac_exeext
29952if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 29953 (eval $ac_link) 2>conftest.er1
a848cd7e 29954 ac_status=$?
ac1cb8d3
VS
29955 grep -v '^ *+' conftest.er1 >conftest.err
29956 rm -f conftest.er1
29957 cat conftest.err >&5
a848cd7e
SC
29958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29959 (exit $ac_status); } &&
3f60522a
JS
29960 { ac_try='test -z "$ac_cxx_werror_flag"
29961 || test ! -s conftest.err'
ac1cb8d3
VS
29962 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29963 (eval $ac_try) 2>&5
29964 ac_status=$?
29965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29966 (exit $ac_status); }; } &&
29967 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
29968 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29969 (eval $ac_try) 2>&5
29970 ac_status=$?
29971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29972 (exit $ac_status); }; }; then
29973 ac_cv_lib_ICE_IceConnectionNumber=yes
29974else
29975 echo "$as_me: failed program was:" >&5
29976sed 's/^/| /' conftest.$ac_ext >&5
29977
29978ac_cv_lib_ICE_IceConnectionNumber=no
29979fi
ac1cb8d3
VS
29980rm -f conftest.err conftest.$ac_objext \
29981 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
29982LIBS=$ac_check_lib_save_LIBS
29983fi
29984echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
29985echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
29986if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
29987 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
29988fi
29989
29990 LDFLAGS=$ac_save_LDFLAGS
29991
29992fi
29993
29994
29995 if test "$no_x" = "yes"; then
89d90d6d
VZ
29996 { { echo "$as_me:$LINENO: error: X11 not found, please use --x-includes and/or --x-libraries options (see config.log for details)" >&5
29997echo "$as_me: error: X11 not found, please use --x-includes and/or --x-libraries options (see config.log for details)" >&2;}
29998 { (exit 1); exit 1; }; }
a848cd7e
SC
29999 fi
30000
74b84332
VS
30001 GUI_TK_LIBRARY=`echo $X_LIBS | sed 's/ -LNONE//' | sed 's/ -RNONE//'`
30002 TOOLKIT_INCLUDE=`echo $X_CFLAGS | sed 's/ -INONE//'`
a848cd7e
SC
30003 AFMINSTALL=afminstall
30004 COMPILED_X_PROGRAM=0
30005
74b84332
VS
30006 fi
30007
30008 if test "$wxUSE_X11" = 1; then
a848cd7e
SC
30009 if test "$wxUSE_NANOX" = "yes"; then
30010 echo "$as_me:$LINENO: checking for MicroWindows/NanoX distribution" >&5
30011echo $ECHO_N "checking for MicroWindows/NanoX distribution... $ECHO_C" >&6
30012 if test "x$MICROWIN" = x ; then
30013 echo "$as_me:$LINENO: result: not found" >&5
30014echo "${ECHO_T}not found" >&6
30015 { { echo "$as_me:$LINENO: error: Cannot find MicroWindows library. Make sure MICROWIN is set." >&5
30016echo "$as_me: error: Cannot find MicroWindows library. Make sure MICROWIN is set." >&2;}
30017 { (exit 1); exit 1; }; }
30018 else
30019 echo "$as_me:$LINENO: result: $MICROWIN" >&5
30020echo "${ECHO_T}$MICROWIN" >&6
30021 cat >>confdefs.h <<\_ACEOF
30022#define wxUSE_NANOX 1
30023_ACEOF
30024
30025 fi
30026 fi
30027
30028 if test "$wxUSE_UNICODE" = "yes"; then
30029
30030 succeeded=no
30031
30032 if test -z "$PKG_CONFIG"; then
30033 # Extract the first word of "pkg-config", so it can be a program name with args.
30034set dummy pkg-config; ac_word=$2
30035echo "$as_me:$LINENO: checking for $ac_word" >&5
30036echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
30037if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
30038 echo $ECHO_N "(cached) $ECHO_C" >&6
30039else
30040 case $PKG_CONFIG in
30041 [\\/]* | ?:[\\/]*)
30042 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
30043 ;;
30044 *)
30045 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30046for as_dir in $PATH
30047do
30048 IFS=$as_save_IFS
30049 test -z "$as_dir" && as_dir=.
30050 for ac_exec_ext in '' $ac_executable_extensions; do
30051 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
30052 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
30053 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
30054 break 2
30055 fi
30056done
30057done
30058
30059 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
30060 ;;
30061esac
30062fi
30063PKG_CONFIG=$ac_cv_path_PKG_CONFIG
30064
30065if test -n "$PKG_CONFIG"; then
30066 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
30067echo "${ECHO_T}$PKG_CONFIG" >&6
30068else
30069 echo "$as_me:$LINENO: result: no" >&5
30070echo "${ECHO_T}no" >&6
30071fi
30072
30073 fi
30074
30075 if test "$PKG_CONFIG" = "no" ; then
30076 echo "*** The pkg-config script could not be found. Make sure it is"
30077 echo "*** in your path, or set the PKG_CONFIG environment variable"
30078 echo "*** to the full path to pkg-config."
30079 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
30080 else
30081 PKG_CONFIG_MIN_VERSION=0.9.0
30082 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
30083 echo "$as_me:$LINENO: checking for pangox" >&5
30084echo $ECHO_N "checking for pangox... $ECHO_C" >&6
30085
30086 if $PKG_CONFIG --exists "pangox" ; then
30087 echo "$as_me:$LINENO: result: yes" >&5
30088echo "${ECHO_T}yes" >&6
30089 succeeded=yes
30090
30091 echo "$as_me:$LINENO: checking PANGOX_CFLAGS" >&5
30092echo $ECHO_N "checking PANGOX_CFLAGS... $ECHO_C" >&6
30093 PANGOX_CFLAGS=`$PKG_CONFIG --cflags "pangox"`
30094 echo "$as_me:$LINENO: result: $PANGOX_CFLAGS" >&5
30095echo "${ECHO_T}$PANGOX_CFLAGS" >&6
30096
30097 echo "$as_me:$LINENO: checking PANGOX_LIBS" >&5
30098echo $ECHO_N "checking PANGOX_LIBS... $ECHO_C" >&6
30099 PANGOX_LIBS=`$PKG_CONFIG --libs "pangox"`
30100 echo "$as_me:$LINENO: result: $PANGOX_LIBS" >&5
30101echo "${ECHO_T}$PANGOX_LIBS" >&6
30102 else
30103 PANGOX_CFLAGS=""
30104 PANGOX_LIBS=""
30105 ## If we have a custom action on failure, don't print errors, but
30106 ## do set a variable so people can do so.
30107 PANGOX_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangox"`
30108
30109 fi
30110
30111
30112
30113 else
30114 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
30115 echo "*** See http://www.freedesktop.org/software/pkgconfig"
30116 fi
30117 fi
30118
30119 if test $succeeded = yes; then
30120
c92ad099 30121 CXXFLAGS="$PANGOX_CFLAGS $CXXFLAGS"
a848cd7e
SC
30122 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOX_LIBS"
30123
30124 else
30125
30126 { { echo "$as_me:$LINENO: error: pangox library not found, library cannot be compiled in Unicode mode" >&5
30127echo "$as_me: error: pangox library not found, library cannot be compiled in Unicode mode" >&2;}
30128 { (exit 1); exit 1; }; }
30129
30130
30131 fi
30132
30133
30134 succeeded=no
30135
30136 if test -z "$PKG_CONFIG"; then
30137 # Extract the first word of "pkg-config", so it can be a program name with args.
30138set dummy pkg-config; ac_word=$2
30139echo "$as_me:$LINENO: checking for $ac_word" >&5
30140echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
30141if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
30142 echo $ECHO_N "(cached) $ECHO_C" >&6
30143else
30144 case $PKG_CONFIG in
30145 [\\/]* | ?:[\\/]*)
30146 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
30147 ;;
30148 *)
30149 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30150for as_dir in $PATH
30151do
30152 IFS=$as_save_IFS
30153 test -z "$as_dir" && as_dir=.
30154 for ac_exec_ext in '' $ac_executable_extensions; do
30155 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
30156 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
30157 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
30158 break 2
30159 fi
30160done
30161done
30162
30163 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
30164 ;;
30165esac
30166fi
30167PKG_CONFIG=$ac_cv_path_PKG_CONFIG
30168
30169if test -n "$PKG_CONFIG"; then
30170 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
30171echo "${ECHO_T}$PKG_CONFIG" >&6
30172else
30173 echo "$as_me:$LINENO: result: no" >&5
30174echo "${ECHO_T}no" >&6
30175fi
30176
30177 fi
30178
30179 if test "$PKG_CONFIG" = "no" ; then
30180 echo "*** The pkg-config script could not be found. Make sure it is"
30181 echo "*** in your path, or set the PKG_CONFIG environment variable"
30182 echo "*** to the full path to pkg-config."
30183 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
30184 else
30185 PKG_CONFIG_MIN_VERSION=0.9.0
30186 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
30187 echo "$as_me:$LINENO: checking for pangoft2" >&5
30188echo $ECHO_N "checking for pangoft2... $ECHO_C" >&6
30189
30190 if $PKG_CONFIG --exists "pangoft2" ; then
30191 echo "$as_me:$LINENO: result: yes" >&5
30192echo "${ECHO_T}yes" >&6
30193 succeeded=yes
30194
30195 echo "$as_me:$LINENO: checking PANGOFT2_CFLAGS" >&5
30196echo $ECHO_N "checking PANGOFT2_CFLAGS... $ECHO_C" >&6
30197 PANGOFT2_CFLAGS=`$PKG_CONFIG --cflags "pangoft2"`
30198 echo "$as_me:$LINENO: result: $PANGOFT2_CFLAGS" >&5
30199echo "${ECHO_T}$PANGOFT2_CFLAGS" >&6
30200
30201 echo "$as_me:$LINENO: checking PANGOFT2_LIBS" >&5
30202echo $ECHO_N "checking PANGOFT2_LIBS... $ECHO_C" >&6
30203 PANGOFT2_LIBS=`$PKG_CONFIG --libs "pangoft2"`
30204 echo "$as_me:$LINENO: result: $PANGOFT2_LIBS" >&5
30205echo "${ECHO_T}$PANGOFT2_LIBS" >&6
30206 else
30207 PANGOFT2_CFLAGS=""
30208 PANGOFT2_LIBS=""
30209 ## If we have a custom action on failure, don't print errors, but
30210 ## do set a variable so people can do so.
30211 PANGOFT2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoft2"`
30212
30213 fi
30214
30215
30216
30217 else
30218 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
30219 echo "*** See http://www.freedesktop.org/software/pkgconfig"
30220 fi
30221 fi
30222
30223 if test $succeeded = yes; then
30224
c92ad099 30225 CXXFLAGS="$PANGOFT2_CFLAGS $CXXFLAGS"
a848cd7e
SC
30226 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOFT2_LIBS"
30227
30228 else
30229
30230 { echo "$as_me:$LINENO: WARNING: pangoft2 library not found, library will be compiled without printing support" >&5
30231echo "$as_me: WARNING: pangoft2 library not found, library will be compiled without printing support" >&2;}
30232 wxUSE_PRINTING_ARCHITECTURE="no"
30233
30234
30235 fi
30236
30237
30238 succeeded=no
30239
30240 if test -z "$PKG_CONFIG"; then
30241 # Extract the first word of "pkg-config", so it can be a program name with args.
30242set dummy pkg-config; ac_word=$2
30243echo "$as_me:$LINENO: checking for $ac_word" >&5
30244echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
30245if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
30246 echo $ECHO_N "(cached) $ECHO_C" >&6
30247else
30248 case $PKG_CONFIG in
30249 [\\/]* | ?:[\\/]*)
30250 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
30251 ;;
30252 *)
30253 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30254for as_dir in $PATH
30255do
30256 IFS=$as_save_IFS
30257 test -z "$as_dir" && as_dir=.
30258 for ac_exec_ext in '' $ac_executable_extensions; do
30259 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
30260 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
30261 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
30262 break 2
30263 fi
30264done
30265done
30266
30267 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
30268 ;;
30269esac
30270fi
30271PKG_CONFIG=$ac_cv_path_PKG_CONFIG
30272
30273if test -n "$PKG_CONFIG"; then
30274 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
30275echo "${ECHO_T}$PKG_CONFIG" >&6
30276else
30277 echo "$as_me:$LINENO: result: no" >&5
30278echo "${ECHO_T}no" >&6
30279fi
30280
30281 fi
30282
30283 if test "$PKG_CONFIG" = "no" ; then
30284 echo "*** The pkg-config script could not be found. Make sure it is"
30285 echo "*** in your path, or set the PKG_CONFIG environment variable"
30286 echo "*** to the full path to pkg-config."
30287 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
30288 else
30289 PKG_CONFIG_MIN_VERSION=0.9.0
30290 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
30291 echo "$as_me:$LINENO: checking for pangoxft" >&5
30292echo $ECHO_N "checking for pangoxft... $ECHO_C" >&6
30293
30294 if $PKG_CONFIG --exists "pangoxft" ; then
30295 echo "$as_me:$LINENO: result: yes" >&5
30296echo "${ECHO_T}yes" >&6
30297 succeeded=yes
30298
30299 echo "$as_me:$LINENO: checking PANGOXFT_CFLAGS" >&5
30300echo $ECHO_N "checking PANGOXFT_CFLAGS... $ECHO_C" >&6
30301 PANGOXFT_CFLAGS=`$PKG_CONFIG --cflags "pangoxft"`
30302 echo "$as_me:$LINENO: result: $PANGOXFT_CFLAGS" >&5
30303echo "${ECHO_T}$PANGOXFT_CFLAGS" >&6
30304
30305 echo "$as_me:$LINENO: checking PANGOXFT_LIBS" >&5
30306echo $ECHO_N "checking PANGOXFT_LIBS... $ECHO_C" >&6
30307 PANGOXFT_LIBS=`$PKG_CONFIG --libs "pangoxft"`
30308 echo "$as_me:$LINENO: result: $PANGOXFT_LIBS" >&5
30309echo "${ECHO_T}$PANGOXFT_LIBS" >&6
30310 else
30311 PANGOXFT_CFLAGS=""
30312 PANGOXFT_LIBS=""
30313 ## If we have a custom action on failure, don't print errors, but
30314 ## do set a variable so people can do so.
30315 PANGOXFT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoxft"`
30316
30317 fi
30318
30319
30320
30321 else
30322 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
30323 echo "*** See http://www.freedesktop.org/software/pkgconfig"
30324 fi
30325 fi
30326
30327 if test $succeeded = yes; then
30328
4ae1af05
MB
30329 cat >>confdefs.h <<\_ACEOF
30330#define HAVE_PANGO_XFT 1
30331_ACEOF
30332
c92ad099 30333 CXXFLAGS="$PANGOXFT_CFLAGS $CXXFLAGS"
a848cd7e
SC
30334 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOXFT_LIBS"
30335
30336 else
30337
30338 { echo "$as_me:$LINENO: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&5
30339echo "$as_me: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&2;}
30340
30341
30342 fi
30343
e56f4f9e 30344 save_CXXFLAGS="$CXXFLAGS"
304205f1 30345 save_LIBS="$LIBS"
e56f4f9e 30346 CXXFLAGS="$PANGOX_CFLAGS $CXXFLAGS"
304205f1
VS
30347 LIBS="$LIBS $PANGOX_LIBS"
30348
30349for ac_func in pango_font_family_is_monospace
30350do
30351as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30352echo "$as_me:$LINENO: checking for $ac_func" >&5
30353echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
30354if eval "test \"\${$as_ac_var+set}\" = set"; then
30355 echo $ECHO_N "(cached) $ECHO_C" >&6
30356else
30357 cat >conftest.$ac_ext <<_ACEOF
30358/* confdefs.h. */
30359_ACEOF
30360cat confdefs.h >>conftest.$ac_ext
30361cat >>conftest.$ac_ext <<_ACEOF
30362/* end confdefs.h. */
30363/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30364 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30365#define $ac_func innocuous_$ac_func
30366
30367/* System header to define __stub macros and hopefully few prototypes,
30368 which can conflict with char $ac_func (); below.
30369 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30370 <limits.h> exists even on freestanding compilers. */
30371
30372#ifdef __STDC__
30373# include <limits.h>
30374#else
30375# include <assert.h>
30376#endif
30377
30378#undef $ac_func
30379
30380/* Override any gcc2 internal prototype to avoid an error. */
30381#ifdef __cplusplus
30382extern "C"
30383{
30384#endif
30385/* We use char because int might match the return type of a gcc2
30386 builtin and then its argument prototype would still apply. */
30387char $ac_func ();
30388/* The GNU C library defines this for functions which it implements
30389 to always fail with ENOSYS. Some functions are actually named
30390 something starting with __ and the normal name is an alias. */
30391#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
30392choke me
30393#else
30394char (*f) () = $ac_func;
30395#endif
30396#ifdef __cplusplus
30397}
30398#endif
30399
30400int
30401main ()
30402{
30403return f != $ac_func;
30404 ;
30405 return 0;
30406}
30407_ACEOF
30408rm -f conftest.$ac_objext conftest$ac_exeext
30409if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30410 (eval $ac_link) 2>conftest.er1
30411 ac_status=$?
30412 grep -v '^ *+' conftest.er1 >conftest.err
30413 rm -f conftest.er1
30414 cat conftest.err >&5
30415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30416 (exit $ac_status); } &&
3f60522a
JS
30417 { ac_try='test -z "$ac_cxx_werror_flag"
30418 || test ! -s conftest.err'
304205f1
VS
30419 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30420 (eval $ac_try) 2>&5
30421 ac_status=$?
30422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30423 (exit $ac_status); }; } &&
30424 { ac_try='test -s conftest$ac_exeext'
30425 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30426 (eval $ac_try) 2>&5
30427 ac_status=$?
30428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30429 (exit $ac_status); }; }; then
30430 eval "$as_ac_var=yes"
30431else
30432 echo "$as_me: failed program was:" >&5
30433sed 's/^/| /' conftest.$ac_ext >&5
30434
30435eval "$as_ac_var=no"
30436fi
30437rm -f conftest.err conftest.$ac_objext \
30438 conftest$ac_exeext conftest.$ac_ext
30439fi
30440echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
30441echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
30442if test `eval echo '${'$as_ac_var'}'` = yes; then
30443 cat >>confdefs.h <<_ACEOF
30444#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30445_ACEOF
30446
30447fi
30448done
30449
e56f4f9e 30450 CXXFLAGS="$save_CXXFLAGS"
304205f1 30451 LIBS="$save_LIBS"
a848cd7e
SC
30452 fi
30453
30454 wxUSE_UNIVERSAL="yes"
30455
30456 if test "$wxUSE_NANOX" = "yes"; then
30457 TOOLKIT_INCLUDE="-I\$(top_srcdir)/include/wx/x11/nanox -I\$(MICROWIN)/src/include $TOOLKIT_INCLUDE"
30458 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"
30459 GUI_TK_LIBRARY="$GUI_TK_LIBRARY \$(MICROWIN)/src/lib/libnano-X.a"
30460 else
30461 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lX11"
30462 fi
30463
a848cd7e
SC
30464 TOOLKIT=X11
30465 GUIDIST=X11_DIST
30466 fi
30467
30468 if test "$wxUSE_MOTIF" = 1; then
0a08f02a
MB
30469 if test "$wxUSE_UNICODE" = "yes"; then
30470 { { echo "$as_me:$LINENO: error: Unicode configuration not supported with Motif" >&5
30471echo "$as_me: error: Unicode configuration not supported with Motif" >&2;}
30472 { (exit 1); exit 1; }; }
30473 fi
30474
74b84332
VS
30475 echo "$as_me:$LINENO: checking for Motif/Lesstif headers" >&5
30476echo $ECHO_N "checking for Motif/Lesstif headers... $ECHO_C" >&6
a848cd7e 30477
74b84332
VS
30478ac_find_includes=
30479for ac_dir in $SEARCH_INCLUDE /usr/include;
30480 do
30481 if test -f "$ac_dir/Xm/Xm.h"; then
30482 ac_find_includes=$ac_dir
30483 break
30484 fi
30485 done
a848cd7e 30486
74b84332
VS
30487 if test "$ac_find_includes" != "" ; then
30488 echo "$as_me:$LINENO: result: found in $ac_find_includes" >&5
30489echo "${ECHO_T}found in $ac_find_includes" >&6
30490
30491 if test "x$ac_find_includes" = "x/usr/include"; then
30492 ac_path_to_include=""
30493 else
30494 echo "$TOOLKIT_INCLUDE" | grep "\-I$ac_find_includes" > /dev/null
30495 result=$?
30496 if test $result = 0; then
30497 ac_path_to_include=""
30498 else
30499 ac_path_to_include=" -I$ac_find_includes"
30500 fi
a848cd7e
SC
30501 fi
30502
74b84332
VS
30503 TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE$ac_path_to_include"
30504 else
e56f4f9e
VZ
30505 save_CXXFLAGS=$CXXFLAGS
30506 CXXFLAGS="$TOOLKIT_INCLUDE $CXXFLAGS"
e051b34e 30507
74b84332 30508 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
30509/* confdefs.h. */
30510_ACEOF
30511cat confdefs.h >>conftest.$ac_ext
30512cat >>conftest.$ac_ext <<_ACEOF
30513/* end confdefs.h. */
30514
74b84332
VS
30515 #include <Xm/Xm.h>
30516
a848cd7e
SC
30517int
30518main ()
30519{
30520
74b84332
VS
30521 int version;
30522 version = xmUseVersion;
30523
a848cd7e
SC
30524 ;
30525 return 0;
30526}
30527_ACEOF
74b84332
VS
30528rm -f conftest.$ac_objext
30529if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30530 (eval $ac_compile) 2>conftest.er1
a848cd7e 30531 ac_status=$?
ac1cb8d3
VS
30532 grep -v '^ *+' conftest.er1 >conftest.err
30533 rm -f conftest.er1
30534 cat conftest.err >&5
a848cd7e
SC
30535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30536 (exit $ac_status); } &&
3f60522a
JS
30537 { ac_try='test -z "$ac_cxx_werror_flag"
30538 || test ! -s conftest.err'
ac1cb8d3
VS
30539 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30540 (eval $ac_try) 2>&5
30541 ac_status=$?
30542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30543 (exit $ac_status); }; } &&
74b84332 30544 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
30545 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30546 (eval $ac_try) 2>&5
30547 ac_status=$?
30548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30549 (exit $ac_status); }; }; then
74b84332
VS
30550
30551 echo "$as_me:$LINENO: result: found in default search path" >&5
30552echo "${ECHO_T}found in default search path" >&6
30553 COMPILED_X_PROGRAM=1
30554
a848cd7e
SC
30555else
30556 echo "$as_me: failed program was:" >&5
30557sed 's/^/| /' conftest.$ac_ext >&5
30558
a848cd7e 30559
74b84332
VS
30560 echo "$as_me:$LINENO: result: no" >&5
30561echo "${ECHO_T}no" >&6
e051b34e
MW
30562 { { echo "$as_me:$LINENO: error: please set CPPFLAGS to contain the location of Xm/Xm.h" >&5
30563echo "$as_me: error: please set CPPFLAGS to contain the location of Xm/Xm.h" >&2;}
74b84332 30564 { (exit 1); exit 1; }; }
a848cd7e 30565
a848cd7e 30566
a848cd7e 30567fi
74b84332 30568rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e051b34e 30569
e56f4f9e 30570 CXXFLAGS=$save_CXXFLAGS
74b84332
VS
30571 fi
30572
0ad5d837
VZ
30573
30574 echo "$as_me:$LINENO: checking for Motif/Lesstif library" >&5
74b84332
VS
30575echo $ECHO_N "checking for Motif/Lesstif library... $ECHO_C" >&6
30576
0ad5d837
VZ
30577 ac_find_libraries=
30578 for ac_dir in $SEARCH_LIB;
74b84332 30579 do
3eca31dc 30580 for ac_extension in a so sl dylib dll.a; do
74b84332
VS
30581 if test -f "$ac_dir/libXm.$ac_extension"; then
30582 ac_find_libraries=$ac_dir
30583 break 2
a848cd7e 30584 fi
74b84332
VS
30585 done
30586 done
a848cd7e 30587
0ad5d837
VZ
30588
30589 if test "x$ac_find_libraries" != "x" ; then
30590 echo "$as_me:$LINENO: result: found in $ac_find_libraries" >&5
30591echo "${ECHO_T}found in $ac_find_libraries" >&6
a848cd7e 30592
74b84332 30593
0ad5d837 30594 if test "$ac_find_libraries" = "default location"; then
74b84332 30595 ac_path_to_link=""
a848cd7e 30596 else
0ad5d837
VZ
30597 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
30598 result=$?
30599 if test $result = 0; then
30600 ac_path_to_link=""
30601 else
30602 ac_path_to_link=" -L$ac_find_libraries"
30603 fi
74b84332
VS
30604 fi
30605
0ad5d837
VZ
30606 GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
30607 else
e56f4f9e
VZ
30608 save_CXXFLAGS=$CXXFLAGS
30609 CXXFLAGS="$TOOLKIT_INCLUDE $CXXFLAGS"
6f9cf1e6
MW
30610 save_LIBS="$LIBS"
30611 LIBS="$GUI_TK_LIBRARY -lXm -lXmu -lXext -lX11"
74b84332 30612
0ad5d837 30613 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
30614/* confdefs.h. */
30615_ACEOF
30616cat confdefs.h >>conftest.$ac_ext
30617cat >>conftest.$ac_ext <<_ACEOF
30618/* end confdefs.h. */
30619
0ad5d837 30620 #include <Xm/Xm.h>
74b84332 30621
a848cd7e
SC
30622int
30623main ()
30624{
74b84332 30625
0ad5d837
VZ
30626 int version;
30627 version = xmUseVersion;
74b84332 30628
a848cd7e
SC
30629 ;
30630 return 0;
30631}
30632_ACEOF
0ad5d837
VZ
30633rm -f conftest.$ac_objext conftest$ac_exeext
30634if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30635 (eval $ac_link) 2>conftest.er1
a848cd7e 30636 ac_status=$?
ac1cb8d3
VS
30637 grep -v '^ *+' conftest.er1 >conftest.err
30638 rm -f conftest.er1
30639 cat conftest.err >&5
a848cd7e
SC
30640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30641 (exit $ac_status); } &&
3f60522a
JS
30642 { ac_try='test -z "$ac_cxx_werror_flag"
30643 || test ! -s conftest.err'
ac1cb8d3
VS
30644 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30645 (eval $ac_try) 2>&5
30646 ac_status=$?
30647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30648 (exit $ac_status); }; } &&
0ad5d837 30649 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
30650 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30651 (eval $ac_try) 2>&5
30652 ac_status=$?
30653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30654 (exit $ac_status); }; }; then
74b84332 30655
0ad5d837 30656 echo "$as_me:$LINENO: result: found in default search path" >&5
74b84332 30657echo "${ECHO_T}found in default search path" >&6
0ad5d837 30658 COMPILED_X_PROGRAM=1
74b84332 30659
a848cd7e
SC
30660else
30661 echo "$as_me: failed program was:" >&5
30662sed 's/^/| /' conftest.$ac_ext >&5
30663
74b84332 30664
6f9cf1e6 30665 echo "$as_me:$LINENO: result: no" >&5
74b84332 30666echo "${ECHO_T}no" >&6
6f9cf1e6 30667 { { echo "$as_me:$LINENO: error: please set LDFLAGS to contain the location of libXm" >&5
74b84332
VS
30668echo "$as_me: error: please set LDFLAGS to contain the location of libXm" >&2;}
30669 { (exit 1); exit 1; }; }
30670
30671
30672fi
0ad5d837
VZ
30673rm -f conftest.err conftest.$ac_objext \
30674 conftest$ac_exeext conftest.$ac_ext
74b84332 30675
e56f4f9e 30676 CXXFLAGS=$save_CXXFLAGS
6f9cf1e6 30677 LIBS="$save_LIBS"
74b84332
VS
30678 fi
30679
30680 echo "$as_me:$LINENO: checking if we need -lXp and/or -lSM -lICE" >&5
30681echo $ECHO_N "checking if we need -lXp and/or -lSM -lICE... $ECHO_C" >&6
30682 libp_link=""
30683 libsm_ice_link=""
30684 libs_found=0
30685 for libp in "" " -lXp"; do
30686 if test "$libs_found" = "0"; then
30687 for libsm_ice in "" " -lSM -lICE"; do
30688 if test "$libs_found" = "0"; then
30689 save_LIBS="$LIBS"
30690 LIBS="$GUI_TK_LIBRARY -lXm ${libp} -lXmu -lXext -lXt${libsm_ice} -lX11"
e56f4f9e
VZ
30691 save_CXXFLAGS=$CXXFLAGS
30692 CXXFLAGS="$TOOLKIT_INCLUDE $CXXFLAGS"
74b84332
VS
30693
30694 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
30695/* confdefs.h. */
30696_ACEOF
30697cat confdefs.h >>conftest.$ac_ext
30698cat >>conftest.$ac_ext <<_ACEOF
30699/* end confdefs.h. */
30700
74b84332
VS
30701 #include <Xm/Xm.h>
30702 #include <Xm/List.h>
30703
a848cd7e
SC
30704int
30705main ()
30706{
74b84332
VS
30707
30708 XmString string = NULL;
30709 Widget w = NULL;
30710 int position = 0;
30711 XmListAddItem(w, string, position);
30712
a848cd7e
SC
30713 ;
30714 return 0;
30715}
30716_ACEOF
30717rm -f conftest.$ac_objext conftest$ac_exeext
30718if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 30719 (eval $ac_link) 2>conftest.er1
a848cd7e 30720 ac_status=$?
ac1cb8d3
VS
30721 grep -v '^ *+' conftest.er1 >conftest.err
30722 rm -f conftest.er1
30723 cat conftest.err >&5
a848cd7e
SC
30724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30725 (exit $ac_status); } &&
3f60522a
JS
30726 { ac_try='test -z "$ac_cxx_werror_flag"
30727 || test ! -s conftest.err'
ac1cb8d3
VS
30728 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30729 (eval $ac_try) 2>&5
30730 ac_status=$?
30731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30732 (exit $ac_status); }; } &&
30733 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
30734 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30735 (eval $ac_try) 2>&5
30736 ac_status=$?
30737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30738 (exit $ac_status); }; }; then
30739
30740 libp_link="$libp"
30741 libsm_ice_link="$libsm_ice"
30742 echo "$as_me:$LINENO: result: need${libp_link}${libsm_ice_link}" >&5
30743echo "${ECHO_T}need${libp_link}${libsm_ice_link}" >&6
30744 libs_found=1
30745
30746else
30747 echo "$as_me: failed program was:" >&5
30748sed 's/^/| /' conftest.$ac_ext >&5
30749
30750
30751
30752fi
ac1cb8d3
VS
30753rm -f conftest.err conftest.$ac_objext \
30754 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
30755
30756 LIBS="$save_LIBS"
e56f4f9e 30757 CXXFLAGS=$save_CXXFLAGS
a848cd7e
SC
30758 fi
30759 done
30760 fi
30761 done
30762
30763 if test "$libs_found" = "0"; then
30764 echo "$as_me:$LINENO: result: can't find the right libraries" >&5
30765echo "${ECHO_T}can't find the right libraries" >&6
30766 { { echo "$as_me:$LINENO: error: can't link a simple motif program" >&5
30767echo "$as_me: error: can't link a simple motif program" >&2;}
30768 { (exit 1); exit 1; }; }
30769 fi
30770
62fa8b3a
MW
30771 echo "$as_me:$LINENO: checking for SgCreateList in -lSgm" >&5
30772echo $ECHO_N "checking for SgCreateList in -lSgm... $ECHO_C" >&6
30773if test "${ac_cv_lib_Sgm_SgCreateList+set}" = set; then
30774 echo $ECHO_N "(cached) $ECHO_C" >&6
30775else
30776 ac_check_lib_save_LIBS=$LIBS
30777LIBS="-lSgm $LIBS"
30778cat >conftest.$ac_ext <<_ACEOF
30779/* confdefs.h. */
30780_ACEOF
30781cat confdefs.h >>conftest.$ac_ext
30782cat >>conftest.$ac_ext <<_ACEOF
30783/* end confdefs.h. */
30784
30785/* Override any gcc2 internal prototype to avoid an error. */
30786#ifdef __cplusplus
30787extern "C"
30788#endif
30789/* We use char because int might match the return type of a gcc2
30790 builtin and then its argument prototype would still apply. */
30791char SgCreateList ();
30792int
30793main ()
30794{
30795SgCreateList ();
30796 ;
30797 return 0;
30798}
30799_ACEOF
30800rm -f conftest.$ac_objext conftest$ac_exeext
30801if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30802 (eval $ac_link) 2>conftest.er1
30803 ac_status=$?
30804 grep -v '^ *+' conftest.er1 >conftest.err
30805 rm -f conftest.er1
30806 cat conftest.err >&5
30807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30808 (exit $ac_status); } &&
3f60522a
JS
30809 { ac_try='test -z "$ac_cxx_werror_flag"
30810 || test ! -s conftest.err'
62fa8b3a
MW
30811 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30812 (eval $ac_try) 2>&5
30813 ac_status=$?
30814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30815 (exit $ac_status); }; } &&
30816 { ac_try='test -s conftest$ac_exeext'
30817 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30818 (eval $ac_try) 2>&5
30819 ac_status=$?
30820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30821 (exit $ac_status); }; }; then
30822 ac_cv_lib_Sgm_SgCreateList=yes
30823else
30824 echo "$as_me: failed program was:" >&5
30825sed 's/^/| /' conftest.$ac_ext >&5
30826
30827ac_cv_lib_Sgm_SgCreateList=no
30828fi
30829rm -f conftest.err conftest.$ac_objext \
30830 conftest$ac_exeext conftest.$ac_ext
30831LIBS=$ac_check_lib_save_LIBS
30832fi
30833echo "$as_me:$LINENO: result: $ac_cv_lib_Sgm_SgCreateList" >&5
30834echo "${ECHO_T}$ac_cv_lib_Sgm_SgCreateList" >&6
30835if test $ac_cv_lib_Sgm_SgCreateList = yes; then
30836 libsgm_link=" -lSgm"
30837fi
30838
30839
e56f4f9e
VZ
30840 save_CXXFLAGS=$CXXFLAGS
30841 CXXFLAGS="$TOOLKIT_INCLUDE $CXXFLAGS"
0ad5d837 30842
a848cd7e
SC
30843 echo "$as_me:$LINENO: checking for Motif 2" >&5
30844echo $ECHO_N "checking for Motif 2... $ECHO_C" >&6
0ad5d837
VZ
30845if test "${wx_cv_lib_motif2+set}" = set; then
30846 echo $ECHO_N "(cached) $ECHO_C" >&6
30847else
30848 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
30849/* confdefs.h. */
30850_ACEOF
30851cat confdefs.h >>conftest.$ac_ext
30852cat >>conftest.$ac_ext <<_ACEOF
30853/* end confdefs.h. */
30854
0ad5d837 30855 #include <Xm/Xm.h>
a848cd7e
SC
30856
30857int
30858main ()
30859{
30860
0ad5d837
VZ
30861 #if XmVersion < 2000
30862 Not Motif 2
30863 #endif
a848cd7e
SC
30864
30865 ;
30866 return 0;
30867}
30868_ACEOF
30869rm -f conftest.$ac_objext
30870if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 30871 (eval $ac_compile) 2>conftest.er1
a848cd7e 30872 ac_status=$?
ac1cb8d3
VS
30873 grep -v '^ *+' conftest.er1 >conftest.err
30874 rm -f conftest.er1
30875 cat conftest.err >&5
a848cd7e
SC
30876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30877 (exit $ac_status); } &&
3f60522a
JS
30878 { ac_try='test -z "$ac_cxx_werror_flag"
30879 || test ! -s conftest.err'
ac1cb8d3
VS
30880 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30881 (eval $ac_try) 2>&5
30882 ac_status=$?
30883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30884 (exit $ac_status); }; } &&
30885 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
30886 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30887 (eval $ac_try) 2>&5
30888 ac_status=$?
30889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30890 (exit $ac_status); }; }; then
0ad5d837 30891 wx_cv_lib_motif2="yes"
a848cd7e
SC
30892else
30893 echo "$as_me: failed program was:" >&5
30894sed 's/^/| /' conftest.$ac_ext >&5
30895
0ad5d837
VZ
30896wx_cv_lib_motif2="no"
30897fi
30898rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30899fi
30900echo "$as_me:$LINENO: result: $wx_cv_lib_motif2" >&5
30901echo "${ECHO_T}$wx_cv_lib_motif2" >&6
30902 if test "$wx_cv_lib_motif2" = "yes"; then
30903 cat >>confdefs.h <<\_ACEOF
30904#define __WXMOTIF20__ 1
30905_ACEOF
a848cd7e 30906
0ad5d837
VZ
30907 else
30908 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
30909#define __WXMOTIF20__ 0
30910_ACEOF
30911
0ad5d837 30912 fi
2113bc77
MW
30913
30914 echo "$as_me:$LINENO: checking whether Motif is Lesstif" >&5
30915echo $ECHO_N "checking whether Motif is Lesstif... $ECHO_C" >&6
0ad5d837
VZ
30916if test "${wx_cv_lib_lesstif+set}" = set; then
30917 echo $ECHO_N "(cached) $ECHO_C" >&6
30918else
30919 cat >conftest.$ac_ext <<_ACEOF
2113bc77
MW
30920/* confdefs.h. */
30921_ACEOF
30922cat confdefs.h >>conftest.$ac_ext
30923cat >>conftest.$ac_ext <<_ACEOF
30924/* end confdefs.h. */
30925
0ad5d837 30926 #include <Xm/Xm.h>
2113bc77
MW
30927
30928int
30929main ()
30930{
30931
0ad5d837
VZ
30932 #if !defined(LesstifVersion) || LesstifVersion <= 0
30933 Not Lesstif
30934 #endif
2113bc77
MW
30935
30936 ;
30937 return 0;
30938}
30939_ACEOF
30940rm -f conftest.$ac_objext
30941if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30942 (eval $ac_compile) 2>conftest.er1
30943 ac_status=$?
30944 grep -v '^ *+' conftest.er1 >conftest.err
30945 rm -f conftest.er1
30946 cat conftest.err >&5
30947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30948 (exit $ac_status); } &&
3f60522a
JS
30949 { ac_try='test -z "$ac_cxx_werror_flag"
30950 || test ! -s conftest.err'
2113bc77
MW
30951 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30952 (eval $ac_try) 2>&5
30953 ac_status=$?
30954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30955 (exit $ac_status); }; } &&
30956 { ac_try='test -s conftest.$ac_objext'
30957 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30958 (eval $ac_try) 2>&5
30959 ac_status=$?
30960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30961 (exit $ac_status); }; }; then
0ad5d837 30962 wx_cv_lib_lesstif="yes"
2113bc77
MW
30963else
30964 echo "$as_me: failed program was:" >&5
30965sed 's/^/| /' conftest.$ac_ext >&5
30966
0ad5d837
VZ
30967wx_cv_lib_lesstif="no"
30968fi
30969rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2113bc77 30970
0ad5d837
VZ
30971fi
30972echo "$as_me:$LINENO: result: $wx_cv_lib_lesstif" >&5
30973echo "${ECHO_T}$wx_cv_lib_lesstif" >&6
30974 if test "$wx_cv_lib_lesstif" = "yes"; then
30975 cat >>confdefs.h <<\_ACEOF
30976#define __WXLESSTIF__ 1
30977_ACEOF
30978
30979 else
30980 cat >>confdefs.h <<\_ACEOF
2113bc77
MW
30981#define __WXLESSTIF__ 0
30982_ACEOF
30983
0ad5d837 30984 fi
2113bc77 30985
e56f4f9e 30986 CXXFLAGS=$save_CXXFLAGS
a848cd7e 30987
62fa8b3a 30988 GUI_TK_LIBRARY="$GUI_TK_LIBRARY${libsgm_link} -lXm${libp_link} -lXmu -lXext -lXt${libsm_ice_link} -lX11"
a848cd7e
SC
30989 TOOLKIT=MOTIF
30990 GUIDIST=MOTIF_DIST
30991 fi
30992
74b84332 30993 if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then
a848cd7e
SC
30994 if test "$wxUSE_LIBXPM" = "sys"; then
30995 echo "$as_me:$LINENO: checking for Xpm library" >&5
30996echo $ECHO_N "checking for Xpm library... $ECHO_C" >&6
30997
0ad5d837
VZ
30998 ac_find_libraries=
30999 for ac_dir in $SEARCH_LIB;
a848cd7e 31000 do
3eca31dc 31001 for ac_extension in a so sl dylib dll.a; do
a848cd7e
SC
31002 if test -f "$ac_dir/libXpm.$ac_extension"; then
31003 ac_find_libraries=$ac_dir
31004 break 2
31005 fi
31006 done
31007 done
31008
31009 if test "$ac_find_libraries" != "" ; then
31010
0ad5d837 31011 if test "$ac_find_libraries" = "default location"; then
a848cd7e
SC
31012 ac_path_to_link=""
31013 else
0ad5d837
VZ
31014 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
31015 result=$?
31016 if test $result = 0; then
31017 ac_path_to_link=""
31018 else
31019 ac_path_to_link=" -L$ac_find_libraries"
31020 fi
a848cd7e
SC
31021 fi
31022
31023 GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
0ad5d837
VZ
31024 echo "$as_me:$LINENO: result: found in $ac_find_libraries" >&5
31025echo "${ECHO_T}found in $ac_find_libraries" >&6
a848cd7e
SC
31026
31027 echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
31028echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6
31029if test "${wx_cv_x11_xpm_h+set}" = set; then
31030 echo $ECHO_N "(cached) $ECHO_C" >&6
31031else
31032
e56f4f9e
VZ
31033 save_CXXFLAGS=$CXXFLAGS
31034 CXXFLAGS="$TOOLKIT_INCLUDE $CXXFLAGS"
a848cd7e
SC
31035
31036 cat >conftest.$ac_ext <<_ACEOF
31037/* confdefs.h. */
31038_ACEOF
31039cat confdefs.h >>conftest.$ac_ext
31040cat >>conftest.$ac_ext <<_ACEOF
31041/* end confdefs.h. */
31042
31043 #include <X11/xpm.h>
31044
31045int
31046main ()
31047{
31048
31049 int version;
31050 version = XpmLibraryVersion();
31051
31052 ;
31053 return 0;
31054}
31055_ACEOF
31056rm -f conftest.$ac_objext
31057if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 31058 (eval $ac_compile) 2>conftest.er1
a848cd7e 31059 ac_status=$?
ac1cb8d3
VS
31060 grep -v '^ *+' conftest.er1 >conftest.err
31061 rm -f conftest.er1
31062 cat conftest.err >&5
a848cd7e
SC
31063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31064 (exit $ac_status); } &&
3f60522a
JS
31065 { ac_try='test -z "$ac_cxx_werror_flag"
31066 || test ! -s conftest.err'
ac1cb8d3
VS
31067 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31068 (eval $ac_try) 2>&5
31069 ac_status=$?
31070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31071 (exit $ac_status); }; } &&
31072 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
31073 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31074 (eval $ac_try) 2>&5
31075 ac_status=$?
31076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31077 (exit $ac_status); }; }; then
31078 wx_cv_x11_xpm_h=yes
31079else
31080 echo "$as_me: failed program was:" >&5
31081sed 's/^/| /' conftest.$ac_ext >&5
31082
31083wx_cv_x11_xpm_h=no
31084
31085fi
ac1cb8d3 31086rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 31087
e56f4f9e 31088 CXXFLAGS=$save_CXXFLAGS
a848cd7e
SC
31089
31090
31091fi
31092echo "$as_me:$LINENO: result: $wx_cv_x11_xpm_h" >&5
31093echo "${ECHO_T}$wx_cv_x11_xpm_h" >&6
31094
31095 if test $wx_cv_x11_xpm_h = "yes"; then
31096 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXpm"
31097 cat >>confdefs.h <<\_ACEOF
31098#define wxHAVE_LIB_XPM 1
31099_ACEOF
31100
31101 else
31102 { echo "$as_me:$LINENO: WARNING: built-in less efficient XPM decoder will be used" >&5
31103echo "$as_me: WARNING: built-in less efficient XPM decoder will be used" >&2;}
31104 fi
31105 fi
31106
31107 fi
31108
31109 echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
31110echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6
31111if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
31112 echo $ECHO_N "(cached) $ECHO_C" >&6
31113else
31114 ac_check_lib_save_LIBS=$LIBS
31115LIBS="-lXext $GUI_TK_LIBRARY -lX11 $LIBS"
31116cat >conftest.$ac_ext <<_ACEOF
31117/* confdefs.h. */
31118_ACEOF
31119cat confdefs.h >>conftest.$ac_ext
31120cat >>conftest.$ac_ext <<_ACEOF
31121/* end confdefs.h. */
31122
31123/* Override any gcc2 internal prototype to avoid an error. */
31124#ifdef __cplusplus
31125extern "C"
31126#endif
31127/* We use char because int might match the return type of a gcc2
31128 builtin and then its argument prototype would still apply. */
31129char XShapeQueryExtension ();
31130int
31131main ()
31132{
31133XShapeQueryExtension ();
31134 ;
31135 return 0;
31136}
31137_ACEOF
31138rm -f conftest.$ac_objext conftest$ac_exeext
31139if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 31140 (eval $ac_link) 2>conftest.er1
a848cd7e 31141 ac_status=$?
ac1cb8d3
VS
31142 grep -v '^ *+' conftest.er1 >conftest.err
31143 rm -f conftest.er1
31144 cat conftest.err >&5
a848cd7e
SC
31145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31146 (exit $ac_status); } &&
3f60522a
JS
31147 { ac_try='test -z "$ac_cxx_werror_flag"
31148 || test ! -s conftest.err'
ac1cb8d3
VS
31149 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31150 (eval $ac_try) 2>&5
31151 ac_status=$?
31152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31153 (exit $ac_status); }; } &&
31154 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
31155 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31156 (eval $ac_try) 2>&5
31157 ac_status=$?
31158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31159 (exit $ac_status); }; }; then
31160 ac_cv_lib_Xext_XShapeQueryExtension=yes
31161else
31162 echo "$as_me: failed program was:" >&5
31163sed 's/^/| /' conftest.$ac_ext >&5
31164
31165ac_cv_lib_Xext_XShapeQueryExtension=no
31166fi
ac1cb8d3
VS
31167rm -f conftest.err conftest.$ac_objext \
31168 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
31169LIBS=$ac_check_lib_save_LIBS
31170fi
31171echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
31172echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6
31173if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
31174
31175 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXext"
31176 wxHAVE_XEXT_LIB=1
31177
31178fi
31179
31180
31181 if test "$wxHAVE_XEXT_LIB" = 1; then
e56f4f9e
VZ
31182 save_CXXFLAGS="$CXXFLAGS"
31183 CXXFLAGS="$TOOLKIT_INCLUDE $CXXFLAGS"
a848cd7e
SC
31184
31185 echo "$as_me:$LINENO: checking for X11/extensions/shape.h" >&5
31186echo $ECHO_N "checking for X11/extensions/shape.h... $ECHO_C" >&6
31187 cat >conftest.$ac_ext <<_ACEOF
31188/* confdefs.h. */
31189_ACEOF
31190cat confdefs.h >>conftest.$ac_ext
31191cat >>conftest.$ac_ext <<_ACEOF
31192/* end confdefs.h. */
31193
31194 #include <X11/Xlib.h>
31195 #include <X11/extensions/shape.h>
31196
31197int
31198main ()
31199{
31200
31201 int dummy1, dummy2;
31202 XShapeQueryExtension((Display*)NULL,
31203 (int*)NULL, (int*)NULL);
31204
31205 ;
31206 return 0;
31207}
31208_ACEOF
31209rm -f conftest.$ac_objext
31210if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 31211 (eval $ac_compile) 2>conftest.er1
a848cd7e 31212 ac_status=$?
ac1cb8d3
VS
31213 grep -v '^ *+' conftest.er1 >conftest.err
31214 rm -f conftest.er1
31215 cat conftest.err >&5
a848cd7e
SC
31216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31217 (exit $ac_status); } &&
3f60522a
JS
31218 { ac_try='test -z "$ac_cxx_werror_flag"
31219 || test ! -s conftest.err'
ac1cb8d3
VS
31220 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31221 (eval $ac_try) 2>&5
31222 ac_status=$?
31223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31224 (exit $ac_status); }; } &&
31225 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
31226 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31227 (eval $ac_try) 2>&5
31228 ac_status=$?
31229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31230 (exit $ac_status); }; }; then
31231
31232 cat >>confdefs.h <<\_ACEOF
31233#define HAVE_XSHAPE 1
31234_ACEOF
31235
31236 echo "$as_me:$LINENO: result: found" >&5
31237echo "${ECHO_T}found" >&6
31238
31239else
31240 echo "$as_me: failed program was:" >&5
31241sed 's/^/| /' conftest.$ac_ext >&5
31242
31243
31244 echo "$as_me:$LINENO: result: not found" >&5
31245echo "${ECHO_T}not found" >&6
31246
31247fi
ac1cb8d3 31248rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e56f4f9e 31249 CXXFLAGS="$save_CXXFLAGS"
a848cd7e
SC
31250
31251 fi
31252 fi
31253
31254 if test "$wxUSE_MAC" = 1; then
31255 echo "$as_me:$LINENO: checking for compiler syntax to enable Pascal strings" >&5
31256echo $ECHO_N "checking for compiler syntax to enable Pascal strings... $ECHO_C" >&6
31257 if test "$GCC" = yes; then
31258 echo "$as_me:$LINENO: result: gcc" >&5
31259echo "${ECHO_T}gcc" >&6
31260 CPPFLAGS_PASCAL="-fpascal-strings"
31261 elif test "`echo $CXX | sed -e 's@.*/@@'`" = "xlC"; then
31262 echo "$as_me:$LINENO: result: xlc" >&5
31263echo "${ECHO_T}xlc" >&6
31264 CPPFLAGS_PASCAL="-qmacpstr"
31265 else
31266 echo "$as_me:$LINENO: result: none" >&5
31267echo "${ECHO_T}none" >&6
31268 fi
31269
1e9e8aba 31270 if test "x$wxUSE_UNIX" = "xyes"; then
c92ad099 31271 CPPFLAGS="$CPPFLAGS_PASCAL -I\${top_srcdir}/src/mac/carbon/morefilex -I/Developer/Headers/FlatCarbon $CPPFLAGS"
1e9e8aba 31272 else
c92ad099 31273 CPPFLAGS="$CPPFLAGS_PASCAL -I\${top_srcdir}/src/mac/carbon/morefilex -DTARGET_CARBON $CPPFLAGS"
1e9e8aba 31274 fi
a848cd7e 31275
a848cd7e
SC
31276 TOOLKIT=MAC
31277 GUIDIST=MACX_DIST
dd21ced8 31278 WXBASEPORT="_carbon"
a848cd7e
SC
31279 fi
31280
31281 if test "$wxUSE_COCOA" = 1; then
a848cd7e
SC
31282 TOOLKIT=COCOA
31283 GUIDIST=COCOA_DIST
31284 fi
31285
31286 if test "$wxUSE_PM" = 1; then
31287 TOOLKIT=PM
de59c161
RD
31288 GUIDIST=PM_DIST
31289 echo "$as_me:$LINENO: checking for type SPBCDATA" >&5
31290echo $ECHO_N "checking for type SPBCDATA... $ECHO_C" >&6
31291if test "${wx_cv_spbcdata+set}" = set; then
31292 echo $ECHO_N "(cached) $ECHO_C" >&6
31293else
31294
31295 cat >conftest.$ac_ext <<_ACEOF
de59c161
RD
31296/* confdefs.h. */
31297_ACEOF
31298cat confdefs.h >>conftest.$ac_ext
31299cat >>conftest.$ac_ext <<_ACEOF
31300/* end confdefs.h. */
31301
31302 #define INCL_PM
31303 #include <os2.h>
31304
31305int
31306main ()
31307{
31308
31309 SPBCDATA test;
31310
31311 ;
31312 return 0;
31313}
31314_ACEOF
31315rm -f conftest.$ac_objext
31316if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 31317 (eval $ac_compile) 2>conftest.er1
de59c161 31318 ac_status=$?
ac1cb8d3
VS
31319 grep -v '^ *+' conftest.er1 >conftest.err
31320 rm -f conftest.er1
31321 cat conftest.err >&5
de59c161
RD
31322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31323 (exit $ac_status); } &&
3f60522a
JS
31324 { ac_try='test -z "$ac_cxx_werror_flag"
31325 || test ! -s conftest.err'
ac1cb8d3
VS
31326 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31327 (eval $ac_try) 2>&5
31328 ac_status=$?
31329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31330 (exit $ac_status); }; } &&
31331 { ac_try='test -s conftest.$ac_objext'
de59c161
RD
31332 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31333 (eval $ac_try) 2>&5
31334 ac_status=$?
31335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31336 (exit $ac_status); }; }; then
31337 wx_cv_spbcdata=yes
31338else
31339 echo "$as_me: failed program was:" >&5
31340sed 's/^/| /' conftest.$ac_ext >&5
31341
31342wx_cv_spbcdata=no
31343
31344fi
ac1cb8d3 31345rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
de59c161
RD
31346
31347
31348fi
31349echo "$as_me:$LINENO: result: $wx_cv_spbcdata" >&5
31350echo "${ECHO_T}$wx_cv_spbcdata" >&6
31351
31352 if test $wx_cv_spbcdata = "yes"; then
31353 cat >>confdefs.h <<\_ACEOF
31354#define HAVE_SPBCDATA 1
31355_ACEOF
31356
31357 fi
a848cd7e
SC
31358 fi
31359
31360 if test "$TOOLKIT" = "PM" ; then
31361 TOOLKIT_DIR="os2"
31362 else
31363 TOOLKIT_DIR=`echo ${TOOLKIT} | tr "[A-Z]" "[a-z]"`
31364 fi
31365
a848cd7e 31366 if test "$wxUSE_UNIVERSAL" = "yes"; then
a848cd7e
SC
31367 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXUNIVERSAL__"
31368 WIDGET_SET=univ
a848cd7e
SC
31369 fi
31370
31371 GUIDIST="${GUIDIST} SAMPLES_DIST DEMOS_DIST UTILS_DIST MISC_DIST"
31372 DISTDIR="wx\$(TOOLKIT)"
31373else
31374 USE_GUI=0
31375
31376 TOOLKIT_DIR="base"
31377
31378 if test "$USE_WIN32" = 1 ; then
a848cd7e 31379 TOOLKIT="MSW"
a848cd7e
SC
31380 fi
31381
a848cd7e
SC
31382 GUIDIST="BASE_DIST"
31383 DISTDIR="wxBase"
31384fi
31385
31386
d12aef51
VZ
31387if test "$wxUSE_GUI" = "yes"; then
31388 if test "$wxUSE_UNIX" = "yes" -a "$wxUSE_PM" != 1; then
31389
31390for ac_header in X11/Xlib.h
31391do
31392as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
31393if eval "test \"\${$as_ac_Header+set}\" = set"; then
31394 echo "$as_me:$LINENO: checking for $ac_header" >&5
31395echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
31396if eval "test \"\${$as_ac_Header+set}\" = set"; then
31397 echo $ECHO_N "(cached) $ECHO_C" >&6
31398fi
31399echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
31400echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
31401else
31402 # Is the header compilable?
31403echo "$as_me:$LINENO: checking $ac_header usability" >&5
31404echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
31405cat >conftest.$ac_ext <<_ACEOF
31406/* confdefs.h. */
31407_ACEOF
31408cat confdefs.h >>conftest.$ac_ext
31409cat >>conftest.$ac_ext <<_ACEOF
31410/* end confdefs.h. */
31411$ac_includes_default
31412#include <$ac_header>
31413_ACEOF
31414rm -f conftest.$ac_objext
31415if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31416 (eval $ac_compile) 2>conftest.er1
31417 ac_status=$?
31418 grep -v '^ *+' conftest.er1 >conftest.err
31419 rm -f conftest.er1
31420 cat conftest.err >&5
31421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31422 (exit $ac_status); } &&
3f60522a
JS
31423 { ac_try='test -z "$ac_cxx_werror_flag"
31424 || test ! -s conftest.err'
d12aef51
VZ
31425 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31426 (eval $ac_try) 2>&5
31427 ac_status=$?
31428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31429 (exit $ac_status); }; } &&
31430 { ac_try='test -s conftest.$ac_objext'
31431 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31432 (eval $ac_try) 2>&5
31433 ac_status=$?
31434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31435 (exit $ac_status); }; }; then
31436 ac_header_compiler=yes
31437else
31438 echo "$as_me: failed program was:" >&5
31439sed 's/^/| /' conftest.$ac_ext >&5
31440
31441ac_header_compiler=no
31442fi
31443rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
31444echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31445echo "${ECHO_T}$ac_header_compiler" >&6
31446
31447# Is the header present?
31448echo "$as_me:$LINENO: checking $ac_header presence" >&5
31449echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
31450cat >conftest.$ac_ext <<_ACEOF
31451/* confdefs.h. */
31452_ACEOF
31453cat confdefs.h >>conftest.$ac_ext
31454cat >>conftest.$ac_ext <<_ACEOF
31455/* end confdefs.h. */
31456#include <$ac_header>
31457_ACEOF
31458if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
31459 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
31460 ac_status=$?
31461 grep -v '^ *+' conftest.er1 >conftest.err
31462 rm -f conftest.er1
31463 cat conftest.err >&5
31464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31465 (exit $ac_status); } >/dev/null; then
31466 if test -s conftest.err; then
5d7b7554
VZ
31467 ac_cpp_err=$ac_cxx_preproc_warn_flag
31468 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
d12aef51
VZ
31469 else
31470 ac_cpp_err=
31471 fi
31472else
31473 ac_cpp_err=yes
31474fi
31475if test -z "$ac_cpp_err"; then
31476 ac_header_preproc=yes
31477else
31478 echo "$as_me: failed program was:" >&5
31479sed 's/^/| /' conftest.$ac_ext >&5
31480
31481 ac_header_preproc=no
31482fi
31483rm -f conftest.err conftest.$ac_ext
31484echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31485echo "${ECHO_T}$ac_header_preproc" >&6
31486
31487# So? What about this header?
5d7b7554 31488case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
d12aef51
VZ
31489 yes:no: )
31490 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
31491echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
31492 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
31493echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
31494 ac_header_preproc=yes
31495 ;;
31496 no:yes:* )
31497 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
31498echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
31499 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
31500echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
31501 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
31502echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
31503 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
31504echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
31505 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
31506echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
31507 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
31508echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
31509 (
31510 cat <<\_ASBOX
31511## ----------------------------------------- ##
31512## Report this to wx-dev@lists.wxwidgets.org ##
31513## ----------------------------------------- ##
31514_ASBOX
31515 ) |
31516 sed "s/^/$as_me: WARNING: /" >&2
31517 ;;
31518esac
31519echo "$as_me:$LINENO: checking for $ac_header" >&5
31520echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
31521if eval "test \"\${$as_ac_Header+set}\" = set"; then
31522 echo $ECHO_N "(cached) $ECHO_C" >&6
31523else
31524 eval "$as_ac_Header=\$ac_header_preproc"
31525fi
31526echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
31527echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
31528
31529fi
31530if test `eval echo '${'$as_ac_Header'}'` = yes; then
31531 cat >>confdefs.h <<_ACEOF
31532#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
31533_ACEOF
31534
31535fi
31536
31537done
31538
31539
31540for ac_header in X11/XKBlib.h
31541do
31542as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
31543echo "$as_me:$LINENO: checking for $ac_header" >&5
31544echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
31545if eval "test \"\${$as_ac_Header+set}\" = set"; then
31546 echo $ECHO_N "(cached) $ECHO_C" >&6
31547else
31548 cat >conftest.$ac_ext <<_ACEOF
31549/* confdefs.h. */
31550_ACEOF
31551cat confdefs.h >>conftest.$ac_ext
31552cat >>conftest.$ac_ext <<_ACEOF
31553/* end confdefs.h. */
31554
31555 #if HAVE_X11_XLIB_H
31556 #include <X11/Xlib.h>
31557 #endif
31558
31559
31560#include <$ac_header>
31561_ACEOF
31562rm -f conftest.$ac_objext
31563if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31564 (eval $ac_compile) 2>conftest.er1
31565 ac_status=$?
31566 grep -v '^ *+' conftest.er1 >conftest.err
31567 rm -f conftest.er1
31568 cat conftest.err >&5
31569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31570 (exit $ac_status); } &&
3f60522a
JS
31571 { ac_try='test -z "$ac_cxx_werror_flag"
31572 || test ! -s conftest.err'
d12aef51
VZ
31573 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31574 (eval $ac_try) 2>&5
31575 ac_status=$?
31576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31577 (exit $ac_status); }; } &&
31578 { ac_try='test -s conftest.$ac_objext'
31579 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31580 (eval $ac_try) 2>&5
31581 ac_status=$?
31582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31583 (exit $ac_status); }; }; then
31584 eval "$as_ac_Header=yes"
31585else
31586 echo "$as_me: failed program was:" >&5
31587sed 's/^/| /' conftest.$ac_ext >&5
31588
31589eval "$as_ac_Header=no"
31590fi
31591rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
31592fi
31593echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
31594echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
31595if test `eval echo '${'$as_ac_Header'}'` = yes; then
31596 cat >>confdefs.h <<_ACEOF
31597#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
31598_ACEOF
31599
31600fi
31601
31602done
31603
31604 fi
31605fi
31606
a848cd7e
SC
31607
31608
31609IODBC_C_SRC=""
31610
31611
31612if test "$TOOLKIT" != "MSW" ; then
31613
31614 if test "$wxUSE_ODBC" = "sys" -o "$wxUSE_ODBC" = "yes" ; then
31615
31616 if test "${ac_cv_header_sql_h+set}" = set; then
31617 echo "$as_me:$LINENO: checking for sql.h" >&5
31618echo $ECHO_N "checking for sql.h... $ECHO_C" >&6
31619if test "${ac_cv_header_sql_h+set}" = set; then
31620 echo $ECHO_N "(cached) $ECHO_C" >&6
31621fi
31622echo "$as_me:$LINENO: result: $ac_cv_header_sql_h" >&5
31623echo "${ECHO_T}$ac_cv_header_sql_h" >&6
31624else
31625 # Is the header compilable?
31626echo "$as_me:$LINENO: checking sql.h usability" >&5
31627echo $ECHO_N "checking sql.h usability... $ECHO_C" >&6
31628cat >conftest.$ac_ext <<_ACEOF
31629/* confdefs.h. */
31630_ACEOF
31631cat confdefs.h >>conftest.$ac_ext
31632cat >>conftest.$ac_ext <<_ACEOF
31633/* end confdefs.h. */
31634$ac_includes_default
31635#include <sql.h>
31636_ACEOF
31637rm -f conftest.$ac_objext
31638if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 31639 (eval $ac_compile) 2>conftest.er1
a848cd7e 31640 ac_status=$?
ac1cb8d3
VS
31641 grep -v '^ *+' conftest.er1 >conftest.err
31642 rm -f conftest.er1
31643 cat conftest.err >&5
a848cd7e
SC
31644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31645 (exit $ac_status); } &&
3f60522a
JS
31646 { ac_try='test -z "$ac_cxx_werror_flag"
31647 || test ! -s conftest.err'
ac1cb8d3
VS
31648 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31649 (eval $ac_try) 2>&5
31650 ac_status=$?
31651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31652 (exit $ac_status); }; } &&
31653 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
31654 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31655 (eval $ac_try) 2>&5
31656 ac_status=$?
31657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31658 (exit $ac_status); }; }; then
31659 ac_header_compiler=yes
31660else
31661 echo "$as_me: failed program was:" >&5
31662sed 's/^/| /' conftest.$ac_ext >&5
31663
31664ac_header_compiler=no
31665fi
ac1cb8d3 31666rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
31667echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31668echo "${ECHO_T}$ac_header_compiler" >&6
31669
31670# Is the header present?
31671echo "$as_me:$LINENO: checking sql.h presence" >&5
31672echo $ECHO_N "checking sql.h presence... $ECHO_C" >&6
31673cat >conftest.$ac_ext <<_ACEOF
31674/* confdefs.h. */
31675_ACEOF
31676cat confdefs.h >>conftest.$ac_ext
31677cat >>conftest.$ac_ext <<_ACEOF
31678/* end confdefs.h. */
31679#include <sql.h>
31680_ACEOF
31681if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
31682 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
31683 ac_status=$?
31684 grep -v '^ *+' conftest.er1 >conftest.err
31685 rm -f conftest.er1
31686 cat conftest.err >&5
31687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31688 (exit $ac_status); } >/dev/null; then
31689 if test -s conftest.err; then
5d7b7554
VZ
31690 ac_cpp_err=$ac_cxx_preproc_warn_flag
31691 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
31692 else
31693 ac_cpp_err=
31694 fi
31695else
31696 ac_cpp_err=yes
31697fi
31698if test -z "$ac_cpp_err"; then
31699 ac_header_preproc=yes
31700else
31701 echo "$as_me: failed program was:" >&5
31702sed 's/^/| /' conftest.$ac_ext >&5
31703
31704 ac_header_preproc=no
31705fi
31706rm -f conftest.err conftest.$ac_ext
31707echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31708echo "${ECHO_T}$ac_header_preproc" >&6
31709
31710# So? What about this header?
5d7b7554 31711case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
ac1cb8d3 31712 yes:no: )
a848cd7e
SC
31713 { echo "$as_me:$LINENO: WARNING: sql.h: accepted by the compiler, rejected by the preprocessor!" >&5
31714echo "$as_me: WARNING: sql.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
31715 { echo "$as_me:$LINENO: WARNING: sql.h: proceeding with the compiler's result" >&5
31716echo "$as_me: WARNING: sql.h: proceeding with the compiler's result" >&2;}
31717 ac_header_preproc=yes
a848cd7e 31718 ;;
ac1cb8d3 31719 no:yes:* )
a848cd7e
SC
31720 { echo "$as_me:$LINENO: WARNING: sql.h: present but cannot be compiled" >&5
31721echo "$as_me: WARNING: sql.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
31722 { echo "$as_me:$LINENO: WARNING: sql.h: check for missing prerequisite headers?" >&5
31723echo "$as_me: WARNING: sql.h: check for missing prerequisite headers?" >&2;}
31724 { echo "$as_me:$LINENO: WARNING: sql.h: see the Autoconf documentation" >&5
31725echo "$as_me: WARNING: sql.h: see the Autoconf documentation" >&2;}
31726 { echo "$as_me:$LINENO: WARNING: sql.h: section \"Present But Cannot Be Compiled\"" >&5
31727echo "$as_me: WARNING: sql.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
31728 { echo "$as_me:$LINENO: WARNING: sql.h: proceeding with the preprocessor's result" >&5
31729echo "$as_me: WARNING: sql.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
31730 { echo "$as_me:$LINENO: WARNING: sql.h: in the future, the compiler will take precedence" >&5
31731echo "$as_me: WARNING: sql.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
31732 (
31733 cat <<\_ASBOX
ac1cb8d3
VS
31734## ----------------------------------------- ##
31735## Report this to wx-dev@lists.wxwidgets.org ##
31736## ----------------------------------------- ##
a848cd7e
SC
31737_ASBOX
31738 ) |
31739 sed "s/^/$as_me: WARNING: /" >&2
31740 ;;
31741esac
31742echo "$as_me:$LINENO: checking for sql.h" >&5
31743echo $ECHO_N "checking for sql.h... $ECHO_C" >&6
31744if test "${ac_cv_header_sql_h+set}" = set; then
31745 echo $ECHO_N "(cached) $ECHO_C" >&6
31746else
31747 ac_cv_header_sql_h=$ac_header_preproc
31748fi
31749echo "$as_me:$LINENO: result: $ac_cv_header_sql_h" >&5
31750echo "${ECHO_T}$ac_cv_header_sql_h" >&6
31751
31752fi
31753if test $ac_cv_header_sql_h = yes; then
31754 found_sql_h=1
31755fi
31756
31757
31758 if test "x$found_sql_h" = "x1" ; then
31759 echo "$as_me:$LINENO: checking for SQLAllocEnv in -liodbc" >&5
31760echo $ECHO_N "checking for SQLAllocEnv in -liodbc... $ECHO_C" >&6
31761if test "${ac_cv_lib_iodbc_SQLAllocEnv+set}" = set; then
31762 echo $ECHO_N "(cached) $ECHO_C" >&6
31763else
31764 ac_check_lib_save_LIBS=$LIBS
31765LIBS="-liodbc $LIBS"
31766cat >conftest.$ac_ext <<_ACEOF
31767/* confdefs.h. */
31768_ACEOF
31769cat confdefs.h >>conftest.$ac_ext
31770cat >>conftest.$ac_ext <<_ACEOF
31771/* end confdefs.h. */
31772
31773/* Override any gcc2 internal prototype to avoid an error. */
31774#ifdef __cplusplus
31775extern "C"
31776#endif
31777/* We use char because int might match the return type of a gcc2
31778 builtin and then its argument prototype would still apply. */
31779char SQLAllocEnv ();
31780int
31781main ()
31782{
31783SQLAllocEnv ();
31784 ;
31785 return 0;
31786}
31787_ACEOF
31788rm -f conftest.$ac_objext conftest$ac_exeext
31789if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 31790 (eval $ac_link) 2>conftest.er1
a848cd7e 31791 ac_status=$?
ac1cb8d3
VS
31792 grep -v '^ *+' conftest.er1 >conftest.err
31793 rm -f conftest.er1
31794 cat conftest.err >&5
a848cd7e
SC
31795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31796 (exit $ac_status); } &&
3f60522a
JS
31797 { ac_try='test -z "$ac_cxx_werror_flag"
31798 || test ! -s conftest.err'
ac1cb8d3
VS
31799 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31800 (eval $ac_try) 2>&5
31801 ac_status=$?
31802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31803 (exit $ac_status); }; } &&
31804 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
31805 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31806 (eval $ac_try) 2>&5
31807 ac_status=$?
31808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31809 (exit $ac_status); }; }; then
31810 ac_cv_lib_iodbc_SQLAllocEnv=yes
31811else
31812 echo "$as_me: failed program was:" >&5
31813sed 's/^/| /' conftest.$ac_ext >&5
31814
31815ac_cv_lib_iodbc_SQLAllocEnv=no
31816fi
ac1cb8d3
VS
31817rm -f conftest.err conftest.$ac_objext \
31818 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
31819LIBS=$ac_check_lib_save_LIBS
31820fi
31821echo "$as_me:$LINENO: result: $ac_cv_lib_iodbc_SQLAllocEnv" >&5
31822echo "${ECHO_T}$ac_cv_lib_iodbc_SQLAllocEnv" >&6
31823if test $ac_cv_lib_iodbc_SQLAllocEnv = yes; then
31824 ODBC_LINK=" -liodbc"
31825else
31826
31827 echo "$as_me:$LINENO: checking for SQLAllocEnv in -lunixodbc" >&5
31828echo $ECHO_N "checking for SQLAllocEnv in -lunixodbc... $ECHO_C" >&6
31829if test "${ac_cv_lib_unixodbc_SQLAllocEnv+set}" = set; then
31830 echo $ECHO_N "(cached) $ECHO_C" >&6
31831else
31832 ac_check_lib_save_LIBS=$LIBS
31833LIBS="-lunixodbc $LIBS"
31834cat >conftest.$ac_ext <<_ACEOF
31835/* confdefs.h. */
31836_ACEOF
31837cat confdefs.h >>conftest.$ac_ext
31838cat >>conftest.$ac_ext <<_ACEOF
31839/* end confdefs.h. */
31840
31841/* Override any gcc2 internal prototype to avoid an error. */
31842#ifdef __cplusplus
31843extern "C"
31844#endif
31845/* We use char because int might match the return type of a gcc2
31846 builtin and then its argument prototype would still apply. */
31847char SQLAllocEnv ();
31848int
31849main ()
31850{
31851SQLAllocEnv ();
31852 ;
31853 return 0;
31854}
31855_ACEOF
31856rm -f conftest.$ac_objext conftest$ac_exeext
31857if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 31858 (eval $ac_link) 2>conftest.er1
a848cd7e 31859 ac_status=$?
ac1cb8d3
VS
31860 grep -v '^ *+' conftest.er1 >conftest.err
31861 rm -f conftest.er1
31862 cat conftest.err >&5
a848cd7e
SC
31863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31864 (exit $ac_status); } &&
3f60522a
JS
31865 { ac_try='test -z "$ac_cxx_werror_flag"
31866 || test ! -s conftest.err'
ac1cb8d3
VS
31867 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31868 (eval $ac_try) 2>&5
31869 ac_status=$?
31870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31871 (exit $ac_status); }; } &&
31872 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
31873 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31874 (eval $ac_try) 2>&5
31875 ac_status=$?
31876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31877 (exit $ac_status); }; }; then
31878 ac_cv_lib_unixodbc_SQLAllocEnv=yes
31879else
31880 echo "$as_me: failed program was:" >&5
31881sed 's/^/| /' conftest.$ac_ext >&5
31882
31883ac_cv_lib_unixodbc_SQLAllocEnv=no
31884fi
ac1cb8d3
VS
31885rm -f conftest.err conftest.$ac_objext \
31886 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
31887LIBS=$ac_check_lib_save_LIBS
31888fi
31889echo "$as_me:$LINENO: result: $ac_cv_lib_unixodbc_SQLAllocEnv" >&5
31890echo "${ECHO_T}$ac_cv_lib_unixodbc_SQLAllocEnv" >&6
31891if test $ac_cv_lib_unixodbc_SQLAllocEnv = yes; then
31892 ODBC_LINK=" -lunixodbc"
31893else
31894
31895 echo "$as_me:$LINENO: checking for SQLAllocEnv in -lodbc" >&5
31896echo $ECHO_N "checking for SQLAllocEnv in -lodbc... $ECHO_C" >&6
31897if test "${ac_cv_lib_odbc_SQLAllocEnv+set}" = set; then
31898 echo $ECHO_N "(cached) $ECHO_C" >&6
31899else
31900 ac_check_lib_save_LIBS=$LIBS
31901LIBS="-lodbc $LIBS"
31902cat >conftest.$ac_ext <<_ACEOF
31903/* confdefs.h. */
31904_ACEOF
31905cat confdefs.h >>conftest.$ac_ext
31906cat >>conftest.$ac_ext <<_ACEOF
31907/* end confdefs.h. */
31908
31909/* Override any gcc2 internal prototype to avoid an error. */
31910#ifdef __cplusplus
31911extern "C"
31912#endif
31913/* We use char because int might match the return type of a gcc2
31914 builtin and then its argument prototype would still apply. */
31915char SQLAllocEnv ();
31916int
31917main ()
31918{
31919SQLAllocEnv ();
31920 ;
31921 return 0;
31922}
31923_ACEOF
31924rm -f conftest.$ac_objext conftest$ac_exeext
31925if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 31926 (eval $ac_link) 2>conftest.er1
a848cd7e 31927 ac_status=$?
ac1cb8d3
VS
31928 grep -v '^ *+' conftest.er1 >conftest.err
31929 rm -f conftest.er1
31930 cat conftest.err >&5
a848cd7e
SC
31931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31932 (exit $ac_status); } &&
3f60522a
JS
31933 { ac_try='test -z "$ac_cxx_werror_flag"
31934 || test ! -s conftest.err'
ac1cb8d3
VS
31935 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31936 (eval $ac_try) 2>&5
31937 ac_status=$?
31938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31939 (exit $ac_status); }; } &&
31940 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
31941 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31942 (eval $ac_try) 2>&5
31943 ac_status=$?
31944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31945 (exit $ac_status); }; }; then
31946 ac_cv_lib_odbc_SQLAllocEnv=yes
31947else
31948 echo "$as_me: failed program was:" >&5
31949sed 's/^/| /' conftest.$ac_ext >&5
31950
31951ac_cv_lib_odbc_SQLAllocEnv=no
31952fi
ac1cb8d3
VS
31953rm -f conftest.err conftest.$ac_objext \
31954 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
31955LIBS=$ac_check_lib_save_LIBS
31956fi
31957echo "$as_me:$LINENO: result: $ac_cv_lib_odbc_SQLAllocEnv" >&5
31958echo "${ECHO_T}$ac_cv_lib_odbc_SQLAllocEnv" >&6
31959if test $ac_cv_lib_odbc_SQLAllocEnv = yes; then
31960 ODBC_LINK=" -lodbc"
31961fi
31962
31963
31964fi
31965
31966
31967fi
31968
31969 fi
31970 if test "x$ODBC_LINK" = "x" ; then
31971 if test "$wxUSE_ODBC" = "sys" ; then
31972 { { echo "$as_me:$LINENO: error: system ODBC library not found! Use --with-odbc=builtin to use built-in version" >&5
31973echo "$as_me: error: system ODBC library not found! Use --with-odbc=builtin to use built-in version" >&2;}
31974 { (exit 1); exit 1; }; }
31975 else
31976 { echo "$as_me:$LINENO: WARNING: system ODBC library not found, will use built-in instead" >&5
31977echo "$as_me: WARNING: system ODBC library not found, will use built-in instead" >&2;}
31978 wxUSE_ODBC=builtin
31979 fi
31980 else
31981 wxUSE_ODBC=sys
31982 fi
31983 fi
a848cd7e 31984
2da0c077
RD
31985 if test "$wxUSE_ODBC" = "builtin" ; then
31986 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
31987#define wxUSE_BUILTIN_IODBC 1
31988_ACEOF
31989
a848cd7e
SC
31990 fi
31991fi
31992
2da0c077
RD
31993if test "$wxUSE_ODBC" != "no" ; then
31994 cat >>confdefs.h <<\_ACEOF
31995#define wxUSE_ODBC 1
31996_ACEOF
31997
31998 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS db"
31999
5ff751d6 32000 WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS -D_IODBC_"
2da0c077 32001fi
a848cd7e 32002
01cb68df 32003
a848cd7e 32004if test "$wxUSE_DISPLAY" = "yes"; then
2a5d7a98 32005 if test "$wxUSE_UNIX" = "yes" -a "$wxUSE_MAC" != 1 -a "$wxUSE_COCOA" != 1; then
a848cd7e
SC
32006 echo "$as_me:$LINENO: checking for Xinerama" >&5
32007echo $ECHO_N "checking for Xinerama... $ECHO_C" >&6
32008
0ad5d837
VZ
32009 ac_find_libraries=
32010 for ac_dir in $SEARCH_LIB;
32011 do
32012 for ac_extension in a so sl dylib dll.a; do
32013 if test -f "$ac_dir/libXinerama.$ac_extension"; then
32014 ac_find_libraries=$ac_dir
32015 break 2
32016 fi
32017 done
32018 done
32019
a848cd7e
SC
32020 if test "$ac_find_libraries" != "" ; then
32021
0ad5d837 32022 if test "$ac_find_libraries" = "default location"; then
a848cd7e
SC
32023 ac_path_to_link=""
32024 else
0ad5d837
VZ
32025 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
32026 result=$?
32027 if test $result = 0; then
32028 ac_path_to_link=""
32029 else
32030 ac_path_to_link=" -L$ac_find_libraries"
32031 fi
a848cd7e
SC
32032 fi
32033
32034 if test "$ac_path_to_link" != " -L/usr/lib" ; then
32035 LDFLAGS="$LDFLAGS $ac_path_to_link"
32036 fi
32037 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXinerama"
32038 echo "$as_me:$LINENO: result: yes" >&5
32039echo "${ECHO_T}yes" >&6
32040
32041 echo "$as_me:$LINENO: checking for Xxf86vm extension" >&5
32042echo $ECHO_N "checking for Xxf86vm extension... $ECHO_C" >&6
32043
0ad5d837
VZ
32044 ac_find_libraries=
32045 for ac_dir in $SEARCH_LIB;
a848cd7e 32046 do
3eca31dc 32047 for ac_extension in a so sl dylib dll.a; do
a848cd7e
SC
32048 if test -f "$ac_dir/libXxf86vm.$ac_extension"; then
32049 ac_find_libraries=$ac_dir
32050 break 2
32051 fi
32052 done
32053 done
32054
32055 if test "$ac_find_libraries" != "" ; then
32056 echo "$as_me:$LINENO: result: yes" >&5
32057echo "${ECHO_T}yes" >&6
32058
32059for ac_header in X11/extensions/xf86vmode.h
32060do
32061as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
32062echo "$as_me:$LINENO: checking for $ac_header" >&5
32063echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
32064if eval "test \"\${$as_ac_Header+set}\" = set"; then
32065 echo $ECHO_N "(cached) $ECHO_C" >&6
32066else
32067 cat >conftest.$ac_ext <<_ACEOF
32068/* confdefs.h. */
32069_ACEOF
32070cat confdefs.h >>conftest.$ac_ext
32071cat >>conftest.$ac_ext <<_ACEOF
32072/* end confdefs.h. */
32073
32074 #if HAVE_X11_XLIB_H
32075 #include <X11/Xlib.h>
32076 #endif
32077
32078
32079#include <$ac_header>
32080_ACEOF
32081rm -f conftest.$ac_objext
32082if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 32083 (eval $ac_compile) 2>conftest.er1
a848cd7e 32084 ac_status=$?
ac1cb8d3
VS
32085 grep -v '^ *+' conftest.er1 >conftest.err
32086 rm -f conftest.er1
32087 cat conftest.err >&5
a848cd7e
SC
32088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32089 (exit $ac_status); } &&
3f60522a
JS
32090 { ac_try='test -z "$ac_cxx_werror_flag"
32091 || test ! -s conftest.err'
ac1cb8d3
VS
32092 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32093 (eval $ac_try) 2>&5
32094 ac_status=$?
32095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32096 (exit $ac_status); }; } &&
32097 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
32098 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32099 (eval $ac_try) 2>&5
32100 ac_status=$?
32101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32102 (exit $ac_status); }; }; then
32103 eval "$as_ac_Header=yes"
32104else
32105 echo "$as_me: failed program was:" >&5
32106sed 's/^/| /' conftest.$ac_ext >&5
32107
32108eval "$as_ac_Header=no"
32109fi
ac1cb8d3 32110rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
32111fi
32112echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
32113echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
32114if test `eval echo '${'$as_ac_Header'}'` = yes; then
32115 cat >>confdefs.h <<_ACEOF
32116#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
32117_ACEOF
32118
32119 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXxf86vm"
32120
32121fi
32122
32123done
32124
32125 else
32126 echo "$as_me:$LINENO: result: no" >&5
32127echo "${ECHO_T}no" >&6
32128 fi
32129
32130 else
32131 echo "$as_me:$LINENO: result: no" >&5
32132echo "${ECHO_T}no" >&6
dcc1b6ad
VS
32133 { echo "$as_me:$LINENO: WARNING: Xinerama not found; disabling wxDisplay" >&5
32134echo "$as_me: WARNING: Xinerama not found; disabling wxDisplay" >&2;}
a848cd7e
SC
32135 wxUSE_DISPLAY="no"
32136 fi
01cb68df
RG
32137 elif test "$wxUSE_MSW" = 1; then
32138
e5efa97e 32139for ac_header in ddraw.h
01cb68df
RG
32140do
32141as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5294a27e 32142echo "$as_me:$LINENO: checking for $ac_header" >&5
01cb68df
RG
32143echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
32144if eval "test \"\${$as_ac_Header+set}\" = set"; then
32145 echo $ECHO_N "(cached) $ECHO_C" >&6
01cb68df 32146else
5294a27e 32147 cat >conftest.$ac_ext <<_ACEOF
01cb68df
RG
32148/* confdefs.h. */
32149_ACEOF
32150cat confdefs.h >>conftest.$ac_ext
32151cat >>conftest.$ac_ext <<_ACEOF
32152/* end confdefs.h. */
5294a27e
VZ
32153#include <windows.h>
32154
01cb68df
RG
32155#include <$ac_header>
32156_ACEOF
32157rm -f conftest.$ac_objext
32158if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 32159 (eval $ac_compile) 2>conftest.er1
01cb68df 32160 ac_status=$?
ac1cb8d3
VS
32161 grep -v '^ *+' conftest.er1 >conftest.err
32162 rm -f conftest.er1
32163 cat conftest.err >&5
01cb68df
RG
32164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32165 (exit $ac_status); } &&
3f60522a
JS
32166 { ac_try='test -z "$ac_cxx_werror_flag"
32167 || test ! -s conftest.err'
ac1cb8d3
VS
32168 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32169 (eval $ac_try) 2>&5
32170 ac_status=$?
32171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32172 (exit $ac_status); }; } &&
32173 { ac_try='test -s conftest.$ac_objext'
01cb68df
RG
32174 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32175 (eval $ac_try) 2>&5
32176 ac_status=$?
32177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32178 (exit $ac_status); }; }; then
5294a27e 32179 eval "$as_ac_Header=yes"
01cb68df
RG
32180else
32181 echo "$as_me: failed program was:" >&5
32182sed 's/^/| /' conftest.$ac_ext >&5
32183
5294a27e 32184eval "$as_ac_Header=no"
01cb68df 32185fi
ac1cb8d3 32186rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
01cb68df
RG
32187fi
32188echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
32189echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
01cb68df
RG
32190if test `eval echo '${'$as_ac_Header'}'` = yes; then
32191 cat >>confdefs.h <<_ACEOF
32192#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
32193_ACEOF
32194
01cb68df
RG
32195fi
32196
32197done
32198
a848cd7e
SC
32199 fi
32200fi
32201
32202
32203USE_OPENGL=0
32204if test "$wxUSE_OPENGL" = "yes"; then
32205 if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = "1"; then
32206 OPENGL_LIBS="-framework OpenGL -framework AGL"
32207 elif test "$wxUSE_MSW" = 1; then
32208 OPENGL_LIBS="-lopengl32 -lglu32"
32209 else
32210
32211
32212ac_find_includes=
32213for ac_dir in $SEARCH_INCLUDE /usr/include;
32214 do
32215 if test -f "$ac_dir/GL/gl.h"; then
32216 ac_find_includes=$ac_dir
32217 break
32218 fi
32219 done
32220
32221 if test "$ac_find_includes" != "" ; then
32222 echo "$as_me:$LINENO: result: found in $ac_find_includes" >&5
32223echo "${ECHO_T}found in $ac_find_includes" >&6
32224
32225 if test "x$ac_find_includes" = "x/usr/include"; then
32226 ac_path_to_include=""
32227 else
32228 echo "$CPPFLAGS" | grep "\-I$ac_find_includes" > /dev/null
32229 result=$?
32230 if test $result = 0; then
32231 ac_path_to_include=""
32232 else
32233 ac_path_to_include=" -I$ac_find_includes"
32234 fi
32235 fi
32236
c92ad099 32237 CPPFLAGS="$ac_path_to_include $CPPFLAGS"
a848cd7e
SC
32238 fi
32239
32240 if test "${ac_cv_header_GL_gl_h+set}" = set; then
32241 echo "$as_me:$LINENO: checking for GL/gl.h" >&5
32242echo $ECHO_N "checking for GL/gl.h... $ECHO_C" >&6
32243if test "${ac_cv_header_GL_gl_h+set}" = set; then
32244 echo $ECHO_N "(cached) $ECHO_C" >&6
32245fi
32246echo "$as_me:$LINENO: result: $ac_cv_header_GL_gl_h" >&5
32247echo "${ECHO_T}$ac_cv_header_GL_gl_h" >&6
32248else
32249 # Is the header compilable?
32250echo "$as_me:$LINENO: checking GL/gl.h usability" >&5
32251echo $ECHO_N "checking GL/gl.h usability... $ECHO_C" >&6
32252cat >conftest.$ac_ext <<_ACEOF
32253/* confdefs.h. */
32254_ACEOF
32255cat confdefs.h >>conftest.$ac_ext
32256cat >>conftest.$ac_ext <<_ACEOF
32257/* end confdefs.h. */
32258$ac_includes_default
32259#include <GL/gl.h>
32260_ACEOF
32261rm -f conftest.$ac_objext
32262if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 32263 (eval $ac_compile) 2>conftest.er1
a848cd7e 32264 ac_status=$?
ac1cb8d3
VS
32265 grep -v '^ *+' conftest.er1 >conftest.err
32266 rm -f conftest.er1
32267 cat conftest.err >&5
a848cd7e
SC
32268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32269 (exit $ac_status); } &&
3f60522a
JS
32270 { ac_try='test -z "$ac_cxx_werror_flag"
32271 || test ! -s conftest.err'
ac1cb8d3
VS
32272 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32273 (eval $ac_try) 2>&5
32274 ac_status=$?
32275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32276 (exit $ac_status); }; } &&
32277 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
32278 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32279 (eval $ac_try) 2>&5
32280 ac_status=$?
32281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32282 (exit $ac_status); }; }; then
32283 ac_header_compiler=yes
32284else
32285 echo "$as_me: failed program was:" >&5
32286sed 's/^/| /' conftest.$ac_ext >&5
32287
32288ac_header_compiler=no
32289fi
ac1cb8d3 32290rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
32291echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
32292echo "${ECHO_T}$ac_header_compiler" >&6
32293
32294# Is the header present?
32295echo "$as_me:$LINENO: checking GL/gl.h presence" >&5
32296echo $ECHO_N "checking GL/gl.h presence... $ECHO_C" >&6
32297cat >conftest.$ac_ext <<_ACEOF
32298/* confdefs.h. */
32299_ACEOF
32300cat confdefs.h >>conftest.$ac_ext
32301cat >>conftest.$ac_ext <<_ACEOF
32302/* end confdefs.h. */
32303#include <GL/gl.h>
32304_ACEOF
32305if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
32306 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
32307 ac_status=$?
32308 grep -v '^ *+' conftest.er1 >conftest.err
32309 rm -f conftest.er1
32310 cat conftest.err >&5
32311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32312 (exit $ac_status); } >/dev/null; then
32313 if test -s conftest.err; then
5d7b7554
VZ
32314 ac_cpp_err=$ac_cxx_preproc_warn_flag
32315 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
32316 else
32317 ac_cpp_err=
32318 fi
32319else
32320 ac_cpp_err=yes
32321fi
32322if test -z "$ac_cpp_err"; then
32323 ac_header_preproc=yes
32324else
32325 echo "$as_me: failed program was:" >&5
32326sed 's/^/| /' conftest.$ac_ext >&5
32327
32328 ac_header_preproc=no
32329fi
32330rm -f conftest.err conftest.$ac_ext
32331echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
32332echo "${ECHO_T}$ac_header_preproc" >&6
32333
32334# So? What about this header?
5d7b7554 32335case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
ac1cb8d3 32336 yes:no: )
a848cd7e
SC
32337 { echo "$as_me:$LINENO: WARNING: GL/gl.h: accepted by the compiler, rejected by the preprocessor!" >&5
32338echo "$as_me: WARNING: GL/gl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
32339 { echo "$as_me:$LINENO: WARNING: GL/gl.h: proceeding with the compiler's result" >&5
32340echo "$as_me: WARNING: GL/gl.h: proceeding with the compiler's result" >&2;}
32341 ac_header_preproc=yes
a848cd7e 32342 ;;
ac1cb8d3 32343 no:yes:* )
a848cd7e
SC
32344 { echo "$as_me:$LINENO: WARNING: GL/gl.h: present but cannot be compiled" >&5
32345echo "$as_me: WARNING: GL/gl.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
32346 { echo "$as_me:$LINENO: WARNING: GL/gl.h: check for missing prerequisite headers?" >&5
32347echo "$as_me: WARNING: GL/gl.h: check for missing prerequisite headers?" >&2;}
32348 { echo "$as_me:$LINENO: WARNING: GL/gl.h: see the Autoconf documentation" >&5
32349echo "$as_me: WARNING: GL/gl.h: see the Autoconf documentation" >&2;}
32350 { echo "$as_me:$LINENO: WARNING: GL/gl.h: section \"Present But Cannot Be Compiled\"" >&5
32351echo "$as_me: WARNING: GL/gl.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
32352 { echo "$as_me:$LINENO: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&5
32353echo "$as_me: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
32354 { echo "$as_me:$LINENO: WARNING: GL/gl.h: in the future, the compiler will take precedence" >&5
32355echo "$as_me: WARNING: GL/gl.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
32356 (
32357 cat <<\_ASBOX
ac1cb8d3
VS
32358## ----------------------------------------- ##
32359## Report this to wx-dev@lists.wxwidgets.org ##
32360## ----------------------------------------- ##
a848cd7e
SC
32361_ASBOX
32362 ) |
32363 sed "s/^/$as_me: WARNING: /" >&2
32364 ;;
32365esac
32366echo "$as_me:$LINENO: checking for GL/gl.h" >&5
32367echo $ECHO_N "checking for GL/gl.h... $ECHO_C" >&6
32368if test "${ac_cv_header_GL_gl_h+set}" = set; then
32369 echo $ECHO_N "(cached) $ECHO_C" >&6
32370else
32371 ac_cv_header_GL_gl_h=$ac_header_preproc
32372fi
32373echo "$as_me:$LINENO: result: $ac_cv_header_GL_gl_h" >&5
32374echo "${ECHO_T}$ac_cv_header_GL_gl_h" >&6
32375
32376fi
32377if test $ac_cv_header_GL_gl_h = yes; then
32378
32379 found_gl=0
32380
32381 echo "$as_me:$LINENO: checking for -lGL" >&5
32382echo $ECHO_N "checking for -lGL... $ECHO_C" >&6
32383
0ad5d837
VZ
32384 ac_find_libraries=
32385 for ac_dir in $SEARCH_LIB;
a848cd7e 32386 do
3eca31dc 32387 for ac_extension in a so sl dylib dll.a; do
a848cd7e
SC
32388 if test -f "$ac_dir/libGL.$ac_extension"; then
32389 ac_find_libraries=$ac_dir
32390 break 2
32391 fi
32392 done
32393 done
32394
32395 if test "$ac_find_libraries" != "" ; then
69120ee4
VZ
32396 echo "$as_me:$LINENO: result: yes" >&5
32397echo "${ECHO_T}yes" >&6
32398
a848cd7e 32399
0ad5d837 32400 if test "$ac_find_libraries" = "default location"; then
a848cd7e
SC
32401 ac_path_to_link=""
32402 else
0ad5d837
VZ
32403 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
32404 result=$?
32405 if test $result = 0; then
32406 ac_path_to_link=""
32407 else
32408 ac_path_to_link=" -L$ac_find_libraries"
32409 fi
a848cd7e
SC
32410 fi
32411
32412 if test "$ac_path_to_link" != " -L/usr/lib" ; then
32413 LDFLAGS_GL="$ac_path_to_link"
32414 fi
32415
69120ee4
VZ
32416 echo "$as_me:$LINENO: checking for -lGLU" >&5
32417echo $ECHO_N "checking for -lGLU... $ECHO_C" >&6
a848cd7e 32418
0ad5d837
VZ
32419 ac_find_libraries=
32420 for ac_dir in $SEARCH_LIB;
32421 do
32422 for ac_extension in a so sl dylib dll.a; do
32423 if test -f "$ac_dir/libGLU.$ac_extension"; then
32424 ac_find_libraries=$ac_dir
32425 break 2
32426 fi
32427 done
32428 done
32429
a848cd7e
SC
32430 if test "$ac_find_libraries" != "" ; then
32431
0ad5d837 32432 if test "$ac_find_libraries" = "default location"; then
a848cd7e
SC
32433 ac_path_to_link=""
32434 else
0ad5d837
VZ
32435 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
32436 result=$?
32437 if test $result = 0; then
32438 ac_path_to_link=""
32439 else
32440 ac_path_to_link=" -L$ac_find_libraries"
32441 fi
a848cd7e
SC
32442 fi
32443
32444 if test "$ac_path_to_link" != " -L/usr/lib" -a \
32445 "$ac_path_to_link" != "$LDFLAGS_GL"; then
32446 LDFLAGS_GL="$LDFLAGS_GL$ac_path_to_link"
32447 fi
32448
32449 found_gl=1
32450 OPENGL_LIBS="-lGL -lGLU"
32451 echo "$as_me:$LINENO: result: yes" >&5
32452echo "${ECHO_T}yes" >&6
69120ee4
VZ
32453 else
32454 echo "$as_me:$LINENO: result: no" >&5
32455echo "${ECHO_T}no" >&6
a848cd7e 32456 fi
69120ee4
VZ
32457 else
32458 echo "$as_me:$LINENO: result: no" >&5
32459echo "${ECHO_T}no" >&6
a848cd7e
SC
32460 fi
32461
32462 if test "$found_gl" != 1; then
a848cd7e
SC
32463 echo "$as_me:$LINENO: checking for -lMesaGL" >&5
32464echo $ECHO_N "checking for -lMesaGL... $ECHO_C" >&6
32465
0ad5d837
VZ
32466 ac_find_libraries=
32467 for ac_dir in $SEARCH_LIB;
a848cd7e 32468 do
3eca31dc 32469 for ac_extension in a so sl dylib dll.a; do
a848cd7e
SC
32470 if test -f "$ac_dir/libMesaGL.$ac_extension"; then
32471 ac_find_libraries=$ac_dir
32472 break 2
32473 fi
32474 done
32475 done
32476
32477 if test "$ac_find_libraries" != "" ; then
32478
0ad5d837 32479 if test "$ac_find_libraries" = "default location"; then
a848cd7e
SC
32480 ac_path_to_link=""
32481 else
0ad5d837
VZ
32482 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
32483 result=$?
32484 if test $result = 0; then
32485 ac_path_to_link=""
32486 else
32487 ac_path_to_link=" -L$ac_find_libraries"
32488 fi
a848cd7e
SC
32489 fi
32490
32491 LDFLAGS_GL="$LDFLAGS$ac_path_to_link"
32492 OPENGL_LIBS="-lMesaGL -lMesaGLU"
32493 echo "$as_me:$LINENO: result: yes" >&5
32494echo "${ECHO_T}yes" >&6
32495 else
32496 echo "$as_me:$LINENO: result: no" >&5
32497echo "${ECHO_T}no" >&6
32498 fi
32499 fi
32500
32501fi
32502
32503
32504
32505 if test "x$OPENGL_LIBS" = "x"; then
32506 { { echo "$as_me:$LINENO: error: OpenGL libraries not available" >&5
32507echo "$as_me: error: OpenGL libraries not available" >&2;}
32508 { (exit 1); exit 1; }; }
32509 fi
32510 fi
32511
32512 if test "$wxUSE_OPENGL" = "yes"; then
32513 USE_OPENGL=1
32514 cat >>confdefs.h <<\_ACEOF
32515#define wxUSE_OPENGL 1
32516_ACEOF
32517
32518 cat >>confdefs.h <<\_ACEOF
32519#define wxUSE_GLCANVAS 1
32520_ACEOF
32521
32522 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS opengl opengl/cube opengl/penguin opengl/isosurf"
32523 fi
32524fi
32525
a848cd7e
SC
32526
32527if test -n "$TOOLKIT" ; then
32528 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WX${TOOLKIT}__"
32529fi
32530
a848cd7e
SC
32531
32532
32533if test "$wxUSE_SHARED" = "yes"; then
32534 case "${host}" in
32535 *-pc-msdosdjgpp )
32536 wxUSE_SHARED=no
32537 { echo "$as_me:$LINENO: WARNING: Host system doesn't support shared libraries, disabling" >&5
32538echo "$as_me: WARNING: Host system doesn't support shared libraries, disabling" >&2;}
32539 ;;
32540 esac
32541fi
32542
a848cd7e 32543if test "$wxUSE_SHARED" = "yes"; then
a848cd7e
SC
32544
32545
32546 found_versioning=no
32547
32548
32549 if test $found_versioning = no ; then
32550 echo "$as_me:$LINENO: checking if the linker accepts --version-script" >&5
32551echo $ECHO_N "checking if the linker accepts --version-script... $ECHO_C" >&6
32552if test "${wx_cv_version_script+set}" = set; then
32553 echo $ECHO_N "(cached) $ECHO_C" >&6
32554else
32555
32556 echo "VER_1 { *; };" >conftest.sym
32557 echo "int main() { return 0; }" >conftest.cpp
32558
32559 if { ac_try='
32560 $CXX -o conftest.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp
32561 -Wl,--version-script,conftest.sym >/dev/null 2>conftest.stderr'
32562 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32563 (eval $ac_try) 2>&5
32564 ac_status=$?
32565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32566 (exit $ac_status); }; } ; then
32567 if test -s conftest.stderr ; then
32568 wx_cv_version_script=no
32569 else
32570 wx_cv_version_script=yes
32571 fi
32572 else
32573 wx_cv_version_script=no
32574 fi
e5d4b470
MW
32575
32576 if test $wx_cv_version_script = yes
32577 then
32578 echo "struct B { virtual ~B() { } }; \
32579 struct D : public B { }; \
32580 void F() { D d; }" > conftest.cpp
32581
32582 if { ac_try='
32583 $CXX -shared -fPIC -o conftest1.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp
32584 -Wl,--version-script,conftest.sym >/dev/null 2>/dev/null'
32585 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32586 (eval $ac_try) 2>&5
32587 ac_status=$?
32588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32589 (exit $ac_status); }; } &&
32590 { ac_try='
32591 $CXX -shared -fPIC -o conftest2.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp
32592 -Wl,--version-script,conftest.sym conftest1.output >/dev/null 2>/dev/null'
32593 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32594 (eval $ac_try) 2>&5
32595 ac_status=$?
32596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32597 (exit $ac_status); }; }
32598 then
32599 if { ac_try='
32600 $CXX -shared -fPIC -o conftest3.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp
32601 -Wl,--version-script,conftest.sym conftest2.output conftest1.output >/dev/null 2>/dev/null'
32602 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32603 (eval $ac_try) 2>&5
32604 ac_status=$?
32605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32606 (exit $ac_status); }; }
32607 then
32608 wx_cv_version_script=yes
32609 else
32610 wx_cv_version_script=no
32611 fi
32612 fi
32613 fi
32614
a848cd7e 32615 rm -f conftest.output conftest.stderr conftest.sym conftest.cpp
e5d4b470 32616 rm -f conftest1.output conftest2.output conftest3.output
a848cd7e
SC
32617
32618fi
32619echo "$as_me:$LINENO: result: $wx_cv_version_script" >&5
32620echo "${ECHO_T}$wx_cv_version_script" >&6
32621 if test $wx_cv_version_script = yes ; then
32622 LDFLAGS_VERSIONING="-Wl,--version-script,\$(top_builddir)version-script"
32623 fi
32624 fi
32625
32626
32627 case "${host}" in
32628 *-*-linux* | *-*-gnu* )
32629 SAMPLES_RPATH_FLAG="-Wl,-rpath,\$(top_builddir)lib"
ffa0583f 32630 WXCONFIG_RPATH="-Wl,-rpath,\$libdir"
6ebeb4c7 32631 ;;
a848cd7e
SC
32632
32633 *-*-solaris2* )
32634 if test "$GCC" = yes ; then
c92ad099 32635 CPPFLAGS="-isystem /usr/openwin/include $CPPFLAGS"
a848cd7e
SC
32636
32637 saveLdflags="$LDFLAGS"
32638 LDFLAGS="$saveLdflags -Wl,-rpath,/"
32639 echo "$as_me:$LINENO: checking if the linker accepts -rpath" >&5
32640echo $ECHO_N "checking if the linker accepts -rpath... $ECHO_C" >&6
32641 cat >conftest.$ac_ext <<_ACEOF
32642/* confdefs.h. */
32643_ACEOF
32644cat confdefs.h >>conftest.$ac_ext
32645cat >>conftest.$ac_ext <<_ACEOF
32646/* end confdefs.h. */
32647
32648int
32649main ()
32650{
32651
32652 ;
32653 return 0;
32654}
32655_ACEOF
32656rm -f conftest.$ac_objext conftest$ac_exeext
32657if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 32658 (eval $ac_link) 2>conftest.er1
a848cd7e 32659 ac_status=$?
ac1cb8d3
VS
32660 grep -v '^ *+' conftest.er1 >conftest.err
32661 rm -f conftest.er1
32662 cat conftest.err >&5
a848cd7e
SC
32663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32664 (exit $ac_status); } &&
3f60522a
JS
32665 { ac_try='test -z "$ac_cxx_werror_flag"
32666 || test ! -s conftest.err'
ac1cb8d3
VS
32667 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32668 (eval $ac_try) 2>&5
32669 ac_status=$?
32670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32671 (exit $ac_status); }; } &&
32672 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
32673 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32674 (eval $ac_try) 2>&5
32675 ac_status=$?
32676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32677 (exit $ac_status); }; }; then
32678
32679 echo "$as_me:$LINENO: result: yes" >&5
32680echo "${ECHO_T}yes" >&6
32681 SAMPLES_RPATH_FLAG="-Wl,-rpath,\$(top_builddir)lib"
ffa0583f 32682 WXCONFIG_RPATH="-Wl,-rpath,\$libdir"
a848cd7e
SC
32683
32684else
32685 echo "$as_me: failed program was:" >&5
32686sed 's/^/| /' conftest.$ac_ext >&5
32687
32688
32689 echo "$as_me:$LINENO: result: no" >&5
32690echo "${ECHO_T}no" >&6
32691 echo "$as_me:$LINENO: checking if the linker accepts -R" >&5
32692echo $ECHO_N "checking if the linker accepts -R... $ECHO_C" >&6
32693 LDFLAGS="$saveLdflags -Wl,-R,/"
32694 cat >conftest.$ac_ext <<_ACEOF
32695/* confdefs.h. */
32696_ACEOF
32697cat confdefs.h >>conftest.$ac_ext
32698cat >>conftest.$ac_ext <<_ACEOF
32699/* end confdefs.h. */
32700
32701int
32702main ()
32703{
32704
32705 ;
32706 return 0;
32707}
32708_ACEOF
32709rm -f conftest.$ac_objext conftest$ac_exeext
32710if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 32711 (eval $ac_link) 2>conftest.er1
a848cd7e 32712 ac_status=$?
ac1cb8d3
VS
32713 grep -v '^ *+' conftest.er1 >conftest.err
32714 rm -f conftest.er1
32715 cat conftest.err >&5
a848cd7e
SC
32716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32717 (exit $ac_status); } &&
3f60522a
JS
32718 { ac_try='test -z "$ac_cxx_werror_flag"
32719 || test ! -s conftest.err'
ac1cb8d3
VS
32720 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32721 (eval $ac_try) 2>&5
32722 ac_status=$?
32723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32724 (exit $ac_status); }; } &&
32725 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
32726 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32727 (eval $ac_try) 2>&5
32728 ac_status=$?
32729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32730 (exit $ac_status); }; }; then
32731
ffa0583f 32732 echo "$as_me:$LINENO: result: yes" >&5
a848cd7e 32733echo "${ECHO_T}yes" >&6
ffa0583f
RL
32734 SAMPLES_RPATH_FLAG="-Wl,-R,\$(top_builddir)lib"
32735 WXCONFIG_RPATH="-Wl,-R,\$libdir"
32736
a848cd7e
SC
32737else
32738 echo "$as_me: failed program was:" >&5
32739sed 's/^/| /' conftest.$ac_ext >&5
32740
32741
32742 echo "$as_me:$LINENO: result: no" >&5
32743echo "${ECHO_T}no" >&6
32744
32745fi
ac1cb8d3
VS
32746rm -f conftest.err conftest.$ac_objext \
32747 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
32748
32749fi
ac1cb8d3
VS
32750rm -f conftest.err conftest.$ac_objext \
32751 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
32752 LDFLAGS="$saveLdflags"
32753 else
a848cd7e 32754 SAMPLES_RPATH_FLAG="-R\$(top_builddir)lib"
ffa0583f 32755 WXCONFIG_RPATH="-R\$libdir"
a848cd7e
SC
32756 fi
32757 ;;
32758
cfda0ea8 32759 *-*-darwin* )
0caebc27
MW
32760 install_name_tool=`which install_name_tool`
32761 if test "$install_name_tool" -a -x "$install_name_tool"; then
32762 SAMPLES_RPATH_POSTLINK="\$(top_builddir)change-install-names \$(LIBDIRNAME) \$(prefix) \$@"
32763 cat <<EOF >change-install-names
a848cd7e
SC
32764#!/bin/sh
32765libnames=\`cd \${1} ; ls -1 | grep '\.[0-9][0-9]*\.dylib\$'\`
32766inst_cmd="install_name_tool "
32767for i in \${libnames} ; do
32768 inst_cmd="\${inst_cmd} -change \${2}/lib/\${i} \${1}/\${i}"
32769done
32770\${inst_cmd} \${3}
32771EOF
0caebc27
MW
32772 chmod +x change-install-names
32773 fi
a848cd7e
SC
32774 ;;
32775
32776 *-*-cygwin* | *-*-mingw32* )
5ff751d6
VZ
32777 WXCONFIG_ONLY_CPPFLAGS="$WXCONFIG_ONLY_CPPFLAGS -DWXUSINGDLL"
32778 ;;
a848cd7e 32779
81f90336
MW
32780 *-*-hpux* )
32781 SAMPLES_RPATH_FLAG="-Wl,+b,\$(top_builddir)lib"
32782 WXCONFIG_RPATH="-Wl,+b,\$libdir"
5ff751d6 32783 ;;
81f90336 32784
a848cd7e 32785 esac
ceec2216 32786
ffa0583f
RL
32787 if test $wxUSE_RPATH = "no"; then
32788 SAMPLES_RPATH_FLAG=''
32789 SAMPLES_RPATH_POSTLINK=''
32790 WXCONFIG_RPATH=''
32791 fi
32792
32793 SHARED=1
32794
32795else
32796
ceec2216
RL
32797 config_linkage_component="-static"
32798 SHARED=0
ffa0583f 32799
ceec2216 32800fi
a848cd7e 32801
a848cd7e 32802
ceec2216
RL
32803UNICODE=0
32804lib_unicode_suffix=
32805WX_CHARTYPE="ansi"
32806if test "$wxUSE_UNICODE" = "yes"; then
32807 lib_unicode_suffix=u
32808 WX_CHARTYPE="unicode"
32809 UNICODE=1
a848cd7e
SC
32810fi
32811
ceec2216
RL
32812lib_debug_suffix=
32813WX_DEBUGTYPE="release"
32814DEBUG_FLAG=0
32815if test "$wxUSE_DEBUG_FLAG" = "yes"; then
32816 lib_debug_suffix=d
32817 WX_DEBUGTYPE="debug"
32818 DEBUG_FLAG=1
32819fi
a848cd7e 32820
ceec2216
RL
32821WX_FLAVOUR=${WX_FLAVOUR:+-$WX_FLAVOUR}
32822WX_LIB_FLAVOUR=`echo $WX_FLAVOUR | tr '-' '_'`
a848cd7e 32823
ceec2216
RL
32824DEBUG_INFO=0
32825if test "$wxUSE_DEBUG_INFO" = "yes"; then
32826 DEBUG_INFO=1
32827fi
a848cd7e 32828
ceec2216 32829WX_VERSION_TAG=`echo WX${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}_${WX_RELEASE} | tr "[a-z]" "[A-Z]"`
a848cd7e 32830
ceec2216 32831TOOLCHAIN_NAME="${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}-${WX_RELEASE}"
a848cd7e 32832
ceec2216 32833TOOLCHAIN_FULLNAME="${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}-${WX_CHARTYPE}-${WX_DEBUGTYPE}${config_linkage_component}-${WX_RELEASE}${WX_FLAVOUR}"
a848cd7e 32834
ceec2216
RL
32835if test "$cross_compiling" = "yes"; then
32836 HOST_SUFFIX="-$host_alias"
32837 TOOLCHAIN_NAME="$TOOLCHAIN_NAME$HOST_SUFFIX"
32838 TOOLCHAIN_FULLNAME="${host_alias}-$TOOLCHAIN_FULLNAME"
a848cd7e
SC
32839fi
32840
dd21ced8 32841WX_LIBRARY_BASENAME_NOGUI="wx_base${WXBASEPORT}${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}"
abc736fd
MW
32842if test "${TOOLKIT_DIR}" = "os2"; then
32843 WX_LIBRARY_BASENAME_GUI="wx_pm${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}"
32844else
32845 WX_LIBRARY_BASENAME_GUI="wx_${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}"
32846fi
ceec2216
RL
32847
32848
32849
1d1af5ea
DE
32850if test "$wxUSE_COCOA" = 1; then
32851
32852
32853 ac_ext=c
32854ac_cpp='$CPP $CPPFLAGS'
32855ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32856ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32857ac_compiler_gnu=$ac_cv_c_compiler_gnu
32858
32859ac_ext=m
32860
32861 echo "$as_me:$LINENO: checking if AppKit/NSEvent.h conflicts with CoreFoundation" >&5
32862echo $ECHO_N "checking if AppKit/NSEvent.h conflicts with CoreFoundation... $ECHO_C" >&6
32863 cat >conftest.$ac_ext <<_ACEOF
32864/* confdefs.h. */
32865_ACEOF
32866cat confdefs.h >>conftest.$ac_ext
32867cat >>conftest.$ac_ext <<_ACEOF
32868/* end confdefs.h. */
32869#include <AppKit/NSEvent.h>
32870#include <CoreFoundation/CoreFoundation.h>
32871
32872int
32873main ()
32874{
32875
32876 ;
32877 return 0;
32878}
32879_ACEOF
32880rm -f conftest.$ac_objext
32881if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32882 (eval $ac_compile) 2>conftest.er1
32883 ac_status=$?
32884 grep -v '^ *+' conftest.er1 >conftest.err
32885 rm -f conftest.er1
32886 cat conftest.err >&5
32887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32888 (exit $ac_status); } &&
3f60522a
JS
32889 { ac_try='test -z "$ac_c_werror_flag"
32890 || test ! -s conftest.err'
1d1af5ea
DE
32891 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32892 (eval $ac_try) 2>&5
32893 ac_status=$?
32894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32895 (exit $ac_status); }; } &&
32896 { ac_try='test -s conftest.$ac_objext'
32897 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32898 (eval $ac_try) 2>&5
32899 ac_status=$?
32900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32901 (exit $ac_status); }; }; then
32902 echo "$as_me:$LINENO: result: no" >&5
32903echo "${ECHO_T}no" >&6
32904else
32905 echo "$as_me: failed program was:" >&5
32906sed 's/^/| /' conftest.$ac_ext >&5
32907
32908echo "$as_me:$LINENO: result: yes" >&5
32909echo "${ECHO_T}yes" >&6
32910 echo "$as_me:$LINENO: checking if defining __Point__ will fix it" >&5
32911echo $ECHO_N "checking if defining __Point__ will fix it... $ECHO_C" >&6
32912 cat >conftest.$ac_ext <<_ACEOF
32913/* confdefs.h. */
32914_ACEOF
32915cat confdefs.h >>conftest.$ac_ext
32916cat >>conftest.$ac_ext <<_ACEOF
32917/* end confdefs.h. */
32918#define __Point__ 1
32919#include <AppKit/NSEvent.h>
32920#include <CoreFoundation/CoreFoundation.h>
32921
32922int
32923main ()
32924{
32925
32926 ;
32927 return 0;
32928}
32929_ACEOF
32930rm -f conftest.$ac_objext
32931if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32932 (eval $ac_compile) 2>conftest.er1
32933 ac_status=$?
32934 grep -v '^ *+' conftest.er1 >conftest.err
32935 rm -f conftest.er1
32936 cat conftest.err >&5
32937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32938 (exit $ac_status); } &&
3f60522a
JS
32939 { ac_try='test -z "$ac_c_werror_flag"
32940 || test ! -s conftest.err'
1d1af5ea
DE
32941 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32942 (eval $ac_try) 2>&5
32943 ac_status=$?
32944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32945 (exit $ac_status); }; } &&
32946 { ac_try='test -s conftest.$ac_objext'
32947 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32948 (eval $ac_try) 2>&5
32949 ac_status=$?
32950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32951 (exit $ac_status); }; }; then
32952 echo "$as_me:$LINENO: result: yes" >&5
32953echo "${ECHO_T}yes" >&6
32954 cat >>confdefs.h <<\_ACEOF
32955#define __Point__ 1
32956_ACEOF
32957
32958
32959else
32960 echo "$as_me: failed program was:" >&5
32961sed 's/^/| /' conftest.$ac_ext >&5
32962
32963{ { echo "$as_me:$LINENO: error: no
32964See \`config.log' for more details." >&5
32965echo "$as_me: error: no
32966See \`config.log' for more details." >&2;}
32967 { (exit 1); exit 1; }; }
32968
32969fi
32970rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32971
32972fi
32973rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5d7b7554
VZ
32974 ac_ext=cc
32975ac_cpp='$CXXCPP $CPPFLAGS'
32976ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32977ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32978ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
1d1af5ea
DE
32979
32980fi
32981
a848cd7e 32982if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1; then
abb9aae7
VZ
32983 WX_RESOURCES_MACOSX_ASCII="libwx_${TOOLCHAIN_NAME}.${wx_release_number}.r"
32984 WX_RESOURCES_MACOSX_DATA="libwx_${TOOLCHAIN_NAME}.${wx_release_number}.rsrc"
ceec2216 32985
a848cd7e 32986 LIBWXMACRES="\$(top_builddir)lib/${WX_RESOURCES_MACOSX_ASCII}"
a848cd7e
SC
32987
32988 # Extract the first word of "Rez", so it can be a program name with args.
32989set dummy Rez; ac_word=$2
32990echo "$as_me:$LINENO: checking for $ac_word" >&5
32991echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8ced02f6 32992if test "${ac_cv_prog_REZ+set}" = set; then
a848cd7e
SC
32993 echo $ECHO_N "(cached) $ECHO_C" >&6
32994else
8ced02f6
DE
32995 if test -n "$REZ"; then
32996 ac_cv_prog_REZ="$REZ" # Let the user override the test.
a848cd7e
SC
32997else
32998as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32999for as_dir in $PATH
33000do
33001 IFS=$as_save_IFS
33002 test -z "$as_dir" && as_dir=.
33003 for ac_exec_ext in '' $ac_executable_extensions; do
33004 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8ced02f6 33005 ac_cv_prog_REZ="Rez"
a848cd7e
SC
33006 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
33007 break 2
33008 fi
33009done
33010done
33011
8ced02f6 33012 test -z "$ac_cv_prog_REZ" && ac_cv_prog_REZ="/Developer/Tools/Rez"
a848cd7e
SC
33013fi
33014fi
8ced02f6
DE
33015REZ=$ac_cv_prog_REZ
33016if test -n "$REZ"; then
33017 echo "$as_me:$LINENO: result: $REZ" >&5
33018echo "${ECHO_T}$REZ" >&6
a848cd7e
SC
33019else
33020 echo "$as_me:$LINENO: result: no" >&5
33021echo "${ECHO_T}no" >&6
33022fi
33023
33024 # Extract the first word of "DeRez", so it can be a program name with args.
33025set dummy DeRez; ac_word=$2
33026echo "$as_me:$LINENO: checking for $ac_word" >&5
33027echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
33028if test "${ac_cv_prog_DEREZ+set}" = set; then
33029 echo $ECHO_N "(cached) $ECHO_C" >&6
33030else
33031 if test -n "$DEREZ"; then
33032 ac_cv_prog_DEREZ="$DEREZ" # Let the user override the test.
33033else
33034as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33035for as_dir in $PATH
33036do
33037 IFS=$as_save_IFS
33038 test -z "$as_dir" && as_dir=.
33039 for ac_exec_ext in '' $ac_executable_extensions; do
33040 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
33041 ac_cv_prog_DEREZ="DeRez"
33042 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
33043 break 2
33044 fi
33045done
33046done
33047
33048 test -z "$ac_cv_prog_DEREZ" && ac_cv_prog_DEREZ="/Developer/Tools/DeRez"
33049fi
33050fi
33051DEREZ=$ac_cv_prog_DEREZ
33052if test -n "$DEREZ"; then
33053 echo "$as_me:$LINENO: result: $DEREZ" >&5
33054echo "${ECHO_T}$DEREZ" >&6
33055else
33056 echo "$as_me:$LINENO: result: no" >&5
33057echo "${ECHO_T}no" >&6
33058fi
33059
33060 # Extract the first word of "SetFile", so it can be a program name with args.
33061set dummy SetFile; ac_word=$2
33062echo "$as_me:$LINENO: checking for $ac_word" >&5
33063echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
33064if test "${ac_cv_prog_SETFILE+set}" = set; then
33065 echo $ECHO_N "(cached) $ECHO_C" >&6
33066else
33067 if test -n "$SETFILE"; then
33068 ac_cv_prog_SETFILE="$SETFILE" # Let the user override the test.
33069else
33070as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33071for as_dir in $PATH
33072do
33073 IFS=$as_save_IFS
33074 test -z "$as_dir" && as_dir=.
33075 for ac_exec_ext in '' $ac_executable_extensions; do
33076 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
33077 ac_cv_prog_SETFILE="SetFile"
33078 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
33079 break 2
33080 fi
33081done
33082done
33083
33084 test -z "$ac_cv_prog_SETFILE" && ac_cv_prog_SETFILE="/Developer/Tools/SetFile"
33085fi
33086fi
33087SETFILE=$ac_cv_prog_SETFILE
33088if test -n "$SETFILE"; then
33089 echo "$as_me:$LINENO: result: $SETFILE" >&5
33090echo "${ECHO_T}$SETFILE" >&6
33091else
33092 echo "$as_me:$LINENO: result: no" >&5
33093echo "${ECHO_T}no" >&6
33094fi
33095
33096
33097 MACSETFILE="\$(SETFILE)"
33098
33099 if test "$wxUSE_MAC" = 1; then
8ced02f6 33100 POSTLINK_COMMAND="\$(REZ) -d __DARWIN__ -t APPL Carbon.r -o"
004ee6da
RL
33101 RESCOMP="$REZ"
33102 WXCONFIG_RESFLAGS="-d __DARWIN__ -t APPL Carbon.r -o"
a848cd7e 33103 else
004ee6da
RL
33104 POSTLINK_COMMAND="echo -n | \$(REZ) -d __DARWIN__ -t APPL ${LIBWXMACRES}"
33105 RESCOMP="echo -n \| $REZ"
33106 WXCONFIG_RESFLAGS="-d __DARWIN__ -t APPL \$libdir/$WX_RESOURCES_MACOSX_ASCII"
a848cd7e 33107 fi
004ee6da 33108
a848cd7e 33109else
ffa0583f 33110 MACSETFILE="@true"
a848cd7e 33111
8ced02f6 33112 if test "$wxUSE_PM" = 1; then
004ee6da
RL
33113 RESCOMP="emxbind"
33114 WXCONFIG_RESFLAGS="-ep"
33115
33116 POSTLINK_COMMAND="$RESCOMP $WXCONFIG_RESFLAGS"
a848cd7e 33117 else
8ced02f6 33118 POSTLINK_COMMAND="@true"
a848cd7e 33119 fi
004ee6da 33120
a848cd7e
SC
33121fi
33122
33123
33124
33125echo "$as_me:$LINENO: checking for mode_t" >&5
33126echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
33127if test "${ac_cv_type_mode_t+set}" = set; then
33128 echo $ECHO_N "(cached) $ECHO_C" >&6
33129else
33130 cat >conftest.$ac_ext <<_ACEOF
33131/* confdefs.h. */
33132_ACEOF
33133cat confdefs.h >>conftest.$ac_ext
33134cat >>conftest.$ac_ext <<_ACEOF
33135/* end confdefs.h. */
33136$ac_includes_default
33137int
33138main ()
33139{
33140if ((mode_t *) 0)
33141 return 0;
33142if (sizeof (mode_t))
33143 return 0;
33144 ;
33145 return 0;
33146}
33147_ACEOF
33148rm -f conftest.$ac_objext
33149if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 33150 (eval $ac_compile) 2>conftest.er1
a848cd7e 33151 ac_status=$?
ac1cb8d3
VS
33152 grep -v '^ *+' conftest.er1 >conftest.err
33153 rm -f conftest.er1
33154 cat conftest.err >&5
a848cd7e
SC
33155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33156 (exit $ac_status); } &&
3f60522a
JS
33157 { ac_try='test -z "$ac_cxx_werror_flag"
33158 || test ! -s conftest.err'
ac1cb8d3
VS
33159 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33160 (eval $ac_try) 2>&5
33161 ac_status=$?
33162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33163 (exit $ac_status); }; } &&
33164 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
33165 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33166 (eval $ac_try) 2>&5
33167 ac_status=$?
33168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33169 (exit $ac_status); }; }; then
33170 ac_cv_type_mode_t=yes
33171else
33172 echo "$as_me: failed program was:" >&5
33173sed 's/^/| /' conftest.$ac_ext >&5
33174
33175ac_cv_type_mode_t=no
33176fi
ac1cb8d3 33177rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
33178fi
33179echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
33180echo "${ECHO_T}$ac_cv_type_mode_t" >&6
33181if test $ac_cv_type_mode_t = yes; then
33182 :
33183else
33184
33185cat >>confdefs.h <<_ACEOF
33186#define mode_t int
33187_ACEOF
33188
33189fi
33190
33191echo "$as_me:$LINENO: checking for off_t" >&5
33192echo $ECHO_N "checking for off_t... $ECHO_C" >&6
33193if test "${ac_cv_type_off_t+set}" = set; then
33194 echo $ECHO_N "(cached) $ECHO_C" >&6
33195else
33196 cat >conftest.$ac_ext <<_ACEOF
33197/* confdefs.h. */
33198_ACEOF
33199cat confdefs.h >>conftest.$ac_ext
33200cat >>conftest.$ac_ext <<_ACEOF
33201/* end confdefs.h. */
33202$ac_includes_default
33203int
33204main ()
33205{
33206if ((off_t *) 0)
33207 return 0;
33208if (sizeof (off_t))
33209 return 0;
33210 ;
33211 return 0;
33212}
33213_ACEOF
33214rm -f conftest.$ac_objext
33215if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 33216 (eval $ac_compile) 2>conftest.er1
a848cd7e 33217 ac_status=$?
ac1cb8d3
VS
33218 grep -v '^ *+' conftest.er1 >conftest.err
33219 rm -f conftest.er1
33220 cat conftest.err >&5
a848cd7e
SC
33221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33222 (exit $ac_status); } &&
3f60522a
JS
33223 { ac_try='test -z "$ac_cxx_werror_flag"
33224 || test ! -s conftest.err'
ac1cb8d3
VS
33225 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33226 (eval $ac_try) 2>&5
33227 ac_status=$?
33228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33229 (exit $ac_status); }; } &&
33230 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
33231 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33232 (eval $ac_try) 2>&5
33233 ac_status=$?
33234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33235 (exit $ac_status); }; }; then
33236 ac_cv_type_off_t=yes
33237else
33238 echo "$as_me: failed program was:" >&5
33239sed 's/^/| /' conftest.$ac_ext >&5
33240
33241ac_cv_type_off_t=no
33242fi
ac1cb8d3 33243rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
33244fi
33245echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
33246echo "${ECHO_T}$ac_cv_type_off_t" >&6
33247if test $ac_cv_type_off_t = yes; then
33248 :
33249else
33250
33251cat >>confdefs.h <<_ACEOF
33252#define off_t long
33253_ACEOF
33254
33255fi
33256
33257echo "$as_me:$LINENO: checking for pid_t" >&5
33258echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
33259if test "${ac_cv_type_pid_t+set}" = set; then
33260 echo $ECHO_N "(cached) $ECHO_C" >&6
33261else
33262 cat >conftest.$ac_ext <<_ACEOF
33263/* confdefs.h. */
33264_ACEOF
33265cat confdefs.h >>conftest.$ac_ext
33266cat >>conftest.$ac_ext <<_ACEOF
33267/* end confdefs.h. */
33268$ac_includes_default
33269int
33270main ()
33271{
33272if ((pid_t *) 0)
33273 return 0;
33274if (sizeof (pid_t))
33275 return 0;
33276 ;
33277 return 0;
33278}
33279_ACEOF
33280rm -f conftest.$ac_objext
33281if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 33282 (eval $ac_compile) 2>conftest.er1
a848cd7e 33283 ac_status=$?
ac1cb8d3
VS
33284 grep -v '^ *+' conftest.er1 >conftest.err
33285 rm -f conftest.er1
33286 cat conftest.err >&5
a848cd7e
SC
33287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33288 (exit $ac_status); } &&
3f60522a
JS
33289 { ac_try='test -z "$ac_cxx_werror_flag"
33290 || test ! -s conftest.err'
ac1cb8d3
VS
33291 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33292 (eval $ac_try) 2>&5
33293 ac_status=$?
33294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33295 (exit $ac_status); }; } &&
33296 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
33297 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33298 (eval $ac_try) 2>&5
33299 ac_status=$?
33300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33301 (exit $ac_status); }; }; then
33302 ac_cv_type_pid_t=yes
33303else
33304 echo "$as_me: failed program was:" >&5
33305sed 's/^/| /' conftest.$ac_ext >&5
33306
33307ac_cv_type_pid_t=no
33308fi
ac1cb8d3 33309rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
33310fi
33311echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
33312echo "${ECHO_T}$ac_cv_type_pid_t" >&6
33313if test $ac_cv_type_pid_t = yes; then
33314 :
33315else
33316
33317cat >>confdefs.h <<_ACEOF
33318#define pid_t int
33319_ACEOF
33320
33321fi
33322
33323echo "$as_me:$LINENO: checking for size_t" >&5
33324echo $ECHO_N "checking for size_t... $ECHO_C" >&6
33325if test "${ac_cv_type_size_t+set}" = set; then
33326 echo $ECHO_N "(cached) $ECHO_C" >&6
33327else
33328 cat >conftest.$ac_ext <<_ACEOF
33329/* confdefs.h. */
33330_ACEOF
33331cat confdefs.h >>conftest.$ac_ext
33332cat >>conftest.$ac_ext <<_ACEOF
33333/* end confdefs.h. */
33334$ac_includes_default
33335int
33336main ()
33337{
33338if ((size_t *) 0)
33339 return 0;
33340if (sizeof (size_t))
33341 return 0;
33342 ;
33343 return 0;
33344}
33345_ACEOF
33346rm -f conftest.$ac_objext
33347if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 33348 (eval $ac_compile) 2>conftest.er1
a848cd7e 33349 ac_status=$?
ac1cb8d3
VS
33350 grep -v '^ *+' conftest.er1 >conftest.err
33351 rm -f conftest.er1
33352 cat conftest.err >&5
a848cd7e
SC
33353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33354 (exit $ac_status); } &&
3f60522a
JS
33355 { ac_try='test -z "$ac_cxx_werror_flag"
33356 || test ! -s conftest.err'
ac1cb8d3
VS
33357 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33358 (eval $ac_try) 2>&5
33359 ac_status=$?
33360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33361 (exit $ac_status); }; } &&
33362 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
33363 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33364 (eval $ac_try) 2>&5
33365 ac_status=$?
33366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33367 (exit $ac_status); }; }; then
33368 ac_cv_type_size_t=yes
33369else
33370 echo "$as_me: failed program was:" >&5
33371sed 's/^/| /' conftest.$ac_ext >&5
33372
33373ac_cv_type_size_t=no
33374fi
ac1cb8d3 33375rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
33376fi
33377echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
33378echo "${ECHO_T}$ac_cv_type_size_t" >&6
33379if test $ac_cv_type_size_t = yes; then
33380 :
33381else
33382
33383cat >>confdefs.h <<_ACEOF
33384#define size_t unsigned
33385_ACEOF
33386
33387fi
33388
33389echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
33390echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
33391if test "${ac_cv_type_uid_t+set}" = set; then
33392 echo $ECHO_N "(cached) $ECHO_C" >&6
33393else
33394 cat >conftest.$ac_ext <<_ACEOF
33395/* confdefs.h. */
33396_ACEOF
33397cat confdefs.h >>conftest.$ac_ext
33398cat >>conftest.$ac_ext <<_ACEOF
33399/* end confdefs.h. */
33400#include <sys/types.h>
33401
33402_ACEOF
33403if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
33404 $EGREP "uid_t" >/dev/null 2>&1; then
33405 ac_cv_type_uid_t=yes
33406else
33407 ac_cv_type_uid_t=no
33408fi
33409rm -f conftest*
33410
33411fi
33412echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
33413echo "${ECHO_T}$ac_cv_type_uid_t" >&6
33414if test $ac_cv_type_uid_t = no; then
33415
33416cat >>confdefs.h <<\_ACEOF
33417#define uid_t int
33418_ACEOF
33419
33420
33421cat >>confdefs.h <<\_ACEOF
33422#define gid_t int
33423_ACEOF
33424
33425fi
33426
33427
d51253e8
RL
33428echo "$as_me:$LINENO: checking for ssize_t" >&5
33429echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
33430if test "${ac_cv_type_ssize_t+set}" = set; then
33431 echo $ECHO_N "(cached) $ECHO_C" >&6
33432else
33433 cat >conftest.$ac_ext <<_ACEOF
33434/* confdefs.h. */
33435_ACEOF
33436cat confdefs.h >>conftest.$ac_ext
33437cat >>conftest.$ac_ext <<_ACEOF
33438/* end confdefs.h. */
33439$ac_includes_default
33440int
33441main ()
33442{
33443if ((ssize_t *) 0)
33444 return 0;
33445if (sizeof (ssize_t))
33446 return 0;
33447 ;
33448 return 0;
33449}
33450_ACEOF
33451rm -f conftest.$ac_objext
33452if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33453 (eval $ac_compile) 2>conftest.er1
33454 ac_status=$?
33455 grep -v '^ *+' conftest.er1 >conftest.err
33456 rm -f conftest.er1
33457 cat conftest.err >&5
33458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33459 (exit $ac_status); } &&
3f60522a
JS
33460 { ac_try='test -z "$ac_cxx_werror_flag"
33461 || test ! -s conftest.err'
d51253e8
RL
33462 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33463 (eval $ac_try) 2>&5
33464 ac_status=$?
33465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33466 (exit $ac_status); }; } &&
33467 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
33473 ac_cv_type_ssize_t=yes
33474else
33475 echo "$as_me: failed program was:" >&5
33476sed 's/^/| /' conftest.$ac_ext >&5
33477
33478ac_cv_type_ssize_t=no
33479fi
33480rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33481fi
33482echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
33483echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
33484if test $ac_cv_type_ssize_t = yes; then
33485
33486cat >>confdefs.h <<_ACEOF
33487#define HAVE_SSIZE_T 1
33488_ACEOF
33489
33490
33491fi
33492
33493
a848cd7e
SC
33494echo "$as_me:$LINENO: checking if size_t is unsigned int" >&5
33495echo $ECHO_N "checking if size_t is unsigned int... $ECHO_C" >&6
33496if test "${wx_cv_size_t_is_uint+set}" = set; then
33497 echo $ECHO_N "(cached) $ECHO_C" >&6
33498else
33499
33500 cat >conftest.$ac_ext <<_ACEOF
33501/* confdefs.h. */
33502_ACEOF
33503cat confdefs.h >>conftest.$ac_ext
33504cat >>conftest.$ac_ext <<_ACEOF
33505/* end confdefs.h. */
33506#include <stddef.h>
33507int
33508main ()
33509{
33510
33511 return 0; }
33512
33513 struct Foo { void foo(size_t); void foo(unsigned int); };
33514
33515 int bar() {
33516
33517 ;
33518 return 0;
33519}
33520_ACEOF
33521rm -f conftest.$ac_objext
33522if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 33523 (eval $ac_compile) 2>conftest.er1
a848cd7e 33524 ac_status=$?
ac1cb8d3
VS
33525 grep -v '^ *+' conftest.er1 >conftest.err
33526 rm -f conftest.er1
33527 cat conftest.err >&5
a848cd7e
SC
33528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33529 (exit $ac_status); } &&
3f60522a
JS
33530 { ac_try='test -z "$ac_cxx_werror_flag"
33531 || test ! -s conftest.err'
ac1cb8d3
VS
33532 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33533 (eval $ac_try) 2>&5
33534 ac_status=$?
33535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33536 (exit $ac_status); }; } &&
33537 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
33538 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33539 (eval $ac_try) 2>&5
33540 ac_status=$?
33541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33542 (exit $ac_status); }; }; then
33543 wx_cv_size_t_is_uint=no
33544else
33545 echo "$as_me: failed program was:" >&5
33546sed 's/^/| /' conftest.$ac_ext >&5
33547
33548wx_cv_size_t_is_uint=yes
33549
33550fi
ac1cb8d3 33551rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
33552
33553
33554fi
33555echo "$as_me:$LINENO: result: $wx_cv_size_t_is_uint" >&5
33556echo "${ECHO_T}$wx_cv_size_t_is_uint" >&6
33557
33558if test "$wx_cv_size_t_is_uint" = "yes"; then
33559 cat >>confdefs.h <<\_ACEOF
33560#define wxSIZE_T_IS_UINT 1
33561_ACEOF
33562
33563else
33564 echo "$as_me:$LINENO: checking if size_t is unsigned long" >&5
33565echo $ECHO_N "checking if size_t is unsigned long... $ECHO_C" >&6
33566if test "${wx_cv_size_t_is_ulong+set}" = set; then
33567 echo $ECHO_N "(cached) $ECHO_C" >&6
33568else
33569 cat >conftest.$ac_ext <<_ACEOF
33570/* confdefs.h. */
33571_ACEOF
33572cat confdefs.h >>conftest.$ac_ext
33573cat >>conftest.$ac_ext <<_ACEOF
33574/* end confdefs.h. */
33575#include <stddef.h>
33576int
33577main ()
33578{
33579
33580 return 0; }
33581
33582 struct Foo { void foo(size_t); void foo(unsigned long); };
33583
33584 int bar() {
33585
33586 ;
33587 return 0;
33588}
33589_ACEOF
33590rm -f conftest.$ac_objext
33591if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 33592 (eval $ac_compile) 2>conftest.er1
a848cd7e 33593 ac_status=$?
ac1cb8d3
VS
33594 grep -v '^ *+' conftest.er1 >conftest.err
33595 rm -f conftest.er1
33596 cat conftest.err >&5
a848cd7e
SC
33597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33598 (exit $ac_status); } &&
3f60522a
JS
33599 { ac_try='test -z "$ac_cxx_werror_flag"
33600 || test ! -s conftest.err'
ac1cb8d3
VS
33601 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33602 (eval $ac_try) 2>&5
33603 ac_status=$?
33604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33605 (exit $ac_status); }; } &&
33606 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
33607 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33608 (eval $ac_try) 2>&5
33609 ac_status=$?
33610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33611 (exit $ac_status); }; }; then
33612 wx_cv_size_t_is_ulong=no
33613else
33614 echo "$as_me: failed program was:" >&5
33615sed 's/^/| /' conftest.$ac_ext >&5
33616
33617wx_cv_size_t_is_ulong=yes
33618
33619fi
ac1cb8d3 33620rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
33621
33622fi
33623echo "$as_me:$LINENO: result: $wx_cv_size_t_is_ulong" >&5
33624echo "${ECHO_T}$wx_cv_size_t_is_ulong" >&6
33625
33626 if test "$wx_cv_size_t_is_ulong" = "yes"; then
33627 cat >>confdefs.h <<\_ACEOF
33628#define wxSIZE_T_IS_ULONG 1
33629_ACEOF
33630
33631 fi
33632fi
33633
a848cd7e
SC
33634
33635echo "$as_me:$LINENO: checking for pw_gecos in struct passwd" >&5
33636echo $ECHO_N "checking for pw_gecos in struct passwd... $ECHO_C" >&6
33637if test "${wx_cv_struct_pw_gecos+set}" = set; then
33638 echo $ECHO_N "(cached) $ECHO_C" >&6
33639else
33640
33641 cat >conftest.$ac_ext <<_ACEOF
33642/* confdefs.h. */
33643_ACEOF
33644cat confdefs.h >>conftest.$ac_ext
33645cat >>conftest.$ac_ext <<_ACEOF
33646/* end confdefs.h. */
33647#include <pwd.h>
33648int
33649main ()
33650{
33651
33652 char *p;
33653 struct passwd *pw;
33654 p = pw->pw_gecos;
33655
33656 ;
33657 return 0;
33658}
33659_ACEOF
33660rm -f conftest.$ac_objext
33661if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 33662 (eval $ac_compile) 2>conftest.er1
a848cd7e 33663 ac_status=$?
ac1cb8d3
VS
33664 grep -v '^ *+' conftest.er1 >conftest.err
33665 rm -f conftest.er1
33666 cat conftest.err >&5
a848cd7e
SC
33667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33668 (exit $ac_status); } &&
3f60522a
JS
33669 { ac_try='test -z "$ac_cxx_werror_flag"
33670 || test ! -s conftest.err'
ac1cb8d3
VS
33671 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33672 (eval $ac_try) 2>&5
33673 ac_status=$?
33674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33675 (exit $ac_status); }; } &&
33676 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
33677 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33678 (eval $ac_try) 2>&5
33679 ac_status=$?
33680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33681 (exit $ac_status); }; }; then
33682
33683 wx_cv_struct_pw_gecos=yes
33684
33685else
33686 echo "$as_me: failed program was:" >&5
33687sed 's/^/| /' conftest.$ac_ext >&5
33688
33689
33690 wx_cv_struct_pw_gecos=no
33691
33692
33693fi
ac1cb8d3 33694rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
33695
33696
33697fi
33698echo "$as_me:$LINENO: result: $wx_cv_struct_pw_gecos" >&5
33699echo "${ECHO_T}$wx_cv_struct_pw_gecos" >&6
33700
33701if test "$wx_cv_struct_pw_gecos" = "yes"; then
33702 cat >>confdefs.h <<\_ACEOF
33703#define HAVE_PW_GECOS 1
33704_ACEOF
33705
33706fi
33707
33708
47a7e797 33709if test "$wxUSE_WCHAR_T" = "yes"; then
a848cd7e
SC
33710 cat >>confdefs.h <<\_ACEOF
33711#define wxUSE_WCHAR_T 1
33712_ACEOF
33713
33714
33715 WCSLEN_FOUND=0
33716 WCHAR_LINK=
33717
33718for ac_func in wcslen
33719do
33720as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33721echo "$as_me:$LINENO: checking for $ac_func" >&5
33722echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
33723if eval "test \"\${$as_ac_var+set}\" = set"; then
33724 echo $ECHO_N "(cached) $ECHO_C" >&6
33725else
33726 cat >conftest.$ac_ext <<_ACEOF
33727/* confdefs.h. */
33728_ACEOF
33729cat confdefs.h >>conftest.$ac_ext
33730cat >>conftest.$ac_ext <<_ACEOF
33731/* end confdefs.h. */
ac1cb8d3
VS
33732/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33733 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33734#define $ac_func innocuous_$ac_func
33735
a848cd7e
SC
33736/* System header to define __stub macros and hopefully few prototypes,
33737 which can conflict with char $ac_func (); below.
33738 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33739 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 33740
a848cd7e
SC
33741#ifdef __STDC__
33742# include <limits.h>
33743#else
33744# include <assert.h>
33745#endif
ac1cb8d3
VS
33746
33747#undef $ac_func
33748
a848cd7e
SC
33749/* Override any gcc2 internal prototype to avoid an error. */
33750#ifdef __cplusplus
33751extern "C"
33752{
33753#endif
33754/* We use char because int might match the return type of a gcc2
33755 builtin and then its argument prototype would still apply. */
33756char $ac_func ();
33757/* The GNU C library defines this for functions which it implements
33758 to always fail with ENOSYS. Some functions are actually named
33759 something starting with __ and the normal name is an alias. */
33760#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
33761choke me
33762#else
33763char (*f) () = $ac_func;
33764#endif
33765#ifdef __cplusplus
33766}
33767#endif
33768
33769int
33770main ()
33771{
33772return f != $ac_func;
33773 ;
33774 return 0;
33775}
33776_ACEOF
33777rm -f conftest.$ac_objext conftest$ac_exeext
33778if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 33779 (eval $ac_link) 2>conftest.er1
a848cd7e 33780 ac_status=$?
ac1cb8d3
VS
33781 grep -v '^ *+' conftest.er1 >conftest.err
33782 rm -f conftest.er1
33783 cat conftest.err >&5
a848cd7e
SC
33784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33785 (exit $ac_status); } &&
3f60522a
JS
33786 { ac_try='test -z "$ac_cxx_werror_flag"
33787 || test ! -s conftest.err'
ac1cb8d3
VS
33788 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33789 (eval $ac_try) 2>&5
33790 ac_status=$?
33791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33792 (exit $ac_status); }; } &&
33793 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
33794 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33795 (eval $ac_try) 2>&5
33796 ac_status=$?
33797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33798 (exit $ac_status); }; }; then
33799 eval "$as_ac_var=yes"
33800else
33801 echo "$as_me: failed program was:" >&5
33802sed 's/^/| /' conftest.$ac_ext >&5
33803
33804eval "$as_ac_var=no"
33805fi
ac1cb8d3
VS
33806rm -f conftest.err conftest.$ac_objext \
33807 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
33808fi
33809echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
33810echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
33811if test `eval echo '${'$as_ac_var'}'` = yes; then
33812 cat >>confdefs.h <<_ACEOF
33813#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33814_ACEOF
33815 WCSLEN_FOUND=1
33816fi
33817done
33818
33819
33820 if test "$WCSLEN_FOUND" = 0; then
33821 if test "$TOOLKIT" = "MSW"; then
33822 echo "$as_me:$LINENO: checking for wcslen in -lmsvcrt" >&5
33823echo $ECHO_N "checking for wcslen in -lmsvcrt... $ECHO_C" >&6
33824if test "${ac_cv_lib_msvcrt_wcslen+set}" = set; then
33825 echo $ECHO_N "(cached) $ECHO_C" >&6
33826else
33827 ac_check_lib_save_LIBS=$LIBS
33828LIBS="-lmsvcrt $LIBS"
33829cat >conftest.$ac_ext <<_ACEOF
33830/* confdefs.h. */
33831_ACEOF
33832cat confdefs.h >>conftest.$ac_ext
33833cat >>conftest.$ac_ext <<_ACEOF
33834/* end confdefs.h. */
33835
33836/* Override any gcc2 internal prototype to avoid an error. */
33837#ifdef __cplusplus
33838extern "C"
33839#endif
33840/* We use char because int might match the return type of a gcc2
33841 builtin and then its argument prototype would still apply. */
33842char wcslen ();
33843int
33844main ()
33845{
33846wcslen ();
33847 ;
33848 return 0;
33849}
33850_ACEOF
33851rm -f conftest.$ac_objext conftest$ac_exeext
33852if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 33853 (eval $ac_link) 2>conftest.er1
a848cd7e 33854 ac_status=$?
ac1cb8d3
VS
33855 grep -v '^ *+' conftest.er1 >conftest.err
33856 rm -f conftest.er1
33857 cat conftest.err >&5
a848cd7e
SC
33858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33859 (exit $ac_status); } &&
3f60522a
JS
33860 { ac_try='test -z "$ac_cxx_werror_flag"
33861 || test ! -s conftest.err'
ac1cb8d3
VS
33862 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33863 (eval $ac_try) 2>&5
33864 ac_status=$?
33865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33866 (exit $ac_status); }; } &&
33867 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
33868 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33869 (eval $ac_try) 2>&5
33870 ac_status=$?
33871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33872 (exit $ac_status); }; }; then
33873 ac_cv_lib_msvcrt_wcslen=yes
33874else
33875 echo "$as_me: failed program was:" >&5
33876sed 's/^/| /' conftest.$ac_ext >&5
33877
33878ac_cv_lib_msvcrt_wcslen=no
33879fi
ac1cb8d3
VS
33880rm -f conftest.err conftest.$ac_objext \
33881 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
33882LIBS=$ac_check_lib_save_LIBS
33883fi
33884echo "$as_me:$LINENO: result: $ac_cv_lib_msvcrt_wcslen" >&5
33885echo "${ECHO_T}$ac_cv_lib_msvcrt_wcslen" >&6
33886if test $ac_cv_lib_msvcrt_wcslen = yes; then
33887 WCHAR_OK=1
33888fi
33889
33890 else
33891 echo "$as_me:$LINENO: checking for wcslen in -lw" >&5
33892echo $ECHO_N "checking for wcslen in -lw... $ECHO_C" >&6
33893if test "${ac_cv_lib_w_wcslen+set}" = set; then
33894 echo $ECHO_N "(cached) $ECHO_C" >&6
33895else
33896 ac_check_lib_save_LIBS=$LIBS
33897LIBS="-lw $LIBS"
33898cat >conftest.$ac_ext <<_ACEOF
33899/* confdefs.h. */
33900_ACEOF
33901cat confdefs.h >>conftest.$ac_ext
33902cat >>conftest.$ac_ext <<_ACEOF
33903/* end confdefs.h. */
33904
33905/* Override any gcc2 internal prototype to avoid an error. */
33906#ifdef __cplusplus
33907extern "C"
33908#endif
33909/* We use char because int might match the return type of a gcc2
33910 builtin and then its argument prototype would still apply. */
33911char wcslen ();
33912int
33913main ()
33914{
33915wcslen ();
33916 ;
33917 return 0;
33918}
33919_ACEOF
33920rm -f conftest.$ac_objext conftest$ac_exeext
33921if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 33922 (eval $ac_link) 2>conftest.er1
a848cd7e 33923 ac_status=$?
ac1cb8d3
VS
33924 grep -v '^ *+' conftest.er1 >conftest.err
33925 rm -f conftest.er1
33926 cat conftest.err >&5
a848cd7e
SC
33927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33928 (exit $ac_status); } &&
3f60522a
JS
33929 { ac_try='test -z "$ac_cxx_werror_flag"
33930 || test ! -s conftest.err'
ac1cb8d3
VS
33931 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33932 (eval $ac_try) 2>&5
33933 ac_status=$?
33934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33935 (exit $ac_status); }; } &&
33936 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
33937 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33938 (eval $ac_try) 2>&5
33939 ac_status=$?
33940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33941 (exit $ac_status); }; }; then
33942 ac_cv_lib_w_wcslen=yes
33943else
33944 echo "$as_me: failed program was:" >&5
33945sed 's/^/| /' conftest.$ac_ext >&5
33946
33947ac_cv_lib_w_wcslen=no
33948fi
ac1cb8d3
VS
33949rm -f conftest.err conftest.$ac_objext \
33950 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
33951LIBS=$ac_check_lib_save_LIBS
33952fi
33953echo "$as_me:$LINENO: result: $ac_cv_lib_w_wcslen" >&5
33954echo "${ECHO_T}$ac_cv_lib_w_wcslen" >&6
33955if test $ac_cv_lib_w_wcslen = yes; then
33956
33957 WCHAR_LINK=" -lw"
33958 WCSLEN_FOUND=1
33959
33960fi
33961
33962 fi
33963 fi
33964
33965 if test "$WCSLEN_FOUND" = 1; then
33966 cat >>confdefs.h <<\_ACEOF
33967#define HAVE_WCSLEN 1
33968_ACEOF
33969
33970 fi
33971
efdf6afe 33972 if test "$USE_HPUX" = 1 -a "$GCC" != "yes"; then
c92ad099 33973 CPPFLAGS="-D_INCLUDE__STDC_A1_SOURCE $CPPFLAGS"
473276a9
VS
33974 fi
33975
efdf6afe
VZ
33976 echo "$as_me:$LINENO: checking for mbstate_t" >&5
33977echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6
33978if test "${ac_cv_type_mbstate_t+set}" = set; then
33979 echo $ECHO_N "(cached) $ECHO_C" >&6
33980else
33981 cat >conftest.$ac_ext <<_ACEOF
33982/* confdefs.h. */
33983_ACEOF
33984cat confdefs.h >>conftest.$ac_ext
33985cat >>conftest.$ac_ext <<_ACEOF
33986/* end confdefs.h. */
33987#include <wchar.h>
33988
33989int
33990main ()
33991{
33992if ((mbstate_t *) 0)
33993 return 0;
33994if (sizeof (mbstate_t))
33995 return 0;
33996 ;
33997 return 0;
33998}
33999_ACEOF
34000rm -f conftest.$ac_objext
34001if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34002 (eval $ac_compile) 2>conftest.er1
34003 ac_status=$?
34004 grep -v '^ *+' conftest.er1 >conftest.err
34005 rm -f conftest.er1
34006 cat conftest.err >&5
34007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34008 (exit $ac_status); } &&
3f60522a
JS
34009 { ac_try='test -z "$ac_cxx_werror_flag"
34010 || test ! -s conftest.err'
efdf6afe
VZ
34011 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34012 (eval $ac_try) 2>&5
34013 ac_status=$?
34014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34015 (exit $ac_status); }; } &&
34016 { ac_try='test -s conftest.$ac_objext'
34017 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34018 (eval $ac_try) 2>&5
34019 ac_status=$?
34020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34021 (exit $ac_status); }; }; then
34022 ac_cv_type_mbstate_t=yes
34023else
34024 echo "$as_me: failed program was:" >&5
34025sed 's/^/| /' conftest.$ac_ext >&5
34026
34027ac_cv_type_mbstate_t=no
34028fi
34029rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34030fi
34031echo "$as_me:$LINENO: result: $ac_cv_type_mbstate_t" >&5
34032echo "${ECHO_T}$ac_cv_type_mbstate_t" >&6
34033if test $ac_cv_type_mbstate_t = yes; then
34034
34035cat >>confdefs.h <<_ACEOF
34036#define HAVE_MBSTATE_T 1
34037_ACEOF
34038
a848cd7e
SC
34039
34040for ac_func in wcsrtombs
34041do
34042as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34043echo "$as_me:$LINENO: checking for $ac_func" >&5
34044echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
34045if eval "test \"\${$as_ac_var+set}\" = set"; then
34046 echo $ECHO_N "(cached) $ECHO_C" >&6
34047else
34048 cat >conftest.$ac_ext <<_ACEOF
34049/* confdefs.h. */
34050_ACEOF
34051cat confdefs.h >>conftest.$ac_ext
34052cat >>conftest.$ac_ext <<_ACEOF
34053/* end confdefs.h. */
ac1cb8d3
VS
34054/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34055 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34056#define $ac_func innocuous_$ac_func
34057
a848cd7e
SC
34058/* System header to define __stub macros and hopefully few prototypes,
34059 which can conflict with char $ac_func (); below.
34060 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34061 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 34062
a848cd7e
SC
34063#ifdef __STDC__
34064# include <limits.h>
34065#else
34066# include <assert.h>
34067#endif
ac1cb8d3
VS
34068
34069#undef $ac_func
34070
a848cd7e
SC
34071/* Override any gcc2 internal prototype to avoid an error. */
34072#ifdef __cplusplus
34073extern "C"
34074{
34075#endif
34076/* We use char because int might match the return type of a gcc2
34077 builtin and then its argument prototype would still apply. */
34078char $ac_func ();
34079/* The GNU C library defines this for functions which it implements
34080 to always fail with ENOSYS. Some functions are actually named
34081 something starting with __ and the normal name is an alias. */
34082#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
34083choke me
34084#else
34085char (*f) () = $ac_func;
34086#endif
34087#ifdef __cplusplus
34088}
34089#endif
34090
34091int
34092main ()
34093{
34094return f != $ac_func;
34095 ;
34096 return 0;
34097}
34098_ACEOF
34099rm -f conftest.$ac_objext conftest$ac_exeext
34100if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 34101 (eval $ac_link) 2>conftest.er1
a848cd7e 34102 ac_status=$?
ac1cb8d3
VS
34103 grep -v '^ *+' conftest.er1 >conftest.err
34104 rm -f conftest.er1
34105 cat conftest.err >&5
a848cd7e
SC
34106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34107 (exit $ac_status); } &&
3f60522a
JS
34108 { ac_try='test -z "$ac_cxx_werror_flag"
34109 || test ! -s conftest.err'
ac1cb8d3
VS
34110 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34111 (eval $ac_try) 2>&5
34112 ac_status=$?
34113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34114 (exit $ac_status); }; } &&
34115 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
34116 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34117 (eval $ac_try) 2>&5
34118 ac_status=$?
34119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34120 (exit $ac_status); }; }; then
34121 eval "$as_ac_var=yes"
34122else
34123 echo "$as_me: failed program was:" >&5
34124sed 's/^/| /' conftest.$ac_ext >&5
34125
34126eval "$as_ac_var=no"
34127fi
ac1cb8d3
VS
34128rm -f conftest.err conftest.$ac_objext \
34129 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
34130fi
34131echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
34132echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
34133if test `eval echo '${'$as_ac_var'}'` = yes; then
34134 cat >>confdefs.h <<_ACEOF
34135#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34136_ACEOF
34137
34138fi
34139done
34140
efdf6afe
VZ
34141fi
34142
a848cd7e
SC
34143else
34144 { echo "$as_me:$LINENO: WARNING: Wide character support is unavailable" >&5
34145echo "$as_me: WARNING: Wide character support is unavailable" >&2;}
34146fi
34147
a848cd7e 34148
4a767dd5
VZ
34149
34150for ac_func in snprintf vsnprintf
a848cd7e
SC
34151do
34152as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34153echo "$as_me:$LINENO: checking for $ac_func" >&5
34154echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
34155if eval "test \"\${$as_ac_var+set}\" = set"; then
34156 echo $ECHO_N "(cached) $ECHO_C" >&6
34157else
34158 cat >conftest.$ac_ext <<_ACEOF
34159/* confdefs.h. */
34160_ACEOF
34161cat confdefs.h >>conftest.$ac_ext
34162cat >>conftest.$ac_ext <<_ACEOF
34163/* end confdefs.h. */
ac1cb8d3
VS
34164/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34165 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34166#define $ac_func innocuous_$ac_func
34167
a848cd7e
SC
34168/* System header to define __stub macros and hopefully few prototypes,
34169 which can conflict with char $ac_func (); below.
34170 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34171 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 34172
a848cd7e
SC
34173#ifdef __STDC__
34174# include <limits.h>
34175#else
34176# include <assert.h>
34177#endif
ac1cb8d3
VS
34178
34179#undef $ac_func
34180
a848cd7e
SC
34181/* Override any gcc2 internal prototype to avoid an error. */
34182#ifdef __cplusplus
34183extern "C"
34184{
34185#endif
34186/* We use char because int might match the return type of a gcc2
34187 builtin and then its argument prototype would still apply. */
34188char $ac_func ();
34189/* The GNU C library defines this for functions which it implements
34190 to always fail with ENOSYS. Some functions are actually named
34191 something starting with __ and the normal name is an alias. */
34192#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
34193choke me
34194#else
34195char (*f) () = $ac_func;
34196#endif
34197#ifdef __cplusplus
34198}
34199#endif
34200
34201int
34202main ()
34203{
34204return f != $ac_func;
34205 ;
34206 return 0;
34207}
34208_ACEOF
34209rm -f conftest.$ac_objext conftest$ac_exeext
34210if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 34211 (eval $ac_link) 2>conftest.er1
a848cd7e 34212 ac_status=$?
ac1cb8d3
VS
34213 grep -v '^ *+' conftest.er1 >conftest.err
34214 rm -f conftest.er1
34215 cat conftest.err >&5
a848cd7e
SC
34216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34217 (exit $ac_status); } &&
3f60522a
JS
34218 { ac_try='test -z "$ac_cxx_werror_flag"
34219 || test ! -s conftest.err'
ac1cb8d3
VS
34220 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34221 (eval $ac_try) 2>&5
34222 ac_status=$?
34223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34224 (exit $ac_status); }; } &&
34225 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
34226 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34227 (eval $ac_try) 2>&5
34228 ac_status=$?
34229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34230 (exit $ac_status); }; }; then
34231 eval "$as_ac_var=yes"
34232else
34233 echo "$as_me: failed program was:" >&5
34234sed 's/^/| /' conftest.$ac_ext >&5
34235
34236eval "$as_ac_var=no"
34237fi
ac1cb8d3
VS
34238rm -f conftest.err conftest.$ac_objext \
34239 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
34240fi
34241echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
34242echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
34243if test `eval echo '${'$as_ac_var'}'` = yes; then
34244 cat >>confdefs.h <<_ACEOF
34245#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34246_ACEOF
34247
34248fi
34249done
34250
34251
34252if test "$ac_cv_func_vsnprintf" = "yes"; then
34253 echo "$as_me:$LINENO: checking for vsnprintf declaration" >&5
34254echo $ECHO_N "checking for vsnprintf declaration... $ECHO_C" >&6
34255if test "${wx_cv_func_vsnprintf_decl+set}" = set; then
34256 echo $ECHO_N "(cached) $ECHO_C" >&6
34257else
34258
efdf6afe 34259 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
34260/* confdefs.h. */
34261_ACEOF
34262cat confdefs.h >>conftest.$ac_ext
34263cat >>conftest.$ac_ext <<_ACEOF
34264/* end confdefs.h. */
34265
34266 #include <stdio.h>
34267 #include <stdarg.h>
efdf6afe
VZ
34268 #ifdef __MSL__
34269 #if __MSL__ >= 0x6000
34270 namespace std {}
34271 using namespace std;
34272 #endif
34273 #endif
a848cd7e
SC
34274
34275int
34276main ()
34277{
34278
34279 char *buf;
34280 va_list ap;
62fa8b3a 34281 vsnprintf(buf, 10u, "%s", ap);
c122b164
DE
34282
34283 ;
34284 return 0;
34285}
34286_ACEOF
34287rm -f conftest.$ac_objext
34288if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34289 (eval $ac_compile) 2>conftest.er1
34290 ac_status=$?
34291 grep -v '^ *+' conftest.er1 >conftest.err
34292 rm -f conftest.er1
34293 cat conftest.err >&5
34294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34295 (exit $ac_status); } &&
3f60522a
JS
34296 { ac_try='test -z "$ac_cxx_werror_flag"
34297 || test ! -s conftest.err'
c122b164
DE
34298 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34299 (eval $ac_try) 2>&5
34300 ac_status=$?
34301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34302 (exit $ac_status); }; } &&
34303 { ac_try='test -s conftest.$ac_objext'
34304 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34305 (eval $ac_try) 2>&5
34306 ac_status=$?
34307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34308 (exit $ac_status); }; }; then
34309 wx_cv_func_vsnprintf_decl=yes
34310else
34311 echo "$as_me: failed program was:" >&5
34312sed 's/^/| /' conftest.$ac_ext >&5
34313
a848cd7e
SC
34314wx_cv_func_vsnprintf_decl=no
34315
34316fi
ac1cb8d3 34317rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
34318
34319
34320fi
34321echo "$as_me:$LINENO: result: $wx_cv_func_vsnprintf_decl" >&5
34322echo "${ECHO_T}$wx_cv_func_vsnprintf_decl" >&6
34323
34324 if test "$wx_cv_func_vsnprintf_decl" = "yes"; then
34325 cat >>confdefs.h <<\_ACEOF
34326#define HAVE_VSNPRINTF_DECL 1
34327_ACEOF
34328
62fa8b3a
MW
34329
34330 echo "$as_me:$LINENO: checking if vsnprintf declaration is broken" >&5
34331echo $ECHO_N "checking if vsnprintf declaration is broken... $ECHO_C" >&6
34332if test "${wx_cv_func_broken_vsnprintf_decl+set}" = set; then
34333 echo $ECHO_N "(cached) $ECHO_C" >&6
34334else
34335
34336 cat >conftest.$ac_ext <<_ACEOF
34337/* confdefs.h. */
34338_ACEOF
34339cat confdefs.h >>conftest.$ac_ext
34340cat >>conftest.$ac_ext <<_ACEOF
34341/* end confdefs.h. */
34342
34343 #include <stdio.h>
34344 #include <stdarg.h>
34345 #ifdef __MSL__
34346 #if __MSL__ >= 0x6000
34347 namespace std {}
34348 using namespace std;
34349 #endif
34350 #endif
34351
34352int
34353main ()
34354{
34355
34356 char *buf;
34357 va_list ap;
34358 const char *fmt = "%s";
34359 vsnprintf(buf, 10u, fmt, ap);
34360
34361 ;
34362 return 0;
34363}
34364_ACEOF
34365rm -f conftest.$ac_objext
34366if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34367 (eval $ac_compile) 2>conftest.er1
34368 ac_status=$?
34369 grep -v '^ *+' conftest.er1 >conftest.err
34370 rm -f conftest.er1
34371 cat conftest.err >&5
34372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34373 (exit $ac_status); } &&
3f60522a
JS
34374 { ac_try='test -z "$ac_cxx_werror_flag"
34375 || test ! -s conftest.err'
62fa8b3a
MW
34376 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34377 (eval $ac_try) 2>&5
34378 ac_status=$?
34379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34380 (exit $ac_status); }; } &&
34381 { ac_try='test -s conftest.$ac_objext'
34382 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34383 (eval $ac_try) 2>&5
34384 ac_status=$?
34385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34386 (exit $ac_status); }; }; then
34387 wx_cv_func_broken_vsnprintf_decl=no
34388else
34389 echo "$as_me: failed program was:" >&5
34390sed 's/^/| /' conftest.$ac_ext >&5
34391
34392wx_cv_func_broken_vsnprintf_decl=yes
34393
34394fi
34395rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34396
34397
34398fi
34399echo "$as_me:$LINENO: result: $wx_cv_func_broken_vsnprintf_decl" >&5
34400echo "${ECHO_T}$wx_cv_func_broken_vsnprintf_decl" >&6
34401
34402 if test "$wx_cv_func_broken_vsnprintf_decl" = "yes"; then
34403 cat >>confdefs.h <<\_ACEOF
34404#define HAVE_BROKEN_VSNPRINTF_DECL 1
34405_ACEOF
34406
34407 fi
a848cd7e
SC
34408 fi
34409fi
34410
4a767dd5
VZ
34411if test "$ac_cv_func_snprintf" = "yes"; then
34412 echo "$as_me:$LINENO: checking for snprintf declaration" >&5
34413echo $ECHO_N "checking for snprintf declaration... $ECHO_C" >&6
34414if test "${wx_cv_func_snprintf_decl+set}" = set; then
34415 echo $ECHO_N "(cached) $ECHO_C" >&6
34416else
34417
34418 cat >conftest.$ac_ext <<_ACEOF
34419/* confdefs.h. */
34420_ACEOF
34421cat confdefs.h >>conftest.$ac_ext
34422cat >>conftest.$ac_ext <<_ACEOF
34423/* end confdefs.h. */
34424
34425 #include <stdio.h>
34426 #include <stdarg.h>
34427 #ifdef __MSL__
34428 #if __MSL__ >= 0x6000
34429 namespace std {}
34430 using namespace std;
34431 #endif
34432 #endif
34433
34434int
34435main ()
34436{
34437
34438 char *buf;
62fa8b3a 34439 snprintf(buf, 10u, "%s", "wx");
4a767dd5
VZ
34440
34441 ;
34442 return 0;
34443}
34444_ACEOF
34445rm -f conftest.$ac_objext
34446if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34447 (eval $ac_compile) 2>conftest.er1
34448 ac_status=$?
34449 grep -v '^ *+' conftest.er1 >conftest.err
34450 rm -f conftest.er1
34451 cat conftest.err >&5
34452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34453 (exit $ac_status); } &&
3f60522a
JS
34454 { ac_try='test -z "$ac_cxx_werror_flag"
34455 || test ! -s conftest.err'
4a767dd5
VZ
34456 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34457 (eval $ac_try) 2>&5
34458 ac_status=$?
34459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34460 (exit $ac_status); }; } &&
34461 { ac_try='test -s conftest.$ac_objext'
34462 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34463 (eval $ac_try) 2>&5
34464 ac_status=$?
34465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34466 (exit $ac_status); }; }; then
34467 wx_cv_func_snprintf_decl=yes
34468else
34469 echo "$as_me: failed program was:" >&5
34470sed 's/^/| /' conftest.$ac_ext >&5
34471
34472wx_cv_func_snprintf_decl=no
34473
34474fi
34475rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34476
34477
34478fi
34479echo "$as_me:$LINENO: result: $wx_cv_func_snprintf_decl" >&5
34480echo "${ECHO_T}$wx_cv_func_snprintf_decl" >&6
34481
34482 if test "$wx_cv_func_snprintf_decl" = "yes"; then
34483 cat >>confdefs.h <<\_ACEOF
34484#define HAVE_SNPRINTF_DECL 1
34485_ACEOF
34486
62fa8b3a
MW
34487
34488 echo "$as_me:$LINENO: checking if snprintf declaration is broken" >&5
34489echo $ECHO_N "checking if snprintf declaration is broken... $ECHO_C" >&6
34490if test "${wx_cv_func_broken_snprintf_decl+set}" = set; then
34491 echo $ECHO_N "(cached) $ECHO_C" >&6
34492else
34493
34494 cat >conftest.$ac_ext <<_ACEOF
34495/* confdefs.h. */
34496_ACEOF
34497cat confdefs.h >>conftest.$ac_ext
34498cat >>conftest.$ac_ext <<_ACEOF
34499/* end confdefs.h. */
34500
34501 #include <stdio.h>
34502 #include <stdarg.h>
34503 #ifdef __MSL__
34504 #if __MSL__ >= 0x6000
34505 namespace std {}
34506 using namespace std;
34507 #endif
34508 #endif
34509
34510int
34511main ()
34512{
34513
34514 char *buf;
34515 const char *fmt = "%s";
34516 snprintf(buf, 10u, fmt, "wx");
34517
34518 ;
34519 return 0;
34520}
34521_ACEOF
34522rm -f conftest.$ac_objext
34523if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34524 (eval $ac_compile) 2>conftest.er1
34525 ac_status=$?
34526 grep -v '^ *+' conftest.er1 >conftest.err
34527 rm -f conftest.er1
34528 cat conftest.err >&5
34529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34530 (exit $ac_status); } &&
3f60522a
JS
34531 { ac_try='test -z "$ac_cxx_werror_flag"
34532 || test ! -s conftest.err'
62fa8b3a
MW
34533 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34534 (eval $ac_try) 2>&5
34535 ac_status=$?
34536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34537 (exit $ac_status); }; } &&
34538 { ac_try='test -s conftest.$ac_objext'
34539 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34540 (eval $ac_try) 2>&5
34541 ac_status=$?
34542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34543 (exit $ac_status); }; }; then
34544 wx_cv_func_broken_snprintf_decl=no
34545else
34546 echo "$as_me: failed program was:" >&5
34547sed 's/^/| /' conftest.$ac_ext >&5
34548
34549wx_cv_func_broken_snprintf_decl=yes
34550
34551fi
34552rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34553
34554
34555fi
34556echo "$as_me:$LINENO: result: $wx_cv_func_broken_snprintf_decl" >&5
34557echo "${ECHO_T}$wx_cv_func_broken_snprintf_decl" >&6
34558
34559 if test "$wx_cv_func_broken_snprintf_decl" = "yes"; then
34560 cat >>confdefs.h <<\_ACEOF
34561#define HAVE_BROKEN_SNPRINTF_DECL 1
34562_ACEOF
34563
34564 fi
4a767dd5
VZ
34565 fi
34566fi
34567
a848cd7e
SC
34568if test "$wxUSE_UNICODE" = yes; then
34569
34570
34571
fbe47c7b
VS
34572
34573
34574
34575for ac_func in wputc wputchar putws fputws wprintf vswprintf
a848cd7e
SC
34576do
34577as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34578echo "$as_me:$LINENO: checking for $ac_func" >&5
34579echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
34580if eval "test \"\${$as_ac_var+set}\" = set"; then
34581 echo $ECHO_N "(cached) $ECHO_C" >&6
34582else
34583 cat >conftest.$ac_ext <<_ACEOF
34584/* confdefs.h. */
34585_ACEOF
34586cat confdefs.h >>conftest.$ac_ext
34587cat >>conftest.$ac_ext <<_ACEOF
34588/* end confdefs.h. */
ac1cb8d3
VS
34589/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34590 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34591#define $ac_func innocuous_$ac_func
34592
a848cd7e
SC
34593/* System header to define __stub macros and hopefully few prototypes,
34594 which can conflict with char $ac_func (); below.
34595 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34596 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 34597
a848cd7e
SC
34598#ifdef __STDC__
34599# include <limits.h>
34600#else
34601# include <assert.h>
34602#endif
ac1cb8d3
VS
34603
34604#undef $ac_func
34605
a848cd7e
SC
34606/* Override any gcc2 internal prototype to avoid an error. */
34607#ifdef __cplusplus
34608extern "C"
34609{
34610#endif
34611/* We use char because int might match the return type of a gcc2
34612 builtin and then its argument prototype would still apply. */
34613char $ac_func ();
34614/* The GNU C library defines this for functions which it implements
34615 to always fail with ENOSYS. Some functions are actually named
34616 something starting with __ and the normal name is an alias. */
34617#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
34618choke me
34619#else
34620char (*f) () = $ac_func;
34621#endif
34622#ifdef __cplusplus
34623}
34624#endif
34625
34626int
34627main ()
34628{
34629return f != $ac_func;
34630 ;
34631 return 0;
34632}
34633_ACEOF
34634rm -f conftest.$ac_objext conftest$ac_exeext
34635if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 34636 (eval $ac_link) 2>conftest.er1
a848cd7e 34637 ac_status=$?
ac1cb8d3
VS
34638 grep -v '^ *+' conftest.er1 >conftest.err
34639 rm -f conftest.er1
34640 cat conftest.err >&5
a848cd7e
SC
34641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34642 (exit $ac_status); } &&
3f60522a
JS
34643 { ac_try='test -z "$ac_cxx_werror_flag"
34644 || test ! -s conftest.err'
ac1cb8d3
VS
34645 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34646 (eval $ac_try) 2>&5
34647 ac_status=$?
34648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34649 (exit $ac_status); }; } &&
34650 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
34651 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34652 (eval $ac_try) 2>&5
34653 ac_status=$?
34654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34655 (exit $ac_status); }; }; then
34656 eval "$as_ac_var=yes"
34657else
34658 echo "$as_me: failed program was:" >&5
34659sed 's/^/| /' conftest.$ac_ext >&5
34660
34661eval "$as_ac_var=no"
34662fi
ac1cb8d3
VS
34663rm -f conftest.err conftest.$ac_objext \
34664 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
34665fi
34666echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
34667echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
34668if test `eval echo '${'$as_ac_var'}'` = yes; then
34669 cat >>confdefs.h <<_ACEOF
34670#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34671_ACEOF
34672
34673fi
34674done
34675
34676
34677 echo "$as_me:$LINENO: checking for _vsnwprintf" >&5
34678echo $ECHO_N "checking for _vsnwprintf... $ECHO_C" >&6
34679 cat >conftest.$ac_ext <<_ACEOF
34680/* confdefs.h. */
34681_ACEOF
34682cat confdefs.h >>conftest.$ac_ext
34683cat >>conftest.$ac_ext <<_ACEOF
34684/* end confdefs.h. */
34685#include <wchar.h>
34686int
34687main ()
34688{
34689&_vsnwprintf;
34690 ;
34691 return 0;
34692}
34693_ACEOF
34694rm -f conftest.$ac_objext
34695if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 34696 (eval $ac_compile) 2>conftest.er1
a848cd7e 34697 ac_status=$?
ac1cb8d3
VS
34698 grep -v '^ *+' conftest.er1 >conftest.err
34699 rm -f conftest.er1
34700 cat conftest.err >&5
a848cd7e
SC
34701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34702 (exit $ac_status); } &&
3f60522a
JS
34703 { ac_try='test -z "$ac_cxx_werror_flag"
34704 || test ! -s conftest.err'
ac1cb8d3
VS
34705 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34706 (eval $ac_try) 2>&5
34707 ac_status=$?
34708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34709 (exit $ac_status); }; } &&
34710 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
34711 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34712 (eval $ac_try) 2>&5
34713 ac_status=$?
34714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34715 (exit $ac_status); }; }; then
34716 echo "$as_me:$LINENO: result: yes" >&5
34717echo "${ECHO_T}yes" >&6
34718 cat >>confdefs.h <<\_ACEOF
34719#define HAVE__VSNWPRINTF 1
34720_ACEOF
34721
34722else
34723 echo "$as_me: failed program was:" >&5
34724sed 's/^/| /' conftest.$ac_ext >&5
34725
34726echo "$as_me:$LINENO: result: no" >&5
34727echo "${ECHO_T}no" >&6
34728fi
ac1cb8d3 34729rm -f conftest.err conftest.$ac_objext conftest.$ac_ext;
a848cd7e
SC
34730fi
34731
6ebeb4c7
VZ
34732if test "x$ac_cv_header_fnmatch_h" = "xyes"; then
34733
34734for ac_func in fnmatch
34735do
34736as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34737echo "$as_me:$LINENO: checking for $ac_func" >&5
34738echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
34739if eval "test \"\${$as_ac_var+set}\" = set"; then
34740 echo $ECHO_N "(cached) $ECHO_C" >&6
34741else
34742 cat >conftest.$ac_ext <<_ACEOF
34743/* confdefs.h. */
34744_ACEOF
34745cat confdefs.h >>conftest.$ac_ext
34746cat >>conftest.$ac_ext <<_ACEOF
34747/* end confdefs.h. */
34748/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34749 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34750#define $ac_func innocuous_$ac_func
34751
34752/* System header to define __stub macros and hopefully few prototypes,
34753 which can conflict with char $ac_func (); below.
34754 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34755 <limits.h> exists even on freestanding compilers. */
34756
34757#ifdef __STDC__
34758# include <limits.h>
34759#else
34760# include <assert.h>
34761#endif
34762
34763#undef $ac_func
34764
34765/* Override any gcc2 internal prototype to avoid an error. */
34766#ifdef __cplusplus
34767extern "C"
34768{
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 $ac_func ();
34773/* The GNU C library defines this for functions which it implements
34774 to always fail with ENOSYS. Some functions are actually named
34775 something starting with __ and the normal name is an alias. */
34776#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
34777choke me
34778#else
34779char (*f) () = $ac_func;
34780#endif
34781#ifdef __cplusplus
34782}
34783#endif
34784
34785int
34786main ()
34787{
34788return f != $ac_func;
34789 ;
34790 return 0;
34791}
34792_ACEOF
34793rm -f conftest.$ac_objext conftest$ac_exeext
34794if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34795 (eval $ac_link) 2>conftest.er1
34796 ac_status=$?
34797 grep -v '^ *+' conftest.er1 >conftest.err
34798 rm -f conftest.er1
34799 cat conftest.err >&5
34800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34801 (exit $ac_status); } &&
3f60522a
JS
34802 { ac_try='test -z "$ac_cxx_werror_flag"
34803 || test ! -s conftest.err'
6ebeb4c7
VZ
34804 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34805 (eval $ac_try) 2>&5
34806 ac_status=$?
34807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34808 (exit $ac_status); }; } &&
34809 { ac_try='test -s conftest$ac_exeext'
34810 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34811 (eval $ac_try) 2>&5
34812 ac_status=$?
34813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34814 (exit $ac_status); }; }; then
34815 eval "$as_ac_var=yes"
34816else
34817 echo "$as_me: failed program was:" >&5
34818sed 's/^/| /' conftest.$ac_ext >&5
34819
34820eval "$as_ac_var=no"
34821fi
34822rm -f conftest.err conftest.$ac_objext \
34823 conftest$ac_exeext conftest.$ac_ext
34824fi
34825echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
34826echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
34827if test `eval echo '${'$as_ac_var'}'` = yes; then
34828 cat >>confdefs.h <<_ACEOF
34829#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34830_ACEOF
34831
34832fi
34833done
34834
34835fi
34836
34837if test "$wxUSE_FILE" = "yes"; then
34838
34839for ac_func in fsync
34840do
34841as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34842echo "$as_me:$LINENO: checking for $ac_func" >&5
34843echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
34844if eval "test \"\${$as_ac_var+set}\" = set"; then
34845 echo $ECHO_N "(cached) $ECHO_C" >&6
34846else
34847 cat >conftest.$ac_ext <<_ACEOF
34848/* confdefs.h. */
34849_ACEOF
34850cat confdefs.h >>conftest.$ac_ext
34851cat >>conftest.$ac_ext <<_ACEOF
34852/* end confdefs.h. */
34853/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34854 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34855#define $ac_func innocuous_$ac_func
34856
34857/* System header to define __stub macros and hopefully few prototypes,
34858 which can conflict with char $ac_func (); below.
34859 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34860 <limits.h> exists even on freestanding compilers. */
34861
34862#ifdef __STDC__
34863# include <limits.h>
34864#else
34865# include <assert.h>
34866#endif
34867
34868#undef $ac_func
34869
34870/* Override any gcc2 internal prototype to avoid an error. */
34871#ifdef __cplusplus
34872extern "C"
34873{
34874#endif
34875/* We use char because int might match the return type of a gcc2
34876 builtin and then its argument prototype would still apply. */
34877char $ac_func ();
34878/* The GNU C library defines this for functions which it implements
34879 to always fail with ENOSYS. Some functions are actually named
34880 something starting with __ and the normal name is an alias. */
34881#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
34882choke me
34883#else
34884char (*f) () = $ac_func;
34885#endif
34886#ifdef __cplusplus
34887}
34888#endif
34889
34890int
34891main ()
34892{
34893return f != $ac_func;
34894 ;
34895 return 0;
34896}
34897_ACEOF
34898rm -f conftest.$ac_objext conftest$ac_exeext
34899if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34900 (eval $ac_link) 2>conftest.er1
34901 ac_status=$?
34902 grep -v '^ *+' conftest.er1 >conftest.err
34903 rm -f conftest.er1
34904 cat conftest.err >&5
34905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34906 (exit $ac_status); } &&
3f60522a
JS
34907 { ac_try='test -z "$ac_cxx_werror_flag"
34908 || test ! -s conftest.err'
6ebeb4c7
VZ
34909 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34910 (eval $ac_try) 2>&5
34911 ac_status=$?
34912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34913 (exit $ac_status); }; } &&
34914 { ac_try='test -s conftest$ac_exeext'
34915 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34916 (eval $ac_try) 2>&5
34917 ac_status=$?
34918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34919 (exit $ac_status); }; }; then
34920 eval "$as_ac_var=yes"
34921else
34922 echo "$as_me: failed program was:" >&5
34923sed 's/^/| /' conftest.$ac_ext >&5
34924
34925eval "$as_ac_var=no"
34926fi
34927rm -f conftest.err conftest.$ac_objext \
34928 conftest$ac_exeext conftest.$ac_ext
34929fi
34930echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
34931echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
34932if test `eval echo '${'$as_ac_var'}'` = yes; then
34933 cat >>confdefs.h <<_ACEOF
34934#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34935_ACEOF
34936
34937fi
34938done
34939
34940fi
a848cd7e
SC
34941
34942
34943if test "$TOOLKIT" != "MSW"; then
34944
34945
a848cd7e
SC
34946
34947
34948
34949# Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
34950if test "${with_libiconv_prefix+set}" = set; then
34951 withval="$with_libiconv_prefix"
34952
34953 for dir in `echo "$withval" | tr : ' '`; do
34954 if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi
34955 if test -d $dir/lib; then LDFLAGS="$LDFLAGS -L$dir/lib"; fi
34956 done
34957
34958fi;
34959
34960 echo "$as_me:$LINENO: checking for iconv" >&5
34961echo $ECHO_N "checking for iconv... $ECHO_C" >&6
34962if test "${am_cv_func_iconv+set}" = set; then
34963 echo $ECHO_N "(cached) $ECHO_C" >&6
34964else
34965
34966 am_cv_func_iconv="no, consider installing GNU libiconv"
34967 am_cv_lib_iconv=no
34968 cat >conftest.$ac_ext <<_ACEOF
34969/* confdefs.h. */
34970_ACEOF
34971cat confdefs.h >>conftest.$ac_ext
34972cat >>conftest.$ac_ext <<_ACEOF
34973/* end confdefs.h. */
34974#include <stdlib.h>
34975#include <iconv.h>
34976int
34977main ()
34978{
34979iconv_t cd = iconv_open("","");
34980 iconv(cd,NULL,NULL,NULL,NULL);
34981 iconv_close(cd);
34982 ;
34983 return 0;
34984}
34985_ACEOF
34986rm -f conftest.$ac_objext conftest$ac_exeext
34987if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 34988 (eval $ac_link) 2>conftest.er1
a848cd7e 34989 ac_status=$?
ac1cb8d3
VS
34990 grep -v '^ *+' conftest.er1 >conftest.err
34991 rm -f conftest.er1
34992 cat conftest.err >&5
a848cd7e
SC
34993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34994 (exit $ac_status); } &&
3f60522a
JS
34995 { ac_try='test -z "$ac_cxx_werror_flag"
34996 || test ! -s conftest.err'
ac1cb8d3
VS
34997 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34998 (eval $ac_try) 2>&5
34999 ac_status=$?
35000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35001 (exit $ac_status); }; } &&
35002 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
35003 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35004 (eval $ac_try) 2>&5
35005 ac_status=$?
35006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35007 (exit $ac_status); }; }; then
35008 am_cv_func_iconv=yes
35009else
35010 echo "$as_me: failed program was:" >&5
35011sed 's/^/| /' conftest.$ac_ext >&5
35012
35013fi
ac1cb8d3
VS
35014rm -f conftest.err conftest.$ac_objext \
35015 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
35016 if test "$am_cv_func_iconv" != yes; then
35017 am_save_LIBS="$LIBS"
35018 LIBS="$LIBS -liconv"
35019 cat >conftest.$ac_ext <<_ACEOF
35020/* confdefs.h. */
35021_ACEOF
35022cat confdefs.h >>conftest.$ac_ext
35023cat >>conftest.$ac_ext <<_ACEOF
35024/* end confdefs.h. */
35025#include <stdlib.h>
35026#include <iconv.h>
35027int
35028main ()
35029{
35030iconv_t cd = iconv_open("","");
35031 iconv(cd,NULL,NULL,NULL,NULL);
35032 iconv_close(cd);
35033 ;
35034 return 0;
35035}
35036_ACEOF
35037rm -f conftest.$ac_objext conftest$ac_exeext
35038if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 35039 (eval $ac_link) 2>conftest.er1
a848cd7e 35040 ac_status=$?
ac1cb8d3
VS
35041 grep -v '^ *+' conftest.er1 >conftest.err
35042 rm -f conftest.er1
35043 cat conftest.err >&5
a848cd7e
SC
35044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35045 (exit $ac_status); } &&
3f60522a
JS
35046 { ac_try='test -z "$ac_cxx_werror_flag"
35047 || test ! -s conftest.err'
ac1cb8d3
VS
35048 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35049 (eval $ac_try) 2>&5
35050 ac_status=$?
35051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35052 (exit $ac_status); }; } &&
35053 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
35054 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35055 (eval $ac_try) 2>&5
35056 ac_status=$?
35057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35058 (exit $ac_status); }; }; then
35059 am_cv_lib_iconv=yes
35060 am_cv_func_iconv=yes
35061else
35062 echo "$as_me: failed program was:" >&5
35063sed 's/^/| /' conftest.$ac_ext >&5
35064
35065fi
ac1cb8d3
VS
35066rm -f conftest.err conftest.$ac_objext \
35067 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
35068 LIBS="$am_save_LIBS"
35069 fi
35070
35071fi
35072echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
35073echo "${ECHO_T}$am_cv_func_iconv" >&6
35074 if test "$am_cv_func_iconv" = yes; then
35075
35076cat >>confdefs.h <<\_ACEOF
35077#define HAVE_ICONV 1
35078_ACEOF
35079
35080 echo "$as_me:$LINENO: checking if iconv needs const" >&5
35081echo $ECHO_N "checking if iconv needs const... $ECHO_C" >&6
35082if test "${wx_cv_func_iconv_const+set}" = set; then
35083 echo $ECHO_N "(cached) $ECHO_C" >&6
35084else
35085 cat >conftest.$ac_ext <<_ACEOF
35086/* confdefs.h. */
35087_ACEOF
35088cat confdefs.h >>conftest.$ac_ext
35089cat >>conftest.$ac_ext <<_ACEOF
35090/* end confdefs.h. */
35091
35092#include <stdlib.h>
35093#include <iconv.h>
35094extern
35095#ifdef __cplusplus
35096"C"
35097#endif
35098#if defined(__STDC__) || defined(__cplusplus)
35099size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
35100#else
35101size_t iconv();
35102#endif
35103
35104int
35105main ()
35106{
35107
35108 ;
35109 return 0;
35110}
35111_ACEOF
35112rm -f conftest.$ac_objext
35113if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 35114 (eval $ac_compile) 2>conftest.er1
a848cd7e 35115 ac_status=$?
ac1cb8d3
VS
35116 grep -v '^ *+' conftest.er1 >conftest.err
35117 rm -f conftest.er1
35118 cat conftest.err >&5
a848cd7e
SC
35119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35120 (exit $ac_status); } &&
3f60522a
JS
35121 { ac_try='test -z "$ac_cxx_werror_flag"
35122 || test ! -s conftest.err'
ac1cb8d3
VS
35123 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35124 (eval $ac_try) 2>&5
35125 ac_status=$?
35126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35127 (exit $ac_status); }; } &&
35128 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
35129 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35130 (eval $ac_try) 2>&5
35131 ac_status=$?
35132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35133 (exit $ac_status); }; }; then
35134 wx_cv_func_iconv_const="no"
35135else
35136 echo "$as_me: failed program was:" >&5
35137sed 's/^/| /' conftest.$ac_ext >&5
35138
35139wx_cv_func_iconv_const="yes"
35140
35141fi
ac1cb8d3 35142rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
35143
35144fi
35145echo "$as_me:$LINENO: result: $wx_cv_func_iconv_const" >&5
35146echo "${ECHO_T}$wx_cv_func_iconv_const" >&6
35147
35148 iconv_const=
35149 if test "x$wx_cv_func_iconv_const" = "xyes"; then
35150 iconv_const="const"
35151 fi
35152
35153
35154cat >>confdefs.h <<_ACEOF
35155#define ICONV_CONST $iconv_const
35156_ACEOF
35157
35158 fi
35159 LIBICONV=
35160 if test "$am_cv_lib_iconv" = yes; then
35161 LIBICONV="-liconv"
35162 fi
35163
35164
35165LIBS="$LIBICONV $LIBS"
a848cd7e
SC
35166
35167if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes" -a "$wxUSE_UNIX" = "yes"; then
35168
35169for ac_func in sigaction
35170do
35171as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35172echo "$as_me:$LINENO: checking for $ac_func" >&5
35173echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
35174if eval "test \"\${$as_ac_var+set}\" = set"; then
35175 echo $ECHO_N "(cached) $ECHO_C" >&6
35176else
35177 cat >conftest.$ac_ext <<_ACEOF
35178/* confdefs.h. */
35179_ACEOF
35180cat confdefs.h >>conftest.$ac_ext
35181cat >>conftest.$ac_ext <<_ACEOF
35182/* end confdefs.h. */
ac1cb8d3
VS
35183/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
35184 For example, HP-UX 11i <limits.h> declares gettimeofday. */
35185#define $ac_func innocuous_$ac_func
35186
a848cd7e
SC
35187/* System header to define __stub macros and hopefully few prototypes,
35188 which can conflict with char $ac_func (); below.
35189 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35190 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 35191
a848cd7e
SC
35192#ifdef __STDC__
35193# include <limits.h>
35194#else
35195# include <assert.h>
35196#endif
ac1cb8d3
VS
35197
35198#undef $ac_func
35199
a848cd7e
SC
35200/* Override any gcc2 internal prototype to avoid an error. */
35201#ifdef __cplusplus
35202extern "C"
35203{
35204#endif
35205/* We use char because int might match the return type of a gcc2
35206 builtin and then its argument prototype would still apply. */
35207char $ac_func ();
35208/* The GNU C library defines this for functions which it implements
35209 to always fail with ENOSYS. Some functions are actually named
35210 something starting with __ and the normal name is an alias. */
35211#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
35212choke me
35213#else
35214char (*f) () = $ac_func;
35215#endif
35216#ifdef __cplusplus
35217}
35218#endif
35219
35220int
35221main ()
35222{
35223return f != $ac_func;
35224 ;
35225 return 0;
35226}
35227_ACEOF
35228rm -f conftest.$ac_objext conftest$ac_exeext
35229if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 35230 (eval $ac_link) 2>conftest.er1
a848cd7e 35231 ac_status=$?
ac1cb8d3
VS
35232 grep -v '^ *+' conftest.er1 >conftest.err
35233 rm -f conftest.er1
35234 cat conftest.err >&5
a848cd7e
SC
35235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35236 (exit $ac_status); } &&
3f60522a
JS
35237 { ac_try='test -z "$ac_cxx_werror_flag"
35238 || test ! -s conftest.err'
ac1cb8d3
VS
35239 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35240 (eval $ac_try) 2>&5
35241 ac_status=$?
35242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35243 (exit $ac_status); }; } &&
35244 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
35245 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35246 (eval $ac_try) 2>&5
35247 ac_status=$?
35248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35249 (exit $ac_status); }; }; then
35250 eval "$as_ac_var=yes"
35251else
35252 echo "$as_me: failed program was:" >&5
35253sed 's/^/| /' conftest.$ac_ext >&5
35254
35255eval "$as_ac_var=no"
35256fi
ac1cb8d3
VS
35257rm -f conftest.err conftest.$ac_objext \
35258 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
35259fi
35260echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
35261echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
35262if test `eval echo '${'$as_ac_var'}'` = yes; then
35263 cat >>confdefs.h <<_ACEOF
35264#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35265_ACEOF
35266
35267fi
35268done
35269
35270
35271 if test "$ac_cv_func_sigaction" = "no"; then
35272 { echo "$as_me:$LINENO: WARNING: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" >&5
35273echo "$as_me: WARNING: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" >&2;}
35274 wxUSE_ON_FATAL_EXCEPTION=no
35275 fi
35276
35277 if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
a848cd7e
SC
35278 echo "$as_me:$LINENO: checking for sa_handler type" >&5
35279echo $ECHO_N "checking for sa_handler type... $ECHO_C" >&6
35280if test "${wx_cv_type_sa_handler+set}" = set; then
35281 echo $ECHO_N "(cached) $ECHO_C" >&6
35282else
35283
35284 cat >conftest.$ac_ext <<_ACEOF
35285/* confdefs.h. */
35286_ACEOF
35287cat confdefs.h >>conftest.$ac_ext
35288cat >>conftest.$ac_ext <<_ACEOF
35289/* end confdefs.h. */
35290#include <signal.h>
35291int
35292main ()
35293{
35294
35295 extern void testSigHandler(int);
35296
35297 struct sigaction sa;
35298 sa.sa_handler = testSigHandler;
35299
35300 ;
35301 return 0;
35302}
35303_ACEOF
35304rm -f conftest.$ac_objext
35305if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 35306 (eval $ac_compile) 2>conftest.er1
a848cd7e 35307 ac_status=$?
ac1cb8d3
VS
35308 grep -v '^ *+' conftest.er1 >conftest.err
35309 rm -f conftest.er1
35310 cat conftest.err >&5
a848cd7e
SC
35311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35312 (exit $ac_status); } &&
3f60522a
JS
35313 { ac_try='test -z "$ac_cxx_werror_flag"
35314 || test ! -s conftest.err'
ac1cb8d3
VS
35315 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35316 (eval $ac_try) 2>&5
35317 ac_status=$?
35318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35319 (exit $ac_status); }; } &&
35320 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
35321 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35322 (eval $ac_try) 2>&5
35323 ac_status=$?
35324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35325 (exit $ac_status); }; }; then
35326
35327 wx_cv_type_sa_handler=int
35328
35329else
35330 echo "$as_me: failed program was:" >&5
35331sed 's/^/| /' conftest.$ac_ext >&5
35332
35333
35334 wx_cv_type_sa_handler=void
35335
35336fi
ac1cb8d3 35337rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
35338
35339fi
35340echo "$as_me:$LINENO: result: $wx_cv_type_sa_handler" >&5
35341echo "${ECHO_T}$wx_cv_type_sa_handler" >&6
35342
a848cd7e
SC
35343 cat >>confdefs.h <<_ACEOF
35344#define wxTYPE_SA_HANDLER $wx_cv_type_sa_handler
35345_ACEOF
35346
35347 fi
35348fi
35349
eaff0f0d 35350if test "$wxUSE_STACKWALKER" = "yes" -a "$wxUSE_UNIX" = "yes"; then
eaff0f0d
VZ
35351 echo "$as_me:$LINENO: checking for backtrace() in <execinfo.h>" >&5
35352echo $ECHO_N "checking for backtrace() in <execinfo.h>... $ECHO_C" >&6
35353if test "${wx_cv_func_backtrace+set}" = set; then
35354 echo $ECHO_N "(cached) $ECHO_C" >&6
35355else
35356
35357 cat >conftest.$ac_ext <<_ACEOF
35358/* confdefs.h. */
35359_ACEOF
35360cat confdefs.h >>conftest.$ac_ext
35361cat >>conftest.$ac_ext <<_ACEOF
35362/* end confdefs.h. */
35363#include <execinfo.h>
35364int
35365main ()
35366{
35367
35368 void *trace[1];
35369 char **messages;
35370
35371 backtrace(trace, 1);
35372 messages = backtrace_symbols(trace, 1);
35373
35374 ;
35375 return 0;
35376}
35377_ACEOF
35378rm -f conftest.$ac_objext
35379if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35380 (eval $ac_compile) 2>conftest.er1
35381 ac_status=$?
35382 grep -v '^ *+' conftest.er1 >conftest.err
35383 rm -f conftest.er1
35384 cat conftest.err >&5
35385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35386 (exit $ac_status); } &&
3f60522a
JS
35387 { ac_try='test -z "$ac_cxx_werror_flag"
35388 || test ! -s conftest.err'
eaff0f0d
VZ
35389 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35390 (eval $ac_try) 2>&5
35391 ac_status=$?
35392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35393 (exit $ac_status); }; } &&
35394 { ac_try='test -s conftest.$ac_objext'
35395 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35396 (eval $ac_try) 2>&5
35397 ac_status=$?
35398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35399 (exit $ac_status); }; }; then
35400 wx_cv_func_backtrace=yes
35401else
35402 echo "$as_me: failed program was:" >&5
35403sed 's/^/| /' conftest.$ac_ext >&5
35404
35405wx_cv_func_backtrace=no
35406
35407fi
35408rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35409
35410
35411fi
35412echo "$as_me:$LINENO: result: $wx_cv_func_backtrace" >&5
35413echo "${ECHO_T}$wx_cv_func_backtrace" >&6
35414
35415
35416 if test "$wx_cv_func_backtrace" = "no"; then
35417 { echo "$as_me:$LINENO: WARNING: backtrace() is not available, wxStackWalker will not be available" >&5
35418echo "$as_me: WARNING: backtrace() is not available, wxStackWalker will not be available" >&2;}
35419 wxUSE_STACKWALKER=no
35420 else
35421 echo "$as_me:$LINENO: checking for __cxa_demangle() in <cxxabi.h>" >&5
35422echo $ECHO_N "checking for __cxa_demangle() in <cxxabi.h>... $ECHO_C" >&6
35423if test "${wx_cv_func_cxa_demangle+set}" = set; then
35424 echo $ECHO_N "(cached) $ECHO_C" >&6
35425else
35426
35427 cat >conftest.$ac_ext <<_ACEOF
35428/* confdefs.h. */
35429_ACEOF
35430cat confdefs.h >>conftest.$ac_ext
35431cat >>conftest.$ac_ext <<_ACEOF
35432/* end confdefs.h. */
35433#include <cxxabi.h>
35434int
35435main ()
35436{
35437
35438 int rc;
35439 __cxxabiv1::__cxa_demangle("foo", 0, 0, &rc);
35440
35441 ;
35442 return 0;
35443}
35444_ACEOF
dfe0c803
JS
35445rm -f conftest.$ac_objext conftest$ac_exeext
35446if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35447 (eval $ac_link) 2>conftest.er1
eaff0f0d
VZ
35448 ac_status=$?
35449 grep -v '^ *+' conftest.er1 >conftest.err
35450 rm -f conftest.er1
35451 cat conftest.err >&5
35452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35453 (exit $ac_status); } &&
3f60522a
JS
35454 { ac_try='test -z "$ac_cxx_werror_flag"
35455 || test ! -s conftest.err'
eaff0f0d
VZ
35456 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35457 (eval $ac_try) 2>&5
35458 ac_status=$?
35459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35460 (exit $ac_status); }; } &&
dfe0c803 35461 { ac_try='test -s conftest$ac_exeext'
eaff0f0d
VZ
35462 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35463 (eval $ac_try) 2>&5
35464 ac_status=$?
35465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35466 (exit $ac_status); }; }; then
35467 wx_cv_func_cxa_demangle=yes
35468else
35469 echo "$as_me: failed program was:" >&5
35470sed 's/^/| /' conftest.$ac_ext >&5
35471
35472wx_cv_func_cxa_demangle=no
35473
35474fi
dfe0c803
JS
35475rm -f conftest.err conftest.$ac_objext \
35476 conftest$ac_exeext conftest.$ac_ext
eaff0f0d
VZ
35477
35478
35479fi
35480echo "$as_me:$LINENO: result: $wx_cv_func_cxa_demangle" >&5
35481echo "${ECHO_T}$wx_cv_func_cxa_demangle" >&6
35482
35483 if test "$wx_cv_func_cxa_demangle" = "yes"; then
35484 cat >>confdefs.h <<\_ACEOF
35485#define HAVE_CXA_DEMANGLE 1
35486_ACEOF
35487
35488 fi
35489 fi
eaff0f0d
VZ
35490fi
35491
898beab1
DE
35492if test "$wxUSE_STACKWALKER" = "yes" -a "$USE_WIN32" != "1" -a "$USE_UNIX" != "1"; then
35493 { echo "$as_me:$LINENO: WARNING: wxStackWalker is only available on Win32 and UNIX... disabled" >&5
35494echo "$as_me: WARNING: wxStackWalker is only available on Win32 and UNIX... disabled" >&2;}
35495 wxUSE_STACKWALKER=no
35496fi
35497
35498
a848cd7e
SC
35499
35500
35501for ac_func in mkstemp mktemp
35502do
35503as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35504echo "$as_me:$LINENO: checking for $ac_func" >&5
35505echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
35506if eval "test \"\${$as_ac_var+set}\" = set"; then
35507 echo $ECHO_N "(cached) $ECHO_C" >&6
35508else
35509 cat >conftest.$ac_ext <<_ACEOF
35510/* confdefs.h. */
35511_ACEOF
35512cat confdefs.h >>conftest.$ac_ext
35513cat >>conftest.$ac_ext <<_ACEOF
35514/* end confdefs.h. */
ac1cb8d3
VS
35515/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
35516 For example, HP-UX 11i <limits.h> declares gettimeofday. */
35517#define $ac_func innocuous_$ac_func
35518
a848cd7e
SC
35519/* System header to define __stub macros and hopefully few prototypes,
35520 which can conflict with char $ac_func (); below.
35521 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35522 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 35523
a848cd7e
SC
35524#ifdef __STDC__
35525# include <limits.h>
35526#else
35527# include <assert.h>
35528#endif
ac1cb8d3
VS
35529
35530#undef $ac_func
35531
a848cd7e
SC
35532/* Override any gcc2 internal prototype to avoid an error. */
35533#ifdef __cplusplus
35534extern "C"
35535{
35536#endif
35537/* We use char because int might match the return type of a gcc2
35538 builtin and then its argument prototype would still apply. */
35539char $ac_func ();
35540/* The GNU C library defines this for functions which it implements
35541 to always fail with ENOSYS. Some functions are actually named
35542 something starting with __ and the normal name is an alias. */
35543#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
35544choke me
35545#else
35546char (*f) () = $ac_func;
35547#endif
35548#ifdef __cplusplus
35549}
35550#endif
35551
35552int
35553main ()
35554{
35555return f != $ac_func;
35556 ;
35557 return 0;
35558}
35559_ACEOF
35560rm -f conftest.$ac_objext conftest$ac_exeext
35561if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 35562 (eval $ac_link) 2>conftest.er1
a848cd7e 35563 ac_status=$?
ac1cb8d3
VS
35564 grep -v '^ *+' conftest.er1 >conftest.err
35565 rm -f conftest.er1
35566 cat conftest.err >&5
a848cd7e
SC
35567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35568 (exit $ac_status); } &&
3f60522a
JS
35569 { ac_try='test -z "$ac_cxx_werror_flag"
35570 || test ! -s conftest.err'
ac1cb8d3
VS
35571 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35572 (eval $ac_try) 2>&5
35573 ac_status=$?
35574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35575 (exit $ac_status); }; } &&
35576 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
35577 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35578 (eval $ac_try) 2>&5
35579 ac_status=$?
35580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35581 (exit $ac_status); }; }; then
35582 eval "$as_ac_var=yes"
35583else
35584 echo "$as_me: failed program was:" >&5
35585sed 's/^/| /' conftest.$ac_ext >&5
35586
35587eval "$as_ac_var=no"
35588fi
ac1cb8d3
VS
35589rm -f conftest.err conftest.$ac_objext \
35590 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
35591fi
35592echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
35593echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
35594if test `eval echo '${'$as_ac_var'}'` = yes; then
35595 cat >>confdefs.h <<_ACEOF
35596#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35597_ACEOF
35598 break
35599fi
35600done
35601
35602
35603echo "$as_me:$LINENO: checking for statfs" >&5
35604echo $ECHO_N "checking for statfs... $ECHO_C" >&6
35605if test "${wx_cv_func_statfs+set}" = set; then
35606 echo $ECHO_N "(cached) $ECHO_C" >&6
35607else
35608 cat >conftest.$ac_ext <<_ACEOF
35609/* confdefs.h. */
35610_ACEOF
35611cat confdefs.h >>conftest.$ac_ext
35612cat >>conftest.$ac_ext <<_ACEOF
35613/* end confdefs.h. */
35614
35615 #if defined(__BSD__)
84ae7ca4
VZ
35616 #include <sys/param.h>
35617 #include <sys/mount.h>
a848cd7e 35618 #else
84ae7ca4 35619 #include <sys/vfs.h>
a848cd7e
SC
35620 #endif
35621
35622int
35623main ()
35624{
35625
35626 long l;
35627 struct statfs fs;
35628 statfs("/", &fs);
35629 l = fs.f_bsize;
35630 l += fs.f_blocks;
35631 l += fs.f_bavail;
35632
35633 ;
35634 return 0;
35635}
35636_ACEOF
35637rm -f conftest.$ac_objext
35638if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 35639 (eval $ac_compile) 2>conftest.er1
a848cd7e 35640 ac_status=$?
ac1cb8d3
VS
35641 grep -v '^ *+' conftest.er1 >conftest.err
35642 rm -f conftest.er1
35643 cat conftest.err >&5
a848cd7e
SC
35644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35645 (exit $ac_status); } &&
3f60522a
JS
35646 { ac_try='test -z "$ac_cxx_werror_flag"
35647 || test ! -s conftest.err'
ac1cb8d3
VS
35648 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35649 (eval $ac_try) 2>&5
35650 ac_status=$?
35651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35652 (exit $ac_status); }; } &&
35653 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
35654 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35655 (eval $ac_try) 2>&5
35656 ac_status=$?
35657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35658 (exit $ac_status); }; }; then
84ae7ca4 35659 wx_cv_func_statfs=yes
a848cd7e
SC
35660else
35661 echo "$as_me: failed program was:" >&5
35662sed 's/^/| /' conftest.$ac_ext >&5
35663
84ae7ca4 35664wx_cv_func_statfs=no
a848cd7e
SC
35665
35666fi
ac1cb8d3 35667rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
35668
35669fi
35670echo "$as_me:$LINENO: result: $wx_cv_func_statfs" >&5
35671echo "${ECHO_T}$wx_cv_func_statfs" >&6
35672
35673if test "$wx_cv_func_statfs" = "yes"; then
5d7b7554 35674 echo "$as_me:$LINENO: checking for statfs declaration" >&5
84ae7ca4
VZ
35675echo $ECHO_N "checking for statfs declaration... $ECHO_C" >&6
35676if test "${wx_cv_func_statfs_decl+set}" = set; then
35677 echo $ECHO_N "(cached) $ECHO_C" >&6
35678else
0683aca6
VZ
35679 cat >conftest.$ac_ext <<_ACEOF
35680/* confdefs.h. */
35681_ACEOF
35682cat confdefs.h >>conftest.$ac_ext
35683cat >>conftest.$ac_ext <<_ACEOF
35684/* end confdefs.h. */
84ae7ca4 35685
0683aca6
VZ
35686 #if defined(__BSD__)
35687 #include <sys/param.h>
35688 #include <sys/mount.h>
35689 #else
35690 #include <sys/vfs.h>
35691 #endif
35692
35693int
35694main ()
35695{
35696
35697 struct statfs fs;
35698 statfs("", &fs);
35699
35700 ;
35701 return 0;
35702}
35703_ACEOF
35704rm -f conftest.$ac_objext
35705if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35706 (eval $ac_compile) 2>conftest.er1
35707 ac_status=$?
35708 grep -v '^ *+' conftest.er1 >conftest.err
35709 rm -f conftest.er1
35710 cat conftest.err >&5
35711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35712 (exit $ac_status); } &&
3f60522a
JS
35713 { ac_try='test -z "$ac_cxx_werror_flag"
35714 || test ! -s conftest.err'
0683aca6
VZ
35715 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35716 (eval $ac_try) 2>&5
35717 ac_status=$?
35718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35719 (exit $ac_status); }; } &&
35720 { ac_try='test -s conftest.$ac_objext'
35721 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35722 (eval $ac_try) 2>&5
35723 ac_status=$?
35724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35725 (exit $ac_status); }; }; then
35726 wx_cv_func_statfs_decl=yes
35727else
35728 echo "$as_me: failed program was:" >&5
35729sed 's/^/| /' conftest.$ac_ext >&5
35730
35731wx_cv_func_statfs_decl=no
35732
35733fi
35734rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
84ae7ca4
VZ
35735
35736fi
35737echo "$as_me:$LINENO: result: $wx_cv_func_statfs_decl" >&5
35738echo "${ECHO_T}$wx_cv_func_statfs_decl" >&6
84ae7ca4
VZ
35739
35740 if test "$wx_cv_func_statfs_decl" = "yes"; then
35741 cat >>confdefs.h <<\_ACEOF
35742#define HAVE_STATFS_DECL 1
35743_ACEOF
35744
35745 fi
35746
a848cd7e
SC
35747 wx_cv_type_statvfs_t="struct statfs"
35748 cat >>confdefs.h <<\_ACEOF
35749#define HAVE_STATFS 1
35750_ACEOF
35751
35752else
35753 echo "$as_me:$LINENO: checking for statvfs" >&5
35754echo $ECHO_N "checking for statvfs... $ECHO_C" >&6
35755if test "${wx_cv_func_statvfs+set}" = set; then
35756 echo $ECHO_N "(cached) $ECHO_C" >&6
35757else
35758 cat >conftest.$ac_ext <<_ACEOF
35759/* confdefs.h. */
35760_ACEOF
35761cat confdefs.h >>conftest.$ac_ext
35762cat >>conftest.$ac_ext <<_ACEOF
35763/* end confdefs.h. */
35764
35765 #include <stddef.h>
35766 #include <sys/statvfs.h>
35767
35768int
35769main ()
35770{
35771
35772 statvfs("/", NULL);
35773
35774 ;
35775 return 0;
35776}
35777_ACEOF
35778rm -f conftest.$ac_objext
35779if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 35780 (eval $ac_compile) 2>conftest.er1
a848cd7e 35781 ac_status=$?
ac1cb8d3
VS
35782 grep -v '^ *+' conftest.er1 >conftest.err
35783 rm -f conftest.er1
35784 cat conftest.err >&5
a848cd7e
SC
35785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35786 (exit $ac_status); } &&
3f60522a
JS
35787 { ac_try='test -z "$ac_cxx_werror_flag"
35788 || test ! -s conftest.err'
ac1cb8d3
VS
35789 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35790 (eval $ac_try) 2>&5
35791 ac_status=$?
35792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35793 (exit $ac_status); }; } &&
35794 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
35795 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35796 (eval $ac_try) 2>&5
35797 ac_status=$?
35798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35799 (exit $ac_status); }; }; then
35800 wx_cv_func_statvfs=yes
35801else
35802 echo "$as_me: failed program was:" >&5
35803sed 's/^/| /' conftest.$ac_ext >&5
35804
35805wx_cv_func_statvfs=no
35806
35807fi
ac1cb8d3 35808rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
35809
35810fi
35811echo "$as_me:$LINENO: result: $wx_cv_func_statvfs" >&5
35812echo "${ECHO_T}$wx_cv_func_statvfs" >&6
35813
35814 if test "$wx_cv_func_statvfs" = "yes"; then
5d7b7554 35815 echo "$as_me:$LINENO: checking for statvfs argument type" >&5
a848cd7e
SC
35816echo $ECHO_N "checking for statvfs argument type... $ECHO_C" >&6
35817if test "${wx_cv_type_statvfs_t+set}" = set; then
35818 echo $ECHO_N "(cached) $ECHO_C" >&6
35819else
35820 cat >conftest.$ac_ext <<_ACEOF
35821/* confdefs.h. */
35822_ACEOF
35823cat confdefs.h >>conftest.$ac_ext
35824cat >>conftest.$ac_ext <<_ACEOF
35825/* end confdefs.h. */
35826
35827 #include <sys/statvfs.h>
35828
35829int
35830main ()
35831{
35832
35833 long l;
35834 statvfs_t fs;
35835 statvfs("/", &fs);
35836 l = fs.f_bsize;
35837 l += fs.f_blocks;
35838 l += fs.f_bavail;
35839
35840 ;
35841 return 0;
35842}
35843_ACEOF
35844rm -f conftest.$ac_objext
35845if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 35846 (eval $ac_compile) 2>conftest.er1
a848cd7e 35847 ac_status=$?
ac1cb8d3
VS
35848 grep -v '^ *+' conftest.er1 >conftest.err
35849 rm -f conftest.er1
35850 cat conftest.err >&5
a848cd7e
SC
35851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35852 (exit $ac_status); } &&
3f60522a
JS
35853 { ac_try='test -z "$ac_cxx_werror_flag"
35854 || test ! -s conftest.err'
ac1cb8d3
VS
35855 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35856 (eval $ac_try) 2>&5
35857 ac_status=$?
35858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35859 (exit $ac_status); }; } &&
35860 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
35861 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35862 (eval $ac_try) 2>&5
35863 ac_status=$?
35864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35865 (exit $ac_status); }; }; then
35866 wx_cv_type_statvfs_t=statvfs_t
35867else
35868 echo "$as_me: failed program was:" >&5
35869sed 's/^/| /' conftest.$ac_ext >&5
35870
35871
35872 cat >conftest.$ac_ext <<_ACEOF
35873/* confdefs.h. */
35874_ACEOF
35875cat confdefs.h >>conftest.$ac_ext
35876cat >>conftest.$ac_ext <<_ACEOF
35877/* end confdefs.h. */
35878
35879 #include <sys/statvfs.h>
35880
35881int
35882main ()
35883{
35884
35885 long l;
35886 struct statvfs fs;
35887 statvfs("/", &fs);
35888 l = fs.f_bsize;
35889 l += fs.f_blocks;
35890 l += fs.f_bavail;
35891
35892 ;
35893 return 0;
35894}
35895_ACEOF
35896rm -f conftest.$ac_objext
35897if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 35898 (eval $ac_compile) 2>conftest.er1
a848cd7e 35899 ac_status=$?
ac1cb8d3
VS
35900 grep -v '^ *+' conftest.er1 >conftest.err
35901 rm -f conftest.er1
35902 cat conftest.err >&5
a848cd7e
SC
35903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35904 (exit $ac_status); } &&
3f60522a
JS
35905 { ac_try='test -z "$ac_cxx_werror_flag"
35906 || test ! -s conftest.err'
ac1cb8d3
VS
35907 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35908 (eval $ac_try) 2>&5
35909 ac_status=$?
35910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35911 (exit $ac_status); }; } &&
35912 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
35913 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35914 (eval $ac_try) 2>&5
35915 ac_status=$?
35916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35917 (exit $ac_status); }; }; then
35918 wx_cv_type_statvfs_t="struct statvfs"
35919else
35920 echo "$as_me: failed program was:" >&5
35921sed 's/^/| /' conftest.$ac_ext >&5
35922
35923wx_cv_type_statvfs_t="unknown"
35924
35925fi
ac1cb8d3 35926rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
35927
35928
35929fi
ac1cb8d3 35930rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
35931
35932fi
35933echo "$as_me:$LINENO: result: $wx_cv_type_statvfs_t" >&5
35934echo "${ECHO_T}$wx_cv_type_statvfs_t" >&6
35935
a848cd7e
SC
35936 if test "$wx_cv_type_statvfs_t" != "unknown"; then
35937 cat >>confdefs.h <<\_ACEOF
35938#define HAVE_STATVFS 1
35939_ACEOF
35940
35941 fi
35942 else
35943 wx_cv_type_statvfs_t="unknown"
35944 fi
35945fi
35946
35947if test "$wx_cv_type_statvfs_t" != "unknown"; then
35948 cat >>confdefs.h <<_ACEOF
35949#define WX_STATFS_T $wx_cv_type_statvfs_t
35950_ACEOF
35951
35952else
35953 { echo "$as_me:$LINENO: WARNING: wxGetDiskSpace() function won't work without statfs()" >&5
35954echo "$as_me: WARNING: wxGetDiskSpace() function won't work without statfs()" >&2;}
35955fi
35956
35957if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
35958
35959
35960for ac_func in fcntl flock
35961do
35962as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35963echo "$as_me:$LINENO: checking for $ac_func" >&5
35964echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
35965if eval "test \"\${$as_ac_var+set}\" = set"; then
35966 echo $ECHO_N "(cached) $ECHO_C" >&6
35967else
35968 cat >conftest.$ac_ext <<_ACEOF
35969/* confdefs.h. */
35970_ACEOF
35971cat confdefs.h >>conftest.$ac_ext
35972cat >>conftest.$ac_ext <<_ACEOF
35973/* end confdefs.h. */
ac1cb8d3
VS
35974/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
35975 For example, HP-UX 11i <limits.h> declares gettimeofday. */
35976#define $ac_func innocuous_$ac_func
35977
a848cd7e
SC
35978/* System header to define __stub macros and hopefully few prototypes,
35979 which can conflict with char $ac_func (); below.
35980 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35981 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 35982
a848cd7e
SC
35983#ifdef __STDC__
35984# include <limits.h>
35985#else
35986# include <assert.h>
35987#endif
ac1cb8d3
VS
35988
35989#undef $ac_func
35990
a848cd7e
SC
35991/* Override any gcc2 internal prototype to avoid an error. */
35992#ifdef __cplusplus
35993extern "C"
35994{
35995#endif
35996/* We use char because int might match the return type of a gcc2
35997 builtin and then its argument prototype would still apply. */
35998char $ac_func ();
35999/* The GNU C library defines this for functions which it implements
36000 to always fail with ENOSYS. Some functions are actually named
36001 something starting with __ and the normal name is an alias. */
36002#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
36003choke me
36004#else
36005char (*f) () = $ac_func;
36006#endif
36007#ifdef __cplusplus
36008}
36009#endif
36010
36011int
36012main ()
36013{
36014return f != $ac_func;
36015 ;
36016 return 0;
36017}
36018_ACEOF
36019rm -f conftest.$ac_objext conftest$ac_exeext
36020if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 36021 (eval $ac_link) 2>conftest.er1
a848cd7e 36022 ac_status=$?
ac1cb8d3
VS
36023 grep -v '^ *+' conftest.er1 >conftest.err
36024 rm -f conftest.er1
36025 cat conftest.err >&5
a848cd7e
SC
36026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36027 (exit $ac_status); } &&
3f60522a
JS
36028 { ac_try='test -z "$ac_cxx_werror_flag"
36029 || test ! -s conftest.err'
ac1cb8d3
VS
36030 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36031 (eval $ac_try) 2>&5
36032 ac_status=$?
36033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36034 (exit $ac_status); }; } &&
36035 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
36036 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36037 (eval $ac_try) 2>&5
36038 ac_status=$?
36039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36040 (exit $ac_status); }; }; then
36041 eval "$as_ac_var=yes"
36042else
36043 echo "$as_me: failed program was:" >&5
36044sed 's/^/| /' conftest.$ac_ext >&5
36045
36046eval "$as_ac_var=no"
36047fi
ac1cb8d3
VS
36048rm -f conftest.err conftest.$ac_objext \
36049 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
36050fi
36051echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
36052echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
36053if test `eval echo '${'$as_ac_var'}'` = yes; then
36054 cat >>confdefs.h <<_ACEOF
36055#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36056_ACEOF
36057 break
36058fi
36059done
36060
36061
36062 if test "$ac_cv_func_fcntl" != "yes" -a "$ac_cv_func_flock" != "yes"; then
36063 { echo "$as_me:$LINENO: WARNING: wxSingleInstanceChecker not available" >&5
36064echo "$as_me: WARNING: wxSingleInstanceChecker not available" >&2;}
36065 wxUSE_SNGLINST_CHECKER=no
36066 fi
36067fi
36068
36069
36070for ac_func in timegm
36071do
36072as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36073echo "$as_me:$LINENO: checking for $ac_func" >&5
36074echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
36075if eval "test \"\${$as_ac_var+set}\" = set"; then
36076 echo $ECHO_N "(cached) $ECHO_C" >&6
36077else
36078 cat >conftest.$ac_ext <<_ACEOF
36079/* confdefs.h. */
36080_ACEOF
36081cat confdefs.h >>conftest.$ac_ext
36082cat >>conftest.$ac_ext <<_ACEOF
36083/* end confdefs.h. */
ac1cb8d3
VS
36084/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
36085 For example, HP-UX 11i <limits.h> declares gettimeofday. */
36086#define $ac_func innocuous_$ac_func
36087
a848cd7e
SC
36088/* System header to define __stub macros and hopefully few prototypes,
36089 which can conflict with char $ac_func (); below.
36090 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36091 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 36092
a848cd7e
SC
36093#ifdef __STDC__
36094# include <limits.h>
36095#else
36096# include <assert.h>
36097#endif
ac1cb8d3
VS
36098
36099#undef $ac_func
36100
a848cd7e
SC
36101/* Override any gcc2 internal prototype to avoid an error. */
36102#ifdef __cplusplus
36103extern "C"
36104{
36105#endif
36106/* We use char because int might match the return type of a gcc2
36107 builtin and then its argument prototype would still apply. */
36108char $ac_func ();
36109/* The GNU C library defines this for functions which it implements
36110 to always fail with ENOSYS. Some functions are actually named
36111 something starting with __ and the normal name is an alias. */
36112#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
36113choke me
36114#else
36115char (*f) () = $ac_func;
36116#endif
36117#ifdef __cplusplus
36118}
36119#endif
36120
36121int
36122main ()
36123{
36124return f != $ac_func;
36125 ;
36126 return 0;
36127}
36128_ACEOF
36129rm -f conftest.$ac_objext conftest$ac_exeext
36130if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 36131 (eval $ac_link) 2>conftest.er1
a848cd7e 36132 ac_status=$?
ac1cb8d3
VS
36133 grep -v '^ *+' conftest.er1 >conftest.err
36134 rm -f conftest.er1
36135 cat conftest.err >&5
a848cd7e
SC
36136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36137 (exit $ac_status); } &&
3f60522a
JS
36138 { ac_try='test -z "$ac_cxx_werror_flag"
36139 || test ! -s conftest.err'
ac1cb8d3
VS
36140 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36141 (eval $ac_try) 2>&5
36142 ac_status=$?
36143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36144 (exit $ac_status); }; } &&
36145 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
36146 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36147 (eval $ac_try) 2>&5
36148 ac_status=$?
36149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36150 (exit $ac_status); }; }; then
36151 eval "$as_ac_var=yes"
36152else
36153 echo "$as_me: failed program was:" >&5
36154sed 's/^/| /' conftest.$ac_ext >&5
36155
36156eval "$as_ac_var=no"
36157fi
ac1cb8d3
VS
36158rm -f conftest.err conftest.$ac_objext \
36159 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
36160fi
36161echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
36162echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
36163if test `eval echo '${'$as_ac_var'}'` = yes; then
36164 cat >>confdefs.h <<_ACEOF
36165#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36166_ACEOF
36167
36168fi
36169done
36170
36171
36172
36173
36174for ac_func in putenv setenv
36175do
36176as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36177echo "$as_me:$LINENO: checking for $ac_func" >&5
36178echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
36179if eval "test \"\${$as_ac_var+set}\" = set"; then
36180 echo $ECHO_N "(cached) $ECHO_C" >&6
36181else
36182 cat >conftest.$ac_ext <<_ACEOF
36183/* confdefs.h. */
36184_ACEOF
36185cat confdefs.h >>conftest.$ac_ext
36186cat >>conftest.$ac_ext <<_ACEOF
36187/* end confdefs.h. */
ac1cb8d3
VS
36188/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
36189 For example, HP-UX 11i <limits.h> declares gettimeofday. */
36190#define $ac_func innocuous_$ac_func
36191
a848cd7e
SC
36192/* System header to define __stub macros and hopefully few prototypes,
36193 which can conflict with char $ac_func (); below.
36194 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36195 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 36196
a848cd7e
SC
36197#ifdef __STDC__
36198# include <limits.h>
36199#else
36200# include <assert.h>
36201#endif
ac1cb8d3
VS
36202
36203#undef $ac_func
36204
a848cd7e
SC
36205/* Override any gcc2 internal prototype to avoid an error. */
36206#ifdef __cplusplus
36207extern "C"
36208{
36209#endif
36210/* We use char because int might match the return type of a gcc2
36211 builtin and then its argument prototype would still apply. */
36212char $ac_func ();
36213/* The GNU C library defines this for functions which it implements
36214 to always fail with ENOSYS. Some functions are actually named
36215 something starting with __ and the normal name is an alias. */
36216#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
36217choke me
36218#else
36219char (*f) () = $ac_func;
36220#endif
36221#ifdef __cplusplus
36222}
36223#endif
36224
36225int
36226main ()
36227{
36228return f != $ac_func;
36229 ;
36230 return 0;
36231}
36232_ACEOF
36233rm -f conftest.$ac_objext conftest$ac_exeext
36234if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 36235 (eval $ac_link) 2>conftest.er1
a848cd7e 36236 ac_status=$?
ac1cb8d3
VS
36237 grep -v '^ *+' conftest.er1 >conftest.err
36238 rm -f conftest.er1
36239 cat conftest.err >&5
a848cd7e
SC
36240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36241 (exit $ac_status); } &&
3f60522a
JS
36242 { ac_try='test -z "$ac_cxx_werror_flag"
36243 || test ! -s conftest.err'
ac1cb8d3
VS
36244 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36245 (eval $ac_try) 2>&5
36246 ac_status=$?
36247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36248 (exit $ac_status); }; } &&
36249 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
36250 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36251 (eval $ac_try) 2>&5
36252 ac_status=$?
36253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36254 (exit $ac_status); }; }; then
36255 eval "$as_ac_var=yes"
36256else
36257 echo "$as_me: failed program was:" >&5
36258sed 's/^/| /' conftest.$ac_ext >&5
36259
36260eval "$as_ac_var=no"
36261fi
ac1cb8d3
VS
36262rm -f conftest.err conftest.$ac_objext \
36263 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
36264fi
36265echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
36266echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
36267if test `eval echo '${'$as_ac_var'}'` = yes; then
36268 cat >>confdefs.h <<_ACEOF
36269#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36270_ACEOF
36271 break
36272fi
36273done
36274
36275
36276HAVE_SOME_SLEEP_FUNC=0
36277if test "$USE_BEOS" = 1; then
36278 cat >>confdefs.h <<\_ACEOF
36279#define HAVE_SLEEP 1
36280_ACEOF
36281
36282 HAVE_SOME_SLEEP_FUNC=1
36283fi
36284
36285if test "$USE_DARWIN" = 1; then
36286 cat >>confdefs.h <<\_ACEOF
36287#define HAVE_USLEEP 1
36288_ACEOF
36289
36290 HAVE_SOME_SLEEP_FUNC=1
36291fi
36292
36293if test "$HAVE_SOME_SLEEP_FUNC" != 1; then
36294 POSIX4_LINK=
36295
36296for ac_func in nanosleep
36297do
36298as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36299echo "$as_me:$LINENO: checking for $ac_func" >&5
36300echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
36301if eval "test \"\${$as_ac_var+set}\" = set"; then
36302 echo $ECHO_N "(cached) $ECHO_C" >&6
36303else
36304 cat >conftest.$ac_ext <<_ACEOF
36305/* confdefs.h. */
36306_ACEOF
36307cat confdefs.h >>conftest.$ac_ext
36308cat >>conftest.$ac_ext <<_ACEOF
36309/* end confdefs.h. */
ac1cb8d3
VS
36310/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
36311 For example, HP-UX 11i <limits.h> declares gettimeofday. */
36312#define $ac_func innocuous_$ac_func
36313
a848cd7e
SC
36314/* System header to define __stub macros and hopefully few prototypes,
36315 which can conflict with char $ac_func (); below.
36316 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36317 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 36318
a848cd7e
SC
36319#ifdef __STDC__
36320# include <limits.h>
36321#else
36322# include <assert.h>
36323#endif
ac1cb8d3
VS
36324
36325#undef $ac_func
36326
a848cd7e
SC
36327/* Override any gcc2 internal prototype to avoid an error. */
36328#ifdef __cplusplus
36329extern "C"
36330{
36331#endif
36332/* We use char because int might match the return type of a gcc2
36333 builtin and then its argument prototype would still apply. */
36334char $ac_func ();
36335/* The GNU C library defines this for functions which it implements
36336 to always fail with ENOSYS. Some functions are actually named
36337 something starting with __ and the normal name is an alias. */
36338#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
36339choke me
36340#else
36341char (*f) () = $ac_func;
36342#endif
36343#ifdef __cplusplus
36344}
36345#endif
36346
36347int
36348main ()
36349{
36350return f != $ac_func;
36351 ;
36352 return 0;
36353}
36354_ACEOF
36355rm -f conftest.$ac_objext conftest$ac_exeext
36356if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 36357 (eval $ac_link) 2>conftest.er1
a848cd7e 36358 ac_status=$?
ac1cb8d3
VS
36359 grep -v '^ *+' conftest.er1 >conftest.err
36360 rm -f conftest.er1
36361 cat conftest.err >&5
a848cd7e
SC
36362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36363 (exit $ac_status); } &&
3f60522a
JS
36364 { ac_try='test -z "$ac_cxx_werror_flag"
36365 || test ! -s conftest.err'
ac1cb8d3
VS
36366 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36367 (eval $ac_try) 2>&5
36368 ac_status=$?
36369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36370 (exit $ac_status); }; } &&
36371 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
36372 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36373 (eval $ac_try) 2>&5
36374 ac_status=$?
36375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36376 (exit $ac_status); }; }; then
36377 eval "$as_ac_var=yes"
36378else
36379 echo "$as_me: failed program was:" >&5
36380sed 's/^/| /' conftest.$ac_ext >&5
36381
36382eval "$as_ac_var=no"
36383fi
ac1cb8d3
VS
36384rm -f conftest.err conftest.$ac_objext \
36385 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
36386fi
36387echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
36388echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
36389if test `eval echo '${'$as_ac_var'}'` = yes; then
36390 cat >>confdefs.h <<_ACEOF
36391#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36392_ACEOF
36393 cat >>confdefs.h <<\_ACEOF
36394#define HAVE_NANOSLEEP 1
36395_ACEOF
36396
36397else
36398
36399 echo "$as_me:$LINENO: checking for nanosleep in -lposix4" >&5
36400echo $ECHO_N "checking for nanosleep in -lposix4... $ECHO_C" >&6
36401if test "${ac_cv_lib_posix4_nanosleep+set}" = set; then
36402 echo $ECHO_N "(cached) $ECHO_C" >&6
36403else
36404 ac_check_lib_save_LIBS=$LIBS
36405LIBS="-lposix4 $LIBS"
36406cat >conftest.$ac_ext <<_ACEOF
36407/* confdefs.h. */
36408_ACEOF
36409cat confdefs.h >>conftest.$ac_ext
36410cat >>conftest.$ac_ext <<_ACEOF
36411/* end confdefs.h. */
36412
36413/* Override any gcc2 internal prototype to avoid an error. */
36414#ifdef __cplusplus
36415extern "C"
36416#endif
36417/* We use char because int might match the return type of a gcc2
36418 builtin and then its argument prototype would still apply. */
36419char nanosleep ();
36420int
36421main ()
36422{
36423nanosleep ();
36424 ;
36425 return 0;
36426}
36427_ACEOF
36428rm -f conftest.$ac_objext conftest$ac_exeext
36429if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 36430 (eval $ac_link) 2>conftest.er1
a848cd7e 36431 ac_status=$?
ac1cb8d3
VS
36432 grep -v '^ *+' conftest.er1 >conftest.err
36433 rm -f conftest.er1
36434 cat conftest.err >&5
a848cd7e
SC
36435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36436 (exit $ac_status); } &&
3f60522a
JS
36437 { ac_try='test -z "$ac_cxx_werror_flag"
36438 || test ! -s conftest.err'
ac1cb8d3
VS
36439 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36440 (eval $ac_try) 2>&5
36441 ac_status=$?
36442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36443 (exit $ac_status); }; } &&
36444 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
36445 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36446 (eval $ac_try) 2>&5
36447 ac_status=$?
36448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36449 (exit $ac_status); }; }; then
36450 ac_cv_lib_posix4_nanosleep=yes
36451else
36452 echo "$as_me: failed program was:" >&5
36453sed 's/^/| /' conftest.$ac_ext >&5
36454
36455ac_cv_lib_posix4_nanosleep=no
36456fi
ac1cb8d3
VS
36457rm -f conftest.err conftest.$ac_objext \
36458 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
36459LIBS=$ac_check_lib_save_LIBS
36460fi
36461echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_nanosleep" >&5
36462echo "${ECHO_T}$ac_cv_lib_posix4_nanosleep" >&6
36463if test $ac_cv_lib_posix4_nanosleep = yes; then
36464
36465 cat >>confdefs.h <<\_ACEOF
36466#define HAVE_NANOSLEEP 1
36467_ACEOF
36468
36469 POSIX4_LINK=" -lposix4"
36470
36471else
36472
36473
36474for ac_func in usleep
36475do
36476as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36477echo "$as_me:$LINENO: checking for $ac_func" >&5
36478echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
36479if eval "test \"\${$as_ac_var+set}\" = set"; then
36480 echo $ECHO_N "(cached) $ECHO_C" >&6
36481else
36482 cat >conftest.$ac_ext <<_ACEOF
36483/* confdefs.h. */
36484_ACEOF
36485cat confdefs.h >>conftest.$ac_ext
36486cat >>conftest.$ac_ext <<_ACEOF
36487/* end confdefs.h. */
ac1cb8d3
VS
36488/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
36489 For example, HP-UX 11i <limits.h> declares gettimeofday. */
36490#define $ac_func innocuous_$ac_func
36491
a848cd7e
SC
36492/* System header to define __stub macros and hopefully few prototypes,
36493 which can conflict with char $ac_func (); below.
36494 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36495 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 36496
a848cd7e
SC
36497#ifdef __STDC__
36498# include <limits.h>
36499#else
36500# include <assert.h>
36501#endif
ac1cb8d3
VS
36502
36503#undef $ac_func
36504
a848cd7e
SC
36505/* Override any gcc2 internal prototype to avoid an error. */
36506#ifdef __cplusplus
36507extern "C"
36508{
36509#endif
36510/* We use char because int might match the return type of a gcc2
36511 builtin and then its argument prototype would still apply. */
36512char $ac_func ();
36513/* The GNU C library defines this for functions which it implements
36514 to always fail with ENOSYS. Some functions are actually named
36515 something starting with __ and the normal name is an alias. */
36516#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
36517choke me
36518#else
36519char (*f) () = $ac_func;
36520#endif
36521#ifdef __cplusplus
36522}
36523#endif
36524
36525int
36526main ()
36527{
36528return f != $ac_func;
36529 ;
36530 return 0;
36531}
36532_ACEOF
36533rm -f conftest.$ac_objext conftest$ac_exeext
36534if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 36535 (eval $ac_link) 2>conftest.er1
a848cd7e 36536 ac_status=$?
ac1cb8d3
VS
36537 grep -v '^ *+' conftest.er1 >conftest.err
36538 rm -f conftest.er1
36539 cat conftest.err >&5
a848cd7e
SC
36540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36541 (exit $ac_status); } &&
3f60522a
JS
36542 { ac_try='test -z "$ac_cxx_werror_flag"
36543 || test ! -s conftest.err'
ac1cb8d3
VS
36544 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36545 (eval $ac_try) 2>&5
36546 ac_status=$?
36547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36548 (exit $ac_status); }; } &&
36549 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
36550 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36551 (eval $ac_try) 2>&5
36552 ac_status=$?
36553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36554 (exit $ac_status); }; }; then
36555 eval "$as_ac_var=yes"
36556else
36557 echo "$as_me: failed program was:" >&5
36558sed 's/^/| /' conftest.$ac_ext >&5
36559
36560eval "$as_ac_var=no"
36561fi
ac1cb8d3
VS
36562rm -f conftest.err conftest.$ac_objext \
36563 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
36564fi
36565echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
36566echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
36567if test `eval echo '${'$as_ac_var'}'` = yes; then
36568 cat >>confdefs.h <<_ACEOF
36569#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36570_ACEOF
36571 cat >>confdefs.h <<\_ACEOF
36572#define HAVE_USLEEP 1
36573_ACEOF
36574
36575else
36576 { echo "$as_me:$LINENO: WARNING: wxSleep() function will not work" >&5
36577echo "$as_me: WARNING: wxSleep() function will not work" >&2;}
36578
36579fi
36580done
36581
36582
36583
36584fi
36585
36586
36587
36588fi
36589done
36590
36591fi
36592
36593
36594
36595for ac_func in uname gethostname
36596do
36597as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36598echo "$as_me:$LINENO: checking for $ac_func" >&5
36599echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
36600if eval "test \"\${$as_ac_var+set}\" = set"; then
36601 echo $ECHO_N "(cached) $ECHO_C" >&6
36602else
36603 cat >conftest.$ac_ext <<_ACEOF
36604/* confdefs.h. */
36605_ACEOF
36606cat confdefs.h >>conftest.$ac_ext
36607cat >>conftest.$ac_ext <<_ACEOF
36608/* end confdefs.h. */
ac1cb8d3
VS
36609/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
36610 For example, HP-UX 11i <limits.h> declares gettimeofday. */
36611#define $ac_func innocuous_$ac_func
36612
a848cd7e
SC
36613/* System header to define __stub macros and hopefully few prototypes,
36614 which can conflict with char $ac_func (); below.
36615 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36616 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 36617
a848cd7e
SC
36618#ifdef __STDC__
36619# include <limits.h>
36620#else
36621# include <assert.h>
36622#endif
ac1cb8d3
VS
36623
36624#undef $ac_func
36625
a848cd7e
SC
36626/* Override any gcc2 internal prototype to avoid an error. */
36627#ifdef __cplusplus
36628extern "C"
36629{
36630#endif
36631/* We use char because int might match the return type of a gcc2
36632 builtin and then its argument prototype would still apply. */
36633char $ac_func ();
36634/* The GNU C library defines this for functions which it implements
36635 to always fail with ENOSYS. Some functions are actually named
36636 something starting with __ and the normal name is an alias. */
36637#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
36638choke me
36639#else
36640char (*f) () = $ac_func;
36641#endif
36642#ifdef __cplusplus
36643}
36644#endif
36645
36646int
36647main ()
36648{
36649return f != $ac_func;
36650 ;
36651 return 0;
36652}
36653_ACEOF
36654rm -f conftest.$ac_objext conftest$ac_exeext
36655if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 36656 (eval $ac_link) 2>conftest.er1
a848cd7e 36657 ac_status=$?
ac1cb8d3
VS
36658 grep -v '^ *+' conftest.er1 >conftest.err
36659 rm -f conftest.er1
36660 cat conftest.err >&5
a848cd7e
SC
36661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36662 (exit $ac_status); } &&
3f60522a
JS
36663 { ac_try='test -z "$ac_cxx_werror_flag"
36664 || test ! -s conftest.err'
ac1cb8d3
VS
36665 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36666 (eval $ac_try) 2>&5
36667 ac_status=$?
36668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36669 (exit $ac_status); }; } &&
36670 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
36671 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36672 (eval $ac_try) 2>&5
36673 ac_status=$?
36674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36675 (exit $ac_status); }; }; then
36676 eval "$as_ac_var=yes"
36677else
36678 echo "$as_me: failed program was:" >&5
36679sed 's/^/| /' conftest.$ac_ext >&5
36680
36681eval "$as_ac_var=no"
36682fi
ac1cb8d3
VS
36683rm -f conftest.err conftest.$ac_objext \
36684 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
36685fi
36686echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
36687echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
36688if test `eval echo '${'$as_ac_var'}'` = yes; then
36689 cat >>confdefs.h <<_ACEOF
36690#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36691_ACEOF
36692 break
36693fi
36694done
36695
36696
a848cd7e
SC
36697
36698for ac_func in strtok_r
36699do
36700as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36701echo "$as_me:$LINENO: checking for $ac_func" >&5
36702echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
36703if eval "test \"\${$as_ac_var+set}\" = set"; then
36704 echo $ECHO_N "(cached) $ECHO_C" >&6
36705else
36706 cat >conftest.$ac_ext <<_ACEOF
36707/* confdefs.h. */
36708_ACEOF
36709cat confdefs.h >>conftest.$ac_ext
36710cat >>conftest.$ac_ext <<_ACEOF
36711/* end confdefs.h. */
ac1cb8d3
VS
36712/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
36713 For example, HP-UX 11i <limits.h> declares gettimeofday. */
36714#define $ac_func innocuous_$ac_func
36715
a848cd7e
SC
36716/* System header to define __stub macros and hopefully few prototypes,
36717 which can conflict with char $ac_func (); below.
36718 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36719 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 36720
a848cd7e
SC
36721#ifdef __STDC__
36722# include <limits.h>
36723#else
36724# include <assert.h>
36725#endif
ac1cb8d3
VS
36726
36727#undef $ac_func
36728
a848cd7e
SC
36729/* Override any gcc2 internal prototype to avoid an error. */
36730#ifdef __cplusplus
36731extern "C"
36732{
36733#endif
36734/* We use char because int might match the return type of a gcc2
36735 builtin and then its argument prototype would still apply. */
36736char $ac_func ();
36737/* The GNU C library defines this for functions which it implements
36738 to always fail with ENOSYS. Some functions are actually named
36739 something starting with __ and the normal name is an alias. */
36740#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
36741choke me
36742#else
36743char (*f) () = $ac_func;
36744#endif
36745#ifdef __cplusplus
36746}
36747#endif
36748
36749int
36750main ()
36751{
36752return f != $ac_func;
36753 ;
36754 return 0;
36755}
36756_ACEOF
36757rm -f conftest.$ac_objext conftest$ac_exeext
36758if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 36759 (eval $ac_link) 2>conftest.er1
a848cd7e 36760 ac_status=$?
ac1cb8d3
VS
36761 grep -v '^ *+' conftest.er1 >conftest.err
36762 rm -f conftest.er1
36763 cat conftest.err >&5
a848cd7e
SC
36764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36765 (exit $ac_status); } &&
3f60522a
JS
36766 { ac_try='test -z "$ac_cxx_werror_flag"
36767 || test ! -s conftest.err'
ac1cb8d3
VS
36768 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36769 (eval $ac_try) 2>&5
36770 ac_status=$?
36771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36772 (exit $ac_status); }; } &&
36773 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
36774 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36775 (eval $ac_try) 2>&5
36776 ac_status=$?
36777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36778 (exit $ac_status); }; }; then
36779 eval "$as_ac_var=yes"
36780else
36781 echo "$as_me: failed program was:" >&5
36782sed 's/^/| /' conftest.$ac_ext >&5
36783
36784eval "$as_ac_var=no"
36785fi
ac1cb8d3
VS
36786rm -f conftest.err conftest.$ac_objext \
36787 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
36788fi
36789echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
36790echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
36791if test `eval echo '${'$as_ac_var'}'` = yes; then
36792 cat >>confdefs.h <<_ACEOF
36793#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36794_ACEOF
36795
36796fi
36797done
36798
36799
a848cd7e
SC
36800INET_LINK=
36801
36802for ac_func in inet_addr
36803do
36804as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36805echo "$as_me:$LINENO: checking for $ac_func" >&5
36806echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
36807if eval "test \"\${$as_ac_var+set}\" = set"; then
36808 echo $ECHO_N "(cached) $ECHO_C" >&6
36809else
36810 cat >conftest.$ac_ext <<_ACEOF
36811/* confdefs.h. */
36812_ACEOF
36813cat confdefs.h >>conftest.$ac_ext
36814cat >>conftest.$ac_ext <<_ACEOF
36815/* end confdefs.h. */
ac1cb8d3
VS
36816/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
36817 For example, HP-UX 11i <limits.h> declares gettimeofday. */
36818#define $ac_func innocuous_$ac_func
36819
a848cd7e
SC
36820/* System header to define __stub macros and hopefully few prototypes,
36821 which can conflict with char $ac_func (); below.
36822 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36823 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 36824
a848cd7e
SC
36825#ifdef __STDC__
36826# include <limits.h>
36827#else
36828# include <assert.h>
36829#endif
ac1cb8d3
VS
36830
36831#undef $ac_func
36832
a848cd7e
SC
36833/* Override any gcc2 internal prototype to avoid an error. */
36834#ifdef __cplusplus
36835extern "C"
36836{
36837#endif
36838/* We use char because int might match the return type of a gcc2
36839 builtin and then its argument prototype would still apply. */
36840char $ac_func ();
36841/* The GNU C library defines this for functions which it implements
36842 to always fail with ENOSYS. Some functions are actually named
36843 something starting with __ and the normal name is an alias. */
36844#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
36845choke me
36846#else
36847char (*f) () = $ac_func;
36848#endif
36849#ifdef __cplusplus
36850}
36851#endif
36852
36853int
36854main ()
36855{
36856return f != $ac_func;
36857 ;
36858 return 0;
36859}
36860_ACEOF
36861rm -f conftest.$ac_objext conftest$ac_exeext
36862if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 36863 (eval $ac_link) 2>conftest.er1
a848cd7e 36864 ac_status=$?
ac1cb8d3
VS
36865 grep -v '^ *+' conftest.er1 >conftest.err
36866 rm -f conftest.er1
36867 cat conftest.err >&5
a848cd7e
SC
36868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36869 (exit $ac_status); } &&
3f60522a
JS
36870 { ac_try='test -z "$ac_cxx_werror_flag"
36871 || test ! -s conftest.err'
ac1cb8d3
VS
36872 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36873 (eval $ac_try) 2>&5
36874 ac_status=$?
36875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36876 (exit $ac_status); }; } &&
36877 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
36878 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36879 (eval $ac_try) 2>&5
36880 ac_status=$?
36881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36882 (exit $ac_status); }; }; then
36883 eval "$as_ac_var=yes"
36884else
36885 echo "$as_me: failed program was:" >&5
36886sed 's/^/| /' conftest.$ac_ext >&5
36887
36888eval "$as_ac_var=no"
36889fi
ac1cb8d3
VS
36890rm -f conftest.err conftest.$ac_objext \
36891 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
36892fi
36893echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
36894echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
36895if test `eval echo '${'$as_ac_var'}'` = yes; then
36896 cat >>confdefs.h <<_ACEOF
36897#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36898_ACEOF
36899 cat >>confdefs.h <<\_ACEOF
36900#define HAVE_INET_ADDR 1
36901_ACEOF
36902
36903else
36904
36905 echo "$as_me:$LINENO: checking for inet_addr in -lnsl" >&5
36906echo $ECHO_N "checking for inet_addr in -lnsl... $ECHO_C" >&6
36907if test "${ac_cv_lib_nsl_inet_addr+set}" = set; then
36908 echo $ECHO_N "(cached) $ECHO_C" >&6
36909else
36910 ac_check_lib_save_LIBS=$LIBS
36911LIBS="-lnsl $LIBS"
36912cat >conftest.$ac_ext <<_ACEOF
36913/* confdefs.h. */
36914_ACEOF
36915cat confdefs.h >>conftest.$ac_ext
36916cat >>conftest.$ac_ext <<_ACEOF
36917/* end confdefs.h. */
36918
36919/* Override any gcc2 internal prototype to avoid an error. */
36920#ifdef __cplusplus
36921extern "C"
36922#endif
36923/* We use char because int might match the return type of a gcc2
36924 builtin and then its argument prototype would still apply. */
36925char inet_addr ();
36926int
36927main ()
36928{
36929inet_addr ();
36930 ;
36931 return 0;
36932}
36933_ACEOF
36934rm -f conftest.$ac_objext conftest$ac_exeext
36935if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 36936 (eval $ac_link) 2>conftest.er1
a848cd7e 36937 ac_status=$?
ac1cb8d3
VS
36938 grep -v '^ *+' conftest.er1 >conftest.err
36939 rm -f conftest.er1
36940 cat conftest.err >&5
a848cd7e
SC
36941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36942 (exit $ac_status); } &&
3f60522a
JS
36943 { ac_try='test -z "$ac_cxx_werror_flag"
36944 || test ! -s conftest.err'
ac1cb8d3
VS
36945 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36946 (eval $ac_try) 2>&5
36947 ac_status=$?
36948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36949 (exit $ac_status); }; } &&
36950 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
36951 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36952 (eval $ac_try) 2>&5
36953 ac_status=$?
36954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36955 (exit $ac_status); }; }; then
36956 ac_cv_lib_nsl_inet_addr=yes
36957else
36958 echo "$as_me: failed program was:" >&5
36959sed 's/^/| /' conftest.$ac_ext >&5
36960
36961ac_cv_lib_nsl_inet_addr=no
36962fi
ac1cb8d3
VS
36963rm -f conftest.err conftest.$ac_objext \
36964 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
36965LIBS=$ac_check_lib_save_LIBS
36966fi
36967echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_inet_addr" >&5
36968echo "${ECHO_T}$ac_cv_lib_nsl_inet_addr" >&6
36969if test $ac_cv_lib_nsl_inet_addr = yes; then
36970 INET_LINK="nsl"
36971else
36972
36973 echo "$as_me:$LINENO: checking for inet_addr in -lresolv" >&5
36974echo $ECHO_N "checking for inet_addr in -lresolv... $ECHO_C" >&6
36975if test "${ac_cv_lib_resolv_inet_addr+set}" = set; then
36976 echo $ECHO_N "(cached) $ECHO_C" >&6
36977else
36978 ac_check_lib_save_LIBS=$LIBS
36979LIBS="-lresolv $LIBS"
36980cat >conftest.$ac_ext <<_ACEOF
36981/* confdefs.h. */
36982_ACEOF
36983cat confdefs.h >>conftest.$ac_ext
36984cat >>conftest.$ac_ext <<_ACEOF
36985/* end confdefs.h. */
36986
36987/* Override any gcc2 internal prototype to avoid an error. */
36988#ifdef __cplusplus
36989extern "C"
36990#endif
36991/* We use char because int might match the return type of a gcc2
36992 builtin and then its argument prototype would still apply. */
36993char inet_addr ();
36994int
36995main ()
36996{
36997inet_addr ();
36998 ;
36999 return 0;
37000}
37001_ACEOF
37002rm -f conftest.$ac_objext conftest$ac_exeext
37003if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 37004 (eval $ac_link) 2>conftest.er1
a848cd7e 37005 ac_status=$?
ac1cb8d3
VS
37006 grep -v '^ *+' conftest.er1 >conftest.err
37007 rm -f conftest.er1
37008 cat conftest.err >&5
a848cd7e
SC
37009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37010 (exit $ac_status); } &&
3f60522a
JS
37011 { ac_try='test -z "$ac_cxx_werror_flag"
37012 || test ! -s conftest.err'
ac1cb8d3
VS
37013 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37014 (eval $ac_try) 2>&5
37015 ac_status=$?
37016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37017 (exit $ac_status); }; } &&
37018 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
37019 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37020 (eval $ac_try) 2>&5
37021 ac_status=$?
37022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37023 (exit $ac_status); }; }; then
37024 ac_cv_lib_resolv_inet_addr=yes
37025else
37026 echo "$as_me: failed program was:" >&5
37027sed 's/^/| /' conftest.$ac_ext >&5
37028
37029ac_cv_lib_resolv_inet_addr=no
37030fi
ac1cb8d3
VS
37031rm -f conftest.err conftest.$ac_objext \
37032 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
37033LIBS=$ac_check_lib_save_LIBS
37034fi
37035echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_inet_addr" >&5
37036echo "${ECHO_T}$ac_cv_lib_resolv_inet_addr" >&6
37037if test $ac_cv_lib_resolv_inet_addr = yes; then
37038 INET_LINK="resolv"
37039else
37040
37041 echo "$as_me:$LINENO: checking for inet_addr in -lsocket" >&5
37042echo $ECHO_N "checking for inet_addr in -lsocket... $ECHO_C" >&6
37043if test "${ac_cv_lib_socket_inet_addr+set}" = set; then
37044 echo $ECHO_N "(cached) $ECHO_C" >&6
37045else
37046 ac_check_lib_save_LIBS=$LIBS
37047LIBS="-lsocket $LIBS"
37048cat >conftest.$ac_ext <<_ACEOF
37049/* confdefs.h. */
37050_ACEOF
37051cat confdefs.h >>conftest.$ac_ext
37052cat >>conftest.$ac_ext <<_ACEOF
37053/* end confdefs.h. */
37054
37055/* Override any gcc2 internal prototype to avoid an error. */
37056#ifdef __cplusplus
37057extern "C"
37058#endif
37059/* We use char because int might match the return type of a gcc2
37060 builtin and then its argument prototype would still apply. */
37061char inet_addr ();
37062int
37063main ()
37064{
37065inet_addr ();
37066 ;
37067 return 0;
37068}
37069_ACEOF
37070rm -f conftest.$ac_objext conftest$ac_exeext
37071if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 37072 (eval $ac_link) 2>conftest.er1
a848cd7e 37073 ac_status=$?
ac1cb8d3
VS
37074 grep -v '^ *+' conftest.er1 >conftest.err
37075 rm -f conftest.er1
37076 cat conftest.err >&5
a848cd7e
SC
37077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37078 (exit $ac_status); } &&
3f60522a
JS
37079 { ac_try='test -z "$ac_cxx_werror_flag"
37080 || test ! -s conftest.err'
ac1cb8d3
VS
37081 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37082 (eval $ac_try) 2>&5
37083 ac_status=$?
37084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37085 (exit $ac_status); }; } &&
37086 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
37087 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37088 (eval $ac_try) 2>&5
37089 ac_status=$?
37090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37091 (exit $ac_status); }; }; then
37092 ac_cv_lib_socket_inet_addr=yes
37093else
37094 echo "$as_me: failed program was:" >&5
37095sed 's/^/| /' conftest.$ac_ext >&5
37096
37097ac_cv_lib_socket_inet_addr=no
37098fi
ac1cb8d3
VS
37099rm -f conftest.err conftest.$ac_objext \
37100 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
37101LIBS=$ac_check_lib_save_LIBS
37102fi
37103echo "$as_me:$LINENO: result: $ac_cv_lib_socket_inet_addr" >&5
37104echo "${ECHO_T}$ac_cv_lib_socket_inet_addr" >&6
37105if test $ac_cv_lib_socket_inet_addr = yes; then
37106 INET_LINK="socket"
37107
37108fi
37109
37110
37111
37112fi
37113
37114
37115
37116fi
37117
37118
37119
37120fi
37121done
37122
37123
37124
37125for ac_func in inet_aton
37126do
37127as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37128echo "$as_me:$LINENO: checking for $ac_func" >&5
37129echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
37130if eval "test \"\${$as_ac_var+set}\" = set"; then
37131 echo $ECHO_N "(cached) $ECHO_C" >&6
37132else
37133 cat >conftest.$ac_ext <<_ACEOF
37134/* confdefs.h. */
37135_ACEOF
37136cat confdefs.h >>conftest.$ac_ext
37137cat >>conftest.$ac_ext <<_ACEOF
37138/* end confdefs.h. */
ac1cb8d3
VS
37139/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37140 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37141#define $ac_func innocuous_$ac_func
37142
a848cd7e
SC
37143/* System header to define __stub macros and hopefully few prototypes,
37144 which can conflict with char $ac_func (); below.
37145 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37146 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 37147
a848cd7e
SC
37148#ifdef __STDC__
37149# include <limits.h>
37150#else
37151# include <assert.h>
37152#endif
ac1cb8d3
VS
37153
37154#undef $ac_func
37155
a848cd7e
SC
37156/* Override any gcc2 internal prototype to avoid an error. */
37157#ifdef __cplusplus
37158extern "C"
37159{
37160#endif
37161/* We use char because int might match the return type of a gcc2
37162 builtin and then its argument prototype would still apply. */
37163char $ac_func ();
37164/* The GNU C library defines this for functions which it implements
37165 to always fail with ENOSYS. Some functions are actually named
37166 something starting with __ and the normal name is an alias. */
37167#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
37168choke me
37169#else
37170char (*f) () = $ac_func;
37171#endif
37172#ifdef __cplusplus
37173}
37174#endif
37175
37176int
37177main ()
37178{
37179return f != $ac_func;
37180 ;
37181 return 0;
37182}
37183_ACEOF
37184rm -f conftest.$ac_objext conftest$ac_exeext
37185if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 37186 (eval $ac_link) 2>conftest.er1
a848cd7e 37187 ac_status=$?
ac1cb8d3
VS
37188 grep -v '^ *+' conftest.er1 >conftest.err
37189 rm -f conftest.er1
37190 cat conftest.err >&5
a848cd7e
SC
37191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37192 (exit $ac_status); } &&
3f60522a
JS
37193 { ac_try='test -z "$ac_cxx_werror_flag"
37194 || test ! -s conftest.err'
ac1cb8d3
VS
37195 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37196 (eval $ac_try) 2>&5
37197 ac_status=$?
37198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37199 (exit $ac_status); }; } &&
37200 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
37201 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37202 (eval $ac_try) 2>&5
37203 ac_status=$?
37204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37205 (exit $ac_status); }; }; then
37206 eval "$as_ac_var=yes"
37207else
37208 echo "$as_me: failed program was:" >&5
37209sed 's/^/| /' conftest.$ac_ext >&5
37210
37211eval "$as_ac_var=no"
37212fi
ac1cb8d3
VS
37213rm -f conftest.err conftest.$ac_objext \
37214 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
37215fi
37216echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
37217echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
37218if test `eval echo '${'$as_ac_var'}'` = yes; then
37219 cat >>confdefs.h <<_ACEOF
37220#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37221_ACEOF
37222 cat >>confdefs.h <<\_ACEOF
37223#define HAVE_INET_ATON 1
37224_ACEOF
37225
37226else
37227
37228 as_ac_Lib=`echo "ac_cv_lib_$INET_LINK''_inet_aton" | $as_tr_sh`
37229echo "$as_me:$LINENO: checking for inet_aton in -l$INET_LINK" >&5
37230echo $ECHO_N "checking for inet_aton in -l$INET_LINK... $ECHO_C" >&6
37231if eval "test \"\${$as_ac_Lib+set}\" = set"; then
37232 echo $ECHO_N "(cached) $ECHO_C" >&6
37233else
37234 ac_check_lib_save_LIBS=$LIBS
37235LIBS="-l$INET_LINK $LIBS"
37236cat >conftest.$ac_ext <<_ACEOF
37237/* confdefs.h. */
37238_ACEOF
37239cat confdefs.h >>conftest.$ac_ext
37240cat >>conftest.$ac_ext <<_ACEOF
37241/* end confdefs.h. */
37242
37243/* Override any gcc2 internal prototype to avoid an error. */
37244#ifdef __cplusplus
37245extern "C"
37246#endif
37247/* We use char because int might match the return type of a gcc2
37248 builtin and then its argument prototype would still apply. */
37249char inet_aton ();
37250int
37251main ()
37252{
37253inet_aton ();
37254 ;
37255 return 0;
37256}
37257_ACEOF
37258rm -f conftest.$ac_objext conftest$ac_exeext
37259if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 37260 (eval $ac_link) 2>conftest.er1
a848cd7e 37261 ac_status=$?
ac1cb8d3
VS
37262 grep -v '^ *+' conftest.er1 >conftest.err
37263 rm -f conftest.er1
37264 cat conftest.err >&5
a848cd7e
SC
37265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37266 (exit $ac_status); } &&
3f60522a
JS
37267 { ac_try='test -z "$ac_cxx_werror_flag"
37268 || test ! -s conftest.err'
ac1cb8d3
VS
37269 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37270 (eval $ac_try) 2>&5
37271 ac_status=$?
37272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37273 (exit $ac_status); }; } &&
37274 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
37275 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37276 (eval $ac_try) 2>&5
37277 ac_status=$?
37278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37279 (exit $ac_status); }; }; then
37280 eval "$as_ac_Lib=yes"
37281else
37282 echo "$as_me: failed program was:" >&5
37283sed 's/^/| /' conftest.$ac_ext >&5
37284
37285eval "$as_ac_Lib=no"
37286fi
ac1cb8d3
VS
37287rm -f conftest.err conftest.$ac_objext \
37288 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
37289LIBS=$ac_check_lib_save_LIBS
37290fi
37291echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
37292echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
37293if test `eval echo '${'$as_ac_Lib'}'` = yes; then
37294 cat >>confdefs.h <<\_ACEOF
37295#define HAVE_INET_ATON 1
37296_ACEOF
37297
37298fi
37299
37300
37301fi
37302done
37303
37304
37305if test "x$INET_LINK" != "x"; then
37306 cat >>confdefs.h <<\_ACEOF
37307#define HAVE_INET_ADDR 1
37308_ACEOF
37309
37310 INET_LINK=" -l$INET_LINK"
37311fi
37312
37313fi
37314
37315
37316
37317EXTRALIBS_ESD=
37318echo "$as_me:$LINENO: checking for esd_close in -lesd" >&5
37319echo $ECHO_N "checking for esd_close in -lesd... $ECHO_C" >&6
37320if test "${ac_cv_lib_esd_esd_close+set}" = set; then
37321 echo $ECHO_N "(cached) $ECHO_C" >&6
37322else
37323 ac_check_lib_save_LIBS=$LIBS
37324LIBS="-lesd $LIBS"
37325cat >conftest.$ac_ext <<_ACEOF
37326/* confdefs.h. */
37327_ACEOF
37328cat confdefs.h >>conftest.$ac_ext
37329cat >>conftest.$ac_ext <<_ACEOF
37330/* end confdefs.h. */
37331
37332/* Override any gcc2 internal prototype to avoid an error. */
37333#ifdef __cplusplus
37334extern "C"
37335#endif
37336/* We use char because int might match the return type of a gcc2
37337 builtin and then its argument prototype would still apply. */
37338char esd_close ();
37339int
37340main ()
37341{
37342esd_close ();
37343 ;
37344 return 0;
37345}
37346_ACEOF
37347rm -f conftest.$ac_objext conftest$ac_exeext
37348if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 37349 (eval $ac_link) 2>conftest.er1
a848cd7e 37350 ac_status=$?
ac1cb8d3
VS
37351 grep -v '^ *+' conftest.er1 >conftest.err
37352 rm -f conftest.er1
37353 cat conftest.err >&5
a848cd7e
SC
37354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37355 (exit $ac_status); } &&
3f60522a
JS
37356 { ac_try='test -z "$ac_cxx_werror_flag"
37357 || test ! -s conftest.err'
ac1cb8d3
VS
37358 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37359 (eval $ac_try) 2>&5
37360 ac_status=$?
37361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37362 (exit $ac_status); }; } &&
37363 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
37364 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37365 (eval $ac_try) 2>&5
37366 ac_status=$?
37367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37368 (exit $ac_status); }; }; then
37369 ac_cv_lib_esd_esd_close=yes
37370else
37371 echo "$as_me: failed program was:" >&5
37372sed 's/^/| /' conftest.$ac_ext >&5
37373
37374ac_cv_lib_esd_esd_close=no
37375fi
ac1cb8d3
VS
37376rm -f conftest.err conftest.$ac_objext \
37377 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
37378LIBS=$ac_check_lib_save_LIBS
37379fi
37380echo "$as_me:$LINENO: result: $ac_cv_lib_esd_esd_close" >&5
37381echo "${ECHO_T}$ac_cv_lib_esd_esd_close" >&6
37382if test $ac_cv_lib_esd_esd_close = yes; then
37383
37384
37385for ac_header in esd.h
37386do
37387as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
37388if eval "test \"\${$as_ac_Header+set}\" = set"; then
37389 echo "$as_me:$LINENO: checking for $ac_header" >&5
37390echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
37391if eval "test \"\${$as_ac_Header+set}\" = set"; then
37392 echo $ECHO_N "(cached) $ECHO_C" >&6
37393fi
37394echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
37395echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
37396else
37397 # Is the header compilable?
37398echo "$as_me:$LINENO: checking $ac_header usability" >&5
37399echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
37400cat >conftest.$ac_ext <<_ACEOF
37401/* confdefs.h. */
37402_ACEOF
37403cat confdefs.h >>conftest.$ac_ext
37404cat >>conftest.$ac_ext <<_ACEOF
37405/* end confdefs.h. */
37406$ac_includes_default
37407#include <$ac_header>
37408_ACEOF
37409rm -f conftest.$ac_objext
37410if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 37411 (eval $ac_compile) 2>conftest.er1
a848cd7e 37412 ac_status=$?
ac1cb8d3
VS
37413 grep -v '^ *+' conftest.er1 >conftest.err
37414 rm -f conftest.er1
37415 cat conftest.err >&5
a848cd7e
SC
37416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37417 (exit $ac_status); } &&
3f60522a
JS
37418 { ac_try='test -z "$ac_cxx_werror_flag"
37419 || test ! -s conftest.err'
ac1cb8d3
VS
37420 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37421 (eval $ac_try) 2>&5
37422 ac_status=$?
37423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37424 (exit $ac_status); }; } &&
37425 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
37426 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37427 (eval $ac_try) 2>&5
37428 ac_status=$?
37429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37430 (exit $ac_status); }; }; then
37431 ac_header_compiler=yes
37432else
37433 echo "$as_me: failed program was:" >&5
37434sed 's/^/| /' conftest.$ac_ext >&5
37435
37436ac_header_compiler=no
37437fi
ac1cb8d3 37438rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
37439echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
37440echo "${ECHO_T}$ac_header_compiler" >&6
37441
37442# Is the header present?
37443echo "$as_me:$LINENO: checking $ac_header presence" >&5
37444echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
37445cat >conftest.$ac_ext <<_ACEOF
37446/* confdefs.h. */
37447_ACEOF
37448cat confdefs.h >>conftest.$ac_ext
37449cat >>conftest.$ac_ext <<_ACEOF
37450/* end confdefs.h. */
37451#include <$ac_header>
37452_ACEOF
37453if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
37454 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
37455 ac_status=$?
37456 grep -v '^ *+' conftest.er1 >conftest.err
37457 rm -f conftest.er1
37458 cat conftest.err >&5
37459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37460 (exit $ac_status); } >/dev/null; then
37461 if test -s conftest.err; then
5d7b7554
VZ
37462 ac_cpp_err=$ac_cxx_preproc_warn_flag
37463 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
37464 else
37465 ac_cpp_err=
37466 fi
37467else
37468 ac_cpp_err=yes
37469fi
37470if test -z "$ac_cpp_err"; then
37471 ac_header_preproc=yes
37472else
37473 echo "$as_me: failed program was:" >&5
37474sed 's/^/| /' conftest.$ac_ext >&5
37475
37476 ac_header_preproc=no
37477fi
37478rm -f conftest.err conftest.$ac_ext
37479echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
37480echo "${ECHO_T}$ac_header_preproc" >&6
37481
37482# So? What about this header?
5d7b7554 37483case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
ac1cb8d3 37484 yes:no: )
a848cd7e
SC
37485 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
37486echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
37487 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
37488echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
37489 ac_header_preproc=yes
a848cd7e 37490 ;;
ac1cb8d3 37491 no:yes:* )
a848cd7e
SC
37492 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
37493echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
37494 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
37495echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
37496 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
37497echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
37498 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
37499echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
37500 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
37501echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
37502 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
37503echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
37504 (
37505 cat <<\_ASBOX
ac1cb8d3
VS
37506## ----------------------------------------- ##
37507## Report this to wx-dev@lists.wxwidgets.org ##
37508## ----------------------------------------- ##
a848cd7e
SC
37509_ASBOX
37510 ) |
37511 sed "s/^/$as_me: WARNING: /" >&2
37512 ;;
37513esac
37514echo "$as_me:$LINENO: checking for $ac_header" >&5
37515echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
37516if eval "test \"\${$as_ac_Header+set}\" = set"; then
37517 echo $ECHO_N "(cached) $ECHO_C" >&6
37518else
ac1cb8d3 37519 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
37520fi
37521echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
37522echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
37523
37524fi
37525if test `eval echo '${'$as_ac_Header'}'` = yes; then
37526 cat >>confdefs.h <<_ACEOF
37527#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
37528_ACEOF
37529
37530 EXTRALIBS_ESD="-lesd"
37531
37532fi
37533
37534done
37535
37536
37537fi
37538
37539
37540
37541echo "$as_me:$LINENO: checking for known CD-ROM interface" >&5
37542echo $ECHO_N "checking for known CD-ROM interface... $ECHO_C" >&6
37543cat >conftest.$ac_ext <<_ACEOF
37544/* confdefs.h. */
37545_ACEOF
37546cat confdefs.h >>conftest.$ac_ext
37547cat >>conftest.$ac_ext <<_ACEOF
37548/* end confdefs.h. */
37549#ifdef __linux__
37550 #include <linux/cdrom.h>
37551 #else
37552 /* For Solaris */
37553 #include <sys/cdio.h>
37554 #endif
37555
37556int
37557main ()
37558{
37559struct cdrom_tocentry entry, old_entry;
37560 ;
37561 return 0;
37562}
37563_ACEOF
37564rm -f conftest.$ac_objext
37565if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 37566 (eval $ac_compile) 2>conftest.er1
a848cd7e 37567 ac_status=$?
ac1cb8d3
VS
37568 grep -v '^ *+' conftest.er1 >conftest.err
37569 rm -f conftest.er1
37570 cat conftest.err >&5
a848cd7e
SC
37571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37572 (exit $ac_status); } &&
3f60522a
JS
37573 { ac_try='test -z "$ac_cxx_werror_flag"
37574 || test ! -s conftest.err'
ac1cb8d3
VS
37575 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37576 (eval $ac_try) 2>&5
37577 ac_status=$?
37578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37579 (exit $ac_status); }; } &&
37580 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
37581 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37582 (eval $ac_try) 2>&5
37583 ac_status=$?
37584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37585 (exit $ac_status); }; }; then
37586 echo "$as_me:$LINENO: result: yes" >&5
37587echo "${ECHO_T}yes" >&6
37588 cat >>confdefs.h <<\_ACEOF
37589#define HAVE_KNOWN_CDROM_INTERFACE 1
37590_ACEOF
37591
37592else
37593 echo "$as_me: failed program was:" >&5
37594sed 's/^/| /' conftest.$ac_ext >&5
37595
37596echo "$as_me:$LINENO: result: no" >&5
37597echo "${ECHO_T}no" >&6
37598fi
ac1cb8d3 37599rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
37600
37601
37602cat >confcache <<\_ACEOF
37603# This file is a shell script that caches the results of configure
37604# tests run on this system so they can be shared between configure
37605# scripts and configure runs, see configure's option --config-cache.
37606# It is not useful on other systems. If it contains results you don't
37607# want to keep, you may remove or edit it.
37608#
37609# config.status only pays attention to the cache file if you give it
37610# the --recheck option to rerun configure.
37611#
37612# `ac_cv_env_foo' variables (set or unset) will be overridden when
37613# loading this file, other *unset* `ac_cv_foo' will be assigned the
37614# following values.
37615
37616_ACEOF
37617
37618# The following way of writing the cache mishandles newlines in values,
37619# but we know of no workaround that is simple, portable, and efficient.
37620# So, don't put newlines in cache variables' values.
37621# Ultrix sh set writes to stderr and can't be redirected directly,
37622# and sets the high bit in the cache file unless we assign to the vars.
37623{
37624 (set) 2>&1 |
37625 case `(ac_space=' '; set | grep ac_space) 2>&1` in
37626 *ac_space=\ *)
37627 # `set' does not quote correctly, so add quotes (double-quote
37628 # substitution turns \\\\ into \\, and sed turns \\ into \).
37629 sed -n \
ac1cb8d3
VS
37630 "s/'/'\\\\''/g;
37631 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
a848cd7e
SC
37632 ;;
37633 *)
37634 # `set' quotes correctly as required by POSIX, so do not add quotes.
37635 sed -n \
ac1cb8d3 37636 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
a848cd7e
SC
37637 ;;
37638 esac;
37639} |
37640 sed '
37641 t clear
37642 : clear
37643 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
37644 t end
37645 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
37646 : end' >>confcache
37647if diff $cache_file confcache >/dev/null 2>&1; then :; else
37648 if test -w $cache_file; then
37649 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
37650 cat confcache >$cache_file
37651 else
37652 echo "not updating unwritable cache $cache_file"
37653 fi
37654fi
37655rm -f confcache
37656
37657
a848cd7e
SC
37658if test "$TOOLKIT" != "MSW" -a "$USE_OS2" != 1; then
37659
37660
37661 THREADS_LINK=
e56f4f9e 37662 THREADS_CXXFLAGS=
a848cd7e
SC
37663
37664 if test "$wxUSE_THREADS" = "yes" ; then
37665 if test "$USE_BEOS" = 1; then
37666 { echo "$as_me:$LINENO: WARNING: BeOS threads are not yet supported... disabled" >&5
37667echo "$as_me: WARNING: BeOS threads are not yet supported... disabled" >&2;}
37668 wxUSE_THREADS="no"
37669 fi
37670 fi
37671
37672 if test "$wxUSE_THREADS" = "yes" ; then
37673
37674
37675 THREAD_OPTS="-pthread"
37676 case "${host}" in
37677 *-*-solaris2* | *-*-sunos4* )
37678 if test "x$GCC" = "xyes"; then
37679 THREAD_OPTS="-pthreads $THREAD_OPTS"
37680 else
37681 THREAD_OPTS="-mt $THREAD_OPTS"
37682 fi
37683 ;;
37684 *-*-freebsd*)
37685 THREAD_OPTS="-kthread lthread $THREAD_OPTS c_r"
37686 ;;
37687 *-*-darwin* | *-*-cygwin* )
37688 THREAD_OPTS=""
37689 ;;
37690 *-*-aix*)
37691 THREAD_OPTS="pthreads"
37692 ;;
37693 *-hp-hpux* )
00421666
MW
37694 if test "x$GCC" = "xyes"; then
37695 $CXX -dumpspecs | grep 'pthread:' >/dev/null ||
37696 THREAD_OPTS=""
37697 else
0093c2fc 37698 THREAD_OPTS="-mt"
a848cd7e
SC
37699 fi
37700 ;;
37701
37702 *-*-irix* )
37703 if test "x$GCC" = "xyes"; then
37704 THREAD_OPTS=""
37705 fi
37706 ;;
37707
37708 *-*-*UnixWare*)
37709 if test "x$GCC" != "xyes"; then
37710 THREAD_OPTS="-Ethread"
37711 fi
37712 ;;
37713 esac
37714
37715 THREAD_OPTS="$THREAD_OPTS pthread none"
37716
37717 THREADS_OK=no
37718 for flag in $THREAD_OPTS; do
37719 case $flag in
37720 none)
37721 echo "$as_me:$LINENO: checking whether pthreads work without any flags" >&5
37722echo $ECHO_N "checking whether pthreads work without any flags... $ECHO_C" >&6
37723 ;;
37724
37725 -*)
37726 echo "$as_me:$LINENO: checking whether pthreads work with $flag" >&5
37727echo $ECHO_N "checking whether pthreads work with $flag... $ECHO_C" >&6
e56f4f9e 37728 THREADS_CXXFLAGS="$flag"
a848cd7e
SC
37729 ;;
37730
37731 *)
37732 echo "$as_me:$LINENO: checking for the pthreads library -l$flag" >&5
37733echo $ECHO_N "checking for the pthreads library -l$flag... $ECHO_C" >&6
37734 THREADS_LINK="-l$flag"
37735 ;;
37736 esac
37737
37738 save_LIBS="$LIBS"
e56f4f9e 37739 save_CXXFLAGS="$CXXFLAGS"
a848cd7e 37740 LIBS="$THREADS_LINK $LIBS"
e56f4f9e 37741 CXXFLAGS="$THREADS_CXXFLAGS $CXXFLAGS"
a848cd7e
SC
37742
37743 cat >conftest.$ac_ext <<_ACEOF
37744/* confdefs.h. */
37745_ACEOF
37746cat confdefs.h >>conftest.$ac_ext
37747cat >>conftest.$ac_ext <<_ACEOF
37748/* end confdefs.h. */
37749#include <pthread.h>
37750int
37751main ()
37752{
37753pthread_create(0,0,0,0);
37754 ;
37755 return 0;
37756}
37757_ACEOF
37758rm -f conftest.$ac_objext conftest$ac_exeext
37759if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 37760 (eval $ac_link) 2>conftest.er1
a848cd7e 37761 ac_status=$?
ac1cb8d3
VS
37762 grep -v '^ *+' conftest.er1 >conftest.err
37763 rm -f conftest.er1
37764 cat conftest.err >&5
a848cd7e
SC
37765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37766 (exit $ac_status); } &&
3f60522a
JS
37767 { ac_try='test -z "$ac_cxx_werror_flag"
37768 || test ! -s conftest.err'
ac1cb8d3
VS
37769 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37770 (eval $ac_try) 2>&5
37771 ac_status=$?
37772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37773 (exit $ac_status); }; } &&
37774 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
37775 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37776 (eval $ac_try) 2>&5
37777 ac_status=$?
37778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37779 (exit $ac_status); }; }; then
37780 THREADS_OK=yes
37781else
37782 echo "$as_me: failed program was:" >&5
37783sed 's/^/| /' conftest.$ac_ext >&5
37784
37785fi
ac1cb8d3
VS
37786rm -f conftest.err conftest.$ac_objext \
37787 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
37788
37789 LIBS="$save_LIBS"
e56f4f9e 37790 CXXFLAGS="$save_CXXFLAGS"
a848cd7e
SC
37791
37792 echo "$as_me:$LINENO: result: $THREADS_OK" >&5
37793echo "${ECHO_T}$THREADS_OK" >&6
37794 if test "x$THREADS_OK" = "xyes"; then
37795 break;
37796 fi
37797
37798 THREADS_LINK=""
e56f4f9e 37799 THREADS_CXXFLAGS=""
a848cd7e
SC
37800 done
37801
37802 if test "x$THREADS_OK" != "xyes"; then
37803 wxUSE_THREADS=no
37804 { echo "$as_me:$LINENO: WARNING: No thread support on this system... disabled" >&5
37805echo "$as_me: WARNING: No thread support on this system... disabled" >&2;}
37806 else
e56f4f9e 37807 LDFLAGS="$THREADS_CXXFLAGS $LDFLAGS"
a848cd7e
SC
37808 LIBS="$THREADS_LINK $LIBS"
37809
37810 echo "$as_me:$LINENO: checking if more special flags are required for pthreads" >&5
37811echo $ECHO_N "checking if more special flags are required for pthreads... $ECHO_C" >&6
37812 flag=no
37813 case "${host}" in
37814 *-aix*)
37815 LDFLAGS="-L/usr/lib/threads $LDFLAGS"
37816 flag="-D_THREAD_SAFE"
37817 ;;
37818 *-freebsd*)
37819 flag="-D_THREAD_SAFE"
37820 ;;
37821 *-hp-hpux* )
37822 flag="-D_REENTRANT"
37823 if test "x$GCC" != "xyes"; then
37824 flag="$flag -D_RWSTD_MULTI_THREAD"
37825 fi
37826 ;;
37827 *solaris* | alpha*-osf*)
37828 flag="-D_REENTRANT"
37829 ;;
37830 esac
37831 echo "$as_me:$LINENO: result: ${flag}" >&5
37832echo "${ECHO_T}${flag}" >&6
37833 if test "x$flag" != xno; then
e56f4f9e 37834 THREADS_CXXFLAGS="$THREADS_CXXFLAGS $flag"
a848cd7e
SC
37835 fi
37836
e56f4f9e 37837 WXCONFIG_CXXFLAGS="$WXCONFIG_CXXFLAGS $THREADS_CXXFLAGS"
a848cd7e
SC
37838 fi
37839 fi
37840
37841 if test "$wxUSE_THREADS" = "yes" ; then
37842
37843for ac_func in thr_setconcurrency
37844do
37845as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37846echo "$as_me:$LINENO: checking for $ac_func" >&5
37847echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
37848if eval "test \"\${$as_ac_var+set}\" = set"; then
37849 echo $ECHO_N "(cached) $ECHO_C" >&6
37850else
37851 cat >conftest.$ac_ext <<_ACEOF
37852/* confdefs.h. */
37853_ACEOF
37854cat confdefs.h >>conftest.$ac_ext
37855cat >>conftest.$ac_ext <<_ACEOF
37856/* end confdefs.h. */
ac1cb8d3
VS
37857/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37858 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37859#define $ac_func innocuous_$ac_func
37860
a848cd7e
SC
37861/* System header to define __stub macros and hopefully few prototypes,
37862 which can conflict with char $ac_func (); below.
37863 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37864 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 37865
a848cd7e
SC
37866#ifdef __STDC__
37867# include <limits.h>
37868#else
37869# include <assert.h>
37870#endif
ac1cb8d3
VS
37871
37872#undef $ac_func
37873
a848cd7e
SC
37874/* Override any gcc2 internal prototype to avoid an error. */
37875#ifdef __cplusplus
37876extern "C"
37877{
37878#endif
37879/* We use char because int might match the return type of a gcc2
37880 builtin and then its argument prototype would still apply. */
37881char $ac_func ();
37882/* The GNU C library defines this for functions which it implements
37883 to always fail with ENOSYS. Some functions are actually named
37884 something starting with __ and the normal name is an alias. */
37885#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
37886choke me
37887#else
37888char (*f) () = $ac_func;
37889#endif
37890#ifdef __cplusplus
37891}
37892#endif
37893
37894int
37895main ()
37896{
37897return f != $ac_func;
37898 ;
37899 return 0;
37900}
37901_ACEOF
37902rm -f conftest.$ac_objext conftest$ac_exeext
37903if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 37904 (eval $ac_link) 2>conftest.er1
a848cd7e 37905 ac_status=$?
ac1cb8d3
VS
37906 grep -v '^ *+' conftest.er1 >conftest.err
37907 rm -f conftest.er1
37908 cat conftest.err >&5
a848cd7e
SC
37909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37910 (exit $ac_status); } &&
3f60522a
JS
37911 { ac_try='test -z "$ac_cxx_werror_flag"
37912 || test ! -s conftest.err'
ac1cb8d3
VS
37913 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37914 (eval $ac_try) 2>&5
37915 ac_status=$?
37916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37917 (exit $ac_status); }; } &&
37918 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
37919 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37920 (eval $ac_try) 2>&5
37921 ac_status=$?
37922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37923 (exit $ac_status); }; }; then
37924 eval "$as_ac_var=yes"
37925else
37926 echo "$as_me: failed program was:" >&5
37927sed 's/^/| /' conftest.$ac_ext >&5
37928
37929eval "$as_ac_var=no"
37930fi
ac1cb8d3
VS
37931rm -f conftest.err conftest.$ac_objext \
37932 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
37933fi
37934echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
37935echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
37936if test `eval echo '${'$as_ac_var'}'` = yes; then
37937 cat >>confdefs.h <<_ACEOF
37938#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37939_ACEOF
37940
37941fi
37942done
37943
37944
6ebeb4c7
VZ
37945 echo "$as_me:$LINENO: checking for pthread_cleanup_push/pop" >&5
37946echo $ECHO_N "checking for pthread_cleanup_push/pop... $ECHO_C" >&6
37947if test "${wx_cv_func_pthread_cleanup+set}" = set; then
37948 echo $ECHO_N "(cached) $ECHO_C" >&6
37949else
37950
37951 cat >conftest.$ac_ext <<_ACEOF
37952/* confdefs.h. */
37953_ACEOF
37954cat confdefs.h >>conftest.$ac_ext
37955cat >>conftest.$ac_ext <<_ACEOF
37956/* end confdefs.h. */
37957#include <pthread.h>
37958 void ThreadCleanupFunc(void *p);
37959
37960int
37961main ()
37962{
37963
37964 void *p;
37965 pthread_cleanup_push(ThreadCleanupFunc, p);
37966 pthread_cleanup_pop(0);
37967
37968 ;
37969 return 0;
37970}
37971_ACEOF
37972rm -f conftest.$ac_objext
37973if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37974 (eval $ac_compile) 2>conftest.er1
37975 ac_status=$?
37976 grep -v '^ *+' conftest.er1 >conftest.err
37977 rm -f conftest.er1
37978 cat conftest.err >&5
37979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37980 (exit $ac_status); } &&
3f60522a
JS
37981 { ac_try='test -z "$ac_cxx_werror_flag"
37982 || test ! -s conftest.err'
6ebeb4c7
VZ
37983 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37984 (eval $ac_try) 2>&5
37985 ac_status=$?
37986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37987 (exit $ac_status); }; } &&
37988 { ac_try='test -s conftest.$ac_objext'
37989 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37990 (eval $ac_try) 2>&5
37991 ac_status=$?
37992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37993 (exit $ac_status); }; }; then
37994
37995 wx_cv_func_pthread_cleanup=yes
37996
37997else
37998 echo "$as_me: failed program was:" >&5
37999sed 's/^/| /' conftest.$ac_ext >&5
38000
38001
38002 wx_cv_func_pthread_cleanup=no
38003
38004
38005fi
38006rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38007
38008fi
38009echo "$as_me:$LINENO: result: $wx_cv_func_pthread_cleanup" >&5
38010echo "${ECHO_T}$wx_cv_func_pthread_cleanup" >&6
38011 if test "x$wx_cv_func_pthread_cleanup" = "xyes"; then
38012 cat >>confdefs.h <<\_ACEOF
38013#define wxHAVE_PTHREAD_CLEANUP 1
38014_ACEOF
38015
38016 fi
38017
a848cd7e
SC
38018
38019for ac_header in sched.h
38020do
38021as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
38022if eval "test \"\${$as_ac_Header+set}\" = set"; then
38023 echo "$as_me:$LINENO: checking for $ac_header" >&5
38024echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
38025if eval "test \"\${$as_ac_Header+set}\" = set"; then
38026 echo $ECHO_N "(cached) $ECHO_C" >&6
38027fi
38028echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
38029echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
38030else
38031 # Is the header compilable?
38032echo "$as_me:$LINENO: checking $ac_header usability" >&5
38033echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
38034cat >conftest.$ac_ext <<_ACEOF
38035/* confdefs.h. */
38036_ACEOF
38037cat confdefs.h >>conftest.$ac_ext
38038cat >>conftest.$ac_ext <<_ACEOF
38039/* end confdefs.h. */
38040$ac_includes_default
38041#include <$ac_header>
38042_ACEOF
38043rm -f conftest.$ac_objext
38044if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 38045 (eval $ac_compile) 2>conftest.er1
a848cd7e 38046 ac_status=$?
ac1cb8d3
VS
38047 grep -v '^ *+' conftest.er1 >conftest.err
38048 rm -f conftest.er1
38049 cat conftest.err >&5
a848cd7e
SC
38050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38051 (exit $ac_status); } &&
3f60522a
JS
38052 { ac_try='test -z "$ac_cxx_werror_flag"
38053 || test ! -s conftest.err'
ac1cb8d3
VS
38054 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38055 (eval $ac_try) 2>&5
38056 ac_status=$?
38057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38058 (exit $ac_status); }; } &&
38059 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
38060 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38061 (eval $ac_try) 2>&5
38062 ac_status=$?
38063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38064 (exit $ac_status); }; }; then
38065 ac_header_compiler=yes
38066else
38067 echo "$as_me: failed program was:" >&5
38068sed 's/^/| /' conftest.$ac_ext >&5
38069
38070ac_header_compiler=no
38071fi
ac1cb8d3 38072rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
38073echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
38074echo "${ECHO_T}$ac_header_compiler" >&6
38075
38076# Is the header present?
38077echo "$as_me:$LINENO: checking $ac_header presence" >&5
38078echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
38079cat >conftest.$ac_ext <<_ACEOF
38080/* confdefs.h. */
38081_ACEOF
38082cat confdefs.h >>conftest.$ac_ext
38083cat >>conftest.$ac_ext <<_ACEOF
38084/* end confdefs.h. */
38085#include <$ac_header>
38086_ACEOF
38087if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
38088 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
38089 ac_status=$?
38090 grep -v '^ *+' conftest.er1 >conftest.err
38091 rm -f conftest.er1
38092 cat conftest.err >&5
38093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38094 (exit $ac_status); } >/dev/null; then
38095 if test -s conftest.err; then
5d7b7554
VZ
38096 ac_cpp_err=$ac_cxx_preproc_warn_flag
38097 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
38098 else
38099 ac_cpp_err=
38100 fi
38101else
38102 ac_cpp_err=yes
38103fi
38104if test -z "$ac_cpp_err"; then
38105 ac_header_preproc=yes
38106else
38107 echo "$as_me: failed program was:" >&5
38108sed 's/^/| /' conftest.$ac_ext >&5
38109
38110 ac_header_preproc=no
38111fi
38112rm -f conftest.err conftest.$ac_ext
38113echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
38114echo "${ECHO_T}$ac_header_preproc" >&6
38115
38116# So? What about this header?
5d7b7554 38117case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
ac1cb8d3 38118 yes:no: )
a848cd7e
SC
38119 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
38120echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
38121 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
38122echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
38123 ac_header_preproc=yes
a848cd7e 38124 ;;
ac1cb8d3 38125 no:yes:* )
a848cd7e
SC
38126 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
38127echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
38128 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
38129echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
38130 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
38131echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
38132 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
38133echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
38134 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
38135echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
38136 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
38137echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
38138 (
38139 cat <<\_ASBOX
ac1cb8d3
VS
38140## ----------------------------------------- ##
38141## Report this to wx-dev@lists.wxwidgets.org ##
38142## ----------------------------------------- ##
a848cd7e
SC
38143_ASBOX
38144 ) |
38145 sed "s/^/$as_me: WARNING: /" >&2
38146 ;;
38147esac
38148echo "$as_me:$LINENO: checking for $ac_header" >&5
38149echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
38150if eval "test \"\${$as_ac_Header+set}\" = set"; then
38151 echo $ECHO_N "(cached) $ECHO_C" >&6
38152else
ac1cb8d3 38153 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
38154fi
38155echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
38156echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
38157
38158fi
38159if test `eval echo '${'$as_ac_Header'}'` = yes; then
38160 cat >>confdefs.h <<_ACEOF
38161#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
38162_ACEOF
38163
38164fi
38165
38166done
38167
38168 if test "$ac_cv_header_sched_h" = "yes"; then
38169 echo "$as_me:$LINENO: checking for sched_yield" >&5
38170echo $ECHO_N "checking for sched_yield... $ECHO_C" >&6
38171if test "${ac_cv_func_sched_yield+set}" = set; then
38172 echo $ECHO_N "(cached) $ECHO_C" >&6
38173else
38174 cat >conftest.$ac_ext <<_ACEOF
38175/* confdefs.h. */
38176_ACEOF
38177cat confdefs.h >>conftest.$ac_ext
38178cat >>conftest.$ac_ext <<_ACEOF
38179/* end confdefs.h. */
ac1cb8d3
VS
38180/* Define sched_yield to an innocuous variant, in case <limits.h> declares sched_yield.
38181 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38182#define sched_yield innocuous_sched_yield
38183
a848cd7e
SC
38184/* System header to define __stub macros and hopefully few prototypes,
38185 which can conflict with char sched_yield (); below.
38186 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38187 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 38188
a848cd7e
SC
38189#ifdef __STDC__
38190# include <limits.h>
38191#else
38192# include <assert.h>
38193#endif
ac1cb8d3
VS
38194
38195#undef sched_yield
38196
a848cd7e
SC
38197/* Override any gcc2 internal prototype to avoid an error. */
38198#ifdef __cplusplus
38199extern "C"
38200{
38201#endif
38202/* We use char because int might match the return type of a gcc2
38203 builtin and then its argument prototype would still apply. */
38204char sched_yield ();
38205/* The GNU C library defines this for functions which it implements
38206 to always fail with ENOSYS. Some functions are actually named
38207 something starting with __ and the normal name is an alias. */
38208#if defined (__stub_sched_yield) || defined (__stub___sched_yield)
38209choke me
38210#else
38211char (*f) () = sched_yield;
38212#endif
38213#ifdef __cplusplus
38214}
38215#endif
38216
38217int
38218main ()
38219{
38220return f != sched_yield;
38221 ;
38222 return 0;
38223}
38224_ACEOF
38225rm -f conftest.$ac_objext conftest$ac_exeext
38226if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 38227 (eval $ac_link) 2>conftest.er1
a848cd7e 38228 ac_status=$?
ac1cb8d3
VS
38229 grep -v '^ *+' conftest.er1 >conftest.err
38230 rm -f conftest.er1
38231 cat conftest.err >&5
a848cd7e
SC
38232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38233 (exit $ac_status); } &&
3f60522a
JS
38234 { ac_try='test -z "$ac_cxx_werror_flag"
38235 || test ! -s conftest.err'
ac1cb8d3
VS
38236 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38237 (eval $ac_try) 2>&5
38238 ac_status=$?
38239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38240 (exit $ac_status); }; } &&
38241 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
38242 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38243 (eval $ac_try) 2>&5
38244 ac_status=$?
38245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38246 (exit $ac_status); }; }; then
38247 ac_cv_func_sched_yield=yes
38248else
38249 echo "$as_me: failed program was:" >&5
38250sed 's/^/| /' conftest.$ac_ext >&5
38251
38252ac_cv_func_sched_yield=no
38253fi
ac1cb8d3
VS
38254rm -f conftest.err conftest.$ac_objext \
38255 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
38256fi
38257echo "$as_me:$LINENO: result: $ac_cv_func_sched_yield" >&5
38258echo "${ECHO_T}$ac_cv_func_sched_yield" >&6
38259if test $ac_cv_func_sched_yield = yes; then
38260 cat >>confdefs.h <<\_ACEOF
38261#define HAVE_SCHED_YIELD 1
38262_ACEOF
38263
38264else
38265
38266 echo "$as_me:$LINENO: checking for sched_yield in -lposix4" >&5
38267echo $ECHO_N "checking for sched_yield in -lposix4... $ECHO_C" >&6
38268if test "${ac_cv_lib_posix4_sched_yield+set}" = set; then
38269 echo $ECHO_N "(cached) $ECHO_C" >&6
38270else
38271 ac_check_lib_save_LIBS=$LIBS
38272LIBS="-lposix4 $LIBS"
38273cat >conftest.$ac_ext <<_ACEOF
38274/* confdefs.h. */
38275_ACEOF
38276cat confdefs.h >>conftest.$ac_ext
38277cat >>conftest.$ac_ext <<_ACEOF
38278/* end confdefs.h. */
38279
38280/* Override any gcc2 internal prototype to avoid an error. */
38281#ifdef __cplusplus
38282extern "C"
38283#endif
38284/* We use char because int might match the return type of a gcc2
38285 builtin and then its argument prototype would still apply. */
38286char sched_yield ();
38287int
38288main ()
38289{
38290sched_yield ();
38291 ;
38292 return 0;
38293}
38294_ACEOF
38295rm -f conftest.$ac_objext conftest$ac_exeext
38296if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 38297 (eval $ac_link) 2>conftest.er1
a848cd7e 38298 ac_status=$?
ac1cb8d3
VS
38299 grep -v '^ *+' conftest.er1 >conftest.err
38300 rm -f conftest.er1
38301 cat conftest.err >&5
a848cd7e
SC
38302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38303 (exit $ac_status); } &&
3f60522a
JS
38304 { ac_try='test -z "$ac_cxx_werror_flag"
38305 || test ! -s conftest.err'
ac1cb8d3
VS
38306 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38307 (eval $ac_try) 2>&5
38308 ac_status=$?
38309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38310 (exit $ac_status); }; } &&
38311 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
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); }; }; then
38317 ac_cv_lib_posix4_sched_yield=yes
38318else
38319 echo "$as_me: failed program was:" >&5
38320sed 's/^/| /' conftest.$ac_ext >&5
38321
38322ac_cv_lib_posix4_sched_yield=no
38323fi
ac1cb8d3
VS
38324rm -f conftest.err conftest.$ac_objext \
38325 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
38326LIBS=$ac_check_lib_save_LIBS
38327fi
38328echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sched_yield" >&5
38329echo "${ECHO_T}$ac_cv_lib_posix4_sched_yield" >&6
38330if test $ac_cv_lib_posix4_sched_yield = yes; then
38331 cat >>confdefs.h <<\_ACEOF
38332#define HAVE_SCHED_YIELD 1
38333_ACEOF
38334 POSIX4_LINK=" -lposix4"
38335else
38336 { echo "$as_me:$LINENO: WARNING: wxThread::Yield will not work properly" >&5
38337echo "$as_me: WARNING: wxThread::Yield will not work properly" >&2;}
38338
38339fi
38340
38341
38342
38343fi
38344
38345 fi
38346
38347 HAVE_PRIOR_FUNCS=0
38348 echo "$as_me:$LINENO: checking for pthread_attr_getschedpolicy" >&5
38349echo $ECHO_N "checking for pthread_attr_getschedpolicy... $ECHO_C" >&6
38350if test "${ac_cv_func_pthread_attr_getschedpolicy+set}" = set; then
38351 echo $ECHO_N "(cached) $ECHO_C" >&6
38352else
38353 cat >conftest.$ac_ext <<_ACEOF
38354/* confdefs.h. */
38355_ACEOF
38356cat confdefs.h >>conftest.$ac_ext
38357cat >>conftest.$ac_ext <<_ACEOF
38358/* end confdefs.h. */
ac1cb8d3
VS
38359/* Define pthread_attr_getschedpolicy to an innocuous variant, in case <limits.h> declares pthread_attr_getschedpolicy.
38360 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38361#define pthread_attr_getschedpolicy innocuous_pthread_attr_getschedpolicy
38362
a848cd7e
SC
38363/* System header to define __stub macros and hopefully few prototypes,
38364 which can conflict with char pthread_attr_getschedpolicy (); below.
38365 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38366 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 38367
a848cd7e
SC
38368#ifdef __STDC__
38369# include <limits.h>
38370#else
38371# include <assert.h>
38372#endif
ac1cb8d3
VS
38373
38374#undef pthread_attr_getschedpolicy
38375
a848cd7e
SC
38376/* Override any gcc2 internal prototype to avoid an error. */
38377#ifdef __cplusplus
38378extern "C"
38379{
38380#endif
38381/* We use char because int might match the return type of a gcc2
38382 builtin and then its argument prototype would still apply. */
38383char pthread_attr_getschedpolicy ();
38384/* The GNU C library defines this for functions which it implements
38385 to always fail with ENOSYS. Some functions are actually named
38386 something starting with __ and the normal name is an alias. */
38387#if defined (__stub_pthread_attr_getschedpolicy) || defined (__stub___pthread_attr_getschedpolicy)
38388choke me
38389#else
38390char (*f) () = pthread_attr_getschedpolicy;
38391#endif
38392#ifdef __cplusplus
38393}
38394#endif
38395
38396int
38397main ()
38398{
38399return f != pthread_attr_getschedpolicy;
38400 ;
38401 return 0;
38402}
38403_ACEOF
38404rm -f conftest.$ac_objext conftest$ac_exeext
38405if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 38406 (eval $ac_link) 2>conftest.er1
a848cd7e 38407 ac_status=$?
ac1cb8d3
VS
38408 grep -v '^ *+' conftest.er1 >conftest.err
38409 rm -f conftest.er1
38410 cat conftest.err >&5
a848cd7e
SC
38411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38412 (exit $ac_status); } &&
3f60522a
JS
38413 { ac_try='test -z "$ac_cxx_werror_flag"
38414 || test ! -s conftest.err'
ac1cb8d3
VS
38415 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38416 (eval $ac_try) 2>&5
38417 ac_status=$?
38418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38419 (exit $ac_status); }; } &&
38420 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
38421 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38422 (eval $ac_try) 2>&5
38423 ac_status=$?
38424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38425 (exit $ac_status); }; }; then
38426 ac_cv_func_pthread_attr_getschedpolicy=yes
38427else
38428 echo "$as_me: failed program was:" >&5
38429sed 's/^/| /' conftest.$ac_ext >&5
38430
38431ac_cv_func_pthread_attr_getschedpolicy=no
38432fi
ac1cb8d3
VS
38433rm -f conftest.err conftest.$ac_objext \
38434 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
38435fi
38436echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_getschedpolicy" >&5
38437echo "${ECHO_T}$ac_cv_func_pthread_attr_getschedpolicy" >&6
38438if test $ac_cv_func_pthread_attr_getschedpolicy = yes; then
38439 echo "$as_me:$LINENO: checking for pthread_attr_setschedparam" >&5
38440echo $ECHO_N "checking for pthread_attr_setschedparam... $ECHO_C" >&6
38441if test "${ac_cv_func_pthread_attr_setschedparam+set}" = set; then
38442 echo $ECHO_N "(cached) $ECHO_C" >&6
38443else
38444 cat >conftest.$ac_ext <<_ACEOF
38445/* confdefs.h. */
38446_ACEOF
38447cat confdefs.h >>conftest.$ac_ext
38448cat >>conftest.$ac_ext <<_ACEOF
38449/* end confdefs.h. */
ac1cb8d3
VS
38450/* Define pthread_attr_setschedparam to an innocuous variant, in case <limits.h> declares pthread_attr_setschedparam.
38451 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38452#define pthread_attr_setschedparam innocuous_pthread_attr_setschedparam
38453
a848cd7e
SC
38454/* System header to define __stub macros and hopefully few prototypes,
38455 which can conflict with char pthread_attr_setschedparam (); below.
38456 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38457 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 38458
a848cd7e
SC
38459#ifdef __STDC__
38460# include <limits.h>
38461#else
38462# include <assert.h>
38463#endif
ac1cb8d3
VS
38464
38465#undef pthread_attr_setschedparam
38466
a848cd7e
SC
38467/* Override any gcc2 internal prototype to avoid an error. */
38468#ifdef __cplusplus
38469extern "C"
38470{
38471#endif
38472/* We use char because int might match the return type of a gcc2
38473 builtin and then its argument prototype would still apply. */
38474char pthread_attr_setschedparam ();
38475/* The GNU C library defines this for functions which it implements
38476 to always fail with ENOSYS. Some functions are actually named
38477 something starting with __ and the normal name is an alias. */
38478#if defined (__stub_pthread_attr_setschedparam) || defined (__stub___pthread_attr_setschedparam)
38479choke me
38480#else
38481char (*f) () = pthread_attr_setschedparam;
38482#endif
38483#ifdef __cplusplus
38484}
38485#endif
38486
38487int
38488main ()
38489{
38490return f != pthread_attr_setschedparam;
38491 ;
38492 return 0;
38493}
38494_ACEOF
38495rm -f conftest.$ac_objext conftest$ac_exeext
38496if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 38497 (eval $ac_link) 2>conftest.er1
a848cd7e 38498 ac_status=$?
ac1cb8d3
VS
38499 grep -v '^ *+' conftest.er1 >conftest.err
38500 rm -f conftest.er1
38501 cat conftest.err >&5
a848cd7e
SC
38502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38503 (exit $ac_status); } &&
3f60522a
JS
38504 { ac_try='test -z "$ac_cxx_werror_flag"
38505 || test ! -s conftest.err'
ac1cb8d3
VS
38506 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38507 (eval $ac_try) 2>&5
38508 ac_status=$?
38509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38510 (exit $ac_status); }; } &&
38511 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
38512 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38513 (eval $ac_try) 2>&5
38514 ac_status=$?
38515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38516 (exit $ac_status); }; }; then
38517 ac_cv_func_pthread_attr_setschedparam=yes
38518else
38519 echo "$as_me: failed program was:" >&5
38520sed 's/^/| /' conftest.$ac_ext >&5
38521
38522ac_cv_func_pthread_attr_setschedparam=no
38523fi
ac1cb8d3
VS
38524rm -f conftest.err conftest.$ac_objext \
38525 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
38526fi
38527echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_setschedparam" >&5
38528echo "${ECHO_T}$ac_cv_func_pthread_attr_setschedparam" >&6
38529if test $ac_cv_func_pthread_attr_setschedparam = yes; then
38530 echo "$as_me:$LINENO: checking for sched_get_priority_max" >&5
38531echo $ECHO_N "checking for sched_get_priority_max... $ECHO_C" >&6
38532if test "${ac_cv_func_sched_get_priority_max+set}" = set; then
38533 echo $ECHO_N "(cached) $ECHO_C" >&6
38534else
38535 cat >conftest.$ac_ext <<_ACEOF
38536/* confdefs.h. */
38537_ACEOF
38538cat confdefs.h >>conftest.$ac_ext
38539cat >>conftest.$ac_ext <<_ACEOF
38540/* end confdefs.h. */
ac1cb8d3
VS
38541/* Define sched_get_priority_max to an innocuous variant, in case <limits.h> declares sched_get_priority_max.
38542 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38543#define sched_get_priority_max innocuous_sched_get_priority_max
38544
a848cd7e
SC
38545/* System header to define __stub macros and hopefully few prototypes,
38546 which can conflict with char sched_get_priority_max (); below.
38547 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38548 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 38549
a848cd7e
SC
38550#ifdef __STDC__
38551# include <limits.h>
38552#else
38553# include <assert.h>
38554#endif
ac1cb8d3
VS
38555
38556#undef sched_get_priority_max
38557
a848cd7e
SC
38558/* Override any gcc2 internal prototype to avoid an error. */
38559#ifdef __cplusplus
38560extern "C"
38561{
38562#endif
38563/* We use char because int might match the return type of a gcc2
38564 builtin and then its argument prototype would still apply. */
38565char sched_get_priority_max ();
38566/* The GNU C library defines this for functions which it implements
38567 to always fail with ENOSYS. Some functions are actually named
38568 something starting with __ and the normal name is an alias. */
38569#if defined (__stub_sched_get_priority_max) || defined (__stub___sched_get_priority_max)
38570choke me
38571#else
38572char (*f) () = sched_get_priority_max;
38573#endif
38574#ifdef __cplusplus
38575}
38576#endif
38577
38578int
38579main ()
38580{
38581return f != sched_get_priority_max;
38582 ;
38583 return 0;
38584}
38585_ACEOF
38586rm -f conftest.$ac_objext conftest$ac_exeext
38587if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 38588 (eval $ac_link) 2>conftest.er1
a848cd7e 38589 ac_status=$?
ac1cb8d3
VS
38590 grep -v '^ *+' conftest.er1 >conftest.err
38591 rm -f conftest.er1
38592 cat conftest.err >&5
a848cd7e
SC
38593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38594 (exit $ac_status); } &&
3f60522a
JS
38595 { ac_try='test -z "$ac_cxx_werror_flag"
38596 || test ! -s conftest.err'
ac1cb8d3
VS
38597 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38598 (eval $ac_try) 2>&5
38599 ac_status=$?
38600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38601 (exit $ac_status); }; } &&
38602 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
38603 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38604 (eval $ac_try) 2>&5
38605 ac_status=$?
38606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38607 (exit $ac_status); }; }; then
38608 ac_cv_func_sched_get_priority_max=yes
38609else
38610 echo "$as_me: failed program was:" >&5
38611sed 's/^/| /' conftest.$ac_ext >&5
38612
38613ac_cv_func_sched_get_priority_max=no
38614fi
ac1cb8d3
VS
38615rm -f conftest.err conftest.$ac_objext \
38616 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
38617fi
38618echo "$as_me:$LINENO: result: $ac_cv_func_sched_get_priority_max" >&5
38619echo "${ECHO_T}$ac_cv_func_sched_get_priority_max" >&6
38620if test $ac_cv_func_sched_get_priority_max = yes; then
38621 HAVE_PRIOR_FUNCS=1
38622else
38623 echo "$as_me:$LINENO: checking for sched_get_priority_max in -lposix4" >&5
38624echo $ECHO_N "checking for sched_get_priority_max in -lposix4... $ECHO_C" >&6
38625if test "${ac_cv_lib_posix4_sched_get_priority_max+set}" = set; then
38626 echo $ECHO_N "(cached) $ECHO_C" >&6
38627else
38628 ac_check_lib_save_LIBS=$LIBS
38629LIBS="-lposix4 $LIBS"
38630cat >conftest.$ac_ext <<_ACEOF
38631/* confdefs.h. */
38632_ACEOF
38633cat confdefs.h >>conftest.$ac_ext
38634cat >>conftest.$ac_ext <<_ACEOF
38635/* end confdefs.h. */
38636
38637/* Override any gcc2 internal prototype to avoid an error. */
38638#ifdef __cplusplus
38639extern "C"
38640#endif
38641/* We use char because int might match the return type of a gcc2
38642 builtin and then its argument prototype would still apply. */
38643char sched_get_priority_max ();
38644int
38645main ()
38646{
38647sched_get_priority_max ();
38648 ;
38649 return 0;
38650}
38651_ACEOF
38652rm -f conftest.$ac_objext conftest$ac_exeext
38653if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 38654 (eval $ac_link) 2>conftest.er1
a848cd7e 38655 ac_status=$?
ac1cb8d3
VS
38656 grep -v '^ *+' conftest.er1 >conftest.err
38657 rm -f conftest.er1
38658 cat conftest.err >&5
a848cd7e
SC
38659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38660 (exit $ac_status); } &&
3f60522a
JS
38661 { ac_try='test -z "$ac_cxx_werror_flag"
38662 || test ! -s conftest.err'
ac1cb8d3
VS
38663 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38664 (eval $ac_try) 2>&5
38665 ac_status=$?
38666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38667 (exit $ac_status); }; } &&
38668 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
38669 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38670 (eval $ac_try) 2>&5
38671 ac_status=$?
38672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38673 (exit $ac_status); }; }; then
38674 ac_cv_lib_posix4_sched_get_priority_max=yes
38675else
38676 echo "$as_me: failed program was:" >&5
38677sed 's/^/| /' conftest.$ac_ext >&5
38678
38679ac_cv_lib_posix4_sched_get_priority_max=no
38680fi
ac1cb8d3
VS
38681rm -f conftest.err conftest.$ac_objext \
38682 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
38683LIBS=$ac_check_lib_save_LIBS
38684fi
38685echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sched_get_priority_max" >&5
38686echo "${ECHO_T}$ac_cv_lib_posix4_sched_get_priority_max" >&6
38687if test $ac_cv_lib_posix4_sched_get_priority_max = yes; then
38688
38689 HAVE_PRIOR_FUNCS=1
38690 POSIX4_LINK=" -lposix4"
38691
38692fi
38693
38694
38695fi
38696
38697
38698fi
38699
38700
38701fi
38702
38703
38704 if test "$HAVE_PRIOR_FUNCS" = 1; then
38705 cat >>confdefs.h <<\_ACEOF
38706#define HAVE_THREAD_PRIORITY_FUNCTIONS 1
38707_ACEOF
38708
38709 else
38710 { echo "$as_me:$LINENO: WARNING: Setting thread priority will not work" >&5
38711echo "$as_me: WARNING: Setting thread priority will not work" >&2;}
38712 fi
38713
38714 echo "$as_me:$LINENO: checking for pthread_cancel" >&5
38715echo $ECHO_N "checking for pthread_cancel... $ECHO_C" >&6
38716if test "${ac_cv_func_pthread_cancel+set}" = set; then
38717 echo $ECHO_N "(cached) $ECHO_C" >&6
38718else
38719 cat >conftest.$ac_ext <<_ACEOF
38720/* confdefs.h. */
38721_ACEOF
38722cat confdefs.h >>conftest.$ac_ext
38723cat >>conftest.$ac_ext <<_ACEOF
38724/* end confdefs.h. */
ac1cb8d3
VS
38725/* Define pthread_cancel to an innocuous variant, in case <limits.h> declares pthread_cancel.
38726 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38727#define pthread_cancel innocuous_pthread_cancel
38728
a848cd7e
SC
38729/* System header to define __stub macros and hopefully few prototypes,
38730 which can conflict with char pthread_cancel (); below.
38731 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38732 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 38733
a848cd7e
SC
38734#ifdef __STDC__
38735# include <limits.h>
38736#else
38737# include <assert.h>
38738#endif
ac1cb8d3
VS
38739
38740#undef pthread_cancel
38741
a848cd7e
SC
38742/* Override any gcc2 internal prototype to avoid an error. */
38743#ifdef __cplusplus
38744extern "C"
38745{
38746#endif
38747/* We use char because int might match the return type of a gcc2
38748 builtin and then its argument prototype would still apply. */
38749char pthread_cancel ();
38750/* The GNU C library defines this for functions which it implements
38751 to always fail with ENOSYS. Some functions are actually named
38752 something starting with __ and the normal name is an alias. */
38753#if defined (__stub_pthread_cancel) || defined (__stub___pthread_cancel)
38754choke me
38755#else
38756char (*f) () = pthread_cancel;
38757#endif
38758#ifdef __cplusplus
38759}
38760#endif
38761
38762int
38763main ()
38764{
38765return f != pthread_cancel;
38766 ;
38767 return 0;
38768}
38769_ACEOF
38770rm -f conftest.$ac_objext conftest$ac_exeext
38771if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 38772 (eval $ac_link) 2>conftest.er1
a848cd7e 38773 ac_status=$?
ac1cb8d3
VS
38774 grep -v '^ *+' conftest.er1 >conftest.err
38775 rm -f conftest.er1
38776 cat conftest.err >&5
a848cd7e
SC
38777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38778 (exit $ac_status); } &&
3f60522a
JS
38779 { ac_try='test -z "$ac_cxx_werror_flag"
38780 || test ! -s conftest.err'
ac1cb8d3
VS
38781 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38782 (eval $ac_try) 2>&5
38783 ac_status=$?
38784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38785 (exit $ac_status); }; } &&
38786 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
38787 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38788 (eval $ac_try) 2>&5
38789 ac_status=$?
38790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38791 (exit $ac_status); }; }; then
38792 ac_cv_func_pthread_cancel=yes
38793else
38794 echo "$as_me: failed program was:" >&5
38795sed 's/^/| /' conftest.$ac_ext >&5
38796
38797ac_cv_func_pthread_cancel=no
38798fi
ac1cb8d3
VS
38799rm -f conftest.err conftest.$ac_objext \
38800 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
38801fi
38802echo "$as_me:$LINENO: result: $ac_cv_func_pthread_cancel" >&5
38803echo "${ECHO_T}$ac_cv_func_pthread_cancel" >&6
38804if test $ac_cv_func_pthread_cancel = yes; then
38805 cat >>confdefs.h <<\_ACEOF
38806#define HAVE_PTHREAD_CANCEL 1
38807_ACEOF
38808
38809else
38810 { echo "$as_me:$LINENO: WARNING: wxThread::Kill() will not work properly" >&5
38811echo "$as_me: WARNING: wxThread::Kill() will not work properly" >&2;}
38812fi
38813
38814
abc736fd
MW
38815 echo "$as_me:$LINENO: checking for pthread_attr_setstacksize" >&5
38816echo $ECHO_N "checking for pthread_attr_setstacksize... $ECHO_C" >&6
38817if test "${ac_cv_func_pthread_attr_setstacksize+set}" = set; then
38818 echo $ECHO_N "(cached) $ECHO_C" >&6
38819else
38820 cat >conftest.$ac_ext <<_ACEOF
38821/* confdefs.h. */
38822_ACEOF
38823cat confdefs.h >>conftest.$ac_ext
38824cat >>conftest.$ac_ext <<_ACEOF
38825/* end confdefs.h. */
38826/* Define pthread_attr_setstacksize to an innocuous variant, in case <limits.h> declares pthread_attr_setstacksize.
38827 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38828#define pthread_attr_setstacksize innocuous_pthread_attr_setstacksize
38829
38830/* System header to define __stub macros and hopefully few prototypes,
38831 which can conflict with char pthread_attr_setstacksize (); below.
38832 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38833 <limits.h> exists even on freestanding compilers. */
38834
38835#ifdef __STDC__
38836# include <limits.h>
38837#else
38838# include <assert.h>
38839#endif
38840
38841#undef pthread_attr_setstacksize
38842
38843/* Override any gcc2 internal prototype to avoid an error. */
38844#ifdef __cplusplus
38845extern "C"
38846{
38847#endif
38848/* We use char because int might match the return type of a gcc2
38849 builtin and then its argument prototype would still apply. */
38850char pthread_attr_setstacksize ();
38851/* The GNU C library defines this for functions which it implements
38852 to always fail with ENOSYS. Some functions are actually named
38853 something starting with __ and the normal name is an alias. */
38854#if defined (__stub_pthread_attr_setstacksize) || defined (__stub___pthread_attr_setstacksize)
38855choke me
38856#else
38857char (*f) () = pthread_attr_setstacksize;
38858#endif
38859#ifdef __cplusplus
38860}
38861#endif
38862
38863int
38864main ()
38865{
38866return f != pthread_attr_setstacksize;
38867 ;
38868 return 0;
38869}
38870_ACEOF
38871rm -f conftest.$ac_objext conftest$ac_exeext
38872if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38873 (eval $ac_link) 2>conftest.er1
38874 ac_status=$?
38875 grep -v '^ *+' conftest.er1 >conftest.err
38876 rm -f conftest.er1
38877 cat conftest.err >&5
38878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38879 (exit $ac_status); } &&
3f60522a
JS
38880 { ac_try='test -z "$ac_cxx_werror_flag"
38881 || test ! -s conftest.err'
abc736fd
MW
38882 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38883 (eval $ac_try) 2>&5
38884 ac_status=$?
38885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38886 (exit $ac_status); }; } &&
38887 { ac_try='test -s conftest$ac_exeext'
38888 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38889 (eval $ac_try) 2>&5
38890 ac_status=$?
38891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38892 (exit $ac_status); }; }; then
38893 ac_cv_func_pthread_attr_setstacksize=yes
38894else
38895 echo "$as_me: failed program was:" >&5
38896sed 's/^/| /' conftest.$ac_ext >&5
38897
38898ac_cv_func_pthread_attr_setstacksize=no
38899fi
38900rm -f conftest.err conftest.$ac_objext \
38901 conftest$ac_exeext conftest.$ac_ext
38902fi
38903echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_setstacksize" >&5
38904echo "${ECHO_T}$ac_cv_func_pthread_attr_setstacksize" >&6
38905if test $ac_cv_func_pthread_attr_setstacksize = yes; then
38906 cat >>confdefs.h <<\_ACEOF
38907#define HAVE_PTHREAD_ATTR_SETSTACKSIZE 1
38908_ACEOF
38909
38910fi
38911
a848cd7e
SC
38912
38913
38914 echo "$as_me:$LINENO: checking for pthread_mutexattr_t" >&5
38915echo $ECHO_N "checking for pthread_mutexattr_t... $ECHO_C" >&6
38916if test "${wx_cv_type_pthread_mutexattr_t+set}" = set; then
38917 echo $ECHO_N "(cached) $ECHO_C" >&6
38918else
38919
38920 cat >conftest.$ac_ext <<_ACEOF
38921/* confdefs.h. */
38922_ACEOF
38923cat confdefs.h >>conftest.$ac_ext
38924cat >>conftest.$ac_ext <<_ACEOF
38925/* end confdefs.h. */
38926#include <pthread.h>
38927int
38928main ()
38929{
38930
38931 pthread_mutexattr_t attr;
38932 pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE);
38933
38934 ;
38935 return 0;
38936}
38937_ACEOF
38938rm -f conftest.$ac_objext
38939if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 38940 (eval $ac_compile) 2>conftest.er1
a848cd7e 38941 ac_status=$?
ac1cb8d3
VS
38942 grep -v '^ *+' conftest.er1 >conftest.err
38943 rm -f conftest.er1
38944 cat conftest.err >&5
a848cd7e
SC
38945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38946 (exit $ac_status); } &&
3f60522a
JS
38947 { ac_try='test -z "$ac_cxx_werror_flag"
38948 || test ! -s conftest.err'
ac1cb8d3
VS
38949 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38950 (eval $ac_try) 2>&5
38951 ac_status=$?
38952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38953 (exit $ac_status); }; } &&
38954 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
38955 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38956 (eval $ac_try) 2>&5
38957 ac_status=$?
38958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38959 (exit $ac_status); }; }; then
123dca7d 38960 wx_cv_type_pthread_mutexattr_t=yes
a848cd7e
SC
38961else
38962 echo "$as_me: failed program was:" >&5
38963sed 's/^/| /' conftest.$ac_ext >&5
38964
123dca7d 38965wx_cv_type_pthread_mutexattr_t=no
a848cd7e
SC
38966
38967fi
ac1cb8d3 38968rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
38969
38970fi
38971echo "$as_me:$LINENO: result: $wx_cv_type_pthread_mutexattr_t" >&5
38972echo "${ECHO_T}$wx_cv_type_pthread_mutexattr_t" >&6
38973
38974 if test "$wx_cv_type_pthread_mutexattr_t" = "yes"; then
38975 cat >>confdefs.h <<\_ACEOF
38976#define HAVE_PTHREAD_MUTEXATTR_T 1
38977_ACEOF
38978
123dca7d
VZ
38979
38980 echo "$as_me:$LINENO: checking for pthread_mutexattr_settype declaration" >&5
38981echo $ECHO_N "checking for pthread_mutexattr_settype declaration... $ECHO_C" >&6
38982if test "${wx_cv_func_pthread_mutexattr_settype_decl+set}" = set; then
38983 echo $ECHO_N "(cached) $ECHO_C" >&6
38984else
38985
38986 cat >conftest.$ac_ext <<_ACEOF
38987/* confdefs.h. */
38988_ACEOF
38989cat confdefs.h >>conftest.$ac_ext
38990cat >>conftest.$ac_ext <<_ACEOF
38991/* end confdefs.h. */
38992#include <pthread.h>
38993int
38994main ()
38995{
38996
38997 pthread_mutexattr_t attr;
38998 pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE);
38999
39000 ;
39001 return 0;
39002}
39003_ACEOF
39004rm -f conftest.$ac_objext
39005if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39006 (eval $ac_compile) 2>conftest.er1
39007 ac_status=$?
39008 grep -v '^ *+' conftest.er1 >conftest.err
39009 rm -f conftest.er1
39010 cat conftest.err >&5
39011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39012 (exit $ac_status); } &&
3f60522a
JS
39013 { ac_try='test -z "$ac_cxx_werror_flag"
39014 || test ! -s conftest.err'
123dca7d
VZ
39015 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39016 (eval $ac_try) 2>&5
39017 ac_status=$?
39018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39019 (exit $ac_status); }; } &&
39020 { ac_try='test -s conftest.$ac_objext'
39021 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39022 (eval $ac_try) 2>&5
39023 ac_status=$?
39024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39025 (exit $ac_status); }; }; then
39026 wx_cv_func_pthread_mutexattr_settype_decl=yes
39027else
39028 echo "$as_me: failed program was:" >&5
39029sed 's/^/| /' conftest.$ac_ext >&5
39030
39031wx_cv_func_pthread_mutexattr_settype_decl=no
39032
39033fi
39034rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39035
39036fi
39037echo "$as_me:$LINENO: result: $wx_cv_func_pthread_mutexattr_settype_decl" >&5
39038echo "${ECHO_T}$wx_cv_func_pthread_mutexattr_settype_decl" >&6
39039 if test "$wx_cv_func_pthread_mutexattr_settype_decl" = "yes"; then
39040 cat >>confdefs.h <<\_ACEOF
39041#define HAVE_PTHREAD_MUTEXATTR_SETTYPE_DECL 1
39042_ACEOF
39043
39044 fi
a848cd7e
SC
39045 else
39046 echo "$as_me:$LINENO: checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER" >&5
39047echo $ECHO_N "checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER... $ECHO_C" >&6
39048if test "${wx_cv_type_pthread_rec_mutex_init+set}" = set; then
39049 echo $ECHO_N "(cached) $ECHO_C" >&6
39050else
39051
39052 cat >conftest.$ac_ext <<_ACEOF
39053/* confdefs.h. */
39054_ACEOF
39055cat confdefs.h >>conftest.$ac_ext
39056cat >>conftest.$ac_ext <<_ACEOF
39057/* end confdefs.h. */
39058#include <pthread.h>
39059int
39060main ()
39061{
39062
39063 pthread_mutex_t attr = PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP;
39064
39065 ;
39066 return 0;
39067}
39068_ACEOF
39069rm -f conftest.$ac_objext
39070if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 39071 (eval $ac_compile) 2>conftest.er1
a848cd7e 39072 ac_status=$?
ac1cb8d3
VS
39073 grep -v '^ *+' conftest.er1 >conftest.err
39074 rm -f conftest.er1
39075 cat conftest.err >&5
a848cd7e
SC
39076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39077 (exit $ac_status); } &&
3f60522a
JS
39078 { ac_try='test -z "$ac_cxx_werror_flag"
39079 || test ! -s conftest.err'
ac1cb8d3
VS
39080 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39081 (eval $ac_try) 2>&5
39082 ac_status=$?
39083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39084 (exit $ac_status); }; } &&
39085 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
39086 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39087 (eval $ac_try) 2>&5
39088 ac_status=$?
39089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39090 (exit $ac_status); }; }; then
39091
39092 wx_cv_type_pthread_rec_mutex_init=yes
39093
39094else
39095 echo "$as_me: failed program was:" >&5
39096sed 's/^/| /' conftest.$ac_ext >&5
39097
39098
39099 wx_cv_type_pthread_rec_mutex_init=no
39100
39101
39102fi
ac1cb8d3 39103rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
39104
39105fi
39106echo "$as_me:$LINENO: result: $wx_cv_type_pthread_rec_mutex_init" >&5
39107echo "${ECHO_T}$wx_cv_type_pthread_rec_mutex_init" >&6
39108 if test "$wx_cv_type_pthread_rec_mutex_init" = "yes"; then
39109 cat >>confdefs.h <<\_ACEOF
39110#define HAVE_PTHREAD_RECURSIVE_MUTEX_INITIALIZER 1
39111_ACEOF
39112
39113 else
39114 { echo "$as_me:$LINENO: WARNING: wxMutex won't be recursive on this platform" >&5
39115echo "$as_me: WARNING: wxMutex won't be recursive on this platform" >&2;}
39116 fi
39117 fi
39118 fi
39119
39120else
39121 if test "$wxUSE_THREADS" = "yes" ; then
39122 case "${host}" in
39123 *-*-mingw32* )
39124 echo "$as_me:$LINENO: checking if compiler supports -mthreads" >&5
39125echo $ECHO_N "checking if compiler supports -mthreads... $ECHO_C" >&6
39126if test "${wx_cv_cflags_mthread+set}" = set; then
39127 echo $ECHO_N "(cached) $ECHO_C" >&6
39128else
39129
e56f4f9e
VZ
39130 CXXFLAGS_OLD="$CXXFLAGS"
39131 CXXFLAGS="-mthreads $CXXFLAGS"
a848cd7e
SC
39132 cat >conftest.$ac_ext <<_ACEOF
39133/* confdefs.h. */
39134_ACEOF
39135cat confdefs.h >>conftest.$ac_ext
39136cat >>conftest.$ac_ext <<_ACEOF
39137/* end confdefs.h. */
39138
39139int
39140main ()
39141{
39142
39143 ;
39144 return 0;
39145}
39146_ACEOF
39147rm -f conftest.$ac_objext
39148if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 39149 (eval $ac_compile) 2>conftest.er1
a848cd7e 39150 ac_status=$?
ac1cb8d3
VS
39151 grep -v '^ *+' conftest.er1 >conftest.err
39152 rm -f conftest.er1
39153 cat conftest.err >&5
a848cd7e
SC
39154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39155 (exit $ac_status); } &&
3f60522a
JS
39156 { ac_try='test -z "$ac_cxx_werror_flag"
39157 || test ! -s conftest.err'
ac1cb8d3
VS
39158 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39159 (eval $ac_try) 2>&5
39160 ac_status=$?
39161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39162 (exit $ac_status); }; } &&
39163 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
39164 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39165 (eval $ac_try) 2>&5
39166 ac_status=$?
39167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39168 (exit $ac_status); }; }; then
39169 wx_cv_cflags_mthread=yes
39170else
39171 echo "$as_me: failed program was:" >&5
39172sed 's/^/| /' conftest.$ac_ext >&5
39173
39174wx_cv_cflags_mthread=no
39175
39176fi
ac1cb8d3 39177rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
39178
39179
39180fi
39181echo "$as_me:$LINENO: result: $wx_cv_cflags_mthread" >&5
39182echo "${ECHO_T}$wx_cv_cflags_mthread" >&6
39183
39184 if test "$wx_cv_cflags_mthread" = "yes"; then
e56f4f9e 39185 WXCONFIG_CXXFLAGS="$WXCONFIG_CXXFLAGS -mthreads"
a848cd7e
SC
39186 LDFLAGS="$LDFLAGS -mthreads"
39187 else
e56f4f9e 39188 CXXFLAGS="$CXXFLAGS_OLD"
a848cd7e
SC
39189 fi
39190 ;;
39191 *-pc-os2*emx )
5ff751d6
VZ
39192 WXCONFIG_CFLAGS="$WXCONFIG_CFLAGS -Zmt -D__ST_MT_ERRNO__"
39193 WXCONFIG_CXXFLAGS="$WXCONFIG_CXXFLAGS -Zmt -D__ST_MT_ERRNO__"
a848cd7e
SC
39194 LDFLAGS="$LDFLAGS -Zmt"
39195 ;;
39196 esac
39197 fi
39198fi
39199
004ee6da
RL
39200echo "$as_me:$LINENO: checking for localtime_r" >&5
39201echo $ECHO_N "checking for localtime_r... $ECHO_C" >&6
39202if test "${ac_cv_func_localtime_r+set}" = set; then
a848cd7e
SC
39203 echo $ECHO_N "(cached) $ECHO_C" >&6
39204else
39205 cat >conftest.$ac_ext <<_ACEOF
39206/* confdefs.h. */
39207_ACEOF
39208cat confdefs.h >>conftest.$ac_ext
39209cat >>conftest.$ac_ext <<_ACEOF
39210/* end confdefs.h. */
004ee6da 39211/* Define localtime_r to an innocuous variant, in case <limits.h> declares localtime_r.
ac1cb8d3 39212 For example, HP-UX 11i <limits.h> declares gettimeofday. */
004ee6da 39213#define localtime_r innocuous_localtime_r
ac1cb8d3 39214
a848cd7e 39215/* System header to define __stub macros and hopefully few prototypes,
004ee6da 39216 which can conflict with char localtime_r (); below.
a848cd7e
SC
39217 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39218 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 39219
a848cd7e
SC
39220#ifdef __STDC__
39221# include <limits.h>
39222#else
39223# include <assert.h>
39224#endif
ac1cb8d3 39225
004ee6da 39226#undef localtime_r
ac1cb8d3 39227
a848cd7e
SC
39228/* Override any gcc2 internal prototype to avoid an error. */
39229#ifdef __cplusplus
39230extern "C"
39231{
39232#endif
39233/* We use char because int might match the return type of a gcc2
39234 builtin and then its argument prototype would still apply. */
004ee6da 39235char localtime_r ();
a848cd7e
SC
39236/* The GNU C library defines this for functions which it implements
39237 to always fail with ENOSYS. Some functions are actually named
39238 something starting with __ and the normal name is an alias. */
004ee6da 39239#if defined (__stub_localtime_r) || defined (__stub___localtime_r)
a848cd7e
SC
39240choke me
39241#else
004ee6da 39242char (*f) () = localtime_r;
a848cd7e
SC
39243#endif
39244#ifdef __cplusplus
39245}
39246#endif
39247
39248int
39249main ()
39250{
004ee6da
RL
39251return f != localtime_r;
39252 ;
39253 return 0;
39254}
39255_ACEOF
39256rm -f conftest.$ac_objext conftest$ac_exeext
39257if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39258 (eval $ac_link) 2>conftest.er1
39259 ac_status=$?
39260 grep -v '^ *+' conftest.er1 >conftest.err
39261 rm -f conftest.er1
39262 cat conftest.err >&5
39263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39264 (exit $ac_status); } &&
3f60522a
JS
39265 { ac_try='test -z "$ac_cxx_werror_flag"
39266 || test ! -s conftest.err'
004ee6da
RL
39267 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39268 (eval $ac_try) 2>&5
39269 ac_status=$?
39270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39271 (exit $ac_status); }; } &&
39272 { ac_try='test -s conftest$ac_exeext'
39273 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39274 (eval $ac_try) 2>&5
39275 ac_status=$?
39276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39277 (exit $ac_status); }; }; then
39278 ac_cv_func_localtime_r=yes
39279else
39280 echo "$as_me: failed program was:" >&5
39281sed 's/^/| /' conftest.$ac_ext >&5
39282
39283ac_cv_func_localtime_r=no
39284fi
39285rm -f conftest.err conftest.$ac_objext \
39286 conftest$ac_exeext conftest.$ac_ext
39287fi
39288echo "$as_me:$LINENO: result: $ac_cv_func_localtime_r" >&5
39289echo "${ECHO_T}$ac_cv_func_localtime_r" >&6
39290if test $ac_cv_func_localtime_r = yes; then
39291 cat >>confdefs.h <<\_ACEOF
39292#define HAVE_LOCALTIME_R 1
39293_ACEOF
39294
39295fi
39296
39297echo "$as_me:$LINENO: checking for gmtime_r" >&5
39298echo $ECHO_N "checking for gmtime_r... $ECHO_C" >&6
39299if test "${ac_cv_func_gmtime_r+set}" = set; then
39300 echo $ECHO_N "(cached) $ECHO_C" >&6
39301else
39302 cat >conftest.$ac_ext <<_ACEOF
39303/* confdefs.h. */
39304_ACEOF
39305cat confdefs.h >>conftest.$ac_ext
39306cat >>conftest.$ac_ext <<_ACEOF
39307/* end confdefs.h. */
39308/* Define gmtime_r to an innocuous variant, in case <limits.h> declares gmtime_r.
39309 For example, HP-UX 11i <limits.h> declares gettimeofday. */
39310#define gmtime_r innocuous_gmtime_r
39311
39312/* System header to define __stub macros and hopefully few prototypes,
39313 which can conflict with char gmtime_r (); below.
39314 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39315 <limits.h> exists even on freestanding compilers. */
39316
39317#ifdef __STDC__
39318# include <limits.h>
39319#else
39320# include <assert.h>
39321#endif
39322
39323#undef gmtime_r
39324
39325/* Override any gcc2 internal prototype to avoid an error. */
39326#ifdef __cplusplus
39327extern "C"
39328{
39329#endif
39330/* We use char because int might match the return type of a gcc2
39331 builtin and then its argument prototype would still apply. */
39332char gmtime_r ();
39333/* The GNU C library defines this for functions which it implements
39334 to always fail with ENOSYS. Some functions are actually named
39335 something starting with __ and the normal name is an alias. */
39336#if defined (__stub_gmtime_r) || defined (__stub___gmtime_r)
39337choke me
39338#else
39339char (*f) () = gmtime_r;
39340#endif
39341#ifdef __cplusplus
39342}
39343#endif
39344
39345int
39346main ()
39347{
39348return f != gmtime_r;
39349 ;
39350 return 0;
39351}
39352_ACEOF
39353rm -f conftest.$ac_objext conftest$ac_exeext
39354if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39355 (eval $ac_link) 2>conftest.er1
39356 ac_status=$?
39357 grep -v '^ *+' conftest.er1 >conftest.err
39358 rm -f conftest.er1
39359 cat conftest.err >&5
39360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39361 (exit $ac_status); } &&
3f60522a
JS
39362 { ac_try='test -z "$ac_cxx_werror_flag"
39363 || test ! -s conftest.err'
004ee6da
RL
39364 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39365 (eval $ac_try) 2>&5
39366 ac_status=$?
39367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39368 (exit $ac_status); }; } &&
39369 { ac_try='test -s conftest$ac_exeext'
39370 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39371 (eval $ac_try) 2>&5
39372 ac_status=$?
39373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39374 (exit $ac_status); }; }; then
39375 ac_cv_func_gmtime_r=yes
39376else
39377 echo "$as_me: failed program was:" >&5
39378sed 's/^/| /' conftest.$ac_ext >&5
39379
39380ac_cv_func_gmtime_r=no
39381fi
39382rm -f conftest.err conftest.$ac_objext \
39383 conftest$ac_exeext conftest.$ac_ext
39384fi
39385echo "$as_me:$LINENO: result: $ac_cv_func_gmtime_r" >&5
39386echo "${ECHO_T}$ac_cv_func_gmtime_r" >&6
39387if test $ac_cv_func_gmtime_r = yes; then
39388 cat >>confdefs.h <<\_ACEOF
39389#define HAVE_GMTIME_R 1
39390_ACEOF
39391
39392fi
39393
39394echo "$as_me:$LINENO: checking for readdir_r" >&5
39395echo $ECHO_N "checking for readdir_r... $ECHO_C" >&6
39396if test "${ac_cv_func_readdir_r+set}" = set; then
39397 echo $ECHO_N "(cached) $ECHO_C" >&6
39398else
39399 cat >conftest.$ac_ext <<_ACEOF
39400/* confdefs.h. */
39401_ACEOF
39402cat confdefs.h >>conftest.$ac_ext
39403cat >>conftest.$ac_ext <<_ACEOF
39404/* end confdefs.h. */
39405/* Define readdir_r to an innocuous variant, in case <limits.h> declares readdir_r.
39406 For example, HP-UX 11i <limits.h> declares gettimeofday. */
39407#define readdir_r innocuous_readdir_r
39408
39409/* System header to define __stub macros and hopefully few prototypes,
39410 which can conflict with char readdir_r (); below.
39411 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39412 <limits.h> exists even on freestanding compilers. */
39413
39414#ifdef __STDC__
39415# include <limits.h>
39416#else
39417# include <assert.h>
39418#endif
39419
39420#undef readdir_r
39421
39422/* Override any gcc2 internal prototype to avoid an error. */
39423#ifdef __cplusplus
39424extern "C"
39425{
39426#endif
39427/* We use char because int might match the return type of a gcc2
39428 builtin and then its argument prototype would still apply. */
39429char readdir_r ();
39430/* The GNU C library defines this for functions which it implements
39431 to always fail with ENOSYS. Some functions are actually named
39432 something starting with __ and the normal name is an alias. */
39433#if defined (__stub_readdir_r) || defined (__stub___readdir_r)
39434choke me
39435#else
39436char (*f) () = readdir_r;
39437#endif
39438#ifdef __cplusplus
39439}
39440#endif
39441
39442int
39443main ()
39444{
39445return f != readdir_r;
39446 ;
39447 return 0;
39448}
39449_ACEOF
39450rm -f conftest.$ac_objext conftest$ac_exeext
39451if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39452 (eval $ac_link) 2>conftest.er1
39453 ac_status=$?
39454 grep -v '^ *+' conftest.er1 >conftest.err
39455 rm -f conftest.er1
39456 cat conftest.err >&5
39457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39458 (exit $ac_status); } &&
3f60522a
JS
39459 { ac_try='test -z "$ac_cxx_werror_flag"
39460 || test ! -s conftest.err'
004ee6da
RL
39461 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39462 (eval $ac_try) 2>&5
39463 ac_status=$?
39464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39465 (exit $ac_status); }; } &&
39466 { ac_try='test -s conftest$ac_exeext'
39467 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39468 (eval $ac_try) 2>&5
39469 ac_status=$?
39470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39471 (exit $ac_status); }; }; then
39472 ac_cv_func_readdir_r=yes
39473else
39474 echo "$as_me: failed program was:" >&5
39475sed 's/^/| /' conftest.$ac_ext >&5
39476
39477ac_cv_func_readdir_r=no
39478fi
39479rm -f conftest.err conftest.$ac_objext \
39480 conftest$ac_exeext conftest.$ac_ext
39481fi
39482echo "$as_me:$LINENO: result: $ac_cv_func_readdir_r" >&5
39483echo "${ECHO_T}$ac_cv_func_readdir_r" >&6
39484if test $ac_cv_func_readdir_r = yes; then
39485 cat >>confdefs.h <<\_ACEOF
39486#define HAVE_READDIR_R 1
39487_ACEOF
39488
39489fi
39490
004ee6da 39491
004ee6da
RL
39492
39493
39494 ac_ext=c
39495ac_cpp='$CPP $CPPFLAGS'
39496ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
39497ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
39498ac_compiler_gnu=$ac_cv_c_compiler_gnu
39499
39500 echo "$as_me:$LINENO: checking how many arguments gethostbyname_r() takes" >&5
39501echo $ECHO_N "checking how many arguments gethostbyname_r() takes... $ECHO_C" >&6
39502
39503 if test "${ac_cv_func_which_gethostbyname_r+set}" = set; then
39504 echo $ECHO_N "(cached) $ECHO_C" >&6
39505else
39506
39507
3f60522a 39508################################################################
004ee6da
RL
39509
39510ac_cv_func_which_gethostbyname_r=unknown
39511
39512#
39513# ONE ARGUMENT (sanity check)
39514#
39515
39516# This should fail, as there is no variant of gethostbyname_r() that takes
39517# a single argument. If it actually compiles, then we can assume that
39518# netdb.h is not declaring the function, and the compiler is thereby
39519# assuming an implicit prototype. In which case, we're out of luck.
39520#
39521cat >conftest.$ac_ext <<_ACEOF
39522/* confdefs.h. */
39523_ACEOF
39524cat confdefs.h >>conftest.$ac_ext
39525cat >>conftest.$ac_ext <<_ACEOF
39526/* end confdefs.h. */
39527#include <netdb.h>
39528int
39529main ()
39530{
39531
39532 char *name = "www.gnu.org";
39533 (void)gethostbyname_r(name) /* ; */
39534
39535 ;
39536 return 0;
39537}
39538_ACEOF
39539rm -f conftest.$ac_objext
39540if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39541 (eval $ac_compile) 2>conftest.er1
39542 ac_status=$?
39543 grep -v '^ *+' conftest.er1 >conftest.err
39544 rm -f conftest.er1
39545 cat conftest.err >&5
39546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39547 (exit $ac_status); } &&
3f60522a
JS
39548 { ac_try='test -z "$ac_c_werror_flag"
39549 || test ! -s conftest.err'
004ee6da
RL
39550 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39551 (eval $ac_try) 2>&5
39552 ac_status=$?
39553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39554 (exit $ac_status); }; } &&
39555 { ac_try='test -s conftest.$ac_objext'
39556 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39557 (eval $ac_try) 2>&5
39558 ac_status=$?
39559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39560 (exit $ac_status); }; }; then
39561 ac_cv_func_which_gethostbyname_r=no
39562else
39563 echo "$as_me: failed program was:" >&5
39564sed 's/^/| /' conftest.$ac_ext >&5
39565
39566fi
39567rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39568
39569#
39570# SIX ARGUMENTS
39571# (e.g. Linux)
39572#
39573
39574if test "$ac_cv_func_which_gethostbyname_r" = "unknown"; then
39575
39576cat >conftest.$ac_ext <<_ACEOF
39577/* confdefs.h. */
39578_ACEOF
39579cat confdefs.h >>conftest.$ac_ext
39580cat >>conftest.$ac_ext <<_ACEOF
39581/* end confdefs.h. */
39582#include <netdb.h>
39583int
39584main ()
39585{
39586
39587 char *name = "www.gnu.org";
39588 struct hostent ret, *retp;
39589 char buf[1024];
39590 int buflen = 1024;
39591 int my_h_errno;
39592 (void)gethostbyname_r(name, &ret, buf, buflen, &retp, &my_h_errno) /* ; */
39593
39594 ;
39595 return 0;
39596}
39597_ACEOF
39598rm -f conftest.$ac_objext
39599if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39600 (eval $ac_compile) 2>conftest.er1
39601 ac_status=$?
39602 grep -v '^ *+' conftest.er1 >conftest.err
39603 rm -f conftest.er1
39604 cat conftest.err >&5
39605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39606 (exit $ac_status); } &&
3f60522a
JS
39607 { ac_try='test -z "$ac_c_werror_flag"
39608 || test ! -s conftest.err'
004ee6da
RL
39609 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39610 (eval $ac_try) 2>&5
39611 ac_status=$?
39612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39613 (exit $ac_status); }; } &&
39614 { ac_try='test -s conftest.$ac_objext'
39615 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39616 (eval $ac_try) 2>&5
39617 ac_status=$?
39618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39619 (exit $ac_status); }; }; then
39620 ac_cv_func_which_gethostbyname_r=six
39621else
39622 echo "$as_me: failed program was:" >&5
39623sed 's/^/| /' conftest.$ac_ext >&5
39624
39625fi
39626rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39627
39628fi
39629
39630#
39631# FIVE ARGUMENTS
39632# (e.g. Solaris)
39633#
39634
39635if test "$ac_cv_func_which_gethostbyname_r" = "unknown"; then
39636
39637cat >conftest.$ac_ext <<_ACEOF
39638/* confdefs.h. */
39639_ACEOF
39640cat confdefs.h >>conftest.$ac_ext
39641cat >>conftest.$ac_ext <<_ACEOF
39642/* end confdefs.h. */
39643#include <netdb.h>
39644int
39645main ()
39646{
39647
39648 char *name = "www.gnu.org";
39649 struct hostent ret;
39650 char buf[1024];
39651 int buflen = 1024;
39652 int my_h_errno;
39653 (void)gethostbyname_r(name, &ret, buf, buflen, &my_h_errno) /* ; */
39654
39655 ;
39656 return 0;
39657}
39658_ACEOF
39659rm -f conftest.$ac_objext
39660if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39661 (eval $ac_compile) 2>conftest.er1
39662 ac_status=$?
39663 grep -v '^ *+' conftest.er1 >conftest.err
39664 rm -f conftest.er1
39665 cat conftest.err >&5
39666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39667 (exit $ac_status); } &&
3f60522a
JS
39668 { ac_try='test -z "$ac_c_werror_flag"
39669 || test ! -s conftest.err'
004ee6da
RL
39670 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39671 (eval $ac_try) 2>&5
39672 ac_status=$?
39673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39674 (exit $ac_status); }; } &&
39675 { ac_try='test -s conftest.$ac_objext'
39676 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39677 (eval $ac_try) 2>&5
39678 ac_status=$?
39679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39680 (exit $ac_status); }; }; then
39681 ac_cv_func_which_gethostbyname_r=five
39682else
39683 echo "$as_me: failed program was:" >&5
39684sed 's/^/| /' conftest.$ac_ext >&5
39685
39686fi
39687rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39688
39689fi
39690
39691#
39692# THREE ARGUMENTS
39693# (e.g. AIX, HP-UX, Tru64)
39694#
39695
39696if test "$ac_cv_func_which_gethostbyname_r" = "unknown"; then
39697
39698cat >conftest.$ac_ext <<_ACEOF
39699/* confdefs.h. */
39700_ACEOF
39701cat confdefs.h >>conftest.$ac_ext
39702cat >>conftest.$ac_ext <<_ACEOF
39703/* end confdefs.h. */
39704#include <netdb.h>
39705int
39706main ()
39707{
39708
39709 char *name = "www.gnu.org";
39710 struct hostent ret;
39711 struct hostent_data data;
39712 (void)gethostbyname_r(name, &ret, &data) /* ; */
39713
39714 ;
39715 return 0;
39716}
39717_ACEOF
39718rm -f conftest.$ac_objext
39719if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39720 (eval $ac_compile) 2>conftest.er1
39721 ac_status=$?
39722 grep -v '^ *+' conftest.er1 >conftest.err
39723 rm -f conftest.er1
39724 cat conftest.err >&5
39725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39726 (exit $ac_status); } &&
3f60522a
JS
39727 { ac_try='test -z "$ac_c_werror_flag"
39728 || test ! -s conftest.err'
004ee6da
RL
39729 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39730 (eval $ac_try) 2>&5
39731 ac_status=$?
39732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39733 (exit $ac_status); }; } &&
39734 { ac_try='test -s conftest.$ac_objext'
39735 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39736 (eval $ac_try) 2>&5
39737 ac_status=$?
39738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39739 (exit $ac_status); }; }; then
39740 ac_cv_func_which_gethostbyname_r=three
39741else
39742 echo "$as_me: failed program was:" >&5
39743sed 's/^/| /' conftest.$ac_ext >&5
39744
39745fi
39746rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39747
39748fi
39749
3f60522a 39750################################################################
004ee6da
RL
39751
39752
39753fi
39754
39755case "$ac_cv_func_which_gethostbyname_r" in
39756 three)
39757 echo "$as_me:$LINENO: result: three" >&5
39758echo "${ECHO_T}three" >&6
39759 cat >>confdefs.h <<\_ACEOF
39760#define HAVE_FUNC_GETHOSTBYNAME_R_3 1
39761_ACEOF
39762
39763 ;;
39764
39765 five)
39766 echo "$as_me:$LINENO: result: five" >&5
39767echo "${ECHO_T}five" >&6
39768 cat >>confdefs.h <<\_ACEOF
39769#define HAVE_FUNC_GETHOSTBYNAME_R_5 1
39770_ACEOF
39771
39772 ;;
39773
39774 six)
39775 echo "$as_me:$LINENO: result: six" >&5
39776echo "${ECHO_T}six" >&6
39777 cat >>confdefs.h <<\_ACEOF
39778#define HAVE_FUNC_GETHOSTBYNAME_R_6 1
39779_ACEOF
39780
39781 ;;
39782
39783 no)
39784 echo "$as_me:$LINENO: result: cannot find function declaration in netdb.h" >&5
39785echo "${ECHO_T}cannot find function declaration in netdb.h" >&6
39786 ;;
39787
39788 unknown)
39789 echo "$as_me:$LINENO: result: can't tell" >&5
39790echo "${ECHO_T}can't tell" >&6
39791 ;;
39792
39793 *)
39794 { { echo "$as_me:$LINENO: error: internal error" >&5
39795echo "$as_me: error: internal error" >&2;}
39796 { (exit 1); exit 1; }; }
39797 ;;
39798esac
39799
5ec3bc43
JS
39800ac_ext=cc
39801ac_cpp='$CXXCPP $CPPFLAGS'
39802ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
39803ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
39804ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
004ee6da
RL
39805
39806
39807
39808 if test "x$ac_cv_func_which_gethostbyname_r" = "xno" -o \
39809 "x$ac_cv_func_which_gethostbyname_r" = "xunknown" ; then
39810 echo "$as_me:$LINENO: checking for gethostbyname" >&5
39811echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
39812if test "${ac_cv_func_gethostbyname+set}" = set; then
39813 echo $ECHO_N "(cached) $ECHO_C" >&6
39814else
39815 cat >conftest.$ac_ext <<_ACEOF
39816/* confdefs.h. */
39817_ACEOF
39818cat confdefs.h >>conftest.$ac_ext
39819cat >>conftest.$ac_ext <<_ACEOF
39820/* end confdefs.h. */
39821/* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
39822 For example, HP-UX 11i <limits.h> declares gettimeofday. */
39823#define gethostbyname innocuous_gethostbyname
39824
39825/* System header to define __stub macros and hopefully few prototypes,
39826 which can conflict with char gethostbyname (); below.
39827 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39828 <limits.h> exists even on freestanding compilers. */
39829
39830#ifdef __STDC__
39831# include <limits.h>
39832#else
39833# include <assert.h>
39834#endif
39835
39836#undef gethostbyname
39837
39838/* Override any gcc2 internal prototype to avoid an error. */
39839#ifdef __cplusplus
39840extern "C"
39841{
39842#endif
39843/* We use char because int might match the return type of a gcc2
39844 builtin and then its argument prototype would still apply. */
39845char gethostbyname ();
39846/* The GNU C library defines this for functions which it implements
39847 to always fail with ENOSYS. Some functions are actually named
39848 something starting with __ and the normal name is an alias. */
39849#if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
39850choke me
39851#else
39852char (*f) () = gethostbyname;
39853#endif
39854#ifdef __cplusplus
39855}
39856#endif
39857
39858int
39859main ()
39860{
39861return f != gethostbyname;
39862 ;
39863 return 0;
39864}
39865_ACEOF
39866rm -f conftest.$ac_objext conftest$ac_exeext
39867if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39868 (eval $ac_link) 2>conftest.er1
39869 ac_status=$?
39870 grep -v '^ *+' conftest.er1 >conftest.err
39871 rm -f conftest.er1
39872 cat conftest.err >&5
39873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39874 (exit $ac_status); } &&
3f60522a
JS
39875 { ac_try='test -z "$ac_cxx_werror_flag"
39876 || test ! -s conftest.err'
004ee6da
RL
39877 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39878 (eval $ac_try) 2>&5
39879 ac_status=$?
39880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39881 (exit $ac_status); }; } &&
39882 { ac_try='test -s conftest$ac_exeext'
39883 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39884 (eval $ac_try) 2>&5
39885 ac_status=$?
39886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39887 (exit $ac_status); }; }; then
39888 ac_cv_func_gethostbyname=yes
39889else
39890 echo "$as_me: failed program was:" >&5
39891sed 's/^/| /' conftest.$ac_ext >&5
39892
39893ac_cv_func_gethostbyname=no
39894fi
39895rm -f conftest.err conftest.$ac_objext \
39896 conftest$ac_exeext conftest.$ac_ext
39897fi
39898echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
39899echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
39900if test $ac_cv_func_gethostbyname = yes; then
39901 cat >>confdefs.h <<\_ACEOF
39902#define HAVE_GETHOSTBYNAME 1
39903_ACEOF
39904
39905fi
39906
39907 fi
39908 echo "$as_me:$LINENO: checking for getservbyname_r" >&5
39909echo $ECHO_N "checking for getservbyname_r... $ECHO_C" >&6
004ee6da
RL
39910if test "${ac_cv_func_getservbyname_r+set}" = set; then
39911 echo $ECHO_N "(cached) $ECHO_C" >&6
39912else
39913 cat >conftest.$ac_ext <<_ACEOF
39914/* confdefs.h. */
39915_ACEOF
39916cat confdefs.h >>conftest.$ac_ext
39917cat >>conftest.$ac_ext <<_ACEOF
39918/* end confdefs.h. */
39919/* Define getservbyname_r to an innocuous variant, in case <limits.h> declares getservbyname_r.
39920 For example, HP-UX 11i <limits.h> declares gettimeofday. */
39921#define getservbyname_r innocuous_getservbyname_r
39922
39923/* System header to define __stub macros and hopefully few prototypes,
39924 which can conflict with char getservbyname_r (); below.
39925 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39926 <limits.h> exists even on freestanding compilers. */
39927
39928#ifdef __STDC__
39929# include <limits.h>
39930#else
39931# include <assert.h>
39932#endif
39933
39934#undef getservbyname_r
39935
39936/* Override any gcc2 internal prototype to avoid an error. */
39937#ifdef __cplusplus
39938extern "C"
39939{
39940#endif
39941/* We use char because int might match the return type of a gcc2
39942 builtin and then its argument prototype would still apply. */
39943char getservbyname_r ();
39944/* The GNU C library defines this for functions which it implements
39945 to always fail with ENOSYS. Some functions are actually named
39946 something starting with __ and the normal name is an alias. */
39947#if defined (__stub_getservbyname_r) || defined (__stub___getservbyname_r)
39948choke me
39949#else
39950char (*f) () = getservbyname_r;
39951#endif
39952#ifdef __cplusplus
39953}
39954#endif
39955
39956int
39957main ()
39958{
39959return f != getservbyname_r;
39960 ;
39961 return 0;
39962}
39963_ACEOF
39964rm -f conftest.$ac_objext conftest$ac_exeext
39965if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39966 (eval $ac_link) 2>conftest.er1
39967 ac_status=$?
39968 grep -v '^ *+' conftest.er1 >conftest.err
39969 rm -f conftest.er1
39970 cat conftest.err >&5
39971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39972 (exit $ac_status); } &&
3f60522a
JS
39973 { ac_try='test -z "$ac_cxx_werror_flag"
39974 || test ! -s conftest.err'
004ee6da
RL
39975 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39976 (eval $ac_try) 2>&5
39977 ac_status=$?
39978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39979 (exit $ac_status); }; } &&
39980 { ac_try='test -s conftest$ac_exeext'
39981 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39982 (eval $ac_try) 2>&5
39983 ac_status=$?
39984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39985 (exit $ac_status); }; }; then
39986 ac_cv_func_getservbyname_r=yes
39987else
39988 echo "$as_me: failed program was:" >&5
39989sed 's/^/| /' conftest.$ac_ext >&5
39990
39991ac_cv_func_getservbyname_r=no
39992fi
39993rm -f conftest.err conftest.$ac_objext \
39994 conftest$ac_exeext conftest.$ac_ext
39995fi
39996echo "$as_me:$LINENO: result: $ac_cv_func_getservbyname_r" >&5
39997echo "${ECHO_T}$ac_cv_func_getservbyname_r" >&6
39998if test $ac_cv_func_getservbyname_r = yes; then
99879bbf 39999 cat >conftest.$ac_ext <<_ACEOF
004ee6da
RL
40000/* confdefs.h. */
40001_ACEOF
40002cat confdefs.h >>conftest.$ac_ext
40003cat >>conftest.$ac_ext <<_ACEOF
40004/* end confdefs.h. */
99879bbf 40005#include <netdb.h>
004ee6da
RL
40006int
40007main ()
40008{
40009
99879bbf
MR
40010 char *name;
40011 char *proto;
40012 struct servent *se;
40013 struct servent_data data;
40014 (void) getservbyname_r(name, proto, se, &data);
004ee6da
RL
40015
40016 ;
40017 return 0;
40018}
40019_ACEOF
40020rm -f conftest.$ac_objext
40021if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40022 (eval $ac_compile) 2>conftest.er1
40023 ac_status=$?
40024 grep -v '^ *+' conftest.er1 >conftest.err
40025 rm -f conftest.er1
40026 cat conftest.err >&5
40027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40028 (exit $ac_status); } &&
3f60522a
JS
40029 { ac_try='test -z "$ac_cxx_werror_flag"
40030 || test ! -s conftest.err'
004ee6da
RL
40031 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40032 (eval $ac_try) 2>&5
40033 ac_status=$?
40034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40035 (exit $ac_status); }; } &&
40036 { ac_try='test -s conftest.$ac_objext'
40037 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40038 (eval $ac_try) 2>&5
40039 ac_status=$?
40040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40041 (exit $ac_status); }; }; then
40042 ac_cv_func_which_getservbyname_r=four
40043else
40044 echo "$as_me: failed program was:" >&5
40045sed 's/^/| /' conftest.$ac_ext >&5
40046
99879bbf 40047cat >conftest.$ac_ext <<_ACEOF
004ee6da
RL
40048/* confdefs.h. */
40049_ACEOF
40050cat confdefs.h >>conftest.$ac_ext
40051cat >>conftest.$ac_ext <<_ACEOF
40052/* end confdefs.h. */
99879bbf 40053#include <netdb.h>
004ee6da
RL
40054int
40055main ()
40056{
40057
99879bbf
MR
40058 char *name;
40059 char *proto;
40060 struct servent *se, *res;
40061 char buffer[2048];
40062 int buflen = 2048;
40063 (void) getservbyname_r(name, proto, se, buffer, buflen, &res);
004ee6da
RL
40064
40065 ;
40066 return 0;
40067}
40068_ACEOF
40069rm -f conftest.$ac_objext
40070if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40071 (eval $ac_compile) 2>conftest.er1
40072 ac_status=$?
40073 grep -v '^ *+' conftest.er1 >conftest.err
40074 rm -f conftest.er1
40075 cat conftest.err >&5
40076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40077 (exit $ac_status); } &&
3f60522a
JS
40078 { ac_try='test -z "$ac_cxx_werror_flag"
40079 || test ! -s conftest.err'
004ee6da
RL
40080 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40081 (eval $ac_try) 2>&5
40082 ac_status=$?
40083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40084 (exit $ac_status); }; } &&
40085 { ac_try='test -s conftest.$ac_objext'
40086 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40087 (eval $ac_try) 2>&5
40088 ac_status=$?
40089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40090 (exit $ac_status); }; }; then
40091 ac_cv_func_which_getservbyname_r=six
40092else
40093 echo "$as_me: failed program was:" >&5
40094sed 's/^/| /' conftest.$ac_ext >&5
40095
99879bbf 40096cat >conftest.$ac_ext <<_ACEOF
004ee6da
RL
40097/* confdefs.h. */
40098_ACEOF
40099cat confdefs.h >>conftest.$ac_ext
40100cat >>conftest.$ac_ext <<_ACEOF
40101/* end confdefs.h. */
99879bbf 40102#include <netdb.h>
004ee6da
RL
40103int
40104main ()
40105{
40106
99879bbf
MR
40107 char *name;
40108 char *proto;
40109 struct servent *se;
40110 char buffer[2048];
40111 int buflen = 2048;
40112 (void) getservbyname_r(name, proto, se, buffer, buflen)
004ee6da
RL
40113
40114 ;
40115 return 0;
40116}
40117_ACEOF
40118rm -f conftest.$ac_objext
40119if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40120 (eval $ac_compile) 2>conftest.er1
40121 ac_status=$?
40122 grep -v '^ *+' conftest.er1 >conftest.err
40123 rm -f conftest.er1
40124 cat conftest.err >&5
40125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40126 (exit $ac_status); } &&
3f60522a
JS
40127 { ac_try='test -z "$ac_cxx_werror_flag"
40128 || test ! -s conftest.err'
004ee6da
RL
40129 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40130 (eval $ac_try) 2>&5
40131 ac_status=$?
40132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40133 (exit $ac_status); }; } &&
40134 { ac_try='test -s conftest.$ac_objext'
40135 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40136 (eval $ac_try) 2>&5
40137 ac_status=$?
40138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40139 (exit $ac_status); }; }; then
40140 ac_cv_func_which_getservbyname_r=five
40141else
40142 echo "$as_me: failed program was:" >&5
40143sed 's/^/| /' conftest.$ac_ext >&5
40144
40145ac_cv_func_which_getservbyname_r=no
99879bbf 40146
004ee6da
RL
40147fi
40148rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40149
004ee6da
RL
40150fi
40151rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40152
004ee6da
RL
40153fi
40154rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
004ee6da
RL
40155else
40156 ac_cv_func_which_getservbyname_r=no
40157fi
40158
004ee6da
RL
40159
40160if test $ac_cv_func_which_getservbyname_r = six; then
40161 cat >>confdefs.h <<\_ACEOF
40162#define HAVE_FUNC_GETSERVBYNAME_R_6 1
40163_ACEOF
40164
40165elif test $ac_cv_func_which_getservbyname_r = five; then
40166 cat >>confdefs.h <<\_ACEOF
40167#define HAVE_FUNC_GETSERVBYNAME_R_5 1
40168_ACEOF
40169
40170elif test $ac_cv_func_which_getservbyname_r = four; then
40171 cat >>confdefs.h <<\_ACEOF
40172#define HAVE_FUNC_GETSERVBYNAME_R_4 1
40173_ACEOF
40174
004ee6da
RL
40175fi
40176
40177
40178 if test "x$ac_cv_func_which_getservbyname_r" = "xno" -o \
40179 "x$ac_cv_func_which_getservbyname_r" = "xunknown" ; then
40180
40181for ac_func in getservbyname
40182do
40183as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
40184echo "$as_me:$LINENO: checking for $ac_func" >&5
40185echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
40186if eval "test \"\${$as_ac_var+set}\" = set"; then
40187 echo $ECHO_N "(cached) $ECHO_C" >&6
40188else
40189 cat >conftest.$ac_ext <<_ACEOF
40190/* confdefs.h. */
40191_ACEOF
40192cat confdefs.h >>conftest.$ac_ext
40193cat >>conftest.$ac_ext <<_ACEOF
40194/* end confdefs.h. */
40195/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
40196 For example, HP-UX 11i <limits.h> declares gettimeofday. */
40197#define $ac_func innocuous_$ac_func
40198
40199/* System header to define __stub macros and hopefully few prototypes,
40200 which can conflict with char $ac_func (); below.
40201 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40202 <limits.h> exists even on freestanding compilers. */
40203
40204#ifdef __STDC__
40205# include <limits.h>
40206#else
40207# include <assert.h>
40208#endif
40209
40210#undef $ac_func
40211
40212/* Override any gcc2 internal prototype to avoid an error. */
40213#ifdef __cplusplus
40214extern "C"
40215{
40216#endif
40217/* We use char because int might match the return type of a gcc2
40218 builtin and then its argument prototype would still apply. */
40219char $ac_func ();
40220/* The GNU C library defines this for functions which it implements
40221 to always fail with ENOSYS. Some functions are actually named
40222 something starting with __ and the normal name is an alias. */
40223#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
40224choke me
40225#else
40226char (*f) () = $ac_func;
40227#endif
40228#ifdef __cplusplus
40229}
40230#endif
40231
40232int
40233main ()
40234{
40235return f != $ac_func;
40236 ;
40237 return 0;
40238}
40239_ACEOF
40240rm -f conftest.$ac_objext conftest$ac_exeext
40241if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40242 (eval $ac_link) 2>conftest.er1
40243 ac_status=$?
40244 grep -v '^ *+' conftest.er1 >conftest.err
40245 rm -f conftest.er1
40246 cat conftest.err >&5
40247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40248 (exit $ac_status); } &&
3f60522a
JS
40249 { ac_try='test -z "$ac_cxx_werror_flag"
40250 || test ! -s conftest.err'
004ee6da
RL
40251 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40252 (eval $ac_try) 2>&5
40253 ac_status=$?
40254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40255 (exit $ac_status); }; } &&
40256 { ac_try='test -s conftest$ac_exeext'
40257 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40258 (eval $ac_try) 2>&5
40259 ac_status=$?
40260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40261 (exit $ac_status); }; }; then
40262 eval "$as_ac_var=yes"
40263else
40264 echo "$as_me: failed program was:" >&5
40265sed 's/^/| /' conftest.$ac_ext >&5
40266
40267eval "$as_ac_var=no"
40268fi
40269rm -f conftest.err conftest.$ac_objext \
40270 conftest$ac_exeext conftest.$ac_ext
40271fi
40272echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
40273echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
40274if test `eval echo '${'$as_ac_var'}'` = yes; then
40275 cat >>confdefs.h <<_ACEOF
40276#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
40277_ACEOF
40278 cat >>confdefs.h <<\_ACEOF
40279#define HAVE_GETSERVBYNAME 1
40280_ACEOF
40281
40282fi
40283done
40284
40285 fi
40286
004ee6da
RL
40287if test "$wxUSE_THREADS" = "yes"; then
40288 cat >>confdefs.h <<\_ACEOF
40289#define wxUSE_THREADS 1
40290_ACEOF
40291
40292
40293 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS thread"
40294else
40295 if test "$ac_cv_func_strtok_r" = "yes"; then
40296 echo "$as_me:$LINENO: checking if -D_REENTRANT is needed" >&5
40297echo $ECHO_N "checking if -D_REENTRANT is needed... $ECHO_C" >&6
40298 if test "$NEEDS_D_REENTRANT_FOR_R_FUNCS" = 1; then
40299 WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS -D_REENTRANT"
40300 echo "$as_me:$LINENO: result: yes" >&5
40301echo "${ECHO_T}yes" >&6
40302 else
40303 echo "$as_me:$LINENO: result: no" >&5
40304echo "${ECHO_T}no" >&6
40305 fi
40306 fi
40307fi
40308
40309if test "$WXGTK20" = 1 ; then
40310 cat >>confdefs.h <<_ACEOF
40311#define __WXGTK20__ $WXGTK20
40312_ACEOF
40313
40314 WXGTK12=1
40315fi
40316
40317if test "$WXGTK12" = 1 ; then
40318 cat >>confdefs.h <<_ACEOF
40319#define __WXGTK12__ $WXGTK12
40320_ACEOF
40321
40322fi
40323
40324if test "$WXGTK127" = 1 ; then
40325 cat >>confdefs.h <<_ACEOF
40326#define __WXGTK127__ $WXGTK127
40327_ACEOF
40328
40329fi
40330
40331if test "$WXGPE" = 1 ; then
40332 cat >>confdefs.h <<_ACEOF
40333#define __WXGPE__ $WXGPE
40334_ACEOF
40335
40336fi
40337
40338DEBUG_CFLAGS=
40339if test "$wxUSE_DEBUG_INFO" = "yes" ; then
40340 DEBUG_CFLAGS="-g"
40341 wxUSE_OPTIMISE=no
40342fi
40343
40344if test "$wxUSE_DEBUG_GDB" = "yes" ; then
40345 wxUSE_DEBUG_INFO=yes
40346 if test "$GCC" = yes; then
40347 DEBUG_CFLAGS="-ggdb"
40348 fi
40349fi
40350
40351if test "$wxUSE_DEBUG_FLAG" = "yes" ; then
40352 cat >>confdefs.h <<\_ACEOF
40353#define WXDEBUG 1
40354_ACEOF
40355
40356 WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS -D__WXDEBUG__"
40357else
40358 if test "$wxUSE_GTK" = 1 ; then
99879bbf
MR
40359 if test "x$wxGTK_VERSION" = "x1" ; then
40360 CPPFLAGS="-DGTK_NO_CHECK_CASTS $CPPFLAGS"
40361 fi
004ee6da
RL
40362 fi
40363fi
40364
40365if test "$wxUSE_MEM_TRACING" = "yes" ; then
40366 cat >>confdefs.h <<\_ACEOF
40367#define wxUSE_MEMORY_TRACING 1
40368_ACEOF
40369
40370 cat >>confdefs.h <<\_ACEOF
40371#define wxUSE_GLOBAL_MEMORY_OPERATORS 1
40372_ACEOF
40373
40374 cat >>confdefs.h <<\_ACEOF
40375#define wxUSE_DEBUG_NEW_ALWAYS 1
40376_ACEOF
40377
40378 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS memcheck"
40379fi
40380
40381if test "$wxUSE_DMALLOC" = "yes" ; then
40382 DMALLOC_LIBS="-ldmallocthcxx"
40383fi
40384
40385PROFILE_FLAGS=
40386if test "$wxUSE_PROFILE" = "yes" ; then
40387 PROFILE_FLAGS=" -pg"
40388fi
40389
40390if test "$GCC" = "yes" ; then
40391 if test "$wxUSE_NO_RTTI" = "yes" ; then
40392 WXCONFIG_CXXFLAGS="$WXCONFIG_CXXFLAGS -fno-rtti"
40393 fi
40394 if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then
40395 WXCONFIG_CXXFLAGS="$WXCONFIG_CXXFLAGS -fno-exceptions"
40396 fi
40397 if test "$wxUSE_PERMISSIVE" = "yes" ; then
40398 WXCONFIG_CFLAGS="$WXCONFIG_CFLAGS -fpermissive"
40399 fi
40400
40401 case "${host}" in
40402 powerpc*-*-aix* )
40403 WXCONFIG_CFLAGS="$WXCONFIG_CFLAGS -mminimal-toc"
40404 ;;
40405 *-hppa* )
40406 WXCONFIG_CFLAGS="$WXCONFIG_CFLAGS -ffunction-sections"
40407 ;;
40408 esac
40409fi
40410
40411OPTIMISE_CFLAGS=
40412if test "$wxUSE_OPTIMISE" = "no" ; then
40413 if test "$GCC" = yes ; then
40414 OPTIMISE_CFLAGS="-O0"
40415 fi
40416else
40417 if test "$GCC" = yes ; then
e5efa97e
VZ
40418 case "${host}" in
40419 *-pc-os2_emx | *-pc-os2-emx )
40420 OPTIMISE_CFLAGS="-O2"
40421 ;;
40422 *)
40423 OPTIMISE_CFLAGS="-O2 -fno-strict-aliasing"
40424 ;;
40425 esac
004ee6da
RL
40426 else
40427 OPTIMISE_CFLAGS="-O"
40428 fi
40429fi
40430
40431
40432if test "x$WXWIN_COMPATIBILITY_2_4" = "xyes"; then
40433 cat >>confdefs.h <<\_ACEOF
40434#define WXWIN_COMPATIBILITY_2_4 1
40435_ACEOF
40436
40437
40438 WXWIN_COMPATIBILITY_2_6="yes"
40439fi
40440
40441if test "x$WXWIN_COMPATIBILITY_2_6" != "xno"; then
40442 cat >>confdefs.h <<\_ACEOF
40443#define WXWIN_COMPATIBILITY_2_6 1
40444_ACEOF
40445
40446fi
40447
40448
40449if test "$wxUSE_GUI" = "yes"; then
40450 cat >>confdefs.h <<\_ACEOF
40451#define wxUSE_GUI 1
40452_ACEOF
40453
40454
40455 fi
40456
40457
40458if test "$wxUSE_UNIX" = "yes"; then
40459 cat >>confdefs.h <<\_ACEOF
40460#define wxUSE_UNIX 1
40461_ACEOF
40462
40463fi
40464
40465
40466if test "$TOOLKIT" != "MSW" -a "$USE_OS2" != 1; then
40467
40468 HAVE_DL_FUNCS=0
40469 HAVE_SHL_FUNCS=0
40470 if test "$wxUSE_DYNAMIC_LOADER" = "yes" -o "$wxUSE_DYNLIB_CLASS" = "yes" ; then
40471 if test "$USE_DARWIN" = 1; then
40472 HAVE_DL_FUNCS=1
40473 elif test "$USE_DOS" = 1; then
40474 HAVE_DL_FUNCS=0
40475 else
40476
40477for ac_func in dlopen
40478do
40479as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
40480echo "$as_me:$LINENO: checking for $ac_func" >&5
40481echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
40482if eval "test \"\${$as_ac_var+set}\" = set"; then
40483 echo $ECHO_N "(cached) $ECHO_C" >&6
40484else
40485 cat >conftest.$ac_ext <<_ACEOF
40486/* confdefs.h. */
40487_ACEOF
40488cat confdefs.h >>conftest.$ac_ext
40489cat >>conftest.$ac_ext <<_ACEOF
40490/* end confdefs.h. */
40491/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
40492 For example, HP-UX 11i <limits.h> declares gettimeofday. */
40493#define $ac_func innocuous_$ac_func
40494
40495/* System header to define __stub macros and hopefully few prototypes,
40496 which can conflict with char $ac_func (); below.
40497 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40498 <limits.h> exists even on freestanding compilers. */
40499
40500#ifdef __STDC__
40501# include <limits.h>
40502#else
40503# include <assert.h>
40504#endif
40505
40506#undef $ac_func
40507
40508/* Override any gcc2 internal prototype to avoid an error. */
40509#ifdef __cplusplus
40510extern "C"
40511{
40512#endif
40513/* We use char because int might match the return type of a gcc2
40514 builtin and then its argument prototype would still apply. */
40515char $ac_func ();
40516/* The GNU C library defines this for functions which it implements
40517 to always fail with ENOSYS. Some functions are actually named
40518 something starting with __ and the normal name is an alias. */
40519#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
40520choke me
40521#else
40522char (*f) () = $ac_func;
40523#endif
40524#ifdef __cplusplus
40525}
40526#endif
40527
40528int
40529main ()
40530{
40531return f != $ac_func;
a848cd7e
SC
40532 ;
40533 return 0;
40534}
40535_ACEOF
40536rm -f conftest.$ac_objext conftest$ac_exeext
40537if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 40538 (eval $ac_link) 2>conftest.er1
a848cd7e 40539 ac_status=$?
ac1cb8d3
VS
40540 grep -v '^ *+' conftest.er1 >conftest.err
40541 rm -f conftest.er1
40542 cat conftest.err >&5
a848cd7e
SC
40543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40544 (exit $ac_status); } &&
3f60522a
JS
40545 { ac_try='test -z "$ac_cxx_werror_flag"
40546 || test ! -s conftest.err'
ac1cb8d3
VS
40547 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40548 (eval $ac_try) 2>&5
40549 ac_status=$?
40550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40551 (exit $ac_status); }; } &&
40552 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
40553 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40554 (eval $ac_try) 2>&5
40555 ac_status=$?
40556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40557 (exit $ac_status); }; }; then
40558 eval "$as_ac_var=yes"
40559else
40560 echo "$as_me: failed program was:" >&5
40561sed 's/^/| /' conftest.$ac_ext >&5
40562
40563eval "$as_ac_var=no"
40564fi
ac1cb8d3
VS
40565rm -f conftest.err conftest.$ac_objext \
40566 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
40567fi
40568echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
40569echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
40570if test `eval echo '${'$as_ac_var'}'` = yes; then
40571 cat >>confdefs.h <<_ACEOF
40572#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
40573_ACEOF
40574
40575 cat >>confdefs.h <<\_ACEOF
40576#define HAVE_DLOPEN 1
40577_ACEOF
40578
40579 HAVE_DL_FUNCS=1
40580
40581else
40582
40583 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
40584echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
40585if test "${ac_cv_lib_dl_dlopen+set}" = set; then
40586 echo $ECHO_N "(cached) $ECHO_C" >&6
40587else
40588 ac_check_lib_save_LIBS=$LIBS
40589LIBS="-ldl $LIBS"
40590cat >conftest.$ac_ext <<_ACEOF
40591/* confdefs.h. */
40592_ACEOF
40593cat confdefs.h >>conftest.$ac_ext
40594cat >>conftest.$ac_ext <<_ACEOF
40595/* end confdefs.h. */
40596
40597/* Override any gcc2 internal prototype to avoid an error. */
40598#ifdef __cplusplus
40599extern "C"
40600#endif
40601/* We use char because int might match the return type of a gcc2
40602 builtin and then its argument prototype would still apply. */
40603char dlopen ();
40604int
40605main ()
40606{
40607dlopen ();
40608 ;
40609 return 0;
40610}
40611_ACEOF
40612rm -f conftest.$ac_objext conftest$ac_exeext
40613if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 40614 (eval $ac_link) 2>conftest.er1
a848cd7e 40615 ac_status=$?
ac1cb8d3
VS
40616 grep -v '^ *+' conftest.er1 >conftest.err
40617 rm -f conftest.er1
40618 cat conftest.err >&5
a848cd7e
SC
40619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40620 (exit $ac_status); } &&
3f60522a
JS
40621 { ac_try='test -z "$ac_cxx_werror_flag"
40622 || test ! -s conftest.err'
ac1cb8d3
VS
40623 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40624 (eval $ac_try) 2>&5
40625 ac_status=$?
40626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40627 (exit $ac_status); }; } &&
40628 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
40629 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40630 (eval $ac_try) 2>&5
40631 ac_status=$?
40632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40633 (exit $ac_status); }; }; then
40634 ac_cv_lib_dl_dlopen=yes
40635else
40636 echo "$as_me: failed program was:" >&5
40637sed 's/^/| /' conftest.$ac_ext >&5
40638
40639ac_cv_lib_dl_dlopen=no
40640fi
ac1cb8d3
VS
40641rm -f conftest.err conftest.$ac_objext \
40642 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
40643LIBS=$ac_check_lib_save_LIBS
40644fi
40645echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
40646echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
40647if test $ac_cv_lib_dl_dlopen = yes; then
40648
40649 cat >>confdefs.h <<\_ACEOF
40650#define HAVE_DLOPEN 1
40651_ACEOF
40652
40653 HAVE_DL_FUNCS=1
40654 DL_LINK=" -ldl$DL_LINK"
40655
40656else
40657
40658
40659for ac_func in shl_load
40660do
40661as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
40662echo "$as_me:$LINENO: checking for $ac_func" >&5
40663echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
40664if eval "test \"\${$as_ac_var+set}\" = set"; then
40665 echo $ECHO_N "(cached) $ECHO_C" >&6
40666else
40667 cat >conftest.$ac_ext <<_ACEOF
40668/* confdefs.h. */
40669_ACEOF
40670cat confdefs.h >>conftest.$ac_ext
40671cat >>conftest.$ac_ext <<_ACEOF
40672/* end confdefs.h. */
ac1cb8d3
VS
40673/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
40674 For example, HP-UX 11i <limits.h> declares gettimeofday. */
40675#define $ac_func innocuous_$ac_func
40676
a848cd7e
SC
40677/* System header to define __stub macros and hopefully few prototypes,
40678 which can conflict with char $ac_func (); below.
40679 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40680 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 40681
a848cd7e
SC
40682#ifdef __STDC__
40683# include <limits.h>
40684#else
40685# include <assert.h>
40686#endif
ac1cb8d3
VS
40687
40688#undef $ac_func
40689
a848cd7e
SC
40690/* Override any gcc2 internal prototype to avoid an error. */
40691#ifdef __cplusplus
40692extern "C"
40693{
40694#endif
40695/* We use char because int might match the return type of a gcc2
40696 builtin and then its argument prototype would still apply. */
40697char $ac_func ();
40698/* The GNU C library defines this for functions which it implements
40699 to always fail with ENOSYS. Some functions are actually named
40700 something starting with __ and the normal name is an alias. */
40701#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
40702choke me
40703#else
40704char (*f) () = $ac_func;
40705#endif
40706#ifdef __cplusplus
40707}
40708#endif
40709
40710int
40711main ()
40712{
40713return f != $ac_func;
40714 ;
40715 return 0;
40716}
40717_ACEOF
40718rm -f conftest.$ac_objext conftest$ac_exeext
40719if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 40720 (eval $ac_link) 2>conftest.er1
a848cd7e 40721 ac_status=$?
ac1cb8d3
VS
40722 grep -v '^ *+' conftest.er1 >conftest.err
40723 rm -f conftest.er1
40724 cat conftest.err >&5
a848cd7e
SC
40725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40726 (exit $ac_status); } &&
3f60522a
JS
40727 { ac_try='test -z "$ac_cxx_werror_flag"
40728 || test ! -s conftest.err'
ac1cb8d3
VS
40729 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40730 (eval $ac_try) 2>&5
40731 ac_status=$?
40732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40733 (exit $ac_status); }; } &&
40734 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
40735 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40736 (eval $ac_try) 2>&5
40737 ac_status=$?
40738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40739 (exit $ac_status); }; }; then
40740 eval "$as_ac_var=yes"
40741else
40742 echo "$as_me: failed program was:" >&5
40743sed 's/^/| /' conftest.$ac_ext >&5
40744
40745eval "$as_ac_var=no"
40746fi
ac1cb8d3
VS
40747rm -f conftest.err conftest.$ac_objext \
40748 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
40749fi
40750echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
40751echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
40752if test `eval echo '${'$as_ac_var'}'` = yes; then
40753 cat >>confdefs.h <<_ACEOF
40754#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
40755_ACEOF
40756
40757 cat >>confdefs.h <<\_ACEOF
40758#define HAVE_SHL_LOAD 1
40759_ACEOF
40760
40761 HAVE_SHL_FUNCS=1
40762
40763else
40764
40765 echo "$as_me:$LINENO: checking for dld in -lshl_load" >&5
40766echo $ECHO_N "checking for dld in -lshl_load... $ECHO_C" >&6
40767if test "${ac_cv_lib_shl_load_dld+set}" = set; then
40768 echo $ECHO_N "(cached) $ECHO_C" >&6
40769else
40770 ac_check_lib_save_LIBS=$LIBS
40771LIBS="-lshl_load $LIBS"
40772cat >conftest.$ac_ext <<_ACEOF
40773/* confdefs.h. */
40774_ACEOF
40775cat confdefs.h >>conftest.$ac_ext
40776cat >>conftest.$ac_ext <<_ACEOF
40777/* end confdefs.h. */
40778
40779/* Override any gcc2 internal prototype to avoid an error. */
40780#ifdef __cplusplus
40781extern "C"
40782#endif
40783/* We use char because int might match the return type of a gcc2
40784 builtin and then its argument prototype would still apply. */
40785char dld ();
40786int
40787main ()
40788{
40789dld ();
40790 ;
40791 return 0;
40792}
40793_ACEOF
40794rm -f conftest.$ac_objext conftest$ac_exeext
40795if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 40796 (eval $ac_link) 2>conftest.er1
a848cd7e 40797 ac_status=$?
ac1cb8d3
VS
40798 grep -v '^ *+' conftest.er1 >conftest.err
40799 rm -f conftest.er1
40800 cat conftest.err >&5
a848cd7e
SC
40801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40802 (exit $ac_status); } &&
3f60522a
JS
40803 { ac_try='test -z "$ac_cxx_werror_flag"
40804 || test ! -s conftest.err'
ac1cb8d3
VS
40805 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40806 (eval $ac_try) 2>&5
40807 ac_status=$?
40808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40809 (exit $ac_status); }; } &&
40810 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
40811 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40812 (eval $ac_try) 2>&5
40813 ac_status=$?
40814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40815 (exit $ac_status); }; }; then
40816 ac_cv_lib_shl_load_dld=yes
40817else
40818 echo "$as_me: failed program was:" >&5
40819sed 's/^/| /' conftest.$ac_ext >&5
40820
40821ac_cv_lib_shl_load_dld=no
40822fi
ac1cb8d3
VS
40823rm -f conftest.err conftest.$ac_objext \
40824 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
40825LIBS=$ac_check_lib_save_LIBS
40826fi
40827echo "$as_me:$LINENO: result: $ac_cv_lib_shl_load_dld" >&5
40828echo "${ECHO_T}$ac_cv_lib_shl_load_dld" >&6
40829if test $ac_cv_lib_shl_load_dld = yes; then
40830
40831 HAVE_SHL_FUNCS=1
40832 DL_LINK=" -ldld$DL_LINK"
40833
40834fi
40835
40836
40837fi
40838done
40839
40840
40841fi
40842
40843
40844fi
40845done
40846
40847
40848 if test "$HAVE_DL_FUNCS" = 1; then
40849
40850for ac_func in dlerror
40851do
40852as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
40853echo "$as_me:$LINENO: checking for $ac_func" >&5
40854echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
40855if eval "test \"\${$as_ac_var+set}\" = set"; then
40856 echo $ECHO_N "(cached) $ECHO_C" >&6
40857else
40858 cat >conftest.$ac_ext <<_ACEOF
40859/* confdefs.h. */
40860_ACEOF
40861cat confdefs.h >>conftest.$ac_ext
40862cat >>conftest.$ac_ext <<_ACEOF
40863/* end confdefs.h. */
ac1cb8d3
VS
40864/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
40865 For example, HP-UX 11i <limits.h> declares gettimeofday. */
40866#define $ac_func innocuous_$ac_func
40867
a848cd7e
SC
40868/* System header to define __stub macros and hopefully few prototypes,
40869 which can conflict with char $ac_func (); below.
40870 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40871 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 40872
a848cd7e
SC
40873#ifdef __STDC__
40874# include <limits.h>
40875#else
40876# include <assert.h>
40877#endif
ac1cb8d3
VS
40878
40879#undef $ac_func
40880
a848cd7e
SC
40881/* Override any gcc2 internal prototype to avoid an error. */
40882#ifdef __cplusplus
40883extern "C"
40884{
40885#endif
40886/* We use char because int might match the return type of a gcc2
40887 builtin and then its argument prototype would still apply. */
40888char $ac_func ();
40889/* The GNU C library defines this for functions which it implements
40890 to always fail with ENOSYS. Some functions are actually named
40891 something starting with __ and the normal name is an alias. */
40892#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
40893choke me
40894#else
40895char (*f) () = $ac_func;
40896#endif
40897#ifdef __cplusplus
40898}
40899#endif
40900
40901int
40902main ()
40903{
40904return f != $ac_func;
40905 ;
40906 return 0;
40907}
40908_ACEOF
40909rm -f conftest.$ac_objext conftest$ac_exeext
40910if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 40911 (eval $ac_link) 2>conftest.er1
a848cd7e 40912 ac_status=$?
ac1cb8d3
VS
40913 grep -v '^ *+' conftest.er1 >conftest.err
40914 rm -f conftest.er1
40915 cat conftest.err >&5
a848cd7e
SC
40916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40917 (exit $ac_status); } &&
3f60522a
JS
40918 { ac_try='test -z "$ac_cxx_werror_flag"
40919 || test ! -s conftest.err'
ac1cb8d3
VS
40920 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40921 (eval $ac_try) 2>&5
40922 ac_status=$?
40923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40924 (exit $ac_status); }; } &&
40925 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
40926 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40927 (eval $ac_try) 2>&5
40928 ac_status=$?
40929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40930 (exit $ac_status); }; }; then
40931 eval "$as_ac_var=yes"
40932else
40933 echo "$as_me: failed program was:" >&5
40934sed 's/^/| /' conftest.$ac_ext >&5
40935
40936eval "$as_ac_var=no"
40937fi
ac1cb8d3
VS
40938rm -f conftest.err conftest.$ac_objext \
40939 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
40940fi
40941echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
40942echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
40943if test `eval echo '${'$as_ac_var'}'` = yes; then
40944 cat >>confdefs.h <<_ACEOF
40945#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
40946_ACEOF
40947 cat >>confdefs.h <<\_ACEOF
40948#define HAVE_DLERROR 1
40949_ACEOF
40950
40951else
40952
40953 echo "$as_me:$LINENO: checking for dlerror in -ldl" >&5
40954echo $ECHO_N "checking for dlerror in -ldl... $ECHO_C" >&6
40955if test "${ac_cv_lib_dl_dlerror+set}" = set; then
40956 echo $ECHO_N "(cached) $ECHO_C" >&6
40957else
40958 ac_check_lib_save_LIBS=$LIBS
40959LIBS="-ldl $LIBS"
40960cat >conftest.$ac_ext <<_ACEOF
40961/* confdefs.h. */
40962_ACEOF
40963cat confdefs.h >>conftest.$ac_ext
40964cat >>conftest.$ac_ext <<_ACEOF
40965/* end confdefs.h. */
40966
40967/* Override any gcc2 internal prototype to avoid an error. */
40968#ifdef __cplusplus
40969extern "C"
40970#endif
40971/* We use char because int might match the return type of a gcc2
40972 builtin and then its argument prototype would still apply. */
40973char dlerror ();
40974int
40975main ()
40976{
40977dlerror ();
40978 ;
40979 return 0;
40980}
40981_ACEOF
40982rm -f conftest.$ac_objext conftest$ac_exeext
40983if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 40984 (eval $ac_link) 2>conftest.er1
a848cd7e 40985 ac_status=$?
ac1cb8d3
VS
40986 grep -v '^ *+' conftest.er1 >conftest.err
40987 rm -f conftest.er1
40988 cat conftest.err >&5
a848cd7e
SC
40989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40990 (exit $ac_status); } &&
3f60522a
JS
40991 { ac_try='test -z "$ac_cxx_werror_flag"
40992 || test ! -s conftest.err'
ac1cb8d3
VS
40993 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40994 (eval $ac_try) 2>&5
40995 ac_status=$?
40996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40997 (exit $ac_status); }; } &&
40998 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
40999 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41000 (eval $ac_try) 2>&5
41001 ac_status=$?
41002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41003 (exit $ac_status); }; }; then
41004 ac_cv_lib_dl_dlerror=yes
41005else
41006 echo "$as_me: failed program was:" >&5
41007sed 's/^/| /' conftest.$ac_ext >&5
41008
41009ac_cv_lib_dl_dlerror=no
41010fi
ac1cb8d3
VS
41011rm -f conftest.err conftest.$ac_objext \
41012 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
41013LIBS=$ac_check_lib_save_LIBS
41014fi
41015echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlerror" >&5
41016echo "${ECHO_T}$ac_cv_lib_dl_dlerror" >&6
41017if test $ac_cv_lib_dl_dlerror = yes; then
41018 cat >>confdefs.h <<\_ACEOF
41019#define HAVE_DLERROR 1
41020_ACEOF
41021
41022fi
41023
41024
41025
41026fi
41027done
41028
41029 fi
41030 fi
41031
41032 if test "$HAVE_DL_FUNCS" = 0; then
41033 if test "$HAVE_SHL_FUNCS" = 0; then
47a7e797 41034 if test "$USE_UNIX" = 1 -o "$USE_DOS" = 1; then
a848cd7e
SC
41035 { echo "$as_me:$LINENO: WARNING: Missing dynamic loading support, several features will be disabled" >&5
41036echo "$as_me: WARNING: Missing dynamic loading support, several features will be disabled" >&2;}
41037 wxUSE_DYNAMIC_LOADER=no
41038 wxUSE_DYNLIB_CLASS=no
41039 else
41040 { echo "$as_me:$LINENO: WARNING: Assuming wxLibrary class works on this platform" >&5
41041echo "$as_me: WARNING: Assuming wxLibrary class works on this platform" >&2;}
41042 fi
41043 fi
41044 fi
41045 fi
41046fi
41047
41048if test "$wxUSE_DYNAMIC_LOADER" = "yes" ; then
41049 cat >>confdefs.h <<\_ACEOF
41050#define wxUSE_DYNAMIC_LOADER 1
41051_ACEOF
41052
41053fi
41054if test "$wxUSE_DYNLIB_CLASS" = "yes" ; then
41055 cat >>confdefs.h <<\_ACEOF
41056#define wxUSE_DYNLIB_CLASS 1
41057_ACEOF
41058
41059fi
41060
41061
41062
41063if test "$wxUSE_PLUGINS" = "yes" ; then
41064 if test "$wxUSE_SHARED" = "no" ; then
41065 { echo "$as_me:$LINENO: WARNING: plugins supported only in shared build, disabling" >&5
41066echo "$as_me: WARNING: plugins supported only in shared build, disabling" >&2;}
41067 wxUSE_PLUGINS=no
41068 fi
41069 if test "$wxUSE_MONOLITHIC" = "yes" ; then
41070 { echo "$as_me:$LINENO: WARNING: plugins not supported monolithic build, disabling" >&5
41071echo "$as_me: WARNING: plugins not supported monolithic build, disabling" >&2;}
41072 wxUSE_PLUGINS=no
41073 fi
41074 if test "$wxUSE_DYNLIB_CLASS" = "no" ; then
41075 { echo "$as_me:$LINENO: WARNING: plugins require wxDynamicLibrary, disabling" >&5
41076echo "$as_me: WARNING: plugins require wxDynamicLibrary, disabling" >&2;}
41077 wxUSE_PLUGINS=no
41078 fi
41079 if test "$wxUSE_PLUGINS" = "yes" ; then
41080 cat >>confdefs.h <<\_ACEOF
41081#define wxUSE_PLUGINS 1
41082_ACEOF
41083
41084 fi
41085fi
41086
41087
41088if test "$wxUSE_STL" = "yes"; then
41089 cat >>confdefs.h <<\_ACEOF
41090#define wxUSE_STL 1
41091_ACEOF
41092
41093fi
41094
41095if test "$wxUSE_APPLE_IEEE" = "yes"; then
41096 cat >>confdefs.h <<\_ACEOF
41097#define wxUSE_APPLE_IEEE 1
41098_ACEOF
41099
41100fi
41101
41102if test "$wxUSE_TIMER" = "yes"; then
41103 cat >>confdefs.h <<\_ACEOF
41104#define wxUSE_TIMER 1
41105_ACEOF
41106
41107fi
41108
9c112555 41109if test "$USE_UNIX" = "1" ; then
d12aef51
VZ
41110 echo "$as_me:$LINENO: checking for ioctl() in sys/soundcard.h" >&5
41111echo $ECHO_N "checking for ioctl() in sys/soundcard.h... $ECHO_C" >&6
41112if test "${ac_cv_header_sys_soundcard+set}" = set; then
a848cd7e 41113 echo $ECHO_N "(cached) $ECHO_C" >&6
a848cd7e 41114else
d12aef51
VZ
41115
41116 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
41117/* confdefs.h. */
41118_ACEOF
41119cat confdefs.h >>conftest.$ac_ext
41120cat >>conftest.$ac_ext <<_ACEOF
41121/* end confdefs.h. */
d12aef51
VZ
41122
41123 #include <sys/soundcard.h>
41124
41125int
41126main ()
41127{
41128
41129 ioctl(0, SNDCTL_DSP_SYNC, 0);
41130
41131 ;
41132 return 0;
41133}
a848cd7e 41134_ACEOF
d12aef51
VZ
41135rm -f conftest.$ac_objext conftest$ac_exeext
41136if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41137 (eval $ac_link) 2>conftest.er1
a848cd7e 41138 ac_status=$?
ac1cb8d3
VS
41139 grep -v '^ *+' conftest.er1 >conftest.err
41140 rm -f conftest.er1
41141 cat conftest.err >&5
a848cd7e
SC
41142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41143 (exit $ac_status); } &&
3f60522a
JS
41144 { ac_try='test -z "$ac_cxx_werror_flag"
41145 || test ! -s conftest.err'
ac1cb8d3
VS
41146 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41147 (eval $ac_try) 2>&5
41148 ac_status=$?
41149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41150 (exit $ac_status); }; } &&
d12aef51 41151 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
41152 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41153 (eval $ac_try) 2>&5
41154 ac_status=$?
41155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41156 (exit $ac_status); }; }; then
d12aef51 41157 ac_cv_header_sys_soundcard=yes
a848cd7e
SC
41158else
41159 echo "$as_me: failed program was:" >&5
41160sed 's/^/| /' conftest.$ac_ext >&5
41161
a848cd7e 41162
d12aef51
VZ
41163 saveLibs="$LIBS"
41164 LIBS="$saveLibs -lossaudio"
41165 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
41166/* confdefs.h. */
41167_ACEOF
41168cat confdefs.h >>conftest.$ac_ext
41169cat >>conftest.$ac_ext <<_ACEOF
41170/* end confdefs.h. */
d12aef51
VZ
41171
41172 #include <sys/soundcard.h>
41173
41174int
41175main ()
41176{
41177
41178 ioctl(0, SNDCTL_DSP_SYNC, 0);
41179
41180 ;
41181 return 0;
41182}
a848cd7e 41183_ACEOF
d12aef51
VZ
41184rm -f conftest.$ac_objext conftest$ac_exeext
41185if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41186 (eval $ac_link) 2>conftest.er1
a848cd7e
SC
41187 ac_status=$?
41188 grep -v '^ *+' conftest.er1 >conftest.err
41189 rm -f conftest.er1
41190 cat conftest.err >&5
41191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
d12aef51 41192 (exit $ac_status); } &&
3f60522a
JS
41193 { ac_try='test -z "$ac_cxx_werror_flag"
41194 || test ! -s conftest.err'
d12aef51
VZ
41195 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41196 (eval $ac_try) 2>&5
41197 ac_status=$?
41198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41199 (exit $ac_status); }; } &&
41200 { ac_try='test -s conftest$ac_exeext'
41201 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41202 (eval $ac_try) 2>&5
41203 ac_status=$?
41204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41205 (exit $ac_status); }; }; then
41206 ac_cv_header_sys_soundcard=yes
a848cd7e
SC
41207else
41208 echo "$as_me: failed program was:" >&5
41209sed 's/^/| /' conftest.$ac_ext >&5
41210
a848cd7e 41211
d12aef51
VZ
41212 LIBS="$saveLibs"
41213 ac_cv_header_sys_soundcard=no
41214
41215
a848cd7e 41216fi
d12aef51
VZ
41217rm -f conftest.err conftest.$ac_objext \
41218 conftest$ac_exeext conftest.$ac_ext
41219
a848cd7e
SC
41220
41221fi
d12aef51
VZ
41222rm -f conftest.err conftest.$ac_objext \
41223 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
41224
41225fi
d12aef51
VZ
41226echo "$as_me:$LINENO: result: $ac_cv_header_sys_soundcard" >&5
41227echo "${ECHO_T}$ac_cv_header_sys_soundcard" >&6
a848cd7e 41228
d12aef51
VZ
41229 if test "$ac_cv_header_sys_soundcard" = "yes"; then
41230 cat >>confdefs.h <<\_ACEOF
41231#define HAVE_SYS_SOUNDCARD_H 1
41232_ACEOF
a848cd7e 41233
d12aef51
VZ
41234 else
41235 DISABLED_CONTRIB="$DISABLED_CONTRIB mmedia"
41236 fi
9c112555
MW
41237fi
41238WITH_PLUGIN_SDL=0
41239if test "$wxUSE_SOUND" = "yes"; then
41240 if test "$USE_UNIX" = "1" ; then
a848cd7e
SC
41241 if test "$wxUSE_LIBSDL" != "no"; then
41242
41243# Check whether --with-sdl-prefix or --without-sdl-prefix was given.
41244if test "${with_sdl_prefix+set}" = set; then
41245 withval="$with_sdl_prefix"
41246 sdl_prefix="$withval"
41247else
41248 sdl_prefix=""
41249fi;
41250
41251# Check whether --with-sdl-exec-prefix or --without-sdl-exec-prefix was given.
41252if test "${with_sdl_exec_prefix+set}" = set; then
41253 withval="$with_sdl_exec_prefix"
41254 sdl_exec_prefix="$withval"
41255else
41256 sdl_exec_prefix=""
41257fi;
41258# Check whether --enable-sdltest or --disable-sdltest was given.
41259if test "${enable_sdltest+set}" = set; then
41260 enableval="$enable_sdltest"
41261
41262else
41263 enable_sdltest=yes
41264fi;
41265
41266 if test x$sdl_exec_prefix != x ; then
41267 sdl_args="$sdl_args --exec-prefix=$sdl_exec_prefix"
41268 if test x${SDL_CONFIG+set} != xset ; then
41269 SDL_CONFIG=$sdl_exec_prefix/bin/sdl-config
41270 fi
41271 fi
41272 if test x$sdl_prefix != x ; then
41273 sdl_args="$sdl_args --prefix=$sdl_prefix"
41274 if test x${SDL_CONFIG+set} != xset ; then
41275 SDL_CONFIG=$sdl_prefix/bin/sdl-config
41276 fi
41277 fi
41278
41279
41280 PATH="$prefix/bin:$prefix/usr/bin:$PATH"
41281 # Extract the first word of "sdl-config", so it can be a program name with args.
41282set dummy sdl-config; ac_word=$2
41283echo "$as_me:$LINENO: checking for $ac_word" >&5
41284echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
41285if test "${ac_cv_path_SDL_CONFIG+set}" = set; then
41286 echo $ECHO_N "(cached) $ECHO_C" >&6
41287else
41288 case $SDL_CONFIG in
41289 [\\/]* | ?:[\\/]*)
41290 ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a path.
41291 ;;
41292 *)
41293 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
41294for as_dir in $PATH
41295do
41296 IFS=$as_save_IFS
41297 test -z "$as_dir" && as_dir=.
41298 for ac_exec_ext in '' $ac_executable_extensions; do
41299 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
41300 ac_cv_path_SDL_CONFIG="$as_dir/$ac_word$ac_exec_ext"
41301 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
41302 break 2
41303 fi
41304done
41305done
41306
41307 test -z "$ac_cv_path_SDL_CONFIG" && ac_cv_path_SDL_CONFIG="no"
41308 ;;
41309esac
41310fi
41311SDL_CONFIG=$ac_cv_path_SDL_CONFIG
41312
41313if test -n "$SDL_CONFIG"; then
41314 echo "$as_me:$LINENO: result: $SDL_CONFIG" >&5
41315echo "${ECHO_T}$SDL_CONFIG" >&6
41316else
41317 echo "$as_me:$LINENO: result: no" >&5
41318echo "${ECHO_T}no" >&6
41319fi
41320
41321 min_sdl_version=1.2.0
41322 echo "$as_me:$LINENO: checking for SDL - version >= $min_sdl_version" >&5
41323echo $ECHO_N "checking for SDL - version >= $min_sdl_version... $ECHO_C" >&6
41324 no_sdl=""
41325 if test "$SDL_CONFIG" = "no" ; then
41326 no_sdl=yes
41327 else
41328 SDL_CFLAGS=`$SDL_CONFIG $sdlconf_args --cflags`
41329 SDL_LIBS=`$SDL_CONFIG $sdlconf_args --libs`
41330
41331 sdl_major_version=`$SDL_CONFIG $sdl_args --version | \
41332 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
41333 sdl_minor_version=`$SDL_CONFIG $sdl_args --version | \
41334 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
41335 sdl_micro_version=`$SDL_CONFIG $sdl_config_args --version | \
41336 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
41337 if test "x$enable_sdltest" = "xyes" ; then
41338 ac_save_CFLAGS="$CFLAGS"
94acd38e 41339 ac_save_CXXFLAGS="$CXXFLAGS"
a848cd7e
SC
41340 ac_save_LIBS="$LIBS"
41341 CFLAGS="$CFLAGS $SDL_CFLAGS"
94acd38e 41342 CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
a848cd7e
SC
41343 LIBS="$LIBS $SDL_LIBS"
41344 rm -f conf.sdltest
41345 if test "$cross_compiling" = yes; then
41346 echo $ac_n "cross compiling; assumed OK... $ac_c"
41347else
41348 cat >conftest.$ac_ext <<_ACEOF
41349/* confdefs.h. */
41350_ACEOF
41351cat confdefs.h >>conftest.$ac_ext
41352cat >>conftest.$ac_ext <<_ACEOF
41353/* end confdefs.h. */
41354
41355#include <stdio.h>
41356#include <stdlib.h>
41357#include <string.h>
41358#include "SDL.h"
41359
41360char*
41361my_strdup (char *str)
41362{
41363 char *new_str;
41364
41365 if (str)
41366 {
41367 new_str = (char *)malloc ((strlen (str) + 1) * sizeof(char));
41368 strcpy (new_str, str);
41369 }
41370 else
41371 new_str = NULL;
41372
41373 return new_str;
41374}
41375
41376int main (int argc, char *argv[])
41377{
41378 int major, minor, micro;
41379 char *tmp_version;
41380
41381 /* This hangs on some systems (?)
41382 system ("touch conf.sdltest");
41383 */
41384 { FILE *fp = fopen("conf.sdltest", "a"); if ( fp ) fclose(fp); }
41385
41386 /* HP/UX 9 (%@#!) writes to sscanf strings */
41387 tmp_version = my_strdup("$min_sdl_version");
41388 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
41389 printf("%s, bad version string\n", "$min_sdl_version");
41390 exit(1);
41391 }
41392
41393 if (($sdl_major_version > major) ||
41394 (($sdl_major_version == major) && ($sdl_minor_version > minor)) ||
41395 (($sdl_major_version == major) && ($sdl_minor_version == minor) && ($sdl_micro_version >= micro)))
41396 {
41397 return 0;
41398 }
41399 else
41400 {
41401 printf("\n*** 'sdl-config --version' returned %d.%d.%d, but the minimum version\n", $sdl_major_version, $sdl_minor_version, $sdl_micro_version);
41402 printf("*** of SDL required is %d.%d.%d. If sdl-config is correct, then it is\n", major, minor, micro);
41403 printf("*** best to upgrade to the required version.\n");
41404 printf("*** If sdl-config was wrong, set the environment variable SDL_CONFIG\n");
41405 printf("*** to point to the correct copy of sdl-config, and remove the file\n");
41406 printf("*** config.cache before re-running configure\n");
41407 return 1;
41408 }
41409}
41410
41411
41412_ACEOF
41413rm -f conftest$ac_exeext
41414if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41415 (eval $ac_link) 2>&5
41416 ac_status=$?
41417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41418 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
41419 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41420 (eval $ac_try) 2>&5
41421 ac_status=$?
41422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41423 (exit $ac_status); }; }; then
41424 :
41425else
41426 echo "$as_me: program exited with status $ac_status" >&5
41427echo "$as_me: failed program was:" >&5
41428sed 's/^/| /' conftest.$ac_ext >&5
41429
41430( exit $ac_status )
41431no_sdl=yes
41432fi
ac1cb8d3 41433rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
41434fi
41435 CFLAGS="$ac_save_CFLAGS"
94acd38e 41436 CXXFLAGS="$ac_save_CXXFLAGS"
a848cd7e
SC
41437 LIBS="$ac_save_LIBS"
41438 fi
41439 fi
41440 if test "x$no_sdl" = x ; then
41441 echo "$as_me:$LINENO: result: yes" >&5
41442echo "${ECHO_T}yes" >&6
41443
41444 EXTRALIBS_SDL="$SDL_LIBS"
c92ad099 41445 CXXFLAGS="$SDL_CFLAGS $CXXFLAGS"
a848cd7e
SC
41446 cat >>confdefs.h <<\_ACEOF
41447#define wxUSE_LIBSDL 1
41448_ACEOF
41449
41450
41451 else
41452 echo "$as_me:$LINENO: result: no" >&5
41453echo "${ECHO_T}no" >&6
41454 if test "$SDL_CONFIG" = "no" ; then
41455 echo "*** The sdl-config script installed by SDL could not be found"
41456 echo "*** If SDL was installed in PREFIX, make sure PREFIX/bin is in"
41457 echo "*** your path, or set the SDL_CONFIG environment variable to the"
41458 echo "*** full path to sdl-config."
41459 else
41460 if test -f conf.sdltest ; then
41461 :
41462 else
41463 echo "*** Could not run SDL test program, checking why..."
41464 CFLAGS="$CFLAGS $SDL_CFLAGS"
94acd38e 41465 CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
a848cd7e
SC
41466 LIBS="$LIBS $SDL_LIBS"
41467 cat >conftest.$ac_ext <<_ACEOF
41468/* confdefs.h. */
41469_ACEOF
41470cat confdefs.h >>conftest.$ac_ext
41471cat >>conftest.$ac_ext <<_ACEOF
41472/* end confdefs.h. */
41473
41474#include <stdio.h>
41475#include "SDL.h"
41476
41477int main(int argc, char *argv[])
41478{ return 0; }
41479#undef main
41480#define main K_and_R_C_main
41481
41482int
41483main ()
41484{
41485 return 0;
41486 ;
41487 return 0;
41488}
41489_ACEOF
41490rm -f conftest.$ac_objext conftest$ac_exeext
41491if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 41492 (eval $ac_link) 2>conftest.er1
a848cd7e 41493 ac_status=$?
ac1cb8d3
VS
41494 grep -v '^ *+' conftest.er1 >conftest.err
41495 rm -f conftest.er1
41496 cat conftest.err >&5
a848cd7e
SC
41497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41498 (exit $ac_status); } &&
3f60522a
JS
41499 { ac_try='test -z "$ac_cxx_werror_flag"
41500 || test ! -s conftest.err'
ac1cb8d3
VS
41501 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41502 (eval $ac_try) 2>&5
41503 ac_status=$?
41504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41505 (exit $ac_status); }; } &&
41506 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
41507 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41508 (eval $ac_try) 2>&5
41509 ac_status=$?
41510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41511 (exit $ac_status); }; }; then
41512 echo "*** The test program compiled, but did not run. This usually means"
41513 echo "*** that the run-time linker is not finding SDL or finding the wrong"
41514 echo "*** version of SDL. If it is not finding SDL, you'll need to set your"
41515 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
41516 echo "*** to the installed location Also, make sure you have run ldconfig if that"
41517 echo "*** is required on your system"
41518 echo "***"
41519 echo "*** If you have an old version installed, it is best to remove it, although"
41520 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
41521else
41522 echo "$as_me: failed program was:" >&5
41523sed 's/^/| /' conftest.$ac_ext >&5
41524
41525 echo "*** The test program failed to compile or link. See the file config.log for the"
41526 echo "*** exact error that occured. This usually means SDL was incorrectly installed"
41527 echo "*** or that you have moved SDL since it was installed. In the latter case, you"
41528 echo "*** may want to edit the sdl-config script: $SDL_CONFIG"
41529fi
ac1cb8d3
VS
41530rm -f conftest.err conftest.$ac_objext \
41531 conftest$ac_exeext conftest.$ac_ext
a848cd7e 41532 CFLAGS="$ac_save_CFLAGS"
94acd38e 41533 CXXFLAGS="$ac_save_CXXFLAGS"
a848cd7e
SC
41534 LIBS="$ac_save_LIBS"
41535 fi
41536 fi
41537 SDL_CFLAGS=""
41538 SDL_LIBS=""
41539 wxUSE_LIBSDL="no"
41540 fi
41541
41542
41543 rm -f conf.sdltest
41544
41545 if test "$wxUSE_LIBSDL" = "yes" -a "$wxUSE_PLUGINS" = "yes" ; then
41546 WITH_PLUGIN_SDL=1
41547 fi
41548 fi
41549 fi
41550
41551 cat >>confdefs.h <<\_ACEOF
41552#define wxUSE_SOUND 1
41553_ACEOF
41554
41555 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sound"
41556fi
41557
d1c38808
VZ
41558if test "$WXGTK20" = 1; then
41559 if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then
41560 if test "$wxUSE_LIBGNOMEPRINT" = "yes" ; then
41561
41562
41563 succeeded=no
41564
41565 if test -z "$PKG_CONFIG"; then
41566 # Extract the first word of "pkg-config", so it can be a program name with args.
41567set dummy pkg-config; ac_word=$2
41568echo "$as_me:$LINENO: checking for $ac_word" >&5
41569echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
41570if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
41571 echo $ECHO_N "(cached) $ECHO_C" >&6
41572else
41573 case $PKG_CONFIG in
41574 [\\/]* | ?:[\\/]*)
41575 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
41576 ;;
41577 *)
41578 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
41579for as_dir in $PATH
41580do
41581 IFS=$as_save_IFS
41582 test -z "$as_dir" && as_dir=.
41583 for ac_exec_ext in '' $ac_executable_extensions; do
41584 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
41585 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
41586 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
41587 break 2
41588 fi
41589done
41590done
41591
41592 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
41593 ;;
41594esac
41595fi
41596PKG_CONFIG=$ac_cv_path_PKG_CONFIG
41597
41598if test -n "$PKG_CONFIG"; then
41599 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
41600echo "${ECHO_T}$PKG_CONFIG" >&6
41601else
41602 echo "$as_me:$LINENO: result: no" >&5
41603echo "${ECHO_T}no" >&6
41604fi
41605
41606 fi
41607
41608 if test "$PKG_CONFIG" = "no" ; then
41609 echo "*** The pkg-config script could not be found. Make sure it is"
41610 echo "*** in your path, or set the PKG_CONFIG environment variable"
41611 echo "*** to the full path to pkg-config."
41612 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
41613 else
41614 PKG_CONFIG_MIN_VERSION=0.9.0
41615 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
ffa762ff
VS
41616 echo "$as_me:$LINENO: checking for libgnomeprintui-2.2 >= 2.8" >&5
41617echo $ECHO_N "checking for libgnomeprintui-2.2 >= 2.8... $ECHO_C" >&6
d1c38808 41618
ffa762ff 41619 if $PKG_CONFIG --exists "libgnomeprintui-2.2 >= 2.8" ; then
d1c38808
VZ
41620 echo "$as_me:$LINENO: result: yes" >&5
41621echo "${ECHO_T}yes" >&6
41622 succeeded=yes
41623
41624 echo "$as_me:$LINENO: checking LIBGNOMEPRINTUI_CFLAGS" >&5
41625echo $ECHO_N "checking LIBGNOMEPRINTUI_CFLAGS... $ECHO_C" >&6
ffa762ff 41626 LIBGNOMEPRINTUI_CFLAGS=`$PKG_CONFIG --cflags "libgnomeprintui-2.2 >= 2.8"`
d1c38808
VZ
41627 echo "$as_me:$LINENO: result: $LIBGNOMEPRINTUI_CFLAGS" >&5
41628echo "${ECHO_T}$LIBGNOMEPRINTUI_CFLAGS" >&6
41629
41630 echo "$as_me:$LINENO: checking LIBGNOMEPRINTUI_LIBS" >&5
41631echo $ECHO_N "checking LIBGNOMEPRINTUI_LIBS... $ECHO_C" >&6
ffa762ff 41632 LIBGNOMEPRINTUI_LIBS=`$PKG_CONFIG --libs "libgnomeprintui-2.2 >= 2.8"`
d1c38808
VZ
41633 echo "$as_me:$LINENO: result: $LIBGNOMEPRINTUI_LIBS" >&5
41634echo "${ECHO_T}$LIBGNOMEPRINTUI_LIBS" >&6
41635 else
41636 LIBGNOMEPRINTUI_CFLAGS=""
41637 LIBGNOMEPRINTUI_LIBS=""
41638 ## If we have a custom action on failure, don't print errors, but
41639 ## do set a variable so people can do so.
ffa762ff 41640 LIBGNOMEPRINTUI_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libgnomeprintui-2.2 >= 2.8"`
d1c38808
VZ
41641
41642 fi
41643
41644
41645
41646 else
41647 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
41648 echo "*** See http://www.freedesktop.org/software/pkgconfig"
41649 fi
41650 fi
41651
41652 if test $succeeded = yes; then
41653
c92ad099 41654 CXXFLAGS="$LIBGNOMEPRINTUI_CFLAGS $CXXFLAGS"
d1c38808
VZ
41655 cat >>confdefs.h <<\_ACEOF
41656#define wxUSE_LIBGNOMEPRINT 1
41657_ACEOF
41658
41659
41660 else
41661
41662 { echo "$as_me:$LINENO: WARNING: libgnomeprintui not found, library will use standard PostScript printing" >&5
41663echo "$as_me: WARNING: libgnomeprintui not found, library will use standard PostScript printing" >&2;}
41664 wxUSE_LIBGNOMEPRINT="no"
41665
41666
41667 fi
41668
41669 fi
41670 fi
41671fi
41672
2b850ae1
RR
41673if test "$WXGTK20" = 1; then
41674 if test "$wxUSE_MIMETYPE" = "yes" ; then
41675 if test "$wxUSE_LIBGNOMEVFS" = "yes" ; then
41676
41677
41678 succeeded=no
41679
41680 if test -z "$PKG_CONFIG"; then
41681 # Extract the first word of "pkg-config", so it can be a program name with args.
41682set dummy pkg-config; ac_word=$2
41683echo "$as_me:$LINENO: checking for $ac_word" >&5
41684echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
41685if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
41686 echo $ECHO_N "(cached) $ECHO_C" >&6
41687else
41688 case $PKG_CONFIG in
41689 [\\/]* | ?:[\\/]*)
41690 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
41691 ;;
41692 *)
41693 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
41694for as_dir in $PATH
41695do
41696 IFS=$as_save_IFS
41697 test -z "$as_dir" && as_dir=.
41698 for ac_exec_ext in '' $ac_executable_extensions; do
41699 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
41700 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
41701 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
41702 break 2
41703 fi
41704done
41705done
41706
41707 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
41708 ;;
41709esac
41710fi
41711PKG_CONFIG=$ac_cv_path_PKG_CONFIG
41712
41713if test -n "$PKG_CONFIG"; then
41714 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
41715echo "${ECHO_T}$PKG_CONFIG" >&6
41716else
41717 echo "$as_me:$LINENO: result: no" >&5
41718echo "${ECHO_T}no" >&6
41719fi
41720
41721 fi
41722
41723 if test "$PKG_CONFIG" = "no" ; then
41724 echo "*** The pkg-config script could not be found. Make sure it is"
41725 echo "*** in your path, or set the PKG_CONFIG environment variable"
41726 echo "*** to the full path to pkg-config."
41727 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
41728 else
41729 PKG_CONFIG_MIN_VERSION=0.9.0
41730 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
41731 echo "$as_me:$LINENO: checking for gnome-vfs-2.0 >= 2.0" >&5
41732echo $ECHO_N "checking for gnome-vfs-2.0 >= 2.0... $ECHO_C" >&6
41733
41734 if $PKG_CONFIG --exists "gnome-vfs-2.0 >= 2.0" ; then
41735 echo "$as_me:$LINENO: result: yes" >&5
41736echo "${ECHO_T}yes" >&6
41737 succeeded=yes
41738
41739 echo "$as_me:$LINENO: checking GNOMEVFS_CFLAGS" >&5
41740echo $ECHO_N "checking GNOMEVFS_CFLAGS... $ECHO_C" >&6
41741 GNOMEVFS_CFLAGS=`$PKG_CONFIG --cflags "gnome-vfs-2.0 >= 2.0"`
41742 echo "$as_me:$LINENO: result: $GNOMEVFS_CFLAGS" >&5
41743echo "${ECHO_T}$GNOMEVFS_CFLAGS" >&6
41744
41745 echo "$as_me:$LINENO: checking GNOMEVFS_LIBS" >&5
41746echo $ECHO_N "checking GNOMEVFS_LIBS... $ECHO_C" >&6
41747 GNOMEVFS_LIBS=`$PKG_CONFIG --libs "gnome-vfs-2.0 >= 2.0"`
41748 echo "$as_me:$LINENO: result: $GNOMEVFS_LIBS" >&5
41749echo "${ECHO_T}$GNOMEVFS_LIBS" >&6
41750 else
41751 GNOMEVFS_CFLAGS=""
41752 GNOMEVFS_LIBS=""
41753 ## If we have a custom action on failure, don't print errors, but
41754 ## do set a variable so people can do so.
41755 GNOMEVFS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gnome-vfs-2.0 >= 2.0"`
41756
41757 fi
41758
41759
41760
41761 else
41762 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
41763 echo "*** See http://www.freedesktop.org/software/pkgconfig"
41764 fi
41765 fi
41766
41767 if test $succeeded = yes; then
41768
41769 CXXFLAGS="$GNOMEVFS_CFLAGS $CXXFLAGS"
41770 cat >>confdefs.h <<\_ACEOF
41771#define wxUSE_LIBGNOMEVFS 1
41772_ACEOF
41773
41774
41775 else
41776
41777 { echo "$as_me:$LINENO: WARNING: libgnomevfs not found, library won't be able to associate MIME type" >&5
41778echo "$as_me: WARNING: libgnomevfs not found, library won't be able to associate MIME type" >&2;}
41779 wxUSE_LIBGNOMEVFS="no"
41780
41781
41782 fi
41783
41784 fi
41785 fi
41786fi
41787
3565d135
RR
41788if test "$WXGTK20" = 1; then
41789 if test "$wxUSE_LIBHILDON" = "yes" ; then
41790
41791 succeeded=no
41792
41793 if test -z "$PKG_CONFIG"; then
41794 # Extract the first word of "pkg-config", so it can be a program name with args.
41795set dummy pkg-config; ac_word=$2
41796echo "$as_me:$LINENO: checking for $ac_word" >&5
41797echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
41798if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
41799 echo $ECHO_N "(cached) $ECHO_C" >&6
41800else
41801 case $PKG_CONFIG in
41802 [\\/]* | ?:[\\/]*)
41803 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
41804 ;;
41805 *)
41806 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
41807for as_dir in $PATH
41808do
41809 IFS=$as_save_IFS
41810 test -z "$as_dir" && as_dir=.
41811 for ac_exec_ext in '' $ac_executable_extensions; do
41812 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
41813 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
41814 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
41815 break 2
41816 fi
41817done
41818done
41819
41820 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
41821 ;;
41822esac
41823fi
41824PKG_CONFIG=$ac_cv_path_PKG_CONFIG
41825
41826if test -n "$PKG_CONFIG"; then
41827 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
41828echo "${ECHO_T}$PKG_CONFIG" >&6
41829else
41830 echo "$as_me:$LINENO: result: no" >&5
41831echo "${ECHO_T}no" >&6
41832fi
41833
41834 fi
41835
41836 if test "$PKG_CONFIG" = "no" ; then
41837 echo "*** The pkg-config script could not be found. Make sure it is"
41838 echo "*** in your path, or set the PKG_CONFIG environment variable"
41839 echo "*** to the full path to pkg-config."
41840 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
41841 else
41842 PKG_CONFIG_MIN_VERSION=0.9.0
41843 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
41844 echo "$as_me:$LINENO: checking for hildon-lgpl >= 0.9" >&5
41845echo $ECHO_N "checking for hildon-lgpl >= 0.9... $ECHO_C" >&6
41846
41847 if $PKG_CONFIG --exists "hildon-lgpl >= 0.9" ; then
41848 echo "$as_me:$LINENO: result: yes" >&5
41849echo "${ECHO_T}yes" >&6
41850 succeeded=yes
41851
41852 echo "$as_me:$LINENO: checking HILDON_CFLAGS" >&5
41853echo $ECHO_N "checking HILDON_CFLAGS... $ECHO_C" >&6
41854 HILDON_CFLAGS=`$PKG_CONFIG --cflags "hildon-lgpl >= 0.9"`
41855 echo "$as_me:$LINENO: result: $HILDON_CFLAGS" >&5
41856echo "${ECHO_T}$HILDON_CFLAGS" >&6
41857
41858 echo "$as_me:$LINENO: checking HILDON_LIBS" >&5
41859echo $ECHO_N "checking HILDON_LIBS... $ECHO_C" >&6
41860 HILDON_LIBS=`$PKG_CONFIG --libs "hildon-lgpl >= 0.9"`
41861 echo "$as_me:$LINENO: result: $HILDON_LIBS" >&5
41862echo "${ECHO_T}$HILDON_LIBS" >&6
41863 else
41864 HILDON_CFLAGS=""
41865 HILDON_LIBS=""
41866 ## If we have a custom action on failure, don't print errors, but
41867 ## do set a variable so people can do so.
41868 HILDON_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "hildon-lgpl >= 0.9"`
41869
41870 fi
41871
41872
41873
41874 else
41875 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
41876 echo "*** See http://www.freedesktop.org/software/pkgconfig"
41877 fi
41878 fi
41879
41880 if test $succeeded = yes; then
41881
41882 EXTRALIBS_HILDON="$HILDON_LIBS"
41883 CXXFLAGS="$CXXFLAGS $HILDON_CFLAGS"
41884 cat >>confdefs.h <<\_ACEOF
41885#define wxUSE_LIBHILDON 1
41886_ACEOF
41887
41888
41889 else
41890
41891 { echo "$as_me:$LINENO: WARNING: libhildon_lgpl not found" >&5
41892echo "$as_me: WARNING: libhildon_lgpl not found" >&2;}
41893 wxUSE_LIBHILDON="no"
41894
41895
41896 fi
41897
41898 fi
41899fi
d1c38808 41900
a848cd7e
SC
41901if test "$wxUSE_CMDLINE_PARSER" = "yes"; then
41902 cat >>confdefs.h <<\_ACEOF
41903#define wxUSE_CMDLINE_PARSER 1
41904_ACEOF
41905
41906fi
41907
41908if test "$wxUSE_STOPWATCH" = "yes"; then
41909 cat >>confdefs.h <<\_ACEOF
41910#define wxUSE_STOPWATCH 1
41911_ACEOF
41912
41913fi
41914
41915if test "$wxUSE_DATETIME" = "yes"; then
41916 cat >>confdefs.h <<\_ACEOF
41917#define wxUSE_DATETIME 1
41918_ACEOF
41919
41920fi
41921
41922if test "$wxUSE_FILE" = "yes"; then
41923 cat >>confdefs.h <<\_ACEOF
41924#define wxUSE_FILE 1
41925_ACEOF
41926
41927fi
41928
41929if test "$wxUSE_FFILE" = "yes"; then
41930 cat >>confdefs.h <<\_ACEOF
41931#define wxUSE_FFILE 1
41932_ACEOF
41933
41934fi
41935
41936if test "$wxUSE_FILESYSTEM" = "yes"; then
41937 cat >>confdefs.h <<\_ACEOF
41938#define wxUSE_FILESYSTEM 1
41939_ACEOF
41940
41941fi
41942
41943if test "$wxUSE_FS_ZIP" = "yes"; then
41944 cat >>confdefs.h <<\_ACEOF
41945#define wxUSE_FS_ZIP 1
41946_ACEOF
41947
41948fi
41949
9e8e867f 41950if test "$wxUSE_ARCHIVE_STREAMS" = "yes"; then
a848cd7e 41951 cat >>confdefs.h <<\_ACEOF
9e8e867f 41952#define wxUSE_ARCHIVE_STREAMS 1
81f90336
MW
41953_ACEOF
41954
41955fi
41956
41957if test "$wxUSE_ZIPSTREAM" = "yes"; then
9e8e867f 41958 if test "$wxUSE_ARCHIVE_STREAMS" != "yes"; then
81f90336
MW
41959 { echo "$as_me:$LINENO: WARNING: wxZip requires wxArchive... disabled" >&5
41960echo "$as_me: WARNING: wxZip requires wxArchive... disabled" >&2;}
41961 elif test "$wxUSE_ZLIB" = "no"; then
41962 { echo "$as_me:$LINENO: WARNING: wxZip requires wxZlib... disabled" >&5
41963echo "$as_me: WARNING: wxZip requires wxZlib... disabled" >&2;}
41964 else
41965 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
41966#define wxUSE_ZIPSTREAM 1
41967_ACEOF
41968
81f90336 41969 fi
a848cd7e
SC
41970fi
41971
a848cd7e 41972if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
18228ab4
MW
41973 if test "$USE_UNIX" != 1; then
41974 { echo "$as_me:$LINENO: WARNING: Catching fatal exceptions not currently supported on this system, wxApp::OnFatalException will not be called" >&5
41975echo "$as_me: WARNING: Catching fatal exceptions not currently supported on this system, wxApp::OnFatalException will not be called" >&2;}
41976 wxUSE_ON_FATAL_EXCEPTION=no
41977 else
41978 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
41979#define wxUSE_ON_FATAL_EXCEPTION 1
41980_ACEOF
41981
18228ab4 41982 fi
a848cd7e
SC
41983fi
41984
eaff0f0d
VZ
41985if test "$wxUSE_STACKWALKER" = "yes"; then
41986 cat >>confdefs.h <<\_ACEOF
41987#define wxUSE_STACKWALKER 1
41988_ACEOF
41989
41990fi
41991
36b6448c 41992if test "$wxUSE_DEBUGREPORT" = "yes"; then
18228ab4
MW
41993 if test "$USE_UNIX" != "1" -a "$USE_WIN32" != "1"; then
41994 { echo "$as_me:$LINENO: WARNING: Creating debug reports not currently supported on this system, disabled" >&5
41995echo "$as_me: WARNING: Creating debug reports not currently supported on this system, disabled" >&2;}
dfe0c803
JS
41996 wxUSE_DEBUGREPORT=no
41997 else
41998 cat >>confdefs.h <<\_ACEOF
36b6448c
VZ
41999#define wxUSE_DEBUGREPORT 1
42000_ACEOF
42001
21dfc162
MW
42002 if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
42003 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS debugrpt"
42004 fi
dfe0c803 42005 fi
36b6448c
VZ
42006fi
42007
a848cd7e
SC
42008if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
42009 cat >>confdefs.h <<\_ACEOF
42010#define wxUSE_SNGLINST_CHECKER 1
42011_ACEOF
42012
42013fi
42014
42015if test "$wxUSE_BUSYINFO" = "yes"; then
42016 cat >>confdefs.h <<\_ACEOF
42017#define wxUSE_BUSYINFO 1
42018_ACEOF
42019
42020fi
42021
42022if test "$wxUSE_STD_IOSTREAM" = "yes"; then
42023 cat >>confdefs.h <<\_ACEOF
42024#define wxUSE_STD_IOSTREAM 1
42025_ACEOF
42026
42027fi
42028
59746b65
MW
42029if test "$wxUSE_STD_STRING" = "yes"; then
42030 cat >>confdefs.h <<\_ACEOF
42031#define wxUSE_STD_STRING 1
42032_ACEOF
42033
42034fi
42035
07158944
VZ
42036if test "$wxUSE_STDPATHS" = "yes"; then
42037 cat >>confdefs.h <<\_ACEOF
42038#define wxUSE_STDPATHS 1
42039_ACEOF
42040
42041fi
42042
a848cd7e
SC
42043if test "$wxUSE_TEXTBUFFER" = "yes"; then
42044 cat >>confdefs.h <<\_ACEOF
42045#define wxUSE_TEXTBUFFER 1
42046_ACEOF
42047
42048fi
42049
42050if test "$wxUSE_TEXTFILE" = "yes"; then
42051 if test "$wxUSE_FILE" != "yes" -o "$wxUSE_TEXTBUFFER" != "yes" ; then
42052 { echo "$as_me:$LINENO: WARNING: wxTextFile requires wxFile and wxTextBuffer... disabled" >&5
42053echo "$as_me: WARNING: wxTextFile requires wxFile and wxTextBuffer... disabled" >&2;}
42054 else
42055 cat >>confdefs.h <<\_ACEOF
42056#define wxUSE_TEXTFILE 1
42057_ACEOF
42058
42059 fi
42060fi
42061
42062if test "$wxUSE_CONFIG" = "yes" ; then
42063 if test "$wxUSE_TEXTFILE" != "yes"; then
42064 { echo "$as_me:$LINENO: WARNING: wxConfig requires wxTextFile... disabled" >&5
42065echo "$as_me: WARNING: wxConfig requires wxTextFile... disabled" >&2;}
42066 else
42067 cat >>confdefs.h <<\_ACEOF
42068#define wxUSE_CONFIG 1
89be85c2
VS
42069_ACEOF
42070
42071 cat >>confdefs.h <<\_ACEOF
42072#define wxUSE_CONFIG_NATIVE 1
a848cd7e
SC
42073_ACEOF
42074
42075 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS config"
42076 fi
42077fi
42078
42079if test "$wxUSE_INTL" = "yes" ; then
42080 if test "$wxUSE_FILE" != "yes"; then
42081 { echo "$as_me:$LINENO: WARNING: I18n code requires wxFile... disabled" >&5
42082echo "$as_me: WARNING: I18n code requires wxFile... disabled" >&2;}
42083 else
42084 cat >>confdefs.h <<\_ACEOF
42085#define wxUSE_INTL 1
42086_ACEOF
42087
42088 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS internat"
42089 GUIDIST="$GUIDIST INTL_DIST"
42090 fi
42091fi
42092
42093if test "$wxUSE_LOG" = "yes"; then
42094 cat >>confdefs.h <<\_ACEOF
42095#define wxUSE_LOG 1
42096_ACEOF
42097
42098
42099 if test "$wxUSE_LOGGUI" = "yes"; then
42100 cat >>confdefs.h <<\_ACEOF
42101#define wxUSE_LOGGUI 1
42102_ACEOF
42103
42104 fi
42105
42106 if test "$wxUSE_LOGWINDOW" = "yes"; then
42107 cat >>confdefs.h <<\_ACEOF
42108#define wxUSE_LOGWINDOW 1
42109_ACEOF
42110
42111 fi
42112
42113 if test "$wxUSE_LOGDIALOG" = "yes"; then
42114 cat >>confdefs.h <<\_ACEOF
42115#define wxUSE_LOG_DIALOG 1
42116_ACEOF
42117
42118 fi
0b78747f
MW
42119
42120 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS keyboard"
a848cd7e
SC
42121fi
42122
42123if test "$wxUSE_LONGLONG" = "yes"; then
42124 cat >>confdefs.h <<\_ACEOF
42125#define wxUSE_LONGLONG 1
42126_ACEOF
42127
42128fi
42129
42130if test "$wxUSE_GEOMETRY" = "yes"; then
42131 cat >>confdefs.h <<\_ACEOF
42132#define wxUSE_GEOMETRY 1
42133_ACEOF
42134
42135fi
42136
a848cd7e
SC
42137if test "$wxUSE_STREAMS" = "yes" ; then
42138 cat >>confdefs.h <<\_ACEOF
42139#define wxUSE_STREAMS 1
42140_ACEOF
42141
42142fi
42143
42144
42145if test "$wxUSE_DATETIME" = "yes"; then
42146
42147for ac_func in strptime
42148do
42149as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
42150echo "$as_me:$LINENO: checking for $ac_func" >&5
42151echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
42152if eval "test \"\${$as_ac_var+set}\" = set"; then
42153 echo $ECHO_N "(cached) $ECHO_C" >&6
42154else
42155 cat >conftest.$ac_ext <<_ACEOF
42156/* confdefs.h. */
42157_ACEOF
42158cat confdefs.h >>conftest.$ac_ext
42159cat >>conftest.$ac_ext <<_ACEOF
42160/* end confdefs.h. */
ac1cb8d3
VS
42161/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
42162 For example, HP-UX 11i <limits.h> declares gettimeofday. */
42163#define $ac_func innocuous_$ac_func
42164
a848cd7e
SC
42165/* System header to define __stub macros and hopefully few prototypes,
42166 which can conflict with char $ac_func (); below.
42167 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
42168 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 42169
a848cd7e
SC
42170#ifdef __STDC__
42171# include <limits.h>
42172#else
42173# include <assert.h>
42174#endif
ac1cb8d3
VS
42175
42176#undef $ac_func
42177
a848cd7e
SC
42178/* Override any gcc2 internal prototype to avoid an error. */
42179#ifdef __cplusplus
42180extern "C"
42181{
42182#endif
42183/* We use char because int might match the return type of a gcc2
42184 builtin and then its argument prototype would still apply. */
42185char $ac_func ();
42186/* The GNU C library defines this for functions which it implements
42187 to always fail with ENOSYS. Some functions are actually named
42188 something starting with __ and the normal name is an alias. */
42189#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
42190choke me
42191#else
42192char (*f) () = $ac_func;
42193#endif
42194#ifdef __cplusplus
42195}
42196#endif
42197
42198int
42199main ()
42200{
42201return f != $ac_func;
42202 ;
42203 return 0;
42204}
42205_ACEOF
42206rm -f conftest.$ac_objext conftest$ac_exeext
42207if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 42208 (eval $ac_link) 2>conftest.er1
a848cd7e 42209 ac_status=$?
ac1cb8d3
VS
42210 grep -v '^ *+' conftest.er1 >conftest.err
42211 rm -f conftest.er1
42212 cat conftest.err >&5
a848cd7e
SC
42213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42214 (exit $ac_status); } &&
3f60522a
JS
42215 { ac_try='test -z "$ac_cxx_werror_flag"
42216 || test ! -s conftest.err'
ac1cb8d3
VS
42217 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42218 (eval $ac_try) 2>&5
42219 ac_status=$?
42220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42221 (exit $ac_status); }; } &&
42222 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
42223 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42224 (eval $ac_try) 2>&5
42225 ac_status=$?
42226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42227 (exit $ac_status); }; }; then
42228 eval "$as_ac_var=yes"
42229else
42230 echo "$as_me: failed program was:" >&5
42231sed 's/^/| /' conftest.$ac_ext >&5
42232
42233eval "$as_ac_var=no"
42234fi
ac1cb8d3
VS
42235rm -f conftest.err conftest.$ac_objext \
42236 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
42237fi
42238echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
42239echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
42240if test `eval echo '${'$as_ac_var'}'` = yes; then
42241 cat >>confdefs.h <<_ACEOF
42242#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
42243_ACEOF
42244
42245fi
42246done
42247
f536f005
VZ
42248 if test "$ac_cv_func_strptime" = "yes"; then
42249 echo "$as_me:$LINENO: checking for strptime declaration" >&5
42250echo $ECHO_N "checking for strptime declaration... $ECHO_C" >&6
42251if test "${wx_cv_func_strptime_decl+set}" = set; then
42252 echo $ECHO_N "(cached) $ECHO_C" >&6
42253else
42254
f536f005
VZ
42255 cat >conftest.$ac_ext <<_ACEOF
42256/* confdefs.h. */
42257_ACEOF
42258cat confdefs.h >>conftest.$ac_ext
42259cat >>conftest.$ac_ext <<_ACEOF
42260/* end confdefs.h. */
42261
42262 #include <time.h>
42263
42264int
42265main ()
42266{
42267
42268 struct tm t;
42269 strptime("foo", "bar", &t);
42270
42271 ;
42272 return 0;
42273}
42274_ACEOF
42275rm -f conftest.$ac_objext
42276if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
42277 (eval $ac_compile) 2>conftest.er1
42278 ac_status=$?
42279 grep -v '^ *+' conftest.er1 >conftest.err
42280 rm -f conftest.er1
42281 cat conftest.err >&5
42282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42283 (exit $ac_status); } &&
3f60522a
JS
42284 { ac_try='test -z "$ac_cxx_werror_flag"
42285 || test ! -s conftest.err'
f536f005
VZ
42286 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42287 (eval $ac_try) 2>&5
42288 ac_status=$?
42289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42290 (exit $ac_status); }; } &&
42291 { ac_try='test -s conftest.$ac_objext'
42292 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42293 (eval $ac_try) 2>&5
42294 ac_status=$?
42295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42296 (exit $ac_status); }; }; then
42297 wx_cv_func_strptime_decl=yes
42298else
42299 echo "$as_me: failed program was:" >&5
42300sed 's/^/| /' conftest.$ac_ext >&5
42301
42302wx_cv_func_strptime_decl=no
42303
42304fi
42305rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
f536f005
VZ
42306
42307
42308fi
42309echo "$as_me:$LINENO: result: $wx_cv_func_strptime_decl" >&5
42310echo "${ECHO_T}$wx_cv_func_strptime_decl" >&6
42311 fi
42312 if test "$wx_cv_func_strptime_decl" = "yes"; then
42313 cat >>confdefs.h <<\_ACEOF
42314#define HAVE_STRPTIME_DECL 1
42315_ACEOF
42316
42317 fi
a848cd7e
SC
42318
42319 echo "$as_me:$LINENO: checking for timezone variable in <time.h>" >&5
42320echo $ECHO_N "checking for timezone variable in <time.h>... $ECHO_C" >&6
42321if test "${wx_cv_var_timezone+set}" = set; then
42322 echo $ECHO_N "(cached) $ECHO_C" >&6
42323else
42324
42325 cat >conftest.$ac_ext <<_ACEOF
42326/* confdefs.h. */
42327_ACEOF
42328cat confdefs.h >>conftest.$ac_ext
42329cat >>conftest.$ac_ext <<_ACEOF
42330/* end confdefs.h. */
42331
42332 #include <time.h>
42333
42334int
42335main ()
42336{
42337
42338 int tz;
42339 tz = timezone;
42340
42341 ;
42342 return 0;
42343}
42344_ACEOF
42345rm -f conftest.$ac_objext
42346if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 42347 (eval $ac_compile) 2>conftest.er1
a848cd7e 42348 ac_status=$?
ac1cb8d3
VS
42349 grep -v '^ *+' conftest.er1 >conftest.err
42350 rm -f conftest.er1
42351 cat conftest.err >&5
a848cd7e
SC
42352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42353 (exit $ac_status); } &&
3f60522a
JS
42354 { ac_try='test -z "$ac_cxx_werror_flag"
42355 || test ! -s conftest.err'
ac1cb8d3
VS
42356 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42357 (eval $ac_try) 2>&5
42358 ac_status=$?
42359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42360 (exit $ac_status); }; } &&
42361 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
42362 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42363 (eval $ac_try) 2>&5
42364 ac_status=$?
42365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42366 (exit $ac_status); }; }; then
42367
42368 wx_cv_var_timezone=timezone
42369
42370else
42371 echo "$as_me: failed program was:" >&5
42372sed 's/^/| /' conftest.$ac_ext >&5
42373
42374
42375 cat >conftest.$ac_ext <<_ACEOF
42376/* confdefs.h. */
42377_ACEOF
42378cat confdefs.h >>conftest.$ac_ext
42379cat >>conftest.$ac_ext <<_ACEOF
42380/* end confdefs.h. */
42381
42382 #include <time.h>
42383
42384int
42385main ()
42386{
42387
42388 int tz;
42389 tz = _timezone;
42390
42391 ;
42392 return 0;
42393}
42394_ACEOF
42395rm -f conftest.$ac_objext
42396if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 42397 (eval $ac_compile) 2>conftest.er1
a848cd7e 42398 ac_status=$?
ac1cb8d3
VS
42399 grep -v '^ *+' conftest.er1 >conftest.err
42400 rm -f conftest.er1
42401 cat conftest.err >&5
a848cd7e
SC
42402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42403 (exit $ac_status); } &&
3f60522a
JS
42404 { ac_try='test -z "$ac_cxx_werror_flag"
42405 || test ! -s conftest.err'
ac1cb8d3
VS
42406 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42407 (eval $ac_try) 2>&5
42408 ac_status=$?
42409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42410 (exit $ac_status); }; } &&
42411 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
42412 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42413 (eval $ac_try) 2>&5
42414 ac_status=$?
42415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42416 (exit $ac_status); }; }; then
42417
42418 wx_cv_var_timezone=_timezone
42419
42420else
42421 echo "$as_me: failed program was:" >&5
42422sed 's/^/| /' conftest.$ac_ext >&5
42423
42424
42425 cat >conftest.$ac_ext <<_ACEOF
42426/* confdefs.h. */
42427_ACEOF
42428cat confdefs.h >>conftest.$ac_ext
42429cat >>conftest.$ac_ext <<_ACEOF
42430/* end confdefs.h. */
42431
42432 #include <time.h>
42433
42434int
42435main ()
42436{
42437
42438 int tz;
42439 tz = __timezone;
42440
42441 ;
42442 return 0;
42443}
42444_ACEOF
42445rm -f conftest.$ac_objext
42446if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 42447 (eval $ac_compile) 2>conftest.er1
a848cd7e 42448 ac_status=$?
ac1cb8d3
VS
42449 grep -v '^ *+' conftest.er1 >conftest.err
42450 rm -f conftest.er1
42451 cat conftest.err >&5
a848cd7e
SC
42452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42453 (exit $ac_status); } &&
3f60522a
JS
42454 { ac_try='test -z "$ac_cxx_werror_flag"
42455 || test ! -s conftest.err'
ac1cb8d3
VS
42456 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42457 (eval $ac_try) 2>&5
42458 ac_status=$?
42459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42460 (exit $ac_status); }; } &&
42461 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
42462 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42463 (eval $ac_try) 2>&5
42464 ac_status=$?
42465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42466 (exit $ac_status); }; }; then
42467
42468 wx_cv_var_timezone=__timezone
42469
42470else
42471 echo "$as_me: failed program was:" >&5
42472sed 's/^/| /' conftest.$ac_ext >&5
42473
42474
42475 if test "$USE_DOS" = 0 ; then
42476 { echo "$as_me:$LINENO: WARNING: no timezone variable" >&5
42477echo "$as_me: WARNING: no timezone variable" >&2;}
42478 fi
42479
42480
42481fi
ac1cb8d3 42482rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
42483
42484
42485fi
ac1cb8d3 42486rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
42487
42488
42489fi
ac1cb8d3 42490rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
42491
42492
42493fi
42494echo "$as_me:$LINENO: result: $wx_cv_var_timezone" >&5
42495echo "${ECHO_T}$wx_cv_var_timezone" >&6
42496
42497 if test "x$wx_cv_var_timezone" != x ; then
42498 cat >>confdefs.h <<_ACEOF
42499#define WX_TIMEZONE $wx_cv_var_timezone
42500_ACEOF
42501
42502 fi
42503
42504
42505for ac_func in localtime
42506do
42507as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
42508echo "$as_me:$LINENO: checking for $ac_func" >&5
42509echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
42510if eval "test \"\${$as_ac_var+set}\" = set"; then
42511 echo $ECHO_N "(cached) $ECHO_C" >&6
42512else
42513 cat >conftest.$ac_ext <<_ACEOF
42514/* confdefs.h. */
42515_ACEOF
42516cat confdefs.h >>conftest.$ac_ext
42517cat >>conftest.$ac_ext <<_ACEOF
42518/* end confdefs.h. */
ac1cb8d3
VS
42519/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
42520 For example, HP-UX 11i <limits.h> declares gettimeofday. */
42521#define $ac_func innocuous_$ac_func
42522
a848cd7e
SC
42523/* System header to define __stub macros and hopefully few prototypes,
42524 which can conflict with char $ac_func (); below.
42525 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
42526 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 42527
a848cd7e
SC
42528#ifdef __STDC__
42529# include <limits.h>
42530#else
42531# include <assert.h>
42532#endif
ac1cb8d3
VS
42533
42534#undef $ac_func
42535
a848cd7e
SC
42536/* Override any gcc2 internal prototype to avoid an error. */
42537#ifdef __cplusplus
42538extern "C"
42539{
42540#endif
42541/* We use char because int might match the return type of a gcc2
42542 builtin and then its argument prototype would still apply. */
42543char $ac_func ();
42544/* The GNU C library defines this for functions which it implements
42545 to always fail with ENOSYS. Some functions are actually named
42546 something starting with __ and the normal name is an alias. */
42547#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
42548choke me
42549#else
42550char (*f) () = $ac_func;
42551#endif
42552#ifdef __cplusplus
42553}
42554#endif
42555
42556int
42557main ()
42558{
42559return f != $ac_func;
42560 ;
42561 return 0;
42562}
42563_ACEOF
42564rm -f conftest.$ac_objext conftest$ac_exeext
42565if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 42566 (eval $ac_link) 2>conftest.er1
a848cd7e 42567 ac_status=$?
ac1cb8d3
VS
42568 grep -v '^ *+' conftest.er1 >conftest.err
42569 rm -f conftest.er1
42570 cat conftest.err >&5
a848cd7e
SC
42571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42572 (exit $ac_status); } &&
3f60522a
JS
42573 { ac_try='test -z "$ac_cxx_werror_flag"
42574 || test ! -s conftest.err'
ac1cb8d3
VS
42575 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42576 (eval $ac_try) 2>&5
42577 ac_status=$?
42578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42579 (exit $ac_status); }; } &&
42580 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
42581 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42582 (eval $ac_try) 2>&5
42583 ac_status=$?
42584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42585 (exit $ac_status); }; }; then
42586 eval "$as_ac_var=yes"
42587else
42588 echo "$as_me: failed program was:" >&5
42589sed 's/^/| /' conftest.$ac_ext >&5
42590
42591eval "$as_ac_var=no"
42592fi
ac1cb8d3
VS
42593rm -f conftest.err conftest.$ac_objext \
42594 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
42595fi
42596echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
42597echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
42598if test `eval echo '${'$as_ac_var'}'` = yes; then
42599 cat >>confdefs.h <<_ACEOF
42600#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
42601_ACEOF
42602
42603fi
42604done
42605
42606
42607 if test "$ac_cv_func_localtime" = "yes"; then
42608 echo "$as_me:$LINENO: checking for tm_gmtoff in struct tm" >&5
42609echo $ECHO_N "checking for tm_gmtoff in struct tm... $ECHO_C" >&6
42610if test "${wx_cv_struct_tm_has_gmtoff+set}" = set; then
42611 echo $ECHO_N "(cached) $ECHO_C" >&6
42612else
42613
42614 cat >conftest.$ac_ext <<_ACEOF
42615/* confdefs.h. */
42616_ACEOF
42617cat confdefs.h >>conftest.$ac_ext
42618cat >>conftest.$ac_ext <<_ACEOF
42619/* end confdefs.h. */
42620
42621 #include <time.h>
42622
42623int
42624main ()
42625{
42626
42627 struct tm tm;
42628 tm.tm_gmtoff++;
42629
42630 ;
42631 return 0;
42632}
42633_ACEOF
42634rm -f conftest.$ac_objext
42635if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 42636 (eval $ac_compile) 2>conftest.er1
a848cd7e 42637 ac_status=$?
ac1cb8d3
VS
42638 grep -v '^ *+' conftest.er1 >conftest.err
42639 rm -f conftest.er1
42640 cat conftest.err >&5
a848cd7e
SC
42641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42642 (exit $ac_status); } &&
3f60522a
JS
42643 { ac_try='test -z "$ac_cxx_werror_flag"
42644 || test ! -s conftest.err'
ac1cb8d3
VS
42645 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42646 (eval $ac_try) 2>&5
42647 ac_status=$?
42648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42649 (exit $ac_status); }; } &&
42650 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
42651 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42652 (eval $ac_try) 2>&5
42653 ac_status=$?
42654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42655 (exit $ac_status); }; }; then
42656
42657 wx_cv_struct_tm_has_gmtoff=yes
42658
42659else
42660 echo "$as_me: failed program was:" >&5
42661sed 's/^/| /' conftest.$ac_ext >&5
42662
42663wx_cv_struct_tm_has_gmtoff=no
42664
42665fi
ac1cb8d3 42666rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
42667
42668fi
42669echo "$as_me:$LINENO: result: $wx_cv_struct_tm_has_gmtoff" >&5
42670echo "${ECHO_T}$wx_cv_struct_tm_has_gmtoff" >&6
42671 fi
42672
42673 if test "$wx_cv_struct_tm_has_gmtoff" = "yes"; then
42674 cat >>confdefs.h <<\_ACEOF
42675#define WX_GMTOFF_IN_TM 1
42676_ACEOF
42677
42678 fi
42679
42680
42681
42682for ac_func in gettimeofday ftime
42683do
42684as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
42685echo "$as_me:$LINENO: checking for $ac_func" >&5
42686echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
42687if eval "test \"\${$as_ac_var+set}\" = set"; then
42688 echo $ECHO_N "(cached) $ECHO_C" >&6
42689else
42690 cat >conftest.$ac_ext <<_ACEOF
42691/* confdefs.h. */
42692_ACEOF
42693cat confdefs.h >>conftest.$ac_ext
42694cat >>conftest.$ac_ext <<_ACEOF
42695/* end confdefs.h. */
ac1cb8d3
VS
42696/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
42697 For example, HP-UX 11i <limits.h> declares gettimeofday. */
42698#define $ac_func innocuous_$ac_func
42699
a848cd7e
SC
42700/* System header to define __stub macros and hopefully few prototypes,
42701 which can conflict with char $ac_func (); below.
42702 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
42703 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 42704
a848cd7e
SC
42705#ifdef __STDC__
42706# include <limits.h>
42707#else
42708# include <assert.h>
42709#endif
ac1cb8d3
VS
42710
42711#undef $ac_func
42712
a848cd7e
SC
42713/* Override any gcc2 internal prototype to avoid an error. */
42714#ifdef __cplusplus
42715extern "C"
42716{
42717#endif
42718/* We use char because int might match the return type of a gcc2
42719 builtin and then its argument prototype would still apply. */
42720char $ac_func ();
42721/* The GNU C library defines this for functions which it implements
42722 to always fail with ENOSYS. Some functions are actually named
42723 something starting with __ and the normal name is an alias. */
42724#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
42725choke me
42726#else
42727char (*f) () = $ac_func;
42728#endif
42729#ifdef __cplusplus
42730}
42731#endif
42732
42733int
42734main ()
42735{
42736return f != $ac_func;
42737 ;
42738 return 0;
42739}
42740_ACEOF
42741rm -f conftest.$ac_objext conftest$ac_exeext
42742if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 42743 (eval $ac_link) 2>conftest.er1
a848cd7e 42744 ac_status=$?
ac1cb8d3
VS
42745 grep -v '^ *+' conftest.er1 >conftest.err
42746 rm -f conftest.er1
42747 cat conftest.err >&5
a848cd7e
SC
42748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42749 (exit $ac_status); } &&
3f60522a
JS
42750 { ac_try='test -z "$ac_cxx_werror_flag"
42751 || test ! -s conftest.err'
ac1cb8d3
VS
42752 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42753 (eval $ac_try) 2>&5
42754 ac_status=$?
42755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42756 (exit $ac_status); }; } &&
42757 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
42758 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42759 (eval $ac_try) 2>&5
42760 ac_status=$?
42761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42762 (exit $ac_status); }; }; then
42763 eval "$as_ac_var=yes"
42764else
42765 echo "$as_me: failed program was:" >&5
42766sed 's/^/| /' conftest.$ac_ext >&5
42767
42768eval "$as_ac_var=no"
42769fi
ac1cb8d3
VS
42770rm -f conftest.err conftest.$ac_objext \
42771 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
42772fi
42773echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
42774echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
42775if test `eval echo '${'$as_ac_var'}'` = yes; then
42776 cat >>confdefs.h <<_ACEOF
42777#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
42778_ACEOF
42779 break
42780fi
42781done
42782
42783
42784 if test "$ac_cv_func_gettimeofday" = "yes"; then
42785 echo "$as_me:$LINENO: checking whether gettimeofday takes two arguments" >&5
42786echo $ECHO_N "checking whether gettimeofday takes two arguments... $ECHO_C" >&6
42787if test "${wx_cv_func_gettimeofday_has_2_args+set}" = set; then
42788 echo $ECHO_N "(cached) $ECHO_C" >&6
42789else
42790
5d7b7554 42791 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
42792/* confdefs.h. */
42793_ACEOF
42794cat confdefs.h >>conftest.$ac_ext
42795cat >>conftest.$ac_ext <<_ACEOF
42796/* end confdefs.h. */
42797
42798 #include <sys/time.h>
42799 #include <unistd.h>
42800
42801int
42802main ()
42803{
42804
42805 struct timeval tv;
42806 gettimeofday(&tv, NULL);
42807
42808 ;
42809 return 0;
42810}
42811_ACEOF
42812rm -f conftest.$ac_objext
42813if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 42814 (eval $ac_compile) 2>conftest.er1
a848cd7e 42815 ac_status=$?
ac1cb8d3
VS
42816 grep -v '^ *+' conftest.er1 >conftest.err
42817 rm -f conftest.er1
42818 cat conftest.err >&5
a848cd7e
SC
42819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42820 (exit $ac_status); } &&
3f60522a
JS
42821 { ac_try='test -z "$ac_cxx_werror_flag"
42822 || test ! -s conftest.err'
ac1cb8d3
VS
42823 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42824 (eval $ac_try) 2>&5
42825 ac_status=$?
42826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42827 (exit $ac_status); }; } &&
42828 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
42829 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42830 (eval $ac_try) 2>&5
42831 ac_status=$?
42832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42833 (exit $ac_status); }; }; then
42834 wx_cv_func_gettimeofday_has_2_args=yes
42835else
42836 echo "$as_me: failed program was:" >&5
42837sed 's/^/| /' conftest.$ac_ext >&5
42838
42839cat >conftest.$ac_ext <<_ACEOF
42840/* confdefs.h. */
42841_ACEOF
42842cat confdefs.h >>conftest.$ac_ext
42843cat >>conftest.$ac_ext <<_ACEOF
42844/* end confdefs.h. */
42845
42846 #include <sys/time.h>
42847 #include <unistd.h>
42848
42849int
42850main ()
42851{
42852
42853 struct timeval tv;
42854 gettimeofday(&tv);
42855
42856 ;
42857 return 0;
42858}
42859_ACEOF
42860rm -f conftest.$ac_objext
42861if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 42862 (eval $ac_compile) 2>conftest.er1
a848cd7e 42863 ac_status=$?
ac1cb8d3
VS
42864 grep -v '^ *+' conftest.er1 >conftest.err
42865 rm -f conftest.er1
42866 cat conftest.err >&5
a848cd7e
SC
42867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42868 (exit $ac_status); } &&
3f60522a
JS
42869 { ac_try='test -z "$ac_cxx_werror_flag"
42870 || test ! -s conftest.err'
ac1cb8d3
VS
42871 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42872 (eval $ac_try) 2>&5
42873 ac_status=$?
42874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42875 (exit $ac_status); }; } &&
42876 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
42877 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42878 (eval $ac_try) 2>&5
42879 ac_status=$?
42880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42881 (exit $ac_status); }; }; then
42882 wx_cv_func_gettimeofday_has_2_args=no
42883else
42884 echo "$as_me: failed program was:" >&5
42885sed 's/^/| /' conftest.$ac_ext >&5
42886
42887
42888 { echo "$as_me:$LINENO: WARNING: failed to determine number of gettimeofday() arguments" >&5
42889echo "$as_me: WARNING: failed to determine number of gettimeofday() arguments" >&2;}
42890 wx_cv_func_gettimeofday_has_2_args=unknown
42891
42892
42893fi
ac1cb8d3 42894rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
42895
42896fi
ac1cb8d3 42897rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
42898
42899fi
42900echo "$as_me:$LINENO: result: $wx_cv_func_gettimeofday_has_2_args" >&5
42901echo "${ECHO_T}$wx_cv_func_gettimeofday_has_2_args" >&6
42902
42903 if test "$wx_cv_func_gettimeofday_has_2_args" != "yes"; then
42904 cat >>confdefs.h <<\_ACEOF
42905#define WX_GETTIMEOFDAY_NO_TZ 1
42906_ACEOF
42907
42908 fi
42909 fi
42910
42911 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS typetest"
42912fi
42913
42914
42915if test "$wxUSE_SOCKETS" = "yes"; then
42916 if test "$wxUSE_MGL" = "1"; then
42917 { echo "$as_me:$LINENO: WARNING: wxSocket not yet supported under MGL... disabled" >&5
42918echo "$as_me: WARNING: wxSocket not yet supported under MGL... disabled" >&2;}
42919 wxUSE_SOCKETS="no"
42920 fi
42921fi
42922
42923if test "$wxUSE_SOCKETS" = "yes"; then
42924 if test "$TOOLKIT" != "MSW"; then
42925 echo "$as_me:$LINENO: checking for socket" >&5
42926echo $ECHO_N "checking for socket... $ECHO_C" >&6
42927if test "${ac_cv_func_socket+set}" = set; then
42928 echo $ECHO_N "(cached) $ECHO_C" >&6
42929else
42930 cat >conftest.$ac_ext <<_ACEOF
42931/* confdefs.h. */
42932_ACEOF
42933cat confdefs.h >>conftest.$ac_ext
42934cat >>conftest.$ac_ext <<_ACEOF
42935/* end confdefs.h. */
ac1cb8d3
VS
42936/* Define socket to an innocuous variant, in case <limits.h> declares socket.
42937 For example, HP-UX 11i <limits.h> declares gettimeofday. */
42938#define socket innocuous_socket
42939
a848cd7e
SC
42940/* System header to define __stub macros and hopefully few prototypes,
42941 which can conflict with char socket (); below.
42942 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
42943 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 42944
a848cd7e
SC
42945#ifdef __STDC__
42946# include <limits.h>
42947#else
42948# include <assert.h>
42949#endif
ac1cb8d3
VS
42950
42951#undef socket
42952
a848cd7e
SC
42953/* Override any gcc2 internal prototype to avoid an error. */
42954#ifdef __cplusplus
42955extern "C"
42956{
42957#endif
42958/* We use char because int might match the return type of a gcc2
42959 builtin and then its argument prototype would still apply. */
42960char socket ();
42961/* The GNU C library defines this for functions which it implements
42962 to always fail with ENOSYS. Some functions are actually named
42963 something starting with __ and the normal name is an alias. */
42964#if defined (__stub_socket) || defined (__stub___socket)
42965choke me
42966#else
42967char (*f) () = socket;
42968#endif
42969#ifdef __cplusplus
42970}
42971#endif
42972
42973int
42974main ()
42975{
42976return f != socket;
42977 ;
42978 return 0;
42979}
42980_ACEOF
42981rm -f conftest.$ac_objext conftest$ac_exeext
42982if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 42983 (eval $ac_link) 2>conftest.er1
a848cd7e 42984 ac_status=$?
ac1cb8d3
VS
42985 grep -v '^ *+' conftest.er1 >conftest.err
42986 rm -f conftest.er1
42987 cat conftest.err >&5
a848cd7e
SC
42988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42989 (exit $ac_status); } &&
3f60522a
JS
42990 { ac_try='test -z "$ac_cxx_werror_flag"
42991 || test ! -s conftest.err'
ac1cb8d3
VS
42992 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42993 (eval $ac_try) 2>&5
42994 ac_status=$?
42995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42996 (exit $ac_status); }; } &&
42997 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
42998 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42999 (eval $ac_try) 2>&5
43000 ac_status=$?
43001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43002 (exit $ac_status); }; }; then
43003 ac_cv_func_socket=yes
43004else
43005 echo "$as_me: failed program was:" >&5
43006sed 's/^/| /' conftest.$ac_ext >&5
43007
43008ac_cv_func_socket=no
43009fi
ac1cb8d3
VS
43010rm -f conftest.err conftest.$ac_objext \
43011 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
43012fi
43013echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
43014echo "${ECHO_T}$ac_cv_func_socket" >&6
43015if test $ac_cv_func_socket = yes; then
43016 :
43017else
43018
43019 echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
43020echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
43021if test "${ac_cv_lib_socket_socket+set}" = set; then
43022 echo $ECHO_N "(cached) $ECHO_C" >&6
43023else
43024 ac_check_lib_save_LIBS=$LIBS
43025LIBS="-lsocket $LIBS"
43026cat >conftest.$ac_ext <<_ACEOF
43027/* confdefs.h. */
43028_ACEOF
43029cat confdefs.h >>conftest.$ac_ext
43030cat >>conftest.$ac_ext <<_ACEOF
43031/* end confdefs.h. */
43032
43033/* Override any gcc2 internal prototype to avoid an error. */
43034#ifdef __cplusplus
43035extern "C"
43036#endif
43037/* We use char because int might match the return type of a gcc2
43038 builtin and then its argument prototype would still apply. */
43039char socket ();
43040int
43041main ()
43042{
43043socket ();
43044 ;
43045 return 0;
43046}
43047_ACEOF
43048rm -f conftest.$ac_objext conftest$ac_exeext
43049if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 43050 (eval $ac_link) 2>conftest.er1
a848cd7e 43051 ac_status=$?
ac1cb8d3
VS
43052 grep -v '^ *+' conftest.er1 >conftest.err
43053 rm -f conftest.er1
43054 cat conftest.err >&5
a848cd7e
SC
43055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43056 (exit $ac_status); } &&
3f60522a
JS
43057 { ac_try='test -z "$ac_cxx_werror_flag"
43058 || test ! -s conftest.err'
ac1cb8d3
VS
43059 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43060 (eval $ac_try) 2>&5
43061 ac_status=$?
43062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43063 (exit $ac_status); }; } &&
43064 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
43065 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43066 (eval $ac_try) 2>&5
43067 ac_status=$?
43068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43069 (exit $ac_status); }; }; then
43070 ac_cv_lib_socket_socket=yes
43071else
43072 echo "$as_me: failed program was:" >&5
43073sed 's/^/| /' conftest.$ac_ext >&5
43074
43075ac_cv_lib_socket_socket=no
43076fi
ac1cb8d3
VS
43077rm -f conftest.err conftest.$ac_objext \
43078 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
43079LIBS=$ac_check_lib_save_LIBS
43080fi
43081echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
43082echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
43083if test $ac_cv_lib_socket_socket = yes; then
43084 if test "$INET_LINK" != " -lsocket"; then
43085 INET_LINK="$INET_LINK -lsocket"
43086 fi
43087else
43088
43089 { echo "$as_me:$LINENO: WARNING: socket library not found - sockets will be disabled" >&5
43090echo "$as_me: WARNING: socket library not found - sockets will be disabled" >&2;}
43091 wxUSE_SOCKETS=no
43092
43093
43094fi
43095
43096
43097
43098fi
43099
43100 fi
43101fi
43102
43103if test "$wxUSE_SOCKETS" = "yes" ; then
43104 if test "$TOOLKIT" != "MSW"; then
5d7b7554 43105 echo "$as_me:$LINENO: checking what is the type of the third argument of getsockname" >&5
a848cd7e
SC
43106echo $ECHO_N "checking what is the type of the third argument of getsockname... $ECHO_C" >&6
43107if test "${wx_cv_type_getsockname3+set}" = set; then
43108 echo $ECHO_N "(cached) $ECHO_C" >&6
43109else
43110
43111 cat >conftest.$ac_ext <<_ACEOF
43112/* confdefs.h. */
43113_ACEOF
43114cat confdefs.h >>conftest.$ac_ext
43115cat >>conftest.$ac_ext <<_ACEOF
43116/* end confdefs.h. */
43117
43118 #include <sys/types.h>
43119 #include <sys/socket.h>
43120
43121int
43122main ()
43123{
43124
43125 socklen_t len;
43126 getsockname(0, 0, &len);
43127
43128 ;
43129 return 0;
43130}
43131_ACEOF
43132rm -f conftest.$ac_objext
43133if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 43134 (eval $ac_compile) 2>conftest.er1
a848cd7e 43135 ac_status=$?
ac1cb8d3
VS
43136 grep -v '^ *+' conftest.er1 >conftest.err
43137 rm -f conftest.er1
43138 cat conftest.err >&5
a848cd7e
SC
43139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43140 (exit $ac_status); } &&
3f60522a
JS
43141 { ac_try='test -z "$ac_cxx_werror_flag"
43142 || test ! -s conftest.err'
ac1cb8d3
VS
43143 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43144 (eval $ac_try) 2>&5
43145 ac_status=$?
43146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43147 (exit $ac_status); }; } &&
43148 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
43149 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43150 (eval $ac_try) 2>&5
43151 ac_status=$?
43152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43153 (exit $ac_status); }; }; then
43154 wx_cv_type_getsockname3=socklen_t
43155else
43156 echo "$as_me: failed program was:" >&5
43157sed 's/^/| /' conftest.$ac_ext >&5
43158
43159
6459a506 43160 CXXFLAGS_OLD="$CXXFLAGS"
a848cd7e 43161 if test "$GCC" = yes ; then
c92ad099 43162 CXXFLAGS="-Werror $CXXFLAGS"
a848cd7e
SC
43163 fi
43164
43165 cat >conftest.$ac_ext <<_ACEOF
43166/* confdefs.h. */
43167_ACEOF
43168cat confdefs.h >>conftest.$ac_ext
43169cat >>conftest.$ac_ext <<_ACEOF
43170/* end confdefs.h. */
43171
43172 #include <sys/types.h>
43173 #include <sys/socket.h>
43174
43175int
43176main ()
43177{
43178
43179 size_t len;
43180 getsockname(0, 0, &len);
43181
43182 ;
43183 return 0;
43184}
43185_ACEOF
43186rm -f conftest.$ac_objext
43187if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 43188 (eval $ac_compile) 2>conftest.er1
a848cd7e 43189 ac_status=$?
ac1cb8d3
VS
43190 grep -v '^ *+' conftest.er1 >conftest.err
43191 rm -f conftest.er1
43192 cat conftest.err >&5
a848cd7e
SC
43193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43194 (exit $ac_status); } &&
3f60522a
JS
43195 { ac_try='test -z "$ac_cxx_werror_flag"
43196 || test ! -s conftest.err'
ac1cb8d3
VS
43197 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43198 (eval $ac_try) 2>&5
43199 ac_status=$?
43200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43201 (exit $ac_status); }; } &&
43202 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
43203 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43204 (eval $ac_try) 2>&5
43205 ac_status=$?
43206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43207 (exit $ac_status); }; }; then
43208 wx_cv_type_getsockname3=size_t
43209else
43210 echo "$as_me: failed program was:" >&5
43211sed 's/^/| /' conftest.$ac_ext >&5
43212
43213cat >conftest.$ac_ext <<_ACEOF
43214/* confdefs.h. */
43215_ACEOF
43216cat confdefs.h >>conftest.$ac_ext
43217cat >>conftest.$ac_ext <<_ACEOF
43218/* end confdefs.h. */
43219
43220 #include <sys/types.h>
43221 #include <sys/socket.h>
43222
43223int
43224main ()
43225{
43226
43227 int len;
43228 getsockname(0, 0, &len);
43229
43230 ;
43231 return 0;
43232}
43233_ACEOF
43234rm -f conftest.$ac_objext
43235if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 43236 (eval $ac_compile) 2>conftest.er1
a848cd7e 43237 ac_status=$?
ac1cb8d3
VS
43238 grep -v '^ *+' conftest.er1 >conftest.err
43239 rm -f conftest.er1
43240 cat conftest.err >&5
a848cd7e
SC
43241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43242 (exit $ac_status); } &&
3f60522a
JS
43243 { ac_try='test -z "$ac_cxx_werror_flag"
43244 || test ! -s conftest.err'
ac1cb8d3
VS
43245 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43246 (eval $ac_try) 2>&5
43247 ac_status=$?
43248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43249 (exit $ac_status); }; } &&
43250 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
43251 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43252 (eval $ac_try) 2>&5
43253 ac_status=$?
43254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43255 (exit $ac_status); }; }; then
43256 wx_cv_type_getsockname3=int
43257else
43258 echo "$as_me: failed program was:" >&5
43259sed 's/^/| /' conftest.$ac_ext >&5
43260
43261wx_cv_type_getsockname3=unknown
43262
43263fi
ac1cb8d3 43264rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
43265
43266fi
ac1cb8d3 43267rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 43268
6459a506 43269 CXXFLAGS="$CXXFLAGS_OLD"
a848cd7e
SC
43270
43271
43272fi
ac1cb8d3 43273rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
43274
43275fi
43276echo "$as_me:$LINENO: result: $wx_cv_type_getsockname3" >&5
43277echo "${ECHO_T}$wx_cv_type_getsockname3" >&6
43278
43279 if test "$wx_cv_type_getsockname3" = "unknown"; then
43280 wxUSE_SOCKETS=no
43281 { echo "$as_me:$LINENO: WARNING: Couldn't find socklen_t synonym for this system" >&5
43282echo "$as_me: WARNING: Couldn't find socklen_t synonym for this system" >&2;}
43283 else
43284 cat >>confdefs.h <<_ACEOF
9e03e02d 43285#define WX_SOCKLEN_T $wx_cv_type_getsockname3
5b674b9d
DE
43286_ACEOF
43287
43288 fi
43289 echo "$as_me:$LINENO: checking what is the type of the fifth argument of getsockopt" >&5
43290echo $ECHO_N "checking what is the type of the fifth argument of getsockopt... $ECHO_C" >&6
43291if test "${wx_cv_type_getsockopt5+set}" = set; then
43292 echo $ECHO_N "(cached) $ECHO_C" >&6
43293else
43294
43295 cat >conftest.$ac_ext <<_ACEOF
43296/* confdefs.h. */
43297_ACEOF
43298cat confdefs.h >>conftest.$ac_ext
43299cat >>conftest.$ac_ext <<_ACEOF
43300/* end confdefs.h. */
43301
43302 #include <sys/types.h>
43303 #include <sys/socket.h>
43304
43305int
43306main ()
43307{
43308
43309 socklen_t len;
43310 getsockopt(0, 0, 0, 0, &len);
43311
43312 ;
43313 return 0;
43314}
43315_ACEOF
43316rm -f conftest.$ac_objext
43317if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
43318 (eval $ac_compile) 2>conftest.er1
43319 ac_status=$?
43320 grep -v '^ *+' conftest.er1 >conftest.err
43321 rm -f conftest.er1
43322 cat conftest.err >&5
43323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43324 (exit $ac_status); } &&
3f60522a
JS
43325 { ac_try='test -z "$ac_cxx_werror_flag"
43326 || test ! -s conftest.err'
5b674b9d
DE
43327 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43328 (eval $ac_try) 2>&5
43329 ac_status=$?
43330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43331 (exit $ac_status); }; } &&
43332 { ac_try='test -s conftest.$ac_objext'
43333 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43334 (eval $ac_try) 2>&5
43335 ac_status=$?
43336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43337 (exit $ac_status); }; }; then
43338 wx_cv_type_getsockopt5=socklen_t
43339else
43340 echo "$as_me: failed program was:" >&5
43341sed 's/^/| /' conftest.$ac_ext >&5
43342
43343
6459a506 43344 CXXFLAGS_OLD="$CXXFLAGS"
5b674b9d 43345 if test "$GCC" = yes ; then
c92ad099 43346 CXXFLAGS="-Werror $CXXFLAGS"
5b674b9d
DE
43347 fi
43348
43349 cat >conftest.$ac_ext <<_ACEOF
43350/* confdefs.h. */
43351_ACEOF
43352cat confdefs.h >>conftest.$ac_ext
43353cat >>conftest.$ac_ext <<_ACEOF
43354/* end confdefs.h. */
43355
43356 #include <sys/types.h>
43357 #include <sys/socket.h>
43358
43359int
43360main ()
43361{
43362
43363 size_t len;
43364 getsockopt(0, 0, 0, 0, &len);
43365
43366 ;
43367 return 0;
43368}
43369_ACEOF
43370rm -f conftest.$ac_objext
43371if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
43372 (eval $ac_compile) 2>conftest.er1
43373 ac_status=$?
43374 grep -v '^ *+' conftest.er1 >conftest.err
43375 rm -f conftest.er1
43376 cat conftest.err >&5
43377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43378 (exit $ac_status); } &&
3f60522a
JS
43379 { ac_try='test -z "$ac_cxx_werror_flag"
43380 || test ! -s conftest.err'
5b674b9d
DE
43381 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43382 (eval $ac_try) 2>&5
43383 ac_status=$?
43384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43385 (exit $ac_status); }; } &&
43386 { ac_try='test -s conftest.$ac_objext'
43387 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43388 (eval $ac_try) 2>&5
43389 ac_status=$?
43390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43391 (exit $ac_status); }; }; then
43392 wx_cv_type_getsockopt5=size_t
43393else
43394 echo "$as_me: failed program was:" >&5
43395sed 's/^/| /' conftest.$ac_ext >&5
43396
43397cat >conftest.$ac_ext <<_ACEOF
43398/* confdefs.h. */
43399_ACEOF
43400cat confdefs.h >>conftest.$ac_ext
43401cat >>conftest.$ac_ext <<_ACEOF
43402/* end confdefs.h. */
43403
43404 #include <sys/types.h>
43405 #include <sys/socket.h>
43406
43407int
43408main ()
43409{
43410
43411 int len;
43412 getsockopt(0, 0, 0, 0, &len);
43413
43414 ;
43415 return 0;
43416}
43417_ACEOF
43418rm -f conftest.$ac_objext
43419if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
43420 (eval $ac_compile) 2>conftest.er1
43421 ac_status=$?
43422 grep -v '^ *+' conftest.er1 >conftest.err
43423 rm -f conftest.er1
43424 cat conftest.err >&5
43425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43426 (exit $ac_status); } &&
3f60522a
JS
43427 { ac_try='test -z "$ac_cxx_werror_flag"
43428 || test ! -s conftest.err'
5b674b9d
DE
43429 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43430 (eval $ac_try) 2>&5
43431 ac_status=$?
43432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43433 (exit $ac_status); }; } &&
43434 { ac_try='test -s conftest.$ac_objext'
43435 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43436 (eval $ac_try) 2>&5
43437 ac_status=$?
43438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43439 (exit $ac_status); }; }; then
43440 wx_cv_type_getsockopt5=int
43441else
43442 echo "$as_me: failed program was:" >&5
43443sed 's/^/| /' conftest.$ac_ext >&5
43444
43445wx_cv_type_getsockopt5=unknown
43446
43447fi
43448rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
43449
43450fi
43451rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
43452
6459a506 43453 CXXFLAGS="$CXXFLAGS_OLD"
5b674b9d
DE
43454
43455
43456fi
43457rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
43458
43459fi
43460echo "$as_me:$LINENO: result: $wx_cv_type_getsockopt5" >&5
43461echo "${ECHO_T}$wx_cv_type_getsockopt5" >&6
43462
43463 if test "$wx_cv_type_getsockopt5" = "unknown"; then
43464 wxUSE_SOCKETS=no
43465 { echo "$as_me:$LINENO: WARNING: Couldn't find socklen_t synonym for this system" >&5
43466echo "$as_me: WARNING: Couldn't find socklen_t synonym for this system" >&2;}
43467 else
43468 cat >>confdefs.h <<_ACEOF
43469#define SOCKOPTLEN_T $wx_cv_type_getsockopt5
a848cd7e
SC
43470_ACEOF
43471
43472 fi
43473 fi
43474fi
43475
43476if test "$wxUSE_SOCKETS" = "yes" ; then
43477 cat >>confdefs.h <<\_ACEOF
43478#define wxUSE_SOCKETS 1
43479_ACEOF
43480
43481 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sockets"
43482fi
43483
43484if test "$wxUSE_PROTOCOL" = "yes"; then
43485 if test "$wxUSE_SOCKETS" != "yes"; then
43486 { echo "$as_me:$LINENO: WARNING: Protocol classes require sockets... disabled" >&5
43487echo "$as_me: WARNING: Protocol classes require sockets... disabled" >&2;}
43488 wxUSE_PROTOCOL=no
43489 fi
43490fi
43491
43492if test "$wxUSE_PROTOCOL" = "yes"; then
43493 cat >>confdefs.h <<\_ACEOF
43494#define wxUSE_PROTOCOL 1
43495_ACEOF
43496
43497
43498 if test "$wxUSE_PROTOCOL_HTTP" = "yes"; then
43499 cat >>confdefs.h <<\_ACEOF
43500#define wxUSE_PROTOCOL_HTTP 1
43501_ACEOF
43502
43503 fi
43504 if test "$wxUSE_PROTOCOL_FTP" = "yes"; then
43505 cat >>confdefs.h <<\_ACEOF
43506#define wxUSE_PROTOCOL_FTP 1
43507_ACEOF
43508
43509 fi
43510 if test "$wxUSE_PROTOCOL_FILE" = "yes"; then
43511 cat >>confdefs.h <<\_ACEOF
43512#define wxUSE_PROTOCOL_FILE 1
43513_ACEOF
43514
43515 fi
43516else
43517 if test "$wxUSE_FS_INET" = "yes"; then
43518 { echo "$as_me:$LINENO: WARNING: HTTP filesystem require protocol classes... disabled" >&5
43519echo "$as_me: WARNING: HTTP filesystem require protocol classes... disabled" >&2;}
43520 wxUSE_FS_INET="no"
43521 fi
43522fi
43523
43524if test "$wxUSE_URL" = "yes"; then
43525 if test "$wxUSE_PROTOCOL" != "yes"; then
43526 { echo "$as_me:$LINENO: WARNING: wxURL class requires wxProtocol... disabled" >&5
43527echo "$as_me: WARNING: wxURL class requires wxProtocol... disabled" >&2;}
43528 wxUSE_URL=no
43529 fi
43530 if test "$wxUSE_URL" = "yes"; then
43531 cat >>confdefs.h <<\_ACEOF
43532#define wxUSE_URL 1
43533_ACEOF
43534
43535 fi
43536fi
43537
43538if test "$wxUSE_FS_INET" = "yes"; then
43539 cat >>confdefs.h <<\_ACEOF
43540#define wxUSE_FS_INET 1
43541_ACEOF
43542
43543fi
43544
43545
ee45c548
MW
43546if test "$wxUSE_GUI" = "yes" -a "$wxUSE_JOYSTICK" = "yes"; then
43547 wxUSE_JOYSTICK=no
43548
43549 if test "$TOOLKIT" = "MSW"; then
43550 wxUSE_JOYSTICK=yes
43551
43552 elif test "$TOOLKIT" = "MAC" -o "$TOOLKIT" = "COCOA"; then
43553 if test "$USE_DARWIN" = 1; then
43554 echo "$as_me:$LINENO: checking headers have declarations needed for joystick support" >&5
43555echo $ECHO_N "checking headers have declarations needed for joystick support... $ECHO_C" >&6
ee45c548
MW
43556 cat >conftest.$ac_ext <<_ACEOF
43557/* confdefs.h. */
43558_ACEOF
43559cat confdefs.h >>conftest.$ac_ext
43560cat >>conftest.$ac_ext <<_ACEOF
43561/* end confdefs.h. */
43562 #include <IOKit/hid/IOHIDLib.h>
43563int
43564main ()
43565{
43566 IOHIDQueueInterface *qi = NULL;
43567 IOHIDCallbackFunction cb = NULL;
43568 qi->setEventCallout(NULL, cb, NULL, NULL);
43569 ;
43570 return 0;
43571}
43572_ACEOF
43573rm -f conftest.$ac_objext
43574if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
43575 (eval $ac_compile) 2>conftest.er1
43576 ac_status=$?
43577 grep -v '^ *+' conftest.er1 >conftest.err
43578 rm -f conftest.er1
43579 cat conftest.err >&5
43580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43581 (exit $ac_status); } &&
3f60522a
JS
43582 { ac_try='test -z "$ac_cxx_werror_flag"
43583 || test ! -s conftest.err'
ee45c548
MW
43584 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43585 (eval $ac_try) 2>&5
43586 ac_status=$?
43587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43588 (exit $ac_status); }; } &&
43589 { ac_try='test -s conftest.$ac_objext'
43590 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43591 (eval $ac_try) 2>&5
43592 ac_status=$?
43593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43594 (exit $ac_status); }; }; then
43595 wxUSE_JOYSTICK=yes
a848cd7e 43596
ee45c548
MW
43597else
43598 echo "$as_me: failed program was:" >&5
43599sed 's/^/| /' conftest.$ac_ext >&5
43600
43601fi
43602rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
ee45c548
MW
43603 echo "$as_me:$LINENO: result: $wxUSE_JOYSTICK" >&5
43604echo "${ECHO_T}$wxUSE_JOYSTICK" >&6
43605 fi
43606
43607 else
a848cd7e
SC
43608
43609for ac_header in linux/joystick.h
43610do
43611as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
43612if eval "test \"\${$as_ac_Header+set}\" = set"; then
43613 echo "$as_me:$LINENO: checking for $ac_header" >&5
43614echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
43615if eval "test \"\${$as_ac_Header+set}\" = set"; then
43616 echo $ECHO_N "(cached) $ECHO_C" >&6
43617fi
43618echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
43619echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
43620else
43621 # Is the header compilable?
43622echo "$as_me:$LINENO: checking $ac_header usability" >&5
43623echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
43624cat >conftest.$ac_ext <<_ACEOF
43625/* confdefs.h. */
43626_ACEOF
43627cat confdefs.h >>conftest.$ac_ext
43628cat >>conftest.$ac_ext <<_ACEOF
43629/* end confdefs.h. */
43630$ac_includes_default
43631#include <$ac_header>
43632_ACEOF
43633rm -f conftest.$ac_objext
43634if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 43635 (eval $ac_compile) 2>conftest.er1
a848cd7e 43636 ac_status=$?
ac1cb8d3
VS
43637 grep -v '^ *+' conftest.er1 >conftest.err
43638 rm -f conftest.er1
43639 cat conftest.err >&5
a848cd7e
SC
43640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43641 (exit $ac_status); } &&
3f60522a
JS
43642 { ac_try='test -z "$ac_cxx_werror_flag"
43643 || test ! -s conftest.err'
ac1cb8d3
VS
43644 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43645 (eval $ac_try) 2>&5
43646 ac_status=$?
43647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43648 (exit $ac_status); }; } &&
43649 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
43650 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43651 (eval $ac_try) 2>&5
43652 ac_status=$?
43653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43654 (exit $ac_status); }; }; then
43655 ac_header_compiler=yes
43656else
43657 echo "$as_me: failed program was:" >&5
43658sed 's/^/| /' conftest.$ac_ext >&5
43659
43660ac_header_compiler=no
43661fi
ac1cb8d3 43662rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
43663echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
43664echo "${ECHO_T}$ac_header_compiler" >&6
43665
43666# Is the header present?
43667echo "$as_me:$LINENO: checking $ac_header presence" >&5
43668echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
43669cat >conftest.$ac_ext <<_ACEOF
43670/* confdefs.h. */
43671_ACEOF
43672cat confdefs.h >>conftest.$ac_ext
43673cat >>conftest.$ac_ext <<_ACEOF
43674/* end confdefs.h. */
43675#include <$ac_header>
43676_ACEOF
43677if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
43678 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
43679 ac_status=$?
43680 grep -v '^ *+' conftest.er1 >conftest.err
43681 rm -f conftest.er1
43682 cat conftest.err >&5
43683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43684 (exit $ac_status); } >/dev/null; then
43685 if test -s conftest.err; then
5d7b7554
VZ
43686 ac_cpp_err=$ac_cxx_preproc_warn_flag
43687 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
43688 else
43689 ac_cpp_err=
43690 fi
43691else
43692 ac_cpp_err=yes
43693fi
43694if test -z "$ac_cpp_err"; then
43695 ac_header_preproc=yes
43696else
43697 echo "$as_me: failed program was:" >&5
43698sed 's/^/| /' conftest.$ac_ext >&5
43699
43700 ac_header_preproc=no
43701fi
43702rm -f conftest.err conftest.$ac_ext
43703echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
43704echo "${ECHO_T}$ac_header_preproc" >&6
43705
43706# So? What about this header?
5d7b7554 43707case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
ac1cb8d3 43708 yes:no: )
a848cd7e
SC
43709 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
43710echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
43711 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
43712echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
43713 ac_header_preproc=yes
a848cd7e 43714 ;;
ac1cb8d3 43715 no:yes:* )
a848cd7e
SC
43716 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
43717echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
43718 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
43719echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
43720 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
43721echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
43722 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
43723echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
43724 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
43725echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
43726 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
43727echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
43728 (
43729 cat <<\_ASBOX
ac1cb8d3
VS
43730## ----------------------------------------- ##
43731## Report this to wx-dev@lists.wxwidgets.org ##
43732## ----------------------------------------- ##
a848cd7e
SC
43733_ASBOX
43734 ) |
43735 sed "s/^/$as_me: WARNING: /" >&2
43736 ;;
43737esac
43738echo "$as_me:$LINENO: checking for $ac_header" >&5
43739echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
43740if eval "test \"\${$as_ac_Header+set}\" = set"; then
43741 echo $ECHO_N "(cached) $ECHO_C" >&6
43742else
ac1cb8d3 43743 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
43744fi
43745echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
43746echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
43747
43748fi
43749if test `eval echo '${'$as_ac_Header'}'` = yes; then
43750 cat >>confdefs.h <<_ACEOF
43751#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
43752_ACEOF
ee45c548 43753 wxUSE_JOYSTICK=yes
a848cd7e
SC
43754fi
43755
43756done
43757
ee45c548 43758 fi
4cb1d3da 43759
ee45c548
MW
43760 if test "$wxUSE_JOYSTICK" = "yes"; then
43761 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
43762#define wxUSE_JOYSTICK 1
43763_ACEOF
43764
ee45c548
MW
43765 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS joytest"
43766 else
43767 { echo "$as_me:$LINENO: WARNING: Joystick not supported by this system... disabled" >&5
43768echo "$as_me: WARNING: Joystick not supported by this system... disabled" >&2;}
a848cd7e
SC
43769 fi
43770fi
43771
43772
43773
43774if test "$wxUSE_FONTMAP" = "yes" ; then
43775 cat >>confdefs.h <<\_ACEOF
43776#define wxUSE_FONTMAP 1
43777_ACEOF
43778
43779fi
43780
43781if test "$wxUSE_UNICODE" = "yes" ; then
43782 cat >>confdefs.h <<\_ACEOF
43783#define wxUSE_UNICODE 1
43784_ACEOF
43785
43786
43787 if test "$USE_WIN32" != 1; then
43788 wxUSE_UNICODE_MSLU=no
43789 fi
43790
43791 if test "$USE_WIN32" = 1 -a "$wxUSE_UNICODE_MSLU" = "yes"; then
43792 echo "$as_me:$LINENO: checking for main in -lunicows" >&5
43793echo $ECHO_N "checking for main in -lunicows... $ECHO_C" >&6
43794if test "${ac_cv_lib_unicows_main+set}" = set; then
43795 echo $ECHO_N "(cached) $ECHO_C" >&6
43796else
43797 ac_check_lib_save_LIBS=$LIBS
43798LIBS="-lunicows $LIBS"
43799cat >conftest.$ac_ext <<_ACEOF
43800/* confdefs.h. */
43801_ACEOF
43802cat confdefs.h >>conftest.$ac_ext
43803cat >>conftest.$ac_ext <<_ACEOF
43804/* end confdefs.h. */
43805
43806
43807int
43808main ()
43809{
43810main ();
43811 ;
43812 return 0;
43813}
43814_ACEOF
43815rm -f conftest.$ac_objext conftest$ac_exeext
43816if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 43817 (eval $ac_link) 2>conftest.er1
a848cd7e 43818 ac_status=$?
ac1cb8d3
VS
43819 grep -v '^ *+' conftest.er1 >conftest.err
43820 rm -f conftest.er1
43821 cat conftest.err >&5
a848cd7e
SC
43822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43823 (exit $ac_status); } &&
3f60522a
JS
43824 { ac_try='test -z "$ac_cxx_werror_flag"
43825 || test ! -s conftest.err'
ac1cb8d3
VS
43826 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43827 (eval $ac_try) 2>&5
43828 ac_status=$?
43829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43830 (exit $ac_status); }; } &&
43831 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
43832 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43833 (eval $ac_try) 2>&5
43834 ac_status=$?
43835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43836 (exit $ac_status); }; }; then
43837 ac_cv_lib_unicows_main=yes
43838else
43839 echo "$as_me: failed program was:" >&5
43840sed 's/^/| /' conftest.$ac_ext >&5
43841
43842ac_cv_lib_unicows_main=no
43843fi
ac1cb8d3
VS
43844rm -f conftest.err conftest.$ac_objext \
43845 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
43846LIBS=$ac_check_lib_save_LIBS
43847fi
43848echo "$as_me:$LINENO: result: $ac_cv_lib_unicows_main" >&5
43849echo "${ECHO_T}$ac_cv_lib_unicows_main" >&6
43850if test $ac_cv_lib_unicows_main = yes; then
43851
43852 cat >>confdefs.h <<\_ACEOF
43853#define wxUSE_UNICODE_MSLU 1
43854_ACEOF
43855
43856
43857else
43858
43859 { echo "$as_me:$LINENO: WARNING: Compiler doesn't support MSLU (libunicows.a), disabled.
43860 Applications will only run on Windows NT/2000/XP!" >&5
43861echo "$as_me: WARNING: Compiler doesn't support MSLU (libunicows.a), disabled.
43862 Applications will only run on Windows NT/2000/XP!" >&2;}
43863 wxUSE_UNICODE_MSLU=no
43864
43865fi
43866
43867 fi
43868fi
43869
43870if test "$wxUSE_wxUSE_EXPERIMENTAL_PRINTF" = "yes"; then
43871 cat >>confdefs.h <<\_ACEOF
43872#define wxUSE_EXPERIMENTAL_PRINTF 1
43873_ACEOF
43874
43875fi
43876
43877
43878if test "$wxUSE_POSTSCRIPT" = "yes" ; then
43879 cat >>confdefs.h <<\_ACEOF
43880#define wxUSE_POSTSCRIPT 1
43881_ACEOF
43882
43883fi
43884
43885cat >>confdefs.h <<\_ACEOF
43886#define wxUSE_AFM_FOR_POSTSCRIPT 1
43887_ACEOF
43888
43889
43890cat >>confdefs.h <<\_ACEOF
43891#define wxUSE_NORMALIZED_PS_FONTS 1
43892_ACEOF
43893
43894
43895
43896if test "$wxUSE_CONSTRAINTS" = "yes"; then
43897 cat >>confdefs.h <<\_ACEOF
43898#define wxUSE_CONSTRAINTS 1
43899_ACEOF
43900
43901 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS layout"
43902fi
43903
8a7b1113
VZ
43904if test "$wxUSE_MDI" = "yes"; then
43905 cat >>confdefs.h <<\_ACEOF
43906#define wxUSE_MDI 1
43907_ACEOF
43908
43909
43910 if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
43911 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
43912#define wxUSE_MDI_ARCHITECTURE 1
43913_ACEOF
43914
8a7b1113
VZ
43915 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mdi"
43916 fi
a848cd7e
SC
43917fi
43918
43919if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = "yes" ; then
43920 cat >>confdefs.h <<\_ACEOF
43921#define wxUSE_DOC_VIEW_ARCHITECTURE 1
43922_ACEOF
43923
43924 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docview"
43925 if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
43926 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docvwmdi"
43927 fi
43928fi
43929
43930if test "$wxUSE_HELP" = "yes"; then
43931 cat >>confdefs.h <<\_ACEOF
43932#define wxUSE_HELP 1
43933_ACEOF
43934
43935 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS help"
43936
43937 if test "$wxUSE_MSW" = 1; then
43938 if test "$wxUSE_MS_HTML_HELP" = "yes"; then
43939 cat >>confdefs.h <<\_ACEOF
43940#define wxUSE_MS_HTML_HELP 1
43941_ACEOF
43942
43943 fi
43944 fi
43945
43946 if test "$wxUSE_WXHTML_HELP" = "yes"; then
43947 if test "$wxUSE_HTML" = "yes"; then
43948 cat >>confdefs.h <<\_ACEOF
43949#define wxUSE_WXHTML_HELP 1
43950_ACEOF
43951
43952 else
43953 { echo "$as_me:$LINENO: WARNING: Cannot use wxHTML-based help without wxHTML so it won't be compiled" >&5
43954echo "$as_me: WARNING: Cannot use wxHTML-based help without wxHTML so it won't be compiled" >&2;}
43955 wxUSE_WXHTML_HELP=no
43956 fi
43957 fi
43958fi
43959
43960if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then
43961 if test "$wxUSE_CONSTRAINTS" != "yes"; then
43962 { echo "$as_me:$LINENO: WARNING: Printing support cannot be used without constraints so it won't be compiled without it" >&5
43963echo "$as_me: WARNING: Printing support cannot be used without constraints so it won't be compiled without it" >&2;}
43964 else
43965 cat >>confdefs.h <<\_ACEOF
43966#define wxUSE_PRINTING_ARCHITECTURE 1
43967_ACEOF
43968
43969 fi
43970 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS printing"
43971fi
43972
43973if test "$wxUSE_PROLOGIO" = "yes" -o "$wxUSE_RESOURCES" = "yes"; then
43974 { { echo "$as_me:$LINENO: error: wxExpr and old-style resources are now available in contrib only" >&5
43975echo "$as_me: error: wxExpr and old-style resources are now available in contrib only" >&2;}
43976 { (exit 1); exit 1; }; }
43977fi
43978
43979
efdf6afe
VZ
43980if test "$wxUSE_METAFILE" = "yes"; then
43981 if test "$wxUSE_MSW" != 1 -a "$wxUSE_MAC" != 1 -a "$wxUSE_PM" != 1; then
43982 { echo "$as_me:$LINENO: WARNING: wxMetafile is not available on this system... disabled" >&5
43983echo "$as_me: WARNING: wxMetafile is not available on this system... disabled" >&2;}
43984 wxUSE_METAFILE=no
43985 fi
43986fi
43987
43988
a848cd7e
SC
43989if test "$USE_WIN32" = 1 -a \( "$wxUSE_DATAOBJ" = "yes" \
43990 -o "$wxUSE_CLIPBOARD" = "yes" \
43991 -o "$wxUSE_OLE" = "yes" \
43992 -o "$wxUSE_DRAG_AND_DROP" = "yes" \) ; then
43993
43994for ac_header in ole2.h
43995do
43996as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
43997if eval "test \"\${$as_ac_Header+set}\" = set"; then
43998 echo "$as_me:$LINENO: checking for $ac_header" >&5
43999echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
44000if eval "test \"\${$as_ac_Header+set}\" = set"; then
44001 echo $ECHO_N "(cached) $ECHO_C" >&6
44002fi
44003echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
44004echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
44005else
44006 # Is the header compilable?
44007echo "$as_me:$LINENO: checking $ac_header usability" >&5
44008echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
44009cat >conftest.$ac_ext <<_ACEOF
44010/* confdefs.h. */
44011_ACEOF
44012cat confdefs.h >>conftest.$ac_ext
44013cat >>conftest.$ac_ext <<_ACEOF
44014/* end confdefs.h. */
44015$ac_includes_default
44016#include <$ac_header>
44017_ACEOF
44018rm -f conftest.$ac_objext
44019if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 44020 (eval $ac_compile) 2>conftest.er1
a848cd7e 44021 ac_status=$?
ac1cb8d3
VS
44022 grep -v '^ *+' conftest.er1 >conftest.err
44023 rm -f conftest.er1
44024 cat conftest.err >&5
a848cd7e
SC
44025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44026 (exit $ac_status); } &&
3f60522a
JS
44027 { ac_try='test -z "$ac_cxx_werror_flag"
44028 || test ! -s conftest.err'
ac1cb8d3
VS
44029 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44030 (eval $ac_try) 2>&5
44031 ac_status=$?
44032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44033 (exit $ac_status); }; } &&
44034 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
44035 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44036 (eval $ac_try) 2>&5
44037 ac_status=$?
44038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44039 (exit $ac_status); }; }; then
44040 ac_header_compiler=yes
44041else
44042 echo "$as_me: failed program was:" >&5
44043sed 's/^/| /' conftest.$ac_ext >&5
44044
44045ac_header_compiler=no
44046fi
ac1cb8d3 44047rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
44048echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
44049echo "${ECHO_T}$ac_header_compiler" >&6
44050
44051# Is the header present?
44052echo "$as_me:$LINENO: checking $ac_header presence" >&5
44053echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
44054cat >conftest.$ac_ext <<_ACEOF
44055/* confdefs.h. */
44056_ACEOF
44057cat confdefs.h >>conftest.$ac_ext
44058cat >>conftest.$ac_ext <<_ACEOF
44059/* end confdefs.h. */
44060#include <$ac_header>
44061_ACEOF
44062if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
44063 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
44064 ac_status=$?
44065 grep -v '^ *+' conftest.er1 >conftest.err
44066 rm -f conftest.er1
44067 cat conftest.err >&5
44068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44069 (exit $ac_status); } >/dev/null; then
44070 if test -s conftest.err; then
5d7b7554
VZ
44071 ac_cpp_err=$ac_cxx_preproc_warn_flag
44072 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
44073 else
44074 ac_cpp_err=
44075 fi
44076else
44077 ac_cpp_err=yes
44078fi
44079if test -z "$ac_cpp_err"; then
44080 ac_header_preproc=yes
44081else
44082 echo "$as_me: failed program was:" >&5
44083sed 's/^/| /' conftest.$ac_ext >&5
44084
44085 ac_header_preproc=no
44086fi
44087rm -f conftest.err conftest.$ac_ext
44088echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
44089echo "${ECHO_T}$ac_header_preproc" >&6
44090
44091# So? What about this header?
5d7b7554 44092case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
ac1cb8d3 44093 yes:no: )
a848cd7e
SC
44094 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
44095echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
44096 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
44097echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
44098 ac_header_preproc=yes
a848cd7e 44099 ;;
ac1cb8d3 44100 no:yes:* )
a848cd7e
SC
44101 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
44102echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
44103 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
44104echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
44105 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
44106echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
44107 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
44108echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
44109 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
44110echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
44111 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
44112echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
44113 (
44114 cat <<\_ASBOX
ac1cb8d3
VS
44115## ----------------------------------------- ##
44116## Report this to wx-dev@lists.wxwidgets.org ##
44117## ----------------------------------------- ##
a848cd7e
SC
44118_ASBOX
44119 ) |
44120 sed "s/^/$as_me: WARNING: /" >&2
44121 ;;
44122esac
44123echo "$as_me:$LINENO: checking for $ac_header" >&5
44124echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
44125if eval "test \"\${$as_ac_Header+set}\" = set"; then
44126 echo $ECHO_N "(cached) $ECHO_C" >&6
44127else
ac1cb8d3 44128 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
44129fi
44130echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
44131echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
44132
44133fi
44134if test `eval echo '${'$as_ac_Header'}'` = yes; then
44135 cat >>confdefs.h <<_ACEOF
44136#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
44137_ACEOF
44138
44139fi
44140
44141done
44142
44143
44144 if test "$ac_cv_header_ole2_h" = "yes" ; then
44145 if test "$GCC" = yes ; then
a848cd7e
SC
44146 echo "$as_me:$LINENO: checking if g++ requires -fvtable-thunks" >&5
44147echo $ECHO_N "checking if g++ requires -fvtable-thunks... $ECHO_C" >&6
44148 cat >conftest.$ac_ext <<_ACEOF
44149/* confdefs.h. */
44150_ACEOF
44151cat confdefs.h >>conftest.$ac_ext
44152cat >>conftest.$ac_ext <<_ACEOF
44153/* end confdefs.h. */
44154#include <windows.h>
44155 #include <ole2.h>
44156int
44157main ()
44158{
44159
44160 ;
44161 return 0;
44162}
44163_ACEOF
44164rm -f conftest.$ac_objext
44165if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 44166 (eval $ac_compile) 2>conftest.er1
a848cd7e 44167 ac_status=$?
ac1cb8d3
VS
44168 grep -v '^ *+' conftest.er1 >conftest.err
44169 rm -f conftest.er1
44170 cat conftest.err >&5
a848cd7e
SC
44171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44172 (exit $ac_status); } &&
3f60522a
JS
44173 { ac_try='test -z "$ac_cxx_werror_flag"
44174 || test ! -s conftest.err'
ac1cb8d3
VS
44175 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44176 (eval $ac_try) 2>&5
44177 ac_status=$?
44178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44179 (exit $ac_status); }; } &&
44180 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
44181 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44182 (eval $ac_try) 2>&5
44183 ac_status=$?
44184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44185 (exit $ac_status); }; }; then
44186 echo "$as_me:$LINENO: result: no" >&5
44187echo "${ECHO_T}no" >&6
44188else
44189 echo "$as_me: failed program was:" >&5
44190sed 's/^/| /' conftest.$ac_ext >&5
44191
44192echo "$as_me:$LINENO: result: yes" >&5
44193echo "${ECHO_T}yes" >&6
5ff751d6 44194 WXCONFIG_CXXFLAGS="$WXCONFIG_CXXFLAGS -fvtable-thunks"
a848cd7e 44195fi
ac1cb8d3 44196rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
44197 LIBS=" -lrpcrt4 -loleaut32 -lole32 -luuid$LIBS"
44198 if test "$wxUSE_OLE" = "yes" ; then
44199 cat >>confdefs.h <<\_ACEOF
44200#define wxUSE_OLE 1
44201_ACEOF
44202
0b78747f 44203 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS oleauto"
a848cd7e
SC
44204 fi
44205 fi
44206
44207 if test "$wxUSE_DATAOBJ" = "yes" ; then
44208 cat >>confdefs.h <<\_ACEOF
44209#define wxUSE_DATAOBJ 1
44210_ACEOF
44211
44212 fi
44213 else
44214 { echo "$as_me:$LINENO: WARNING: Some features disabled because OLE headers not found" >&5
44215echo "$as_me: WARNING: Some features disabled because OLE headers not found" >&2;}
44216
44217 wxUSE_CLIPBOARD=no
44218 wxUSE_DRAG_AND_DROP=no
44219 wxUSE_DATAOBJ=no
44220 wxUSE_OLE=no
44221 fi
44222
44223 if test "$wxUSE_METAFILE" = "yes"; then
44224 cat >>confdefs.h <<\_ACEOF
44225#define wxUSE_METAFILE 1
44226_ACEOF
44227
44228
44229 cat >>confdefs.h <<\_ACEOF
44230#define wxUSE_ENH_METAFILE 1
44231_ACEOF
44232
44233 fi
44234fi
44235
44236if test "$wxUSE_IPC" = "yes"; then
0b78747f 44237 if test "$wxUSE_SOCKETS" != "yes" -a "$USE_WIN32" != 1; then
77ffb593
JS
44238 { echo "$as_me:$LINENO: WARNING: wxWidgets IPC classes require sockets... disabled" >&5
44239echo "$as_me: WARNING: wxWidgets IPC classes require sockets... disabled" >&2;}
0b78747f 44240 wxUSE_IPC=no
a848cd7e
SC
44241 fi
44242
0b78747f
MW
44243 if test "$wxUSE_IPC" = "yes"; then
44244 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
44245#define wxUSE_IPC 1
44246_ACEOF
44247
0b78747f
MW
44248 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS ipc"
44249 fi
a848cd7e
SC
44250fi
44251
eb730a0c 44252if test "$wxUSE_DATAOBJ" = "yes"; then
2113bc77
MW
44253 if test "$wxUSE_MGL" = 1; then
44254 { echo "$as_me:$LINENO: WARNING: wxDataObject not yet supported under MGL... disabled" >&5
44255echo "$as_me: WARNING: wxDataObject not yet supported under MGL... disabled" >&2;}
44256 wxUSE_DATAOBJ=no
44257 else
44258 cat >>confdefs.h <<\_ACEOF
eb730a0c
JS
44259#define wxUSE_DATAOBJ 1
44260_ACEOF
44261
2113bc77 44262 fi
eb730a0c
JS
44263else
44264 { echo "$as_me:$LINENO: WARNING: Clipboard and drag-and-drop require wxDataObject -- disabled" >&5
44265echo "$as_me: WARNING: Clipboard and drag-and-drop require wxDataObject -- disabled" >&2;}
44266 wxUSE_CLIPBOARD=no
44267 wxUSE_DRAG_AND_DROP=no
44268fi
44269
a848cd7e
SC
44270if test "$wxUSE_CLIPBOARD" = "yes"; then
44271 if test "$wxUSE_MGL" = 1; then
44272 { echo "$as_me:$LINENO: WARNING: Clipboard not yet supported under MGL... disabled" >&5
44273echo "$as_me: WARNING: Clipboard not yet supported under MGL... disabled" >&2;}
44274 wxUSE_CLIPBOARD=no
44275 fi
44276
44277 if test "$wxUSE_CLIPBOARD" = "yes"; then
44278 cat >>confdefs.h <<\_ACEOF
44279#define wxUSE_CLIPBOARD 1
44280_ACEOF
44281
a848cd7e
SC
44282 fi
44283fi
44284
44285if test "$wxUSE_DRAG_AND_DROP" = "yes" ; then
44286 if test "$wxUSE_GTK" = 1; then
44287 if test "$WXGTK12" != 1; then
44288 { echo "$as_me:$LINENO: WARNING: Drag and drop is only supported under GTK+ 1.2... disabled" >&5
44289echo "$as_me: WARNING: Drag and drop is only supported under GTK+ 1.2... disabled" >&2;}
44290 wxUSE_DRAG_AND_DROP=no
44291 fi
44292 fi
44293
44294 if test "$wxUSE_MOTIF" = 1; then
44295 { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under Motif... disabled" >&5
44296echo "$as_me: WARNING: Drag and drop not yet supported under Motif... disabled" >&2;}
44297 wxUSE_DRAG_AND_DROP=no
44298 fi
44299
44300 if test "$wxUSE_X11" = 1; then
44301 { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under X11... disabled" >&5
44302echo "$as_me: WARNING: Drag and drop not yet supported under X11... disabled" >&2;}
44303 wxUSE_DRAG_AND_DROP=no
44304 fi
44305
44306 if test "$wxUSE_MGL" = 1; then
44307 { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under MGL... disabled" >&5
44308echo "$as_me: WARNING: Drag and drop not yet supported under MGL... disabled" >&2;}
44309 wxUSE_DRAG_AND_DROP=no
44310 fi
44311
44312 if test "$wxUSE_DRAG_AND_DROP" = "yes"; then
44313 cat >>confdefs.h <<\_ACEOF
44314#define wxUSE_DRAG_AND_DROP 1
44315_ACEOF
44316
44317 fi
44318
44319fi
44320
44321if test "$wxUSE_DRAG_AND_DROP" = "yes" -o "$wxUSE_CLIPBOARD" = "yes"; then
44322 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dnd"
44323fi
44324
44325if test "$wxUSE_SPLINES" = "yes" ; then
44326 cat >>confdefs.h <<\_ACEOF
44327#define wxUSE_SPLINES 1
44328_ACEOF
44329
44330fi
44331
fbe2ca43
SN
44332if test "$wxUSE_MOUSEWHEEL" = "yes" ; then
44333 cat >>confdefs.h <<\_ACEOF
44334#define wxUSE_MOUSEWHEEL 1
44335_ACEOF
44336
44337fi
44338
a848cd7e
SC
44339
44340USES_CONTROLS=0
44341if test "$wxUSE_CONTROLS" = "yes"; then
44342 USES_CONTROLS=1
44343fi
44344
44345if test "$wxUSE_ACCEL" = "yes"; then
44346 cat >>confdefs.h <<\_ACEOF
44347#define wxUSE_ACCEL 1
44348_ACEOF
44349
44350 USES_CONTROLS=1
44351fi
44352
44353if test "$wxUSE_BUTTON" = "yes"; then
44354 cat >>confdefs.h <<\_ACEOF
44355#define wxUSE_BUTTON 1
44356_ACEOF
44357
44358 USES_CONTROLS=1
44359fi
44360
44361if test "$wxUSE_BMPBUTTON" = "yes"; then
44362 cat >>confdefs.h <<\_ACEOF
44363#define wxUSE_BMPBUTTON 1
44364_ACEOF
44365
44366 USES_CONTROLS=1
44367fi
44368
44369if test "$wxUSE_CALCTRL" = "yes"; then
44370 cat >>confdefs.h <<\_ACEOF
44371#define wxUSE_CALENDARCTRL 1
44372_ACEOF
44373
44374 USES_CONTROLS=1
44375 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS calendar"
44376fi
44377
44378if test "$wxUSE_CARET" = "yes"; then
44379 cat >>confdefs.h <<\_ACEOF
44380#define wxUSE_CARET 1
44381_ACEOF
44382
44383 USES_CONTROLS=1
44384 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS caret"
44385fi
44386
44387if test "$wxUSE_COMBOBOX" = "yes"; then
44388 cat >>confdefs.h <<\_ACEOF
44389#define wxUSE_COMBOBOX 1
44390_ACEOF
44391
44392 USES_CONTROLS=1
44393fi
44394
a57d600f 44395if test "$wxUSE_COMBOCTRL" = "yes"; then
642bcba9 44396 cat >>confdefs.h <<\_ACEOF
a57d600f 44397#define wxUSE_COMBOCTRL 1
642bcba9
VZ
44398_ACEOF
44399
44400 USES_CONTROLS=1
44401fi
44402
a848cd7e
SC
44403if test "$wxUSE_CHOICE" = "yes"; then
44404 cat >>confdefs.h <<\_ACEOF
44405#define wxUSE_CHOICE 1
44406_ACEOF
44407
44408 USES_CONTROLS=1
44409fi
44410
92bbdbcd
WS
44411if test "$wxUSE_CHOICEBOOK" = "yes"; then
44412 cat >>confdefs.h <<\_ACEOF
44413#define wxUSE_CHOICEBOOK 1
44414_ACEOF
44415
44416 USES_CONTROLS=1
44417fi
44418
a848cd7e
SC
44419if test "$wxUSE_CHECKBOX" = "yes"; then
44420 cat >>confdefs.h <<\_ACEOF
44421#define wxUSE_CHECKBOX 1
44422_ACEOF
44423
44424 USES_CONTROLS=1
44425fi
44426
44427if test "$wxUSE_CHECKLST" = "yes"; then
44428 cat >>confdefs.h <<\_ACEOF
44429#define wxUSE_CHECKLISTBOX 1
44430_ACEOF
44431
44432 USES_CONTROLS=1
44433 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS checklst"
44434fi
44435
e9263684
VZ
44436if test "$wxUSE_COLOURPICKERCTRL" = "yes"; then
44437 cat >>confdefs.h <<\_ACEOF
44438#define wxUSE_COLOURPICKERCTRL 1
44439_ACEOF
44440
44441 USES_CONTROLS=1
44442fi
44443
da98e9be
VZ
44444if test "$wxUSE_DATEPICKCTRL" = "yes"; then
44445 cat >>confdefs.h <<\_ACEOF
44446#define wxUSE_DATEPICKCTRL 1
44447_ACEOF
44448
44449 USES_CONTROLS=1
44450fi
44451
e9263684
VZ
44452if test "$wxUSE_DIRPICKERCTRL" = "yes"; then
44453 cat >>confdefs.h <<\_ACEOF
44454#define wxUSE_DIRPICKERCTRL 1
44455_ACEOF
44456
44457 USES_CONTROLS=1
44458fi
44459
44460if test "$wxUSE_FILEPICKERCTRL" = "yes"; then
44461 cat >>confdefs.h <<\_ACEOF
44462#define wxUSE_FILEPICKERCTRL 1
44463_ACEOF
44464
44465 USES_CONTROLS=1
44466fi
44467
44468if test "$wxUSE_FONTPICKERCTRL" = "yes"; then
44469 cat >>confdefs.h <<\_ACEOF
44470#define wxUSE_FONTPICKERCTRL 1
44471_ACEOF
44472
44473 USES_CONTROLS=1
44474fi
44475
a848cd7e
SC
44476if test "$wxUSE_DISPLAY" = "yes"; then
44477 cat >>confdefs.h <<\_ACEOF
44478#define wxUSE_DISPLAY 1
44479_ACEOF
44480
0b78747f 44481 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS display multimon"
a848cd7e
SC
44482fi
44483
44484if test "$wxUSE_GAUGE" = "yes"; then
44485 cat >>confdefs.h <<\_ACEOF
44486#define wxUSE_GAUGE 1
44487_ACEOF
44488
44489 USES_CONTROLS=1
44490fi
44491
44492if test "$wxUSE_GRID" = "yes"; then
44493 cat >>confdefs.h <<\_ACEOF
44494#define wxUSE_GRID 1
44495_ACEOF
44496
44497 USES_CONTROLS=1
44498 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS grid"
44499fi
44500
6954625c
VZ
44501if test "$wxUSE_HYPERLINKCTRL" = "yes"; then
44502 cat >>confdefs.h <<\_ACEOF
44503#define wxUSE_HYPERLINKCTRL 1
44504_ACEOF
44505
44506 USES_CONTROLS=1
44507fi
44508
20e34ecc
RR
44509if test "$wxUSE_DATAVIEWCTRL" = "yes"; then
44510 cat >>confdefs.h <<\_ACEOF
44511#define wxUSE_DATAVIEWCTRL 1
44512_ACEOF
44513
44514 USES_CONTROLS=1
44515 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dataview"
44516fi
44517
a848cd7e
SC
44518if test "$wxUSE_IMAGLIST" = "yes"; then
44519 cat >>confdefs.h <<\_ACEOF
44520#define wxUSE_IMAGLIST 1
44521_ACEOF
44522
44523fi
44524
44525if test "$wxUSE_LISTBOOK" = "yes"; then
44526 cat >>confdefs.h <<\_ACEOF
44527#define wxUSE_LISTBOOK 1
44528_ACEOF
44529
44530 USES_CONTROLS=1
44531fi
44532
44533if test "$wxUSE_LISTBOX" = "yes"; then
44534 cat >>confdefs.h <<\_ACEOF
44535#define wxUSE_LISTBOX 1
44536_ACEOF
44537
44538 USES_CONTROLS=1
0b78747f 44539 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS listbox"
a848cd7e
SC
44540fi
44541
44542if test "$wxUSE_LISTCTRL" = "yes"; then
44543 if test "$wxUSE_IMAGLIST" = "yes"; then
44544 cat >>confdefs.h <<\_ACEOF
44545#define wxUSE_LISTCTRL 1
44546_ACEOF
44547
44548 USES_CONTROLS=1
44549 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS listctrl"
44550 else
44551 { echo "$as_me:$LINENO: WARNING: wxListCtrl requires wxImageList and won't be compiled without it" >&5
44552echo "$as_me: WARNING: wxListCtrl requires wxImageList and won't be compiled without it" >&2;}
44553 fi
44554fi
44555
44556if test "$wxUSE_NOTEBOOK" = "yes"; then
44557 cat >>confdefs.h <<\_ACEOF
44558#define wxUSE_NOTEBOOK 1
44559_ACEOF
44560
44561 USES_CONTROLS=1
44562 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS notebook"
44563fi
44564
a57d600f 44565if test "$wxUSE_ODCOMBOBOX" = "yes"; then
642bcba9 44566 cat >>confdefs.h <<\_ACEOF
a57d600f 44567#define wxUSE_ODCOMBOBOX 1
642bcba9
VZ
44568_ACEOF
44569
44570 USES_CONTROLS=1
44571 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS combo"
44572fi
44573
a848cd7e
SC
44574
44575if test "$wxUSE_RADIOBOX" = "yes"; then
44576 cat >>confdefs.h <<\_ACEOF
44577#define wxUSE_RADIOBOX 1
44578_ACEOF
44579
44580 USES_CONTROLS=1
44581fi
44582
44583if test "$wxUSE_RADIOBTN" = "yes"; then
44584 cat >>confdefs.h <<\_ACEOF
44585#define wxUSE_RADIOBTN 1
44586_ACEOF
44587
44588 USES_CONTROLS=1
44589fi
44590
44591if test "$wxUSE_SASH" = "yes"; then
44592 cat >>confdefs.h <<\_ACEOF
44593#define wxUSE_SASH 1
44594_ACEOF
44595
44596 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sashtest"
44597fi
44598
44599if test "$wxUSE_SCROLLBAR" = "yes"; then
44600 cat >>confdefs.h <<\_ACEOF
44601#define wxUSE_SCROLLBAR 1
44602_ACEOF
44603
44604 USES_CONTROLS=1
44605 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS scroll scrollsub"
44606fi
44607
44608if test "$wxUSE_SLIDER" = "yes"; then
44609 cat >>confdefs.h <<\_ACEOF
44610#define wxUSE_SLIDER 1
44611_ACEOF
44612
44613 USES_CONTROLS=1
44614fi
44615
44616if test "$wxUSE_SPINBTN" = "yes"; then
44617 cat >>confdefs.h <<\_ACEOF
44618#define wxUSE_SPINBTN 1
44619_ACEOF
44620
44621 USES_CONTROLS=1
44622fi
44623
44624if test "$wxUSE_SPINCTRL" = "yes"; then
44625 cat >>confdefs.h <<\_ACEOF
44626#define wxUSE_SPINCTRL 1
44627_ACEOF
44628
44629 USES_CONTROLS=1
44630fi
44631
44632if test "$wxUSE_SPLITTER" = "yes"; then
44633 cat >>confdefs.h <<\_ACEOF
44634#define wxUSE_SPLITTER 1
44635_ACEOF
44636
44637 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splitter"
44638fi
44639
44640if test "$wxUSE_STATBMP" = "yes"; then
44641 cat >>confdefs.h <<\_ACEOF
44642#define wxUSE_STATBMP 1
44643_ACEOF
44644
44645 USES_CONTROLS=1
44646fi
44647
44648if test "$wxUSE_STATBOX" = "yes"; then
44649 cat >>confdefs.h <<\_ACEOF
44650#define wxUSE_STATBOX 1
44651_ACEOF
44652
44653 USES_CONTROLS=1
44654fi
44655
44656if test "$wxUSE_STATTEXT" = "yes"; then
44657 cat >>confdefs.h <<\_ACEOF
44658#define wxUSE_STATTEXT 1
44659_ACEOF
44660
44661 USES_CONTROLS=1
44662fi
44663
44664if test "$wxUSE_STATLINE" = "yes"; then
44665 cat >>confdefs.h <<\_ACEOF
44666#define wxUSE_STATLINE 1
44667_ACEOF
44668
44669 USES_CONTROLS=1
44670fi
44671
44672if test "$wxUSE_STATUSBAR" = "yes"; then
da4486fb
VZ
44673 cat >>confdefs.h <<\_ACEOF
44674#define wxUSE_NATIVE_STATUSBAR 1
44675_ACEOF
44676
a848cd7e
SC
44677 cat >>confdefs.h <<\_ACEOF
44678#define wxUSE_STATUSBAR 1
44679_ACEOF
44680
44681 USES_CONTROLS=1
44682
44683 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS statbar"
44684fi
44685
f10e38c4 44686if test "$wxUSE_TAB_DIALOG" = "yes"; then
a848cd7e
SC
44687 cat >>confdefs.h <<\_ACEOF
44688#define wxUSE_TAB_DIALOG 1
44689_ACEOF
44690
a848cd7e
SC
44691fi
44692
44693if test "$wxUSE_TEXTCTRL" = "yes"; then
44694 cat >>confdefs.h <<\_ACEOF
44695#define wxUSE_TEXTCTRL 1
44696_ACEOF
44697
44698 USES_CONTROLS=1
44699 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS text"
44700fi
44701
44702if test "$wxUSE_TOGGLEBTN" = "yes"; then
44703 if test "$wxUSE_COCOA" = 1 ; then
44704 { echo "$as_me:$LINENO: WARNING: Toggle button not yet supported under Mac OS X... disabled" >&5
44705echo "$as_me: WARNING: Toggle button not yet supported under Mac OS X... disabled" >&2;}
44706 wxUSE_TOGGLEBTN=no
44707 fi
a848cd7e
SC
44708
44709 if test "$wxUSE_TOGGLEBTN" = "yes"; then
44710 cat >>confdefs.h <<\_ACEOF
44711#define wxUSE_TOGGLEBTN 1
44712_ACEOF
44713
44714 USES_CONTROLS=1
44715 fi
44716fi
44717
44718if test "$wxUSE_TOOLBAR_SIMPLE" = "yes"; then
44719 cat >>confdefs.h <<\_ACEOF
44720#define wxUSE_TOOLBAR_SIMPLE 1
44721_ACEOF
44722
44723 wxUSE_TOOLBAR="yes"
44724 USES_CONTROLS=1
44725fi
44726
44727if test "$wxUSE_TOOLBAR" = "yes"; then
44728 cat >>confdefs.h <<\_ACEOF
44729#define wxUSE_TOOLBAR 1
44730_ACEOF
44731
44732 USES_CONTROLS=1
44733
44734 if test "$wxUSE_TOOLBAR_SIMPLE" != "yes"; then
44735 wxUSE_TOOLBAR_NATIVE="yes"
44736 fi
44737
44738 if test "$wxUSE_TOOLBAR_NATIVE" = "yes"; then
44739 cat >>confdefs.h <<\_ACEOF
44740#define wxUSE_TOOLBAR_NATIVE 1
44741_ACEOF
44742
44743 USES_CONTROLS=1
44744 fi
44745
44746 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS toolbar"
44747fi
44748
44749if test "$wxUSE_TOOLTIPS" = "yes"; then
44750 if test "$wxUSE_MOTIF" = 1; then
44751 { echo "$as_me:$LINENO: WARNING: wxTooltip not supported yet under Motif... disabled" >&5
44752echo "$as_me: WARNING: wxTooltip not supported yet under Motif... disabled" >&2;}
44753 else
44754 if test "$wxUSE_UNIVERSAL" = "yes"; then
44755 { echo "$as_me:$LINENO: WARNING: wxTooltip not supported yet in wxUniversal... disabled" >&5
44756echo "$as_me: WARNING: wxTooltip not supported yet in wxUniversal... disabled" >&2;}
44757 else
44758 cat >>confdefs.h <<\_ACEOF
44759#define wxUSE_TOOLTIPS 1
44760_ACEOF
44761
44762 fi
44763 fi
44764fi
44765
0093c2fc
VZ
44766if test "$wxUSE_TREEBOOK" = "yes"; then
44767 cat >>confdefs.h <<\_ACEOF
44768#define wxUSE_TREEBOOK 1
44769_ACEOF
44770
44771 USES_CONTROLS=1
44772fi
44773
5ec3bc43
JS
44774if test "$wxUSE_TOOLBOOK" = "yes"; then
44775 cat >>confdefs.h <<\_ACEOF
44776#define wxUSE_TOOLBOOK 1
44777_ACEOF
44778
44779 USES_CONTROLS=1
44780fi
44781
a848cd7e
SC
44782if test "$wxUSE_TREECTRL" = "yes"; then
44783 if test "$wxUSE_IMAGLIST" = "yes"; then
44784 cat >>confdefs.h <<\_ACEOF
44785#define wxUSE_TREECTRL 1
44786_ACEOF
44787
44788 USES_CONTROLS=1
44789 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS treectrl"
44790 else
44791 { echo "$as_me:$LINENO: WARNING: wxTreeCtrl requires wxImageList and won't be compiled without it" >&5
44792echo "$as_me: WARNING: wxTreeCtrl requires wxImageList and won't be compiled without it" >&2;}
44793 fi
44794fi
44795
44796if test "$wxUSE_POPUPWIN" = "yes"; then
44797 if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1 ; then
44798 { echo "$as_me:$LINENO: WARNING: Popup window not yet supported under Mac OS X... disabled" >&5
44799echo "$as_me: WARNING: Popup window not yet supported under Mac OS X... disabled" >&2;}
44800 else
44801 if test "$wxUSE_PM" = 1; then
44802 { echo "$as_me:$LINENO: WARNING: wxPopupWindow not yet supported under PM... disabled" >&5
44803echo "$as_me: WARNING: wxPopupWindow not yet supported under PM... disabled" >&2;}
44804 else
44805 cat >>confdefs.h <<\_ACEOF
44806#define wxUSE_POPUPWIN 1
44807_ACEOF
44808
0b78747f 44809 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS popup"
a848cd7e
SC
44810
44811 USES_CONTROLS=1
44812 fi
44813 fi
44814fi
44815
0dcd06dd 44816if test "$wxUSE_DIALUP_MANAGER" = "yes"; then
b843b628
MB
44817 if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1 ; then
44818 { echo "$as_me:$LINENO: WARNING: Dialup manager not yet supported under Mac OS X... disabled" >&5
44819echo "$as_me: WARNING: Dialup manager not yet supported under Mac OS X... disabled" >&2;}
44820 else
44821 cat >>confdefs.h <<\_ACEOF
44822#define wxUSE_DIALUP_MANAGER 1
44823_ACEOF
44824
44825 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dialup"
44826 fi
44827fi
44828
a848cd7e
SC
44829if test "$wxUSE_TIPWINDOW" = "yes"; then
44830 if test "$wxUSE_PM" = 1; then
44831 { echo "$as_me:$LINENO: WARNING: wxTipWindow not yet supported under PM... disabled" >&5
44832echo "$as_me: WARNING: wxTipWindow not yet supported under PM... disabled" >&2;}
44833 else
44834 cat >>confdefs.h <<\_ACEOF
44835#define wxUSE_TIPWINDOW 1
44836_ACEOF
44837
44838 fi
44839fi
44840
44841if test "$USES_CONTROLS" = 1; then
44842 cat >>confdefs.h <<\_ACEOF
44843#define wxUSE_CONTROLS 1
44844_ACEOF
44845
44846fi
44847
44848
44849if test "$wxUSE_ACCESSIBILITY" = "yes"; then
44850 cat >>confdefs.h <<\_ACEOF
44851#define wxUSE_ACCESSIBILITY 1
44852_ACEOF
44853
44854 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS access"
44855fi
44856
38b4a946
VZ
44857if test "$wxUSE_DC_CACHEING" = "yes"; then
44858 cat >>confdefs.h <<\_ACEOF
44859#define wxUSE_DC_CACHEING 1
44860_ACEOF
44861
44862fi
44863
a848cd7e
SC
44864if test "$wxUSE_DRAGIMAGE" = "yes"; then
44865 cat >>confdefs.h <<\_ACEOF
44866#define wxUSE_DRAGIMAGE 1
44867_ACEOF
44868
44869 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dragimag"
44870fi
44871
44872if test "$wxUSE_EXCEPTIONS" = "yes"; then
07bea8f0
VS
44873 if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then
44874 { echo "$as_me:$LINENO: WARNING: --enable-exceptions can't be used with --enable-no_exceptions" >&5
44875echo "$as_me: WARNING: --enable-exceptions can't be used with --enable-no_exceptions" >&2;}
44876 else
44877 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
44878#define wxUSE_EXCEPTIONS 1
44879_ACEOF
44880
07bea8f0
VS
44881 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS except"
44882 fi
a848cd7e
SC
44883fi
44884
44885USE_HTML=0
44886if test "$wxUSE_HTML" = "yes"; then
44887 cat >>confdefs.h <<\_ACEOF
44888#define wxUSE_HTML 1
44889_ACEOF
44890
44891 USE_HTML=1
44892 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html html/about html/help html/helpview html/printing html/test html/virtual html/widget html/zip htlbox"
de59c161
RD
44893 if test "$wxUSE_MAC" = 1; then
44894 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html/htmlctrl"
44895 fi
a848cd7e 44896fi
646b6ec1 44897if test "$wxUSE_WEBKIT" = "yes"; then
1e9e8aba 44898 if test "$wxUSE_MAC" = 1 -a "$USE_DARWIN" = 1; then
07bea8f0 44899 old_CPPFLAGS="$CPPFLAGS"
c92ad099 44900 CPPFLAGS="-x objective-c++ $CPPFLAGS"
07bea8f0
VS
44901 echo "$as_me:$LINENO: checking for WebKit/HIWebView.h" >&5
44902echo $ECHO_N "checking for WebKit/HIWebView.h... $ECHO_C" >&6
44903if test "${ac_cv_header_WebKit_HIWebView_h+set}" = set; then
44904 echo $ECHO_N "(cached) $ECHO_C" >&6
44905else
44906 cat >conftest.$ac_ext <<_ACEOF
44907/* confdefs.h. */
44908_ACEOF
44909cat confdefs.h >>conftest.$ac_ext
44910cat >>conftest.$ac_ext <<_ACEOF
44911/* end confdefs.h. */
44912#include <Carbon/Carbon.h>
44913
44914#include <WebKit/HIWebView.h>
44915_ACEOF
44916rm -f conftest.$ac_objext
44917if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
44918 (eval $ac_compile) 2>conftest.er1
44919 ac_status=$?
44920 grep -v '^ *+' conftest.er1 >conftest.err
44921 rm -f conftest.er1
44922 cat conftest.err >&5
44923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44924 (exit $ac_status); } &&
3f60522a
JS
44925 { ac_try='test -z "$ac_cxx_werror_flag"
44926 || test ! -s conftest.err'
07bea8f0
VS
44927 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44928 (eval $ac_try) 2>&5
44929 ac_status=$?
44930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44931 (exit $ac_status); }; } &&
44932 { ac_try='test -s conftest.$ac_objext'
44933 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44934 (eval $ac_try) 2>&5
44935 ac_status=$?
44936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44937 (exit $ac_status); }; }; then
44938 ac_cv_header_WebKit_HIWebView_h=yes
44939else
44940 echo "$as_me: failed program was:" >&5
44941sed 's/^/| /' conftest.$ac_ext >&5
44942
44943ac_cv_header_WebKit_HIWebView_h=no
44944fi
44945rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
44946fi
44947echo "$as_me:$LINENO: result: $ac_cv_header_WebKit_HIWebView_h" >&5
44948echo "${ECHO_T}$ac_cv_header_WebKit_HIWebView_h" >&6
44949if test $ac_cv_header_WebKit_HIWebView_h = yes; then
44950
44951 cat >>confdefs.h <<\_ACEOF
646b6ec1
VS
44952#define wxUSE_WEBKIT 1
44953_ACEOF
44954
07bea8f0
VS
44955 WEBKIT_LINK="-framework WebKit"
44956
44957else
44958
44959 { echo "$as_me:$LINENO: WARNING: WebKit headers not found; disabling wxWebKit" >&5
44960echo "$as_me: WARNING: WebKit headers not found; disabling wxWebKit" >&2;}
44961 wxUSE_WEBKIT=no
44962
646b6ec1
VS
44963fi
44964
07bea8f0
VS
44965
44966 CPPFLAGS="$old_CPPFLAGS"
44967 elif test "$wxUSE_COCOA" = 1; then
44968 cat >>confdefs.h <<\_ACEOF
44969#define wxUSE_WEBKIT 1
44970_ACEOF
44971
44972 else
44973 wxUSE_WEBKIT=no
44974 fi
44975fi
44976
9a8f0513
VS
44977USE_XRC=0
44978if test "$wxUSE_XRC" = "yes"; then
d2ebf0b7
VS
44979 if test "$wxUSE_XML" != "yes"; then
44980 { echo "$as_me:$LINENO: WARNING: XML library not built, XRC resources disabled" >&5
44981echo "$as_me: WARNING: XML library not built, XRC resources disabled" >&2;}
44982 wxUSE_XRC=no
44983 else
44984 cat >>confdefs.h <<\_ACEOF
9a8f0513
VS
44985#define wxUSE_XRC 1
44986_ACEOF
44987
d2ebf0b7
VS
44988 USE_XRC=1
44989 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS xrc"
44990 fi
9a8f0513 44991fi
07bea8f0 44992
3f60522a
JS
44993USE_AUI=0
44994if test "$wxUSE_AUI" = "yes"; then
44995 cat >>confdefs.h <<\_ACEOF
44996#define wxUSE_AUI 1
44997_ACEOF
44998
44999 USE_AUI=1
45000 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS aui"
45001fi
45002
a848cd7e
SC
45003if test "$wxUSE_MENUS" = "yes"; then
45004 cat >>confdefs.h <<\_ACEOF
45005#define wxUSE_MENUS 1
45006_ACEOF
45007
45008 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS menu"
45009fi
45010
45011if test "$wxUSE_METAFILE" = "yes"; then
45012 cat >>confdefs.h <<\_ACEOF
45013#define wxUSE_METAFILE 1
45014_ACEOF
45015
45016fi
45017
45018if test "$wxUSE_MIMETYPE" = "yes"; then
45019 cat >>confdefs.h <<\_ACEOF
45020#define wxUSE_MIMETYPE 1
45021_ACEOF
45022
45023fi
45024
45025if test "$wxUSE_MINIFRAME" = "yes"; then
45026 cat >>confdefs.h <<\_ACEOF
45027#define wxUSE_MINIFRAME 1
45028_ACEOF
45029
45030 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS minifram"
45031fi
45032
45033if test "$wxUSE_SYSTEM_OPTIONS" = "yes"; then
45034 cat >>confdefs.h <<\_ACEOF
45035#define wxUSE_SYSTEM_OPTIONS 1
45036_ACEOF
45037
45038 if test "$TOOLKIT" = "MSW" -o "$TOOLKIT" = "GTK" -o "$TOOLKIT" = "X11" -o \
a49baeab 45039 "$TOOLKIT" = "MOTIF" -o "$TOOLKIT" = "COCOA"; then
a848cd7e
SC
45040 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS taskbar"
45041 fi
45042fi
45043
45044
45045if test "$wxUSE_VALIDATORS" = "yes"; then
45046 cat >>confdefs.h <<\_ACEOF
45047#define wxUSE_VALIDATORS 1
45048_ACEOF
45049
45050 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS validate"
45051fi
45052
45053if test "$wxUSE_PALETTE" = "yes" ; then
45054 cat >>confdefs.h <<\_ACEOF
45055#define wxUSE_PALETTE 1
45056_ACEOF
45057
45058fi
45059
45060if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_UNICODE_MSLU" = "yes" ; then
45061 LIBS=" -lunicows $LIBS"
45062fi
45063
91dea314
MW
45064USE_RICHTEXT=0
45065if test "$wxUSE_RICHTEXT" = "yes"; then
45066 cat >>confdefs.h <<\_ACEOF
45067#define wxUSE_RICHTEXT 1
45068_ACEOF
45069
45070 USE_RICHTEXT=1
45071 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS richtext"
45072fi
45073
a848cd7e
SC
45074
45075if test "$wxUSE_IMAGE" = "yes" ; then
45076 cat >>confdefs.h <<\_ACEOF
45077#define wxUSE_IMAGE 1
45078_ACEOF
45079
45080
45081 if test "$wxUSE_GIF" = "yes" ; then
45082 cat >>confdefs.h <<\_ACEOF
45083#define wxUSE_GIF 1
45084_ACEOF
45085
45086 fi
45087
45088 if test "$wxUSE_PCX" = "yes" ; then
45089 cat >>confdefs.h <<\_ACEOF
45090#define wxUSE_PCX 1
45091_ACEOF
45092
45093 fi
45094
45095 if test "$wxUSE_IFF" = "yes" ; then
45096 cat >>confdefs.h <<\_ACEOF
45097#define wxUSE_IFF 1
45098_ACEOF
45099
45100 fi
45101
45102 if test "$wxUSE_PNM" = "yes" ; then
45103 cat >>confdefs.h <<\_ACEOF
45104#define wxUSE_PNM 1
45105_ACEOF
45106
45107 fi
45108
45109 if test "$wxUSE_XPM" = "yes" ; then
45110 cat >>confdefs.h <<\_ACEOF
45111#define wxUSE_XPM 1
45112_ACEOF
45113
45114 fi
45115
45116 if test "$wxUSE_ICO_CUR" = "yes" ; then
45117 cat >>confdefs.h <<\_ACEOF
45118#define wxUSE_ICO_CUR 1
45119_ACEOF
45120
45121 fi
45122fi
45123
45124
45125if test "$wxUSE_CHOICEDLG" = "yes"; then
45126 cat >>confdefs.h <<\_ACEOF
45127#define wxUSE_CHOICEDLG 1
45128_ACEOF
45129
45130fi
45131
45132if test "$wxUSE_COLOURDLG" = "yes"; then
45133 cat >>confdefs.h <<\_ACEOF
45134#define wxUSE_COLOURDLG 1
45135_ACEOF
45136
45137fi
45138
45139if test "$wxUSE_FILEDLG" = "yes"; then
45140 cat >>confdefs.h <<\_ACEOF
45141#define wxUSE_FILEDLG 1
45142_ACEOF
45143
45144fi
45145
45146if test "$wxUSE_FINDREPLDLG" = "yes"; then
45147 cat >>confdefs.h <<\_ACEOF
45148#define wxUSE_FINDREPLDLG 1
45149_ACEOF
45150
45151fi
45152
45153if test "$wxUSE_FONTDLG" = "yes"; then
45154 cat >>confdefs.h <<\_ACEOF
45155#define wxUSE_FONTDLG 1
45156_ACEOF
45157
45158fi
45159
45160if test "$wxUSE_DIRDLG" = "yes"; then
45161 if test "$wxUSE_TREECTRL" != "yes"; then
45162 { echo "$as_me:$LINENO: WARNING: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" >&5
45163echo "$as_me: WARNING: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" >&2;}
45164 else
45165 cat >>confdefs.h <<\_ACEOF
45166#define wxUSE_DIRDLG 1
45167_ACEOF
45168
45169 fi
45170fi
45171
45172if test "$wxUSE_MSGDLG" = "yes"; then
45173 cat >>confdefs.h <<\_ACEOF
45174#define wxUSE_MSGDLG 1
45175_ACEOF
45176
45177fi
45178
45179if test "$wxUSE_NUMBERDLG" = "yes"; then
45180 cat >>confdefs.h <<\_ACEOF
45181#define wxUSE_NUMBERDLG 1
45182_ACEOF
45183
45184fi
45185
45186if test "$wxUSE_PROGRESSDLG" = "yes"; then
45187 if test "$wxUSE_CONSTRAINTS" != "yes"; then
45188 { echo "$as_me:$LINENO: WARNING: wxProgressDialog requires constraints so it won't be compiled without them" >&5
45189echo "$as_me: WARNING: wxProgressDialog requires constraints so it won't be compiled without them" >&2;}
45190 else
45191 cat >>confdefs.h <<\_ACEOF
45192#define wxUSE_PROGRESSDLG 1
45193_ACEOF
45194
45195 fi
45196fi
45197
45198if test "$wxUSE_SPLASH" = "yes"; then
45199 cat >>confdefs.h <<\_ACEOF
45200#define wxUSE_SPLASH 1
45201_ACEOF
45202
2057db16 45203 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splash"
a848cd7e
SC
45204fi
45205
45206if test "$wxUSE_STARTUP_TIPS" = "yes"; then
45207 if test "$wxUSE_CONSTRAINTS" != "yes"; then
45208 { echo "$as_me:$LINENO: WARNING: Startup tips requires constraints and won't be compiled without them" >&5
45209echo "$as_me: WARNING: Startup tips requires constraints and won't be compiled without them" >&2;}
45210 else
45211 cat >>confdefs.h <<\_ACEOF
45212#define wxUSE_STARTUP_TIPS 1
45213_ACEOF
45214
45215 fi
45216fi
45217
45218if test "$wxUSE_TEXTDLG" = "yes"; then
45219 cat >>confdefs.h <<\_ACEOF
45220#define wxUSE_TEXTDLG 1
45221_ACEOF
45222
45223fi
45224
45225if test "$wxUSE_WIZARDDLG" = "yes"; then
45226 cat >>confdefs.h <<\_ACEOF
45227#define wxUSE_WIZARDDLG 1
45228_ACEOF
45229
45230 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS wizard"
45231fi
45232
45233
f10e38c4
VZ
45234USE_MEDIA=0
45235
ce756cb0 45236if test "$wxUSE_MEDIACTRL" = "yes"; then
ce756cb0
RN
45237 if test "$wxUSE_GTK" = 1; then
45238 wxUSE_GSTREAMER="yes"
45239
f10e38c4
VZ
45240 GST_VERSION_MAJOR=0
45241 GST_VERSION_MINOR=10
45242 GST_VERSION_RELEASE=0
45243 GSTREAMER_REQ=$GST_VERSION_MAJOR.$GST_VERSION_MINOR.$GST_VERSION_RELEASE
45244 GST_MAJORMINOR=$GST_VERSION_MAJOR.$GST_VERSION_MINOR
45245
45246 if test "$wxUSE_GSTREAMER8" = "no"; then
ce756cb0 45247
dae87f93 45248 succeeded=no
ce756cb0 45249
dae87f93
RN
45250 if test -z "$PKG_CONFIG"; then
45251 # Extract the first word of "pkg-config", so it can be a program name with args.
45252set dummy pkg-config; ac_word=$2
45253echo "$as_me:$LINENO: checking for $ac_word" >&5
45254echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
45255if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
45256 echo $ECHO_N "(cached) $ECHO_C" >&6
45257else
45258 case $PKG_CONFIG in
45259 [\\/]* | ?:[\\/]*)
45260 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
45261 ;;
45262 *)
45263 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
45264for as_dir in $PATH
45265do
45266 IFS=$as_save_IFS
45267 test -z "$as_dir" && as_dir=.
45268 for ac_exec_ext in '' $ac_executable_extensions; do
45269 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
45270 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
45271 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
45272 break 2
45273 fi
45274done
45275done
45276
45277 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
45278 ;;
45279esac
45280fi
45281PKG_CONFIG=$ac_cv_path_PKG_CONFIG
45282
45283if test -n "$PKG_CONFIG"; then
45284 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
45285echo "${ECHO_T}$PKG_CONFIG" >&6
45286else
45287 echo "$as_me:$LINENO: result: no" >&5
45288echo "${ECHO_T}no" >&6
45289fi
45290
45291 fi
45292
45293 if test "$PKG_CONFIG" = "no" ; then
45294 echo "*** The pkg-config script could not be found. Make sure it is"
45295 echo "*** in your path, or set the PKG_CONFIG environment variable"
45296 echo "*** to the full path to pkg-config."
45297 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
45298 else
45299 PKG_CONFIG_MIN_VERSION=0.9.0
45300 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
f10e38c4
VZ
45301 echo "$as_me:$LINENO: checking for gstreamer-$GST_MAJORMINOR
45302 gstreamer-plugins-base-$GST_MAJORMINOR
45303 gconf-2.0" >&5
45304echo $ECHO_N "checking for gstreamer-$GST_MAJORMINOR
45305 gstreamer-plugins-base-$GST_MAJORMINOR
45306 gconf-2.0... $ECHO_C" >&6
45307
45308 if $PKG_CONFIG --exists "gstreamer-$GST_MAJORMINOR
45309 gstreamer-plugins-base-$GST_MAJORMINOR
45310 gconf-2.0" ; then
dae87f93 45311 echo "$as_me:$LINENO: result: yes" >&5
ce756cb0 45312echo "${ECHO_T}yes" >&6
dae87f93 45313 succeeded=yes
ce756cb0 45314
f10e38c4
VZ
45315 echo "$as_me:$LINENO: checking GST_CFLAGS" >&5
45316echo $ECHO_N "checking GST_CFLAGS... $ECHO_C" >&6
45317 GST_CFLAGS=`$PKG_CONFIG --cflags "gstreamer-$GST_MAJORMINOR
45318 gstreamer-plugins-base-$GST_MAJORMINOR
45319 gconf-2.0"`
45320 echo "$as_me:$LINENO: result: $GST_CFLAGS" >&5
45321echo "${ECHO_T}$GST_CFLAGS" >&6
45322
45323 echo "$as_me:$LINENO: checking GST_LIBS" >&5
45324echo $ECHO_N "checking GST_LIBS... $ECHO_C" >&6
45325 GST_LIBS=`$PKG_CONFIG --libs "gstreamer-$GST_MAJORMINOR
45326 gstreamer-plugins-base-$GST_MAJORMINOR
45327 gconf-2.0"`
45328 echo "$as_me:$LINENO: result: $GST_LIBS" >&5
45329echo "${ECHO_T}$GST_LIBS" >&6
dae87f93 45330 else
f10e38c4
VZ
45331 GST_CFLAGS=""
45332 GST_LIBS=""
dae87f93
RN
45333 ## If we have a custom action on failure, don't print errors, but
45334 ## do set a variable so people can do so.
f10e38c4
VZ
45335 GST_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gstreamer-$GST_MAJORMINOR
45336 gstreamer-plugins-base-$GST_MAJORMINOR
45337 gconf-2.0"`
ce756cb0 45338
dae87f93
RN
45339 fi
45340
45341
45342
45343 else
45344 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
45345 echo "*** See http://www.freedesktop.org/software/pkgconfig"
45346 fi
45347 fi
45348
45349 if test $succeeded = yes; then
45350
f10e38c4
VZ
45351 CPPFLAGS="$GST_CFLAGS $CPPFLAGS"
45352 LIBS="$LIBS $GST_LIBS -lgstinterfaces-$GST_MAJORMINOR"
ce756cb0 45353
ce756cb0 45354 else
dae87f93 45355
f10e38c4 45356 GST_VERSION_MINOR=8
dae87f93
RN
45357
45358 fi
45359
f10e38c4
VZ
45360 else
45361 GST_VERSION_MINOR=8
45362 fi
dae87f93 45363
f10e38c4
VZ
45364 GSTREAMER_REQ=$GST_VERSION_MAJOR.$GST_VERSION_MINOR.$GST_VERSION_RELEASE
45365 GST_MAJORMINOR=$GST_VERSION_MAJOR.$GST_VERSION_MINOR
dae87f93 45366
f10e38c4 45367 if test x$GST_VERSION_MINOR = x8; then
dae87f93 45368
f10e38c4 45369 succeeded=no
dae87f93 45370
f10e38c4
VZ
45371 if test -z "$PKG_CONFIG"; then
45372 # Extract the first word of "pkg-config", so it can be a program name with args.
45373set dummy pkg-config; ac_word=$2
dae87f93
RN
45374echo "$as_me:$LINENO: checking for $ac_word" >&5
45375echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
f10e38c4 45376if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
dae87f93
RN
45377 echo $ECHO_N "(cached) $ECHO_C" >&6
45378else
f10e38c4
VZ
45379 case $PKG_CONFIG in
45380 [\\/]* | ?:[\\/]*)
45381 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
45382 ;;
45383 *)
45384 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
dae87f93
RN
45385for as_dir in $PATH
45386do
45387 IFS=$as_save_IFS
45388 test -z "$as_dir" && as_dir=.
45389 for ac_exec_ext in '' $ac_executable_extensions; do
45390 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
f10e38c4 45391 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
dae87f93
RN
45392 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
45393 break 2
ce756cb0 45394 fi
dae87f93
RN
45395done
45396done
45397
f10e38c4
VZ
45398 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
45399 ;;
45400esac
dae87f93 45401fi
f10e38c4
VZ
45402PKG_CONFIG=$ac_cv_path_PKG_CONFIG
45403
45404if test -n "$PKG_CONFIG"; then
45405 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
45406echo "${ECHO_T}$PKG_CONFIG" >&6
dae87f93
RN
45407else
45408 echo "$as_me:$LINENO: result: no" >&5
45409echo "${ECHO_T}no" >&6
45410fi
45411
f10e38c4 45412 fi
ce756cb0 45413
f10e38c4
VZ
45414 if test "$PKG_CONFIG" = "no" ; then
45415 echo "*** The pkg-config script could not be found. Make sure it is"
45416 echo "*** in your path, or set the PKG_CONFIG environment variable"
45417 echo "*** to the full path to pkg-config."
45418 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
45419 else
45420 PKG_CONFIG_MIN_VERSION=0.9.0
45421 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
45422 echo "$as_me:$LINENO: checking for gstreamer-$GST_MAJORMINOR
45423 gstreamer-interfaces-$GST_MAJORMINOR
45424 gstreamer-gconf-$GST_MAJORMINOR" >&5
45425echo $ECHO_N "checking for gstreamer-$GST_MAJORMINOR
45426 gstreamer-interfaces-$GST_MAJORMINOR
45427 gstreamer-gconf-$GST_MAJORMINOR... $ECHO_C" >&6
45428
45429 if $PKG_CONFIG --exists "gstreamer-$GST_MAJORMINOR
45430 gstreamer-interfaces-$GST_MAJORMINOR
45431 gstreamer-gconf-$GST_MAJORMINOR" ; then
45432 echo "$as_me:$LINENO: result: yes" >&5
45433echo "${ECHO_T}yes" >&6
45434 succeeded=yes
dae87f93 45435
f10e38c4
VZ
45436 echo "$as_me:$LINENO: checking GST_CFLAGS" >&5
45437echo $ECHO_N "checking GST_CFLAGS... $ECHO_C" >&6
45438 GST_CFLAGS=`$PKG_CONFIG --cflags "gstreamer-$GST_MAJORMINOR
45439 gstreamer-interfaces-$GST_MAJORMINOR
45440 gstreamer-gconf-$GST_MAJORMINOR"`
45441 echo "$as_me:$LINENO: result: $GST_CFLAGS" >&5
45442echo "${ECHO_T}$GST_CFLAGS" >&6
45443
45444 echo "$as_me:$LINENO: checking GST_LIBS" >&5
45445echo $ECHO_N "checking GST_LIBS... $ECHO_C" >&6
45446 GST_LIBS=`$PKG_CONFIG --libs "gstreamer-$GST_MAJORMINOR
45447 gstreamer-interfaces-$GST_MAJORMINOR
45448 gstreamer-gconf-$GST_MAJORMINOR"`
45449 echo "$as_me:$LINENO: result: $GST_LIBS" >&5
45450echo "${ECHO_T}$GST_LIBS" >&6
45451 else
45452 GST_CFLAGS=""
45453 GST_LIBS=""
45454 ## If we have a custom action on failure, don't print errors, but
45455 ## do set a variable so people can do so.
45456 GST_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gstreamer-$GST_MAJORMINOR
45457 gstreamer-interfaces-$GST_MAJORMINOR
45458 gstreamer-gconf-$GST_MAJORMINOR"`
dae87f93 45459
dae87f93
RN
45460 fi
45461
45462
ce756cb0 45463
f10e38c4
VZ
45464 else
45465 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
45466 echo "*** See http://www.freedesktop.org/software/pkgconfig"
45467 fi
45468 fi
ce756cb0 45469
f10e38c4 45470 if test $succeeded = yes; then
dae87f93 45471
f10e38c4
VZ
45472 CPPFLAGS="$GST_CFLAGS $CPPFLAGS"
45473 LIBS="$LIBS $GST_LIBS"
dae87f93 45474
f10e38c4 45475 else
ce756cb0 45476
f10e38c4
VZ
45477 { echo "$as_me:$LINENO: WARNING: Proper GStreamer .8/.10 installation not found" >&5
45478echo "$as_me: WARNING: Proper GStreamer .8/.10 installation not found" >&2;}
45479 wxUSE_GSTREAMER="no"
ce756cb0 45480
f10e38c4 45481 fi
ce756cb0 45482
dae87f93 45483 fi
ce756cb0 45484
f10e38c4 45485
dae87f93
RN
45486 if test "$wxUSE_GSTREAMER" = "yes"; then
45487 cat >>confdefs.h <<\_ACEOF
ce756cb0
RN
45488#define wxUSE_GSTREAMER 1
45489_ACEOF
45490
dae87f93
RN
45491 echo "$as_me:$LINENO: result: GStreamer detection successful" >&5
45492echo "${ECHO_T}GStreamer detection successful" >&6
ce756cb0
RN
45493 fi
45494 fi
f10e38c4 45495 USE_MEDIA=1
ce756cb0
RN
45496 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mediaplayer"
45497 cat >>confdefs.h <<\_ACEOF
45498#define wxUSE_MEDIACTRL 1
45499_ACEOF
45500
45501fi
45502
45503
a848cd7e
SC
45504if test "$cross_compiling" = "yes"; then
45505 OSINFO="\"$host\""
45506else
45507 OSINFO=`uname -s -r -m`
45508 OSINFO="\"$OSINFO\""
45509fi
45510
45511cat >>confdefs.h <<_ACEOF
45512#define WXWIN_OS_DESCRIPTION $OSINFO
45513_ACEOF
45514
45515
45516
45517if test "x$prefix" != "xNONE"; then
45518 wxPREFIX=$prefix
45519else
45520 wxPREFIX=$ac_default_prefix
45521fi
45522
45523cat >>confdefs.h <<_ACEOF
45524#define wxINSTALL_PREFIX "$wxPREFIX"
45525_ACEOF
45526
45527
a848cd7e
SC
45528
45529
45530CORE_BASE_LIBS="net base"
45531CORE_GUI_LIBS="adv core"
45532
45533if test "$wxUSE_XML" = "yes" ; then
45534 CORE_BASE_LIBS="xml $CORE_BASE_LIBS"
45535fi
45536if test "$wxUSE_ODBC" != "no" ; then
45537 CORE_BASE_LIBS="odbc $CORE_BASE_LIBS"
45538 CORE_GUI_LIBS="dbgrid $CORE_GUI_LIBS"
45539fi
45540if test "$wxUSE_HTML" = "yes" ; then
45541 CORE_GUI_LIBS="html $CORE_GUI_LIBS"
45542fi
61639efb
VZ
45543if test "$wxUSE_DEBUGREPORT" = "yes" ; then
45544 CORE_GUI_LIBS="qa $CORE_GUI_LIBS"
45545fi
9a8f0513
VS
45546if test "$wxUSE_XRC" = "yes" ; then
45547 CORE_GUI_LIBS="xrc $CORE_GUI_LIBS"
45548fi
3f60522a
JS
45549if test "$wxUSE_AUI" = "yes" ; then
45550 CORE_GUI_LIBS="aui $CORE_GUI_LIBS"
45551fi
a848cd7e
SC
45552
45553if test "$wxUSE_GUI" != "yes"; then
45554 CORE_GUI_LIBS=""
45555fi
45556
45557
45558
45559
45560
5d7b7554
VZ
45561ac_ext=c
45562ac_cpp='$CPP $CPPFLAGS'
45563ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
45564ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
45565ac_compiler_gnu=$ac_cv_c_compiler_gnu
45566
a848cd7e
SC
45567
45568
a848cd7e 45569if test "$wxUSE_MAC" = 1 ; then
a98bf0c0 45570 if test "$wxUSE_SOUND" = "yes" || test "$wxUSE_MEDIACTRL" = "yes"; then
1e9e8aba
DE
45571 if test "$USE_DARWIN" = 1; then
45572 LDFLAGS="$LDFLAGS -framework QuickTime"
45573 else
45574 LDFLAGS="$LDFLAGS -lQuickTimeLib"
45575 fi
07bea8f0 45576 fi
5dcf30a0 45577 if test "$USE_DARWIN" = 1; then
1e9e8aba
DE
45578 LDFLAGS="$LDFLAGS -framework IOKit -framework Carbon -framework Cocoa -framework System"
45579 else
45580 LDFLAGS="$LDFLAGS -lCarbonLib"
5dcf30a0 45581 fi
a848cd7e
SC
45582fi
45583if test "$wxUSE_COCOA" = 1 ; then
4cb1d3da 45584 LDFLAGS="$LDFLAGS -framework IOKit -framework Cocoa"
4fc81cbc
RN
45585 if test "$wxUSE_MEDIACTRL" = "yes"; then
45586 LDFLAGS="$LDFLAGS -framework QuickTime"
45587 fi
a848cd7e 45588fi
19b27e78
MW
45589if test "$USE_DARWIN" = 1 -a "$wxUSE_MAC" != 1 -a "$wxUSE_COCOA" != 1 ; then
45590 LDFLAGS="$LDFLAGS -framework IOKit -framework CoreServices -framework System -framework ApplicationServices"
45591fi
a848cd7e 45592
a848cd7e
SC
45593LIBS="$ZLIB_LINK $POSIX4_LINK $INET_LINK $WCHAR_LINK $DL_LINK $LIBS"
45594
a848cd7e
SC
45595if test "$wxUSE_GUI" = "yes"; then
45596
45597
8bce5cda
MW
45598 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS artprov controls dialogs drawing \
45599 dynamic erase event exec font image minimal mobile \
45600 mobile/wxedit mobile/styles propsize render \
9e39d889 45601 rotate shaped vscroll widgets"
a848cd7e
SC
45602
45603 if test "$wxUSE_MONOLITHIC" != "yes"; then
45604 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS console"
45605 fi
0b78747f 45606 if test "$TOOLKIT" = "MSW"; then
8bce5cda
MW
45607 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS regtest"
45608 if test "$wxUSE_UNIVERSAL" != "yes"; then
45609 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS ownerdrw nativdlg"
45610 fi
45611 fi
45612 if test "$TOOLKIT" = "PM" -a "$wxUSE_UNIVERSAL" != "yes"; then
45613 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS ownerdrw"
0b78747f 45614 fi
a848cd7e
SC
45615else
45616 SAMPLES_SUBDIRS="console"
45617fi
45618
45619
48f625bc 45620if test "x$INTELCC" = "xyes" ; then
17a1ebd1
VZ
45621 CWARNINGS="-Wall -wd810,869,981,1418,1572,1684"
45622elif test "$GCC" = yes ; then
45623 CWARNINGS="-Wall -Wundef"
45624fi
45625
48f625bc 45626if test "x$INTELCXX" = "xyes" ; then
7f47faf4 45627 CXXWARNINGS="-Wall -wd279,383,444,810,869,981,1418,1419"
17a1ebd1
VZ
45628elif test "$GXX" = yes ; then
45629 CXXWARNINGS="-Wall -Wundef -Wno-ctor-dtor-privacy"
6ebeb4c7 45630fi
a848cd7e 45631
a848cd7e 45632
5ff751d6
VZ
45633WXCONFIG_CFLAGS=`echo $WXCONFIG_CFLAGS`
45634WXCONFIG_CXXFLAGS=`echo $WXCONFIG_CFLAGS $WXCONFIG_CXXFLAGS`
45635
45636
c92ad099 45637CPPFLAGS=`echo $WXCONFIG_CPPFLAGS \
bc6ee4ae 45638 -I\\${top_builddir}lib/wx/include/${TOOLCHAIN_FULLNAME} \
c92ad099
VZ
45639 -I\\${top_srcdir}/include $TOOLKIT_INCLUDE \
45640 $CPPFLAGS `
5ff751d6 45641
8aeeb05c 45642C_AND_CXX_FLAGS="$DEBUG_CFLAGS $PROFILE_FLAGS $OPTIMISE_CFLAGS"
c92ad099 45643CFLAGS=`echo $WXCONFIG_CFLAGS $CWARNINGS $C_AND_CXX_FLAGS $CFLAGS `
9cbac6d1 45644CXXFLAGS=`echo $WXCONFIG_CXXFLAGS $CXXWARNINGS $C_AND_CXX_FLAGS $CXXFLAGS `
5ff751d6
VZ
45645
45646WXCONFIG_CPPFLAGS=`echo $WXCONFIG_CPPFLAGS $WXCONFIG_ONLY_CPPFLAGS`
45647
a848cd7e 45648
95986553
DE
45649if test "x$MWCC" = "xyes"; then
45650
45651 CC="$CC -cwd source -I-"
45652 CXX="$CXX -cwd source -I-"
45653fi
45654
a848cd7e 45655
0c3c69fc 45656LIBS=`echo $LIBS`
a848cd7e
SC
45657EXTRALIBS="$LDFLAGS $LDFLAGS_VERSIONING $LIBS $DMALLOC_LIBS"
45658EXTRALIBS_XML="$EXPAT_LINK"
45659EXTRALIBS_HTML="$MSPACK_LINK"
45660EXTRALIBS_ODBC="$ODBC_LINK"
45661if test "$wxUSE_GUI" = "yes"; then
2b850ae1 45662 EXTRALIBS_GUI=`echo $GUI_TK_LIBRARY $PNG_LINK $JPEG_LINK $TIFF_LINK $WEBKIT_LINK $EXTRALIBS_HILDON $EXTRALIBS_GNOMEVFS $EXTRALIBS_GNOMEPRINT`
a848cd7e
SC
45663fi
45664if test "$wxUSE_OPENGL" = "yes"; then
45665 EXTRALIBS_OPENGL="$LDFLAGS_GL $OPENGL_LIBS"
45666fi
45667
8aeeb05c 45668LDFLAGS="$LDFLAGS $PROFILE_FLAGS"
a848cd7e 45669
5ff751d6 45670WXCONFIG_LIBS="$LIBS"
a848cd7e
SC
45671
45672if test "$wxUSE_REGEX" = "builtin" ; then
74802184 45673 wxconfig_3rdparty="regex${lib_unicode_suffix} $wxconfig_3rdparty"
a848cd7e
SC
45674fi
45675if test "$wxUSE_EXPAT" = "builtin" ; then
74802184 45676 wxconfig_3rdparty="expat $wxconfig_3rdparty"
a848cd7e
SC
45677fi
45678if test "$wxUSE_ODBC" = "builtin" ; then
74802184 45679 wxconfig_3rdparty="odbc $wxconfig_3rdparty"
a848cd7e
SC
45680fi
45681if test "$wxUSE_LIBTIFF" = "builtin" ; then
74802184 45682 wxconfig_3rdparty="tiff $wxconfig_3rdparty"
a848cd7e
SC
45683fi
45684if test "$wxUSE_LIBJPEG" = "builtin" ; then
74802184 45685 wxconfig_3rdparty="jpeg $wxconfig_3rdparty"
a848cd7e
SC
45686fi
45687if test "$wxUSE_LIBPNG" = "builtin" ; then
74802184 45688 wxconfig_3rdparty="png $wxconfig_3rdparty"
a848cd7e
SC
45689fi
45690if test "$wxUSE_ZLIB" = "builtin" ; then
74802184 45691 wxconfig_3rdparty="zlib $wxconfig_3rdparty"
a848cd7e
SC
45692fi
45693
45694for i in $wxconfig_3rdparty ; do
5ff751d6 45695 WXCONFIG_LIBS="-lwx${i}${lib_debug_suffix}${WX_LIB_FLAVOUR}-${WX_RELEASE}${HOST_SUFFIX} $WXCONFIG_LIBS"
a848cd7e
SC
45696done
45697
45698
45699if test "x$wxUSE_UNIVERSAL" = "xyes" ; then
45700 WXUNIV=1
45701else
45702 WXUNIV=0
45703fi
45704
45705
45706
45707
45708
45709
45710
45711
45712
45713if test $wxUSE_MONOLITHIC = "yes" ; then
45714 MONOLITHIC=1
45715else
45716 MONOLITHIC=0
45717fi
45718
45719if test $wxUSE_PLUGINS = "yes" ; then
45720 USE_PLUGINS=1
45721else
45722 USE_PLUGINS=0
45723fi
45724
45725if test $wxUSE_ODBC != "no" ; then
45726 USE_ODBC=1
45727else
45728 USE_ODBC=0
45729fi
45730
16358932
VZ
45731if test "$wxUSE_DEBUGREPORT" = "yes" ; then
45732 USE_QA=1
45733else
45734 USE_QA=0
45735fi
45736
a848cd7e
SC
45737if test $wxUSE_OFFICIAL_BUILD = "yes" ; then
45738 OFFICIAL_BUILD=1
45739else
45740 OFFICIAL_BUILD=0
45741fi
45742
45743
45744
45745
45746
45747
45748
45749
45750
45751
45752
45753
45754
45755
45756
45757
45758
45759
45760
ceec2216 45761
d1c38808 45762
3565d135 45763
2b850ae1 45764
a848cd7e
SC
45765
45766
45767TOOLKIT_LOWERCASE=`echo $TOOLKIT | tr "[A-Z]" "[a-z]"`
45768
45769
45770
45771
45772
45773
45774
45775
4d4ff94c
VZ
45776case "$TOOLKIT" in
45777 GTK)
45778 TOOLKIT_USER="GTK+"
45779 if test "$WXGTK20" = 1; then
45780 TOOLKIT_USER="$TOOLKIT_USER 2"
45781 fi
9a8f0513 45782 ;;
4d4ff94c
VZ
45783
45784 *)
45785 TOOLKIT_USER=$TOOLKIT_LOWERCASE
9a8f0513 45786 ;;
4d4ff94c 45787esac
a848cd7e 45788
fb00f58d
JS
45789if test "$wxUSE_WINE" = "yes"; then
45790 BAKEFILE_FORCE_PLATFORM=win32
45791fi
45792
7afc46ab
KO
45793if test "$wxUSE_MAC" = 1 ; then
45794 if test "$wxUSE_UNIVERSAL_BINARY" = "yes" ; then
45795 CXXFLAGS="-isysroot /Developer/SDKs/MacOSX10.4u.sdk -arch ppc -arch i386 $CXXFLAGS"
45796 CFLAGS="-isysroot /Developer/SDKs/MacOSX10.4u.sdk -arch ppc -arch i386 $CFLAGS"
45797 LDFLAGS="-isysroot /Developer/SDKs/MacOSX10.4u.sdk -arch ppc -arch i386 $LDFLAGS"
45798 bk_use_pch=no
45799 fi
45800 # TODO: where do we add "-syslibroot,/Developer/SDKs/MacOSX10.4u.sdk" for libtool (static builds only)?
45801 # The makefile currently uses AR and RANLIB, which libtool apparently supercedes.
45802 # TODO: how can we avoid a hardwired reference to the SDK, above? (Someone used -lSystemStubs to avoid it)
45803fi
45804
9a8f0513 45805
1e9e8aba
DE
45806
45807
a848cd7e 45808 if test "x$BAKEFILE_HOST" = "x"; then
f10e38c4
VZ
45809 if test "x${host}" = "x" ; then
45810 { { echo "$as_me:$LINENO: error: You must call the autoconf \"CANONICAL_HOST\" macro in your configure.ac (or .in) file." >&5
45811echo "$as_me: error: You must call the autoconf \"CANONICAL_HOST\" macro in your configure.ac (or .in) file." >&2;}
45812 { (exit 1); exit 1; }; }
45813 fi
45814
a848cd7e
SC
45815 BAKEFILE_HOST="${host}"
45816 fi
45817
45818 if test "x$BAKEFILE_CHECK_BASICS" != "xno"; then
45819
45820 if test -n "$ac_tool_prefix"; then
45821 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
45822set dummy ${ac_tool_prefix}ranlib; ac_word=$2
45823echo "$as_me:$LINENO: checking for $ac_word" >&5
45824echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
45825if test "${ac_cv_prog_RANLIB+set}" = set; then
45826 echo $ECHO_N "(cached) $ECHO_C" >&6
45827else
45828 if test -n "$RANLIB"; then
45829 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
45830else
45831as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
45832for as_dir in $PATH
45833do
45834 IFS=$as_save_IFS
45835 test -z "$as_dir" && as_dir=.
45836 for ac_exec_ext in '' $ac_executable_extensions; do
45837 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
45838 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
45839 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
45840 break 2
45841 fi
45842done
45843done
45844
45845fi
45846fi
45847RANLIB=$ac_cv_prog_RANLIB
45848if test -n "$RANLIB"; then
45849 echo "$as_me:$LINENO: result: $RANLIB" >&5
45850echo "${ECHO_T}$RANLIB" >&6
45851else
45852 echo "$as_me:$LINENO: result: no" >&5
45853echo "${ECHO_T}no" >&6
45854fi
45855
45856fi
45857if test -z "$ac_cv_prog_RANLIB"; then
45858 ac_ct_RANLIB=$RANLIB
45859 # Extract the first word of "ranlib", so it can be a program name with args.
45860set dummy ranlib; ac_word=$2
45861echo "$as_me:$LINENO: checking for $ac_word" >&5
45862echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
45863if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
45864 echo $ECHO_N "(cached) $ECHO_C" >&6
45865else
45866 if test -n "$ac_ct_RANLIB"; then
45867 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
45868else
45869as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
45870for as_dir in $PATH
45871do
45872 IFS=$as_save_IFS
45873 test -z "$as_dir" && as_dir=.
45874 for ac_exec_ext in '' $ac_executable_extensions; do
45875 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
45876 ac_cv_prog_ac_ct_RANLIB="ranlib"
45877 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
45878 break 2
45879 fi
45880done
45881done
45882
45883 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
45884fi
45885fi
45886ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
45887if test -n "$ac_ct_RANLIB"; then
45888 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
45889echo "${ECHO_T}$ac_ct_RANLIB" >&6
45890else
45891 echo "$as_me:$LINENO: result: no" >&5
45892echo "${ECHO_T}no" >&6
45893fi
45894
45895 RANLIB=$ac_ct_RANLIB
45896else
45897 RANLIB="$ac_cv_prog_RANLIB"
45898fi
45899
45900 # Find a good install program. We prefer a C program (faster),
45901# so one script is as good as another. But avoid the broken or
45902# incompatible versions:
45903# SysV /etc/install, /usr/sbin/install
45904# SunOS /usr/etc/install
45905# IRIX /sbin/install
45906# AIX /bin/install
45907# AmigaOS /C/install, which installs bootblocks on floppy discs
45908# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
45909# AFS /usr/afsws/bin/install, which mishandles nonexistent args
45910# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
ac1cb8d3 45911# OS/2's system install, which has a completely different semantic
a848cd7e
SC
45912# ./install, which can be erroneously created by make from ./install.sh.
45913echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
45914echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
45915if test -z "$INSTALL"; then
45916if test "${ac_cv_path_install+set}" = set; then
45917 echo $ECHO_N "(cached) $ECHO_C" >&6
45918else
45919 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
45920for as_dir in $PATH
45921do
45922 IFS=$as_save_IFS
45923 test -z "$as_dir" && as_dir=.
45924 # Account for people who put trailing slashes in PATH elements.
45925case $as_dir/ in
45926 ./ | .// | /cC/* | \
45927 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
ac1cb8d3 45928 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
a848cd7e
SC
45929 /usr/ucb/* ) ;;
45930 *)
45931 # OSF1 and SCO ODT 3.0 have their own names for install.
45932 # Don't use installbsd from OSF since it installs stuff as root
45933 # by default.
45934 for ac_prog in ginstall scoinst install; do
45935 for ac_exec_ext in '' $ac_executable_extensions; do
ac1cb8d3
VS
45936 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
45937 if test $ac_prog = install &&
45938 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
45939 # AIX install. It has an incompatible calling convention.
45940 :
45941 elif test $ac_prog = install &&
45942 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
45943 # program-specific install script used by HP pwplus--don't use.
45944 :
45945 else
45946 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
45947 break 3
45948 fi
45949 fi
a848cd7e
SC
45950 done
45951 done
45952 ;;
45953esac
45954done
45955
45956
45957fi
45958 if test "${ac_cv_path_install+set}" = set; then
45959 INSTALL=$ac_cv_path_install
45960 else
45961 # As a last resort, use the slow shell script. We don't cache a
45962 # path for INSTALL within a source directory, because that will
45963 # break other packages using the cache if that directory is
45964 # removed, or if the path is relative.
45965 INSTALL=$ac_install_sh
45966 fi
45967fi
45968echo "$as_me:$LINENO: result: $INSTALL" >&5
45969echo "${ECHO_T}$INSTALL" >&6
45970
45971# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
45972# It thinks the first close brace ends the variable substitution.
45973test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
45974
45975test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
45976
45977test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
45978
45979 echo "$as_me:$LINENO: checking whether ln -s works" >&5
45980echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
45981LN_S=$as_ln_s
45982if test "$LN_S" = "ln -s"; then
45983 echo "$as_me:$LINENO: result: yes" >&5
45984echo "${ECHO_T}yes" >&6
45985else
45986 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
45987echo "${ECHO_T}no, using $LN_S" >&6
45988fi
45989
45990
45991 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
45992echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
ac1cb8d3 45993set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
a848cd7e
SC
45994if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
45995 echo $ECHO_N "(cached) $ECHO_C" >&6
45996else
45997 cat >conftest.make <<\_ACEOF
45998all:
45999 @echo 'ac_maketemp="$(MAKE)"'
46000_ACEOF
46001# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
46002eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
46003if test -n "$ac_maketemp"; then
46004 eval ac_cv_prog_make_${ac_make}_set=yes
46005else
46006 eval ac_cv_prog_make_${ac_make}_set=no
46007fi
46008rm -f conftest.make
46009fi
46010if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
46011 echo "$as_me:$LINENO: result: yes" >&5
46012echo "${ECHO_T}yes" >&6
46013 SET_MAKE=
46014else
46015 echo "$as_me:$LINENO: result: no" >&5
46016echo "${ECHO_T}no" >&6
46017 SET_MAKE="MAKE=${MAKE-make}"
46018fi
46019
46020
46021
46022 if test -n "$ac_tool_prefix"; then
46023 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
46024set dummy ${ac_tool_prefix}ar; ac_word=$2
46025echo "$as_me:$LINENO: checking for $ac_word" >&5
46026echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
46027if test "${ac_cv_prog_AR+set}" = set; then
46028 echo $ECHO_N "(cached) $ECHO_C" >&6
46029else
46030 if test -n "$AR"; then
46031 ac_cv_prog_AR="$AR" # Let the user override the test.
46032else
46033as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
46034for as_dir in $PATH
46035do
46036 IFS=$as_save_IFS
46037 test -z "$as_dir" && as_dir=.
46038 for ac_exec_ext in '' $ac_executable_extensions; do
46039 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
46040 ac_cv_prog_AR="${ac_tool_prefix}ar"
46041 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
46042 break 2
46043 fi
46044done
46045done
46046
46047fi
46048fi
46049AR=$ac_cv_prog_AR
46050if test -n "$AR"; then
46051 echo "$as_me:$LINENO: result: $AR" >&5
46052echo "${ECHO_T}$AR" >&6
46053else
46054 echo "$as_me:$LINENO: result: no" >&5
46055echo "${ECHO_T}no" >&6
46056fi
46057
46058fi
46059if test -z "$ac_cv_prog_AR"; then
46060 ac_ct_AR=$AR
46061 # Extract the first word of "ar", so it can be a program name with args.
46062set dummy ar; ac_word=$2
46063echo "$as_me:$LINENO: checking for $ac_word" >&5
46064echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
46065if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
46066 echo $ECHO_N "(cached) $ECHO_C" >&6
46067else
46068 if test -n "$ac_ct_AR"; then
46069 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
46070else
46071as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
46072for as_dir in $PATH
46073do
46074 IFS=$as_save_IFS
46075 test -z "$as_dir" && as_dir=.
46076 for ac_exec_ext in '' $ac_executable_extensions; do
46077 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
46078 ac_cv_prog_ac_ct_AR="ar"
46079 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
46080 break 2
46081 fi
46082done
46083done
46084
46085 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="ar"
46086fi
46087fi
46088ac_ct_AR=$ac_cv_prog_ac_ct_AR
46089if test -n "$ac_ct_AR"; then
46090 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
46091echo "${ECHO_T}$ac_ct_AR" >&6
46092else
46093 echo "$as_me:$LINENO: result: no" >&5
46094echo "${ECHO_T}no" >&6
46095fi
46096
46097 AR=$ac_ct_AR
46098else
46099 AR="$ac_cv_prog_AR"
46100fi
46101
46102 if test -n "$ac_tool_prefix"; then
46103 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
46104set dummy ${ac_tool_prefix}strip; ac_word=$2
46105echo "$as_me:$LINENO: checking for $ac_word" >&5
46106echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
46107if test "${ac_cv_prog_STRIP+set}" = set; then
46108 echo $ECHO_N "(cached) $ECHO_C" >&6
46109else
46110 if test -n "$STRIP"; then
46111 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
46112else
46113as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
46114for as_dir in $PATH
46115do
46116 IFS=$as_save_IFS
46117 test -z "$as_dir" && as_dir=.
46118 for ac_exec_ext in '' $ac_executable_extensions; do
46119 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
46120 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
46121 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
46122 break 2
46123 fi
46124done
46125done
46126
46127fi
46128fi
46129STRIP=$ac_cv_prog_STRIP
46130if test -n "$STRIP"; then
46131 echo "$as_me:$LINENO: result: $STRIP" >&5
46132echo "${ECHO_T}$STRIP" >&6
46133else
46134 echo "$as_me:$LINENO: result: no" >&5
46135echo "${ECHO_T}no" >&6
46136fi
46137
46138fi
46139if test -z "$ac_cv_prog_STRIP"; then
46140 ac_ct_STRIP=$STRIP
46141 # Extract the first word of "strip", so it can be a program name with args.
46142set dummy strip; ac_word=$2
46143echo "$as_me:$LINENO: checking for $ac_word" >&5
46144echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
46145if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
46146 echo $ECHO_N "(cached) $ECHO_C" >&6
46147else
46148 if test -n "$ac_ct_STRIP"; then
46149 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
46150else
46151as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
46152for as_dir in $PATH
46153do
46154 IFS=$as_save_IFS
46155 test -z "$as_dir" && as_dir=.
46156 for ac_exec_ext in '' $ac_executable_extensions; do
46157 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
46158 ac_cv_prog_ac_ct_STRIP="strip"
46159 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
46160 break 2
46161 fi
46162done
46163done
46164
46165 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
46166fi
46167fi
46168ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
46169if test -n "$ac_ct_STRIP"; then
46170 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
46171echo "${ECHO_T}$ac_ct_STRIP" >&6
46172else
46173 echo "$as_me:$LINENO: result: no" >&5
46174echo "${ECHO_T}no" >&6
46175fi
46176
46177 STRIP=$ac_ct_STRIP
46178else
46179 STRIP="$ac_cv_prog_STRIP"
46180fi
46181
46182 if test -n "$ac_tool_prefix"; then
46183 # Extract the first word of "${ac_tool_prefix}nm", so it can be a program name with args.
46184set dummy ${ac_tool_prefix}nm; ac_word=$2
46185echo "$as_me:$LINENO: checking for $ac_word" >&5
46186echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
46187if test "${ac_cv_prog_NM+set}" = set; then
46188 echo $ECHO_N "(cached) $ECHO_C" >&6
46189else
46190 if test -n "$NM"; then
46191 ac_cv_prog_NM="$NM" # Let the user override the test.
46192else
46193as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
46194for as_dir in $PATH
46195do
46196 IFS=$as_save_IFS
46197 test -z "$as_dir" && as_dir=.
46198 for ac_exec_ext in '' $ac_executable_extensions; do
46199 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
46200 ac_cv_prog_NM="${ac_tool_prefix}nm"
46201 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
46202 break 2
46203 fi
46204done
46205done
46206
46207fi
46208fi
46209NM=$ac_cv_prog_NM
46210if test -n "$NM"; then
46211 echo "$as_me:$LINENO: result: $NM" >&5
46212echo "${ECHO_T}$NM" >&6
46213else
46214 echo "$as_me:$LINENO: result: no" >&5
46215echo "${ECHO_T}no" >&6
46216fi
46217
46218fi
46219if test -z "$ac_cv_prog_NM"; then
46220 ac_ct_NM=$NM
46221 # Extract the first word of "nm", so it can be a program name with args.
46222set dummy nm; ac_word=$2
46223echo "$as_me:$LINENO: checking for $ac_word" >&5
46224echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
46225if test "${ac_cv_prog_ac_ct_NM+set}" = set; then
46226 echo $ECHO_N "(cached) $ECHO_C" >&6
46227else
46228 if test -n "$ac_ct_NM"; then
46229 ac_cv_prog_ac_ct_NM="$ac_ct_NM" # Let the user override the test.
46230else
46231as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
46232for as_dir in $PATH
46233do
46234 IFS=$as_save_IFS
46235 test -z "$as_dir" && as_dir=.
46236 for ac_exec_ext in '' $ac_executable_extensions; do
46237 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
46238 ac_cv_prog_ac_ct_NM="nm"
46239 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
46240 break 2
46241 fi
46242done
46243done
46244
46245 test -z "$ac_cv_prog_ac_ct_NM" && ac_cv_prog_ac_ct_NM=":"
46246fi
46247fi
46248ac_ct_NM=$ac_cv_prog_ac_ct_NM
46249if test -n "$ac_ct_NM"; then
46250 echo "$as_me:$LINENO: result: $ac_ct_NM" >&5
46251echo "${ECHO_T}$ac_ct_NM" >&6
46252else
46253 echo "$as_me:$LINENO: result: no" >&5
46254echo "${ECHO_T}no" >&6
46255fi
46256
46257 NM=$ac_ct_NM
46258else
46259 NM="$ac_cv_prog_NM"
46260fi
46261
46262
46263 case ${BAKEFILE_HOST} in
46264 *-hp-hpux* )
1e9e8aba 46265 INSTALL_DIR="mkdir -p"
a848cd7e
SC
46266 ;;
46267 *) INSTALL_DIR="$INSTALL -d"
46268 ;;
46269 esac
46270
46271
46272 LDFLAGS_GUI=
46273 case ${BAKEFILE_HOST} in
46274 *-*-cygwin* | *-*-mingw32* )
46275 LDFLAGS_GUI="-mwindows"
46276 esac
46277
46278
46279 fi
46280
46281 echo "$as_me:$LINENO: checking if make is GNU make" >&5
46282echo $ECHO_N "checking if make is GNU make... $ECHO_C" >&6
46283if test "${bakefile_cv_prog_makeisgnu+set}" = set; then
46284 echo $ECHO_N "(cached) $ECHO_C" >&6
46285else
46286
46287 if ( ${SHELL-sh} -c "${MAKE-make} --version" 2> /dev/null |
46288 egrep -s GNU > /dev/null); then
46289 bakefile_cv_prog_makeisgnu="yes"
46290 else
46291 bakefile_cv_prog_makeisgnu="no"
46292 fi
46293
46294fi
46295echo "$as_me:$LINENO: result: $bakefile_cv_prog_makeisgnu" >&5
46296echo "${ECHO_T}$bakefile_cv_prog_makeisgnu" >&6
46297
46298 if test "x$bakefile_cv_prog_makeisgnu" = "xyes"; then
46299 IF_GNU_MAKE=""
46300 else
46301 IF_GNU_MAKE="#"
46302 fi
46303
46304
46305
46306 PLATFORM_UNIX=0
46307 PLATFORM_WIN32=0
46308 PLATFORM_MSDOS=0
46309 PLATFORM_MAC=0
1e9e8aba 46310 PLATFORM_MACOS=0
a848cd7e
SC
46311 PLATFORM_MACOSX=0
46312 PLATFORM_OS2=0
1e9e8aba 46313 PLATFORM_BEOS=0
a848cd7e
SC
46314
46315 if test "x$BAKEFILE_FORCE_PLATFORM" = "x"; then
46316 case "${BAKEFILE_HOST}" in
810b94f0 46317 *-*-mingw32* )
a848cd7e
SC
46318 PLATFORM_WIN32=1
46319 ;;
46320 *-pc-msdosdjgpp )
46321 PLATFORM_MSDOS=1
46322 ;;
46323 *-pc-os2_emx | *-pc-os2-emx )
46324 PLATFORM_OS2=1
46325 ;;
47bd5406 46326 *-*-darwin* )
a848cd7e
SC
46327 PLATFORM_MAC=1
46328 PLATFORM_MACOSX=1
46329 ;;
1e9e8aba
DE
46330 *-*-beos* )
46331 PLATFORM_BEOS=1
46332 ;;
46333 powerpc-apple-macos* )
46334 PLATFORM_MAC=1
46335 PLATFORM_MACOS=1
46336 ;;
a848cd7e
SC
46337 * )
46338 PLATFORM_UNIX=1
46339 ;;
46340 esac
46341 else
46342 case "$BAKEFILE_FORCE_PLATFORM" in
46343 win32 )
46344 PLATFORM_WIN32=1
46345 ;;
46346 msdos )
46347 PLATFORM_MSDOS=1
46348 ;;
46349 os2 )
46350 PLATFORM_OS2=1
46351 ;;
46352 darwin )
46353 PLATFORM_MAC=1
46354 PLATFORM_MACOSX=1
46355 ;;
46356 unix )
46357 PLATFORM_UNIX=1
46358 ;;
1e9e8aba
DE
46359 beos )
46360 PLATFORM_BEOS=1
46361 ;;
a848cd7e
SC
46362 * )
46363 { { echo "$as_me:$LINENO: error: Unknown platform: $BAKEFILE_FORCE_PLATFORM" >&5
46364echo "$as_me: error: Unknown platform: $BAKEFILE_FORCE_PLATFORM" >&2;}
46365 { (exit 1); exit 1; }; }
46366 ;;
46367 esac
46368 fi
46369
46370
46371
46372
46373
46374
46375
46376
46377
1e9e8aba
DE
46378
46379
a848cd7e
SC
46380 # Check whether --enable-omf or --disable-omf was given.
46381if test "${enable_omf+set}" = set; then
46382 enableval="$enable_omf"
46383 bk_os2_use_omf="$enableval"
46384fi;
46385
46386 case "${BAKEFILE_HOST}" in
46387 *-*-darwin* )
47bd5406
VZ
46388 if test "x$GCC" = "xyes"; then
46389 CFLAGS="$CFLAGS -fno-common"
46390 CXXFLAGS="$CXXFLAGS -fno-common"
46391 fi
46392 if test "x$XLCC" = "xyes"; then
46393 CFLAGS="$CFLAGS -qnocommon"
46394 CXXFLAGS="$CXXFLAGS -qnocommon"
46395 fi
a848cd7e
SC
46396 ;;
46397
46398 *-pc-os2_emx | *-pc-os2-emx )
46399 if test "x$bk_os2_use_omf" = "xyes" ; then
46400 AR=emxomfar
46401 RANLIB=:
46402 LDFLAGS="-Zomf $LDFLAGS"
46403 CFLAGS="-Zomf $CFLAGS"
46404 CXXFLAGS="-Zomf $CXXFLAGS"
46405 OS2_LIBEXT="lib"
46406 else
46407 OS2_LIBEXT="a"
46408 fi
46409 ;;
1e9e8aba
DE
46410
46411 i*86-*-beos* )
46412 LDFLAGS="-L/boot/develop/lib/x86 $LDFLAGS"
46413 ;;
a848cd7e
SC
46414 esac
46415
46416
46417 SO_SUFFIX="so"
46418 SO_SUFFIX_MODULE="so"
46419 EXEEXT=""
46420 LIBPREFIX="lib"
46421 LIBEXT=".a"
46422 DLLPREFIX="lib"
46423 DLLPREFIX_MODULE=""
46424 DLLIMP_SUFFIX=""
810b94f0 46425 dlldir="$libdir"
a848cd7e
SC
46426
46427 case "${BAKEFILE_HOST}" in
46428 *-hp-hpux* )
46429 SO_SUFFIX="sl"
46430 SO_SUFFIX_MODULE="sl"
46431 ;;
46432 *-*-aix* )
46433 SO_SUFFIX="a"
46434 SO_SUFFIX_MODULE="a"
46435 ;;
810b94f0
MW
46436 *-*-cygwin* )
46437 SO_SUFFIX="dll"
46438 SO_SUFFIX_MODULE="dll"
46439 DLLIMP_SUFFIX="dll.a"
46440 EXEEXT=".exe"
46441 DLLPREFIX="cyg"
46442 dlldir="$bindir"
46443 ;;
46444 *-*-mingw32* )
a848cd7e
SC
46445 SO_SUFFIX="dll"
46446 SO_SUFFIX_MODULE="dll"
46447 DLLIMP_SUFFIX="dll.a"
46448 EXEEXT=".exe"
46449 DLLPREFIX=""
810b94f0 46450 dlldir="$bindir"
a848cd7e
SC
46451 ;;
46452 *-pc-msdosdjgpp )
46453 EXEEXT=".exe"
46454 DLLPREFIX=""
810b94f0 46455 dlldir="$bindir"
a848cd7e
SC
46456 ;;
46457 *-pc-os2_emx | *-pc-os2-emx )
46458 SO_SUFFIX="dll"
46459 SO_SUFFIX_MODULE="dll"
46460 DLLIMP_SUFFIX=$OS2_LIBEXT
46461 EXEEXT=".exe"
46462 DLLPREFIX=""
46463 LIBPREFIX=""
46464 LIBEXT=".$OS2_LIBEXT"
810b94f0 46465 dlldir="$bindir"
a848cd7e 46466 ;;
47bd5406 46467 *-*-darwin* )
a848cd7e
SC
46468 SO_SUFFIX="dylib"
46469 SO_SUFFIX_MODULE="bundle"
46470 ;;
46471 esac
46472
46473 if test "x$DLLIMP_SUFFIX" = "x" ; then
46474 DLLIMP_SUFFIX="$SO_SUFFIX"
46475 fi
46476
46477
46478
46479
46480
46481
46482
46483
46484
46485
46486
810b94f0 46487
1e9e8aba
DE
46488 PIC_FLAG=""
46489 if test "x$GCC" = "xyes"; then
a848cd7e
SC
46490 PIC_FLAG="-fPIC"
46491 fi
46492
1e9e8aba
DE
46493 SHARED_LD_CC="\$(CC) -shared ${PIC_FLAG} -o"
46494 SHARED_LD_CXX="\$(CXX) -shared ${PIC_FLAG} -o"
810b94f0 46495 WINDOWS_IMPLIB=0
1e9e8aba 46496
a848cd7e
SC
46497 case "${BAKEFILE_HOST}" in
46498 *-hp-hpux* )
1e9e8aba 46499 if test "x$GCC" != "xyes"; then
a848cd7e
SC
46500 LDFLAGS="$LDFLAGS -L/usr/lib"
46501
46502 SHARED_LD_CC="${CC} -b -o"
46503 SHARED_LD_CXX="${CXX} -b -o"
46504 PIC_FLAG="+Z"
46505 fi
46506 ;;
46507
46508 *-*-linux* )
46509 if test "x$GCC" != "xyes"; then
46510 echo "$as_me:$LINENO: checking for Intel compiler" >&5
46511echo $ECHO_N "checking for Intel compiler... $ECHO_C" >&6
46512if test "${bakefile_cv_prog_icc+set}" = set; then
46513 echo $ECHO_N "(cached) $ECHO_C" >&6
46514else
46515
46516 cat >conftest.$ac_ext <<_ACEOF
46517/* confdefs.h. */
46518_ACEOF
46519cat confdefs.h >>conftest.$ac_ext
46520cat >>conftest.$ac_ext <<_ACEOF
46521/* end confdefs.h. */
46522
46523int
46524main ()
46525{
46526
46527 #ifndef __INTEL_COMPILER
e5efa97e 46528 This is not ICC
a848cd7e
SC
46529 #endif
46530
46531 ;
46532 return 0;
46533}
46534_ACEOF
46535rm -f conftest.$ac_objext
46536if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 46537 (eval $ac_compile) 2>conftest.er1
a848cd7e 46538 ac_status=$?
ac1cb8d3
VS
46539 grep -v '^ *+' conftest.er1 >conftest.err
46540 rm -f conftest.er1
46541 cat conftest.err >&5
a848cd7e
SC
46542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46543 (exit $ac_status); } &&
3f60522a
JS
46544 { ac_try='test -z "$ac_c_werror_flag"
46545 || test ! -s conftest.err'
ac1cb8d3
VS
46546 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46547 (eval $ac_try) 2>&5
46548 ac_status=$?
46549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46550 (exit $ac_status); }; } &&
46551 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
46552 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46553 (eval $ac_try) 2>&5
46554 ac_status=$?
46555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46556 (exit $ac_status); }; }; then
46557 bakefile_cv_prog_icc=yes
46558else
46559 echo "$as_me: failed program was:" >&5
46560sed 's/^/| /' conftest.$ac_ext >&5
46561
46562bakefile_cv_prog_icc=no
46563
46564fi
ac1cb8d3 46565rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
46566
46567fi
46568echo "$as_me:$LINENO: result: $bakefile_cv_prog_icc" >&5
46569echo "${ECHO_T}$bakefile_cv_prog_icc" >&6
46570 if test "$bakefile_cv_prog_icc" = "yes"; then
46571 PIC_FLAG="-KPIC"
46572 fi
46573 fi
46574 ;;
46575
46576 *-*-solaris2* )
46577 if test "x$GCC" != xyes ; then
46578 SHARED_LD_CC="${CC} -G -o"
46579 SHARED_LD_CXX="${CXX} -G -o"
46580 PIC_FLAG="-KPIC"
46581 fi
46582 ;;
46583
46584 *-*-darwin* )
46585
473276a9
VS
46586D='$'
46587cat <<EOF >shared-ld-sh
a848cd7e
SC
46588#!/bin/sh
46589#-----------------------------------------------------------------------------
46590#-- Name: distrib/mac/shared-ld-sh
46591#-- Purpose: Link a mach-o dynamic shared library for Darwin / Mac OS X
46592#-- Author: Gilles Depeyrot
46593#-- Copyright: (c) 2002 Gilles Depeyrot
46594#-- Licence: any use permitted
46595#-----------------------------------------------------------------------------
46596
46597verbose=0
46598args=""
46599objects=""
46600linking_flag="-dynamiclib"
810b94f0 46601ldargs="-r -keep_private_externs -nostdlib"
a848cd7e 46602
473276a9
VS
46603while test ${D}# -gt 0; do
46604 case ${D}1 in
a848cd7e
SC
46605
46606 -v)
46607 verbose=1
46608 ;;
46609
46610 -o|-compatibility_version|-current_version|-framework|-undefined|-install_name)
46611 # collect these options and values
473276a9 46612 args="${D}{args} ${D}1 ${D}2"
a848cd7e
SC
46613 shift
46614 ;;
46615
810b94f0
MW
46616 -s|-Wl,*)
46617 # collect these load args
46618 ldargs="${D}{ldargs} ${D}1"
2113bc77 46619 ;;
810b94f0
MW
46620
46621 -l*|-L*|-flat_namespace|-headerpad_max_install_names)
a848cd7e 46622 # collect these options
473276a9 46623 args="${D}{args} ${D}1"
a848cd7e
SC
46624 ;;
46625
46626 -dynamiclib|-bundle)
473276a9 46627 linking_flag="${D}1"
a848cd7e
SC
46628 ;;
46629
46630 -*)
473276a9 46631 echo "shared-ld: unhandled option '${D}1'"
a848cd7e
SC
46632 exit 1
46633 ;;
46634
46635 *.o | *.a | *.dylib)
46636 # collect object files
473276a9 46637 objects="${D}{objects} ${D}1"
a848cd7e
SC
46638 ;;
46639
46640 *)
473276a9 46641 echo "shared-ld: unhandled argument '${D}1'"
a848cd7e
SC
46642 exit 1
46643 ;;
46644
46645 esac
46646 shift
46647done
46648
810b94f0
MW
46649status=0
46650
a848cd7e
SC
46651#
46652# Link one module containing all the others
46653#
473276a9 46654if test ${D}{verbose} = 1; then
810b94f0 46655 echo "c++ ${D}{ldargs} ${D}{objects} -o master.${D}${D}.o"
a848cd7e 46656fi
810b94f0 46657c++ ${D}{ldargs} ${D}{objects} -o master.${D}${D}.o
473276a9 46658status=${D}?
a848cd7e
SC
46659
46660#
810b94f0
MW
46661# Link the shared library from the single module created, but only if the
46662# previous command didn't fail:
a848cd7e 46663#
810b94f0
MW
46664if test ${D}{status} = 0; then
46665 if test ${D}{verbose} = 1; then
46666 echo "c++ ${D}{linking_flag} master.${D}${D}.o ${D}{args}"
46667 fi
46668 c++ ${D}{linking_flag} master.${D}${D}.o ${D}{args}
46669 status=${D}?
a848cd7e
SC
46670fi
46671
46672#
46673# Remove intermediate module
46674#
473276a9 46675rm -f master.${D}${D}.o
a848cd7e 46676
810b94f0 46677exit ${D}status
a848cd7e 46678EOF
473276a9 46679
583d6b4b
VZ
46680 chmod +x shared-ld-sh
46681
46682 SHARED_LD_MODULE_CC="`pwd`/shared-ld-sh -bundle -headerpad_max_install_names -o"
46683 SHARED_LD_MODULE_CXX="$SHARED_LD_MODULE_CC"
46684
46685
46686 echo "$as_me:$LINENO: checking for gcc 3.1 or later" >&5
46687echo $ECHO_N "checking for gcc 3.1 or later... $ECHO_C" >&6
46688if test "${bakefile_cv_gcc31+set}" = set; then
46689 echo $ECHO_N "(cached) $ECHO_C" >&6
46690else
46691
46692 cat >conftest.$ac_ext <<_ACEOF
46693/* confdefs.h. */
46694_ACEOF
46695cat confdefs.h >>conftest.$ac_ext
46696cat >>conftest.$ac_ext <<_ACEOF
46697/* end confdefs.h. */
46698
46699int
46700main ()
46701{
46702
46703 #if (__GNUC__ < 3) || \
46704 ((__GNUC__ == 3) && (__GNUC_MINOR__ < 1))
e5efa97e 46705 This is old gcc
583d6b4b 46706 #endif
a848cd7e 46707
583d6b4b
VZ
46708 ;
46709 return 0;
46710}
46711_ACEOF
46712rm -f conftest.$ac_objext
46713if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
46714 (eval $ac_compile) 2>conftest.er1
46715 ac_status=$?
46716 grep -v '^ *+' conftest.er1 >conftest.err
46717 rm -f conftest.er1
46718 cat conftest.err >&5
46719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46720 (exit $ac_status); } &&
3f60522a
JS
46721 { ac_try='test -z "$ac_c_werror_flag"
46722 || test ! -s conftest.err'
583d6b4b
VZ
46723 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46724 (eval $ac_try) 2>&5
46725 ac_status=$?
46726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46727 (exit $ac_status); }; } &&
46728 { ac_try='test -s conftest.$ac_objext'
46729 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46730 (eval $ac_try) 2>&5
46731 ac_status=$?
46732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46733 (exit $ac_status); }; }; then
46734
46735 bakefile_cv_gcc31=yes
46736
46737else
46738 echo "$as_me: failed program was:" >&5
46739sed 's/^/| /' conftest.$ac_ext >&5
46740
46741
46742 bakefile_cv_gcc31=no
46743
46744
46745fi
46746rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
46747
46748fi
46749echo "$as_me:$LINENO: result: $bakefile_cv_gcc31" >&5
46750echo "${ECHO_T}$bakefile_cv_gcc31" >&6
46751 if test "$bakefile_cv_gcc31" = "no"; then
a848cd7e 46752 SHARED_LD_CC="`pwd`/shared-ld-sh -dynamiclib -headerpad_max_install_names -o"
a848cd7e 46753 SHARED_LD_CXX="$SHARED_LD_CC"
a848cd7e
SC
46754 else
46755 SHARED_LD_CC="\${CC} -dynamiclib -single_module -headerpad_max_install_names -o"
a848cd7e 46756 SHARED_LD_CXX="\${CXX} -dynamiclib -single_module -headerpad_max_install_names -o"
a848cd7e
SC
46757 fi
46758
47bd5406
VZ
46759 if test "x$GCC" == "xyes"; then
46760 PIC_FLAG="-dynamic -fPIC"
46761 fi
46762 if test "x$XLCC" = "xyes"; then
46763 PIC_FLAG="-dynamic -DPIC"
46764 fi
a848cd7e
SC
46765 ;;
46766
46767 *-*-aix* )
f6b50c59 46768 if test "x$GCC" = "xyes"; then
583d6b4b 46769 PIC_FLAG=""
f6b50c59 46770
583d6b4b
VZ
46771 case "${BAKEFILE_HOST}" in
46772 *-*-aix5* )
46773 LD_EXPFULL="-Wl,-bexpfull"
46774 ;;
46775 esac
f6b50c59 46776
583d6b4b
VZ
46777 SHARED_LD_CC="\$(CC) -shared $LD_EXPFULL -o"
46778 SHARED_LD_CXX="\$(CXX) -shared $LD_EXPFULL -o"
46779 else
46780 # Extract the first word of "makeC++SharedLib", so it can be a program name with args.
a848cd7e
SC
46781set dummy makeC++SharedLib; ac_word=$2
46782echo "$as_me:$LINENO: checking for $ac_word" >&5
46783echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
46784if test "${ac_cv_prog_AIX_CXX_LD+set}" = set; then
46785 echo $ECHO_N "(cached) $ECHO_C" >&6
46786else
46787 if test -n "$AIX_CXX_LD"; then
46788 ac_cv_prog_AIX_CXX_LD="$AIX_CXX_LD" # Let the user override the test.
46789else
46790as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
46791for as_dir in $PATH
46792do
46793 IFS=$as_save_IFS
46794 test -z "$as_dir" && as_dir=.
46795 for ac_exec_ext in '' $ac_executable_extensions; do
46796 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
46797 ac_cv_prog_AIX_CXX_LD="makeC++SharedLib"
46798 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
46799 break 2
46800 fi
46801done
46802done
46803
46804 test -z "$ac_cv_prog_AIX_CXX_LD" && ac_cv_prog_AIX_CXX_LD="/usr/lpp/xlC/bin/makeC++SharedLib"
46805fi
46806fi
46807AIX_CXX_LD=$ac_cv_prog_AIX_CXX_LD
46808if test -n "$AIX_CXX_LD"; then
46809 echo "$as_me:$LINENO: result: $AIX_CXX_LD" >&5
46810echo "${ECHO_T}$AIX_CXX_LD" >&6
46811else
46812 echo "$as_me:$LINENO: result: no" >&5
46813echo "${ECHO_T}no" >&6
46814fi
46815
f6b50c59 46816 SHARED_LD_CC="$AIX_CC_LD -p 0 -o"
a848cd7e
SC
46817 SHARED_LD_CXX="$AIX_CXX_LD -p 0 -o"
46818 fi
46819 ;;
46820
46821 *-*-beos* )
1e9e8aba
DE
46822 SHARED_LD_CC="${LD} -nostart -o"
46823 SHARED_LD_CXX="${LD} -nostart -o"
a848cd7e
SC
46824 ;;
46825
46826 *-*-irix* )
46827 if test "x$GCC" != "xyes"; then
46828 PIC_FLAG="-KPIC"
46829 fi
46830 ;;
46831
46832 *-*-cygwin* | *-*-mingw32* )
46833 PIC_FLAG=""
1e9e8aba
DE
46834 SHARED_LD_CC="\$(CC) -shared -o"
46835 SHARED_LD_CXX="\$(CXX) -shared -o"
810b94f0 46836 WINDOWS_IMPLIB=1
a848cd7e
SC
46837 ;;
46838
46839 *-pc-os2_emx | *-pc-os2-emx )
b1d22ded
DE
46840 SHARED_LD_CC="`pwd`/dllar.sh -libf INITINSTANCE -libf TERMINSTANCE -o"
46841 SHARED_LD_CXX="`pwd`/dllar.sh -libf INITINSTANCE -libf TERMINSTANCE -o"
a848cd7e 46842 PIC_FLAG=""
473276a9
VS
46843
46844D='$'
46845cat <<EOF >dllar.sh
46846#!/bin/sh
46847#
46848# dllar - a tool to build both a .dll and an .a file
46849# from a set of object (.o) files for EMX/OS2.
46850#
46851# Written by Andrew Zabolotny, bit@freya.etu.ru
46852# Ported to Unix like shell by Stefan Neis, Stefan.Neis@t-online.de
46853#
46854# This script will accept a set of files on the command line.
46855# All the public symbols from the .o files will be exported into
46856# a .DEF file, then linker will be run (through gcc) against them to
46857# build a shared library consisting of all given .o files. All libraries
46858# (.a) will be first decompressed into component .o files then act as
46859# described above. You can optionally give a description (-d "description")
46860# which will be put into .DLL. To see the list of accepted options (as well
46861# as command-line format) simply run this program without options. The .DLL
46862# is built to be imported by name (there is no guarantee that new versions
46863# of the library you build will have same ordinals for same symbols).
46864#
46865# dllar is free software; you can redistribute it and/or modify
46866# it under the terms of the GNU General Public License as published by
46867# the Free Software Foundation; either version 2, or (at your option)
46868# any later version.
46869#
46870# dllar is distributed in the hope that it will be useful,
46871# but WITHOUT ANY WARRANTY; without even the implied warranty of
46872# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
46873# GNU General Public License for more details.
46874#
46875# You should have received a copy of the GNU General Public License
46876# along with dllar; see the file COPYING. If not, write to the Free
46877# Software Foundation, 59 Temple Place - Suite 330, Boston, MA
46878# 02111-1307, USA.
46879
46880# To successfuly run this program you will need:
46881# - Current drive should have LFN support (HPFS, ext2, network, etc)
46882# (Sometimes dllar generates filenames which won't fit 8.3 scheme)
46883# - gcc
46884# (used to build the .dll)
46885# - emxexp
46886# (used to create .def file from .o files)
46887# - emximp
46888# (used to create .a file from .def file)
46889# - GNU text utilites (cat, sort, uniq)
46890# used to process emxexp output
46891# - GNU file utilities (mv, rm)
46892# - GNU sed
46893# - lxlite (optional, see flag below)
46894# (used for general .dll cleanup)
46895#
46896
46897flag_USE_LXLITE=1;
46898
46899#
46900# helper functions
46901# basnam, variant of basename, which does _not_ remove the path, _iff_
46902# second argument (suffix to remove) is given
46903basnam(){
46904 case ${D}# in
46905 1)
1e9e8aba 46906 echo ${D}1 | sed 's/.*\\///' | sed 's/.*\\\\//'
473276a9
VS
46907 ;;
46908 2)
46909 echo ${D}1 | sed 's/'${D}2'${D}//'
46910 ;;
46911 *)
46912 echo "error in basnam ${D}*"
46913 exit 8
46914 ;;
46915 esac
46916}
46917
46918# Cleanup temporary files and output
46919CleanUp() {
46920 cd ${D}curDir
46921 for i in ${D}inputFiles ; do
46922 case ${D}i in
46923 *!)
46924 rm -rf \`basnam ${D}i !\`
46925 ;;
46926 *)
46927 ;;
46928 esac
46929 done
46930
46931 # Kill result in case of failure as there is just to many stupid make/nmake
46932 # things out there which doesn't do this.
1e9e8aba 46933 if [ ${D}# -eq 0 ]; then
473276a9
VS
46934 rm -f ${D}arcFile ${D}arcFile2 ${D}defFile ${D}dllFile
46935 fi
46936}
46937
46938# Print usage and exit script with rc=1.
46939PrintHelp() {
b1d22ded
DE
46940 echo 'Usage: dllar.sh [-o[utput] output_file] [-i[mport] importlib_name]'
46941 echo ' [-name-mangler-script script.sh]'
46942 echo ' [-d[escription] "dll descrption"] [-cc "CC"] [-f[lags] "CFLAGS"]'
46943 echo ' [-ord[inals]] -ex[clude] "symbol(s)"'
46944 echo ' [-libf[lags] "{INIT|TERM}{GLOBAL|INSTANCE}"] [-nocrt[dll]] [-nolxl[ite]]'
1e9e8aba 46945 echo ' [*.o] [*.a]'
473276a9
VS
46946 echo '*> "output_file" should have no extension.'
46947 echo ' If it has the .o, .a or .dll extension, it is automatically removed.'
46948 echo ' The import library name is derived from this and is set to "name".a,'
46949 echo ' unless overridden by -import'
46950 echo '*> "importlib_name" should have no extension.'
46951 echo ' If it has the .o, or .a extension, it is automatically removed.'
46952 echo ' This name is used as the import library name and may be longer and'
46953 echo ' more descriptive than the DLL name which has to follow the old '
46954 echo ' 8.3 convention of FAT.'
b1d22ded
DE
46955 echo '*> "script.sh may be given to override the output_file name by a'
46956 echo ' different name. It is mainly useful if the regular make process'
46957 echo ' of some package does not take into account OS/2 restriction of'
46958 echo ' DLL name lengths. It takes the importlib name as input and is'
46959 echo ' supposed to procude a shorter name as output. The script should'
46960 echo ' expect to get importlib_name without extension and should produce'
46961 echo ' a (max.) 8 letter name without extension.'
473276a9
VS
46962 echo '*> "cc" is used to use another GCC executable. (default: gcc.exe)'
46963 echo '*> "flags" should be any set of valid GCC flags. (default: -s -Zcrtdll)'
46964 echo ' These flags will be put at the start of GCC command line.'
b1d22ded
DE
46965 echo '*> -ord[inals] tells dllar to export entries by ordinals. Be careful.'
46966 echo '*> -ex[clude] defines symbols which will not be exported. You can define'
473276a9
VS
46967 echo ' multiple symbols, for example -ex "myfunc yourfunc _GLOBAL*".'
46968 echo ' If the last character of a symbol is "*", all symbols beginning'
46969 echo ' with the prefix before "*" will be exclude, (see _GLOBAL* above).'
b1d22ded 46970 echo '*> -libf[lags] can be used to add INITGLOBAL/INITINSTANCE and/or'
473276a9 46971 echo ' TERMGLOBAL/TERMINSTANCE flags to the dynamically-linked library.'
b1d22ded 46972 echo '*> -nocrt[dll] switch will disable linking the library against emx''s'
473276a9 46973 echo ' C runtime DLLs.'
b1d22ded 46974 echo '*> -nolxl[ite] switch will disable running lxlite on the resulting DLL.'
473276a9
VS
46975 echo '*> All other switches (for example -L./ or -lmylib) will be passed'
46976 echo ' unchanged to GCC at the end of command line.'
46977 echo '*> If you create a DLL from a library and you do not specify -o,'
46978 echo ' the basename for DLL and import library will be set to library name,'
46979 echo ' the initial library will be renamed to 'name'_s.a (_s for static)'
46980 echo ' i.e. "dllar gcc.a" will create gcc.dll and gcc.a, and the initial'
46981 echo ' library will be renamed into gcc_s.a.'
46982 echo '--------'
46983 echo 'Example:'
46984 echo ' dllar -o gcc290.dll libgcc.a -d "GNU C runtime library" -ord'
46985 echo ' -ex "__main __ctordtor*" -libf "INITINSTANCE TERMINSTANCE"'
46986 CleanUp
46987 exit 1
46988}
46989
46990# Execute a command.
46991# If exit code of the commnad <> 0 CleanUp() is called and we'll exit the script.
46992# @Uses Whatever CleanUp() uses.
46993doCommand() {
46994 echo "${D}*"
46995 eval ${D}*
46996 rcCmd=${D}?
46997
1e9e8aba 46998 if [ ${D}rcCmd -ne 0 ]; then
473276a9
VS
46999 echo "command failed, exit code="${D}rcCmd
47000 CleanUp
47001 exit ${D}rcCmd
47002 fi
47003}
47004
47005# main routine
47006# setup globals
47007cmdLine=${D}*
47008outFile=""
47009outimpFile=""
47010inputFiles=""
b1d22ded 47011renameScript=""
473276a9
VS
47012description=""
47013CC=gcc.exe
47014CFLAGS="-s -Zcrtdll"
47015EXTRA_CFLAGS=""
47016EXPORT_BY_ORDINALS=0
47017exclude_symbols=""
47018library_flags=""
47019curDir=\`pwd\`
47020curDirS=curDir
47021case ${D}curDirS in
47022*/)
47023 ;;
47024*)
47025 curDirS=${D}{curDirS}"/"
47026 ;;
47027esac
47028# Parse commandline
47029libsToLink=0
b1d22ded 47030omfLinking=0
1e9e8aba 47031while [ ${D}1 ]; do
473276a9
VS
47032 case ${D}1 in
47033 -ord*)
47034 EXPORT_BY_ORDINALS=1;
47035 ;;
47036 -o*)
47037 shift
47038 outFile=${D}1
47039 ;;
47040 -i*)
47041 shift
47042 outimpFile=${D}1
47043 ;;
b1d22ded
DE
47044 -name-mangler-script)
47045 shift
47046 renameScript=${D}1
47047 ;;
473276a9
VS
47048 -d*)
47049 shift
47050 description=${D}1
47051 ;;
47052 -f*)
47053 shift
47054 CFLAGS=${D}1
47055 ;;
47056 -c*)
47057 shift
47058 CC=${D}1
47059 ;;
47060 -h*)
47061 PrintHelp
47062 ;;
47063 -ex*)
47064 shift
47065 exclude_symbols=${D}{exclude_symbols}${D}1" "
47066 ;;
47067 -libf*)
47068 shift
47069 library_flags=${D}{library_flags}${D}1" "
47070 ;;
47071 -nocrt*)
47072 CFLAGS="-s"
47073 ;;
47074 -nolxl*)
47075 flag_USE_LXLITE=0
47076 ;;
47077 -* | /*)
47078 case ${D}1 in
47079 -L* | -l*)
47080 libsToLink=1
47081 ;;
b1d22ded
DE
47082 -Zomf)
47083 omfLinking=1
47084 ;;
473276a9
VS
47085 *)
47086 ;;
47087 esac
47088 EXTRA_CFLAGS=${D}{EXTRA_CFLAGS}" "${D}1
47089 ;;
b1d22ded
DE
47090 *.dll)
47091 EXTRA_CFLAGS="${D}{EXTRA_CFLAGS} \`basnam ${D}1 .dll\`"
47092 if [ ${D}omfLinking -eq 1 ]; then
47093 EXTRA_CFLAGS="${D}{EXTRA_CFLAGS}.lib"
47094 else
47095 EXTRA_CFLAGS="${D}{EXTRA_CFLAGS}.a"
47096 fi
47097 ;;
473276a9
VS
47098 *)
47099 found=0;
1e9e8aba 47100 if [ ${D}libsToLink -ne 0 ]; then
473276a9
VS
47101 EXTRA_CFLAGS=${D}{EXTRA_CFLAGS}" "${D}1
47102 else
47103 for file in ${D}1 ; do
1e9e8aba 47104 if [ -f ${D}file ]; then
473276a9
VS
47105 inputFiles="${D}{inputFiles} ${D}file"
47106 found=1
47107 fi
47108 done
1e9e8aba 47109 if [ ${D}found -eq 0 ]; then
473276a9
VS
47110 echo "ERROR: No file(s) found: "${D}1
47111 exit 8
47112 fi
47113 fi
47114 ;;
47115 esac
47116 shift
47117done # iterate cmdline words
47118
47119#
1e9e8aba 47120if [ -z "${D}inputFiles" ]; then
473276a9
VS
47121 echo "dllar: no input files"
47122 PrintHelp
47123fi
47124
47125# Now extract all .o files from .a files
47126newInputFiles=""
47127for file in ${D}inputFiles ; do
47128 case ${D}file in
47129 *.a | *.lib)
47130 case ${D}file in
47131 *.a)
47132 suffix=".a"
47133 AR="ar"
47134 ;;
47135 *.lib)
47136 suffix=".lib"
47137 AR="emxomfar"
47138 EXTRA_CFLAGS="${D}EXTRA_CFLAGS -Zomf"
47139 ;;
47140 *)
47141 ;;
47142 esac
47143 dirname=\`basnam ${D}file ${D}suffix\`"_%"
47144 mkdir ${D}dirname
1e9e8aba 47145 if [ ${D}? -ne 0 ]; then
473276a9
VS
47146 echo "Failed to create subdirectory ./${D}dirname"
47147 CleanUp
47148 exit 8;
47149 fi
47150 # Append '!' to indicate archive
47151 newInputFiles="${D}newInputFiles ${D}{dirname}!"
47152 doCommand "cd ${D}dirname; ${D}AR x ../${D}file"
47153 cd ${D}curDir
47154 found=0;
47155 for subfile in ${D}dirname/*.o* ; do
1e9e8aba 47156 if [ -f ${D}subfile ]; then
473276a9 47157 found=1
1e9e8aba 47158 if [ -s ${D}subfile ]; then
473276a9
VS
47159 # FIXME: This should be: is file size > 32 byte, _not_ > 0!
47160 newInputFiles="${D}newInputFiles ${D}subfile"
47161 fi
47162 fi
47163 done
1e9e8aba
DE
47164 if [ ${D}found -eq 0 ]; then
47165 echo "WARNING: there are no files in archive \\'${D}file\\'"
473276a9
VS
47166 fi
47167 ;;
47168 *)
47169 newInputFiles="${D}{newInputFiles} ${D}file"
47170 ;;
47171 esac
47172done
47173inputFiles="${D}newInputFiles"
47174
47175# Output filename(s).
47176do_backup=0;
1e9e8aba 47177if [ -z ${D}outFile ]; then
473276a9
VS
47178 do_backup=1;
47179 set outFile ${D}inputFiles; outFile=${D}2
47180fi
47181
47182# If it is an archive, remove the '!' and the '_%' suffixes
47183case ${D}outFile in
47184*_%!)
47185 outFile=\`basnam ${D}outFile _%!\`
47186 ;;
47187*)
47188 ;;
47189esac
47190case ${D}outFile in
47191*.dll)
47192 outFile=\`basnam ${D}outFile .dll\`
47193 ;;
47194*.DLL)
47195 outFile=\`basnam ${D}outFile .DLL\`
47196 ;;
47197*.o)
47198 outFile=\`basnam ${D}outFile .o\`
47199 ;;
47200*.obj)
47201 outFile=\`basnam ${D}outFile .obj\`
47202 ;;
47203*.a)
47204 outFile=\`basnam ${D}outFile .a\`
47205 ;;
47206*.lib)
47207 outFile=\`basnam ${D}outFile .lib\`
47208 ;;
47209*)
47210 ;;
47211esac
47212case ${D}outimpFile in
47213*.a)
47214 outimpFile=\`basnam ${D}outimpFile .a\`
47215 ;;
47216*.lib)
47217 outimpFile=\`basnam ${D}outimpFile .lib\`
47218 ;;
47219*)
47220 ;;
47221esac
1e9e8aba 47222if [ -z ${D}outimpFile ]; then
473276a9
VS
47223 outimpFile=${D}outFile
47224fi
47225defFile="${D}{outFile}.def"
47226arcFile="${D}{outimpFile}.a"
47227arcFile2="${D}{outimpFile}.lib"
b1d22ded
DE
47228
47229#create ${D}dllFile as something matching 8.3 restrictions,
47230if [ -z ${D}renameScript ] ; then
47231 dllFile="${D}outFile"
47232else
47233 dllFile=\`${D}renameScript ${D}outimpFile\`
47234fi
473276a9 47235
1e9e8aba
DE
47236if [ ${D}do_backup -ne 0 ] ; then
47237 if [ -f ${D}arcFile ] ; then
473276a9
VS
47238 doCommand "mv ${D}arcFile ${D}{outFile}_s.a"
47239 fi
1e9e8aba 47240 if [ -f ${D}arcFile2 ] ; then
473276a9
VS
47241 doCommand "mv ${D}arcFile2 ${D}{outFile}_s.lib"
47242 fi
47243fi
47244
47245# Extract public symbols from all the object files.
47246tmpdefFile=${D}{defFile}_%
47247rm -f ${D}tmpdefFile
47248for file in ${D}inputFiles ; do
47249 case ${D}file in
47250 *!)
47251 ;;
47252 *)
47253 doCommand "emxexp -u ${D}file >> ${D}tmpdefFile"
47254 ;;
47255 esac
47256done
47257
47258# Create the def file.
47259rm -f ${D}defFile
47260echo "LIBRARY \`basnam ${D}dllFile\` ${D}library_flags" >> ${D}defFile
b1d22ded
DE
47261dllFile="${D}{dllFile}.dll"
47262if [ ! -z ${D}description ]; then
1e9e8aba 47263 echo "DESCRIPTION \\"${D}{description}\\"" >> ${D}defFile
473276a9
VS
47264fi
47265echo "EXPORTS" >> ${D}defFile
47266
47267doCommand "cat ${D}tmpdefFile | sort.exe | uniq.exe > ${D}{tmpdefFile}%"
47268grep -v "^ *;" < ${D}{tmpdefFile}% | grep -v "^ *${D}" >${D}tmpdefFile
47269
47270# Checks if the export is ok or not.
47271for word in ${D}exclude_symbols; do
47272 grep -v ${D}word < ${D}tmpdefFile >${D}{tmpdefFile}%
47273 mv ${D}{tmpdefFile}% ${D}tmpdefFile
47274done
47275
47276
1e9e8aba
DE
47277if [ ${D}EXPORT_BY_ORDINALS -ne 0 ]; then
47278 sed "=" < ${D}tmpdefFile | \\
473276a9
VS
47279 sed '
47280 N
47281 : loop
1e9e8aba 47282 s/^\\([0-9]\\+\\)\\([^;]*\\)\\(;.*\\)\\?/\\2 @\\1 NONAME/
473276a9
VS
47283 t loop
47284 ' > ${D}{tmpdefFile}%
47285 grep -v "^ *${D}" < ${D}{tmpdefFile}% > ${D}tmpdefFile
47286else
47287 rm -f ${D}{tmpdefFile}%
47288fi
47289cat ${D}tmpdefFile >> ${D}defFile
47290rm -f ${D}tmpdefFile
47291
47292# Do linking, create implib, and apply lxlite.
47293gccCmdl="";
47294for file in ${D}inputFiles ; do
47295 case ${D}file in
47296 *!)
47297 ;;
47298 *)
47299 gccCmdl="${D}gccCmdl ${D}file"
47300 ;;
47301 esac
47302done
47303doCommand "${D}CC ${D}CFLAGS -Zdll -o ${D}dllFile ${D}defFile ${D}gccCmdl ${D}EXTRA_CFLAGS"
47304touch "${D}{outFile}.dll"
47305
47306doCommand "emximp -o ${D}arcFile ${D}defFile"
1e9e8aba 47307if [ ${D}flag_USE_LXLITE -ne 0 ]; then
473276a9 47308 add_flags="";
1e9e8aba 47309 if [ ${D}EXPORT_BY_ORDINALS -ne 0 ]; then
473276a9
VS
47310 add_flags="-ynd"
47311 fi
47312 doCommand "lxlite -cs -t: -mrn -mln ${D}add_flags ${D}dllFile"
47313fi
47314doCommand "emxomf -s -l ${D}arcFile"
47315
47316# Successful exit.
47317CleanUp 1
47318exit 0
47319EOF
47320
47321 chmod +x dllar.sh
a848cd7e
SC
47322 ;;
47323
1e9e8aba 47324 powerpc-apple-macos* | \
0ad5d837 47325 *-*-freebsd* | *-*-openbsd* | *-*-netbsd* | *-*-k*bsd*-gnu | \
a848cd7e
SC
47326 *-*-sunos4* | \
47327 *-*-osf* | \
47328 *-*-dgux5* | \
47a7e797
MW
47329 *-*-sysv5* | \
47330 *-pc-msdosdjgpp )
a848cd7e
SC
47331 ;;
47332
47333 *)
47334 { { echo "$as_me:$LINENO: error: unknown system type $BAKEFILE_HOST." >&5
47335echo "$as_me: error: unknown system type $BAKEFILE_HOST." >&2;}
47336 { (exit 1); exit 1; }; }
47337 esac
47338
2057db16
VS
47339 if test "x$PIC_FLAG" != "x" ; then
47340 PIC_FLAG="$PIC_FLAG -DPIC"
47341 fi
47342
a848cd7e
SC
47343 if test "x$SHARED_LD_MODULE_CC" = "x" ; then
47344 SHARED_LD_MODULE_CC="$SHARED_LD_CC"
47345 fi
47346 if test "x$SHARED_LD_MODULE_CXX" = "x" ; then
47347 SHARED_LD_MODULE_CXX="$SHARED_LD_CXX"
47348 fi
47349
47350
47351
47352
47353
47354
47355
47356
810b94f0 47357
a848cd7e
SC
47358 USE_SOVERSION=0
47359 USE_SOVERLINUX=0
47360 USE_SOVERSOLARIS=0
810b94f0 47361 USE_SOVERCYGWIN=0
a848cd7e
SC
47362 USE_SOSYMLINKS=0
47363 USE_MACVERSION=0
47364 SONAME_FLAG=
47365
47366 case "${BAKEFILE_HOST}" in
0ad5d837 47367 *-*-linux* | *-*-freebsd* | *-*-k*bsd*-gnu )
5f652d0d
VS
47368 SONAME_FLAG="-Wl,-soname,"
47369 USE_SOVERSION=1
47370 USE_SOVERLINUX=1
47371 USE_SOSYMLINKS=1
47372 ;;
47373
a848cd7e
SC
47374 *-*-solaris2* )
47375 SONAME_FLAG="-h "
47376 USE_SOVERSION=1
47377 USE_SOVERSOLARIS=1
47378 USE_SOSYMLINKS=1
47379 ;;
47380
47381 *-*-darwin* )
47382 USE_MACVERSION=1
47383 USE_SOVERSION=1
47384 USE_SOSYMLINKS=1
47385 ;;
810b94f0
MW
47386
47387 *-*-cygwin* )
47388 USE_SOVERSION=1
47389 USE_SOVERCYGWIN=1
47390 ;;
a848cd7e
SC
47391 esac
47392
47393
47394
47395
47396
47397
47398
47399
47400
810b94f0 47401
f10e38c4
VZ
47402 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
47403if test "${enable_dependency_tracking+set}" = set; then
47404 enableval="$enable_dependency_tracking"
47405 bk_use_trackdeps="$enableval"
47406fi;
47407
a848cd7e
SC
47408 echo "$as_me:$LINENO: checking for dependency tracking method" >&5
47409echo $ECHO_N "checking for dependency tracking method... $ECHO_C" >&6
a848cd7e 47410
f10e38c4
VZ
47411 if test "x$bk_use_trackdeps" = "xno" ; then
47412 DEPS_TRACKING=0
47413 echo "$as_me:$LINENO: result: disabled" >&5
47414echo "${ECHO_T}disabled" >&6
47415 else
47416 DEPS_TRACKING=1
47417
47418 if test "x$GCC" = "xyes"; then
47419 DEPSMODE=gcc
47420 case "${BAKEFILE_HOST}" in
47421 *-*-darwin* )
47422 DEPSFLAG="-no-cpp-precomp -MMD"
47423 ;;
47424 * )
47425 DEPSFLAG="-MMD"
47426 ;;
47427 esac
47428 echo "$as_me:$LINENO: result: gcc" >&5
a848cd7e 47429echo "${ECHO_T}gcc" >&6
f10e38c4
VZ
47430 elif test "x$MWCC" = "xyes"; then
47431 DEPSMODE=mwcc
47432 DEPSFLAG="-MM"
47433 echo "$as_me:$LINENO: result: mwcc" >&5
b1d22ded 47434echo "${ECHO_T}mwcc" >&6
f10e38c4
VZ
47435 elif test "x$SUNCC" = "xyes"; then
47436 DEPSMODE=unixcc
47437 DEPSFLAG="-xM1"
47438 echo "$as_me:$LINENO: result: Sun cc" >&5
0ad5d837 47439echo "${ECHO_T}Sun cc" >&6
f10e38c4
VZ
47440 elif test "x$SGICC" = "xyes"; then
47441 DEPSMODE=unixcc
47442 DEPSFLAG="-M"
47443 echo "$as_me:$LINENO: result: SGI cc" >&5
0ad5d837 47444echo "${ECHO_T}SGI cc" >&6
f10e38c4
VZ
47445 elif test "x$HPCC" = "xyes"; then
47446 DEPSMODE=unixcc
47447 DEPSFLAG="+make"
47448 echo "$as_me:$LINENO: result: HP cc" >&5
3006edc0 47449echo "${ECHO_T}HP cc" >&6
f10e38c4
VZ
47450 elif test "x$COMPAQCC" = "xyes"; then
47451 DEPSMODE=gcc
47452 DEPSFLAG="-MD"
47453 echo "$as_me:$LINENO: result: Compaq cc" >&5
a1aa0349 47454echo "${ECHO_T}Compaq cc" >&6
f10e38c4
VZ
47455 else
47456 DEPS_TRACKING=0
47457 echo "$as_me:$LINENO: result: none" >&5
a848cd7e 47458echo "${ECHO_T}none" >&6
f10e38c4 47459 fi
a848cd7e 47460
f10e38c4 47461 if test $DEPS_TRACKING = 1 ; then
473276a9
VS
47462
47463D='$'
47464cat <<EOF >bk-deps
a848cd7e
SC
47465#!/bin/sh
47466
47467# This script is part of Bakefile (http://bakefile.sourceforge.net) autoconf
47468# script. It is used to track C/C++ files dependencies in portable way.
47469#
47470# Permission is given to use this file in any way.
47471
473276a9 47472DEPSMODE=${DEPSMODE}
a848cd7e 47473DEPSDIR=.deps
0ad5d837 47474DEPSFLAG="${DEPSFLAG}"
a848cd7e 47475
473276a9 47476mkdir -p ${D}DEPSDIR
a848cd7e 47477
473276a9 47478if test ${D}DEPSMODE = gcc ; then
0ad5d837 47479 ${D}* ${D}{DEPSFLAG}
473276a9
VS
47480 status=${D}?
47481 if test ${D}{status} != 0 ; then
47482 exit ${D}{status}
a848cd7e
SC
47483 fi
47484 # move created file to the location we want it in:
473276a9
VS
47485 while test ${D}# -gt 0; do
47486 case "${D}1" in
a848cd7e
SC
47487 -o )
47488 shift
473276a9 47489 objfile=${D}1
a848cd7e
SC
47490 ;;
47491 -* )
47492 ;;
47493 * )
473276a9 47494 srcfile=${D}1
a848cd7e
SC
47495 ;;
47496 esac
47497 shift
47498 done
1e9e8aba
DE
47499 depfile=\`basename ${D}srcfile | sed -e 's/\\..*${D}/.d/g'\`
47500 depobjname=\`echo ${D}depfile |sed -e 's/\\.d/.o/g'\`
473276a9
VS
47501 if test -f ${D}depfile ; then
47502 sed -e "s,${D}depobjname:,${D}objfile:,g" ${D}depfile >${D}{DEPSDIR}/${D}{objfile}.d
47503 rm -f ${D}depfile
a848cd7e 47504 else
a1aa0349 47505 # "g++ -MMD -o fooobj.o foosrc.cpp" produces fooobj.d
1e9e8aba 47506 depfile=\`basename ${D}objfile | sed -e 's/\\..*${D}/.d/g'\`
a1aa0349
VZ
47507 if test ! -f ${D}depfile ; then
47508 # "cxx -MD -o fooobj.o foosrc.cpp" creates fooobj.o.d (Compaq C++)
47509 depfile="${D}objfile.d"
47510 fi
473276a9
VS
47511 if test -f ${D}depfile ; then
47512 sed -e "/^${D}objfile/!s,${D}depobjname:,${D}objfile:,g" ${D}depfile >${D}{DEPSDIR}/${D}{objfile}.d
47513 rm -f ${D}depfile
a848cd7e
SC
47514 fi
47515 fi
47516 exit 0
81f90336 47517elif test ${D}DEPSMODE = mwcc ; then
f6b50c59 47518 ${D}* || exit ${D}?
81f90336
MW
47519 # Run mwcc again with -MM and redirect into the dep file we want
47520 # NOTE: We can't use shift here because we need ${D}* to be valid
47521 prevarg=
47522 for arg in ${D}* ; do
47523 if test "${D}prevarg" = "-o"; then
47524 objfile=${D}arg
47525 else
47526 case "${D}arg" in
47527 -* )
47528 ;;
47529 * )
47530 srcfile=${D}arg
47531 ;;
47532 esac
47533 fi
47534 prevarg="${D}arg"
47535 done
0ad5d837 47536 ${D}* ${D}DEPSFLAG >${D}{DEPSDIR}/${D}{objfile}.d
81f90336 47537 exit 0
0ad5d837 47538elif test ${D}DEPSMODE = unixcc; then
f6b50c59 47539 ${D}* || exit ${D}?
a9e5b1f0
MW
47540 # Run compiler again with deps flag and redirect into the dep file.
47541 # It doesn't work if the '-o FILE' option is used, but without it the
47542 # dependency file will contain the wrong name for the object. So it is
47543 # removed from the command line, and the dep file is fixed with sed.
47544 cmd=""
47545 while test ${D}# -gt 0; do
47546 case "${D}1" in
47547 -o )
47548 shift
47549 objfile=${D}1
47550 ;;
47551 * )
47552 eval arg${D}#=\\${D}1
47553 cmd="${D}cmd \\${D}arg${D}#"
47554 ;;
47555 esac
47556 shift
47557 done
0ad5d837 47558 eval "${D}cmd ${D}DEPSFLAG" | sed "s|.*:|${D}objfile:|" >${D}{DEPSDIR}/${D}{objfile}.d
a9e5b1f0 47559 exit 0
a848cd7e 47560else
473276a9
VS
47561 ${D}*
47562 exit ${D}?
a848cd7e
SC
47563fi
47564EOF
473276a9 47565
f10e38c4
VZ
47566 chmod +x bk-deps
47567 fi
a848cd7e
SC
47568 fi
47569
47570
47571
47572
a848cd7e
SC
47573 case ${BAKEFILE_HOST} in
47574 *-*-cygwin* | *-*-mingw32* )
8ced02f6
DE
47575 if test -n "$ac_tool_prefix"; then
47576 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
47577set dummy ${ac_tool_prefix}windres; ac_word=$2
47578echo "$as_me:$LINENO: checking for $ac_word" >&5
47579echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
47580if test "${ac_cv_prog_WINDRES+set}" = set; then
47581 echo $ECHO_N "(cached) $ECHO_C" >&6
47582else
47583 if test -n "$WINDRES"; then
47584 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
47585else
47586as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
47587for as_dir in $PATH
47588do
47589 IFS=$as_save_IFS
47590 test -z "$as_dir" && as_dir=.
47591 for ac_exec_ext in '' $ac_executable_extensions; do
47592 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
47593 ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
47594 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
47595 break 2
47596 fi
47597done
47598done
47599
47600fi
47601fi
47602WINDRES=$ac_cv_prog_WINDRES
47603if test -n "$WINDRES"; then
47604 echo "$as_me:$LINENO: result: $WINDRES" >&5
47605echo "${ECHO_T}$WINDRES" >&6
47606else
47607 echo "$as_me:$LINENO: result: no" >&5
47608echo "${ECHO_T}no" >&6
47609fi
47610
47611fi
47612if test -z "$ac_cv_prog_WINDRES"; then
47613 ac_ct_WINDRES=$WINDRES
47614 # Extract the first word of "windres", so it can be a program name with args.
a848cd7e
SC
47615set dummy windres; ac_word=$2
47616echo "$as_me:$LINENO: checking for $ac_word" >&5
47617echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8ced02f6 47618if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then
a848cd7e
SC
47619 echo $ECHO_N "(cached) $ECHO_C" >&6
47620else
8ced02f6
DE
47621 if test -n "$ac_ct_WINDRES"; then
47622 ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
a848cd7e
SC
47623else
47624as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
47625for as_dir in $PATH
47626do
47627 IFS=$as_save_IFS
47628 test -z "$as_dir" && as_dir=.
47629 for ac_exec_ext in '' $ac_executable_extensions; do
47630 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8ced02f6 47631 ac_cv_prog_ac_ct_WINDRES="windres"
a848cd7e
SC
47632 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
47633 break 2
47634 fi
47635done
47636done
47637
a848cd7e
SC
47638fi
47639fi
8ced02f6
DE
47640ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
47641if test -n "$ac_ct_WINDRES"; then
47642 echo "$as_me:$LINENO: result: $ac_ct_WINDRES" >&5
47643echo "${ECHO_T}$ac_ct_WINDRES" >&6
a848cd7e
SC
47644else
47645 echo "$as_me:$LINENO: result: no" >&5
47646echo "${ECHO_T}no" >&6
47647fi
47648
8ced02f6
DE
47649 WINDRES=$ac_ct_WINDRES
47650else
47651 WINDRES="$ac_cv_prog_WINDRES"
47652fi
47653
a848cd7e
SC
47654 ;;
47655
1e9e8aba 47656 *-*-darwin* | powerpc-apple-macos* )
a848cd7e
SC
47657 # Extract the first word of "Rez", so it can be a program name with args.
47658set dummy Rez; ac_word=$2
47659echo "$as_me:$LINENO: checking for $ac_word" >&5
47660echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8ced02f6 47661if test "${ac_cv_prog_REZ+set}" = set; then
a848cd7e
SC
47662 echo $ECHO_N "(cached) $ECHO_C" >&6
47663else
8ced02f6
DE
47664 if test -n "$REZ"; then
47665 ac_cv_prog_REZ="$REZ" # Let the user override the test.
a848cd7e
SC
47666else
47667as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
47668for as_dir in $PATH
47669do
47670 IFS=$as_save_IFS
47671 test -z "$as_dir" && as_dir=.
47672 for ac_exec_ext in '' $ac_executable_extensions; do
47673 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8ced02f6 47674 ac_cv_prog_REZ="Rez"
a848cd7e
SC
47675 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
47676 break 2
47677 fi
47678done
47679done
47680
8ced02f6 47681 test -z "$ac_cv_prog_REZ" && ac_cv_prog_REZ="/Developer/Tools/Rez"
a848cd7e
SC
47682fi
47683fi
8ced02f6
DE
47684REZ=$ac_cv_prog_REZ
47685if test -n "$REZ"; then
47686 echo "$as_me:$LINENO: result: $REZ" >&5
47687echo "${ECHO_T}$REZ" >&6
a848cd7e
SC
47688else
47689 echo "$as_me:$LINENO: result: no" >&5
47690echo "${ECHO_T}no" >&6
47691fi
47692
47693 # Extract the first word of "SetFile", so it can be a program name with args.
47694set dummy SetFile; ac_word=$2
47695echo "$as_me:$LINENO: checking for $ac_word" >&5
47696echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
47697if test "${ac_cv_prog_SETFILE+set}" = set; then
47698 echo $ECHO_N "(cached) $ECHO_C" >&6
47699else
47700 if test -n "$SETFILE"; then
47701 ac_cv_prog_SETFILE="$SETFILE" # Let the user override the test.
47702else
47703as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
47704for as_dir in $PATH
47705do
47706 IFS=$as_save_IFS
47707 test -z "$as_dir" && as_dir=.
47708 for ac_exec_ext in '' $ac_executable_extensions; do
47709 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
47710 ac_cv_prog_SETFILE="SetFile"
47711 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
47712 break 2
47713 fi
47714done
47715done
47716
47717 test -z "$ac_cv_prog_SETFILE" && ac_cv_prog_SETFILE="/Developer/Tools/SetFile"
47718fi
47719fi
47720SETFILE=$ac_cv_prog_SETFILE
47721if test -n "$SETFILE"; then
47722 echo "$as_me:$LINENO: result: $SETFILE" >&5
47723echo "${ECHO_T}$SETFILE" >&6
47724else
47725 echo "$as_me:$LINENO: result: no" >&5
47726echo "${ECHO_T}no" >&6
47727fi
47728
47729 ;;
47730 esac
47731
47732
47733
47734
47735
8ced02f6 47736
f10e38c4 47737 BAKEFILE_BAKEFILE_M4_VERSION="0.2.0"
a848cd7e 47738
dcc1b6ad 47739
f10e38c4 47740BAKEFILE_AUTOCONF_INC_M4_VERSION="0.2.0"
a848cd7e 47741
646b6ec1 47742
74b84332 47743
a848cd7e
SC
47744 # Check whether --enable-precomp-headers or --disable-precomp-headers was given.
47745if test "${enable_precomp_headers+set}" = set; then
47746 enableval="$enable_precomp_headers"
47747 bk_use_pch="$enableval"
47748fi;
47749
47750 GCC_PCH=0
f10e38c4
VZ
47751 ICC_PCH=0
47752 USE_PCH=0
a848cd7e 47753
5c60e845
MW
47754 case ${BAKEFILE_HOST} in
47755 *-*-cygwin* )
47756 bk_use_pch="no"
47757 ;;
47758 esac
47759
a848cd7e
SC
47760 if test "x$bk_use_pch" = "x" -o "x$bk_use_pch" = "xyes" ; then
47761 if test "x$GCC" = "xyes"; then
47762 echo "$as_me:$LINENO: checking if the compiler supports precompiled headers" >&5
47763echo $ECHO_N "checking if the compiler supports precompiled headers... $ECHO_C" >&6
47764 cat >conftest.$ac_ext <<_ACEOF
47765/* confdefs.h. */
47766_ACEOF
47767cat confdefs.h >>conftest.$ac_ext
47768cat >>conftest.$ac_ext <<_ACEOF
47769/* end confdefs.h. */
47770
47771int
47772main ()
47773{
47774
47775 #if !defined(__GNUC__) || !defined(__GNUC_MINOR__)
e5efa97e 47776 There is no PCH support
a848cd7e
SC
47777 #endif
47778 #if (__GNUC__ < 3)
e5efa97e 47779 There is no PCH support
a848cd7e
SC
47780 #endif
47781 #if (__GNUC__ == 3) && \
47782 ((!defined(__APPLE_CC__) && (__GNUC_MINOR__ < 4)) || \
f10e38c4
VZ
47783 ( defined(__APPLE_CC__) && (__GNUC_MINOR__ < 3))) || \
47784 ( defined(__INTEL_COMPILER) )
e5efa97e 47785 There is no PCH support
a848cd7e
SC
47786 #endif
47787
47788 ;
47789 return 0;
47790}
47791_ACEOF
47792rm -f conftest.$ac_objext
47793if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 47794 (eval $ac_compile) 2>conftest.er1
a848cd7e 47795 ac_status=$?
ac1cb8d3
VS
47796 grep -v '^ *+' conftest.er1 >conftest.err
47797 rm -f conftest.er1
47798 cat conftest.err >&5
a848cd7e
SC
47799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47800 (exit $ac_status); } &&
3f60522a
JS
47801 { ac_try='test -z "$ac_c_werror_flag"
47802 || test ! -s conftest.err'
ac1cb8d3
VS
47803 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47804 (eval $ac_try) 2>&5
47805 ac_status=$?
47806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47807 (exit $ac_status); }; } &&
47808 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
47809 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47810 (eval $ac_try) 2>&5
47811 ac_status=$?
47812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47813 (exit $ac_status); }; }; then
47814
47815 echo "$as_me:$LINENO: result: yes" >&5
47816echo "${ECHO_T}yes" >&6
a848cd7e
SC
47817 GCC_PCH=1
47818
47819else
47820 echo "$as_me: failed program was:" >&5
47821sed 's/^/| /' conftest.$ac_ext >&5
47822
47823
f10e38c4
VZ
47824 cat >conftest.$ac_ext <<_ACEOF
47825/* confdefs.h. */
47826_ACEOF
47827cat confdefs.h >>conftest.$ac_ext
47828cat >>conftest.$ac_ext <<_ACEOF
47829/* end confdefs.h. */
47830
47831int
47832main ()
47833{
47834
47835 #if !defined(__INTEL_COMPILER) || \
47836 (__INTEL_COMPILER < 800)
e5efa97e 47837 There is no PCH support
f10e38c4
VZ
47838 #endif
47839
47840 ;
47841 return 0;
47842}
47843_ACEOF
47844rm -f conftest.$ac_objext
47845if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
47846 (eval $ac_compile) 2>conftest.er1
47847 ac_status=$?
47848 grep -v '^ *+' conftest.er1 >conftest.err
47849 rm -f conftest.er1
47850 cat conftest.err >&5
47851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47852 (exit $ac_status); } &&
3f60522a
JS
47853 { ac_try='test -z "$ac_c_werror_flag"
47854 || test ! -s conftest.err'
f10e38c4
VZ
47855 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47856 (eval $ac_try) 2>&5
47857 ac_status=$?
47858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47859 (exit $ac_status); }; } &&
47860 { ac_try='test -s conftest.$ac_objext'
47861 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47862 (eval $ac_try) 2>&5
47863 ac_status=$?
47864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47865 (exit $ac_status); }; }; then
47866
47867 echo "$as_me:$LINENO: result: yes" >&5
47868echo "${ECHO_T}yes" >&6
47869 ICC_PCH=1
47870
47871else
47872 echo "$as_me: failed program was:" >&5
47873sed 's/^/| /' conftest.$ac_ext >&5
47874
47875
47876 echo "$as_me:$LINENO: result: no" >&5
a848cd7e
SC
47877echo "${ECHO_T}no" >&6
47878
47879fi
ac1cb8d3 47880rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
f10e38c4
VZ
47881
47882fi
47883rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
47884 if test $GCC_PCH = 1 -o $ICC_PCH = 1 ; then
47885 USE_PCH=1
1e9e8aba
DE
47886
47887D='$'
47888cat <<EOF >bk-make-pch
a848cd7e
SC
47889#!/bin/sh
47890
47891# This script is part of Bakefile (http://bakefile.sourceforge.net) autoconf
47892# script. It is used to generated precompiled headers.
47893#
47894# Permission is given to use this file in any way.
47895
1e9e8aba
DE
47896outfile="${D}{1}"
47897header="${D}{2}"
a848cd7e
SC
47898shift
47899shift
47900
f10e38c4
VZ
47901compiler=""
47902headerfile=""
47903
1e9e8aba 47904while test ${D}{#} -gt 0; do
f10e38c4 47905 add_to_cmdline=1
1e9e8aba 47906 case "${D}{1}" in
a848cd7e 47907 -I* )
1e9e8aba
DE
47908 incdir=\`echo ${D}{1} | sed -e 's/-I\\(.*\\)/\\1/g'\`
47909 if test "x${D}{headerfile}" = "x" -a -f "${D}{incdir}/${D}{header}" ; then
47910 headerfile="${D}{incdir}/${D}{header}"
a848cd7e
SC
47911 fi
47912 ;;
f10e38c4
VZ
47913 -use-pch|-use_pch )
47914 shift
47915 add_to_cmdline=0
47916 ;;
a848cd7e 47917 esac
f10e38c4
VZ
47918 if test ${D}add_to_cmdline = 1 ; then
47919 compiler="${D}{compiler} ${D}{1}"
47920 fi
a848cd7e
SC
47921 shift
47922done
47923
1e9e8aba 47924if test "x${D}{headerfile}" = "x" ; then
f10e38c4 47925 echo "error: can't find header ${D}{header} in include paths" >&2
a848cd7e 47926else
1e9e8aba
DE
47927 if test -f ${D}{outfile} ; then
47928 rm -f ${D}{outfile}
a848cd7e 47929 else
1e9e8aba 47930 mkdir -p \`dirname ${D}{outfile}\`
a848cd7e 47931 fi
1e9e8aba 47932 depsfile=".deps/\`echo ${D}{outfile} | tr '/.' '__'\`.d"
a848cd7e 47933 mkdir -p .deps
f10e38c4
VZ
47934 if test "x${GCC_PCH}" = "x1" ; then
47935 # can do this because gcc is >= 3.4:
47936 ${D}{compiler} -o ${D}{outfile} -MMD -MF "${D}{depsfile}" "${D}{headerfile}"
47937 elif test "x${ICC_PCH}" = "x1" ; then
47938 filename=pch_gen-${D}${D}
47939 file=${D}{filename}.c
47940 dfile=${D}{filename}.d
47941 cat > ${D}file <<EOT
47942#include "${D}header"
47943EOT
47944 # using -MF icc complains about differing command lines in creation/use
47945 ${D}compiler -c -create_pch ${D}outfile -MMD ${D}file && \\
47946 sed -e "s,^.*:,${D}outfile:," -e "s, ${D}file,," < ${D}dfile > ${D}depsfile && \\
47947 rm -f ${D}file ${D}dfile ${D}{filename}.o
47948 fi
1e9e8aba 47949 exit ${D}{?}
a848cd7e
SC
47950fi
47951EOF
1e9e8aba 47952
a848cd7e
SC
47953 chmod +x bk-make-pch
47954 fi
47955 fi
47956 fi
47957
47958
47959
f10e38c4 47960
a848cd7e
SC
47961 COND_BUILD_DEBUG="#"
47962 if test "x$BUILD" = "xdebug" ; then
47963 COND_BUILD_DEBUG=""
47964 fi
47965
47966 COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT="#"
47967 if test "x$BUILD" = "xdebug" -a "x$DEBUG_FLAG" = "xdefault" ; then
47968 COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT=""
47969 fi
47970
47971 COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT="#"
47972 if test "x$BUILD" = "xdebug" -a "x$DEBUG_INFO" = "xdefault" ; then
47973 COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT=""
47974 fi
47975
47976 COND_BUILD_DEBUG_UNICODE_0="#"
47977 if test "x$BUILD" = "xdebug" -a "x$UNICODE" = "x0" ; then
47978 COND_BUILD_DEBUG_UNICODE_0=""
47979 fi
47980
47981 COND_BUILD_DEBUG_UNICODE_1="#"
47982 if test "x$BUILD" = "xdebug" -a "x$UNICODE" = "x1" ; then
47983 COND_BUILD_DEBUG_UNICODE_1=""
47984 fi
47985
47986 COND_BUILD_RELEASE="#"
47987 if test "x$BUILD" = "xrelease" ; then
47988 COND_BUILD_RELEASE=""
47989 fi
47990
47991 COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT="#"
47992 if test "x$BUILD" = "xrelease" -a "x$DEBUG_INFO" = "xdefault" ; then
47993 COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT=""
47994 fi
47995
47996 COND_BUILD_RELEASE_UNICODE_0="#"
47997 if test "x$BUILD" = "xrelease" -a "x$UNICODE" = "x0" ; then
47998 COND_BUILD_RELEASE_UNICODE_0=""
47999 fi
48000
48001 COND_BUILD_RELEASE_UNICODE_1="#"
48002 if test "x$BUILD" = "xrelease" -a "x$UNICODE" = "x1" ; then
48003 COND_BUILD_RELEASE_UNICODE_1=""
48004 fi
48005
48006 COND_DEBUG_FLAG_1="#"
48007 if test "x$DEBUG_FLAG" = "x1" ; then
48008 COND_DEBUG_FLAG_1=""
48009 fi
48010
48011 COND_DEBUG_INFO_0="#"
48012 if test "x$DEBUG_INFO" = "x0" ; then
48013 COND_DEBUG_INFO_0=""
48014 fi
48015
48016 COND_DEBUG_INFO_1="#"
48017 if test "x$DEBUG_INFO" = "x1" ; then
48018 COND_DEBUG_INFO_1=""
48019 fi
48020
48021 COND_DEPS_TRACKING_0="#"
48022 if test "x$DEPS_TRACKING" = "x0" ; then
48023 COND_DEPS_TRACKING_0=""
48024 fi
48025
48026 COND_DEPS_TRACKING_1="#"
48027 if test "x$DEPS_TRACKING" = "x1" ; then
48028 COND_DEPS_TRACKING_1=""
48029 fi
48030
48031 COND_GCC_PCH_1="#"
48032 if test "x$GCC_PCH" = "x1" ; then
48033 COND_GCC_PCH_1=""
48034 fi
48035
f10e38c4
VZ
48036 COND_ICC_PCH_1="#"
48037 if test "x$ICC_PCH" = "x1" ; then
48038 COND_ICC_PCH_1=""
48039 fi
48040
a848cd7e
SC
48041 COND_MONOLITHIC_0="#"
48042 if test "x$MONOLITHIC" = "x0" ; then
48043 COND_MONOLITHIC_0=""
48044 fi
48045
48046 COND_MONOLITHIC_0_SHARED_0="#"
48047 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" ; then
48048 COND_MONOLITHIC_0_SHARED_0=""
48049 fi
48050
3f60522a
JS
48051 COND_MONOLITHIC_0_SHARED_0_USE_AUI_1="#"
48052 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_AUI" = "x1" ; then
48053 COND_MONOLITHIC_0_SHARED_0_USE_AUI_1=""
48054 fi
48055
a848cd7e
SC
48056 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1="#"
48057 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" ; then
48058 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1=""
48059 fi
48060
90970d69
DE
48061 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_HTML_1="#"
48062 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_HTML" = "x1" ; then
48063 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_HTML_1=""
48064 fi
48065
f10e38c4
VZ
48066 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_MEDIA_1="#"
48067 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_MEDIA" = "x1" ; then
48068 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_MEDIA_1=""
48069 fi
48070
a848cd7e
SC
48071 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1="#"
48072 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_ODBC" = "x1" ; then
48073 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1=""
48074 fi
48075
6671c68b
VZ
48076 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_QA_1="#"
48077 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_QA" = "x1" ; then
48078 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_QA_1=""
48079 fi
48080
a848cd7e
SC
48081 COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1="#"
48082 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_ODBC" = "x1" ; then
48083 COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1=""
48084 fi
48085
ceec2216
RL
48086 COND_MONOLITHIC_0_SHARED_0_USE_XRC_1="#"
48087 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_XRC" = "x1" ; then
48088 COND_MONOLITHIC_0_SHARED_0_USE_XRC_1=""
48089 fi
48090
a848cd7e
SC
48091 COND_MONOLITHIC_0_SHARED_1="#"
48092 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" ; then
48093 COND_MONOLITHIC_0_SHARED_1=""
48094 fi
48095
3f60522a
JS
48096 COND_MONOLITHIC_0_SHARED_1_USE_AUI_1="#"
48097 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_AUI" = "x1" ; then
48098 COND_MONOLITHIC_0_SHARED_1_USE_AUI_1=""
48099 fi
48100
a848cd7e
SC
48101 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1="#"
48102 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" ; then
48103 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1=""
48104 fi
48105
90970d69
DE
48106 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_HTML_1="#"
48107 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_HTML" = "x1" ; then
48108 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_HTML_1=""
48109 fi
48110
f10e38c4
VZ
48111 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_MEDIA_1="#"
48112 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_MEDIA" = "x1" ; then
48113 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_MEDIA_1=""
48114 fi
48115
a848cd7e
SC
48116 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1="#"
48117 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_ODBC" = "x1" ; then
48118 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1=""
48119 fi
48120
6671c68b
VZ
48121 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_QA_1="#"
48122 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_QA" = "x1" ; then
48123 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_QA_1=""
48124 fi
48125
a848cd7e
SC
48126 COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1="#"
48127 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_ODBC" = "x1" ; then
48128 COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1=""
48129 fi
48130
ceec2216
RL
48131 COND_MONOLITHIC_0_SHARED_1_USE_XRC_1="#"
48132 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_XRC" = "x1" ; then
48133 COND_MONOLITHIC_0_SHARED_1_USE_XRC_1=""
48134 fi
48135
e5efa97e
VZ
48136 COND_MONOLITHIC_0_USE_MEDIA_1="#"
48137 if test "x$MONOLITHIC" = "x0" -a "x$USE_MEDIA" = "x1" ; then
48138 COND_MONOLITHIC_0_USE_MEDIA_1=""
48139 fi
48140
a848cd7e
SC
48141 COND_MONOLITHIC_0_USE_ODBC_1="#"
48142 if test "x$MONOLITHIC" = "x0" -a "x$USE_ODBC" = "x1" ; then
48143 COND_MONOLITHIC_0_USE_ODBC_1=""
48144 fi
48145
48146 COND_MONOLITHIC_1="#"
48147 if test "x$MONOLITHIC" = "x1" ; then
48148 COND_MONOLITHIC_1=""
48149 fi
48150
48151 COND_MONOLITHIC_1_SHARED_0="#"
48152 if test "x$MONOLITHIC" = "x1" -a "x$SHARED" = "x0" ; then
48153 COND_MONOLITHIC_1_SHARED_0=""
48154 fi
48155
48156 COND_MONOLITHIC_1_SHARED_1="#"
48157 if test "x$MONOLITHIC" = "x1" -a "x$SHARED" = "x1" ; then
48158 COND_MONOLITHIC_1_SHARED_1=""
48159 fi
48160
48161 COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1="#"
48162 if test "x$OFFICIAL_BUILD" = "x0" -a "x$PLATFORM_WIN32" = "x1" ; then
48163 COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1=""
48164 fi
48165
48166 COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1="#"
48167 if test "x$OFFICIAL_BUILD" = "x1" -a "x$PLATFORM_WIN32" = "x1" ; then
48168 COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1=""
48169 fi
48170
eb730a0c
JS
48171 COND_PLATFORM_MACOSX_0_USE_SOVERCYGWIN_0_USE_SOVERSION_1="#"
48172 if test "x$PLATFORM_MACOSX" = "x0" -a "x$USE_SOVERCYGWIN" = "x0" -a "x$USE_SOVERSION" = "x1" ; then
48173 COND_PLATFORM_MACOSX_0_USE_SOVERCYGWIN_0_USE_SOVERSION_1=""
48174 fi
48175
a848cd7e
SC
48176 COND_PLATFORM_MACOSX_0_USE_SOVERSION_1="#"
48177 if test "x$PLATFORM_MACOSX" = "x0" -a "x$USE_SOVERSION" = "x1" ; then
48178 COND_PLATFORM_MACOSX_0_USE_SOVERSION_1=""
48179 fi
48180
48181 COND_PLATFORM_MACOSX_1="#"
48182 if test "x$PLATFORM_MACOSX" = "x1" ; then
48183 COND_PLATFORM_MACOSX_1=""
48184 fi
48185
a30f955f
VS
48186 COND_PLATFORM_MACOSX_1_TOOLKIT_="#"
48187 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "x" ; then
48188 COND_PLATFORM_MACOSX_1_TOOLKIT_=""
48189 fi
48190
a848cd7e
SC
48191 COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA="#"
48192 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xCOCOA" ; then
48193 COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA=""
48194 fi
48195
48196 COND_PLATFORM_MACOSX_1_TOOLKIT_GTK="#"
48197 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xGTK" ; then
48198 COND_PLATFORM_MACOSX_1_TOOLKIT_GTK=""
48199 fi
48200
48201 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC="#"
48202 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMAC" ; then
48203 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC=""
48204 fi
48205
fc480dc1
DE
48206 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1="#"
48207 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" ; then
48208 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1=""
48209 fi
48210
1e9e8aba
DE
48211 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0="#"
48212 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
48213 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0=""
48214 fi
48215
ebee3cd0
VS
48216 COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF="#"
48217 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMOTIF" ; then
48218 COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF=""
48219 fi
48220
48221 COND_PLATFORM_MACOSX_1_TOOLKIT_X11="#"
48222 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xX11" ; then
48223 COND_PLATFORM_MACOSX_1_TOOLKIT_X11=""
48224 fi
48225
a848cd7e
SC
48226 COND_PLATFORM_MACOSX_1_USE_GUI_1="#"
48227 if test "x$PLATFORM_MACOSX" = "x1" -a "x$USE_GUI" = "x1" ; then
48228 COND_PLATFORM_MACOSX_1_USE_GUI_1=""
48229 fi
48230
48231 COND_PLATFORM_MACOSX_1_USE_SOVERSION_1="#"
48232 if test "x$PLATFORM_MACOSX" = "x1" -a "x$USE_SOVERSION" = "x1" ; then
48233 COND_PLATFORM_MACOSX_1_USE_SOVERSION_1=""
48234 fi
48235
b48a2016
DE
48236 COND_PLATFORM_MACOS_1="#"
48237 if test "x$PLATFORM_MACOS" = "x1" ; then
48238 COND_PLATFORM_MACOS_1=""
48239 fi
48240
083508af
MW
48241 COND_PLATFORM_MAC_1="#"
48242 if test "x$PLATFORM_MAC" = "x1" ; then
48243 COND_PLATFORM_MAC_1=""
48244 fi
48245
e5efa97e
VZ
48246 COND_PLATFORM_MSDOS_0="#"
48247 if test "x$PLATFORM_MSDOS" = "x0" ; then
48248 COND_PLATFORM_MSDOS_0=""
48249 fi
48250
83d8eb47
MW
48251 COND_PLATFORM_MSDOS_1="#"
48252 if test "x$PLATFORM_MSDOS" = "x1" ; then
48253 COND_PLATFORM_MSDOS_1=""
48254 fi
48255
a848cd7e
SC
48256 COND_PLATFORM_OS2_1="#"
48257 if test "x$PLATFORM_OS2" = "x1" ; then
48258 COND_PLATFORM_OS2_1=""
48259 fi
48260
48261 COND_PLATFORM_UNIX_0="#"
48262 if test "x$PLATFORM_UNIX" = "x0" ; then
48263 COND_PLATFORM_UNIX_0=""
48264 fi
48265
48266 COND_PLATFORM_UNIX_1="#"
48267 if test "x$PLATFORM_UNIX" = "x1" ; then
48268 COND_PLATFORM_UNIX_1=""
48269 fi
48270
48271 COND_PLATFORM_UNIX_1_USE_GUI_1="#"
48272 if test "x$PLATFORM_UNIX" = "x1" -a "x$USE_GUI" = "x1" ; then
48273 COND_PLATFORM_UNIX_1_USE_GUI_1=""
48274 fi
48275
48276 COND_PLATFORM_UNIX_1_USE_PLUGINS_0="#"
48277 if test "x$PLATFORM_UNIX" = "x1" -a "x$USE_PLUGINS" = "x0" ; then
48278 COND_PLATFORM_UNIX_1_USE_PLUGINS_0=""
48279 fi
48280
48281 COND_PLATFORM_WIN32_0="#"
48282 if test "x$PLATFORM_WIN32" = "x0" ; then
48283 COND_PLATFORM_WIN32_0=""
48284 fi
48285
48286 COND_PLATFORM_WIN32_1="#"
48287 if test "x$PLATFORM_WIN32" = "x1" ; then
48288 COND_PLATFORM_WIN32_1=""
48289 fi
48290
48291 COND_SHARED_0="#"
48292 if test "x$SHARED" = "x0" ; then
48293 COND_SHARED_0=""
48294 fi
48295
083508af
MW
48296 COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0="#"
48297 if test "x$SHARED" = "x0" -a "x$TOOLKIT" = "xMAC" -a "x$WXUNIV" = "x0" ; then
48298 COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0=""
48299 fi
48300
48301 COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0="#"
48302 if test "x$SHARED" = "x0" -a "x$TOOLKIT" = "xMSW" -a "x$WXUNIV" = "x0" ; then
48303 COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0=""
48304 fi
48305
48306 COND_SHARED_0_TOOLKIT_PM_WXUNIV_0="#"
48307 if test "x$SHARED" = "x0" -a "x$TOOLKIT" = "xPM" -a "x$WXUNIV" = "x0" ; then
48308 COND_SHARED_0_TOOLKIT_PM_WXUNIV_0=""
48309 fi
48310
a848cd7e
SC
48311 COND_SHARED_0_USE_GUI_1_USE_OPENGL_1="#"
48312 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_OPENGL" = "x1" ; then
48313 COND_SHARED_0_USE_GUI_1_USE_OPENGL_1=""
48314 fi
48315
48316 COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="#"
48317 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
48318 COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN=""
48319 fi
48320
48321 COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="#"
48322 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBPNG" = "xbuiltin" ; then
48323 COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN=""
48324 fi
48325
48326 COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="#"
48327 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
48328 COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN=""
48329 fi
48330
083508af
MW
48331 COND_SHARED_0_USE_XRC_1="#"
48332 if test "x$SHARED" = "x0" -a "x$USE_XRC" = "x1" ; then
48333 COND_SHARED_0_USE_XRC_1=""
48334 fi
48335
a848cd7e
SC
48336 COND_SHARED_0_WXUSE_EXPAT_BUILTIN="#"
48337 if test "x$SHARED" = "x0" -a "x$wxUSE_EXPAT" = "xbuiltin" ; then
48338 COND_SHARED_0_WXUSE_EXPAT_BUILTIN=""
48339 fi
48340
48341 COND_SHARED_0_WXUSE_ODBC_BUILTIN="#"
48342 if test "x$SHARED" = "x0" -a "x$wxUSE_ODBC" = "xbuiltin" ; then
48343 COND_SHARED_0_WXUSE_ODBC_BUILTIN=""
48344 fi
48345
48346 COND_SHARED_0_WXUSE_REGEX_BUILTIN="#"
48347 if test "x$SHARED" = "x0" -a "x$wxUSE_REGEX" = "xbuiltin" ; then
48348 COND_SHARED_0_WXUSE_REGEX_BUILTIN=""
48349 fi
48350
48351 COND_SHARED_0_WXUSE_ZLIB_BUILTIN="#"
48352 if test "x$SHARED" = "x0" -a "x$wxUSE_ZLIB" = "xbuiltin" ; then
48353 COND_SHARED_0_WXUSE_ZLIB_BUILTIN=""
48354 fi
48355
48356 COND_SHARED_1="#"
48357 if test "x$SHARED" = "x1" ; then
48358 COND_SHARED_1=""
48359 fi
48360
48361 COND_SHARED_1_USE_GUI_1_USE_OPENGL_1="#"
48362 if test "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_OPENGL" = "x1" ; then
48363 COND_SHARED_1_USE_GUI_1_USE_OPENGL_1=""
48364 fi
48365
083508af
MW
48366 COND_SHARED_1_USE_XRC_1="#"
48367 if test "x$SHARED" = "x1" -a "x$USE_XRC" = "x1" ; then
48368 COND_SHARED_1_USE_XRC_1=""
48369 fi
48370
a30f955f
VS
48371 COND_TOOLKIT_="#"
48372 if test "x$TOOLKIT" = "x" ; then
48373 COND_TOOLKIT_=""
48374 fi
48375
a848cd7e
SC
48376 COND_TOOLKIT_COCOA="#"
48377 if test "x$TOOLKIT" = "xCOCOA" ; then
48378 COND_TOOLKIT_COCOA=""
48379 fi
48380
a49baeab
DE
48381 COND_TOOLKIT_COCOA_USE_GUI_1="#"
48382 if test "x$TOOLKIT" = "xCOCOA" -a "x$USE_GUI" = "x1" ; then
48383 COND_TOOLKIT_COCOA_USE_GUI_1=""
48384 fi
48385
a848cd7e
SC
48386 COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0="#"
48387 if test "x$TOOLKIT" = "xCOCOA" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
48388 COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0=""
48389 fi
48390
48391 COND_TOOLKIT_GTK="#"
48392 if test "x$TOOLKIT" = "xGTK" ; then
48393 COND_TOOLKIT_GTK=""
48394 fi
48395
d044deea
MW
48396 COND_TOOLKIT_GTK_TOOLKIT_VERSION_="#"
48397 if test "x$TOOLKIT" = "xGTK" -a "x$TOOLKIT_VERSION" = "x" ; then
48398 COND_TOOLKIT_GTK_TOOLKIT_VERSION_=""
48399 fi
48400
48401 COND_TOOLKIT_GTK_TOOLKIT_VERSION_2="#"
48402 if test "x$TOOLKIT" = "xGTK" -a "x$TOOLKIT_VERSION" = "x2" ; then
48403 COND_TOOLKIT_GTK_TOOLKIT_VERSION_2=""
48404 fi
48405
48406 COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1="#"
48407 if test "x$TOOLKIT" = "xGTK" -a "x$TOOLKIT_VERSION" = "x2" -a "x$USE_GUI" = "x1" ; then
48408 COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1=""
48409 fi
48410
48411 COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1_WXUNIV_0="#"
48412 if test "x$TOOLKIT" = "xGTK" -a "x$TOOLKIT_VERSION" = "x2" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
48413 COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1_WXUNIV_0=""
48414 fi
48415
48416 COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1="#"
48417 if test "x$TOOLKIT" = "xGTK" -a "x$TOOLKIT_VERSION" = "x" -a "x$USE_GUI" = "x1" ; then
48418 COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1=""
48419 fi
48420
48421 COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1_WXUNIV_0="#"
48422 if test "x$TOOLKIT" = "xGTK" -a "x$TOOLKIT_VERSION" = "x" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
48423 COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1_WXUNIV_0=""
48424 fi
48425
a848cd7e
SC
48426 COND_TOOLKIT_GTK_USE_GUI_1="#"
48427 if test "x$TOOLKIT" = "xGTK" -a "x$USE_GUI" = "x1" ; then
48428 COND_TOOLKIT_GTK_USE_GUI_1=""
48429 fi
48430
a848cd7e
SC
48431 COND_TOOLKIT_MAC="#"
48432 if test "x$TOOLKIT" = "xMAC" ; then
48433 COND_TOOLKIT_MAC=""
48434 fi
48435
48436 COND_TOOLKIT_MAC_USE_GUI_1="#"
48437 if test "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" ; then
48438 COND_TOOLKIT_MAC_USE_GUI_1=""
48439 fi
48440
48441 COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0="#"
48442 if test "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
48443 COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0=""
48444 fi
48445
48446 COND_TOOLKIT_MGL="#"
48447 if test "x$TOOLKIT" = "xMGL" ; then
48448 COND_TOOLKIT_MGL=""
48449 fi
48450
48451 COND_TOOLKIT_MGL_USE_GUI_1="#"
48452 if test "x$TOOLKIT" = "xMGL" -a "x$USE_GUI" = "x1" ; then
48453 COND_TOOLKIT_MGL_USE_GUI_1=""
48454 fi
48455
48456 COND_TOOLKIT_MOTIF="#"
48457 if test "x$TOOLKIT" = "xMOTIF" ; then
48458 COND_TOOLKIT_MOTIF=""
48459 fi
48460
48461 COND_TOOLKIT_MOTIF_USE_GUI_1="#"
48462 if test "x$TOOLKIT" = "xMOTIF" -a "x$USE_GUI" = "x1" ; then
48463 COND_TOOLKIT_MOTIF_USE_GUI_1=""
48464 fi
48465
48466 COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0="#"
48467 if test "x$TOOLKIT" = "xMOTIF" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
48468 COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0=""
48469 fi
48470
48471 COND_TOOLKIT_MSW="#"
48472 if test "x$TOOLKIT" = "xMSW" ; then
48473 COND_TOOLKIT_MSW=""
48474 fi
48475
48476 COND_TOOLKIT_MSW_USE_GUI_1="#"
48477 if test "x$TOOLKIT" = "xMSW" -a "x$USE_GUI" = "x1" ; then
48478 COND_TOOLKIT_MSW_USE_GUI_1=""
48479 fi
48480
48481 COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0="#"
48482 if test "x$TOOLKIT" = "xMSW" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
48483 COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0=""
48484 fi
48485
0ee4059d
DE
48486 COND_TOOLKIT_MSW_WXUNIV_0="#"
48487 if test "x$TOOLKIT" = "xMSW" -a "x$WXUNIV" = "x0" ; then
48488 COND_TOOLKIT_MSW_WXUNIV_0=""
48489 fi
48490
a848cd7e
SC
48491 COND_TOOLKIT_PM="#"
48492 if test "x$TOOLKIT" = "xPM" ; then
48493 COND_TOOLKIT_PM=""
48494 fi
48495
48496 COND_TOOLKIT_PM_USE_GUI_1="#"
48497 if test "x$TOOLKIT" = "xPM" -a "x$USE_GUI" = "x1" ; then
48498 COND_TOOLKIT_PM_USE_GUI_1=""
48499 fi
48500
48501 COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0="#"
48502 if test "x$TOOLKIT" = "xPM" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
48503 COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0=""
48504 fi
48505
3fd9c298
DE
48506 COND_TOOLKIT_WINCE="#"
48507 if test "x$TOOLKIT" = "xWINCE" ; then
48508 COND_TOOLKIT_WINCE=""
48509 fi
48510
48511 COND_TOOLKIT_WINCE_USE_GUI_1="#"
48512 if test "x$TOOLKIT" = "xWINCE" -a "x$USE_GUI" = "x1" ; then
48513 COND_TOOLKIT_WINCE_USE_GUI_1=""
48514 fi
48515
48516 COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0="#"
48517 if test "x$TOOLKIT" = "xWINCE" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
48518 COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0=""
48519 fi
48520
0ee4059d
DE
48521 COND_TOOLKIT_WINCE_WXUNIV_0="#"
48522 if test "x$TOOLKIT" = "xWINCE" -a "x$WXUNIV" = "x0" ; then
48523 COND_TOOLKIT_WINCE_WXUNIV_0=""
48524 fi
48525
a848cd7e
SC
48526 COND_TOOLKIT_X11="#"
48527 if test "x$TOOLKIT" = "xX11" ; then
48528 COND_TOOLKIT_X11=""
48529 fi
48530
48531 COND_TOOLKIT_X11_USE_GUI_1="#"
48532 if test "x$TOOLKIT" = "xX11" -a "x$USE_GUI" = "x1" ; then
48533 COND_TOOLKIT_X11_USE_GUI_1=""
48534 fi
48535
48536 COND_UNICODE_1="#"
48537 if test "x$UNICODE" = "x1" ; then
48538 COND_UNICODE_1=""
48539 fi
48540
48541 COND_USE_EXCEPTIONS_0="#"
48542 if test "x$USE_EXCEPTIONS" = "x0" ; then
48543 COND_USE_EXCEPTIONS_0=""
48544 fi
48545
48546 COND_USE_EXCEPTIONS_1="#"
48547 if test "x$USE_EXCEPTIONS" = "x1" ; then
48548 COND_USE_EXCEPTIONS_1=""
48549 fi
48550
48551 COND_USE_GUI_0="#"
48552 if test "x$USE_GUI" = "x0" ; then
48553 COND_USE_GUI_0=""
48554 fi
48555
48556 COND_USE_GUI_1="#"
48557 if test "x$USE_GUI" = "x1" ; then
48558 COND_USE_GUI_1=""
48559 fi
48560
48561 COND_USE_GUI_1_WXUNIV_0="#"
48562 if test "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
48563 COND_USE_GUI_1_WXUNIV_0=""
48564 fi
48565
48566 COND_USE_GUI_1_WXUNIV_1="#"
48567 if test "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x1" ; then
48568 COND_USE_GUI_1_WXUNIV_1=""
48569 fi
48570
48571 COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="#"
48572 if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
48573 COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN=""
48574 fi
48575
48576 COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="#"
48577 if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBPNG" = "xbuiltin" ; then
48578 COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN=""
48579 fi
48580
48581 COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="#"
48582 if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
48583 COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN=""
48584 fi
48585
083508af
MW
48586 COND_USE_ODBC_1="#"
48587 if test "x$USE_ODBC" = "x1" ; then
48588 COND_USE_ODBC_1=""
48589 fi
48590
48591 COND_USE_OPENGL_1="#"
48592 if test "x$USE_OPENGL" = "x1" ; then
48593 COND_USE_OPENGL_1=""
48594 fi
48595
f10e38c4
VZ
48596 COND_USE_PCH_1="#"
48597 if test "x$USE_PCH" = "x1" ; then
48598 COND_USE_PCH_1=""
48599 fi
48600
a848cd7e
SC
48601 COND_USE_PLUGINS_0="#"
48602 if test "x$USE_PLUGINS" = "x0" ; then
48603 COND_USE_PLUGINS_0=""
48604 fi
48605
0b78747f
MW
48606 COND_USE_RTTI_0="#"
48607 if test "x$USE_RTTI" = "x0" ; then
48608 COND_USE_RTTI_0=""
48609 fi
48610
48611 COND_USE_RTTI_1="#"
48612 if test "x$USE_RTTI" = "x1" ; then
48613 COND_USE_RTTI_1=""
48614 fi
48615
a848cd7e
SC
48616 COND_USE_SOSYMLINKS_1="#"
48617 if test "x$USE_SOSYMLINKS" = "x1" ; then
48618 COND_USE_SOSYMLINKS_1=""
48619 fi
48620
eb730a0c
JS
48621 COND_USE_SOVERCYGWIN_1_USE_SOVERSION_1="#"
48622 if test "x$USE_SOVERCYGWIN" = "x1" -a "x$USE_SOVERSION" = "x1" ; then
48623 COND_USE_SOVERCYGWIN_1_USE_SOVERSION_1=""
48624 fi
48625
a848cd7e
SC
48626 COND_USE_SOVERLINUX_1="#"
48627 if test "x$USE_SOVERLINUX" = "x1" ; then
48628 COND_USE_SOVERLINUX_1=""
48629 fi
48630
48631 COND_USE_SOVERSION_0="#"
48632 if test "x$USE_SOVERSION" = "x0" ; then
48633 COND_USE_SOVERSION_0=""
48634 fi
48635
48636 COND_USE_SOVERSOLARIS_1="#"
48637 if test "x$USE_SOVERSOLARIS" = "x1" ; then
48638 COND_USE_SOVERSOLARIS_1=""
48639 fi
48640
0b78747f
MW
48641 COND_USE_THREADS_0="#"
48642 if test "x$USE_THREADS" = "x0" ; then
48643 COND_USE_THREADS_0=""
48644 fi
48645
48646 COND_USE_THREADS_1="#"
48647 if test "x$USE_THREADS" = "x1" ; then
48648 COND_USE_THREADS_1=""
48649 fi
48650
a13a7f89
RL
48651 COND_USE_XRC_1="#"
48652 if test "x$USE_XRC" = "x1" ; then
48653 COND_USE_XRC_1=""
48654 fi
48655
eb730a0c
JS
48656 COND_WINDOWS_IMPLIB_1="#"
48657 if test "x$WINDOWS_IMPLIB" = "x1" ; then
48658 COND_WINDOWS_IMPLIB_1=""
48659 fi
48660
a848cd7e
SC
48661 COND_WITH_PLUGIN_SDL_1="#"
48662 if test "x$WITH_PLUGIN_SDL" = "x1" ; then
48663 COND_WITH_PLUGIN_SDL_1=""
48664 fi
48665
1e6eb025
VZ
48666 COND_WXUNIV_0="#"
48667 if test "x$WXUNIV" = "x0" ; then
48668 COND_WXUNIV_0=""
48669 fi
48670
a848cd7e
SC
48671 COND_WXUNIV_1="#"
48672 if test "x$WXUNIV" = "x1" ; then
48673 COND_WXUNIV_1=""
48674 fi
48675
48676 COND_WXUSE_EXPAT_BUILTIN="#"
48677 if test "x$wxUSE_EXPAT" = "xbuiltin" ; then
48678 COND_WXUSE_EXPAT_BUILTIN=""
48679 fi
48680
48681 COND_WXUSE_LIBJPEG_BUILTIN="#"
48682 if test "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
48683 COND_WXUSE_LIBJPEG_BUILTIN=""
48684 fi
48685
48686 COND_WXUSE_LIBPNG_BUILTIN="#"
48687 if test "x$wxUSE_LIBPNG" = "xbuiltin" ; then
48688 COND_WXUSE_LIBPNG_BUILTIN=""
48689 fi
48690
48691 COND_WXUSE_LIBTIFF_BUILTIN="#"
48692 if test "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
48693 COND_WXUSE_LIBTIFF_BUILTIN=""
48694 fi
48695
48696 COND_WXUSE_ODBC_BUILTIN="#"
48697 if test "x$wxUSE_ODBC" = "xbuiltin" ; then
48698 COND_WXUSE_ODBC_BUILTIN=""
48699 fi
48700
48701 COND_WXUSE_REGEX_BUILTIN="#"
48702 if test "x$wxUSE_REGEX" = "xbuiltin" ; then
48703 COND_WXUSE_REGEX_BUILTIN=""
48704 fi
48705
48706 COND_WXUSE_ZLIB_BUILTIN="#"
48707 if test "x$wxUSE_ZLIB" = "xbuiltin" ; then
48708 COND_WXUSE_ZLIB_BUILTIN=""
48709 fi
48710
48711
48712
810b94f0
MW
48713 if test "$BAKEFILE_AUTOCONF_INC_M4_VERSION" = "" ; then
48714 { { 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
48715echo "$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;}
48716 { (exit 1); exit 1; }; }
48717 fi
48718
2057db16
VS
48719 if test "$BAKEFILE_BAKEFILE_M4_VERSION" != "$BAKEFILE_AUTOCONF_INC_M4_VERSION" ; then
48720 { { 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
48721echo "$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;}
48722 { (exit 1); exit 1; }; }
48723 fi
48724
a848cd7e 48725
7afc46ab
KO
48726
48727if test "$wxUSE_MAC" = 1 ; then
48728 if test "$wxUSE_UNIVERSAL_BINARY" = "yes" ; then
48729 sed "s/DEPSMODE=gcc/DEPSMODE=none/" < bk-deps > temp
48730 mv temp bk-deps
48731 chmod +x bk-deps
48732 fi
48733fi
48734
ceec2216
RL
48735if test "$wxUSE_SHARED" = "yes"; then
48736
48737 sanitised_bakefile_mess=`echo "$SHARED_LD_CXX" | tr -d '()'`
48738 EXE_LINKER=`eval echo "$sanitised_bakefile_mess"`
48739
5b674b9d
DE
48740 case "${host}" in
48741 *-pc-os2_emx | *-pc-os2-emx )
48742 SHARED_LD_CC="`pwd`/dllar.sh -name-mangler-script ./dllnames.sh -libf INITINSTANCE -libf TERMINSTANCE -o"
48743 SHARED_LD_CXX="`pwd`/dllar.sh -name-mangler-script ./dllnames.sh -libf INITINSTANCE -libf TERMINSTANCE -o"
48744 cp -p ${srcdir}/src/os2/dllnames.sh .
48745 cp -p ${srcdir}/src/os2/dllar.sh .
48746 ;;
48747 esac
ceec2216
RL
48748else
48749
48750 EXE_LINKER="$CXX -o"
48751
48752fi
69120ee4
VZ
48753if test "$wxUSE_OMF" = "yes"; then
48754 case "${host}" in
48755 *-pc-os2_emx | *-pc-os2-emx )
48756 LDFLAGS="$LDFLAGS -Zlinker /EXEPACK"
48757 LDFLAGS_GUI="-Zlinker /PMTYPE:PM"
48758 WXCONFIG_LDFLAGS_GUI="-Zlinker /PMTYPE:PM"
48759 ;;
48760 esac
48761fi
a848cd7e 48762
c08ebc62 48763if test $GCC_PCH = 1 ; then
254e8e29 48764 CPPFLAGS="-DWX_PRECOMP $CPPFLAGS"
ddd14b14 48765fi
a848cd7e 48766
5ff751d6 48767WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS $TOOLCHAIN_DEFS"
a848cd7e
SC
48768
48769SAMPLES_SUBDIRS="`echo $SAMPLES_SUBDIRS | tr -s ' ' | tr ' ' '\n' | sort | uniq | tr '\n' ' '| tr -d '\r'`"
48770
48771
48772
48773
48774
48775
48776
48777
48778
48779
48780
48781
48782
48783
48784
48785
48786
48787
48788
48789
48790
48791
48792
48793
48794
48795
48796
48797
48798
48799
48800
48801
48802
48803
48804
48805
48806
48807
48808
48809
48810
48811
a848cd7e
SC
48812
48813
48814
48815
48816
48817
48818
48819
48820
48821
48822
48823
a848cd7e
SC
48824
48825
ddd14b14 48826
370d2fd7 48827
8ced02f6 48828
a848cd7e
SC
48829
48830
48831echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
48832echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
ac1cb8d3 48833set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
a848cd7e
SC
48834if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
48835 echo $ECHO_N "(cached) $ECHO_C" >&6
48836else
48837 cat >conftest.make <<\_ACEOF
48838all:
48839 @echo 'ac_maketemp="$(MAKE)"'
48840_ACEOF
48841# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
48842eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
48843if test -n "$ac_maketemp"; then
48844 eval ac_cv_prog_make_${ac_make}_set=yes
48845else
48846 eval ac_cv_prog_make_${ac_make}_set=no
48847fi
48848rm -f conftest.make
48849fi
48850if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
48851 echo "$as_me:$LINENO: result: yes" >&5
48852echo "${ECHO_T}yes" >&6
48853 SET_MAKE=
48854else
48855 echo "$as_me:$LINENO: result: no" >&5
48856echo "${ECHO_T}no" >&6
48857 SET_MAKE="MAKE=${MAKE-make}"
48858fi
48859
48860
a848cd7e 48861
ceec2216
RL
48862 ac_config_headers="$ac_config_headers lib/wx/include/${TOOLCHAIN_FULLNAME}/wx/setup.h:setup.h.in"
48863
a848cd7e 48864
5c60e845
MW
48865if test "$USE_WIN32" = 1; then
48866 ac_config_commands="$ac_config_commands
48867 rcdefs.h
48868 "
48869
48870fi
48871
ceec2216 48872 ac_config_files="$ac_config_files lib/wx/config/${TOOLCHAIN_FULLNAME}:wx-config.in"
a848cd7e 48873
a848cd7e 48874
ceec2216 48875 ac_config_files="$ac_config_files lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}:wx-config-inplace.in"
a848cd7e 48876
ceec2216
RL
48877
48878 ac_config_files="$ac_config_files version-script Makefile"
48879
48880
5c60e845 48881 ac_config_commands="$ac_config_commands wx-config"
a848cd7e
SC
48882
48883
9103d280 48884
1c14217d 48885if test "$wxWITH_SUBDIRS" != "no"; then
a848cd7e
SC
48886if test "$wxUSE_GUI" = "yes"; then
48887 SUBDIRS="samples demos utils contrib"
48888else SUBDIRS="samples utils"
48889fi
48890
48891
48892
48893# Check whether --with-cppunit-prefix or --without-cppunit-prefix was given.
48894if test "${with_cppunit_prefix+set}" = set; then
48895 withval="$with_cppunit_prefix"
48896 cppunit_config_prefix="$withval"
48897else
48898 cppunit_config_prefix=""
48899fi;
48900
48901# Check whether --with-cppunit-exec-prefix or --without-cppunit-exec-prefix was given.
48902if test "${with_cppunit_exec_prefix+set}" = set; then
48903 withval="$with_cppunit_exec_prefix"
48904 cppunit_config_exec_prefix="$withval"
48905else
48906 cppunit_config_exec_prefix=""
48907fi;
48908
48909 if test x$cppunit_config_exec_prefix != x ; then
48910 cppunit_config_args="$cppunit_config_args --exec-prefix=$cppunit_config_exec_prefix"
48911 if test x${CPPUNIT_CONFIG+set} != xset ; then
48912 CPPUNIT_CONFIG=$cppunit_config_exec_prefix/bin/cppunit-config
48913 fi
48914 fi
48915 if test x$cppunit_config_prefix != x ; then
48916 cppunit_config_args="$cppunit_config_args --prefix=$cppunit_config_prefix"
48917 if test x${CPPUNIT_CONFIG+set} != xset ; then
48918 CPPUNIT_CONFIG=$cppunit_config_prefix/bin/cppunit-config
48919 fi
48920 fi
48921
48922 # Extract the first word of "cppunit-config", so it can be a program name with args.
48923set dummy cppunit-config; ac_word=$2
48924echo "$as_me:$LINENO: checking for $ac_word" >&5
48925echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
48926if test "${ac_cv_path_CPPUNIT_CONFIG+set}" = set; then
48927 echo $ECHO_N "(cached) $ECHO_C" >&6
48928else
48929 case $CPPUNIT_CONFIG in
48930 [\\/]* | ?:[\\/]*)
48931 ac_cv_path_CPPUNIT_CONFIG="$CPPUNIT_CONFIG" # Let the user override the test with a path.
48932 ;;
48933 *)
48934 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
48935for as_dir in $PATH
48936do
48937 IFS=$as_save_IFS
48938 test -z "$as_dir" && as_dir=.
48939 for ac_exec_ext in '' $ac_executable_extensions; do
48940 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
48941 ac_cv_path_CPPUNIT_CONFIG="$as_dir/$ac_word$ac_exec_ext"
48942 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
48943 break 2
48944 fi
48945done
48946done
48947
48948 test -z "$ac_cv_path_CPPUNIT_CONFIG" && ac_cv_path_CPPUNIT_CONFIG="no"
48949 ;;
48950esac
48951fi
48952CPPUNIT_CONFIG=$ac_cv_path_CPPUNIT_CONFIG
48953
48954if test -n "$CPPUNIT_CONFIG"; then
48955 echo "$as_me:$LINENO: result: $CPPUNIT_CONFIG" >&5
48956echo "${ECHO_T}$CPPUNIT_CONFIG" >&6
48957else
48958 echo "$as_me:$LINENO: result: no" >&5
48959echo "${ECHO_T}no" >&6
48960fi
48961
48962 cppunit_version_min=1.8.0
48963
48964 echo "$as_me:$LINENO: checking for Cppunit - version >= $cppunit_version_min" >&5
48965echo $ECHO_N "checking for Cppunit - version >= $cppunit_version_min... $ECHO_C" >&6
48966 no_cppunit=""
48967 if test "$CPPUNIT_CONFIG" = "no" ; then
48968 no_cppunit=yes
48969 else
48970 CPPUNIT_CFLAGS=`$CPPUNIT_CONFIG --cflags`
48971 CPPUNIT_LIBS=`$CPPUNIT_CONFIG --libs`
48972 cppunit_version=`$CPPUNIT_CONFIG --version`
48973
48974 cppunit_major_version=`echo $cppunit_version | \
48975 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
48976 cppunit_minor_version=`echo $cppunit_version | \
48977 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
48978 cppunit_micro_version=`echo $cppunit_version | \
48979 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
48980
48981 cppunit_major_min=`echo $cppunit_version_min | \
48982 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
48983 cppunit_minor_min=`echo $cppunit_version_min | \
48984 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
48985 cppunit_micro_min=`echo $cppunit_version_min | \
48986 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
48987
48988 cppunit_version_proper=`expr \
48989 $cppunit_major_version \> $cppunit_major_min \| \
48990 $cppunit_major_version \= $cppunit_major_min \& \
48991 $cppunit_minor_version \> $cppunit_minor_min \| \
48992 $cppunit_major_version \= $cppunit_major_min \& \
48993 $cppunit_minor_version \= $cppunit_minor_min \& \
48994 $cppunit_micro_version \>= $cppunit_micro_min `
48995
48996 if test "$cppunit_version_proper" = "1" ; then
48997 echo "$as_me:$LINENO: result: $cppunit_major_version.$cppunit_minor_version.$cppunit_micro_version" >&5
48998echo "${ECHO_T}$cppunit_major_version.$cppunit_minor_version.$cppunit_micro_version" >&6
48999 else
49000 echo "$as_me:$LINENO: result: no" >&5
49001echo "${ECHO_T}no" >&6
49002 no_cppunit=yes
49003 fi
49004 fi
49005
49006 if test "x$no_cppunit" = x ; then
c2218763 49007 SUBDIRS="$SUBDIRS tests"
a848cd7e
SC
49008 else
49009 CPPUNIT_CFLAGS=""
49010 CPPUNIT_LIBS=""
c2218763 49011 :
a848cd7e
SC
49012 fi
49013
49014
49015
49016
49017
49018for subdir in `echo $SUBDIRS`; do
49019 if test -d ${srcdir}/${subdir} ; then
49020 if test "$wxUSE_GUI" = "yes"; then
49021 if test ${subdir} = "samples"; then
49022 makefiles="samples/Makefile.in $makefiles"
49023 for sample in `echo $SAMPLES_SUBDIRS`; do
49024 if test -d $srcdir/samples/$sample; then
49025 makefiles="samples/$sample/Makefile.in $makefiles"
49026 fi
49027 done
9c112555
MW
49028 else
49029 disabled_var=DISABLED_`echo $subdir | tr [a-z] [A-Z]`;
49030 eval "disabled=\$$disabled_var"
49031 disabled=/`echo X $disabled | sed 's@ @/|/@g'`/
49032 makefiles=`(cd $srcdir ; find $subdir -name Makefile.in) | egrep -v "$disabled"`
a848cd7e
SC
49033 fi
49034 else if test ${subdir} = "samples"; then
49035 makefiles="samples/Makefile.in samples/console/Makefile.in"
49036 elif test ${subdir} = "utils"; then
6537ccf8
VS
49037 makefiles=""
49038 for util in HelpGen tex2rtf ; do
49039 if test -d $srcdir/utils/$util ; then
49040 makefiles="utils/$util/Makefile.in \
49041 utils/$util/src/Makefile.in \
49042 $makefiles"
49043 fi
49044 done
a848cd7e
SC
49045 else makefiles=`(cd $srcdir ; find $subdir -name Makefile.in)`
49046 fi
49047 fi
49048
49049 for mkin in $makefiles ; do
49050 mk=`echo $mkin | sed 's/Makefile\.in/Makefile/g'`
49051 ac_config_files="$ac_config_files $mk"
49052
49053 done
49054 fi
49055done
1c14217d 49056fi
a848cd7e
SC
49057cat >confcache <<\_ACEOF
49058# This file is a shell script that caches the results of configure
49059# tests run on this system so they can be shared between configure
49060# scripts and configure runs, see configure's option --config-cache.
49061# It is not useful on other systems. If it contains results you don't
49062# want to keep, you may remove or edit it.
49063#
49064# config.status only pays attention to the cache file if you give it
49065# the --recheck option to rerun configure.
49066#
49067# `ac_cv_env_foo' variables (set or unset) will be overridden when
49068# loading this file, other *unset* `ac_cv_foo' will be assigned the
49069# following values.
49070
49071_ACEOF
49072
49073# The following way of writing the cache mishandles newlines in values,
49074# but we know of no workaround that is simple, portable, and efficient.
49075# So, don't put newlines in cache variables' values.
49076# Ultrix sh set writes to stderr and can't be redirected directly,
49077# and sets the high bit in the cache file unless we assign to the vars.
49078{
49079 (set) 2>&1 |
49080 case `(ac_space=' '; set | grep ac_space) 2>&1` in
49081 *ac_space=\ *)
49082 # `set' does not quote correctly, so add quotes (double-quote
49083 # substitution turns \\\\ into \\, and sed turns \\ into \).
49084 sed -n \
ac1cb8d3
VS
49085 "s/'/'\\\\''/g;
49086 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
a848cd7e
SC
49087 ;;
49088 *)
49089 # `set' quotes correctly as required by POSIX, so do not add quotes.
49090 sed -n \
ac1cb8d3 49091 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
a848cd7e
SC
49092 ;;
49093 esac;
49094} |
49095 sed '
49096 t clear
49097 : clear
49098 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
49099 t end
49100 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
49101 : end' >>confcache
49102if diff $cache_file confcache >/dev/null 2>&1; then :; else
49103 if test -w $cache_file; then
49104 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
49105 cat confcache >$cache_file
49106 else
49107 echo "not updating unwritable cache $cache_file"
49108 fi
49109fi
49110rm -f confcache
49111
49112test "x$prefix" = xNONE && prefix=$ac_default_prefix
49113# Let make expand exec_prefix.
49114test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
49115
49116# VPATH may cause trouble with some makes, so we remove $(srcdir),
49117# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
49118# trailing colons and then remove the whole line if VPATH becomes empty
49119# (actually we leave an empty line to preserve line numbers).
49120if test "x$srcdir" = x.; then
ac1cb8d3 49121 ac_vpsub='/^[ ]*VPATH[ ]*=/{
a848cd7e
SC
49122s/:*\$(srcdir):*/:/;
49123s/:*\${srcdir}:*/:/;
49124s/:*@srcdir@:*/:/;
ac1cb8d3 49125s/^\([^=]*=[ ]*\):*/\1/;
a848cd7e 49126s/:*$//;
ac1cb8d3 49127s/^[^=]*=[ ]*$//;
a848cd7e
SC
49128}'
49129fi
49130
49131DEFS=-DHAVE_CONFIG_H
49132
49133ac_libobjs=
49134ac_ltlibobjs=
49135for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
49136 # 1. Remove the extension, and $U if already installed.
49137 ac_i=`echo "$ac_i" |
ac1cb8d3 49138 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
a848cd7e
SC
49139 # 2. Add them.
49140 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
49141 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
49142done
49143LIBOBJS=$ac_libobjs
49144
49145LTLIBOBJS=$ac_ltlibobjs
49146
49147
49148
49149: ${CONFIG_STATUS=./config.status}
49150ac_clean_files_save=$ac_clean_files
49151ac_clean_files="$ac_clean_files $CONFIG_STATUS"
49152{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
49153echo "$as_me: creating $CONFIG_STATUS" >&6;}
49154cat >$CONFIG_STATUS <<_ACEOF
49155#! $SHELL
49156# Generated by $as_me.
49157# Run this file to recreate the current configuration.
49158# Compiler output produced by configure, useful for debugging
49159# configure, is in config.log if it exists.
49160
49161debug=false
49162ac_cs_recheck=false
49163ac_cs_silent=false
49164SHELL=\${CONFIG_SHELL-$SHELL}
49165_ACEOF
49166
49167cat >>$CONFIG_STATUS <<\_ACEOF
49168## --------------------- ##
49169## M4sh Initialization. ##
49170## --------------------- ##
49171
49172# Be Bourne compatible
49173if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
49174 emulate sh
49175 NULLCMD=:
49176 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
49177 # is contrary to our usage. Disable this feature.
49178 alias -g '${1+"$@"}'='"$@"'
49179elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
49180 set -o posix
49181fi
ac1cb8d3 49182DUALCASE=1; export DUALCASE # for MKS sh
a848cd7e
SC
49183
49184# Support unset when possible.
ac1cb8d3 49185if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
a848cd7e
SC
49186 as_unset=unset
49187else
49188 as_unset=false
49189fi
49190
49191
49192# Work around bugs in pre-3.0 UWIN ksh.
49193$as_unset ENV MAIL MAILPATH
49194PS1='$ '
49195PS2='> '
49196PS4='+ '
49197
49198# NLS nuisances.
49199for as_var in \
49200 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
49201 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
49202 LC_TELEPHONE LC_TIME
49203do
ac1cb8d3 49204 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
a848cd7e
SC
49205 eval $as_var=C; export $as_var
49206 else
49207 $as_unset $as_var
49208 fi
49209done
49210
49211# Required to use basename.
49212if expr a : '\(a\)' >/dev/null 2>&1; then
49213 as_expr=expr
49214else
49215 as_expr=false
49216fi
49217
49218if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
49219 as_basename=basename
49220else
49221 as_basename=false
49222fi
49223
49224
49225# Name of the executable.
49226as_me=`$as_basename "$0" ||
49227$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
49228 X"$0" : 'X\(//\)$' \| \
49229 X"$0" : 'X\(/\)$' \| \
49230 . : '\(.\)' 2>/dev/null ||
49231echo X/"$0" |
49232 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
49233 /^X\/\(\/\/\)$/{ s//\1/; q; }
49234 /^X\/\(\/\).*/{ s//\1/; q; }
49235 s/.*/./; q'`
49236
49237
49238# PATH needs CR, and LINENO needs CR and PATH.
49239# Avoid depending upon Character Ranges.
49240as_cr_letters='abcdefghijklmnopqrstuvwxyz'
49241as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
49242as_cr_Letters=$as_cr_letters$as_cr_LETTERS
49243as_cr_digits='0123456789'
49244as_cr_alnum=$as_cr_Letters$as_cr_digits
49245
49246# The user is always right.
49247if test "${PATH_SEPARATOR+set}" != set; then
49248 echo "#! /bin/sh" >conf$$.sh
49249 echo "exit 0" >>conf$$.sh
49250 chmod +x conf$$.sh
49251 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
49252 PATH_SEPARATOR=';'
49253 else
49254 PATH_SEPARATOR=:
49255 fi
49256 rm -f conf$$.sh
49257fi
49258
49259
49260 as_lineno_1=$LINENO
49261 as_lineno_2=$LINENO
49262 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
49263 test "x$as_lineno_1" != "x$as_lineno_2" &&
49264 test "x$as_lineno_3" = "x$as_lineno_2" || {
49265 # Find who we are. Look in the path if we contain no path at all
49266 # relative or not.
49267 case $0 in
49268 *[\\/]* ) as_myself=$0 ;;
49269 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
49270for as_dir in $PATH
49271do
49272 IFS=$as_save_IFS
49273 test -z "$as_dir" && as_dir=.
49274 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
49275done
49276
49277 ;;
49278 esac
49279 # We did not find ourselves, most probably we were run as `sh COMMAND'
49280 # in which case we are not to be found in the path.
49281 if test "x$as_myself" = x; then
49282 as_myself=$0
49283 fi
49284 if test ! -f "$as_myself"; then
49285 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
49286echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
49287 { (exit 1); exit 1; }; }
49288 fi
49289 case $CONFIG_SHELL in
49290 '')
49291 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
49292for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
49293do
49294 IFS=$as_save_IFS
49295 test -z "$as_dir" && as_dir=.
49296 for as_base in sh bash ksh sh5; do
49297 case $as_dir in
49298 /*)
49299 if ("$as_dir/$as_base" -c '
49300 as_lineno_1=$LINENO
49301 as_lineno_2=$LINENO
49302 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
49303 test "x$as_lineno_1" != "x$as_lineno_2" &&
49304 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
49305 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
49306 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
49307 CONFIG_SHELL=$as_dir/$as_base
49308 export CONFIG_SHELL
49309 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
49310 fi;;
49311 esac
49312 done
49313done
49314;;
49315 esac
49316
49317 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
49318 # uniformly replaced by the line number. The first 'sed' inserts a
49319 # line-number line before each line; the second 'sed' does the real
49320 # work. The second script uses 'N' to pair each line-number line
49321 # with the numbered line, and appends trailing '-' during
49322 # substitution so that $LINENO is not a special case at line end.
49323 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
49324 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
49325 sed '=' <$as_myself |
49326 sed '
49327 N
49328 s,$,-,
49329 : loop
49330 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
49331 t loop
49332 s,-$,,
49333 s,^['$as_cr_digits']*\n,,
49334 ' >$as_me.lineno &&
49335 chmod +x $as_me.lineno ||
49336 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
49337echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
49338 { (exit 1); exit 1; }; }
49339
49340 # Don't try to exec as it changes $[0], causing all sort of problems
49341 # (the dirname of $[0] is not the place where we might find the
49342 # original and so on. Autoconf is especially sensible to this).
49343 . ./$as_me.lineno
49344 # Exit status is that of the last command.
49345 exit
49346}
49347
49348
49349case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
49350 *c*,-n*) ECHO_N= ECHO_C='
49351' ECHO_T=' ' ;;
49352 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
49353 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
49354esac
49355
49356if expr a : '\(a\)' >/dev/null 2>&1; then
49357 as_expr=expr
49358else
49359 as_expr=false
49360fi
49361
49362rm -f conf$$ conf$$.exe conf$$.file
49363echo >conf$$.file
49364if ln -s conf$$.file conf$$ 2>/dev/null; then
49365 # We could just check for DJGPP; but this test a) works b) is more generic
49366 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
49367 if test -f conf$$.exe; then
49368 # Don't use ln at all; we don't have any links
49369 as_ln_s='cp -p'
49370 else
49371 as_ln_s='ln -s'
49372 fi
49373elif ln conf$$.file conf$$ 2>/dev/null; then
49374 as_ln_s=ln
49375else
49376 as_ln_s='cp -p'
49377fi
49378rm -f conf$$ conf$$.exe conf$$.file
49379
49380if mkdir -p . 2>/dev/null; then
49381 as_mkdir_p=:
49382else
ac1cb8d3 49383 test -d ./-p && rmdir ./-p
a848cd7e
SC
49384 as_mkdir_p=false
49385fi
49386
49387as_executable_p="test -f"
49388
49389# Sed expression to map a string onto a valid CPP name.
ac1cb8d3 49390as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
a848cd7e
SC
49391
49392# Sed expression to map a string onto a valid variable name.
ac1cb8d3 49393as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
a848cd7e
SC
49394
49395
49396# IFS
49397# We need space, tab and new line, in precisely that order.
49398as_nl='
49399'
49400IFS=" $as_nl"
49401
49402# CDPATH.
49403$as_unset CDPATH
49404
49405exec 6>&1
49406
49407# Open the log real soon, to keep \$[0] and so on meaningful, and to
49408# report actual input values of CONFIG_FILES etc. instead of their
49409# values after options handling. Logging --version etc. is OK.
49410exec 5>>config.log
49411{
49412 echo
49413 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
49414## Running $as_me. ##
49415_ASBOX
49416} >&5
49417cat >&5 <<_CSEOF
49418
dd8df4fc 49419This file was extended by wxWidgets $as_me 2.7.0, which was
ac1cb8d3 49420generated by GNU Autoconf 2.59. Invocation command line was
a848cd7e
SC
49421
49422 CONFIG_FILES = $CONFIG_FILES
49423 CONFIG_HEADERS = $CONFIG_HEADERS
49424 CONFIG_LINKS = $CONFIG_LINKS
49425 CONFIG_COMMANDS = $CONFIG_COMMANDS
49426 $ $0 $@
49427
49428_CSEOF
49429echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
49430echo >&5
49431_ACEOF
49432
49433# Files that config.status was made for.
49434if test -n "$ac_config_files"; then
49435 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
49436fi
49437
49438if test -n "$ac_config_headers"; then
49439 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
49440fi
49441
49442if test -n "$ac_config_links"; then
49443 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
49444fi
49445
49446if test -n "$ac_config_commands"; then
49447 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
49448fi
49449
49450cat >>$CONFIG_STATUS <<\_ACEOF
49451
49452ac_cs_usage="\
49453\`$as_me' instantiates files from templates according to the
49454current configuration.
49455
49456Usage: $0 [OPTIONS] [FILE]...
49457
49458 -h, --help print this help, then exit
49459 -V, --version print version number, then exit
49460 -q, --quiet do not print progress messages
49461 -d, --debug don't remove temporary files
49462 --recheck update $as_me by reconfiguring in the same conditions
49463 --file=FILE[:TEMPLATE]
ac1cb8d3 49464 instantiate the configuration file FILE
a848cd7e 49465 --header=FILE[:TEMPLATE]
ac1cb8d3 49466 instantiate the configuration header FILE
a848cd7e
SC
49467
49468Configuration files:
49469$config_files
49470
49471Configuration headers:
49472$config_headers
49473
49474Configuration commands:
49475$config_commands
49476
49477Report bugs to <bug-autoconf@gnu.org>."
49478_ACEOF
49479
49480cat >>$CONFIG_STATUS <<_ACEOF
49481ac_cs_version="\\
dd8df4fc 49482wxWidgets config.status 2.7.0
ac1cb8d3 49483configured by $0, generated by GNU Autoconf 2.59,
a848cd7e
SC
49484 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
49485
ac1cb8d3 49486Copyright (C) 2003 Free Software Foundation, Inc.
a848cd7e
SC
49487This config.status script is free software; the Free Software Foundation
49488gives unlimited permission to copy, distribute and modify it."
49489srcdir=$srcdir
49490INSTALL="$INSTALL"
49491_ACEOF
49492
49493cat >>$CONFIG_STATUS <<\_ACEOF
49494# If no file are specified by the user, then we need to provide default
49495# value. By we need to know if files were specified by the user.
49496ac_need_defaults=:
49497while test $# != 0
49498do
49499 case $1 in
49500 --*=*)
49501 ac_option=`expr "x$1" : 'x\([^=]*\)='`
49502 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
49503 ac_shift=:
49504 ;;
49505 -*)
49506 ac_option=$1
49507 ac_optarg=$2
49508 ac_shift=shift
49509 ;;
49510 *) # This is not an option, so the user has probably given explicit
49511 # arguments.
49512 ac_option=$1
49513 ac_need_defaults=false;;
49514 esac
49515
49516 case $ac_option in
49517 # Handling of the options.
49518_ACEOF
49519cat >>$CONFIG_STATUS <<\_ACEOF
49520 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
49521 ac_cs_recheck=: ;;
49522 --version | --vers* | -V )
49523 echo "$ac_cs_version"; exit 0 ;;
49524 --he | --h)
49525 # Conflict between --help and --header
49526 { { echo "$as_me:$LINENO: error: ambiguous option: $1
49527Try \`$0 --help' for more information." >&5
49528echo "$as_me: error: ambiguous option: $1
49529Try \`$0 --help' for more information." >&2;}
49530 { (exit 1); exit 1; }; };;
49531 --help | --hel | -h )
49532 echo "$ac_cs_usage"; exit 0 ;;
49533 --debug | --d* | -d )
49534 debug=: ;;
49535 --file | --fil | --fi | --f )
49536 $ac_shift
49537 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
49538 ac_need_defaults=false;;
49539 --header | --heade | --head | --hea )
49540 $ac_shift
49541 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
49542 ac_need_defaults=false;;
49543 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
49544 | -silent | --silent | --silen | --sile | --sil | --si | --s)
49545 ac_cs_silent=: ;;
49546
49547 # This is an error.
49548 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
49549Try \`$0 --help' for more information." >&5
49550echo "$as_me: error: unrecognized option: $1
49551Try \`$0 --help' for more information." >&2;}
49552 { (exit 1); exit 1; }; } ;;
49553
49554 *) ac_config_targets="$ac_config_targets $1" ;;
49555
49556 esac
49557 shift
49558done
49559
49560ac_configure_extra_args=
49561
49562if $ac_cs_silent; then
49563 exec 6>/dev/null
49564 ac_configure_extra_args="$ac_configure_extra_args --silent"
49565fi
49566
49567_ACEOF
49568cat >>$CONFIG_STATUS <<_ACEOF
49569if \$ac_cs_recheck; then
49570 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
49571 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
49572fi
49573
49574_ACEOF
49575
49576cat >>$CONFIG_STATUS <<_ACEOF
49577#
49578# INIT-COMMANDS section.
49579#
49580
5c60e845
MW
49581
49582 CPP="$CPP"
49583 infile="$srcdir/include/wx/msw/genrcdefs.h"
49584 outdir="lib/wx/include/$TOOLCHAIN_FULLNAME/wx/msw"
49585
49586
ceec2216
RL
49587 TOOLCHAIN_FULLNAME="${TOOLCHAIN_FULLNAME}"
49588 TOOLCHAIN_FULLNAME="${TOOLCHAIN_FULLNAME}"
49589 TOOLCHAIN_FULLNAME="${TOOLCHAIN_FULLNAME}"
49590 LN_S="${LN_S}"
a848cd7e
SC
49591
49592
49593_ACEOF
49594
49595
49596
49597cat >>$CONFIG_STATUS <<\_ACEOF
49598for ac_config_target in $ac_config_targets
49599do
49600 case "$ac_config_target" in
49601 # Handling of arguments.
ceec2216
RL
49602 "lib/wx/config/${TOOLCHAIN_FULLNAME}" ) CONFIG_FILES="$CONFIG_FILES lib/wx/config/${TOOLCHAIN_FULLNAME}:wx-config.in" ;;
49603 "lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}" ) CONFIG_FILES="$CONFIG_FILES lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}:wx-config-inplace.in" ;;
a848cd7e
SC
49604 "version-script" ) CONFIG_FILES="$CONFIG_FILES version-script" ;;
49605 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
49606 "$mk" ) CONFIG_FILES="$CONFIG_FILES $mk" ;;
5c60e845 49607 "rcdefs.h" ) CONFIG_COMMANDS="$CONFIG_COMMANDS rcdefs.h" ;;
ceec2216
RL
49608 "wx-config" ) CONFIG_COMMANDS="$CONFIG_COMMANDS wx-config" ;;
49609 "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
49610 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
49611echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
49612 { (exit 1); exit 1; }; };;
49613 esac
49614done
49615
49616# If the user did not use the arguments to specify the items to instantiate,
49617# then the envvar interface is used. Set only those that are not.
49618# We use the long form for the default assignment because of an extremely
49619# bizarre bug on SunOS 4.1.3.
49620if $ac_need_defaults; then
49621 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
49622 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
49623 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
49624fi
49625
49626# Have a temporary directory for convenience. Make it in the build tree
49627# simply because there is no reason to put it here, and in addition,
49628# creating and moving files from /tmp can sometimes cause problems.
49629# Create a temporary directory, and hook for its removal unless debugging.
49630$debug ||
49631{
49632 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
49633 trap '{ (exit 1); exit 1; }' 1 2 13 15
49634}
49635
49636# Create a (secure) tmp directory for tmp files.
49637
49638{
49639 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
49640 test -n "$tmp" && test -d "$tmp"
49641} ||
49642{
49643 tmp=./confstat$$-$RANDOM
49644 (umask 077 && mkdir $tmp)
49645} ||
49646{
49647 echo "$me: cannot create a temporary directory in ." >&2
49648 { (exit 1); exit 1; }
49649}
49650
49651_ACEOF
49652
49653cat >>$CONFIG_STATUS <<_ACEOF
49654
49655#
49656# CONFIG_FILES section.
49657#
49658
49659# No need to generate the scripts if there are no CONFIG_FILES.
49660# This happens for instance when ./config.status config.h
49661if test -n "\$CONFIG_FILES"; then
49662 # Protect against being on the right side of a sed subst in config.status.
49663 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
49664 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
49665s,@SHELL@,$SHELL,;t t
49666s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
49667s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
49668s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
49669s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
49670s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
49671s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
49672s,@exec_prefix@,$exec_prefix,;t t
49673s,@prefix@,$prefix,;t t
49674s,@program_transform_name@,$program_transform_name,;t t
49675s,@bindir@,$bindir,;t t
49676s,@sbindir@,$sbindir,;t t
49677s,@libexecdir@,$libexecdir,;t t
49678s,@datadir@,$datadir,;t t
49679s,@sysconfdir@,$sysconfdir,;t t
49680s,@sharedstatedir@,$sharedstatedir,;t t
49681s,@localstatedir@,$localstatedir,;t t
49682s,@libdir@,$libdir,;t t
49683s,@includedir@,$includedir,;t t
49684s,@oldincludedir@,$oldincludedir,;t t
49685s,@infodir@,$infodir,;t t
49686s,@mandir@,$mandir,;t t
49687s,@build_alias@,$build_alias,;t t
49688s,@host_alias@,$host_alias,;t t
49689s,@target_alias@,$target_alias,;t t
49690s,@DEFS@,$DEFS,;t t
49691s,@ECHO_C@,$ECHO_C,;t t
49692s,@ECHO_N@,$ECHO_N,;t t
49693s,@ECHO_T@,$ECHO_T,;t t
49694s,@LIBS@,$LIBS,;t t
49695s,@build@,$build,;t t
49696s,@build_cpu@,$build_cpu,;t t
49697s,@build_vendor@,$build_vendor,;t t
49698s,@build_os@,$build_os,;t t
49699s,@host@,$host,;t t
49700s,@host_cpu@,$host_cpu,;t t
49701s,@host_vendor@,$host_vendor,;t t
49702s,@host_os@,$host_os,;t t
49703s,@target@,$target,;t t
49704s,@target_cpu@,$target_cpu,;t t
49705s,@target_vendor@,$target_vendor,;t t
49706s,@target_os@,$target_os,;t t
49707s,@CC@,$CC,;t t
49708s,@CFLAGS@,$CFLAGS,;t t
49709s,@LDFLAGS@,$LDFLAGS,;t t
49710s,@CPPFLAGS@,$CPPFLAGS,;t t
49711s,@ac_ct_CC@,$ac_ct_CC,;t t
49712s,@EXEEXT@,$EXEEXT,;t t
49713s,@OBJEXT@,$OBJEXT,;t t
49714s,@CPP@,$CPP,;t t
49715s,@EGREP@,$EGREP,;t t
49716s,@CXX@,$CXX,;t t
49717s,@CXXFLAGS@,$CXXFLAGS,;t t
49718s,@ac_ct_CXX@,$ac_ct_CXX,;t t
49719s,@RANLIB@,$RANLIB,;t t
49720s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
49721s,@AR@,$AR,;t t
8c80d384 49722s,@ac_ct_AR@,$ac_ct_AR,;t t
a848cd7e
SC
49723s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
49724s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
49725s,@INSTALL_DATA@,$INSTALL_DATA,;t t
49726s,@STRIP@,$STRIP,;t t
8c80d384 49727s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
8ced02f6
DE
49728s,@WINDRES@,$WINDRES,;t t
49729s,@ac_ct_WINDRES@,$ac_ct_WINDRES,;t t
8c80d384
DE
49730s,@DLLTOOL@,$DLLTOOL,;t t
49731s,@ac_ct_DLLTOOL@,$ac_ct_DLLTOOL,;t t
a848cd7e
SC
49732s,@IF_GNU_MAKE@,$IF_GNU_MAKE,;t t
49733s,@LN_S@,$LN_S,;t t
49734s,@CXXCPP@,$CXXCPP,;t t
49735s,@subdirs@,$subdirs,;t t
49736s,@PKG_CONFIG@,$PKG_CONFIG,;t t
49737s,@GTK_CFLAGS@,$GTK_CFLAGS,;t t
49738s,@GTK_LIBS@,$GTK_LIBS,;t t
49739s,@GTK_CONFIG@,$GTK_CONFIG,;t t
a848cd7e
SC
49740s,@X_CFLAGS@,$X_CFLAGS,;t t
49741s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
49742s,@X_LIBS@,$X_LIBS,;t t
49743s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
49744s,@PANGOX_CFLAGS@,$PANGOX_CFLAGS,;t t
49745s,@PANGOX_LIBS@,$PANGOX_LIBS,;t t
d1c38808
VZ
49746s,@PANGOFT2_CFLAGS@,$PANGOFT2_CFLAGS,;t t
49747s,@PANGOFT2_LIBS@,$PANGOFT2_LIBS,;t t
a848cd7e
SC
49748s,@PANGOXFT_CFLAGS@,$PANGOXFT_CFLAGS,;t t
49749s,@PANGOXFT_LIBS@,$PANGOXFT_LIBS,;t t
8ced02f6 49750s,@REZ@,$REZ,;t t
a848cd7e
SC
49751s,@DEREZ@,$DEREZ,;t t
49752s,@SETFILE@,$SETFILE,;t t
49753s,@LIBICONV@,$LIBICONV,;t t
49754s,@EXTRALIBS_ESD@,$EXTRALIBS_ESD,;t t
49755s,@SDL_CONFIG@,$SDL_CONFIG,;t t
49756s,@SDL_CFLAGS@,$SDL_CFLAGS,;t t
49757s,@SDL_LIBS@,$SDL_LIBS,;t t
d1c38808
VZ
49758s,@LIBGNOMEPRINTUI_CFLAGS@,$LIBGNOMEPRINTUI_CFLAGS,;t t
49759s,@LIBGNOMEPRINTUI_LIBS@,$LIBGNOMEPRINTUI_LIBS,;t t
2b850ae1
RR
49760s,@GNOMEVFS_CFLAGS@,$GNOMEVFS_CFLAGS,;t t
49761s,@GNOMEVFS_LIBS@,$GNOMEVFS_LIBS,;t t
3565d135
RR
49762s,@HILDON_CFLAGS@,$HILDON_CFLAGS,;t t
49763s,@HILDON_LIBS@,$HILDON_LIBS,;t t
f10e38c4
VZ
49764s,@GST_CFLAGS@,$GST_CFLAGS,;t t
49765s,@GST_LIBS@,$GST_LIBS,;t t
a848cd7e
SC
49766s,@CORE_BASE_LIBS@,$CORE_BASE_LIBS,;t t
49767s,@CORE_GUI_LIBS@,$CORE_GUI_LIBS,;t t
49768s,@wxUSE_ZLIB@,$wxUSE_ZLIB,;t t
49769s,@wxUSE_REGEX@,$wxUSE_REGEX,;t t
49770s,@wxUSE_EXPAT@,$wxUSE_EXPAT,;t t
49771s,@wxUSE_ODBC@,$wxUSE_ODBC,;t t
49772s,@wxUSE_LIBJPEG@,$wxUSE_LIBJPEG,;t t
49773s,@wxUSE_LIBPNG@,$wxUSE_LIBPNG,;t t
49774s,@wxUSE_LIBTIFF@,$wxUSE_LIBTIFF,;t t
49775s,@VENDOR@,$VENDOR,;t t
49776s,@OFFICIAL_BUILD@,$OFFICIAL_BUILD,;t t
ceec2216
RL
49777s,@WX_FLAVOUR@,$WX_FLAVOUR,;t t
49778s,@WX_LIB_FLAVOUR@,$WX_LIB_FLAVOUR,;t t
a848cd7e
SC
49779s,@WXUNIV@,$WXUNIV,;t t
49780s,@MONOLITHIC@,$MONOLITHIC,;t t
49781s,@USE_PLUGINS@,$USE_PLUGINS,;t t
49782s,@EXTRALIBS@,$EXTRALIBS,;t t
49783s,@EXTRALIBS_XML@,$EXTRALIBS_XML,;t t
49784s,@EXTRALIBS_HTML@,$EXTRALIBS_HTML,;t t
49785s,@EXTRALIBS_ODBC@,$EXTRALIBS_ODBC,;t t
49786s,@EXTRALIBS_GUI@,$EXTRALIBS_GUI,;t t
49787s,@EXTRALIBS_OPENGL@,$EXTRALIBS_OPENGL,;t t
49788s,@EXTRALIBS_SDL@,$EXTRALIBS_SDL,;t t
49789s,@WITH_PLUGIN_SDL@,$WITH_PLUGIN_SDL,;t t
d1c38808 49790s,@EXTRALIBS_GNOMEPRINT@,$EXTRALIBS_GNOMEPRINT,;t t
2b850ae1 49791s,@EXTRALIBS_GNOMEVFS@,$EXTRALIBS_GNOMEVFS,;t t
3565d135 49792s,@EXTRALIBS_HILDON@,$EXTRALIBS_HILDON,;t t
a848cd7e
SC
49793s,@UNICODE@,$UNICODE,;t t
49794s,@BUILD@,$BUILD,;t t
49795s,@DEBUG_INFO@,$DEBUG_INFO,;t t
49796s,@DEBUG_FLAG@,$DEBUG_FLAG,;t t
a848cd7e
SC
49797s,@TOOLKIT_LOWERCASE@,$TOOLKIT_LOWERCASE,;t t
49798s,@TOOLKIT_VERSION@,$TOOLKIT_VERSION,;t t
49799s,@SAMPLES_RPATH_FLAG@,$SAMPLES_RPATH_FLAG,;t t
49800s,@SAMPLES_RPATH_POSTLINK@,$SAMPLES_RPATH_POSTLINK,;t t
49801s,@HOST_SUFFIX@,$HOST_SUFFIX,;t t
49802s,@CPPUNIT_CFLAGS@,$CPPUNIT_CFLAGS,;t t
49803s,@CPPUNIT_LIBS@,$CPPUNIT_LIBS,;t t
49804s,@SET_MAKE@,$SET_MAKE,;t t
49805s,@MAKE_SET@,$MAKE_SET,;t t
a848cd7e
SC
49806s,@NM@,$NM,;t t
49807s,@ac_ct_NM@,$ac_ct_NM,;t t
49808s,@INSTALL_DIR@,$INSTALL_DIR,;t t
49809s,@LDFLAGS_GUI@,$LDFLAGS_GUI,;t t
49810s,@PLATFORM_UNIX@,$PLATFORM_UNIX,;t t
49811s,@PLATFORM_WIN32@,$PLATFORM_WIN32,;t t
49812s,@PLATFORM_MSDOS@,$PLATFORM_MSDOS,;t t
49813s,@PLATFORM_MAC@,$PLATFORM_MAC,;t t
1e9e8aba 49814s,@PLATFORM_MACOS@,$PLATFORM_MACOS,;t t
a848cd7e
SC
49815s,@PLATFORM_MACOSX@,$PLATFORM_MACOSX,;t t
49816s,@PLATFORM_OS2@,$PLATFORM_OS2,;t t
1e9e8aba 49817s,@PLATFORM_BEOS@,$PLATFORM_BEOS,;t t
a848cd7e
SC
49818s,@SO_SUFFIX@,$SO_SUFFIX,;t t
49819s,@SO_SUFFIX_MODULE@,$SO_SUFFIX_MODULE,;t t
49820s,@DLLIMP_SUFFIX@,$DLLIMP_SUFFIX,;t t
49821s,@LIBPREFIX@,$LIBPREFIX,;t t
49822s,@LIBEXT@,$LIBEXT,;t t
49823s,@DLLPREFIX@,$DLLPREFIX,;t t
49824s,@DLLPREFIX_MODULE@,$DLLPREFIX_MODULE,;t t
810b94f0 49825s,@dlldir@,$dlldir,;t t
a848cd7e
SC
49826s,@AIX_CXX_LD@,$AIX_CXX_LD,;t t
49827s,@SHARED_LD_CC@,$SHARED_LD_CC,;t t
49828s,@SHARED_LD_CXX@,$SHARED_LD_CXX,;t t
49829s,@SHARED_LD_MODULE_CC@,$SHARED_LD_MODULE_CC,;t t
49830s,@SHARED_LD_MODULE_CXX@,$SHARED_LD_MODULE_CXX,;t t
49831s,@PIC_FLAG@,$PIC_FLAG,;t t
810b94f0 49832s,@WINDOWS_IMPLIB@,$WINDOWS_IMPLIB,;t t
a848cd7e
SC
49833s,@USE_SOVERSION@,$USE_SOVERSION,;t t
49834s,@USE_SOVERLINUX@,$USE_SOVERLINUX,;t t
49835s,@USE_SOVERSOLARIS@,$USE_SOVERSOLARIS,;t t
810b94f0 49836s,@USE_SOVERCYGWIN@,$USE_SOVERCYGWIN,;t t
a848cd7e
SC
49837s,@USE_MACVERSION@,$USE_MACVERSION,;t t
49838s,@USE_SOSYMLINKS@,$USE_SOSYMLINKS,;t t
49839s,@SONAME_FLAG@,$SONAME_FLAG,;t t
49840s,@DEPS_TRACKING@,$DEPS_TRACKING,;t t
49841s,@GCC_PCH@,$GCC_PCH,;t t
f10e38c4 49842s,@ICC_PCH@,$ICC_PCH,;t t
a848cd7e
SC
49843s,@COND_BUILD_DEBUG@,$COND_BUILD_DEBUG,;t t
49844s,@COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT@,$COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT,;t t
49845s,@COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT@,$COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT,;t t
49846s,@COND_BUILD_DEBUG_UNICODE_0@,$COND_BUILD_DEBUG_UNICODE_0,;t t
49847s,@COND_BUILD_DEBUG_UNICODE_1@,$COND_BUILD_DEBUG_UNICODE_1,;t t
49848s,@COND_BUILD_RELEASE@,$COND_BUILD_RELEASE,;t t
49849s,@COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT@,$COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT,;t t
49850s,@COND_BUILD_RELEASE_UNICODE_0@,$COND_BUILD_RELEASE_UNICODE_0,;t t
49851s,@COND_BUILD_RELEASE_UNICODE_1@,$COND_BUILD_RELEASE_UNICODE_1,;t t
49852s,@COND_DEBUG_FLAG_1@,$COND_DEBUG_FLAG_1,;t t
49853s,@COND_DEBUG_INFO_0@,$COND_DEBUG_INFO_0,;t t
49854s,@COND_DEBUG_INFO_1@,$COND_DEBUG_INFO_1,;t t
49855s,@COND_DEPS_TRACKING_0@,$COND_DEPS_TRACKING_0,;t t
49856s,@COND_DEPS_TRACKING_1@,$COND_DEPS_TRACKING_1,;t t
49857s,@COND_GCC_PCH_1@,$COND_GCC_PCH_1,;t t
f10e38c4 49858s,@COND_ICC_PCH_1@,$COND_ICC_PCH_1,;t t
a848cd7e
SC
49859s,@COND_MONOLITHIC_0@,$COND_MONOLITHIC_0,;t t
49860s,@COND_MONOLITHIC_0_SHARED_0@,$COND_MONOLITHIC_0_SHARED_0,;t t
3f60522a 49861s,@COND_MONOLITHIC_0_SHARED_0_USE_AUI_1@,$COND_MONOLITHIC_0_SHARED_0_USE_AUI_1,;t t
a848cd7e 49862s,@COND_MONOLITHIC_0_SHARED_0_USE_GUI_1@,$COND_MONOLITHIC_0_SHARED_0_USE_GUI_1,;t t
90970d69 49863s,@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 49864s,@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 49865s,@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 49866s,@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 49867s,@COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1@,$COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1,;t t
ceec2216 49868s,@COND_MONOLITHIC_0_SHARED_0_USE_XRC_1@,$COND_MONOLITHIC_0_SHARED_0_USE_XRC_1,;t t
a848cd7e 49869s,@COND_MONOLITHIC_0_SHARED_1@,$COND_MONOLITHIC_0_SHARED_1,;t t
3f60522a 49870s,@COND_MONOLITHIC_0_SHARED_1_USE_AUI_1@,$COND_MONOLITHIC_0_SHARED_1_USE_AUI_1,;t t
a848cd7e 49871s,@COND_MONOLITHIC_0_SHARED_1_USE_GUI_1@,$COND_MONOLITHIC_0_SHARED_1_USE_GUI_1,;t t
90970d69 49872s,@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 49873s,@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 49874s,@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 49875s,@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 49876s,@COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1@,$COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1,;t t
ceec2216 49877s,@COND_MONOLITHIC_0_SHARED_1_USE_XRC_1@,$COND_MONOLITHIC_0_SHARED_1_USE_XRC_1,;t t
e5efa97e 49878s,@COND_MONOLITHIC_0_USE_MEDIA_1@,$COND_MONOLITHIC_0_USE_MEDIA_1,;t t
a848cd7e
SC
49879s,@COND_MONOLITHIC_0_USE_ODBC_1@,$COND_MONOLITHIC_0_USE_ODBC_1,;t t
49880s,@COND_MONOLITHIC_1@,$COND_MONOLITHIC_1,;t t
49881s,@COND_MONOLITHIC_1_SHARED_0@,$COND_MONOLITHIC_1_SHARED_0,;t t
49882s,@COND_MONOLITHIC_1_SHARED_1@,$COND_MONOLITHIC_1_SHARED_1,;t t
49883s,@COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1@,$COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1,;t t
49884s,@COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1@,$COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1,;t t
eb730a0c 49885s,@COND_PLATFORM_MACOSX_0_USE_SOVERCYGWIN_0_USE_SOVERSION_1@,$COND_PLATFORM_MACOSX_0_USE_SOVERCYGWIN_0_USE_SOVERSION_1,;t t
a848cd7e
SC
49886s,@COND_PLATFORM_MACOSX_0_USE_SOVERSION_1@,$COND_PLATFORM_MACOSX_0_USE_SOVERSION_1,;t t
49887s,@COND_PLATFORM_MACOSX_1@,$COND_PLATFORM_MACOSX_1,;t t
a30f955f 49888s,@COND_PLATFORM_MACOSX_1_TOOLKIT_@,$COND_PLATFORM_MACOSX_1_TOOLKIT_,;t t
a848cd7e
SC
49889s,@COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA@,$COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA,;t t
49890s,@COND_PLATFORM_MACOSX_1_TOOLKIT_GTK@,$COND_PLATFORM_MACOSX_1_TOOLKIT_GTK,;t t
49891s,@COND_PLATFORM_MACOSX_1_TOOLKIT_MAC@,$COND_PLATFORM_MACOSX_1_TOOLKIT_MAC,;t t
fc480dc1 49892s,@COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1@,$COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1,;t t
1e9e8aba 49893s,@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
49894s,@COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF@,$COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF,;t t
49895s,@COND_PLATFORM_MACOSX_1_TOOLKIT_X11@,$COND_PLATFORM_MACOSX_1_TOOLKIT_X11,;t t
a848cd7e
SC
49896s,@COND_PLATFORM_MACOSX_1_USE_GUI_1@,$COND_PLATFORM_MACOSX_1_USE_GUI_1,;t t
49897s,@COND_PLATFORM_MACOSX_1_USE_SOVERSION_1@,$COND_PLATFORM_MACOSX_1_USE_SOVERSION_1,;t t
b48a2016 49898s,@COND_PLATFORM_MACOS_1@,$COND_PLATFORM_MACOS_1,;t t
083508af 49899s,@COND_PLATFORM_MAC_1@,$COND_PLATFORM_MAC_1,;t t
e5efa97e 49900s,@COND_PLATFORM_MSDOS_0@,$COND_PLATFORM_MSDOS_0,;t t
83d8eb47 49901s,@COND_PLATFORM_MSDOS_1@,$COND_PLATFORM_MSDOS_1,;t t
a848cd7e
SC
49902s,@COND_PLATFORM_OS2_1@,$COND_PLATFORM_OS2_1,;t t
49903s,@COND_PLATFORM_UNIX_0@,$COND_PLATFORM_UNIX_0,;t t
49904s,@COND_PLATFORM_UNIX_1@,$COND_PLATFORM_UNIX_1,;t t
49905s,@COND_PLATFORM_UNIX_1_USE_GUI_1@,$COND_PLATFORM_UNIX_1_USE_GUI_1,;t t
49906s,@COND_PLATFORM_UNIX_1_USE_PLUGINS_0@,$COND_PLATFORM_UNIX_1_USE_PLUGINS_0,;t t
49907s,@COND_PLATFORM_WIN32_0@,$COND_PLATFORM_WIN32_0,;t t
49908s,@COND_PLATFORM_WIN32_1@,$COND_PLATFORM_WIN32_1,;t t
49909s,@COND_SHARED_0@,$COND_SHARED_0,;t t
083508af
MW
49910s,@COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0@,$COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0,;t t
49911s,@COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0@,$COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0,;t t
49912s,@COND_SHARED_0_TOOLKIT_PM_WXUNIV_0@,$COND_SHARED_0_TOOLKIT_PM_WXUNIV_0,;t t
a848cd7e
SC
49913s,@COND_SHARED_0_USE_GUI_1_USE_OPENGL_1@,$COND_SHARED_0_USE_GUI_1_USE_OPENGL_1,;t t
49914s,@COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN@,$COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN,;t t
49915s,@COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN@,$COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN,;t t
49916s,@COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN@,$COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN,;t t
083508af 49917s,@COND_SHARED_0_USE_XRC_1@,$COND_SHARED_0_USE_XRC_1,;t t
a848cd7e
SC
49918s,@COND_SHARED_0_WXUSE_EXPAT_BUILTIN@,$COND_SHARED_0_WXUSE_EXPAT_BUILTIN,;t t
49919s,@COND_SHARED_0_WXUSE_ODBC_BUILTIN@,$COND_SHARED_0_WXUSE_ODBC_BUILTIN,;t t
49920s,@COND_SHARED_0_WXUSE_REGEX_BUILTIN@,$COND_SHARED_0_WXUSE_REGEX_BUILTIN,;t t
49921s,@COND_SHARED_0_WXUSE_ZLIB_BUILTIN@,$COND_SHARED_0_WXUSE_ZLIB_BUILTIN,;t t
49922s,@COND_SHARED_1@,$COND_SHARED_1,;t t
49923s,@COND_SHARED_1_USE_GUI_1_USE_OPENGL_1@,$COND_SHARED_1_USE_GUI_1_USE_OPENGL_1,;t t
083508af 49924s,@COND_SHARED_1_USE_XRC_1@,$COND_SHARED_1_USE_XRC_1,;t t
a30f955f 49925s,@COND_TOOLKIT_@,$COND_TOOLKIT_,;t t
a848cd7e 49926s,@COND_TOOLKIT_COCOA@,$COND_TOOLKIT_COCOA,;t t
a49baeab 49927s,@COND_TOOLKIT_COCOA_USE_GUI_1@,$COND_TOOLKIT_COCOA_USE_GUI_1,;t t
a848cd7e
SC
49928s,@COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0,;t t
49929s,@COND_TOOLKIT_GTK@,$COND_TOOLKIT_GTK,;t t
d044deea
MW
49930s,@COND_TOOLKIT_GTK_TOOLKIT_VERSION_@,$COND_TOOLKIT_GTK_TOOLKIT_VERSION_,;t t
49931s,@COND_TOOLKIT_GTK_TOOLKIT_VERSION_2@,$COND_TOOLKIT_GTK_TOOLKIT_VERSION_2,;t t
49932s,@COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1@,$COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1,;t t
49933s,@COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1_WXUNIV_0,;t t
49934s,@COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1@,$COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1,;t t
49935s,@COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1_WXUNIV_0,;t t
a848cd7e 49936s,@COND_TOOLKIT_GTK_USE_GUI_1@,$COND_TOOLKIT_GTK_USE_GUI_1,;t t
a848cd7e
SC
49937s,@COND_TOOLKIT_MAC@,$COND_TOOLKIT_MAC,;t t
49938s,@COND_TOOLKIT_MAC_USE_GUI_1@,$COND_TOOLKIT_MAC_USE_GUI_1,;t t
49939s,@COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0,;t t
49940s,@COND_TOOLKIT_MGL@,$COND_TOOLKIT_MGL,;t t
49941s,@COND_TOOLKIT_MGL_USE_GUI_1@,$COND_TOOLKIT_MGL_USE_GUI_1,;t t
49942s,@COND_TOOLKIT_MOTIF@,$COND_TOOLKIT_MOTIF,;t t
49943s,@COND_TOOLKIT_MOTIF_USE_GUI_1@,$COND_TOOLKIT_MOTIF_USE_GUI_1,;t t
49944s,@COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0,;t t
49945s,@COND_TOOLKIT_MSW@,$COND_TOOLKIT_MSW,;t t
49946s,@COND_TOOLKIT_MSW_USE_GUI_1@,$COND_TOOLKIT_MSW_USE_GUI_1,;t t
49947s,@COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0,;t t
0ee4059d 49948s,@COND_TOOLKIT_MSW_WXUNIV_0@,$COND_TOOLKIT_MSW_WXUNIV_0,;t t
a848cd7e
SC
49949s,@COND_TOOLKIT_PM@,$COND_TOOLKIT_PM,;t t
49950s,@COND_TOOLKIT_PM_USE_GUI_1@,$COND_TOOLKIT_PM_USE_GUI_1,;t t
49951s,@COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0,;t t
3fd9c298
DE
49952s,@COND_TOOLKIT_WINCE@,$COND_TOOLKIT_WINCE,;t t
49953s,@COND_TOOLKIT_WINCE_USE_GUI_1@,$COND_TOOLKIT_WINCE_USE_GUI_1,;t t
49954s,@COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0,;t t
0ee4059d 49955s,@COND_TOOLKIT_WINCE_WXUNIV_0@,$COND_TOOLKIT_WINCE_WXUNIV_0,;t t
a848cd7e
SC
49956s,@COND_TOOLKIT_X11@,$COND_TOOLKIT_X11,;t t
49957s,@COND_TOOLKIT_X11_USE_GUI_1@,$COND_TOOLKIT_X11_USE_GUI_1,;t t
49958s,@COND_UNICODE_1@,$COND_UNICODE_1,;t t
49959s,@COND_USE_EXCEPTIONS_0@,$COND_USE_EXCEPTIONS_0,;t t
49960s,@COND_USE_EXCEPTIONS_1@,$COND_USE_EXCEPTIONS_1,;t t
49961s,@COND_USE_GUI_0@,$COND_USE_GUI_0,;t t
49962s,@COND_USE_GUI_1@,$COND_USE_GUI_1,;t t
49963s,@COND_USE_GUI_1_WXUNIV_0@,$COND_USE_GUI_1_WXUNIV_0,;t t
49964s,@COND_USE_GUI_1_WXUNIV_1@,$COND_USE_GUI_1_WXUNIV_1,;t t
49965s,@COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN@,$COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN,;t t
49966s,@COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN@,$COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN,;t t
49967s,@COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN@,$COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN,;t t
083508af
MW
49968s,@COND_USE_ODBC_1@,$COND_USE_ODBC_1,;t t
49969s,@COND_USE_OPENGL_1@,$COND_USE_OPENGL_1,;t t
f10e38c4 49970s,@COND_USE_PCH_1@,$COND_USE_PCH_1,;t t
a848cd7e 49971s,@COND_USE_PLUGINS_0@,$COND_USE_PLUGINS_0,;t t
0b78747f
MW
49972s,@COND_USE_RTTI_0@,$COND_USE_RTTI_0,;t t
49973s,@COND_USE_RTTI_1@,$COND_USE_RTTI_1,;t t
a848cd7e 49974s,@COND_USE_SOSYMLINKS_1@,$COND_USE_SOSYMLINKS_1,;t t
eb730a0c 49975s,@COND_USE_SOVERCYGWIN_1_USE_SOVERSION_1@,$COND_USE_SOVERCYGWIN_1_USE_SOVERSION_1,;t t
a848cd7e
SC
49976s,@COND_USE_SOVERLINUX_1@,$COND_USE_SOVERLINUX_1,;t t
49977s,@COND_USE_SOVERSION_0@,$COND_USE_SOVERSION_0,;t t
49978s,@COND_USE_SOVERSOLARIS_1@,$COND_USE_SOVERSOLARIS_1,;t t
0b78747f
MW
49979s,@COND_USE_THREADS_0@,$COND_USE_THREADS_0,;t t
49980s,@COND_USE_THREADS_1@,$COND_USE_THREADS_1,;t t
a13a7f89 49981s,@COND_USE_XRC_1@,$COND_USE_XRC_1,;t t
eb730a0c 49982s,@COND_WINDOWS_IMPLIB_1@,$COND_WINDOWS_IMPLIB_1,;t t
a848cd7e 49983s,@COND_WITH_PLUGIN_SDL_1@,$COND_WITH_PLUGIN_SDL_1,;t t
1e6eb025 49984s,@COND_WXUNIV_0@,$COND_WXUNIV_0,;t t
a848cd7e
SC
49985s,@COND_WXUNIV_1@,$COND_WXUNIV_1,;t t
49986s,@COND_WXUSE_EXPAT_BUILTIN@,$COND_WXUSE_EXPAT_BUILTIN,;t t
49987s,@COND_WXUSE_LIBJPEG_BUILTIN@,$COND_WXUSE_LIBJPEG_BUILTIN,;t t
49988s,@COND_WXUSE_LIBPNG_BUILTIN@,$COND_WXUSE_LIBPNG_BUILTIN,;t t
49989s,@COND_WXUSE_LIBTIFF_BUILTIN@,$COND_WXUSE_LIBTIFF_BUILTIN,;t t
49990s,@COND_WXUSE_ODBC_BUILTIN@,$COND_WXUSE_ODBC_BUILTIN,;t t
49991s,@COND_WXUSE_REGEX_BUILTIN@,$COND_WXUSE_REGEX_BUILTIN,;t t
49992s,@COND_WXUSE_ZLIB_BUILTIN@,$COND_WXUSE_ZLIB_BUILTIN,;t t
ceec2216 49993s,@SHARED@,$SHARED,;t t
a848cd7e
SC
49994s,@WX_LIBRARY_BASENAME_NOGUI@,$WX_LIBRARY_BASENAME_NOGUI,;t t
49995s,@WX_LIBRARY_BASENAME_GUI@,$WX_LIBRARY_BASENAME_GUI,;t t
a848cd7e
SC
49996s,@USE_GUI@,$USE_GUI,;t t
49997s,@AFMINSTALL@,$AFMINSTALL,;t t
49998s,@WIN32INSTALL@,$WIN32INSTALL,;t t
49999s,@TOOLKIT@,$TOOLKIT,;t t
50000s,@TOOLKIT_DIR@,$TOOLKIT_DIR,;t t
a848cd7e 50001s,@TOOLCHAIN_NAME@,$TOOLCHAIN_NAME,;t t
ceec2216 50002s,@TOOLCHAIN_FULLNAME@,$TOOLCHAIN_FULLNAME,;t t
a848cd7e 50003s,@cross_compiling@,$cross_compiling,;t t
ceec2216
RL
50004s,@WIDGET_SET@,$WIDGET_SET,;t t
50005s,@WX_RELEASE@,$WX_RELEASE,;t t
50006s,@WX_VERSION@,$WX_VERSION,;t t
50007s,@WX_SUBVERSION@,$WX_SUBVERSION,;t t
50008s,@WX_CHARTYPE@,$WX_CHARTYPE,;t t
50009s,@WX_DEBUGTYPE@,$WX_DEBUGTYPE,;t t
5ff751d6
VZ
50010s,@WXCONFIG_CPPFLAGS@,$WXCONFIG_CPPFLAGS,;t t
50011s,@WXCONFIG_CFLAGS@,$WXCONFIG_CFLAGS,;t t
50012s,@WXCONFIG_CXXFLAGS@,$WXCONFIG_CXXFLAGS,;t t
50013s,@WXCONFIG_LIBS@,$WXCONFIG_LIBS,;t t
a848cd7e
SC
50014s,@WXCONFIG_RPATH@,$WXCONFIG_RPATH,;t t
50015s,@WXCONFIG_LDFLAGS_GUI@,$WXCONFIG_LDFLAGS_GUI,;t t
004ee6da 50016s,@WXCONFIG_RESFLAGS@,$WXCONFIG_RESFLAGS,;t t
ceec2216 50017s,@EXE_LINKER@,$EXE_LINKER,;t t
a848cd7e 50018s,@GUIDIST@,$GUIDIST,;t t
a848cd7e
SC
50019s,@DISTDIR@,$DISTDIR,;t t
50020s,@SAMPLES_SUBDIRS@,$SAMPLES_SUBDIRS,;t t
50021s,@LDFLAGS_GL@,$LDFLAGS_GL,;t t
a848cd7e
SC
50022s,@OPENGL_LIBS@,$OPENGL_LIBS,;t t
50023s,@DMALLOC_LIBS@,$DMALLOC_LIBS,;t t
50024s,@WX_VERSION_TAG@,$WX_VERSION_TAG,;t t
004ee6da 50025s,@RESCOMP@,$RESCOMP,;t t
a848cd7e
SC
50026s,@RESFLAGS@,$RESFLAGS,;t t
50027s,@RESPROGRAMOBJ@,$RESPROGRAMOBJ,;t t
50028s,@WX_RESOURCES_MACOSX_ASCII@,$WX_RESOURCES_MACOSX_ASCII,;t t
50029s,@WX_RESOURCES_MACOSX_DATA@,$WX_RESOURCES_MACOSX_DATA,;t t
50030s,@LIBWXMACRES@,$LIBWXMACRES,;t t
8ced02f6 50031s,@POSTLINK_COMMAND@,$POSTLINK_COMMAND,;t t
a848cd7e 50032s,@MACSETFILE@,$MACSETFILE,;t t
a848cd7e 50033s,@GCC@,$GCC,;t t
a848cd7e
SC
50034s,@CPPUNIT_CONFIG@,$CPPUNIT_CONFIG,;t t
50035s,@LIBOBJS@,$LIBOBJS,;t t
50036s,@LTLIBOBJS@,$LTLIBOBJS,;t t
50037CEOF
50038
50039_ACEOF
50040
50041 cat >>$CONFIG_STATUS <<\_ACEOF
50042 # Split the substitutions into bite-sized pieces for seds with
50043 # small command number limits, like on Digital OSF/1 and HP-UX.
50044 ac_max_sed_lines=48
50045 ac_sed_frag=1 # Number of current file.
50046 ac_beg=1 # First line for current file.
50047 ac_end=$ac_max_sed_lines # Line after last line for current file.
50048 ac_more_lines=:
50049 ac_sed_cmds=
50050 while $ac_more_lines; do
50051 if test $ac_beg -gt 1; then
50052 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
50053 else
50054 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
50055 fi
50056 if test ! -s $tmp/subs.frag; then
50057 ac_more_lines=false
50058 else
50059 # The purpose of the label and of the branching condition is to
50060 # speed up the sed processing (if there are no `@' at all, there
50061 # is no need to browse any of the substitutions).
50062 # These are the two extra sed commands mentioned above.
50063 (echo ':t
50064 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
50065 if test -z "$ac_sed_cmds"; then
ac1cb8d3 50066 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
a848cd7e 50067 else
ac1cb8d3 50068 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
a848cd7e
SC
50069 fi
50070 ac_sed_frag=`expr $ac_sed_frag + 1`
50071 ac_beg=$ac_end
50072 ac_end=`expr $ac_end + $ac_max_sed_lines`
50073 fi
50074 done
50075 if test -z "$ac_sed_cmds"; then
50076 ac_sed_cmds=cat
50077 fi
50078fi # test -n "$CONFIG_FILES"
50079
50080_ACEOF
50081cat >>$CONFIG_STATUS <<\_ACEOF
50082for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
50083 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
50084 case $ac_file in
50085 - | *:- | *:-:* ) # input from stdin
ac1cb8d3
VS
50086 cat >$tmp/stdin
50087 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
50088 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
a848cd7e 50089 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
ac1cb8d3 50090 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
a848cd7e
SC
50091 * ) ac_file_in=$ac_file.in ;;
50092 esac
50093
50094 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
50095 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
50096$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
50097 X"$ac_file" : 'X\(//\)[^/]' \| \
50098 X"$ac_file" : 'X\(//\)$' \| \
50099 X"$ac_file" : 'X\(/\)' \| \
50100 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
50101echo X"$ac_file" |
50102 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
50103 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
50104 /^X\(\/\/\)$/{ s//\1/; q; }
50105 /^X\(\/\).*/{ s//\1/; q; }
50106 s/.*/./; q'`
50107 { if $as_mkdir_p; then
50108 mkdir -p "$ac_dir"
50109 else
50110 as_dir="$ac_dir"
50111 as_dirs=
50112 while test ! -d "$as_dir"; do
50113 as_dirs="$as_dir $as_dirs"
50114 as_dir=`(dirname "$as_dir") 2>/dev/null ||
50115$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
50116 X"$as_dir" : 'X\(//\)[^/]' \| \
50117 X"$as_dir" : 'X\(//\)$' \| \
50118 X"$as_dir" : 'X\(/\)' \| \
50119 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
50120echo X"$as_dir" |
50121 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
50122 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
50123 /^X\(\/\/\)$/{ s//\1/; q; }
50124 /^X\(\/\).*/{ s//\1/; q; }
50125 s/.*/./; q'`
50126 done
50127 test ! -n "$as_dirs" || mkdir $as_dirs
50128 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
50129echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
50130 { (exit 1); exit 1; }; }; }
50131
50132 ac_builddir=.
50133
50134if test "$ac_dir" != .; then
50135 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
50136 # A "../" for each directory in $ac_dir_suffix.
50137 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
50138else
50139 ac_dir_suffix= ac_top_builddir=
50140fi
50141
50142case $srcdir in
50143 .) # No --srcdir option. We are building in place.
50144 ac_srcdir=.
50145 if test -z "$ac_top_builddir"; then
50146 ac_top_srcdir=.
50147 else
50148 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
50149 fi ;;
50150 [\\/]* | ?:[\\/]* ) # Absolute path.
50151 ac_srcdir=$srcdir$ac_dir_suffix;
50152 ac_top_srcdir=$srcdir ;;
50153 *) # Relative path.
50154 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
50155 ac_top_srcdir=$ac_top_builddir$srcdir ;;
50156esac
ac1cb8d3
VS
50157
50158# Do not use `cd foo && pwd` to compute absolute paths, because
50159# the directories may not exist.
50160case `pwd` in
50161.) ac_abs_builddir="$ac_dir";;
50162*)
50163 case "$ac_dir" in
50164 .) ac_abs_builddir=`pwd`;;
50165 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
50166 *) ac_abs_builddir=`pwd`/"$ac_dir";;
50167 esac;;
50168esac
50169case $ac_abs_builddir in
50170.) ac_abs_top_builddir=${ac_top_builddir}.;;
50171*)
50172 case ${ac_top_builddir}. in
50173 .) ac_abs_top_builddir=$ac_abs_builddir;;
50174 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
50175 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
50176 esac;;
50177esac
50178case $ac_abs_builddir in
50179.) ac_abs_srcdir=$ac_srcdir;;
50180*)
50181 case $ac_srcdir in
50182 .) ac_abs_srcdir=$ac_abs_builddir;;
50183 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
50184 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
50185 esac;;
50186esac
50187case $ac_abs_builddir in
50188.) ac_abs_top_srcdir=$ac_top_srcdir;;
50189*)
50190 case $ac_top_srcdir in
50191 .) ac_abs_top_srcdir=$ac_abs_builddir;;
50192 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
50193 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
50194 esac;;
50195esac
a848cd7e
SC
50196
50197
50198 case $INSTALL in
50199 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
50200 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
50201 esac
50202
3f60522a
JS
50203 if test x"$ac_file" != x-; then
50204 { echo "$as_me:$LINENO: creating $ac_file" >&5
50205echo "$as_me: creating $ac_file" >&6;}
50206 rm -f "$ac_file"
50207 fi
a848cd7e
SC
50208 # Let's still pretend it is `configure' which instantiates (i.e., don't
50209 # use $as_me), people would be surprised to read:
50210 # /* config.h. Generated by config.status. */
50211 if test x"$ac_file" = x-; then
50212 configure_input=
50213 else
50214 configure_input="$ac_file. "
50215 fi
50216 configure_input=$configure_input"Generated from `echo $ac_file_in |
ac1cb8d3 50217 sed 's,.*/,,'` by configure."
a848cd7e
SC
50218
50219 # First look for the input files in the build tree, otherwise in the
50220 # src tree.
50221 ac_file_inputs=`IFS=:
50222 for f in $ac_file_in; do
50223 case $f in
50224 -) echo $tmp/stdin ;;
50225 [\\/$]*)
ac1cb8d3
VS
50226 # Absolute (can't be DOS-style, as IFS=:)
50227 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
a848cd7e
SC
50228echo "$as_me: error: cannot find input file: $f" >&2;}
50229 { (exit 1); exit 1; }; }
ac1cb8d3 50230 echo "$f";;
a848cd7e 50231 *) # Relative
ac1cb8d3
VS
50232 if test -f "$f"; then
50233 # Build tree
50234 echo "$f"
50235 elif test -f "$srcdir/$f"; then
50236 # Source tree
50237 echo "$srcdir/$f"
50238 else
50239 # /dev/null tree
50240 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
a848cd7e
SC
50241echo "$as_me: error: cannot find input file: $f" >&2;}
50242 { (exit 1); exit 1; }; }
ac1cb8d3 50243 fi;;
a848cd7e
SC
50244 esac
50245 done` || { (exit 1); exit 1; }
50246_ACEOF
50247cat >>$CONFIG_STATUS <<_ACEOF
50248 sed "$ac_vpsub
50249$extrasub
50250_ACEOF
50251cat >>$CONFIG_STATUS <<\_ACEOF
50252:t
50253/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
50254s,@configure_input@,$configure_input,;t t
50255s,@srcdir@,$ac_srcdir,;t t
50256s,@abs_srcdir@,$ac_abs_srcdir,;t t
50257s,@top_srcdir@,$ac_top_srcdir,;t t
50258s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
50259s,@builddir@,$ac_builddir,;t t
50260s,@abs_builddir@,$ac_abs_builddir,;t t
50261s,@top_builddir@,$ac_top_builddir,;t t
50262s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
50263s,@INSTALL@,$ac_INSTALL,;t t
50264" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
50265 rm -f $tmp/stdin
50266 if test x"$ac_file" != x-; then
50267 mv $tmp/out $ac_file
50268 else
50269 cat $tmp/out
50270 rm -f $tmp/out
50271 fi
50272
ceec2216
RL
50273 # Run the commands associated with the file.
50274 case $ac_file in
50275 lib/wx/config/${TOOLCHAIN_FULLNAME} ) chmod +x lib/wx/config/${TOOLCHAIN_FULLNAME} ;;
50276 lib/wx/config/inplace-${TOOLCHAIN_FULLNAME} ) chmod +x lib/wx/config/inplace-${TOOLCHAIN_FULLNAME} ;;
50277 esac
a848cd7e
SC
50278done
50279_ACEOF
50280cat >>$CONFIG_STATUS <<\_ACEOF
50281
50282#
50283# CONFIG_HEADER section.
50284#
50285
50286# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
50287# NAME is the cpp macro being defined and VALUE is the value it is being given.
50288#
50289# ac_d sets the value in "#define NAME VALUE" lines.
ac1cb8d3
VS
50290ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
50291ac_dB='[ ].*$,\1#\2'
a848cd7e
SC
50292ac_dC=' '
50293ac_dD=',;t'
50294# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
ac1cb8d3 50295ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
a848cd7e
SC
50296ac_uB='$,\1#\2define\3'
50297ac_uC=' '
50298ac_uD=',;t'
50299
50300for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
50301 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
50302 case $ac_file in
50303 - | *:- | *:-:* ) # input from stdin
ac1cb8d3
VS
50304 cat >$tmp/stdin
50305 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
50306 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
a848cd7e 50307 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
ac1cb8d3 50308 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
a848cd7e
SC
50309 * ) ac_file_in=$ac_file.in ;;
50310 esac
50311
50312 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
50313echo "$as_me: creating $ac_file" >&6;}
50314
50315 # First look for the input files in the build tree, otherwise in the
50316 # src tree.
50317 ac_file_inputs=`IFS=:
50318 for f in $ac_file_in; do
50319 case $f in
50320 -) echo $tmp/stdin ;;
50321 [\\/$]*)
ac1cb8d3
VS
50322 # Absolute (can't be DOS-style, as IFS=:)
50323 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
a848cd7e
SC
50324echo "$as_me: error: cannot find input file: $f" >&2;}
50325 { (exit 1); exit 1; }; }
ac1cb8d3
VS
50326 # Do quote $f, to prevent DOS paths from being IFS'd.
50327 echo "$f";;
a848cd7e 50328 *) # Relative
ac1cb8d3
VS
50329 if test -f "$f"; then
50330 # Build tree
50331 echo "$f"
50332 elif test -f "$srcdir/$f"; then
50333 # Source tree
50334 echo "$srcdir/$f"
50335 else
50336 # /dev/null tree
50337 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
a848cd7e
SC
50338echo "$as_me: error: cannot find input file: $f" >&2;}
50339 { (exit 1); exit 1; }; }
ac1cb8d3 50340 fi;;
a848cd7e
SC
50341 esac
50342 done` || { (exit 1); exit 1; }
50343 # Remove the trailing spaces.
ac1cb8d3 50344 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
a848cd7e
SC
50345
50346_ACEOF
50347
50348# Transform confdefs.h into two sed scripts, `conftest.defines' and
50349# `conftest.undefs', that substitutes the proper values into
50350# config.h.in to produce config.h. The first handles `#define'
50351# templates, and the second `#undef' templates.
50352# And first: Protect against being on the right side of a sed subst in
50353# config.status. Protect against being in an unquoted here document
50354# in config.status.
50355rm -f conftest.defines conftest.undefs
50356# Using a here document instead of a string reduces the quoting nightmare.
50357# Putting comments in sed scripts is not portable.
50358#
50359# `end' is used to avoid that the second main sed command (meant for
50360# 0-ary CPP macros) applies to n-ary macro definitions.
50361# See the Autoconf documentation for `clear'.
50362cat >confdef2sed.sed <<\_ACEOF
50363s/[\\&,]/\\&/g
50364s,[\\$`],\\&,g
50365t clear
50366: clear
ac1cb8d3 50367s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
a848cd7e 50368t end
ac1cb8d3 50369s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
a848cd7e
SC
50370: end
50371_ACEOF
50372# If some macros were called several times there might be several times
50373# the same #defines, which is useless. Nevertheless, we may not want to
50374# sort them, since we want the *last* AC-DEFINE to be honored.
50375uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
50376sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
50377rm -f confdef2sed.sed
50378
50379# This sed command replaces #undef with comments. This is necessary, for
50380# example, in the case of _POSIX_SOURCE, which is predefined and required
50381# on some systems where configure will not decide to define it.
50382cat >>conftest.undefs <<\_ACEOF
ac1cb8d3 50383s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
a848cd7e
SC
50384_ACEOF
50385
50386# Break up conftest.defines because some shells have a limit on the size
50387# of here documents, and old seds have small limits too (100 cmds).
50388echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
ac1cb8d3 50389echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
a848cd7e
SC
50390echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
50391echo ' :' >>$CONFIG_STATUS
50392rm -f conftest.tail
50393while grep . conftest.defines >/dev/null
50394do
50395 # Write a limited-size here document to $tmp/defines.sed.
50396 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
50397 # Speed up: don't consider the non `#define' lines.
ac1cb8d3 50398 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
a848cd7e
SC
50399 # Work around the forget-to-reset-the-flag bug.
50400 echo 't clr' >>$CONFIG_STATUS
50401 echo ': clr' >>$CONFIG_STATUS
50402 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
50403 echo 'CEOF
50404 sed -f $tmp/defines.sed $tmp/in >$tmp/out
50405 rm -f $tmp/in
50406 mv $tmp/out $tmp/in
50407' >>$CONFIG_STATUS
50408 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
50409 rm -f conftest.defines
50410 mv conftest.tail conftest.defines
50411done
50412rm -f conftest.defines
50413echo ' fi # grep' >>$CONFIG_STATUS
50414echo >>$CONFIG_STATUS
50415
50416# Break up conftest.undefs because some shells have a limit on the size
50417# of here documents, and old seds have small limits too (100 cmds).
50418echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
50419rm -f conftest.tail
50420while grep . conftest.undefs >/dev/null
50421do
50422 # Write a limited-size here document to $tmp/undefs.sed.
50423 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
50424 # Speed up: don't consider the non `#undef'
ac1cb8d3 50425 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
a848cd7e
SC
50426 # Work around the forget-to-reset-the-flag bug.
50427 echo 't clr' >>$CONFIG_STATUS
50428 echo ': clr' >>$CONFIG_STATUS
50429 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
50430 echo 'CEOF
50431 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
50432 rm -f $tmp/in
50433 mv $tmp/out $tmp/in
50434' >>$CONFIG_STATUS
50435 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
50436 rm -f conftest.undefs
50437 mv conftest.tail conftest.undefs
50438done
50439rm -f conftest.undefs
50440
50441cat >>$CONFIG_STATUS <<\_ACEOF
50442 # Let's still pretend it is `configure' which instantiates (i.e., don't
50443 # use $as_me), people would be surprised to read:
50444 # /* config.h. Generated by config.status. */
50445 if test x"$ac_file" = x-; then
50446 echo "/* Generated by configure. */" >$tmp/config.h
50447 else
50448 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
50449 fi
50450 cat $tmp/in >>$tmp/config.h
50451 rm -f $tmp/in
50452 if test x"$ac_file" != x-; then
50453 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
50454 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
50455echo "$as_me: $ac_file is unchanged" >&6;}
50456 else
50457 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
50458$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
50459 X"$ac_file" : 'X\(//\)[^/]' \| \
50460 X"$ac_file" : 'X\(//\)$' \| \
50461 X"$ac_file" : 'X\(/\)' \| \
50462 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
50463echo X"$ac_file" |
50464 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
50465 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
50466 /^X\(\/\/\)$/{ s//\1/; q; }
50467 /^X\(\/\).*/{ s//\1/; q; }
50468 s/.*/./; q'`
50469 { if $as_mkdir_p; then
50470 mkdir -p "$ac_dir"
50471 else
50472 as_dir="$ac_dir"
50473 as_dirs=
50474 while test ! -d "$as_dir"; do
50475 as_dirs="$as_dir $as_dirs"
50476 as_dir=`(dirname "$as_dir") 2>/dev/null ||
50477$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
50478 X"$as_dir" : 'X\(//\)[^/]' \| \
50479 X"$as_dir" : 'X\(//\)$' \| \
50480 X"$as_dir" : 'X\(/\)' \| \
50481 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
50482echo X"$as_dir" |
50483 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
50484 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
50485 /^X\(\/\/\)$/{ s//\1/; q; }
50486 /^X\(\/\).*/{ s//\1/; q; }
50487 s/.*/./; q'`
50488 done
50489 test ! -n "$as_dirs" || mkdir $as_dirs
50490 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
50491echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
50492 { (exit 1); exit 1; }; }; }
50493
50494 rm -f $ac_file
50495 mv $tmp/config.h $ac_file
50496 fi
50497 else
50498 cat $tmp/config.h
50499 rm -f $tmp/config.h
50500 fi
50501done
50502_ACEOF
50503cat >>$CONFIG_STATUS <<\_ACEOF
50504
50505#
50506# CONFIG_COMMANDS section.
50507#
50508for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
50509 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
50510 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
50511 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
50512$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
50513 X"$ac_dest" : 'X\(//\)[^/]' \| \
50514 X"$ac_dest" : 'X\(//\)$' \| \
50515 X"$ac_dest" : 'X\(/\)' \| \
50516 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
50517echo X"$ac_dest" |
50518 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
50519 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
50520 /^X\(\/\/\)$/{ s//\1/; q; }
50521 /^X\(\/\).*/{ s//\1/; q; }
50522 s/.*/./; q'`
ac1cb8d3
VS
50523 { if $as_mkdir_p; then
50524 mkdir -p "$ac_dir"
50525 else
50526 as_dir="$ac_dir"
50527 as_dirs=
50528 while test ! -d "$as_dir"; do
50529 as_dirs="$as_dir $as_dirs"
50530 as_dir=`(dirname "$as_dir") 2>/dev/null ||
50531$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
50532 X"$as_dir" : 'X\(//\)[^/]' \| \
50533 X"$as_dir" : 'X\(//\)$' \| \
50534 X"$as_dir" : 'X\(/\)' \| \
50535 . : '\(.\)' 2>/dev/null ||
50536echo X"$as_dir" |
50537 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
50538 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
50539 /^X\(\/\/\)$/{ s//\1/; q; }
50540 /^X\(\/\).*/{ s//\1/; q; }
50541 s/.*/./; q'`
50542 done
50543 test ! -n "$as_dirs" || mkdir $as_dirs
50544 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
50545echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
50546 { (exit 1); exit 1; }; }; }
50547
a848cd7e
SC
50548 ac_builddir=.
50549
50550if test "$ac_dir" != .; then
50551 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
50552 # A "../" for each directory in $ac_dir_suffix.
50553 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
50554else
50555 ac_dir_suffix= ac_top_builddir=
50556fi
50557
50558case $srcdir in
50559 .) # No --srcdir option. We are building in place.
50560 ac_srcdir=.
50561 if test -z "$ac_top_builddir"; then
50562 ac_top_srcdir=.
50563 else
50564 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
50565 fi ;;
50566 [\\/]* | ?:[\\/]* ) # Absolute path.
50567 ac_srcdir=$srcdir$ac_dir_suffix;
50568 ac_top_srcdir=$srcdir ;;
50569 *) # Relative path.
50570 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
50571 ac_top_srcdir=$ac_top_builddir$srcdir ;;
50572esac
ac1cb8d3
VS
50573
50574# Do not use `cd foo && pwd` to compute absolute paths, because
50575# the directories may not exist.
50576case `pwd` in
50577.) ac_abs_builddir="$ac_dir";;
50578*)
50579 case "$ac_dir" in
50580 .) ac_abs_builddir=`pwd`;;
50581 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
50582 *) ac_abs_builddir=`pwd`/"$ac_dir";;
50583 esac;;
50584esac
50585case $ac_abs_builddir in
50586.) ac_abs_top_builddir=${ac_top_builddir}.;;
50587*)
50588 case ${ac_top_builddir}. in
50589 .) ac_abs_top_builddir=$ac_abs_builddir;;
50590 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
50591 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
50592 esac;;
50593esac
50594case $ac_abs_builddir in
50595.) ac_abs_srcdir=$ac_srcdir;;
50596*)
50597 case $ac_srcdir in
50598 .) ac_abs_srcdir=$ac_abs_builddir;;
50599 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
50600 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
50601 esac;;
50602esac
50603case $ac_abs_builddir in
50604.) ac_abs_top_srcdir=$ac_top_srcdir;;
50605*)
50606 case $ac_top_srcdir in
50607 .) ac_abs_top_srcdir=$ac_abs_builddir;;
50608 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
50609 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
50610 esac;;
50611esac
a848cd7e
SC
50612
50613
50614 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
50615echo "$as_me: executing $ac_dest commands" >&6;}
50616 case $ac_dest in
5c60e845
MW
50617 rcdefs.h )
50618 mkdir -p $outdir &&
50619 $CPP $infile | sed 's/^# *[1-9].*//;s/^ *//;/./,/^$/!d' > $outdir/rcdefs.h
50620 ;;
ceec2216
RL
50621 wx-config ) rm -f wx-config
50622 ${LN_S} lib/wx/config/inplace-${TOOLCHAIN_FULLNAME} wx-config
50623 ;;
a848cd7e
SC
50624 esac
50625done
50626_ACEOF
50627
50628cat >>$CONFIG_STATUS <<\_ACEOF
50629
50630{ (exit 0); exit 0; }
50631_ACEOF
50632chmod +x $CONFIG_STATUS
50633ac_clean_files=$ac_clean_files_save
50634
50635
50636# configure is writing to config.log, and then calls config.status.
50637# config.status does its own redirection, appending to config.log.
50638# Unfortunately, on DOS this fails, as config.log is still kept open
50639# by configure, so config.status won't be able to write to it; its
50640# output is simply discarded. So we exec the FD to /dev/null,
50641# effectively closing config.log, so it can be properly (re)opened and
50642# appended to by config.status. When coming back to configure, we
50643# need to make the FD available again.
50644if test "$no_create" != yes; then
50645 ac_cs_success=:
50646 ac_config_status_args=
50647 test "$silent" = yes &&
50648 ac_config_status_args="$ac_config_status_args --quiet"
50649 exec 5>/dev/null
50650 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
50651 exec 5>>config.log
50652 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
50653 # would make configure fail if this is the last instruction.
50654 $ac_cs_success || { (exit 1); exit 1; }
50655fi
50656
50657#
50658# CONFIG_SUBDIRS section.
50659#
50660if test "$no_recursion" != yes; then
50661
50662 # Remove --cache-file and --srcdir arguments so they do not pile up.
50663 ac_sub_configure_args=
50664 ac_prev=
50665 for ac_arg in $ac_configure_args; do
50666 if test -n "$ac_prev"; then
50667 ac_prev=
50668 continue
50669 fi
50670 case $ac_arg in
50671 -cache-file | --cache-file | --cache-fil | --cache-fi \
50672 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
50673 ac_prev=cache_file ;;
50674 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
50675 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
50676 | --c=*)
50677 ;;
50678 --config-cache | -C)
50679 ;;
50680 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
50681 ac_prev=srcdir ;;
50682 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
50683 ;;
50684 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
50685 ac_prev=prefix ;;
50686 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
50687 ;;
50688 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
50689 esac
50690 done
50691
50692 # Always prepend --prefix to ensure using the same prefix
50693 # in subdir configurations.
50694 ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
50695
50696 ac_popdir=`pwd`
50697 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
50698
50699 # Do not complain, so a configure script can configure whichever
50700 # parts of a large source tree are present.
50701 test -d $srcdir/$ac_dir || continue
50702
50703 { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
50704echo "$as_me: configuring in $ac_dir" >&6;}
50705 { if $as_mkdir_p; then
50706 mkdir -p "$ac_dir"
50707 else
50708 as_dir="$ac_dir"
50709 as_dirs=
50710 while test ! -d "$as_dir"; do
50711 as_dirs="$as_dir $as_dirs"
50712 as_dir=`(dirname "$as_dir") 2>/dev/null ||
50713$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
50714 X"$as_dir" : 'X\(//\)[^/]' \| \
50715 X"$as_dir" : 'X\(//\)$' \| \
50716 X"$as_dir" : 'X\(/\)' \| \
50717 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
50718echo X"$as_dir" |
50719 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
50720 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
50721 /^X\(\/\/\)$/{ s//\1/; q; }
50722 /^X\(\/\).*/{ s//\1/; q; }
50723 s/.*/./; q'`
50724 done
50725 test ! -n "$as_dirs" || mkdir $as_dirs
50726 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
50727echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
50728 { (exit 1); exit 1; }; }; }
50729
50730 ac_builddir=.
50731
50732if test "$ac_dir" != .; then
50733 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
50734 # A "../" for each directory in $ac_dir_suffix.
50735 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
50736else
50737 ac_dir_suffix= ac_top_builddir=
50738fi
50739
50740case $srcdir in
50741 .) # No --srcdir option. We are building in place.
50742 ac_srcdir=.
50743 if test -z "$ac_top_builddir"; then
50744 ac_top_srcdir=.
50745 else
50746 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
50747 fi ;;
50748 [\\/]* | ?:[\\/]* ) # Absolute path.
50749 ac_srcdir=$srcdir$ac_dir_suffix;
50750 ac_top_srcdir=$srcdir ;;
50751 *) # Relative path.
50752 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
50753 ac_top_srcdir=$ac_top_builddir$srcdir ;;
50754esac
ac1cb8d3
VS
50755
50756# Do not use `cd foo && pwd` to compute absolute paths, because
50757# the directories may not exist.
50758case `pwd` in
50759.) ac_abs_builddir="$ac_dir";;
50760*)
50761 case "$ac_dir" in
50762 .) ac_abs_builddir=`pwd`;;
50763 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
50764 *) ac_abs_builddir=`pwd`/"$ac_dir";;
50765 esac;;
50766esac
50767case $ac_abs_builddir in
50768.) ac_abs_top_builddir=${ac_top_builddir}.;;
50769*)
50770 case ${ac_top_builddir}. in
50771 .) ac_abs_top_builddir=$ac_abs_builddir;;
50772 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
50773 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
50774 esac;;
50775esac
50776case $ac_abs_builddir in
50777.) ac_abs_srcdir=$ac_srcdir;;
50778*)
50779 case $ac_srcdir in
50780 .) ac_abs_srcdir=$ac_abs_builddir;;
50781 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
50782 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
50783 esac;;
50784esac
50785case $ac_abs_builddir in
50786.) ac_abs_top_srcdir=$ac_top_srcdir;;
50787*)
50788 case $ac_top_srcdir in
50789 .) ac_abs_top_srcdir=$ac_abs_builddir;;
50790 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
50791 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
50792 esac;;
50793esac
a848cd7e
SC
50794
50795
50796 cd $ac_dir
50797
50798 # Check for guested configure; otherwise get Cygnus style configure.
50799 if test -f $ac_srcdir/configure.gnu; then
50800 ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
50801 elif test -f $ac_srcdir/configure; then
50802 ac_sub_configure="$SHELL '$ac_srcdir/configure'"
50803 elif test -f $ac_srcdir/configure.in; then
50804 ac_sub_configure=$ac_configure
50805 else
50806 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
50807echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
50808 ac_sub_configure=
50809 fi
50810
50811 # The recursion is here.
50812 if test -n "$ac_sub_configure"; then
50813 # Make the cache file name correct relative to the subdirectory.
50814 case $cache_file in
50815 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
50816 *) # Relative path.
ac1cb8d3 50817 ac_sub_cache_file=$ac_top_builddir$cache_file ;;
a848cd7e
SC
50818 esac
50819
50820 { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
50821echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
50822 # The eval makes quoting arguments work.
50823 eval $ac_sub_configure $ac_sub_configure_args \
ac1cb8d3
VS
50824 --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
50825 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
a848cd7e
SC
50826echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
50827 { (exit 1); exit 1; }; }
50828 fi
50829
3f60522a 50830 cd $ac_popdir
a848cd7e
SC
50831 done
50832fi
50833
50834
50835echo
77ffb593 50836echo "Configured wxWidgets ${WX_VERSION} for \`${host}'"
a848cd7e 50837echo ""
4d4ff94c 50838echo " Which GUI toolkit should wxWidgets use? ${TOOLKIT_USER:-base only}"
77ffb593 50839echo " Should wxWidgets be compiled into single library? ${wxUSE_MONOLITHIC:-yes}"
a848cd7e 50840
77ffb593
JS
50841echo " Should wxWidgets be compiled in debug mode? ${wxUSE_DEBUG:-no}"
50842echo " Should wxWidgets be linked as a shared library? ${wxUSE_SHARED:-no}"
50843echo " Should wxWidgets be compiled in Unicode mode? ${wxUSE_UNICODE:-no}"
a848cd7e 50844
77ffb593 50845echo " What level of wxWidgets compatibility should be enabled?"
dee1a63f
MB
50846echo " wxWidgets 2.4 ${WXWIN_COMPATIBILITY_2_4:-no}"
50847echo " wxWidgets 2.6 ${WXWIN_COMPATIBILITY_2_6:-yes}"
a848cd7e 50848
77ffb593 50849echo " Which libraries should wxWidgets use?"
a848cd7e
SC
50850echo " jpeg ${wxUSE_LIBJPEG-none}"
50851echo " png ${wxUSE_LIBPNG-none}"
50852echo " regex ${wxUSE_REGEX}"
50853echo " tiff ${wxUSE_LIBTIFF-none}"
50854if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then
50855echo " xpm ${wxUSE_LIBXPM-none}"
50856fi
50857echo " zlib ${wxUSE_ZLIB}"
50858echo " odbc ${wxUSE_ODBC}"
50859echo " expat ${wxUSE_EXPAT}"
50860echo " libmspack ${wxUSE_LIBMSPACK}"
50861echo " sdl ${wxUSE_LIBSDL}"
6d1ce868 50862echo " gnomeprint ${wxUSE_LIBGNOMEPRINT-none}"
2b850ae1 50863echo " gnomevfs ${wxUSE_LIBGNOMEVFS-none}"
3565d135 50864echo " hildon ${wxUSE_LIBHILDON-none}"
a848cd7e
SC
50865
50866echo ""
50867